diff --git a/assets/2d82b92e720462f8dd3b-Bh4Fahcw.svg b/assets/2d82b92e720462f8dd3b-Bh4Fahcw.svg new file mode 100644 index 0000000..5bef54a --- /dev/null +++ b/assets/2d82b92e720462f8dd3b-Bh4Fahcw.svg @@ -0,0 +1,372 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/eruda-DYE_C-VE.js b/assets/eruda-DYE_C-VE.js new file mode 100644 index 0000000..e84c6c0 --- /dev/null +++ b/assets/eruda-DYE_C-VE.js @@ -0,0 +1,358 @@ +import{g as getDefaultExportFromCjs}from"./index-CgYFwrCc.js";function _mergeNamespaces(u,t){for(var e=0;er[a]})}}}return Object.freeze(Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}))}var eruda$2={exports:{}};/*! eruda v3.0.1 https://eruda.liriliri.io/ */(function(module,exports){(function(u,t){module.exports=t()})(self,function(){return function(){var __webpack_modules__={422:function(u,t,e){e.d(t,{Z:function(){return Se}});var r=e(5671),a=e(3144),i=e(9340),s=e(2963),c=e(1120),d=e(2461),n=e.n(d),l=e(3990),h=e.n(l),m=e(6768),w=e.n(m),g=e(4331),y=e.n(g),_=e(5610),f=e.n(_),p=e(7483),b=e.n(p),E=e(6341),D=e.n(E),z=e(3875),O=e.n(z),I=e(6954),Q=e.n(I);e(9585);function H(Ne){var qe="luna-".concat(Ne,"-");function _e(X){return n()(y()(X).split(/\s+/),function(ee){return D()(ee,qe)?ee:ee.replace(/[\w-]+/,function(W){return"".concat(qe).concat(W)})}).join(" ")}return function(X){if(/<[^>]*>/g.test(X))try{var ee=b().parse(X);return G(ee,function(W){W.attrs&&W.attrs.class&&(W.attrs.class=_e(W.attrs.class))}),b().stringify(ee)}catch{return _e(X)}return _e(X)}}function G(Ne,qe){for(var _e=0,X=Ne.length;_e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _e,X=(0,c.Z)(Ne);if(qe){var ee=(0,c.Z)(this).constructor;_e=Reflect.construct(X,arguments,ee)}else _e=X.apply(this,arguments);return(0,s.Z)(this,_e)}}var pe=function(Ne){(0,i.Z)(_e,Ne);var qe=ae(_e);function _e(X,ee){var W,re=ee.compName,fe=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Be=fe===void 0?"light":fe;return(0,r.Z)(this,_e),(W=qe.call(this)).subComponents=[],W.compName=re,W.c=H(re),W.options={},W.container=X,W.$container=F()(X),W.$container.addClass(["luna-".concat(re),W.c("platform-".concat(L()))]),W.on("optionChange",function(De,Pe,V){var Qe=W.c;De==="theme"&&(W.$container.rmClass(Qe("theme-".concat(V))).addClass(Qe("theme-".concat(Pe))),J()(W.subComponents,function(oe){return oe.setOption("theme",Pe)}))}),W.setOption("theme",Be),W}return(0,a.Z)(_e,[{key:"destroy",value:function(){this.destroySubComponents();var X=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(X("platform-".concat(L()))).rmClass(X("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(X,ee){var W=this,re=this.options,fe={};typeof X=="string"?fe[X]=ee:fe=X,J()(fe,function(Be,De){var Pe=re[De];re[De]=Be,W.emit("optionChange",De,Be,Pe)})}},{key:"getOption",value:function(X){return this.options[X]}},{key:"addSubComponent",value:function(X){X.setOption("theme",this.options.theme),this.subComponents.push(X)}},{key:"removeSubComponent",value:function(X){ye()(this.subComponents,function(ee){return ee===X})}},{key:"destroySubComponents",value:function(){J()(this.subComponents,function(X){return X.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(X){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ce()(X,ee),q()(this.options,X)}},{key:"find",value:function(X){return this.$container.find(this.c(X))}}]),_e}(j());function be(Ne){var qe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _e,X=(0,c.Z)(Ne);if(qe){var ee=(0,c.Z)(this).constructor;_e=Reflect.construct(X,arguments,ee)}else _e=X.apply(this,arguments);return(0,s.Z)(this,_e)}}u=e.hmd(u);var Se=function(Ne){(0,i.Z)(_e,Ne);var qe=be(_e);function _e(X){var ee,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,r.Z)(this,_e),(ee=qe.call(this,X,{compName:"box-model"})).initOptions(W),ee.options.element&&ee.render(),ee.bindEvent(),ee}return(0,a.Z)(_e,[{key:"bindEvent",value:function(){var X=this;this.on("optionChange",function(ee){ee==="element"&&X.render()})}},{key:"render",value:function(){var X=this.c,ee=this.getBoxModelData();this.$container.html(['
'),ee.position?'
'):"",ee.position?'
position
').concat(ee.position.top,'

').concat(ee.position.left,"
"):"",'
'),'
margin
').concat(ee.margin.top,'

').concat(ee.margin.left,"
"),'
'),'
border
').concat(ee.border.top,'

').concat(ee.border.left,"
"),'
'),'
padding
').concat(ee.padding.top,'

').concat(ee.padding.left,"
"),'
'),"".concat(ee.content.width," × ").concat(ee.content.height,""),"
",'
').concat(ee.padding.right,'

').concat(ee.padding.bottom,"
"),"
",'
').concat(ee.border.right,'

').concat(ee.border.bottom,"
"),"
",'
').concat(ee.margin.right,'

').concat(ee.margin.bottom,"
"),"
",ee.position?'
').concat(ee.position.right,'

').concat(ee.position.bottom,"
"):"",ee.position?"
":"","
"].join(""))}},{key:"getBoxModelData",value:function(){var X=this.options.element,ee=window.getComputedStyle(X);function W(fe){var Be=["top","left","right","bottom"];return fe!=="position"&&(Be=n()(Be,function(De){return"".concat(fe,"-").concat(De)})),fe==="border"&&(Be=n()(Be,function(De){return"".concat(De,"-width")})),{top:Je(ee[Be[0]],fe),left:Je(ee[Be[1]],fe),right:Je(ee[Be[2]],fe),bottom:Je(ee[Be[3]],fe)}}var re={margin:W("margin"),border:W("border"),padding:W("padding"),content:{width:Je(ee.width),height:Je(ee.height)}};return ee.position!=="static"&&(re.position=W("position")),re}}]),_e}(pe);function Je(Ne,qe){if(h()(Ne))return Ne;if(!w()(Ne))return"‒";var _e,X=(_e=Ne,O()(_e.replace("px","")));return isNaN(X)?Ne:qe==="position"?X:X===0?"‒":X}(function(Ne,qe){try{Ne.exports=qe,Ne.exports.default=qe}catch{}})(u,Se)},8816:function(u,t,e){e.d(t,{Z:function(){return In}});var r=e(168),a=e(181);function i(Xe,_t){return function(We){if(Array.isArray(We))return We}(Xe)||function(We,C){var A=We==null?null:typeof Symbol<"u"&&We[Symbol.iterator]||We["@@iterator"];if(A!=null){var B,K,je,he,Ge=[],Ye=!0,rt=!1;try{if(je=(A=A.call(We)).next,C===0){if(Object(A)!==A)return;Ye=!1}else for(;!(Ye=(B=je.call(A)).done)&&(Ge.push(B.value),Ge.length!==C);Ye=!0);}catch(Ct){rt=!0,K=Ct}finally{try{if(!Ye&&A.return!=null&&(he=A.return(),Object(he)!==he))return}finally{if(rt)throw K}}return Ge}}(Xe,_t)||(0,a.Z)(Xe,_t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var s=e(5671),c=e(3144),d=e(1752),n=e(9340),l=e(2963),h=e(1120),m=e(7326),w=e(8901),g=e.n(w),y=e(3367),_=e.n(y),f=e(6341),p=e.n(f),b=e(6930),E=e.n(b),D=e(4187),z=e.n(D),O=e(3783),I=e.n(O),Q=e(4858),H=e.n(Q),G=e(8887),L=e.n(G),R=e(7756),j=e.n(R),N=e(3023),F=e.n(N);function Y(Xe){return Xe.constructor&&Xe.constructor.name?Xe.constructor.name:F()({}.toString.call(Xe).replace(/(\[object )|]/g,""))}var J=e(2461),P=e.n(J),q=e(4331),$=e.n(q),ce=e(5610),Ce=e.n(ce),ye=e(7483),ae=e.n(ye),pe=e(3990),be=e.n(pe),Se=e(3875),Je=e.n(Se),Ne=e(6954),qe=e.n(Ne),_e=e(9585),X=e.n(_e);function ee(Xe){var _t="luna-".concat(Xe,"-");function We(C){return P()($()(C).split(/\s+/),function(A){return p()(A,_t)?A:A.replace(/[\w-]+/,function(B){return"".concat(_t).concat(B)})}).join(" ")}return function(C){if(/<[^>]*>/g.test(C))try{var A=ae().parse(C);return W(A,function(B){B.attrs&&B.attrs.class&&(B.attrs.class=We(B.attrs.class))}),ae().stringify(A)}catch{return We(C)}return We(C)}}function W(Xe,_t){for(var We=0,C=Xe.length;We1&&arguments[1]!==void 0?arguments[1]:{},C=We.topObj,A=We.level,B=A===void 0?0:A,K=We.getterVal,je=K!==void 0&&K,he=We.unenumerable,Ge=he===void 0||he,Ye="",rt="",Ct=[],Et=[],Rt="";C=C||Xe;var Ht={getterVal:je,unenumerable:Ge,level:B+1},At=B===0,Dt=''),Qt=''),qt=''),bn=''),An=''),kn=''),ln=function(Bt){return g()(Bt).replace(/\\n/g,"↵").replace(/\\f|\\r|\\t/g,"").replace(/\\/g,"")},Xt="";function en(Bt){return Bt=_()(Bt),p()(Be,Bt)||E()(Bt,"Array[")?kn+ln(Bt)+Xt:(Bt.length>100&&(Bt=j()(Bt,100,{separator:" ",ellipsis:"…"})),bn+ln('"'.concat(Bt,'"'))+Xt)}function un(Bt){if(_t>5)Rt=", …";else{var Nn=function(bo){return Dt+ln(bo)+Xt}(Pe(Bt));if(!je){var $n=Object.getOwnPropertyDescriptor(Xe,Bt);if($n&&$n.get)return Ct.push("".concat(Nn,": ").concat(en("(...)"))),void _t++}Ct.push("".concat(Nn,": ").concat(fe(C[Bt],Ht))),_t++}}try{rt={}.toString.call(Xe)}catch{rt="[object Object]"}var fn,Cn=rt=="[object Array]",Sn=rt=="[object Object]",yn=rt=="[object Number]",En=rt=="[object RegExp]",Rn=rt=="[object Symbol]",hn=rt=="[object Function]",On=rt=="[object Boolean]";if(rt=="[object String]")Ye=en(Pe(Xe));else if(En)fn=Pe(Xe.toString()),Ye=bn+fn+Xt;else if(hn)Ye=en("ƒ");else if(Cn)if(At){Ye="[";var Zn=Xe.length,Hn="";Zn>100&&(Zn=100,Hn=", …");for(var Tn=0;Tn"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var We,C=(0,h.Z)(Xe);if(_t){var A=(0,h.Z)(this).constructor;We=Reflect.construct(C,arguments,A)}else We=C.apply(this,arguments);return(0,l.Z)(this,We)}}var Vn=/https?:\/\/([0-9.\-A-Za-z]+)(?::(\d+))?\/[A-Z.a-z0-9/]*\.js/g,Mn={comment:"",string:"",number:"",keyword:"",operator:""},Kn=function(Xe){(0,n.Z)(We,Xe);var _t=Un(We);function We(C,A){var B,K=A.type,je=K===void 0?"log":K,he=A.args,Ge=he===void 0?[]:he,Ye=A.id,rt=A.group,Ct=A.targetGroup,Et=A.header,Rt=A.ignoreFilter,Ht=Rt!==void 0&&Rt,At=A.accessGetter,Dt=A.unenumerable,Qt=A.lazyEvaluation;(0,s.Z)(this,We),(B=_t.call(this)).container=et()("div"),B.count=1,B.width=0,B.height=0,B.isHidden=!1,B.columns=[],B.elements={},B.objects={},B.console=C,B.type=je,B.group=rt,B.targetGroup=Ct,B.args=Ge,B.id=Ye,B.header=Et,B.ignoreFilter=Ht,B.collapsed=!1,B.container.log=(0,m.Z)(B),B.height=0,B.width=0,B.$container=yt()(B.container),B.accessGetter=At,B.unenumerable=Dt,B.lazyEvaluation=Qt;var qt="info";switch(je){case"debug":qt="verbose";break;case"error":qt="error";break;case"warn":qt="warning"}return B.level=qt,B.resizeSensor=new(se())(B.container),B.onResize=Me()(function(){X()(B.container)?B.isHidden=!0:(B.isHidden||B.updateSize(!1),B.isHidden=!1)},16),B.formatMsg(),B.group&&B.checkGroup(),B.bindEvent(),B}return(0,c.Z)(We,[{key:"checkGroup",value:function(){for(var C=this.group,A=!1;C;){if(C.collapsed){A=!0;break}C=C.parent}return A!==this.collapsed&&(this.collapsed=A,!0)}},{key:"updateIcon",value:function(C){var A=this.console.c;return this.$container.find(A(".icon-container")).find(A(".icon")).rmAttr("class").addClass([A("icon"),A("icon-".concat(C))]),this}},{key:"addCount",value:function(){this.count++;var C=this.$container,A=this.count,B=this.console.c,K=C.find(B(".count-container")),je=C.find(B(".icon-container")),he=K.find(B(".count"));return A===2&&K.rmClass(B("hidden")),he.text(_()(A)),je.addClass(B("hidden")),this}},{key:"groupEnd",value:function(){var C=this.$container,A=this.console.c;return C.find(".".concat(A("nesting-level"),":not(.").concat(A("group-closed"),")")).last().addClass(A("group-closed")),this}},{key:"updateTime",value:function(C){var A=this.$container.find(this.console.c(".time-container"));return this.header&&(A.find("span").eq(0).text(C),this.header.time=C),this}},{key:"isAttached",value:function(){return!!this.container.parentNode}},{key:"isSimple",value:function(){return!Ut()(this.args,function(C){return ze()(C)})}},{key:"updateSize",value:function(){var C=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],A=this.container.getBoundingClientRect(),B=A.width,K=A.height-1;this.height!==K&&(this.height=K,C||this.emit("updateHeight")),this.width!==B&&(this.width=B)}},{key:"html",value:function(){return this.container.outerHTML}},{key:"text",value:function(){return this.content.textContent||""}},{key:"select",value:function(){this.$container.addClass(this.console.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.console.c("selected"))}},{key:"copy",value:function(){var C=this.args,A="";I()(C,function(B,K){K!==0&&(A+=" "),ze()(B)?A+=st()(B):A+=_()(B)}),Ke()(A)}},{key:"bindEvent",value:function(){var C=this,A=this.console.c,B=this;this.resizeSensor.addListener(this.onResize),this.$container.on("click",A(".dom-viewer"),function(K){return K.stopPropagation()}).on("click",A(".preview"),function(K){K.stopPropagation();var je=yt()(this).find(A(".preview-icon-container")).find(A(".icon")),he="caret-down";je.hasClass(A("icon-caret-down"))&&(he="caret-right"),je.rmAttr("class").addClass([A("icon"),A("icon-".concat(he))]),B.renderObjectViewer(this)}).on("click",function(){return C.click()})}},{key:"renderEl",value:function(){var C=this.elements,A=this.console.c,B=this;this.$container.find(A(".dom-viewer")).each(function(){var K=yt()(this).data("id");new ve.Z(this,{node:C[K],theme:B.console.getOption("theme")})})}},{key:"renderObjectViewer",value:function(C){var A=this.console,B=this.unenumerable,K=this.accessGetter,je=this.lazyEvaluation,he=A.c,Ge=yt()(C),Ye=Ge.data("id");if(Ye){var rt=this.objects[Ye],Ct=Ge.find(he(".json"));if(Ct.hasClass(he("hidden"))){if(Ct.data("init")!=="true"){if(je){var Et=new Qe.Z(Ct.get(0),{unenumerable:B,accessGetter:K});Et.setOption("theme",A.getOption("theme")),Et.set(rt)}else{var Rt=new Qe.q(Ct.get(0));Rt.setOption("theme",A.getOption("theme")),Rt.set(rt)}Ct.data("init","true")}Ct.rmClass(he("hidden"))}else Ct.addClass(he("hidden"))}}},{key:"renderTable",value:function(C){var A=this,B="__LunaConsoleValue",K=this.columns,je=this.$container,he=this.console,Ge=he.c,Ye=je.find(Ge(".data-grid")),rt=C[0],Ct=new oe.Z(Ye.get(0),{columns:we()([{id:"(index)",title:"(index)",sortable:!0}],P()(K,function(Et){return{id:Et,title:Et===B?"Value":Et,sortable:!0}})),theme:he.getOption("theme")});I()(rt,function(Et,Rt){var Ht={"(index)":_()(Rt)};K.forEach(function(At){ze()(Et)?Ht[At]=At===B?"":A.formatTableVal(Et[At]):le()(Et)&&(Ht[At]=At===B?A.formatTableVal(Et):"")}),Ct.append(Ht)})}},{key:"extractObj",value:function(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=arguments.length>2?arguments[2]:void 0,K=this.accessGetter,je=this.unenumerable;$e()(A,{accessGetter:K,unenumerable:je,symbol:je,timeout:1e3}),function(he,Ge,Ye){var rt=lt()(he,Ge);Tt()(function(){return Ye(rt)})}(C,A,function(he){return B(JSON.parse(he))})}},{key:"click",value:function(){var C=this.type,A=this.$container,B=this.console,K=B.c;switch(C){case"log":case"warn":case"info":case"debug":case"output":case"table":case"dir":break;case"group":case"groupCollapsed":B.toggleGroup(this);break;case"error":A.find(K(".stack")).toggleClass(K("hidden"))}}},{key:"formatMsg",value:function(){var C=this.args,A=this.type,B=this.id,K=this.header,je=this.group,he=this.console.c;C=ue()(C);var Ge,Ye,rt="";switch(A!=="group"&&A!=="groupCollapsed"||C.length===0&&(C=["console.group"]),A){case"log":case"info":case"debug":rt=this.formatCommon(C);break;case"dir":rt=this.formatDir(C);break;case"warn":Ge="warn",rt=this.formatCommon(C);break;case"error":pt()(C[0])&&C.length!==1&&(C=this.substituteStr(C)),Ye=C[0],Ge="error",Ye=ot()(Ye)?Ye:new Error(this.formatCommon(C)),rt=this.formatErr(Ye);break;case"table":rt=this.formatTable(C);break;case"html":rt=C[0];break;case"input":rt=this.formatJs(C[0]),Ge="input";break;case"output":rt=this.formatCommon(C),Ge="output";break;case"groupCollapsed":rt=this.formatCommon(C),Ge="caret-right";break;case"group":rt=this.formatCommon(C),Ge="caret-down"}p()(["log","debug","warn"],A)&&this.isSimple()&&(rt=Zt()(rt,function(Ct){return'').concat(Ct,"")})),rt=this.render({msg:rt,type:A,icon:Ge,id:B,header:K,group:je}),this.$container.addClass("".concat(he("log-container"))).html(rt),A==="table"&&(L()(this.columns)||this.renderTable(C)),L()(this.elements)||this.renderEl(),this.$content=this.$container.find(he(".log-content")),this.content=this.$content.get(0)}},{key:"render",value:function(C){var A=this.console.c,B="",K="";if(C.group)for(var je=C.group.indentLevel,he=0;he');C.header&&(B+=It()(V||(V=(0,r.Z)([` +
+ `,` +
+ `," ",` +
+
`])),A("header"),K,A("time-from-container"),C.header.time,C.header.from));var Ge="";return C.icon&&(Ge='
')),B+=` +
+ `).concat(K,` + `).concat(Ge,` +
+
+
+
+
').concat(C.msg,`
+
+
`)}},{key:"formatTable",value:function(C){var A=C[0],B=C[1],K=[];return pt()(B)&&(B=Mt()(B)),rn()(B)||(B=null),ze()(A)?(I()(A,function(je){le()(je)?K.push("__LunaConsoleValue"):ze()(je)&&(K=K.concat(ct()(je)))}),(K=ht()(K)).sort(),B&&(K=K.filter(function(je){return p()(B,je)})),K.length>20&&(K=K.slice(0,20)),L()(K)?this.formatCommon(C):(this.columns=K,this.console.c('
')+this.formatPreview(A))):this.formatCommon(C)}},{key:"formatErr",value:function(C){var A=C.stack?C.stack.split(` +`):[],B="".concat(C.message||A[0],"
");return A=A.map(function(K){return g()(K)}),B+'
').concat(A.slice(1).join("
"),"
").replace(Vn,function(K){return'').concat(K,"")})}},{key:"formatCommon",value:function(C){var A=this.console.c,B=pt()(C[0])&&C.length!==1;B&&(C=this.substituteStr(C));for(var K=0,je=C.length;K').concat(g()(_()(he)),"
"):ze()(he)?C[K]=this.formatPreview(he):mt()(he)?C[K]='undefined'):ut()(he)?C[K]='null'):be()(he)?C[K]='').concat(_()(he),""):typeof he=="bigint"?C[K]='').concat(_()(he),"n"):cn()(he)?C[K]='').concat(_()(he),""):jn()(he)?C[K]='').concat(g()(_()(he)),""):(he=_()(he),K===0&&B||(he=g()(he)),he.length>5e3&&(he=j()(he,5e3,{separator:" ",ellipsis:"…"})),C[K]=he)}return C.join(" ")}},{key:"formatDir",value:function(C){return ze()(C[0])?this.formatPreview(C[0]):this.formatCommon(C)}},{key:"formatTableVal",value:function(C){var A=this.console.c;return ze()(C)?"{…}":le()(C)?Yt()('
').concat(fe(C),"
")):_()(C)}},{key:"formatPreview",value:function(C){var A=this,B=this.console.c,K=Jt()();this.lazyEvaluation?this.objects[K]=C:this.extractObj(C,{},function(Ge){A.objects[K]=Ge});var je=p()(["dir","table"],this.type),he=Y(C);return he==="Array"&&C.length>1?(he="(".concat(C.length,")"),je&&(he="Array".concat(he))):he==="RegExp"?he=_()(C):Re()(C)&&(he=this.formatElName(C)),'
')+'
')+'
')+'')+'').concat(g()(he)," ")+'').concat(je?"":fe(C,{getterVal:this.accessGetter,unenumerable:!1}),"")+"
"+'
')}},{key:"substituteStr",value:function(C){var A=g()(C[0]),B=!1,K="";C.shift();for(var je=0,he=A.length;je"),B=!0,K+='');break;default:je--,C.unshift(Ye),K+=Ge}}else K+=Ge}return B&&(K+=""),C.unshift(K),C}},{key:"formatJs",value:function(C){return'
').concat(this.console.c(Wt()(C,"js",Mn)),"
")}},{key:"formatFn",value:function(C){return'
'.concat(this.formatJs(C.toString()),"
")}},{key:"formatElName",value:function(C){var A=C.id,B=C.className,K=C.tagName.toLowerCase();if(A!==""&&(K+="#".concat(A)),pt()(B)){var je="";I()(B.split(/\s+/g),function(he){he.trim()!==""&&(je+=".".concat(he))}),K+=je}return K}},{key:"formatEl",value:function(C){var A=Jt()();return this.elements[A]=C,this.console.c('
'))}}]),We}(de());function _n(Xe){var _t=(Xe=ie()(Xe)).split(";"),We={};I()(_t,function(A){if(p()(A,":")){var B=i(A.split(":"),2),K=B[0],je=B[1];We[$()(K)]=$()(je)}}),We.display="inline-block",We["max-width"]="100%",delete We.width,delete We.height;var C="";return I()(We,function(A,B){C+="".concat(B,":").concat(A,";")}),C}var Xn=e(1194),Bn=e.n(Xn),eo=e(8847),mn=e.n(eo),to=e(6329),Fn=e.n(to),no=e(9001),xn=e.n(no),oo=e(9702),ro=e.n(oo),io=e(2439),Kt=e.n(io),ao=e(8933),Ot=e.n(ao),so=e(4407),dn=e.n(so),co=e(5852),lo=e.n(co);function uo(Xe){var _t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var We,C=(0,h.Z)(Xe);if(_t){var A=(0,h.Z)(this).constructor;We=Reflect.construct(C,arguments,A)}else We=C.apply(this,arguments);return(0,l.Z)(this,We)}}var gn,fo=function(Xe){(0,n.Z)(We,Xe);var _t=uo(We);function We(C,A){var B,K,je=A.compName,he=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Ge=he===void 0?"light":he;return(0,s.Z)(this,We),(B=_t.call(this)).subComponents=[],B.compName=je,B.c=ee(je),B.options={},B.container=C,B.$container=yt()(C),B.$container.addClass(["luna-".concat(je),B.c("platform-".concat((K=qe()(),K==="os x"?"mac":K)))]),B.on("optionChange",function(Ye,rt,Ct){var Et=B.c;Ye==="theme"&&(B.$container.rmClass(Et("theme-".concat(Ct))).addClass(Et("theme-".concat(rt))),I()(B.subComponents,function(Rt){return Rt.setOption("theme",rt)}))}),B.setOption("theme",Ge),B}return(0,c.Z)(We,[{key:"destroy",value:function(){var C=this;this.destroySubComponents();var A=this.$container,B=A.attr("class");I()(B.split(/\s+/),function(K){E()(K,"luna-".concat(C.compName))&&A.rmClass(K)}),A.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(C,A){var B=this,K=this.options,je={};typeof C=="string"?je[C]=A:je=C,I()(je,function(he,Ge){var Ye=K[Ge];K[Ge]=he,B.emit("optionChange",Ge,he,Ye)})}},{key:"getOption",value:function(C){return this.options[C]}},{key:"addSubComponent",value:function(C){C.setOption("theme",this.options.theme),this.subComponents.push(C)}},{key:"removeSubComponent",value:function(C){lo()(this.subComponents,function(A){return A===C})}},{key:"destroySubComponents",value:function(){I()(this.subComponents,function(C){return C.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$e()(C,A),Fn()(this.options,C)}},{key:"find",value:function(C){return this.$container.find(this.c(C))}}]),We}(de()),ho=e(1571),Ln=e.n(ho);function po(Xe){var _t=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var We,C=(0,h.Z)(Xe);if(_t){var A=(0,h.Z)(this).constructor;We=Reflect.construct(C,arguments,A)}else We=C.apply(this,arguments);return(0,l.Z)(this,We)}}u=e.hmd(u);var Pn=navigator.userAgent,vo=Pn.indexOf("Android")>-1||Pn.indexOf("Adr")>-1,mo=0,In=function(Xe){(0,n.Z)(We,Xe);var _t=po(We);function We(C){var A,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,s.Z)(this,We),(A=_t.call(this,C,{compName:"console"},B)).spaceHeight=0,A.topSpaceHeight=0,A.bottomSpaceHeight=0,A.lastScrollTop=0,A.lastTimestamp=0,A.speedToleranceFactor=100,A.maxSpeedTolerance=2e3,A.minSpeedTolerance=100,A.logs=[],A.displayLogs=[],A.timer={},A.counter={},A.asyncList=[],A.asyncTimer=null,A.isAtBottom=!0,A.groupStack=new(xn()),A.selectedLog=null,A.onScroll=function(){var K=A.container,je=K.scrollHeight,he=K.offsetHeight,Ge=K.scrollTop;if(!(Ge<=0||he+Ge>je)){var Ye=!1;(je===he||Ge===je-he)&&(Ye=!0),A.isAtBottom=Ye;var rt=A.lastScrollTop,Ct=A.lastTimestamp,Et=mn()(),Rt=Et-Ct,Ht=Ge-rt,At=Math.abs(Ht/Rt)*A.speedToleranceFactor;Rt>1e3&&(At=1e3),At>A.maxSpeedTolerance&&(At=A.maxSpeedTolerance),AtGe+he+Qt||A.renderViewport({topTolerance:2*Dt,bottomTolerance:2*Qt})}},A.initTpl(),A.initOptions(B,{maxNum:0,asyncRender:!0,showHeader:!1,filter:"",level:["verbose","info","warning","error"],accessGetter:!1,unenumerable:!0,lazyEvaluation:!0}),A.$el=A.find(".logs"),A.el=A.$el.get(0),A.$fakeEl=A.find(".fake-logs"),A.fakeEl=A.$fakeEl.get(0),A.$space=A.find(".logs-space"),A.space=A.$space.get(0),vo&&(A.speedToleranceFactor=800,A.maxSpeedTolerance=3e3,A.minSpeedTolerance=800),A.resizeSensor=new(se())(C),A.renderViewport=Kt()(function(K){A._renderViewport(K)},16),A.global={copy:function(K){pt()(K)||(K=JSON.stringify(K,null,2)),Ke()(K)},$:function(K){return document.querySelector(K)},$$:function(K){return Mt()(document.querySelectorAll(K))},$x:function(K){return Ot()(K)},clear:function(){A.clear()},dir:function(K){A.dir(K)},table:function(K,je){A.table(K,je)},keys:ct()},A.bindEvent(),A}return(0,c.Z)(We,[{key:"setGlobal",value:function(C,A){this.global[C]=A}},{key:"destroy",value:function(){this.$container.off("scroll",this.onScroll),this.resizeSensor.destroy(),(0,d.Z)((0,h.Z)(We.prototype),"destroy",this).call(this)}},{key:"count",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",A=this.counter;mt()(A[C])?A[C]=1:A[C]++,this.info("".concat(C,": ").concat(A[C]))}},{key:"countReset",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.counter[C]=0}},{key:"assert",value:function(){for(var C=arguments.length,A=new Array(C),B=0;B0&&arguments[0]!==void 0?arguments[0]:"default";if(this.timer[C])return this.insert("warn",["Timer '".concat(C,"' already exists")]);this.timer[C]=Bn()()}},{key:"timeLog",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default",A=this.timer[C];if(!A)return this.insert("warn",["Timer '".concat(C,"' does not exist")]);this.info("".concat(C,": ").concat(Bn()()-A,"ms"))}},{key:"timeEnd",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"default";this.timeLog(C),delete this.timer[C]}},{key:"clear",value:function(){var C=arguments.length>0&&arguments[0]!==void 0&&arguments[0];this.logs=[],this.displayLogs=[],this.selectLog(null),this.lastLog=void 0,this.counter={},this.timer={},this.groupStack=new(xn()),this.asyncList=[],this.asyncTimer&&(clearTimeout(this.asyncTimer),this.asyncTimer=null),C?this.render():this.insert("log",["%cConsole was cleared","color:#808080;font-style:italic;"])}},{key:"info",value:function(){for(var C=arguments.length,A=new Array(C),B=0;B0&&(K.group=Ge.peek()),Fn()(K,{id:++mo,accessGetter:Ct,unenumerable:Et,lazyEvaluation:Rt}),K.type==="group"||K.type==="groupCollapsed"){var Ht={id:Jt()("group"),collapsed:!1,parent:Ge.peek(),indentLevel:Ge.size+1};K.type==="groupCollapsed"&&(Ht.collapsed=!0),K.targetGroup=Ht,Ge.push(Ht)}var At=new Kn(this,K);At.on("updateHeight",function(){je.isAtBottom=!1,je.renderViewport()});var Dt=this.lastLog;if(Dt&&!p()(["html","group","groupCollapsed"],At.type)&&Dt.type===At.type&&At.isSimple()&&Dt.text()===At.text()?(Dt.addCount(),At.header&&Dt.updateTime(At.header.time),At=Dt,this.detachLog(Dt)):(he.push(At),this.lastLog=At),rt!==0&&he.length>rt){var Qt=he[0];this.detachLog(Qt),he.shift()}this.attachLog(At),this.emit("insert",At)}},{key:"updateTopSpace",value:function(C){this.topSpaceHeight=C,this.el.style.top=C+"px"}},{key:"updateBottomSpace",value:function(C){this.bottomSpaceHeight=C}},{key:"updateSpace",value:function(C){this.spaceHeight!==C&&(this.spaceHeight=C,this.space.style.height=C+"px")}},{key:"detachLog",value:function(C){var A=this.displayLogs,B=A.indexOf(C);B>-1&&(A.splice(B,1),this.renderViewport())}},{key:"attachLog",value:function(C){if(this.filterLog(C)&&!C.collapsed){var A=this.displayLogs;if(A.length===0)return A.push(C),void this.renderViewport();var B=ro()(A);if(C.id>B.id)return A.push(C),void this.renderViewport();for(var K,je=0,he=A.length-1,Ge=0;je<=he;){if((K=A[Ge=je+Math.floor((he-je)/2)]).id===C.id)return;K.id0&&arguments[0]!==void 0?arguments[0]:20,B=this.asyncList;this.asyncTimer||(this.asyncTimer=setTimeout(function(){C.asyncTimer=null;var K,je,he=!1,Ge=B.length;Ge<1e3?(je=200,K=400):Ge<5e3?(je=500,K=800):Ge<1e4?(je=800,K=1e3):Ge<25e3?(je=1e3,K=1200):Ge<5e4?(je=1500,K=1500):(je=2e3,K=2500),je>Ge&&(je=Ge,he=!0);for(var Ye=0;Ye0&&Ge.length>he&&(C.logs=Ge.slice(Ge.length-he),C.render());break;case"filter":C.render();break;case"level":C.options.level=Mt()(he),C.render()}}),this.$container.on("scroll",this.onScroll)}},{key:"_renderViewport",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=C.topTolerance,B=A===void 0?500:A,K=C.bottomTolerance,je=K===void 0?500:K,he=this.el,Ge=this.container,Ye=this.space;if(!X()(Ge)){for(var rt=Ge.scrollTop,Ct=Ge.offsetHeight,Et=Ye.getBoundingClientRect().width,Rt=rt-B,Ht=rt+Ct+je,At=this.displayLogs,Dt=0,Qt=0,qt=0,bn=At.length,An=this.fakeEl,kn=document.createDocumentFragment(),ln=[],Xt=0;Xt0){An.appendChild(kn);for(var fn=0,Cn=ln.length;fnHt?Qt+=hn:qt+hn>Rt?Sn.appendChild(Rn):qt +
+
+ + `])))))}}]),We}(fo),go=function(){return dn()("HH:MM:ss ")};function zn(){for(var Xe=new Error,_t="",We=Xe.stack?Xe.stack.split(` +`):"",C=0,A=We.length;C-1&&C]*>/g.test(ue))try{var Te=I().parse(ue);return F(Te,function(ie){ie.attrs&&ie.attrs.class&&(ie.attrs.class=tt(ie.attrs.class))}),I().stringify(Te)}catch{return tt(ue)}return tt(ue)}}function F(gt,ht){for(var tt=0,ue=gt.length;tt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var tt,ue=(0,l.Z)(gt);if(ht){var Te=(0,l.Z)(this).constructor;tt=Reflect.construct(ue,arguments,Te)}else tt=ue.apply(this,arguments);return(0,n.Z)(this,tt)}}var re,fe=function(gt){(0,d.Z)(tt,gt);var ht=W(tt);function tt(ue,Te){var ie,M,ct=Te.compName,xt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,yt=xt===void 0?"light":xt;return(0,a.Z)(this,tt),(ie=ht.call(this)).subComponents=[],ie.compName=ct,ie.c=N(ct),ie.options={},ie.container=ue,ie.$container=m()(ue),ie.$container.addClass(["luna-".concat(ct),ie.c("platform-".concat((M=j()(),M==="os x"?"mac":M)))]),ie.on("optionChange",function(Ve,et,Fe){var de=ie.c;Ve==="theme"&&(ie.$container.rmClass(de("theme-".concat(Fe))).addClass(de("theme-".concat(et))),pe()(ie.subComponents,function(ge){return ge.setOption("theme",et)}))}),ie.setOption("theme",yt),ie}return(0,i.Z)(tt,[{key:"destroy",value:function(){var ue=this;this.destroySubComponents();var Te=this.$container,ie=Te.attr("class");pe()(ie.split(/\s+/),function(M){ee()(M,"luna-".concat(ue.compName))&&Te.rmClass(M)}),Te.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(ue,Te){var ie=this,M=this.options,ct={};typeof ue=="string"?ct[ue]=Te:ct=ue,pe()(ct,function(xt,yt){var Ve=M[yt];M[yt]=xt,ie.emit("optionChange",yt,xt,Ve)})}},{key:"getOption",value:function(ue){return this.options[ue]}},{key:"addSubComponent",value:function(ue){ue.setOption("theme",this.options.theme),this.subComponents.push(ue)}},{key:"removeSubComponent",value:function(ue){_e()(this.subComponents,function(Te){return Te===ue})}},{key:"destroySubComponents",value:function(){pe()(this.subComponents,function(ue){return ue.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(ue){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ne()(ue,Te),Se()(this.options,ue)}},{key:"find",value:function(ue){return this.$container.find(this.c(ue))}}]),tt}(_()),Be=e(8901),De=e.n(Be),Pe=e(8613),V=e.n(Pe),Qe=e(3367),oe=e.n(Qe),ve=e(9833),ke=e.n(ve),se=e(1286),Ee=e.n(se),ze=e(242),it=e.n(ze),pt=e(2439),Ue=e.n(pt),ot=e(6156),Ie=e.n(ot),le=e(4777),Oe=e.n(le),$e=e(1754),Ze=e.n($e),Re=e(6768),me=e.n(Re),te=e(3063),xe=e.n(te),we=e(9882),He=e.n(we),ut=e(9853),at=e.n(ut),mt=e(6435),kt=e.n(mt);function wt(gt){var ht=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var tt,ue=(0,l.Z)(gt);if(ht){var Te=(0,l.Z)(this).constructor;tt=Reflect.construct(ue,arguments,Te)}else tt=ue.apply(this,arguments);return(0,n.Z)(this,tt)}}u=e.hmd(u);var jt=m()(document),Mt=function(gt){(0,d.Z)(tt,gt);var ht=wt(tt);function tt(ue,Te){var ie;(0,a.Z)(this,tt),(ie=ht.call(this,ue,{compName:"data-grid"},Te)).resizeIdx=0,ie.resizeStartX=0,ie.resizeStartLeft=0,ie.resizeDeltaX=0,ie.nodes=[],ie.colWidthsInitialized=!1,ie.colMap={},ie.selectedNode=null,ie.isAscending=!0,ie.colWidths=[],ie.onResizeColMove=function(Ve){var et=(0,s.Z)(ie),Fe=et.resizeIdx,de=et.$resizers,ge=et.colWidths,Me=et.$colgroup,dt=Ce("x",Ve=Ve.origEvent)-ie.resizeStartX,st=ge[Fe],nt=ge[Fe+1],Ke=kt()(24-st,0),vt=at()(nt-24,0);dt=He()(dt,Ke,vt),Me.each(function(){var bt=m()(this).find("col");bt.eq(Fe).css("width",st+dt+"px"),bt.eq(Fe+1).css("width",nt-dt+"px")}),ie.resizeDeltaX=dt;var lt=ie.resizeStartLeft+dt;de.eq(Fe).css("left","".concat(lt,"px"))},ie.onResizeColEnd=function(Ve){ie.onResizeColMove(Ve);var et=(0,s.Z)(ie),Fe=et.c,de=et.colWidths,ge=et.resizeIdx,Me=et.resizeDeltaX,dt=ie.options.columns,st=dt[ge],nt=dt[ge+1],Ke=de[ge]+Me,vt=Ke+(de[ge+1]-Me),lt=st.weight+nt.weight,bt=lt*(Ke/vt),Tt=lt-bt;st.weight=bt,nt.weight=Tt,ie.applyColWeights(),m()(document.body).rmClass(Fe("resizing")),jt.off(ce("move"),ie.onResizeColMove),jt.off(ce("end"),ie.onResizeColEnd)},ie.$container.attr("tabindex","0"),ie.resizeSensor=new(it())(ue),ie.onResize=Ue()(function(){ie.updateHeight(),ie.updateWeights()},16),Te.height&&(Te.maxHeight=Te.height,Te.minHeight=Te.height),ie.initOptions(Te,{minHeight:41,maxHeight:1/0,filter:""});var M=ie.options,ct=M.columns,xt=M.minHeight,yt=M.maxHeight;return pe()(ct,function(Ve){Ne()(Ve,{sortable:!1}),ie.colMap[Ve.id]=Ve}),yt-1&&(ue.detach(),Te.splice(ie,1),ue===this.selectedNode&&this.selectNode(Te[ie]||Te[ie-1]||null),this.updateHeight())}},{key:"append",value:function(ue,Te){var ie=new $t(this,ue,Te);return this.nodes.push(ie),this.sortId?this.sortNodes(this.sortId,this.isAscending):this.filterNode(ie)&&(this.tableBody.insertBefore(ie.container,this.fillerRow),this.updateHeight()),ie}},{key:"clear",value:function(){pe()(this.nodes,function(ue){return ue.detach()}),this.nodes=[],this.selectNode(null),this.updateHeight()}},{key:"updateHeight",value:function(){var ue=this.$fillerRow,Te=this.c,ie=this.$container,M=this.options,ct=M.maxHeight,xt=M.minHeight;this.$dataContainer.css({height:"auto"});var yt=this.$headerRow.offset().height+ye(ie.css("border-top-width"))+ye(ie.css("border-bottom-width"));(xt-=yt)<0&&(xt=0),ct-=yt;var Ve=this.$dataContainer.find(Te(".node")),et=Ve.length,Fe=0;et>0&&(Fe=Ve.offset().height*et),Fe>xt?ue.hide():ue.show(),Fe=ct&&(Fe=ct),this.$dataContainer.css({height:Fe})}},{key:"selectNode",value:function(ue){var Te;(Ie()(ue)||ue!=null&&ue.selectable)&&(this.selectedNode&&(this.selectedNode.deselect(),this.selectedNode=null),Ie()(ue)?this.emit("deselect"):(this.selectedNode=ue,(Te=this.selectedNode)===null||Te===void 0||Te.select(),this.emit("select",ue)))}},{key:"onResizeColStart",value:function(ue){var Te=this.c,ie=this.resizeIdx,M=this.$resizers;ue.stopPropagation(),ue.preventDefault(),ue=ue.origEvent,this.resizeStartX=Ce("x",ue),this.resizeStartLeft=ye(M.eq(ie).css("left")),m()(document.body).addClass(Te("resizing")),jt.on(ce("move"),this.onResizeColMove),jt.on(ce("end"),this.onResizeColEnd)}},{key:"bindEvent",value:function(){var ue=this,Te=this.c,ie=this.$headerRow,M=this.$tableBody,ct=this.$resizers;this.resizeSensor.addListener(this.onResize);var xt=this;M.on("click",Te(".node"),function(){xt.selectNode(this.dataGridNode)}),ie.on("click",Te(".sortable"),function(yt){yt.stopPropagation();var Ve=m()(this),et=Ve.data("id"),Fe=Ve.data("order")!=="descending";Ve.data("order",Fe?"descending":"ascending"),xt.sortNodes(et,Fe),ie.find("th").each(function(){var de=m()(this);de.data("id")!==et&&de.rmAttr("data-order")})}),ct.on(ce("start"),function(yt){var Ve=m()(this);xt.resizeIdx=L()(Ve.data("idx")),xt.onResizeColStart(yt)}),this.on("optionChange",function(yt){switch(yt){case"minHeight":case"maxHeight":ue.updateHeight();break;case"filter":ue.renderData()}})}},{key:"sortNodes",value:function(ue,Te){var ie=this.colMap[ue].comparator||rn;this.nodes.sort(function(M,ct){var xt=M.data[ue],yt=ct.data[ue];return ke()(xt)&&(xt=xt.innerText),ke()(yt)&&(yt=yt.innerText),Te?ie(xt,yt):ie(yt,xt)}),this.renderData(),this.sortId=ue,this.isAscending=Te}},{key:"updateWeights",value:function(){var ue=this.container,Te=this.$headerRow,ie=this.options.columns,M=ue.offsetWidth;if(!this.colWidthsInitialized&&M){for(var ct=0,xt=ie.length;ct'),this.colWidths[de]=Me}Te.html(Ve),this.positionResizers()}}},{key:"positionResizers",value:function(){for(var ue=this.colWidths,Te=[],ie=ue.length-1,M=0;M').concat(ct,"")):Te+="".concat(ct,""),ie+=""}),this.$headerRow.html(Te),this.$fillerRow.html(ie)}},{key:"renderResizers",value:function(){for(var ue="",Te=this.options.columns.length-1,ie=0;ie'));this.$container.append(ue),this.$resizers=this.find(".resizer")}},{key:"initTpl",value:function(){this.$container.html(this.c(g()(re||(re=(0,r.Z)([` +
+ + + + + +
+
+
+ + + + + +
+
+ `])))))}}]),tt}(fe),$t=function(){function gt(ht,tt){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{selectable:!1};(0,a.Z)(this,gt),this.container=V()("tr"),this.selectable=!1,this.container.dataGridNode=this,this.$container=m()(this.container),this.$container.addClass(ht.c("node")),this.dataGrid=ht,this.data=tt,ue.selectable&&(this.selectable=ue.selectable),this.render()}return(0,i.Z)(gt,[{key:"text",value:function(){return this.$container.text()}},{key:"detach",value:function(){this.$container.remove()}},{key:"select",value:function(){this.$container.addClass(this.dataGrid.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.dataGrid.c("selected"))}},{key:"render",value:function(){var ht=this.data,tt=this.$container,ue=this.container,Te=this.dataGrid.getOption("columns");tt.html(""),pe()(Te,function(ie){var M=V()("td"),ct=ht[ie.id];Ee()(ct)||(ke()(ct)?M.appendChild(ct):M.innerText=oe()(ct)),ue.appendChild(M)})}}]),gt}();function rn(gt,ht){if(gt=oe()(gt),ht=oe()(ht),ee()(gt,"_")&&!ee()(ht,"_"))return 1;if(ee()(ht,"_")&&!ee()(gt,"_"))return-1;for(var tt,ue,Te,ie,M=/^\d+|^\D+/;;){if(!gt)return ht?-1:0;if(!ht)return 1;if(tt=gt.match(M)[0],ue=ht.match(M)[0],Te=!isNaN(tt),ie=!isNaN(ue),Te&&!ie)return-1;if(ie&&!Te)return 1;if(Te&&ie){var ct=tt-ue;if(ct)return ct;if(tt.length!==ue.length)return+tt||+ue?ue.length-tt.length:tt.length-ue.length}else if(tt!==ue)return tt]*>/g.test(le))try{var Oe=z().parse(le);return L(Oe,function($e){$e.attrs&&$e.attrs.class&&($e.attrs.class=Ie($e.attrs.class))}),z().stringify(Oe)}catch{return Ie(le)}return Ie(le)}}function L(Ue,ot){for(var Ie=0,le=Ue.length;Ie"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ie,le=(0,l.Z)(Ue);if(ot){var Oe=(0,l.Z)(this).constructor;Ie=Reflect.construct(le,arguments,Oe)}else Ie=le.apply(this,arguments);return(0,n.Z)(this,Ie)}}var ye,ae=function(Ue){(0,d.Z)(Ie,Ue);var ot=Ce(Ie);function Ie(le,Oe){var $e,Ze=Oe.compName,Re=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,me=Re===void 0?"light":Re;return(0,i.Z)(this,Ie),($e=ot.call(this)).subComponents=[],$e.compName=Ze,$e.c=G(Ze),$e.options={},$e.container=le,$e.$container=g()(le),$e.$container.addClass(["luna-".concat(Ze),$e.c("platform-".concat(j()))]),$e.on("optionChange",function(te,xe,we){var He=$e.c;te==="theme"&&($e.$container.rmClass(He("theme-".concat(we))).addClass(He("theme-".concat(xe))),F()($e.subComponents,function(ut){return ut.setOption("theme",xe)}))}),$e.setOption("theme",me),$e}return(0,s.Z)(Ie,[{key:"destroy",value:function(){this.destroySubComponents();var le=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(le("platform-".concat(j()))).rmClass(le("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(le,Oe){var $e=this,Ze=this.options,Re={};typeof le=="string"?Re[le]=Oe:Re=le,F()(Re,function(me,te){var xe=Ze[te];Ze[te]=me,$e.emit("optionChange",te,me,xe)})}},{key:"getOption",value:function(le){return this.options[le]}},{key:"addSubComponent",value:function(le){le.setOption("theme",this.options.theme),this.subComponents.push(le)}},{key:"removeSubComponent",value:function(le){ce()(this.subComponents,function(Oe){return Oe===le})}},{key:"destroySubComponents",value:function(){F()(this.subComponents,function(le){return le.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(le){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};q()(le,Oe),J()(this.options,le)}},{key:"find",value:function(le){return this.$container.find(this.c(le))}}]),Ie}(m()),pe=e(8613),be=e.n(pe),Se=e(5972),Je=e.n(Se),Ne=e(1907),qe=e.n(Ne),_e=e(1352),X=e.n(_e),ee=e(2289),W=e.n(ee),re=e(3651),fe=e.n(re),Be=e(7756),De=e.n(Be),Pe=e(8901),V=e.n(Pe),Qe=e(1672),oe=e.n(Qe);function ve(Ue,ot){var Ie=Object.keys(Ue);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(Ue);ot&&(le=le.filter(function(Oe){return Object.getOwnPropertyDescriptor(Ue,Oe).enumerable})),Ie.push.apply(Ie,le)}return Ie}function ke(Ue){for(var ot=1;ot"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ie,le=(0,l.Z)(Ue);if(ot){var Oe=(0,l.Z)(this).constructor;Ie=Reflect.construct(le,arguments,Oe)}else Ie=le.apply(this,arguments);return(0,n.Z)(this,Ie)}}u=e.hmd(u);var Ee={comment:"",string:"",number:"",keyword:"",operator:""},ze=function(Ue){(0,d.Z)(Ie,Ue);var ot=se(Ie);function Ie(le){var Oe,$e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,i.Z)(this,Ie),(Oe=ot.call(this,le,{compName:"dom-viewer"},$e)).isExpanded=!1,Oe.childNodes=[],Oe.childNodeDomViewers=[],Oe.toggle=function(){Oe.isExpanded?Oe.collapse():Oe.expand()},Oe.initOptions($e,{node:document.documentElement,parent:null,isEndTag:!1,rootContainer:le,rootDomViewer:(0,c.Z)(Oe),ignore:function(){return!1}}),Oe.initTpl(),Oe.bindEvent(),Oe.options.isEndTag||Oe.initObserver(),Oe}return(0,s.Z)(Ie,[{key:"select",value:function(le){var Oe=this.c,$e=this.options;if(!le||le&&$e.node===le)return this.$tag.hasClass(Oe("selected"))?void 0:(g()(this.options.rootContainer).find(Oe(".selected")).rmClass(Oe("selected")).rmAttr("tabindex"),this.$tag.attr("tabindex","0").get(0).focus(),this.$tag.addClass(Oe("selected")),void $e.rootDomViewer.emit("select",$e.node));if(le.nodeType===Node.ELEMENT_NODE)for(var Ze=le,Re=le.parentElement;Re;){if(Re===$e.node){this.expand(),this.childNodeDomViewers[this.childNodes.indexOf(Ze)].select(le);break}Ze=Re,Re=Re.parentElement}}},{key:"attach",value:function(){this.container.appendChild(this.$tag.get(0)),this.$children&&this.container.appendChild(this.$children.get(0))}},{key:"isAttached",value:function(){return!!this.$tag.get(0).parentNode}},{key:"detach",value:function(){this.$tag.remove(),this.$children&&this.$children.remove()}},{key:"expand",value:function(){this.isExpandable()&&!this.isExpanded&&(this.isExpanded=!0,this.renderExpandTag(),this.renderChildNodes())}},{key:"collapse",value:function(){this.isExpandable()&&this.isExpanded&&(this.isExpanded=!1,this.renderCollapseTag())}},{key:"destroy",value:function(){var le=this.c;this.$tag.hasClass(le("selected"))&&this.options.rootDomViewer.emit("deselect"),this.detach(),this.observer&&this.observer.disconnect(),this.destroySubComponents(),this.options.rootDomViewer===this&&this.$container.rmClass("luna-dom-viewer").rmClass(le("platform-".concat(j()))).rmClass(le("theme-".concat(this.options.theme))),this.emit("destroy"),this.removeAllListeners()}},{key:"renderExpandTag",value:function(){var le=this.$tag,Oe=this.c,$e=this.options.node;le.html(this.renderHtmlTag(ke(ke({},it($e)),{},{hasTail:!1,hasToggleButton:!0}))),le.addClass(Oe("expanded")),this.$children.rmClass(Oe("hidden"))}},{key:"renderCollapseTag",value:function(){var le=this.$tag,Oe=this.c,$e=this.options.node;this.$children.addClass(Oe("hidden")),this.$tag.html(this.renderHtmlTag(ke(ke({},it($e)),{},{hasTail:!0,hasToggleButton:!0}))),le.rmClass(Oe("expanded"))}},{key:"initObserver",value:function(){var le=this;this.observer=new(W())(function(Oe){F()(Oe,function($e){le.handleMutation($e)})}),this.observer.observe(this.options.node,{attributes:!0,childList:!0,characterData:!0})}},{key:"handleMutation",value:function(le){var Oe=this.$tag,$e=this.c,Ze=this.options,Re=Ze.node,me=Ze.ignore;if(I()(["attributes","childList"],le.type)){if(le.type==="childList"){if(oe()(le.addedNodes,me)&&oe()(le.removedNodes,me))return;this.renderChildNodes()}this.isExpandable()?this.isExpanded?this.renderExpandTag():this.renderCollapseTag():(this.$children.addClass($e("hidden")),Oe.html(this.renderHtmlTag(ke(ke({},it(Re)),{},{hasTail:!1}))))}else le.type==="characterData"&&(Re.nodeType===Node.TEXT_NODE?Oe.html(this.renderTextNode(Re)):Re.nodeType===Node.COMMENT_NODE&&Oe.html(this.renderHtmlComment(Re.nodeValue)))}},{key:"bindEvent",value:function(){var le=this,Oe=this.c,$e=this.$tag;this.options.node.nodeType===Node.ELEMENT_NODE&&$e.on("click",Oe(".toggle"),function(Ze){Ze.stopPropagation(),le.toggle()}),R?$e.on("click",function(){return le.select()}):$e.on("mousedown",function(){return le.select()})}},{key:"isExpandable",value:function(){return this.options.node.nodeType===Node.ELEMENT_NODE&&this.getChildNodes().length>0}},{key:"getChildNodes",value:function(){var le=this.options,Oe=le.rootContainer,$e=le.ignore,Ze=this.options.node,Re=X()(Ze.childNodes);return Re=Je()(Re,function(me){if(me.nodeType===Node.TEXT_NODE||me.nodeType===Node.COMMENT_NODE){var te=me.nodeValue;if(p()(te)==="")return!1}return me!==Oe&&!$e(me)})}},{key:"initTpl",value:function(){var le=this.container,Oe=this.c,$e=this.options,Ze=$e.node,Re=$e.isEndTag,me=g()(be()("li"));if(me.addClass(Oe("tree-item")),this.$tag=me,Re)me.html(Oe('</'.concat(Ze.tagName.toLocaleLowerCase(),'>')));else if(Ze.nodeType===Node.ELEMENT_NODE){var te=this.isExpandable(),xe=ke(ke({},it(Ze)),{},{hasTail:te,hasToggleButton:te});me.html(this.renderHtmlTag(xe))}else if(Ze.nodeType===Node.TEXT_NODE)me.html(this.renderTextNode(Ze));else{if(Ze.nodeType!==Node.COMMENT_NODE)return;var we=Ze.nodeValue;if(we.trim()==="")return;me.html(this.renderHtmlComment(we))}if(le.appendChild(me.get(0)),Ze.nodeType===Ze.ELEMENT_NODE){var He=g()(be()("ul"));He.addClass([Oe("children"),Oe("hidden")]),le.appendChild(He.get(0)),this.$children=He}}},{key:"renderChildNodes",value:function(){var le=this,Oe=this.options.node,$e=this.options,Ze=$e.rootContainer,Re=$e.ignore,me=$e.rootDomViewer,te=this.$children.get(0),xe=this.childNodes,we=this.childNodeDomViewers;F()(we,function(at){at.detach(),le.removeSubComponent(at)}),this.endTagDomViewer&&this.endTagDomViewer.detach();var He=this.getChildNodes();this.childNodes=He;var ut=[];this.childNodeDomViewers=ut,F()(He,function(at,mt){var kt,wt=xe.indexOf(at);(kt=wt>-1?we[wt]:new Ie(te,{node:at,parent:le,rootContainer:Ze,rootDomViewer:me,ignore:Re})).attach(),ut[mt]=kt,le.addSubComponent(kt)}),F()(we,function(at){at.isAttached()||at.destroy()}),Oe&&(this.endTagDomViewer?this.endTagDomViewer.attach():(this.endTagDomViewer=new Ie(te,{node:Oe,parent:this,isEndTag:!0,rootContainer:Ze,rootDomViewer:me,ignore:Re}),this.addSubComponent(this.endTagDomViewer)))}},{key:"renderHtmlTag",value:function(le){var Oe=_()(le.attributes,function(Re){var me=Re.name,te=Re.value,xe=Re.isLink;return` + `.concat(V()(me),"").concat(te?'="').concat(V()(te),'"'):"","")}).join(""),$e="";le.hasTail?$e="".concat(le.hasTail?"…":"",'</').concat(le.tagName,">"):this.isExpandable()||($e='</'.concat(le.tagName,">"));var Ze="";return le.hasToggleButton&&(Ze='
'),this.c(qe()(ye||(ye=(0,r.Z)([` + `,` + <`,"",">",` + `])),Ze,le.tagName,Oe,$e))}},{key:"renderTextNode",value:function(le){var Oe=this.c,$e=le.nodeValue,Ze=le.parentElement,Re='',me='';if(Ze&&$e.length<1e4){if(Ze.tagName==="STYLE")return Oe("".concat(Re).concat(fe()($e,"css",Ee)).concat(me));if(Ze.tagName==="SCRIPT")return Oe("".concat(Re).concat(fe()($e,"js",Ee)).concat(me))}return Oe('"'.concat(Re).concat(V()(De()($e,1e4,{separator:" ",ellipsis:"…"}))).concat(me,'"'))}},{key:"renderHtmlComment",value:function(le){return this.c('<!-- '.concat(V()(le),' -->'))}}]),Ie}(ae);function it(Ue){var ot={tagName:"",attributes:[]};ot.tagName=Ue.tagName.toLocaleLowerCase();var Ie=[];return F()(Ue.attributes,function(le){var Oe=le.name,$e=le.value;Ie.push({name:Oe,value:$e,isLink:pt(Ue,Oe)})}),ot.attributes=Ie,ot}function pt(Ue,ot){var Ie=Ue.tagName;return(Ie==="SCRIPT"||Ie==="IMAGE"||Ie==="VIDEO"||Ie==="AUDIO")&&ot==="src"||Ie==="LINK"&&ot==="href"}(function(Ue,ot){try{Ue.exports=ot,Ue.exports.default=ot}catch{}})(u,ze)},129:function(u,t,e){e.d(t,{Z:function(){return ee}});var r=e(907),a=e(181);function i(Pe){return function(V){if(Array.isArray(V))return(0,r.Z)(V)}(Pe)||function(V){if(typeof Symbol<"u"&&V[Symbol.iterator]!=null||V["@@iterator"]!=null)return Array.from(V)}(Pe)||(0,a.Z)(Pe)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var s=e(168),c=e(5671),d=e(3144),n=e(7326),l=e(1752),h=e(9340),m=e(2963),w=e(1120),g=e(1443),y=e.n(g),_=e(1512),f=e.n(_),p=e(2461),b=e.n(p),E=e(4331),D=e.n(E),z=e(5610),O=e.n(z),I=e(7483),Q=e.n(I),H=(e(3990),e(6341)),G=e.n(H),L=(e(3875),e(6954)),R=e.n(L);e(9585);function j(Pe){var V="luna-".concat(Pe,"-");function Qe(oe){return b()(D()(oe).split(/\s+/),function(ve){return G()(ve,V)?ve:ve.replace(/[\w-]+/,function(ke){return"".concat(V).concat(ke)})}).join(" ")}return function(oe){if(/<[^>]*>/g.test(oe))try{var ve=Q().parse(oe);return N(ve,function(ke){ke.attrs&&ke.attrs.class&&(ke.attrs.class=Qe(ke.attrs.class))}),Q().stringify(ve)}catch{return Qe(oe)}return Qe(oe)}}function N(Pe,V){for(var Qe=0,oe=Pe.length;Qe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Qe,oe=(0,w.Z)(Pe);if(V){var ve=(0,w.Z)(this).constructor;Qe=Reflect.construct(oe,arguments,ve)}else Qe=oe.apply(this,arguments);return(0,m.Z)(this,Qe)}}var be,Se=function(Pe){(0,h.Z)(Qe,Pe);var V=pe(Qe);function Qe(oe,ve){var ke,se,Ee=ve.compName,ze=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,it=ze===void 0?"light":ze;return(0,c.Z)(this,Qe),(ke=V.call(this)).subComponents=[],ke.compName=Ee,ke.c=j(Ee),ke.options={},ke.container=oe,ke.$container=f()(oe),ke.$container.addClass(["luna-".concat(Ee),ke.c("platform-".concat((se=R()(),se==="os x"?"mac":se)))]),ke.on("optionChange",function(pt,Ue,ot){var Ie=ke.c;pt==="theme"&&(ke.$container.rmClass(Ie("theme-".concat(ot))).addClass(Ie("theme-".concat(Ue))),Y()(ke.subComponents,function(le){return le.setOption("theme",Ue)}))}),ke.setOption("theme",it),ke}return(0,d.Z)(Qe,[{key:"destroy",value:function(){var oe=this;this.destroySubComponents();var ve=this.$container,ke=ve.attr("class");Y()(ke.split(/\s+/),function(se){ae()(se,"luna-".concat(oe.compName))&&ve.rmClass(se)}),ve.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(oe,ve){var ke=this,se=this.options,Ee={};typeof oe=="string"?Ee[oe]=ve:Ee=oe,Y()(Ee,function(ze,it){var pt=se[it];se[it]=ze,ke.emit("optionChange",it,ze,pt)})}},{key:"getOption",value:function(oe){return this.options[oe]}},{key:"addSubComponent",value:function(oe){oe.setOption("theme",this.options.theme),this.subComponents.push(oe)}},{key:"removeSubComponent",value:function(oe){Ce()(this.subComponents,function(ve){return ve===oe})}},{key:"destroySubComponents",value:function(){Y()(this.subComponents,function(oe){return oe.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(oe){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$()(oe,ve),P()(this.options,oe)}},{key:"find",value:function(oe){return this.$container.find(this.c(oe))}}]),Qe}(y()),Je=e(1907),Ne=e.n(Je),qe=e(8613),_e=e.n(qe);function X(Pe){var V=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Qe,oe=(0,w.Z)(Pe);if(V){var ve=(0,w.Z)(this).constructor;Qe=Reflect.construct(oe,arguments,ve)}else Qe=oe.apply(this,arguments);return(0,m.Z)(this,Qe)}}u=e.hmd(u);var ee=function(Pe){(0,h.Z)(Qe,Pe);var V=X(Qe);function Qe(oe){var ve,ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,c.Z)(this,Qe),(ve=V.call(this,oe,{compName:"modal"},ke)).render=function(){var se=(0,n.Z)(ve),Ee=se.options,ze=se.c,it=se.$body;Ee.title?(it.rmClass(ze("no-title")),ve.$title.text(Ee.title)):it.addClass(ze("no-title")),Ee.footer?(it.rmClass(ze("no-footer")),ve.$footer.html("").append(Ee.footer)):it.addClass(ze("no-footer")),Ee.showClose?ve.$close.show():ve.$close.hide(),ve.$body.css("width",Ee.width+"px"),ve.$content.html("").append(Ee.content)},ve.hide(),ve.initOptions(ke,{title:"",content:"",footer:"",showClose:!0,width:De()}),ve.initTpl(),ve.$title=ve.find(".title"),ve.$content=ve.find(".content"),ve.$body=ve.find(".body"),ve.$footer=ve.find(".footer"),ve.$close=ve.find(".icon-close"),ve.bindEvent(),ve}return(0,d.Z)(Qe,[{key:"show",value:function(){this.render(),this.$container.rmClass(this.c("hidden"))}},{key:"hide",value:function(){this.$container.addClass(this.c("hidden"))}},{key:"destroy",value:function(){(0,l.Z)((0,w.Z)(Qe.prototype),"destroy",this).call(this),this.$container.rmClass(this.c("hidden"))}},{key:"bindEvent",value:function(){var oe=this;this.$body.on("click",this.c(".icon-close"),function(){return oe.hide()}),this.on("optionChange",this.render)}},{key:"initTpl",value:function(){this.$container.html(this.c(Ne()(be||(be=(0,s.Z)([` +
+ +
+
+ +
+ `])))))}}],[{key:"alert",value:function(oe){var ve=fe(),ke=ve.c;ve.setOption({title:"",content:oe,width:De(),footer:Be({OK:{type:"primary",onclick:function(){ve.hide()}}},ke)}),ve.show()}},{key:"confirm",value:function(oe){return new Promise(function(ve){var ke=fe(),se=ke.c;ke.setOption({title:"",content:oe,width:De(),footer:Be({Cancel:{type:"secondary",onclick:function(){ke.hide(),ve(!1)}},OK:{type:"primary",onclick:function(){ke.hide(),ve(!0)}}},se)}),ke.show()})}},{key:"prompt",value:function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise(function(ke){var se=fe(),Ee=se.c,ze=_e()("input"+Ee(".input"),{value:ve});function it(){se.hide(),ke(ze.value)}f()(ze).on("keypress",function(Ue){(Ue=Ue.origEvent).key==="Enter"&&it()}),se.setOption({title:oe,content:ze,width:De(),footer:Be({Cancel:{type:"secondary",onclick:function(){se.hide(),ke(null)}},OK:{type:"primary",onclick:it}},Ee)}),se.show();var pt=ze.value.length;ze.setSelectionRange(pt,pt),ze.focus()})}},{key:"setContainer",value:function(oe){re=oe}}]),Qe}(Se),W=null,re=null;function fe(){return re||(re=_e()("div"),document.body.append(re)),W||(W=new ee(re,{showClose:!1})),W}function Be(Pe,V){var Qe=b()(Pe,function(oe,ve){return _e()(V(".button")+V("."+oe.type),{onclick:oe.onclick},ve)});return _e().apply(void 0,[V(".button-group"),{}].concat(i(Qe)))}function De(){return window.innerWidth<500?window.innerWidth-32:500}(function(Pe,V){try{Pe.exports=V,Pe.exports.default=V}catch{}})(u,ee)},8299:function(u,t,e){e.d(t,{q:function(){return M},Z:function(){return yt}});var r=e(1002),a=e(5671),i=e(3144),s=e(7326),c=e(1752),d=e(9340),n=e(2963),l=e(1120),h=e(415),m=e.n(h),w=e(3990),g=e.n(w),y=e(4696),_=e.n(y),f=e(3063),p=e.n(f),b=e(5166),E=e.n(b),D=e(6472),z=e.n(D),O=e(3023),I=e.n(O),Q=e(2533),H=e.n(Q),G=e(3783),L=e.n(G),R=e(300),j=e.n(R),N=e(4321),F=e.n(N),Y=e(3085),J=e.n(Y),P=e(1512),q=e.n(P),$=e(801),ce=e.n($),Ce=e(7756),ye=e.n(Ce),ae=e(6768),pe=e.n(ae),be=e(1116),Se=e.n(be),Je=e(5972),Ne=e.n(Je),qe=e(996),_e=e.n(qe),X=e(3367),ee=e.n(X),W=e(1214),re=e.n(W),fe=e(6339),Be=e.n(fe),De=e(6329),Pe=e.n(De),V=function(){function Ve(){(0,a.Z)(this,Ve),this.id=0,this.visited=[]}return(0,i.Z)(Ve,[{key:"set",value:function(et,Fe){var de=this.visited,ge=this.id,Me={id:ge,val:et};return Pe()(Me,Fe),de.push(Me),this.id++,ge}},{key:"get",value:function(et){for(var Fe=this.visited,de=0,ge=Fe.length;de500&&(Ve=Ve.slice(0,500)+"..."),"ƒ "+oe()(function(et){var Fe=et.match(ze);return Fe?Fe[0]:et}(Ve).replace("function",""))}var ze=/function(.*?)\((.*?)\)/,it=e(6930),pt=e.n(it),Ue=e(5229),ot=e.n(Ue),Ie=e(3875),le=e.n(Ie),Oe=e(9433),$e=e.n(Oe),Ze=e(1443),Re=e.n(Ze),me=e(2461),te=e.n(me),xe=e(5610),we=e.n(xe),He=e(7483),ut=e.n(He),at=e(6341),mt=e.n(at),kt=e(6954),wt=e.n(kt);e(9585);function jt(Ve){var et="luna-".concat(Ve,"-");function Fe(de){return te()(oe()(de).split(/\s+/),function(ge){return mt()(ge,et)?ge:ge.replace(/[\w-]+/,function(Me){return"".concat(et).concat(Me)})}).join(" ")}return function(de){if(/<[^>]*>/g.test(de))try{var ge=ut().parse(de);return Mt(ge,function(Me){Me.attrs&&Me.attrs.class&&(Me.attrs.class=Fe(Me.attrs.class))}),ut().stringify(ge)}catch{return Fe(de)}return Fe(de)}}function Mt(Ve,et){for(var Fe=0,de=Ve.length;Fe"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Fe,de=(0,l.Z)(Ve);if(et){var ge=(0,l.Z)(this).constructor;Fe=Reflect.construct(de,arguments,ge)}else Fe=de.apply(this,arguments);return(0,n.Z)(this,Fe)}}var Te=function(Ve){(0,d.Z)(Fe,Ve);var et=ue(Fe);function Fe(de,ge){var Me,dt=ge.compName,st=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,nt=st===void 0?"light":st;return(0,a.Z)(this,Fe),(Me=et.call(this)).subComponents=[],Me.compName=dt,Me.c=jt(dt),Me.options={},Me.container=de,Me.$container=q()(de),Me.$container.addClass(["luna-".concat(dt),Me.c("platform-".concat($t()))]),Me.on("optionChange",function(Ke,vt,lt){var bt=Me.c;Ke==="theme"&&(Me.$container.rmClass(bt("theme-".concat(lt))).addClass(bt("theme-".concat(vt))),L()(Me.subComponents,function(Tt){return Tt.setOption("theme",vt)}))}),Me.setOption("theme",nt),Me}return(0,i.Z)(Fe,[{key:"destroy",value:function(){this.destroySubComponents();var de=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(de("platform-".concat($t()))).rmClass(de("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(de,ge){var Me=this,dt=this.options,st={};typeof de=="string"?st[de]=ge:st=de,L()(st,function(nt,Ke){var vt=dt[Ke];dt[Ke]=nt,Me.emit("optionChange",Ke,nt,vt)})}},{key:"getOption",value:function(de){return this.options[de]}},{key:"addSubComponent",value:function(de){de.setOption("theme",this.options.theme),this.subComponents.push(de)}},{key:"removeSubComponent",value:function(de){tt()(this.subComponents,function(ge){return ge===de})}},{key:"destroySubComponents",value:function(){L()(this.subComponents,function(de){return de.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(de){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};gt()(de,ge),Pe()(this.options,de)}},{key:"find",value:function(de){return this.$container.find(this.c(de))}}]),Fe}(Re());function ie(Ve){var et=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Fe,de=(0,l.Z)(Ve);if(et){var ge=(0,l.Z)(this).constructor;Fe=Reflect.construct(de,arguments,ge)}else Fe=de.apply(this,arguments);return(0,n.Z)(this,Fe)}}var M=function(Ve){(0,d.Z)(Fe,Ve);var et=ie(Fe);function Fe(de){var ge;return(0,a.Z)(this,Fe),(ge=et.call(this,de,{compName:"object-viewer"})).onItemClick=function(Me){var dt=(0,s.Z)(ge),st=dt.map,nt=dt.c,Ke=q()(Me.curTarget),vt=Ke.data("object-id"),lt=Ke.find("span").eq(0);if(!Ke.data("first-level")&&(vt&&(Ke.find("ul").html(ge.objToHtml(st[vt],!1)),Ke.rmAttr("data-object-id")),Me.stopImmediatePropagation(),lt.hasClass(nt("expanded")))){var bt=Ke.find("ul").eq(0);lt.hasClass(nt("collapsed"))?(lt.rmClass(nt("collapsed")),bt.show()):(lt.addClass(nt("collapsed")),bt.hide()),ge.emit("change")}},ge.bindEvent(),ge}return(0,i.Z)(Fe,[{key:"set",value:function(de){pe()(de)&&(de=JSON.parse(de)),this.data={id:ot()("json"),enumerable:{0:de}},this.map={},ct(this.map,this.data),this.render()}},{key:"destroy",value:function(){(0,c.Z)((0,l.Z)(Fe.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(de,ge){var Me=this,dt="";return L()(["enumerable","unenumerable","symbol"],function(st){if(de[st]){var nt=H()(de[st]);Be()(nt);for(var Ke=0,vt=nt.length;Ke3&&arguments[3]!==void 0&&arguments[3],st=this.c,nt=(0,r.Z)(ge);if(ge===null)return"
  • ".concat(zt(de),'null
  • ');if(g()(ge)||_()(ge))return"
  • ".concat(zt(de),'').concat(se(ge),"
  • ");if(ge.type==="RegExp"&&(nt="regexp"),ge.type==="Number"&&(nt="number"),ge.type==="Number"||ge.type==="RegExp")return"
  • ".concat(zt(de),'').concat(se(ge.value),"
  • ");if(ge.type==="Undefined"||ge.type==="Symbol")return"
  • ".concat(zt(de),'').concat(p()(ge.type),"
  • ");if(ge==="(...)")return"
  • ".concat(zt(de),'').concat(ge,"
  • ");if(E()(ge)){var Ke=ge.id,vt=ge.reference,lt=function(Zt){var Lt=Zt.type,Wt=Zt.value;if(Lt)return Lt==="Function"?Ee(Wt):Lt==="Array"&&Zt.unenumerable?"Array(".concat(Zt.unenumerable.length,")"):Zt.type}(ge)||I()(nt),bt=dt?"":''),Tt="
  • ").concat(bt).concat(zt(de),'').concat(dt?"":lt,'
      ");return dt&&(Tt+=this.objToHtml(this.map[Ke])),Tt+'
  • ')}function zt(Zt){if(dt||E()(ge)&&ge.jsonSplitArr)return"";var Lt=st("key");return Me==="unenumerable"||Me==="symbol"?Lt=st("key-lighter"):Me==="proto"&&(Lt=st("key-special")),'').concat(se(Zt),": ")}return pe()(ge)&&ge.length>1e4&&(ge=ye()(ge,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(zt(de),'"').concat(se(ge),'"
  • ')}},{key:"render",value:function(){var de=this.map[this.data.id];this.$container.html(this.objToHtml(de,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),Fe}(Te);function ct(Ve,et){var Fe=et.id;if(Fe||Fe===0){if(et.type&&pt()(et.type,"Array")&&et.enumerable){var de=function(nt,Ke,vt){var lt=[],bt={};return L()(nt.enumerable,function(Tt,zt){var Zt=le()(zt);$e()(Zt)?bt[zt]=Tt:lt[Zt]=Tt}),lt.enumerable=bt,lt.type=vt,lt.id=Ke,nt.unenumerable&&(lt.unenumerable=nt.unenumerable),nt.symbol&&(lt.symbol=nt.symbol),nt.proto&&(lt.proto=nt.proto),lt}(et,Fe,et.type);de.length>100&&(et=function(nt){var Ke=0,vt={};L()(_e()(nt,100),function(bt){var Tt={},zt=Ke;Tt.type="["+zt,Tt.enumerable={},L()(bt,function(Lt){Tt.enumerable[Ke]=Lt,Ke+=1});var Zt=Ke-1;Tt.type+=(Zt-zt>0?" … "+Zt:"")+"]",Tt.id=ot()("json"),Tt.jsonSplitArr=!0,vt[Ke]=Tt});var lt={};return lt.enumerable=vt,lt.id=nt.id,lt.type=nt.type,nt.unenumerable&&(lt.unenumerable=nt.unenumerable),nt.symbol&&(lt.symbol=nt.symbol),nt.proto&&(lt.proto=nt.proto),lt}(de))}Ve[Fe]=et;var ge=[];L()(["enumerable","unenumerable","symbol"],function(nt){if(et[nt])for(var Ke in et[nt])ge.push(et[nt][Ke])}),et.proto&&ge.push(et.proto);for(var Me=0,dt=ge.length;Me"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Fe,de=(0,l.Z)(Ve);if(et){var ge=(0,l.Z)(this).constructor;Fe=Reflect.construct(de,arguments,ge)}else Fe=de.apply(this,arguments);return(0,n.Z)(this,Fe)}}u=e.hmd(u);var yt=function(Ve){(0,d.Z)(Fe,Ve);var et=xt(Fe);function Fe(de){var ge,Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,a.Z)(this,Fe),(ge=et.call(this,de,{compName:"object-viewer"})).onItemClick=function(dt){var st=(0,s.Z)(ge),nt=st.map,Ke=st.c,vt=q()(dt.curTarget),lt=vt.data("object-id"),bt=vt.find("span").eq(0);if(!vt.data("first-level")&&(lt&&(vt.find("ul").html(ge.objToHtml(nt[lt],!1)),vt.rmAttr("data-object-id")),dt.stopImmediatePropagation(),bt.hasClass(Ke("expanded")))){var Tt=vt.find("ul").eq(0);bt.hasClass(Ke("collapsed"))?(bt.rmClass(Ke("collapsed")),Tt.show()):(bt.addClass(Ke("collapsed")),Tt.hide()),ge.emit("change")}},ge.initOptions(Me,{unenumerable:!1,accessGetter:!1}),ge.bindEvent(),ge}return(0,i.Z)(Fe,[{key:"set",value:function(de){this.data=[de],this.visitor=new V,this.map={},this.render()}},{key:"destroy",value:function(){(0,c.Z)((0,l.Z)(Fe.prototype),"destroy",this).call(this),this.$container.off("click","li",this.onItemClick)}},{key:"objToHtml",value:function(de,ge){var Me=this,dt=this.visitor,st=de,nt=!1,Ke=dt.get(de);Ke&&Ke.self&&(st=Ke.self);var vt="",lt=["enumerable"],bt=H()(de),Tt=[],zt=[],Zt=[],Lt={};if(this.options.unenumerable&&!ge&&(lt.push("unenumerable"),lt.push("symbol"),Tt=ce()(Se()(de,{prototype:!1,unenumerable:!0}),bt),zt=Ne()(Se()(de,{prototype:!1,symbol:!0}),function(It){return(0,r.Z)(It)==="symbol"})),z()(de)&&de.length>100){lt.unshift("virtual"),nt=!0;var Wt=0,Gt={};L()(_e()(de,100),function(It){var an=Object.create(null),Yt=Wt,vn="["+Yt;L()(It,function(on){an[Wt]=on,Gt[Wt]=!0,Wt++});var Jt=Wt-1;Lt[vn+=(Jt-Yt>0?" … "+Jt:"")+"]"]=an}),Zt=H()(Lt),bt=Ne()(bt,function(It){return!Gt[It]})}L()(lt,function(It){var an=[];an=It==="symbol"?zt:It==="unenumerable"?Tt:It==="virtual"?Zt:bt,nt||Be()(an);for(var Yt=0,vn=an.length;Yt4&&arguments[4]!==void 0&&arguments[4],nt=this.visitor,Ke=this.c,vt=(0,r.Z)(Me),lt=J()(Me,!1);if(dt==="virtual"&&(lt=de),Me===null)return"
  • ".concat(Gt(de),'null
  • ');if(g()(Me)||_()(Me))return"
  • ".concat(Gt(de),'').concat(se(Me),"
  • ");if(lt==="RegExp"&&(vt="regexp"),lt==="Number"&&(vt="number"),lt==="Undefined"||lt==="Symbol")return"
  • ".concat(Gt(de),'').concat(p()(lt),"
  • ");if(Me==="(...)")return"
  • ".concat(Gt(de),'').concat(Me,"
  • ");if(E()(Me)){var bt,Tt=nt.get(Me);if(Tt)bt=Tt.id;else{var zt={};dt==="proto"&&(zt.self=ge),bt=nt.set(Me,zt),this.map[bt]=Me}var Zt="Object";Zt=vt==="regexp"?'').concat(se(Me)):se(function(Ut,Vt){if(Vt)return Vt==="Function"?Ee(j()(Ut)):Vt==="Array"?"Array(".concat(Ut.length,")"):Vt}(Me,lt)||I()(vt));var Lt=st?"":''),Wt="
  • ").concat(Lt).concat(Gt(de),'').concat(st?"":Zt,'
      ");return st&&(Wt+=this.objToHtml(Me)),Wt+'
  • ')}function Gt(Ut){if(st||E()(Me)&&dt==="virtual")return"";var Vt=Ke("key");return dt==="unenumerable"||dt==="symbol"?Vt=Ke("key-lighter"):dt==="proto"&&(Vt=Ke("key-special")),'').concat(se(Ut),": ")}return pe()(Me)&&Me.length>1e4&&(Me=ye()(Me,50,{separator:" ",ellipsis:"…"})),"
  • ".concat(Gt(de),'"').concat(se(Me),'"
  • ')}},{key:"render",value:function(){this.$container.html(this.objToHtml(this.data,!0))}},{key:"bindEvent",value:function(){this.$container.on("click","li",this.onItemClick)}}]),Fe}(Te);yt.Static=M,function(Ve,et){try{Ve.exports=et,Ve.exports.default=et}catch{}}(u,yt)},8692:function(u,t,e){e.d(t,{Z:function(){return Ee}});var r=e(7326),a=e(5671),i=e(3144),s=e(9340),c=e(2963),d=e(1120),n=e(1512),l=e.n(n),h=e(8613),m=e.n(h),w=e(8901),g=e.n(w),y=e(5229),_=e.n(y),f=e(5166),p=e.n(f),b=e(4193),E=e.n(b),D=e(2461),z=e.n(D),O=e(3875),I=e.n(O),Q=e(3367),H=e.n(Q),G=e(4777),L=e.n(G),R=e(9702),j=e.n(R),N=e(1754),F=e.n(N),Y=e(6768),J=e.n(Y),P=e(4331),q=e.n(P),$=e(6341),ce=e.n($),Ce=e(3063),ye=e.n(Ce),ae=e(6156),pe=e.n(ae),be=e(3783),Se=e.n(be),Je=e(1443),Ne=e.n(Je),qe=e(5610),_e=e.n(qe),X=e(7483),ee=e.n(X),W=(e(3990),e(6954)),re=e.n(W);e(9585);function fe(Ze){var Re="luna-".concat(Ze,"-");function me(te){return z()(q()(te).split(/\s+/),function(xe){return ce()(xe,Re)?xe:xe.replace(/[\w-]+/,function(we){return"".concat(Re).concat(we)})}).join(" ")}return function(te){if(/<[^>]*>/g.test(te))try{var xe=ee().parse(te);return Be(xe,function(we){we.attrs&&we.attrs.class&&(we.attrs.class=me(we.attrs.class))}),ee().stringify(xe)}catch{return me(te)}return me(te)}}function Be(Ze,Re){for(var me=0,te=Ze.length;me"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var me,te=(0,d.Z)(Ze);if(Re){var xe=(0,d.Z)(this).constructor;me=Reflect.construct(te,arguments,xe)}else me=te.apply(this,arguments);return(0,c.Z)(this,me)}}var ke=function(Ze){(0,s.Z)(me,Ze);var Re=ve(me);function me(te,xe){var we,He=xe.compName,ut=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,at=ut===void 0?"light":ut;return(0,a.Z)(this,me),(we=Re.call(this)).subComponents=[],we.compName=He,we.c=fe(He),we.options={},we.container=te,we.$container=l()(te),we.$container.addClass(["luna-".concat(He),we.c("platform-".concat(De()))]),we.on("optionChange",function(mt,kt,wt){var jt=we.c;mt==="theme"&&(we.$container.rmClass(jt("theme-".concat(wt))).addClass(jt("theme-".concat(kt))),Se()(we.subComponents,function(Mt){return Mt.setOption("theme",kt)}))}),we.setOption("theme",at),we}return(0,i.Z)(me,[{key:"destroy",value:function(){this.destroySubComponents();var te=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(te("platform-".concat(De()))).rmClass(te("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(te,xe){var we=this,He=this.options,ut={};typeof te=="string"?ut[te]=xe:ut=te,Se()(ut,function(at,mt){var kt=He[mt];He[mt]=at,we.emit("optionChange",mt,at,kt)})}},{key:"getOption",value:function(te){return this.options[te]}},{key:"addSubComponent",value:function(te){te.setOption("theme",this.options.theme),this.subComponents.push(te)}},{key:"removeSubComponent",value:function(te){oe()(this.subComponents,function(xe){return xe===te})}},{key:"destroySubComponents",value:function(){Se()(this.subComponents,function(te){return te.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(te){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E()(te,xe),V()(this.options,te)}},{key:"find",value:function(te){return this.$container.find(this.c(te))}}]),me}(Ne());function se(Ze){var Re=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var me,te=(0,d.Z)(Ze);if(Re){var xe=(0,d.Z)(this).constructor;me=Reflect.construct(te,arguments,xe)}else me=te.apply(this,arguments);return(0,c.Z)(this,me)}}u=e.hmd(u);var Ee=function(Ze){(0,s.Z)(me,Ze);var Re=se(me);function me(te){var xe,we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,a.Z)(this,me),(xe=Re.call(this,te,{compName:"setting"},we)).items=[],xe.selectedItem=null,xe.initOptions(we,{separatorCollapse:!0,filter:""}),xe.bindEvent(),xe}return(0,i.Z)(me,[{key:"appendTitle",value:function(te){var xe=new it(this,te);return this.append(xe),xe}},{key:"appendSeparator",value:function(){var te=this.items,xe=this.options.separatorCollapse,we=j()(te);if(xe&&we instanceof pt)return we;var He=new pt(this);return this.append(He),He}},{key:"appendNumber",value:function(te,xe,we,He,ut){p()(He)&&(ut=He,He="");var at=new ot(this,te,xe,we,He,ut);return this.append(at),at}},{key:"appendButton",value:function(te,xe,we){L()(xe)&&(we=xe,xe="");var He=new $e(this,te,xe,we);return this.append(He),He}},{key:"appendInput",value:function(te,xe,we){var He=new Ue(this,te,xe,we,arguments.length>3&&arguments[3]!==void 0?arguments[3]:"");return this.append(He),He}},{key:"appendCheckbox",value:function(te,xe,we,He){He||(He=we,we="");var ut=new le(this,te,xe,we,He);return this.append(ut),ut}},{key:"appendSelect",value:function(te,xe,we,He,ut){p()(He)&&(ut=He,He="");var at=new Oe(this,te,xe,we,He,ut);return this.append(at),at}},{key:"remove",value:function(te){var xe=this.items,we=xe.indexOf(te);we>-1&&(te.detach(),xe.splice(we,1),te===this.selectedItem&&this.selectItem(null))}},{key:"clear",value:function(){Se()(this.items,function(te){return te.detach()}),this.items=[],this.selectItem(null)}},{key:"selectItem",value:function(te){var xe;this.selectedItem&&(this.selectedItem.deselect(),this.selectedItem=null),pe()(te)||(this.selectedItem=te,(xe=this.selectedItem)===null||xe===void 0||xe.select())}},{key:"renderSettings",value:function(){var te=this,xe=this.items;Se()(xe,function(we){return we.detach()}),Se()(xe,function(we){te.filterItem(we)&&te.$container.append(we.container)})}},{key:"bindEvent",value:function(){var te=this,xe=this.c;this.on("optionChange",function(He){He==="filter"&&te.renderSettings()});var we=this;this.$container.on("click",xe(".item"),function(){we.selectItem(this.settingItem)})}},{key:"filterItem",value:function(te){var xe=this.options.filter;if(xe){if(L()(xe))return xe(te);if(F()(xe))return xe.test(te.text());if(J()(xe)&&(xe=q()(xe)))return ce()(ye()(te.text()),ye()(xe))}return!0}},{key:"append",value:function(te){this.items.push(te),this.filterItem(te)&&this.$container.append(te.container)}}]),me}(ke),ze=function(){function Ze(Re,me,te,xe){(0,a.Z)(this,Ze),this.container=m()("div",{tabindex:"0"}),this.setting=Re,this.container.settingItem=this,this.$container=l()(this.container),this.$container.addClass(Re.c("item")).addClass(Re.c("item-".concat(xe))),this.key=me,this.value=te}return(0,i.Z)(Ze,[{key:"select",value:function(){this.$container.addClass(this.setting.c("selected"))}},{key:"deselect",value:function(){this.$container.rmClass(this.setting.c("selected"))}},{key:"detach",value:function(){this.$container.remove()}},{key:"text",value:function(){return this.$container.text()}},{key:"onChange",value:function(Re){this.setting.emit("change",this.key,Re,this.value),this.value=Re}}]),Ze}(),it=function(Ze){(0,s.Z)(me,Ze);var Re=se(me);function me(te,xe){var we;return(0,a.Z)(this,me),(we=Re.call(this,te,"","","title")).$container.text(xe),we}return(0,i.Z)(me)}(ze),pt=function(Ze){(0,s.Z)(me,Ze);var Re=se(me);function me(te){return(0,a.Z)(this,me),Re.call(this,te,"","","separator")}return(0,i.Z)(me)}(ze),Ue=function(Ze){(0,s.Z)(me,Ze);var Re=se(me);function me(te,xe,we,He,ut){var at;(0,a.Z)(this,me),at=Re.call(this,te,xe,we,"input");var mt=te.c;at.$container.html('
    ').concat(g()(He),`
    +
    ').concat(ut,`
    +
    + +
    `));var kt=at.$container.find("input");return kt.val(we),kt.on("change",function(){return at.onChange(kt.val())}),at}return(0,i.Z)(me)}(ze),ot=function(Ze){(0,s.Z)(me,Ze);var Re=se(me);function me(te,xe,we,He,ut){var at,mt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};(0,a.Z)(this,me),at=Re.call(this,te,xe,we,"number"),E()(mt,{min:0,max:10,step:1});var kt=(0,r.Z)(at).$container,wt=te.c,jt=!!mt.range;delete mt.range;var Mt=mt.min,$t=mt.max,rn='");jt&&(rn="".concat(Mt,'
    +
    +
    +
    +
    +
    + `).concat(rn,` +
    ').concat(we,"/").concat($t)),kt.html('
    ').concat(g()(He),`
    +
    ').concat(ut,`
    +
    ').concat(rn,"
    "));var gt=kt.find(wt(".value")),ht=kt.find("input"),tt=kt.find(wt(".range-track-progress"));return ht.val(H()(we)),ht.on("change",function(){var ue=I()(ht.val());at.onChange(ue)}),ht.on("input",function(){var ue=I()(ht.val());tt.css("width",Ie(ue,Mt,$t)+"%"),gt.text(H()(ue))}),at}return(0,i.Z)(me)}(ze),Ie=function(Ze,Re,me){return((Ze-Re)/(me-Re)*100).toFixed(2)},le=function(Ze){(0,s.Z)(me,Ze);var Re=se(me);function me(te,xe,we,He,ut){var at;(0,a.Z)(this,me),at=Re.call(this,te,xe,we,"checkbox");var mt=te.c,kt=_()(te.c("checkbox-"));at.$container.html('
    ').concat(g()(He),`
    +
    + + +
    `));var wt=at.$container.find("input"),jt=wt.get(0);return jt.checked=we,wt.on("change",function(){return at.onChange(jt.checked)}),at}return(0,i.Z)(me)}(ze),Oe=function(Ze){(0,s.Z)(me,Ze);var Re=se(me);function me(te,xe,we,He,ut,at){var mt;(0,a.Z)(this,me),mt=Re.call(this,te,xe,we,"select");var kt=te.c;mt.$container.html('
    ').concat(g()(He),`
    +
    ').concat(ut,`
    +
    +
    + +
    +
    `));var wt=mt.$container.find("select");return wt.on("change",function(){return mt.onChange(wt.val())}),mt}return(0,i.Z)(me)}(ze),$e=function(Ze){(0,s.Z)(me,Ze);var Re=se(me);function me(te,xe,we,He){var ut;return(0,a.Z)(this,me),we||(we=xe,xe=""),(ut=Re.call(this,te,"","","button")).$container.html(te.c('
    '.concat(g()(xe),`
    +
    + +
    `))),ut.$container.find("button").on("click",He),ut}return(0,i.Z)(me)}(ze);(function(Ze,Re){try{Ze.exports=Re,Ze.exports.default=Re}catch{}})(u,Ee)},7638:function(u,t,e){e.d(t,{Z:function(){return qe}});var r=e(168),a=e(5671),i=e(3144),s=e(9340),c=e(2963),d=e(1120),n=e(1443),l=e.n(n),h=e(1512),m=e.n(h),w=e(2461),g=e.n(w),y=e(4331),_=e.n(y),f=e(5610),p=e.n(f),b=e(7483),E=e.n(b),D=e(3990),z=e.n(D),O=e(6341),I=e.n(O),Q=(e(3875),e(6954)),H=e.n(Q);e(9585);function G(_e){var X="luna-".concat(_e,"-");function ee(W){return g()(_()(W).split(/\s+/),function(re){return I()(re,X)?re:re.replace(/[\w-]+/,function(fe){return"".concat(X).concat(fe)})}).join(" ")}return function(W){if(/<[^>]*>/g.test(W))try{var re=E().parse(W);return L(re,function(fe){fe.attrs&&fe.attrs.class&&(fe.attrs.class=ee(fe.attrs.class))}),E().stringify(re)}catch{return ee(W)}return ee(W)}}function L(_e,X){for(var ee=0,W=_e.length;ee"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ee,W=(0,d.Z)(_e);if(X){var re=(0,d.Z)(this).constructor;ee=Reflect.construct(W,arguments,re)}else ee=W.apply(this,arguments);return(0,c.Z)(this,ee)}}var ye,ae=function(_e){(0,s.Z)(ee,_e);var X=Ce(ee);function ee(W,re){var fe,Be=re.compName,De=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Pe=De===void 0?"light":De;return(0,a.Z)(this,ee),(fe=X.call(this)).subComponents=[],fe.compName=Be,fe.c=G(Be),fe.options={},fe.container=W,fe.$container=m()(W),fe.$container.addClass(["luna-".concat(Be),fe.c("platform-".concat(j()))]),fe.on("optionChange",function(V,Qe,oe){var ve=fe.c;V==="theme"&&(fe.$container.rmClass(ve("theme-".concat(oe))).addClass(ve("theme-".concat(Qe))),F()(fe.subComponents,function(ke){return ke.setOption("theme",Qe)}))}),fe.setOption("theme",Pe),fe}return(0,i.Z)(ee,[{key:"destroy",value:function(){this.destroySubComponents();var W=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(W("platform-".concat(j()))).rmClass(W("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(W,re){var fe=this,Be=this.options,De={};typeof W=="string"?De[W]=re:De=W,F()(De,function(Pe,V){var Qe=Be[V];Be[V]=Pe,fe.emit("optionChange",V,Pe,Qe)})}},{key:"getOption",value:function(W){return this.options[W]}},{key:"addSubComponent",value:function(W){W.setOption("theme",this.options.theme),this.subComponents.push(W)}},{key:"removeSubComponent",value:function(W){ce()(this.subComponents,function(re){return re===W})}},{key:"destroySubComponents",value:function(){F()(this.subComponents,function(W){return W.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(W){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};q()(W,re),J()(this.options,W)}},{key:"find",value:function(W){return this.$container.find(this.c(W))}}]),ee}(l()),pe=e(1907),be=e.n(pe),Se=e(8901),Je=e.n(Se);function Ne(_e){var X=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ee,W=(0,d.Z)(_e);if(X){var re=(0,d.Z)(this).constructor;ee=Reflect.construct(W,arguments,re)}else ee=W.apply(this,arguments);return(0,c.Z)(this,ee)}}u=e.hmd(u);var qe=function(_e){(0,s.Z)(ee,_e);var X=Ne(ee);function ee(W){var re,fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,a.Z)(this,ee),(re=X.call(this,W,{compName:"tab"},fe)).initOptions(fe,{height:30}),re.initTpl(),re.$tabs=re.find(".tabs"),re.tabs=re.$tabs.get(0),re.$slider=re.find(".slider"),re.bindEvent(),re.updateHeight(),re}return(0,i.Z)(ee,[{key:"length",get:function(){return this.$tabs.find(this.c(".item")).length}},{key:"insert",value:function(W,re){var fe=this.c,Be=this.$tabs,De=this.options.height-1,Pe=Be.find(fe(".item")),V=Pe.length,Qe='
    ').concat(Je()(re.title),"
    ");W>V-1?Be.append(Qe):Pe.eq(W).before(Qe),this.updateSlider()}},{key:"append",value:function(W){this.insert(this.length,W)}},{key:"remove",value:function(W){var re=this.c,fe=this;this.$tabs.find(re(".item")).each(function(){var Be=m()(this);if(Be.data("id")===W){if(Be.hasClass(re("selected")))if(fe.length>0){var De=fe.$tabs.find(re(".item")).eq(0).data("id");fe.select(De)}else fe.emit("deselect");Be.remove()}}),this.updateSlider()}},{key:"select",value:function(W){var re=this.c,fe=this;this.$tabs.find(re(".item")).each(function(){var Be=m()(this);Be.data("id")===W?(Be.addClass(re("selected")),fe.updateSlider(),fe.scrollToSelected(),fe.emit("select",W)):Be.rmClass(re("selected"))})}},{key:"scrollToSelected",value:function(){var W,re=this.$tabs,fe=this.tabs,Be=this.c,De=re.find(Be(".selected")).get(0),Pe=De.offsetLeft,V=De.offsetWidth,Qe=fe.offsetWidth,oe=fe.scrollLeft;PeQe+oe&&(W=Pe+V-Qe),z()(W)&&(fe.scrollLeft=W)}},{key:"hideScrollbar",value:function(){var W=this.$tabs;if(getComputedStyle(this.tabs,"::-webkit-scrollbar").display!=="none"){var re=function(){if(z()(R))return R;if(!document)return 16;var fe=document.createElement("div"),Be=document.createElement("div");fe.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),Be.setAttribute("style","height: 200px"),fe.appendChild(Be);var De=document.body||document.documentElement;return De.appendChild(fe),R=fe.offsetWidth-fe.clientWidth,De.removeChild(fe),R}();W.css("height",this.options.height-1+re+"px")}}},{key:"updateSlider",value:function(){var W=this.$slider,re=this.$tabs,fe=this.c,Be=re.find(fe(".selected")).get(0);Be?W.css({width:Be.offsetWidth,left:Be.offsetLeft-re.get(0).scrollLeft}):W.css({width:0})}},{key:"updateHeight",value:function(){var W=this.options.height,re=W-1;this.find(".tabs-container").css("height",W+"px"),this.find(".item").css({height:re,lineHeight:re}),this.hideScrollbar()}},{key:"bindEvent",value:function(){var W=this,re=this.tabs,fe=this.c;this.on("optionChange",function(De){De==="height"&&W.updateHeight()});var Be=this;this.$tabs.on("wheel",function(De){De.preventDefault(),re.scrollLeft+=De.origEvent.deltaY}).on("click",fe(".item"),function(){var De=m()(this);Be.select(De.data("id"))}).on("scroll",function(){W.updateSlider()})}},{key:"initTpl",value:function(){this.$container.html(this.c(be()(ye||(ye=(0,r.Z)([` +
    +
    +
    +
    + `])))))}}]),ee}(ae);(function(_e,X){try{_e.exports=X,_e.exports.default=X}catch{}})(u,qe)},7049:function(u,t,e){e.d(t,{Z:function(){return V}});var r=e(5671),a=e(3144),i=e(7326),s=e(1752),c=e(9340),d=e(2963),n=e(1120),l=e(1443),h=e.n(l),m=e(1512),w=e.n(m),g=e(2461),y=e.n(g),_=e(4331),f=e.n(_),p=e(5610),b=e.n(p),E=e(7483),D=e.n(E),z=(e(3990),e(6341)),O=e.n(z),I=(e(3875),e(6954)),Q=e.n(I);e(9585);function H(oe){var ve="luna-".concat(oe,"-");function ke(se){return y()(f()(se).split(/\s+/),function(Ee){return O()(Ee,ve)?Ee:Ee.replace(/[\w-]+/,function(ze){return"".concat(ve).concat(ze)})}).join(" ")}return function(se){if(/<[^>]*>/g.test(se))try{var Ee=D().parse(se);return G(Ee,function(ze){ze.attrs&&ze.attrs.class&&(ze.attrs.class=ke(ze.attrs.class))}),D().stringify(Ee)}catch{return ke(se)}return ke(se)}}function G(oe,ve){for(var ke=0,se=oe.length;ke"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ke,se=(0,n.Z)(oe);if(ve){var Ee=(0,n.Z)(this).constructor;ke=Reflect.construct(se,arguments,Ee)}else ke=se.apply(this,arguments);return(0,d.Z)(this,ke)}}var Ce=function(oe){(0,c.Z)(ke,oe);var ve=ce(ke);function ke(se,Ee){var ze,it=Ee.compName,pt=(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).theme,Ue=pt===void 0?"light":pt;return(0,r.Z)(this,ke),(ze=ve.call(this)).subComponents=[],ze.compName=it,ze.c=H(it),ze.options={},ze.container=se,ze.$container=w()(se),ze.$container.addClass(["luna-".concat(it),ze.c("platform-".concat(R()))]),ze.on("optionChange",function(ot,Ie,le){var Oe=ze.c;ot==="theme"&&(ze.$container.rmClass(Oe("theme-".concat(le))).addClass(Oe("theme-".concat(Ie))),N()(ze.subComponents,function($e){return $e.setOption("theme",Ie)}))}),ze.setOption("theme",Ue),ze}return(0,a.Z)(ke,[{key:"destroy",value:function(){this.destroySubComponents();var se=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(se("platform-".concat(R()))).rmClass(se("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()}},{key:"setOption",value:function(se,Ee){var ze=this,it=this.options,pt={};typeof se=="string"?pt[se]=Ee:pt=se,N()(pt,function(Ue,ot){var Ie=it[ot];it[ot]=Ue,ze.emit("optionChange",ot,Ue,Ie)})}},{key:"getOption",value:function(se){return this.options[se]}},{key:"addSubComponent",value:function(se){se.setOption("theme",this.options.theme),this.subComponents.push(se)}},{key:"removeSubComponent",value:function(se){$()(this.subComponents,function(Ee){return Ee===se})}},{key:"destroySubComponents",value:function(){N()(this.subComponents,function(se){return se.destroy()}),this.subComponents=[]}},{key:"initOptions",value:function(se){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P()(se,Ee),Y()(this.options,se)}},{key:"find",value:function(se){return this.$container.find(this.c(se))}}]),ke}(h()),ye=e(9702),ae=e.n(ye),pe=e(8887),be=e.n(pe),Se=e(2439),Je=e.n(Se),Ne=e(6049),qe=e.n(Ne),_e=e(2327),X=e.n(_e),ee=e(8901),W=e.n(ee),re=e(7387),fe=e.n(re),Be=e(6677),De=e.n(Be);function Pe(oe){var ve=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ke,se=(0,n.Z)(oe);if(ve){var Ee=(0,n.Z)(this).constructor;ke=Reflect.construct(se,arguments,Ee)}else ke=se.apply(this,arguments);return(0,d.Z)(this,ke)}}u=e.hmd(u);var V=function(oe){(0,c.Z)(ke,oe);var ve=Pe(ke);function ke(se){var Ee,ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,r.Z)(this,ke),(Ee=ve.call(this,se,{compName:"text-viewer"},ze)).lineNum=0,Ee.copy=function(){var it=(0,i.Z)(Ee).c,pt=Ee.options,Ue=pt.text,ot=pt.escape;X()(ot?Ue:fe()(De()(Ue)));var Ie=Ee.$copy.find(it(".icon"));Ie.addClass(it("icon-check")).rmClass(it("icon-copy")),setTimeout(function(){Ie.rmClass(it("icon-check")).addClass(it("icon-copy"))},1e3)},Ee._updateCopyPos=function(){var it=(0,i.Z)(Ee).container;Ee.$copy.css({top:it.scrollTop+5,right:5-it.scrollLeft})},Ee.initOptions(ze,{text:"",escape:!0,showLineNumbers:!0,wrapLongLines:!0,maxHeight:1/0}),Ee.render=Je()(function(){return Ee._render()},16),Ee.updateCopyPos=qe()(function(){return Ee._updateCopyPos()},300),Ee.initTpl(),Ee.$text=Ee.find(".text"),Ee.$copy=Ee.find(".copy"),L&&Ee.$copy.css("opacity","1"),Ee.options.text&&Ee.render(),Ee.bindEvent(),Ee.updateHeight(),Ee}return(0,a.Z)(ke,[{key:"append",value:function(se){var Ee=this,ze=this.options,it=this.$copy,pt=this.c,Ue=this.$text,ot=ze.showLineNumbers;if(this.options.text+=se,!ot)return this.$text.append(ze.escape?W()(se):se);var Ie=function(Oe){return Oe.length===0?[]:Oe.split(Qe)}(se);be()(Ie)&&(Ie=[" "]),f()(ae()(Ie))||Ie.pop();var le="";N()(Ie,function(Oe,$e){Ee.lineNum+=1,le+='
    ').concat(Ee.lineNum,'
    ').concat(ze.escape?W()(Oe):Oe||" ","
    ")}),Ue.find(pt(".table")).append(le),it.hide(),Ue.offset().height>40&&it.show(),this.updateCopyPos()}},{key:"destroy",value:function(){this.$container.off("scroll",this.updateCopyPos),(0,s.Z)((0,n.Z)(ke.prototype),"destroy",this).call(this)}},{key:"updateHeight",value:function(){var se=this.options.maxHeight;se>0&&se!==1/0?this.$text.css("max-height",se):this.$text.css("max-height","none")}},{key:"initTpl",value:function(){this.$container.html(this.c('
    '))}},{key:"bindEvent",value:function(){var se=this;this.on("optionChange",function(Ee){Ee==="maxHeight"?se.updateHeight():se.render()}),this.$container.on("scroll",this.updateCopyPos),this.$copy.on("click",this.copy)}},{key:"_render",value:function(){var se=this.c,Ee=this.$text,ze=this.options,it=ze.text,pt=ze.wrapLongLines,Ue=ze.showLineNumbers;pt?Ee.addClass(se("wrap-long-lines")):Ee.rmClass(se("wrap-long-lines")),Ue?Ee.addClass(se("line-numbers")):Ee.rmClass(se("line-numbers")),Ee.html('
    ')),this.lineNum=0,this.options.text="",this.append(it)}}]),ke}(Ce),Qe=/\r\n|\r|\n/g;(function(oe,ve){try{oe.exports=ve,oe.exports.default=ve}catch{}})(u,V)},6672:function(u,t,e){e.d(t,{Z:function(){return Nr}});var r={};e.r(r),e.d(r,{classPrefix:function(){return M},drag:function(){return ge},escapeJsonStr:function(){return rn},evalCss:function(){return ie},eventClient:function(){return Me},eventPage:function(){return dt},getFileName:function(){return ht},hasSafeArea:function(){return $t},isChobitsuEl:function(){return Te},isErudaEl:function(){return ue},pxToNum:function(){return tt},safeStorage:function(){return gt}});var a=e(5671),i=e(3144),s=e(7326),c=e(9340),d=e(2963),n=e(1120),l=e(4942),h=e(1443),m=e.n(h),w=new(m());w.ADD="ADD",w.SHOW="SHOW",w.SCALE="SCALE";var g=w,y=e(1752),_=e(7496),f=e.n(_)()({init:function(T){this._$el=T},show:function(){return this._$el.show(),this},hide:function(){return this._$el.hide(),this},destroy:function(){this._$el.remove()}}),p=e(1512),b=e.n(p),E=e(125),D=e.n(E),z=e(5229),O=e.n(z),I=e(3783),Q=e.n(I),H=e(5972),G=e.n(H),L=e(6768),R=e.n(L),j=e(6341),N=e.n(j),F=e(4675),Y=e.n(F),J=e(3367),P=e.n(J),q=e(2533),$=e.n(q),ce=e(7622),Ce=e.n(ce),ye=e(4193),ae=e.n(ye),pe=e(6329),be=e.n(pe),Se=e(6472),Je=e.n(Se),Ne=["background","foreground","selectForeground","accent","highlight","border","primary","contrast","varColor","stringColor","keywordColor","numberColor","operatorColor","linkColor","textColor","tagNameColor","functionColor","attributeNameColor","commentColor"],qe=Ne.length;function _e(T){for(var S={},k=0;k"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,o=(0,n.Z)(T);if(S){var v=(0,n.Z)(this).constructor;k=Reflect.construct(o,arguments,v)}else k=o.apply(this,arguments);return(0,d.Z)(this,k)}}var se=function(T){(0,c.Z)(k,T);var S=ke(k);function k(){var o;return(0,a.Z)(this,k),(o=S.call(this))._style=oe(e(8011)),o.name="settings",o._settings=[],o}return(0,i.Z)(k,[{key:"init",value:function(o){(0,y.Z)((0,n.Z)(k.prototype),"init",this).call(this,o),this._setting=new ve.Z(o.get(0)),this._bindEvent()}},{key:"remove",value:function(o,v){var x=this;if(R()(o)){var Z=this;this._$el.find(".luna-setting-item-title").each(function(){b()(this).text()===o&&Z._setting.remove(this.settingItem)})}else this._settings=G()(this._settings,function(U){return U.config!==o||U.key!==v||(x._setting.remove(U.item),!1)});return this._cleanSeparator(),this}},{key:"destroy",value:function(){this._setting.destroy(),(0,y.Z)((0,n.Z)(k.prototype),"destroy",this).call(this),oe.remove(this._style)}},{key:"clear",value:function(){this._settings=[],this._setting.clear()}},{key:"switch",value:function(o,v,x){var Z=this._genId(),U=this._setting.appendCheckbox(Z,!!o.get(v),x);return this._settings.push({config:o,key:v,id:Z,item:U}),this}},{key:"select",value:function(o,v,x,Z){var U=this._genId(),ne={};Q()(Z,function(Le){return ne[Le]=Le});var Ae=this._setting.appendSelect(U,o.get(v),"",x,ne);return this._settings.push({config:o,key:v,id:U,item:Ae}),this}},{key:"range",value:function(o,v,x,Z){var U=Z.min,ne=U===void 0?0:U,Ae=Z.max,Le=Ae===void 0?1:Ae,ft=Z.step,St=ft===void 0?.1:ft,Nt=this._genId(),Ft=this._setting.appendNumber(Nt,o.get(v),x,{max:Le,min:ne,step:St,range:!0});return this._settings.push({config:o,key:v,min:ne,max:Le,step:St,id:Nt,item:Ft}),this}},{key:"button",value:function(o,v){return this._setting.appendButton(o,v),this}},{key:"separator",value:function(){return this._setting.appendSeparator(),this}},{key:"text",value:function(o){return this._setting.appendTitle(o),this}},{key:"_cleanSeparator",value:function(){var o=Y()(this._$el.get(0).children);function v(U){return N()(U.getAttribute("class"),"luna-setting-item-separator")}for(var x=0,Z=o.length;x0)return!0}return!1}function rn(T){return le()(T).replace(/\\'/g,"'").replace(/\t/g,"\\t")}function gt(T,S){var k;switch($e()(S)&&(S=!0),T){case"local":k=window.localStorage;break;case"session":k=window.sessionStorage}try{var o="test-localStorage-"+Date.now();k.setItem(o,o);var v=k.getItem(o);if(k.removeItem(o),v!==o)throw new Error}catch{return S?we():void 0}return k}function ht(T){var S=Re()(T.split("/"));return S===""&&(S=(T=new(ot())(T)).hostname),S}function tt(T){return mt()(T.replace("px",""))}function ue(T){for(;T;){if(T.id==="eruda")return!0;T=T.parentNode}return!1}function Te(T){for(;T;){var S="";if(T.getAttribute&&(S=T.getAttribute("class")||""),N()(S,"__chobitsu-hide__"))return!0;T=T.parentNode}return!1}var ie=oe;function M(T){if(/<[^>]*>/g.test(T))try{var S=Mt().parse(T);return ct(S,function(k){k.attrs&&k.attrs.class&&(k.attrs.class=xt(k.attrs.class))}),Mt().stringify(S)}catch{return xt(T)}return xt(T)}function ct(T,S){for(var k=0,o=T.length;k"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,o=(0,n.Z)(T);if(S){var v=(0,n.Z)(this).constructor;k=Reflect.construct(o,arguments,v)}else k=o.apply(this,arguments);return(0,d.Z)(this,k)}}var nt,Ke=b()(document),vt=function(T){(0,c.Z)(k,T);var S=st(k);function k(o){var v;return(0,a.Z)(this,k),v=S.call(this),(0,l.Z)((0,s.Z)(v),"_onDragStart",function(x){var Z=v._$el;Z.addClass(M("active")),v._isClick=!0,x=x.origEvent,v._startX=Me("x",x),v._oldX=tt(Z.css("left")),v._oldY=tt(Z.css("top")),v._startY=Me("y",x),Ke.on(ge("move"),v._onDragMove),Ke.on(ge("end"),v._onDragEnd)}),(0,l.Z)((0,s.Z)(v),"_onDragMove",function(x){var Z=v._$el.get(0).offsetWidth,U=v._$container.get(0).offsetWidth,ne=v._$container.get(0).offsetHeight,Ae=Me("x",x=x.origEvent)-v._startX,Le=Me("y",x)-v._startY;(Math.abs(Ae)>3||Math.abs(Le)>3)&&(v._isClick=!1);var ft=v._oldX+Ae,St=v._oldY+Le;ft<0?ft=0:ft>U-Z&&(ft=U-Z),St<0?St=0:St>ne-Z&&(St=ne-Z),v._$el.css({left:ft,top:St})}),(0,l.Z)((0,s.Z)(v),"_onDragEnd",function(x){var Z=v._$el;v._isClick&&v.emit("click"),v._onDragMove(x),Ke.off(ge("move"),v._onDragMove),Ke.off(ge("end"),v._onDragEnd);var U=v.config;U.get("rememberPos")&&U.set("pos",{x:tt(Z.css("left")),y:tt(Z.css("top"))}),Z.rmClass("eruda-active")}),v._style=oe(e(9195)),v._$container=o,v._initTpl(),v._bindEvent(),v._registerListener(),v}return(0,i.Z)(k,[{key:"hide",value:function(){this._$el.hide()}},{key:"show",value:function(){this._$el.show()}},{key:"setPos",value:function(o){this._isOutOfRange(o)&&(o=this._getDefPos()),this._$el.css({left:o.x,top:o.y}),this.config.set("pos",o)}},{key:"getPos",value:function(){return this.config.get("pos")}},{key:"destroy",value:function(){oe.remove(this._style),this._unregisterListener(),this._$el.remove()}},{key:"_isOutOfRange",value:function(o){o=o||this.config.get("pos");var v=this._getDefPos();return o.x>v.x+10||o.x<0||o.y<0||o.y>v.y+10}},{key:"_registerListener",value:function(){var o=this;this._scaleListener=function(){return ze()(function(){o._isOutOfRange()&&o._resetPos()})},g.on(g.SCALE,this._scaleListener)}},{key:"_unregisterListener",value:function(){g.off(g.SCALE,this._scaleListener)}},{key:"_initTpl",value:function(){var o=this._$container;o.append(M('
    ')),this._$el=o.find(".eruda-entry-btn")}},{key:"_resetPos",value:function(o){var v=this.config,x=v.get("pos"),Z=this._getDefPos();v.get("rememberPos")&&!o||(x=Z),this.setPos(x)}},{key:"_bindEvent",value:function(){var o=this;this._$el.on(ge("start"),this._onDragStart),pt().on("change",function(){return o._resetPos(!0)}),window.addEventListener("resize",function(){return o._resetPos()})}},{key:"initCfg",value:function(o){var v=this.config=se.createCfg("entry-button",{rememberPos:!0,pos:this._getDefPos()});o.switch(v,"rememberPos","Remember Entry Button Position"),this._resetPos()}},{key:"_getDefPos",value:function(){var o=this._$el.get(0).offsetWidth+10;return{x:window.innerWidth-o,y:window.innerHeight-o}}}]),k}(m()),lt=e(4989),bt=nt=new(e.n(lt)())("[Eruda]","warn");nt.formatter=function(T,S){return S.unshift(this.name),S};var Tt=e(3990),zt=e.n(Tt),Zt=e(2520),Lt=e.n(Zt),Wt=e(6930),Gt=e.n(Wt),Ut=e(4270),Vt=e.n(Ut),It=e(6093),an=e.n(It),Yt=e(129),vn=e(7638);function Jt(T){var S=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,o=(0,n.Z)(T);if(S){var v=(0,n.Z)(this).constructor;k=Reflect.construct(o,arguments,v)}else k=o.apply(this,arguments);return(0,d.Z)(this,k)}}var on=function(T){(0,c.Z)(k,T);var S=Jt(k);function k(o){var v,x=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).defaults,Z=x===void 0?{}:x;return(0,a.Z)(this,k),v=S.call(this),(0,l.Z)((0,s.Z)(v),"_checkSafeArea",function(){var U=(0,s.Z)(v).$container;$t()?U.addClass(M("safe-area")):U.rmClass(M("safe-area"))}),(0,l.Z)((0,s.Z)(v),"_updateTabHeight",function(U){v._tab.setOption("height",40*U),ze()(function(){v._tab.updateSlider()})}),v._defCfg=be()({transparency:1,displaySize:80,theme:Lt()()?"Dark":"Light"},Z),v._style=oe(e(13)),v.$container=o,v._isShow=!1,v._opacity=1,v._tools={},v._isResizing=!1,v._resizeTimer=null,v._resizeStartY=0,v._resizeStartSize=0,v._initTpl(),v._initTab(),v._initNotification(),v._initModal(),Vt()(function(){return v._checkSafeArea()}),v._bindEvent(),v}return(0,i.Z)(k,[{key:"show",value:function(){var o=this;return this._isShow=!0,this._$el.show(),this._tab.updateSlider(),setTimeout(function(){o._$el.css("opacity",o._opacity)},50),this.emit("show"),this}},{key:"hide",value:function(){var o=this;return this._isShow=!1,this.emit("hide"),this._$el.css({opacity:0}),setTimeout(function(){return o._$el.hide()},300),this}},{key:"toggle",value:function(){return this._isShow?this.hide():this.show()}},{key:"add",value:function(o){var v=this._tab;if(!(o instanceof f)){var x=new f,Z=x.init,U=x.show,ne=x.hide,Ae=x.destroy;ae()(o,{init:Z,show:U,hide:ne,destroy:Ae})}var Le=o.name;return Le?(Le=Le.toLowerCase(),this._tools[Le]?bt.warn("Tool ".concat(Le," already exists")):(this._$tools.prepend('
    ')),o.init(this._$tools.find(".".concat(M(Le),".").concat(M("tool"))),this),o.active=!1,this._tools[Le]=o,Le==="settings"?v.append({id:Le,title:Le}):v.insert(v.length-1,{id:Le,title:Le}),this)):bt.error("You must specify a name for a tool")}},{key:"remove",value:function(o){var v=this._tools;if(!v[o])return bt.warn("Tool ".concat(o," doesn't exist"));this._tab.remove(o);var x=v[o];if(delete v[o],x.active){var Z=$()(v);Z.length>0&&this.showTool(v[Re()(Z)].name)}return x.destroy(),this}},{key:"removeAll",value:function(){var o=this;return Q()(this._tools,function(v){return o.remove(v.name)}),this}},{key:"get",value:function(o){var v=this._tools[o];if(v)return v}},{key:"showTool",value:function(o){if(this._curTool===o)return this;this._curTool=o;var v=this._tools,x=v[o];if(x){var Z={};return Q()(v,function(U){U.active&&(Z=U,U.active=!1,U.hide())}),x.active=!0,x.show(),this._tab.select(o),this.emit("showTool",o,Z),this}}},{key:"initCfg",value:function(o){var v=this,x=this.config=se.createCfg("dev-tools",this._defCfg);this._setTransparency(x.get("transparency")),this._setDisplaySize(x.get("displaySize")),this._setTheme(x.get("theme")),x.on("change",function(Z,U){switch(Z){case"transparency":return v._setTransparency(U);case"displaySize":return v._setDisplaySize(U);case"theme":return v._setTheme(U)}}),o.separator().select(x,"theme","Theme",$()(oe.getThemes())).range(x,"transparency","Transparency",{min:.2,max:1,step:.01}).range(x,"displaySize","Display Size",{min:40,max:100,step:1}).button("Restore defaults and reload",function(){var Z=gt("local"),U=JSON.parse(JSON.stringify(Z));Q()(U,function(ne,Ae){R()(ne)&&Gt()(Ae,"eruda")&&Z.removeItem(Ae)}),window.location.reload()}).separator()}},{key:"notify",value:function(o,v){this._notification.notify(o,v)}},{key:"destroy",value:function(){oe.remove(this._style),this.removeAll(),this._tab.destroy(),this._$el.remove(),window.removeEventListener("resize",this._checkSafeArea),g.off(g.SCALE,this._updateTabHeight)}},{key:"_setTheme",value:function(o){var v=this.$container;(function(x){return N()(W,x)})(o)?v.addClass(M("dark")):v.rmClass(M("dark")),oe.setTheme(o)}},{key:"_setTransparency",value:function(o){zt()(o)&&(this._opacity=o,this._isShow&&this._$el.css({opacity:o}))}},{key:"_setDisplaySize",value:function(o){zt()(o)&&this._$el.css({height:o+"%"})}},{key:"_initTpl",value:function(){var o=this.$container;o.append(M(` +
    +
    +
    +
    +
    + +
    + `)),this._$el=o.find(M(".dev-tools")),this._$tools=this._$el.find(M(".tools"))}},{key:"_initTab",value:function(){var o=this;this._tab=new vn.Z(this._$el.find(M(".tab")).get(0),{height:40}),this._tab.on("select",function(v){return o.showTool(v)})}},{key:"_initNotification",value:function(){this._notification=new(an())(this._$el.find(M(".notification")).get(0),{position:{x:"center",y:"top"}})}},{key:"_initModal",value:function(){Yt.Z.setContainer(this._$el.find(M(".modal")).get(0))}},{key:"_bindEvent",value:function(){var o=this,v=this._$el.find(M(".resizer")),x=this._$el.find(M(".nav-bar")),Z=b()(document),U=function(Ae){if(o._isResizing){Ae.preventDefault(),Ae.stopPropagation(),Ae=Ae.origEvent;var Le=(o._resizeStartY-Me("y",Ae))/window.innerHeight*100,ft=o._resizeStartSize+Le;ft<40?ft=40:ft>100&&(ft=100),o.config.set("displaySize",mt()(ft.toFixed(2)))}},ne=function Ae(){clearTimeout(o._resizeTimer),o._isResizing=!1,v.css("height",10),Z.off(ge("move"),U),Z.off(ge("end"),Ae)};v.css("height",10),v.on(ge("start"),function(Ae){Ae.preventDefault(),Ae.stopPropagation(),Ae=Ae.origEvent,o._isResizing=!0,o._resizeStartSize=o.config.get("displaySize"),o._resizeStartY=Me("y",Ae),v.css("height","100%"),Z.on(ge("move"),U),Z.on(ge("end"),ne)}),x.on("contextmenu",function(Ae){return Ae.preventDefault()}),this.$container.on("click",function(Ae){return Ae.stopPropagation()}),window.addEventListener("resize",this._checkSafeArea),g.on(g.SCALE,this._updateTabHeight)}}]),k}(m()),cn=e(1214),wn=e.n(cn),jn=e(4777),sn=e.n(jn),Dn=e(1754),Un=e.n(Dn),Vn=e(5484),Mn=e.n(Vn),Kn=e(3023),_n=e.n(Kn),Xn=e(9585),Bn=e.n(Xn),eo=e(6156),mn=e.n(eo),to=e(8816);function Fn(T){var S=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,o=(0,n.Z)(T);if(S){var v=(0,n.Z)(this).constructor;k=Reflect.construct(o,arguments,v)}else k=o.apply(this,arguments);return(0,d.Z)(this,k)}}Mn().start();var no=function(T){(0,c.Z)(k,T);var S=Fn(k);function k(){var o,v=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).name,x=v===void 0?"console":v;return(0,a.Z)(this,k),o=S.call(this),(0,l.Z)((0,s.Z)(o),"_handleShow",function(){Bn()(o._$el.get(0))||o._logger.renderViewport()}),(0,l.Z)((0,s.Z)(o),"_handleErr",function(Z){o._logger.error(Z)}),m().mixin((0,s.Z)(o)),o.name=x,o._selectedLog=null,o}return(0,i.Z)(k,[{key:"init",value:function(o,v){(0,y.Z)((0,n.Z)(k.prototype),"init",this).call(this,o),this._container=v,this._appendTpl(),this._initCfg(),this._initLogger(),this._exposeLogger(),this._bindEvent()}},{key:"show",value:function(){(0,y.Z)((0,n.Z)(k.prototype),"show",this).call(this),this._handleShow()}},{key:"overrideConsole",value:function(){var o=this,v=this._origConsole={},x=window.console;return xn.forEach(function(Z){var U=v[Z]=wn();x[Z]&&(U=v[Z]=x[Z].bind(x)),x[Z]=function(){o[Z].apply(o,arguments),U.apply(void 0,arguments)}}),this}},{key:"setGlobal",value:function(o,v){this._logger.setGlobal(o,v)}},{key:"restoreConsole",value:function(){var o=this;return this._origConsole?(xn.forEach(function(v){return window.console[v]=o._origConsole[v]}),delete this._origConsole,this):this}},{key:"catchGlobalErr",value:function(){return Mn().addListener(this._handleErr),this}},{key:"ignoreGlobalErr",value:function(){return Mn().rmListener(this._handleErr),this}},{key:"filter",value:function(o){var v=this._$filterText,x=this._logger;R()(o)?(v.text(o),x.setOption("filter",wt()(o))):Un()(o)?(v.text(P()(o)),x.setOption("filter",o)):sn()(o)&&(v.text("ƒ"),x.setOption("filter",o))}},{key:"destroy",value:function(){this._logger.destroy(),(0,y.Z)((0,n.Z)(k.prototype),"destroy",this).call(this),this._container.off("show",this._handleShow),this._style&&oe.remove(this._style),this.ignoreGlobalErr(),this.restoreConsole(),this._rmCfg()}},{key:"_enableJsExecution",value:function(o){var v=this._$el,x=v.find(M(".js-input"));o?(x.show(),v.rmClass(M("js-input-hidden"))):(x.hide(),v.addClass(M("js-input-hidden")))}},{key:"_appendTpl",value:function(){var o=this._$el;this._style=oe(e(3191)),o.append(M(` +
    + + All + Info + Warning + Error + + + +
    +
    +
    +
    +
    Cancel
    +
    Execute
    +
    + + +
    + `));var v=o.find(M(".js-input")),x=v.find("textarea"),Z=v.find(M(".buttons"));be()(this,{_$control:o.find(M(".control")),_$logs:o.find(M(".logs-container")),_$inputContainer:v,_$input:x,_$inputBtns:Z,_$filterText:o.find(M(".filter-text"))})}},{key:"_initLogger",value:function(){var o=this.config,v=o.get("maxLogNum");v=v==="infinite"?0:+v;var x=this._$control.find(M(".level")),Z=new to.Z(this._$logs.get(0),{asyncRender:o.get("asyncRender"),maxNum:v,showHeader:o.get("displayExtraInfo"),unenumerable:o.get("displayUnenumerable"),accessGetter:o.get("displayGetterVal"),lazyEvaluation:o.get("lazyEvaluation")});Z.on("optionChange",function(U,ne){U==="level"&&x.each(function(){var Ae=b()(this),Le=Ae.data("level");Ae[Le===ne||Le==="all"&&Je()(ne)?"addClass":"rmClass"](M("active"))})}),o.get("overrideConsole")&&this.overrideConsole(),this._logger=Z}},{key:"_exposeLogger",value:function(){var o=this,v=this._logger;["html"].concat(xn).forEach(function(x){return o[x]=function(){for(var Z=arguments.length,U=new Array(Z),ne=0;ne"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,o=(0,n.Z)(T);if(S){var v=(0,n.Z)(this).constructor;k=Reflect.construct(o,arguments,v)}else k=o.apply(this,arguments);return(0,d.Z)(this,k)}}var ho=function(T){(0,c.Z)(k,T);var S=fo(k);function k(o,v){var x;return(0,a.Z)(this,k),x=S.call(this),(0,l.Z)((0,s.Z)(x),"_copyRes",function(){var Z=x._detailData,U="".concat(Z.method," ").concat(Z.url," ").concat(Z.status,` +`);Kt()(Z.data)||(U+=` +Request Data + +`,U+="".concat(Z.data,` +`)),Kt()(Z.reqHeaders)||(U+=` +Request Headers + +`,Q()(Z.reqHeaders,function(ne,Ae){return U+="".concat(Ae,": ").concat(ne,` +`)})),Kt()(Z.resHeaders)||(U+=` +Response Headers + +`,Q()(Z.resHeaders,function(ne,Ae){return U+="".concat(Ae,": ").concat(ne,` +`)})),Z.resTxt&&(U+=` +`.concat(Z.resTxt,` +`)),dn()(U),x._devtools.notify("Copied")}),x._$container=o,x._devtools=v,x._detailData={},x._bindEvent(),x}return(0,i.Z)(k,[{key:"show",value:function(o){o.resTxt&&wt()(o.resTxt)===""&&delete o.resTxt,Kt()(o.resHeaders)&&delete o.resHeaders,Kt()(o.reqHeaders)&&delete o.reqHeaders;var v="";o.data&&(v='
    ').concat(Ot()(o.data),"
    "));var x="Empty";o.reqHeaders&&(x=te()(o.reqHeaders,function(Le,ft){return` + ').concat(Ot()(ft),` + `).concat(Ot()(Le),` + `)}).join(""));var Z="Empty";o.resHeaders&&(Z=te()(o.resHeaders,function(Le,ft){return` + ').concat(Ot()(ft),` + `).concat(Ot()(Le),` + `)}).join(""));var U="";if(o.resTxt){var ne=o.resTxt;ne.length>Ln&&(ne=gn()(ne,Ln)),U='
    ').concat(Ot()(ne),"
    ")}var Ae='
    + + + ').concat(Ot()(o.url),` + +
    +
    + `).concat(v,` +
    +

    Response Headers

    + + + `).concat(Z,` + +
    +
    +
    +

    Request Headers

    + + + `).concat(x,` + +
    +
    + `).concat(U,` +
    `);this._$container.html(Ae).show(),this._detailData=o}},{key:"hide",value:function(){this._$container.hide(),this.emit("hide")}},{key:"_bindEvent",value:function(){var o=this,v=this._devtools;this._$container.on("click",M(".back"),function(){return o.hide()}).on("click",M(".copy-res"),this._copyRes).on("click",M(".http .response"),function(){var Z=o._detailData,U=Z.resTxt;if(lo()(U))return x("object",U);switch(Z.subType){case"css":return x("css",U);case"html":return x("html",U);case"javascript":return x("js",U);case"json":return x("object",U)}return Z.type==="image"?x("img",Z.url):void 0});var x=function(Z,U){var ne=v.get("sources");ne&&(ne.set(Z,U),v.showTool("sources"))}}}]),k}(m()),Ln=1e5,po=e(2439),Pn=e.n(po),vo=e(9143),mo=e.n(vo),In=e(2139),go=e(8689),zn=e(7935),Xe=e(9119);function _t(T,S){var k=Object.keys(T);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(T);S&&(o=o.filter(function(v){return Object.getOwnPropertyDescriptor(T,v).enumerable})),k.push.apply(k,o)}return k}function We(T){for(var S=1;S"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,o=(0,n.Z)(T);if(S){var v=(0,n.Z)(this).constructor;k=Reflect.construct(o,arguments,v)}else k=o.apply(this,arguments);return(0,d.Z)(this,k)}}var Ht=function(T){(0,c.Z)(k,T);var S=Rt(k);function k(){var o;return(0,a.Z)(this,k),o=S.call(this),(0,l.Z)((0,s.Z)(o),"_reqWillBeSent",function(v){if(o._isRecording){var x,Z={name:ht(v.request.url),url:v.request.url,status:"pending",type:"unknown",subType:"unknown",size:0,data:v.request.postData,method:v.request.method,startTime:1e3*v.timestamp,time:0,resTxt:"",done:!1,reqHeaders:v.request.headers||{},resHeaders:{}};Z.render=function(){var U={name:Z.name,method:Z.method,status:Z.status,type:Z.subType,size:Z.size,time:Z.displayTime};x?(x.data=U,x.render()):(x=o._requestDataGrid.append(U,{selectable:!0}),b()(x.container).data("id",v.requestId)),Z.hasErr&&b()(x.container).addClass(M("request-error"))},Z.render(),o._requests[v.requestId]=Z}}),(0,l.Z)((0,s.Z)(o),"_resReceivedExtraInfo",function(v){var x=o._requests[v.requestId];o._isRecording&&x&&(x.resHeaders=v.headers,o._updateType(x),x.render())}),(0,l.Z)((0,s.Z)(o),"_resReceived",function(v){var x=o._requests[v.requestId];if(o._isRecording&&x){var Z=v.response,U=Z.status,ne=Z.headers;x.status=U,(U<200||U>=300)&&(x.hasErr=!0),ne&&(x.resHeaders=ne,o._updateType(x)),x.render()}}),(0,l.Z)((0,s.Z)(o),"_loadingFinished",function(v){var x=o._requests[v.requestId];if(o._isRecording&&x){var Z=1e3*v.timestamp;x.time=Z-x.startTime,x.displayTime=ro()(x.time),x.size=v.encodedDataLength,x.done=!0,x.resTxt=A.domain("Network").getResponseBody({requestId:v.requestId}).body,x.render()}}),(0,l.Z)((0,s.Z)(o),"_copyCurl",function(){var v=o._selectedRequest;dn()(function(x){var Z=rt()();Z==="windows"&&(Z="win");var U=[],ne=Et()(["accept-encoding","host","method","path","scheme","version"]),Ae=Z==="win"?function(nn){var Qn=/[\r\n]/.test(nn)?'^"':'"';return Qn+nn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;()*`&]/g,"^$&").replace(/%(?=[a-zA-Z0-9_])/g,"%^").replace(/\r?\n/g,`^ + +`)+Qn}:function(nn){return/[\0-\x1F\x7F-\x9F!]|\'/.test(nn)?"$'"+nn.replace(/\\/g,"\\\\").replace(/\'/g,"\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\0-\x1F\x7F-\x9F!]/g,function(Qn){for(var Wn=Qn.charCodeAt(0).toString(16);Wn.length<4;)Wn="0"+Wn;return"\\u"+Wn})+"'":"'"+nn+"'"};U.push(Ae(x.url()).replace(/[[{}\]]/g,"\\$&"));var Le="GET",ft=[],St=x.requestFormData();St&&(ft.push("--data-raw "+Ae(St)),ne["content-length"]=!0,Le="POST"),x.requestMethod!==Le&&U.push("-X "+Ae(x.requestMethod));for(var Nt=x.requestHeaders(),Ft=0;Ft=3?Z==="win"?` ^ + `:` \\ + `:" ")}({requestMethod:v.method,url:function(){return v.url},requestFormData:function(){return v.data},requestHeaders:function(){var x=v.reqHeaders||{};return be()(x,{"User-Agent":navigator.userAgent,Referer:location.href}),te()(x,function(Z,U){return{name:U,value:Z}})}})),o._container.notify("Copied")}),(0,l.Z)((0,s.Z)(o),"_toggleRecording",function(){o._$control.find(M(".record")).toggleClass(M("recording")),o._isRecording=!o._isRecording}),(0,l.Z)((0,s.Z)(o),"_showDetail",function(){o._selectedRequest&&(o._splitMode&&o._$network.css("width","50%"),o._detail.show(o._selectedRequest))}),(0,l.Z)((0,s.Z)(o),"_updateScale",function(v){o._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*v,"px)"))}),o._style=oe(e(3180)),o.name="network",o._requests={},o._selectedRequest=null,o._isRecording=!0,o}return(0,i.Z)(k,[{key:"init",value:function(o,v){(0,y.Z)((0,n.Z)(k.prototype),"init",this).call(this,o),this._container=v,this._initTpl(),this._detail=new ho(this._$detail,v),this._splitMediaQuery=new(Ge())("screen and (min-width: 680px)"),this._splitMode=this._splitMediaQuery.isMatch(),this._requestDataGrid=new B.Z(this._$requests.get(0),{columns:[{id:"name",title:"Name",sortable:!0,weight:30},{id:"method",title:"Method",sortable:!0,weight:14},{id:"status",title:"Status",sortable:!0,weight:14},{id:"type",title:"Type",sortable:!0,weight:14},{id:"size",title:"Size",sortable:!0,weight:14},{id:"time",title:"Time",sortable:!0,weight:14}]}),this._resizeSensor=new(je())(o.get(0)),this._bindEvent()}},{key:"show",value:function(){(0,y.Z)((0,n.Z)(k.prototype),"show",this).call(this),this._updateDataGridHeight()}},{key:"clear",value:function(){this._requests={},this._requestDataGrid.clear()}},{key:"requests",value:function(){var o=[];return Q()(this._requests,function(v){o.push(v)}),o}},{key:"_updateDataGridHeight",value:function(){var o=this._$el.offset().height-this._$control.offset().height;this._requestDataGrid.setOption({minHeight:o,maxHeight:o})}},{key:"_updateType",value:function(o){var v=function(U){if(!U)return"unknown";var ne=U.split(";")[0].split("/");return{type:ne[0],subType:Re()(ne)}}(o.resHeaders["content-type"]||""),x=v.type,Z=v.subType;o.type=x,o.subType=Z}},{key:"_updateButtons",value:function(){var o=this._$control,v=o.find(M(".show-detail")),x=o.find(M(".copy-curl")),Z=M("icon-disabled");v.addClass(Z),x.addClass(Z),this._selectedRequest&&(v.rmClass(Z),x.rmClass(Z))}},{key:"_bindEvent",value:function(){var o=this,v=this._$control,x=this._$filterText,Z=this._requestDataGrid,U=this;v.on("click",M(".clear-request"),function(){return o.clear()}).on("click",M(".show-detail"),this._showDetail).on("click",M(".copy-curl"),this._copyCurl).on("click",M(".record"),this._toggleRecording).on("click",M(".filter"),function(){Yt.Z.prompt("Filter").then(function(Ae){mn()(Ae)||(x.text(Ae),Z.setOption("filter",wt()(Ae)))})}),Z.on("select",function(Ae){var Le=b()(Ae.container).data("id"),ft=U._requests[Le];o._selectedRequest=ft,o._updateButtons(),o._splitMode&&o._showDetail()}),Z.on("deselect",function(){o._selectedRequest=null,o._updateButtons(),o._detail.hide()}),this._resizeSensor.addListener(Pn()(function(){return o._updateDataGridHeight()},15)),this._splitMediaQuery.on("match",function(){o._detail.hide(),o._splitMode=!0}),this._splitMediaQuery.on("unmatch",function(){o._detail.hide(),o._splitMode=!1}),this._detail.on("hide",function(){o._splitMode&&o._$network.css("width","100%")}),A.domain("Network").enable();var ne=A.domain("Network");ne.on("requestWillBeSent",this._reqWillBeSent),ne.on("responseReceivedExtraInfo",this._resReceivedExtraInfo),ne.on("responseReceived",this._resReceived),ne.on("loadingFinished",this._loadingFinished),g.on(g.SCALE,this._updateScale)}},{key:"destroy",value:function(){(0,y.Z)((0,n.Z)(k.prototype),"destroy",this).call(this),this._resizeSensor.destroy(),oe.remove(this._style),this._splitMediaQuery.removeAllListeners();var o=A.domain("Network");o.off("requestWillBeSent",this._reqWillBeSent),o.off("responseReceivedExtraInfo",this._resReceivedExtraInfo),o.off("responseReceived",this._resReceived),o.off("loadingFinished",this._loadingFinished),g.off(g.SCALE,this._updateScale)}},{key:"_initTpl",value:function(){var o=this._$el;o.html(M(`
    +
    + + + + + + +
    +
    +
    +
    `)),this._$network=o.find(M(".network")),this._$detail=o.find(M(".detail")),this._$requests=o.find(M(".requests")),this._$control=o.find(M(".control")),this._$filterText=o.find(M(".filter-text"))}}]),k}(f),At=e(9833),Dt=e.n(At),Qt=e(9956),qt=e.n(Qt),bn=e(8209),An=e(3063),kn=e.n(An),ln=e(3487),Xt=e.n(ln),en=e(42),un=e.n(en),fn=e(4696),Cn=e.n(fn),Sn=e(7653),yn=e.n(Sn),En=e(8613),Rn=e.n(En),hn=e(2289),On=e.n(hn),Zn=e(3629),Hn=e.n(Zn);function Tn(T){for(var S={},k=0,o=T.length;kAe?Ae:ne,ft=0;ftAe?1:ne(S=_o(S))?1:T1&&arguments[1]!==void 0?arguments[1]:{}).noAttr,k=S!==void 0&&S;if(T.nodeType===Node.TEXT_NODE)return'(text)');if(T.nodeType===Node.COMMENT_NODE)return'');var o=T.id,v=T.className,x=T.attributes,Z=''.concat(T.tagName.toLowerCase(),"");if(o!==""&&(Z+='#'.concat(o,"")),R()(v)){var U="";Q()(v.split(/\s+/g),function(ne){ne.trim()!==""&&(U+=".".concat(ne))}),Z+=''.concat(U,"")}return k||Q()(x,function(ne){var Ae=ne.name;Ae!=="id"&&Ae!=="class"&&Ae!=="style"&&(Z+=' '.concat(Ae,'="').concat(ne.value,'"'))}),Z}var Do=function(){function T(S,k){var o=this;(0,a.Z)(this,T),(0,l.Z)(this,"hide",function(){o._$container.hide(),o._disableObserver(),A.domain("Overlay").hideHighlight()}),this._$container=S,this._devtools=k,this._curEl=document.documentElement,this._bindEvent(),this._initObserver(),this._initCfg(),this._initTpl()}return(0,i.Z)(T,[{key:"show",value:function(S){this._curEl=S,this._rmDefComputedStyle=!0,this._computedStyleSearchKeyword="",this._enableObserver(),this._render();var k=A.domain("DOM").getNodeId({node:S}).nodeId;A.domain("Overlay").highlightNode({nodeId:k,highlightConfig:{showInfo:!0,contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)"}})}},{key:"destroy",value:function(){this._disableObserver(),this.restoreEventTarget(),this._rmCfg()}},{key:"overrideEventTarget",value:function(){var S=So(),k=this._origAddEvent=S.addEventListener,o=this._origRmEvent=S.removeEventListener;S.addEventListener=function(v,x,Z){(function(U,ne,Ae){var Le=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Dt()(U)||!sn()(Ae)||!Cn()(Le))){var ft=U.erudaEvents=U.erudaEvents||{};ft[ne]=ft[ne]||[],ft[ne].push({listener:Ae,listenerStr:Ae.toString(),useCapture:Le})}})(this,v,x,Z),k.apply(this,arguments)},S.removeEventListener=function(v,x,Z){(function(U,ne,Ae){var Le=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!(!Dt()(U)||!sn()(Ae)||!Cn()(Le))){var ft=U.erudaEvents;if(!(!ft||!ft[ne])){for(var St=ft[ne],Nt=0,Ft=St.length;Nt + + + + +
    +
    +
    +
    +
    +
    `);S.html(k),this._$elementName=S.find(M(".element-name")),this._$attributes=S.find(M(".attributes")),this._$styles=S.find(M(".styles")),this._$listeners=S.find(M(".listeners")),this._$computedStyle=S.find(M(".computed-style"));var o=Rn()("div");this._$boxModel=b()(o),this._boxModel=new Zo.Z(o)}},{key:"_toggleAllComputedStyle",value:function(){this._rmDefComputedStyle=!this._rmDefComputedStyle,this._render()}},{key:"_render",value:function(){var S=this._getData(this._curEl),k=this._$attributes,o=this._$elementName,v=this._$styles,x=this._$computedStyle,Z=this._$listeners;o.html(S.name);var U="Empty";Kt()(S.attributes)||(U=te()(S.attributes,function(Nt){var Ft=Nt.name,Pt=Nt.value;return` + ').concat(Ot()(Ft),` + ').concat(Pt,` + `)}).join("")),U=`

    Attributes

    +
    + + + `).concat(U,` + +
    +
    `),k.html(U);var ne="";if(Kt()(S.styles))v.hide();else{var Ae=te()(S.styles,function(Nt){var Ft=Nt.selectorText,Pt=Nt.style;return Pt=te()(Pt,function(tn,nn){return'
    ').concat(Ot()(nn),": ").concat(tn,";
    ")}).join(""),'
    +
    `).concat(Ot()(Ft),` {
    + `).concat(Pt,` +
    }
    +
    `)}).join("");ne=`

    Styles

    +
    + `).concat(Ae,` +
    `),v.html(ne).show()}var Le="";if(S.computedStyle){var ft=M(`
    + +
    `);S.rmDefComputedStyle&&(ft=M(`
    + +
    `)),Le=`

    + Computed Style + `.concat(ft,` +
    + +
    + `).concat(S.computedStyleSearchKeyword?'
    ').concat(Ot()(S.computedStyleSearchKeyword),"
    "):"",` +

    +
    +
    + + + `).concat(te()(S.computedStyle,function(Nt,Ft){return` + + + `)}).join(""),` + +
    ').concat(Ot()(Ft),``).concat(Nt,`
    +
    `),x.html(Le).show(),this._boxModel.setOption("element",this._curEl),x.find(M(".box-model")).append(this._$boxModel.get(0))}else x.text("").hide();var St="";S.listeners?(St=te()(S.listeners,function(Nt,Ft){return Nt=te()(Nt,function(Pt){var tn=Pt.useCapture,nn=Pt.listenerStr;return"
  • ").concat(Ot()(nn),"
  • ")}).join(""),'
    +
    ').concat(Ot()(Ft),`
    +
      + `).concat(Nt,` +
    +
    `)}).join(""),St=`

    Event Listeners

    +
    + `).concat(St,` +
    `),Z.html(St).show()):Z.hide(),this._$container.show()}},{key:"_getData",value:function(S){var k={},o=new $n(S),v=S.className,x=S.id,Z=S.attributes,U=S.tagName;k.computedStyleSearchKeyword=this._computedStyleSearchKeyword,k.attributes=Bo(Z),k.name=xo({tagName:U,id:x,className:v,attributes:Z});var ne=S.erudaEvents;if(ne&&$()(ne).length!==0&&(k.listeners=ne),Io(U))return k;var Ae=o.getComputedStyle(),Le=o.getMatchedCSSRules();Le.unshift(function(St){for(var Nt={selectorText:"element.style",style:{}},Ft=0,Pt=St.length;Ft
    $&').replace(Lo,function(S,k){return'url("'.concat(Co(k),'")')})}var Po=["script","style","meta","title","link","head"],Io=function(T){return Po.indexOf(T.toLowerCase())>-1},Co=function(T){return'').concat(T,"")},So=function(){return yn()(window,"EventTarget.prototype")||window.Node.prototype};function Ho(T){var S=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,o=(0,n.Z)(T);if(S){var v=(0,n.Z)(this).constructor;k=Reflect.construct(o,arguments,v)}else k=o.apply(this,arguments);return(0,d.Z)(this,k)}}var $o=function(T){(0,c.Z)(k,T);var S=Ho(k);function k(){var o;return(0,a.Z)(this,k),o=S.call(this),(0,l.Z)((0,s.Z)(o),"_showDetail",function(){o._isShow&&o._curNode&&(o._curNode.nodeType===Node.ELEMENT_NODE?o._detail.show(o._curNode):o._detail.show(o._curNode.parentNode))}),(0,l.Z)((0,s.Z)(o),"_back",function(){if(o._curNode!==o._htmlEl){for(var v=o._curParentQueue,x=v.shift();!Eo(x);)x=v.shift();o.set(x)}}),(0,l.Z)((0,s.Z)(o),"_updateScale",function(v){o._splitMediaQuery.setQuery("screen and (min-width: ".concat(680*v,"px)"))}),(0,l.Z)((0,s.Z)(o),"_deleteNode",function(){var v=o._curNode;v.parentNode&&v.parentNode.removeChild(v)}),(0,l.Z)((0,s.Z)(o),"_copyNode",function(){var v=o._curNode;v.nodeType===Node.ELEMENT_NODE?dn()(v.outerHTML):dn()(v.nodeValue),o._container.notify("Copied")}),(0,l.Z)((0,s.Z)(o),"_toggleSelect",function(){o._$el.find(M(".select")).toggleClass(M("active")),o._selectElement=!o._selectElement,o._selectElement?(A.domain("Overlay").setInspectMode({mode:"searchForNode",highlightConfig:{showInfo:!qt()(),showRulers:!1,showAccessibilityInfo:!qt()(),showExtensionLines:!1,contrastAlgorithm:"aa",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)"}}),o._container.hide()):(A.domain("Overlay").setInspectMode({mode:"none"}),A.domain("Overlay").hideHighlight())}),(0,l.Z)((0,s.Z)(o),"_inspectNodeRequested",function(v){var x=v.backendNodeId;o._container.show(),o._toggleSelect();var Z=A.domain("DOM").getNode({nodeId:x}).node;o.select(Z)}),(0,l.Z)((0,s.Z)(o),"_setNode",function(v){if(v!==o._curNode){o._curNode=v,o._renderCrumbs();for(var x=[],Z=v.parentNode;Z;)x.push(Z),Z=Z.parentNode;o._curParentQueue=x,o._splitMode&&o._showDetail(),o._updateButtons(),o._updateHistory()}}),o._style=oe(e(5896)),o.name="elements",o._selectElement=!1,o._observeElement=!0,o._history=[],m().mixin((0,s.Z)(o)),o}return(0,i.Z)(k,[{key:"init",value:function(o,v){var x=this;(0,y.Z)((0,n.Z)(k.prototype),"init",this).call(this,o),this._container=v,this._initTpl(),this._htmlEl=document.documentElement,this._detail=new Do(this._$detail,v),this.config=this._detail.config,this._splitMediaQuery=new(Ge())("screen and (min-width: 680px)"),this._splitMode=this._splitMediaQuery.isMatch(),this._domViewer=new bn.Z(this._$domViewer.get(0),{node:this._htmlEl,ignore:function(Z){return ue(Z)||Te(Z)}}),this._domViewer.expand(),this._bindEvent(),A.domain("Overlay").enable(),ze()(function(){return x._updateHistory()})}},{key:"show",value:function(){(0,y.Z)((0,n.Z)(k.prototype),"show",this).call(this),this._isShow=!0,this._curNode?this._splitMode&&this._showDetail():this.select(document.body)}},{key:"hide",value:function(){(0,y.Z)((0,n.Z)(k.prototype),"hide",this).call(this),this._isShow=!1,A.domain("Overlay").hideHighlight()}},{key:"set",value:function(o){return this.select(o)}},{key:"select",value:function(o){return this._domViewer.select(o),this._setNode(o),this.emit("change",o),this}},{key:"destroy",value:function(){(0,y.Z)((0,n.Z)(k.prototype),"destroy",this).call(this),g.off(g.SCALE,this._updateScale),oe.remove(this._style),this._detail.destroy(),A.domain("Overlay").off("inspectNodeRequested",this._inspectNodeRequested),A.domain("Overlay").disable(),this._splitMediaQuery.removeAllListeners()}},{key:"_updateButtons",value:function(){var o=this._$control,v=o.find(M(".show-detail")),x=o.find(M(".copy-node")),Z=o.find(M(".delete-node")),U=M("icon-disabled");v.addClass(U),x.addClass(U),Z.addClass(U);var ne=this._curNode;ne&&(ne!==document.documentElement&&ne!==document.body&&Z.rmClass(U),x.rmClass(U),ne.nodeType===Node.ELEMENT_NODE&&v.rmClass(U))}},{key:"_initTpl",value:function(){var o=this._$el;o.html(M(`
    +
    + + + + +
    +
    +
    +
    +
    +
    +
    `)),this._$detail=o.find(M(".detail")),this._$domViewer=o.find(M(".dom-viewer")),this._$control=o.find(M(".control")),this._$crumbs=o.find(M(".crumbs"))}},{key:"_renderCrumbs",value:function(){var o=function(x){for(var Z=[],U=0;x;)Z.push({text:xo(x,{noAttr:!0}),idx:U++}),x=x.parentElement;return Z.reverse()}(this._curNode),v="";Kt()(o)||(v=te()(o,function(x){var Z=x.text,U=x.idx;return'
  • ').concat(Z,"
  • ")}).join("")),this._$crumbs.html(v)}},{key:"_bindEvent",value:function(){var o=this,v=this;this._$el.on("click",M(".crumb"),function(){for(var x=mt()(b()(this).data("idx")),Z=v._curNode;x--&&Z.parentElement;)Z=Z.parentElement;Eo(Z)&&v.select(Z)}),this._$control.on("click",M(".select"),this._toggleSelect).on("click",M(".show-detail"),this._showDetail).on("click",M(".copy-node"),this._copyNode).on("click",M(".delete-node"),this._deleteNode),this._domViewer.on("select",this._setNode).on("deselect",this._back),A.domain("Overlay").on("inspectNodeRequested",this._inspectNodeRequested),this._splitMediaQuery.on("match",function(){o._splitMode=!0,o._showDetail()}),this._splitMediaQuery.on("unmatch",function(){o._splitMode=!1,o._detail.hide()}),g.on(g.SCALE,this._updateScale)}},{key:"_updateHistory",value:function(){var o=this._container.get("console");if(o){var v=this._history;v.unshift(this._curNode),v.length>5&&v.pop();for(var x=0;x<5;x++)o.setGlobal("$".concat(x),v[x])}}}]),k}(f),Eo=function(T){return Dt()(T)&&T.parentNode},Go=e(8847),Yo=e.n(Go),qo=e(9622),Jo=e.n(qo),Gn=null,Qo=[{name:"Border All",fn:function(){if(Gn)return oe.remove(Gn),void(Gn=null);Gn=oe("* { outline: 2px dashed #707d8b; outline-offset: -3px; }",document.head)},desc:"Add color borders to all elements"},{name:"Refresh Page",fn:function(){var T=new(ot());T.setQuery("timestamp",Yo()()),window.location.replace(T.toString())},desc:"Add timestamp to url and refresh"},{name:"Search Text",fn:function(){Yt.Z.prompt("Enter the text").then(function(T){T&&wt()(T)!==""&&function(S){var k=document.body,o=new RegExp(S,"ig");yo(k,function(v){var x=b()(v);if(x.hasClass("eruda-search-highlight-block"))return document.createTextNode(x.text())}),yo(k,function(v){if(v.nodeType===3){var x=v.nodeValue;if((x=x.replace(o,function(U){return''.concat(U,"")}))!==v.nodeValue){var Z=b()(document.createElement("div"));return Z.html(x),Z.addClass("eruda-search-highlight-block"),Z.get(0)}}})}(T)})},desc:"Highlight given text on page"},{name:"Edit Page",fn:function(){var T=document.body;T.contentEditable=T.contentEditable!=="true"},desc:"Toggle body contentEditable"},{name:"Fit Screen",fn:function(){var T=document.body,S=document.documentElement,k=b()(T);if(k.data("scaled"))window.scrollTo(0,+k.data("scaled")),k.rmAttr("data-scaled"),k.css("transform","none");else{var o=Math.max(T.scrollHeight,T.offsetHeight,S.clientHeight,S.scrollHeight,S.offsetHeight),v=Math.max(document.documentElement.clientHeight,window.innerHeight||0),x=v/o;k.css("transform","scale(".concat(x,")")),k.data("scaled",window.scrollY),window.scrollTo(0,o/2-v/2)}},desc:"Scale down the whole page to fit screen"},{name:"Load Monitor Plugin",fn:function(){pn("monitor")},desc:"Display page fps and memory"},{name:"Load Features Plugin",fn:function(){pn("features")},desc:"Browser feature detections"},{name:"Load Timing Plugin",fn:function(){pn("timing")},desc:"Show performance and resource timing"},{name:"Load Code Plugin",fn:function(){pn("code")},desc:"Edit and run JavaScript"},{name:"Load Benchmark Plugin",fn:function(){pn("benchmark")},desc:"Run JavaScript benchmarks"},{name:"Load Geolocation Plugin",fn:function(){pn("geolocation")},desc:"Test geolocation"},{name:"Load Orientation Plugin",fn:function(){pn("orientation")},desc:"Test orientation api"},{name:"Load Touches Plugin",fn:function(){pn("touches")},desc:"Visualize screen touches"}];function yo(T,S){var k=T.childNodes;if(!ue(T)){for(var o=0,v=k.length;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,o=(0,n.Z)(T);if(S){var v=(0,n.Z)(this).constructor;k=Reflect.construct(o,arguments,v)}else k=o.apply(this,arguments);return(0,d.Z)(this,k)}}var Xo=function(T){(0,c.Z)(k,T);var S=Ko(k);function k(){var o;return(0,a.Z)(this,k),(o=S.call(this))._style=oe(e(5571)),o.name="snippets",o._snippets=[],o}return(0,i.Z)(k,[{key:"init",value:function(o){(0,y.Z)((0,n.Z)(k.prototype),"init",this).call(this,o),this._bindEvent(),this._addDefSnippets()}},{key:"destroy",value:function(){(0,y.Z)((0,n.Z)(k.prototype),"destroy",this).call(this),oe.remove(this._style)}},{key:"add",value:function(o,v,x){return this._snippets.push({name:o,fn:v,desc:x}),this._render(),this}},{key:"remove",value:function(o){return Vo()(this._snippets,function(v){return v.name===o}),this._render(),this}},{key:"run",value:function(o){for(var v=this._snippets,x=0,Z=v.length;x +

    ').concat(Ot()(v.name),` +
    + +
    +

    +
    + `).concat(Ot()(v.desc),` +
    + `)}).join("");this._renderHtml(o)}},{key:"_renderHtml",value:function(o){o!==this._lastHtml&&(this._lastHtml=o,this._$el.html(o))}}]),k}(f),er=e(4224),tr=e.n(er),nr=e(8991),Oo=e.n(nr),or=e(1352),wo=e.n(or),rr=e(8099),ir=e.n(rr),To=function(){function T(S,k,o,v){var x=this;(0,a.Z)(this,T),(0,l.Z)(this,"_updateGridHeight",function(Z){x._dataGrid.setOption({minHeight:60*Z,maxHeight:223*Z})}),this._type=v,this._$container=S,this._devtools=k,this._resources=o,this._selectedItem=null,this._storeData=[],this._initTpl(),this._dataGrid=new B.Z(this._$dataGrid.get(0),{columns:[{id:"key",title:"Key",weight:30},{id:"value",title:"Value",weight:90}],minHeight:60,maxHeight:223}),this._bindEvent()}return(0,i.Z)(T,[{key:"destroy",value:function(){g.off(g.SCALE,this._updateGridHeight)}},{key:"refresh",value:function(){var S=this._dataGrid;this._refreshStorage(),S.clear(),Q()(this._storeData,function(k){var o=k.key,v=k.val;S.append({key:o,value:v},{selectable:!0})})}},{key:"_refreshStorage",value:function(){var S=this._resources,k=gt(this._type,!1);if(k){var o=[];k=JSON.parse(JSON.stringify(k)),Q()(k,function(v,x){R()(v)&&(S.config.get("hideErudaSetting")&&(Gt()(x,"eruda")||x==="active-eruda")||o.push({key:x,val:gn()(v,200)}))}),this._storeData=o}}},{key:"_updateButtons",value:function(){var S=this._$container,k=S.find(M(".show-detail")),o=S.find(M(".delete-storage")),v=S.find(M(".copy-storage")),x=M("btn-disabled");k.addClass(x),o.addClass(x),v.addClass(x),this._selectedItem&&(k.rmClass(x),o.rmClass(x),v.rmClass(x))}},{key:"_initTpl",value:function(){var S=this._$container,k=this._type;S.html(M(`

    + `.concat(k==="local"?"Local":"Session",` Storage +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    +

    +
    `))),this._$dataGrid=S.find(M(".data-grid")),this._$filterText=S.find(M(".filter-text"))}},{key:"_getVal",value:function(S){return this._type==="local"?localStorage.getItem(S):sessionStorage.getItem(S)}},{key:"_bindEvent",value:function(){var S=this,k=this._type,o=this._devtools;function v(x,Z){var U=o.get("sources");if(U)return U.set(x,Z),o.showTool("sources"),!0}this._$container.on("click",M(".refresh-storage"),function(){o.notify("Refreshed"),S.refresh()}).on("click",M(".clear-storage"),function(){Q()(S._storeData,function(x){k==="local"?localStorage.removeItem(x.key):sessionStorage.removeItem(x.key)}),S.refresh()}).on("click",M(".show-detail"),function(){var x=S._selectedItem,Z=S._getVal(x);try{v("object",JSON.parse(Z))}catch{v("raw",Z)}}).on("click",M(".copy-storage"),function(){var x=S._selectedItem;dn()(S._getVal(x)),o.notify("Copied")}).on("click",M(".filter"),function(){Yt.Z.prompt("Filter").then(function(x){mn()(x)||(x=wt()(x),S._$filterText.text(x),S._dataGrid.setOption("filter",x))})}).on("click",M(".delete-storage"),function(){var x=S._selectedItem;k==="local"?localStorage.removeItem(x):sessionStorage.removeItem(x),S.refresh()}),this._dataGrid.on("select",function(x){S._selectedItem=x.data.key,S._updateButtons()}).on("deselect",function(){S._selectedItem=null,S._updateButtons()}),g.on(g.SCALE,this._updateGridHeight)}}]),T}();function Yn(T,S){T.rmClass(M("ok")).rmClass(M("danger")).rmClass(M("warn")).addClass(M(S))}function qn(T,S){if(S===0)return"";var k=0,o=0;switch(T){case"cookie":k=30,o=60;break;case"script":k=5,o=10;break;case"stylesheet":k=4,o=8;break;case"image":k=50,o=100}return S>=o?"danger":S>=k?"warn":"ok"}var ar=function(){function T(S,k){(0,a.Z)(this,T),this._$container=S,this._devtools=k,this._selectedItem=null,this._initTpl(),this._dataGrid=new B.Z(this._$dataGrid.get(0),{columns:[{id:"key",title:"Key",weight:30},{id:"value",title:"Value",weight:90}],minHeight:60,maxHeight:223}),this._bindEvent()}return(0,i.Z)(T,[{key:"refresh",value:function(){var S=this._$container,k=this._dataGrid,o=A.domain("Network").getCookies().cookies,v=te()(o,function(x){return{key:x.name,val:x.value}});k.clear(),Q()(v,function(x){var Z=x.key,U=x.val;k.append({key:Z,value:U},{selectable:!0})}),Yn(S,qn("cookie",v.length))}},{key:"_initTpl",value:function(){var S=this._$container;S.html(M(`

    + Cookie + +
    + +
    + + + +
    + +
    +
    +

    +
    `)),this._$dataGrid=S.find(M(".data-grid")),this._$filterText=S.find(M(".filter-text"))}},{key:"_updateButtons",value:function(){var S=this._$container,k=S.find(M(".show-detail")),o=S.find(M(".delete-cookie")),v=S.find(M(".copy-cookie")),x=M("btn-disabled");k.addClass(x),o.addClass(x),v.addClass(x),this._selectedItem&&(k.rmClass(x),o.rmClass(x),v.rmClass(x))}},{key:"_getVal",value:function(S){for(var k=A.domain("Network").getCookies().cookies,o=0,v=k.length;o=T.length?{done:!0}:{done:!1,value:T[o++]}},e:function(ne){throw ne},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var x,Z=!0,U=!1;return{s:function(){k=k.call(T)},n:function(){var ne=k.next();return Z=ne.done,ne},e:function(ne){U=!0,x=ne},f:function(){try{Z||k.return==null||k.return()}finally{if(U)throw x}}}}function No(T,S){(S==null||S>T.length)&&(S=T.length);for(var k=0,o=new Array(S);k"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,o=(0,n.Z)(T);if(S){var v=(0,n.Z)(this).constructor;k=Reflect.construct(o,arguments,v)}else k=o.apply(this,arguments);return(0,d.Z)(this,k)}}var lr=function(T){(0,c.Z)(k,T);var S=cr(k);function k(){var o;return(0,a.Z)(this,k),(o=S.call(this))._style=oe(e(2488)),o.name="resources",o._hideErudaSetting=!1,o._observeElement=!0,o}return(0,i.Z)(k,[{key:"init",value:function(o,v){(0,y.Z)((0,n.Z)(k.prototype),"init",this).call(this,o),this._container=v,this._initTpl(),this._localStorage=new To(this._$localStorage,v,this,"local"),this._sessionStorage=new To(this._$sessionStorage,v,this,"session"),this._cookie=new ar(this._$cookie,v),this._bindEvent(),this._initObserver(),this._initCfg()}},{key:"refresh",value:function(){return this.refreshLocalStorage().refreshSessionStorage().refreshCookie().refreshScript().refreshStylesheet().refreshIframe().refreshImage()}},{key:"destroy",value:function(){(0,y.Z)((0,n.Z)(k.prototype),"destroy",this).call(this),this._localStorage.destroy(),this._sessionStorage.destroy(),this._disableObserver(),oe.remove(this._style),this._rmCfg()}},{key:"refreshScript",value:function(){var o=[];b()("script").each(function(){var ne=this.src;ne!==""&&o.push(ne)});var v=qn("script",(o=un()(o)).length),x="
  • Empty
  • ";Kt()(o)||(x=te()(o,function(ne){return ne=Ot()(ne),'
  • ').concat(ne,"
  • ")}).join(""));var Z='

    + Script +
    + +
    +

    +
      + `).concat(x,` +
    `),U=this._$script;return Yn(U,v),U.html(Z),this}},{key:"refreshStylesheet",value:function(){var o=[];b()("link").each(function(){this.rel==="stylesheet"&&o.push(this.href)});var v=qn("stylesheet",(o=un()(o)).length),x="
  • Empty
  • ";Kt()(o)||(x=te()(o,function(ne){return ne=Ot()(ne),'
  • ').concat(ne,"
  • ")}).join(""));var Z='

    + Stylesheet +
    + +
    +

    +
      + `).concat(x,` +
    `),U=this._$stylesheet;return Yn(U,v),U.html(Z),this}},{key:"refreshIframe",value:function(){var o=[];b()("iframe").each(function(){var Z=b()(this).attr("src");Z&&o.push(Z)}),o=un()(o);var v="
  • Empty
  • ";Kt()(o)||(v=te()(o,function(Z){return Z=Ot()(Z),'
  • ').concat(Z,"
  • ")}).join(""));var x='

    + Iframe +
    + +
    +

    +
      + `).concat(v,` +
    `);return this._$iframe.html(x),this}},{key:"refreshLocalStorage",value:function(){return this._localStorage.refresh(),this}},{key:"refreshSessionStorage",value:function(){return this._sessionStorage.refresh(),this}},{key:"refreshCookie",value:function(){return this._cookie.refresh(),this}},{key:"refreshImage",value:function(){var o=[],v=this._performance=window.webkitPerformance||window.performance;v&&v.getEntries?this._performance.getEntries().forEach(function(Ae){if(Ae.initiatorType==="img"||dr(Ae.name)){if(N()(Ae.name,"exclude=true"))return;o.push(Ae.name)}}):b()("img").each(function(){var Ae=b()(this),Le=Ae.attr("src");Ae.data("exclude")!=="true"&&o.push(Le)}),(o=un()(o)).sort();var x=qn("image",o.length),Z="
  • Empty
  • ";Kt()(o)||(Z=te()(o,function(Ae){return'
  • + +
  • `)}).join(""));var U='

    + Image +
    + +
    +

    +
      + `).concat(Z,` +
    `),ne=this._$image;return Yn(ne,x),ne.html(U),this}},{key:"show",value:function(){return(0,y.Z)((0,n.Z)(k.prototype),"show",this).call(this),this._observeElement&&this._enableObserver(),this.refresh()}},{key:"hide",value:function(){return this._disableObserver(),(0,y.Z)((0,n.Z)(k.prototype),"hide",this).call(this)}},{key:"_initTpl",value:function(){var o=this._$el;o.html(M(`
    +
    + +
    +
    +
    +
    `)),this._$localStorage=o.find(M(".local-storage")),this._$sessionStorage=o.find(M(".session-storage")),this._$cookie=o.find(M(".cookie")),this._$script=o.find(M(".script")),this._$stylesheet=o.find(M(".stylesheet")),this._$iframe=o.find(M(".iframe")),this._$image=o.find(M(".image"))}},{key:"_bindEvent",value:function(){var o=this,v=this._$el,x=this._container;function Z(ne,Ae){var Le=x.get("sources");if(Le)return Le.set(ne,Ae),x.showTool("sources"),!0}function U(ne){return function(Ae){if(x.get("sources")){Ae.preventDefault();var Le=b()(this).attr("href");ne!=="iframe"&&tr()(location.href,Le)?Oo()({url:Le,success:function(ft){Z(ne,ft)},dataType:"raw"}):Z("iframe",Le)}}}v.on("click",".eruda-refresh-script",function(){x.notify("Refreshed"),o.refreshScript()}).on("click",".eruda-refresh-stylesheet",function(){x.notify("Refreshed"),o.refreshStylesheet()}).on("click",".eruda-refresh-iframe",function(){x.notify("Refreshed"),o.refreshIframe()}).on("click",".eruda-refresh-image",function(){x.notify("Refreshed"),o.refreshImage()}).on("click",".eruda-img-link",function(){Z("img",b()(this).attr("src"))}).on("click",".eruda-css-link",U("css")).on("click",".eruda-js-link",U("js")).on("click",".eruda-iframe-link",U("iframe"))}},{key:"_rmCfg",value:function(){var o=this.config,v=this._container.get("settings");v&&v.remove(o,"hideErudaSetting").remove(o,"observeElement").remove("Resources")}},{key:"_initCfg",value:function(){var o=this,v=this.config=se.createCfg("resources",{hideErudaSetting:!0,observeElement:!0});v.get("hideErudaSetting")&&(this._hideErudaSetting=!0),v.get("observeElement")||(this._observeElement=!1),v.on("change",function(x,Z){switch(x){case"hideErudaSetting":return void(o._hideErudaSetting=Z);case"observeElement":return o._observeElement=Z,Z?o._enableObserver():o._disableObserver()}}),this._container.get("settings").text("Resources").switch(v,"hideErudaSetting","Hide Eruda Setting").switch(v,"observeElement","Auto Refresh Elements").separator()}},{key:"_initObserver",value:function(){var o=this;this._observer=new(On())(function(v){Q()(v,function(x){o._handleMutation(x)})})}},{key:"_handleMutation",value:function(o){var v=this;if(!ue(o.target)){var x=function(Ae){var Le=function(ft){return ft.tagName?ft.tagName.toLowerCase():""}(Ae);switch(Le){case"script":v.refreshScript();break;case"img":v.refreshImage();break;case"link":v.refreshStylesheet()}};if(o.type==="attributes")x(o.target);else if(o.type==="childList"){x(o.target);var Z,U=wo()(o.addedNodes),ne=sr(U=ir()(U,wo()(o.removedNodes)));try{for(ne.s();!(Z=ne.n()).done;)x(Z.value)}catch(Ae){ne.e(Ae)}finally{ne.f()}}}}},{key:"_enableObserver",value:function(){this._observer.observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0})}},{key:"_disableObserver",value:function(){this._observer.disconnect()}}]),k}(f),ur=/\.(jpeg|jpg|gif|png)$/,dr=function(T){return ur.test(T)},fr=e(4541),jo=e.n(fr),Mo=jo()(),hr=[{name:"Location",val:function(){return Ot()(location.href)}},{name:"User Agent",val:navigator.userAgent},{name:"Device",val:["",'"),""),""),"
    screen'.concat(screen.width," * ").concat(screen.height,"
    viewport".concat(window.innerWidth," * ").concat(window.innerHeight,"
    pixel ratio".concat(window.devicePixelRatio,"
    "].join("")},{name:"System",val:["",'"),""),"
    os'.concat(rt()(),"
    browser".concat(Mo.name+" "+Mo.version,"
    "].join("")},{name:"About",val:'Eruda v3.0.1'},{name:"Backers",val:function(){return'')}}],pr=e(550),vr=e.n(pr);function mr(T){var S=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,o=(0,n.Z)(T);if(S){var v=(0,n.Z)(this).constructor;k=Reflect.construct(o,arguments,v)}else k=o.apply(this,arguments);return(0,d.Z)(this,k)}}var gr=function(T){(0,c.Z)(k,T);var S=mr(k);function k(){var o;return(0,a.Z)(this,k),(o=S.call(this))._style=oe(e(879)),o.name="info",o._infos=[],o}return(0,i.Z)(k,[{key:"init",value:function(o,v){(0,y.Z)((0,n.Z)(k.prototype),"init",this).call(this,o),this._container=v,this._addDefInfo(),this._bindEvent()}},{key:"destroy",value:function(){(0,y.Z)((0,n.Z)(k.prototype),"destroy",this).call(this),oe.remove(this._style)}},{key:"add",value:function(o,v){var x=this._infos,Z=!1;return Q()(x,function(U){o===U.name&&(U.val=v,Z=!0)}),Z||x.push({name:o,val:v}),this._render(),this}},{key:"get",value:function(o){var v,x=this._infos;return $e()(o)?vr()(x):(Q()(x,function(Z){o===Z.name&&(v=Z.val)}),v)}},{key:"remove",value:function(o){for(var v=this._infos,x=v.length-1;x>=0;x--)v[x].name===o&&v.splice(x,1);return this._render(),this}},{key:"clear",value:function(){return this._infos=[],this._render(),this}},{key:"_addDefInfo",value:function(){var o=this;Q()(hr,function(v){return o.add(v.name,v.val)})}},{key:"_render",value:function(){var o=[];Q()(this._infos,function(x){var Z=x.name,U=x.val;sn()(U)&&(U=U()),o.push({name:Z,val:U})});var v="
      ".concat(te()(o,function(x){return'
    • ').concat(Ot()(x.name),'

      ').concat(x.val,"
    • ")}).join(""),"
    ");this._renderHtml(v)}},{key:"_bindEvent",value:function(){var o=this._container;this._$el.on("click",M(".copy"),function(){var v=b()(this).parent().parent(),x=v.find(M(".title")).text(),Z=v.find(M(".content")).text();dn()("".concat(x,": ").concat(Z)),o.notify("Copied")})}},{key:"_renderHtml",value:function(o){o!==this._lastHtml&&(this._lastHtml=o,this._$el.html(o))}}]),k}(f),br=e(8299),yr=e(8368),wr=e.n(yr),_r=e(3651),xr=e.n(_r),zo=e(7049);function Ar(T){var S=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,o=(0,n.Z)(T);if(S){var v=(0,n.Z)(this).constructor;k=Reflect.construct(o,arguments,v)}else k=o.apply(this,arguments);return(0,d.Z)(this,k)}}var kr=function(T){(0,c.Z)(k,T);var S=Ar(k);function k(){var o;return(0,a.Z)(this,k),(o=S.call(this))._style=oe(e(1344)),o.name="sources",o._showLineNum=!0,o}return(0,i.Z)(k,[{key:"init",value:function(o,v){(0,y.Z)((0,n.Z)(k.prototype),"init",this).call(this,o),this._container=v,this._bindEvent(),this._initCfg()}},{key:"destroy",value:function(){(0,y.Z)((0,n.Z)(k.prototype),"destroy",this).call(this),oe.remove(this._style),this._rmCfg()}},{key:"set",value:function(o,v){if(o==="img"){this._isFetchingData=!0;var x=new Image,Z=this;return x.onload=function(){Z._isFetchingData=!1,Z._data={type:"img",val:{width:this.width,height:this.height,src:v}},Z._render()},x.onerror=function(){Z._isFetchingData=!1},void(x.src=v)}return this._data={type:o,val:v},this._render(),this}},{key:"show",value:function(){return(0,y.Z)((0,n.Z)(k.prototype),"show",this).call(this),this._data||this._isFetchingData||this._renderDef(),this}},{key:"_renderDef",value:function(){var o=this;if(this._html)return this._data={type:"html",val:this._html},this._render();this._isGettingHtml||(this._isGettingHtml=!0,Oo()({url:location.href,success:function(v){return o._html=v},error:function(){return o._html="Sorry, unable to fetch source code:("},complete:function(){o._isGettingHtml=!1,o._renderDef()},dataType:"raw"}))}},{key:"_bindEvent",value:function(){var o=this;this._container.on("showTool",function(v,x){v!==o.name&&x.name===o.name&&delete o._data})}},{key:"_rmCfg",value:function(){var o=this.config,v=this._container.get("settings");v&&v.remove(o,"showLineNum").remove("Sources")}},{key:"_initCfg",value:function(){var o=this,v=this.config=se.createCfg("sources",{showLineNum:!0});v.get("showLineNum")||(this._showLineNum=!1),v.on("change",function(x,Z){x!=="showLineNum"||(o._showLineNum=Z)}),this._container.get("settings").text("Sources").switch(v,"showLineNum","Show Line Numbers").separator()}},{key:"_render",value:function(){switch(this._isInit=!0,this._data.type){case"html":case"js":case"css":return this._renderCode();case"img":return this._renderImg();case"object":return this._renderObj();case"raw":return this._renderRaw();case"iframe":return this._renderIframe()}}},{key:"_renderImg",value:function(){var o=this._data.val,v=o.width,x=o.height,Z=o.src;this._renderHtml('
    +
    ').concat(Ot()(Z),`
    +
    + +
    +
    ').concat(Ot()(v)," × ").concat(Ot()(x),`
    +
    `))}},{key:"_renderCode",value:function(){var o=this._data;this._renderHtml('
    '),!1);var v=o.val,x=o.val.length;x>Jn&&(v=gn()(v,Jn)),x'),!1);var o=this._data.val;try{R()(o)&&(o=JSON.parse(o))}catch{}new br.Z(this._$el.find(".eruda-json").get(0),{unenumerable:!0,accessGetter:!0}).set(o)}},{key:"_renderRaw",value:function(){var o=this._data;this._renderHtml('
    +
    +
    `));var v=o.val,x=this._$el.find(M(".raw")).get(0);v.length>Jn&&(v=gn()(v,Jn)),new zo.Z(x,{text:v,wrapLongLines:!0,showLineNumbers:v.length'))}},{key:"_renderHtml",value:function(o){var v=this;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&o===this._lastHtml||(this._lastHtml=o,this._$el.html(o),setTimeout(function(){return v._$el.get(0).scrollTop=0},0))}}]),k}(f),Cr=3e4,Ro=8e4,Jn=1e5,Sr=e(5166),Er=e.n(Sr),Or=e(3514),Tr=e.n(Or),Nr={init:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=T.container,k=T.tool,o=T.autoScale,v=o===void 0||o,x=T.useShadowDom,Z=x===void 0||x,U=T.defaults,ne=U===void 0?{}:U;this._isInit||(this._isInit=!0,this._scale=1,this._initContainer(S,Z),this._initStyle(),this._initDevTools(ne),this._initEntryBtn(),this._initSettings(),this._initTools(k),this._registerListener(),v&&this._autoScale())},_isInit:!1,version:"3.0.1",util:r,chobitsu:A,Tool:f,Console:no,Elements:$o,Network:Ht,Sources:kr,Resources:lr,Info:gr,Snippets:Xo,Settings:se,get:function(T){if(this._checkInit()){if(T==="entryBtn")return this._entryBtn;var S=this._devTools;return T?S.get(T):S}},add:function(T){if(this._checkInit())return sn()(T)&&(T=T(this)),this._devTools.add(T),this},remove:function(T){return this._devTools.remove(T),this},show:function(T){if(this._checkInit()){var S=this._devTools;return T?S.showTool(T):S.show(),this}},hide:function(){if(this._checkInit())return this._devTools.hide(),this},destroy:function(){this._devTools.destroy(),delete this._devTools,this._entryBtn.destroy(),delete this._entryBtn,this._unregisterListener(),b()(this._container).remove(),oe.clear(),this._isInit=!1,this._container=null,this._shadowRoot=null},scale:function(T){return zt()(T)?(this._scale=T,g.emit(g.SCALE,T),this):this._scale},position:function(T){var S=this._entryBtn;return Er()(T)?(S.setPos(T),this):S.getPos()},_autoScale:function(){qt()()&&this.scale(1/Tr()())},_registerListener:function(){var T=this;this._addListener=function(){return T.add.apply(T,arguments)},this._showListener=function(){return T.show.apply(T,arguments)},g.on(g.ADD,this._addListener),g.on(g.SHOW,this._showListener),g.on(g.SCALE,oe.setScale)},_unregisterListener:function(){g.off(g.ADD,this._addListener),g.off(g.SHOW,this._showListener),g.off(g.SCALE,oe.setScale)},_checkInit:function(){return this._isInit||bt.error('Please call "eruda.init()" first'),this._isInit},_initContainer:function(T,S){var k,o;T||(T=document.createElement("div"),document.documentElement.appendChild(T)),T.id="eruda",T.style.all="initial",this._container=T,S&&(T.attachShadow?k=T.attachShadow({mode:"open"}):T.createShadowRoot&&(k=T.createShadowRoot()),k&&(oe.container=document.head,oe(e(5357)+e(9327)+e(4821)+e(8903)+e(5777)),o=document.createElement("div"),k.appendChild(o),this._shadowRoot=k)),this._shadowRoot||(o=document.createElement("div"),T.appendChild(o)),be()(o,{className:"eruda-container __chobitsu-hide__",contentEditable:!1}),jo()().name==="ios"&&o.setAttribute("ontouchstart",""),this._$el=b()(o)},_initDevTools:function(T){this._devTools=new on(this._$el,{defaults:T})},_initStyle:function(){var T="eruda-style-container",S=this._$el;this._shadowRoot?(oe.container=this._shadowRoot,oe(":host { all: initial }")):(S.append('
    ')),oe.container=S.find(".".concat(T)).get(0)),oe(e(8020)+e(4821)+e(9327)+e(7591)+e(4987)+e(8903)+e(5512)+e(2156)+e(5777)+e(7871)+e(6833)+e(8516)+e(5357))},_initEntryBtn:function(){var T=this;this._entryBtn=new vt(this._$el),this._entryBtn.on("click",function(){return T._devTools.toggle()})},_initSettings:function(){var T=this._devTools,S=new se;T.add(S),this._entryBtn.initCfg(S),T.initCfg(S)},_initTools:function(){var T=this,S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["console","elements","network","resources","sources","info","snippets"];S=wo()(S);var k=this._devTools;S.forEach(function(o){var v=T[_n()(o)];try{v&&k.add(new v)}catch(x){ze()(function(){bt.error("Something wrong when initializing tool ".concat(o,":"),x.message)})}}),k.showTool(S[0]||"settings")}}},2027:function(u,t,e){var r=e(6672).Z;u.exports=r,u.exports.default=r},6610:function(u,t,e){e.r(t),t.default={}},9143:function(u,t,e){var r=this&&this.__awaiter||function(w,g,y,_){return new(y||(y=Promise))(function(f,p){function b(z){try{D(_.next(z))}catch(O){p(O)}}function E(z){try{D(_.throw(z))}catch(O){p(O)}}function D(z){var O;z.done?f(z.value):(O=z.value,O instanceof y?O:new y(function(I){I(O)})).then(b,E)}D((_=_.apply(w,g||[])).next())})},a=this&&this.__generator||function(w,g){var y,_,f,p,b={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function E(D){return function(z){return function(O){if(y)throw new TypeError("Generator is already executing.");for(;b;)try{if(y=1,_&&(f=2&O[0]?_.return:O[0]?_.throw||((f=_.return)&&f.call(_),0):_.next)&&!(f=f.call(_,O[1])).done)return f;switch(_=0,f&&(O=[2&O[0],f.value]),O[0]){case 0:case 1:f=O;break;case 4:return b.label++,{value:O[1],done:!1};case 5:b.label++,_=O[1],O=[0];continue;case 7:O=b.ops.pop(),b.trys.pop();continue;default:if(f=b.trys,!((f=f.length>0&&f[f.length-1])||O[0]!==6&&O[0]!==2)){b=0;continue}if(O[0]===3&&(!f||O[1]>f[0]&&O[1]",N))return void F.push(J);var $=[];E.default(J.attributes,function(ye){var ae=ye.name,pe=ye.value;return $.push(ae,pe)});for(var ce=0,Ce=$.length;ce",y.default.parse(N)[0].attrs))},t.setAttributeValue=function(j){var N=j.nodeId,F=j.name,Y=j.value;n.getNode(N).setAttribute(F,Y)};var L=[];function R(j,N){for(var F=d.filterNodes(j.childNodes),Y=0,J=F.length;Y5&&L.pop();for(var F=0;F<5;F++)I.setGlobal("$"+F,L[F])},t.setNodeValue=function(j){var N=j.nodeId,F=j.value;n.getNode(N).nodeValue=F},t.setOuterHTML=function(j){var N=j.nodeId,F=j.outerHTML;n.getNode(N).outerHTML=F},t.getDOMNodeId=function(j){var N=j.node;return{nodeId:d.getOrCreateNodeId(N)}},t.getDOMNode=function(j){var N=j.nodeId;return{node:n.getNode(N)}},h.default.on("attributes",function(j,N){var F=n.getNodeId(j);if(F){var Y=j.getAttribute(N);w.default(Y)?c.default.trigger("DOM.attributeRemoved",{nodeId:F,name:N}):c.default.trigger("DOM.attributeModified",{nodeId:F,name:N,value:Y})}}),h.default.on("childList",function(j,N,F){var Y=n.getNodeId(j);if(Y){if(N=d.filterNodes(N),F=d.filterNodes(F),!g.default(N)){ye();for(var J=0,P=N.length;J0||G)&&(I.children=_(b,z)),I}function _(b,E){var D=f(b.childNodes);return a.default(D,function(z){return y(z,{depth:E-1})})}function f(b){return i.default(b,function(E){return p(E)})}function p(b){if(b.nodeType===1){var E=b.getAttribute("class")||"";if(d.default(E,"__chobitsu-hide__")||d.default(E,"html2canvas-container"))return!1}var D=!(b.nodeType===3&&c.default(b.nodeValue||"")==="");return D&&b.parentNode?p(b.parentNode):D}t.getOrCreateNodeId=g,t.clear=function(){h.clear(),m.clear()},t.getNodeId=function(b){return m.get(b)},t.wrap=y,t.getChildNodes=_,t.getPreviousNode=function(b){var E=b.previousSibling;if(E){for(;!p(E)&&E.previousSibling;)E=E.previousSibling;return E&&p(E)?E:void 0}},t.filterNodes=f,t.isValidNode=p,t.getNode=function(b){var E=h.get(b);if(!E||E.nodeType===10)throw l.createErr(-32e3,"Could not find node with given id");return E}},7923:function(u,t,e){var r=this&&this.__importDefault||function(q){return q&&q.__esModule?q:{default:q}};Object.defineProperty(t,"__esModule",{value:!0}),t.getProperties=t.releaseObj=t.getObj=t.wrap=t.clear=void 0;var a=r(e(3367)),i=r(e(6156)),s=r(e(6472)),c=r(e(4777)),d=r(e(9833)),n=r(e(2749)),l=r(e(3708)),h=r(e(7470)),m=r(e(1754)),w=r(e(3085)),g=r(e(2533)),y=r(e(300)),_=r(e(1116)),f=r(e(8740)),p=r(e(415)),b=r(e(9804)),E=r(e(6257)),D=new Map,z=new Map,O=new Map,I=new Map,Q=1;function H(q,$){var ce=z.get(q);return ce||(ce=JSON.stringify({injectedScriptId:0,id:Q++}),z.set(q,ce),D.set(ce,q),O.set(ce,$),ce)}function G(q,$){var ce=$===void 0?{}:$,Ce=ce.generatePreview,ye=Ce!==void 0&&Ce,ae=ce.self,pe=ae===void 0?q:ae,be=Y(q),Se=be.type,Je=be.subtype;return Se==="undefined"?be:Se==="string"||Se==="boolean"||Je==="null"?(be.value=q,be):(be.description=F(q,pe),Se==="number"?(be.value=q,be):Se==="symbol"?(be.objectId=H(q,pe),be):(be.className=Se==="function"?"Function":Je==="array"?"Array":Je==="map"?"Map":Je==="set"?"Set":Je==="regexp"?"RegExp":Je==="error"?q.name:w.default(q,!1),ye&&(be.preview=j(q,pe)),be.objectId=H(q,pe),be))}function L(q){return D.get(q)}t.clear=function(){D.clear(),z.clear(),O.clear()},t.wrap=G,t.getObj=L,t.releaseObj=function(q){var $=L(q);z.delete($),O.delete(q),D.delete(q)},t.getProperties=function(q){for(var $=q.accessorPropertiesOnly,ce=q.objectId,Ce=q.ownProperties,ye=q.generatePreview,ae=[],pe={prototype:!Ce,unenumerable:!0,symbol:!$},be=D.get(ce),Se=O.get(ce),Je=_.default(be,pe),Ne=p.default(be),qe=0,_e=Je.length;qe<_e;qe++){var X=Je[qe],ee=void 0;try{ee=Se[X]}catch{}var W={name:a.default(X),isOwn:E.default(Se,X)},re=Object.getOwnPropertyDescriptor(be,X);if(!re&&Ne&&(re=Object.getOwnPropertyDescriptor(Ne,X)),re){if($&&!re.get&&!re.set)continue;W.configurable=re.configurable,W.enumerable=re.enumerable,W.writable=re.writable,re.get&&(W.get=G(re.get)),re.set&&(W.set=G(re.set))}Ne&&E.default(Ne,X)&&W.enumerable&&(W.isOwn=!0);var fe=!0;!W.isOwn&&W.get&&(fe=!1),fe&&(b.default(X)?(W.symbol=G(X),W.value={type:"undefined"}):W.value=G(ee,{generatePreview:ye})),$&&c.default(ee)&&f.default(ee)||ae.push(W)}if(!Ne||Ce||P(be)||ae.push({name:"__proto__",configurable:!0,enumerable:!1,isOwn:E.default(be,"__proto__"),value:G(Ne,{self:Se}),writable:!1}),$)return{result:ae};var Be=[];if(Ne&&!P(be)&&Be.push({name:"[[Prototype]]",value:G(Ne,{self:Se})}),l.default(be)||h.default(be)){var De=function(Pe){for(var V=I.get(Pe),Qe=V?L(V):[],oe=Pe.entries(),ve=oe.next().value;ve;)l.default(Pe)?Qe.push(new J(ve[1],ve[0])):Qe.push(new J(ve[1])),ve=oe.next().value;return Qe}(be);Be.push({name:"[[Entries]]",value:G(De)})}return{internalProperties:Be,result:ae}};var R=5;function j(q,$){$===void 0&&($=q);var ce=Y(q);ce.description=F(q,$);var Ce=!1,ye=[],ae=g.default(q),pe=ae.length;pe>R&&(pe=R,Ce=!0);for(var be=0;beR){Ce=!0;break}Je.push({key:j(qe),value:j(q.get(qe))}),be++,qe=Ne.next().value}ce.entries=Je}else if(h.default(q)){var _e=[],X=(be=0,q.keys());for(qe=X.next().value;qe;){if(be>R){Ce=!0;break}_e.push({value:j(qe)}),be++,qe=X.next().value}ce.entries=_e}return ce.overflow=Ce,ce}function N(q,$){var ce=Y($);ce.name=q;var Ce,ye=ce.subtype;return Ce=ce.type==="object"?ye==="null"?"null":ye==="array"?"Array("+$.length+")":ye==="map"?"Map("+$.size+")":ye==="set"?"Set("+$.size+")":w.default($,!1):a.default($),ce.value=Ce,ce}function F(q,$){$===void 0&&($=q);var ce=Y(q),Ce=ce.type,ye=ce.subtype;return Ce==="string"?q:Ce==="number"||Ce==="symbol"?a.default(q):Ce==="function"?y.default(q):ye==="array"?"Array("+q.length+")":ye==="map"?"Map("+$.size+")":ye==="set"?"Set("+$.size+")":ye==="regexp"?a.default(q):ye==="error"?q.stack:ye==="internal#entry"?q.name?'{"'+a.default(q.name)+'" => "'+a.default(q.value)+'"}':'"'+a.default(q.value)+'"':w.default(q,!1)}function Y(q){var $=typeof q,ce="object";if(q instanceof J)ce="internal#entry";else if(i.default(q))ce="null";else if(s.default(q))ce="array";else if(m.default(q))ce="regexp";else if(n.default(q))ce="error";else if(l.default(q))ce="map";else if(h.default(q))ce="set";else try{d.default(q)&&(ce="node")}catch{}return{type:$,subtype:ce}}var J=function(q,$){$&&(this.name=$),this.value=q};function P(q){return q instanceof J||!!(q[0]&&q[0]instanceof J)}},2636:function(u,t,e){var r,a=this&&this.__extends||(r=function(R,j){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,F){N.__proto__=F}||function(N,F){for(var Y in F)F.hasOwnProperty(Y)&&(N[Y]=F[Y])},r(R,j)},function(R,j){function N(){this.constructor=R}r(R,j),R.prototype=j===null?Object.create(j):(N.prototype=j.prototype,new N)}),i=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(t,"__esModule",{value:!0}),t.fullUrl=t.FetchRequest=t.XhrRequest=void 0;var s=i(e(1443)),c=i(e(6768)),d=i(e(9702)),n=i(e(6334)),l=i(e(8887)),h=i(e(4331)),m=i(e(8847)),w=i(e(3783)),g=i(e(6930)),y=i(e(3875)),_=e(316),f=function(R){function j(N,F,Y){var J=R.call(this)||this;return J.xhr=N,J.reqHeaders={},J.method=F,J.url=I(Y),J.id=_.createId(),J}return a(j,R),j.prototype.toJSON=function(){return{method:this.method,url:this.url,id:this.id}},j.prototype.handleSend=function(N){c.default(N)||(N=""),N={name:Q(this.url),url:this.url,data:N,time:m.default(),reqHeaders:this.reqHeaders,method:this.method},l.default(this.reqHeaders)||(N.reqHeaders=this.reqHeaders),this.emit("send",this.id,N)},j.prototype.handleReqHeadersSet=function(N,F){N&&F&&(this.reqHeaders[N]=F)},j.prototype.handleHeadersReceived=function(){var N=this.xhr,F=H(N.getResponseHeader("Content-Type")||"");this.emit("headersReceived",this.id,{type:F.type,subType:F.subType,size:z(N,!0,this.url),time:m.default(),resHeaders:D(N)})},j.prototype.handleDone=function(){var N,F,Y,J=this,P=this.xhr,q=P.responseType,$="",ce=function(){J.emit("done",J.id,{status:P.status,size:z(P,!1,J.url),time:m.default(),resTxt:$})},Ce=H(P.getResponseHeader("Content-Type")||"");q!=="blob"||Ce.type!=="text"&&Ce.subType!=="javascript"&&Ce.subType!=="json"?(q!==""&&q!=="text"||($=P.responseText),q==="json"&&($=JSON.stringify(P.response)),ce()):(N=P.response,F=function(ye,ae){ae&&($=ae),ce()},(Y=new FileReader).onload=function(){F(null,Y.result)},Y.onerror=function(ye){F(ye)},Y.readAsText(N))},j}(s.default);t.XhrRequest=f;var p=function(R){function j(N,F){F===void 0&&(F={});var Y=R.call(this)||this;return N instanceof window.Request&&(N=N.url),Y.url=I(N),Y.id=_.createId(),Y.options=F,Y.reqHeaders=F.headers||{},Y.method=F.method||"GET",Y}return a(j,R),j.prototype.send=function(N){var F=this,Y=this.options,J=c.default(Y.body)?Y.body:"";this.emit("send",this.id,{name:Q(this.url),url:this.url,data:J,reqHeaders:this.reqHeaders,time:m.default(),method:this.method}),N.then(function(P){var q=H((P=P.clone()).headers.get("Content-Type"));return P.text().then(function($){var ce={type:q.type,subType:q.subType,time:m.default(),size:b(P,$),resTxt:$,resHeaders:E(P),status:P.status};l.default(F.reqHeaders)||(ce.reqHeaders=F.reqHeaders),F.emit("done",F.id,ce)}),P})},j}(s.default);function b(R,j){var N=R.headers.get("Content-length");return N?y.default(N):L(j)}function E(R){var j={};return R.headers.forEach(function(N,F){return j[F]=N}),j}function D(R){var j=R.getAllResponseHeaders().split(` +`),N={};return w.default(j,function(F){if((F=h.default(F))!==""){var Y=F.split(":",2),J=Y[0],P=Y[1];N[J]=h.default(P)}}),N}function z(R,j,N){var F=0;function Y(){if(!j){var J=R.responseType,P="";J!==""&&J!=="text"||(P=R.responseText),P&&(F=L(P))}}if(function(J){return!g.default(J,G)}(N))Y();else try{F=y.default(R.getResponseHeader("Content-Length"))}catch{Y()}return F===0&&Y(),F}t.FetchRequest=p;var O=document.createElement("a");function I(R){return O.href=R,O.protocol+"//"+O.host+O.pathname+O.search+O.hash}function Q(R){var j=d.default(R.split("/"));return j.indexOf("?")>-1&&(j=h.default(j.split("?")[0])),j===""&&(j=new n.default(R).hostname),j}function H(R){if(!R)return{type:"unknown",subType:"unknown"};var j=R.split(";")[0].split("/");return{type:j[0],subType:d.default(j)}}t.fullUrl=I;var G=window.location.origin;function L(R){var j=encodeURIComponent(R).match(/%[89ABab]/g);return R.length+(j?j.length:0)}},316:function(u,t,e){var r,a=this&&this.__extends||(r=function(p,b){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,D){E.__proto__=D}||function(E,D){for(var z in D)D.hasOwnProperty(z)&&(E[z]=D[z])},r(p,b)},function(p,b){function E(){this.constructor=p}r(p,b),p.prototype=b===null?Object.create(b):(E.prototype=b.prototype,new E)}),i=this&&this.__awaiter||function(p,b,E,D){return new(E||(E=Promise))(function(z,O){function I(G){try{H(D.next(G))}catch(L){O(L)}}function Q(G){try{H(D.throw(G))}catch(L){O(L)}}function H(G){var L;G.done?z(G.value):(L=G.value,L instanceof E?L:new E(function(R){R(L)})).then(I,Q)}H((D=D.apply(p,b||[])).next())})},s=this&&this.__generator||function(p,b){var E,D,z,O,I={label:0,sent:function(){if(1&z[0])throw z[1];return z[1]},trys:[],ops:[]};return O={next:Q(0),throw:Q(1),return:Q(2)},typeof Symbol=="function"&&(O[Symbol.iterator]=function(){return this}),O;function Q(H){return function(G){return function(L){if(E)throw new TypeError("Generator is already executing.");for(;I;)try{if(E=1,D&&(z=2&L[0]?D.return:L[0]?D.throw||((z=D.return)&&z.call(D),0):D.next)&&!(z=z.call(D,L[1])).done)return z;switch(D=0,z&&(L=[2&L[0],z.value]),L[0]){case 0:case 1:z=L;break;case 4:return I.label++,{value:L[1],done:!1};case 5:I.label++,D=L[1],L=[0];continue;case 7:L=I.ops.pop(),I.trys.pop();continue;default:if(z=I.trys,!((z=z.length>0&&z[z.length-1])||L[0]!==6&&L[0]!==2)){I=0;continue}if(L[0]===3&&(!z||L[1]>z[0]&&L[1]*{vertical-align:top}.luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#5e5e5e}.luna-console-log-item .luna-console-log-content .luna-console-number{color:#1c00cf}.luna-console-log-item .luna-console-log-content .luna-console-boolean{color:#0d22aa}.luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#881391}.luna-console-log-item .luna-console-data-grid,.luna-console-log-item .luna-console-dom-viewer{white-space:initial}.luna-console-log-item.luna-console-error{z-index:50;background:#fff0f0;color:red;border-top:1px solid #ffd6d6;border-bottom:1px solid #ffd6d6}.luna-console-log-item.luna-console-error .luna-console-stack{padding-left:1.2em;white-space:nowrap}.luna-console-log-item.luna-console-error .luna-console-count{background:red}.luna-console-log-item.luna-console-debug{z-index:20}.luna-console-log-item.luna-console-input{border-bottom-color:transparent}.luna-console-log-item.luna-console-warn{z-index:40;color:#5c5c00;background:#fffbe5;border-top:1px solid #fff5c2;border-bottom:1px solid #fff5c2}.luna-console-log-item.luna-console-warn .luna-console-count{background:#e8a400}.luna-console-log-item.luna-console-info{z-index:30}.luna-console-log-item.luna-console-group,.luna-console-log-item.luna-console-groupCollapsed{font-weight:700}.luna-console-preview{display:inline-block}.luna-console-preview .luna-console-preview-container{display:flex;align-items:center}.luna-console-preview .luna-console-json{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-left:12px}.luna-console-preview .luna-console-preview-icon-container{display:block}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon{position:relative;font-size:12px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-down{top:2px}.luna-console-preview .luna-console-preview-icon-container .luna-console-icon-caret-right{top:1px}.luna-console-preview .luna-console-preview-content-container{word-break:break-all}.luna-console-preview .luna-console-descriptor,.luna-console-preview .luna-console-object-preview{font-style:italic}.luna-console-preview .luna-console-key{color:#881391}.luna-console-preview .luna-console-number{color:#1c00cf}.luna-console-preview .luna-console-null{color:#5e5e5e}.luna-console-preview .luna-console-string{color:#c41a16}.luna-console-preview .luna-console-boolean{color:#0d22aa}.luna-console-preview .luna-console-special{color:#5e5e5e}.luna-console-theme-dark{color-scheme:dark}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item{background:#29323d}.luna-console-theme-dark .luna-console-log-container.luna-console-selected .luna-console-log-item:not(.luna-console-error):not(.luna-console-warn){border-color:#4173b4}.luna-console-theme-dark .luna-console-log-item{color:#a5a5a5;border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-keyword{color:#e36eec}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-operator{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-comment{color:#747474}.luna-console-theme-dark .luna-console-log-item .luna-console-code .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-log-item.luna-console-error{background:#290000;color:#ff8080;border-top-color:#5c0000;border-bottom-color:#5c0000}.luna-console-theme-dark .luna-console-log-item.luna-console-error .luna-console-count{background:#ff8080}.luna-console-theme-dark .luna-console-log-item.luna-console-warn{color:#ffcb6b;background:#332a00;border-top-color:#650;border-bottom-color:#650}.luna-console-theme-dark .luna-console-log-item .luna-console-count{background:#42597f;color:#949494}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-null,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-undefined{color:#7f7f7f}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-boolean,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-regexp,.luna-console-theme-dark .luna-console-log-item .luna-console-log-content .luna-console-symbol{color:#e36eec}.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-down,.luna-console-theme-dark .luna-console-icon-container .luna-console-icon-caret-right{color:#9aa0a6}.luna-console-theme-dark .luna-console-header{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level{border-right-color:#3d3d3d}.luna-console-theme-dark .luna-console-nesting-level::before{border-bottom-color:#3d3d3d}.luna-console-theme-dark .luna-console-preview .luna-console-key{color:#e36eec}.luna-console-theme-dark .luna-console-preview .luna-console-number{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-null{color:#7f7f7f}.luna-console-theme-dark .luna-console-preview .luna-console-string{color:#f29766}.luna-console-theme-dark .luna-console-preview .luna-console-boolean{color:#9980ff}.luna-console-theme-dark .luna-console-preview .luna-console-special{color:#7f7f7f}`,""]),u.exports=t},4987:function(u,t,e){(t=e(3645)(!1)).push([u.id,'.luna-data-grid{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;position:relative;font-size:12px;border:1px solid #ccc;overflow:hidden;outline:0}.luna-data-grid.luna-data-grid-platform-windows{font-family:"Segoe UI",Tahoma,sans-serif}.luna-data-grid.luna-data-grid-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-data-grid .luna-data-grid-hidden,.luna-data-grid.luna-data-grid-hidden{display:none}.luna-data-grid .luna-data-grid-invisible,.luna-data-grid.luna-data-grid-invisible{visibility:hidden}.luna-data-grid *{box-sizing:border-box}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background-color:#242424}.luna-data-grid.luna-data-grid-theme-dark{color:#a5a5a5;background:#242424;border-color:#3d3d3d}.luna-data-grid table{width:100%;height:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.luna-data-grid td,.luna-data-grid th{padding:1px 4px;border-left:1px solid #ccc;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.luna-data-grid td:first-child,.luna-data-grid th:first-child{border-left:none}.luna-data-grid th{font-weight:400;border-bottom:1px solid #ccc;text-align:left;background:#f3f3f3}.luna-data-grid th.luna-data-grid-sortable:active,.luna-data-grid th.luna-data-grid-sortable:hover{background:#e6e6e6}.luna-data-grid td{height:20px;cursor:default;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.luna-data-grid:focus .luna-data-grid-node.luna-data-grid-selected{color:#fff;background:#1a73e8}.luna-data-grid:focus.luna-data-grid-theme-dark .luna-data-grid-node.luna-data-grid-selected{background:#0e639c}.luna-data-grid-data-container,.luna-data-grid-header-container{overflow:hidden}.luna-data-grid-header-container{height:21px}.luna-data-grid-data-container{overflow-y:auto}.luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#ddd}.luna-data-grid-data-container tr:nth-child(even){background:#f2f7fd}.luna-data-grid-filler-row td{height:auto}.luna-data-grid-resizer{position:absolute;top:0;bottom:0;width:5px;z-index:500;touch-action:none;cursor:col-resize}.luna-data-grid-resizing{cursor:col-resize!important}.luna-data-grid-resizing .luna-data-grid *{cursor:col-resize!important}.luna-data-grid-theme-dark{color-scheme:dark}.luna-data-grid-theme-dark td,.luna-data-grid-theme-dark th{border-color:#3d3d3d}.luna-data-grid-theme-dark th{background:#292a2d}.luna-data-grid-theme-dark th.luna-data-grid-sortable:hover{background:#303030}.luna-data-grid-theme-dark .luna-data-grid-data-container .luna-data-grid-node.luna-data-grid-selected{background:#393939}.luna-data-grid-theme-dark .luna-data-grid-data-container tr:nth-child(even){background:#0b2544}',""]),u.exports=t},8903:function(u,t,e){(t=e(3645)(!1)).push([u.id,"@font-face{font-family:luna-dom-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAASgAAsAAAAAB4QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFwAAACMIRYl8k9TLzIAAAFkAAAAPQAAAFZLxUkaY21hcAAAAaQAAADHAAACWBcU1KRnbHlmAAACbAAAAC4AAAAwabU7V2hlYWQAAAKcAAAALwAAADZzjr4faGhlYQAAAswAAAAYAAAAJAFyANdobXR4AAAC5AAAABAAAAA4AZAAAGxvY2EAAAL0AAAAEAAAAB4AnACQbWF4cAAAAwQAAAAfAAAAIAEZAA9uYW1lAAADJAAAASkAAAIWm5e+CnBvc3QAAARQAAAATgAAAG5m1cqleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiC2AdNMDGwMckCSGyzHCuSxA2kuIJ+HgReoggtJnANMcwJFGRmYAXZLBkt4nGNgZJBlnMDAysDAUMfQAyRloHQCAyeDMQMDEwMrMwNWEJDmmsJwgEH3IxPDCSBXCEwyMDCCCABbzwhtAAAAeJy1kksKwjAQhr/0oX0JLlyIZ9BDCQXtRkEEwQO56uV6Av0nmZWI4MIJX2H+JvNIBiiBXGxFAWEkYPaQGqKe00S94C5/xVJKwY49PQNnLly5Tdnzqb9JPXByNUT13YKipLVm4wvmilvR0ilfrboKFsy0N9OB2Yco32z+437SLVTQdo05dUksgF8z/8+6+B3dU2m67YR1u3fsLXtH7egtEq04OhZpcKzbk1OLs2NzcXE0F3rNhOW9ObqbKSRsVqYsQfYC6fYeiQB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOLeSTNM4/ltvjJwM5wACkRxPt7XgKCBYCXDMiDJwcAE4gAAQEgKxAB4nGNgZGBgOMHAACdXMjAyoAI+ADixAkp4nGNgAIITUEwCAABMyAGReJxjYAACHgYJ7BAADsoBLXicY2BkYGDgY2BmANEMDExAzAWEDAz/wXwGAAomASkAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxk0KgCAUAOE3/adlJ/FQgqBuFETw+i2kTd9mRiYZvv4ZJmYWVjZ2Dk4UmosbwyPK1Vq69aVnPbamEBuOSqFj8WQSgUgTeQGPtA2iAAA=') format('woff')}[class*=' luna-dom-viewer-icon-'],[class^=luna-dom-viewer-icon-]{display:inline-block;font-family:luna-dom-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-dom-viewer-icon-arrow-down:before{content:'\\f101'}.luna-dom-viewer-icon-arrow-right:before{content:'\\f102'}.luna-dom-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;overflow-y:auto;-webkit-overflow-scrolling:touch;background:0 0;overflow-x:hidden;word-wrap:break-word;padding:0 0 0 12px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;cursor:default;list-style:none}.luna-dom-viewer.luna-dom-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-viewer.luna-dom-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-viewer .luna-dom-viewer-hidden,.luna-dom-viewer.luna-dom-viewer-hidden{display:none}.luna-dom-viewer .luna-dom-viewer-invisible,.luna-dom-viewer.luna-dom-viewer-invisible{visibility:hidden}.luna-dom-viewer *{box-sizing:border-box}.luna-dom-viewer.luna-dom-viewer-theme-dark{color:#a5a5a5;background-color:#242424}.luna-dom-viewer ul{list-style:none}.luna-dom-viewer.luna-dom-viewer-theme-dark{color:#e8eaed}.luna-dom-viewer-toggle{min-width:12px;margin-left:-12px}.luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-icon-arrow-right{position:absolute!important;font-size:12px!important}.luna-dom-viewer-tree-item{line-height:16px;min-height:16px;position:relative;z-index:10;outline:0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection,.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{display:block}.luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#f2f7fd}.luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#e0e0e0}.luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#cfe8fc}.luna-dom-viewer-tree-item .luna-dom-viewer-icon-arrow-down{display:none}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-down{display:inline-block}.luna-dom-viewer-tree-item.luna-dom-viewer-expanded .luna-dom-viewer-icon-arrow-right{display:none}.luna-dom-viewer-html-tag{color:#881280}.luna-dom-viewer-tag-name{color:#881280}.luna-dom-viewer-attribute-name{color:#994500}.luna-dom-viewer-attribute-value{color:#1a1aa6}.luna-dom-viewer-attribute-value.luna-dom-viewer-attribute-underline{text-decoration:underline}.luna-dom-viewer-html-comment{color:#236e25}.luna-dom-viewer-selection{position:absolute;display:none;left:-10000px;right:-10000px;top:0;bottom:0;z-index:-1}.luna-dom-viewer-children{margin:0;overflow-x:visible;overflow-y:visible;padding-left:15px}.luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#881280}.luna-dom-viewer-text-node .luna-dom-viewer-number{color:#1c00cf}.luna-dom-viewer-text-node .luna-dom-viewer-operator{color:grey}.luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#236e25}.luna-dom-viewer-text-node .luna-dom-viewer-string{color:#1a1aa6}.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-down,.luna-dom-viewer-theme-dark .luna-dom-viewer-icon-arrow-right{color:#9aa0a6}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-tag,.luna-dom-viewer-theme-dark .luna-dom-viewer-tag-name{color:#5db0d7}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-name{color:#9bbbdc}.luna-dom-viewer-theme-dark .luna-dom-viewer-attribute-value{color:#f29766}.luna-dom-viewer-theme-dark .luna-dom-viewer-html-comment{color:#898989}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item:hover .luna-dom-viewer-selection{background:#083c69}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected .luna-dom-viewer-selection{background:#454545}.luna-dom-viewer-theme-dark .luna-dom-viewer-tree-item.luna-dom-viewer-selected:focus .luna-dom-viewer-selection{background:#073d69}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-keyword{color:#e36eec}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-number{color:#9980ff}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-operator{color:#7f7f7f}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-comment{color:#747474}.luna-dom-viewer-theme-dark .luna-dom-viewer-text-node .luna-dom-viewer-string{color:#f29766}",""]),u.exports=t},5512:function(u,t,e){(t=e(3645)(!1)).push([u.id,`@font-face{font-family:luna-modal-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAQwAAsAAAAABpQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAEkAAABoILgliE9TLzIAAAFUAAAAPQAAAFZL+0kZY21hcAAAAZQAAACBAAAB3sqmCy5nbHlmAAACGAAAAC0AAAA0Ftcaz2hlYWQAAAJIAAAALgAAADZzhL4YaGhlYQAAAngAAAAYAAAAJAFoANBobXR4AAACkAAAAA8AAAAcAMgAAGxvY2EAAAKgAAAADgAAABAATgBObWF4cAAAArAAAAAfAAAAIAESABhuYW1lAAAC0AAAASkAAAIWm5e+CnBvc3QAAAP8AAAAMQAAAEOplauDeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiCWgNIsQMzKwAykWRnYgGxGBiYAk+wFgwAAAHicY2BkkGWcwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAIfkjI8MJIFcITDIwMIIIAGAqCKIAAAB4nM2RQQqDQAxFXxyVUsST9DhduBd3ggsv0JX39QT6kwYED1D6hzeQD0nmM0ADFPESNdiG4frItfALz/Br3qp7HlS0jEzMLKy7HYf8e33J1HMdortoWuPzreUX8p2hEikj9f+oi3vIyl86JpWYEvfnxH9sSTzPmijXbl+wE7urE5sAAAB4nGNgZACB+UDIzcBgrs6uzi7OLm4ubq4+j1tfn1tPD0xOhjGAJAMDAKekBtMAAAB4nGNgZGBgAGLPuE0l8fw2Xxm4GU4ABaI4H+9rQNBAMB8IGRg4GJhAHAA5KgqUAAB4nGNgZGBgOMHAACfnMzAyoAJ2ADfsAjl4nGNgAIITDFgBABIUAMkAeJxjYAACKQQEAAO4AJ0AAHicY2BkYGBgZ+BhANEMDExAzAWEDAz/wXwGAApKASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxjYGKAABiNDtgZmRiZGVkYWRnZGNkZORhYk3Pyi1MZkxlzGPMZixlTGRgANIEEbAAAAA==') format('woff')}[class*=' luna-modal-icon-'],[class^=luna-modal-icon-]{display:inline-block;font-family:luna-modal-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-modal-icon-close:before{content:'\\f101'}.luna-modal{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center}.luna-modal.luna-modal-platform-windows{font-family:"Segoe UI",Tahoma,sans-serif}.luna-modal.luna-modal-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-modal .luna-modal-hidden,.luna-modal.luna-modal-hidden{display:none}.luna-modal .luna-modal-invisible,.luna-modal.luna-modal-invisible{visibility:hidden}.luna-modal *{box-sizing:border-box}.luna-modal.luna-modal-theme-dark{color:#a5a5a5;background-color:#242424}.luna-modal-icon-close{position:absolute;right:16px;top:18px;cursor:pointer;font-size:20px}.luna-modal-body{position:relative;background:#fff;max-height:100%;display:flex;flex-direction:column;border-radius:4px}.luna-modal-body.luna-modal-no-title{position:static}.luna-modal-body.luna-modal-no-title .luna-modal-title{display:none}.luna-modal-body.luna-modal-no-title .luna-modal-icon-close{color:#fff}.luna-modal-body.luna-modal-no-footer .luna-modal-footer{display:none}.luna-modal-hidden{display:none}.luna-modal-title{padding:16px;padding-right:36px;padding-bottom:0;font-size:18px;height:46px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-modal-content{padding:16px;overflow-y:auto}.luna-modal-footer{padding:12px}.luna-modal-button-group{display:flex;justify-content:flex-end}.luna-modal-button{padding:0 12px;background:#e9ecef;cursor:default;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0 4px;font-size:12px;border-radius:4px;overflow:hidden;height:28px;line-height:28px}.luna-modal-button:active::before{background:#1a73e8;content:"";opacity:.4;position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.luna-modal-button.luna-modal-secondary{color:#1a73e8;border:1px solid #ccc;background:#fff}.luna-modal-button.luna-modal-primary{color:#fff;background:#1a73e8}.luna-modal-input{box-sizing:border-box;outline:0;width:100%;font-size:16px;padding:6px 12px;border:1px solid #ccc;-webkit-appearance:none;-moz-appearance:none}.luna-modal-theme-dark{color:#a5a5a5}.luna-modal-theme-dark .luna-modal-body{background:#242424}`,""]),u.exports=t},7591:function(u,t,e){(t=e(3645)(!1)).push([u.id,".luna-notification{position:fixed;top:0;left:0;width:100%;height:100%;padding:20px;box-sizing:border-box;pointer-events:none;display:flex;flex-direction:column;font-size:14px;font-family:Arial,Helvetica,sans-serif}.luna-notification-item{display:flex;box-shadow:0 2px 2px 0 rgba(0,0,0,.07),0 1px 5px 0 rgba(0,0,0,.1);padding:10px 16px;color:#333;background:#fff}.luna-notification-lower{margin-top:16px}.luna-notification-upper{margin-bottom:16px}.luna-notification-theme-dark .luna-notification-item{box-shadow:0 2px 2px 0 rgba(255,255,255,.07),0 1px 5px 0 rgba(255,255,255,.1);color:#a5a5a5;background:#242424}",""]),u.exports=t},4821:function(u,t,e){(t=e(3645)(!1)).push([u.id,"@font-face{font-family:luna-object-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS8AAsAAAAAB7QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAGEAAACMISgl+k9TLzIAAAFsAAAAPQAAAFZLxUkWY21hcAAAAawAAADWAAACdBU42qdnbHlmAAAChAAAAC4AAAAwabU7V2hlYWQAAAK0AAAALwAAADZzjr4faGhlYQAAAuQAAAAYAAAAJAFyANlobXR4AAAC/AAAABAAAABAAZAAAGxvY2EAAAMMAAAAEAAAACIAtACobWF4cAAAAxwAAAAfAAAAIAEbAA9uYW1lAAADPAAAASkAAAIWm5e+CnBvc3QAAARoAAAAUwAAAHZW8MNZeJxNjTsOQFAQRc/z/+sV1mABohKV0gZeJRJR2X9cT4RJZu7nFIMBMjoGvHGaF6rdngcNAc/c/O/Nvq2W5E1igdNE2zv1iGh1c5FQPlYXUlJRyxt9+/pUKadQa/AveGEGZQAAAHicY2BkkGScwMDKwMBQx9ADJGWgdAIDJ4MxAwMTAyszA1YQkOaawnCAQfcjE8MJIFcITDIwMIIIAFqDCGkAAAB4nM2STQ4BQRCFv54ZP8MwFhYW4gQcShBsSERi50BWDuFCcwJedddKRGKnOt8k9aanqudVAy0gF3NRQLgTsLhJDVHP6UW94Kp8zEhKwYIlG/YcOXHm0mTPp96aumLLwdUQ1fcIqmJrwpSZL+iqak5JmyE1Ayr1bdGhr/2ZPmp/qPQtuj/uJzqQl+pfDyypesQD6AT/ElV8PjyrMccT9rdLR3PUFBI227VTio1jbm6dodg5VnPvmAsHxzofHfmi+Sbs/pwdWcXFkWdNSNg9arIE2QufuSCyAAB4nGNgZACBlQzTGZgYGMyVxVc2O073AIpAxHsYloHFRc2dPZY2OTIwAACmEQesAAB4nGNgZGBgAOINe2b6x/PbfGXgZjgBFIjifLyvAUEDwUqGZUCSg4EJxAEAUn4LLAB4nGNgZGBgOMHAACdXMjAyoAIBADizAkx4nGNgAIITUEwGAABZUAGReJxjYAACHgYJ3BAAE94BXXicY2BkYGAQYGBmANEMDExAzAWEDAz/wXwGAApcASsAeJxlkD1uwkAUhMdgSAJSghQpKbNVCiKZn5IDQE9Bl8KYtTGyvdZ6QaLLCXKEHCGniHKCHChj82hgLT9/M2/e7soABviFh3p5uG1qvVq4oTpxm/Qg7JOfhTvo40W4S38o3MMbpsJ9POKdO3j+HZ0BSuEW7vEh3Kb/KeyTv4Q7eMK3cJf+j3APK/wJ9/HqDdPIFLEp3FIn+yy0Z3n+rrStUlOoSTA+WwtdaBs6vVHro6oOydS5WMXW5GrOrs4yo0prdjpywda5cjYaxeIHkcmRIoJBgbipDktoJNgjQwh71b3UK6YtKvq1VpggwPgqtWCqaJIhlcaGyTWOrBUOPG1K1zGt+FrO5KS5zGreJCMr/u+6t6MT0Q+wbaZKzDDiE1/kg+YO+T89EV6oAAAAeJxdxjkOgCAUANE/uOOGB+FQBIjaaEJIuL6FsfE1M6Lk9fXPoKioaWjp6BnQjEzMLKwYNtHepZhtuMs1vpvO/ch4HIlIxhK4KVyc7BwiD8nvDlkA') format('woff')}[class*=' luna-object-viewer-icon-'],[class^=luna-object-viewer-icon-]{display:inline-block;font-family:luna-object-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-object-viewer-icon-caret-down:before{content:'\\f101'}.luna-object-viewer-icon-caret-right:before{content:'\\f102'}.luna-object-viewer{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;cursor:default;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.2;min-height:100%;color:#333;list-style:none!important}.luna-object-viewer ul{list-style:none!important;padding:0!important;padding-left:12px!important;margin:0!important}.luna-object-viewer li{position:relative;white-space:nowrap;line-height:16px;min-height:16px}.luna-object-viewer>li>.luna-object-viewer-key{display:none}.luna-object-viewer span{position:static!important}.luna-object-viewer li .luna-object-viewer-collapsed~.luna-object-viewer-close:before{color:#999}.luna-object-viewer-array .luna-object-viewer-object .luna-object-viewer-key{display:inline}.luna-object-viewer-null{color:#5e5e5e}.luna-object-viewer-regexp,.luna-object-viewer-string{color:#c41a16}.luna-object-viewer-number{color:#1c00cf}.luna-object-viewer-boolean{color:#0d22aa}.luna-object-viewer-special{color:#5e5e5e}.luna-object-viewer-key,.luna-object-viewer-key-lighter{color:#881391}.luna-object-viewer-key-lighter{opacity:.6}.luna-object-viewer-key-special{color:#5e5e5e}.luna-object-viewer-collapsed .luna-object-viewer-icon,.luna-object-viewer-expanded .luna-object-viewer-icon{position:absolute!important;left:-12px;color:#727272;font-size:12px}.luna-object-viewer-icon-caret-right{top:0}.luna-object-viewer-icon-caret-down{top:1px}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-down{display:inline}.luna-object-viewer-expanded>.luna-object-viewer-icon-caret-right{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-down{display:none}.luna-object-viewer-collapsed>.luna-object-viewer-icon-caret-right{display:inline}.luna-object-viewer-hidden~ul{display:none}.luna-object-viewer-theme-dark{color:#fff}.luna-object-viewer-theme-dark .luna-object-viewer-null,.luna-object-viewer-theme-dark .luna-object-viewer-special{color:#a1a1a1}.luna-object-viewer-theme-dark .luna-object-viewer-regexp,.luna-object-viewer-theme-dark .luna-object-viewer-string{color:#f28b54}.luna-object-viewer-theme-dark .luna-object-viewer-boolean,.luna-object-viewer-theme-dark .luna-object-viewer-number{color:#9980ff}.luna-object-viewer-theme-dark .luna-object-viewer-key,.luna-object-viewer-theme-dark .luna-object-viewer-key-lighter{color:#5db0d7}",""]),u.exports=t},7871:function(u,t,e){(t=e(3645)(!1)).push([u.id,`.luna-setting{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;min-width:320px}.luna-setting.luna-setting-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-setting.luna-setting-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-setting .luna-setting-hidden,.luna-setting.luna-setting-hidden{display:none}.luna-setting .luna-setting-invisible,.luna-setting.luna-setting-invisible{visibility:hidden}.luna-setting *{box-sizing:border-box}.luna-setting-item.luna-setting-selected,.luna-setting-item:hover{background:#f3f3f3}.luna-setting-item.luna-setting-selected:focus{outline:1px solid #1a73e8}.luna-setting-item .luna-setting-title{line-height:1.4em;font-weight:600}.luna-setting-item .luna-setting-description{line-height:1.4em}.luna-setting-item .luna-setting-description *{margin:0}.luna-setting-item .luna-setting-description strong{font-weight:600}.luna-setting-item .luna-setting-description a{background-color:transparent;color:#0969da;text-decoration:none}.luna-setting-item .luna-setting-control,.luna-setting-item .luna-setting-description{font-size:12px}.luna-setting-item .luna-setting-description{margin-bottom:8px}.luna-setting-item .luna-setting-control{display:flex;align-items:center}.luna-setting-item-button,.luna-setting-item-checkbox,.luna-setting-item-input,.luna-setting-item-number,.luna-setting-item-select,.luna-setting-item-title{padding:10px}.luna-setting-item-title{font-size:18px;font-weight:600}.luna-setting-item-input input{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:100%}.luna-setting-item-number input[type=number]{-webkit-tap-highlight-color:transparent;color:#333;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #ccc;outline:0;padding:2px 8px;border-radius:0;font-size:14px;background:#fff;width:200px;padding:2px}.luna-setting-item-number .luna-setting-range-container{flex:2;position:relative;top:1px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track{height:4px;width:100%;padding:0 10px;position:absolute;left:0;top:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#ccc;border-radius:2px;overflow:hidden;width:100%;height:4px}.luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar .luna-setting-range-track-progress{height:100%;background:#1a73e8;width:50%}.luna-setting-item-number .luna-setting-range-container input{-webkit-appearance:none;background:0 0;height:4px;width:100%;position:relative;top:-3px;margin:0 auto;outline:0;border-radius:2px}.luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{-webkit-appearance:none;position:relative;top:0;z-index:1;width:16px;border:none;height:16px;border-radius:10px;border:1px solid #ccc;background:radial-gradient(circle at center,#eee 0,#eee 15%,#fff 22%,#fff 100%)}.luna-setting-item-checkbox input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;border:1px solid #ccc;border-radius:0;position:relative;outline:0;margin-left:0;margin-right:8px;transition:background-color .1s;align-self:flex-start;flex-shrink:0}.luna-setting-item-checkbox input:checked{background-color:#1a73e8;border-color:#1a73e8}.luna-setting-item-checkbox input:checked:after{content:"";width:100%;height:100%;position:absolute;left:0;top:0;background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjZmZmZmZmIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgdmVyc2lvbj0iMS4xIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPmljb25fYnlfUG9zaGx5YWtvdjEwPC90aXRsZT48ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz48ZyBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyBmaWxsPSIjZmZmZmZmIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNi4wMDAwMDAsIDI2LjAwMDAwMCkiPjxwYXRoIGQ9Ik0xNy45OTk5ODc4LDMyLjQgTDEwLjk5OTk4NzgsMjUuNCBDMTAuMjI2Nzg5MSwyNC42MjY4MDE0IDguOTczMTg2NDQsMjQuNjI2ODAxNCA4LjE5OTk4Nzc5LDI1LjQgTDguMTk5OTg3NzksMjUuNCBDNy40MjY3ODkxNCwyNi4xNzMxOTg2IDcuNDI2Nzg5MTQsMjcuNDI2ODAxNCA4LjE5OTk4Nzc5LDI4LjIgTDE2LjU4NTc3NDIsMzYuNTg1Nzg2NCBDMTcuMzY2ODIyOCwzNy4zNjY4MzUgMTguNjMzMTUyOCwzNy4zNjY4MzUgMTkuNDE0MjAxNCwzNi41ODU3ODY0IEw0MC41OTk5ODc4LDE1LjQgQzQxLjM3MzE4NjQsMTQuNjI2ODAxNCA0MS4zNzMxODY0LDEzLjM3MzE5ODYgNDAuNTk5OTg3OCwxMi42IEw0MC41OTk5ODc4LDEyLjYgQzM5LjgyNjc4OTEsMTEuODI2ODAxNCAzOC41NzMxODY0LDExLjgyNjgwMTQgMzcuNzk5OTg3OCwxMi42IEwxNy45OTk5ODc4LDMyLjQgWiI+PC9wYXRoPjwvZz48L2c+PC9nPjwvc3ZnPg==);background-size:30px;background-repeat:no-repeat;background-position:center}.luna-setting-item-checkbox label{-webkit-tap-highlight-color:transparent}.luna-setting-item-checkbox label *{margin:0}.luna-setting-item-select .luna-setting-select{position:relative}.luna-setting-item-select .luna-setting-select select{margin:0;font-size:14px;background:#fff;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #ccc;padding:2px 8px;padding-right:18px;outline:0;color:#333;border-radius:0;-webkit-tap-highlight-color:transparent}.luna-setting-item-select .luna-setting-select:after{content:'';width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #333;position:absolute;top:0;bottom:0;right:6px;margin:auto;pointer-events:none}.luna-setting-item-select .luna-setting-select select{width:300px}.luna-setting-item-button button{-webkit-tap-highlight-color:transparent;background:#fff;border:1px solid #ccc;padding:2px 8px;color:#1a73e8;font-size:14px;border-radius:2px}.luna-setting-item-button button:active,.luna-setting-item-button button:hover{background:#f3f3f3}.luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-item-separator{border-bottom:1px solid #ccc}.luna-setting-theme-dark{color-scheme:dark;color:#a5a5a5;background:#242424}.luna-setting-theme-dark .luna-setting-item.luna-setting-selected,.luna-setting-theme-dark .luna-setting-item:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item .luna-setting-description a{background-color:transparent;color:#58a6ff}.luna-setting-theme-dark .luna-setting-item-separator{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-input input{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-checkbox input{border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select select{color:#a5a5a5;border-color:#3d3d3d;background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-select .luna-setting-select:after{border-top-color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-button button{background:#242424;border-color:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-button button:active,.luna-setting-theme-dark .luna-setting-item-button button:hover{background:#292a2d}.luna-setting-theme-dark .luna-setting-item-button button:active{border:1px solid #1a73e8}.luna-setting-theme-dark .luna-setting-item-number input[type=number]{background:#3d3d3d;border-color:#3d3d3d;color:#a5a5a5}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container .luna-setting-range-track .luna-setting-range-track-bar{background:#3d3d3d}.luna-setting-theme-dark .luna-setting-item-number .luna-setting-range-container input::-webkit-slider-thumb{border-color:#3d3d3d;background:radial-gradient(circle at center,#aaa 0,#aaa 15%,#ccc 22%,#ccc 100%)}`,""]),u.exports=t},2156:function(u,t,e){(t=e(3645)(!1)).push([u.id,".luna-tab{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;position:relative;overflow:hidden;width:100%}.luna-tab.luna-tab-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-tab.luna-tab-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-tab .luna-tab-hidden,.luna-tab.luna-tab-hidden{display:none}.luna-tab .luna-tab-invisible,.luna-tab.luna-tab-invisible{visibility:hidden}.luna-tab *{box-sizing:border-box}.luna-tab.luna-tab-theme-dark{color:#a5a5a5;background-color:#242424}.luna-tab-tabs-container{border-bottom:1px solid #ccc}.luna-tab-tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;overflow-y:hidden;width:100%;height:100%;font-size:0;white-space:nowrap}.luna-tab-tabs::-webkit-scrollbar{display:none;width:0;height:0}.luna-tab-item{cursor:pointer;display:inline-block;padding:0 10px;font-size:12px;text-align:center;text-transform:capitalize}.luna-tab-item:hover{background:#f3f3f3}.luna-tab-slider{transition:left .3s,width .3s;height:1px;background:#1a73e8;position:absolute;bottom:0;left:0}",""]),u.exports=t},5777:function(u,t,e){(t=e(3645)(!1)).push([u.id,"@font-face{font-family:luna-text-viewer-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAS0AAsAAAAAB2QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAFQAAAB0INElr09TLzIAAAFcAAAAPQAAAFZL+0klY21hcAAAAZwAAACfAAACEAEewxRnbHlmAAACPAAAAIYAAACkNSDggmhlYWQAAALEAAAALgAAADZzrb4oaGhlYQAAAvQAAAAWAAAAJAGRANNobXR4AAADDAAAABAAAAAoAZAAAGxvY2EAAAMcAAAAEAAAABYBWgFIbWF4cAAAAywAAAAdAAAAIAEXADtuYW1lAAADTAAAASkAAAIWm5e+CnBvc3QAAAR4AAAAOwAAAFJIWdOleJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBWAdNMDGwMQkAWK1CGlYEZyGMCstiBMpxAUUYGZgDbGgXDeJxjYGTQYJzAwMrAwFDH0AMkZaB0AgMngzEDAxMDKzMDVhCQ5prCcIAh+SMTwwkgVwhMMjAwgggAY84IrgAAAHicvZFLCsMwDERHzsdJ6aL0HD1VQiDQRbIN9Axd9aI+QTpjq5Bdd5F4Bo1lybIBNAAq8iA1YB8YZG+qlvUKl6zXGBjf6MofMWHGEyu2FPb9oCxULCtHs3yy+J2urg1rtojo0HM/MKnFGabOGlbdYvdT+1N6/7drXl8e6Vajo3efHP3b7HAUvntBMy1OJKujMTeHNZMV9McpFBC+tLgY4QB4nGNgZACBEwzrGdgZGOwZxdnVDdXNPfKEGlhchO0KhZtZ3IQYmMFq1jCsZpBi0GLQY2AwNzGzZjQSk2UUYdNmVFID8UyVRUXYlNRMlVGlTM1FjU3tmZkTmVhYmFRBhHwoCyuzKgtTIjMzWJg3ZClIGMRlZQmVB7GhMixM0aGhQIsB52sTqgAAeJxjYGRgYADi2JNxkvH8Nl8ZuBlOAAWiOB/va0DQQHCCYT2Q5GBgAnEANJ0KnQAAeJxjYGRgYDjBwIBEMjKgAi4AOvoCZQAAeJxjYACCE1CMBwAAM7gBkXicY2AAAiGGIFQIABXIAqN4nGNgZGBg4GLQZ2BmAAEmMI8LSP4H8xkADjQBUwAAAHicZZA9bsJAFITHYEgCUoIUKSmzVQoimZ+SA0BPQZfCmLUxsr3WekGiywlyhBwhp4hyghwoY/NoYC0/fzNv3u7KAAb4hYd6ebhtar1auKE6cZv0IOyTn4U76ONFuEt/KNzDG6bCfTzinTt4/h2dAUrhFu7xIdym/ynsk7+EO3jCt3CX/o9wDyv8Cffx6g3TyBSxKdxSJ/sstGd5/q60rVJTqEkwPlsLXWgbOr1R66OqDsnUuVjF1uRqzq7OMqNKa3Y6csHWuXI2GsXiB5HJkSKCQYG4qQ5LaCTYI0MIe9W91CumLSr6tVaYIMD4KrVgqmiSIZXGhsk1jqwVDjxtStcxrfhazuSkucxq3iQjK/7vurejE9EPsG2mSsww4hNf5IPmDvk/PRFeqAAAAHicXcU7CsAgFEXBe4x/l/kQBAtt3X0KSZNpRk7X91/F8eAJRBKZQqUp2Og2va19MAadyWJzpBd4kgcWAA==') format('woff')}[class*=' luna-text-viewer-icon-'],[class^=luna-text-viewer-icon-]{display:inline-block;font-family:luna-text-viewer-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.luna-text-viewer-icon-check:before{content:'\\f101'}.luna-text-viewer-icon-copy:before{content:'\\f102'}.luna-text-viewer{color:#333;background-color:#fff;font-family:Arial,Helvetica,sans-serif;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;padding:0;unicode-bidi:embed;position:relative;overflow:auto;border:1px solid #ccc}.luna-text-viewer.luna-text-viewer-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-text-viewer.luna-text-viewer-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-text-viewer .luna-text-viewer-hidden,.luna-text-viewer.luna-text-viewer-hidden{display:none}.luna-text-viewer .luna-text-viewer-invisible,.luna-text-viewer.luna-text-viewer-invisible{visibility:hidden}.luna-text-viewer *{box-sizing:border-box}.luna-text-viewer.luna-text-viewer-theme-dark{color:#d9d9d9;border-color:#3d3d3d;background:#242424}.luna-text-viewer:hover .luna-text-viewer-copy{opacity:1}.luna-text-viewer-table{display:table}.luna-text-viewer-table .luna-text-viewer-line-number,.luna-text-viewer-table .luna-text-viewer-line-text{padding:0}.luna-text-viewer-table-row{display:table-row}.luna-text-viewer-line-number{display:table-cell;padding:0 3px 0 8px!important;text-align:right;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:1px solid #ccc}.luna-text-viewer-line-text{display:table-cell;padding-left:4px!important;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.luna-text-viewer-copy{background:#fff;opacity:0;position:absolute;right:5px;top:5px;border:1px solid #ccc;border-radius:4px;width:25px;height:25px;text-align:center;line-height:25px;cursor:pointer;transition:opacity .3s,top .3s}.luna-text-viewer-copy .luna-text-viewer-icon-check{color:#188037}.luna-text-viewer-text{padding:4px;font-size:12px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;box-sizing:border-box;white-space:pre;display:block}.luna-text-viewer-text.luna-text-viewer-line-numbers{padding:0}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines{white-space:pre-wrap}.luna-text-viewer-text.luna-text-viewer-wrap-long-lines .luna-text-viewer-line-text{word-break:break-all}.luna-text-viewer-theme-dark{color-scheme:dark}.luna-text-viewer-theme-dark .luna-text-viewer-copy,.luna-text-viewer-theme-dark .luna-text-viewer-line-number{border-color:#3d3d3d}.luna-text-viewer-theme-dark .luna-text-viewer-copy .luna-text-viewer-icon-check{color:#81c995}.luna-text-viewer-theme-dark .luna-text-viewer-copy{background-color:#242424}",""]),u.exports=t},5357:function(u,t,e){(t=e(3645)(!1)).push([u.id,"@font-face{font-family:eruda-icon;src:url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAA6UAAsAAAAAGvAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAARoAAAHeLjoycE9TLzIAAAIkAAAAPwAAAFZWm1KoY21hcAAAAmQAAAFdAAADwhPu1O9nbHlmAAADxAAAB+wAAA9I7RPQpGhlYWQAAAuwAAAAMQAAADZ26MSyaGhlYQAAC+QAAAAdAAAAJAgEBC9obXR4AAAMBAAAAB0AAACwXAv//GxvY2EAAAwkAAAAOwAAAFpuVmoybWF4cAAADGAAAAAfAAAAIAE9AQ1uYW1lAAAMgAAAASkAAAIWm5e+CnBvc3QAAA2sAAAA5QAAAU4VMmUJeJxNkD1Ow0AQhb9NHGISCH9RiB0cErCNHRrqFFSIyqKiQHSpEFJERUnBCTgPZ+AEHIe34wDe1f69efPezOKAHldc07q5re4ZrFevL8QE1MPHm3e3fn5aEf6+FAvsDHHuTUoxd7zzwSdffLulq9wjLbaYau8TacZMONE554xzZsrtNfBEzFOhbSmOyTmga0ikvRR/37RSsSMyDukYPjWdgGOtsSK55Y/k0Bf/ksK0MrbFr70idsVZKNPnDcSay3umd2TISCvWTJSxI78lFQ/C+qbv/Zo9tNXDP55ZL7k0Q90u5F5XX0qrYx16btccCtXg/ULrKzGFuqY9rUTMhf3fkCNj+MxUnsM/frr5Qx+ZbH4vVQ0F5Q/ZQBvxAAB4nGNgZJJgnMDAysDA1Mt0hoGBoR9CM75mMGLkAIoysDIzYAUBaa4pDAcYdD+KsIC4MSxMDIxAGoQZALgnCOUAeJy1011SGlEQhuF3BFHxD5UUyr8gIJIsiiKJsSqJlrHKsJssKFeuxF6Bfj3dF96aqhzqoZnDzJyG8w2wCVTko1SheKLAx1/NFuV8hXo5X+WPjht6+fmfWHLDHQ+srfnykjMrvnPPoxXlzNtRlFc26HLBZblal1N9ntBnwIgx5/SYMaWt78+YM6TDgitduaEVq+q0xhbb7KifPQ441N2OOOaEJh9oaYka7xvdd57vQz1P+oPR+Bx6s2lbrc6H0Flc/cO9/sfY87fiOY8u8X0J/muX6VRW6UI+p4l8SX35mgZynUbyLY3lJukf0e6HnvxIM/mZpnKb2nKXvM/7dCa/0lwe0lAeU0d+p4Wsk3bBiuDptY2A10rw9Fo1eOJtM/iTYLWA162A1+2A152A13rwJ8R2g++AJaUU2w/KK3YQlFzsMCjDWCMozdhRUK6x46CEYydBWceagdYraihRngAAAHic7RdbbBxX9Z57Z2d2d2ZndryzM7ve9ax3NztjO/bann0lTuW16zoBJSWJ7Zg83NiUJCQ1Ik2ikKQJNC9FFQqVEG0RVLQoSpEKH2klqgpEIyWAUMRTNBJC/PUDhETgiwhQd8y5s1s7oqr624/srO6ce89zzjn3nHsJEPwxyn5GVEJKBTcCdc80pAiYhkjfNWL+NnhLdTKqfxVOqJlxFX6E84wb86/6X4+5GRLw0/vsOgkREoFGBFx62P/uFviBP78FWrC02d/r79vcpmMl+k2uBwwJxIILTrVeyXsmK8krRLb5YGqUaCb9ksYnMuBqMtnRcY6V1nidml6texaY9CxSRm3TtKNIjcxrUjhEWKD3OnuNJEgPKSG/I6nUpo06fxwXH8lmEoyDFQIVyrROs7254z990rj0u2PLez47WqG1yu69V7ZdfDxU9He4C6P+v+HN+vlnD9Uou0Zp+NnfvveT/XL0kbGFxT/u37tx7CTdeuGlKfiibcMr/gt9qfyu05e4+YEdb7A3iEVG0ArdEAvDIPHBqTbB7bgCDA0sdH0x3/nEHDT4YFJi9siz74iaOBkK3ZyRTRXwE+FGG15BeA0Pf14hqinP3AyFJnHhnVm5xzThmNSBNFjDdvwzw75GFJIlvWhZ1UHlYlI3zIputa3CSduiRF7P09e9on+jODpanPOKsJMDOPV2wU7/BqsVPcQ2ix41X/8ARKpbfhPVtHNgik1hXAhIlmQ1rIbbcCVIzN/7+65794KRTc13IBwJXVkhRACBkAEyhVyiBqJbRn81YRjKUDfRN9xHpoVBt0xJRZ+iS4ehZFg2utJrjCO2GrAUAizcj+c3pXpiXVQwThZmdNrbrx+hAjtjbhSF5FPyKSsqmGraWKYCbfl97vMLi79fXHje7XsAhBsoo0P35fyMPpCj+lM0FDptJexuYzl82upRufxlKgrTh/+fOwBXc+Jt9jZJBTnxUbH/yGT5j4jRT2pB9O1oO/oi3FyD2/ggU14LY/j5RuHTJIZf5LR/WVmbaB2CT6xdQa4KwJZIHPfyMFoWRNSmQZDLlJVpdRw8GwwVWEGlScOGijdOq2VKyfHDB7/d1/+d37zXeT/dXG42l7/Kh2a20pd0JpxsxTVNt8KWyuu/94Ujr+7uvFpvQXP5PCfEAU4l+6pZZ9Ix3eqGqmsGrvok28V+zi6TKEYyi/Udt0MNavkkJC1e+vQA1tGqil6EV93j/UBbY0AXm/2Vku+z53x/8MDT5879U9Nb4Cqq/yf/WEjReiECfS9+C2f/6umFS/77q3t7kp0nGu8DTrFTQrwG1KtsoHVXlnXL0qMKHTRpGbaJlt7aoVsSbO3aQFb5L7MTJElIwrBMvnWxQteCEl2QREn8Ci/Ef9i7u1IT6tX5Pb/ePV+rUXKEL3DMkUPzc6OeNzo3/6C8K2QdrzVlKAYyHhBcxGgUyoCRqXimJZXYwYO1y1tWxQWKLkyfunpqevrU5vJs4SQ02JUDw94qMlC6maORJpc9AR/Sm7C4cK7S4MoL/FNqFYy+Nw5VbpIoWaWXP0atf+fj1Lb36w12h6SxShIouuNQw+TCVDNsWvHqDStpNUoFnobUs6mhUvpmn+r2VxaeuXjmCc974vSjm44OxfytrXeH5iaKxYm5fXMThcLEHLwcGzq66dHTnObMxWcWKv2u2tfa1ipMzu7rEM5OFshqLfsFu4R9thszrVjAUoHFgH98DxRreb3CK74rMTh/bWmJTq9Pd0nCZOvsbfrYrVsTty9cOPc5Or2U6spq8rXbrbNAL9yeuHWLYuEnEiErK0JIAPIN8kNyl9wn/yUt7mioN6GGTi1jDQrypNPRxQ+8zREatnUsVtgbcDHAaZA0rc6TxOIWLPFVXLDbvYRT45CDSnBOqFhee4aTcWw8gapGnS+Z+EYrOuqh825jrY5WSVwPDSewh/OWqYueCJQFEjhELTdgcdEODjUCo5yge7lcAlJxRSgceyZyu5LFfqnaeldKlsyunnK6N6LEaUSqTSndgpZK7jC7NZaR7LGcGhXwgMNC+WFt0MxEomZcECQ9EY4JkgAQDilSNKnGuxXJ0u2hdG9YUZkiZcfWpaOWkUv0G6IaCseVVH81o0dEEClKGokassX0hKSk44PxBGOS4E8cmNk+OMSY5+2cXfz8zI4hrG4jI9tnFpW/hqKx7PCnH1O7wpFkqeANT4IUVhopPTUwnNJxzSlUzLASV+4YfUIkpoQFTYvoMUFkJgtJ/Z6VEIyymx4usdCW5CuDc9s+dZDm6GeiejTl1jN6VFKUdMHMlUIWzaQEOdyrKHIsL0VZJB0TE1rUlLvCo71yPKya3dW+ONBQRBajUdPuKoXFsBAOiYoUdx7JtSXlU3ZJNAW1O+4ktBCFqBjLJhMW97JgyonISE5kVIJQJJ6tO6nueCJj1TV/D6uMzu06tH/H44NlRr3RnbNPLu7cXh75sWOklURzi5ZI9dgqG6tuEAf0bkWX0/0j6S6+RjfaYiQsbkKHhuNdms6kUExWZNGSlJgzkjIGjPK61KjLxOvGc/1/27r9KOQe7omHe+LhnvjQnmArLTyHMYHiPbGbFLEL4Q1BxOsiHrfy2HIBz67BXQbPsVbB4TNDZP/wF4x63cAxUl/PRtbXI61f2QM2/iuZUqleKr3ABp1Mxnn/rjvpOJN0b9K2k/73+Xi/VHOcGl4qyf8AzjWNo3icY2BkYGAA4uhnXafj+W2+MnCzgASiOB/va4DR///+/8/CysIElOBgAJEMAHS2DWQAAAB4nGNgZGBgYQABFtb/f///ZWFlYGRABToAW+YEPQAAAHicY2BgYGAhiP//J6wGCbNCMcP/vwxUBgDl4QRhAAAAeJxjYAACBQYThiCGAoYtjAyMZowBjPuYuJjCmBYxvWNWYXZhzmFewfyIRYUliPUOexr7EmIhAF3rF0sAeJxjYGRgYNBhZGRgZwABJiDmAkIGhv9gPgMADcIBTAB4nGWQPW7CQBSEx2BIAlKCFCkps1UKIpmfkgNAT0GXwpi1MbK91npBossJcoQcIaeIcoIcKGPzaGAtP38zb97uygAG+IWHenm4bWq9WrihOnGb9CDsk5+FO+jjRbhLfyjcwxumwn084p07eP4dnQFK4Rbu8SHcpv8p7JO/hDt4wrdwl/6PcA8r/An38eoN08gUsSncUif7LLRnef6utK1SU6hJMD5bC11oGzq9Ueujqg7J1LlYxdbkas6uzjKjSmt2OnLB1rlyNhrF4geRyZEigkGBuKkOS2gk2CNDCHvVvdQrpi0q+rVWmCDA+Cq1YKpokiGVxobJNY6sFQ48bUrXMa34Ws7kpLnMat4kIyv+77q3oxPRD7BtpkrMMOITX+SD5g75Pz0RXqgAAAB4nG2MyW6DQBiD+RKYpKT7vqf7Gg55pNHwEyJNGDSMRHj70nKtD7Zly45G0YA0+h8LRoyJSVBMmLJDyoxd9tjngEOOOOaEU84454JLrrjmhlvuuGfOA4888cwLr7zxzgeffPHNgixKtfeuzawUYTZYv16VITXaS8hy11azwf7FibGi/dS4Te2laWLj6k7lYiVIIv3aK9nWusqng2TLsXR900m2VMXaBvFxbXWnvBjn84mXor8pk54kqKa/NmUvVkyIg3NW/VK2jFvtKzQeR0uGRSgIrFlRYsip2FDT0LGNoh/MCkh9AAAA') format('woff')}[class*=' _icon-'],[class^='_icon-']{display:inline-block;font-family:eruda-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._icon-arrow-left:before{content:'\\f101'}._icon-arrow-right:before{content:'\\f102'}._icon-caret-down:before{content:'\\f103'}._icon-caret-right:before{content:'\\f104'}._icon-clear:before{content:'\\f105'}._icon-compress:before{content:'\\f106'}._icon-copy:before{content:'\\f107'}._icon-delete:before{content:'\\f108'}._icon-error:before{content:'\\f109'}._icon-expand:before{content:'\\f10a'}._icon-eye:before{content:'\\f10b'}._icon-filter:before{content:'\\f10c'}._icon-play:before{content:'\\f10d'}._icon-record:before{content:'\\f10e'}._icon-refresh:before{content:'\\f10f'}._icon-reset:before{content:'\\f110'}._icon-search:before{content:'\\f111'}._icon-select:before{content:'\\f112'}._icon-tool:before{content:'\\f113'}._icon-warn:before{content:'\\f114'}",""]),u.exports=t},3645:function(u){u.exports=function(t){var e=[];return e.toString=function(){return this.map(function(r){var a=function(i,s){var c=i[1]||"",d=i[3];if(!d)return c;if(s&&typeof btoa=="function"){var n=(h=d,m=btoa(unescape(encodeURIComponent(JSON.stringify(h)))),w="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(m),"/*# ".concat(w," */")),l=d.sources.map(function(g){return"/*# sourceURL=".concat(d.sourceRoot||"").concat(g," */")});return[c].concat(l).concat([n]).join(` +`)}var h,m,w;return[c].join(` +`)}(r,t);return r[2]?"@media ".concat(r[2]," {").concat(a,"}"):a}).join("")},e.i=function(r,a,i){typeof r=="string"&&(r=[[null,r,""]]);var s={};if(i)for(var c=0;c-1&&h[n].splice(m,1),this}},once:function(n,l){return this.on(n,c(l)),this},emit:function(n){var l=this;if(a(this._events,n)){var h=s(arguments,1),m=d(this._events[n]);return i(m,function(w){return w.apply(l,h)},this),this}},removeAllListeners:function(n){return n?delete this._events[n]:this._events={},this}},{mixin:function(n){i(["on","off","once","emit","removeAllListeners"],function(l){n[l]=t.prototype[l]}),n._events=n._events||{}}}),u.exports=t},9640:function(u,t,e){var r=e(7496),a=e(4454),i=e(6472),s=e(3783),c=e(2533);t=r({initialize:function(d){i(d)?(this.size=d.length,s(d,function(n,l){this[n]=l},this)):(this.size=c(d).length,s(d,function(n,l){this[l]=n},this)),a(this)}}),u.exports=t},125:function(u,t,e){var r=e(5128),a=e(615),i=e(8887),s=e(4400),c=e(4193),d=e(5166),n=a("local");t=r.extend({initialize:function(l,h){this._name=l,h=h||{};var m=n.getItem(l);try{m=JSON.parse(m)}catch{m={}}d(m)||(m={}),h=c(m,h),this.callSuper(r,"initialize",[h])},save:function(l){if(i(l))return n.removeItem(this._name);n.setItem(this._name,s(l))}}),u.exports=t},4989:function(u,t,e){var r=e(1443),a=e(9640),i=e(1352),s=e(1286),c=e(4675),d=e(6768),n=e(3990);t=r.extend({initialize:function(l,h){this.name=l,this.setLevel(s(h)?t.level.DEBUG:h),this.callSuper(r,"initialize",arguments)},setLevel:function(l){return d(l)?((l=t.level[l.toUpperCase()])&&(this._level=l),this):(n(l)&&(this._level=l),this)},getLevel:function(){return this._level},formatter:function(l,h){return h},trace:function(){return this._log("trace",arguments)},debug:function(){return this._log("debug",arguments)},info:function(){return this._log("info",arguments)},warn:function(){return this._log("warn",arguments)},error:function(){return this._log("error",arguments)},_log:function(l,h){return(h=i(h)).length===0?this:(this.emit("all",l,c(h)),t.level[l.toUpperCase()]-1&&this._listeners.splice(d,1)},rmAllListeners:function(){this._listeners=[]},emit:function(){var c=this,d=s(arguments),n=a(this._listeners);i(n,function(l){return l.apply(c,d)},this)}},{mixin:function(c){i(["addListener","rmListener","emit","rmAllListeners"],function(d){c[d]=t.prototype[d]}),c._listeners=c._listeners||[]}}),u.exports=t},9001:function(u,t,e){var r=e(7496),a=e(1527);t=r({initialize:function(){this.clear()},clear:function(){this._items=[],this.size=0},push:function(i){return this._items.push(i),++this.size},pop:function(){if(this.size)return this.size--,this._items.pop()},peek:function(){return this._items[this.size-1]},forEach:function(i,s){s=arguments.length>1?s:this;for(var c=this._items,d=this.size-1,n=0;d>=0;d--,n++)i.call(s,c[d],n,this)},toArr:function(){return a(this._items)}}),u.exports=t},5128:function(u,t,e){var r=e(1443),a=e(6768),i=e(5166),s=e(3783),c=e(1352);t=r.extend({initialize:function(d){this.callSuper(r,"initialize",arguments),this._data=d||{},this.save(this._data)},set:function(d,n){var l;a(d)?(l={})[d]=n:i(d)&&(l=d);var h=this;s(l,function(m,w){var g=h._data[w];h._data[w]=m,h.emit("change",w,m,g)}),this.save(this._data)},get:function(d){var n=this._data;if(a(d))return n[d];var l={};return s(d,function(h){l[h]=n[h]}),l},remove:function(d){d=c(d);var n=this._data;s(d,function(l){delete n[l]}),this.save(n)},clear:function(){this._data={},this.save(this._data)},each:function(d){s(this._data,d)},save:function(d){this._data=d}}),u.exports=t},6334:function(u,t,e){var r=e(7496),a=e(6329),i=e(4331),s=e(1745),c=e(8887),d=e(3783),n=e(6472),l=e(1352),h=e(2727),m=e(5166),w=e(3367);t=r({className:"Url",initialize:function(f){!f&&h&&(f=window.location.href),a(this,t.parse(f||""))},setQuery:function(f,p){var b=this.query;return m(f)?d(f,function(E,D){b[D]=w(E)}):b[f]=w(p),this},rmQuery:function(f){var p=this.query;return n(f)||(f=l(f)),d(f,function(b){delete p[b]}),this},toString:function(){return t.stringify(this)}},{parse:function(f){var p={protocol:"",auth:"",hostname:"",hash:"",query:{},port:"",pathname:"",slashes:!1},b=i(f),E=!1,D=b.match(g);if(D&&(D=D[0],p.protocol=D.toLowerCase(),b=b.substr(D.length)),D&&(E=b.substr(0,2)==="//")&&(b=b.slice(2),p.slashes=!0),E){for(var z=b,O=-1,I=0,Q=_.length;I-1&&(z=b.slice(0,O),b=b.slice(O));var G=z.lastIndexOf("@");G!==-1&&(p.auth=decodeURIComponent(z.slice(0,G)),z=z.slice(G+1)),p.hostname=z;var L=z.match(y);L&&((L=L[0])!==":"&&(p.port=L.substr(1)),p.hostname=z.substr(0,z.length-L.length))}var R=b.indexOf("#");R!==-1&&(p.hash=b.substr(R),b=b.slice(0,R));var j=b.indexOf("?");return j!==-1&&(p.query=s.parse(b.substr(j+1)),b=b.slice(0,j)),p.pathname=b||"/",p},stringify:function(f){var p=f.protocol+(f.slashes?"//":"")+(f.auth?encodeURIComponent(f.auth)+"@":"")+f.hostname+(f.port?":"+f.port:"")+f.pathname;return c(f.query)||(p+="?"+s.stringify(f.query)),f.hash&&(p+=f.hash),p}});var g=/^([a-z0-9.+-]+:)/i,y=/:[0-9]*$/,_=["/","?","#"];u.exports=t},8991:function(u,t,e){var r=e(4777),a=e(1214),i=e(4193),s=e(5166),c=e(1745);function d(n,l,h,m){return r(l)&&(m=h,h=l,l={}),{url:n,data:l,success:h,dataType:m}}(t=function(n){i(n,t.setting);var l,h=n.type,m=n.url,w=n.data,g=n.dataType,y=n.success,_=n.error,f=n.timeout,p=n.complete,b=n.xhr();return b.onreadystatechange=function(){if(b.readyState===4){var E;clearTimeout(l);var D=b.status;if(D>=200&&D<300||D===304){E=b.responseText,g==="xml"&&(E=b.responseXML);try{g==="json"&&(E=JSON.parse(E))}catch{}y(E,b)}else _(b);p(b)}},h==="GET"?(w=c.stringify(w))&&(m+=m.indexOf("?")>-1?"&"+w:"?"+w):n.contentType==="application/x-www-form-urlencoded"?s(w)&&(w=c.stringify(w)):n.contentType==="application/json"&&s(w)&&(w=JSON.stringify(w)),b.open(h,m,!0),b.setRequestHeader("Content-Type",n.contentType),f>0&&(l=setTimeout(function(){b.onreadystatechange=a,b.abort(),_(b,"timeout"),p(b)},f)),b.send(h==="GET"?null:w),b}).setting={type:"GET",success:a,error:a,complete:a,dataType:"json",contentType:"application/x-www-form-urlencoded",data:{},xhr:function(){return new XMLHttpRequest},timeout:0},t.get=function(){return t(d.apply(null,arguments))},t.post=function(){var n=d.apply(null,arguments);return n.type="POST",t(n)},u.exports=t},1116:function(u,t,e){var r=e(2533),a=e(415),i=e(42),s=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols;t=function(d){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=n.prototype,h=l===void 0||l,m=n.unenumerable,w=m!==void 0&&m,g=n.symbol,y=g!==void 0&&g,_=[];if((w||y)&&s){var f=r;w&&s&&(f=s);do _=_.concat(f(d)),y&&c&&(_=_.concat(c(d)));while(h&&(d=a(d))&&d!==Object.prototype);_=i(_)}else if(h)for(var p in d)_.push(p);else _=r(d);return _},u.exports=t},7913:function(u,t,e){var r=e(3783),a=e(1286),i=e(4777);t=function(s,c){a(c)&&(c=!0);var d=i(c),n={};return r(s,function(l){n[l]=d?c(l):c}),n},u.exports=t},3901:function(u,t){t={encode:function(s){var c,d,n=[],l=s.length,h=l%3;l-=h;for(var m=0;m>18&63]+r[c>>12&63]+r[c>>6&63]+r[63&c]));return l=s.length,h===1?(d=s[l-1],n.push(r[d>>2]),n.push(r[d<<4&63]),n.push("==")):h===2&&(d=(s[l-2]<<8)+s[l-1],n.push(r[d>>10]),n.push(r[d>>4&63]),n.push(r[d<<2&63]),n.push("=")),n.join("")},decode:function(s){var c=s.length,d=0;s[c-2]==="="?d=2:s[c-1]==="="&&(d=1);var n,l,h,m,w,g,y,_=new Array(3*c/4-d);for(c=d>0?c-4:c,n=0,l=0;n>16&255,_[l++]=f>>8&255,_[l++]=255&f}return d===2?(y=e[s.charCodeAt(n)]<<2|e[s.charCodeAt(n+1)]>>4,_[l++]=255&y):d===1&&(y=e[s.charCodeAt(n)]<<10|e[s.charCodeAt(n+1)]<<4|e[s.charCodeAt(n+2)]>>2,_[l++]=y>>8&255,_[l++]=255&y),_}};for(var e=[],r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,i=r.length;a0&&(a=r.apply(this,arguments)),e<=1&&(r=null),a}},u.exports=t},7494:function(u,t,e){var r=e(8935);function a(i,s){this[s]=i.replace(/\w/,function(c){return c.toUpperCase()})}t=function(i){var s=r(i),c=s[0];return s.shift(),s.forEach(a,s),c+=s.join("")},u.exports=t},1694:function(u,t,e){var r=e(6257),a=e(6472);t=function(c,d){if(a(c))return c;if(d&&r(d,c))return[c];var n=[];return c.replace(i,function(l,h,m,w){n.push(m?w.replace(s,"$1"):h||l)}),n};var i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g;u.exports=t},996:function(u,t){t=function(e,r){var a=[];r=r||1;for(var i=0,s=Math.ceil(e.length/r);is?s:a},u.exports=t},4675:function(u,t,e){var r=e(5166),a=e(6472),i=e(6329);t=function(s){return r(s)?a(s)?s.slice():i({},s):s},u.exports=t},550:function(u,t,e){var r=e(5166),a=e(4777),i=e(6472),s=e(8820);t=function(c){return i(c)?c.map(function(d){return t(d)}):r(c)&&!a(c)?s(c,function(d){return t(d)}):c},u.exports=t},8099:function(u,t,e){var r=e(1352);t=function(){for(var a=r(arguments),i=[],s=0,c=a.length;s-1:(i(c)||(c=s(c)),r(c,d)>=0)},u.exports=t},1792:function(u,t,e){var r=e(6768),a=e(3901),i=e(385),s=e(6472),c=e(2349),d=e(3085),n=e(3063);(t=function(l,h){var m;if(h=n(h),r(l))m=new Uint8Array(a.decode(l));else if(i(l))l=l.slice(0),m=new Uint8Array(l);else if(s(l))m=new Uint8Array(l);else if(d(l)==="uint8array")m=l.slice(0);else if(c(l)){m=new Uint8Array(l.length);for(var w=0;w0?"-":"+")+c(100*Math.floor(Math.abs(H)/60)+Math.abs(H)%60,4),S:["th","st","nd","rd"][p%10>3?0:(p%100-p%10!=10)*p%10]};return w.replace(d,function(L){return L in G?G[L]:L.slice(1,L.length-1)})};var c=function(m){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return s(i(m),w,"0")},d=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,n=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/\d/,h=/[^-+\dA-Z]/g;t.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},t.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},u.exports=t},6049:function(u,t){t=function(e,r,a){var i;return function(){var s=this,c=arguments;a||clearTimeout(i),a&&i||(i=setTimeout(function(){i=null,e.apply(s,c)},r))}},u.exports=t},1420:function(u,t,e){var r=e(3783),a=e(8166),i=e(2461),s=e(5742);function c(n){return+("0x"+n)}t=function(n){try{return decodeURIComponent(n)}catch{var l=n.match(d);return l&&r(l,function(m){n=n.replace(m,function(w){w=w.split("%").slice(1);var g=i(w,c);return w=a.encode(g),w=s.decode(w,!0),w}(m))}),n}};var d=/(%[a-f0-9]{2})+/gi;u.exports=t},4193:function(u,t,e){t=e(4427)(e(1116),!0),u.exports=t},9803:function(u,t,e){var r=e(1694),a=e(6768),i=e(5166),s=e(3783);function c(d,n,l){for(var h=r(n,d),m=h.pop();n=h.shift();)d[n]||(d[n]={}),d=d[n];Object.defineProperty(d,m,l)}t=function(d,n,l){return a(n)?c(d,n,l):i(n)&&s(n,function(h,m){c(d,m,h)}),d},u.exports=t},2443:function(u,t,e){var r=e(7496),a=e(6341);function i(){return!0}function s(){return!1}function c(n){var l,h=this.events[n.type],m=d.call(this,n,h);n=new t.Event(n);for(var w,g,y=0;(g=m[y++])&&!n.isPropagationStopped();)for(n.curTarget=g.el,w=0;(l=g.handlers[w++])&&!n.isImmediatePropagationStopped();)l.handler.apply(g.el,[n])===!1&&(n.preventDefault(),n.stopPropagation())}function d(n,l){var h,m,w,g,y=n.target,_=[],f=l.delegateCount;if(y.nodeType)for(;y!==this;y=y.parentNode||this){for(m=[],g=0;g-1)return a(l.substring(m+h.length,l.indexOf(".",m)))}u.exports=t},6954:function(u,t,e){var r=e(2727);t=function(a){if(a=(a=a||(r?navigator.userAgent:"")).toLowerCase(),i("windows phone"))return"windows phone";if(i("win"))return"windows";if(i("android"))return"android";if(i("ipad")||i("iphone")||i("ipod"))return"ios";if(i("mac"))return"os x";if(i("linux"))return"linux";function i(s){return a.indexOf(s)>-1}return"unknown"},u.exports=t},801:function(u,t,e){var r=e(1137),a=e(288),i=e(5972),s=e(6341);t=r(function(c,d){return d=a(d),i(c,function(n){return!s(d,n)})}),u.exports=t},3783:function(u,t,e){var r=e(1369),a=e(2533),i=e(3955);t=function(s,c,d){var n,l;if(c=i(c,d),r(s))for(n=0,l=s.length;n=0&&e.indexOf(r,a)===a},u.exports=t},8901:function(u,t,e){var r=e(2533),a=(t=function(n){return s.test(n)?n.replace(c,d):n}).map={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},i="(?:"+r(a).join("|")+")",s=new RegExp(i),c=new RegExp(i,"g"),d=function(n){return a[n]};u.exports=t},4187:function(u,t,e){var r=e(3367);t=function(i){return r(i).replace(a,function(s){switch(s){case'"':case"'":case"\\":return"\\"+s;case` +`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}})};var a=/["'\\\n\r\u2028\u2029]/g;u.exports=t},2337:function(u,t){t=function(e){return e.replace(/\W/g,"\\$&")},u.exports=t},642:function(u,t){t=function(e){var r=document.createElement("style");return r.textContent=e,r.type="text/css",document.head.appendChild(r),r},u.exports=t},1672:function(u,t,e){var r=e(2838),a=e(1369),i=e(2533);t=function(s,c,d){c=r(c,d);for(var n=!a(s)&&i(s),l=(n||s).length,h=0;h[\]\u2100-\uFFFF(),]*/gi;u.exports=t},5972:function(u,t,e){var r=e(2838),a=e(3783);t=function(i,s,c){var d=[];return s=r(s,c),a(i,function(n,l,h){s(n,l,h)&&d.push(n)}),d},u.exports=t},2244:function(u,t,e){var r=e(2267),a=e(4072),i=e(1369),s=e(1286);t=function(c,d,n){var l=(i(c)?a:r)(c,d,n);if(!s(l)&&l!==-1)return c[l]},u.exports=t},4072:function(u,t,e){var r=e(2838);t=function(a,i,s,c){c=c||1,i=r(i,s);for(var d=a.length,n=c>0?0:d-1;n>=0&&n2?m-2:0),g=2;g>>4).toString(16)),i.push((15&d).toString(16))}return i.join("")},decode:function(a){var i=[],s=a.length;r(s)&&s--;for(var c=0;c1&&arguments[1]!==void 0?arguments[1]:"js",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};a(n,i),c=c.replace(//g,">"),d=s[d];var l=0,h=[];r(d,function(w){w.language&&(c=c.replace(w.re,function(g,y){return y?(h[l++]=t(y,w.language,n),g.replace(y,"___subtmpl"+(l-1)+"___")):g}))}),r(d,function(w,g){s[w.language]||(c=c.replace(w.re,"___"+g+"___$1___end"+g+"___"))});var m=[];return c=c.replace(/___(?!subtmpl)\w+?___/g,function(w){var g=w.substr(3,3)==="end",y=(g?w.substr(6):w.substr(3)).replace(/_/g,""),_=m.length>0?m[m.length-1]:null;return!g&&(_==null||y==_||_!=null&&d[_]&&d[_].embed!=null&&d[_].embed.indexOf(y)>-1)?(m.push(y),w):g&&y==_?(m.pop(),w):""}),r(d,function(w,g){var y=n[w.style]?' style="'.concat(n[w.style],'"'):"";c=c.replace(new RegExp("___end"+g+"___","g"),"
    ").replace(new RegExp("___"+g+"___","g"),'"))}),r(d,function(w){w.language&&(c=c.replace(/___subtmpl\d+___/g,function(g){var y=parseInt(g.replace(/___subtmpl(\d+)___/,"$1"),10);return h[y]}))}),c};var i={comment:"color:#63a35c;",string:"color:#183691;",number:"color:#0086b3;",keyword:"color:#a71d5d;",operator:"color:#994500;"},s={js:{comment:{re:/(\/\/.*|\/\*([\s\S]*?)\*\/)/g,style:"comment"},string:{re:/(('.*?')|(".*?"))/g,style:"string"},numbers:{re:/(-?(\d+|\d+\.\d+|\.\d+))/g,style:"number"},keywords:{re:/(?:\b)(function|for|foreach|while|if|else|elseif|switch|break|as|return|this|class|self|default|var|const|let|false|true|null|undefined)(?:\b)/gi,style:"keyword"},operator:{re:/(\+|-|\/|\*|%|=|<|>|\||\?|\.)/g,style:"operator"}}};s.html={comment:{re:/(<!--([\s\S]*?)-->)/g,style:"comment"},tag:{re:/(<\/?\w(.|\n)*?\/?>)/g,style:"keyword",embed:["string"]},string:s.js.string,css:{re:/(?:<style.*?>)([\s\S]*)?(?:<\/style>)/gi,language:"css"},script:{re:/(?:<script.*?>)([\s\S]*?)(?:<\/script>)/gi,language:"js"}},s.css={comment:s.js.comment,string:s.js.string,numbers:{re:/((-?(\d+|\d+\.\d+|\.\d+)(%|px|em|pt|in)?)|#[0-9a-fA-F]{3}[0-9a-fA-F]{3})/g,style:"number"},keywords:{re:/(@\w+|:?:\w+|[a-z-]+:)/g,style:"keyword"}},u.exports=t},5925:function(u,t){t=function(r){var a,i,s,c=r[0]/360,d=r[1]/100,n=r[2]/100,l=[];if(r[3]&&(l[3]=r[3]),d===0)return s=e(255*n),l[0]=l[1]=l[2]=s,l;for(var h=2*n-(a=n<.5?n*(1+d):n+d-n*d),m=0;m<3;m++)(i=c+.3333333333333333*-(m-1))<0&&i++,i>1&&i--,s=6*i<1?h+6*(a-h)*i:2*i<1?a:3*i<2?h+(a-h)*(.6666666666666666-i)*6:h,l[m]=e(255*s);return l};var e=Math.round;u.exports=t},7483:function(u,t,e){var r=e(8702),a=e(9001),i=e(6472),s=e(3783),c=e(6768),d=e(8820),n=function(h){return h.replace(/"/g,'"')},l=function(h){return h.replace(/"/g,""")};t={parse:function(h){var m=[],w=new a;return r(h,{start:function(g,y){y=d(y,function(_){return n(_)}),w.push({tag:g,attrs:y})},end:function(){var g=w.pop();if(w.size){var y=w.peek();i(y.content)||(y.content=[]),y.content.push(g)}else m.push(g)},comment:function(g){var y=""),_=w.peek();_?(_.content||(_.content=[]),_.content.push(y)):m.push(y)},text:function(g){var y=w.peek();y?(y.content||(y.content=[]),y.content.push(g)):m.push(g)}}),m},stringify:function h(m){var w="";return i(m)?s(m,function(g){return w+=h(g)}):c(m)?w=m:(w+="<".concat(m.tag),s(m.attrs,function(g,y){return w+=" ".concat(y,'="').concat(l(g),'"')}),w+=">",m.content&&(w+=h(m.content)),w+="")),w}},u.exports=t},6362:function(u,t){t=function(e){return e},u.exports=t},496:function(u,t){t=function(e,r,a){return Array.prototype.indexOf.call(e,r,a)},u.exports=t},5022:function(u,t,e){var r=e(1662);t=function(a,i){a.prototype=r(i.prototype)},u.exports=t},7190:function(u,t,e){var r=e(3783);t=function(a){var i={};return r(a,function(s,c){i[s]=c}),i},u.exports=t},7403:function(u,t,e){var r=e(106);t=function(a){return r(a)==="[object Arguments]"},u.exports=t},6472:function(u,t,e){var r=e(106);t=Array.isArray?Array.isArray:function(a){return r(a)==="[object Array]"},u.exports=t},385:function(u,t,e){var r=e(106);t=function(a){return r(a)==="[object ArrayBuffer]"},u.exports=t},1369:function(u,t,e){var r=e(3990),a=e(4777),i=Math.pow(2,53)-1;t=function(s){if(!s)return!1;var c=s.length;return r(c)&&c>=0&&c<=i&&!a(s)},u.exports=t},4696:function(u,t){t=function(e){return e===!0||e===!1},u.exports=t},2727:function(u,t){t=typeof window=="object"&&typeof document=="object"&&document.nodeType===9,u.exports=t},2349:function(u,t,e){var r=e(4777);t=function(a){return a!=null&&(!!a._isBuffer||a.constructor&&r(a.constructor.isBuffer)&&a.constructor.isBuffer(a))},u.exports=t},2520:function(u,t,e){var r=new(e(2765))("(prefers-color-scheme: dark)");t=function(){return r.isMatch()},u.exports=t},2106:function(u,t,e){var r=e(106);t=function(a){return r(a)==="[object Date]"},u.exports=t},9833:function(u,t){t=function(e){return!(!e||e.nodeType!==1)},u.exports=t},8887:function(u,t,e){var r=e(1369),a=e(6472),i=e(6768),s=e(7403),c=e(2533);t=function(d){return d==null||(r(d)&&(a(d)||i(d)||s(d))?d.length===0:c(d).length===0)},u.exports=t},2749:function(u,t,e){var r=e(106);t=function(a){return r(a)==="[object Error]"},u.exports=t},4777:function(u,t,e){var r=e(106);t=function(a){var i=r(a);return i==="[object Function]"||i==="[object GeneratorFunction]"||i==="[object AsyncFunction]"},u.exports=t},9585:function(u,t,e){var r=e(5610),a=r.getComputedStyle,i=r.document;function s(c,d){return c.rightd.right||c.bottomd.bottom}t=function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=d.display,l=n===void 0||n,h=d.visibility,m=h!==void 0&&h,w=d.opacity,g=w!==void 0&&w,y=d.size,_=y!==void 0&&y,f=d.viewport,p=f!==void 0&&f,b=d.overflow,E=b!==void 0&&b,D=a(c);if(l){var z=c.tagName;if(z==="BODY"||z==="HTML"||D.position==="fixed"){if(D.display==="none")return!0;for(var O=c;O=O.parentElement;)if(a(O).display==="none")return!0}else if(c.offsetParent===null)return!0}if(m&&D.visibility==="hidden")return!0;if(g){if(D.opacity==="0")return!0;for(var I=c;I=I.parentElement;)if(a(I).opacity==="0")return!0}var Q=c.getBoundingClientRect();if(_&&(Q.width===0||Q.height===0))return!0;if(p)return s(Q,{top:0,left:0,right:i.documentElement.clientWidth,bottom:i.documentElement.clientHeight});if(E)for(var H=c;H=H.parentElement;){var G=a(H).overflow;if((G==="scroll"||G==="hidden")&&s(Q,H.getBoundingClientRect()))return!0}return!1},u.exports=t},2246:function(u,t,e){var r=e(3990);t=function(a){return r(a)&&a%1==0},u.exports=t},4219:function(u,t){t=function(e){try{return JSON.parse(e),!0}catch{return!1}},u.exports=t},3708:function(u,t,e){var r=e(106);t=function(a){return r(a)==="[object Map]"},u.exports=t},7949:function(u,t,e){var r=e(2533);t=function(a,i){var s=r(i),c=s.length;if(a==null)return!c;a=Object(a);for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:t.defComparator,a=0,i=e.length;a0)return!1;return!0},t.defComparator=function(e,r){return er?1:0},u.exports=t},6768:function(u,t,e){var r=e(106);t=function(a){return r(a)==="[object String]"},u.exports=t},9804:function(u,t){t=function(e){return typeof e=="symbol"},u.exports=t},1286:function(u,t){t=function(e){return e===void 0},u.exports=t},7622:function(u,t,e){var r=e(8935);t=function(a){return r(a).join("-")},u.exports=t},2533:function(u,t,e){var r=e(6257);t=Object.keys?Object.keys:function(a){var i=[];for(var s in a)r(a,s)&&i.push(s);return i},u.exports=t},9702:function(u,t){t=function(e){var r=e?e.length:0;if(r)return e[r-1]},u.exports=t},3988:function(u,t,e){var r=e(2581),a=e(3783),i=e(2337);function s(c){return''+c+""}t=function(c,d){d=d||s;var n=r(c);return a(n,function(l){c=c.replace(new RegExp(i(l),"g"),d)}),c},u.exports=t},9622:function(u,t){t=function(e,r){var a=document.createElement("script");a.src=e,a.onload=function(){var i=a.readyState&&a.readyState!="complete"&&a.readyState!="loaded";r&&r(!i)},a.onerror=function(){r(!1)},document.body.appendChild(a)},u.exports=t},3063:function(u,t,e){var r=e(3367);t=function(a){return r(a).toLocaleLowerCase()},u.exports=t},5351:function(u,t,e){var r=e(4552),a=e(3367);t=function(i,s,c){var d=(i=a(i)).length;return c=c||" ",d=d?"":r.substr(c,d)},u.exports=t},2461:function(u,t,e){var r=e(2838),a=e(2533),i=e(1369);t=function(s,c,d){c=r(c,d);for(var n=!i(s)&&a(s),l=(n||s).length,h=Array(l),m=0;mr&&(r=e[a]);return r},u.exports=t},5026:function(u,t,e){var r=e(2533);t={getItem:function(n){return(i[n]?a[n]:this[n])||null},setItem:function(n,l){i[n]?a[n]=l:this[n]=l},removeItem:function(n){i[n]?delete a[n]:delete this[n]},key:function(n){var l=s();return n>=0&&n=i[s[m]]){h=s[m];break}return+(l/i[h]).toFixed(2)+h};var i={ms:1,s:1e3};i.m=60*i.s,i.h=60*i.m,i.d=24*i.h,i.y=365.25*i.d;var s=["y","d","h","m","s"],c=/^((?:\d+)?\.?\d+) *(s|m|h|d|y)?$/;u.exports=t},6339:function(u,t,e){var r=e(6930),a=e(5610),i=e(3367);function s(c,d){if(c=i(c),d=i(d),r(c,"_")&&!r(d,"_"))return 1;if(r(d,"_")&&!r(c,"_"))return-1;for(var n,l,h,m,w=/^\d+|^\D+/;;){if(!c)return d?-1:0;if(!d)return 1;if(n=c.match(w)[0],l=d.match(w)[0],h=!a.isNaN(n),m=!a.isNaN(l),h&&!m)return-1;if(m&&!h)return 1;if(h&&m){var g=n-l;if(g)return g;if(n.length!==l.length)return+n||+l?l.length-n.length:n.length-l.length}else if(n!==l)return nwindow.innerHeight?"landscape":"portrait"}},r.mixin(t),window.addEventListener("orientationchange",function(){setTimeout(function(){t.emit("change",t.get())},200)},!1),u.exports=t},8702:function(u,t,e){var r=e(9702),a=e(7913),i=e(6930),s=e(3063);t=function(m,w){for(var g,y=[],_=m;m;){if(g=!0,r(y)&&h[r(y)]){var f=new RegExp("]*>")).exec(m);if(f){var p=m.substring(0,f.index);m=m.substring(f.index+f[0].length),p&&w.text&&w.text(p)}H("",r(y))}else{if(i(m,"");b>=0&&(w.comment&&w.comment(m.substring(4,b)),m=m.substring(b+3),g=!1)}else if(i(m,"=0&&y[R]!==L;R--);else R=0;if(R>=0){for(var j=y.length-1;j>=R;j--)w.end&&w.end(y[j]);y.length=R}}H()};var c=/^\s]+))?)*)\s*(\/?)>/i,d=/^<\/([-A-Za-z0-9_]+)[^>]*>/,n=/^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_:@.]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i,l=/([-A-Za-z0-9_:@.]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,h=a("script,style".split(","));u.exports=t},4198:function(u,t,e){var r=e(1137),a=e(1352);t=r(function(i,s){return function(){var c=[];return c=(c=c.concat(s)).concat(a(arguments)),i.apply(this,c)}}),u.exports=t},1194:function(u,t,e){var r,a=e(8847),i=e(5610),s=i.performance,c=i.process;if(s&&s.now)t=function(){return s.now()};else if(c&&c.hrtime){var d=function(){var n=c.hrtime();return 1e9*n[0]+n[1]};r=d()-1e9*c.uptime(),t=function(){return(d()-r)/1e6}}else r=a(),t=function(){return a()-r};u.exports=t},3487:function(u,t,e){var r=e(6768),a=e(6472),i=e(6341),s=e(3783);t=function(c,d,n){if(r(d)&&(d=[d]),a(d)){var l=d;d=function(w,g){return i(l,g)}}var h={},m=function(w,g){d(w,g)&&(h[g]=w)};return n&&(m=function(w,g){d(w,g)||(h[g]=w)}),s(c,m),h},u.exports=t},747:function(u,t,e){var r=e(1475),a=e(7494),i=e(3023),s=e(6257),c=e(7622);(t=r(function(h){if(h=h.replace(n,""),h=a(h),s(l,h))return h;for(var m=d.length;m--;){var w=d[m]+i(h);if(s(l,w))return w}return h})).dash=r(function(h){var m=t(h);return(n.test(m)?"-":"")+c(m)});var d=["O","ms","Moz","Webkit"],n=/^(O)|(ms)|(Moz)|(Webkit)|(-o-)|(-ms-)|(-moz-)|(-webkit-)/g,l=document.createElement("p").style;u.exports=t},2994:function(u,t,e){var r=e(6472),a=e(7653);t=function(i){return r(i)?function(c){return a(c,i)}:(s=i,function(c){return c==null?void 0:c[s]});var s},u.exports=t},1745:function(u,t,e){var r=e(4331),a=e(3783),i=e(1286),s=e(6472),c=e(2461),d=e(8887),n=e(5972),l=e(5166);t={parse:function(m){var w={};return m=r(m).replace(h,""),a(m.split("&"),function(g){var y=g.split("="),_=y.shift(),f=y.length>0?y.join("="):null;_=decodeURIComponent(_),f=decodeURIComponent(f),i(w[_])?w[_]=f:s(w[_])?w[_].push(f):w[_]=[w[_],f]}),w},stringify:function(m,w){return n(c(m,function(g,y){return l(g)&&d(g)?"":s(g)?t.stringify(g,y):encodeURIComponent(w||y)+"="+encodeURIComponent(g)}),function(g){return g.length>0}).join("&")}};var h=/^(\?|#|&)/g;u.exports=t},1571:function(u,t,e){var r,a,i=e(8847),s=e(2727),c=0;if(s){r=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(var d=["ms","moz","webkit","o"],n=0,l=d.length;n0;)1&r&&(a+=e),r>>=1,e+=e;return a},u.exports=t},8368:function(u,t,e){var r=e(2337);t=function(a,i,s){return a.replace(new RegExp(r(i),"g"),s)},u.exports=t},1137:function(u,t){t=function(e,r){return r=r==null?e.length-1:+r,function(){var a,i=Math.max(arguments.length-r,0),s=new Array(i);for(a=0;a=0;w--){var g=n[w];if(g!==""){if(f({domain:h=h===""?g:g+"."+h,path:i="/"})||f({domain:h}))return;for(var y=0;y=0;)for(d=!1,a=-1,i=e.charAt(s);++a=0?e.substring(0,s+1):""},u.exports=t},2838:function(u,t,e){var r=e(4777),a=e(5166),i=e(6472),s=e(3955),c=e(4491),d=e(6362),n=e(2994);t=function(l,h,m){return l==null?d:r(l)?s(l,h,m):a(l)&&!i(l)?c(l):n(l)},u.exports=t},7653:function(u,t,e){var r=e(1286),a=e(1694);t=function(i,s){var c;for(c=(s=a(s,i)).shift();!r(c);){if((i=i[c])==null)return;c=s.shift()}return i},u.exports=t},8079:function(u,t,e){var r=e(1694),a=e(1286),i=e(3367),s=e(9804),c=e(6768);t=function(d,n,l){var h,m=(n=r(n,d)).pop();for(h=n.shift();!a(h);){if(c(h)||s(h)||(h=i(h)),h==="__proto__"||h==="constructor"||h==="prototype")return;d[h]||(d[h]={}),d=d[h],h=n.shift()}d[m]=l},u.exports=t},615:function(u,t,e){var r=e(5026);t=function(a){var i;switch(a=a||"local"){case"local":i=window.localStorage;break;case"session":i=window.sessionStorage}try{var s="test-localStorage-"+Date.now();i.setItem(s,s);var c=i.getItem(s);if(i.removeItem(s),c!==s)throw new Error}catch{return r}return i},u.exports=t},4224:function(u,t,e){var r=e(6334);t=function(a,i){return a=new r(a),i=new r(i),a.port=0|a.port||(a.protocol==="https"?443:80),i.port=0|i.port||(i.protocol==="https"?443:80),a.protocol===i.protocol&&a.hostname===i.hostname&&a.port===i.port},u.exports=t},9677:function(u,t){t=function(e,r,a){var i=e.length;r=r==null?0:r<0?Math.max(i+r,0):Math.min(r,i),a=a==null?i:a<0?Math.max(i+a,0):Math.min(a,i);for(var s=[];r1&&arguments[1]!==void 0?arguments[1]:{};a(l,d);var h=l.deep,m=l.comparator,w=[],g=[];return function y(_){var f,p=w.indexOf(_);if(p>-1)return g[p];if(s(_)){f=[],w.push(_),g.push(f);for(var b=0,E=_.length;b0){var y=h.indexOf(this);y>-1?(h.splice(y+1),m.splice(y,1/0,w)):(h.push(this),m.push(w));var _=h.indexOf(g);_>-1&&(g=h[0]===g?"[Circular ~]":"[Circular ~."+m.slice(0,_).join(".")+"]")}else h.push(g);return d(g)||c(g)?g="["+a(r(g))+" "+i(g)+"]":s(g)&&(g=null),g}),l);var h,m},u.exports=t},9963:function(u,t,e){var r=e(4187),a=e(3085),i=e(3367),s=e(4858),c=e(300),d=e(2533),n=e(3783),l=e(7496),h=e(415),m=e(801),w=e(6329),g=e(4321),y=e(5972),_=e(8847),f=e(1116),p=e(6341),b=e(5166),E=e(9537),D=e(1662),z=e(6930),O=e(8079),I=e(9803),Q=e(3487),H=e(1369);function G(J,P,q,$){var ce=[];return n(P,function(Ce){var ye,ae=Object.getOwnPropertyDescriptor(q,Ce),pe=ae&&ae.get,be=ae&&ae.set;if(!$.accessGetter&&pe)ye="(...)";else try{if(ye=q[Ce],p($.ignore,ye))return;g(ye)&&ye.catch(function(){})}catch(Se){ye=Se.message}ce.push("".concat(L(Ce),":").concat(t(ye,$))),pe&&ce.push("".concat(L("get "+i(Ce)),":").concat(t(ae.get,$))),be&&ce.push("".concat(L("set "+i(Ce)),":").concat(t(ae.set,$)))}),'"'.concat(J,'":{')+ce.join(",")+"}"}function L(J){return'"'.concat(j(J),'"')}function R(J){return'"'.concat(j(i(J)),'"')}function j(J){return r(J).replace(/\\'/g,"'").replace(/\t/g,"\\t")}t=function(J){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=P.self,$=P.startTime,ce=$===void 0?_():$,Ce=P.timeout,ye=Ce===void 0?0:Ce,ae=P.depth,pe=ae===void 0?0:ae,be=P.curDepth,Se=be===void 0?1:be,Je=P.visitor,Ne=Je===void 0?new N:Je,qe=P.unenumerable,_e=qe!==void 0&&qe,X=P.symbol,ee=X!==void 0&&X,W=P.accessGetter,re=W!==void 0&&W,fe=P.ignore,Be=fe===void 0?[]:fe,De="",Pe={visitor:Ne,unenumerable:_e,symbol:ee,accessGetter:re,depth:pe,curDepth:Se+1,timeout:ye,startTime:ce,ignore:Be},V=a(J,!1);if(V==="String")De=R(J);else if(V==="Number")De=i(J),s(De,"Infinity")&&(De='{"value":"'.concat(De,'","type":"Number"}'));else if(V==="NaN")De='{"value":"NaN","type":"Number"}';else if(V==="Boolean")De=J?"true":"false";else if(V==="Null")De="null";else if(V==="Undefined")De='{"type":"Undefined"}';else if(V==="Symbol"){var Qe="Symbol";try{Qe=i(J)}catch{}De='{"value":'.concat(R(Qe),',"type":"Symbol"}')}else{if(ye&&_()-ce>ye)return R("Timeout");if(pe&&Se>pe)return R("{...}");De="{";var oe,ve=[],ke=Ne.get(J);if(ke?(oe=ke.id,ve.push('"reference":'.concat(oe))):(oe=Ne.set(J),ve.push('"id":'.concat(oe))),ve.push('"type":"'.concat(V,'"')),s(V,"Function")?ve.push('"value":'.concat(R(c(J)))):V==="RegExp"&&ve.push('"value":'.concat(R(J))),!ke){var se=d(J);if(se.length&&ve.push(G("enumerable",se,q||J,Pe)),_e){var Ee=m(f(J,{prototype:!1,unenumerable:!0}),se);Ee.length&&ve.push(G("unenumerable",Ee,q||J,Pe))}if(ee){var ze=y(f(J,{prototype:!1,symbol:!0}),function(Ue){return typeof Ue=="symbol"});ze.length&&ve.push(G("symbol",ze,q||J,Pe))}var it=h(J);if(it&&!p(Be,it)){var pt='"proto":'.concat(t(it,w(Pe,{self:q||J})));ve.push(pt)}}De+=ve.join(",")+"}"}return De};var N=l({initialize:function(){this.id=1,this.visited=[]},set:function(J){var P=this.visited,q=this.id,$={id:q,val:J};return P.push($),this.id++,q},get:function(J){for(var P=this.visited,q=0,$=P.length;q<$;q++){var ce=P[q];if(J===ce.val)return ce}return!1}});function F(J,P){var q=P.map;if(!b(J))return J;var $=J.id,ce=J.type,Ce=J.value,ye=J.proto,ae=J.reference,pe=J.enumerable,be=J.unenumerable;if(ae)return J;if(ce==="Number")return Ce==="Infinity"?Number.POSITIVE_INFINITY:Ce==="-Infinity"?Number.NEGATIVE_INFINITY:NaN;if(ce!=="Undefined"){var Se,Je,Ne;if(ce==="Function")(Se=function(){}).toString=function(){return Ce},ye&&Object.setPrototypeOf(Se,F(ye,P));else if(ce==="RegExp")Ne=(Je=Ce).lastIndexOf("/"),Se=new RegExp(Je.slice(1,Ne),Je.slice(Ne+1));else{var qe;ce!=="Object"?(qe=E?function(){}:new Function(ce,""),ye&&(qe.prototype=F(ye,P)),Se=new qe):Se=D(ye?F(ye,P):null)}var _e,X={};return pe&&(H(pe)&&(_e=pe.length,delete pe.length),pe=Q(pe,function(W,re){return!ee(pe,W,re)}),n(pe,function(W,re){(X[re]||{}).get||(Se[re]=F(W,P))}),_e&&(Se.length=_e)),be&&(be=Q(be,function(W,re){return!ee(be,W,re)}),n(be,function(W,re){var fe=X[re]||{};if(!fe.get)if(W=F(W,P),b(W)&&W.reference){var Be=W.reference;W=function(){return q[Be]},fe.get=W}else fe.value=W;fe.enumerable=!1,X[re]=fe})),I(Se,X),q[$]=Se,Se}function ee(W,re,fe){fe=i(fe);var Be=!1;return n(["get","set"],function(De){if(z(fe,De+" ")){var Pe=fe.replace(De+" ","");W[Pe]&&((re=F(re,P))==="Timeout"&&(re=Y),O(X,[Pe,De],re),Be=!0)}}),Be}}function Y(){return"Timeout"}t.parse=function(J){var P={},q=F(JSON.parse(J),{map:P});return function($){n($,function(ce){for(var Ce=d(ce),ye=0,ae=Ce.length;ye]*>/g;t=function(r){return r.replace(e,"")},u.exports=t},1907:function(u,t,e){var r=e(6768),a=e(1352),i=e(6435),s=e(2461),c=e(4331);t=function(n){r(n)&&(n=a(n));for(var l="",h=arguments.length,m=new Array(h>1?h-1:0),w=1;w0?i.apply(null,f):0;return c(s(_,function(z){return z[0]===" "?z.slice(D):z}).join(` +`))};var d=/^(\s+)\S+/;u.exports=t},2439:function(u,t,e){var r=e(6049);t=function(a,i){return r(a,i,!0)},u.exports=t},1352:function(u,t,e){var r=e(1369),a=e(2461),i=e(6472),s=e(6768);t=function(c){return c?i(c)?c:r(c)&&!s(c)?a(c):[c]:[]},u.exports=t},3474:function(u,t,e){var r=e(6768);t=function(a){return r(a)?(a=a.toLowerCase())!=="0"&&a!==""&&a!=="false":!!a},u.exports=t},4891:function(u,t){var e=document;if(t=function(a){var i=e.createElement("body");return i.innerHTML=a,i.childNodes[0]},e.createRange&&e.body){var r=e.createRange();r.selectNode(e.body),r.createContextualFragment&&(t=function(a){return r.createContextualFragment(a).childNodes[0]})}u.exports=t},9296:function(u,t,e){var r=e(3875);t=function(a){return a?(a=r(a))-a%1:a===0?a:0},u.exports=t},3875:function(u,t,e){var r=e(3990),a=e(5166),i=e(4777),s=e(6768);t=function(c){if(r(c))return c;if(a(c)){var d=i(c.valueOf)?c.valueOf():c;c=a(d)?d+"":d}return s(c)?+c:c===0?c:+c},u.exports=t},300:function(u,t,e){var r=e(2763);t=function(i){if(r(i))return"";try{return a.call(i)}catch{}try{return i+""}catch{}return""};var a=Function.prototype.toString;u.exports=t},3367:function(u,t){t=function(e){return e==null?"":e.toString()},u.exports=t},4331:function(u,t,e){var r=e(7767),a=e(3597);t=function(i,s){return s==null&&i.trim?i.trim():r(a(i,s),s)},u.exports=t},7756:function(u,t,e){var r=e(4193),a=e(1286);t=function(s,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};r(d,i);var n=d.ellipsis,l=d.separator;if(c>s.length)return s;var h=c-n.length;if(h<1)return n;var m=s.slice(0,h);if(a(l))return m+n;if(s.indexOf(l,h)!==h){var w=m.lastIndexOf(l);w>-1&&(m=m.slice(0,w))}return m+n};var i={ellipsis:"..."};u.exports=t},3085:function(u,t,e){var r=e(106),a=e(9433),i=e(3063),s=e(2349);t=function(d){var n,l=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return d===null&&(n="Null"),d===void 0&&(n="Undefined"),a(d)&&(n="NaN"),s(d)&&(n="Buffer"),n||(n=r(d).match(c))&&(n=n[1]),n?l?i(n):n:""};var c=/^\[object\s+(.*?)]$/;u.exports=t},8166:function(u,t,e){var r=e(996),a=e(2461);t={encode:function(i){return i.length<32768?String.fromCodePoint.apply(String,i):a(r(i,32767),function(s){return String.fromCodePoint.apply(String,s)}).join("")},decode:function(i){for(var s=[],c=0,d=i.length;c=55296&&n<=56319&&c>6*f)+p);f>0;)b+=m(128|63&_>>6*(f-1)),f--;return b}function g(_){for(;;){if(i>=s&&n){if(_)return y();throw new Error("Invalid byte index")}if(i===s)return!1;var f=a[i];if(i++,n){if(fh){if(_)return i--,y();throw new Error("Invalid continuation byte")}if(l=128,h=191,c=c<<6|63&f,++d===n){var p=c;return c=0,n=0,d=0,p}}else{if(!(128&f))return f;if((224&f)==192)n=1,c=31&f;else if((240&f)==224)f===224&&(l=160),f===237&&(h=159),n=2,c=15&f;else{if((248&f)!=240){if(_)return y();throw new Error("Invalid UTF-8 detected")}f===240&&(l=144),f===244&&(h=143),n=3,c=7&f}}}}function y(){var _=i-d-1;return i=_+1,c=0,n=0,d=0,l=128,h=191,a[_]}u.exports=t},5936:function(u,t,e){var r=e(3366);t=function(){var s=r(16);return s[6]=15&s[6]|64,s[8]=63&s[8]|128,a[s[0]]+a[s[1]]+a[s[2]]+a[s[3]]+"-"+a[s[4]]+a[s[5]]+"-"+a[s[6]]+a[s[7]]+"-"+a[s[8]]+a[s[9]]+"-"+a[s[10]]+a[s[11]]+a[s[12]]+a[s[13]]+a[s[14]]+a[s[15]]};for(var a=[],i=0;i<256;i++)a[i]=(i+256).toString(16).substr(1);u.exports=t},2578:function(u,t,e){var r=e(3783);t=function(a){var i=[];return r(a,function(s){i.push(s)}),i},u.exports=t},3514:function(u,t,e){var r=e(8573),a=e(9882),i=e(4331),s=e(3783),c=e(2461),d=e(9433);t=function(){var n=r("viewport");if(!n)return 1;n=c(n.split(","),function(g){return i(g)});var l=.25,h=5,m=1;s(n,function(g){var y=(g=g.split("="))[0];g=g[1],y==="initial-scale"&&(m=+g),y==="maximum-scale"&&(h=+g),y==="minimum-scale"&&(l=+g)});var w=a(m,l,h);return d(w)?1:w},u.exports=t},8933:function(u,t){t=function(e){for(var r=[],a=document.evaluate(e,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),i=0;i=R.length&&(R=void 0),{value:R&&R[F++],done:!R}}};throw new TypeError(j?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(t,"__esModule",{value:!0});var d=c(e(1160)),n=e(7669),l=e(2062),h=c(e(242)),m=c(e(2439)),w=c(e(3063)),g=c(e(3783)),y=c(e(3009)),_=c(e(5044)),f=c(e(4502)),p=c(e(6329)),b=c(e(7494)),E=c(e(6341)),D=c(e(3875)),z=c(e(3577)),O=c(e(6768));e(8169);var I=function(R){function j(N,F){F===void 0&&(F={});var Y=R.call(this,N,{compName:"dom-highlighter"},F)||this;return Y.overlay=new n.HighlightOverlay(window),Y.reset=function(){var J=document.documentElement.clientWidth,P=document.documentElement.clientHeight;Y.overlay.reset({viewportSize:{width:J,height:P},deviceScaleFactor:1,pageScaleFactor:1,pageZoomFactor:1,emulationScaleFactor:1,scrollX:window.scrollX,scrollY:window.scrollY})},Y.initOptions(F,{showRulers:!1,showExtensionLines:!1,showInfo:!0,showStyles:!0,showAccessibilityInfo:!0,colorFormat:"hex",contentColor:"rgba(111, 168, 220, .66)",paddingColor:"rgba(147, 196, 125, .55)",borderColor:"rgba(255, 229, 153, .66)",marginColor:"rgba(246, 178, 107, .66)",monitorResize:!0}),Y.overlay.setContainer(N),Y.overlay.setPlatform("mac"),Y.redraw=(0,m.default)(function(){Y.reset(),Y.draw()},16),Y.redraw(),Y.bindEvent(),Y}return a(j,R),j.prototype.highlight=function(N,F){F&&(0,p.default)(this.options,F),this.target=N,N instanceof HTMLElement&&this.options.monitorResize&&(this.resizeSensor&&this.resizeSensor.destroy(),this.resizeSensor=new h.default(N),this.resizeSensor.addListener(this.redraw)),this.redraw()},j.prototype.hide=function(){this.target=null,this.redraw()},j.prototype.intercept=function(N){this.interceptor=N},j.prototype.destroy=function(){window.removeEventListener("resize",this.redraw),window.removeEventListener("scroll",this.redraw),this.resizeSensor&&this.resizeSensor.destroy(),R.prototype.destroy.call(this)},j.prototype.draw=function(){var N=this.target;N&&(N instanceof Text?this.drawText(N):this.drawElement(N))},j.prototype.drawText=function(N){var F=this.options,Y=document.createRange();Y.selectNode(N);var J=Y.getBoundingClientRect(),P=J.left,q=J.top,$=J.width,ce=J.height;Y.detach();var Ce={paths:[{path:this.rectToPath({left:P,top:q,width:$,height:ce}),fillColor:G(F.contentColor),name:"content"}],showExtensionLines:F.showExtensionLines,showRulers:F.showRulers};F.showInfo&&(Ce.elementInfo={tagName:"#text",nodeWidth:$,nodeHeight:ce}),this.overlay.drawHighlight(Ce)},j.prototype.drawElement=function(N){var F={paths:this.getPaths(N),showExtensionLines:this.options.showExtensionLines,showRulers:this.options.showRulers,colorFormat:this.options.colorFormat};if(this.options.showInfo&&(F.elementInfo=this.getElementInfo(N)),this.interceptor){var Y=this.interceptor(F);Y&&(F=Y)}this.overlay.drawHighlight(F)},j.prototype.getPaths=function(N){var F=this.options,Y=window.getComputedStyle(N),J=N.getBoundingClientRect(),P=J.left,q=J.top,$=J.width,ce=J.height,Ce=function(re){return(0,l.pxToNum)(Y.getPropertyValue(re))},ye=Ce("margin-left"),ae=Ce("margin-right"),pe=Ce("margin-top"),be=Ce("margin-bottom"),Se=Ce("border-left-width"),Je=Ce("border-right-width"),Ne=Ce("border-top-width"),qe=Ce("border-bottom-width"),_e=Ce("padding-left"),X=Ce("padding-right"),ee=Ce("padding-top"),W=Ce("padding-bottom");return[{path:this.rectToPath({left:P+Se+_e,top:q+Ne+ee,width:$-Se-_e-Je-X,height:ce-Ne-ee-qe-W}),fillColor:G(F.contentColor),name:"content"},{path:this.rectToPath({left:P+Se,top:q+Ne,width:$-Se-Je,height:ce-Ne-qe}),fillColor:G(F.paddingColor),name:"padding"},{path:this.rectToPath({left:P,top:q,width:$,height:ce}),fillColor:G(F.borderColor),name:"border"},{path:this.rectToPath({left:P-ye,top:q-pe,width:$+ye+ae,height:ce+pe+be}),fillColor:G(F.marginColor),name:"margin"}]},j.prototype.getElementInfo=function(N){var F=N.getBoundingClientRect(),Y=F.width,J=F.height,P=N.getAttribute("class")||"";P=P.split(/\s+/).map(function($){return"."+$}).join("");var q={tagName:(0,w.default)(N.tagName),className:P,idValue:N.id,nodeWidth:Y,nodeHeight:J};return this.options.showStyles&&(q.style=this.getStyles(N)),this.options.showAccessibilityInfo&&(0,p.default)(q,this.getAccessibilityInfo(N)),q},j.prototype.getStyles=function(N){for(var F=window.getComputedStyle(N),Y=!1,J=N.childNodes,P=0,q=J.length;P-1)},j.prototype.getAccessibleNameAndRole=function(N){var F=N.getAttribute("labelledby")||N.getAttribute("aria-label"),Y=N.getAttribute("role"),J=(0,w.default)(N.tagName);return z.default.forEach(function(P){var q,$;if(!Y){var ce=P[0],Ce=P[2];if(ce===J){if(Ce)try{for(var ye=s(Ce),ae=ye.next();!ae.done;ae=ye.next()){var pe=ae.value;if(N.getAttribute(pe[0])!==pe[1])return}}catch(be){q={error:be}}finally{try{ae&&!ae.done&&($=ye.return)&&$.call(ye)}finally{if(q)throw q.error}}Y=P[1]}}}),{accessibleName:F||N.getAttribute("title")||"",accessibleRole:Y||"generic"}},j.prototype.bindEvent=function(){var N=this;window.addEventListener("resize",this.redraw),window.addEventListener("scroll",this.redraw),this.on("optionChange",function(){return N.redraw()})},j.prototype.rectToPath=function(N){var F=N.left,Y=N.top,J=N.width,P=N.height,q=[];return q.push("M",F,Y),q.push("L",F+J,Y),q.push("L",F+J,Y+P),q.push("L",F,Y+P),q.push("Z"),q},j}(d.default);t.default=I,u.exports=I,u.exports.default=I;var Q=/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,H=/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*(?:\.\d+)?)\)$/;function G(R){return(0,O.default)(R)?R:R.a?"rgba(".concat(R.r,", ").concat(R.g,", ").concat(R.b,", ").concat(R.a,")"):"rgb(".concat(R.r,", ").concat(R.g,", ").concat(R.b,")")}function L(R,j,N){N===void 0&&(N=!1);var F={};return(0,g.default)(j,function(Y){var J,P=R[Y==="text-opacity"?"color":Y];P&&(J=P,(Q.test(J)||H.test(J))&&(P=function(q){var $=y.default.parse(q),ce=$.val[3]||1;return $.val=$.val.slice(0,3),$.val.push(Math.round(255*ce)),"#"+(0,f.default)(_.default.encode($.val))}(P),Y==="text-opacity"&&(P=P.slice(7),P=_.default.decode(P)[0]/255)),N&&(Y=(0,b.default)(Y)),F[Y]=P)}),F}},9706:function(u,t){var e=this&&this.__read||function(G,L){var R=typeof Symbol=="function"&&G[Symbol.iterator];if(!R)return G;var j,N,F=R.call(G),Y=[];try{for(;(L===void 0||L-- >0)&&!(j=F.next()).done;)Y.push(j.value)}catch(J){N={error:J}}finally{try{j&&!j.done&&(R=F.return)&&R.call(F)}finally{if(N)throw N.error}}return Y},r=this&&this.__values||function(G){var L=typeof Symbol=="function"&&Symbol.iterator,R=L&&G[L],j=0;if(R)return R.call(G);if(G&&typeof G.length=="number")return{next:function(){return G&&j>=G.length&&(G=void 0),{value:G&&G[j++],done:!G}}};throw new TypeError(L?"Object is not iterable.":"Symbol.iterator is not defined.")};function a(G,L){var R=G[3];return[(1-R)*L[0]+R*G[0],(1-R)*L[1]+R*G[1],(1-R)*L[2]+R*G[2],R+L[3]*(1-R)]}function i(G){var L=e(G,3),R=L[0],j=L[1],N=L[2];return .2126*(R<=.03928?R/12.92:Math.pow((R+.055)/1.055,2.4))+.7152*(j<=.03928?j/12.92:Math.pow((j+.055)/1.055,2.4))+.0722*(N<=.03928?N/12.92:Math.pow((N+.055)/1.055,2.4))}Object.defineProperty(t,"__esModule",{value:!0}),t.getContrastThreshold=t.isLargeFont=t.getAPCAThreshold=t.desiredLuminanceAPCA=t.contrastRatioByLuminanceAPCA=t.contrastRatioAPCA=t.luminanceAPCA=t.contrastRatio=t.luminance=t.rgbaToHsla=t.blendColors=void 0,t.blendColors=a,t.rgbaToHsla=function(G){var L=e(G,4),R=L[0],j=L[1],N=L[2],F=L[3],Y=Math.max(R,j,N),J=Math.min(R,j,N),P=Y-J,q=Y+J,$=.5*q;return[J===Y?0:R===Y?(.16666666666666666*(j-N)/P+1)%1:j===Y?.16666666666666666*(N-R)/P+.3333333333333333:.16666666666666666*(R-j)/P+.6666666666666666,$===0||$===1?0:$<=.5?P/q:P/(2-q),$,F]},t.luminance=i,t.contrastRatio=function(G,L){var R=i(a(G,L)),j=i(L);return(Math.max(R,j)+.05)/(Math.min(R,j)+.05)};var s=2.4,c=.55,d=.58,n=.62,l=.57,h=.03,m=1.45,w=1.25,g=1.25,y=5e-4,_=.078,f=12.82051282051282,p=.06,b=.001;function E(G){var L=e(G,3),R=L[0],j=L[1],N=L[2];return .2126729*Math.pow(R,s)+.7151522*Math.pow(j,s)+.072175*Math.pow(N,s)}function D(G){return G>h?G:G+Math.pow(h-G,m)}function z(G,L){if(G=D(G),L=D(L),Math.abs(G-L)=G?(R=(Math.pow(L,c)-Math.pow(G,d))*w)-b?0:R>-_?R-R*f*p:R+p)}t.luminanceAPCA=E,t.contrastRatioAPCA=function(G,L){return z(E(G),E(L))},t.contrastRatioByLuminanceAPCA=z,t.desiredLuminanceAPCA=function(G,L,R){function j(){return R?Math.pow(Math.abs(Math.pow(G,n)-(-L-p)/g),1/l):Math.pow(Math.abs(Math.pow(G,c)-(L+p)/w),1/d)}G=D(G),L/=100;var N=j();return(N<0||N>1)&&(R=!R,N=j()),N};var O=[[12,-1,-1,-1,-1,100,90,80,-1,-1],[14,-1,-1,-1,100,90,80,60,60,-1],[16,-1,-1,100,90,80,60,55,50,50],[18,-1,-1,90,80,60,55,50,40,40],[24,-1,100,80,60,55,50,40,38,35],[30,-1,90,70,55,50,40,38,35,40],[36,-1,80,60,50,40,38,35,30,25],[48,100,70,55,40,38,35,30,25,20],[60,90,60,50,38,35,30,25,20,20],[72,80,55,40,35,30,25,20,20,20],[96,70,50,35,30,25,20,20,20,20],[120,60,40,30,25,20,20,20,20,20]];function I(G,L){var R=72*parseFloat(G.replace("px",""))/96;return["bold","bolder","600","700","800","900"].indexOf(L)!==-1?R>=14:R>=18}O.reverse(),t.getAPCAThreshold=function(G,L){var R,j,N,F,Y=parseFloat(G.replace("px","")),J=parseFloat(L);try{for(var P=r(O),q=P.next();!q.done;q=P.next()){var $=e(q.value),ce=$[0],Ce=$.slice(1);if(Y>=ce)try{for(var ye=(N=void 0,r([900,800,700,600,500,400,300,200,100].entries())),ae=ye.next();!ae.done;ae=ye.next()){var pe=e(ae.value,2),be=pe[0];if(J>=pe[1]){var Se=Ce[Ce.length-1-be];return Se===-1?null:Se}}}catch(Je){N={error:Je}}finally{try{ae&&!ae.done&&(F=ye.return)&&F.call(ye)}finally{if(N)throw N.error}}}}catch(Je){R={error:Je}}finally{try{q&&!q.done&&(j=P.return)&&j.call(P)}finally{if(R)throw R.error}}return null},t.isLargeFont=I;var Q={aa:3,aaa:4.5},H={aa:4.5,aaa:7};t.getContrastThreshold=function(G,L){return I(G,L)?Q:H}},9434:function(u,t){var e=this&&this.__values||function(n){var l=typeof Symbol=="function"&&Symbol.iterator,h=l&&n[l],m=0;if(h)return h.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&m>=n.length&&(n=void 0),{value:n&&n[m++],done:!n}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__read||function(n,l){var h=typeof Symbol=="function"&&n[Symbol.iterator];if(!h)return n;var m,w,g=h.call(n),y=[];try{for(;(l===void 0||l-- >0)&&!(m=g.next()).done;)y.push(m.value)}catch(_){w={error:_}}finally{try{m&&!m.done&&(h=g.return)&&h.call(g)}finally{if(w)throw w.error}}return y},a=this&&this.__spreadArray||function(n,l,h){if(h||arguments.length===2)for(var m,w=0,g=l.length;wh&&(n=h),n},t.adoptStyleSheet=d},1521:function(u,t,e){var r=this&&this.__values||function(f){var p=typeof Symbol=="function"&&Symbol.iterator,b=p&&f[p],E=0;if(b)return b.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&E>=f.length&&(f=void 0),{value:f&&f[E++],done:!f}}};throw new TypeError(p?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(f,p){var b=typeof Symbol=="function"&&f[Symbol.iterator];if(!b)return f;var E,D,z=b.call(f),O=[];try{for(;(p===void 0||p-- >0)&&!(E=z.next()).done;)O.push(E.value)}catch(I){D={error:I}}finally{try{E&&!E.done&&(b=z.return)&&b.call(z)}finally{if(D)throw D.error}}return O},i=this&&this.__spreadArray||function(f,p,b){if(b||arguments.length===2)for(var E,D=0,z=p.length;DCe&&peye,Je=F-ce;Je=(0,d.constrainNumber)(Je,q,G-Y-q);var Ne=H.minY-P-J,qe=!0;Ne<0?(Ne=Math.min(L-J,H.maxY+P),qe=!1):H.minY>L&&(Ne=L-P-J);var _e=Je>=H.minX&&Je+Y<=H.maxX&&Ne>=H.minY&&Ne+J<=H.maxY,X=JeH.minX&&NeH.minY;if(X&&!_e)return void(j.style.display="none");if(j.style.top=Ne+"px",j.style.left=Je+"px",!Se){var ee=(0,d.createChild)(j,"div","tooltip-arrow");ee.style.clipPath=qe?"polygon(0 0, 100% 0, 50% 100%)":"polygon(50% 0, 0 100%, 100% 100%)",ee.style.top=(qe?J-1:-P)+"px",ee.style.left=F-Je+"px"}}(this.tooltip,f.elementInfo,f.colorFormat,p,this.canvasWidth,this.canvasHeight)),this.context.restore(),{bounds:p}},_.prototype.drawAxis=function(f,p,b){f.save();var E=this.pageZoomFactor*this.pageScaleFactor*this.emulationScaleFactor,D=this.scrollX*this.pageScaleFactor,z=this.scrollY*this.pageScaleFactor;function O(Y){return Math.round(Y*E)}function I(Y){return Math.round(Y/E)}var Q=this.canvasWidth/E,H=this.canvasHeight/E,G=50;f.save(),f.fillStyle=w,b?f.fillRect(0,O(H)-15,O(Q),O(H)):f.fillRect(0,0,O(Q),15),f.globalCompositeOperation="destination-out",f.fillStyle="red",p?f.fillRect(O(Q)-15,0,O(Q),O(H)):f.fillRect(0,0,15,O(H)),f.restore(),f.fillStyle=w,p?f.fillRect(O(Q)-15,0,O(Q),O(H)):f.fillRect(0,0,15,O(H)),f.lineWidth=1,f.strokeStyle=m,f.fillStyle=m,f.save(),f.translate(-D,.5-z);for(var L=H+I(z),R=100;R]*>/g.test(D))try{var z=c.default.parse(D);return w(z,function(O){O.attrs&&O.attrs.class&&(O.attrs.class=E(O.attrs.class))}),c.default.stringify(z)}catch{return E(D)}return E(D)}};var g,y="ontouchstart"in s.default,_={start:"touchstart",move:"touchmove",end:"touchend"},f={start:"mousedown",move:"mousemove",end:"mouseup"};t.drag=function(p){return y?_[p]:f[p]},t.eventClient=function(p,b){var E=p==="x"?"clientX":"clientY";return b[E]?b[E]:b.changedTouches?b.changedTouches[0][E]:0},t.eventPage=function(p,b){var E=p==="x"?"pageX":"pageY";return b[E]?b[E]:b.changedTouches?b.changedTouches[0][E]:0},t.measuredScrollbarWidth=function(){if((0,d.default)(g))return g;if(!document)return 16;var p=document.createElement("div"),b=document.createElement("div");return p.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),b.setAttribute("style","height: 200px"),p.appendChild(b),document.body.appendChild(p),g=p.offsetWidth-p.clientWidth,document.body.removeChild(p),g},t.hasVerticalScrollbar=function(p){return p.scrollHeight>p.offsetHeight},t.executeAfterTransition=function(p,b){if((0,m.default)(p))return b();var E=function(D){D.target===p&&(p.removeEventListener("transitionend",E),b())};p.addEventListener("transitionend",E)},t.pxToNum=function(p){return(0,l.default)(p.replace("px",""))},t.getPlatform=function(){var p=(0,h.default)();return p==="os x"?"mac":p},t.resetCanvasSize=function(p){p.width=Math.round(p.offsetWidth*window.devicePixelRatio),p.height=Math.round(p.offsetHeight*window.devicePixelRatio)}},6093:function(u,t,e){var r,a=this&&this.__extends||(r=function(m,w){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,y){g.__proto__=y}||function(g,y){for(var _ in y)Object.prototype.hasOwnProperty.call(y,_)&&(g[_]=y[_])},r(m,w)},function(m,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function g(){this.constructor=m}r(m,w),m.prototype=w===null?Object.create(w):(g.prototype=w.prototype,new g)}),i=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(e(1512)),c=i(e(5229)),d=i(e(2244)),n=i(e(8613)),l=function(m){function w(g,y){y===void 0&&(y={});var _=m.call(this,g,{compName:"notification"},y)||this;return _.notifications=[],_.initOptions(y,{position:{x:"right",y:"bottom"},duration:2e3}),_.initTpl(),_}return a(w,m),w.prototype.notify=function(g,y){var _=this;y===void 0&&(y={duration:this.options.duration});var f=new h(this,g);this.notifications.push(f),this.add(f),setTimeout(function(){return _.remove(f.id)},y.duration)},w.prototype.dismissAll=function(){for(var g=this.notifications,y=g[0];y;)this.remove(y.id),y=g[0]},w.prototype.add=function(g){this.container.appendChild(g.container)},w.prototype.remove=function(g){var y=this.notifications,_=(0,d.default)(y,function(p){return p.id===g});if(_){_.destroy();var f=y.indexOf(_);y.splice(f,1)}},w.prototype.initTpl=function(){var g=this.$container,y=this.options.position,_=y.x,f=y.y,p="flex-end",b="flex-end";switch(_){case"center":b="center";break;case"left":b="flex-start"}f==="top"&&(p="flex-start"),g.attr("style","justify-content: ".concat(p,"; align-items: ").concat(b))},w}(i(e(5404)).default);t.default=l;var h=function(){function m(w,g){this.container=(0,n.default)("div"),this.$container=(0,s.default)(this.container),this.notification=w,this.content=g,this.id=(0,c.default)("luna-notification-"),this.$container.attr({id:this.id,class:w.c("item ".concat(w.getOption("position").y==="bottom"?"lower":"upper"))}),this.initTpl()}return m.prototype.destroy=function(){this.$container.remove()},m.prototype.initTpl=function(){this.$container.html(this.notification.c('
    '.concat(this.content,"
    ")))},m}();u.exports=l,u.exports.default=l},5404:function(u,t,e){var r,a=this&&this.__extends||(r=function(g,y){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,f){_.__proto__=f}||function(_,f){for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(_[p]=f[p])},r(g,y)},function(g,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function _(){this.constructor=g}r(g,y),g.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}),i=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(t,"__esModule",{value:!0});var s=i(e(1443)),c=i(e(1512)),d=e(164),n=i(e(3783)),l=i(e(6329)),h=i(e(4193)),m=i(e(5852)),w=function(g){function y(_,f,p){var b=f.compName,E=(p===void 0?{}:p).theme,D=E===void 0?"light":E,z=g.call(this)||this;return z.subComponents=[],z.compName=b,z.c=(0,d.classPrefix)(b),z.options={},z.container=_,z.$container=(0,c.default)(_),z.$container.addClass(["luna-".concat(b),z.c("platform-".concat((0,d.getPlatform)()))]),z.on("optionChange",function(O,I,Q){var H=z.c;O==="theme"&&(z.$container.rmClass(H("theme-".concat(Q))).addClass(H("theme-".concat(I))),(0,n.default)(z.subComponents,function(G){return G.setOption("theme",I)}))}),z.setOption("theme",D),z}return a(y,g),y.prototype.destroy=function(){this.destroySubComponents();var _=this.c;this.$container.rmClass("luna-".concat(this.compName)).rmClass(_("platform-".concat((0,d.getPlatform)()))).rmClass(_("theme-".concat(this.options.theme))),this.$container.html(""),this.emit("destroy"),this.removeAllListeners()},y.prototype.setOption=function(_,f){var p=this,b=this.options,E={};typeof _=="string"?E[_]=f:E=_,(0,n.default)(E,function(D,z){var O=b[z];b[z]=D,p.emit("optionChange",z,D,O)})},y.prototype.getOption=function(_){return this.options[_]},y.prototype.addSubComponent=function(_){_.setOption("theme",this.options.theme),this.subComponents.push(_)},y.prototype.removeSubComponent=function(_){(0,m.default)(this.subComponents,function(f){return f===_})},y.prototype.destroySubComponents=function(){(0,n.default)(this.subComponents,function(_){return _.destroy()}),this.subComponents=[]},y.prototype.initOptions=function(_,f){f===void 0&&(f={}),(0,h.default)(_,f),(0,l.default)(this.options,_)},y.prototype.find=function(_){return this.$container.find(this.c(_))},y}(s.default);t.default=w},164:function(u,t,e){var r=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(t,"__esModule",{value:!0}),t.resetCanvasSize=t.getPlatform=t.pxToNum=t.executeAfterTransition=t.hasVerticalScrollbar=t.measuredScrollbarWidth=t.eventClient=t.drag=t.classPrefix=void 0;var a=r(e(2461)),i=r(e(4331)),s=r(e(5610)),c=r(e(7483)),d=r(e(3990)),n=r(e(6341)),l=r(e(3875)),h=r(e(6954)),m=r(e(9585));function w(p,b){for(var E=0,D=p.length;E]*>/g.test(D))try{var z=c.default.parse(D);return w(z,function(O){O.attrs&&O.attrs.class&&(O.attrs.class=E(O.attrs.class))}),c.default.stringify(z)}catch{return E(D)}return E(D)}};var g,y="ontouchstart"in s.default,_={start:"touchstart",move:"touchmove",end:"touchend"},f={start:"mousedown",move:"mousemove",end:"mouseup"};t.drag=function(p){return y?_[p]:f[p]},t.eventClient=function(p,b){var E=p==="x"?"clientX":"clientY";return b[E]?b[E]:b.changedTouches?b.changedTouches[0][E]:0},t.measuredScrollbarWidth=function(){if((0,d.default)(g))return g;if(!document)return 16;var p=document.createElement("div"),b=document.createElement("div");return p.setAttribute("style","display: block; width: 100px; height: 100px; overflow: scroll;"),b.setAttribute("style","height: 200px"),p.appendChild(b),document.body.appendChild(p),g=p.offsetWidth-p.clientWidth,document.body.removeChild(p),g},t.hasVerticalScrollbar=function(p){return p.scrollHeight>p.offsetHeight},t.executeAfterTransition=function(p,b){if((0,m.default)(p))return b();var E=function(D){D.target===p&&(p.removeEventListener("transitionend",E),b())};p.addEventListener("transitionend",E)},t.pxToNum=function(p){return(0,l.default)(p.replace("px",""))},t.getPlatform=function(){var p=(0,h.default)();return p==="os x"?"mac":p},t.resetCanvasSize=function(p){p.width=Math.round(p.offsetWidth*window.devicePixelRatio),p.height=Math.round(p.offsetHeight*window.devicePixelRatio)}},8169:function(u,t,e){e.r(t),e.d(t,{default:function(){return _}});var r={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=/([astvzqmhlc])([^astvzqmhlc]*)/gi,i=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,s=function(f){var p=[],b=String(f).trim();return b[0]!=="M"&&b[0]!=="m"||b.replace(a,function(E,D,z){var O=D.toLowerCase(),I=function(H){var G=H.match(i);return G?G.map(Number):[]}(z),Q=D;if(O==="m"&&I.length>2&&(p.push([Q].concat(I.splice(0,2))),O="l",Q=Q==="m"?"l":"L"),I.length=r[O]&&I.length&&r[O];)p.push([Q].concat(I.splice(0,r[O])));return""}),p};function c(f,p){for(var b=0;bf.length)&&(p=f.length);for(var b=0,E=new Array(p);b1&&(ye*=F=Math.sqrt(F),ae*=F),Y=ye*ye*ae*ae,J=ye*ye*j.y*j.y+ae*ae*j.x*j.x,m(Je={x:ye*j.y/ae,y:-ae*j.x/ye},L!==G?Math.sqrt((Y-J)/J)||0:-Math.sqrt((Y-J)/J)||0),H=Math.atan2((j.y-Je.y)/ae,(j.x-Je.x)/ye),Q=Math.atan2(-(j.y+Je.y)/ae,-(j.x+Je.x)/ye),h(Je,N),W=Je,re=(R.x+De.x)/2,fe=(R.y+De.y)/2,W.x+=re,W.y+=fe,O.save(),O.translate(Je.x,Je.y),O.rotate(N),O.scale(ye,ae),O.arc(0,0,1,H,Q,!L),O.restore();break;case"C":Ne=V[3],qe=V[4],P=V[5],$=V[6],O.bezierCurveTo(V[1],V[2],Ne,qe,P,$);break;case"c":O.bezierCurveTo(V[1]+P,V[2]+$,V[3]+P,V[4]+$,V[5]+P,V[6]+$),Ne=V[3]+P,qe=V[4]+$,P+=V[5],$+=V[6];break;case"S":Ne!==null&&qe!==null||(Ne=P,qe=$),O.bezierCurveTo(2*P-Ne,2*$-qe,V[1],V[2],V[3],V[4]),Ne=V[1],qe=V[2],P=V[3],$=V[4];break;case"s":Ne!==null&&qe!==null||(Ne=P,qe=$),O.bezierCurveTo(2*P-Ne,2*$-qe,V[1]+P,V[2]+$,V[3]+P,V[4]+$),Ne=V[1]+P,qe=V[2]+$,P+=V[3],$+=V[4];break;case"Q":_e=V[1],X=V[2],P=V[3],$=V[4],O.quadraticCurveTo(_e,X,P,$);break;case"q":_e=V[1]+P,X=V[2]+$,P+=V[3],$+=V[4],O.quadraticCurveTo(_e,X,P,$);break;case"T":_e!==null&&X!==null||(_e=P,X=$),_e=2*P-_e,X=2*$-X,P=V[1],$=V[2],O.quadraticCurveTo(_e,X,P,$);break;case"t":_e!==null&&X!==null||(_e=P,X=$),_e=2*P-_e,X=2*$-X,P+=V[1],$+=V[2],O.quadraticCurveTo(_e,X,P,$);break;case"z":case"Z":P=Be.x,$=Be.y,Be=void 0,O.closePath();break;case"AC":P=V[1],$=V[2],Ce=V[3],H=V[4],Q=V[5],ee=V[6],O.arc(P,$,Ce,H,Q,ee);break;case"AT":q=V[1],ce=V[2],P=V[3],$=V[4],Ce=V[5],O.arcTo(q,ce,P,$,Ce);break;case"E":P=V[1],$=V[2],ye=V[3],ae=V[4],N=V[5],H=V[6],Q=V[7],ee=V[8],O.save(),O.translate(P,$),O.rotate(N),O.scale(ye,ae),O.arc(0,0,1,H,Q,ee),O.restore();break;case"R":P=V[1],$=V[2],pe=V[3],be=V[4],Be={x:P,y:$},O.rect(P,$,pe,be)}De.x=P,De.y=$}}},g=s,y=w;typeof window<"u"&&y(window);var _={path2dPolyfill:y,parsePath:g}},2777:function(u){u.exports=`.luna-dom-highlighter{position:fixed;left:0;top:0;width:100%;height:100%;z-index:100000;pointer-events:none;font-size:13px}.luna-dom-highlighter-fill{position:absolute;top:0;right:0;bottom:0;left:0}.luna-dom-highlighter-platform-linux{font-family:Roboto,Ubuntu,Arial,sans-serif}.luna-dom-highlighter-platform-mac{color:#303942;font-family:'.SFNSDisplay-Regular','Helvetica Neue','Lucida Grande',sans-serif}.luna-dom-highlighter-platform-windows{font-family:'Segoe UI',Tahoma,sans-serif}.luna-dom-highlighter-px{color:gray}#luna-dom-highlighter-element-title{position:absolute;z-index:10}.luna-dom-highlighter-tooltip-content{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#fff;padding:5px 8px;border:1px solid #fff;border-radius:3px;box-sizing:border-box;min-width:100px;max-width:min(300px,100% - 4px);z-index:2;background-clip:padding-box;will-change:transform;text-rendering:optimizeLegibility;pointer-events:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35))}.luna-dom-highlighter-tooltip-content .luna-dom-highlighter-tooltip-arrow{background:#fff;width:15px;height:8px;position:absolute}.luna-dom-highlighter-element-info-section{margin-top:12px;margin-bottom:6px}.luna-dom-highlighter-section-name{color:#333;font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.05em;line-height:12px}.luna-dom-highlighter-element-info{display:flex;flex-direction:column}.luna-dom-highlighter-element-info-header{display:flex;align-items:center}.luna-dom-highlighter-element-info-body{display:flex;flex-direction:column;padding-top:2px;margin-top:2px}.luna-dom-highlighter-element-info-row{display:flex;line-height:19px}.luna-dom-highlighter-separator-container{display:flex;align-items:center;flex:auto;margin-left:7px}.luna-dom-highlighter-separator{border-top:1px solid #ddd;width:100%}.luna-dom-highlighter-element-info-name{flex-shrink:0;color:#666}.luna-dom-highlighter-element-info-gap{flex:auto}.luna-dom-highlighter-element-info-value-color{display:flex;color:#303942;margin-left:10px;align-items:baseline}.luna-dom-highlighter-a11y-icon{width:16px;height:16px;background-repeat:no-repeat;display:inline-block}.luna-dom-highlighter-element-info-value-contrast{display:flex;align-items:center;text-align:right;color:#303942;margin-left:10px}.luna-dom-highlighter-element-info-value-contrast .luna-dom-highlighter-a11y-icon{margin-left:8px}.luna-dom-highlighter-element-info-value-icon{display:flex;align-items:center}.luna-dom-highlighter-element-info-value-text{text-align:right;color:#303942;margin-left:10px;align-items:baseline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.luna-dom-highlighter-color-swatch{display:flex;margin-right:2px;width:10px;height:10px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);line-height:10px}.luna-dom-highlighter-color-swatch-inner{flex:auto;border:1px solid #808002}.luna-dom-highlighter-element-layout-type{margin-right:10px;width:16px;height:16px}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-grid{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-element-layout-type.luna-dom-highlighter-flex{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-element-description{flex:1 1;font-weight:700;word-wrap:break-word;word-break:break-all}.luna-dom-highlighter-dimensions{color:#737373;text-align:right;margin-left:10px}.luna-dom-highlighter-material-node-width{margin-right:2px}.luna-dom-highlighter-material-node-height{margin-left:2px}.luna-dom-highlighter-material-tag-name{color:#881280}.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id{color:#1a1aa6}.luna-dom-highlighter-contrast-text{width:16px;height:16px;text-align:center;line-height:16px;margin-right:8px;border:1px solid #000;padding:0 1px}.luna-dom-highlighter-a11y-icon-not-ok{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-a11y-icon-warning{background-image:url('data:image/svg+xml,')}.luna-dom-highlighter-a11y-icon-ok{background-image:url('data:image/svg+xml,')}@media (forced-colors:active){:root,body{background-color:transparent;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content{border-color:Highlight;background-color:canvas;color:text;forced-color-adjust:none}.luna-dom-highlighter-tooltip-content::after{background-color:Highlight}.luna-dom-highlighter-color-swatch-inner,.luna-dom-highlighter-contrast-text,.luna-dom-highlighter-separator{border-color:Highlight}.luna-dom-highlighter-section-name{color:Highlight}.luna-dom-highlighter-dimensions,.luna-dom-highlighter-element-info-name,.luna-dom-highlighter-element-info-value-color,.luna-dom-highlighter-element-info-value-contrast,.luna-dom-highlighter-element-info-value-icon,.luna-dom-highlighter-element-info-value-text,.luna-dom-highlighter-material-class-name,.luna-dom-highlighter-material-node-id,.luna-dom-highlighter-material-tag-name{color:canvastext}} + +/*# sourceMappingURL=luna-dom-highlighter.css.map*/`},907:function(u,t,e){function r(a,i){(i==null||i>a.length)&&(i=a.length);for(var s=0,c=new Array(i);s*{overflow:hidden;text-overflow:ellipsis}.tgui-b8dfba0b5c3d054c:not(.tgui-6c49dadccf648a5b) .tgui-1c6d7865a76a19bc,.tgui-b8dfba0b5c3d054c:not(.tgui-6c49dadccf648a5b) .tgui-8735a62be5a8b8a7>*{white-space:nowrap}.tgui-46dd90b57ffed25f{color:var(--tgui--subtitle_text_color)}.tgui-a894f59f4c5ad72f{align-items:center;display:inline-flex;gap:4px}.tgui-bb909928b48f948b,.tgui-d528ef65a8b76273,.tgui-fc059ed3ac5799a6{color:var(--tgui--hint_color)}.tgui-7b5bccbb645b495f{--tgui--cell--middle--padding:12px 0;padding:0 16px}.tgui-b5d680db78c4cc2e{cursor:pointer;isolation:isolate;position:relative;transition:opacity .15s ease-out}.tgui-b5d680db78c4cc2e[readonly]{cursor:default;pointer-events:visible}.tgui-b5d680db78c4cc2e[disabled]{cursor:default;opacity:.35}.tgui-34eb6f8b96874d40:hover,.tgui-7c5d6c1f6bbe3eaf:hover{opacity:.85}.tgui-34eb6f8b96874d40:active,.tgui-7c5d6c1f6bbe3eaf:active{opacity:.65}.tgui-8071f6e38c77bc0b{border-radius:inherit;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:background-color .15s ease-out}.tgui-e156954daf886976{animation:tgui-81605f53eca39186 .3s cubic-bezier(.3,.3,.5,1);background:var(--tgui--outline);border-radius:50%;content:"";height:24px;margin:-12px 0;opacity:0;position:absolute;width:24px}@keyframes tgui-81605f53eca39186{0%{opacity:1;transform:scale(1)}30%{opacity:1}to{opacity:0;transform:scale(8)}}.tgui-30064fce0d501f17{font-size:var(--tgui--subheadline1--font_size);line-height:var(--tgui--subheadline1--line_height)}.tgui-8f63cd31b2513281{font-size:var(--tgui--subheadline2--font_size);line-height:var(--tgui--subheadline2--line_height)}.tgui-c3e2e598bd70eee6{font-family:var(--tgui--font-family)}.tgui-080a44e6ac3f4d27{margin:0}.tgui-5c92f90c2701fa17{font-weight:var(--tgui--font_weight--accent1)}.tgui-809f1f8a3f64154d{font-weight:var(--tgui--font_weight--accent2)}.tgui-5b8bdfbd2af10f59{font-weight:var(--tgui--font_weight--accent3)}.tgui-c602097b30e4ede9{text-transform:uppercase}.tgui-2916d621b0ea5857{font-size:var(--tgui--caption1--font_size);line-height:var(--tgui--caption1--line_height)}.tgui-937d123c23df98b3{font-size:var(--tgui--caption2--font_size);line-height:var(--tgui--caption2--line_height)}.tgui-65c206f0fd891b6b{font-size:var(--tgui--text--font_size);line-height:var(--tgui--text--line_height)}.tgui-91c5537b51b490a7{border-radius:50%}.tgui-305551eb3f5abb68.tgui-305551eb3f5abb68{background-color:var(--tgui--secondary_fill);color:var(--tgui--link_color)}.tgui-30d8642662534eb5{align-items:center;background-color:var(--tgui--tertiary_bg_color);box-shadow:0 0 0 1px var(--tgui--outline);display:flex;justify-content:center;position:relative}.tgui-1191c597a64dbd25{border-radius:inherit;display:block;height:100%;-o-object-fit:cover;object-fit:cover;position:absolute;visibility:hidden;width:100%}.tgui-72bd4140eca37f53 .tgui-1191c597a64dbd25{visibility:visible}.tgui-5ee2f1c6e1da49b5{align-items:center;display:flex;justify-content:center;position:absolute}.tgui-e3bcc434a6ee9317{position:absolute;right:-12px;top:-12px}.tgui-562f7459d74103ea{align-items:center;border-radius:20px;box-sizing:border-box;display:inline-flex;height:20px;justify-content:center;margin:0 6px;min-width:20px;padding:0 5px}.tgui-c1a5e9170826a773{height:24px;padding:0 6px}.tgui-4f69ed647e40e245{border-radius:50%;display:inline-block;height:6px;margin:7px;width:6px}.tgui-6e63faaa2b33f4ae{background:var(--tgui--button_color);color:var(--tgui--button_text_color)}.tgui-4b52474c713ffa7c{background:var(--tgui--destructive_text_color);color:var(--tgui--button_text_color)}.tgui-0278f262d68294f0{background:var(--tgui--secondary_fill);color:var(--tgui--link_color)}.tgui-0883e451f3707277{background:var(--tgui--plain_background);color:var(--tgui--plain_foreground)}.tgui-6b3dbcedd9052940{background:var(--tgui--white);color:var(--tgui--link_color)}.tgui-e05fce4753086879{font-size:var(--tgui--headline--font_size);line-height:var(--tgui--headline--line_height)}.tgui-c6d7432a5c12debe{font-size:var(--tgui--large_title--font_size);line-height:var(--tgui--large_title--line_height)}.tgui-2fc52ee93e8068a6{font-size:var(--tgui--title1--font_size);line-height:var(--tgui--title1--line_height)}.tgui-72c2a480384c4fb1{font-size:var(--tgui--title2--font_size);line-height:var(--tgui--title2--line_height)}.tgui-45c5f45d3e9105f4{font-size:var(--tgui--title3--font_size);line-height:var(--tgui--title3--line_height)}.tgui-54214e0db34f53c3{position:absolute;right:-12px;top:0}.tgui-28e0a2576155be01{display:flex}.tgui-28e0a2576155be01>:not(:first-child){margin-left:-12px}.tgui-28e0a2576155be01>*{box-shadow:0 0 0 3px var(--tgui--bg_color)}.tgui-c3d21871b48e0ba3{background:var(--tgui--bg_color);display:flex;gap:20px;overflow:hidden;padding:16px 20px;position:relative}.tgui-7b260d7ad33f3ba0:not(.tgui-f80265c401d577b0){box-shadow:var(--tgui--base--section--box_shadow)}.tgui-cefdf70a2d9648ea{border-radius:16px}.tgui-f80265c401d577b0{padding:20px}.tgui-f80265c401d577b0 .tgui-2646957e5c9379f3{color:var(--tgui--white)}.tgui-f80265c401d577b0 .tgui-62a759a0c54c3667{color:var(--tgui--white);opacity:.8}.tgui-d67d90bbcab86e14{background:var(--tgui--bg_color)}.tgui-7b260d7ad33f3ba0.tgui-d67d90bbcab86e14{border:1px solid var(--tgui--outline);border-radius:16px;box-shadow:none;margin:8px 20px}.tgui-cefdf70a2d9648ea.tgui-d67d90bbcab86e14{background:var(--tgui--quartenary_bg_color);margin:8px 16px}.tgui-11921b54915b369c{bottom:0;left:0;position:absolute;right:0;top:0}.tgui-a04b768cea14d789{display:flex;flex:1 1 0;flex-direction:column;gap:2px;z-index:var(--tgui--z-index--simple)}.tgui-62a759a0c54c3667{color:var(--tgui--subtitle_text_color)}.tgui-1e638bcb841cdfbc{color:var(--tgui--hint_color)}.tgui-5e0d89b3bc8342d8{display:flex;gap:4px;margin-top:10px}.tgui-fa2f2ea4a4ffc035{border-radius:50%;height:28px}.tgui-79024fcb6d81ad79{background:var(--tgui--secondary_fill);border-left:3px solid var(--tgui--link_color);border-radius:4px;padding:6px 28px 8px 12px;position:relative}.tgui-16ed20e7a6e2daa0{color:var(--tgui--text_color)}.tgui-bd5b6cd161834705{display:block;position:absolute;right:6px;top:4px}.tgui-6c9b3f1fd52a3108{color:var(--tgui--link_color)}.tgui-117e77cd385a9c8d{align-items:center;border:none;border-radius:8px;box-sizing:border-box;display:inline-flex;justify-content:center;max-width:100%;min-width:80px;text-decoration:none}.tgui-726846958fe7f4a0{flex-grow:1;width:100%}.tgui-117e77cd385a9c8d:after{background:var(--tgui--bg_color);bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0;transition:opacity .15s ease-out}.tgui-117e77cd385a9c8d:hover:after{opacity:var(--tgui--button--hovered-opacity)}.tgui-06cc94d03a7c4dd7,.tgui-8310172a5320ab71{align-items:center;display:flex;justify-content:center}.tgui-5f6014c0f063b6de{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:var(--tgui--z-index--simple)}.tgui-014f2b7d196b090d.tgui-014f2b7d196b090d{align-items:center;background:inherit;border-radius:inherit;color:var(--tgui--button--spinner-color);cursor:auto;display:flex;height:100%;justify-content:center;position:absolute;width:100%}.tgui-13f23a224303ddaa{border-radius:20px;gap:6px;height:36px;min-width:34px;padding:8px 12px}.tgui-1a16a49d89076ff4{gap:8px;height:42px;min-width:42px;padding:8px 14px}.tgui-9cef742a22f195c9{gap:10px;height:50px;padding:10px 20px}.tgui-8a1ca9efa24f4809{--tgui--button--hovered-opacity:.15;--tgui--button--spinner-color:var(--tgui--button_text_color);background:var(--tgui--button_color);color:var(--tgui--button_text_color)}.tgui-91bda9a36246a33c{--tgui--button--hovered-opacity:.07;--tgui--button--spinner-color:var(--tgui--link_color);background:var(--tgui--secondary_fill);color:var(--tgui--link_color)}.tgui-48956537c34690db{--tgui--button--hovered-opacity:.03;--tgui--button--spinner-color:var(--tgui--plain_foreground);background:transparent;color:var(--tgui--link_color)}.tgui-93106efd6b6d66ee{background:var(--tgui--plain_background)}.tgui-93106efd6b6d66ee,.tgui-e884e36ff1faa596{--tgui--button--hovered-opacity:.5;--tgui--button--spinner-color:var(--tgui--plain_foreground);color:var(--tgui--plain_foreground)}.tgui-e884e36ff1faa596{background:inherit;box-shadow:0 0 0 1px var(--tgui--outline)}.tgui-ba6d30cc81e39ae5{--tgui--button--hovered-opacity:.5;--tgui--button--spinner-color:var(--tgui--surface_dark);background:var(--tgui--white)}.tgui-55e8aa7f5cea2280.tgui-1a16a49d89076ff4{border-radius:12px}.tgui-55e8aa7f5cea2280:after{content:unset}.tgui-490cb0f5ec4998f3 .tgui-06cc94d03a7c4dd7,.tgui-490cb0f5ec4998f3 .tgui-5f6014c0f063b6de,.tgui-490cb0f5ec4998f3 .tgui-8310172a5320ab71{opacity:0}.tgui-0ac8c3540e603b63{color:var(--tgui--link_color)}.tgui-562a3eae646b486d{color:var(--tgui--hint_color)}.tgui-dbf261f4b3046bb3{background:var(--tgui--tertiary_bg_color);border-radius:20px;box-shadow:0 32px 64px #0000000a,0 0 2px 1px #00000005;display:inline-block;overflow:hidden;position:relative}.tgui-c6ad96fdf8ce4b28{background:var(--tgui--plain_foreground)}.tgui-80c6a0ba7b3c11fd{--tgui--cell--middle--padding:16px 0;background:var(--tgui--card_bg_color);padding:0 20px}.tgui-814d1971a92687e3{--tgui--text_color:var(--tgui--white);--tgui--hint_color:hsla(0,0%,100%,.75);background:linear-gradient(180deg,transparent 0,var(--tgui--black) 100%);bottom:0;left:0;padding-top:48px;position:absolute;right:0}.tgui-422c21c917cc0873{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:break-spaces}.tgui-27c5a061c5f35c04{font-weight:var(--tgui--font_weight--accent2)}.tgui-814d1971a92687e3 .tgui-27c5a061c5f35c04{color:var(--tgui--white)}.tgui-79efb12936705a6f{position:absolute;right:16px;top:16px}.tgui-6372c64c79ad2959{align-items:center;border-radius:10px;box-sizing:border-box;display:inline-flex;gap:8px;justify-content:center;padding:8px 12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tgui-b8b077d7e3491b30{background:var(--tgui--surface_primary);box-shadow:0 12px 24px #0000000d}.tgui-ccc3e4a302799418{background:var(--tgui--plain_background)}.tgui-fdfccf8f92c11530{border-radius:10px;box-shadow:0 0 0 1px var(--tgui--outline)}.tgui-9c7ff8cd23a6ea9a{color:var(--tgui--plain_foreground);flex:1 1 0;overflow:hidden;text-overflow:ellipsis}.tgui-0d7ce20ebc0fc7aa{margin-right:2px}.tgui-67f596882eb2b6ab{align-items:center;color:var(--tgui--secondary_hint_color);display:flex;margin-top:1.5px}.tgui-a8ce18a8594cea9b{align-items:center;background:transparent;border:none;color:var(--tgui--link_color);display:flex;gap:24px;height:48px;padding:10px 24px;width:100%}.tgui-6e7ca796043fe6ca{color:var(--tgui--destructive_text_color)}.tgui-f464dba82cb8b46e{gap:18px;height:44px;padding:8px 18px}.tgui-c5be765fabc1327f{text-align:right}.tgui-437ab2028f14c95c{align-items:center;color:var(--tgui--secondary_hint_color);display:flex;gap:12px}.tgui-4af039094fb946b4{color:var(--tgui--hint_color);margin:2px 0 0}.tgui-97dd747d03e9d3e0{align-items:center;color:var(--tgui--hint_color);display:flex;gap:8px}.tgui-64a5a0dc5509605e{flex-grow:1;overflow-wrap:anywhere}.tgui-3b026a2674eb3f4c{flex-shrink:0}.tgui-dda0e80fdf796ba5{border:none;border-radius:12px;display:inline-flex;padding:8px}.tgui-b92d762e02762017{border-radius:50%;padding:6px}.tgui-93cba8aff2e72079{background:var(--tgui--secondary_fill);color:var(--tgui--link_color)}.tgui-08ef1486bc111162{background:transparent;color:var(--tgui--link_color)}.tgui-2250ff52f0b5cf71{background:var(--tgui--plain_background);color:var(--tgui--plain_foreground)}.tgui-53781f3cf83e8be1{background:inherit;box-shadow:0 0 0 1px var(--tgui--outline);color:var(--tgui--plain_foreground)}.tgui-39e9f02ce4b4b950{display:flex;gap:12px}.tgui-b3d7f75461a64b76{gap:8px}.tgui-c5545e0bc6105e48{align-items:center;background:transparent;border:none;border-radius:12px;box-sizing:border-box;color:var(--tgui--link_color);display:flex;flex:1 0 0;flex-direction:column;gap:3px;justify-content:center;max-width:100%;min-height:60px;min-width:64px;padding:0 12px}.tgui-bf32cd3c110b8729{gap:4px;min-height:64px;min-width:72px}.tgui-99a630d0096f2169{background:var(--tgui--secondary_fill)}.tgui-30bf4976f818e8bf{background:var(--tgui--plain_background);color:var(--tgui--plain_foreground)}.tgui-c0c9bf3b1a53a8a4{max-width:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tgui-389a43acd684137a>:not(:last-child){margin-bottom:12px}.tgui-cfed40fe81d34ad5{box-sizing:border-box;padding:10px 18px}.tgui-e5c3a5b87f8b1f46{align-items:center;display:flex;flex-direction:column;gap:24px;justify-content:center;overflow:hidden;padding:32px}.tgui-9c3dbc0ef84585d4{margin:0;overflow-wrap:anywhere;text-align:center}.tgui-87cd6af55f73428d{color:var(--tgui--hint_color)}.tgui-87cd6af55f73428d:not(:first-child){margin-top:8px}.tgui-8e15431b81f6601e .tgui-db9be63c4fecf79b{background:var(--tgui--bg_color);box-shadow:0 1px 2px #0000001a}.tgui-97eca24324122dbc .tgui-4b78bed6e925088e{background:var(--tgui--bg_color);border-radius:12px}.tgui-97eca24324122dbc .tgui-4b78bed6e925088e>:first-child{border-radius:12px 12px 0 0;padding-top:2px}.tgui-97eca24324122dbc .tgui-4b78bed6e925088e>:last-child{border-radius:0 0 12px 12px;padding-bottom:2px}.tgui-8af0d10d5540c6cc{border-top:none;border-color:var(--tgui--outline);border-width:var(--tgui--border--width);margin:0}.tgui-dbb364e8ced00cc8{padding:12px 24px}.tgui-8c4c6f82ba895475{padding:8px 16px 0}.tgui-8ebba379083b615a{padding:16px 24px 20px;text-align:center}.tgui-8c4c6f82ba895475.tgui-8ebba379083b615a{padding:16px 16px 0}.tgui-67471b69da3e3062{color:var(--tgui--section_header_text_color)}.tgui-d0251b46536ac046{color:var(--tgui--link_color);padding:20px 24px 4px 22px}.tgui-34fd1a25cc171439{color:var(--tgui--text_color);padding-left:24px}.tgui-b7217abb24e8763a{color:var(--tgui--section_header_text_color);padding:16px 16px 8px}.tgui-b7217abb24e8763a.tgui-34fd1a25cc171439{color:var(--tgui--text_color);padding:0 0 12px}.tgui-f492b616576c67fb{display:flex;gap:9px;padding:12px}.tgui-d45985ba4cb27e5f{background:var(--tgui--tertiary_bg_color);border-radius:2px;height:3px;min-width:3px;width:100%}.tgui-352b8d247f473986{background:var(--tgui--link_color)}.tgui-b53f1370d519b689{display:flex;flex-direction:column;gap:24px;margin:0;padding:32px 44px}.tgui-732e8859c58ffb77{flex-direction:row}.tgui-4614301efc783534{display:flex;overflow-x:scroll;-webkit-overflow-scrolling:touch;scrollbar-width:none}.tgui-4e145f66199825da::-webkit-scrollbar{display:none}.tgui-caaaa27ccfa566b7{--tgui--timeline--item--thickness:4px;--tgui--timeline--item--size:12px;display:flex;gap:32px}.tgui-caaaa27ccfa566b7:last-child .tgui-3fc2f0d7045d23d8{display:none}.tgui-0f46575488c31b93{min-width:var(--tgui--timeline--item--size);position:relative}.tgui-d7ba9c56743387af{border-radius:50%;height:var(--tgui--timeline--item--size);left:0;top:4px;width:var(--tgui--timeline--item--size)}.tgui-3fc2f0d7045d23d8,.tgui-d7ba9c56743387af{background:var(--tgui--quartenary_bg_color);position:absolute}.tgui-3fc2f0d7045d23d8{border-radius:2px;bottom:0;height:calc(100% - 4px);left:50%;top:24px;transform:translate(-50%);width:var(--tgui--timeline--item--thickness)}.tgui-bf9f87dd32ecad81{overflow:hidden}.tgui-2b850faa8f3a520a{display:inline-block;margin-bottom:4px}.tgui-b9a4d9afcd70e355{color:var(--tgui--hint_color)}.tgui-581d134185fd28b4 .tgui-d7ba9c56743387af,.tgui-dcd66bc07faad440 .tgui-3fc2f0d7045d23d8,.tgui-dcd66bc07faad440 .tgui-d7ba9c56743387af{background:var(--tgui--link_color)}.tgui-566b727e7a35e935 .tgui-0f46575488c31b93{--tgui--timeline--item--size:16px}.tgui-566b727e7a35e935 .tgui-d7ba9c56743387af{top:6px}.tgui-566b727e7a35e935 .tgui-3fc2f0d7045d23d8{height:calc(100% + 26px);top:6px}.tgui-f461f2eeb28c21d0{flex-direction:column;gap:24px}.tgui-f461f2eeb28c21d0 .tgui-0f46575488c31b93{align-items:center;display:flex;height:var(--tgui--timeline--item--size)}.tgui-f461f2eeb28c21d0 .tgui-d7ba9c56743387af{top:0}.tgui-f461f2eeb28c21d0 .tgui-3fc2f0d7045d23d8{height:var(--tgui--timeline--item--thickness);left:0;top:50%;transform:translateY(-50%);width:calc(100% + 36px)}.tgui-f461f2eeb28c21d0 .tgui-2b850faa8f3a520a{white-space:nowrap}.tgui-81a5164cd16c05d5{stroke:var(--tgui--link_color);transform:rotate(-90deg)}.tgui-ced47fd163a53511{border-radius:2px;height:4px;overflow:hidden;position:relative}.tgui-44060f289fdbdb84:after{bottom:0;content:"";left:0;opacity:.4;right:0;top:0}.tgui-027278a6d6708965,.tgui-44060f289fdbdb84:after{background:var(--tgui--link_color);position:absolute}.tgui-027278a6d6708965{border-radius:inherit;height:100%;transition:width .2s ease;z-index:var(--tgui--z-index--simple)}.tgui-97f2df57786b02dc{position:relative}.tgui-3eb6091f664c15d6:after,.tgui-3eb6091f664c15d6:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:var(--tgui--z-index--simple)}.tgui-97f2df57786b02dc:before{background:var(--tgui--secondary_bg_color)}.tgui-97f2df57786b02dc:not(.tgui-ecf101b3117a96c8):after{animation:tgui-3a837cc9661e7502 1.8s linear infinite;background-color:var(--tgui--bg_color);z-index:var(--tgui--z-index--skeleton)}@keyframes tgui-3a837cc9661e7502{0%,to{opacity:.4}50%{opacity:.7}}.tgui-bed09b0692380ce7{animation:tgui-738ce40067f9bb6e .34s cubic-bezier(.3,.3,.5,1);bottom:10px;box-sizing:border-box;left:10px;max-width:460px;position:absolute;right:10px;transition:transform .32s cubic-bezier(.3,.3,.5,1);-webkit-user-select:none;-moz-user-select:none;user-select:none}.tgui-a869502f11f22b6c{align-items:center;-webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px);background:var(--tgui--surface_dark);border-radius:10px;bottom:0;box-sizing:border-box;display:flex;gap:12px;left:0;padding:10px 16px 10px 10px;position:sticky;right:0;top:0;width:100%}.tgui-a1e25a2488982fc5{transform:translate3d(0,140%,0)}.tgui-c2ca59c94a46245e .tgui-a869502f11f22b6c{border-radius:14px}.tgui-093aea87229643ac,.tgui-229bfa1a0a8ac43f{align-items:center;color:var(--tgui--toast_accent_color);display:flex}.tgui-7d8f183ba67229e9{color:var(--tgui--white);display:flex;flex:1 1 0;flex-direction:column;gap:1px}@keyframes tgui-738ce40067f9bb6e{0%{transform:translate3d(0,140%,0)}to{transform:translateZ(0)}}.tgui-4d26fba7185ffa9f{background:transparent;border:none;color:var(--tgui--toast_accent_color);padding:0}.tgui-86f452d8e92a2075{display:table;position:relative}.tgui-86f452d8e92a2075:before{background-color:var(--tgui--bg_color);background-image:url(/reactjs-template/assets/2d82b92e720462f8dd3b-Bh4Fahcw.svg);bottom:0;content:"";left:0;position:absolute;right:0;top:0;transition:.4s ease;z-index:var(--tgui--z-index--simple)}.tgui-aff2a6268e887037:before{opacity:0}.tgui-abbb25a9ce45033e{cursor:pointer;position:relative}.tgui-6e9776e8c33b2626{cursor:default;opacity:.3}.tgui-21b20ecaad17ccf9{color:var(--tgui--outline);display:block}.tgui-bca5056bf34297b0{color:var(--tgui--link_color);opacity:0;position:absolute;top:0;transition:opacity .15s ease-out}.tgui-60cf4cc79ba44c4f:checked~.tgui-bca5056bf34297b0{opacity:1}.tgui-b9fd8cdf929947df{height:1px;margin:-1px;padding:0;position:absolute;white-space:nowrap;width:1px;clip:rect(0,0,0,0);border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);opacity:0;overflow:hidden}.tgui-a03137b1ed760aaf{display:flex;gap:10px;min-height:48px;padding:10px 12px 10px 16px}.tgui-ca1c0e2d013ae260{min-height:50px;padding:10px 16px}.tgui-f3ab78c8048cb9dc{align-items:center;background:conic-gradient(from 0deg at 50% 50%,#0c28ff,#03ffff,#24d627,#fdff22,#ff2227,#fe2df6,#7122ff 1turn);border-radius:50%;display:flex;height:24px;justify-content:center;position:relative;width:24px}.tgui-93beab8699996b1e{border-radius:50%;height:16px;width:16px}.tgui-93beab8699996b1e:after,.tgui-93beab8699996b1e:before{border-radius:inherit;content:"";position:absolute}.tgui-93beab8699996b1e:before{background:var(--tgui--bg_color);bottom:2px;left:2px;right:2px;top:2px}.tgui-93beab8699996b1e:after{background:inherit;bottom:4px;left:4px;right:4px;top:4px}.tgui-21dba5277ef0ddd7{flex:1 1 0}.tgui-8ca550c2fc85eff5{background:var(--tgui--bg_color);padding:20px 22px 16px;position:relative}.tgui-8ca550c2fc85eff5 .tgui-9f9a52f695b85cc9{background:var(--tgui--bg_color);border-radius:5px;color:var(--tgui--secondary_hint_color);left:32px;max-width:calc(100% - 86px);overflow:hidden;padding:0 6px;position:absolute;text-overflow:ellipsis;top:6px;white-space:nowrap}.tgui-4a83fef1f04acb0e{pointer-events:none;position:relative}.tgui-7707c5d942b7b9af.tgui-4a83fef1f04acb0e{opacity:.35}.tgui-8ca550c2fc85eff5.tgui-4a83fef1f04acb0e:after{background:var(--tgui--bg_color);bottom:0;content:"";left:0;opacity:.5;position:absolute;right:0;top:0}.tgui-0f5050defacbf813{align-items:center;box-sizing:border-box;display:flex}.tgui-16b3783d394bc7db,.tgui-8f04eff653cfa5e5{display:flex}.tgui-8ca550c2fc85eff5 .tgui-0f5050defacbf813{border-radius:14px;box-shadow:0 0 0 2px var(--tgui--outline)}.tgui-8ca550c2fc85eff5.tgui-41b168516bddcf4b .tgui-9f9a52f695b85cc9{color:var(--tgui--destructive_text_color)}.tgui-8ca550c2fc85eff5.tgui-41b168516bddcf4b .tgui-0f5050defacbf813{box-shadow:0 0 0 2px var(--tgui--destructive_text_color)}.tgui-8ca550c2fc85eff5.tgui-89277928456f0e30 .tgui-9f9a52f695b85cc9{color:var(--tgui--link_color)}.tgui-8ca550c2fc85eff5.tgui-89277928456f0e30 .tgui-0f5050defacbf813{box-shadow:0 0 0 2px var(--tgui--link_color)}.tgui-7707c5d942b7b9af .tgui-0f5050defacbf813{background:var(--tgui--bg_color);border-radius:12px}.tgui-7707c5d942b7b9af.tgui-41b168516bddcf4b .tgui-0f5050defacbf813{box-shadow:0 0 0 1.5px var(--tgui--destructive_text_color)}.tgui-d9de1f32aee12a15{gap:12px;padding:12px 16px}.tgui-9b2ad13855aef059{min-height:48px}.tgui-c4863cd4c893a047{background:transparent;border:0;box-sizing:border-box;color:var(--tgui--text_color);display:block;margin:0;outline:0;padding:0;resize:none;text-overflow:ellipsis;width:100%}.tgui-c4863cd4c893a047::-webkit-inner-spin-button,.tgui-c4863cd4c893a047::-webkit-outer-spin-button{-webkit-appearance:none}.tgui-c4863cd4c893a047::-moz-placeholder{color:var(--tgui--secondary_hint_color)}.tgui-c4863cd4c893a047::placeholder{color:var(--tgui--secondary_hint_color)}.tgui-6cca8a28a056cc34{--tgui--multiselect--min-height:52px;min-height:var(--tgui--multiselect--min-height);position:relative;width:100%}.tgui-1ed7193796bd9fff.tgui-1ed7193796bd9fff{min-height:var(--tgui--multiselect--min-height);padding-right:48px}.tgui-e9b05eb8feaa0359{color:var(--tgui--secondary_hint_color);position:absolute;right:16px}.tgui-c56e136f855e5144{--tgui--multiselect--gap:8px;box-sizing:border-box;display:flex;flex-grow:1;flex-shrink:1;flex-wrap:wrap;gap:var(--tgui--multiselect--gap);margin:0;max-width:100%;overflow:hidden;padding:8px;position:relative}.tgui-991d85450550abb9{max-width:calc(100% - var(--tgui--multiselect--gap));padding:6px 12px}.tgui-41e02fd2529dfbd2{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;box-shadow:none;color:var(--tgui--text_color);display:flex;flex:1;flex-direction:column;justify-content:center;outline:none;padding:0 8px;position:relative;width:100%}.tgui-41e02fd2529dfbd2::-moz-placeholder{color:var(--tgui--secondary_hint_color)}.tgui-41e02fd2529dfbd2::placeholder{color:var(--tgui--secondary_hint_color)}.tgui-41e02fd2529dfbd2[readonly]{cursor:default}.tgui-ac1d436c45aafe04 .tgui-41e02fd2529dfbd2{text-overflow:ellipsis;white-space:nowrap}.tgui-0b4134fd8d5c05ac{color:var(--tgui--hint_color);display:flex}.tgui-70d34454bcf3c3e4{background:var(--tgui--bg_color);border-radius:12px;box-shadow:0 32px 64px #0000000a,0 0 2px 1px #00000005;box-sizing:border-box;margin-top:8px;max-height:168px;overflow-y:scroll;width:100%}.tgui-6a25d2bd42bb932c{color:var(--tgui--hint_color)}.tgui-15f9ec3c119467a6{height:48px;padding:0 16px}.tgui-e3f4e376df0c272c{color:var(--tgui--link_color)}.tgui-e9c83f4f150e5513{z-index:var(--tgui--z-index--simple)}.tgui-97a62789a70393d0{position:absolute}.tgui-6ae8c47f9448321b{content:"";display:block;transform:translateY(1px)}.tgui-6c3deae89ec68e99{transform:rotate(90deg) translate(50%,-50%);transform-origin:right}.tgui-fed67e27ad8cb75f{transform:rotate(180deg)}.tgui-b27d1c4f6222569e{transform:rotate(-90deg) translate(-50%,-50%);transform-origin:left}.tgui-9bfdebc3fdae031b{cursor:pointer;position:relative}.tgui-55c1caaee1c1e33e{cursor:default;opacity:.25}.tgui-18734a5360b84fba{color:var(--tgui--outline);display:block}.tgui-1ec4b447aa5cf66a{color:var(--tgui--link_color);opacity:0;position:absolute;top:0}.tgui-18734a5360b84fba,.tgui-1ec4b447aa5cf66a{transition:opacity .15s ease-out}.tgui-7cd9bbef46d9194c:checked~.tgui-18734a5360b84fba{opacity:0}.tgui-7cd9bbef46d9194c:checked~.tgui-1ec4b447aa5cf66a{opacity:1}.tgui-a641ca1e63331268{background:var(--tgui--bg_color);bottom:0;box-sizing:border-box;left:0;padding:32px 20px;position:fixed;right:0;top:0}.tgui-a40b67b8ec9e3a49,.tgui-a641ca1e63331268{align-items:center;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.tgui-a40b67b8ec9e3a49{flex:1 1 0;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.tgui-bf64531d065e1bd9 .tgui-a40b67b8ec9e3a49{flex:unset}.tgui-7df9ee9d6d6586de,.tgui-a40b67b8ec9e3a49{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tgui-7df9ee9d6d6586de{max-width:100%;text-align:center}.tgui-36c453f0a9d51371{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin-top:20px}.tgui-0e77c7f1a1b82c84{--tgui--pin_input--buttons-gap:12px;--tgui--pin_input--button-width:33.3%;display:flex;flex-direction:column;flex-wrap:wrap;gap:var(--tgui--pin_input--buttons-gap);margin-top:52px;width:100%}.tgui-bf64531d065e1bd9 .tgui-0e77c7f1a1b82c84{--tgui--pin_input--button-width:76px}.tgui-49b69c407401f76c{display:flex;gap:var(--tgui--pin_input--buttons-gap);justify-content:center}.tgui-49b69c407401f76c:last-child{justify-content:flex-end;margin-left:calc(var(--tgui--pin_input--buttons-gap) * 2)}.tgui-bf64531d065e1bd9 .tgui-49b69c407401f76c:last-child{justify-content:center;margin-left:calc(var(--tgui--pin_input--button-width) + var(--tgui--pin_input--buttons-gap))}.tgui-14d79626209a204a{color:var(--tgui--link_color);display:block;margin:auto}.tgui-6eaa561b38208c72{background:var(--tgui--tertiary_bg_color);border:none;border-radius:16px;color:var(--tgui--text_color);height:56px;padding:0;width:var(--tgui--pin_input--button-width)}.tgui-3bea52c968cee224{border-radius:50%;height:76px;width:76px}.tgui-bad1e0d3a612c110{align-items:center;background:var(--tgui--bg_color);border:2.5px solid var(--tgui--divider);border-radius:12px;display:flex;height:44px;justify-content:center;padding:0;transition:border-color .15s ease-out;width:40px}.tgui-b9a1527d00258387{background:var(--tgui--link_color);border:none;border-radius:50%;height:13px;opacity:.1;width:13px}.tgui-b9a1527d00258387.tgui-1d6fb1351888c5e0{opacity:1}.tgui-bad1e0d3a612c110:focus-within{border-color:var(--tgui--link_color)}.tgui-9fa4f4531187df59{background:var(--tgui--text_color);border-radius:50%;height:8px;width:8px}.tgui-de477a8e3910f19f{cursor:pointer;position:relative}.tgui-d5c5e7402bfd8c12{cursor:default;opacity:.25}.tgui-bfcd091645843388{color:var(--tgui--outline);display:block}.tgui-8d2d5ba97b4abd79{color:var(--tgui--link_color);opacity:0;position:absolute;top:0}.tgui-8d2d5ba97b4abd79,.tgui-bfcd091645843388{transition:opacity .15s ease-out}.tgui-743a4b0f25e5d51b:checked~.tgui-bfcd091645843388{opacity:0}.tgui-743a4b0f25e5d51b:checked~.tgui-8d2d5ba97b4abd79{opacity:1}.tgui-0487bdb4329cd879{display:flex;gap:4px;padding:12px;position:relative}.tgui-6169bc2e9d6fdeb8{color:var(--tgui--tertiary_bg_color);position:relative}.tgui-6169bc2e9d6fdeb8:focus-visible{outline:2px solid var(--tgui--link_color)}.tgui-f0faaa15f44569ba{color:var(--tgui--link_color);position:absolute}.tgui-52ba7059852e9950{bottom:0;margin:0;opacity:0;position:absolute;top:0}.tgui-919c5658483cae11{position:relative}.tgui-a0742fd4c73756f7{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:inherit;border:none;border-radius:inherit;color:var(--tgui--text_color);outline:none;padding:12px 58px 12px 16px;width:100%}.tgui-025a45d791e466f6{color:var(--tgui--secondary_hint_color);pointer-events:none;position:absolute;right:16px;top:50%;transform:translateY(-50%)}.tgui-aa094d6480bfa32a{cursor:pointer;position:relative}.tgui-7d31e315f5cc4733{cursor:default;opacity:.25}.tgui-ad96577f259c5732{color:var(--tgui--link_color);display:block;opacity:0;transition:opacity .15s ease-out}.tgui-6988c618806a5171:checked~.tgui-ad96577f259c5732{opacity:1}.tgui-717c3649db8d5af2{--tgui--slider--thumb--size:12px;align-items:center;box-sizing:border-box;display:flex;gap:24px;min-height:52px;padding:16px 24px}.tgui-35faba867393ce37{border-radius:8px;cursor:pointer;height:var(--tgui--slider--thumb--size);position:relative;width:100%}.tgui-c591a831de13ba23{cursor:default;opacity:.35}.tgui-4de4feff2dcc975c,.tgui-e11a455378c63b15{border-radius:inherit;height:3px;left:0;margin-top:-1px;position:absolute;top:50%}.tgui-e11a455378c63b15{align-items:center;background-color:var(--tgui--tertiary_bg_color);box-sizing:border-box;display:flex;justify-content:space-between;width:100%}.tgui-4de4feff2dcc975c{background:var(--tgui--button_color);width:auto}.tgui-7fe9f0fbc9771947{height:100%;isolation:isolate;margin-left:calc(var(--tgui--slider--thumb--size) / 10);margin-right:calc(var(--tgui--slider--thumb--size) / 10);position:relative;z-index:var(--tgui--z-index--simple)}.tgui-6598607160233201,.tgui-a56564bcfd4b56e5{align-items:center;display:flex;justify-content:center;margin-top:3px}.tgui-d2e2a2e28ef0f746{--tgui--slider--thumb--size:24px;gap:20px;padding:20px}.tgui-d2e2a2e28ef0f746 .tgui-4de4feff2dcc975c,.tgui-d2e2a2e28ef0f746 .tgui-e11a455378c63b15{height:4px;margin-top:-2px}.tgui-b632646f586ff14d{background:var(--tgui--secondary_hint_color);border-radius:50%;height:2px;position:absolute;width:2px}.tgui-2b0a006b5a9ffd68{background:var(--tgui--secondary_hint_color);opacity:.35}.tgui-7951a89b824476b3{background:var(--tgui--tertiary_bg_color);border-radius:3px;height:20px;width:4px}.tgui-7951a89b824476b3.tgui-2b0a006b5a9ffd68{background:var(--tgui--button_color);opacity:1}.tgui-b632646f586ff14d:not(.tgui-7951a89b824476b3):first-child{transform:translate(50%)}.tgui-b632646f586ff14d:last-child{transform:translate(-150%)}.tgui-7951a89b824476b3:last-child{transform:translate(-100%)}.tgui-83b7253102c6addc{background:var(--tgui--button_color);border-radius:50%;height:var(--tgui--slider--thumb--size);position:absolute;top:50%;transform:translate(-50%,-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--tgui--slider--thumb--size);z-index:var(--tgui--z-index--simple)}.tgui-96f5864d281f94a8{background:var(--tgui--white);box-shadow:0 6px 6.5px #0000001f,0 .5px 2px #0000001f}.tgui-abdeb837bfc726cb{height:100%;width:100%}.tgui-a1dc55b304d32032{align-items:center;border-radius:16px;cursor:pointer;display:flex;height:32px;overflow:hidden;position:relative;width:52px}.tgui-57a00e000de7483d{cursor:default;opacity:.4}.tgui-3acc6d0262399734:before{background:var(--tgui--secondary_bg_color);bottom:0;content:"";left:0;position:absolute;right:0;top:0}.tgui-2776944549f431fc .tgui-3acc6d0262399734:before{border:3px solid var(--tgui--secondary_hint_color);border-radius:16px}.tgui-3acc6d0262399734:after{border-radius:50%;content:"";position:absolute;top:50%;transform:translateY(-50%)}.tgui-2776944549f431fc .tgui-3acc6d0262399734:after{background:var(--tgui--secondary_hint_color);height:16px;margin-left:8px;width:16px}.tgui-b70ccb0e7742541a .tgui-3acc6d0262399734:after{background:var(--tgui--white);box-shadow:0 3px 1px #0000000f,0 3px 8px #00000026,0 0 0 1px #0000000a;height:28px;margin-left:2px;width:28px}.tgui-edfaab8ff474b0de:checked+.tgui-3acc6d0262399734:before{background-color:var(--tgui--link_color);border-color:var(--tgui--link_color)}.tgui-2776944549f431fc .tgui-edfaab8ff474b0de:checked+.tgui-3acc6d0262399734:after{height:24px;width:24px}.tgui-edfaab8ff474b0de:checked+.tgui-3acc6d0262399734:after{transform:translate(20px) translateY(-50%)}.tgui-2776944549f431fc .tgui-edfaab8ff474b0de:checked+.tgui-3acc6d0262399734:after{background:var(--tgui--white);transform:translate(16px) translateY(-50%)}@media (prefers-reduced-motion:no-preference){.tgui-3acc6d0262399734:before{transition:background-color,border-color 67ms linear}.tgui-3acc6d0262399734:after{transition:transform .3s cubic-bezier(.175,.885,.32,1.275) 0s}.tgui-b70ccb0e7742541a .tgui-3acc6d0262399734:before{transition:background-color .2s ease}.tgui-b70ccb0e7742541a .tgui-3acc6d0262399734:after{transition:transform .2s cubic-bezier(.36,-.24,.26,1.32)}}.tgui-d40ec83150e66029{background:inherit;border:none;border-radius:inherit;color:var(--tgui--text_color);min-height:80px;outline:none;padding:12px 16px;resize:none;width:100%}.tgui-d40ec83150e66029::-moz-placeholder{color:var(--tgui--secondary_hint_color)}.tgui-d40ec83150e66029::placeholder{color:var(--tgui--secondary_hint_color)}.tgui-2453b62de8016bfa .tgui-d40ec83150e66029{min-height:84px;padding:16px}.tgui-7a5facec9dc28fae{left:0;position:fixed;right:0}.tgui-d83e15d73344cdc0{top:0}.tgui-01790b7e59088ea5{bottom:0;padding-bottom:var(--tgui--safe_area_inset_bottom)}.tgui-53cb2ebed0c3b08f{background:var(--tgui--surface_primary);box-shadow:0 -1px 0 var(--tgui--divider);display:flex;justify-items:stretch;padding:0 16px}.tgui-a2b4713d67582227{padding:0}.tgui-64cd0db020a9bacf{align-items:center;background:transparent;border:none;color:var(--tgui--secondary_hint_color);display:flex;flex:1 0 0;flex-direction:column;gap:6px;justify-content:center;margin:0;max-width:100%;min-width:0;padding:12px 16px 16px;transition:.15s ease-out}.tgui-ecbb746748ea4134{gap:4px;padding:8px 12px 4px}.tgui-e6658d0b8927f95e{color:var(--tgui--link_color)}.tgui-e6658d0b8927f95e:not(.tgui-ecbb746748ea4134) .tgui-44d48e11585af170{background:var(--tgui--secondary_fill)}.tgui-44d48e11585af170{border-radius:35px;display:flex;justify-content:center;min-width:64px;padding:2px 10px}.tgui-ecbb746748ea4134 .tgui-44d48e11585af170{padding:0}.tgui-aeab497081949a15{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tgui-0eddcd83377979c2,.tgui-68fc52f1068b8e16{align-items:center;display:flex}.tgui-0eddcd83377979c2{color:var(--tgui--divider);height:20px;justify-content:center;margin:0 -6px;width:24px}.tgui-a9c3d618b6e43d64{color:var(--tgui--link_color)}.tgui-32fe6ce00169d72e{border-radius:8px;color:var(--tgui--hint_color);cursor:pointer;padding:8px 10px;text-decoration:none;transition:opacity .15s ease-out}.tgui-32fe6ce00169d72e:hover{background:var(--tgui--tertiary_bg_color)}.tgui-32fe6ce00169d72e:active{opacity:.5}.tgui-442a9579d6c19dc4{--tgui--compact_pagination--dot--opacity--selected:.1;--tgui--compact_pagination--dot--background--selected:var(--tgui--link_color);display:inline-flex;gap:8px;padding:4px}.tgui-15adbef8fe5efed9{backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);background:#00000040;border-radius:28px;padding:8px 9px}.tgui-15adbef8fe5efed9,.tgui-cdc228e9d92dac5b{--tgui--compact_pagination--dot--opacity--selected:.25;--tgui--compact_pagination--dot--background--selected:var(--tgui--white);gap:6px}.tgui-cdc228e9d92dac5b{padding:0}.tgui-747563e660315b07{background:var(--tgui--compact_pagination--dot--background--selected,var(--tgui--link_color));border:none;border-radius:50%;cursor:pointer;display:block;height:8px;opacity:var(--tgui--compact_pagination--dot--opacity--selected,.25);padding:0;transition:opacity .15s ease-in-out;width:8px}.tgui-6d14364fac453a65{opacity:1}.tgui-bfabaddd169233a9{color:var(--tgui--link_color);text-decoration:none}.tgui-38580a5c868cecc4{display:flex;gap:8px;padding:16px}.tgui-645f8efe8c9c3cc5{opacity:.35}.tgui-8dab5cf704c88e82{align-items:center;background:transparent;border:none;border-radius:12px;box-sizing:border-box;color:var(--tgui--hint_color);cursor:pointer;display:flex;height:44px;justify-content:center;min-width:44px;padding:0 10px}.tgui-64016be270020f33{background:var(--tgui--tertiary_bg_color);color:var(--textColor)}.tgui-a43e090d3501d4ca{cursor:default;opacity:.35}.tgui-670c6b2f3c8df445{opacity:1}.tgui-2636b28cb21c42cc{color:var(--tgui--link_color)}.tgui-71259e3311d7116e{background:var(--tgui--tertiary_bg_color);border-radius:44px;box-sizing:border-box;height:100%;overflow:hidden;padding:2px;width:100%}.tgui-b0a9057ab5d33005{align-content:stretch;align-items:center;border-radius:inherit;box-sizing:border-box;display:flex;height:100%;position:relative;width:100%}.tgui-31f461ccfea23ec3{background:var(--tgui--segmented_control_active_bg);border-radius:40px;bottom:0;box-sizing:border-box;left:0;position:absolute;right:0;top:0;transition:transform .15s;z-index:var(--tgui--z-index--simple)}.tgui-16c6b1986a48e2b5{background:var(--tgui--tertiary_bg_color);border-radius:9px}.tgui-16c6b1986a48e2b5 .tgui-31f461ccfea23ec3{border:var(--tgui--border--width) solid rgba(0,0,0,.04);border-radius:inherit;box-shadow:0 3px 1px #0000000a,0 3px 8px #0000001f}.tgui-bbfb272d22eb23e8{background:transparent;border:none;border-radius:inherit;color:var(--tgui--text_color);flex:1 1 0;max-width:100%;overflow:hidden;padding:10px 24px;text-overflow:ellipsis;white-space:nowrap;z-index:var(--tgui--z-index--simple)}.tgui-513fce1023cbbd63{padding:6px 24px}.tgui-89d3925598b8fd68{align-content:stretch;align-items:center;display:flex;gap:12px;height:100%;overflow:hidden;position:relative;width:100%}.tgui-8e986e14448c29e6{background:var(--tgui--button_color);border-radius:4px 4px 1px 1px;bottom:0;height:3px;left:0;position:absolute;right:0;transition:transform 125ms}.tgui-96892ceed80c1bf3{background:transparent;border:none;border-radius:inherit;color:var(--tgui--secondary_hint_color);flex:1 0 0;height:44px;max-width:100%;overflow:hidden;text-overflow:ellipsis;transition:color 125ms;white-space:nowrap}.tgui-44ea091aea23df33{color:var(--tgui--link_color)}.tgui-cc76354712c6e8d9{background-color:var(--tgui--bg_color);border-top-left-radius:16px;border-top-right-radius:16px;bottom:0;display:flex;flex-direction:column;left:0;max-height:96%;outline:none;position:fixed;right:0;z-index:var(--tgui--z-index--overlay)}.tgui-2c53ae2ef0209d4d{align-items:center;border-bottom:1px solid var(--tgui--divider);display:flex;justify-content:space-between;padding:16px}.tgui-5dc6ad1ca3ac3ed4{overflow-y:auto;padding-bottom:var(--tgui--safe_area_inset_bottom)}.tgui-f67c8fb3553eee55{align-items:center;box-sizing:border-box;display:flex;gap:12px;justify-content:space-between;padding:16px;position:relative}.tgui-f67c8fb3553eee55:before{background:var(--tgui--divider);border-radius:4px;content:"";height:4px;left:50%;position:absolute;top:8px;transform:translate(-50%);width:36px}.tgui-09b5f6cfd7ba56ab,.tgui-fe1d6742d85038d7{align-items:center;display:flex;flex:1 0 0}.tgui-09b5f6cfd7ba56ab{justify-content:flex-start}.tgui-fe1d6742d85038d7{justify-content:flex-end}.tgui-7ce1022bfdcb0ae3{--tgui--text--line_height:28px;display:block;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.tgui-3197096cb603b35a{bottom:0;left:0;position:fixed;right:0;top:0;z-index:var(--tgui--z-index--overlay)}.tgui-5638a4ef4e806d8c{background:var(--tgui--white);border-radius:12px;box-shadow:0 8px 24px #0000001a;color:var(--tgui--black);padding:10px}.tgui-bc60ca772e3ae3c6{background:var(--tooltip_background_dark);box-shadow:none}.tgui-5638a4ef4e806d8c .tgui-e0107e1e5ea5b9f3,.tgui-bc60ca772e3ae3c6{color:var(--tgui--white)}.tgui-bc60ca772e3ae3c6 .tgui-e0107e1e5ea5b9f3{color:var(--tooltip_background_dark)}.tgui-e37c114229ebfe85 .tgui-bc60ca772e3ae3c6{backdrop-filter:blur(50px);-webkit-backdrop-filter:blur(50px)}.tgui-6a12827a138e8827{--tgui--font-family:system-ui,-apple-system,BlinkMacSystemFont,"Roboto","Apple Color Emoji","Helvetica Neue",sans-serif;--tgui--font_weight--accent1:700;--tgui--font_weight--accent2:600;--tgui--font_weight--accent3:400;--tgui--large_title--font_size:34px;--tgui--large_title--line_height:42px;--tgui--title1--font_size:28px;--tgui--title1--line_height:36px;--tgui--title2--font_size:24px;--tgui--title2--line_height:32px;--tgui--title3--font_size:20px;--tgui--title3--line_height:24px;--tgui--headline--font_size:19px;--tgui--headline--line_height:28px;--tgui--text--font_size:17px;--tgui--text--line_height:26px;--tgui--subheadline1--font_size:16px;--tgui--subheadline1--line_height:24px;--tgui--subheadline2--font_size:15px;--tgui--subheadline2--line_height:22px;--tgui--caption1--font_size:13px;--tgui--caption1--line_height:20px;--tgui--caption2--font_size:11px;--tgui--caption2--line_height:16px;--tgui--border--width:1px;--tgui--base--section--box_shadow:0 1px 2px 0 rgba(0,0,0,.1);--tgui--bg_color:var(--tg-theme-bg-color,#fff);--tgui--text_color:var(--tg-theme-text-color,#000);--tgui--hint_color:var(--tg-theme-hint-color,#707579);--tgui--link_color:var(--tg-theme-link-color,#007aff);--tgui--button_color:var(--tg-theme-button-color,#007aff);--tgui--button_text_color:var(--tg-theme-button-text-color,#fff);--tgui--secondary_bg_color:var(--tg-theme-secondary-bg-color,#efeff4);--tgui--header_bg_color:var(--tg-theme-header-bg-color,#fff);--tgui--accent_text_color:var(--tg-theme-accent-text-color,#007aff);--tgui--section_bg_color:var(--tg-theme-section-bg-color,#fff);--tgui--section_header_text_color:var(--tg-theme-section-header-text-color,#707579);--tgui--subtitle_text_color:var(--tg-theme-subtitle-text-color,#707579);--tgui--destructive_text_color:var(--tg-theme-destructive-text-color,#e53935);--tgui--skeleton:hsla(0,0%,100%,.03);--tgui--divider:rgba(0,0,0,.15);--tgui--outline:rgba(0,0,0,.05);--tgui--surface_primary:hsla(0,0%,100%,.95);--tgui--tertiary_bg_color:#f4f4f7;--tgui--quartenary_bg_color:#f6f6fa;--tgui--segmented_control_active_bg:#fff;--tgui--card_bg_color:#fff;--tgui--secondary_hint_color:#a2acb0;--tgui--secondary_fill:rgba(67,120,255,.1);--tgui--green:#31d158;--tgui--destructive_background:#e53935;--tgui--primary_code_highlight:#4378ff;--tgui--secondary_code_highlight:#b00fb4;--tgui--tertiary_code_highlight:#3a9f20;--tgui--plain_background:rgba(0,0,0,.04);--tgui--plain_foreground:rgba(0,0,0,.8);--tgui--toast_accent_color:#55a6ff;--tgui--surface_dark:rgba(56,56,56,.85);--tooltip_background_dark:rgba(0,0,0,.85);--tgui--white:#fff;--tgui--black:#000;--tgui--z-index--simple:1;--tgui--z-index--skeleton:2;--tgui--z-index--overlay:3;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;color:var(--tgui--text_color)}.tgui-56dbb42c1dbd5e2b{--tgui--large_title--line_height:41px;--tgui--title1--line_height:34px;--tgui--title2--line_height:28px;--tgui--title3--line_height:25px;--tgui--headline--line_height:24px;--tgui--text--line_height:22px;--tgui--subheadline1--line_height:21px;--tgui--subheadline2--line_height:20px;--tgui--caption1--line_height:16px;--tgui--caption2--line_height:13px}.tgui-865b921add8ee075{--tgui--bg_color:var(--tg-theme-bg-color,#212121);--tgui--text_color:var(--tg-theme-text-color,#fff);--tgui--hint_color:var(--tg-theme-hint-color,#aaa);--tgui--link_color:var(--tg-theme-link-color,#2990ff);--tgui--button_color:var(--tg-theme-button-color,#2990ff);--tgui--button_text_color:var(--tg-theme-button-text-color,#fff);--tgui--secondary_bg_color:var(--tg-theme-secondary-bg-color,#0f0f0f);--tgui--header_bg_color:var(--tg-theme-header-bg-color,#212121);--tgui--accent_text_color:var(--tg-theme-accent-text-color,#007aff);--tgui--section_bg_color:var(--tg-theme-section-bg-color,#212121);--tgui--section_header_text_color:var(--tg-theme-section-header-text-color,#aaa);--tgui--subtitle_text_color:var(--tg-theme-subtitle-text-color,#aaa);--tgui--destructive_text_color:var(--tg-theme-destructive-text-color,#e53935);--tgui--skeleton:hsla(0,0%,100%,.03);--tgui--divider:hsla(0,0%,100%,.05);--tgui--outline:hsla(0,0%,100%,.1);--tgui--surface_primary:hsla(0,0%,9%,.95);--tgui--tertiary_bg_color:#2a2a2a;--tgui--quartenary_bg_color:#2f2f2f;--tgui--segmented_control_active_bg:#2f2f2f;--tgui--card_bg_color:#242424;--tgui--secondary_hint_color:#78797e;--tgui--secondary_fill:rgba(41,144,255,.15);--tgui--green:#32e55e;--tgui--destructive_background:rgba(255,35,35,.02);--tgui--primary_code_highlight:#2990ff;--tgui--secondary_code_highlight:#e937ed;--tgui--tertiary_code_highlight:#5ae536;--tgui--plain_background:hsla(0,0%,100%,.08);--tgui--plain_foreground:hsla(0,0%,100%,.95)}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){.tgui-6a12827a138e8827{--tgui--border--width:.5px}}@supports (padding-top:constant(safe-area-inset-bottom)){.tgui-6a12827a138e8827{--tgui--safe_area_inset_bottom:constant(safe-area-inset-bottom)}}@supports (padding-top:env(safe-area-inset-bottom)){.tgui-6a12827a138e8827{--tgui--safe_area_inset_bottom:env(safe-area-inset-bottom)}}body{background:var(--tg-theme-secondary-bg-color, white);padding:0;margin:0} diff --git a/assets/index-CgYFwrCc.js b/assets/index-CgYFwrCc.js new file mode 100644 index 0000000..c9a3800 --- /dev/null +++ b/assets/index-CgYFwrCc.js @@ -0,0 +1,1126 @@ +var Em=Object.defineProperty;var Tm=(e,t,n)=>t in e?Em(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fu=(e,t,n)=>(Tm(e,typeof t!="symbol"?t+"":t,n),n);function Pm(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var g2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var v2={exports:{}},Rc={},m2={exports:{}},ft={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var As=Symbol.for("react.element"),Am=Symbol.for("react.portal"),Rm=Symbol.for("react.fragment"),Mm=Symbol.for("react.strict_mode"),Im=Symbol.for("react.profiler"),Nm=Symbol.for("react.provider"),$m=Symbol.for("react.context"),jm=Symbol.for("react.forward_ref"),Wm=Symbol.for("react.suspense"),Om=Symbol.for("react.memo"),Bm=Symbol.for("react.lazy"),V1=Symbol.iterator;function Um(e){return e===null||typeof e!="object"?null:(e=V1&&e[V1]||e["@@iterator"],typeof e=="function"?e:null)}var y2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w2=Object.assign,x2={};function al(e,t,n){this.props=e,this.context=t,this.refs=x2,this.updater=n||y2}al.prototype.isReactComponent={};al.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)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")};al.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function C2(){}C2.prototype=al.prototype;function gd(e,t,n){this.props=e,this.context=t,this.refs=x2,this.updater=n||y2}var vd=gd.prototype=new C2;vd.constructor=gd;w2(vd,al.prototype);vd.isPureReactComponent=!0;var K1=Array.isArray,b2=Object.prototype.hasOwnProperty,md={current:null},S2={key:!0,ref:!0,__self:!0,__source:!0};function _2(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)b2.call(t,r)&&!S2.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,Xe=ee[rt];if(0>>1;rto(We,xe))hto($n,We)?(ee[rt]=$n,ee[ht]=xe,rt=ht):(ee[rt]=We,ee[Ct]=xe,rt=Ct);else if(hto($n,xe))ee[rt]=$n,ee[ht]=xe,rt=ht;else break e}}return ue}function o(ee,ue){var xe=ee.sortIndex-ue.sortIndex;return xe!==0?xe:ee.id-ue.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],d=1,p=null,h=3,S=!1,C=!1,_=!1,P=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(ee){for(var ue=n(u);ue!==null;){if(ue.callback===null)r(u);else if(ue.startTime<=ee)r(u),ue.sortIndex=ue.expirationTime,t(a,ue);else break;ue=n(u)}}function k(ee){if(_=!1,w(ee),!C)if(n(a)!==null)C=!0,Se(E);else{var ue=n(u);ue!==null&&Ne(k,ue.startTime-ee)}}function E(ee,ue){C=!1,_&&(_=!1,b(A),A=-1),S=!0;var xe=h;try{for(w(ue),p=n(a);p!==null&&(!(p.expirationTime>ue)||ee&&!j());){var rt=p.callback;if(typeof rt=="function"){p.callback=null,h=p.priorityLevel;var Xe=rt(p.expirationTime<=ue);ue=e.unstable_now(),typeof Xe=="function"?p.callback=Xe:p===n(a)&&r(a),w(ue)}else r(a);p=n(a)}if(p!==null)var dt=!0;else{var Ct=n(u);Ct!==null&&Ne(k,Ct.startTime-ue),dt=!1}return dt}finally{p=null,h=xe,S=!1}}var $=!1,N=null,A=-1,R=5,O=-1;function j(){return!(e.unstable_now()-Oee||125rt?(ee.sortIndex=xe,t(u,ee),n(a)===null&&ee===n(u)&&(_?(b(A),A=-1):_=!0,Ne(k,xe-rt))):(ee.sortIndex=Xe,t(a,ee),C||S||(C=!0,Se(E))),ee},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(ee){var ue=h;return function(){var xe=h;h=ue;try{return ee.apply(this,arguments)}finally{h=xe}}}})(L2);P2.exports=L2;var Jm=P2.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var A2=Q,or=Jm;function ae(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tf=Object.prototype.hasOwnProperty,Xm=/^[: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]*$/,Q1={},Z1={};function e5(e){return tf.call(Z1,e)?!0:tf.call(Q1,e)?!1:Xm.test(e)?Z1[e]=!0:(Q1[e]=!0,!1)}function t5(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function n5(e,t,n,r){if(t===null||typeof t>"u"||t5(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Hn(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var kn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){kn[e]=new Hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];kn[t]=new Hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){kn[e]=new Hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){kn[e]=new Hn(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){kn[e]=new Hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){kn[e]=new Hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){kn[e]=new Hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){kn[e]=new Hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){kn[e]=new Hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var wd=/[\-:]([a-z])/g;function xd(e){return e[1].toUpperCase()}"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(wd,xd);kn[t]=new Hn(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(wd,xd);kn[t]=new Hn(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(wd,xd);kn[t]=new Hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){kn[e]=new Hn(e,1,!1,e.toLowerCase(),null,!1,!1)});kn.xlinkHref=new Hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){kn[e]=new Hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cd(e,t,n,r){var o=kn.hasOwnProperty(t)?kn[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` +`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{pu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Pl(e):""}function r5(e){switch(e.tag){case 5:return Pl(e.type);case 16:return Pl("Lazy");case 13:return Pl("Suspense");case 19:return Pl("SuspenseList");case 0:case 2:case 15:return e=gu(e.type,!1),e;case 11:return e=gu(e.type.render,!1),e;case 1:return e=gu(e.type,!0),e;default:return""}}function lf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ki:return"Fragment";case _i:return"Portal";case nf:return"Profiler";case bd:return"StrictMode";case rf:return"Suspense";case of:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case I2:return(e.displayName||"Context")+".Consumer";case M2:return(e._context.displayName||"Context")+".Provider";case Sd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _d:return t=e.displayName||null,t!==null?t:lf(e.type)||"Memo";case po:t=e._payload,e=e._init;try{return lf(e(t))}catch{}}return null}function o5(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=t.render,e=e.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 lf(t);case 8:return t===bd?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $o(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i5(e){var t=$2(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Js(e){e._valueTracker||(e._valueTracker=i5(e))}function j2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$2(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function sf(e,t){var n=t.checked;return zt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Y1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$o(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function W2(e,t){t=t.checked,t!=null&&Cd(e,"checked",t,!1)}function af(e,t){W2(e,t);var n=$o(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?cf(e,t.type,n):t.hasOwnProperty("defaultValue")&&cf(e,t.type,$o(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function J1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function cf(e,t,n){(t!=="number"||Oa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ll=Array.isArray;function Fi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Xs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bl={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},l5=["Webkit","ms","Moz","O"];Object.keys(Bl).forEach(function(e){l5.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bl[t]=Bl[e]})});function D2(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bl.hasOwnProperty(e)&&Bl[e]?(""+t).trim():t+"px"}function F2(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=D2(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var s5=zt({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 df(e,t){if(t){if(s5[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ae(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ae(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ae(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ae(62))}}function hf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 pf=null;function kd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gf=null,Hi=null,zi=null;function t0(e){if(e=Is(e)){if(typeof gf!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=jc(t),gf(e.stateNode,e.type,t))}}function H2(e){Hi?zi?zi.push(e):zi=[e]:Hi=e}function z2(){if(Hi){var e=Hi,t=zi;if(zi=Hi=null,t0(e),t)for(e=0;e>>=0,e===0?32:31-(y5(e)/w5|0)|0}var ea=64,ta=4194304;function Al(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Al(s):(i&=l,i!==0&&(r=Al(i)))}else l=n&~o,l!==0?r=Al(l):i!==0&&(r=Al(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Rs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Sr(t),e[t]=n}function S5(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=Dl),u0=" ",f0=!1;function up(e,t){switch(e){case"keyup":return Y5.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ei=!1;function X5(e,t){switch(e){case"compositionend":return fp(t);case"keypress":return t.which!==32?null:(f0=!0,u0);case"textInput":return e=t.data,e===u0&&f0?null:e;default:return null}}function e4(e,t){if(Ei)return e==="compositionend"||!Id&&up(e,t)?(e=ap(),Ea=Ad=xo=null,Ei=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=g0(n)}}function gp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vp(){for(var e=window,t=Oa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oa(e.document)}return t}function Nd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function c4(e){var t=vp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gp(n.ownerDocument.documentElement,n)){if(r!==null&&Nd(n)){if(t=r.start,e=r.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=v0(n,i);var l=v0(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ti=null,Cf=null,Hl=null,bf=!1;function m0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bf||Ti==null||Ti!==Oa(r)||(r=Ti,"selectionStart"in r&&Nd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hl&&cs(Hl,r)||(Hl=r,r=Va(Cf,"onSelect"),0Ai||(e.current=Pf[Ai],Pf[Ai]=null,Ai--)}function Rt(e,t){Ai++,Pf[Ai]=e.current,e.current=t}var jo={},Nn=Ho(jo),Zn=Ho(!1),ci=jo;function Gi(e,t){var n=e.type.contextTypes;if(!n)return jo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Gn(e){return e=e.childContextTypes,e!=null}function qa(){Nt(Zn),Nt(Nn)}function _0(e,t,n){if(Nn.current!==jo)throw Error(ae(168));Rt(Nn,t),Rt(Zn,n)}function kp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(ae(108,o5(e)||"Unknown",o));return zt({},n,r)}function Qa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jo,ci=Nn.current,Rt(Nn,e),Rt(Zn,Zn.current),!0}function k0(e,t,n){var r=e.stateNode;if(!r)throw Error(ae(169));n?(e=kp(e,t,ci),r.__reactInternalMemoizedMergedChildContext=e,Nt(Zn),Nt(Nn),Rt(Nn,e)):Nt(Zn),Rt(Zn,n)}var Vr=null,Wc=!1,Lu=!1;function Ep(e){Vr===null?Vr=[e]:Vr.push(e)}function C4(e){Wc=!0,Ep(e)}function zo(){if(!Lu&&Vr!==null){Lu=!0;var e=0,t=Pt;try{var n=Vr;for(Pt=1;e>=l,o-=l,Qr=1<<32-Sr(t)+o|n<A?(R=N,N=null):R=N.sibling;var O=h(b,N,w[A],k);if(O===null){N===null&&(N=R);break}e&&N&&O.alternate===null&&t(b,N),g=i(O,g,A),$===null?E=O:$.sibling=O,$=O,N=R}if(A===w.length)return n(b,N),jt&&Go(b,A),E;if(N===null){for(;AA?(R=N,N=null):R=N.sibling;var j=h(b,N,O.value,k);if(j===null){N===null&&(N=R);break}e&&N&&j.alternate===null&&t(b,N),g=i(j,g,A),$===null?E=j:$.sibling=j,$=j,N=R}if(O.done)return n(b,N),jt&&Go(b,A),E;if(N===null){for(;!O.done;A++,O=w.next())O=p(b,O.value,k),O!==null&&(g=i(O,g,A),$===null?E=O:$.sibling=O,$=O);return jt&&Go(b,A),E}for(N=r(b,N);!O.done;A++,O=w.next())O=S(N,b,A,O.value,k),O!==null&&(e&&O.alternate!==null&&N.delete(O.key===null?A:O.key),g=i(O,g,A),$===null?E=O:$.sibling=O,$=O);return e&&N.forEach(function(M){return t(b,M)}),jt&&Go(b,A),E}function P(b,g,w,k){if(typeof w=="object"&&w!==null&&w.type===ki&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ys:e:{for(var E=w.key,$=g;$!==null;){if($.key===E){if(E=w.type,E===ki){if($.tag===7){n(b,$.sibling),g=o($,w.props.children),g.return=b,b=g;break e}}else if($.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===po&&M0(E)===$.type){n(b,$.sibling),g=o($,w.props),g.ref=_l(b,$,w),g.return=b,b=g;break e}n(b,$);break}else t(b,$);$=$.sibling}w.type===ki?(g=oi(w.props.children,b.mode,k,w.key),g.return=b,b=g):(k=Na(w.type,w.key,w.props,null,b.mode,k),k.ref=_l(b,g,w),k.return=b,b=k)}return l(b);case _i:e:{for($=w.key;g!==null;){if(g.key===$)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(b,g.sibling),g=o(g,w.children||[]),g.return=b,b=g;break e}else{n(b,g);break}else t(b,g);g=g.sibling}g=Wu(w,b.mode,k),g.return=b,b=g}return l(b);case po:return $=w._init,P(b,g,$(w._payload),k)}if(Ll(w))return C(b,g,w,k);if(wl(w))return _(b,g,w,k);aa(b,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(b,g.sibling),g=o(g,w),g.return=b,b=g):(n(b,g),g=ju(w,b.mode,k),g.return=b,b=g),l(b)):n(b,g)}return P}var Ji=Np(!0),$p=Np(!1),Ns={},Nr=Ho(Ns),hs=Ho(Ns),ps=Ho(Ns);function ti(e){if(e===Ns)throw Error(ae(174));return e}function Hd(e,t){switch(Rt(ps,t),Rt(hs,e),Rt(Nr,Ns),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ff(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ff(t,e)}Nt(Nr),Rt(Nr,t)}function Xi(){Nt(Nr),Nt(hs),Nt(ps)}function jp(e){ti(ps.current);var t=ti(Nr.current),n=ff(t,e.type);t!==n&&(Rt(hs,e),Rt(Nr,n))}function zd(e){hs.current===e&&(Nt(Nr),Nt(hs))}var Dt=Ho(0);function ec(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Au=[];function Vd(){for(var e=0;en?n:4,e(!0);var r=Ru.transition;Ru.transition={};try{e(!1),t()}finally{Pt=n,Ru.transition=r}}function Jp(){return vr().memoizedState}function k4(e,t,n){var r=Ro(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xp(e))eg(t,n);else if(n=Ap(e,t,n,r),n!==null){var o=Bn();_r(n,e,r,o),tg(n,t,r)}}function E4(e,t,n){var r=Ro(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xp(e))eg(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,kr(s,l)){var a=t.interleaved;a===null?(o.next=o,Dd(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Ap(e,t,o,r),n!==null&&(o=Bn(),_r(n,e,r,o),tg(n,t,r))}}function Xp(e){var t=e.alternate;return e===Ht||t!==null&&t===Ht}function eg(e,t){zl=tc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Td(e,n)}}var nc={readContext:gr,useCallback:Ln,useContext:Ln,useEffect:Ln,useImperativeHandle:Ln,useInsertionEffect:Ln,useLayoutEffect:Ln,useMemo:Ln,useReducer:Ln,useRef:Ln,useState:Ln,useDebugValue:Ln,useDeferredValue:Ln,useTransition:Ln,useMutableSource:Ln,useSyncExternalStore:Ln,useId:Ln,unstable_isNewReconciler:!1},T4={readContext:gr,useCallback:function(e,t){return Pr().memoizedState=[e,t===void 0?null:t],e},useContext:gr,useEffect:N0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Aa(4194308,4,qp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Aa(4,2,e,t)},useMemo:function(e,t){var n=Pr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pr();return t=n!==void 0?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=k4.bind(null,Ht,e),[r.memoizedState,e]},useRef:function(e){var t=Pr();return e={current:e},t.memoizedState=e},useState:I0,useDebugValue:Gd,useDeferredValue:function(e){return Pr().memoizedState=e},useTransition:function(){var e=I0(!1),t=e[0];return e=_4.bind(null,e[1]),Pr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ht,o=Pr();if(jt){if(n===void 0)throw Error(ae(407));n=n()}else{if(n=t(),gn===null)throw Error(ae(349));fi&30||Bp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,N0(Dp.bind(null,r,i,e),[e]),r.flags|=2048,ms(9,Up.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Pr(),t=gn.identifierPrefix;if(jt){var n=Zr,r=Qr;n=(r&~(1<<32-Sr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Lr]=t,e[ds]=r,ug(e,t,!1,!1),t.stateNode=e;e:{switch(l=hf(n,r),n){case"dialog":Mt("cancel",e),Mt("close",e),o=r;break;case"iframe":case"object":case"embed":Mt("load",e),o=r;break;case"video":case"audio":for(o=0;otl&&(t.flags|=128,r=!0,kl(i,!1),t.lanes=4194304)}else{if(!r)if(e=ec(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!jt)return An(t),null}else 2*en()-i.renderingStartTime>tl&&n!==1073741824&&(t.flags|=128,r=!0,kl(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=en(),t.sibling=null,n=Dt.current,Rt(Dt,r?n&1|2:n&1),t):(An(t),null);case 22:case 23:return n1(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?er&1073741824&&(An(t),t.subtreeFlags&6&&(t.flags|=8192)):An(t),null;case 24:return null;case 25:return null}throw Error(ae(156,t.tag))}function $4(e,t){switch(jd(t),t.tag){case 1:return Gn(t.type)&&qa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xi(),Nt(Zn),Nt(Nn),Vd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zd(t),null;case 13:if(Nt(Dt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nt(Dt),null;case 4:return Xi(),null;case 10:return Ud(t.type._context),null;case 22:case 23:return n1(),null;case 24:return null;default:return null}}var ua=!1,Rn=!1,j4=typeof WeakSet=="function"?WeakSet:Set,ye=null;function Ni(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Gt(e,t,r)}else n.current=null}function Uf(e,t,n){try{n()}catch(r){Gt(e,t,r)}}var H0=!1;function W4(e,t){if(Sf=Ha,e=vp(),Nd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var S;p!==n||o!==0&&p.nodeType!==3||(s=l+o),p!==i||r!==0&&p.nodeType!==3||(a=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(S=p.firstChild)!==null;)h=p,p=S;for(;;){if(p===e)break t;if(h===n&&++u===o&&(s=l),h===i&&++d===r&&(a=l),(S=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=S}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(_f={focusedElem:e,selectionRange:n},Ha=!1,ye=t;ye!==null;)if(t=ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ye=e;else for(;ye!==null;){t=ye;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var _=C.memoizedProps,P=C.memoizedState,b=t.stateNode,g=b.getSnapshotBeforeUpdate(t.elementType===t.type?_:wr(t.type,_),P);b.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(k){Gt(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,ye=e;break}ye=t.return}return C=H0,H0=!1,C}function Vl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Uf(t,n,i)}o=o.next}while(o!==r)}}function Uc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==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 Df(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function hg(e){var t=e.alternate;t!==null&&(e.alternate=null,hg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lr],delete t[ds],delete t[Tf],delete t[w4],delete t[x4])),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 pg(e){return e.tag===5||e.tag===3||e.tag===4}function z0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ff(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ka));else if(r!==4&&(e=e.child,e!==null))for(Ff(e,t,n),e=e.sibling;e!==null;)Ff(e,t,n),e=e.sibling}function Hf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Hf(e,t,n),e=e.sibling;e!==null;)Hf(e,t,n),e=e.sibling}var wn=null,xr=!1;function ho(e,t,n){for(n=n.child;n!==null;)gg(e,t,n),n=n.sibling}function gg(e,t,n){if(Ir&&typeof Ir.onCommitFiberUnmount=="function")try{Ir.onCommitFiberUnmount(Mc,n)}catch{}switch(n.tag){case 5:Rn||Ni(n,t);case 6:var r=wn,o=xr;wn=null,ho(e,t,n),wn=r,xr=o,wn!==null&&(xr?(e=wn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):wn.removeChild(n.stateNode));break;case 18:wn!==null&&(xr?(e=wn,n=n.stateNode,e.nodeType===8?Pu(e.parentNode,n):e.nodeType===1&&Pu(e,n),ss(e)):Pu(wn,n.stateNode));break;case 4:r=wn,o=xr,wn=n.stateNode.containerInfo,xr=!0,ho(e,t,n),wn=r,xr=o;break;case 0:case 11:case 14:case 15:if(!Rn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Uf(n,t,l),o=o.next}while(o!==r)}ho(e,t,n);break;case 1:if(!Rn&&(Ni(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Gt(n,t,s)}ho(e,t,n);break;case 21:ho(e,t,n);break;case 22:n.mode&1?(Rn=(r=Rn)||n.memoizedState!==null,ho(e,t,n),Rn=r):ho(e,t,n);break;default:ho(e,t,n)}}function V0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new j4),t.forEach(function(r){var o=K4.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function yr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=en()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*B4(r/1960))-r,10e?16:e,Co===null)var r=!1;else{if(e=Co,Co=null,ic=0,xt&6)throw Error(ae(331));var o=xt;for(xt|=4,ye=e.current;ye!==null;){var i=ye,l=i.child;if(ye.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aen()-e1?ri(e,0):Xd|=n),Yn(e,t)}function Sg(e,t){t===0&&(e.mode&1?(t=ta,ta<<=1,!(ta&130023424)&&(ta=4194304)):t=1);var n=Bn();e=no(e,t),e!==null&&(Rs(e,t,n),Yn(e,n))}function V4(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sg(e,n)}function K4(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ae(314))}r!==null&&r.delete(t),Sg(e,n)}var _g;_g=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Zn.current)Qn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qn=!1,I4(e,t,n);Qn=!!(e.flags&131072)}else Qn=!1,jt&&t.flags&1048576&&Tp(t,Ga,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ra(e,t),e=t.pendingProps;var o=Gi(t,Nn.current);Ki(t,n),o=qd(null,t,r,e,o,n);var i=Qd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Gn(r)?(i=!0,Qa(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Fd(t),o.updater=Oc,t.stateNode=o,o._reactInternals=t,If(t,r,e,n),t=jf(null,t,r,!0,i,n)):(t.tag=0,jt&&i&&$d(t),On(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ra(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Q4(r),e=wr(r,e),o){case 0:t=$f(null,t,r,e,n);break e;case 1:t=U0(null,t,r,e,n);break e;case 11:t=O0(null,t,r,e,n);break e;case 14:t=B0(null,t,r,wr(r.type,e),n);break e}throw Error(ae(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wr(r,o),$f(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wr(r,o),U0(e,t,r,o,n);case 3:e:{if(sg(t),e===null)throw Error(ae(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Rp(e,t),Xa(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=el(Error(ae(423)),t),t=D0(e,t,r,n,o);break e}else if(r!==o){o=el(Error(ae(424)),t),t=D0(e,t,r,n,o);break e}else for(tr=Po(t.stateNode.containerInfo.firstChild),rr=t,jt=!0,Cr=null,n=$p(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yi(),r===o){t=ro(e,t,n);break e}On(e,t,r,n)}t=t.child}return t;case 5:return jp(t),e===null&&Af(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,kf(r,o)?l=null:i!==null&&kf(r,i)&&(t.flags|=32),lg(e,t),On(e,t,l,n),t.child;case 6:return e===null&&Af(t),null;case 13:return ag(e,t,n);case 4:return Hd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ji(t,null,r,n):On(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wr(r,o),O0(e,t,r,o,n);case 7:return On(e,t,t.pendingProps,n),t.child;case 8:return On(e,t,t.pendingProps.children,n),t.child;case 12:return On(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Rt(Ya,r._currentValue),r._currentValue=l,i!==null)if(kr(i.value,l)){if(i.children===o.children&&!Zn.current){t=ro(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Yr(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Rf(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(ae(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Rf(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}On(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ki(t,n),o=gr(o),r=r(o),t.flags|=1,On(e,t,r,n),t.child;case 14:return r=t.type,o=wr(r,t.pendingProps),o=wr(r.type,o),B0(e,t,r,o,n);case 15:return og(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:wr(r,o),Ra(e,t),t.tag=1,Gn(r)?(e=!0,Qa(t)):e=!1,Ki(t,n),Ip(t,r,o),If(t,r,o,n),jf(null,t,r,!0,e,n);case 19:return cg(e,t,n);case 22:return ig(e,t,n)}throw Error(ae(156,t.tag))};function kg(e,t){return Y2(e,t)}function q4(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 dr(e,t,n,r){return new q4(e,t,n,r)}function o1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Q4(e){if(typeof e=="function")return o1(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sd)return 11;if(e===_d)return 14}return 2}function Mo(e,t){var n=e.alternate;return n===null?(n=dr(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Na(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")o1(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case ki:return oi(n.children,o,i,t);case bd:l=8,o|=8;break;case nf:return e=dr(12,n,t,o|2),e.elementType=nf,e.lanes=i,e;case rf:return e=dr(13,n,t,o),e.elementType=rf,e.lanes=i,e;case of:return e=dr(19,n,t,o),e.elementType=of,e.lanes=i,e;case N2:return Fc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M2:l=10;break e;case I2:l=9;break e;case Sd:l=11;break e;case _d:l=14;break e;case po:l=16,r=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=dr(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function oi(e,t,n,r){return e=dr(7,e,r,t),e.lanes=n,e}function Fc(e,t,n,r){return e=dr(22,e,r,t),e.elementType=N2,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return e=dr(6,e,null,t),e.lanes=n,e}function Wu(e,t,n){return t=dr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Z4(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=mu(0),this.expirationTimes=mu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function i1(e,t,n,r,o,i,l,s,a){return e=new Z4(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=dr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fd(i),e}function G4(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lg)}catch(e){console.error(e)}}Lg(),T2.exports=lr;var t3=T2.exports,X0=t3;ef.createRoot=X0.createRoot,ef.hydrateRoot=X0.hydrateRoot;var Ag={},qc={};(function(){var e={},t="";try{t=location.hash.toString()}catch{}var n=a(t),r=b("initParams");if(r)for(var o in r)typeof n[o]>"u"&&(n[o]=r[o]);P("initParams",n);var i=!1,l;try{if(i=window.parent!=null&&window!=window.parent,i){window.addEventListener("message",function(g){if(g.source===window.parent){try{var w=JSON.parse(g.data)}catch{return}if(!(!w||!w.eventType))if(w.eventType=="set_custom_style")g.origin==="https://web.telegram.org"&&(l.innerHTML=w.eventData);else if(w.eventType=="reload_iframe"){try{window.parent.postMessage(JSON.stringify({eventType:"iframe_will_reload"}),"*")}catch{}location.reload()}else h(w.eventType,w.eventData)}}),l=document.createElement("style"),document.head.appendChild(l);try{window.parent.postMessage(JSON.stringify({eventType:"iframe_ready",eventData:{reload_supported:!0}}),"*")}catch{}}}catch{}function s(g){try{return g=g.replace(/\+/g,"%20"),decodeURIComponent(g)}catch{return g}}function a(g){g=g.replace(/^#/,"");var w={};if(!g.length)return w;if(g.indexOf("=")<0&&g.indexOf("?")<0)return w._path=s(g),w;var k=g.indexOf("?");if(k>=0){var E=g.substr(0,k);w._path=s(E),g=g.substr(k+1)}var $=u(g);for(var N in $)w[N]=$[N];return w}function u(g){var w={};if(!g.length)return w;var k=g.split("&"),E,$,N,A;for(E=0;E=0?g+"&"+w:E.length>0?g+"?"+w:g+w}function p(g,w,k){if(w||(w=function(){}),k===void 0&&(k=""),console.log("[Telegram.WebView] > postEvent",g,k),window.TelegramWebviewProxy!==void 0)TelegramWebviewProxy.postEvent(g,JSON.stringify(k)),w();else if(window.external&&"notify"in window.external)window.external.notify(JSON.stringify({eventType:g,eventData:k})),w();else if(i)try{var E="https://web.telegram.org";E="*",window.parent.postMessage(JSON.stringify({eventType:g,eventData:k}),E),w()}catch($){w($)}else w({notAvailable:!0})}function h(g,w){console.log("[Telegram.WebView] < receiveEvent",g,w),S(g,function(k){k(g,w)})}function S(g,w){var k=e[g];if(!(k===void 0||!k.length))for(var E=0;Eat?1:-1;return 0}function ie(L){return X(u,L)>=0}function ke(L){if(window.Blob)try{return new Blob([L]).size}catch{}for(var I=L.length,U=L.length-1;U>=0;U--){var le=L.charCodeAt(U);le>127&&le<=2047?I++:le>2047&&le<=65535&&(I+=2),le>=56320&&le<=57343&&U--}return I}var Ee=function(){var L=!1,I={};Object.defineProperty(I,"isVisible",{set:function(Ue){et({is_visible:Ue})},get:function(){return L},enumerable:!0});var U=null;t.onEvent("back_button_pressed",le);function le(){E("backButtonClicked")}function ge(){return{is_visible:L}}function at(Ue){return typeof Ue>"u"&&(Ue=ge()),JSON.stringify(Ue)}function Ae(){return ie("6.1")?!0:(console.warn("[Telegram.WebApp] BackButton is not supported in version "+u),!1)}function Kt(){var Ue=ge(),At=at(Ue);U!==At&&(U=At,t.postEvent("web_app_setup_back_button",!1,Ue))}function et(Ue){return Ae()&&(typeof Ue.is_visible<"u"&&(L=!!Ue.is_visible),Kt()),I}return I.onClick=function(Ue){return Ae()&&$("backButtonClicked",Ue),I},I.offClick=function(Ue){return Ae()&&N("backButtonClicked",Ue),I},I.show=function(){return et({is_visible:!0})},I.hide=function(){return et({is_visible:!1})},I}(),qe=0,kt=function(){var L=!1,I=!0,U=!1,le="CONTINUE",ge=!1,at=!1,Ae={};Object.defineProperty(Ae,"text",{set:function(f){Ae.setParams({text:f})},get:function(){return le},enumerable:!0}),Object.defineProperty(Ae,"color",{set:function(f){Ae.setParams({color:f})},get:function(){return ge||s.button_color||"#2481cc"},enumerable:!0}),Object.defineProperty(Ae,"textColor",{set:function(f){Ae.setParams({text_color:f})},get:function(){return at||s.button_text_color||"#ffffff"},enumerable:!0}),Object.defineProperty(Ae,"isVisible",{set:function(f){Ae.setParams({is_visible:f})},get:function(){return L},enumerable:!0}),Object.defineProperty(Ae,"isProgressVisible",{get:function(){return U},enumerable:!0}),Object.defineProperty(Ae,"isActive",{set:function(f){Ae.setParams({is_active:f})},get:function(){return I},enumerable:!0});var Kt=null;t.onEvent("main_button_pressed",cr);var et=null,Ue={};if(n.tgWebAppDebug){et=document.createElement("tg-main-button"),Ue={font:"600 14px/18px sans-serif",display:"none",width:"100%",height:"48px",borderRadius:"0",background:"no-repeat right center",position:"fixed",left:"0",right:"0",bottom:"0",margin:"0",padding:"15px 20px",textAlign:"center",boxSizing:"border-box",zIndex:"10000"};for(var At in Ue)et.style[At]=Ue[At];document.addEventListener("DOMContentLoaded",function f(v){document.removeEventListener("DOMContentLoaded",f),document.body.appendChild(et),et.addEventListener("click",cr,!1)})}function cr(){I&&E("mainButtonClicked")}function Ci(){var f=Ae.color,v=Ae.textColor;return L?{is_visible:!0,is_active:I,is_progress_visible:U,text:le,color:f,text_color:v}:{is_visible:!1}}function Qs(f){return typeof f>"u"&&(f=Ci()),JSON.stringify(f)}function yl(){var f=Ci(),v=Qs(f);Kt!==v&&(Kt=v,t.postEvent("web_app_setup_main_button",!1,f),n.tgWebAppDebug&&Wn(f))}function Wn(f){f.is_visible?(et.style.display="block",qe=48,et.style.opacity=f.is_active?"1":"0.8",et.style.cursor=f.is_active?"pointer":"auto",et.disabled=!f.is_active,et.innerText=f.text,et.style.backgroundImage=f.is_progress_visible?"url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewport%3D%220%200%2048%2048%22%20width%3D%2248px%22%20height%3D%2248px%22%3E%3Ccircle%20cx%3D%2250%25%22%20cy%3D%2250%25%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222.25%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22%20stroke-dashoffset%3D%22106%22%20r%3D%229%22%20stroke-dasharray%3D%2256.52%22%20rotate%3D%22-90%22%3E%3Canimate%20attributeName%3D%22stroke-dashoffset%22%20attributeType%3D%22XML%22%20dur%3D%22360s%22%20from%3D%220%22%20to%3D%2212500%22%20repeatCount%3D%22indefinite%22%3E%3C%2Fanimate%3E%3CanimateTransform%20attributeName%3D%22transform%22%20attributeType%3D%22XML%22%20type%3D%22rotate%22%20dur%3D%221s%22%20from%3D%22-90%2024%2024%22%20to%3D%22630%2024%2024%22%20repeatCount%3D%22indefinite%22%3E%3C%2FanimateTransform%3E%3C%2Fcircle%3E%3C%2Fsvg%3E')":"none",et.style.backgroundColor=f.color,et.style.color=f.text_color):(et.style.display="none",qe=0),document.documentElement&&(document.documentElement.style.boxSizing="border-box",document.documentElement.style.paddingBottom=qe+"px"),oe()}function Zs(f){if(typeof f.text<"u"){var v=k(f.text);if(!v.length)throw console.error("[Telegram.WebApp] Main button text is required",f.text),Error("WebAppMainButtonParamInvalid");if(v.length>64)throw console.error("[Telegram.WebApp] Main button text is too long",v),Error("WebAppMainButtonParamInvalid");le=v}if(typeof f.color<"u")if(f.color===!1||f.color===null)ge=!1;else{var m=F(f.color);if(!m)throw console.error("[Telegram.WebApp] Main button color format is invalid",f.color),Error("WebAppMainButtonParamInvalid");ge=m}if(typeof f.text_color<"u")if(f.text_color===!1||f.text_color===null)at=!1;else{var c=F(f.text_color);if(!c)throw console.error("[Telegram.WebApp] Main button text color format is invalid",f.text_color),Error("WebAppMainButtonParamInvalid");at=c}if(typeof f.is_visible<"u"){if(f.is_visible&&!Ae.text.length)throw console.error("[Telegram.WebApp] Main button text is required"),Error("WebAppMainButtonParamInvalid");L=!!f.is_visible}return typeof f.is_active<"u"&&(I=!!f.is_active),yl(),Ae}return Ae.setText=function(f){return Ae.setParams({text:f})},Ae.onClick=function(f){return $("mainButtonClicked",f),Ae},Ae.offClick=function(f){return N("mainButtonClicked",f),Ae},Ae.show=function(){return Ae.setParams({is_visible:!0})},Ae.hide=function(){return Ae.setParams({is_visible:!1})},Ae.enable=function(){return Ae.setParams({is_active:!0})},Ae.disable=function(){return Ae.setParams({is_active:!1})},Ae.showProgress=function(f){return I=!!f,U=!0,yl(),Ae},Ae.hideProgress=function(){return Ae.isActive||(I=!0),U=!1,yl(),Ae},Ae.setParams=Zs,Ae}(),Me=function(){var L=!1,I={};Object.defineProperty(I,"isVisible",{set:function(Ue){et({is_visible:Ue})},get:function(){return L},enumerable:!0});var U=null;t.onEvent("settings_button_pressed",le);function le(){E("settingsButtonClicked")}function ge(){return{is_visible:L}}function at(Ue){return typeof Ue>"u"&&(Ue=ge()),JSON.stringify(Ue)}function Ae(){return ie("6.10")?!0:(console.warn("[Telegram.WebApp] SettingsButton is not supported in version "+u),!1)}function Kt(){var Ue=ge(),At=at(Ue);U!==At&&(U=At,t.postEvent("web_app_setup_settings_button",!1,Ue))}function et(Ue){return Ae()&&(typeof Ue.is_visible<"u"&&(L=!!Ue.is_visible),Kt()),I}return I.onClick=function(Ue){return Ae()&&$("settingsButtonClicked",Ue),I},I.offClick=function(Ue){return Ae()&&N("settingsButtonClicked",Ue),I},I.show=function(){return et({is_visible:!0})},I.hide=function(){return et({is_visible:!1})},I}(),$t=function(){var L={};function I(U){if(!ie("6.1"))return console.warn("[Telegram.WebApp] HapticFeedback is not supported in version "+u),L;if(U.type=="impact"){if(U.impact_style!="light"&&U.impact_style!="medium"&&U.impact_style!="heavy"&&U.impact_style!="rigid"&&U.impact_style!="soft")throw console.error("[Telegram.WebApp] Haptic impact style is invalid",U.impact_style),Error("WebAppHapticImpactStyleInvalid")}else if(U.type=="notification"){if(U.notification_type!="error"&&U.notification_type!="success"&&U.notification_type!="warning")throw console.error("[Telegram.WebApp] Haptic notification type is invalid",U.notification_type),Error("WebAppHapticNotificationTypeInvalid")}else if(U.type!="selection_change")throw console.error("[Telegram.WebApp] Haptic feedback type is invalid",U.type),Error("WebAppHapticFeedbackTypeInvalid");return t.postEvent("web_app_trigger_haptic_feedback",!1,U),L}return L.impactOccurred=function(U){return I({type:"impact",impact_style:U})},L.notificationOccurred=function(U){return I({type:"notification",notification_type:U})},L.selectionChanged=function(){return I({type:"selection_change"})},L}(),Vt=function(){var L={};function I(U,le,ge){if(!ie("6.9"))throw console.error("[Telegram.WebApp] CloudStorage is not supported in version "+u),Error("WebAppMethodUnsupported");return Jn(U,le,ge),L}return L.setItem=function(U,le,ge){return I("saveStorageValue",{key:U,value:le},ge)},L.getItem=function(U,le){return L.getItems([U],le?function(ge,at){ge?le(ge):le(null,at[U])}:null)},L.getItems=function(U,le){return I("getStorageValues",{keys:U},le)},L.removeItem=function(U,le){return L.removeItems([U],le)},L.removeItems=function(U,le){return I("deleteStorageValues",{keys:U},le)},L.getKeys=function(U){return I("getStorageKeys",{},U)},L}(),zn={};function rn(L,I){if(I.slug&&zn[I.slug]){var U=zn[I.slug];delete zn[I.slug],U.callback&&U.callback(I.status),E("invoiceClosed",{url:U.url,status:I.status})}}var ln=!1;function jn(L,I){if(ln){var U=ln;ln=!1;var le=null;typeof I.button_id<"u"&&(le=I.button_id),U.callback&&U.callback(le),E("popupClosed",{button_id:le})}}var $e=!1;function ct(L,I){if($e){var U=$e,le=null;typeof I.data<"u"&&(le=I.data),U.callback&&U.callback(le)&&($e=!1,t.postEvent("web_app_close_scan_qr_popup",!1)),E("qrTextReceived",{data:le})}}function Be(L,I){$e=!1}function bt(L,I){if(I.req_id&&O[I.req_id]){var U=O[I.req_id];delete O[I.req_id];var le=null;typeof I.data<"u"&&(le=I.data),U.callback&&U.callback(le),E("clipboardTextReceived",{data:le})}}var dn=!1;function Vn(L,I){if(dn){var U=dn;dn=!1,U.callback&&U.callback(I.status=="allowed"),E("writeAccessRequested",{status:I.status})}}function ut(L,I){var U,le,ge=0,at=function(){Jn("getRequestedContact",{},function(Kt,et){et&&et.length?(clearTimeout(le),L(et)):(ge+=50,U=setTimeout(at,ge))})},Ae=function(){clearTimeout(U),L("")};le=setTimeout(Ae,I),at()}var Le=!1;function yn(L,I){if(Le){var U=Le;Le=!1;var le=I.status=="sent",ge={status:I.status};le?ut(function(at){if(at&&at.length){ge.response=at,ge.responseUnsafe=e.urlParseQueryString(at);for(var Ae in ge.responseUnsafe){var Kt=ge.responseUnsafe[Ae];try{(Kt.substr(0,1)=="{"&&Kt.substr(-1)=="}"||Kt.substr(0,1)=="["&&Kt.substr(-1)=="]")&&(ge.responseUnsafe[Ae]=JSON.parse(Kt))}catch{}}}U.callback&&U.callback(le,ge),E("contactRequested",ge)},3e3):(U.callback&&U.callback(le,ge),E("contactRequested",ge))}}function mr(L,I){if(I.req_id&&O[I.req_id]){var U=O[I.req_id];delete O[I.req_id];var le=null,ge=null;typeof I.result<"u"&&(le=I.result),typeof I.error<"u"&&(ge=I.error),U.callback&&U.callback(ge,le)}}function Jn(L,I,U){if(!ie("6.9"))throw console.error("[Telegram.WebApp] Method invokeCustomMethod is not supported in version "+u),Error("WebAppMethodUnsupported");var le=j(16),ge={req_id:le,method:L,params:I||{}};O[le]={callback:U},t.postEvent("web_app_invoke_custom_method",!1,ge)}window.Telegram||(window.Telegram={}),Object.defineProperty(o,"initData",{get:function(){return i},enumerable:!0}),Object.defineProperty(o,"initDataUnsafe",{get:function(){return l},enumerable:!0}),Object.defineProperty(o,"version",{get:function(){return u},enumerable:!0}),Object.defineProperty(o,"platform",{get:function(){return d},enumerable:!0}),Object.defineProperty(o,"colorScheme",{get:function(){return a},enumerable:!0}),Object.defineProperty(o,"themeParams",{get:function(){return s},enumerable:!0}),Object.defineProperty(o,"isExpanded",{get:function(){return ne},enumerable:!0}),Object.defineProperty(o,"viewportHeight",{get:function(){return(M===!1?window.innerHeight:M)-qe},enumerable:!0}),Object.defineProperty(o,"viewportStableHeight",{get:function(){return(te===!1?window.innerHeight:te)-qe},enumerable:!0}),Object.defineProperty(o,"isClosingConfirmationEnabled",{set:function(L){Ne(L)},get:function(){return Se},enumerable:!0}),Object.defineProperty(o,"headerColor",{set:function(L){rt(L)},get:function(){return xe()},enumerable:!0}),Object.defineProperty(o,"backgroundColor",{set:function(L){$n(L)},get:function(){return ht()},enumerable:!0}),Object.defineProperty(o,"BackButton",{value:Ee,enumerable:!0}),Object.defineProperty(o,"MainButton",{value:kt,enumerable:!0}),Object.defineProperty(o,"SettingsButton",{value:Me,enumerable:!0}),Object.defineProperty(o,"HapticFeedback",{value:$t,enumerable:!0}),Object.defineProperty(o,"CloudStorage",{value:Vt,enumerable:!0}),o.setHeaderColor=function(L){o.headerColor=L},o.setBackgroundColor=function(L){o.backgroundColor=L},o.enableClosingConfirmation=function(){o.isClosingConfirmationEnabled=!0},o.disableClosingConfirmation=function(){o.isClosingConfirmationEnabled=!1},o.isVersionAtLeast=function(L){return ie(L)},o.onEvent=function(L,I){$(L,I)},o.offEvent=function(L,I){N(L,I)},o.sendData=function(L){if(!L||!L.length)throw console.error("[Telegram.WebApp] Data is required",L),Error("WebAppDataInvalid");if(ke(L)>4096)throw console.error("[Telegram.WebApp] Data is too long",L),Error("WebAppDataInvalid");t.postEvent("web_app_data_send",!1,{data:L})},o.switchInlineQuery=function(L,I){if(!ie("6.6"))throw console.error("[Telegram.WebApp] Method switchInlineQuery is not supported in version "+u),Error("WebAppMethodUnsupported");if(!n.tgWebAppBotInline)throw console.error("[Telegram.WebApp] Inline mode is disabled for this bot. Read more about inline mode: https://core.telegram.org/bots/inline"),Error("WebAppInlineModeDisabled");if(L=L||"",L.length>256)throw console.error("[Telegram.WebApp] Inline query is too long",L),Error("WebAppInlineQueryInvalid");var U=[];if(I){if(!Array.isArray(I))throw console.error("[Telegram.WebApp] Choose chat types should be an array",I),Error("WebAppInlineChooseChatTypesInvalid");for(var le={users:1,bots:1,groups:1,channels:1},ge=0;ge64)throw console.error("[Telegram.WebApp] Popup title is too long",U),Error("WebAppPopupParamInvalid");U.length>0&&(at.title=U)}if(typeof L.message<"u"&&(le=k(L.message)),!le.length)throw console.error("[Telegram.WebApp] Popup message is required",L.message),Error("WebAppPopupParamInvalid");if(le.length>256)throw console.error("[Telegram.WebApp] Popup message is too long",le),Error("WebAppPopupParamInvalid");if(at.message=le,typeof L.buttons<"u"){if(!Array.isArray(L.buttons))throw console.error("[Telegram.WebApp] Popup buttons should be an array",L.buttons),Error("WebAppPopupParamInvalid");for(var Ae=0;Ae64))throw console.error("[Telegram.WebApp] Popup button id is too long",Ue),Error("WebAppPopupParamInvalid");et.id=Ue;var At=Kt.type;if(typeof At>"u"&&(At="default"),et.type=At,!(At=="ok"||At=="close"||At=="cancel"))if(At=="default"||At=="destructive"){var cr="";if(typeof Kt.text<"u"&&(cr=k(Kt.text)),!cr.length)throw console.error("[Telegram.WebApp] Popup button text is required for type "+At,Kt.text),Error("WebAppPopupParamInvalid");if(cr.length>64)throw console.error("[Telegram.WebApp] Popup button text is too long",cr),Error("WebAppPopupParamInvalid");et.text=cr}else throw console.error("[Telegram.WebApp] Popup button type is invalid",At),Error("WebAppPopupParamInvalid");ge.push(et)}}else ge.push({id:"",type:"close"});if(ge.length<1)throw console.error("[Telegram.WebApp] Popup should have at least one button"),Error("WebAppPopupParamInvalid");if(ge.length>3)throw console.error("[Telegram.WebApp] Popup should not have more than 3 buttons"),Error("WebAppPopupParamInvalid");at.buttons=ge,ln={callback:I},t.postEvent("web_app_open_popup",!1,at)},o.showAlert=function(L,I){o.showPopup({message:L},I?function(){I()}:null)},o.showConfirm=function(L,I){o.showPopup({message:L,buttons:[{type:"ok",id:"ok"},{type:"cancel"}]},I?function(U){I(U=="ok")}:null)},o.showScanQrPopup=function(L,I){if(!ie("6.4"))throw console.error("[Telegram.WebApp] Method showScanQrPopup is not supported in version "+u),Error("WebAppMethodUnsupported");if($e)throw console.error("[Telegram.WebApp] Popup is already opened"),Error("WebAppScanQrPopupOpened");var U="",le={};if(typeof L.text<"u"){if(U=k(L.text),U.length>64)throw console.error("[Telegram.WebApp] Scan QR popup text is too long",U),Error("WebAppScanQrPopupParamInvalid");U.length>0&&(le.text=U)}$e={callback:I},t.postEvent("web_app_open_scan_qr_popup",!1,le)},o.closeScanQrPopup=function(){if(!ie("6.4"))throw console.error("[Telegram.WebApp] Method closeScanQrPopup is not supported in version "+u),Error("WebAppMethodUnsupported");$e=!1,t.postEvent("web_app_close_scan_qr_popup",!1)},o.readTextFromClipboard=function(L){if(!ie("6.4"))throw console.error("[Telegram.WebApp] Method readTextFromClipboard is not supported in version "+u),Error("WebAppMethodUnsupported");var I=j(16),U={req_id:I};O[I]={callback:L},t.postEvent("web_app_read_text_from_clipboard",!1,U)},o.requestWriteAccess=function(L){if(!ie("6.9"))throw console.error("[Telegram.WebApp] Method requestWriteAccess is not supported in version "+u),Error("WebAppMethodUnsupported");if(dn)throw console.error("[Telegram.WebApp] Write access is already requested"),Error("WebAppWriteAccessRequested");dn={callback:L},t.postEvent("web_app_request_write_access")},o.requestContact=function(L){if(!ie("6.9"))throw console.error("[Telegram.WebApp] Method requestContact is not supported in version "+u),Error("WebAppMethodUnsupported");if(Le)throw console.error("[Telegram.WebApp] Contact is already requested"),Error("WebAppContactRequested");Le={callback:L},t.postEvent("web_app_request_phone")},o.invokeCustomMethod=function(L,I,U){Jn(L,I,U)},o.ready=function(){t.postEvent("web_app_ready")},o.expand=function(){t.postEvent("web_app_expand")},o.close=function(){t.postEvent("web_app_close")},window.Telegram.WebApp=o,Ct(),q(),oe(),n.tgWebAppShowSettings&&Me.show(),window.addEventListener("resize",g),r&&document.addEventListener("click",w),t.onEvent("theme_changed",_),t.onEvent("viewport_changed",b),t.onEvent("invoice_closed",rn),t.onEvent("popup_closed",jn),t.onEvent("qr_text_received",ct),t.onEvent("scan_qr_popup_closed",Be),t.onEvent("clipboard_text_received",bt),t.onEvent("write_access_requested",Vn),t.onEvent("phone_requested",yn),t.onEvent("custom_method_invoked",mr),t.postEvent("web_app_request_theme"),t.postEvent("web_app_request_viewport")})();Object.defineProperty(qc,"__esModule",{value:!0});qc.WebApp=void 0;var n3=window;qc.WebApp=n3.Telegram.WebApp;Object.defineProperty(Ag,"__esModule",{value:!0});var r3=qc,Cn=Ag.default=r3.WebApp;const o3="modulepreload",i3=function(e){return"/reactjs-template/"+e},eh={},l3=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(s=>{if(s=i3(s),s in eh)return;eh[s]=!0;const a=s.endsWith(".css"),u=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${u}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":o3,a||(d.as="script",d.crossOrigin=""),d.href=s,l&&d.setAttribute("nonce",l),document.head.appendChild(d),a)return new Promise((p,h)=>{d.addEventListener("load",p),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>t()).catch(i=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i})};var Rg={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())})(g2,function(){var t={};function n(r){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(r))throw new TypeError("invalid encoding")}return t.decodeUTF8=function(r){if(typeof r!="string")throw new TypeError("expected string");var o,i=unescape(encodeURIComponent(r)),l=new Uint8Array(i.length);for(o=0;o"u"?typeof Buffer.from<"u"?(t.encodeBase64=function(r){return Buffer.from(r).toString("base64")},t.decodeBase64=function(r){return n(r),new Uint8Array(Array.prototype.slice.call(Buffer.from(r,"base64"),0))}):(t.encodeBase64=function(r){return new Buffer(r).toString("base64")},t.decodeBase64=function(r){return n(r),new Uint8Array(Array.prototype.slice.call(new Buffer(r,"base64"),0))}):(t.encodeBase64=function(r){var o,i=[],l=r.length;for(o=0;o>24&255,f[v+1]=m>>16&255,f[v+2]=m>>8&255,f[v+3]=m&255,f[v+4]=c>>24&255,f[v+5]=c>>16&255,f[v+6]=c>>8&255,f[v+7]=c&255}function _(f,v,m,c,x){var W,B=0;for(W=0;W>>8)-1}function P(f,v,m,c){return _(f,v,m,c,16)}function b(f,v,m,c){return _(f,v,m,c,32)}function g(f,v,m,c){for(var x=c[0]&255|(c[1]&255)<<8|(c[2]&255)<<16|(c[3]&255)<<24,W=m[0]&255|(m[1]&255)<<8|(m[2]&255)<<16|(m[3]&255)<<24,B=m[4]&255|(m[5]&255)<<8|(m[6]&255)<<16|(m[7]&255)<<24,G=m[8]&255|(m[9]&255)<<8|(m[10]&255)<<16|(m[11]&255)<<24,ce=m[12]&255|(m[13]&255)<<8|(m[14]&255)<<16|(m[15]&255)<<24,_e=c[4]&255|(c[5]&255)<<8|(c[6]&255)<<16|(c[7]&255)<<24,de=v[0]&255|(v[1]&255)<<8|(v[2]&255)<<16|(v[3]&255)<<24,mt=v[4]&255|(v[5]&255)<<8|(v[6]&255)<<16|(v[7]&255)<<24,ve=v[8]&255|(v[9]&255)<<8|(v[10]&255)<<16|(v[11]&255)<<24,De=v[12]&255|(v[13]&255)<<8|(v[14]&255)<<16|(v[15]&255)<<24,He=c[8]&255|(c[9]&255)<<8|(c[10]&255)<<16|(c[11]&255)<<24,Ge=m[16]&255|(m[17]&255)<<8|(m[18]&255)<<16|(m[19]&255)<<24,Qe=m[20]&255|(m[21]&255)<<8|(m[22]&255)<<16|(m[23]&255)<<24,ze=m[24]&255|(m[25]&255)<<8|(m[26]&255)<<16|(m[27]&255)<<24,Ke=m[28]&255|(m[29]&255)<<8|(m[30]&255)<<16|(m[31]&255)<<24,Ve=c[12]&255|(c[13]&255)<<8|(c[14]&255)<<16|(c[15]&255)<<24,we=x,Te=W,he=B,Ce=G,be=ce,fe=_e,H=de,z=mt,re=ve,Z=De,Y=He,se=Ge,je=Qe,Ye=ze,tt=Ke,Je=Ve,T,lt=0;lt<20;lt+=2)T=we+je|0,be^=T<<7|T>>>25,T=be+we|0,re^=T<<9|T>>>23,T=re+be|0,je^=T<<13|T>>>19,T=je+re|0,we^=T<<18|T>>>14,T=fe+Te|0,Z^=T<<7|T>>>25,T=Z+fe|0,Ye^=T<<9|T>>>23,T=Ye+Z|0,Te^=T<<13|T>>>19,T=Te+Ye|0,fe^=T<<18|T>>>14,T=Y+H|0,tt^=T<<7|T>>>25,T=tt+Y|0,he^=T<<9|T>>>23,T=he+tt|0,H^=T<<13|T>>>19,T=H+he|0,Y^=T<<18|T>>>14,T=Je+se|0,Ce^=T<<7|T>>>25,T=Ce+Je|0,z^=T<<9|T>>>23,T=z+Ce|0,se^=T<<13|T>>>19,T=se+z|0,Je^=T<<18|T>>>14,T=we+Ce|0,Te^=T<<7|T>>>25,T=Te+we|0,he^=T<<9|T>>>23,T=he+Te|0,Ce^=T<<13|T>>>19,T=Ce+he|0,we^=T<<18|T>>>14,T=fe+be|0,H^=T<<7|T>>>25,T=H+fe|0,z^=T<<9|T>>>23,T=z+H|0,be^=T<<13|T>>>19,T=be+z|0,fe^=T<<18|T>>>14,T=Y+Z|0,se^=T<<7|T>>>25,T=se+Y|0,re^=T<<9|T>>>23,T=re+se|0,Z^=T<<13|T>>>19,T=Z+re|0,Y^=T<<18|T>>>14,T=Je+tt|0,je^=T<<7|T>>>25,T=je+Je|0,Ye^=T<<9|T>>>23,T=Ye+je|0,tt^=T<<13|T>>>19,T=tt+Ye|0,Je^=T<<18|T>>>14;we=we+x|0,Te=Te+W|0,he=he+B|0,Ce=Ce+G|0,be=be+ce|0,fe=fe+_e|0,H=H+de|0,z=z+mt|0,re=re+ve|0,Z=Z+De|0,Y=Y+He|0,se=se+Ge|0,je=je+Qe|0,Ye=Ye+ze|0,tt=tt+Ke|0,Je=Je+Ve|0,f[0]=we>>>0&255,f[1]=we>>>8&255,f[2]=we>>>16&255,f[3]=we>>>24&255,f[4]=Te>>>0&255,f[5]=Te>>>8&255,f[6]=Te>>>16&255,f[7]=Te>>>24&255,f[8]=he>>>0&255,f[9]=he>>>8&255,f[10]=he>>>16&255,f[11]=he>>>24&255,f[12]=Ce>>>0&255,f[13]=Ce>>>8&255,f[14]=Ce>>>16&255,f[15]=Ce>>>24&255,f[16]=be>>>0&255,f[17]=be>>>8&255,f[18]=be>>>16&255,f[19]=be>>>24&255,f[20]=fe>>>0&255,f[21]=fe>>>8&255,f[22]=fe>>>16&255,f[23]=fe>>>24&255,f[24]=H>>>0&255,f[25]=H>>>8&255,f[26]=H>>>16&255,f[27]=H>>>24&255,f[28]=z>>>0&255,f[29]=z>>>8&255,f[30]=z>>>16&255,f[31]=z>>>24&255,f[32]=re>>>0&255,f[33]=re>>>8&255,f[34]=re>>>16&255,f[35]=re>>>24&255,f[36]=Z>>>0&255,f[37]=Z>>>8&255,f[38]=Z>>>16&255,f[39]=Z>>>24&255,f[40]=Y>>>0&255,f[41]=Y>>>8&255,f[42]=Y>>>16&255,f[43]=Y>>>24&255,f[44]=se>>>0&255,f[45]=se>>>8&255,f[46]=se>>>16&255,f[47]=se>>>24&255,f[48]=je>>>0&255,f[49]=je>>>8&255,f[50]=je>>>16&255,f[51]=je>>>24&255,f[52]=Ye>>>0&255,f[53]=Ye>>>8&255,f[54]=Ye>>>16&255,f[55]=Ye>>>24&255,f[56]=tt>>>0&255,f[57]=tt>>>8&255,f[58]=tt>>>16&255,f[59]=tt>>>24&255,f[60]=Je>>>0&255,f[61]=Je>>>8&255,f[62]=Je>>>16&255,f[63]=Je>>>24&255}function w(f,v,m,c){for(var x=c[0]&255|(c[1]&255)<<8|(c[2]&255)<<16|(c[3]&255)<<24,W=m[0]&255|(m[1]&255)<<8|(m[2]&255)<<16|(m[3]&255)<<24,B=m[4]&255|(m[5]&255)<<8|(m[6]&255)<<16|(m[7]&255)<<24,G=m[8]&255|(m[9]&255)<<8|(m[10]&255)<<16|(m[11]&255)<<24,ce=m[12]&255|(m[13]&255)<<8|(m[14]&255)<<16|(m[15]&255)<<24,_e=c[4]&255|(c[5]&255)<<8|(c[6]&255)<<16|(c[7]&255)<<24,de=v[0]&255|(v[1]&255)<<8|(v[2]&255)<<16|(v[3]&255)<<24,mt=v[4]&255|(v[5]&255)<<8|(v[6]&255)<<16|(v[7]&255)<<24,ve=v[8]&255|(v[9]&255)<<8|(v[10]&255)<<16|(v[11]&255)<<24,De=v[12]&255|(v[13]&255)<<8|(v[14]&255)<<16|(v[15]&255)<<24,He=c[8]&255|(c[9]&255)<<8|(c[10]&255)<<16|(c[11]&255)<<24,Ge=m[16]&255|(m[17]&255)<<8|(m[18]&255)<<16|(m[19]&255)<<24,Qe=m[20]&255|(m[21]&255)<<8|(m[22]&255)<<16|(m[23]&255)<<24,ze=m[24]&255|(m[25]&255)<<8|(m[26]&255)<<16|(m[27]&255)<<24,Ke=m[28]&255|(m[29]&255)<<8|(m[30]&255)<<16|(m[31]&255)<<24,Ve=c[12]&255|(c[13]&255)<<8|(c[14]&255)<<16|(c[15]&255)<<24,we=x,Te=W,he=B,Ce=G,be=ce,fe=_e,H=de,z=mt,re=ve,Z=De,Y=He,se=Ge,je=Qe,Ye=ze,tt=Ke,Je=Ve,T,lt=0;lt<20;lt+=2)T=we+je|0,be^=T<<7|T>>>25,T=be+we|0,re^=T<<9|T>>>23,T=re+be|0,je^=T<<13|T>>>19,T=je+re|0,we^=T<<18|T>>>14,T=fe+Te|0,Z^=T<<7|T>>>25,T=Z+fe|0,Ye^=T<<9|T>>>23,T=Ye+Z|0,Te^=T<<13|T>>>19,T=Te+Ye|0,fe^=T<<18|T>>>14,T=Y+H|0,tt^=T<<7|T>>>25,T=tt+Y|0,he^=T<<9|T>>>23,T=he+tt|0,H^=T<<13|T>>>19,T=H+he|0,Y^=T<<18|T>>>14,T=Je+se|0,Ce^=T<<7|T>>>25,T=Ce+Je|0,z^=T<<9|T>>>23,T=z+Ce|0,se^=T<<13|T>>>19,T=se+z|0,Je^=T<<18|T>>>14,T=we+Ce|0,Te^=T<<7|T>>>25,T=Te+we|0,he^=T<<9|T>>>23,T=he+Te|0,Ce^=T<<13|T>>>19,T=Ce+he|0,we^=T<<18|T>>>14,T=fe+be|0,H^=T<<7|T>>>25,T=H+fe|0,z^=T<<9|T>>>23,T=z+H|0,be^=T<<13|T>>>19,T=be+z|0,fe^=T<<18|T>>>14,T=Y+Z|0,se^=T<<7|T>>>25,T=se+Y|0,re^=T<<9|T>>>23,T=re+se|0,Z^=T<<13|T>>>19,T=Z+re|0,Y^=T<<18|T>>>14,T=Je+tt|0,je^=T<<7|T>>>25,T=je+Je|0,Ye^=T<<9|T>>>23,T=Ye+je|0,tt^=T<<13|T>>>19,T=tt+Ye|0,Je^=T<<18|T>>>14;f[0]=we>>>0&255,f[1]=we>>>8&255,f[2]=we>>>16&255,f[3]=we>>>24&255,f[4]=fe>>>0&255,f[5]=fe>>>8&255,f[6]=fe>>>16&255,f[7]=fe>>>24&255,f[8]=Y>>>0&255,f[9]=Y>>>8&255,f[10]=Y>>>16&255,f[11]=Y>>>24&255,f[12]=Je>>>0&255,f[13]=Je>>>8&255,f[14]=Je>>>16&255,f[15]=Je>>>24&255,f[16]=H>>>0&255,f[17]=H>>>8&255,f[18]=H>>>16&255,f[19]=H>>>24&255,f[20]=z>>>0&255,f[21]=z>>>8&255,f[22]=z>>>16&255,f[23]=z>>>24&255,f[24]=re>>>0&255,f[25]=re>>>8&255,f[26]=re>>>16&255,f[27]=re>>>24&255,f[28]=Z>>>0&255,f[29]=Z>>>8&255,f[30]=Z>>>16&255,f[31]=Z>>>24&255}function k(f,v,m,c){g(f,v,m,c)}function E(f,v,m,c){w(f,v,m,c)}var $=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function N(f,v,m,c,x,W,B){var G=new Uint8Array(16),ce=new Uint8Array(64),_e,de;for(de=0;de<16;de++)G[de]=0;for(de=0;de<8;de++)G[de]=W[de];for(;x>=64;){for(k(ce,G,B,$),de=0;de<64;de++)f[v+de]=m[c+de]^ce[de];for(_e=1,de=8;de<16;de++)_e=_e+(G[de]&255)|0,G[de]=_e&255,_e>>>=8;x-=64,v+=64,c+=64}if(x>0)for(k(ce,G,B,$),de=0;de=64;){for(k(B,W,x,$),ce=0;ce<64;ce++)f[v+ce]=B[ce];for(G=1,ce=8;ce<16;ce++)G=G+(W[ce]&255)|0,W[ce]=G&255,G>>>=8;m-=64,v+=64}if(m>0)for(k(B,W,x,$),ce=0;ce>>13|m<<3)&8191,c=f[4]&255|(f[5]&255)<<8,this.r[2]=(m>>>10|c<<6)&7939,x=f[6]&255|(f[7]&255)<<8,this.r[3]=(c>>>7|x<<9)&8191,W=f[8]&255|(f[9]&255)<<8,this.r[4]=(x>>>4|W<<12)&255,this.r[5]=W>>>1&8190,B=f[10]&255|(f[11]&255)<<8,this.r[6]=(W>>>14|B<<2)&8191,G=f[12]&255|(f[13]&255)<<8,this.r[7]=(B>>>11|G<<5)&8065,ce=f[14]&255|(f[15]&255)<<8,this.r[8]=(G>>>8|ce<<8)&8191,this.r[9]=ce>>>5&127,this.pad[0]=f[16]&255|(f[17]&255)<<8,this.pad[1]=f[18]&255|(f[19]&255)<<8,this.pad[2]=f[20]&255|(f[21]&255)<<8,this.pad[3]=f[22]&255|(f[23]&255)<<8,this.pad[4]=f[24]&255|(f[25]&255)<<8,this.pad[5]=f[26]&255|(f[27]&255)<<8,this.pad[6]=f[28]&255|(f[29]&255)<<8,this.pad[7]=f[30]&255|(f[31]&255)<<8};j.prototype.blocks=function(f,v,m){for(var c=this.fin?0:2048,x,W,B,G,ce,_e,de,mt,ve,De,He,Ge,Qe,ze,Ke,Ve,we,Te,he,Ce=this.h[0],be=this.h[1],fe=this.h[2],H=this.h[3],z=this.h[4],re=this.h[5],Z=this.h[6],Y=this.h[7],se=this.h[8],je=this.h[9],Ye=this.r[0],tt=this.r[1],Je=this.r[2],T=this.r[3],lt=this.r[4],yt=this.r[5],wt=this.r[6],ot=this.r[7],pt=this.r[8],gt=this.r[9];m>=16;)x=f[v+0]&255|(f[v+1]&255)<<8,Ce+=x&8191,W=f[v+2]&255|(f[v+3]&255)<<8,be+=(x>>>13|W<<3)&8191,B=f[v+4]&255|(f[v+5]&255)<<8,fe+=(W>>>10|B<<6)&8191,G=f[v+6]&255|(f[v+7]&255)<<8,H+=(B>>>7|G<<9)&8191,ce=f[v+8]&255|(f[v+9]&255)<<8,z+=(G>>>4|ce<<12)&8191,re+=ce>>>1&8191,_e=f[v+10]&255|(f[v+11]&255)<<8,Z+=(ce>>>14|_e<<2)&8191,de=f[v+12]&255|(f[v+13]&255)<<8,Y+=(_e>>>11|de<<5)&8191,mt=f[v+14]&255|(f[v+15]&255)<<8,se+=(de>>>8|mt<<8)&8191,je+=mt>>>5|c,ve=0,De=ve,De+=Ce*Ye,De+=be*(5*gt),De+=fe*(5*pt),De+=H*(5*ot),De+=z*(5*wt),ve=De>>>13,De&=8191,De+=re*(5*yt),De+=Z*(5*lt),De+=Y*(5*T),De+=se*(5*Je),De+=je*(5*tt),ve+=De>>>13,De&=8191,He=ve,He+=Ce*tt,He+=be*Ye,He+=fe*(5*gt),He+=H*(5*pt),He+=z*(5*ot),ve=He>>>13,He&=8191,He+=re*(5*wt),He+=Z*(5*yt),He+=Y*(5*lt),He+=se*(5*T),He+=je*(5*Je),ve+=He>>>13,He&=8191,Ge=ve,Ge+=Ce*Je,Ge+=be*tt,Ge+=fe*Ye,Ge+=H*(5*gt),Ge+=z*(5*pt),ve=Ge>>>13,Ge&=8191,Ge+=re*(5*ot),Ge+=Z*(5*wt),Ge+=Y*(5*yt),Ge+=se*(5*lt),Ge+=je*(5*T),ve+=Ge>>>13,Ge&=8191,Qe=ve,Qe+=Ce*T,Qe+=be*Je,Qe+=fe*tt,Qe+=H*Ye,Qe+=z*(5*gt),ve=Qe>>>13,Qe&=8191,Qe+=re*(5*pt),Qe+=Z*(5*ot),Qe+=Y*(5*wt),Qe+=se*(5*yt),Qe+=je*(5*lt),ve+=Qe>>>13,Qe&=8191,ze=ve,ze+=Ce*lt,ze+=be*T,ze+=fe*Je,ze+=H*tt,ze+=z*Ye,ve=ze>>>13,ze&=8191,ze+=re*(5*gt),ze+=Z*(5*pt),ze+=Y*(5*ot),ze+=se*(5*wt),ze+=je*(5*yt),ve+=ze>>>13,ze&=8191,Ke=ve,Ke+=Ce*yt,Ke+=be*lt,Ke+=fe*T,Ke+=H*Je,Ke+=z*tt,ve=Ke>>>13,Ke&=8191,Ke+=re*Ye,Ke+=Z*(5*gt),Ke+=Y*(5*pt),Ke+=se*(5*ot),Ke+=je*(5*wt),ve+=Ke>>>13,Ke&=8191,Ve=ve,Ve+=Ce*wt,Ve+=be*yt,Ve+=fe*lt,Ve+=H*T,Ve+=z*Je,ve=Ve>>>13,Ve&=8191,Ve+=re*tt,Ve+=Z*Ye,Ve+=Y*(5*gt),Ve+=se*(5*pt),Ve+=je*(5*ot),ve+=Ve>>>13,Ve&=8191,we=ve,we+=Ce*ot,we+=be*wt,we+=fe*yt,we+=H*lt,we+=z*T,ve=we>>>13,we&=8191,we+=re*Je,we+=Z*tt,we+=Y*Ye,we+=se*(5*gt),we+=je*(5*pt),ve+=we>>>13,we&=8191,Te=ve,Te+=Ce*pt,Te+=be*ot,Te+=fe*wt,Te+=H*yt,Te+=z*lt,ve=Te>>>13,Te&=8191,Te+=re*T,Te+=Z*Je,Te+=Y*tt,Te+=se*Ye,Te+=je*(5*gt),ve+=Te>>>13,Te&=8191,he=ve,he+=Ce*gt,he+=be*pt,he+=fe*ot,he+=H*wt,he+=z*yt,ve=he>>>13,he&=8191,he+=re*lt,he+=Z*T,he+=Y*Je,he+=se*tt,he+=je*Ye,ve+=he>>>13,he&=8191,ve=(ve<<2)+ve|0,ve=ve+De|0,De=ve&8191,ve=ve>>>13,He+=ve,Ce=De,be=He,fe=Ge,H=Qe,z=ze,re=Ke,Z=Ve,Y=we,se=Te,je=he,v+=16,m-=16;this.h[0]=Ce,this.h[1]=be,this.h[2]=fe,this.h[3]=H,this.h[4]=z,this.h[5]=re,this.h[6]=Z,this.h[7]=Y,this.h[8]=se,this.h[9]=je},j.prototype.finish=function(f,v){var m=new Uint16Array(10),c,x,W,B;if(this.leftover){for(B=this.leftover,this.buffer[B++]=1;B<16;B++)this.buffer[B]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(c=this.h[1]>>>13,this.h[1]&=8191,B=2;B<10;B++)this.h[B]+=c,c=this.h[B]>>>13,this.h[B]&=8191;for(this.h[0]+=c*5,c=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=c,c=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=c,m[0]=this.h[0]+5,c=m[0]>>>13,m[0]&=8191,B=1;B<10;B++)m[B]=this.h[B]+c,c=m[B]>>>13,m[B]&=8191;for(m[9]-=8192,x=(c^1)-1,B=0;B<10;B++)m[B]&=x;for(x=~x,B=0;B<10;B++)this.h[B]=this.h[B]&x|m[B];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,W=this.h[0]+this.pad[0],this.h[0]=W&65535,B=1;B<8;B++)W=(this.h[B]+this.pad[B]|0)+(W>>>16)|0,this.h[B]=W&65535;f[v+0]=this.h[0]>>>0&255,f[v+1]=this.h[0]>>>8&255,f[v+2]=this.h[1]>>>0&255,f[v+3]=this.h[1]>>>8&255,f[v+4]=this.h[2]>>>0&255,f[v+5]=this.h[2]>>>8&255,f[v+6]=this.h[3]>>>0&255,f[v+7]=this.h[3]>>>8&255,f[v+8]=this.h[4]>>>0&255,f[v+9]=this.h[4]>>>8&255,f[v+10]=this.h[5]>>>0&255,f[v+11]=this.h[5]>>>8&255,f[v+12]=this.h[6]>>>0&255,f[v+13]=this.h[6]>>>8&255,f[v+14]=this.h[7]>>>0&255,f[v+15]=this.h[7]>>>8&255},j.prototype.update=function(f,v,m){var c,x;if(this.leftover){for(x=16-this.leftover,x>m&&(x=m),c=0;c=16&&(x=m-m%16,this.blocks(f,v,x),v+=x,m-=x),m){for(c=0;c>16&1),W[m-1]&=65535;W[15]=B[15]-32767-(W[14]>>16&1),x=W[15]>>16&1,W[14]&=65535,ee(B,W,1-x)}for(m=0;m<16;m++)f[2*m]=B[m]&255,f[2*m+1]=B[m]>>8}function xe(f,v){var m=new Uint8Array(32),c=new Uint8Array(32);return ue(m,f),ue(c,v),b(m,0,c,0)}function rt(f){var v=new Uint8Array(32);return ue(v,f),v[0]&1}function Xe(f,v){var m;for(m=0;m<16;m++)f[m]=v[2*m]+(v[2*m+1]<<8);f[15]&=32767}function dt(f,v,m){for(var c=0;c<16;c++)f[c]=v[c]+m[c]}function Ct(f,v,m){for(var c=0;c<16;c++)f[c]=v[c]-m[c]}function We(f,v,m){var c,x,W=0,B=0,G=0,ce=0,_e=0,de=0,mt=0,ve=0,De=0,He=0,Ge=0,Qe=0,ze=0,Ke=0,Ve=0,we=0,Te=0,he=0,Ce=0,be=0,fe=0,H=0,z=0,re=0,Z=0,Y=0,se=0,je=0,Ye=0,tt=0,Je=0,T=m[0],lt=m[1],yt=m[2],wt=m[3],ot=m[4],pt=m[5],gt=m[6],Jt=m[7],Tt=m[8],qt=m[9],Qt=m[10],Zt=m[11],sn=m[12],En=m[13],Tn=m[14],Pn=m[15];c=v[0],W+=c*T,B+=c*lt,G+=c*yt,ce+=c*wt,_e+=c*ot,de+=c*pt,mt+=c*gt,ve+=c*Jt,De+=c*Tt,He+=c*qt,Ge+=c*Qt,Qe+=c*Zt,ze+=c*sn,Ke+=c*En,Ve+=c*Tn,we+=c*Pn,c=v[1],B+=c*T,G+=c*lt,ce+=c*yt,_e+=c*wt,de+=c*ot,mt+=c*pt,ve+=c*gt,De+=c*Jt,He+=c*Tt,Ge+=c*qt,Qe+=c*Qt,ze+=c*Zt,Ke+=c*sn,Ve+=c*En,we+=c*Tn,Te+=c*Pn,c=v[2],G+=c*T,ce+=c*lt,_e+=c*yt,de+=c*wt,mt+=c*ot,ve+=c*pt,De+=c*gt,He+=c*Jt,Ge+=c*Tt,Qe+=c*qt,ze+=c*Qt,Ke+=c*Zt,Ve+=c*sn,we+=c*En,Te+=c*Tn,he+=c*Pn,c=v[3],ce+=c*T,_e+=c*lt,de+=c*yt,mt+=c*wt,ve+=c*ot,De+=c*pt,He+=c*gt,Ge+=c*Jt,Qe+=c*Tt,ze+=c*qt,Ke+=c*Qt,Ve+=c*Zt,we+=c*sn,Te+=c*En,he+=c*Tn,Ce+=c*Pn,c=v[4],_e+=c*T,de+=c*lt,mt+=c*yt,ve+=c*wt,De+=c*ot,He+=c*pt,Ge+=c*gt,Qe+=c*Jt,ze+=c*Tt,Ke+=c*qt,Ve+=c*Qt,we+=c*Zt,Te+=c*sn,he+=c*En,Ce+=c*Tn,be+=c*Pn,c=v[5],de+=c*T,mt+=c*lt,ve+=c*yt,De+=c*wt,He+=c*ot,Ge+=c*pt,Qe+=c*gt,ze+=c*Jt,Ke+=c*Tt,Ve+=c*qt,we+=c*Qt,Te+=c*Zt,he+=c*sn,Ce+=c*En,be+=c*Tn,fe+=c*Pn,c=v[6],mt+=c*T,ve+=c*lt,De+=c*yt,He+=c*wt,Ge+=c*ot,Qe+=c*pt,ze+=c*gt,Ke+=c*Jt,Ve+=c*Tt,we+=c*qt,Te+=c*Qt,he+=c*Zt,Ce+=c*sn,be+=c*En,fe+=c*Tn,H+=c*Pn,c=v[7],ve+=c*T,De+=c*lt,He+=c*yt,Ge+=c*wt,Qe+=c*ot,ze+=c*pt,Ke+=c*gt,Ve+=c*Jt,we+=c*Tt,Te+=c*qt,he+=c*Qt,Ce+=c*Zt,be+=c*sn,fe+=c*En,H+=c*Tn,z+=c*Pn,c=v[8],De+=c*T,He+=c*lt,Ge+=c*yt,Qe+=c*wt,ze+=c*ot,Ke+=c*pt,Ve+=c*gt,we+=c*Jt,Te+=c*Tt,he+=c*qt,Ce+=c*Qt,be+=c*Zt,fe+=c*sn,H+=c*En,z+=c*Tn,re+=c*Pn,c=v[9],He+=c*T,Ge+=c*lt,Qe+=c*yt,ze+=c*wt,Ke+=c*ot,Ve+=c*pt,we+=c*gt,Te+=c*Jt,he+=c*Tt,Ce+=c*qt,be+=c*Qt,fe+=c*Zt,H+=c*sn,z+=c*En,re+=c*Tn,Z+=c*Pn,c=v[10],Ge+=c*T,Qe+=c*lt,ze+=c*yt,Ke+=c*wt,Ve+=c*ot,we+=c*pt,Te+=c*gt,he+=c*Jt,Ce+=c*Tt,be+=c*qt,fe+=c*Qt,H+=c*Zt,z+=c*sn,re+=c*En,Z+=c*Tn,Y+=c*Pn,c=v[11],Qe+=c*T,ze+=c*lt,Ke+=c*yt,Ve+=c*wt,we+=c*ot,Te+=c*pt,he+=c*gt,Ce+=c*Jt,be+=c*Tt,fe+=c*qt,H+=c*Qt,z+=c*Zt,re+=c*sn,Z+=c*En,Y+=c*Tn,se+=c*Pn,c=v[12],ze+=c*T,Ke+=c*lt,Ve+=c*yt,we+=c*wt,Te+=c*ot,he+=c*pt,Ce+=c*gt,be+=c*Jt,fe+=c*Tt,H+=c*qt,z+=c*Qt,re+=c*Zt,Z+=c*sn,Y+=c*En,se+=c*Tn,je+=c*Pn,c=v[13],Ke+=c*T,Ve+=c*lt,we+=c*yt,Te+=c*wt,he+=c*ot,Ce+=c*pt,be+=c*gt,fe+=c*Jt,H+=c*Tt,z+=c*qt,re+=c*Qt,Z+=c*Zt,Y+=c*sn,se+=c*En,je+=c*Tn,Ye+=c*Pn,c=v[14],Ve+=c*T,we+=c*lt,Te+=c*yt,he+=c*wt,Ce+=c*ot,be+=c*pt,fe+=c*gt,H+=c*Jt,z+=c*Tt,re+=c*qt,Z+=c*Qt,Y+=c*Zt,se+=c*sn,je+=c*En,Ye+=c*Tn,tt+=c*Pn,c=v[15],we+=c*T,Te+=c*lt,he+=c*yt,Ce+=c*wt,be+=c*ot,fe+=c*pt,H+=c*gt,z+=c*Jt,re+=c*Tt,Z+=c*qt,Y+=c*Qt,se+=c*Zt,je+=c*sn,Ye+=c*En,tt+=c*Tn,Je+=c*Pn,W+=38*Te,B+=38*he,G+=38*Ce,ce+=38*be,_e+=38*fe,de+=38*H,mt+=38*z,ve+=38*re,De+=38*Z,He+=38*Y,Ge+=38*se,Qe+=38*je,ze+=38*Ye,Ke+=38*tt,Ve+=38*Je,x=1,c=W+x+65535,x=Math.floor(c/65536),W=c-x*65536,c=B+x+65535,x=Math.floor(c/65536),B=c-x*65536,c=G+x+65535,x=Math.floor(c/65536),G=c-x*65536,c=ce+x+65535,x=Math.floor(c/65536),ce=c-x*65536,c=_e+x+65535,x=Math.floor(c/65536),_e=c-x*65536,c=de+x+65535,x=Math.floor(c/65536),de=c-x*65536,c=mt+x+65535,x=Math.floor(c/65536),mt=c-x*65536,c=ve+x+65535,x=Math.floor(c/65536),ve=c-x*65536,c=De+x+65535,x=Math.floor(c/65536),De=c-x*65536,c=He+x+65535,x=Math.floor(c/65536),He=c-x*65536,c=Ge+x+65535,x=Math.floor(c/65536),Ge=c-x*65536,c=Qe+x+65535,x=Math.floor(c/65536),Qe=c-x*65536,c=ze+x+65535,x=Math.floor(c/65536),ze=c-x*65536,c=Ke+x+65535,x=Math.floor(c/65536),Ke=c-x*65536,c=Ve+x+65535,x=Math.floor(c/65536),Ve=c-x*65536,c=we+x+65535,x=Math.floor(c/65536),we=c-x*65536,W+=x-1+37*(x-1),x=1,c=W+x+65535,x=Math.floor(c/65536),W=c-x*65536,c=B+x+65535,x=Math.floor(c/65536),B=c-x*65536,c=G+x+65535,x=Math.floor(c/65536),G=c-x*65536,c=ce+x+65535,x=Math.floor(c/65536),ce=c-x*65536,c=_e+x+65535,x=Math.floor(c/65536),_e=c-x*65536,c=de+x+65535,x=Math.floor(c/65536),de=c-x*65536,c=mt+x+65535,x=Math.floor(c/65536),mt=c-x*65536,c=ve+x+65535,x=Math.floor(c/65536),ve=c-x*65536,c=De+x+65535,x=Math.floor(c/65536),De=c-x*65536,c=He+x+65535,x=Math.floor(c/65536),He=c-x*65536,c=Ge+x+65535,x=Math.floor(c/65536),Ge=c-x*65536,c=Qe+x+65535,x=Math.floor(c/65536),Qe=c-x*65536,c=ze+x+65535,x=Math.floor(c/65536),ze=c-x*65536,c=Ke+x+65535,x=Math.floor(c/65536),Ke=c-x*65536,c=Ve+x+65535,x=Math.floor(c/65536),Ve=c-x*65536,c=we+x+65535,x=Math.floor(c/65536),we=c-x*65536,W+=x-1+37*(x-1),f[0]=W,f[1]=B,f[2]=G,f[3]=ce,f[4]=_e,f[5]=de,f[6]=mt,f[7]=ve,f[8]=De,f[9]=He,f[10]=Ge,f[11]=Qe,f[12]=ze,f[13]=Ke,f[14]=Ve,f[15]=we}function ht(f,v){We(f,v,v)}function $n(f,v){var m=n(),c;for(c=0;c<16;c++)m[c]=v[c];for(c=253;c>=0;c--)ht(m,m),c!==2&&c!==4&&We(m,m,v);for(c=0;c<16;c++)f[c]=m[c]}function K(f,v){var m=n(),c;for(c=0;c<16;c++)m[c]=v[c];for(c=250;c>=0;c--)ht(m,m),c!==1&&We(m,m,v);for(c=0;c<16;c++)f[c]=m[c]}function q(f,v,m){var c=new Uint8Array(32),x=new Float64Array(80),W,B,G=n(),ce=n(),_e=n(),de=n(),mt=n(),ve=n();for(B=0;B<31;B++)c[B]=v[B];for(c[31]=v[31]&127|64,c[0]&=248,Xe(x,m),B=0;B<16;B++)ce[B]=x[B],de[B]=G[B]=_e[B]=0;for(G[0]=de[0]=1,B=254;B>=0;--B)W=c[B>>>3]>>>(B&7)&1,ee(G,ce,W),ee(_e,de,W),dt(mt,G,_e),Ct(G,G,_e),dt(_e,ce,de),Ct(ce,ce,de),ht(de,mt),ht(ve,G),We(G,_e,G),We(_e,ce,mt),dt(mt,G,_e),Ct(G,G,_e),ht(ce,G),Ct(_e,de,ve),We(G,_e,a),dt(G,G,de),We(_e,_e,G),We(G,de,ve),We(de,ce,x),ht(ce,mt),ee(G,ce,W),ee(_e,de,W);for(B=0;B<16;B++)x[B+16]=G[B],x[B+32]=_e[B],x[B+48]=ce[B],x[B+64]=de[B];var De=x.subarray(32),He=x.subarray(16);return $n(De,De),We(He,He,De),ue(f,He),0}function F(f,v){return q(f,v,i)}function J(f,v){return r(v,32),F(f,v)}function X(f,v,m){var c=new Uint8Array(32);return q(c,m,v),E(f,o,c,$)}var ie=ne,ke=oe;function Ee(f,v,m,c,x,W){var B=new Uint8Array(32);return X(B,x,W),ie(f,v,m,c,B)}function qe(f,v,m,c,x,W){var B=new Uint8Array(32);return X(B,x,W),ke(f,v,m,c,B)}var kt=[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 Me(f,v,m,c){for(var x=new Int32Array(16),W=new Int32Array(16),B,G,ce,_e,de,mt,ve,De,He,Ge,Qe,ze,Ke,Ve,we,Te,he,Ce,be,fe,H,z,re,Z,Y,se,je=f[0],Ye=f[1],tt=f[2],Je=f[3],T=f[4],lt=f[5],yt=f[6],wt=f[7],ot=v[0],pt=v[1],gt=v[2],Jt=v[3],Tt=v[4],qt=v[5],Qt=v[6],Zt=v[7],sn=0;c>=128;){for(be=0;be<16;be++)fe=8*be+sn,x[be]=m[fe+0]<<24|m[fe+1]<<16|m[fe+2]<<8|m[fe+3],W[be]=m[fe+4]<<24|m[fe+5]<<16|m[fe+6]<<8|m[fe+7];for(be=0;be<80;be++)if(B=je,G=Ye,ce=tt,_e=Je,de=T,mt=lt,ve=yt,De=wt,He=ot,Ge=pt,Qe=gt,ze=Jt,Ke=Tt,Ve=qt,we=Qt,Te=Zt,H=wt,z=Zt,re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=(T>>>14|Tt<<18)^(T>>>18|Tt<<14)^(Tt>>>9|T<<23),z=(Tt>>>14|T<<18)^(Tt>>>18|T<<14)^(T>>>9|Tt<<23),re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,H=T<^~T&yt,z=Tt&qt^~Tt&Qt,re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,H=kt[be*2],z=kt[be*2+1],re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,H=x[be%16],z=W[be%16],re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,he=Y&65535|se<<16,Ce=re&65535|Z<<16,H=he,z=Ce,re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=(je>>>28|ot<<4)^(ot>>>2|je<<30)^(ot>>>7|je<<25),z=(ot>>>28|je<<4)^(je>>>2|ot<<30)^(je>>>7|ot<<25),re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,H=je&Ye^je&tt^Ye&tt,z=ot&pt^ot>^pt>,re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,De=Y&65535|se<<16,Te=re&65535|Z<<16,H=_e,z=ze,re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=he,z=Ce,re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,_e=Y&65535|se<<16,ze=re&65535|Z<<16,Ye=B,tt=G,Je=ce,T=_e,lt=de,yt=mt,wt=ve,je=De,pt=He,gt=Ge,Jt=Qe,Tt=ze,qt=Ke,Qt=Ve,Zt=we,ot=Te,be%16===15)for(fe=0;fe<16;fe++)H=x[fe],z=W[fe],re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=x[(fe+9)%16],z=W[(fe+9)%16],re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,he=x[(fe+1)%16],Ce=W[(fe+1)%16],H=(he>>>1|Ce<<31)^(he>>>8|Ce<<24)^he>>>7,z=(Ce>>>1|he<<31)^(Ce>>>8|he<<24)^(Ce>>>7|he<<25),re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,he=x[(fe+14)%16],Ce=W[(fe+14)%16],H=(he>>>19|Ce<<13)^(Ce>>>29|he<<3)^he>>>6,z=(Ce>>>19|he<<13)^(he>>>29|Ce<<3)^(Ce>>>6|he<<26),re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,x[fe]=Y&65535|se<<16,W[fe]=re&65535|Z<<16;H=je,z=ot,re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=f[0],z=v[0],re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,f[0]=je=Y&65535|se<<16,v[0]=ot=re&65535|Z<<16,H=Ye,z=pt,re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=f[1],z=v[1],re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,f[1]=Ye=Y&65535|se<<16,v[1]=pt=re&65535|Z<<16,H=tt,z=gt,re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=f[2],z=v[2],re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,f[2]=tt=Y&65535|se<<16,v[2]=gt=re&65535|Z<<16,H=Je,z=Jt,re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=f[3],z=v[3],re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,f[3]=Je=Y&65535|se<<16,v[3]=Jt=re&65535|Z<<16,H=T,z=Tt,re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=f[4],z=v[4],re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,f[4]=T=Y&65535|se<<16,v[4]=Tt=re&65535|Z<<16,H=lt,z=qt,re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=f[5],z=v[5],re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,f[5]=lt=Y&65535|se<<16,v[5]=qt=re&65535|Z<<16,H=yt,z=Qt,re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=f[6],z=v[6],re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,f[6]=yt=Y&65535|se<<16,v[6]=Qt=re&65535|Z<<16,H=wt,z=Zt,re=z&65535,Z=z>>>16,Y=H&65535,se=H>>>16,H=f[7],z=v[7],re+=z&65535,Z+=z>>>16,Y+=H&65535,se+=H>>>16,Z+=re>>>16,Y+=Z>>>16,se+=Y>>>16,f[7]=wt=Y&65535|se<<16,v[7]=Zt=re&65535|Z<<16,sn+=128,c-=128}return c}function $t(f,v,m){var c=new Int32Array(8),x=new Int32Array(8),W=new Uint8Array(256),B,G=m;for(c[0]=1779033703,c[1]=3144134277,c[2]=1013904242,c[3]=2773480762,c[4]=1359893119,c[5]=2600822924,c[6]=528734635,c[7]=1541459225,x[0]=4089235720,x[1]=2227873595,x[2]=4271175723,x[3]=1595750129,x[4]=2917565137,x[5]=725511199,x[6]=4215389547,x[7]=327033209,Me(c,x,v,m),m%=128,B=0;B=0;--x)c=m[x/8|0]>>(x&7)&1,zn(f,v,c),Vt(v,f),Vt(f,f),zn(f,v,c)}function jn(f,v){var m=[n(),n(),n(),n()];Se(m[0],p),Se(m[1],h),Se(m[2],s),We(m[3],p,h),ln(f,m,v)}function $e(f,v,m){var c=new Uint8Array(64),x=[n(),n(),n(),n()],W;for(m||r(v,32),$t(c,v,32),c[0]&=248,c[31]&=127,c[31]|=64,jn(x,c),rn(f,x),W=0;W<32;W++)v[W+32]=f[W];return 0}var ct=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 Be(f,v){var m,c,x,W;for(c=63;c>=32;--c){for(m=0,x=c-32,W=c-12;x>4)*ct[x],m=v[x]>>8,v[x]&=255;for(x=0;x<32;x++)v[x]-=m*ct[x];for(c=0;c<32;c++)v[c+1]+=v[c]>>8,f[c]=v[c]&255}function bt(f){var v=new Float64Array(64),m;for(m=0;m<64;m++)v[m]=f[m];for(m=0;m<64;m++)f[m]=0;Be(f,v)}function dn(f,v,m,c){var x=new Uint8Array(64),W=new Uint8Array(64),B=new Uint8Array(64),G,ce,_e=new Float64Array(64),de=[n(),n(),n(),n()];$t(x,c,32),x[0]&=248,x[31]&=127,x[31]|=64;var mt=m+64;for(G=0;G>7&&Ct(f[0],l,f[0]),We(f[3],f[0],f[1]),0)}function ut(f,v,m,c){var x,W=new Uint8Array(32),B=new Uint8Array(64),G=[n(),n(),n(),n()],ce=[n(),n(),n(),n()];if(m<64||Vn(ce,c))return-1;for(x=0;x=0},t.sign.keyPair=function(){var f=new Uint8Array(Ue),v=new Uint8Array(At);return $e(f,v),{publicKey:f,secretKey:v}},t.sign.keyPair.fromSecretKey=function(f){if(Wn(f),f.length!==At)throw new Error("bad secret key size");for(var v=new Uint8Array(Ue),m=0;m=e.length)throw new Error("Index is out of buffer");const n=e.slice(0,t),r=e.slice(t);return[n,r]}function Ou(e){let t="";return e.forEach(n=>{t+=("0"+(n&255).toString(16)).slice(-2)}),t}function cc(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{var o,i;if(!((o=void 0)===null||o===void 0)&&o.aborted){r(new Re("Delay aborted"));return}const l=setTimeout(()=>n(),e);(i=void 0)===null||i===void 0||i.addEventListener("abort",()=>{clearTimeout(l),r(new Re("Delay aborted"))})})})}function br(e){const t=new AbortController;return e!=null&&e.aborted?t.abort():e==null||e.addEventListener("abort",()=>t.abort(),{once:!0}),t}function Ql(e,t){var n,r;return me(this,void 0,void 0,function*(){const o=(n=t==null?void 0:t.attempts)!==null&&n!==void 0?n:10,i=(r=t==null?void 0:t.delayMs)!==null&&r!==void 0?r:200,l=br(t==null?void 0:t.signal);if(typeof e!="function")throw new Re(`Expected a function, got ${typeof e}`);let s=0,a;for(;sme(this,void 0,void 0,function*(){if(i=p??null,l==null||l.abort(),l=br(p),l.signal.aborted)throw new Re("Resource creation was aborted");r=h??null;const S=e(l.signal,...h);o=S;const C=yield S;if(o!==S&&C!==n)throw yield t(C),new Re("Resource creation was aborted by a new resource creation");return n=C,n});return{create:s,current:()=>n??null,dispose:()=>me(this,void 0,void 0,function*(){try{const p=n;n=null;const h=o;o=null;try{l==null||l.abort()}catch{}yield Promise.allSettled([p?t(p):Promise.resolve(),h?t(yield h):Promise.resolve()])}catch{}}),recreate:p=>me(this,void 0,void 0,function*(){const h=n,S=o,C=r,_=i;if(yield $g(p),h===n&&S===o&&C===r&&_===i)return yield s(i,...C??[]);throw new Re("Resource recreation was aborted by a new resource creation")})}}function L3(e,t){const n=t==null?void 0:t.timeout,r=t==null?void 0:t.signal,o=br(r);return new Promise((i,l)=>{if(o.signal.aborted){l(new Re("Operation aborted"));return}let s;typeof n<"u"&&(s=setTimeout(()=>{o.abort(),l(new Re(`Timeout after ${n}ms`))},n)),o.signal.addEventListener("abort",()=>{clearTimeout(s),l(new Re("Operation aborted"))},{once:!0});const a={timeout:n,abort:o.signal};e(i,l,a).finally(()=>clearTimeout(s))})}class Bu{constructor(t,n,r,o,i){this.bridgeUrl=n,this.sessionId=r,this.listener=o,this.errorsListener=i,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=5e3,this.eventSource=P3((l,s)=>me(this,void 0,void 0,function*(){const a={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:l,openingDeadlineMS:s};return yield A3(a)}),l=>me(this,void 0,void 0,function*(){l.close()})),this.bridgeGatewayStorage=new k3(t,n)}get isReady(){const t=this.eventSource.current();return(t==null?void 0:t.readyState)===EventSource.OPEN}get isClosed(){const t=this.eventSource.current();return(t==null?void 0:t.readyState)!==EventSource.OPEN}get isConnecting(){const t=this.eventSource.current();return(t==null?void 0:t.readyState)===EventSource.CONNECTING}registerSession(t){return me(this,void 0,void 0,function*(){yield this.eventSource.create(t==null?void 0:t.signal,t==null?void 0:t.openingDeadlineMS)})}send(t,n,r,o){var i;return me(this,void 0,void 0,function*(){const l={};typeof o=="number"?l.ttl=o:(l.ttl=o==null?void 0:o.ttl,l.signal=o==null?void 0:o.signal,l.attempts=o==null?void 0:o.attempts);const s=new URL(Ig(this.bridgeUrl,this.postPath));s.searchParams.append("client_id",this.sessionId),s.searchParams.append("to",n),s.searchParams.append("ttl",((l==null?void 0:l.ttl)||this.defaultTtl).toString()),s.searchParams.append("topic",r);const a=c1.encode(t);yield Ql(u=>me(this,void 0,void 0,function*(){const d=yield this.post(s,a,u.signal);if(!d.ok)throw new Re(`Bridge send failed, status ${d.status}`)}),{attempts:(i=l==null?void 0:l.attempts)!==null&&i!==void 0?i:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:l==null?void 0:l.signal})})}pause(){this.eventSource.dispose().catch(t=>$r(`Bridge pause failed, ${t}`))}unPause(){return me(this,void 0,void 0,function*(){yield this.eventSource.recreate(0)})}close(){return me(this,void 0,void 0,function*(){yield this.eventSource.dispose().catch(t=>$r(`Bridge close failed, ${t}`))})}setListener(t){this.listener=t}setErrorsListener(t){this.errorsListener=t}post(t,n,r){return me(this,void 0,void 0,function*(){const o=yield fetch(t,{method:"post",body:n,signal:r});if(!o.ok)throw new Re(`Bridge send failed, status ${o.status}`);return o})}errorsHandler(t,n){return me(this,void 0,void 0,function*(){if(this.isConnecting){$r("Bridge error",JSON.stringify(n));return}if(this.isReady){try{this.errorsListener(n)}catch{}return}if(this.isClosed)return t.close(),an(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new Re("Bridge error, unknown state")})}messagesHandler(t){return me(this,void 0,void 0,function*(){if(t.data===this.heartbeatMessage||(yield this.bridgeGatewayStorage.storeLastEventId(t.lastEventId),this.isClosed))return;let n;try{n=JSON.parse(t.data)}catch(r){throw new Re(`Bridge message parse failed, message ${r.data}`)}this.listener(n)})}}function A3(e){return me(this,void 0,void 0,function*(){return yield L3((t,n,r)=>me(this,void 0,void 0,function*(){var o;const l=br(r.signal).signal;if(l.aborted){n(new Re("Bridge connection aborted"));return}const s=new URL(Ig(e.bridgeUrl,e.ssePath));s.searchParams.append("client_id",e.sessionId);const a=yield e.bridgeGatewayStorage.getLastEventId();if(a&&s.searchParams.append("last_event_id",a),l.aborted){n(new Re("Bridge connection aborted"));return}const u=new EventSource(s.toString());u.onerror=d=>me(this,void 0,void 0,function*(){if(l.aborted){u.close(),n(new Re("Bridge connection aborted"));return}try{const p=yield e.errorHandler(u,d);p!==u&&u.close(),p&&p!==u&&t(p)}catch(p){u.close(),n(p)}}),u.onopen=()=>{if(l.aborted){u.close(),n(new Re("Bridge connection aborted"));return}t(u)},u.onmessage=d=>{if(l.aborted){u.close(),n(new Re("Bridge connection aborted"));return}e.messageHandler(d)},(o=e.signal)===null||o===void 0||o.addEventListener("abort",()=>{u.close(),n(new Re("Bridge connection aborted"))})}),{timeout:e.openingDeadlineMS,signal:e.signal})})}function Zl(e){return!("connectEvent"in e)}class xs{constructor(t){this.storage=t,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(t){return me(this,void 0,void 0,function*(){if(t.type==="injected")return this.storage.setItem(this.storeKey,JSON.stringify(t));if(!Zl(t)){const r={sessionKeyPair:t.session.sessionCrypto.stringifyKeypair(),walletPublicKey:t.session.walletPublicKey,bridgeUrl:t.session.bridgeUrl},o={type:"http",connectEvent:t.connectEvent,session:r,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(o))}const n={type:"http",connectionSource:t.connectionSource,sessionCrypto:t.sessionCrypto.stringifyKeypair()};return this.storage.setItem(this.storeKey,JSON.stringify(n))})}removeConnection(){return me(this,void 0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return me(this,void 0,void 0,function*(){const t=yield this.storage.getItem(this.storeKey);if(!t)return null;const n=JSON.parse(t);if(n.type==="injected")return n;if("connectEvent"in n){const r=new Qf(n.session.sessionKeyPair);return{type:"http",connectEvent:n.connectEvent,lastWalletEventId:n.lastWalletEventId,nextRpcRequestId:n.nextRpcRequestId,session:{sessionCrypto:r,bridgeUrl:n.session.bridgeUrl,walletPublicKey:n.session.walletPublicKey}}}return{type:"http",sessionCrypto:new Qf(n.sessionCrypto),connectionSource:n.connectionSource}})}getHttpConnection(){return me(this,void 0,void 0,function*(){const t=yield this.getConnection();if(!t)throw new Re("Trying to read HTTP connection source while nothing is stored");if(t.type==="injected")throw new Re("Trying to read HTTP connection source while injected connection is stored");return t})}getHttpPendingConnection(){return me(this,void 0,void 0,function*(){const t=yield this.getConnection();if(!t)throw new Re("Trying to read HTTP connection source while nothing is stored");if(t.type==="injected")throw new Re("Trying to read HTTP connection source while injected connection is stored");if(!Zl(t))throw new Re("Trying to read HTTP-pending connection while http connection is stored");return t})}getInjectedConnection(){return me(this,void 0,void 0,function*(){const t=yield this.getConnection();if(!t)throw new Re("Trying to read Injected bridge connection source while nothing is stored");if((t==null?void 0:t.type)==="http")throw new Re("Trying to read Injected bridge connection source while HTTP connection is stored");return t})}storedConnectionType(){return me(this,void 0,void 0,function*(){const t=yield this.storage.getItem(this.storeKey);return t?JSON.parse(t).type:null})}storeLastWalletEventId(t){return me(this,void 0,void 0,function*(){const n=yield this.getConnection();if(n&&n.type==="http"&&!Zl(n))return n.lastWalletEventId=t,this.storeConnection(n)})}getLastWalletEventId(){return me(this,void 0,void 0,function*(){const t=yield this.getConnection();if(t&&"lastWalletEventId"in t)return t.lastWalletEventId})}increaseNextRpcRequestId(){return me(this,void 0,void 0,function*(){const t=yield this.getConnection();if(t&&"nextRpcRequestId"in t){const n=t.nextRpcRequestId||0;return t.nextRpcRequestId=n+1,this.storeConnection(t)}})}getNextRpcRequestId(){return me(this,void 0,void 0,function*(){const t=yield this.getConnection();return t&&"nextRpcRequestId"in t&&t.nextRpcRequestId||0})}}const jg=2;class Cs{constructor(t,n){this.storage=t,this.walletConnectionSource=n,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=5e3,this.connectionStorage=new xs(t)}static fromStorage(t){return me(this,void 0,void 0,function*(){const r=yield new xs(t).getHttpConnection();return Zl(r)?new Cs(t,r.connectionSource):new Cs(t,{bridgeUrl:r.session.bridgeUrl})})}connect(t,n){var r;const o=br(n==null?void 0:n.signal);(r=this.abortController)===null||r===void 0||r.abort(),this.abortController=o,this.closeGateways();const i=new Qf;this.session={sessionCrypto:i,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:i}).then(()=>me(this,void 0,void 0,function*(){o.signal.aborted||(yield Ql(s=>this.openGateways(i,{openingDeadlineMS:n==null?void 0:n.openingDeadlineMS,signal:s==null?void 0:s.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:o.signal}))}));const l="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(l,t)}restoreConnection(t){var n,r;return me(this,void 0,void 0,function*(){const o=br(t==null?void 0:t.signal);if((n=this.abortController)===null||n===void 0||n.abort(),this.abortController=o,o.signal.aborted)return;this.closeGateways();const i=yield this.connectionStorage.getHttpConnection();if(!i||o.signal.aborted)return;const l=(r=t==null?void 0:t.openingDeadlineMS)!==null&&r!==void 0?r:this.defaultOpeningDeadlineMS;if(Zl(i))return this.session={sessionCrypto:i.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(i.sessionCrypto,{openingDeadlineMS:l,signal:o==null?void 0:o.signal});if(Array.isArray(this.walletConnectionSource))throw new Re("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=i.session,this.gateway&&(an("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new Bu(this.storage,this.walletConnectionSource.bridgeUrl,i.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!o.signal.aborted){this.listeners.forEach(s=>s(i.connectEvent));try{yield Ql(s=>this.gateway.registerSession({openingDeadlineMS:l,signal:s.signal}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:o.signal})}catch{yield this.disconnect({signal:o.signal});return}}})}sendRequest(t,n){const r={};return typeof n=="function"?r.onRequestSent=n:(r.onRequestSent=n==null?void 0:n.onRequestSent,r.signal=n==null?void 0:n.signal,r.attempts=n==null?void 0:n.attempts),new Promise((o,i)=>me(this,void 0,void 0,function*(){var l;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new Re("Trying to send bridge request without session");const s=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),an("Send http-bridge request:",Object.assign(Object.assign({},t),{id:s}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{id:s})),cc(this.session.walletPublicKey));try{yield this.gateway.send(a,this.session.walletPublicKey,t.method,{attempts:r==null?void 0:r.attempts,signal:r==null?void 0:r.signal}),(l=r==null?void 0:r.onRequestSent)===null||l===void 0||l.call(r),this.pendingRequests.set(s.toString(),o)}catch(u){i(u)}}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(t){return me(this,void 0,void 0,function*(){return new Promise(n=>me(this,void 0,void 0,function*(){let r=!1,o=null;const i=()=>{r||(r=!0,this.removeBridgeAndSession().then(n))};try{this.closeGateways();const l=br(t==null?void 0:t.signal);o=setTimeout(()=>{l.abort()},this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:i,signal:l.signal,attempts:1})}catch(l){an("Disconnect error:",l),r||this.removeBridgeAndSession().then(n)}finally{o&&clearTimeout(o),i()}}))})}listen(t){return this.listeners.push(t),()=>this.listeners=this.listeners.filter(n=>n!==t)}pause(){var t;(t=this.gateway)===null||t===void 0||t.pause(),this.pendingGateways.forEach(n=>n.pause())}unPause(){return me(this,void 0,void 0,function*(){const t=this.pendingGateways.map(n=>n.unPause());this.gateway&&t.push(this.gateway.unPause()),yield Promise.all(t)})}pendingGatewaysListener(t,n,r){return me(this,void 0,void 0,function*(){if(!this.pendingGateways.includes(t)){yield t.close();return}return this.closeGateways({except:t}),this.gateway&&(an("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=n,this.gateway=t,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(r)})}gatewayListener(t){return me(this,void 0,void 0,function*(){const n=JSON.parse(this.session.sessionCrypto.decrypt(c1.decode(t.message).toUint8Array(),cc(t.from)));if(an("Wallet message received:",n),!("event"in n)){const o=n.id.toString(),i=this.pendingRequests.get(o);if(!i){an(`Response id ${o} doesn't match any request's id`);return}i(n),this.pendingRequests.delete(o);return}if(n.id!==void 0){const o=yield this.connectionStorage.getLastWalletEventId();if(o!==void 0&&n.id<=o){$r(`Received event id (=${n.id}) must be greater than stored last wallet event id (=${o}) `);return}n.event!=="connect"&&(yield this.connectionStorage.storeLastWalletEventId(n.id))}const r=this.listeners;n.event==="connect"&&(yield this.updateSession(n,t.from)),n.event==="disconnect"&&(an("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),r.forEach(o=>o(n))})}gatewayErrorsListener(t){return me(this,void 0,void 0,function*(){throw new Re(`Bridge error ${JSON.stringify(t)}`)})}updateSession(t,n){return me(this,void 0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:n});const r=t.payload.items.find(i=>i.name==="ton_addr"),o=Object.assign(Object.assign({},t),{payload:Object.assign(Object.assign({},t.payload),{items:[r]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:t.id,connectEvent:o,nextRpcRequestId:0})})}removeBridgeAndSession(){return me(this,void 0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(t,n){return ii(t)?this.generateTGUniversalLink(t,n):this.generateRegularUniversalLink(t,n)}generateRegularUniversalLink(t,n){const r=new URL(t);return r.searchParams.append("v",jg.toString()),r.searchParams.append("id",this.session.sessionCrypto.sessionId),r.searchParams.append("r",JSON.stringify(n)),r.toString()}generateTGUniversalLink(t,n){const o=this.generateRegularUniversalLink("about:blank",n).split("?")[1],i="tonconnect-"+Ng(o),l=this.convertToDirectLink(t),s=new URL(l);return s.searchParams.append("startapp",i),s.toString()}convertToDirectLink(t){const n=new URL(t);return n.searchParams.has("attach")&&(n.searchParams.delete("attach"),n.pathname+="/start"),n.toString()}openGateways(t,n){return me(this,void 0,void 0,function*(){if(Array.isArray(this.walletConnectionSource)){this.pendingGateways.map(r=>r.close().catch()),this.pendingGateways=this.walletConnectionSource.map(r=>{const o=new Bu(this.storage,r.bridgeUrl,t.sessionId,()=>{},()=>{});return o.setListener(i=>this.pendingGatewaysListener(o,r.bridgeUrl,i)),o}),yield Promise.allSettled(this.pendingGateways.map(r=>Ql(o=>this.pendingGateways.some(i=>i===r)?r.registerSession({openingDeadlineMS:n==null?void 0:n.openingDeadlineMS,signal:o.signal}):r.close(),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:n==null?void 0:n.signal})));return}else return this.gateway&&(an("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new Bu(this.storage,this.walletConnectionSource.bridgeUrl,t.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:n==null?void 0:n.openingDeadlineMS,signal:n==null?void 0:n.signal})})}closeGateways(t){var n;(n=this.gateway)===null||n===void 0||n.close(),this.pendingGateways.filter(r=>r!==(t==null?void 0:t.except)).forEach(r=>r.close()),this.pendingGateways=[]}}function lh(e,t){return Wg(e,[t])}function Wg(e,t){return!e||typeof e!="object"?!1:t.every(n=>n in e)}function R3(e){try{return!lh(e,"tonconnect")||!lh(e.tonconnect,"walletInfo")?!1:Wg(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch{return!1}}let M3=class Ml{constructor(){this.storage={}}static getInstance(){return Ml.instance||(Ml.instance=new Ml),Ml.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(t){var n;return(n=this.storage[t])!==null&&n!==void 0?n:null}key(t){var n;const r=Object.keys(this.storage);return t<0||t>=r.length?null:(n=r[t])!==null&&n!==void 0?n:null}removeItem(t){delete this.storage[t]}setItem(t,n){this.storage[t]=n}};function Xc(){if(!(typeof window>"u"))return window}function I3(){const e=Xc();if(!e)return[];try{return Object.keys(e)}catch{return[]}}function N3(){if(!(typeof document>"u"))return document}function $3(){var e;const t=(e=Xc())===null||e===void 0?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function j3(){if(W3())return localStorage;if(O3())throw new Re("`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 M3.getInstance()}function W3(){try{return typeof localStorage<"u"}catch{return!1}}function O3(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null}class qn{constructor(t,n){this.injectedWalletKey=n,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const r=qn.window;if(!qn.isWindowContainsWallet(r,n))throw new d1;this.connectionStorage=new xs(t),this.injectedWallet=r[n].tonconnect}static fromStorage(t){return me(this,void 0,void 0,function*(){const r=yield new xs(t).getInjectedConnection();return new qn(t,r.jsBridgeKey)})}static isWalletInjected(t){return qn.isWindowContainsWallet(this.window,t)}static isInsideWalletBrowser(t){return qn.isWindowContainsWallet(this.window,t)?this.window[t].tonconnect.isWalletBrowser:!1}static getCurrentlyInjectedWallets(){return this.window?I3().filter(([r,o])=>R3(o)).map(([r,o])=>({name:o.tonconnect.walletInfo.name,appName:o.tonconnect.walletInfo.app_name,aboutUrl:o.tonconnect.walletInfo.about_url,imageUrl:o.tonconnect.walletInfo.image,tondns:o.tonconnect.walletInfo.tondns,jsBridgeKey:r,injected:!0,embedded:o.tonconnect.isWalletBrowser,platforms:o.tonconnect.walletInfo.platforms})):[]}static isWindowContainsWallet(t,n){return!!t&&n in t&&typeof t[n]=="object"&&"tonconnect"in t[n]}connect(t){this._connect(jg,t)}restoreConnection(){return me(this,void 0,void 0,function*(){try{an("Injected Provider restoring connection...");const t=yield this.injectedWallet.restoreConnection();an("Injected Provider restoring connection response",t),t.event==="connect"?(this.makeSubscriptions(),this.listeners.forEach(n=>n(t))):yield this.connectionStorage.removeConnection()}catch(t){yield this.connectionStorage.removeConnection(),console.error(t)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return me(this,void 0,void 0,function*(){return new Promise(t=>{const n=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(t)};try{this.injectedWallet.disconnect(),n()}catch(r){an(r),this.sendRequest({method:"disconnect",params:[]},n)}})})}closeAllListeners(){var t;this.listenSubscriptions=!1,this.listeners=[],(t=this.unsubscribeCallback)===null||t===void 0||t.call(this)}listen(t){return this.listeners.push(t),()=>this.listeners=this.listeners.filter(n=>n!==t)}sendRequest(t,n){var r;return me(this,void 0,void 0,function*(){const o={};typeof n=="function"?o.onRequestSent=n:(o.onRequestSent=n==null?void 0:n.onRequestSent,o.signal=n==null?void 0:n.signal);const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),an("Send injected-bridge request:",Object.assign(Object.assign({},t),{id:i}));const l=this.injectedWallet.send(Object.assign(Object.assign({},t),{id:i}));return l.then(s=>an("Wallet message received:",s)),(r=o==null?void 0:o.onRequestSent)===null||r===void 0||r.call(o),l})}_connect(t,n){return me(this,void 0,void 0,function*(){try{an(`Injected Provider connect request: protocolVersion: ${t}, message:`,n);const r=yield this.injectedWallet.connect(t,n);an("Injected Provider connect response:",r),r.event==="connect"&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(o=>o(r))}catch(r){an("Injected Provider connect error:",r);const o={event:"connect_error",payload:{code:0,message:r==null?void 0:r.toString()}};this.listeners.forEach(i=>i(o))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(t=>{an("Wallet message received:",t),this.listenSubscriptions&&this.listeners.forEach(n=>n(t)),t.event==="disconnect"&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}qn.window=Xc();class B3{constructor(){this.localStorage=j3()}getItem(t){return me(this,void 0,void 0,function*(){return this.localStorage.getItem(t)})}removeItem(t){return me(this,void 0,void 0,function*(){this.localStorage.removeItem(t)})}setItem(t,n){return me(this,void 0,void 0,function*(){this.localStorage.setItem(t,n)})}}function li(e){return U3(e)&&e.injected}function eu(e){return li(e)&&e.embedded}function U3(e){return"jsBridgeKey"in e}function p1(e){return"bridgeUrl"in e}const D3=[{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.tonapi.io/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://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://app.delabwallet.com/logo_black.png",about_url:"https://delabwallet.com",bridge:[{type:"js",key:"dewallet"}],platforms:["chrome"]},{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"]}];class Zf{constructor(t){this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource="https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",t!=null&&t.walletsListSource&&(this.walletsListSource=t.walletsListSource),t!=null&&t.cacheTTLMs&&(this.cacheTTLMs=t.cacheTTLMs)}getWallets(){return me(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 me(this,void 0,void 0,function*(){const n=(yield this.getWallets()).filter(eu);return n.length!==1?null:n[0]})}fetchWalletsList(){return me(this,void 0,void 0,function*(){let t=[];try{if(t=yield(yield fetch(this.walletsListSource)).json(),!Array.isArray(t))throw new h1("Wrong wallets list format, wallets list must be an array.");const o=t.filter(i=>!this.isCorrectWalletConfigDTO(i));o.length&&($r(`Wallet(s) ${o.map(i=>i.name).join(", ")} config format is wrong. They were removed from the wallets list.`),t=t.filter(i=>this.isCorrectWalletConfigDTO(i)))}catch(r){$r(r),t=D3}let n=[];try{n=qn.getCurrentlyInjectedWallets()}catch(r){$r(r)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(t),n)})}walletConfigDTOListToWalletConfigList(t){return t.map(n=>{const o={name:n.name,appName:n.app_name,imageUrl:n.image,aboutUrl:n.about_url,tondns:n.tondns,platforms:n.platforms};return n.bridge.forEach(i=>{if(i.type==="sse"&&(o.bridgeUrl=i.url,o.universalLink=n.universal_url,o.deepLink=n.deepLink),i.type==="js"){const l=i.key;o.jsBridgeKey=l,o.injected=qn.isWalletInjected(l),o.embedded=qn.isInsideWalletBrowser(l)}}),o})}mergeWalletsLists(t,n){return[...new Set(t.concat(n).map(o=>o.name)).values()].map(o=>{const i=t.find(s=>s.name===o),l=n.find(s=>s.name===o);return Object.assign(Object.assign({},i&&Object.assign({},i)),l&&Object.assign({},l))})}isCorrectWalletConfigDTO(t){if(!t||typeof t!="object")return!1;const n="name"in t,r="app_name"in t,o="image"in t,i="about_url"in t,l="platforms"in t;if(!n||!o||!i||!l||!r||!t.platforms||!Array.isArray(t.platforms)||!t.platforms.length||!("bridge"in t)||!Array.isArray(t.bridge)||!t.bridge.length)return!1;const s=t.bridge;if(s.some(d=>!d||typeof d!="object"||!("type"in d)))return!1;const a=s.find(d=>d.type==="sse");if(a&&(!("url"in a)||!a.url||!t.universal_url))return!1;const u=s.find(d=>d.type==="js");return!(u&&(!("key"in u)||!u.key))}}class dc extends Re{get info(){return"Wallet doesn't support requested feature method."}constructor(...t){super(...t),Object.setPrototypeOf(this,dc.prototype)}}function F3(e,t){const n=e.includes("SendTransaction"),r=e.find(o=>o&&typeof o=="object"&&o.name==="SendTransaction");if(!n&&!r)throw new dc("Wallet doesn't support SendTransaction feature.");if(r&&r.maxMessages!==void 0){if(r.maxMessages{var s,a;return{address:(s=l.address)!==null&&s!==void 0?s:null,amount:(a=l.amount)!==null&&a!==void 0?a:null}})}}function Kg(e,t,n){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},fl(e,t)),g1(t,n))}function qg(e,t,n,r){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc},fl(e,t)),g1(t,n))}function Qg(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:o??null},fl(e,t)),g1(t,n))}function Zg(e,t,n){return Object.assign({type:"disconnection",scope:n},fl(e,t))}class Gg{constructor(){this.window=Xc()}dispatchEvent(t,n){var r;return me(this,void 0,void 0,function*(){const o=new CustomEvent(t,{detail:n});(r=this.window)===null||r===void 0||r.dispatchEvent(o)})}addEventListener(t,n,r){var o;return me(this,void 0,void 0,function*(){return(o=this.window)===null||o===void 0||o.addEventListener(t,n,r),()=>{var i;return(i=this.window)===null||i===void 0?void 0:i.removeEventListener(t,n)}})}}class H3{constructor(t){var n;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=(n=t==null?void 0:t.eventDispatcher)!==null&&n!==void 0?n:new Gg,this.tonConnectSdkVersion=t.tonConnectSdkVersion,this.init().catch()}get version(){return yi({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return me(this,void 0,void 0,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch{}})}setRequestVersionHandler(){return me(this,void 0,void 0,function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",()=>me(this,void 0,void 0,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",Bg(this.tonConnectSdkVersion))}))})}requestTonConnectUiVersion(){return me(this,void 0,void 0,function*(){return new Promise((t,n)=>me(this,void 0,void 0,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",r=>{t(r.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",Og())}catch(r){n(r)}}))})}dispatchUserActionEvent(t){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${t.type}`,t).catch()}catch{}}trackConnectionStarted(...t){try{const n=Ug(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackConnectionCompleted(...t){try{const n=Dg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackConnectionError(...t){try{const n=Fg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringStarted(...t){try{const n=Hg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringCompleted(...t){try{const n=zg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringError(...t){try{const n=Vg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackDisconnection(...t){try{const n=Zg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSentForSignature(...t){try{const n=Kg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSigned(...t){try{const n=qg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSigningFailed(...t){try{const n=Qg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}}const z3="3.0.3";class pi{constructor(t){if(this.walletsList=new Zf,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(t==null?void 0:t.manifestUrl)||$3(),storage:(t==null?void 0:t.storage)||new B3},this.walletsList=new Zf({walletsListSource:t==null?void 0:t.walletsListSource,cacheTTLMs:t==null?void 0:t.walletsListCacheTTLMs}),this.tracker=new H3({eventDispatcher:t==null?void 0:t.eventDispatcher,tonConnectSdkVersion:z3}),!this.dappSettings.manifestUrl)throw new u1("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 xs(this.dappSettings.storage),t!=null&&t.disableAutoPauseConnection||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return this._wallet!==null}get account(){var t;return((t=this._wallet)===null||t===void 0?void 0:t.account)||null}get wallet(){return this._wallet}set wallet(t){this._wallet=t,this.statusChangeSubscriptions.forEach(n=>n(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(t,n){return this.statusChangeSubscriptions.push(t),n&&this.statusChangeErrorSubscriptions.push(n),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(r=>r!==t),n&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(r=>r!==n))}}connect(t,n){var r,o;const i={};if(typeof n=="object"&&"tonProof"in n&&(i.request=n),typeof n=="object"&&("openingDeadlineMS"in n||"signal"in n||"request"in n)&&(i.request=n==null?void 0:n.request,i.openingDeadlineMS=n==null?void 0:n.openingDeadlineMS,i.signal=n==null?void 0:n.signal),this.connected)throw new f1;const l=br(i==null?void 0:i.signal);if((r=this.abortController)===null||r===void 0||r.abort(),this.abortController=l,l.signal.aborted)throw new Re("Connection was aborted");return(o=this.provider)===null||o===void 0||o.closeConnection(),this.provider=this.createProvider(t),l.signal.addEventListener("abort",()=>{var s;(s=this.provider)===null||s===void 0||s.closeConnection(),this.provider=null}),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest(i==null?void 0:i.request),{openingDeadlineMS:i==null?void 0:i.openingDeadlineMS,signal:l.signal})}restoreConnection(t){var n,r;return me(this,void 0,void 0,function*(){this.tracker.trackConnectionRestoringStarted();const o=br(t==null?void 0:t.signal);if((n=this.abortController)===null||n===void 0||n.abort(),this.abortController=o,o.signal.aborted){this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}const[i,l]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(o.signal.aborted){this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}let s=null;try{switch(i){case"http":s=yield Cs.fromStorage(this.dappSettings.storage);break;case"injected":s=yield qn.fromStorage(this.dappSettings.storage);break;default:if(l)s=this.createProvider(l);else return}}catch{this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),s==null||s.closeConnection(),s=null;return}if(o.signal.aborted){s==null||s.closeConnection(),this.tracker.trackConnectionRestoringError("Connection restoring was aborted");return}if(!s){$r("Provider is not restored"),this.tracker.trackConnectionRestoringError("Provider is not restored");return}(r=this.provider)===null||r===void 0||r.closeConnection(),this.provider=s,s.listen(this.walletEventsListener.bind(this));const a=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),s==null||s.closeConnection(),s=null};return o.signal.addEventListener("abort",a),yield Ql(u=>me(this,void 0,void 0,function*(){yield s==null?void 0:s.restoreConnection({openingDeadlineMS:t==null?void 0:t.openingDeadlineMS,signal:u.signal}),o.signal.removeEventListener("abort",a),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:5e3,signal:t==null?void 0:t.signal})})}sendTransaction(t,n){return me(this,void 0,void 0,function*(){const r={};typeof n=="function"?r.onRequestSent=n:(r.onRequestSent=n==null?void 0:n.onRequestSent,r.signal=n==null?void 0:n.signal);const o=br(r==null?void 0:r.signal);if(o.signal.aborted)throw new Re("Transaction sending was aborted");this.checkConnection(),F3(this.wallet.device.features,{requiredMessagesNumber:t.messages.length}),this.tracker.trackTransactionSentForSignature(this.wallet,t);const{validUntil:i}=t,l=w3(t,["validUntil"]),s=t.from||this.account.address,a=t.network||this.account.chain,u=yield this.provider.sendRequest(pa.convertToRpcRequest(Object.assign(Object.assign({},l),{valid_until:i,from:s,network:a})),{onRequestSent:r.onRequestSent,signal:o.signal});if(pa.isError(u))return this.tracker.trackTransactionSigningFailed(this.wallet,t,u.error.message,u.error.code),pa.parseAndThrowError(u);const d=pa.convertFromRpcResponse(u);return this.tracker.trackTransactionSigned(this.wallet,t,d),d})}disconnect(t){var n;return me(this,void 0,void 0,function*(){if(!this.connected)throw new uc;const r=br(t==null?void 0:t.signal),o=this.abortController;if(this.abortController=r,r.signal.aborted)throw new Re("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield(n=this.provider)===null||n===void 0?void 0:n.disconnect({signal:r.signal}),o==null||o.abort()})}pauseConnection(){var t;((t=this.provider)===null||t===void 0?void 0:t.type)==="http"&&this.provider.pause()}unPauseConnection(){var t;return((t=this.provider)===null||t===void 0?void 0:t.type)!=="http"?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const t=N3();if(t)try{t.addEventListener("visibilitychange",()=>{t.hidden?this.pauseConnection():this.unPauseConnection().catch()})}catch(n){$r("Cannot subscribe to the document.visibilitychange: ",n)}}createProvider(t){let n;return!Array.isArray(t)&&x3(t)?n=new qn(this.dappSettings.storage,t.jsBridgeKey):n=new Cs(this.dappSettings.storage,t),n.listen(this.walletEventsListener.bind(this)),n}walletEventsListener(t){switch(t.event){case"connect":this.onWalletConnected(t.payload);break;case"connect_error":this.onWalletConnectError(t.payload);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(t){const n=t.items.find(i=>i.name==="ton_addr"),r=t.items.find(i=>i.name==="ton_proof");if(!n)throw new Re("ton_addr connection item was not found");const o={device:t.device,provider:this.provider.type,account:{address:n.address,chain:n.network,walletStateInit:n.walletStateInit,publicKey:n.publicKey}};r&&(o.connectItems={tonProof:r}),this.wallet=o,this.tracker.trackConnectionCompleted(o)}onWalletConnectError(t){const n=b3.parseError(t);if(this.statusChangeErrorSubscriptions.forEach(r=>r(n)),an(n),this.tracker.trackConnectionError(t.message,t.code),n instanceof Zc||n instanceof Qc)throw $r(n),n}onWalletDisconnected(t){this.tracker.trackDisconnection(this.wallet,t),this.wallet=null}checkConnection(){if(!this.connected)throw new uc}createConnectRequest(t){const n=[{name:"ton_addr"}];return t!=null&&t.tonProof&&n.push({name:"ton_proof",payload:t.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:n}}}pi.walletsList=new Zf;pi.isWalletInjected=e=>qn.isWalletInjected(e);pi.isInsideWalletBrowser=e=>qn.isInsideWalletBrowser(e);const V3=81,K3=128;function Yg(e,t=!1){const{wc:n,hex:r}=q3(e);let o=V3;t&&(o|=K3);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const l=new Uint8Array(36);return l.set(i),l.set(Q3(i),34),c1.encode(l).replace(/\+/g,"-").replace(/\//g,"_")}function q3(e){if(!e.includes(":"))throw new Wi(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(t.length!==2)throw new Wi(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(n!==0&&n!==-1)throw new Wi(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if((r==null?void 0:r.length)!==64)throw new Wi(`Wrong address ${e}. Hex part must be 64bytes length, but ${r==null?void 0:r.length} received.`);return{wc:n,hex:Z3(r)}}function Q3(e){let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let i=128;for(;i>0;)n<<=1,o&i&&(n+=1),i>>=1,n>65535&&(n&=65535,n^=4129)}return new Uint8Array([Math.floor(n/256),n%256])}const Gf={};for(let e=0;e<=255;e++){let t=e.toString(16);t.length<2&&(t="0"+t),Gf[t]=e}function Z3(e){e=e.toLowerCase();const t=e.length;if(t%2!==0)throw new fc("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;o0?ut.length===2?typeof ut[1]==s?this[ut[0]]=ut[1].call(this,yn):this[ut[0]]=ut[1]:ut.length===3?typeof ut[1]===s&&!(ut[1].exec&&ut[1].test)?this[ut[0]]=yn?ut[1].call(this,yn,ut[2]):r:this[ut[0]]=yn?yn.replace(ut[1],ut[2]):r:ut.length===4&&(this[ut[0]]=yn?ut[3].call(this,yn.replace(ut[1],ut[2])):r):this[ut]=yn||r;Be+=2}},Me=function($e,ct){for(var Be in ct)if(typeof ct[Be]===u&&ct[Be].length>0){for(var bt=0;bt2&&(Le[h]="iPad",Le[C]=k),Le},this.getEngine=function(){var Le={};return Le[S]=r,Le[P]=r,kt.call(Le,bt,Vn.engine),Le},this.getOS=function(){var Le={};return Le[S]=r,Le[P]=r,kt.call(Le,bt,Vn.os),ut&&!Le[S]&&dn&&dn.platform&&dn.platform!="Unknown"&&(Le[S]=dn.platform.replace(/chrome os/i,q).replace(/macos/i,F)),Le},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 bt},this.setUA=function(Le){return bt=typeof Le===d&&Le.length>A?qe(Le,A):Le,this},this.setUA(bt),this};rn.VERSION=o,rn.BROWSER=X([S,P,p]),rn.CPU=X([b]),rn.DEVICE=X([h,_,C,g,w,E,k,$,N]),rn.ENGINE=rn.OS=X([S,P]),e.exports&&(t=e.exports=rn),t.UAParser=rn;var ln=typeof n!==a&&(n.jQuery||n.Zepto);if(ln&&!ln.ua){var jn=new rn;ln.ua=jn.getResult(),ln.ua.get=function(){return jn.getUA()},ln.ua.set=function($e){jn.setUA($e);var ct=jn.getResult();for(var Be in ct)ln.ua[Be]=ct[Be]}}})(typeof window=="object"?window:g2)})(Yf,Yf.exports);var G3=Yf.exports;const Y3=sl(G3);var J3=function(t){return X3(t)&&!e6(t)};function X3(e){return!!e&&typeof e=="object"}function e6(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||r6(e)}var t6=typeof Symbol=="function"&&Symbol.for,n6=t6?Symbol.for("react.element"):60103;function r6(e){return e.$$typeof===n6}function o6(e){return Array.isArray(e)?[]:{}}function bs(e,t){return t.clone!==!1&&t.isMergeableObject(e)?nl(o6(e),e,t):e}function i6(e,t,n){return e.concat(t).map(function(r){return bs(r,n)})}function l6(e,t){if(!t.customMerge)return nl;var n=t.customMerge(e);return typeof n=="function"?n:nl}function s6(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function sh(e){return Object.keys(e).concat(s6(e))}function Jg(e,t){try{return t in e}catch{return!1}}function a6(e,t){return Jg(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function c6(e,t,n){var r={};return n.isMergeableObject(e)&&sh(e).forEach(function(o){r[o]=bs(e[o],n)}),sh(t).forEach(function(o){a6(e,o)||(Jg(e,o)&&n.isMergeableObject(t[o])?r[o]=l6(o,n)(e[o],t[o],n):r[o]=bs(t[o],n))}),r}function nl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||i6,n.isMergeableObject=n.isMergeableObject||J3,n.cloneUnlessOtherwiseSpecified=bs;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):c6(e,t,n):bs(t,n)}nl.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return nl(r,o,n)},{})};var u6=nl,f6=u6;const d6=sl(f6);var Xg={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;lt in e?p6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_t=(e,t)=>{for(var n in t||(t={}))m6.call(t,n)&&Jf(e,n,t[n]);if(ah)for(var n of ah(t))y6.call(t,n)&&Jf(e,n,t[n]);return e},nr=(e,t)=>g6(e,v6(t)),Ie=(e,t,n)=>(Jf(e,typeof t!="symbol"?t+"":t,n),n),St=(e,t,n)=>new Promise((r,o)=>{var i=a=>{try{s(n.next(a))}catch(u){o(u)}},l=a=>{try{s(n.throw(a))}catch(u){o(u)}},s=a=>a.done?r(a.value):Promise.resolve(a.value).then(i,l);s((n=n.apply(e,t)).next())}),ch,uh,fh,dh,hh,ph,gh,vh;const Wt={};function w6(e){Wt.context=e}const x6=(e,t)=>e===t,Er=Symbol("solid-proxy"),Xf=Symbol("solid-track"),hc={equals:x6};let ev=lv;const ao=1,pc=2,tv={owned:null,cleanups:null,context:null,owner:null},Uu={};var un=null;let si=null,Ut=null,In=null,Jr=null,v1=0;function Gl(e,t){const n=Ut,r=un,o=e.length===0,i=o?tv:{owned:null,cleanups:null,context:null,owner:t===void 0?r:t},l=o?e:()=>e(()=>mn(()=>ou(i)));un=i,Ut=null;try{return Oo(l,!0)}finally{Ut=n,un=r}}function Oe(e,t){t=t?Object.assign({},hc,t):hc;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(o=o(n.value)),iv(n,o));return[ov.bind(n),r]}function gc(e,t,n){const r=ru(e,t,!0,ao);dl(r)}function it(e,t,n){const r=ru(e,t,!1,ao);dl(r)}function vn(e,t,n){ev=P6;const r=ru(e,t,!1,ao);r.user=!0,Jr?Jr.push(r):dl(r)}function pe(e,t,n){n=n?Object.assign({},hc,n):hc;const r=ru(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,dl(r),ov.bind(r)}function C6(e,t,n){let r,o,i;arguments.length===2&&typeof t=="object"||arguments.length===1?(r=!0,o=e,i={}):(r=e,o=t,i={});let l=null,s=Uu,a=null,u=!1,d="initialValue"in i,p=typeof r=="function"&&pe(r);const h=new Set,[S,C]=(i.storage||Oe)(i.initialValue),[_,P]=Oe(void 0),[b,g]=Oe(void 0,{equals:!1}),[w,k]=Oe(d?"ready":"unresolved");if(Wt.context){a=`${Wt.context.id}${Wt.context.count++}`;let R;i.ssrLoadFrom==="initial"?s=i.initialValue:Wt.load&&(R=Wt.load(a))&&(s=R[0])}function E(R,O,j,M){return l===R&&(l=null,d=!0,(R===s||O===s)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(M,{value:O})),s=Uu,$(O,j)),O}function $(R,O){Oo(()=>{O===void 0&&C(()=>R),k(O!==void 0?"errored":"ready"),P(O);for(const j of h.keys())j.decrement();h.clear()},!1)}function N(){const R=k6,O=S(),j=_();if(j!==void 0&&!l)throw j;return Ut&&!Ut.user&&R&&gc(()=>{b(),l&&(R.resolved||h.has(R)||(R.increment(),h.add(R)))}),O}function A(R=!0){if(R!==!1&&u)return;u=!1;const O=p?p():r;if(O==null||O===!1){E(l,mn(S));return}const j=s!==Uu?s:mn(()=>o(O,{value:S(),refetching:R}));return typeof j!="object"||!(j&&"then"in j)?(E(l,j,void 0,O),j):(l=j,u=!0,queueMicrotask(()=>u=!1),Oo(()=>{k(d?"refreshing":"pending"),g()},!1),j.then(M=>E(j,M,void 0,O),M=>E(j,void 0,av(M),O)))}return Object.defineProperties(N,{state:{get:()=>w()},error:{get:()=>_()},loading:{get(){const R=w();return R==="pending"||R==="refreshing"}},latest:{get(){if(!d)return N();const R=_();if(R&&!l)throw R;return S()}}}),p?gc(()=>A(!1)):A(!1),[N,{refetch:A,mutate:C}]}function nv(e){return Oo(e,!1)}function mn(e){if(Ut===null)return e();const t=Ut;Ut=null;try{return e()}finally{Ut=t}}function b6(e,t,n){const r=Array.isArray(e);let o;return i=>{let l;if(r){l=Array(e.length);for(let a=0;at(l,o,i));return o=l,s}}function S6(e){vn(()=>mn(e))}function Un(e){return un===null||(un.cleanups===null?un.cleanups=[e]:un.cleanups.push(e)),e}function rv(){return Ut}function _6(){return un}function tu(e,t){const n=Symbol("context");return{id:n,Provider:L6(n),defaultValue:e}}function Dn(e){let t;return(t=uv(un,e.id))!==void 0?t:e.defaultValue}function nu(e){const t=pe(e),n=pe(()=>ed(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}let k6;function ov(){const e=si;if(this.sources&&(this.state||e))if(this.state===ao||e)dl(this);else{const t=In;In=null,Oo(()=>mc(this),!1),In=t}if(Ut){const t=this.observers?this.observers.length:0;Ut.sources?(Ut.sources.push(this),Ut.sourceSlots.push(t)):(Ut.sources=[this],Ut.sourceSlots=[t]),this.observers?(this.observers.push(Ut),this.observerSlots.push(Ut.sources.length-1)):(this.observers=[Ut],this.observerSlots=[Ut.sources.length-1])}return this.value}function iv(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&Oo(()=>{for(let o=0;o1e6)throw In=[],new Error},!1)),t}function dl(e){if(!e.fn)return;ou(e);const t=un,n=Ut,r=v1;Ut=un=e,E6(e,e.value,r),Ut=n,un=t}function E6(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=ao,e.owned&&e.owned.forEach(ou),e.owned=null),cv(o)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?iv(e,r):e.value=r,e.updatedAt=n)}function ru(e,t,n,r=ao,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:un,context:null,pure:n};return un===null||un!==tv&&(un.owned?un.owned.push(i):un.owned=[i]),i}function vc(e){const t=si;if(e.state===0||t)return;if(e.state===pc||t)return mc(e);if(e.suspense&&mn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;r--)if(e=n[r],e.state===ao||t)dl(e);else if(e.state===pc||t){const o=In;In=null,Oo(()=>mc(e,n[0]),!1),In=o}}function Oo(e,t){if(In)return e();let n=!1;t||(In=[]),Jr?n=!0:Jr=[],v1++;try{const r=e();return T6(n),r}catch(r){n||(Jr=null),In=null,cv(r)}}function T6(e){if(In&&(lv(In),In=null),e)return;const t=Jr;Jr=null,t.length&&Oo(()=>ev(t),!1)}function lv(e){for(let t=0;to=mn(()=>(un.context={[e]:r.value},nu(()=>r.children))),void 0),o}}const A6=Symbol("fallback");function mh(e){for(let t=0;t1?[]:null;return Un(()=>mh(i)),()=>{let a=e()||[],u,d;return a[Xf],mn(()=>{let h=a.length,S,C,_,P,b,g,w,k,E;if(h===0)l!==0&&(mh(i),i=[],r=[],o=[],l=0,s&&(s=[])),n.fallback&&(r=[A6],o[0]=Gl($=>(i[0]=$,n.fallback())),l=1);else if(l===0){for(o=new Array(h),d=0;d=g&&k>=g&&r[w]===a[k];w--,k--)_[k]=o[w],P[k]=i[w],s&&(b[k]=s[w]);for(S=new Map,C=new Array(k+1),d=k;d>=g;d--)E=a[d],u=S.get(E),C[d]=u===void 0?-1:u,S.set(E,d);for(u=g;u<=w;u++)E=r[u],d=S.get(E),d!==void 0&&d!==-1?(_[d]=o[u],P[d]=i[u],s&&(b[d]=s[u]),d=C[d],S.set(E,d)):i[u]();for(d=g;de(t||{}))}function ga(){return!0}const td={get(e,t,n){return t===Er?n:e.get(t)},has(e,t){return t===Er?!0:e.has(t)},set:ga,deleteProperty:ga,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ga,deleteProperty:ga}},ownKeys(e){return e.keys()}};function Du(e){return(e=typeof e=="function"?e():e)?e:{}}function jr(...e){let t=!1;for(let r=0;r=0;o--){const i=Du(e[o])[r];if(i!==void 0)return i}},has(r){for(let o=e.length-1;o>=0;o--)if(r in Du(e[o]))return!0;return!1},keys(){const r=[];for(let o=0;o=0;r--)if(e[r]){const o=Object.getOwnPropertyDescriptors(e[r]);for(const i in o)i in n||Object.defineProperty(n,i,{enumerable:!0,get(){for(let l=e.length-1;l>=0;l--){const s=(e[l]||{})[i];if(s!==void 0)return s}}})}return n}function m1(e,...t){const n=new Set(t.flat());if(Er in e){const o=t.map(i=>new Proxy({get(l){return i.includes(l)?e[l]:void 0},has(l){return i.includes(l)&&l in e},keys(){return i.filter(l=>l in e)}},td));return o.push(new Proxy({get(i){return n.has(i)?void 0:e[i]},has(i){return n.has(i)?!1:i in e},keys(){return Object.keys(e).filter(i=>!n.has(i))}},td)),o}const r=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(r).filter(o=>!n.has(o))),t.map(o=>{const i={};for(let l=0;le.fallback};return pe(R6(()=>e.each,e.children,t||void 0))}function Fe(e){let t=!1;const n=e.keyed,r=pe(()=>e.when,void 0,{equals:(o,i)=>t?o===i:!o==!i});return pe(()=>{const o=r();if(o){const i=e.children,l=typeof i=="function"&&i.length>0;return t=n||l,l?mn(()=>i(o)):i}return e.fallback},void 0,void 0)}function js(e){let t=!1,n=!1;const r=(l,s)=>l[0]===s[0]&&(t?l[1]===s[1]:!l[1]==!s[1])&&l[2]===s[2],o=nu(()=>e.children),i=pe(()=>{let l=o();Array.isArray(l)||(l=[l]);for(let s=0;s{const[l,s,a]=i();if(l<0)return e.fallback;const u=a.children,d=typeof u=="function"&&u.length>0;return t=n||d,d?mn(()=>u(s)):u},void 0,void 0)}function bn(e){return e}const M6=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],I6=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...M6]),N6=new Set(["innerHTML","textContent","innerText","children"]),$6=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),yh=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),j6=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),W6=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"]),O6={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function B6(e,t,n){let r=n.length,o=t.length,i=r,l=0,s=0,a=t[o-1].nextSibling,u=null;for(;ld-s){const C=t[l];for(;s{o=i,t===document?e():Mn(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function st(e,t,n){if(typeof window>"u")return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function D6(e,t=window.document){const n=t[wh]||(t[wh]=new Set);for(let r=0,o=e.length;ro.call(e,n[1],i))}else e.addEventListener(t,n)}function z6(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,l;for(i=0,l=o.length;io.children=Ss(e,t.children,o.children)),it(()=>t.ref&&t.ref(e)),it(()=>K6(e,t,n,!0,o,!0)),o}function Yl(e,t,n){return mn(()=>e(t,n))}function Mn(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Ss(e,t,r,n);it(o=>Ss(e,t(),o,n),r)}function K6(e,t,n,r,o={},i=!1){t||(t={});for(const l in o)if(!(l in t)){if(l==="children")continue;o[l]=Ch(e,l,null,o[l],n,i)}for(const l in t){if(l==="children")continue;const s=t[l];o[l]=Ch(e,l,s,o[l],n,i)}}function q6(e){let t,n;return!Wt.context||!(t=Wt.registry.get(n=G6()))?e.cloneNode(!0):(Wt.completed&&Wt.completed.add(t),Wt.registry.delete(n),t)}function Q6(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function xh(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o-1&&O6[t.split(":")[0]];u?F6(e,u,t,n):Pe(e,$6[t]||t,n)}return n}function Z6(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(){return n||document}}),Wt.registry&&!Wt.done&&(Wt.done=!0,document.querySelectorAll("[id^=pl-]").forEach(r=>{for(;r&&r.nodeType!==8&&r.nodeValue!=="pl-"+e;){let o=r.nextSibling;r.remove(),r=o}r&&r.remove()}));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(o!==void 0?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function Ss(e,t,n,r,o){for(Wt.context&&!n&&(n=[...e.childNodes]);typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(Wt.context)return n;if(i==="number"&&(t=t.toString()),l){let s=n[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),n=Si(e,n,r,s)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean"){if(Wt.context)return n;n=Si(e,n,r)}else{if(i==="function")return it(()=>{let s=t();for(;typeof s=="function";)s=s();n=Ss(e,s,n,r)}),()=>n;if(Array.isArray(t)){const s=[],a=n&&Array.isArray(n);if(nd(s,t,n,o))return it(()=>n=Ss(e,s,n,r,!0)),()=>n;if(Wt.context){if(!s.length)return n;for(let u=0;u=0;l--){const s=t[l];if(o!==s){const a=s.parentNode===e;!i&&!l?a?e.replaceChild(o,s):e.insertBefore(o,n):a&&s.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}function G6(){const e=Wt.context;return`${e.id}${e.count++}`}const Y6="http://www.w3.org/2000/svg";function dv(e,t=!1){return t?document.createElementNS(Y6,e):document.createElement(e)}function hv(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(Wt.context){const[i,l]=Oe(!1);return queueMicrotask(()=>l(!0)),()=>i()&&e.children}else return()=>e.children}if(r instanceof HTMLHeadElement){const[i,l]=Oe(!1),s=()=>l(!0);Gl(a=>Mn(r,()=>i()?a():o()(),null)),Un(()=>{Wt.context?queueMicrotask(s):s()})}else{const i=dv(e.isSVG?"g":"div",e.isSVG),l=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get(){return n.parentNode},configurable:!0}),Mn(l,o()),r.appendChild(i),e.ref&&e.ref(i),Un(()=>r.removeChild(i))}return n}function rl(e){const[t,n]=m1(e,["component"]),r=pe(()=>t.component);return pe(()=>{const o=r();switch(typeof o){case"function":return mn(()=>o(n));case"string":const i=W6.has(o),l=Wt.context?q6():dv(o,i);return fv(l,n,i),l}})}var Ft=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(Ft||{});let J6={data:""},X6=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||J6,e8=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,t8=/\/\*[^]*?\*\/| +/g,Sh=/\n+/g,Jo=(e,t)=>{let n="",r="",o="";for(let i in e){let l=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+l+";":r+=i[1]=="f"?Jo(l,i):i+"{"+Jo(l,i[1]=="k"?"":t)+"}":typeof l=="object"?r+=Jo(l,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,s):s?s+" "+a:a)):i):l!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Jo.p?Jo.p(i,l):i+":"+l+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Hr={},pv=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+pv(e[n]);return t}return e},n8=(e,t,n,r,o)=>{let i=pv(e),l=Hr[i]||(Hr[i]=(a=>{let u=0,d=11;for(;u>>0;return"go"+d})(i));if(!Hr[l]){let a=i!==e?e:(u=>{let d,p,h=[{}];for(;d=e8.exec(u.replace(t8,""));)d[4]?h.shift():d[3]?(p=d[3].replace(Sh," ").trim(),h.unshift(h[0][p]=h[0][p]||{})):h[0][d[1]]=d[2].replace(Sh," ").trim();return h[0]})(e);Hr[l]=Jo(o?{["@keyframes "+l]:a}:a,n?"":"."+l)}let s=n&&Hr.g?Hr.g:null;return n&&(Hr.g=Hr[l]),((a,u,d,p)=>{p?u.data=u.data.replace(p,a):u.data.indexOf(a)===-1&&(u.data=d?a+u.data:u.data+a)})(Hr[l],t,r,s),l},r8=(e,t,n)=>e.reduce((r,o,i)=>{let l=t[i];if(l&&l.call){let s=l(n),a=s&&s.props&&s.props.className||/^go/.test(s)&&s;l=a?"."+a:s&&typeof s=="object"?s.props?"":Jo(s,""):s===!1?"":s}return r+o+(l??"")},"");function oo(e){let t=this||{},n=e.call?e(t.p):e;return n8(n.unshift?n.raw?r8(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,X6(t.target),t.g,t.o,t.k)}oo.bind({g:1});let o8=oo.bind({k:1});const w1=tu();function i8(e){return y(w1.Provider,{value:e.theme,get children(){return e.children}})}function Lt(){return Dn(w1)}function gv(e){let t=this||{};return(...n)=>{const r=o=>{const i=Dn(w1),l=jr(o,{theme:i}),s=jr(l,{get class(){const S=l.class,C="class"in l&&/^go[0-9]+/.test(S);let _=oo.apply({target:t.target,o:C,p:l,g:t.g},n);return[S,_].filter(Boolean).join(" ")}}),[a,u]=m1(s,["as","theme"]),d=u,p=a.as||e;let h;return typeof p=="function"?h=p(d):t.g==1?(h=document.createElement(p),fv(h,d)):h=rl(jr({component:p},d)),h};return r.class=o=>mn(()=>oo.apply({target:t.target,p:o,g:t.g},n)),r}}const V=new Proxy(gv,{get(e,t){return e(t)}});function l8(){const e=gv.call({g:1},"div").apply(null,arguments);return function(n){return e(n),null}}const Kr="tc-root",x1="tc-disable-scroll",Fu="tc-using-mouse",s8=()=>{document.body.addEventListener("mousedown",()=>document.body.classList.add(Fu)),document.body.addEventListener("keydown",t=>{t.key==="Tab"&&document.body.classList.remove(Fu)});const e=l8` + ${Kr} * { + margin: 0; + padding: 0; + box-sizing: border-box; + + font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, Tahoma, Verdana, sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + -webkit-tap-highlight-color: transparent; + } + + ${Kr} img { + -webkit-user-select: none; + -webkit-touch-callout: none; + } + + ${Kr} *:focus { + outline: #08f auto 2px; + } + + ${Kr} li { + list-style: none; + } + + ${Kr} button { + outline: none; + } + + body.${x1} { + position: fixed; + overflow-y: scroll; + right: 0; + left: 0; + } + + body.${Fu} ${Kr} *:focus { + outline: none; + } +`;return y(e,{})};function a8(e){e[0]==="#"&&(e=e.slice(1));const t=parseInt(e,16),n=t>>16&255,r=t>>8&255,o=t&255;return[n,r,o].join(",")}function Ws(e,t){return e[0]==="#"&&(e=a8(e)),`rgba(${e}, ${t})`}function Wr(e){return e.toString()+"px"}const Il=class{constructor(){Ie(this,"storage",{})}static getInstance(){return Il.instance||(Il.instance=new Il),Il.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return(t=this.storage[e])!=null?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:(t=n[e])!=null?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};let vv=Il;Ie(vv,"instance");class Xt extends Re{constructor(...t){super(...t),Object.setPrototypeOf(this,Xt.prototype)}}function ja(...e){try{console.debug("[TON_CONNECT_UI]",...e)}catch{}}function c8(...e){try{console.error("[TON_CONNECT_UI]",...e)}catch{}}function u8(...e){try{console.warn("[TON_CONNECT_UI]",...e)}catch{}}function yc(e,t="_self"){ja("openLink",e,t),window.open(e,t,"noopener noreferrer")}function It(e){yc(e,"_blank")}function bo(e,t){const n=()=>{nt("safari")||Rr("android")&&nt("firefox")||t()},r=setTimeout(()=>n(),200);window.addEventListener("blur",()=>clearTimeout(r),{once:!0}),yc(e,"_self")}function f8(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?Ft.LIGHT:Ft.DARK}function d8(e){const t=n=>e(n.matches?Ft.DARK:Ft.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}function h8(){document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=Wr(-document.documentElement.scrollTop),document.body.classList.add(x1))}function p8(){document.body.classList.remove(x1),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto"}function g8(){document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart","")}function v8(){customElements.define(Kr,class extends HTMLElement{})}function mv(e){return St(this,null,function*(){yield new Promise(t=>requestAnimationFrame(t)),e()})}function m8(e){return St(this,null,function*(){return yield new Promise(t=>requestAnimationFrame(t)),e()})}function yv(e){document.readyState!=="complete"?window.addEventListener("load",()=>mv(()=>yv(e)),{once:!0}):e.forEach(t=>{const n=new window.Image;n.src=t})}function co(){if(typeof window<"u")return window}function C1(){if(y8())return localStorage;if(w8())throw new Xt("`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 vv.getInstance()}function y8(){try{return typeof localStorage<"u"}catch{return!1}}function w8(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null}function b1(){var e,t,n;const r=new Y3().getResult(),o=(e=r.os.name)==null?void 0:e.toLowerCase(),i=(t=r.device.model)==null?void 0:t.toLowerCase();let l;switch(!0){case i==="ipad":l="ipad";break;case o==="ios":l="ios";break;case o==="android":l="android";break;case o==="mac os":l="macos";break;case o==="linux":l="linux";break;case(o==null?void 0:o.includes("windows")):l="windows";break}const s=(n=r.browser.name)==null?void 0:n.toLowerCase();let a;switch(!0){case s==="chrome":a="chrome";break;case s==="firefox":a="firefox";break;case(s==null?void 0:s.includes("safari")):a="safari";break;case(s==null?void 0:s.includes("opera")):a="opera";break}return{os:l,browser:a}}function Rr(...e){return e.includes(b1().os)}function nt(...e){return e.includes(b1().browser)}function va(e,t){const n=new URL(e);return t+n.search}class x8{constructor(){Ie(this,"localStorage"),Ie(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=C1()}setWalletInfo(t){this.localStorage.setItem(this.storageKey,JSON.stringify(t))}getWalletInfo(){const t=this.localStorage.getItem(this.storageKey);return t?JSON.parse(t):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class C8{constructor(){Ie(this,"localStorage"),Ie(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=C1()}setPreferredWalletAppName(t){this.localStorage.setItem(this.storageKey,t)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class wv{constructor(){Ie(this,"localStorage"),Ie(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=C1()}setLastSelectedWalletInfo(t){this.localStorage.setItem(this.storageKey,JSON.stringify(t))}getLastSelectedWalletInfo(){const t=this.localStorage.getItem(this.storageKey);return t?JSON.parse(t):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}}const[rd,_h]=Oe({status:"closed",closeReason:null}),kh=pe(()=>rd().status==="opened"),[wc,Eh]=Oe({status:"closed",closeReason:null}),Th=pe(()=>wc().status==="opened"),b8=pe(()=>{const e=wc();return e.status==="opened"?e.walletInfo:null});let Oi=typeof window<"u"?new wv:void 0;const[S8,_8]=Oe((Oi==null?void 0:Oi.getLastSelectedWalletInfo())||null),Sn=e=>{Oi||(Oi=new wv),e?Oi.setLastSelectedWalletInfo(e):Oi.removeLastSelectedWalletInfo(),_8(e)},[qr,Bi]=Oe(null),k8={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"},E8={connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},T8={confirm:{header:"Open {{ name }} to confirm the transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction will be processed in a few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to your account."}},P8={walletOn:"Wallet On",recent:"Recent",installed:"Installed",popular:"Popular"},L8={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 QR code below with your phone’s or {{ name }}’s camera",continueIn:"Continue in {{ name }}…",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",continueInExtension:"Continue in {{ name }} browser extension…",dontHaveExtension:"Seems you don't have installed {{ name }} browser extension",getWallet:"Get {{ name }}",continueOnDesktop:"Continue in {{ name }} on desktop…",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 including 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 the blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications.",getAWallet:"Get a Wallet"}},A8={confirmTransaction:{header:"Confirm the transaction in {{ name }}",text:"It will only take a moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"},R8={common:k8,button:E8,notifications:T8,walletItem:P8,walletModal:L8,actionModal:A8},M8={close:"Закрыть",openWallet:"Открыть кошелёк",copyLink:"Копировать ссылку",linkCopied:"Ссылка скопирована",copied:"Ссылка скопирована",yourWallet:"Ваш кошелёк",retry:"Повторить",get:"Скачать",mobile:"Мобильный",browserExtension:"Расширение",desktop:"Десктоп"},I8={connectWallet:"Подключить кошелёк",dropdown:{copy:"Скопировать адрес",copied:"Адрес скопирован!",disconnect:"Отключить кошелёк"}},N8={confirm:{header:"Откройте {{ name }}, чтобы подтвердить транзакцию."},transactionSent:{header:"Транзакция отправлена",text:"Ваша транзакция будет обработана через несколько секунд."},transactionCanceled:{header:"Транзакция отменена",text:"Состояние вашего счёта не изменится."}},$8={walletOn:"Wallet в",recent:"Недавний",installed:"Установлен",popular:"Популярен"},j8={loading:"Кошельки загружаются",wallets:"Кошельки",mobileUniversalModal:{connectYourWallet:"Подключите кошелёк",openWalletOnTelegramOrSelect:"Подключите Wallet в Telegram или выберете кошелёк для подключения",openWalletOnTelegram:"Открыть Wallet в Telegram",openLink:"Открыть ссылку",scan:"Отсканируйте камерой вашего телефона"},desktopUniversalModal:{connectYourWallet:"Подключите кошелёк",scan:"Отсканируйте QR-код камерой вашего телефона",availableWallets:"Доступные кошельки"},mobileConnectionModal:{showQR:"Показать QR-код",scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueIn:"Продолжите в {{ name }}…",connectionDeclined:"Подключение отклонено"},desktopConnectionModal:{scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueInExtension:"Откройте браузерное расширение {{ name }}",dontHaveExtension:"Похоже, у вас не установлено браузерное расширение {{ name }}",getWallet:"Скачать {{ name }}",continueOnDesktop:"Откройте {{ name }} на компьютере…",openWalletOnTelegram:"Открыть Wallet в Telegram",connectionDeclined:"Подключение отклонено"},infoModal:{whatIsAWallet:"Что такое кошелёк?",secureDigitalAssets:"Надежное хранилище цифровых активов",walletProtects:"Кошелёк защищает ваши цифровые активы, включая TON, токены и предметы коллекционирования, и управляет ими.",controlIdentity:"Контроль своей личности Web3",manageIdentity:"Управляйте своей цифровой идентификацией и с легкостью получайте доступ к децентрализованным приложениям. Сохраняйте контроль над своими данными и безопасно участвуйте в экосистеме блокчейна.",effortlessCryptoTransactions:"Простые криптотранзакции",easilySend:"Легко отправляйте, получайте и отслеживайте свои криптовалюты. Оптимизируйте свои операции с помощью децентрализованных приложений.",getAWallet:"Скачать кошелёк"}},W8={confirmTransaction:{header:"Подтвердите действие в {{ name }}",text:"Это займет пару секунд."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"},O8={common:M8,button:I8,notifications:N8,walletItem:$8,walletModal:j8,actionModal:W8},B8={en:Ph(R8),ru:Ph(O8)};function Ph(e){const t="$",n=r=>{Object.entries(r).forEach(([o,i])=>{if(typeof i=="object"&&i)return n(i);if(typeof i=="string"){if(i[0]===t){const l=i.slice(1).split(".");let s=e;l.forEach(a=>{if(a in s)s=s[a];else throw new Error(`Cannot parse translations: there is no property ${a} in translation`)}),r[o]=s}i.slice(0,2)===`\\${t}`&&(r[o]=i.slice(1))}})};return n(e),e}const hl=tu(),od=Symbol("store-raw"),_s=Symbol("store-node"),U8=Symbol("store-name");function xv(e,t){let n=e[Er];if(!n&&(Object.defineProperty(e,Er,{value:n=new Proxy(e,H8)}),!Array.isArray(e))){const r=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let i=0,l=r.length;ie[Er][t]),n}function Cv(e){if(rv()){const t=S1(e);(t._||(t._=bv()))()}}function F8(e){return Cv(e),Reflect.ownKeys(e)}function bv(e){const[t,n]=Oe(e,{equals:!1,internal:!0});return t.$=n,t}const H8={get(e,t,n){if(t===od)return e;if(t===Er)return n;if(t===Xf)return Cv(e),n;const r=S1(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===_s||t==="__proto__")return i;if(!o){const l=Object.getOwnPropertyDescriptor(e,t);rv()&&(typeof i!="function"||e.hasOwnProperty(t))&&!(l&&l.get)&&(i=id(r,t,i)())}return xc(i)?xv(i):i},has(e,t){return t===od||t===Er||t===Xf||t===_s||t==="__proto__"?!0:(this.get(e,t,e),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:F8,getOwnPropertyDescriptor:D8};function Cc(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],i=e.length;n===void 0?delete e[t]:e[t]=n;let l=S1(e),s;(s=id(l,t,o))&&s.$(()=>n),Array.isArray(e)&&e.length!==i&&(s=id(l,"length",i))&&s.$(e.length),(s=l._)&&s.$()}function Sv(e,t){const n=Object.keys(t);for(let r=0;r1){r=t.shift();const l=typeof r,s=Array.isArray(e);if(Array.isArray(r)){for(let a=0;a1){Nl(e[r],t,[r].concat(n));return}o=e[r],n=[r].concat(n)}let i=t[0];typeof i=="function"&&(i=i(o,n),i===o)||r===void 0&&i==null||(i=ol(i),r===void 0||xc(o)&&xc(i)&&!Array.isArray(i)?Sv(o,i):Cc(e,r,i))}function _1(...[e,t]){const n=ol(e||{}),r=Array.isArray(n),o=xv(n);function i(...l){nv(()=>{r&&l.length===1?z8(n,l[0]):Nl(n,l)})}return[o,i]}const _v={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"}},V8={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"}};/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */function Lh(e){return Object.prototype.toString.call(e)==="[object Object]"}function K8(e){var t,n;return Lh(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Lh(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function Io(e,t){return e?d6(t,e,{arrayMerge:(r,o,i)=>o,isMergeableObject:K8}):t}const[q8,k1]=_1({theme:Ft.LIGHT,colors:_v,borderRadius:"m"}),kv={[Ft.LIGHT]:_v,[Ft.DARK]:V8},Ar={[Ft.LIGHT]:void 0,[Ft.DARK]:void 0};function Hu(e,t){t&&(Ar[Ft.DARK]=Io(t[Ft.DARK],Ar[Ft.DARK]),Ar[Ft.LIGHT]=Io(t[Ft.LIGHT],Ar[Ft.LIGHT])),k1({theme:e,colors:Io(Ar[e],kv[e])})}function Q8(e){k1({borderRadius:e})}function Z8(e){Ar[Ft.DARK]=Io(e[Ft.DARK],Ar[Ft.DARK]),Ar[Ft.LIGHT]=Io(e[Ft.LIGHT],Ar[Ft.LIGHT]),k1(t=>({colors:Io(Ar[t.theme],kv[t.theme])}))}const G8=V.div` + background-color: ${e=>e.theme.colors.background.secondary}; +`,wi=e=>{let t;const[n,r]=Oe(null);return vn(()=>{const o=new window.Image;return o.src=e.src,o.alt=e.alt||"",o.setAttribute("draggable","false"),e.class&&o.classList.add(e.class),o.complete?r(o):(o.addEventListener("load",()=>r(o)),()=>o.removeEventListener("load",()=>r(o)))}),[y(Fe,{get when(){return n()},get children(){return n()}}),y(Fe,{get when(){return!n()},get children(){return y(G8,{get class(){return e.class},ref(o){const i=t;typeof i=="function"?i(o):t=o}})}})]};let ai={};try{let e=location.hash.toString();ai=Y8(e)}catch{}let ks="unknown";ai!=null&&ai.tgWebAppPlatform&&(ks=(ch=ai.tgWebAppPlatform)!=null?ch:"unknown");if(ks==="unknown"){const e=co();ks=(dh=(fh=(uh=e==null?void 0:e.Telegram)==null?void 0:uh.WebApp)==null?void 0:fh.platform)!=null?dh:"unknown"}let bc="6.0";ai!=null&&ai.tgWebAppVersion&&(bc=ai.tgWebAppVersion);if(!bc){const e=co();bc=(gh=(ph=(hh=e==null?void 0:e.Telegram)==null?void 0:hh.WebApp)==null?void 0:ph.version)!=null?gh:"6.0"}function Gr(...e){return e.includes(ks)}function io(){var e;return ks!=="unknown"||!!((e=co())!=null&&e.TelegramWebviewProxy)}function E1(){Tv("web_app_expand",{})}function $l(e,t){const n=new URL(e);if(n.protocol!=="http:"&&n.protocol!=="https:"){if(t)return t();throw new Xt(`Url protocol is not supported: ${n}`)}if(n.hostname!=="t.me"){if(t)return t();throw new Xt(`Url host is not supported: ${n}`)}const r=n.pathname+n.search;Ev()||ey("6.1")?Tv("web_app_open_tg_link",{path_full:r}):It("https://t.me"+r)}function Ev(){try{const e=co();return e?e.parent!=null&&e!==e.parent:!1}catch{return!1}}function Tv(e,t){try{const n=co();if(!n)throw new Xt("Can't post event to parent window: window is not defined");if(n.TelegramWebviewProxy!==void 0)ja("postEvent",e,t),n.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(n.external&&"notify"in n.external)ja("postEvent",e,t),n.external.notify(JSON.stringify({eventType:e,eventData:t}));else if(Ev()){const r="*",o=JSON.stringify({eventType:e,eventData:t});ja("postEvent",e,t),n.parent.postMessage(o,r)}else throw new Xt("Can't post event to TMA")}catch(n){c8(`Can't post event to parent window: ${n}`)}}function Y8(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=Sc(e),t;let n=e.indexOf("?");if(n>=0){let o=e.substr(0,n);t._path=Sc(o),e=e.substr(n+1)}let r=J8(e);for(let o in r)t[o]=r[o];return t}function Sc(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch{return e}}function J8(e){let t={};if(!e.length)return t;let n=e.split("&"),r,o,i,l;for(r=0;rs?1:-1;return 0}function ey(e){return X8(bc,e)>=0}const ni={mobile:440,tablet:1020};function Ui(e){const t=co();if(!t)return e==="desktop";if(Gr("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>ni.tablet;case"tablet":return n>ni.mobile;default:case"mobile":return n<=ni.mobile||Rr("ios","android","ipad")}}function ar(e){switch(e){case"mobile":return`@media (max-width: ${ni.mobile}px)`;case"tablet":return`@media (max-width: ${ni.tablet}px) (min-width: ${ni.mobile}px)`;default:case"desktop":return`@media (min-width: ${ni.tablet}px)`}}const Os="@media (hover: none)",Bs="@media not all and (hover: none)",ty={m:"100vh",s:"8px",none:"0"},zu={s:.02,m:.04},ny=V.button` + display: ${e=>e.leftIcon||e.rightIcon?"flex":"inline-block"}; + gap: ${e=>e.leftIcon||e.rightIcon?"6px":"unset"}; + align-items: ${e=>e.leftIcon||e.rightIcon?"center":"unset"}; + justify-content: ${e=>e.leftIcon||e.rightIcon?"space-between":"unset"}; + background-color: ${e=>e.appearance==="flat"?"transparent":e.appearance==="secondary"?e.theme.colors.background.tint:Ws(e.theme.colors.accent,.12)}; + color: ${e=>e.appearance==="secondary"?e.theme.colors.text.primary:e.theme.colors.accent}; + + padding: ${e=>e.appearance==="flat"?"0":"9px 16px"}; + padding-left: ${e=>e.leftIcon&&e.appearance!=="flat"?"12px":"16px"}; + padding-right: ${e=>e.rightIcon&&e.appearance!=="flat"?"12px":"16px"}; + border: none; + border-radius: ${e=>ty[e.theme.borderRadius]}; + cursor: ${e=>e.disabled?"not-allowed":"pointer"}; + + font-size: 14px; + font-weight: 590; + line-height: 18px; + + transition: transform 0.125s ease-in-out; + + ${Bs} { + &:hover { + transform: ${e=>e.disabled?"unset":`scale(${1+zu[e.scale]})`}; + } + } + + &:active { + transform: ${e=>e.disabled?"unset":`scale(${1-zu[e.scale]})`}; + } + + ${Os} { + &:active { + transform: ${e=>e.disabled?"unset":`scale(${1-zu[e.scale]*2})`}; + } + } +`;function Us(e){const t=mn(()=>Object.keys(e).filter(r=>r.startsWith("data-"))),[n]=m1(e,t);return n}const tn=e=>{const t=Us(e);return y(ny,jr({get appearance(){return e.appearance||"primary"},get class(){return e.class},onClick:n=>{var r;return(r=e.onClick)==null?void 0:r.call(e,n)},onMouseEnter:n=>{var r;return(r=e.onMouseEnter)==null?void 0:r.call(e,n)},onMouseLeave:n=>{var r;return(r=e.onMouseLeave)==null?void 0:r.call(e,n)},ref(n){const r=e.ref;typeof r=="function"?r(n):e.ref=n},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[pe(()=>e.leftIcon),pe(()=>e.children),pe(()=>e.rightIcon)]}}))};function _c(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}const T1=e=>{let t,n=!0;const[r,o]=Oe(),[i,l]=Oe(),s=nu(()=>e.children),{onBeforeEnter:a,onEnter:u,onAfterEnter:d,onBeforeExit:p,onExit:h,onAfterExit:S}=e,C=pe(()=>{const b=e.name||"s";return{enterActiveClass:e.enterActiveClass||b+"-enter-active",enterClass:e.enterClass||b+"-enter",enterToClass:e.enterToClass||b+"-enter-to",exitActiveClass:e.exitActiveClass||b+"-exit-active",exitClass:e.exitClass||b+"-exit",exitToClass:e.exitToClass||b+"-exit-to"}});function _(b,g){if(!n||e.appear){let w=function(N){b&&(!N||N.target===b)&&(b.removeEventListener("transitionend",w),b.removeEventListener("animationend",w),b.classList.remove(...E),b.classList.remove(...$),nv(()=>{r()!==b&&o(b),i()===b&&l(void 0)}),d&&d(b),e.mode==="inout"&&P(b,g))};const k=C().enterClass.split(" "),E=C().enterActiveClass.split(" "),$=C().enterToClass.split(" ");a&&a(b),b.classList.add(...k),b.classList.add(...E),_c(()=>{b.classList.remove(...k),b.classList.add(...$),u&&u(b,()=>w()),(!u||u.length<2)&&(b.addEventListener("transitionend",w),b.addEventListener("animationend",w))})}g&&!e.mode?l(b):o(b)}function P(b,g){const w=C().exitClass.split(" "),k=C().exitActiveClass.split(" "),E=C().exitToClass.split(" ");if(!g.parentNode)return $();p&&p(g),g.classList.add(...w),g.classList.add(...k),_c(()=>{g.classList.remove(...w),g.classList.add(...E)}),h&&h(g,()=>$()),(!h||h.length<2)&&(g.addEventListener("transitionend",$),g.addEventListener("animationend",$));function $(N){(!N||N.target===g)&&(g.removeEventListener("transitionend",$),g.removeEventListener("animationend",$),g.classList.remove(...k),g.classList.remove(...E),r()===g&&o(void 0),S&&S(g),e.mode==="outin"&&_(b,g))}}return gc(b=>{for(t=s();typeof t=="function";)t=t();return mn(()=>(t&&t!==b&&(e.mode!=="outin"?_(t,b):n&&o(t)),b&&b!==t&&e.mode!=="inout"&&P(t,b),n=!1,t))}),[r,i]};function ma(e){const{top:t,bottom:n,left:r,right:o,width:i,height:l}=e.getBoundingClientRect(),s=e.parentNode.getBoundingClientRect();return{top:t-s.top,bottom:n,left:r-s.left,right:o,width:i,height:l}}const ry=e=>{const t=nu(()=>e.children),n=pe(()=>{const S=e.name||"s";return{enterActiveClass:e.enterActiveClass||S+"-enter-active",enterClass:e.enterClass||S+"-enter",enterToClass:e.enterToClass||S+"-enter-to",exitActiveClass:e.exitActiveClass||S+"-exit-active",exitClass:e.exitClass||S+"-exit",exitToClass:e.exitToClass||S+"-exit-to",moveClass:e.moveClass||S+"-move"}}),{onBeforeEnter:r,onEnter:o,onAfterEnter:i,onBeforeExit:l,onExit:s,onAfterExit:a}=e,[u,d]=Oe();let p=[],h=!0;return gc(()=>{const S=t(),C=[...S],_=new Set(S),P=new Set(p),b=n().enterClass.split(" "),g=n().enterActiveClass.split(" "),w=n().enterToClass.split(" "),k=n().exitClass.split(" "),E=n().exitActiveClass.split(" "),$=n().exitToClass.split(" ");for(let N=0;N{A.classList.remove(...b),A.classList.add(...w),o&&o(A,()=>R()),(!o||o.length<2)&&(A.addEventListener("transitionend",R),A.addEventListener("animationend",R))})}}for(let N=0;Nj!==A),d(p))};C.splice(N,0,A),l&&l(A),A.classList.add(...k),A.classList.add(...E),_c(()=>{A.classList.remove(...k),A.classList.add(...$)}),s&&s(A,()=>R()),(!s||s.length<2)&&(A.addEventListener("transitionend",R),A.addEventListener("animationend",R))}}p=C,d(C)}),vn(S=>{const C=u();return C.forEach(_=>{let P;(P=S.get(_))?P.new&&(P.new=!1,P.newPos=ma(_)):S.set(_,P={pos:ma(_),new:!h}),P.new&&_.addEventListener("transitionend",()=>{P.new=!1,_.parentNode&&(P.newPos=ma(_))},{once:!0}),P.newPos&&(P.pos=P.newPos),P.newPos=ma(_)}),h?(h=!1,S):(C.forEach(_=>{const P=S.get(_),b=P.pos,g=P.newPos,w=b.left-g.left,k=b.top-g.top;if(w||k){P.moved=!0;const E=_.style;E.transform=`translate(${w}px,${k}px)`,E.transitionDuration="0s"}}),document.body.offsetHeight,C.forEach(_=>{const P=S.get(_);if(P.moved){let b=function(k){k&&k.target!==_||!_.parentNode||(!k||/transform$/.test(k.propertyName))&&(_.removeEventListener("transitionend",b),_.classList.remove(...w))};P.moved=!1;const g=_.style,w=n().moveClass.split(" ");_.classList.add(...w),g.transform=g.transitionDuration="",_.addEventListener("transitionend",b)}}),S)},new Map),u};function oy(e,t){const n=r=>{var o;return!e.contains(r.target)&&((o=t())==null?void 0:o())};document.body.addEventListener("click",n),Un(()=>document.body.removeEventListener("click",n))}function iy(e,t){const n=r=>{var o,i;r.key==="Escape"&&((o=document.activeElement)==null||o.blur(),(i=t())==null||i())};document.body.addEventListener("keydown",n),Un(()=>document.body.removeEventListener("keydown",n))}function ly(e,t){const{isEnabled:n,onClose:r}=t();if(!n||!(b1().os==="android"))return;window.history.pushState(sy,"");const i=l=>{l.preventDefault(),r()};window.addEventListener("popstate",i,{once:!0}),Un(()=>{window.removeEventListener("popstate",i),mv(()=>{var l;((l=window.history.state)==null?void 0:l[Pv])===!0&&window.history.back()})})}const Pv="androidBackHandler",sy={[Pv]:!0},ay=st('',4,!0),cy={left:0,top:90,right:180,bottom:270},Lv=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.secondary,r=()=>e.direction||"left",o=V("svg")` + transform: rotate(${i=>cy[i.svgDirection]}deg); + transition: transform 0.1s ease-in-out; + `;return y(o,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",get svgDirection(){return r()},get children(){const i=ay.cloneNode(!0);return it(()=>Pe(i,"fill",n())),i}})},uy=st(''),fy=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=uy.cloneNode(!0),o=r.firstChild;return it(()=>Pe(o,"fill",n())),r})()},dy=V.button` + padding: 0; + display: flex; + justify-content: center; + align-items: center; + width: 32px; + height: 32px; + border-radius: 50%; + background-color: ${e=>e.theme.colors.background.tint}; + border: none; + cursor: pointer; + + transition: transform 0.125s ease-in-out; + + ${Bs} { + &:hover { + transform: scale(1.04); + } + } + + &:active { + transform: scale(0.96); + } + + ${Os} { + &:active { + transform: scale(0.92); + } + } +`,xi=e=>{const t=Us(e),n=()=>e.icon||"close";return y(dy,jr({get class(){return e.class},onClick:()=>e.onClick(),"data-tc-icon-button":"true"},t,{get children(){return[y(Fe,{get when(){return!!e.children},get children(){return e.children}}),y(Fe,{get when(){return!e.children},get children(){return y(js,{get children(){return[y(bn,{get when(){return n()==="close"},get children(){return y(fy,{get fill(){return e.fill}})}}),y(bn,{get when(){return n()==="arrow"},get children(){return y(Lv,{get fill(){return e.fill}})}}),y(bn,{get when(){return n()==="question"},get children(){return y(vw,{get fill(){return e.fill}})}}),y(bn,{get when(){return typeof n()!="string"},get children(){return n()}})]}})}})]}}))},Qi={m:"24px",s:"16px",none:"0"},hy=V.div` + display: flex; + position: fixed; + z-index: 1000; + left: 0; + top: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.4); + padding: 20px 0; + overflow-y: auto; + + ${ar("mobile")} { + padding-bottom: 0; + } +`,py=oo` + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 16px 64px rgba(0, 0, 0, 0.16); + width: fit-content; + margin: auto; + + ${ar("mobile")} { + width: 100%; + height: fit-content; + margin: auto 0 0 0; + } +`,gy=V.div` + position: relative; + min-height: 100px; + width: 416px; + padding: 44px 56px 24px; + + box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04); + + background-color: ${e=>e.theme.colors.background.primary}; + border-radius: ${e=>Qi[e.theme.borderRadius]}; + + ${ar("mobile")} { + width: 100%; + } +`,vy=V(xi)` + position: absolute; + right: 16px; + top: 16px; +`,my=V.div` + display: flex; + justify-content: space-between; + align-items: center; + padding: 16px 16px 16px 18px; + border-radius: 0 0 ${e=>Qi[e.theme.borderRadius]} + ${e=>Qi[e.theme.borderRadius]}; +`,yy=V(xi)` + background-color: ${e=>Ws(e.theme.colors.icon.secondary,.12)}; +`;class wy{constructor(){Ie(this,"currentTime",0)}}const jl=class{constructor(){Ie(this,"currentTime",0),Ie(this,"playbackRate",1),Ie(this,"startTime",null),Ie(this,"timeline",new wy),Ie(this,"finished",Promise.resolve(this)),Ie(this,"effect",null),Ie(this,"id",""),Ie(this,"pending",!1),Ie(this,"playState","finished"),Ie(this,"replaceState","active"),Ie(this,"ready",Promise.resolve(this)),Ie(this,"oncancel",null),Ie(this,"onfinish",null),Ie(this,"onremove",null)}static create(){return jl._instance||(u8("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."),jl._instance=new jl),jl._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,t,n){}dispatchEvent(e){return!1}removeEventListener(e,t,n){}updatePlaybackRate(e){}commitStyles(){}persist(){}};let Av=jl;Ie(Av,"_instance",null);function Mr(e,t,n){return"animate"in e?e.animate(t,n):Av.create()}const xy=st("
    "),Cy=oy,by=iy,Sy=ly,Rv=e=>{const t=Lt(),n=Us(e);return vn(()=>{e.opened?h8():p8()}),y(T1,{onBeforeEnter:r=>{const o=Ui("mobile")?200:100;Mr(r,[{opacity:0},{opacity:1}],{duration:o}),Ui("mobile")&&Mr(r.firstElementChild,[{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:o})},onExit:(r,o)=>{const i=Ui("mobile")?200:100,l=Mr(r,[{opacity:1},{opacity:0}],{duration:i});if(Ui("mobile")){const s=Mr(r.firstElementChild,[{transform:"translateY(0)"},{transform:"translateY(390px)"}],{duration:i});Promise.all([l.finished,s.finished]).then(o)}else l.finished.then(o)},get children(){return y(Fe,{get when(){return e.opened},get children(){return y(hy,jr({"data-tc-modal":"true"},n,{get children(){const r=xy.cloneNode(!0);return Yl(Sy,r,()=>({isEnabled:e.enableAndroidBackHandler,onClose:()=>e.onClose()})),Yl(by,r,()=>()=>e.onClose()),Yl(Cy,r,()=>()=>e.onClose()),Mn(r,y(gy,{get class(){return e.class},get children(){return[y(vy,{icon:"close",onClick:()=>e.onClose()}),pe(()=>e.children)]}}),null),Mn(r,y(Fe,{get when(){return e.onClickQuestion},get children(){return y(my,{get children(){return[y(pw,{}),y(yy,{get onClick(){return e.onClickQuestion},icon:"question"})]}})}}),null),it(()=>y1(r,$a(py,oo` + border-radius: ${Qi[t.borderRadius]}; + background-color: ${t.colors.background.tint}; + + ${ar("mobile")} { + border-radius: ${Qi[t.borderRadius]} + ${Qi[t.borderRadius]} 0 0; + } + `))),r}}))}})}})},_y={m:"22px",s:"12px",none:"0"},ky={m:"18px",s:"8px",none:"0"},Ey=V.div` + display: grid; + grid-template: 1fr / 1fr 1fr; + width: fit-content; + justify-items: center; + gap: 4px; + + position: relative; + padding: 4px; + border-radius: ${e=>_y[e.theme.borderRadius]}; + + background-color: ${e=>e.theme.colors.background.secondary}; +`,Ty=V.div` + position: absolute; + top: 4px; + left: 4px; + + height: calc(100% - 8px); + width: calc(50% - 4px); + + border-radius: ${e=>ky[e.theme.borderRadius]}; + background-color: ${e=>e.theme.colors.background.segment}; + + transform: ${e=>e.right?"translateX(100%)":"translateX(0)"}; + + transition: transform 0.13s ease-in-out; +`,Ah=V.input` + display: none; +`,Rh=V.label` + padding: 9px 12px; + z-index: 1; + + cursor: ${e=>e.isActive?"default":"pointer"}; + + transition: transform 0.13s ease-in-out; + + &:hover { + transform: ${e=>e.isActive?"none":"scale(1.025)"}; + } + + > * { + ${e=>e.isActive?"":`color: ${e.theme.colors.text.secondary};`} + } +`,Py=e=>{const t="tabBar"+Math.floor(Math.random()*1e4);return y(Ey,{get class(){return e.class},"data-tc-tab-bar":"true",get children(){return[y(Ty,{get right(){return e.selectedTabIndex===1}}),y(Rh,{get isActive(){return e.selectedTabIndex===0},get children(){return[y(Ah,{type:"radio",name:t,get checked(){return e.selectedTabIndex===0},onInput:()=>{var n;return(n=e.onSelectedTabIndexChange)==null?void 0:n.call(e,0)}}),pe(()=>e.tab1)]}}),y(Rh,{get isActive(){return e.selectedTabIndex===1},get children(){return[y(Ah,{type:"radio",get checked(){return e.selectedTabIndex===1},name:t,onInput:()=>{var n;return(n=e.onSelectedTabIndexChange)==null?void 0:n.call(e,1)}}),pe(()=>e.tab2)]}})]}})},Ly={m:"16px",s:"12px",none:"0"},Ay={m:"12px",s:"8px",none:"0"},Mv=256,ld=60,Mh=48,Ih=24,Wa=V.div` + width: 52px; + height: 52px; + background: transparent; + position: absolute; + right: 0; + bottom: 0; + + display: flex; + align-items: center; + justify-content: center; + transition: transform 0.125s ease-in-out; +`,Ry=V.button` + display: flex; + align-items: center; + position: relative; + background-color: ${e=>e.theme.colors.background.qr}; + border-radius: ${e=>Ly[e.theme.borderRadius]}; + padding: ${Wr(Ih)} 0; + height: ${Wr(Mv+Ih*2)}; + width: 100%; + + overflow: hidden; + cursor: pointer; + border: none; + + ${Bs} { + &:hover { + ${Wa.class} { + transform: scale(1.04); + } + } + } + + &:active { + ${Wa.class} { + transform: scale(0.96); + } + } + + ${Os} { + &:active { + ${Wa.class} { + transform: scale(0.92); + } + } + } +`,My=V.div` + position: relative; + + width: fit-content; + margin: 0 auto; + + > div:first-child { + display: flex; + align-items: center; + justify-content: center; + } + + rect { + fill: transparent; + } + + path { + fill: ${e=>e.theme.colors.constant.black}; + } +`,Iy=V.div` + position: absolute; + width: ${Wr(ld)}; + height: ${Wr(ld)}; + background: ${e=>e.theme.colors.background.qr}; + + display: flex; + align-items: center; + justify-content: center; +`,Ny=V(wi)` + width: ${e=>Wr(e.size)}; + height: ${e=>Wr(e.size)}; + border-radius: ${e=>Ay[e.theme.borderRadius]}; + background-color: ${e=>e.theme.colors.background.qr}; +`,$y=V.div` + position: absolute; + bottom: 14px; + left: 50%; + transform: translate(-50%, 0); + + display: flex; + gap: 6px; + align-items: center; + border-radius: 18px; + min-width: 126px; + padding: 9px 16px 9px 10px; + + filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08)); + background-color: ${e=>e.theme.colors.background.segment}; +`;var Iv={exports:{}};(function(e,t){var n=function(){var r=function(E,$){var N=236,A=17,R=E,O=i[$],j=null,M=0,te=null,ne=[],oe={},Se=function(K,q){M=R*4+17,j=function(F){for(var J=new Array(F),X=0;X=7&&rt(K),te==null&&(te=We(R,O,ne)),dt(te,q)},Ne=function(K,q){for(var F=-1;F<=7;F+=1)if(!(K+F<=-1||M<=K+F))for(var J=-1;J<=7;J+=1)q+J<=-1||M<=q+J||(0<=F&&F<=6&&(J==0||J==6)||0<=J&&J<=6&&(F==0||F==6)||2<=F&&F<=4&&2<=J&&J<=4?j[K+F][q+J]=!0:j[K+F][q+J]=!1)},ee=function(){for(var K=0,q=0,F=0;F<8;F+=1){Se(!0,F);var J=s.getLostPoint(oe);(F==0||K>J)&&(K=J,q=F)}return q},ue=function(){for(var K=8;K>F&1)==1;j[Math.floor(F/3)][F%3+M-8-3]=J}for(var F=0;F<18;F+=1){var J=!K&&(q>>F&1)==1;j[F%3+M-8-3][Math.floor(F/3)]=J}},Xe=function(K,q){for(var F=O<<3|q,J=s.getBCHTypeInfo(F),X=0;X<15;X+=1){var ie=!K&&(J>>X&1)==1;X<6?j[X][8]=ie:X<8?j[X+1][8]=ie:j[M-15+X][8]=ie}for(var X=0;X<15;X+=1){var ie=!K&&(J>>X&1)==1;X<8?j[8][M-X-1]=ie:X<9?j[8][15-X-1+1]=ie:j[8][15-X-1]=ie}j[M-8][8]=!K},dt=function(K,q){for(var F=-1,J=M-1,X=7,ie=0,ke=s.getMaskFunction(q),Ee=M-1;Ee>0;Ee-=2)for(Ee==6&&(Ee-=1);;){for(var qe=0;qe<2;qe+=1)if(j[J][Ee-qe]==null){var kt=!1;ie>>X&1)==1);var Me=ke(J,Ee-qe);Me&&(kt=!kt),j[J][Ee-qe]=kt,X-=1,X==-1&&(ie+=1,X=7)}if(J+=F,J<0||M<=J){J-=F,F=-F;break}}},Ct=function(K,q){for(var F=0,J=0,X=0,ie=new Array(q.length),ke=new Array(q.length),Ee=0;Ee=0?zn.getAt(rn):0}}for(var ln=0,Me=0;MeEe*8)throw"code length overflow. ("+X.getLengthInBits()+">"+Ee*8+")";for(X.getLengthInBits()+4<=Ee*8&&X.put(0,4);X.getLengthInBits()%8!=0;)X.putBit(!1);for(;!(X.getLengthInBits()>=Ee*8||(X.put(N,8),X.getLengthInBits()>=Ee*8));)X.put(A,8);return Ct(X,J)};oe.addData=function(K,q){q=q||"Byte";var F=null;switch(q){case"Numeric":F=h(K);break;case"Alphanumeric":F=S(K);break;case"Byte":F=C(K);break;case"Kanji":F=_(K);break;default:throw"mode:"+q}ne.push(F),te=null},oe.isDark=function(K,q){if(K<0||M<=K||q<0||M<=q)throw K+","+q;return j[K][q]},oe.getModuleCount=function(){return M},oe.make=function(){if(R<1){for(var K=1;K<40;K++){for(var q=d.getRSBlocks(K,O),F=p(),J=0;J"u"?K*4:q;var F="";F+='";for(var X=0;X';F+=""}return F+="",F+="
    ",F},oe.createSvgTag=function(K,q,F,J){var X={};typeof arguments[0]=="object"&&(X=arguments[0],K=X.cellSize,q=X.margin,F=X.alt,J=X.title),K=K||2,q=typeof q>"u"?K*4:q,F=typeof F=="string"?{text:F}:F||{},F.text=F.text||null,F.id=F.text?F.id||"qrcode-description":null,J=typeof J=="string"?{text:J}:J||{},J.text=J.text||null,J.id=J.text?J.id||"qrcode-title":null;var ie=oe.getModuleCount()*K+q*2,ke,Ee,qe,kt,Me="",$t;for($t="l"+K+",0 0,"+K+" -"+K+",0 0,-"+K+"z ",Me+=''+ht(J.text)+"":"",Me+=F.text?''+ht(F.text)+"":"",Me+='',Me+='"u"?K*4:q;var F=oe.getModuleCount()*K+q*2,J=q,X=F-q;return k(F,F,function(ie,ke){if(J<=ie&&ie"u"?K*4:q;var J=oe.getModuleCount()*K+q*2,X="";return X+="",X};var ht=function(K){for(var q="",F=0;F":q+=">";break;case"&":q+="&";break;case'"':q+=""";break;default:q+=J;break}}return q},$n=function(K){var q=1;K=typeof K>"u"?q*2:K;var F=oe.getModuleCount()*q+K*2,J=K,X=F-K,ie,ke,Ee,qe,kt,Me={"██":"█","█ ":"▀"," █":"▄"," ":" "},$t={"██":"▀","█ ":"▀"," █":" "," ":" "},Vt="";for(ie=0;ie=X?$t[kt]:Me[kt];Vt+=` +`}return F%2&&K>0?Vt.substring(0,Vt.length-F-1)+Array(F+1).join("▀"):Vt.substring(0,Vt.length-1)};return oe.createASCII=function(K,q){if(K=K||1,K<2)return $n(q);K-=1,q=typeof q>"u"?K*2:q;var F=oe.getModuleCount()*K+q*2,J=q,X=F-q,ie,ke,Ee,qe,kt=Array(K+1).join("██"),Me=Array(K+1).join(" "),$t="",Vt="";for(ie=0;ie>>8),O.push(te&255)):O.push(A)}}return O}};var o={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},l={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=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]],$=1335,N=7973,A=21522,R={},O=function(j){for(var M=0;j!=0;)M+=1,j>>>=1;return M};return R.getBCHTypeInfo=function(j){for(var M=j<<10;O(M)-O($)>=0;)M^=$<=0;)M^=N<5&&(te+=3+Se-5)}for(var ne=0;ne=256;)R-=255;return E[R]},A}();function u(E,$){if(typeof E.length>"u")throw E.length+"/"+$;var N=function(){for(var R=0;R"u")throw"bad rs block @ typeNumber:"+R+"/errorCorrectionLevel:"+O;for(var M=j.length/3,te=[],ne=0;ne>>7-A%8&1)==1},N.put=function(A,R){for(var O=0;O>>R-O-1&1)==1)},N.getLengthInBits=function(){return $},N.putBit=function(A){var R=Math.floor($/8);E.length<=R&&E.push(0),A&&(E[R]|=128>>>$%8),$+=1},N},h=function(E){var $=o.MODE_NUMBER,N=E,A={};A.getMode=function(){return $},A.getLength=function(j){return N.length},A.write=function(j){for(var M=N,te=0;te+2>>8&255)*192+(te&255),O.put(te,13),M+=2}if(M>>8)},$.writeBytes=function(N,A,R){A=A||0,R=R||N.length;for(var O=0;O0&&(N+=","),N+=E[A];return N+="]",N},$},b=function(){var E=0,$=0,N=0,A="",R={},O=function(M){A+=String.fromCharCode(j(M&63))},j=function(M){if(!(M<0)){if(M<26)return 65+M;if(M<52)return 97+(M-26);if(M<62)return 48+(M-52);if(M==62)return 43;if(M==63)return 47}throw"n:"+M};return R.writeByte=function(M){for(E=E<<8|M&255,$+=8,N+=1;$>=6;)O(E>>>$-6),$-=6},R.flush=function(){if($>0&&(O(E<<6-$),E=0,$=0),N%3!=0)for(var M=3-N%3,te=0;te=$.length){if(R==0)return-1;throw"unexpected end of file./"+R}var M=$.charAt(N);if(N+=1,M=="=")return R=0,-1;if(M.match(/^\s$/))continue;A=A<<6|j(M.charCodeAt(0)),R+=6}var te=A>>>R-8&255;return R-=8,te};var j=function(M){if(65<=M&&M<=90)return M-65;if(97<=M&&M<=122)return M-97+26;if(48<=M&&M<=57)return M-48+52;if(M==43)return 62;if(M==47)return 63;throw"c:"+M};return O},w=function(E,$){var N=E,A=$,R=new Array(E*$),O={};O.setPixel=function(ne,oe,Se){R[oe*N+ne]=Se},O.write=function(ne){ne.writeString("GIF87a"),ne.writeShort(N),ne.writeShort(A),ne.writeByte(128),ne.writeByte(0),ne.writeByte(0),ne.writeByte(0),ne.writeByte(0),ne.writeByte(0),ne.writeByte(255),ne.writeByte(255),ne.writeByte(255),ne.writeString(","),ne.writeShort(0),ne.writeShort(0),ne.writeShort(N),ne.writeShort(A),ne.writeByte(0);var oe=2,Se=M(oe);ne.writeByte(oe);for(var Ne=0;Se.length-Ne>255;)ne.writeByte(255),ne.writeBytes(Se,Ne,255),Ne+=255;ne.writeByte(Se.length-Ne),ne.writeBytes(Se,Ne,Se.length-Ne),ne.writeByte(0),ne.writeString(";")};var j=function(ne){var oe=ne,Se=0,Ne=0,ee={};return ee.write=function(ue,xe){if(ue>>>xe)throw"length over";for(;Se+xe>=8;)oe.writeByte(255&(ue<>>=8-Se,Ne=0,Se=0;Ne=ue<0&&oe.writeByte(Ne)},ee},M=function(ne){for(var oe=1<>6,128|a&63):a<55296||a>=57344?l.push(224|a>>12,128|a>>6&63,128|a&63):(s++,a=65536+((a&1023)<<10|i.charCodeAt(s)&1023),l.push(240|a>>18,128|a>>12&63,128|a>>6&63,128|a&63))}return l}return o(r)}})(),function(r){e.exports=r()}(function(){return n})})(Iv);const jy=Iv.exports;function P1(e){return St(this,null,function*(){try{if(!(navigator!=null&&navigator.clipboard))throw new Xt("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch{}Wy(e)})}function Wy(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)}}const Oy=st("
    "),iu=e=>{let t,n,r;const[o,i]=Oe(!1),[l,s]=Oe(Mh);vn(()=>{const h=jy(0,"L");h.addData(e.sourceUrl),h.make(),t.innerHTML=h.createSvgTag(4,0);const S=t.firstElementChild.clientWidth,C=Math.round(Mv/S*1e5)/1e5;if(r){const _=Math.ceil(ld/(C*4))*4,P=Wr(Math.ceil((S-_)/(2*4))*4);r.style.top=P,r.style.left=P,r.style.height=Wr(_),r.style.width=Wr(_),s(Math.round(Mh/C))}n.style.transform=`scale(${C})`});let a=null;return y(Ry,{get class(){return e.class},onClick:()=>{i(!0),P1(e.sourceUrl),a!=null&&clearTimeout(a),a=setTimeout(()=>i(!1),1500)},get children(){return[y(My,{ref(d){const p=n;typeof p=="function"?p(d):n=d},get children(){return[(()=>{const d=Oy.cloneNode(!0),p=t;return typeof p=="function"?Yl(p,d):t=d,d})(),y(Fe,{get when(){return e.imageUrl},get children(){return y(Iy,{ref(d){const p=r;typeof p=="function"?p(d):r=d},get children(){return y(Ny,{get src(){return e.imageUrl},alt:"",get size(){return l()}})}})}})]}}),y(T1,{onBeforeEnter:d=>{Mr(d,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(d,p)=>{Mr(d,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then(()=>{p()})},get children(){return y(Fe,{get when(){return o()&&!e.disableCopy},get children(){return y($y,{get children(){return[y(A1,{size:"xs"}),y(ir,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),y(Fe,{get when(){return!e.disableCopy},get children(){return y(Wa,{get children(){return y(jv,{})}})}})]}})};var sd=(e,t,n)=>{const r=t.trim().split(".").reduce((o,i)=>o?o[i]:void 0,e);return r!==void 0?r:n},By=(e,t,n=/{{(.*?)}}/g)=>e.replace(n,(r,o)=>sd(t,o,"")),Uy=(e={},t=navigator.language in e?navigator.language:Object.keys(e)[0])=>{const[n,r]=Oe(t),[o,i]=_1(e);return[(a,u,d)=>{const p=sd(o[n()],a,d||"");return typeof p=="function"?p(u):typeof p=="string"?By(p,u||{}):p},{add(a,u){i(a,d=>Object.assign(d||{},u))},locale:a=>a?r(a):n(),dict:a=>sd(o,a)}]},Nv=tu({}),Ur=()=>Dn(Nv);const Dy=V.div` + font-style: normal; + font-weight: ${e=>e.fontWeight}; + font-size: ${e=>e.fontSize}; + line-height: ${e=>e.lineHeight}; + + color: ${e=>e.color}; +`,ir=e=>{const t=Lt(),[n]=Ur();let r;const o=()=>e.color||t.colors.text.primary,i=jr({fontSize:"14px",fontWeight:"510",lineHeight:"130%"},e);return vn(()=>{r&&i.cursor!=="unset"&&getComputedStyle(r).cursor!=="pointer"&&(r.style.cursor="default")}),y(Dy,{get fontSize(){return i.fontSize},get fontWeight(){return i.fontWeight},get lineHeight(){return i.lineHeight},get color(){return o()},get class(){return i.class},ref(l){const s=r;typeof s=="function"?s(l):r=l},"data-tc-text":"true",get children(){var l;return pe(()=>!!i.translationKey)()?n(i.translationKey,i.translationValues,(l=i.children)==null?void 0:l.toString()):i.children}})},Fy=V.div` + position: relative; + + &::after { + content: ''; + display: block; + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + border: 0.5px solid rgba(0, 0, 0, 0.08); + + border-radius: inherit; + } +`,Hy=V(wi)` + width: 100%; + height: 100%; + border-radius: inherit; +`,$v=e=>y(Fy,{get class(){return e.class},get children(){return y(Hy,{get src(){return e.src}})}}),zy={m:"16px",s:"12px",none:"0"},Vy={m:"6px",s:"6px",none:"0"},Ky=V.button` + position: relative; + cursor: pointer; + border: none; + background-color: unset; + padding: 8px 4px; + width: 92px; + display: flex; + flex-direction: column; + align-items: center; + + transition: transform 0.125s ease-in-out; + + ${Bs} { + &:hover { + transform: scale(1.04); + } + } + + &:active { + transform: scale(0.96); + } + + ${ar("mobile")} { + padding: 8px 4px; + width: 82px; + } + + ${Os} { + &:active { + transform: scale(0.92); + } + } +`,qy=V($v)` + width: 60px; + height: 60px; + border-radius: ${e=>zy[e.theme.borderRadius]}; + + margin-bottom: 8px; +`,Qy=V(wi)` + position: absolute; + right: 10px; + top: 50px; + width: 24px; + height: 24px; + border-radius: ${e=>Vy[e.theme.borderRadius]}; + box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08); +`,Zy=V(ir)` + max-width: 90px; + font-weight: 590; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + + ${ar("mobile")} { + max-width: 80px; + } +`,Gy=V(ir)` + font-weight: 510; + max-width: 90px; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + color: ${e=>e.colorPrimary?e.theme.colors.text.primary:e.theme.colors.text.secondary}; + + ${ar("mobile")} { + max-width: 80px; + } +`,kc=e=>y(Ky,{get class(){return e.class},onClick:()=>e.onClick(),"data-tc-wallet-item":"true",get children(){return[pe(()=>pe(()=>typeof e.icon=="string")()?y(qy,{get src(){return e.icon}}):e.icon),pe(()=>pe(()=>!!e.badgeUrl)()&&y(Qy,{get src(){return e.badgeUrl}})),y(Zy,{get children(){return e.name}}),pe(()=>pe(()=>!!e.secondLine)()&&y(Gy,{get colorPrimary(){var t;return(t=e.secondLineColorPrimary)!=null?t:!0},get children(){return e.secondLine}}))]}}),Yy=V.h1` + font-style: normal; + font-weight: 700; + font-size: 20px; + line-height: 28px; + + text-align: center; + + color: ${e=>e.theme.colors.text.primary}; + + margin-top: 0; + margin-bottom: 0; + + cursor: default; +`,Dr=e=>{const[t]=Ur();return y(Yy,{get class(){return e.class},"data-tc-h1":"true",get children(){var n;return pe(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString()):e.children}})},Jy=V.h2` + font-style: normal; + font-weight: 510; + font-size: 16px; + line-height: 22px; + + text-align: center; + + color: ${e=>e.theme.colors.text.secondary}; + + margin-top: 0; + margin-bottom: 32px; + + cursor: default; +`,Vo=e=>{const[t]=Ur();return y(Jy,{get class(){return e.class},"data-tc-h2":"true",get children(){var n;return pe(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString()):e.children}})},Xy=V.h3` + font-style: normal; + font-weight: 590; + font-size: 16px; + line-height: 20px; + + color: ${e=>e.theme.colors.text.primary}; + + margin-top: 0; + margin-bottom: 0; + + cursor: default; +`,L1=e=>{const[t]=Ur();return y(Xy,{"data-tc-h3":"true",get class(){return e.class},get children(){var n;return pe(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString()):e.children}})},ew=st(''),tw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=ew.cloneNode(!0),o=r.firstChild;return it(i=>{const l=n(),s=n();return l!==i._v$&&Pe(r,"fill",i._v$=l),s!==i._v$2&&Pe(o,"fill",i._v$2=s),i},{_v$:void 0,_v$2:void 0}),r})()},nw=st(''),rw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=nw.cloneNode(!0),o=r.firstChild;return it(()=>Pe(o,"fill",n())),r})()},ow=st(''),iw=st(''),lw=st(''),A1=e=>{const t=Lt(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return pe((()=>{const o=pe(()=>n()==="xs");return()=>o()?(()=>{const i=ow.cloneNode(!0),l=i.firstChild,s=l.firstChild,a=s.nextSibling;return it(u=>{const d=e.class,p=r(),h=t.colors.constant.white;return d!==u._v$&&Pe(i,"class",u._v$=d),p!==u._v$2&&Pe(s,"fill",u._v$2=p),h!==u._v$3&&Pe(a,"stroke",u._v$3=h),u},{_v$:void 0,_v$2:void 0,_v$3:void 0}),i})():(()=>{const i=pe(()=>n()==="s");return()=>i()?(()=>{const l=iw.cloneNode(!0),s=l.firstChild,a=s.nextSibling;return it(u=>{const d=e.class,p=r(),h=t.colors.constant.white;return d!==u._v$4&&Pe(l,"class",u._v$4=d),p!==u._v$5&&Pe(s,"fill",u._v$5=p),h!==u._v$6&&Pe(a,"fill",u._v$6=h),u},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),l})():(()=>{const l=lw.cloneNode(!0),s=l.firstChild,a=s.nextSibling;return it(u=>{const d=e.class,p=r(),h=t.colors.constant.white;return d!==u._v$7&&Pe(l,"class",u._v$7=d),p!==u._v$8&&Pe(s,"fill",u._v$8=p),h!==u._v$9&&Pe(a,"fill",u._v$9=h),u},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),l})()})()})())},sw=st(''),aw=st(''),cw=st(''),lu=e=>{const t=Lt(),n=()=>e.size||"m",r=()=>e.fill||t.colors.icon.error;return pe((()=>{const o=pe(()=>n()==="m");return()=>o()?(()=>{const i=sw.cloneNode(!0),l=i.firstChild,s=l.nextSibling;return it(a=>{const u=e.class,d=r(),p=t.colors.constant.white;return u!==a._v$&&Pe(i,"class",a._v$=u),d!==a._v$2&&Pe(l,"fill",a._v$2=d),p!==a._v$3&&Pe(s,"fill",a._v$3=p),a},{_v$:void 0,_v$2:void 0,_v$3:void 0}),i})():(()=>{const i=pe(()=>n()==="s");return()=>i()?(()=>{const l=aw.cloneNode(!0),s=l.firstChild,a=s.nextSibling;return it(u=>{const d=e.class,p=r(),h=t.colors.constant.white;return d!==u._v$4&&Pe(l,"class",u._v$4=d),p!==u._v$5&&Pe(s,"fill",u._v$5=p),h!==u._v$6&&Pe(a,"stroke",u._v$6=h),u},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),l})():(()=>{const l=cw.cloneNode(!0),s=l.firstChild,a=s.nextSibling;return it(u=>{const d=e.class,p=r(),h=t.colors.constant.white;return d!==u._v$7&&Pe(l,"class",u._v$7=d),p!==u._v$8&&Pe(s,"fill",u._v$8=p),h!==u._v$9&&Pe(a,"fill",u._v$9=h),u},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),l})()})()})())},uw=st(''),fw=st(''),dw=st(''),uo=e=>{const t=Lt(),n=()=>e.size||"xs",r=()=>e.fill||t.colors.icon.tertiary,o=o8` + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } + `,i=oo` + animation: ${o} 1s linear infinite; + `;return pe((()=>{const l=pe(()=>n()==="xs");return()=>l()?(()=>{const s=uw.cloneNode(!0),a=s.firstChild;return it(u=>{const d=$a(i,e.class),p=r();return d!==u._v$&&Pe(s,"class",u._v$=d),p!==u._v$2&&Pe(a,"fill",u._v$2=p),u},{_v$:void 0,_v$2:void 0}),s})():(()=>{const s=pe(()=>n()==="s");return()=>s()?(()=>{const a=fw.cloneNode(!0),u=a.firstChild;return it(d=>{const p=$a(i,e.class),h=r();return p!==d._v$3&&Pe(a,"class",d._v$3=p),h!==d._v$4&&Pe(u,"fill",d._v$4=h),d},{_v$3:void 0,_v$4:void 0}),a})():(()=>{const a=dw.cloneNode(!0),u=a.firstChild;return it(d=>{const p=$a(i,e.class),h=r();return p!==d._v$5&&Pe(a,"class",d._v$5=p),h!==d._v$6&&Pe(u,"stroke",d._v$6=h),d},{_v$5:void 0,_v$6:void 0}),a})()})()})())},hw=st(''),pw=()=>{const e=Lt(),t=()=>e.theme===Ft.DARK?e.colors.constant.white:e.colors.constant.black;return(()=>{const n=hw.cloneNode(!0),r=n.firstChild,o=r.nextSibling,i=o.nextSibling;return it(()=>Pe(i,"fill",t())),n})()},gw=st(''),vw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=gw.cloneNode(!0),o=r.firstChild;return it(()=>Pe(o,"fill",n())),r})()},mw=st(''),yw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=mw.cloneNode(!0),o=r.firstChild;return it(()=>Pe(o,"fill",n())),r})()},ww=st(''),xw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=ww.cloneNode(!0),o=r.firstChild;return it(()=>Pe(o,"fill",n())),r})()},Cw=st(''),bw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=Cw.cloneNode(!0),o=r.firstChild;return it(()=>Pe(o,"fill",n())),r})()},Sw=st(''),Jl=e=>{const t=Lt(),n=()=>e.fill||t.colors.accent;return(()=>{const r=Sw.cloneNode(!0),o=r.firstChild,i=o.firstChild;return it(()=>Pe(i,"fill",n())),r})()},_w=st(''),Nh=e=>{const t=Lt(),n=()=>e.fill||t.colors.accent;return(()=>{const r=_w.cloneNode(!0),o=r.firstChild;return it(()=>Pe(o,"fill",n())),r})()},kw=st(''),Ew=e=>{const t=Lt(),n=()=>e.fill||t.colors.accent;return(()=>{const r=kw.cloneNode(!0),o=r.firstChild,i=o.firstChild;return it(()=>Pe(i,"fill",n())),r})()},Tw=st(''),Pw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=Tw.cloneNode(!0),o=r.firstChild;return it(i=>{const l=e.class,s=n();return l!==i._v$&&Pe(r,"class",i._v$=l),s!==i._v$2&&Pe(o,"fill",i._v$2=s),i},{_v$:void 0,_v$2:void 0}),r})()},Lw=st(''),Aw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=Lw.cloneNode(!0),o=r.firstChild;return it(i=>{const l=e.class,s=n();return l!==i._v$&&Pe(r,"class",i._v$=l),s!==i._v$2&&Pe(o,"fill",i._v$2=s),i},{_v$:void 0,_v$2:void 0}),r})()},Rw=st(''),Mw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=Rw.cloneNode(!0),o=r.firstChild;return it(i=>{const l=e.class,s=n();return l!==i._v$&&Pe(r,"class",i._v$=l),s!==i._v$2&&Pe(o,"fill",i._v$2=s),i},{_v$:void 0,_v$2:void 0}),r})()},Iw=st(''),Nw=e=>{const t=Lt(),n=()=>e.fill||t.colors.constant.white;return(()=>{const r=Iw.cloneNode(!0),o=r.firstChild;return it(i=>{const l=e.class,s=n();return l!==i._v$&&Pe(r,"class",i._v$=l),s!==i._v$2&&Pe(o,"fill",i._v$2=s),i},{_v$:void 0,_v$2:void 0}),r})()},$w=st(''),jw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=$w.cloneNode(!0),o=r.firstChild;return it(i=>{const l=e.class,s=n();return l!==i._v$&&Pe(r,"class",i._v$=l),s!==i._v$2&&Pe(o,"fill",i._v$2=s),i},{_v$:void 0,_v$2:void 0}),r})()},Ww=st(''),jv=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=Ww.cloneNode(!0),o=r.firstChild;return it(i=>{const l=n(),s=n();return l!==i._v$&&Pe(r,"fill",i._v$=l),s!==i._v$2&&Pe(o,"fill",i._v$2=s),i},{_v$:void 0,_v$2:void 0}),r})()},Ow=st(''),ad=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=Ow.cloneNode(!0),o=r.firstChild;return it(()=>Pe(o,"fill",n())),r})()},Bw={m:"16px",s:"12px",none:"0"},Uw={m:"6px",s:"6px",none:"0"},Dw=V.div` + width: 60px; + height: 60px; + padding: 8px; + margin-bottom: 8px; + border-radius: ${e=>Bw[e.theme.borderRadius]}; + background-color: ${e=>e.theme.colors.background.tint}; + display: grid; + grid-template: 1fr 1fr / 1fr 1fr; + gap: 4px; +`,Fw=V($v)` + width: 20px; + height: 20px; + border-radius: ${e=>Uw[e.theme.borderRadius]}; +`,Wv=e=>y(kc,{get name(){return e.labelLine1},get secondLine(){return e.labelLine2},get icon(){return y(Dw,{get children(){return y($s,{each:[0,1,2,3],children:t=>y(Fw,{get src(){return e.images[t]}})})}})},onClick:()=>e.onClick()}),Xr="telegram-wallet",Ds={TON:"https://raw.githubusercontent.com/ton-connect/sdk/main/assets/ton-icon-48.png",TG:"https://raw.githubusercontent.com/ton-connect/sdk/main/assets/tg.png"},Ov=e=>{const[t]=Ur(),n=()=>{if(e.wallet.appName!==Xr){if("isPreferred"in e.wallet&&e.wallet.isPreferred)return t("walletItem.recent",{},"Recent");if(li(e.wallet))return t("walletItem.installed",{},"Installed");if(e.wallet.name==="Tonkeeper")return t("walletItem.popular",{},"Popular")}};return pe((()=>{const r=pe(()=>e.wallet.appName===Xr);return()=>r()?y(kc,{get icon(){return e.wallet.imageUrl},get name(){return t("walletItem.walletOn",{},"Wallet On")},secondLine:"Telegram",get badgeUrl(){return Ds.TG},onClick:()=>e.onClick()}):y(kc,{get icon(){return e.wallet.imageUrl},get name(){return e.wallet.name},get secondLine(){return n()},secondLineColorPrimary:!1,onClick:()=>e.onClick()})})())},Hw=V.div` + width: 100%; + overflow-y: auto; + max-height: ${e=>e.maxHeight}; + + scrollbar-width: none; + &&::-webkit-scrollbar { + display: none; + } + + &&::-webkit-scrollbar-track { + background: transparent; + } + + &&::-webkit-scrollbar-thumb { + display: none; + } +`,zw=V.div` + height: 1px; + margin: 0 -24px; + width: calc(100% + 48px); + opacity: 0.08; + background: ${e=>e.isShown?e.theme.colors.icon.secondary:"transparent"}; + transition: background 0.15s ease-in-out; + + ${ar("mobile")} { + width: 100%; + margin: 0; + } +`,[Vw,Kw]=Oe(((vh=co())==null?void 0:vh.innerHeight)||0);co()&&window.addEventListener("resize",()=>Kw(window.innerHeight));const[il,qw]=Oe(Ui("mobile")),Ec=()=>qw(Ui("mobile"));co()&&(window.addEventListener("resize",()=>Ec()),window.addEventListener("load",()=>Ec(),{once:!0}));const Bv=e=>{const[t,n]=Oe(!1),r=l=>{n(l.target.scrollTop>0)},o=()=>il()?150:200,i=()=>e.maxHeight!==void 0?`${e.maxHeight}px`:`${Vw()-o()}px`;return[y(zw,{get isShown(){return t()}}),y(Hw,{get maxHeight(){return i()},onScroll:r,get class(){return e.class},get children(){return e.children}})]},Qw=V.a` + display: block; + text-decoration: unset; +`,Tc=e=>y(Qw,jr({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}})),Ko=tu(),Zw=st(''),Gw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=Zw.cloneNode(!0),o=r.firstChild;return it(i=>{const l=e.class,s=n();return l!==i._v$&&Pe(r,"class",i._v$=l),s!==i._v$2&&Pe(o,"fill",i._v$2=s),i},{_v$:void 0,_v$2:void 0}),r})()},Yw=st(''),Jw=e=>{const t=Lt(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=Yw.cloneNode(!0),o=r.firstChild,i=o.nextSibling;return it(l=>{const s=n(),a=n();return s!==l._v$&&Pe(o,"fill",l._v$=s),a!==l._v$2&&Pe(i,"fill",l._v$2=a),l},{_v$:void 0,_v$2:void 0}),r})()},Xw={m:"8px",s:"4px",none:"0"},e9={m:"16px",s:"8px",none:"0"},t9=V.div` + width: 256px; + box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16); + border-radius: ${e=>e9[e.theme.borderRadius]}; + + background-color: ${e=>e.theme.colors.background.primary} + + color: ${e=>e.theme.colors.text.primary} +`,n9=V.ul` + background-color: ${e=>e.theme.colors.background.primary}; + padding: 8px; +`,$h=V.button` + display: flex; + align-items: center; + gap: 8px; + height: 40px; + padding-left: 8px; + width: 100%; + + background-color: ${e=>e.theme.colors.background.primary}; + border: none; + border-radius: ${e=>Xw[e.theme.borderRadius]}; + cursor: pointer; + + transition: background-color, transform 0.1s ease-in-out; + + &:hover { + background-color: ${e=>e.theme.colors.background.secondary}; + } + + &:active { + transform: scale(0.96); + } +`,jh=st("
  • "),Vu=e=>y(ir,{get translationKey(){return e.translationKey},fontSize:"15px",fontWeight:"590",get children(){return e.children}}),r9=e=>{const t=Dn(Ko),[n,r]=Oe(!1),o=()=>St(void 0,null,function*(){const l=Yg(t.account.address,t.account.chain===ac.TESTNET);yield P1(l),r(!0),setTimeout(()=>r(!1),1e3)}),i=()=>{t.disconnect(),e.onClose()};return y(t9,{ref(l){const s=e.ref;typeof s=="function"?s(l):e.ref=l},get class(){return e.class},"data-tc-dropdown":"true",get children(){return y(n9,{get children(){return[(()=>{const l=jh.cloneNode(!0);return Mn(l,y($h,{onClick:()=>o(),get children(){return[y(Gw,{}),y(Fe,{get when(){return!n()},get children(){return y(Vu,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),y(Fe,{get when(){return n()},get children(){return y(Vu,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),l})(),(()=>{const l=jh.cloneNode(!0);return Mn(l,y($h,{onClick:()=>i(),get children(){return[y(Jw,{}),y(Vu,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),l})()]}})}})},o9={m:"16px",s:"8px",none:"0"},i9=V.div` + width: 256px; + padding: 12px 16px; + display: flex; + gap: 9px; + + background-color: ${e=>e.theme.colors.background.primary}; + box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16); + border-radius: ${e=>o9[e.theme.borderRadius]}; +`,l9=V.div` + width: 192px; + + > h3 { + font-size: 15px; + } +`,s9=V(ir)` + margin-top: 4px; + color: ${e=>e.theme.colors.text.secondary}; +`,R1=e=>{const t=Us(e);return y(i9,jr({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[y(l9,{get children(){return[y(L1,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),y(Fe,{get when(){return e.text},get children(){return y(s9,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),pe(()=>e.icon)]}}))},a9=V(uo)` + align-self: center; +`,c9=e=>{const t=Dn(Ko),[n]=Ur(),r=()=>t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet");return y(R1,{get header(){return{translationKey:"notifications.confirm.header",translationValues:{name:r()}}},get class(){return e.class},get icon(){return y(a9,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},u9=V(lu)` + margin-top: 2px; +`,f9=e=>y(R1,{header:{translationKey:"notifications.transactionCanceled.header"},text:{translationKey:"notifications.transactionCanceled.text"},get icon(){return y(u9,{size:"xs"})},get class(){return e.class},"data-tc-notification-tx-cancelled":"true",children:"Transaction cancelled"}),d9=V(A1)` + margin-top: 2px; +`,h9=e=>y(R1,{header:{translationKey:"notifications.transactionSent.header"},text:{translationKey:"notifications.transactionSent.text"},get icon(){return y(d9,{})},get class(){return e.class},"data-tc-notification-tx-sent":"true",children:"Transaction sent"}),Ku=oo` + transform: translateY(-8px); + margin-bottom: 12px; +`,p9={timeout:4500},[Wh,g9]=Oe(null);function v9(e){const{timeout:t}=_t(_t({},p9),e),[n,r]=Oe([]),[o,i]=Oe([]);return vn(b6(qr,l=>{var s;if(!l||!l.showNotification||Wh()===l||((s=Wh())==null?void 0:s.name)==="confirm-transaction"&&l.name==="confirm-transaction")return;g9(l),r(d=>d.filter(p=>p.action!=="confirm-transaction"));const a={action:l.name};r(d=>[...d,a]);const u=setTimeout(()=>{r(d=>d.filter(p=>p!==a)),i(d=>d.filter(p=>p!==u))},t);i(d=>[...d,u])})),Un(()=>{o().forEach(l=>clearTimeout(l))}),n}const m9=st('
    '),y9=e=>{const t=v9();return(()=>{const n=m9.cloneNode(!0);return Mn(n,y(ry,{onBeforeEnter:r=>{Mr(r,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(r,o)=>{Mr(r,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(o)},get children(){return y($s,{get each(){return t()},children:r=>y(js,{get children(){return[y(bn,{get when(){return r.action==="transaction-sent"},get children(){return y(h9,{class:Ku})}}),y(bn,{get when(){return r.action==="transaction-canceled"},get children(){return y(f9,{class:Ku})}}),y(bn,{get when(){return r.action==="confirm-transaction"},get children(){return y(c9,{class:Ku})}})]}})})}})),it(()=>y1(n,e.class)),n})()},Uv=V(tn)` + background-color: ${e=>e.theme.colors.connectButton.background}; + color: ${e=>e.theme.colors.connectButton.foreground}; + box-shadow: ${e=>`0 4px 24px ${Ws(e.theme.colors.constant.black,.16)}`}; + padding: 8px 16px 8px 12px; + + display: flex; + align-items: center; + gap: 4px; + height: 40px; +`,w9=V(Uv)` + padding: 12px 16px; + min-width: 148px; + justify-content: center; + background-color: ${e=>e.theme.colors.background.primary}; +`,x9=V(tn)` + min-width: 148px; + height: 40px; + + background-color: ${e=>e.theme.colors.background.primary}; + color: ${e=>e.theme.colors.connectButton.foreground}; + box-shadow: ${e=>`0 4px 24px ${Ws(e.theme.colors.constant.black,.16)}`}; + + display: flex; + align-items: center; + justify-content: center; +`,C9=V(uo)` + height: 18px; + width: 18px; +`,b9=V.div` + width: fit-content; + display: flex; + flex-direction: column; + align-items: flex-end; +`,S9=V(r9)` + box-sizing: border-box; + overflow: hidden; + margin-top: 12px; +`,_9=V(y9)` + > div:first-child { + margin-top: 20px; + } +`;function Dv(e){return e.split("-")[0]}function k9(e){return e.split("-")[1]}function E9(e){return["top","bottom"].includes(Dv(e))?"x":"y"}function T9(e){return e==="y"?"height":"width"}function Oh(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,s=E9(t),a=T9(s),u=r[a]/2-o[a]/2,d=Dv(t),p=s==="x";let h;switch(d){case"top":h={x:i,y:r.y-o.height};break;case"bottom":h={x:i,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:l};break;case"left":h={x:r.x-o.width,y:l};break;default:h={x:r.x,y:r.y}}switch(k9(t)){case"start":h[s]-=u*(n&&p?-1:1);break;case"end":h[s]+=u*(n&&p?-1:1);break}return h}const P9=(e,t,n)=>St(void 0,null,function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=yield l.isRTL==null?void 0:l.isRTL(t);let u=yield l.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:p}=Oh(u,r,a),h=r,S={},C=0;for(let _=0;_t.brand+"/"+t.version).join(" "),ya):navigator.userAgent}function Br(e){return e instanceof fo(e).HTMLElement}function pr(e){return e instanceof fo(e).Element}function Hv(e){return e instanceof fo(e).Node}function Uh(e){if(typeof ShadowRoot>"u")return!1;const t=fo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function su(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Or(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function L9(e){return["table","td","th"].includes(Bo(e))}function M1(e){const t=/firefox/i.test(Fv()),n=Or(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||(r?r!=="none":!1)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)||["transform","perspective"].some(o=>n.willChange.includes(o))||["paint","layout","strict","content"].some(o=>{const i=n.contain;return i!=null?i.includes(o):!1})}function zv(){return!/^((?!chrome|android).)*safari/i.test(Fv())}function I1(e){return["html","body","#document"].includes(Bo(e))}const Dh=Math.min,Xl=Math.max,Fh=Math.round,cd={x:1,y:1};function Es(e){const t=!pr(e)&&e.contextElement?e.contextElement:pr(e)?e:null;if(!t)return cd;const n=t.getBoundingClientRect(),r=Or(t);if(r.boxSizing!=="border-box")return Br(t)?{x:t.offsetWidth>0&&Fh(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&Fh(n.height)/t.offsetHeight||1}:cd;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 Uo(e,t,n,r){var o,i,l,s;t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect();let u=cd;t&&(r?pr(r)&&(u=Es(r)):u=Es(e));const d=pr(e)?fo(e):window,p=!zv()&&n,h=(a.left+(p&&(o=(i=d.visualViewport)==null?void 0:i.offsetLeft)!=null?o:0))/u.x,S=(a.top+(p&&(l=(s=d.visualViewport)==null?void 0:s.offsetTop)!=null?l:0))/u.y,C=a.width/u.x,_=a.height/u.y;return{width:C,height:_,top:S,right:h+C,bottom:S+_,left:h,x:h,y:S}}function qo(e){return((Hv(e)?e.ownerDocument:e.document)||window.document).documentElement}function au(e){return pr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Vv(e){return Uo(qo(e)).left+au(e).scrollLeft}function A9(e,t,n){const r=Br(t),o=qo(t),i=Uo(e,!0,n==="fixed",t);let l={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&n!=="fixed")if((Bo(t)!=="body"||su(o))&&(l=au(t)),Br(t)){const a=Uo(t,!0);s.x=a.x+t.clientLeft,s.y=a.y+t.clientTop}else o&&(s.x=Vv(o));return{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Ts(e){if(Bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||(Uh(e)?e.host:null)||qo(e);return Uh(t)?t.host:t}function Hh(e){return!Br(e)||Or(e).position==="fixed"?null:e.offsetParent}function R9(e){let t=Ts(e);for(;Br(t)&&!I1(t);){if(M1(t))return t;t=Ts(t)}return null}function zh(e){const t=fo(e);let n=Hh(e);for(;n&&L9(n)&&Or(n).position==="static";)n=Hh(n);return n&&(Bo(n)==="html"||Bo(n)==="body"&&Or(n).position==="static"&&!M1(n))?t:n||R9(e)||t}function M9(e){if(Br(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Uo(e);return{width:t.width,height:t.height}}function I9(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Br(n),i=qo(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0},s={x:1,y:1};const a={x:0,y:0};if((o||!o&&r!=="fixed")&&((Bo(n)!=="body"||su(i))&&(l=au(n)),Br(n))){const u=Uo(n);s=Es(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-l.scrollLeft*s.x+a.x,y:t.y*s.y-l.scrollTop*s.y+a.y}}function N9(e,t){const n=fo(e),r=qo(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;const u=zv();(u||!u&&t==="fixed")&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}function $9(e){var t;const n=qo(e),r=au(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Xl(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Xl(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+Vv(e);const a=-r.scrollTop;return Or(o||n).direction==="rtl"&&(s+=Xl(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:s,y:a}}function Kv(e){const t=Ts(e);return I1(t)?e.ownerDocument.body:Br(t)&&su(t)?t:Kv(t)}function es(e,t){var n;t===void 0&&(t=[]);const r=Kv(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=fo(r);return o?t.concat(i,i.visualViewport||[],su(r)?r:[]):t.concat(r,es(r))}function j9(e,t){const n=Uo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Br(e)?Es(e):{x:1,y:1},l=e.clientWidth*i.x,s=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{top:u,left:a,right:a+l,bottom:u+s,x:a,y:u,width:l,height:s}}function Vh(e,t,n){return t==="viewport"?Bh(N9(e,n)):pr(t)?j9(t,n):Bh($9(qo(e)))}function W9(e,t){const n=t.get(e);if(n)return n;let r=es(e).filter(s=>pr(s)&&Bo(s)!=="body"),o=null;const i=Or(e).position==="fixed";let l=i?Ts(e):e;for(;pr(l)&&!I1(l);){const s=Or(l),a=M1(l);(i?!a&&!o:!a&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position))?r=r.filter(d=>d!==l):o=s,l=Ts(l)}return t.set(e,r),r}function O9(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?W9(t,this._c):[].concat(n),r],s=l[0],a=l.reduce((u,d)=>{const p=Vh(t,d,o);return u.top=Xl(p.top,u.top),u.right=Dh(p.right,u.right),u.bottom=Dh(p.bottom,u.bottom),u.left=Xl(p.left,u.left),u},Vh(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}const B9={getClippingRect:O9,convertOffsetParentRelativeRectToViewportRelativeRect:I9,isElement:pr,getDimensions:M9,getOffsetParent:zh,getDocumentElement:qo,getScale:Es,getElementRects(e){return St(this,null,function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||zh,i=this.getDimensions;return{reference:A9(t,yield o(n),r),floating:_t({x:0,y:0},yield i(n))}})},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Or(e).direction==="rtl"};function U9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:s=!1}=r,a=o&&!s,u=a||i?[...pr(e)?es(e):e.contextElement?es(e.contextElement):[],...es(t)]:[];u.forEach(C=>{a&&C.addEventListener("scroll",n,{passive:!0}),i&&C.addEventListener("resize",n)});let d=null;if(l){let C=!0;d=new ResizeObserver(()=>{C||n(),C=!1}),pr(e)&&!s&&d.observe(e),!pr(e)&&e.contextElement&&!s&&d.observe(e.contextElement),d.observe(t)}let p,h=s?Uo(e):null;s&&S();function S(){const C=Uo(e);h&&(C.x!==h.x||C.y!==h.y||C.width!==h.width||C.height!==h.height)&&n(),h=C,p=requestAnimationFrame(S)}return n(),()=>{var C;u.forEach(_=>{a&&_.removeEventListener("scroll",n),i&&_.removeEventListener("resize",n)}),(C=d)==null||C.disconnect(),d=null,s&&cancelAnimationFrame(p)}}const D9=(e,t,n)=>{const r=new Map,o=_t({platform:B9},n),i=nr(_t({},o.platform),{_c:r});return P9(e,t,nr(_t({},o),{platform:i}))};function F9(e,t,n){let r=()=>{var p;return(p=n==null?void 0:n.placement)!=null?p:"bottom"},o=()=>{var p;return(p=n==null?void 0:n.strategy)!=null?p:"absolute"},[i,l]=Oe({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,a]=Oe();vn(()=>{let p=s();if(p)throw p.value});let u=pe(()=>(e(),t(),{}));function d(){let p=e(),h=t();if(p&&h){let S=u();D9(p,h,{middleware:n==null?void 0:n.middleware,placement:r(),strategy:o()}).then(C=>{S===u()&&l(C)},C=>{a(C)})}}return vn(()=>{let p=e(),h=t();if(n==null||n.middleware,r(),o(),p&&h)if(n!=null&&n.whileElementsMounted){let S=n.whileElementsMounted(p,h,d);S&&Un(S)}else d()}),{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:d}}const H9=st(''),z9=()=>{const e=Lt(),t=Dn(hl),n=Dn(Ko),[r,o]=Oe(!1),[i,l]=Oe(t.account),[s,a]=Oe(!t.account);let u;const[d,p]=Oe(),[h,S]=Oe(),C=F9(h,d,{whileElementsMounted:U9,placement:"bottom-end"}),_=()=>{const g=i();if(g){const w=Yg(g.address,g.chain===ac.TESTNET);return w.slice(0,4)+"…"+w.slice(-4)}return""};n.connectionRestored.then(()=>a(!1));const P=t.onStatusChange(g=>{if(!g){o(!1),l(null),a(!1);return}l(g.account),a(!1)}),b=g=>{if(!i()||!r())return;const w=h().contains(g.target),k=u.contains(g.target);!w&&!k&&o(!1)};return S6(()=>{document.body.addEventListener("click",b)}),Un(()=>{document.body.removeEventListener("click",b),P()}),y(rl,{component:Kr,get children(){return[y(Fe,{get when(){return s()},get children(){return y(x9,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return y(C9,{})}})}}),y(Fe,{get when(){return!s()},get children(){return[y(Fe,{get when(){return!i()},get children(){return y(Uv,{onClick:()=>n.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[y(rw,{get fill(){return e.colors.connectButton.foreground}}),y(ir,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),y(Fe,{get when(){return i()},get children(){return y(b9,{get children(){return[y(w9,{onClick:()=>o(g=>!g),ref:S,"data-tc-dropdown-button":"true",scale:"s",get children(){return[y(ir,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return _()}}),y(Lv,{direction:"bottom"})]}}),y(hv,{get children(){const g=mn(()=>document.importNode(H9,!0));return Yl(p,g),g.style.setProperty("z-index","999"),g._$owner=_6(),Mn(g,y(T1,{onBeforeEnter:w=>{Mr(w,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(w,k)=>{Mr(w,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(k)},get children(){return y(Fe,{get when(){return r()},get children(){return y(S9,{get hidden(){return!r()},onClose:()=>o(!1),ref(w){const k=u;typeof k=="function"?k(w):u=w}})}})}}),null),Mn(g,y(_9,{}),null),it(w=>{var k,E;const $=C.strategy,N=`${(k=C.y)!=null?k:0}px`,A=`${(E=C.x)!=null?E:0}px`;return $!==w._v$&&g.style.setProperty("position",w._v$=$),N!==w._v$2&&g.style.setProperty("top",w._v$2=N),A!==w._v$3&&g.style.setProperty("left",w._v$3=A),w},{_v$:void 0,_v$2:void 0,_v$3:void 0}),g}})]}})}})]}})]}})},qv=V(Rv)` + padding-left: 24px; + padding-right: 24px; + padding-top: 18px; + padding-bottom: 0; + + ${ar("mobile")} { + padding-left: 0; + padding-right: 0; + + min-height: 364px; + } +`,Qv=V(Dr)` + margin-top: 12px; + + ${ar("mobile")} { + padding: 0 10px; + } +`,Zv=V.div` + margin: 30px 0; + width: 100%; + display: flex; + justify-content: center; + + ${ar("mobile")} { + height: 160px; + align-items: center; + } +`;V(ir)` + min-width: 84px; + text-align: center; + font-weight: 590; +`;V(Py)` + margin: 0 auto 22px; +`;const[vt,wa]=_1({buttonRootId:null,language:"en",returnStrategy:"back",twaReturnUrl:void 0,walletsListConfiguration:{},enableAndroidBackHandler:!0});function V9(e){return[...new Set(e)]}function K9(e,t,n){return t.map(r=>{const o=n.find(i=>i[e]===r[e]);return n=n.filter(i=>i[e]!==r[e]),o===void 0?r:o}).concat(n)}function q9(e){return"jsBridgeKey"in e?nr(_t({},e),{injected:pi.isWalletInjected(e.jsBridgeKey),embedded:pi.isInsideWalletBrowser(e.jsBridgeKey)}):e}function N1(e,t){var n;return t&&(n=t.includeWallets)!=null&&n.length&&(e=K9("name",e,t.includeWallets.map(q9))),e}function Kh(e){return e.platforms.some(t=>["macos","linux","windows"].includes(t))}function ts(e){return e.platforms.some(t=>["ios","android"].includes(t))}function qh(e){return e.platforms.some(t=>["chrome","firefox","safari"].includes(t))}function wo(e,t){return t?e.name.toLowerCase()===t.toLowerCase()||e.appName.toLowerCase()===t.toLowerCase():!1}const Q9=V.div` + display: flex; + flex-direction: column; + align-items: center; +`,Z9=V(Dr)` + margin-bottom: 18px; +`;V.div` + height: 1px; + margin: 0 -24px; + width: calc(100% + 48px); + opacity: 0.12; + background: ${e=>e.isShown?e.theme.colors.icon.secondary:"transparent"}; + transition: background 0.15s ease-in-out; + + ${ar("mobile")} { + width: 100%; + } +`;const G9=V.ul` + display: grid; + grid-template-columns: repeat(auto-fit, 92px); + grid-template-rows: auto; + align-content: flex-start; + justify-content: center; + row-gap: 8px; + width: 100%; + padding: 0 0 16px; + align-self: flex-start; + max-width: 400px; + margin: 0 auto; + + > li { + display: block; + height: fit-content; + } + + ${ar("mobile")} { + grid-template-columns: repeat(auto-fit, 82px); + } +`;V(tn)` + display: block; + margin: 0 auto 1px; + font-size: 15px; +`;const Y9=V(xi)` + position: absolute; + top: 16px; + left: 16px; +`,J9=V(Ov)` + height: 100%; +`,X9=st("
  • "),e7=e=>{const t=()=>il()?void 0:510,n=()=>il()?e.walletsList.filter(ts):e.walletsList;return y(Q9,{"data-tc-wallets-modal-list":"true",get children(){return[y(Y9,{icon:"arrow",onClick:()=>e.onBack()}),y(Z9,{translationKey:"walletModal.wallets",children:"Wallets"}),y(Bv,{get maxHeight(){return t()},get children(){return y(G9,{get children(){return y($s,{get each(){return n()},children:r=>(()=>{const o=X9.cloneNode(!0);return Mn(o,y(J9,{wallet:r,onClick:()=>e.onSelect(r)})),o})()})}})}})]}})},t7={m:"16px",s:"12px",none:"0"},n7={m:"6px",s:"6px",none:"0"},r7=V.div` + display: flex; + flex-direction: column; +`,o7=V.div` + flex: 1; + margin-top: ${e=>e.qr?"0":"18px"}; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + min-height: 232px; +`,i7=V(iu)` + margin-bottom: 24px; +`,l7=V(Dr)` + max-width: 288px; + margin: 0 auto 2px; +`,s7=V(Vo)` + max-width: 288px; + text-align: center; + margin: 0 auto 20px; +`,a7=V(xi)` + position: absolute; + top: 16px; + left: 16px; +`,Wl=V.div` + display: flex; + justify-content: center; + gap: 8px; + padding-bottom: 16px; +`,c7=V(Wl)` + padding-bottom: 0; +`,qu=V(tn)` + margin-bottom: 24px; +`,u7=V(uo)` + margin-bottom: 18px; + margin-top: 2px; +`,f7=V(lu)` + margin-bottom: 16px; +`,xa=V(Vo)` + color: ${e=>e.theme.colors.text.secondary}; + text-align: center; + margin-bottom: 20px; +`,d7=V(tn)` + margin-top: -8px; + margin-bottom: 24px; + width: 100%; + padding: 12px 12px 12px 20px; + border-radius: ${e=>t7[e.theme.borderRadius]}; + font-size: 16px; + line-height: 20px; +`,h7=V(wi)` + width: 32px; + height: 32px; + border-radius: ${e=>n7[e.theme.borderRadius]}; +`,hn=e=>{const[t]=Ur();return pe(()=>{var n;return t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString())})};function Et(e,t){let n;typeof t=="string"?n=t:n=io()?t.twaReturnUrl||t.returnStrategy:"none";const r=p7(e,"ret",n);if(!ii(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+Ng(o)}function Fs(e,t){t=_t({},t);const n=g7(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),io())Gr("ios","android","macos")?(t.returnStrategy="back",t.twaReturnUrl=void 0,$l(Et(r.toString(),t))):Gr("tdesktop")||Gr("weba")?$l(Et(r.toString(),t)):Gr("web")?(t.returnStrategy="back",t.twaReturnUrl=void 0,$l(Et(r.toString(),t))):It(Et(r.toString(),t));else if(Rr("ios")){t.returnStrategy==="back"&&(nt("safari")?t.returnStrategy="back":nt("chrome")?t.returnStrategy="googlechrome://":nt("firefox")?t.returnStrategy="firefox://":nt("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const o=nt("chrome"),i=nt("firefox");if((o||i)&&!t.forceRedirect){const s=Et(r.toString(),t.returnStrategy),a=Ca(s);bo(a,()=>It(s))}else{const s=Et(r.toString(),t.returnStrategy);It(s)}}else if(Rr("android")){t.returnStrategy="none";const o=nt("chrome"),i=nt("firefox");if((o||i)&&!t.forceRedirect){const s=Et(r.toString(),t.returnStrategy),a=Ca(s);bo(a,()=>It(s))}else{const s=Et(r.toString(),t.returnStrategy);It(s)}}else if(Rr("ipad")){t.returnStrategy==="back"&&(nt("safari")?t.returnStrategy="back":nt("chrome")?t.returnStrategy="googlechrome://":nt("firefox")?t.returnStrategy="firefox://":nt("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const o=nt("chrome"),i=nt("firefox");if((o||i)&&!t.forceRedirect){const s=Et(r.toString(),t.returnStrategy),a=Ca(s);bo(a,()=>It(s))}else{const s=Et(r.toString(),t.returnStrategy);It(s)}}else if(Rr("macos","windows","linux"))if(t.returnStrategy="none",t.twaReturnUrl=void 0,t.forceRedirect)It(Et(r.toString(),t));else{const o=Et(r.toString(),t),i=Ca(o);bo(i,()=>It(o))}else It(Et(r.toString(),t))}function Hs(e,t,n,r){if(n=_t({},n),io())if(Gr("ios","android")){n.returnStrategy==="back"&&(n.returnStrategy="tg://resolve"),r("universal-link");const o=Et(e,n.returnStrategy);$l(o,()=>{r("universal-link"),It(o)})}else if(Gr("macos","tdesktop")){n.returnStrategy==="back"&&(n.returnStrategy="tg://resolve");const o=Et(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),bo(va(o,t),()=>{r("universal-link"),It(o)})):(r("universal-link"),It(o))}else if(Gr("weba")){n.returnStrategy==="back"&&(nt("safari")?n.returnStrategy=location.href:nt("chrome")?n.returnStrategy="googlechrome://":nt("firefox")?n.returnStrategy="firefox://":nt("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Et(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),bo(va(o,t),()=>{r("universal-link"),It(o)})):(r("universal-link"),It(o))}else if(Gr("web")){n.returnStrategy==="back"&&(nt("safari")?n.returnStrategy=location.href:nt("chrome")?n.returnStrategy="googlechrome://":nt("firefox")?n.returnStrategy="firefox://":nt("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=Et(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),bo(va(o,t),()=>{r("universal-link"),It(o)})):(r("universal-link"),It(o))}else{r("universal-link");const o=Et(e,n.returnStrategy);It(o)}else if(Rr("ios"))n.returnStrategy==="back"&&(nt("safari")?n.returnStrategy="none":nt("chrome")?n.returnStrategy="googlechrome://":nt("firefox")?n.returnStrategy="firefox://":nt("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),nt("chrome")?(r("universal-link"),yc(Et(e,n.returnStrategy),"_self")):(r("universal-link"),It(Et(e,n.returnStrategy)));else if(Rr("android"))n.returnStrategy==="back"&&(nt("chrome")?n.returnStrategy="googlechrome://":nt("firefox")?n.returnStrategy="firefox://":nt("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),It(Et(e,n.returnStrategy));else if(Rr("ipad"))n.returnStrategy==="back"&&(nt("safari")?n.returnStrategy="none":nt("chrome")?n.returnStrategy="googlechrome://":nt("firefox")?n.returnStrategy="firefox://":nt("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),nt("chrome")?(r("universal-link"),yc(Et(e,n.returnStrategy),"_self")):(r("universal-link"),It(Et(e,n.returnStrategy)));else if(Rr("macos","windows","linux")){n.returnStrategy==="back"&&(nt("safari")?n.returnStrategy="none":nt("chrome")?n.returnStrategy="googlechrome://":nt("firefox")?n.returnStrategy="firefox://":nt("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=Et(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),bo(va(o,t),()=>{r("universal-link"),It(o)})):(r("universal-link"),It(o))}else r("universal-link"),It(Et(e,n.returnStrategy))}function p7(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}function g7(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}function Ca(e){const t=new URL(e),[,n,r]=t.pathname.split("/"),o=t.searchParams.get("startapp");return`tg://resolve?domain=${n}&appname=${r}&startapp=${o}`}const Gv=e=>{const[t,n]=Oe("mobile"),[r,o]=Oe(!1),[i,l]=Oe(),[s,a]=Oe(!0),u=Dn(hl),d=u.onStatusChange(()=>{},()=>{e.wallet.appName!==Xr&&o(!0)});Un(d);const p=()=>{try{const P=u.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest);l(P)}catch{}};vn(()=>{mn(t)!=="extension"&&(ts(e.wallet)||Kh(e.wallet))&&p()});const h=()=>{o(!1),t()==="extension"&&p(),n("mobile"),Sn(nr(_t({},e.wallet),{openMethod:"qrcode"}))},S=()=>{o(!1),t()==="extension"&&p(),n("desktop");const P=!s();a(!1),Hs(i(),e.wallet.deepLink,{returnStrategy:vt.returnStrategy,forceRedirect:P},b=>{Sn(nr(_t({},e.wallet),{openMethod:b}))})},C=()=>{const P=!s();a(!1),Sn(nr(_t({},e.wallet),{openMethod:"universal-link"})),Fs(i(),{returnStrategy:vt.returnStrategy,twaReturnUrl:vt.twaReturnUrl,forceRedirect:P})},_=()=>{o(!1),n("extension"),li(e.wallet)&&(Sn(e.wallet),u.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return ts(e.wallet)?h():qh(e.wallet)?_():S(),y(r7,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[y(Fe,{get when(){return!e.backDisabled},get children(){return y(a7,{icon:"arrow",onClick:()=>e.onBackClick()})}}),y(l7,{get children(){return e.wallet.name}}),y(Fe,{get when(){return t()==="mobile"},get children(){return y(s7,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone’s or ",pe(()=>e.wallet.name),"’s camera"]}})}}),y(o7,{get qr(){return t()==="mobile"},get children(){return y(js,{get children(){return[y(bn,{get when(){return t()==="mobile"},get children(){return y(i7,{disableCopy:!1,get sourceUrl(){return Et(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),y(bn,{get when(){return r()},get children(){return[y(f7,{size:"s"}),y(xa,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"}),y(Wl,{get children(){return y(tn,{get leftIcon(){return y(Jl,{})},get onClick(){return t()==="extension"?_:S},get children(){return y(hn,{translationKey:"common.retry",children:"Retry"})}})}})]}}),y(bn,{get when(){return t()==="extension"},get children(){return[y(Fe,{get when(){return li(e.wallet)},get children(){return[y(u7,{size:"s"}),y(xa,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",pe(()=>e.wallet.name)," browser extension…"]}}),y(Wl,{get children(){return y(tn,{get leftIcon(){return y(Jl,{})},onClick:_,get children(){return y(hn,{translationKey:"common.retry",children:"Retry"})}})}})]}}),y(Fe,{get when(){return!li(e.wallet)},get children(){return[y(xa,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",pe(()=>e.wallet.name)," browser extension"]}}),y(Wl,{get children(){return y(Tc,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return y(tn,{get rightIcon(){return y(Nh,{})},onClick:_,get children(){return y(hn,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",pe(()=>e.wallet.name)]}})}})}})}})]}})]}}),y(bn,{get when(){return t()==="desktop"},get children(){return[y(uo,{size:"m"}),y(xa,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",pe(()=>e.wallet.name)," on desktop…"]}}),y(Wl,{get children(){return[y(tn,{get leftIcon(){return y(Jl,{})},onClick:S,get children(){return y(hn,{translationKey:"common.retry",children:"Retry"})}}),y(Tc,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return y(tn,{get rightIcon(){return y(Nh,{})},get children(){return y(hn,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",pe(()=>e.wallet.name)]}})}})}})]}})]}})]}})}}),y(Fe,{get when(){return e.wallet.appName===Xr},get children(){return y(d7,{get rightIcon(){return y(h7,{get src(){return Ds.TG}})},scale:"s",onClick:C,get children(){return y(hn,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),y(Fe,{get when(){return e.wallet.appName!==Xr},get children(){return y(c7,{get children(){return[y(Fe,{get when(){return pe(()=>t()!=="mobile")()&&ts(e.wallet)},get children(){return y(qu,{appearance:"secondary",get leftIcon(){return y(xw,{})},onClick:h,get children(){return y(hn,{translationKey:"common.mobile",children:"Mobile"})}})}}),y(Fe,{get when(){return pe(()=>t()!=="extension")()&&qh(e.wallet)},get children(){return y(qu,{appearance:"secondary",get leftIcon(){return y(yw,{})},onClick:_,get children(){return y(hn,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),y(Fe,{get when(){return pe(()=>t()!=="desktop")()&&Kh(e.wallet)},get children(){return y(qu,{appearance:"secondary",get leftIcon(){return y(bw,{})},onClick:S,get children(){return y(hn,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},v7=V.div``,m7=V(xi)` + position: absolute; + top: 16px; + left: 16px; +`,y7=V(Dr)` + margin-bottom: 18px; +`,Qu=V.div` + padding: 16px 0; + display: flex; + flex-direction: column; + align-items: center; +`,Zu=oo` + margin-bottom: 12px; +`,Gu=V(L1)` + text-align: center; + margin-bottom: 4px; +`,Yu=V(ir)` + text-align: center; + max-width: 352px; + color: ${e=>e.theme.colors.text.secondary}; +`,w7=V.div` + padding: 16px 24px 24px; + display: flex; + align-items: center; + justify-content: center; + gap: 8px; +`,x7={GET_A_WALLET:"https://ton.org/wallets?filters[wallet_features][slug][$in]=dapp-auth&pagination[limit]=-1"},Yv=e=>y(v7,{"data-tc-wallets-modal-info":"true",get children(){return[y(m7,{icon:"arrow",onClick:()=>e.onBackClick()}),y(y7,{translationKey:"walletModal.infoModal.whatIsAWallet",children:"What is a wallet"}),y(Bv,{get children(){return[y(Qu,{get children(){return[y(Pw,{class:Zu}),y(Gu,{translationKey:"walletModal.infoModal.secureDigitalAssets",children:"Secure digital assets storage"}),y(Yu,{translationKey:"walletModal.infoModal.walletProtects",children:"A wallet protects and manages your digital assets including TON, tokens and collectables."})]}}),y(Qu,{get children(){return[y(Aw,{class:Zu}),y(Gu,{translationKey:"walletModal.infoModal.controlIdentity",children:"Control your Web3 identity"}),y(Yu,{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."})]}}),y(Qu,{get children(){return[y(Mw,{class:Zu}),y(Gu,{translationKey:"walletModal.infoModal.effortlessCryptoTransactions",children:"Effortless crypto transactions"}),y(Yu,{translationKey:"walletModal.infoModal.easilySend",children:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications."})]}}),y(w7,{get children(){return y(Tc,{get href(){return x7.GET_A_WALLET},blank:!0,get children(){return y(tn,{get rightIcon(){return y(Ew,{})},get children(){return y(hn,{translationKey:"walletModal.infoModal.getAWallet",children:"Get a Wallet"})}})}})}})]}})]}}),C7=V.div``,b7=V.div` + flex: 1; + margin-top: 18px; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + min-height: 232px; +`,S7=V(Dr)` + max-width: 262px; + margin: 0 auto 8px; +`,_7=V(xi)` + position: absolute; + top: 16px; + left: 16px; +`,k7=V.div` + padding: 16px; + display: flex; + align-items: center; + gap: 12px; + border-top: 0.5px solid ${e=>Ws(e.theme.colors.icon.secondary,.2)}; +`,E7=V(wi)` + width: 36px; + height: 36px; + border-radius: 10px; +`,T7=V(Tc)` + margin-left: auto; +`,P7=V(uo)` + margin-bottom: 18px; + margin-top: 2px; +`,L7=V(lu)` + margin-bottom: 16px; +`,Qh=V(Vo)` + color: ${e=>e.theme.colors.text.secondary}; + text-align: center; + margin-bottom: 20px; +`,Zh=V.div` + display: flex; + justify-content: center; + gap: 8px; + padding-bottom: 16px; +`,A7=V(Dr)` + margin-bottom: 2px; + padding: 0 64px; +`,R7=V(Vo)` + margin-bottom: 20px; + padding: 0 64px; + min-height: 44px; +`,M7=V.div` + padding: 0 24px 24px; +`,I7=e=>[y(A7,{get children(){return e.walletInfo.name}}),y(R7,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone’s or ",pe(()=>e.walletInfo.name),"’s camera"]}}),y(M7,{get children(){return y(iu,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return Et(e.universalLink,"none")},disableCopy:!0})}})],Jv=e=>{const t=Lt(),[n,r]=Oe(!0),[o,i]=Oe(!1),[l,s]=Oe(!1),a=Dn(hl),u=a.onStatusChange(()=>{},()=>{s(!0)}),d=pe(()=>a.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest)),p=()=>{Sn(nr(_t({},e.wallet),{openMethod:"universal-link"})),Fs(d(),{returnStrategy:vt.returnStrategy,twaReturnUrl:vt.twaReturnUrl,forceRedirect:!0})},h=()=>{const P=d();if(ii(P))return p();s(!1);const b=!n();r(!1),Hs(d(),e.wallet.deepLink,{returnStrategy:vt.returnStrategy,forceRedirect:b},g=>{Sn(nr(_t({},e.wallet),{openMethod:g}))})},S=()=>{s(!1),i(!0),Sn(nr(_t({},e.wallet),{openMethod:"qrcode"}))},C=()=>{i(!1),Sn(nr(_t({},e.wallet),{openMethod:"universal-link"}))},_=()=>{o()?C():e.onBackClick()};return Un(u),h(),y(C7,{"data-tc-wallets-modal-connection-mobile":"true",get children(){return[y(Fe,{get when(){return!e.backDisabled||o()},get children(){return y(_7,{icon:"arrow",onClick:_})}}),y(Fe,{get when(){return o()},get children(){return y(I7,{get universalLink(){return d()},get walletInfo(){return e.wallet}})}}),y(Fe,{get when(){return!o()},get children(){return[y(S7,{get children(){return e.wallet.name}}),y(b7,{get children(){return[y(Fe,{get when(){return l()},get children(){return[y(L7,{size:"s"}),y(Qh,{translationKey:"walletModal.mobileConnectionModal.connectionDeclined",children:"Connection declined"}),y(Zh,{get children(){return[y(tn,{get leftIcon(){return y(Jl,{})},onClick:h,get children(){return y(hn,{translationKey:"common.retry",children:"Retry"})}}),y(tn,{get leftIcon(){return y(ad,{get fill(){return t.colors.accent}})},onClick:S,get children(){return y(hn,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}}),y(Fe,{get when(){return!l()},get children(){return[y(P7,{size:"s"}),y(Qh,{translationKey:"walletModal.mobileConnectionModal.continueIn",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",pe(()=>e.wallet.name),"…"]}}),y(Zh,{get children(){return[y(tn,{get leftIcon(){return y(Jl,{})},onClick:h,get children(){return y(hn,{translationKey:"common.retry",children:"Retry"})}}),y(tn,{get leftIcon(){return y(ad,{get fill(){return t.colors.accent}})},onClick:S,get children(){return y(hn,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})]}}),y(k7,{get children(){return[y(E7,{get src(){return e.wallet.imageUrl}}),y(L1,{get children(){return e.wallet.name}}),y(T7,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return y(tn,{get children(){return y(hn,{translationKey:"common.get",children:"GET"})}})}})]}})]}})]}})},Xv={m:"16px",s:"12px",none:"0"},N7={m:"6px",s:"6px",none:"0"},$7=V.ul` + display: flex; + justify-content: space-between; + margin: 0 auto; + width: fit-content; + max-width: 100%; + min-width: 100%; + height: fit-content; + overflow-x: auto; + overflow-y: hidden; + padding: 0 13px 24px; + + &&::-webkit-scrollbar { + display: none; + } + + -ms-overflow-style: none; + scrollbar-width: none; + + > li { + height: fit-content; + } +`,Gh=V.li` + width: 82px; + min-width: 82px; + height: 124px; + display: flex; + flex-direction: column; + align-items: center; + padding: 8px 4px; + + text-align: center; + cursor: pointer; + + transition: transform 0.1s ease-in-out; + + ${Bs} { + &:hover { + transform: scale(1.04); + } + } + + &:active { + transform: scale(0.96); + } + + ${Os} { + &:active { + transform: scale(0.92); + } + } +`,j7=V.div` + width: 1px; + margin: 0 10px; + height: 24px; + position: relative; + top: 26px; + + background-color: ${e=>e.theme.colors.icon.secondary}; + opacity: 0.2; +`,Yh=V.div` + width: 60px; + height: 60px; + border-radius: ${e=>Xv[e.theme.borderRadius]}; + display: flex; + align-items: center; + justify-content: center; + + background-color: ${e=>e.theme.colors.background.tint}; + margin-bottom: 8px; +`,W7=V(Dr)` + margin-top: 38px; + margin-bottom: 4px; + padding: 0 24px; +`,O7=V(Vo)` + margin-bottom: 24px; + padding: 0 24px; + min-height: 44px; +`;V(tn)` + display: block; + margin: 0 auto; +`;const B7=V(tn)` + margin: 0 24px 24px; + width: calc(100% - 48px); + border-radius: ${e=>Xv[e.theme.borderRadius]}; + padding: 14px 16px 14px 14px; + background-color: ${e=>e.theme.colors.telegramButton}; + + color: ${e=>e.theme.colors.constant.white}; + font-weight: 590; + font-size: 16px; + line-height: 20px; +`,U7=V(wi)` + border-radius: ${e=>N7[e.theme.borderRadius]}; + width: 24px; + height: 24px; +`,Jh=V(xi)` + position: absolute; + top: 16px; + left: 16px; +`,D7=V(Dr)` + margin-bottom: 2px; + padding: 0 64px; +`,F7=V(Vo)` + margin-bottom: 20px; + padding: 0 64px; +`,H7=V.div` + padding: 0 24px 24px; +`,z7=e=>[y(D7,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),y(F7,{translationKey:"walletModal.mobileUniversalModal.scan",children:"Scan with your mobile wallet"}),y(H7,{get children(){return y(iu,{get imageUrl(){return Ds.TON},get sourceUrl(){return Et(e.universalLink,"none")},disableCopy:!0})}})];function em(e){const t=new Set(e.filter(p1).map(n=>n.bridgeUrl));return Array.from(t).map(n=>({bridgeUrl:n}))}function tm(e,t){const n=new Set(e==null?void 0:e.map(o=>o.bridgeUrl)),r=new Set(t==null?void 0:t.map(o=>o.bridgeUrl));return n.size===r.size&&[...n].every(o=>r.has(o))}const Xh=st("
  • "),V7=st('
    '),K7=e=>{const[t,n]=Oe(!1),[r,o]=Oe(!0),[i,l]=Oe(null),s=vt.connector,a=()=>e.walletsList.filter(w=>ts(w)&&w.appName!==Xr),u=()=>a().length>7,d=pe(()=>em(e.walletsList),null,{equals:tm}),p=()=>(i()||l(s.connect(d(),e.additionalRequest)),i());Sn({openMethod:"universal-link"});const[h,S]=Oe(void 0),C=()=>St(void 0,null,function*(){h()!==void 0&&clearTimeout(h()),yield P1(p());const w=setTimeout(()=>S(void 0),1500);S(w)}),_=()=>{const w=!r();o(!1),Hs(p(),void 0,{returnStrategy:vt.returnStrategy,forceRedirect:w},k=>{Sn({openMethod:k})})},P=()=>{l(null);const w=e.walletsList.find($=>$.appName===Xr);if(!w||!p1(w))throw new Xt("@wallet bot not found in the wallets list");const k=s.connect({bridgeUrl:w.bridgeUrl,universalLink:w.universalLink},e.additionalRequest),E=!r();o(!1),Fs(k,{returnStrategy:vt.returnStrategy,twaReturnUrl:vt.twaReturnUrl,forceRedirect:E})},b=()=>{n(!0),Sn({openMethod:"qrcode"})},g=()=>{n(!1),Sn({openMethod:"universal-link"})};return(()=>{const w=V7.cloneNode(!0);return Mn(w,y(Fe,{get when(){return t()},get children(){return[y(Jh,{icon:"arrow",onClick:g}),y(z7,{get universalLink(){return p()}})]}}),null),Mn(w,y(Fe,{get when(){return!t()},get children(){return[y(Jh,{get icon(){return y(ad,{})},onClick:b}),y(W7,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),y(O7,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect",children:"Open Wallet in Telegram or select your wallet to connect"}),y(B7,{get leftIcon(){return y(Nw,{})},get rightIcon(){return y(U7,{get src(){return Ds.TG}})},onClick:P,scale:"s",get children(){return y(hn,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegram",children:"Open Wallet in Telegram"})}}),y($7,{get children(){return[y($s,{get each(){return pe(()=>!!u())()?a().slice(0,4):a()},children:k=>(()=>{const E=Xh.cloneNode(!0);return Mn(E,y(kc,{get icon(){return k.imageUrl},get name(){return k.name},onClick:()=>e.onSelect(k)})),E})()}),y(Fe,{get when(){return u()},get children(){const k=Xh.cloneNode(!0);return Mn(k,y(Wv,{labelLine1:"View all",labelLine2:"wallets",get images(){return a().slice(3,7).map(E=>E.imageUrl)},onClick:()=>e.onSelectAllWallets()})),k}}),y(j7,{children:" "}),y(Gh,{onClick:_,get children(){return[y(Yh,{get children(){return y(tw,{})}}),y(ir,{fontWeight:590,translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})]}}),y(Gh,{onClick:C,get children(){return[y(Yh,{get children(){return pe(()=>h()!==void 0)()?y(jw,{}):y(jv,{})}}),y(ir,{fontWeight:590,get translationKey(){return h()!==void 0?"common.copied":"common.copyLink"},get children(){return h()!==void 0?"Copied":"Copy Link"}})]}})]}})]}}),null),w})()},nm={m:"16px",s:"8px",none:"0"},q7={m:"8px",s:"4px",none:"0"},Q7=V.div` + display: flex; + flex-direction: column; + align-items: center; + padding-bottom: 16px; +`,Z7=V(Vo)` + max-width: 320px; + margin-top: 2px; + margin-bottom: 20px; +`,G7=V(Vo)` + margin-bottom: 16px; +`,Y7=V(iu)` + margin-bottom: 24px; +`,J7=V.ul` + display: flex; +`;V.div` + display: flex; + gap: 16px; + width: 100%; +`;V(tn)` + position: relative; + font-size: 16px; + line-height: 20px; + width: 100%; + padding: 0 16px; + height: 56px; + border-radius: ${e=>nm[e.theme.borderRadius]}; + + &:hover { + ${e=>e.disableEventsAnimation?"transform: unset;":""} + } + + &:active { + ${e=>e.disableEventsAnimation?"transform: unset;":""} + } +`;V.ul` + position: absolute; + bottom: 100%; + left: 0; + margin: 0; + padding: 8px; + width: 188px; + transform: translateY(-16px); + + background-color: ${e=>e.theme.colors.background.primary}; + border-radius: ${e=>nm[e.theme.borderRadius]}; + box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16); +`;V.li` + padding: 8px; + + display: flex; + align-items: center; + gap: 8px; + + cursor: pointer; + border-radius: ${e=>q7[e.theme.borderRadius]}; + + transition: background-color, transform 0.1s ease-in-out; + + &:hover { + background-color: ${e=>e.theme.colors.background.secondary}; + } + + &:active { + transform: scale(0.96); + } +`;V(wi)` + width: 24px; + height: 24px; + + border-radius: 6px; +`;V.div` + margin-top: 23px; + margin-bottom: 1px; + width: 100%; + display: flex; + justify-content: center; + align-items: center; +`;V(ir)` + color: ${e=>e.theme.colors.text.secondary}; + font-size: 16px; +`;const X7=st("
  • "),ex=e=>{const[t,n]=Oe(!1),r=vt.connector,o=pe(()=>em(e.walletsList),null,{equals:tm});Sn({openMethod:"qrcode"});const i=pe(()=>r.connect(o(),e.additionalRequest));return y(Q7,{onClick:()=>n(!1),"data-tc-wallets-modal-universal-desktop":"true",get children(){return[y(Dr,{translationKey:"walletModal.desktopUniversalModal.connectYourWallet",children:"Connect your wallet"}),y(Z7,{translationKey:"walletModal.desktopUniversalModal.scan",children:"Scan with your mobile wallet"}),y(Y7,{get sourceUrl(){return Et(i(),"none")},get disableCopy(){return t()},get imageUrl(){return Ds.TON}}),y(G7,{translationKey:"walletModal.desktopUniversalModal.availableWallets",children:"Available wallets"}),y(J7,{get children(){return[y($s,{get each(){return e.walletsList.slice(0,3)},children:l=>(()=>{const s=X7.cloneNode(!0);return Mn(s,y(Ov,{wallet:l,onClick:()=>e.onSelect(l)})),s})()}),y(Wv,{labelLine1:"View all",labelLine2:"wallets",get images(){return e.walletsList.slice(3,7).map(l=>l.imageUrl)},onClick:()=>e.onSelectAllWallets()})]}})]}})},tx=()=>{const{locale:e}=Ur()[1];vn(()=>e(vt.language)),vn(()=>{kh()?Ec():(i(null),s("universal"),u(!1))});const t=Dn(hl),n=Dn(Ko),[r]=C6(()=>n.getWallets()),[o,i]=Oe(null),[l,s]=Oe("universal"),[a,u]=Oe(!1),d=pe(()=>{if(r.state!=="ready")return null;let g=N1(r(),vt.walletsListConfiguration);const w=g.filter(li),k=g.filter(R=>!li(R));g=(w||[]).concat(k);const E=vt.preferredWalletAppName,$=g.find(R=>wo(R,E)),N=g.filter(R=>wo(R,E)).length>=2;E&&$&&!N&&(g=[nr(_t({},$),{isPreferred:!0})].concat(g.filter(R=>!wo(R,E))));const A=g.find(R=>wo(R,Xr));return A&&(g=[A].concat(g.filter(R=>!wo(R,Xr)))),g}),p=()=>{var g;return((g=vt.connectRequestParameters)==null?void 0:g.state)==="loading"},h=pe(()=>{var g;if(!p())return(g=vt.connectRequestParameters)==null?void 0:g.value}),S=g=>{n.closeModal(g)},C=t.onStatusChange(g=>{g&&S("wallet-selected")}),_=()=>{s("all-wallets")},P=()=>{s("universal")},b=()=>{i(null)};return Un(()=>{i(null),u(!1)}),Un(C),y(qv,{get opened(){return kh()},get enableAndroidBackHandler(){return vt.enableAndroidBackHandler},onClose:()=>S("action-cancelled"),onClickQuestion:()=>u(g=>!g),"data-tc-wallets-modal-container":"true",get children(){return[y(Fe,{get when(){return a()},get children(){return y(Yv,{onBackClick:()=>u(!1)})}}),y(Fe,{get when(){return!a()},get children(){return[y(Fe,{get when(){return p()||!d()},get children(){return[y(Qv,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),y(Zv,{get children(){return y(uo,{size:"m"})}})]}}),y(Fe,{get when(){return pe(()=>!p())()&&d()},get children(){return y(js,{get children(){return[y(bn,{get when(){return o()},get children(){return y(rl,{get component(){return il()?Jv:Gv},get wallet(){return o()},get additionalRequest(){return h()},onBackClick:b})}}),y(bn,{get when(){return l()==="universal"},get children(){return y(rl,{get component(){return il()?K7:ex},onSelect:i,get walletsList(){return d()},get additionalRequest(){return h()},onSelectAllWallets:_})}}),y(bn,{get when(){return l()==="all-wallets"},get children(){return y(e7,{get walletsList(){return d()},onBack:P,onSelect:i})}})]}})}})]}})]}})},nx=V.div` + display: flex; + flex-direction: column; + align-items: center; + padding-bottom: 8px; +`,rx=V(Dr)` + margin-top: 16px; +`,ox=V(ir)` + font-weight: 510; + font-size: 16px; + line-height: 20px; + text-align: center; + max-width: 250px; + + color: ${e=>e.theme.colors.text.secondary}; +`,ix=V(tn)` + min-width: 112px; + margin-top: 32px; +`,lx=V(uo)` + height: 16px; + width: 16px; +`,e2=V(tn)` + margin-top: 32px; +`,$1=e=>{const t=Us(e),n=Dn(Ko),[r,o]=Oe(!0),[i,l]=Oe(!1);vn(()=>{const d=qr();l(!!d&&"sent"in d&&d.sent)});let s;n!=null&&n.wallet&&"universalLink"in n.wallet&&(n.wallet.openMethod==="universal-link"||ii(n.wallet.universalLink)&&io())&&(s=n.wallet.universalLink);let a;n!=null&&n.wallet&&"deepLink"in n.wallet&&(n.wallet.openMethod==="custom-deeplink"||ii(n.wallet.deepLink)&&io())&&(a=n.wallet.deepLink);const u=()=>{const d=qr(),p="returnStrategy"in d?d.returnStrategy:vt.returnStrategy,h=!r();o(!1),ii(s)?Fs(s,{returnStrategy:p,twaReturnUrl:"twaReturnUrl"in d?d.twaReturnUrl:vt.twaReturnUrl,forceRedirect:h}):Hs(s,a,{returnStrategy:p,forceRedirect:h},()=>{})};return y(nx,jr(t,{get children(){return[pe(()=>e.icon),y(rx,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),y(ox,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),y(Fe,{get when(){return!i()&&(e.showButton==="open-wallet"&&s||e.showButton!=="open-wallet")},get children(){return y(ix,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return y(lx,{})}})}}),y(Fe,{get when(){return i()},get children(){return[y(Fe,{get when(){return e.showButton!=="open-wallet"},get children(){return y(e2,{onClick:()=>e.onClose(),get children(){return y(hn,{translationKey:"common.close",children:"Close"})}})}}),y(Fe,{get when(){return e.showButton==="open-wallet"&&s},get children(){return y(e2,{onClick:u,get children(){return y(hn,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},sx=e=>{const t=Dn(Ko),[n]=Ur(),r=()=>t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet");return y($1,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:r()}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return y(uo,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},ax=e=>y($1,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return y(lu,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),cx=e=>y($1,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return y(A1,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),ux=()=>y(Rv,{get opened(){var e;return pe(()=>qr()!==null)()&&((e=qr())==null?void 0:e.openModal)===!0},get enableAndroidBackHandler(){return vt.enableAndroidBackHandler},onClose:()=>Bi(null),"data-tc-actions-modal-container":"true",get children(){return y(js,{get children(){return[y(bn,{get when(){return qr().name==="transaction-sent"},get children(){return y(cx,{onClose:()=>Bi(null)})}}),y(bn,{get when(){return qr().name==="transaction-canceled"},get children(){return y(ax,{onClose:()=>Bi(null)})}}),y(bn,{get when(){return qr().name==="confirm-transaction"},get children(){return y(sx,{onClose:()=>Bi(null)})}})]}})}}),fx=()=>{const{locale:e}=Ur()[1];vn(()=>e(vt.language)),vn(()=>{Th()&&Ec()});const t=Dn(hl),n=Dn(Ko),[r,o]=Oe(!1),i=()=>{var u;return((u=vt.connectRequestParameters)==null?void 0:u.state)==="loading"},l=pe(()=>{var u;if(!i())return(u=vt.connectRequestParameters)==null?void 0:u.value}),s=u=>{n.closeSingleWalletModal(u)},a=t.onStatusChange(u=>{u&&s("wallet-selected")});return Un(a),Un(()=>{o(!1)}),y(qv,{get opened(){return Th()},get enableAndroidBackHandler(){return vt.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o(u=>!u),"data-tc-wallets-modal-container":"true",get children(){return[y(Fe,{get when(){return r()},get children(){return y(Yv,{onBackClick:()=>o(!1)})}}),y(Fe,{get when(){return!r()},get children(){return[y(Fe,{get when(){return i()},get children(){return[y(Qv,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),y(Zv,{get children(){return y(uo,{size:"m"})}})]}}),y(Fe,{get when(){return!i()},get children(){return y(rl,{get component(){return il()?Jv:Gv},get wallet(){return b8()},get additionalRequest(){return l()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},dx=e=>{const t=Uy(B8,vt.language);return v8(),g8(),y(Nv.Provider,{value:t,get children(){return y(Ko.Provider,{get value(){return e.tonConnectUI},get children(){return y(hl.Provider,{get value(){return vt.connector},get children(){return[y(s8,{}),y(i8,{theme:q8,get children(){return[y(Fe,{get when(){return vt.buttonRootId},get children(){return y(hv,{get mount(){return document.getElementById(vt.buttonRootId)},get children(){return y(z9,{})}})}}),y(rl,{component:Kr,get children(){return[y(tx,{}),y(fx,{}),y(ux,{})]}})]}})]}})}})}})},Xn={openWalletsModal:()=>void setTimeout(()=>_h({status:"opened",closeReason:null})),closeWalletsModal:e=>void setTimeout(()=>_h({status:"closed",closeReason:e})),openSingleWalletModal:e=>{setTimeout(()=>Eh({status:"opened",closeReason:null,walletInfo:e}))},closeSingleWalletModal:e=>void setTimeout(()=>Eh({status:"closed",closeReason:e})),setAction:e=>void setTimeout(()=>Bi(e)),clearAction:()=>void setTimeout(()=>Bi(null)),getSelectedWalletInfo:()=>S8(),removeSelectedWalletInfo:()=>Sn(null),renderApp:(e,t)=>U6(()=>y(dx,{tonConnectUI:t}),document.getElementById(e))};class hx{constructor(t){Ie(this,"connector"),Ie(this,"setConnectRequestParametersCallback"),Ie(this,"consumers",[]),Ie(this,"tracker"),Ie(this,"state",rd()),this.connector=t.connector,this.tracker=t.tracker,this.setConnectRequestParametersCallback=t.setConnectRequestParametersCallback,vn(()=>{const n=rd();this.state=n,this.consumers.forEach(r=>r(n))})}open(){return St(this,null,function*(){this.tracker.trackConnectionStarted();const n=(yield this.connector.getWallets()).find(eu);return n?this.connectEmbeddedWallet(n):this.openWalletsModal()})}close(t="action-cancelled"){t==="action-cancelled"&&this.tracker.trackConnectionError("Connection was cancelled"),Xn.closeWalletsModal(t)}onStateChange(t){return this.consumers.push(t),()=>{this.consumers=this.consumers.filter(n=>n!==t)}}connectEmbeddedWallet(t){const n=o=>{Sn(t),this.connector.connect({jsBridgeKey:t.jsBridgeKey},o)},r=vt.connectRequestParameters;(r==null?void 0:r.state)==="loading"?this.setConnectRequestParametersCallback(n):n(r==null?void 0:r.value)}openWalletsModal(){return St(this,null,function*(){return io()&&E1(),Xn.openWalletsModal(),new Promise(t=>{const n=this.onStateChange(r=>{const{status:o}=r;o==="opened"&&(n(),t())})})})}}class px{constructor(t){Ie(this,"connector"),Ie(this,"consumers",[]),this.connector=t.connector,vn(()=>{const n=qr();this.consumers.forEach(r=>r(n))})}onStateChange(t){return this.consumers.push(t),()=>{this.consumers=this.consumers.filter(n=>n!==t)}}}class gx{constructor(t){Ie(this,"connector"),Ie(this,"setConnectRequestParametersCallback"),Ie(this,"consumers",[]),Ie(this,"tracker"),Ie(this,"state",wc()),this.connector=t.connector,this.tracker=t.tracker,this.setConnectRequestParametersCallback=t.setConnectRequestParametersCallback,vn(()=>{const n=wc();this.state=n,this.consumers.forEach(r=>r(n))})}open(t){return St(this,null,function*(){this.tracker.trackConnectionStarted();const n=yield this.connector.getWallets(),r=N1(n,vt.walletsListConfiguration),o=r.find(eu);if(!!o)return this.connectEmbeddedWallet(o);const s=r.filter(p1).find(d=>wo(d,t));if(!!s)return this.openSingleWalletModal(s);const u=`Trying to open modal window with unknown wallet "${t}".`;throw this.tracker.trackConnectionError(u),new Xt(u)})}close(t="action-cancelled"){t==="action-cancelled"&&this.tracker.trackConnectionError("Connection was cancelled"),Xn.closeSingleWalletModal("action-cancelled")}onStateChange(t){return this.consumers.push(t),()=>{this.consumers=this.consumers.filter(n=>n!==t)}}connectEmbeddedWallet(t){const n=o=>{Sn(t),this.connector.connect({jsBridgeKey:t.jsBridgeKey},o)},r=vt.connectRequestParameters;(r==null?void 0:r.state)==="loading"?this.setConnectRequestParametersCallback(n):n(r==null?void 0:r.value)}openSingleWalletModal(t){return St(this,null,function*(){return io()&&E1(),Xn.openSingleWalletModal(t),new Promise(n=>{const r=this.onStateChange(o=>{const{status:i}=o;i==="opened"&&(r(),n())})})})}}class vx{constructor(t){Ie(this,"eventPrefix","ton-connect-ui-"),Ie(this,"tonConnectUiVersion"),Ie(this,"tonConnectSdkVersion",null),Ie(this,"eventDispatcher");var n;this.eventDispatcher=(n=t==null?void 0:t.eventDispatcher)!=null?n:new Gg,this.tonConnectUiVersion=t.tonConnectUiVersion,this.init().catch()}get version(){return yi({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return St(this,null,function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch{}})}setRequestVersionHandler(){return St(this,null,function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",()=>St(this,null,function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",Bg(this.tonConnectUiVersion))}))})}requestTonConnectSdkVersion(){return St(this,null,function*(){return new Promise((t,n)=>St(this,null,function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",r=>{t(r.detail.version)},{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",Og())}catch(r){n(r)}}))})}dispatchUserActionEvent(t){var n;try{(n=this.eventDispatcher)==null||n.dispatchEvent(`${this.eventPrefix}${t.type}`,t).catch()}catch{}}trackConnectionStarted(...t){try{const n=Ug(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackConnectionCompleted(...t){try{const n=Dg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackConnectionError(...t){try{const n=Fg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringStarted(...t){try{const n=Hg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringCompleted(...t){try{const n=zg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackConnectionRestoringError(...t){try{const n=Vg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackDisconnection(...t){try{const n=Zg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSentForSignature(...t){try{const n=Kg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSigned(...t){try{const n=qg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}trackTransactionSigningFailed(...t){try{const n=Qg(this.version,...t);this.dispatchUserActionEvent(n)}catch{}}}const mx="2.0.5";class yx{constructor(t){if(Ie(this,"walletInfoStorage",new x8),Ie(this,"preferredWalletStorage",new C8),Ie(this,"tracker"),Ie(this,"walletInfo",null),Ie(this,"systemThemeChangeUnsubscribe",null),Ie(this,"actionsConfiguration"),Ie(this,"walletsList"),Ie(this,"connectRequestParametersCallback"),Ie(this,"connector"),Ie(this,"modal"),Ie(this,"singleWalletModal"),Ie(this,"transactionModal"),Ie(this,"connectionRestored",Promise.resolve(!1)),t&&"connector"in t&&t.connector)this.connector=t.connector;else if(t&&"manifestUrl"in t&&t.manifestUrl)this.connector=new pi({manifestUrl:t.manifestUrl,eventDispatcher:t==null?void 0:t.eventDispatcher});else throw new Xt("You have to specify a `manifestUrl` or a `connector` in the options.");this.tracker=new vx({eventDispatcher:t==null?void 0:t.eventDispatcher,tonConnectUiVersion:mx}),this.modal=new hx({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:o=>{this.connectRequestParametersCallback=o}}),this.singleWalletModal=new gx({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:o=>{this.connectRequestParametersCallback=o}}),this.transactionModal=new px({connector:this.connector}),this.walletsList=this.getWallets(),this.walletsList.then(o=>yv(V9(o.map(i=>i.imageUrl))));const n=this.normalizeWidgetRoot(t==null?void 0:t.widgetRootId);this.subscribeToWalletChange(),(t==null?void 0:t.restoreConnection)!==!1&&(this.connectionRestored=m8(()=>St(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=Io(t,{uiPreferences:{theme:"SYSTEM"}});const r=this.preferredWalletStorage.getPreferredWalletAppName();wa({connector:this.connector,preferredWalletAppName:r}),Xn.renderApp(n,this)}static getWallets(){return pi.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?_t(_t({},this.connector.wallet),this.walletInfo):null}set uiOptions(t){var n,r,o,i,l;this.checkButtonRootExist(t.buttonRootId),this.actionsConfiguration=t.actionsConfiguration,(n=t.uiPreferences)!=null&&n.theme?((r=t.uiPreferences)==null?void 0:r.theme)!=="SYSTEM"?((o=this.systemThemeChangeUnsubscribe)==null||o.call(this),Hu(t.uiPreferences.theme,t.uiPreferences.colorsSet)):(Hu(f8(),t.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=d8(Hu))):(i=t.uiPreferences)!=null&&i.colorsSet&&Z8(t.uiPreferences.colorsSet),(l=t.uiPreferences)!=null&&l.borderRadius&&Q8(t.uiPreferences.borderRadius),wa(s=>{var a,u;const d=Io(_t(_t(_t(_t({},t.language&&{language:t.language}),!!((a=t.actionsConfiguration)!=null&&a.returnStrategy)&&{returnStrategy:t.actionsConfiguration.returnStrategy}),!!((u=t.actionsConfiguration)!=null&&u.twaReturnUrl)&&{twaReturnUrl:t.actionsConfiguration.twaReturnUrl}),!!t.walletsListConfiguration&&{walletsListConfiguration:t.walletsListConfiguration}),ol(s));return t.buttonRootId!==void 0&&(d.buttonRootId=t.buttonRootId),t.enableAndroidBackHandler!==void 0&&(d.enableAndroidBackHandler=t.enableAndroidBackHandler),d})}setConnectRequestParameters(t){var n;wa({connectRequestParameters:t}),((t==null?void 0:t.state)==="ready"||!t)&&((n=this.connectRequestParametersCallback)==null||n.call(this,t==null?void 0:t.value))}getWallets(){return St(this,null,function*(){return this.connector.getWallets()})}onStatusChange(t,n){return this.connector.onStatusChange(r=>St(this,null,function*(){if(r){const o=yield this.getSelectedWalletInfo(r);t(_t(_t({},r),o||this.walletInfoStorage.getWalletInfo()))}else t(r)}),n)}openModal(){return St(this,null,function*(){return this.modal.open()})}closeModal(t){this.modal.close(t)}onModalStateChange(t){return this.modal.onStateChange(t)}get modalState(){return this.modal.state}openSingleWalletModal(t){return St(this,null,function*(){return this.singleWalletModal.open(t)})}closeSingleWalletModal(t){this.singleWalletModal.close(t)}onSingleWalletModalStateChange(t){return this.singleWalletModal.onStateChange(t)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return St(this,null,function*(){const n=(yield this.getWallets()).find(eu);return n?yield this.connectEmbeddedWallet(n):yield this.connectExternalWallet()})}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),Xn.clearAction(),Xn.removeSelectedWalletInfo(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(t,n){return St(this,null,function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,t),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,t,"Wallet was not connected"),new Xt("Connect wallet to send a transaction.");io()&&E1();const{notifications:r,modals:o,returnStrategy:i,twaReturnUrl:l,skipRedirectToWallet:s}=this.getModalsAndNotificationsConfiguration(n);Xn.setAction({name:"confirm-transaction",showNotification:r.includes("before"),openModal:o.includes("before"),sent:!1});const a=()=>{u.signal.aborted||(Xn.setAction({name:"confirm-transaction",showNotification:r.includes("before"),openModal:o.includes("before"),sent:!0}),this.walletInfo&&"universalLink"in this.walletInfo&&(this.walletInfo.openMethod==="universal-link"||this.walletInfo.openMethod==="custom-deeplink")&&(ii(this.walletInfo.universalLink)?Fs(this.walletInfo.universalLink,{returnStrategy:i,twaReturnUrl:l||vt.twaReturnUrl,forceRedirect:!1}):Hs(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:i,forceRedirect:!1},()=>{})))},u=new AbortController,d=this.onTransactionModalStateChange(p=>{p!=null&&p.openModal||(d(),p||u.abort())});try{const p=yield this.waitForSendTransaction({transaction:t,signal:u.signal},a);return this.tracker.trackTransactionSigned(this.wallet,t,p),Xn.setAction({name:"transaction-sent",showNotification:r.includes("success"),openModal:o.includes("success")}),p}catch(p){throw Xn.setAction({name:"transaction-canceled",showNotification:r.includes("error"),openModal:o.includes("error")}),p instanceof Re?p:(console.error(p),new Xt("Unhandled error:"+p))}finally{d()}})}connectEmbeddedWallet(t){return St(this,null,function*(){const n=o=>{Sn(t),this.connector.connect({jsBridgeKey:t.jsBridgeKey},o)},r=vt.connectRequestParameters;return(r==null?void 0:r.state)==="loading"?this.connectRequestParametersCallback=n:n(r==null?void 0:r.value),yield this.waitForWalletConnection({ignoreErrors:!1})})}connectExternalWallet(){return St(this,null,function*(){const t=new AbortController;Xn.openWalletsModal();const n=this.onModalStateChange(r=>{const{status:o,closeReason:i}=r;o!=="opened"&&(n(),i==="action-cancelled"&&t.abort())});return yield this.waitForWalletConnection({ignoreErrors:!0,signal:t.signal})})}waitForWalletConnection(t){return St(this,null,function*(){return new Promise((n,r)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:o=!1,signal:i=null}=t;if(i&&i.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),r(new Xt("Wallet was not connected"));const l=u=>St(this,null,function*(){if(u)this.tracker.trackConnectionCompleted(u),a(),n(u);else{if(this.tracker.trackConnectionError("Connection was cancelled"),o)return;a(),r(new Xt("Wallet was not connected"))}}),s=u=>{this.tracker.trackConnectionError(u.message),!o&&(a(),r(u))},a=this.onStatusChange(u=>l(u),u=>s(u));i&&i.addEventListener("abort",()=>{a(),r(new Xt("Wallet was not connected"))},{once:!0})})})}waitForSendTransaction(t,n){return St(this,null,function*(){return new Promise((r,o)=>{const{transaction:i,signal:l}=t;if(l.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,i,"Transaction was cancelled"),o(new Xt("Transaction was not sent"));const s=d=>St(this,null,function*(){r(d)}),a=d=>{o(d)},u=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,i,"Transaction was cancelled"),o(new Xt("Transaction was not sent"))};l.addEventListener("abort",u,{once:!0}),this.connector.sendTransaction(i,{onRequestSent:n,signal:l}).then(d=>(l.removeEventListener("abort",u),s(d))).catch(d=>(l.removeEventListener("abort",u),a(d)))})})}onTransactionModalStateChange(t){return this.transactionModal.onStateChange(t)}subscribeToWalletChange(){this.connector.onStatusChange(t=>St(this,null,function*(){var n;t?(yield this.updateWalletInfo(t),this.setPreferredWalletAppName(((n=this.walletInfo)==null?void 0:n.appName)||t.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletAppName(t){this.preferredWalletStorage.setPreferredWalletAppName(t),wa({preferredWalletAppName:t})}getSelectedWalletInfo(t){return St(this,null,function*(){let n=Xn.getSelectedWalletInfo();if(!n)return null;let r;if("name"in n)r=n;else{const i=N1(yield this.walletsList,vt.walletsListConfiguration).find(l=>wo(l,t.device.appName));if(!i)throw new Xt(`Cannot find WalletInfo for the '${t.device.appName}' wallet`);r=_t(_t({},i),n)}return r})}updateWalletInfo(t){return St(this,null,function*(){const n=yield this.getSelectedWalletInfo(t);if(n){this.walletInfo=n,this.walletInfoStorage.setWalletInfo(n);return}const r=this.walletInfoStorage.getWalletInfo();if(r){this.walletInfo=r;return}this.walletInfo=(yield this.walletsList).find(o=>wo(o,t.device.appName))||null})}normalizeWidgetRoot(t){if(!t||!document.getElementById(t)){t="tc-widget-root";const n=document.createElement("div");n.id=t,document.body.appendChild(n)}return t}checkButtonRootExist(t){if(t!=null&&!document.getElementById(t))throw new Xt(`${t} element not found in the document.`)}getModalsAndNotificationsConfiguration(t){var n,r,o,i,l,s;const a=["before","success","error"];let u=a;(n=this.actionsConfiguration)!=null&&n.notifications&&((r=this.actionsConfiguration)==null?void 0:r.notifications)!=="all"&&(u=this.actionsConfiguration.notifications),t!=null&&t.notifications&&(t.notifications==="all"?u=a:u=t.notifications);let d=["before"];(o=this.actionsConfiguration)!=null&&o.modals&&(this.actionsConfiguration.modals==="all"?d=a:d=this.actionsConfiguration.modals),t!=null&&t.modals&&(t.modals==="all"?d=a:d=t.modals);const p=(t==null?void 0:t.returnStrategy)||((i=this.actionsConfiguration)==null?void 0:i.returnStrategy)||"back",h=(t==null?void 0:t.twaReturnUrl)||((l=this.actionsConfiguration)==null?void 0:l.twaReturnUrl);let S=(t==null?void 0:t.skipRedirectToWallet)||((s=this.actionsConfiguration)==null?void 0:s.skipRedirectToWallet)||"ios";return io()&&(S="never"),{notifications:u,modals:d,returnStrategy:p,twaReturnUrl:h,skipRedirectToWallet:S}}}var wx=Object.defineProperty,Pc=Object.getOwnPropertySymbols,rm=Object.prototype.hasOwnProperty,om=Object.prototype.propertyIsEnumerable,t2=(e,t,n)=>t in e?wx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xx=(e,t)=>{for(var n in t||(t={}))rm.call(t,n)&&t2(e,n,t[n]);if(Pc)for(var n of Pc(t))om.call(t,n)&&t2(e,n,t[n]);return e},Cx=(e,t)=>{var n={};for(var r in e)rm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Pc)for(var r of Pc(e))t.indexOf(r)<0&&om.call(e,r)&&(n[r]=e[r]);return n},im={exports:{}},Tl={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var n2;function bx(){if(n2)return Tl;n2=1;var e=k2,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(s,a,u){var d,p={},h=null,S=null;u!==void 0&&(h=""+u),a.key!==void 0&&(h=""+a.key),a.ref!==void 0&&(S=a.ref);for(d in a)r.call(a,d)&&!i.hasOwnProperty(d)&&(p[d]=a[d]);if(s&&s.defaultProps)for(d in a=s.defaultProps,a)p[d]===void 0&&(p[d]=a[d]);return{$$typeof:t,type:s,key:h,ref:S,props:p,_owner:o.current}}return Tl.Fragment=n,Tl.jsx=l,Tl.jsxs=l,Tl}(function(e){e.exports=bx()})(im);const lm=im.exports.jsx;function sm(){return typeof window<"u"}function Sx(){return!sm()}const am=Q.createContext(null);let Ju=null;const _x=e=>{var t=e,{children:n}=t,r=Cx(t,["children"]);return sm()&&!Ju&&(Ju=new yx(r)),lm(am.Provider,{value:Ju,children:n})},kx=Q.memo(_x);class j1 extends Xt{constructor(...t){super(...t),Object.setPrototypeOf(this,j1.prototype)}}class W1 extends j1{constructor(...t){super(...t),Object.setPrototypeOf(this,W1.prototype)}}function Ex(e){if(!e)throw new W1("You should add on the top of the app to use TonConnect");return!0}function cm(){const e=Q.useContext(am),t=Q.useCallback(n=>{e&&(e.uiOptions=n)},[e]);return Sx()?[null,()=>{}]:(Ex(e),[e,t])}const r2="ton-connect-button",Tx=({className:e,style:t})=>{const[n,r]=cm();return Q.useEffect(()=>(r({buttonRootId:r2}),()=>r({buttonRootId:null})),[r]),lm("div",{id:r2,className:e,style:xx({width:"fit-content"},t)})},o2=Q.memo(Tx);function Px(){const[e]=cm(),[t,n]=Q.useState((e==null?void 0:e.wallet)||null);return Q.useEffect(()=>{if(e)return n(e.wallet),e.onStatusChange(r=>{n(r)})},[e]),t}const ba=e=>typeof e=="object"&&e!==null,um=(e,t)=>{if(e===t)return!0;if(e==null||t==null||!ba(e)&&!ba(t))return!1;if(ba(e)&&ba(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Object.prototype.hasOwnProperty.call(t,n)){if(!um(e[n],t[n]))return!1}else return!1;return!0}return!1},Lx=e=>{const t=Q.useRef(e);return um(t.current,e)||(t.current=e),t.current};function Ax(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Ot(e,t){if(e==null)return{};var n=Mx(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bt(...e){const t=[];return e.forEach(n=>{if(n)switch(typeof n){case"string":t.push(n);break;case"object":Object.keys(n).forEach(r=>{n[r]&&t.push(r)});break;default:t.push(`${n}`)}}),t.join(" ")}function lo(){return lo=Object.assign||function(t){for(var n=1;ne!==void 0&&e!==!1&&e!==null&&e!=="";function i2(e){return typeof e=="string"||typeof e=="number"}const zs=Q.createContext({isRendered:!1}),Ix=()=>{const e=Q.useContext(zs);if(!e.isRendered)throw new Error("[TGUI] Wrap your app with component");return e},Fr=()=>Ix().platform||"base",cu=!!(typeof window<"u"&&window.document&&window.document.createElement),Nx=cu?Q.useLayoutEffect:Q.useEffect,$x=(e,t)=>{const n=Q.useRef({callbackFunction:e,duration:t});Nx(()=>{n.current.callbackFunction=e,n.current.duration=t},[e,t]);const r=Q.useRef(),o=Q.useCallback(()=>clearTimeout(r==null?void 0:r.current),[]);return{set:Q.useCallback(()=>{o(),r.current=setTimeout(n.current.callbackFunction,n.current.duration)},[o]),clear:o}},jx=70,l2=225,Wx=()=>{const[e,t]=Q.useState([]),n=Q.useMemo(()=>new Map,[]),r=$x(()=>t([]),l2);function o(s,a,u){const d=Date.now(),p=e.filter(h=>h.date+l2>d);t([...p,{x:s,y:a,date:d,pointerId:u}]),r.set(),n.delete(u)}return{clicks:e,onPointerDown:s=>{const{top:a,left:u}=s.currentTarget.getBoundingClientRect(),d=s.clientX-(u??0),p=s.clientY-(a??0);n.set(s.pointerId,setTimeout(()=>o(d,p,s.pointerId),jx))},onPointerCancel:s=>{const a=n.get(s.pointerId);clearTimeout(a),n.delete(s.pointerId)}}},Ox=({clicks:e})=>D.jsx("span",{"aria-hidden":!0,className:"tgui-8071f6e38c77bc0b",children:e.map(t=>D.jsx("span",{className:"tgui-e156954daf886976",style:{top:t.y,left:t.x}},t.date))}),Bx=Q.forwardRef((e,t)=>{var{Component:n="div",children:r,className:o,interactiveAnimation:i="background",readOnly:l}=e,s=Ot(e,["Component","children","className","interactiveAnimation","readOnly"]);const a=Fr(),{clicks:u,onPointerCancel:d,onPointerDown:p}=Wx(),h=a==="base"&&i==="background"&&!l;return D.jsxs(n,Yt(Ze({ref:t,className:Bt("tgui-b5d680db78c4cc2e",a==="ios"&&"tgui-34eb6f8b96874d40",i==="opacity"&&"tgui-7c5d6c1f6bbe3eaf",o),onPointerCancel:d,onPointerDown:p,readOnly:l},s),{children:[h&&D.jsx(Ox,{clicks:u}),r]}))}),Ux={1:"tgui-5c92f90c2701fa17",2:"tgui-809f1f8a3f64154d",3:"tgui-5b8bdfbd2af10f59"},pl=Q.forwardRef((e,t)=>{var{weight:n="3",Component:r="span",plain:o=!0,caps:i,className:l}=e,s=Ot(e,["weight","Component","plain","caps","className"]);return D.jsx(r,Ze({ref:t,className:Bt("tgui-c3e2e598bd70eee6",o&&"tgui-080a44e6ac3f4d27",n&&Ux[n],i&&"tgui-c602097b30e4ede9",l)},s))}),Dx={1:"tgui-30064fce0d501f17",2:"tgui-8f63cd31b2513281"},Do=Q.forwardRef((e,t)=>{var{level:n="1",className:r,Component:o}=e,i=Ot(e,["level","className","Component"]);return D.jsx(pl,Yt(Ze({},i),{ref:t,className:Bt("tgui-266b6ffdbad2b90e",Dx[n],r),Component:o||"h6"}))}),Fx={1:"tgui-2916d621b0ea5857",2:"tgui-937d123c23df98b3"},Vs=e=>{var{level:t="1",className:n,Component:r}=e,o=Ot(e,["level","className","Component"]);return D.jsx(pl,Yt(Ze({},o),{className:Bt("tgui-f37a43dcc29ade55",Fx[t],n),Component:r||"span"}))},Ks=Q.forwardRef((e,t)=>{var{weight:n,className:r,Component:o}=e,i=Ot(e,["weight","className","Component"]);return D.jsx(pl,Yt(Ze({ref:t},i),{weight:n,className:Bt("tgui-65c206f0fd891b6b",r),Component:o||"span"}))}),Hx=()=>{const t=Fr()==="ios";return{Title:o=>t?D.jsx(Ks,Ze({},o)):D.jsx(Do,Ze({level:"1"},o)),Description:o=>t?D.jsx(Vs,Ze({},o)):D.jsx(Do,Ze({level:"2"},o))}},Di=Q.forwardRef((e,t)=>{var{children:n,titleBadge:r,hint:o,subhead:i,subtitle:l,description:s,className:a,before:u,after:d,Component:p,hovered:h,multiline:S}=e,C=Ot(e,["children","titleBadge","hint","subhead","subtitle","description","className","before","after","Component","hovered","multiline"]);const _=Fr(),{Title:P,Description:b}=Hx(),g=xn(n)||xn(o)||xn(r);return D.jsxs(Bx,Yt(Ze({ref:t,Component:p||"div",className:Bt("tgui-b8dfba0b5c3d054c",_==="ios"&&"tgui-7b5bccbb645b495f",h&&"tgui-7edaaf0c57797623",S&&"tgui-6c49dadccf648a5b",a)},C),{children:[xn(u)&&D.jsx("div",{className:"tgui-aaa795d78c356ac1",children:u}),D.jsxs("div",{className:"tgui-8735a62be5a8b8a7",children:[xn(i)&&D.jsx(Do,{className:"tgui-46dd90b57ffed25f",level:"2",weight:"3",children:i}),g&&D.jsxs(P,{className:"tgui-a894f59f4c5ad72f",children:[xn(n)&&D.jsx("span",{className:"tgui-1c6d7865a76a19bc",children:n}),xn(o)&&D.jsx("span",{className:"tgui-bb909928b48f948b",children:o}),xn(r)&&r]}),xn(l)&&D.jsx(Do,{className:"tgui-d528ef65a8b76273",level:"2",weight:"3",children:l}),xn(s)&&D.jsx(b,{className:"tgui-fc059ed3ac5799a6",children:s})]}),xn(d)&&D.jsx("div",{className:"tgui-56b2e897ed7ccb22",children:d})]}))}),zx=e=>e<40?4:e<96?8:12,Vx={number:"tgui-562f7459d74103ea",dot:"tgui-4f69ed647e40e245"},Kx={primary:"tgui-6e63faaa2b33f4ae",critical:"tgui-4b52474c713ffa7c",secondary:"tgui-0278f262d68294f0",gray:"tgui-0883e451f3707277",white:"tgui-6b3dbcedd9052940"},fm=e=>{var{type:t,mode:n="primary",large:r,className:o,children:i}=e,l=Ot(e,["type","mode","large","className","children"]);const s=t==="number";return D.jsx("span",Yt(Ze({className:Bt("tgui-c8f4bcd1606fb026",Vx[t],Kx[n],s&&r&&"tgui-c1a5e9170826a773",o)},l),{children:xn(i)&&s&&D.jsxs(D.Fragment,{children:[r&&D.jsx(Do,{Component:"span",level:"2",weight:"2",children:i}),!r&&D.jsx(Vs,{weight:"2",children:i})]})}))},qx=e=>{var{type:t,className:n}=e,r=Ot(e,["type","className"]);return t!=="number"?(console.error('[ImageBadge]: Component supports only type="number"'),null):D.jsx(fm,Ze({type:"number",className:Bt("tgui-e3bcc434a6ee9317",n)},r))},O1=e=>{var{size:t=40,className:n,alt:r,crossOrigin:o,decoding:i,loading:l,referrerPolicy:s,sizes:a,src:u,srcSet:d,useMap:p,style:h,fallbackIcon:S,children:C,onLoad:_,onError:P}=e,b=Ot(e,["size","className","alt","crossOrigin","decoding","loading","referrerPolicy","sizes","src","srcSet","useMap","style","fallbackIcon","children","onLoad","onError"]);const[g,w]=Q.useState(!1),[k,E]=Q.useState(!1),$=u||(d==null?void 0:d.length)!==0,N=(k||!$)&&Q.isValidElement(S),A=O=>{g||(w(!0),E(!1),_==null||_(O))},R=O=>{w(!1),E(!0),P==null||P(O)};return D.jsxs("div",Yt(Ze({style:Ze({width:t,minWidth:t,height:t,borderRadius:(h==null?void 0:h.borderRadius)||zx(t)},h),className:Bt("tgui-30d8642662534eb5",g&&"tgui-72bd4140eca37f53",n)},b),{children:[$&&D.jsx("img",{alt:r,className:"tgui-1191c597a64dbd25",crossOrigin:o,decoding:i,loading:l,referrerPolicy:s,sizes:a,src:u,srcSet:d,useMap:p,onLoad:A,onError:R}),N&&D.jsx("div",{className:"tgui-5ee2f1c6e1da49b5",children:S}),C]}))};O1.Badge=qx;const Qx=e=>{var{className:t,Component:n}=e,r=Ot(e,["className","Component"]);return D.jsx(pl,Yt(Ze({},r),{className:Bt("tgui-e05fce4753086879",t),Component:n||"h5"}))},Zx=e=>{var{className:t,Component:n}=e,r=Ot(e,["className","Component"]);return D.jsx(pl,Yt(Ze({},r),{Component:n||"h1",className:Bt("tgui-c6d7432a5c12debe",t)}))},Gx={1:"h2",2:"h3",3:"h4"},Yx={1:"tgui-2fc52ee93e8068a6",2:"tgui-72c2a480384c4fb1",3:"tgui-45c5f45d3e9105f4"},B1=e=>{var{level:t="2",className:n,Component:r}=e,o=Ot(e,["level","className","Component"]);return D.jsx(pl,Yt(Ze({},o),{className:Bt("tgui-da537051a4a87aec",Yx[t],n),Component:r||Gx[t]}))},Jx=e=>{var{size:t}=e,n=Ot(e,["size"]);return t?t<=28?D.jsx(Vs,Ze({level:t<=24?"2":"1",weight:"1",caps:!0},n)):t===40?D.jsx(Qx,Ze({weight:"2",caps:!0},n)):t===48?D.jsx(B1,Ze({weight:"1",level:"3",caps:!0},n)):D.jsx(Zx,Ze({weight:"1",caps:!0},n)):null},Xx=e=>{var{type:t,className:n}=e,r=Ot(e,["type","className"]);if(t!=="number")throw new Error('[ImageBadge]: Component supports only type="number"');return D.jsx(fm,Ze({type:"number",className:Bt("tgui-54214e0db34f53c3",n)},r))},dm=e=>{var{className:t,style:n,acronym:r,fallbackIcon:o,size:i}=e,l=Ot(e,["className","style","acronym","fallbackIcon","size"]);return D.jsx(O1,Ze({style:Ze({borderRadius:"50%"},n),className:Bt("tgui-91c5537b51b490a7",r&&"tgui-305551eb3f5abb68",t),fallbackIcon:r?D.jsx(Jx,{size:i,children:r}):o,size:i},l))};dm.Badge=Xx;const eC=e=>{var t=lo({},gi(e));return D.jsx("svg",Yt(Ze({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{children:D.jsx("path",{d:"m6 3 5 5-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))},tC=({className:e,children:t})=>{const n=Fr(),r=xn(t);return D.jsxs("div",{className:Bt("tgui-97dd747d03e9d3e0",e),children:[r&&D.jsx(Ks,{className:"tgui-64a5a0dc5509605e",children:t}),(!r||n==="ios")&&D.jsx(eC,{className:"tgui-3b026a2674eb3f4c"})]})},qs=e=>{var{className:t,children:n}=e,r=Ot(e,["className","children"]);const o=Fr();return D.jsx("div",Yt(Ze({className:Bt("tgui-389a43acd684137a",o==="ios"&&"tgui-cfed40fe81d34ad5",t)},r),{children:n}))},hm=e=>{var{children:t,header:n,description:r,className:o,action:i}=e,l=Ot(e,["children","header","description","className","action"]);const s=xn(n),a=xn(r);return D.jsxs("section",Yt(Ze({className:Bt("tgui-e5c3a5b87f8b1f46",o)},l),{children:[xn(t)&&t,(s||a)&&D.jsxs("dl",{className:"tgui-9c3dbc0ef84585d4",children:[s&&D.jsx(B1,{Component:"dt",level:"3",weight:"2",children:n}),a&&D.jsx(Ks,{className:"tgui-87cd6af55f73428d",Component:"dd",children:r})]}),xn(i)&&i]}))},nC=e=>{var{className:t}=e,n=Ot(e,["className"]);return D.jsx("hr",Ze({className:Bt("tgui-8af0d10d5540c6cc",t)},n))},rC=e=>{var t=lo({},gi(e));return Fr()==="ios"?D.jsx(Vs,Ze({},t)):D.jsx(Do,Ze({level:"2"},t))},pm=e=>{var{className:t,children:n,centered:r}=e,o=Ot(e,["className","children","centered"]);const i=Fr();return D.jsx("footer",Yt(Ze({className:Bt("tgui-dbb364e8ced00cc8",i==="ios"&&"tgui-8c4c6f82ba895475",r&&"tgui-8ebba379083b615a",t)},o),{children:D.jsx(rC,{className:"tgui-67471b69da3e3062",children:n})}))},oC=()=>{const e=Fr();return{Default:r=>{var o=lo({},gi(r));return e==="ios"?D.jsx(Vs,Ze({caps:!0},o)):D.jsx(Do,Ze({level:"2",weight:"2"},o))},Large:r=>{var o=lo({},gi(r));return e==="ios"?D.jsx(Do,Ze({level:"1",weight:"2"},o)):D.jsx(Ks,Ze({weight:"2"},o))}}},gm=e=>{var{large:t,className:n,children:r}=e,o=Ot(e,["large","className","children"]);const i=Fr(),{Default:l,Large:s}=oC(),a=t?s:l;return D.jsx("header",Yt(Ze({className:Bt("tgui-d0251b46536ac046",i==="ios"&&"tgui-b7217abb24e8763a",t&&"tgui-34fd1a25cc171439",n)},o),{children:D.jsx(a,{Component:"h1",className:"tgui-9c200683b316fde6",children:r})}))},ll=e=>{var{header:t,footer:n,className:r,children:o}=e,i=Ot(e,["header","footer","className","children"]);const l=Fr(),s=i2(t)?D.jsx(gm,{children:t}):t,a=i2(n)?D.jsx(pm,{children:n}):n;return D.jsxs("section",Yt(Ze({className:Bt("tgui-3dfa44f9f78f9a22",l==="base"&&"tgui-8e15431b81f6601e",l==="ios"&&"tgui-97eca24324122dbc",r)},i),{children:[D.jsxs("div",{className:"tgui-db9be63c4fecf79b",children:[s,D.jsx("div",{className:"tgui-4b78bed6e925088e",children:Q.Children.map(o,(u,d)=>D.jsxs(D.Fragment,{children:[u,d{var{Component:n="span",className:r}=e,o=Ot(e,["Component","className"]);return D.jsx(n,Yt(Ze({},o),{ref:t,className:Bt("tgui-b9fd8cdf929947df",r)}))}),lC=e=>{var t=lo({},gi(e));return D.jsx("svg",Yt(Ze({width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{children:D.jsx("path",{d:"M6.4 1h7.2c1.14 0 1.93 0 2.55.05.6.05.95.14 1.21.28a3 3 0 0 1 1.31 1.3c.14.27.23.62.28 1.22.05.62.05 1.41.05 2.55v7.2c0 1.14 0 1.93-.05 2.55-.05.6-.14.95-.28 1.21a3 3 0 0 1-1.3 1.31c-.27.14-.62.23-1.22.28-.62.05-1.41.05-2.55.05H6.4c-1.14 0-1.93 0-2.55-.05-.6-.05-.95-.14-1.21-.28a3 3 0 0 1-1.31-1.3 3.2 3.2 0 0 1-.28-1.22A34.7 34.7 0 0 1 1 13.6V6.4c0-1.14 0-1.93.05-2.55.05-.6.14-.95.28-1.21a3 3 0 0 1 1.3-1.31 3.2 3.2 0 0 1 1.22-.28C4.47 1 5.26 1 6.4 1Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))},sC=e=>{var t=lo({},gi(e));return D.jsxs("svg",Yt(Ze({width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{children:[D.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.48 2.87C0 3.88 0 5.2 0 7.8v4.4c0 2.61 0 3.92.48 4.93a5 5 0 0 0 2.4 2.4c1 .47 2.3.47 4.92.47h4.4c2.61 0 3.92 0 4.93-.48a5 5 0 0 0 2.4-2.4c.47-1 .47-2.3.47-4.92V7.8c0-2.61 0-3.92-.48-4.93a5 5 0 0 0-2.4-2.4C16.13 0 14.83 0 12.2 0H7.8C5.19 0 3.88 0 2.87.48a5 5 0 0 0-2.4 2.4ZM15.7 7.46a1 1 0 0 0-1.42-1.42L8 12.34l-2.3-2.3a1 1 0 1 0-1.4 1.42l3 3a1 1 0 0 0 1.4 0l7-7Z",fill:"currentColor"}),D.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7 7.46a1 1 0 0 0-1.4-1.42L8 12.34l-2.3-2.3a1 1 0 1 0-1.4 1.42l3 3a1 1 0 0 0 1.4 0l7-7Z",fill:"#fff"})]}))},aC=e=>{var t=lo({},gi(e));return D.jsxs("svg",Yt(Ze({width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{children:[D.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.4 0h7.2c2.24 0 3.36 0 4.22.44a4 4 0 0 1 1.74 1.74c.44.86.44 1.98.44 4.22v7.2c0 2.24 0 3.36-.44 4.22a4 4 0 0 1-1.74 1.74c-.86.44-1.98.44-4.22.44H6.4c-2.24 0-3.36 0-4.22-.44a4 4 0 0 1-1.74-1.74C0 16.96 0 15.84 0 13.6V6.4c0-2.24 0-3.36.44-4.22A4 4 0 0 1 2.18.44C3.04 0 4.16 0 6.4 0ZM4 10a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",fill:"currentColor"}),D.jsx("path",{d:"M4 10a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",fill:"#fff"})]}))},cC=e=>{var{style:t,className:n,disabled:r,indeterminate:o}=e,i=Ot(e,["style","className","disabled","indeterminate"]);return D.jsxs("label",{className:Bt("tgui-abbb25a9ce45033e",r&&"tgui-6e9776e8c33b2626",n),children:[D.jsx(iC,Yt(Ze({},i),{Component:"input",type:"checkbox",className:"tgui-60cf4cc79ba44c4f",disabled:r})),D.jsx(lC,{className:"tgui-21b20ecaad17ccf9","aria-hidden":!0}),D.jsx("div",{"aria-hidden":!0,className:"tgui-bca5056bf34297b0",children:o?D.jsx(aC,{}):D.jsx(sC,{})})]})},uC=(e,t)=>{t&&(typeof t=="function"?t(e):t.current=e)},fC=(...e)=>{let t=null;return{get current(){return t},set current(n){t=n,e.forEach(r=>r&&uC(n,r))}}},ud=()=>{var e;if(cu)return(e=window.Telegram)===null||e===void 0?void 0:e.WebApp},dC=e=>{if(!cu||!window.matchMedia)return()=>{};const t=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>{e(t.matches?"dark":"light")};return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},hC=()=>cu&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",pC=e=>{const{appearance:t}=Q.useContext(zs),[n,r]=Q.useState(e||t||hC()),o=Q.useCallback(()=>{const i=ud();i&&r(i.colorScheme)},[]);return Q.useEffect(()=>{if(e!==void 0)return r(e),()=>{};const i=ud();return i?(i.onEvent("themeChanged",o),()=>i.offEvent("themeChanged",o)):dC(r)},[e]),n},gC=()=>{const e=ud();return e&&["ios","macos"].includes(e.platform)?"ios":"base"},vC=e=>{if(e!==void 0)return e;const t=Q.useContext(zs);return t.isRendered&&t.platform!==void 0?t.platform:gC()},mC=e=>{if(e!==void 0)return e;const t=Q.useContext(zs);return t.isRendered&&t.portalContainer!==void 0?t.portalContainer:Q.useRef(null)},yC=Q.forwardRef((e,t)=>{var{platform:n,appearance:r,portalContainer:o,children:i,className:l}=e,s=Ot(e,["platform","appearance","portalContainer","children","className"]);const a=pC(r),u=mC(o),d=vC(n),p=Lx({platform:d,appearance:a,portalContainer:u,isRendered:!0});return D.jsx("div",Yt(Ze({ref:fC(t,u),className:Bt("tgui-6a12827a138e8827",d==="ios"&&"tgui-56dbb42c1dbd5e2b",a==="dark"&&"tgui-865b921add8ee075",l)},s),{children:D.jsx(zs.Provider,{value:p,children:i})}))});/** + * @remix-run/router v1.16.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function vm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function xC(){return Math.random().toString(36).substr(2,8)}function a2(e,t){return{usr:e.state,key:e.key,idx:t}}function fd(e,t,n,r){return n===void 0&&(n=null),Ps({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gl(t):t,{state:n,key:t&&t.key||r||xC()})}function Lc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function gl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function CC(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s=So.Pop,a=null,u=d();u==null&&(u=0,l.replaceState(Ps({},l.state,{idx:u}),""));function d(){return(l.state||{idx:null}).idx}function p(){s=So.Pop;let P=d(),b=P==null?null:P-u;u=P,a&&a({action:s,location:_.location,delta:b})}function h(P,b){s=So.Push;let g=fd(_.location,P,b);u=d()+1;let w=a2(g,u),k=_.createHref(g);try{l.pushState(w,"",k)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(k)}i&&a&&a({action:s,location:_.location,delta:1})}function S(P,b){s=So.Replace;let g=fd(_.location,P,b);u=d();let w=a2(g,u),k=_.createHref(g);l.replaceState(w,"",k),i&&a&&a({action:s,location:_.location,delta:0})}function C(P){let b=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof P=="string"?P:Lc(P);return g=g.replace(/ $/,"%20"),nn(b,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,b)}let _={get action(){return s},get location(){return e(o,l)},listen(P){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(s2,p),a=P,()=>{o.removeEventListener(s2,p),a=null}},createHref(P){return t(o,P)},createURL:C,encodeLocation(P){let b=C(P);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:S,go(P){return l.go(P)}};return _}var c2;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(c2||(c2={}));function bC(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?gl(t):t,o=U1(r.pathname||"/",n);if(o==null)return null;let i=mm(e);SC(i);let l=null;for(let s=0;l==null&&s{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};a.relativePath.startsWith("/")&&(nn(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=No([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(nn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),mm(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:AC(u,i.index),routesMeta:d})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let a of ym(i.path))o(i,l,a)}),t}function ym(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=ym(r.join("/")),s=[];return s.push(...l.map(a=>a===""?i:[i,a].join("/"))),o&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function SC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:RC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const _C=/^:[\w-]+$/,kC=3,EC=2,TC=1,PC=10,LC=-2,u2=e=>e==="*";function AC(e,t){let n=e.split("/"),r=n.length;return n.some(u2)&&(r+=LC),t&&(r+=EC),n.filter(o=>!u2(o)).reduce((o,i)=>o+(_C.test(i)?kC:i===""?TC:PC),r)}function RC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function MC(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:h,isOptional:S}=d;if(h==="*"){let _=s[p]||"";l=i.slice(0,i.length-_.length).replace(/(.)\/+$/,"$1")}const C=s[p];return S&&!C?u[h]=void 0:u[h]=(C||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function NC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),vm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function $C(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function U1(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function jC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?gl(e):e;return{pathname:n?n.startsWith("/")?n:WC(n,t):t,search:UC(r),hash:DC(o)}}function WC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Xu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function OC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function D1(e,t){let n=OC(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function F1(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=gl(e):(o=Ps({},e),nn(!o.pathname||!o.pathname.includes("?"),Xu("?","pathname","search",o)),nn(!o.pathname||!o.pathname.includes("#"),Xu("#","pathname","hash",o)),nn(!o.search||!o.search.includes("#"),Xu("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let h=l.split("/");for(;h[0]==="..";)h.shift(),p-=1;o.pathname=h.join("/")}s=p>=0?t[p]:"/"}let a=jC(o,s),u=l&&l!=="/"&&l.endsWith("/"),d=(i||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const No=e=>e.join("/").replace(/\/\/+/g,"/"),BC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),UC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,DC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function FC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wm=["post","put","patch","delete"];new Set(wm);const HC=["get",...wm];new Set(HC);/** + * React Router v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),Q.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let p=F1(u,JSON.parse(l),i,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:No([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,l,i,e])}function bm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=Q.useContext(Qo),{matches:o}=Q.useContext(Zo),{pathname:i}=ml(),l=JSON.stringify(D1(o,r.v7_relativeSplatPath));return Q.useMemo(()=>F1(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function qC(e,t){return QC(e,t)}function QC(e,t,n,r){vl()||nn(!1);let{navigator:o}=Q.useContext(Qo),{matches:i}=Q.useContext(Zo),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let a=l?l.pathnameBase:"/";l&&l.route;let u=ml(),d;if(t){var p;let P=typeof t=="string"?gl(t):t;a==="/"||(p=P.pathname)!=null&&p.startsWith(a)||nn(!1),d=P}else d=u;let h=d.pathname||"/",S=h;if(a!=="/"){let P=a.replace(/^\//,"").split("/");S="/"+h.replace(/^\//,"").split("/").slice(P.length).join("/")}let C=bC(e,{pathname:S}),_=XC(C&&C.map(P=>Object.assign({},P,{params:Object.assign({},s,P.params),pathname:No([a,o.encodeLocation?o.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?a:No([a,o.encodeLocation?o.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),i,n,r);return t&&_?Q.createElement(uu.Provider,{value:{location:Ls({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:So.Pop}},_):_}function ZC(){let e=rb(),t=FC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Q.createElement(Q.Fragment,null,Q.createElement("h2",null,"Unexpected Application Error!"),Q.createElement("h3",{style:{fontStyle:"italic"}},t),n?Q.createElement("pre",{style:o},n):null,null)}const GC=Q.createElement(ZC,null);class YC extends Q.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?Q.createElement(Zo.Provider,{value:this.props.routeContext},Q.createElement(xm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function JC(e){let{routeContext:t,match:n,children:r}=e,o=Q.useContext(H1);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),Q.createElement(Zo.Provider,{value:t},r)}function XC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let d=l.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);d>=0||nn(!1),l=l.slice(0,Math.min(l.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((d,p,h)=>{let S,C=!1,_=null,P=null;n&&(S=s&&p.route.id?s[p.route.id]:void 0,_=p.route.errorElement||GC,a&&(u<0&&h===0?(C=!0,P=null):u===h&&(C=!0,P=p.route.hydrateFallbackElement||null)));let b=t.concat(l.slice(0,h+1)),g=()=>{let w;return S?w=_:C?w=P:p.route.Component?w=Q.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=d,Q.createElement(JC,{match:p,routeContext:{outlet:d,matches:b,isDataRoute:n!=null},children:w})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?Q.createElement(YC,{location:n.location,revalidation:n.revalidation,component:_,error:S,children:g(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):g()},null)}var Sm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Sm||{}),Ac=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ac||{});function eb(e){let t=Q.useContext(H1);return t||nn(!1),t}function tb(e){let t=Q.useContext(zC);return t||nn(!1),t}function nb(e){let t=Q.useContext(Zo);return t||nn(!1),t}function _m(e){let t=nb(),n=t.matches[t.matches.length-1];return n.route.id||nn(!1),n.route.id}function rb(){var e;let t=Q.useContext(xm),n=tb(Ac.UseRouteError),r=_m(Ac.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ob(){let{router:e}=eb(Sm.UseNavigateStable),t=_m(Ac.UseNavigateStable),n=Q.useRef(!1);return Cm(()=>{n.current=!0}),Q.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ls({fromRouteId:t},i)))},[e,t])}function ib(e){let{to:t,replace:n,state:r,relative:o}=e;vl()||nn(!1);let{future:i,static:l}=Q.useContext(Qo),{matches:s}=Q.useContext(Zo),{pathname:a}=ml(),u=z1(),d=F1(t,D1(s,i.v7_relativeSplatPath),a,o==="path"),p=JSON.stringify(d);return Q.useEffect(()=>u(JSON.parse(p),{replace:n,state:r,relative:o}),[u,p,o,n,r]),null}function dd(e){nn(!1)}function lb(e){let{basename:t="/",children:n=null,location:r,navigationType:o=So.Pop,navigator:i,static:l=!1,future:s}=e;vl()&&nn(!1);let a=t.replace(/^\/*/,"/"),u=Q.useMemo(()=>({basename:a,navigator:i,static:l,future:Ls({v7_relativeSplatPath:!1},s)}),[a,s,i,l]);typeof r=="string"&&(r=gl(r));let{pathname:d="/",search:p="",hash:h="",state:S=null,key:C="default"}=r,_=Q.useMemo(()=>{let P=U1(d,a);return P==null?null:{location:{pathname:P,search:p,hash:h,state:S,key:C},navigationType:o}},[a,d,p,h,S,C,o]);return _==null?null:Q.createElement(Qo.Provider,{value:u},Q.createElement(uu.Provider,{children:n,value:_}))}function sb(e){let{children:t,location:n}=e;return qC(hd(t),n)}new Promise(()=>{});function hd(e,t){t===void 0&&(t=[]);let n=[];return Q.Children.forEach(e,(r,o)=>{if(!Q.isValidElement(r))return;let i=[...t,o];if(r.type===Q.Fragment){n.push.apply(n,hd(r.props.children,i));return}r.type!==dd&&nn(!1),!r.props.index||!r.props.children||nn(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=hd(r.props.children,i)),n.push(l)}),n}/** + * React Router DOM v6.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function cb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ub(e,t){return e.button===0&&(!t||t==="_self")&&!cb(e)}const fb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],db="6";try{window.__reactRouterVersion=db}catch{}const hb="startTransition",f2=Vm[hb];function pb(e){let{basename:t,children:n,future:r,window:o}=e,i=Q.useRef();i.current==null&&(i.current=wC({window:o,v5Compat:!0}));let l=i.current,[s,a]=Q.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},d=Q.useCallback(p=>{u&&f2?f2(()=>a(p)):a(p)},[a,u]);return Q.useLayoutEffect(()=>l.listen(d),[l,d]),Q.createElement(lb,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}const gb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mb=Q.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:s,target:a,to:u,preventScrollReset:d,unstable_viewTransition:p}=t,h=ab(t,fb),{basename:S}=Q.useContext(Qo),C,_=!1;if(typeof u=="string"&&vb.test(u)&&(C=u,gb))try{let w=new URL(window.location.href),k=u.startsWith("//")?new URL(w.protocol+u):new URL(u),E=U1(k.pathname,S);k.origin===w.origin&&E!=null?u=E+k.search+k.hash:_=!0}catch{}let P=VC(u,{relative:o}),b=yb(u,{replace:l,state:s,target:a,preventScrollReset:d,relative:o,unstable_viewTransition:p});function g(w){r&&r(w),w.defaultPrevented||b(w)}return Q.createElement("a",pd({},h,{href:C||P,onClick:_||i?r:g,ref:n,target:a}))});var d2;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(d2||(d2={}));var h2;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(h2||(h2={}));function yb(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s}=t===void 0?{}:t,a=z1(),u=ml(),d=bm(e,{relative:l});return Q.useCallback(p=>{if(ub(p,n)){p.preventDefault();let h=r!==void 0?r:Lc(u)===Lc(d);a(e,{replace:h,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s})}},[u,a,d,r,o,n,e,i,l,s])}const Ol=({className:e,onClick:t,to:n,...r})=>{const o=Q.useCallback(i=>{t==null||t(i);let l;if(typeof n=="string")l=n;else{const{search:d="",pathname:p="",hash:h=""}=n;l=`${p}?${d}#${h}`}const s=new URL(l,window.location.toString()),a=new URL(window.location.toString());if(s.protocol!==a.protocol||s.host!==a.host)return i.preventDefault(),Cn.openLink(s.toString())},[n,t]);return D.jsx(mb,{...r,to:n,onClick:o,className:[e,"link"].filter(Boolean).join(" ")})},wb="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.1839%2017.7069C13.6405%2018.6507%2013.3688%2019.1226%2013.0591%2019.348C12.4278%2019.8074%2011.5723%2019.8074%2010.941%2019.348C10.6312%2019.1226%2010.3595%2018.6507%209.81613%2017.7069L5.52066%2010.2464C4.76864%208.94024%204.39263%208.28717%204.33762%207.75894C4.2255%206.68236%204.81894%205.65591%205.80788%205.21589C6.29309%205%207.04667%205%208.55383%205H15.4462C16.9534%205%2017.7069%205%2018.1922%205.21589C19.1811%205.65591%2019.7745%206.68236%2019.6624%207.75894C19.6074%208.28717%2019.2314%208.94024%2018.4794%2010.2464L14.1839%2017.7069ZM11.1%2016.3412L6.56139%208.48002C6.31995%208.06185%206.19924%207.85276%206.18146%207.68365C6.14523%207.33896%206.33507%207.01015%206.65169%206.86919C6.80703%206.80002%207.04847%206.80002%207.53133%206.80002H7.53134L11.1%206.80002V16.3412ZM12.9%2016.3412L17.4387%208.48002C17.6801%208.06185%2017.8008%207.85276%2017.8186%207.68365C17.8548%207.33896%2017.665%207.01015%2017.3484%206.86919C17.193%206.80002%2016.9516%206.80002%2016.4687%206.80002L12.9%206.80002V16.3412Z'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e",xb=()=>D.jsxs(qs,{children:[D.jsx(ll,{header:"Features",footer:"You can use these pages to learn more about features, provided by Telegram Mini Apps and other useful projects",children:D.jsx(Ol,{to:"/ton-connect",children:D.jsx(Di,{before:D.jsx(O1,{src:wb,style:{backgroundColor:"#007AFF"}}),subtitle:"Connect your TON wallet",children:"TON Connect"})})}),D.jsxs(ll,{header:"Application Launch Data",footer:"These pages help developer to learn more about current launch information",children:[D.jsx(Ol,{to:"/init-data",children:D.jsx(Di,{subtitle:"User data, chat information, technical data",children:"Init Data"})}),D.jsx(Ol,{to:"/launch-params",children:D.jsx(Di,{subtitle:"Platform identifier, Mini Apps version, etc.",children:"Launch Parameters"})}),D.jsx(Ol,{to:"/theme-params",children:D.jsx(Di,{subtitle:"Telegram application palette information",children:"Theme Parameters"})})]})]}),Cb=({color:e,className:t,...n})=>D.jsxs("span",{...n,className:["rgb",t].filter(Boolean).join(" "),children:[D.jsx("i",{className:"rgb__icon",style:{backgroundColor:e}}),e]}),_o=({header:e,rows:t})=>D.jsx(ll,{header:e,children:t.map((n,r)=>{let o;return console.log(n),n.value===void 0?o=D.jsx("i",{children:"empty"}):"type"in n?o=D.jsx(Ol,{to:n.value,children:"Open"}):typeof n.value=="string"?o=n.value.match(/^#[a-f0-9]{3,6}$/i)?D.jsx(Cb,{color:n.value}):n.value:typeof n.value=="boolean"?o=D.jsx(cC,{checked:n.value,disabled:!0}):o=n.value,D.jsx(Di,{className:"display-data__line",subhead:n.title,readOnly:!0,multiline:!0,children:D.jsx("span",{className:"display-data__line-value",children:o})},r)})});function p2(e){return[{title:"id",value:e.id.toString()},{title:"username",value:e.username},{title:"photo_url",value:e.photo_url},{title:"last_name",value:e.last_name},{title:"first_name",value:e.first_name},{title:"is_bot",value:e.is_bot},{title:"is_premium",value:e.is_premium},{title:"language_code",value:e.language_code},{title:"allows_to_write_to_pm",value:e.allows_write_to_pm},{title:"added_to_attachment_menu",value:e.added_to_attachment_menu}]}const bb=()=>{const e=Cn.initData,t=Cn.initDataUnsafe,n=Q.useMemo(()=>{if(!t||!e)return;const{hash:l,start_param:s,chat_instance:a,chat_type:u,auth_date:d,can_send_after:p,query_id:h}=t;return[{title:"raw",value:e},{title:"auth_date",value:new Date(d*1e3).toLocaleString()},{title:"auth_date (raw)",value:d},{title:"hash",value:l},{title:"can_send_after",value:p},{title:"query_id",value:h},{title:"start_param",value:s},{title:"chat_type",value:u},{title:"chat_instance",value:a}]},[t,e]),r=Q.useMemo(()=>t&&t.user?p2(t.user):void 0,[t]),o=Q.useMemo(()=>t&&t.receiver?p2(t.receiver):void 0,[t]),i=Q.useMemo(()=>{if(!(t!=null&&t.chat))return;const{id:l,title:s,type:a,username:u,photo_url:d}=t.chat;return[{title:"id",value:l.toString()},{title:"title",value:s},{title:"type",value:a},{title:"username",value:u},{title:"photo_url",value:d}]},[t]);return n?D.jsxs(qs,{children:[D.jsx(_o,{header:"Init Data",rows:n}),r&&D.jsx(_o,{header:"User",rows:r}),o&&D.jsx(_o,{header:"Receiver",rows:o}),i&&D.jsx(_o,{header:"Chat",rows:i})]}):D.jsx(hm,{header:"Oops",description:"Application was launched with missing init data",children:D.jsx("img",{alt:"Telegram sticker",src:"https://xelene.me/telegram.gif",style:{display:"block",width:"144px",height:"144px"}})})},Sb=()=>{var e;return D.jsx(qs,{children:D.jsx(_o,{rows:[{title:"tgWebAppPlatform",value:Cn.platform},{title:"tgWebAppVersion",value:Cn.version},{title:"tgWebAppStartParam",value:(e=Cn.initDataUnsafe)==null?void 0:e.start_param},{title:"tgWebAppData",type:"link",value:"/init-data"},{title:"tgWebAppThemeParams",type:"link",value:"/theme-params"}]})})},_b=()=>D.jsx(qs,{children:D.jsx(_o,{rows:Object.entries(Cn.themeParams).map(([e,t])=>({title:e,value:t}))})}),kb=()=>{const e=Px();if(!e)return D.jsx(hm,{className:"ton-connect-page__placeholder",header:"TON Connect",description:D.jsxs(D.Fragment,{children:[D.jsx(Ks,{children:"To display the data related to the TON Connect, it is required to connect your wallet"}),D.jsx(o2,{className:"ton-connect-page__button"})]})});const{account:{chain:t,publicKey:n,address:r},device:{appName:o,appVersion:i,maxProtocolVersion:l,platform:s,features:a}}=e;return D.jsxs(qs,{children:["imageUrl"in e&&D.jsxs(D.Fragment,{children:[D.jsx(ll,{children:D.jsx(Di,{before:D.jsx(dm,{src:e.imageUrl,alt:"Provider logo",width:60,height:60}),after:D.jsx(tC,{children:"About wallet"}),subtitle:e.appName,onClick:u=>{u.preventDefault(),Cn.openLink(e.aboutUrl)},children:D.jsx(B1,{level:"3",children:e.name})})}),D.jsx(o2,{className:"ton-connect-page__button-connected"})]}),D.jsx(_o,{header:"Account",rows:[{title:"Address",value:r},{title:"Chain",value:t},{title:"Public Key",value:n}]}),D.jsx(_o,{header:"Device",rows:[{title:"App Name",value:o},{title:"App Version",value:i},{title:"Max Protocol Version",value:l},{title:"Platform",value:s},{title:"Features",value:a.map(u=>typeof u=="object"?u.name:void 0).filter(u=>u).join(", ")}]})]})},Eb=[{path:"/",Component:xb},{path:"/init-data",Component:bb,title:"Init Data"},{path:"/theme-params",Component:_b,title:"Theme Params"},{path:"/launch-params",Component:Sb,title:"Launch Params"},{path:"/ton-connect",Component:kb,title:"TON Connect",icon:D.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 56 56",fill:"none",children:[D.jsx("path",{d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"#0098EA"}),D.jsx("path",{d:"M37.5603 15.6277H18.4386C14.9228 15.6277 12.6944 19.4202 14.4632 22.4861L26.2644 42.9409C27.0345 44.2765 28.9644 44.2765 29.7345 42.9409L41.5381 22.4861C43.3045 19.4251 41.0761 15.6277 37.5627 15.6277H37.5603ZM26.2548 36.8068L23.6847 31.8327L17.4833 20.7414C17.0742 20.0315 17.5795 19.1218 18.4362 19.1218H26.2524V36.8092L26.2548 36.8068ZM38.5108 20.739L32.3118 31.8351L29.7417 36.8068V19.1194H37.5579C38.4146 19.1194 38.9199 20.0291 38.5108 20.739Z",fill:"white"})]})}];function Tb(){const e=ml(),t=z1();return Q.useEffect(()=>{function n(){t(-1)}return Cn.BackButton.onClick(n),()=>Cn.BackButton.offClick(n)},[t]),Q.useEffect(()=>{e.pathname==="/"?Cn.BackButton.isVisible&&Cn.BackButton.hide():!Cn.BackButton.isVisible&&Cn.BackButton.show()},[e]),null}const Pb=()=>D.jsx(yC,{appearance:Cn.colorScheme,platform:["macos","ios"].includes(Cn.platform)?"ios":"base",children:D.jsxs(pb,{children:[D.jsx(Tb,{}),D.jsxs(sb,{children:[Eb.map(e=>D.jsx(dd,{...e},e.path)),D.jsx(dd,{path:"*",element:D.jsx(ib,{to:"/"})})]})]})});class km extends Q.Component{constructor(){super(...arguments);fu(this,"state",{})}componentDidCatch(n){this.setState({error:n})}render(){const{state:{error:n},props:{fallback:r,children:o}}=this;return"error"in this.state?typeof r=="function"?D.jsx(r,{error:n}):r:o}}fu(km,"getDerivedStateFromError",n=>({error:n}));const Lb=({error:e})=>D.jsxs("div",{children:[D.jsx("p",{children:"An unhandled error occurred:"}),D.jsx("blockquote",{children:D.jsx("code",{children:e instanceof Error?e.message:typeof e=="string"?e:JSON.stringify(e)})})]}),Ab=()=>{const e=Cn.initDataUnsafe.start_param==="debug",t=Q.useMemo(()=>new URL("tonconnect-manifest.json",window.location.href).toString(),[]);return Q.useEffect(()=>{e&&l3(()=>import("./eruda-DYE_C-VE.js").then(n=>n.e),[]).then(n=>n.default.init())},[e]),D.jsx(kx,{manifestUrl:t,children:D.jsx(Pb,{})})},Rb=()=>D.jsx(km,{fallback:Lb,children:D.jsx(Ab,{})});ef.createRoot(document.getElementById("root")).render(D.jsx(Rb,{}));export{sl as g}; diff --git a/index.html b/index.html new file mode 100644 index 0000000..b752f5f --- /dev/null +++ b/index.html @@ -0,0 +1,21 @@ + + + + + + + Telegram Mini App + + + + + + + + +
    + + diff --git a/tonconnect-manifest.json b/tonconnect-manifest.json new file mode 100644 index 0000000..0bb056f --- /dev/null +++ b/tonconnect-manifest.json @@ -0,0 +1,5 @@ +{ + "url": "https://ton.vote", + "name": "TON Vote", + "iconUrl": "https://ton.vote/logo.png" +} \ No newline at end of file