diff --git a/assets/Manage-364971f1.js b/assets/Manage-d63824ea.js similarity index 99% rename from assets/Manage-364971f1.js rename to assets/Manage-d63824ea.js index 522e2d0..2d63539 100644 --- a/assets/Manage-364971f1.js +++ b/assets/Manage-d63824ea.js @@ -1,4 +1,4 @@ -import{g as wt,u as G,a as vt,j as r,b as me,c as xt,C as Ne,d as fe,e as V,A as Tt,L as Ot,f as Lt,q as At,h as Ee,i as Te,k as re,l as $t,m as Ut,s as St,n as _t,o as It,T as Nt,p as Et,r as Vt,t as zt}from"./index-2e550eff.js";import{r as b,A as be,_ as ye,f as ue,j as Oe,I as Ve,d as C,M as ze,S as z,k as Le,B as M,l as Bt,n as Ft,h as Mt,i as Rt,T as Dt,o as Pt,p as Ht,E as Jt,q as Wt,P as qt,D as Gt,s as Qt,u as Xt,v as Zt,w as ie,x as H,y as Yt,C as U,L as ke,R as je,z as Kt,G as Ct,H as en,J as we}from"./antd-15fa66a0.js";var tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const nn=tn;var sn=function(n,s){return b.createElement(be,ye({},n,{ref:s,icon:nn}))},ln=b.forwardRef(sn);const lt=ln;var rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const on=rn;var an=function(n,s){return b.createElement(be,ye({},n,{ref:s,icon:on}))},cn=b.forwardRef(an);const un=cn;var dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const fn=dn;var mn=function(n,s){return b.createElement(be,ye({},n,{ref:s,icon:fn}))},pn=b.forwardRef(mn);const hn=pn;var gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};const bn=gn;var yn=function(n,s){return b.createElement(be,ye({},n,{ref:s,icon:bn}))},kn=b.forwardRef(yn);const jn=kn;function rt(e,n=!1){const s=e.length;let t=0,l="",o=0,u=16,a=0,i=0,d=0,c=0,m=0;function y(h,v){let f=0,g=0;for(;f=48&&p<=57)g=g*16+p-48;else if(p>=65&&p<=70)g=g*16+p-65+10;else if(p>=97&&p<=102)g=g*16+p-97+10;else break;t++,f++}return f=s){h+=e.substring(v,t),m=2;break}const f=e.charCodeAt(t);if(f===34){h+=e.substring(v,t),t++;break}if(f===92){if(h+=e.substring(v,t),t++,t>=s){m=2;break}switch(e.charCodeAt(t++)){case 34:h+='"';break;case 92:h+="\\";break;case 47:h+="/";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+=` +import{g as wt,u as G,a as vt,j as r,b as me,c as xt,C as Ne,d as fe,e as V,A as Tt,L as Ot,f as Lt,q as At,h as Ee,i as Te,k as re,l as $t,m as Ut,s as St,n as _t,o as It,T as Nt,p as Et,r as Vt,t as zt}from"./index-9222c400.js";import{r as b,A as be,_ as ye,f as ue,j as Oe,I as Ve,d as C,M as ze,S as z,k as Le,B as M,l as Bt,n as Ft,h as Mt,i as Rt,T as Dt,o as Pt,p as Ht,E as Jt,q as Wt,P as qt,D as Gt,s as Qt,u as Xt,v as Zt,w as ie,x as H,y as Yt,C as U,L as ke,R as je,z as Kt,G as Ct,H as en,J as we}from"./antd-15fa66a0.js";var tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const nn=tn;var sn=function(n,s){return b.createElement(be,ye({},n,{ref:s,icon:nn}))},ln=b.forwardRef(sn);const lt=ln;var rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const on=rn;var an=function(n,s){return b.createElement(be,ye({},n,{ref:s,icon:on}))},cn=b.forwardRef(an);const un=cn;var dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const fn=dn;var mn=function(n,s){return b.createElement(be,ye({},n,{ref:s,icon:fn}))},pn=b.forwardRef(mn);const hn=pn;var gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};const bn=gn;var yn=function(n,s){return b.createElement(be,ye({},n,{ref:s,icon:bn}))},kn=b.forwardRef(yn);const jn=kn;function rt(e,n=!1){const s=e.length;let t=0,l="",o=0,u=16,a=0,i=0,d=0,c=0,m=0;function y(h,v){let f=0,g=0;for(;f=48&&p<=57)g=g*16+p-48;else if(p>=65&&p<=70)g=g*16+p-65+10;else if(p>=97&&p<=102)g=g*16+p-97+10;else break;t++,f++}return f=s){h+=e.substring(v,t),m=2;break}const f=e.charCodeAt(t);if(f===34){h+=e.substring(v,t),t++;break}if(f===92){if(h+=e.substring(v,t),t++,t>=s){m=2;break}switch(e.charCodeAt(t++)){case 34:h+='"';break;case 92:h+="\\";break;case 47:h+="/";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+=` `;break;case 114:h+="\r";break;case 116:h+=" ";break;case 117:const p=y(4,!0);p>=0?h+=String.fromCharCode(p):m=4;break;default:m=5}v=t;continue}if(f>=0&&f<=31)if(oe(f)){h+=e.substring(v,t),m=2;break}else m=6;t++}return h}function T(){if(l="",m=0,o=t,i=a,c=d,t>=s)return o=s,u=17;let h=e.charCodeAt(t);if(ve(h)){do t++,l+=String.fromCharCode(h),h=e.charCodeAt(t);while(ve(h));return u=15}if(oe(h))return t++,l+=String.fromCharCode(h),h===13&&e.charCodeAt(t)===10&&(t++,l+=` `),a++,d=t,u=14;switch(h){case 123:return t++,u=1;case 125:return t++,u=2;case 91:return t++,u=3;case 93:return t++,u=4;case 58:return t++,u=6;case 44:return t++,u=5;case 34:return t++,l=x(),u=10;case 47:const v=t-1;if(e.charCodeAt(t+1)===47){for(t+=2;t=12&&h<=15);return h}return{setPosition:w,getPosition:()=>t,scan:n?O:T,getToken:()=>u,getTokenValue:()=>l,getTokenOffset:()=>o,getTokenLength:()=>t-o,getTokenStartLine:()=>i,getTokenStartCharacter:()=>o-c,getTokenError:()=>m}}function ve(e){return e===32||e===9}function oe(e){return e===10||e===13}function ee(e){return e>=48&&e<=57}var Me;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Me||(Me={}));const F=new Array(20).fill(0).map((e,n)=>" ".repeat(n)),te=200,Re={" ":{"\n":new Array(te).fill(0).map((e,n)=>` `+" ".repeat(n)),"\r":new Array(te).fill(0).map((e,n)=>"\r"+" ".repeat(n)),"\r\n":new Array(te).fill(0).map((e,n)=>`\r diff --git a/assets/en-e998d6f7.js b/assets/en-e998d6f7.js new file mode 100644 index 0000000..4a827b3 --- /dev/null +++ b/assets/en-e998d6f7.js @@ -0,0 +1 @@ +const e="English",t={title:"GOST API Manage",description:"Connecting to API Services",form:{username:"Username",password:"Password",local:"Save to local",name:"Name",details:"Details"},cmd:{connect:"Connect",controls:"Operation",enabled:"Enabled",disable:"Disable",copy:"Copy",edit:"Edit",del:"Delete"}},i={warn:"Warning",deleteing:"Are you sure you want to delete?",doubleClickEdit:"Double click to modify"},o={admission:{title:"Admission",subTitle:"admission"},auther:{title:"Auther",subTitle:"auther"},bypass:{title:"Bypass",subTitle:"bypass"},chain:{title:"Chain",subTitle:"chain"},climiter:{title:"climiter",subTitle:"climiter"},limiter:{title:"limiter",subTitle:"limiter"},rlimiter:{title:"rlimiter",subTitle:"rlimiter"},hop:{title:"Hop",subTitle:"hop"},host:{title:"Hosts",subTitle:"hosts"},ingress:{title:"Ingress",subTitle:"Ingress"},resolver:{title:"Resolver",subTitle:"resolver"},service:{title:"Service",subTitle:"service"},sd:{title:"SD",subTitle:"SD"},observer:{title:"Observer",subTitle:"observer"}},a={baseURL:{required:"BaseURL cannot be empty"},require:"Can not be empty!",success:"Success!",unknown:"Unknown error!",connectionFailed:"Connection failed!",wordWrap:"Word Wrap",invalidName:"Invalid name",autofixName:"Whether to automatically assign a name?",autofix:"Autofix Reminder",fixName:"Reassign name to {{name}}",formatError:"{{name}}Format error!"},s={baseURL:"API baseURL",savePath:"By default, it is saved to the context directory."},l={quickConnect:"Quick Connect"},n={cmd:{reload:"Reload Config",save:"Save to server",download:"Download Config",logout:"Logout",switch:"Switch Services",new:"Connect to new Services"},label:{autoSave:"Autosave",format:"Format",path:"Save path",limit:"Speed and current limit",allConfig:"All Config JSON"}},r={edit:"Edit {{name}}",add:"Add {{name}}",copied:"Copied from {{name}}"},c={default:"Default",inline:"Inline"},m={template:"Template",forwarder:"Forwarder",key0:"Remote Port Forwarding"},d={language:e,base:t,text:i,modules:o,msg:a,placeholder:s,home:l,manage:n,title:r,template:c,terms:m};export{t as base,d as default,l as home,e as language,n as manage,o as modules,a as msg,s as placeholder,c as template,m as terms,i as text,r as title}; diff --git a/assets/index-2e550eff.js b/assets/index-9222c400.js similarity index 62% rename from assets/index-2e550eff.js rename to assets/index-9222c400.js index 2c1cc33..b8354d6 100644 --- a/assets/index-2e550eff.js +++ b/assets/index-9222c400.js @@ -1,4 +1,4 @@ -var Mi=Object.defineProperty;var Bi=(t,e,r)=>e in t?Mi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var X=(t,e,r)=>(Bi(t,typeof e!="symbol"?e+"":e,r),r);import{r as O,a as Ui,g as zi,c as Vi,b as Kr,m as br,A as Qe,_ as Xe,S as yo,R as Hi,C as Ki,F as qi,D as Wi,B as qr,d as xe,I as Qt,e as Gi,f as Ct,h as ht,t as Ji,i as Yi}from"./antd-15fa66a0.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(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 n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var vo={exports:{}},Nt={};/** +var Bi=Object.defineProperty;var Ui=(t,e,r)=>e in t?Bi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var X=(t,e,r)=>(Ui(t,typeof e!="symbol"?e+"":e,r),r);import{r as O,a as zi,g as Vi,c as Ki,b as qr,m as wr,A as Qe,_ as Xe,S as vo,R as Hi,C as qi,F as Wi,D as Gi,B as Wr,d as xe,I as Xt,e as Ji,f as Nt,h as ht,t as Yi,i as Qi}from"./antd-15fa66a0.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(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 n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var bo={exports:{}},_t={};/** * @license React * react-jsx-runtime.production.min.js * @@ -6,12 +6,12 @@ var Mi=Object.defineProperty;var Bi=(t,e,r)=>e in t?Mi(t,e,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Qi=O,Xi=Symbol.for("react.element"),Zi=Symbol.for("react.fragment"),es=Object.prototype.hasOwnProperty,ts=Qi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rs={key:!0,ref:!0,__self:!0,__source:!0};function bo(t,e,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(s=e.ref);for(n in e)es.call(e,n)&&!rs.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)o[n]===void 0&&(o[n]=e[n]);return{$$typeof:Xi,type:t,key:i,ref:s,props:o,_owner:ts.current}}Nt.Fragment=Zi;Nt.jsx=bo;Nt.jsxs=bo;vo.exports=Nt;var x=vo.exports,wr={},fn=Ui;wr.createRoot=fn.createRoot,wr.hydrateRoot=fn.hydrateRoot;const ns="modulepreload",os=function(t,e){return new URL(t,e).href},dn={},is=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=os(i,n),i in dn)return;dn[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!n)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===i&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":ns,s||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),s)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})};var Wr={exports:{}},Re=typeof Reflect=="object"?Reflect:null,pn=Re&&typeof Re.apply=="function"?Re.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},gt;Re&&typeof Re.ownKeys=="function"?gt=Re.ownKeys:Object.getOwnPropertySymbols?gt=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:gt=function(e){return Object.getOwnPropertyNames(e)};function ss(t){console&&console.warn&&console.warn(t)}var wo=Number.isNaN||function(e){return e!==e};function L(){L.init.call(this)}Wr.exports=L;Wr.exports.once=cs;L.EventEmitter=L;L.prototype._events=void 0;L.prototype._eventsCount=0;L.prototype._maxListeners=void 0;var hn=10;function _t(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(L,"defaultMaxListeners",{enumerable:!0,get:function(){return hn},set:function(t){if(typeof t!="number"||t<0||wo(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");hn=t}});L.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};L.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||wo(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function So(t){return t._maxListeners===void 0?L.defaultMaxListeners:t._maxListeners}L.prototype.getMaxListeners=function(){return So(this)};L.prototype.emit=function(e){for(var r=[],n=1;n0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=i[e];if(l===void 0)return!1;if(typeof l=="function")pn(l,this,r);else for(var u=l.length,c=Ao(l,u),n=0;n0&&s.length>o&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=s.length,ss(a)}return t}L.prototype.addListener=function(e,r){return xo(this,e,r,!1)};L.prototype.on=L.prototype.addListener;L.prototype.prependListener=function(e,r){return xo(this,e,r,!0)};function as(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Oo(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=as.bind(n);return o.listener=r,n.wrapFn=o,o}L.prototype.once=function(e,r){return _t(r),this.on(e,Oo(this,e,r)),this};L.prototype.prependOnceListener=function(e,r){return _t(r),this.prependListener(e,Oo(this,e,r)),this};L.prototype.removeListener=function(e,r){var n,o,i,s,a;if(_t(r),o=this._events,o===void 0)return this;if(n=o[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,i=s;break}if(i<0)return this;i===0?n.shift():ls(n,i),n.length===1&&(o[e]=n[0]),o.removeListener!==void 0&&this.emit("removeListener",e,a||r)}return this};L.prototype.off=L.prototype.removeListener;L.prototype.removeAllListeners=function(e){var r,n,o;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),s;for(o=0;o=0;o--)this.removeListener(e,r[o]);return this};function Eo(t,e,r){var n=t._events;if(n===void 0)return[];var o=n[e];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?us(o):Ao(o,o.length)}L.prototype.listeners=function(e){return Eo(this,e,!0)};L.prototype.rawListeners=function(e){return Eo(this,e,!1)};L.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Po.call(t,e)};L.prototype.listenerCount=Po;function Po(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}L.prototype.eventNames=function(){return this._eventsCount>0?gt(this._events):[]};function Ao(t,e){for(var r=new Array(e),n=0;ni,e=s=>{i=s}}const n=new Ro.EventEmitter;n.on("setValue",function(i){e(i),n.emit("upValue",i)}),r&&e(r);const o=i=>{const[s,a]=O.useState(t?t():void 0);return O.useEffect(()=>(i&&n.emit("setValue",i),n.on("upValue",a),()=>{n.off("upValue",a)}),[]),s};return o.set=i=>{n.emit("setValue",i)},o.get=()=>t==null?void 0:t(),o}function Lo(t,e){return function(){return t.apply(e,arguments)}}const{toString:ds}=Object.prototype,{getPrototypeOf:Gr}=Object,It=(t=>e=>{const r=ds.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),oe=t=>(t=t.toLowerCase(),e=>It(e)===t),kt=t=>e=>typeof e===t,{isArray:Ie}=Array,Je=kt("undefined");function ps(t){return t!==null&&!Je(t)&&t.constructor!==null&&!Je(t.constructor)&&J(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Co=oe("ArrayBuffer");function hs(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Co(t.buffer),e}const gs=kt("string"),J=kt("function"),No=kt("number"),Dt=t=>t!==null&&typeof t=="object",ms=t=>t===!0||t===!1,mt=t=>{if(It(t)!=="object")return!1;const e=Gr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},ys=oe("Date"),vs=oe("File"),bs=oe("Blob"),ws=oe("FileList"),Ss=t=>Dt(t)&&J(t.pipe),xs=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||J(t.append)&&((e=It(t))==="formdata"||e==="object"&&J(t.toString)&&t.toString()==="[object FormData]"))},Os=oe("URLSearchParams"),Es=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ze(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),Ie(t))for(n=0,o=t.length;n0;)if(o=r[n],e===o.toLowerCase())return o;return null}const To=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Io=t=>!Je(t)&&t!==To;function Sr(){const{caseless:t}=Io(this)&&this||{},e={},r=(n,o)=>{const i=t&&_o(e,o)||o;mt(e[i])&&mt(n)?e[i]=Sr(e[i],n):mt(n)?e[i]=Sr({},n):Ie(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n(Ze(e,(o,i)=>{r&&J(o)?t[i]=Lo(o,r):t[i]=o},{allOwnKeys:n}),t),As=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),$s=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Rs=(t,e,r,n)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&Gr(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Ls=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},Cs=t=>{if(!t)return null;if(Ie(t))return t;let e=t.length;if(!No(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Ns=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Gr(Uint8Array)),_s=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},Ts=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Is=oe("HTMLFormElement"),ks=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),gn=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Ds=oe("RegExp"),ko=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Ze(r,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(n[i]=s||o)}),Object.defineProperties(t,n)},Fs=t=>{ko(t,(e,r)=>{if(J(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(J(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},js=(t,e)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Ie(t)?n(t):n(String(t).split(e)),r},Ms=()=>{},Bs=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Xt="abcdefghijklmnopqrstuvwxyz",mn="0123456789",Do={DIGIT:mn,ALPHA:Xt,ALPHA_DIGIT:Xt+Xt.toUpperCase()+mn},Us=(t=16,e=Do.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function zs(t){return!!(t&&J(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Vs=t=>{const e=new Array(10),r=(n,o)=>{if(Dt(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const i=Ie(n)?[]:{};return Ze(n,(s,a)=>{const l=r(s,o+1);!Je(l)&&(i[a]=l)}),e[o]=void 0,i}}return n};return r(t,0)},Hs=oe("AsyncFunction"),Ks=t=>t&&(Dt(t)||J(t))&&J(t.then)&&J(t.catch),g={isArray:Ie,isArrayBuffer:Co,isBuffer:ps,isFormData:xs,isArrayBufferView:hs,isString:gs,isNumber:No,isBoolean:ms,isObject:Dt,isPlainObject:mt,isUndefined:Je,isDate:ys,isFile:vs,isBlob:bs,isRegExp:Ds,isFunction:J,isStream:Ss,isURLSearchParams:Os,isTypedArray:Ns,isFileList:ws,forEach:Ze,merge:Sr,extend:Ps,trim:Es,stripBOM:As,inherits:$s,toFlatObject:Rs,kindOf:It,kindOfTest:oe,endsWith:Ls,toArray:Cs,forEachEntry:_s,matchAll:Ts,isHTMLForm:Is,hasOwnProperty:gn,hasOwnProp:gn,reduceDescriptors:ko,freezeMethods:Fs,toObjectSet:js,toCamelCase:ks,noop:Ms,toFiniteNumber:Bs,findKey:_o,global:To,isContextDefined:Io,ALPHABET:Do,generateString:Us,isSpecCompliantForm:zs,toJSONObject:Vs,isAsyncFn:Hs,isThenable:Ks};function R(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}g.inherits(R,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fo=R.prototype,jo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{jo[t]={value:t}});Object.defineProperties(R,jo);Object.defineProperty(Fo,"isAxiosError",{value:!0});R.from=(t,e,r,n,o,i)=>{const s=Object.create(Fo);return g.toFlatObject(t,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),R.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const qs=null;function xr(t){return g.isPlainObject(t)||g.isArray(t)}function Mo(t){return g.endsWith(t,"[]")?t.slice(0,-2):t}function yn(t,e,r){return t?t.concat(e).map(function(o,i){return o=Mo(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function Ws(t){return g.isArray(t)&&!t.some(xr)}const Gs=g.toFlatObject(g,{},null,function(e){return/^is[A-Z]/.test(e)});function Ft(t,e,r){if(!g.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=g.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!g.isUndefined(y[h])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(e);if(!g.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(g.isDate(p))return p.toISOString();if(!l&&g.isBlob(p))throw new R("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(p)||g.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,h,y){let v=p;if(p&&!y&&typeof p=="object"){if(g.endsWith(h,"{}"))h=n?h:h.slice(0,-2),p=JSON.stringify(p);else if(g.isArray(p)&&Ws(p)||(g.isFileList(p)||g.endsWith(h,"[]"))&&(v=g.toArray(p)))return h=Mo(h),v.forEach(function(w,S){!(g.isUndefined(w)||w===null)&&e.append(s===!0?yn([h],S,i):s===null?h:h+"[]",u(w))}),!1}return xr(p)?!0:(e.append(yn(y,h,i),u(p)),!1)}const d=[],f=Object.assign(Gs,{defaultVisitor:c,convertValue:u,isVisitable:xr});function m(p,h){if(!g.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(p),g.forEach(p,function(v,b){(!(g.isUndefined(v)||v===null)&&o.call(e,v,g.isString(b)?b.trim():b,h,f))===!0&&m(v,h?h.concat(b):[b])}),d.pop()}}if(!g.isObject(t))throw new TypeError("data must be an object");return m(t),e}function vn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Jr(t,e){this._pairs=[],t&&Ft(t,this,e)}const Bo=Jr.prototype;Bo.append=function(e,r){this._pairs.push([e,r])};Bo.toString=function(e){const r=e?function(n){return e.call(this,n,vn)}:vn;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Js(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Uo(t,e,r){if(!e)return t;const n=r&&r.encode||Js,o=r&&r.serialize;let i;if(o?i=o(e,r):i=g.isURLSearchParams(e)?e.toString():new Jr(e,r).toString(n),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ys{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){g.forEach(this.handlers,function(n){n!==null&&e(n)})}}const bn=Ys,zo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qs=typeof URLSearchParams<"u"?URLSearchParams:Jr,Xs=typeof FormData<"u"?FormData:null,Zs=typeof Blob<"u"?Blob:null,ea={isBrowser:!0,classes:{URLSearchParams:Qs,FormData:Xs,Blob:Zs},protocols:["http","https","file","blob","url","data"]},Vo=typeof window<"u"&&typeof document<"u",ta=(t=>Vo&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),ra=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),na=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vo,hasStandardBrowserEnv:ta,hasStandardBrowserWebWorkerEnv:ra},Symbol.toStringTag,{value:"Module"})),re={...na,...ea};function oa(t,e){return Ft(t,new re.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return re.isNode&&g.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function ia(t){return g.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function sa(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n=r.length;return s=!s&&g.isArray(o)?o.length:s,l?(g.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!g.isObject(o[s]))&&(o[s]=[]),e(r,n,o[s],i)&&g.isArray(o[s])&&(o[s]=sa(o[s])),!a)}if(g.isFormData(t)&&g.isFunction(t.entries)){const r={};return g.forEachEntry(t,(n,o)=>{e(ia(n),o,r,0)}),r}return null}function aa(t,e,r){if(g.isString(t))try{return(e||JSON.parse)(t),g.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Yr={transitional:zo,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=g.isObject(e);if(i&&g.isHTMLForm(e)&&(e=new FormData(e)),g.isFormData(e))return o?JSON.stringify(Ho(e)):e;if(g.isArrayBuffer(e)||g.isBuffer(e)||g.isStream(e)||g.isFile(e)||g.isBlob(e))return e;if(g.isArrayBufferView(e))return e.buffer;if(g.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return oa(e,this.formSerializer).toString();if((a=g.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ft(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),aa(e)):e}],transformResponse:[function(e){const r=this.transitional||Yr.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(e&&g.isString(e)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?R.from(a,R.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:re.classes.FormData,Blob:re.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],t=>{Yr.headers[t]={}});const Qr=Yr,la=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ua=t=>{const e={};let r,n,o;return t&&t.split(` -`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||e[r]&&la[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},wn=Symbol("internals");function Me(t){return t&&String(t).trim().toLowerCase()}function yt(t){return t===!1||t==null?t:g.isArray(t)?t.map(yt):String(t)}function ca(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const fa=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Zt(t,e,r,n,o){if(g.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!g.isString(e)){if(g.isString(n))return e.indexOf(n)!==-1;if(g.isRegExp(n))return n.test(e)}}function da(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function pa(t,e){const r=g.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,s){return this[n].call(this,e,o,i,s)},configurable:!0})})}class jt{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function i(a,l,u){const c=Me(l);if(!c)throw new Error("header name must be a non-empty string");const d=g.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=yt(a))}const s=(a,l)=>g.forEach(a,(u,c)=>i(u,c,l));return g.isPlainObject(e)||e instanceof this.constructor?s(e,r):g.isString(e)&&(e=e.trim())&&!fa(e)?s(ua(e),r):e!=null&&i(r,e,n),this}get(e,r){if(e=Me(e),e){const n=g.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return ca(o);if(g.isFunction(r))return r.call(this,o,n);if(g.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Me(e),e){const n=g.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Zt(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function i(s){if(s=Me(s),s){const a=g.findKey(n,s);a&&(!r||Zt(n,n[a],a,r))&&(delete n[a],o=!0)}}return g.isArray(e)?e.forEach(i):i(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!e||Zt(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const r=this,n={};return g.forEach(this,(o,i)=>{const s=g.findKey(n,i);if(s){r[s]=yt(o),delete r[i];return}const a=e?da(i):String(i).trim();a!==i&&delete r[i],r[a]=yt(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return g.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&g.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[wn]=this[wn]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Me(s);n[a]||(pa(o,s),n[a]=!0)}return g.isArray(e)?e.forEach(i):i(e),this}}jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);g.reduceDescriptors(jt.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});g.freezeMethods(jt);const ae=jt;function er(t,e){const r=this||Qr,n=e||r,o=ae.from(n.headers);let i=n.data;return g.forEach(t,function(a){i=a.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Ko(t){return!!(t&&t.__CANCEL__)}function et(t,e,r){R.call(this,t??"canceled",R.ERR_CANCELED,e,r),this.name="CanceledError"}g.inherits(et,R,{__CANCEL__:!0});function ha(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new R("Request failed with status code "+r.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const ga=re.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const s=[t+"="+encodeURIComponent(e)];g.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),g.isString(n)&&s.push("path="+n),g.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ma(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ya(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function qo(t,e){return t&&!ma(e)?ya(t,e):e}const va=re.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=g.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function ba(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function wa(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=n[i];s||(s=u),r[o]=l,n[o]=u;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,l=n(a),u=i<=s;r=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};c[e?"download":"upload"]=!0,t(c)}}const Sa=typeof XMLHttpRequest<"u",xa=Sa&&function(t){return new Promise(function(r,n){let o=t.data;const i=ae.from(t.headers).normalize();let{responseType:s,withXSRFToken:a}=t,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let c;if(g.isFormData(o)){if(re.hasStandardBrowserEnv||re.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[h,...y]=c?c.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...y].join("; "))}}let d=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+y))}const f=qo(t.baseURL,t.url);d.open(t.method.toUpperCase(),Uo(f,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function m(){if(!d)return;const h=ae.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:t,request:d};ha(function(w){r(w),u()},function(w){n(w),u()},v),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(n(new R("Request aborted",R.ECONNABORTED,t,d)),d=null)},d.onerror=function(){n(new R("Network Error",R.ERR_NETWORK,t,d)),d=null},d.ontimeout=function(){let y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const v=t.transitional||zo;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),n(new R(y,v.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,t,d)),d=null},re.hasStandardBrowserEnv&&(a&&g.isFunction(a)&&(a=a(t)),a||a!==!1&&va(f))){const h=t.xsrfHeaderName&&t.xsrfCookieName&&ga.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in d&&g.forEach(i.toJSON(),function(y,v){d.setRequestHeader(v,y)}),g.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),s&&s!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",Sn(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Sn(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=h=>{d&&(n(!h||h.type?new et(null,t,d):h),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const p=ba(f);if(p&&re.protocols.indexOf(p)===-1){n(new R("Unsupported protocol "+p+":",R.ERR_BAD_REQUEST,t));return}d.send(o||null)})},Or={http:qs,xhr:xa};g.forEach(Or,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const xn=t=>`- ${t}`,Oa=t=>g.isFunction(t)||t===null||t===!1,Wo={getAdapter:t=>{t=g.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since : -`+i.map(xn).join(` -`):" "+xn(i[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Or};function tr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new et(null,t)}function On(t){return tr(t),t.headers=ae.from(t.headers),t.data=er.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Wo.getAdapter(t.adapter||Qr.adapter)(t).then(function(n){return tr(t),n.data=er.call(t,t.transformResponse,n),n.headers=ae.from(n.headers),n},function(n){return Ko(n)||(tr(t),n&&n.response&&(n.response.data=er.call(t,t.transformResponse,n.response),n.response.headers=ae.from(n.response.headers))),Promise.reject(n)})}const En=t=>t instanceof ae?{...t}:t;function Ce(t,e){e=e||{};const r={};function n(u,c,d){return g.isPlainObject(u)&&g.isPlainObject(c)?g.merge.call({caseless:d},u,c):g.isPlainObject(c)?g.merge({},c):g.isArray(c)?c.slice():c}function o(u,c,d){if(g.isUndefined(c)){if(!g.isUndefined(u))return n(void 0,u,d)}else return n(u,c,d)}function i(u,c){if(!g.isUndefined(c))return n(void 0,c)}function s(u,c){if(g.isUndefined(c)){if(!g.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function a(u,c,d){if(d in e)return n(u,c);if(d in t)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>o(En(u),En(c),!0)};return g.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=l[c]||o,f=d(t[c],e[c],c);g.isUndefined(f)&&d!==a||(r[c]=f)}),r}const Go="1.6.8",Xr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Xr[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Pn={};Xr.transitional=function(e,r,n){function o(i,s){return"[Axios v"+Go+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(e===!1)throw new R(o(s," has been removed"+(r?" in "+r:"")),R.ERR_DEPRECATED);return r&&!Pn[s]&&(Pn[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,s,a):!0}};function Ea(t,e,r){if(typeof t!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],s=e[i];if(s){const a=t[i],l=a===void 0||s(a,i,t);if(l!==!0)throw new R("option "+i+" must be "+l,R.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new R("Unknown option "+i,R.ERR_BAD_OPTION)}}const Er={assertOptions:Ea,validators:Xr},ue=Er.validators;class St{constructor(e){this.defaults=e,this.interceptors={request:new bn,response:new bn}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` -`+i):n.stack=i}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Ce(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Er.assertOptions(n,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean)},!1),o!=null&&(g.isFunction(o)?r.paramsSerializer={serialize:o}:Er.assertOptions(o,{encode:ue.function,serialize:ue.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&g.merge(i.common,i[r.method]);i&&g.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=ae.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,d=0,f;if(!l){const p=[On.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),f=p.length,c=Promise.resolve(r);d{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,a){n.reason||(n.reason=new et(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new Zr(function(o){e=o}),cancel:e}}}const Pa=Zr;function Aa(t){return function(r){return t.apply(null,r)}}function $a(t){return g.isObject(t)&&t.isAxiosError===!0}const Pr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pr).forEach(([t,e])=>{Pr[e]=t});const Ra=Pr;function Jo(t){const e=new vt(t),r=Lo(vt.prototype.request,e);return g.extend(r,vt.prototype,e,{allOwnKeys:!0}),g.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return Jo(Ce(t,o))},r}const N=Jo(Qr);N.Axios=vt;N.CanceledError=et;N.CancelToken=Pa;N.isCancel=Ko;N.VERSION=Go;N.toFormData=Ft;N.AxiosError=R;N.Cancel=N.CanceledError;N.all=function(e){return Promise.all(e)};N.spread=Aa;N.isAxiosError=$a;N.mergeConfig=Ce;N.AxiosHeaders=ae;N.formToJSON=t=>Ho(g.isHTMLForm(t)?new FormData(t):t);N.getAdapter=Wo.getAdapter;N.HttpStatusCode=Ra;N.default=N;const Yo=N;var La=Error,Ca=EvalError,Na=RangeError,_a=ReferenceError,Qo=SyntaxError,tt=TypeError,Ta=URIError,Ia=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0},An=typeof Symbol<"u"&&Symbol,ka=Ia,Da=function(){return typeof An!="function"||typeof Symbol!="function"||typeof An("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ka()},rr={__proto__:null,foo:{}},Fa=Object,ja=function(){return{__proto__:rr}.foo===rr.foo&&!(rr instanceof Fa)},Ma="Function.prototype.bind called on incompatible ",Ba=Object.prototype.toString,Ua=Math.max,za="[object Function]",$n=function(e,r){for(var n=[],o=0;o"u"||!T?A:T(Uint8Array),ye={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?A:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?A:ArrayBuffer,"%ArrayIteratorPrototype%":Oe&&T?T([][Symbol.iterator]()):A,"%AsyncFromSyncIteratorPrototype%":A,"%AsyncFunction%":$e,"%AsyncGenerator%":$e,"%AsyncGeneratorFunction%":$e,"%AsyncIteratorPrototype%":$e,"%Atomics%":typeof Atomics>"u"?A:Atomics,"%BigInt%":typeof BigInt>"u"?A:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?A:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?A:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?A:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Qa,"%eval%":eval,"%EvalError%":Xa,"%Float32Array%":typeof Float32Array>"u"?A:Float32Array,"%Float64Array%":typeof Float64Array>"u"?A:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?A:FinalizationRegistry,"%Function%":Xo,"%GeneratorFunction%":$e,"%Int8Array%":typeof Int8Array>"u"?A:Int8Array,"%Int16Array%":typeof Int16Array>"u"?A:Int16Array,"%Int32Array%":typeof Int32Array>"u"?A:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Oe&&T?T(T([][Symbol.iterator]())):A,"%JSON%":typeof JSON=="object"?JSON:A,"%Map%":typeof Map>"u"?A:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Oe||!T?A:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?A:Promise,"%Proxy%":typeof Proxy>"u"?A:Proxy,"%RangeError%":Za,"%ReferenceError%":el,"%Reflect%":typeof Reflect>"u"?A:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?A:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Oe||!T?A:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?A:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Oe&&T?T(""[Symbol.iterator]()):A,"%Symbol%":Oe?Symbol:A,"%SyntaxError%":Ne,"%ThrowTypeError%":rl,"%TypedArray%":ol,"%TypeError%":Le,"%Uint8Array%":typeof Uint8Array>"u"?A:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?A:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?A:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?A:Uint32Array,"%URIError%":tl,"%WeakMap%":typeof WeakMap>"u"?A:WeakMap,"%WeakRef%":typeof WeakRef>"u"?A:WeakRef,"%WeakSet%":typeof WeakSet>"u"?A:WeakSet};if(T)try{null.error}catch(t){var il=T(T(t));ye["%Error.prototype%"]=il}var sl=function t(e){var r;if(e==="%AsyncFunction%")r=nr("async function () {}");else if(e==="%GeneratorFunction%")r=nr("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=nr("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&T&&(r=T(o.prototype))}return ye[e]=r,r},Rn={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},rt=en,xt=Ya,al=rt.call(Function.call,Array.prototype.concat),ll=rt.call(Function.apply,Array.prototype.splice),Ln=rt.call(Function.call,String.prototype.replace),Ot=rt.call(Function.call,String.prototype.slice),ul=rt.call(Function.call,RegExp.prototype.exec),cl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fl=/\\(\\)?/g,dl=function(e){var r=Ot(e,0,1),n=Ot(e,-1);if(r==="%"&&n!=="%")throw new Ne("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ne("invalid intrinsic syntax, expected opening `%`");var o=[];return Ln(e,cl,function(i,s,a,l){o[o.length]=a?Ln(l,fl,"$1"):s||i}),o},pl=function(e,r){var n=e,o;if(xt(Rn,n)&&(o=Rn[n],n="%"+o[0]+"%"),xt(ye,n)){var i=ye[n];if(i===$e&&(i=sl(n)),typeof i>"u"&&!r)throw new Le("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Ne("intrinsic "+e+" does not exist!")},ke=function(e,r){if(typeof e!="string"||e.length===0)throw new Le("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Le('"allowMissing" argument must be a boolean');if(ul(/^%?[^%]*%?$/,e)===null)throw new Ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=dl(e),o=n.length>0?n[0]:"",i=pl("%"+o+"%",r),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],ll(n,al([0,1],u)));for(var c=1,d=!0;c=n.length){var h=me(a,f);d=!!h,d&&"get"in h&&!("originalValue"in h.get)?a=h.get:a=a[f]}else d=xt(a,f),a=a[f];d&&!l&&(ye[s]=a)}}return a},Zo={exports:{}},ir,Cn;function tn(){if(Cn)return ir;Cn=1;var t=ke,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ir=e,ir}var hl=ke,bt=hl("%Object.getOwnPropertyDescriptor%",!0);if(bt)try{bt([],"length")}catch{bt=null}var ei=bt,Nn=tn(),gl=Qo,Ee=tt,_n=ei,ml=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Ee("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ee("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ee("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ee("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ee("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ee("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!_n&&_n(e,r);if(Nn)Nn(e,r,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:n,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)e[r]=n;else throw new gl("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Ar=tn(),ti=function(){return!!Ar};ti.hasArrayLengthDefineBug=function(){if(!Ar)return null;try{return Ar([],"length",{value:1}).length!==1}catch{return!0}};var yl=ti,vl=ke,Tn=ml,bl=yl(),In=ei,kn=tt,wl=vl("%Math.floor%"),Sl=function(e,r){if(typeof e!="function")throw new kn("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||wl(r)!==r)throw new kn("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&In){var s=In(e,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!n)&&(bl?Tn(e,"length",r,!0,!0):Tn(e,"length",r)),e};(function(t){var e=en,r=ke,n=Sl,o=tt,i=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||e.call(s,i),l=tn(),u=r("%Math.max%");t.exports=function(f){if(typeof f!="function")throw new o("a function is required");var m=a(e,s,arguments);return n(m,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(e,i,arguments)};l?l(t.exports,"apply",{value:c}):t.exports.apply=c})(Zo);var xl=Zo.exports,ri=ke,ni=xl,Ol=ni(ri("String.prototype.indexOf")),El=function(e,r){var n=ri(e,!!r);return typeof n=="function"&&Ol(e,".prototype.")>-1?ni(n):n};const Pl={},Al=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),$l=zi(Al);var rn=typeof Map=="function"&&Map.prototype,sr=Object.getOwnPropertyDescriptor&&rn?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Et=rn&&sr&&typeof sr.get=="function"?sr.get:null,Dn=rn&&Map.prototype.forEach,nn=typeof Set=="function"&&Set.prototype,ar=Object.getOwnPropertyDescriptor&&nn?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Pt=nn&&ar&&typeof ar.get=="function"?ar.get:null,Fn=nn&&Set.prototype.forEach,Rl=typeof WeakMap=="function"&&WeakMap.prototype,Ke=Rl?WeakMap.prototype.has:null,Ll=typeof WeakSet=="function"&&WeakSet.prototype,qe=Ll?WeakSet.prototype.has:null,Cl=typeof WeakRef=="function"&&WeakRef.prototype,jn=Cl?WeakRef.prototype.deref:null,Nl=Boolean.prototype.valueOf,_l=Object.prototype.toString,Tl=Function.prototype.toString,Il=String.prototype.match,on=String.prototype.slice,de=String.prototype.replace,kl=String.prototype.toUpperCase,Mn=String.prototype.toLowerCase,oi=RegExp.prototype.test,Bn=Array.prototype.concat,te=Array.prototype.join,Dl=Array.prototype.slice,Un=Math.floor,$r=typeof BigInt=="function"?BigInt.prototype.valueOf:null,lr=Object.getOwnPropertySymbols,Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,_e=typeof Symbol=="function"&&typeof Symbol.iterator=="object",D=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_e||"symbol")?Symbol.toStringTag:null,ii=Object.prototype.propertyIsEnumerable,zn=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Vn(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||oi.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Un(-t):Un(t);if(n!==t){var o=String(n),i=on.call(e,o.length+1);return de.call(o,r,"$&_")+"."+de.call(de.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return de.call(e,r,"$&_")}var Lr=$l,Hn=Lr.custom,Kn=ai(Hn)?Hn:null,Fl=function t(e,r,n,o){var i=r||{};if(ce(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ce(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ce(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ce(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ce(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ui(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?Vn(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return a?Vn(e,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Cr(e)?"[Array]":"[Object]";var d=tu(i,n);if(typeof o>"u")o=[];else if(li(o,e)>=0)return"[Circular]";function f(K,V,H){if(V&&(o=Dl.call(o),o.push(V)),H){var Y={depth:i.depth};return ce(i,"quoteStyle")&&(Y.quoteStyle=i.quoteStyle),t(K,Y,n+1,o)}return t(K,i,n+1,o)}if(typeof e=="function"&&!qn(e)){var m=ql(e),p=at(e,f);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(p.length>0?" { "+te.call(p,", ")+" }":"")}if(ai(e)){var h=_e?de.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Rr.call(e);return typeof e=="object"&&!_e?Be(h):h}if(Xl(e)){for(var y="<"+Mn.call(String(e.nodeName)),v=e.attributes||[],b=0;b",y}if(Cr(e)){if(e.length===0)return"[]";var w=at(e,f);return d&&!eu(w)?"["+Nr(w,d)+"]":"[ "+te.call(w,", ")+" ]"}if(Bl(e)){var S=at(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!ii.call(e,"cause")?"{ ["+String(e)+"] "+te.call(Bn.call("[cause]: "+f(e.cause),S),", ")+" }":S.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+te.call(S,", ")+" }"}if(typeof e=="object"&&s){if(Kn&&typeof e[Kn]=="function"&&Lr)return Lr(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Wl(e)){var $=[];return Dn&&Dn.call(e,function(K,V){$.push(f(V,e,!0)+" => "+f(K,e))}),Wn("Map",Et.call(e),$,d)}if(Yl(e)){var P=[];return Fn&&Fn.call(e,function(K){P.push(f(K,e))}),Wn("Set",Pt.call(e),P,d)}if(Gl(e))return ur("WeakMap");if(Ql(e))return ur("WeakSet");if(Jl(e))return ur("WeakRef");if(zl(e))return Be(f(Number(e)));if(Hl(e))return Be(f($r.call(e)));if(Vl(e))return Be(Nl.call(e));if(Ul(e))return Be(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===Vi)return"{ [object globalThis] }";if(!Ml(e)&&!qn(e)){var E=at(e,f),M=zn?zn(e)===Object.prototype:e instanceof Object||e.constructor===Object,B=e instanceof Object?"":"null prototype",U=!M&&D&&Object(e)===e&&D in e?on.call(pe(e),8,-1):B?"Object":"",z=M||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",he=z+(U||B?"["+te.call(Bn.call([],U||[],B||[]),": ")+"] ":"");return E.length===0?he+"{}":d?he+"{"+Nr(E,d)+"}":he+"{ "+te.call(E,", ")+" }"}return String(e)};function si(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function jl(t){return de.call(String(t),/"/g,""")}function Cr(t){return pe(t)==="[object Array]"&&(!D||!(typeof t=="object"&&D in t))}function Ml(t){return pe(t)==="[object Date]"&&(!D||!(typeof t=="object"&&D in t))}function qn(t){return pe(t)==="[object RegExp]"&&(!D||!(typeof t=="object"&&D in t))}function Bl(t){return pe(t)==="[object Error]"&&(!D||!(typeof t=="object"&&D in t))}function Ul(t){return pe(t)==="[object String]"&&(!D||!(typeof t=="object"&&D in t))}function zl(t){return pe(t)==="[object Number]"&&(!D||!(typeof t=="object"&&D in t))}function Vl(t){return pe(t)==="[object Boolean]"&&(!D||!(typeof t=="object"&&D in t))}function ai(t){if(_e)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Rr)return!1;try{return Rr.call(t),!0}catch{}return!1}function Hl(t){if(!t||typeof t!="object"||!$r)return!1;try{return $r.call(t),!0}catch{}return!1}var Kl=Object.prototype.hasOwnProperty||function(t){return t in this};function ce(t,e){return Kl.call(t,e)}function pe(t){return _l.call(t)}function ql(t){if(t.name)return t.name;var e=Il.call(Tl.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function li(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ui(on.call(t,0,e.maxStringLength),e)+n}var o=de.call(de.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Zl);return si(o,"single",e)}function Zl(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+kl.call(e.toString(16))}function Be(t){return"Object("+t+")"}function ur(t){return t+" { ? }"}function Wn(t,e,r,n){var o=n?Nr(r,n):te.call(r,", ");return t+" ("+e+") {"+o+"}"}function eu(t){for(var e=0;e=0)return!1;return!0}function tu(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=te.call(Array(t.indent+1)," ");else return null;return{base:r,prev:te.call(Array(e+1),r)}}function Nr(t,e){if(t.length===0)return"";var r=` + */var Xi=O,Zi=Symbol.for("react.element"),es=Symbol.for("react.fragment"),ts=Object.prototype.hasOwnProperty,rs=Xi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ns={key:!0,ref:!0,__self:!0,__source:!0};function wo(t,e,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(s=e.ref);for(n in e)ts.call(e,n)&&!ns.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)o[n]===void 0&&(o[n]=e[n]);return{$$typeof:Zi,type:t,key:i,ref:s,props:o,_owner:rs.current}}_t.Fragment=es;_t.jsx=wo;_t.jsxs=wo;bo.exports=_t;var x=bo.exports,Sr={},dn=zi;Sr.createRoot=dn.createRoot,Sr.hydrateRoot=dn.hydrateRoot;const os="modulepreload",is=function(t,e){return new URL(t,e).href},pn={},gt=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=is(i,n),i in pn)return;pn[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!n)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===i&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":os,s||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),s)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})};var Gr={exports:{}},Le=typeof Reflect=="object"?Reflect:null,hn=Le&&typeof Le.apply=="function"?Le.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},mt;Le&&typeof Le.ownKeys=="function"?mt=Le.ownKeys:Object.getOwnPropertySymbols?mt=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:mt=function(e){return Object.getOwnPropertyNames(e)};function ss(t){console&&console.warn&&console.warn(t)}var So=Number.isNaN||function(e){return e!==e};function R(){R.init.call(this)}Gr.exports=R;Gr.exports.once=cs;R.EventEmitter=R;R.prototype._events=void 0;R.prototype._eventsCount=0;R.prototype._maxListeners=void 0;var gn=10;function It(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(R,"defaultMaxListeners",{enumerable:!0,get:function(){return gn},set:function(t){if(typeof t!="number"||t<0||So(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");gn=t}});R.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};R.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||So(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function xo(t){return t._maxListeners===void 0?R.defaultMaxListeners:t._maxListeners}R.prototype.getMaxListeners=function(){return xo(this)};R.prototype.emit=function(e){for(var r=[],n=1;n0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=i[e];if(l===void 0)return!1;if(typeof l=="function")hn(l,this,r);else for(var u=l.length,c=Ao(l,u),n=0;n0&&s.length>o&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=s.length,ss(a)}return t}R.prototype.addListener=function(e,r){return Oo(this,e,r,!1)};R.prototype.on=R.prototype.addListener;R.prototype.prependListener=function(e,r){return Oo(this,e,r,!0)};function as(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Eo(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=as.bind(n);return o.listener=r,n.wrapFn=o,o}R.prototype.once=function(e,r){return It(r),this.on(e,Eo(this,e,r)),this};R.prototype.prependOnceListener=function(e,r){return It(r),this.prependListener(e,Eo(this,e,r)),this};R.prototype.removeListener=function(e,r){var n,o,i,s,a;if(It(r),o=this._events,o===void 0)return this;if(n=o[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,i=s;break}if(i<0)return this;i===0?n.shift():ls(n,i),n.length===1&&(o[e]=n[0]),o.removeListener!==void 0&&this.emit("removeListener",e,a||r)}return this};R.prototype.off=R.prototype.removeListener;R.prototype.removeAllListeners=function(e){var r,n,o;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),s;for(o=0;o=0;o--)this.removeListener(e,r[o]);return this};function Po(t,e,r){var n=t._events;if(n===void 0)return[];var o=n[e];return o===void 0?[]:typeof o=="function"?r?[o.listener||o]:[o]:r?us(o):Ao(o,o.length)}R.prototype.listeners=function(e){return Po(this,e,!0)};R.prototype.rawListeners=function(e){return Po(this,e,!1)};R.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):$o.call(t,e)};R.prototype.listenerCount=$o;function $o(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}R.prototype.eventNames=function(){return this._eventsCount>0?mt(this._events):[]};function Ao(t,e){for(var r=new Array(e),n=0;ni,e=s=>{i=s}}const n=new Ro.EventEmitter;n.on("setValue",function(i){e(i),n.emit("upValue",i)}),r&&e(r);const o=i=>{const[s,a]=O.useState(t?t():void 0);return O.useEffect(()=>(i&&n.emit("setValue",i),n.on("upValue",a),()=>{n.off("upValue",a)}),[]),s};return o.set=i=>{n.emit("setValue",i)},o.get=()=>t==null?void 0:t(),o}function Co(t,e){return function(){return t.apply(e,arguments)}}const{toString:ds}=Object.prototype,{getPrototypeOf:Jr}=Object,kt=(t=>e=>{const r=ds.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),oe=t=>(t=t.toLowerCase(),e=>kt(e)===t),Dt=t=>e=>typeof e===t,{isArray:Te}=Array,Je=Dt("undefined");function ps(t){return t!==null&&!Je(t)&&t.constructor!==null&&!Je(t.constructor)&&J(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const No=oe("ArrayBuffer");function hs(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&No(t.buffer),e}const gs=Dt("string"),J=Dt("function"),_o=Dt("number"),Ft=t=>t!==null&&typeof t=="object",ms=t=>t===!0||t===!1,yt=t=>{if(kt(t)!=="object")return!1;const e=Jr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},ys=oe("Date"),vs=oe("File"),bs=oe("Blob"),ws=oe("FileList"),Ss=t=>Ft(t)&&J(t.pipe),xs=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||J(t.append)&&((e=kt(t))==="formdata"||e==="object"&&J(t.toString)&&t.toString()==="[object FormData]"))},Os=oe("URLSearchParams"),Es=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ze(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),Te(t))for(n=0,o=t.length;n0;)if(o=r[n],e===o.toLowerCase())return o;return null}const To=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ko=t=>!Je(t)&&t!==To;function xr(){const{caseless:t}=ko(this)&&this||{},e={},r=(n,o)=>{const i=t&&Io(e,o)||o;yt(e[i])&&yt(n)?e[i]=xr(e[i],n):yt(n)?e[i]=xr({},n):Te(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n(Ze(e,(o,i)=>{r&&J(o)?t[i]=Co(o,r):t[i]=o},{allOwnKeys:n}),t),$s=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),As=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Ls=(t,e,r,n)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&Jr(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Rs=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},Cs=t=>{if(!t)return null;if(Te(t))return t;let e=t.length;if(!_o(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Ns=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Jr(Uint8Array)),_s=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},Is=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Ts=oe("HTMLFormElement"),ks=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),mn=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Ds=oe("RegExp"),Do=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Ze(r,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(n[i]=s||o)}),Object.defineProperties(t,n)},Fs=t=>{Do(t,(e,r)=>{if(J(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(J(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},js=(t,e)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Te(t)?n(t):n(String(t).split(e)),r},Ms=()=>{},Bs=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Zt="abcdefghijklmnopqrstuvwxyz",yn="0123456789",Fo={DIGIT:yn,ALPHA:Zt,ALPHA_DIGIT:Zt+Zt.toUpperCase()+yn},Us=(t=16,e=Fo.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function zs(t){return!!(t&&J(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Vs=t=>{const e=new Array(10),r=(n,o)=>{if(Ft(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const i=Te(n)?[]:{};return Ze(n,(s,a)=>{const l=r(s,o+1);!Je(l)&&(i[a]=l)}),e[o]=void 0,i}}return n};return r(t,0)},Ks=oe("AsyncFunction"),Hs=t=>t&&(Ft(t)||J(t))&&J(t.then)&&J(t.catch),g={isArray:Te,isArrayBuffer:No,isBuffer:ps,isFormData:xs,isArrayBufferView:hs,isString:gs,isNumber:_o,isBoolean:ms,isObject:Ft,isPlainObject:yt,isUndefined:Je,isDate:ys,isFile:vs,isBlob:bs,isRegExp:Ds,isFunction:J,isStream:Ss,isURLSearchParams:Os,isTypedArray:Ns,isFileList:ws,forEach:Ze,merge:xr,extend:Ps,trim:Es,stripBOM:$s,inherits:As,toFlatObject:Ls,kindOf:kt,kindOfTest:oe,endsWith:Rs,toArray:Cs,forEachEntry:_s,matchAll:Is,isHTMLForm:Ts,hasOwnProperty:mn,hasOwnProp:mn,reduceDescriptors:Do,freezeMethods:Fs,toObjectSet:js,toCamelCase:ks,noop:Ms,toFiniteNumber:Bs,findKey:Io,global:To,isContextDefined:ko,ALPHABET:Fo,generateString:Us,isSpecCompliantForm:zs,toJSONObject:Vs,isAsyncFn:Ks,isThenable:Hs};function L(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}g.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const jo=L.prototype,Mo={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Mo[t]={value:t}});Object.defineProperties(L,Mo);Object.defineProperty(jo,"isAxiosError",{value:!0});L.from=(t,e,r,n,o,i)=>{const s=Object.create(jo);return g.toFlatObject(t,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),L.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const qs=null;function Or(t){return g.isPlainObject(t)||g.isArray(t)}function Bo(t){return g.endsWith(t,"[]")?t.slice(0,-2):t}function vn(t,e,r){return t?t.concat(e).map(function(o,i){return o=Bo(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function Ws(t){return g.isArray(t)&&!t.some(Or)}const Gs=g.toFlatObject(g,{},null,function(e){return/^is[A-Z]/.test(e)});function jt(t,e,r){if(!g.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=g.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!g.isUndefined(y[h])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(e);if(!g.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(g.isDate(p))return p.toISOString();if(!l&&g.isBlob(p))throw new L("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(p)||g.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,h,y){let v=p;if(p&&!y&&typeof p=="object"){if(g.endsWith(h,"{}"))h=n?h:h.slice(0,-2),p=JSON.stringify(p);else if(g.isArray(p)&&Ws(p)||(g.isFileList(p)||g.endsWith(h,"[]"))&&(v=g.toArray(p)))return h=Bo(h),v.forEach(function(w,S){!(g.isUndefined(w)||w===null)&&e.append(s===!0?vn([h],S,i):s===null?h:h+"[]",u(w))}),!1}return Or(p)?!0:(e.append(vn(y,h,i),u(p)),!1)}const d=[],f=Object.assign(Gs,{defaultVisitor:c,convertValue:u,isVisitable:Or});function m(p,h){if(!g.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(p),g.forEach(p,function(v,b){(!(g.isUndefined(v)||v===null)&&o.call(e,v,g.isString(b)?b.trim():b,h,f))===!0&&m(v,h?h.concat(b):[b])}),d.pop()}}if(!g.isObject(t))throw new TypeError("data must be an object");return m(t),e}function bn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Yr(t,e){this._pairs=[],t&&jt(t,this,e)}const Uo=Yr.prototype;Uo.append=function(e,r){this._pairs.push([e,r])};Uo.toString=function(e){const r=e?function(n){return e.call(this,n,bn)}:bn;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Js(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zo(t,e,r){if(!e)return t;const n=r&&r.encode||Js,o=r&&r.serialize;let i;if(o?i=o(e,r):i=g.isURLSearchParams(e)?e.toString():new Yr(e,r).toString(n),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ys{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){g.forEach(this.handlers,function(n){n!==null&&e(n)})}}const wn=Ys,Vo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qs=typeof URLSearchParams<"u"?URLSearchParams:Yr,Xs=typeof FormData<"u"?FormData:null,Zs=typeof Blob<"u"?Blob:null,ea={isBrowser:!0,classes:{URLSearchParams:Qs,FormData:Xs,Blob:Zs},protocols:["http","https","file","blob","url","data"]},Ko=typeof window<"u"&&typeof document<"u",ta=(t=>Ko&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),ra=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),na=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ko,hasStandardBrowserEnv:ta,hasStandardBrowserWebWorkerEnv:ra},Symbol.toStringTag,{value:"Module"})),re={...na,...ea};function oa(t,e){return jt(t,new re.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return re.isNode&&g.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function ia(t){return g.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function sa(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n=r.length;return s=!s&&g.isArray(o)?o.length:s,l?(g.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!g.isObject(o[s]))&&(o[s]=[]),e(r,n,o[s],i)&&g.isArray(o[s])&&(o[s]=sa(o[s])),!a)}if(g.isFormData(t)&&g.isFunction(t.entries)){const r={};return g.forEachEntry(t,(n,o)=>{e(ia(n),o,r,0)}),r}return null}function aa(t,e,r){if(g.isString(t))try{return(e||JSON.parse)(t),g.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Qr={transitional:Vo,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=g.isObject(e);if(i&&g.isHTMLForm(e)&&(e=new FormData(e)),g.isFormData(e))return o?JSON.stringify(Ho(e)):e;if(g.isArrayBuffer(e)||g.isBuffer(e)||g.isStream(e)||g.isFile(e)||g.isBlob(e))return e;if(g.isArrayBufferView(e))return e.buffer;if(g.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return oa(e,this.formSerializer).toString();if((a=g.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return jt(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),aa(e)):e}],transformResponse:[function(e){const r=this.transitional||Qr.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(e&&g.isString(e)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?L.from(a,L.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:re.classes.FormData,Blob:re.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],t=>{Qr.headers[t]={}});const Xr=Qr,la=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ua=t=>{const e={};let r,n,o;return t&&t.split(` +`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||e[r]&&la[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Sn=Symbol("internals");function Me(t){return t&&String(t).trim().toLowerCase()}function vt(t){return t===!1||t==null?t:g.isArray(t)?t.map(vt):String(t)}function ca(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const fa=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function er(t,e,r,n,o){if(g.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!g.isString(e)){if(g.isString(n))return e.indexOf(n)!==-1;if(g.isRegExp(n))return n.test(e)}}function da(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function pa(t,e){const r=g.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,s){return this[n].call(this,e,o,i,s)},configurable:!0})})}class Mt{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function i(a,l,u){const c=Me(l);if(!c)throw new Error("header name must be a non-empty string");const d=g.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=vt(a))}const s=(a,l)=>g.forEach(a,(u,c)=>i(u,c,l));return g.isPlainObject(e)||e instanceof this.constructor?s(e,r):g.isString(e)&&(e=e.trim())&&!fa(e)?s(ua(e),r):e!=null&&i(r,e,n),this}get(e,r){if(e=Me(e),e){const n=g.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return ca(o);if(g.isFunction(r))return r.call(this,o,n);if(g.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Me(e),e){const n=g.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||er(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function i(s){if(s=Me(s),s){const a=g.findKey(n,s);a&&(!r||er(n,n[a],a,r))&&(delete n[a],o=!0)}}return g.isArray(e)?e.forEach(i):i(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!e||er(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const r=this,n={};return g.forEach(this,(o,i)=>{const s=g.findKey(n,i);if(s){r[s]=vt(o),delete r[i];return}const a=e?da(i):String(i).trim();a!==i&&delete r[i],r[a]=vt(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return g.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&g.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[Sn]=this[Sn]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Me(s);n[a]||(pa(o,s),n[a]=!0)}return g.isArray(e)?e.forEach(i):i(e),this}}Mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);g.reduceDescriptors(Mt.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});g.freezeMethods(Mt);const ae=Mt;function tr(t,e){const r=this||Xr,n=e||r,o=ae.from(n.headers);let i=n.data;return g.forEach(t,function(a){i=a.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function qo(t){return!!(t&&t.__CANCEL__)}function et(t,e,r){L.call(this,t??"canceled",L.ERR_CANCELED,e,r),this.name="CanceledError"}g.inherits(et,L,{__CANCEL__:!0});function ha(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new L("Request failed with status code "+r.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const ga=re.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const s=[t+"="+encodeURIComponent(e)];g.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),g.isString(n)&&s.push("path="+n),g.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ma(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ya(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Wo(t,e){return t&&!ma(e)?ya(t,e):e}const va=re.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=g.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function ba(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function wa(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=n[i];s||(s=u),r[o]=l,n[o]=u;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,l=n(a),u=i<=s;r=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};c[e?"download":"upload"]=!0,t(c)}}const Sa=typeof XMLHttpRequest<"u",xa=Sa&&function(t){return new Promise(function(r,n){let o=t.data;const i=ae.from(t.headers).normalize();let{responseType:s,withXSRFToken:a}=t,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let c;if(g.isFormData(o)){if(re.hasStandardBrowserEnv||re.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[h,...y]=c?c.split(";").map(v=>v.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...y].join("; "))}}let d=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+y))}const f=Wo(t.baseURL,t.url);d.open(t.method.toUpperCase(),zo(f,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function m(){if(!d)return;const h=ae.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:t,request:d};ha(function(w){r(w),u()},function(w){n(w),u()},v),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(n(new L("Request aborted",L.ECONNABORTED,t,d)),d=null)},d.onerror=function(){n(new L("Network Error",L.ERR_NETWORK,t,d)),d=null},d.ontimeout=function(){let y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const v=t.transitional||Vo;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),n(new L(y,v.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,t,d)),d=null},re.hasStandardBrowserEnv&&(a&&g.isFunction(a)&&(a=a(t)),a||a!==!1&&va(f))){const h=t.xsrfHeaderName&&t.xsrfCookieName&&ga.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in d&&g.forEach(i.toJSON(),function(y,v){d.setRequestHeader(v,y)}),g.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),s&&s!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",xn(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",xn(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=h=>{d&&(n(!h||h.type?new et(null,t,d):h),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const p=ba(f);if(p&&re.protocols.indexOf(p)===-1){n(new L("Unsupported protocol "+p+":",L.ERR_BAD_REQUEST,t));return}d.send(o||null)})},Er={http:qs,xhr:xa};g.forEach(Er,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const On=t=>`- ${t}`,Oa=t=>g.isFunction(t)||t===null||t===!1,Go={getAdapter:t=>{t=g.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since : +`+i.map(On).join(` +`):" "+On(i[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Er};function rr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new et(null,t)}function En(t){return rr(t),t.headers=ae.from(t.headers),t.data=tr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Go.getAdapter(t.adapter||Xr.adapter)(t).then(function(n){return rr(t),n.data=tr.call(t,t.transformResponse,n),n.headers=ae.from(n.headers),n},function(n){return qo(n)||(rr(t),n&&n.response&&(n.response.data=tr.call(t,t.transformResponse,n.response),n.response.headers=ae.from(n.response.headers))),Promise.reject(n)})}const Pn=t=>t instanceof ae?{...t}:t;function Ce(t,e){e=e||{};const r={};function n(u,c,d){return g.isPlainObject(u)&&g.isPlainObject(c)?g.merge.call({caseless:d},u,c):g.isPlainObject(c)?g.merge({},c):g.isArray(c)?c.slice():c}function o(u,c,d){if(g.isUndefined(c)){if(!g.isUndefined(u))return n(void 0,u,d)}else return n(u,c,d)}function i(u,c){if(!g.isUndefined(c))return n(void 0,c)}function s(u,c){if(g.isUndefined(c)){if(!g.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function a(u,c,d){if(d in e)return n(u,c);if(d in t)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>o(Pn(u),Pn(c),!0)};return g.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=l[c]||o,f=d(t[c],e[c],c);g.isUndefined(f)&&d!==a||(r[c]=f)}),r}const Jo="1.6.8",Zr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Zr[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const $n={};Zr.transitional=function(e,r,n){function o(i,s){return"[Axios v"+Jo+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(e===!1)throw new L(o(s," has been removed"+(r?" in "+r:"")),L.ERR_DEPRECATED);return r&&!$n[s]&&($n[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,s,a):!0}};function Ea(t,e,r){if(typeof t!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],s=e[i];if(s){const a=t[i],l=a===void 0||s(a,i,t);if(l!==!0)throw new L("option "+i+" must be "+l,L.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new L("Unknown option "+i,L.ERR_BAD_OPTION)}}const Pr={assertOptions:Ea,validators:Zr},ue=Pr.validators;class xt{constructor(e){this.defaults=e,this.interceptors={request:new wn,response:new wn}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+i):n.stack=i}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Ce(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Pr.assertOptions(n,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean)},!1),o!=null&&(g.isFunction(o)?r.paramsSerializer={serialize:o}:Pr.assertOptions(o,{encode:ue.function,serialize:ue.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&g.merge(i.common,i[r.method]);i&&g.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=ae.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,d=0,f;if(!l){const p=[En.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),f=p.length,c=Promise.resolve(r);d{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,a){n.reason||(n.reason=new et(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new en(function(o){e=o}),cancel:e}}}const Pa=en;function $a(t){return function(r){return t.apply(null,r)}}function Aa(t){return g.isObject(t)&&t.isAxiosError===!0}const $r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($r).forEach(([t,e])=>{$r[e]=t});const La=$r;function Yo(t){const e=new bt(t),r=Co(bt.prototype.request,e);return g.extend(r,bt.prototype,e,{allOwnKeys:!0}),g.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return Yo(Ce(t,o))},r}const N=Yo(Xr);N.Axios=bt;N.CanceledError=et;N.CancelToken=Pa;N.isCancel=qo;N.VERSION=Jo;N.toFormData=jt;N.AxiosError=L;N.Cancel=N.CanceledError;N.all=function(e){return Promise.all(e)};N.spread=$a;N.isAxiosError=Aa;N.mergeConfig=Ce;N.AxiosHeaders=ae;N.formToJSON=t=>Ho(g.isHTMLForm(t)?new FormData(t):t);N.getAdapter=Go.getAdapter;N.HttpStatusCode=La;N.default=N;const Qo=N;var Ra=Error,Ca=EvalError,Na=RangeError,_a=ReferenceError,Xo=SyntaxError,tt=TypeError,Ia=URIError,Ta=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0},An=typeof Symbol<"u"&&Symbol,ka=Ta,Da=function(){return typeof An!="function"||typeof Symbol!="function"||typeof An("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ka()},nr={__proto__:null,foo:{}},Fa=Object,ja=function(){return{__proto__:nr}.foo===nr.foo&&!(nr instanceof Fa)},Ma="Function.prototype.bind called on incompatible ",Ba=Object.prototype.toString,Ua=Math.max,za="[object Function]",Ln=function(e,r){for(var n=[],o=0;o"u"||!I?$:I(Uint8Array),ye={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?$:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$:ArrayBuffer,"%ArrayIteratorPrototype%":Oe&&I?I([][Symbol.iterator]()):$,"%AsyncFromSyncIteratorPrototype%":$,"%AsyncFunction%":Ae,"%AsyncGenerator%":Ae,"%AsyncGeneratorFunction%":Ae,"%AsyncIteratorPrototype%":Ae,"%Atomics%":typeof Atomics>"u"?$:Atomics,"%BigInt%":typeof BigInt>"u"?$:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Qa,"%eval%":eval,"%EvalError%":Xa,"%Float32Array%":typeof Float32Array>"u"?$:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$:FinalizationRegistry,"%Function%":Zo,"%GeneratorFunction%":Ae,"%Int8Array%":typeof Int8Array>"u"?$:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Oe&&I?I(I([][Symbol.iterator]())):$,"%JSON%":typeof JSON=="object"?JSON:$,"%Map%":typeof Map>"u"?$:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Oe||!I?$:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$:Promise,"%Proxy%":typeof Proxy>"u"?$:Proxy,"%RangeError%":Za,"%ReferenceError%":el,"%Reflect%":typeof Reflect>"u"?$:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Oe||!I?$:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Oe&&I?I(""[Symbol.iterator]()):$,"%Symbol%":Oe?Symbol:$,"%SyntaxError%":Ne,"%ThrowTypeError%":rl,"%TypedArray%":ol,"%TypeError%":Re,"%Uint8Array%":typeof Uint8Array>"u"?$:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$:Uint32Array,"%URIError%":tl,"%WeakMap%":typeof WeakMap>"u"?$:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$:WeakSet};if(I)try{null.error}catch(t){var il=I(I(t));ye["%Error.prototype%"]=il}var sl=function t(e){var r;if(e==="%AsyncFunction%")r=or("async function () {}");else if(e==="%GeneratorFunction%")r=or("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=or("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&I&&(r=I(o.prototype))}return ye[e]=r,r},Rn={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},rt=tn,Ot=Ya,al=rt.call(Function.call,Array.prototype.concat),ll=rt.call(Function.apply,Array.prototype.splice),Cn=rt.call(Function.call,String.prototype.replace),Et=rt.call(Function.call,String.prototype.slice),ul=rt.call(Function.call,RegExp.prototype.exec),cl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fl=/\\(\\)?/g,dl=function(e){var r=Et(e,0,1),n=Et(e,-1);if(r==="%"&&n!=="%")throw new Ne("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ne("invalid intrinsic syntax, expected opening `%`");var o=[];return Cn(e,cl,function(i,s,a,l){o[o.length]=a?Cn(l,fl,"$1"):s||i}),o},pl=function(e,r){var n=e,o;if(Ot(Rn,n)&&(o=Rn[n],n="%"+o[0]+"%"),Ot(ye,n)){var i=ye[n];if(i===Ae&&(i=sl(n)),typeof i>"u"&&!r)throw new Re("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Ne("intrinsic "+e+" does not exist!")},ke=function(e,r){if(typeof e!="string"||e.length===0)throw new Re("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Re('"allowMissing" argument must be a boolean');if(ul(/^%?[^%]*%?$/,e)===null)throw new Ne("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=dl(e),o=n.length>0?n[0]:"",i=pl("%"+o+"%",r),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],ll(n,al([0,1],u)));for(var c=1,d=!0;c=n.length){var h=me(a,f);d=!!h,d&&"get"in h&&!("originalValue"in h.get)?a=h.get:a=a[f]}else d=Ot(a,f),a=a[f];d&&!l&&(ye[s]=a)}}return a},ei={exports:{}},sr,Nn;function rn(){if(Nn)return sr;Nn=1;var t=ke,e=t("%Object.defineProperty%",!0)||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return sr=e,sr}var hl=ke,wt=hl("%Object.getOwnPropertyDescriptor%",!0);if(wt)try{wt([],"length")}catch{wt=null}var ti=wt,_n=rn(),gl=Xo,Ee=tt,In=ti,ml=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new Ee("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Ee("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ee("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ee("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ee("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ee("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!In&&In(e,r);if(_n)_n(e,r,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:n,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)e[r]=n;else throw new gl("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Ar=rn(),ri=function(){return!!Ar};ri.hasArrayLengthDefineBug=function(){if(!Ar)return null;try{return Ar([],"length",{value:1}).length!==1}catch{return!0}};var yl=ri,vl=ke,Tn=ml,bl=yl(),kn=ti,Dn=tt,wl=vl("%Math.floor%"),Sl=function(e,r){if(typeof e!="function")throw new Dn("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||wl(r)!==r)throw new Dn("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&kn){var s=kn(e,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!n)&&(bl?Tn(e,"length",r,!0,!0):Tn(e,"length",r)),e};(function(t){var e=tn,r=ke,n=Sl,o=tt,i=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||e.call(s,i),l=rn(),u=r("%Math.max%");t.exports=function(f){if(typeof f!="function")throw new o("a function is required");var m=a(e,s,arguments);return n(m,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(e,i,arguments)};l?l(t.exports,"apply",{value:c}):t.exports.apply=c})(ei);var xl=ei.exports,ni=ke,oi=xl,Ol=oi(ni("String.prototype.indexOf")),El=function(e,r){var n=ni(e,!!r);return typeof n=="function"&&Ol(e,".prototype.")>-1?oi(n):n};const Pl={},$l=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),Al=Vi($l);var nn=typeof Map=="function"&&Map.prototype,ar=Object.getOwnPropertyDescriptor&&nn?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Pt=nn&&ar&&typeof ar.get=="function"?ar.get:null,Fn=nn&&Map.prototype.forEach,on=typeof Set=="function"&&Set.prototype,lr=Object.getOwnPropertyDescriptor&&on?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$t=on&&lr&&typeof lr.get=="function"?lr.get:null,jn=on&&Set.prototype.forEach,Ll=typeof WeakMap=="function"&&WeakMap.prototype,He=Ll?WeakMap.prototype.has:null,Rl=typeof WeakSet=="function"&&WeakSet.prototype,qe=Rl?WeakSet.prototype.has:null,Cl=typeof WeakRef=="function"&&WeakRef.prototype,Mn=Cl?WeakRef.prototype.deref:null,Nl=Boolean.prototype.valueOf,_l=Object.prototype.toString,Il=Function.prototype.toString,Tl=String.prototype.match,sn=String.prototype.slice,de=String.prototype.replace,kl=String.prototype.toUpperCase,Bn=String.prototype.toLowerCase,ii=RegExp.prototype.test,Un=Array.prototype.concat,te=Array.prototype.join,Dl=Array.prototype.slice,zn=Math.floor,Lr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ur=Object.getOwnPropertySymbols,Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,_e=typeof Symbol=="function"&&typeof Symbol.iterator=="object",D=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_e||"symbol")?Symbol.toStringTag:null,si=Object.prototype.propertyIsEnumerable,Vn=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Kn(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||ii.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-zn(-t):zn(t);if(n!==t){var o=String(n),i=sn.call(e,o.length+1);return de.call(o,r,"$&_")+"."+de.call(de.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return de.call(e,r,"$&_")}var Cr=Al,Hn=Cr.custom,qn=li(Hn)?Hn:null,Fl=function t(e,r,n,o){var i=r||{};if(ce(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ce(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ce(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ce(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ce(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ci(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?Kn(e,l):l}if(typeof e=="bigint"){var u=String(e)+"n";return a?Kn(e,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Nr(e)?"[Array]":"[Object]";var d=tu(i,n);if(typeof o>"u")o=[];else if(ui(o,e)>=0)return"[Circular]";function f(H,V,K){if(V&&(o=Dl.call(o),o.push(V)),K){var Y={depth:i.depth};return ce(i,"quoteStyle")&&(Y.quoteStyle=i.quoteStyle),t(H,Y,n+1,o)}return t(H,i,n+1,o)}if(typeof e=="function"&&!Wn(e)){var m=ql(e),p=at(e,f);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(p.length>0?" { "+te.call(p,", ")+" }":"")}if(li(e)){var h=_e?de.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Rr.call(e);return typeof e=="object"&&!_e?Be(h):h}if(Xl(e)){for(var y="<"+Bn.call(String(e.nodeName)),v=e.attributes||[],b=0;b",y}if(Nr(e)){if(e.length===0)return"[]";var w=at(e,f);return d&&!eu(w)?"["+_r(w,d)+"]":"[ "+te.call(w,", ")+" ]"}if(Bl(e)){var S=at(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!si.call(e,"cause")?"{ ["+String(e)+"] "+te.call(Un.call("[cause]: "+f(e.cause),S),", ")+" }":S.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+te.call(S,", ")+" }"}if(typeof e=="object"&&s){if(qn&&typeof e[qn]=="function"&&Cr)return Cr(e,{depth:c-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Wl(e)){var A=[];return Fn&&Fn.call(e,function(H,V){A.push(f(V,e,!0)+" => "+f(H,e))}),Gn("Map",Pt.call(e),A,d)}if(Yl(e)){var P=[];return jn&&jn.call(e,function(H){P.push(f(H,e))}),Gn("Set",$t.call(e),P,d)}if(Gl(e))return cr("WeakMap");if(Ql(e))return cr("WeakSet");if(Jl(e))return cr("WeakRef");if(zl(e))return Be(f(Number(e)));if(Kl(e))return Be(f(Lr.call(e)));if(Vl(e))return Be(Nl.call(e));if(Ul(e))return Be(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===Ki)return"{ [object globalThis] }";if(!Ml(e)&&!Wn(e)){var E=at(e,f),M=Vn?Vn(e)===Object.prototype:e instanceof Object||e.constructor===Object,B=e instanceof Object?"":"null prototype",U=!M&&D&&Object(e)===e&&D in e?sn.call(pe(e),8,-1):B?"Object":"",z=M||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",he=z+(U||B?"["+te.call(Un.call([],U||[],B||[]),": ")+"] ":"");return E.length===0?he+"{}":d?he+"{"+_r(E,d)+"}":he+"{ "+te.call(E,", ")+" }"}return String(e)};function ai(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function jl(t){return de.call(String(t),/"/g,""")}function Nr(t){return pe(t)==="[object Array]"&&(!D||!(typeof t=="object"&&D in t))}function Ml(t){return pe(t)==="[object Date]"&&(!D||!(typeof t=="object"&&D in t))}function Wn(t){return pe(t)==="[object RegExp]"&&(!D||!(typeof t=="object"&&D in t))}function Bl(t){return pe(t)==="[object Error]"&&(!D||!(typeof t=="object"&&D in t))}function Ul(t){return pe(t)==="[object String]"&&(!D||!(typeof t=="object"&&D in t))}function zl(t){return pe(t)==="[object Number]"&&(!D||!(typeof t=="object"&&D in t))}function Vl(t){return pe(t)==="[object Boolean]"&&(!D||!(typeof t=="object"&&D in t))}function li(t){if(_e)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Rr)return!1;try{return Rr.call(t),!0}catch{}return!1}function Kl(t){if(!t||typeof t!="object"||!Lr)return!1;try{return Lr.call(t),!0}catch{}return!1}var Hl=Object.prototype.hasOwnProperty||function(t){return t in this};function ce(t,e){return Hl.call(t,e)}function pe(t){return _l.call(t)}function ql(t){if(t.name)return t.name;var e=Tl.call(Il.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function ui(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ci(sn.call(t,0,e.maxStringLength),e)+n}var o=de.call(de.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Zl);return ai(o,"single",e)}function Zl(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+kl.call(e.toString(16))}function Be(t){return"Object("+t+")"}function cr(t){return t+" { ? }"}function Gn(t,e,r,n){var o=n?_r(r,n):te.call(r,", ");return t+" ("+e+") {"+o+"}"}function eu(t){for(var e=0;e=0)return!1;return!0}function tu(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=te.call(Array(t.indent+1)," ");else return null;return{base:r,prev:te.call(Array(e+1),r)}}function _r(t,e){if(t.length===0)return"";var r=` `+e.prev+e.base;return r+te.call(t,","+r)+` -`+e.prev}function at(t,e){var r=Cr(t),n=[];if(r){n.length=t.length;for(var o=0;o1;){var r=e.pop(),n=r.obj[r.prop];if(ge(n)){for(var o=[],i=0;i=dr?s.slice(l,l+dr):s,c=[],d=0;d=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===mu.RFC1738&&(f===40||f===41)){c[c.length]=u.charAt(d);continue}if(f<128){c[c.length]=Z[f];continue}if(f<2048){c[c.length]=Z[192|f>>6]+Z[128|f&63];continue}if(f<55296||f>=57344){c[c.length]=Z[224|f>>12]+Z[128|f>>6&63]+Z[128|f&63];continue}d+=1,f=65536+((f&1023)<<10|u.charCodeAt(d)&1023),c[c.length]=Z[240|f>>18]+Z[128|f>>12&63]+Z[128|f>>6&63]+Z[128|f&63]}a+=c.join("")}return a},xu=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o"u"&&($=0)}if(typeof c=="function"?w=c(r,w):w instanceof Date?w=m(w):n==="comma"&&ee(w)&&(w=wt.maybeMap(w,function(ie){return ie instanceof Date?m(ie):ie})),w===null){if(s)return u&&!y?u(r,_.encoder,v,"key",p):r;w=""}if(Cu(w)||wt.isBuffer(w)){if(u){var M=y?r:u(r,_.encoder,v,"key",p);return[h(M)+"="+h(u(w,_.encoder,v,"value",p))]}return[h(r)+"="+h(String(w))]}var B=[];if(typeof w>"u")return B;var U;if(n==="comma"&&ee(w))y&&u&&(w=wt.maybeMap(w,u)),U=[{value:w.length>0?w.join(",")||null:void 0}];else if(ee(c))U=c;else{var z=Object.keys(w);U=d?z.sort(d):z}var he=l?r.replace(/\./g,"%2E"):r,K=o&&ee(w)&&w.length===1?he+"[]":he;if(i&&ee(w)&&w.length===0)return K+"[]";for(var V=0;V"u"?e.encodeDotInKeys===!0?!0:_.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:_.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:_.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?_.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:_.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:_.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:_.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:_.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:_.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:_.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:_.strictNullHandling}},Tu=function(t,e){var r=t,n=_u(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):ee(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a=hi[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=pi(),c=0;c0?m+f:""},Te=di,_r=Object.prototype.hasOwnProperty,Iu=Array.isArray,C={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Te.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ku=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},mi=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Du="utf8=%26%2310003%3B",Fu="utf8=%E2%9C%93",ju=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l-1&&(p=Iu(p)?[p]:p);var h=_r.call(n,m);h&&r.duplicates==="combine"?n[m]=Te.combine(n[m],p):(!h||r.duplicates==="last")&&(n[m]=p)}return n},Mu=function(t,e,r,n){for(var o=n?e:mi(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&o===""?[]:[].concat(o);else{s=r.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:o}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},Bu=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(i),u=l?i.slice(0,l.index):i,c=[];if(u){if(!n.plainObjects&&_r.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&(l=a.exec(i))!==null&&d"u"?C.charset:e.charset,n=typeof e.duplicates>"u"?C.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:C.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:C.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:C.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:C.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:C.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:C.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:C.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:C.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:C.decoder,delimiter:typeof e.delimiter=="string"||Te.isRegExp(e.delimiter)?e.delimiter:C.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:C.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:C.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:C.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:C.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:C.strictNullHandling}},zu=function(t,e){var r=Uu(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?ju(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||Gu,this.options=r,this.debug=r.debug}log(){for(var e=arguments.length,r=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(e,r){if(this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e].delete(r)}}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o{let[a,l]=s;for(let u=0;u{let[a,l]=s;for(let u=0;u{t=n,e=o});return r.resolve=t,r.reject=e,r}function Jn(t){return t==null?"":""+t}function Ju(t,e,r){t.forEach(n=>{e[n]&&(r[n]=e[n])})}const Yu=/###/g;function Ge(t,e,r){function n(a){return a&&a.indexOf("###")>-1?a.replace(Yu,"."):a}function o(){return!t||typeof t=="string"}const i=typeof e!="string"?e:e.split(".");let s=0;for(;s":">",'"':""","'":"'","/":"/"};function ec(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>Zu[e]):t}class tc{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const rc=[" ",",","?","!",";"],nc=new tc(20);function oc(t,e,r){e=e||"",r=r||"";const n=rc.filter(s=>e.indexOf(s)<0&&r.indexOf(s)<0);if(n.length===0)return!0;const o=nc.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(t);if(!i){const s=t.indexOf(r);s>0&&!o.test(t.substring(0,s))&&(i=!0)}return i}function Tr(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const n=e.split(r);let o=t;for(let i=0;i-1&&l0?t.replace("_","-"):t}class Qn extends Mt{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,r],n&&(Array.isArray(n)?a.push(...n):typeof n=="string"&&i?a.push(...n.split(i)):a.push(n)));const l=$t(this.data,a);return!l&&!r&&!n&&e.indexOf(".")>-1&&(e=a[0],r=a[1],n=a.slice(2).join(".")),l||!s||typeof n!="string"?l:Tr(this.data&&this.data[e]&&this.data[e][r],n,i)}addResource(e,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[e,r];n&&(a=a.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(a=e.split("."),o=r,r=a[1]),this.addNamespaces(r),Yn(this.data,a,o),i.silent||this.emit("added",e,r,n,o)}addResources(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(typeof n[i]=="string"||Array.isArray(n[i]))&&this.addResource(e,r,i,n[i],{silent:!0});o.silent||this.emit("added",e,r,n)}addResourceBundle(e,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,r];e.indexOf(".")>-1&&(a=e.split("."),o=n,n=r,r=a[1]),this.addNamespaces(r);let l=$t(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?yi(l,n,i):l={...l,...n},Yn(this.data,a,l),s.silent||this.emit("added",e,r,n)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,r)}:this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var vi={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,o){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,r,n,o))}),e}};const Xn={};class Lt extends Mt{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ju(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ne.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,r);return n&&n.res!==void 0}extractFromKey(e,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const s=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!oc(e,n,o);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const u=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(o)}return typeof i=="string"&&(i=[i]),{key:e,namespaces:i}}translate(e,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],r),l=a[a.length-1],u=r.lng||this.language,c=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const S=r.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${S}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${S}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s}const d=this.resolve(e,r);let f=d&&d.res;const m=d&&d.usedKey||s,p=d&&d.exactUsedKey||s,h=Object.prototype.toString.apply(f),y=["[object Number]","[object Function]","[object RegExp]"],v=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&y.indexOf(h)<0&&!(typeof v=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,f,{...r,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=S,d.usedParams=this.getUsedParamsDetails(r),d):S}if(i){const S=Array.isArray(f),$=S?[]:{},P=S?p:m;for(const E in f)if(Object.prototype.hasOwnProperty.call(f,E)){const M=`${P}${i}${E}`;$[E]=this.translate(M,{...r,joinArrays:!1,ns:a}),$[E]===M&&($[E]=f[E])}f=$}}else if(b&&typeof v=="string"&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,r,n));else{let S=!1,$=!1;const P=r.count!==void 0&&typeof r.count!="string",E=Lt.hasDefaultValue(r),M=P?this.pluralResolver.getSuffix(u,r.count,r):"",B=r.ordinal&&P?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",U=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),z=U&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${M}`]||r[`defaultValue${B}`]||r.defaultValue;!this.isValidLookup(f)&&E&&(S=!0,f=z),this.isValidLookup(f)||($=!0,f=s);const K=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:f,V=E&&z!==f&&this.options.updateMissing;if($||S||V){if(this.logger.log(V?"updateKey":"missingKey",u,l,s,V?z:f),i){const F=this.resolve(s,{...r,keySeparator:!1});F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let H=[];const Y=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Y&&Y[0])for(let F=0;F{const cn=E&&ie!==f?ie:K;this.options.missingKeyHandler?this.options.missingKeyHandler(F,l,Q,cn,V,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(F,l,Q,cn,V,r),this.emit("missingKey",F,l,Q,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?H.forEach(F=>{const Q=this.pluralResolver.getSuffixes(F,r);U&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Q.indexOf(`${this.options.pluralSeparator}zero`)<0&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(ie=>{Se([F],s+ie,r[`defaultValue${ie}`]||z)})}):Se(H,s,z))}f=this.extendTranslation(f,e,r,d,n),$&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),($||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,S?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(r),d):f}extendTranslation(e,r,n,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof e=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=e.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,n.lng||this.language,n),u){const f=e.match(this.interpolator.nestingRegexp),m=f&&f.length;c1&&arguments[1]!==void 0?arguments[1]:{},n,o,i,s,a;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(l,r),c=u.key;o=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",m=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),p=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",h=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(y=>{this.isValidLookup(n)||(a=y,!Xn[`${h[0]}-${y}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Xn[`${h[0]}-${y}`]=!0,this.logger.warn(`key "${o}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(v=>{if(this.isValidLookup(n))return;s=v;const b=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,c,v,y,r);else{let S;f&&(S=this.pluralResolver.getSuffix(v,r.count,r));const $=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(b.push(c+S),r.ordinal&&S.indexOf(P)===0&&b.push(c+S.replace(P,this.options.pluralSeparator)),m&&b.push(c+$)),p){const E=`${c}${this.options.contextSeparator}${r.context}`;b.push(E),f&&(b.push(E+S),r.ordinal&&S.indexOf(P)===0&&b.push(E+S.replace(P,this.options.pluralSeparator)),m&&b.push(E+$))}}let w;for(;w=b.pop();)this.isValidLookup(n)||(i=w,n=this.getResource(v,y,w,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,r,n,o):this.resourceStore.getResource(e,r,n,o)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&typeof e.replace!="string";let o=n?e.replace:e;if(n&&typeof e.count<"u"&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const i of r)delete o[i]}return o}static hasDefaultValue(e){const r="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r===n.substring(0,r.length)&&e[n]!==void 0)return!0;return!1}}function hr(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Zn{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ne.create("languageUtils")}getScriptPartFromCode(e){if(e=Rt(e),!e||e.indexOf("-")<0)return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=Rt(e),!e||e.indexOf("-")<0)return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=hr(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=hr(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=hr(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&e.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Array.isArray(e))return e;if(!r)return e.default||[];let n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}toResolveHierarchy(e,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],e),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):typeof e=="string"&&i(this.formatLanguageCode(e)),n.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let ic=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],sc={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const ac=["v1","v2","v3"],lc=["v4"],eo={zero:0,one:1,two:2,few:3,many:4,other:5};function uc(){const t={};return ic.forEach(e=>{e.lngs.forEach(r=>{t[r]={numbers:e.nr,plurals:sc[e.fc]}})}),t}class cc{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=r,this.logger=ne.create("pluralResolver"),(!this.options.compatibilityJSON||lc.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=uc()}addRule(e,r){this.rules[e]=r}getRule(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Rt(e==="dev"?"en":e),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(o=>`${r}${o}`)}getSuffixes(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,i)=>eo[o]-eo[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(e,o,r)):[]}getSuffix(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(e,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,r){const n=e.noAbs?e.plurals(r):e.plurals(Math.abs(r));let o=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!ac.includes(this.options.compatibilityJSON)}}function to(t,e,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Xu(t,e,r);return!i&&o&&typeof r=="string"&&(i=Tr(t,r,n),i===void 0&&(i=Tr(e,r,n))),i}class fc{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ne.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(r=>r),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:m,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:y,maxReplaces:v,alwaysFormat:b}=e.interpolation;this.escape=r!==void 0?r:ec,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Pe(i):s||"{{",this.suffix=a?Pe(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?Pe(f):m||Pe("$t("),this.nestingSuffix=p?Pe(p):h||Pe(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=v||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,r,n,o){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const b=to(r,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,n,{...o,...r,interpolationkey:p}):b}const h=p.split(this.formatSeparator),y=h.shift().trim(),v=h.join(this.formatSeparator).trim();return this.format(to(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),v,n,{...o,...r,interpolationkey:y})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(a=0;i=p.regex.exec(e);){const h=i[1].trim();if(s=c(h),s===void 0)if(typeof d=="function"){const v=d(e,i,o);s=typeof v=="string"?v:""}else if(o&&Object.prototype.hasOwnProperty.call(o,h))s="";else if(f){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=Jn(s));const y=p.safeValue(s);if(e=e.replace(i[0],y),f?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const m=f.match(/'/g),p=f.match(/"/g);(m&&m.length%2===0&&!p||p.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,h),`${l}${c}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l}for(;o=this.nestingRegexp.exec(e);){let l=[];s={...n},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const c=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=c.shift(),l=c,u=!0}if(i=r(a.call(this,o[1].trim(),s),s),i&&o[0]===e&&typeof i!="string")return i;typeof i!="string"&&(i=Jn(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),e=e.replace(o[0],i),this.regexp.lastIndex=0}return e}}function dc(t){let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);e==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):e==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();r[c]||(r[c]=u),u==="false"&&(r[c]=!1),u==="true"&&(r[c]=!0),isNaN(u)||(r[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:r}}function Ae(t){const e={};return function(n,o,i){const s=o+JSON.stringify(i);let a=e[s];return a||(a=t(Rt(o),i),e[s]=a),a(n)}}class pc{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ne.create("formatter"),this.options=e,this.formats={number:Ae((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return i=>o.format(i)}),currency:Ae((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>o.format(i)}),datetime:Ae((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return i=>o.format(i)}),relativetime:Ae((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return i=>o.format(i,n.range||"day")}),list:Ae((r,n)=>{const o=new Intl.ListFormat(r,{...n});return i=>o.format(i)})},this.init(e)}init(e){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=Ae(r)}format(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=dc(l);if(this.formats[u]){let d=a;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},m=f.locale||f.lng||o.locale||o.lng||n;d=this.formats[u](a,m,{...c,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},e)}}function hc(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class gc extends Mt{constructor(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=ne.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(e,r,n,o){const i={},s={},a={},l={};return e.forEach(u=>{let c=!0;r.forEach(d=>{const f=`${u}|${d}`;!n.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,c=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,r,n){const o=e.split("|"),i=o[0],s=o[1];r&&this.emit("failedLoading",i,s,r),n&&this.store.addResourceBundle(i,s,n,void 0,void 0,{skipCopy:!0}),this.state[e]=r?-1:2;const a={};this.queue.forEach(l=>{Qu(l.loaded,[i],s),hc(l,e),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:n,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&o{this.read.call(this,e,r,n,o+1,i*2,s)},i);return}s(u,c)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const u=l(e,r);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(e,r,a)}prepareLoading(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof r=="string"&&(r=[r]);const i=this.queueLoad(e,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,r,n){this.prepareLoading(e,r,{},n)}reload(e,r,n){this.prepareLoading(e,r,{reload:!0},n)}loadOne(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,a),this.loaded(e,s,a)})}saveMissing(e,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,r,n,o,l):c=u(e,r,n,o),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(e,r,n,o,a,l)}!e||!e[0]||this.store.addResource(e[0],r,n,o)}}}function ro(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let r={};if(typeof e[1]=="object"&&(r=e[1]),typeof e[1]=="string"&&(r.defaultValue=e[1]),typeof e[2]=="string"&&(r.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(o=>{r[o]=n[o]})}return r},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function no(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function ct(){}function mc(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(r=>{typeof t[r]=="function"&&(t[r]=t[r].bind(t))})}class Ye extends Mt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=no(e),this.services={},this.logger=ne,this.modules={external:[]},mc(this),r&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(){var e=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=ro();this.options={...o,...this.options,...no(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?ne.init(i(this.modules.logger),this.options):ne.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=pc);const d=new Zn(this.options);this.store=new Qn(this.options.resources,this.options);const f=this.services;f.logger=ne,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new cc(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new fc(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new gc(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var p=arguments.length,h=new Array(p>1?p-1:0),y=1;y1?p-1:0),y=1;y{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ct),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=Ue(),u=()=>{const c=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct;const o=typeof e=="string"?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(e,r,n){const o=Ue();return e||(e=this.languages),r||(r=this.options.ns),n||(n=ct),this.services.backendConnector.reload(e,r,i=>{o.resolve(),n(i)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&vi.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,r){var n=this;this.isLanguageChangingTo=e;const o=Ue();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),o}getFixedT(e,r,n){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d`${l.keyPrefix}${f}${p}`):m=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,o.t(m,l)};return typeof e=="string"?i.lng=e:i.lngs=e,i.ns=r,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(r.precheck){const a=r.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,e)&&(!o||s(i,e)))}loadNamespaces(e,r){const n=Ue();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(e,r){const n=Ue();typeof e=="string"&&(e=[e]);const o=this.options.preload||[],i=e.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{n.resolve(),r&&r(s)}),n):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Zn(ro());return r.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Ye(e,r)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},i=new Ye(o);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Qn(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Lt(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;ct.split(",").map((e,r)=>{e=e.trim();const n=e.replace(/([&*]|\+\+)/g,""),o=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return Dr(n,o,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),Array.isArray(o),r===0)});function bc(t,e,r,n){const o=t.db.createObjectStore(e,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(i=>kr(o,i)),o}function kr(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function Dr(t,e,r,n,o,i,s){return{name:t,keyPath:e,unique:r,multi:n,auto:o,compound:i,src:(r&&!s?"&":"")+(n?"*":"")+(o?"++":"")+bi(e)}}function wi(t,e,r){return{name:t,primKey:e,indexes:r,mappedClass:null,idxByName:wc(r,n=>[n.name,n])}}function Si(t,e){const r={};return[...t.objectStoreNames].forEach(o=>{const i=e.objectStore(o);let s=i.keyPath;const a=Dr(bi(s),s||"",!1,!1,!!i.autoIncrement,s&&typeof s!="string",!0),l=[];for(let c=0;c0||a.add.length>0||a.change.length>0)&&n.change.push(a)}}}return n}function wc(t,e){return t.reduce((r,n,o)=>{var i=e(n,o);return i&&(r[i[0]]=i[1]),r},{})}function oo(t,e,r,n){const o=Si(e,r),i={};return Object.keys(t).forEach(a=>{const[l,...u]=vc(t[a]);i[a]=wi(a,l,u)}),xi(o,i,n)}function Sc(t,e,r){t.add.forEach(n=>{bc(r,n[0],n[1].primKey,n[1].indexes)}),t.change.forEach(n=>{if(n.recreate)throw"Not yet support for changing primary key";{const o=r.objectStore(n.name);n.add.forEach(i=>kr(o,i)),n.change.forEach(i=>{o.deleteIndex(i.name),kr(o,i)}),n.del.forEach(i=>o.deleteIndex(i))}}),t.del.forEach(n=>{e.deleteObjectStore(n)})}function xc(t){const e=new Map;return{idbOpen:async(o,{store:i,incrementalUpdate:s}={})=>{if(!o||typeof o!="string")return Promise.reject(new TypeError("dbName must be a string"));let a=e.get(o);if(a)try{return await c(await a)}catch(f){if(e.delete(o),!(f instanceof Error&&Object.prototype.toString.call(f)==="[object DOMException]"&&f.message.indexOf("The database connection is closing.")!==-1))return Promise.reject(f)}let l=d();return e.set(o,l),l.catch(()=>{l===e.get(o)&&e.delete(o)}),l;function u(f,m){const p=function(h){var v,b,w;const y=oo(h,f,m,s);return!((v=y.add)!=null&&v.length||(b=y.change)!=null&&b.length||(w=y.del)!=null&&w.length)};switch(typeof i){case"string":{const[h,y]=i.split("|");return p({[h]:y||"++"})}case"function":try{return typeof i.call(this,f,m)!="function"}catch(h){throw h}case"object":if(i)return p(i);default:return!0}}function c(f){if(u(f,f.objectStoreNames.length?f.transaction([...f.objectStoreNames],"readonly"):void 0))return Promise.resolve(f);{let m=f.version+1;return d(m)}}function d(f){return new Promise((m,p)=>{let h=t.indexedDB.open(o,f);h.onerror=function(y){p(this.error)},h.onupgradeneeded=function(y){var w,S,$;const v=this.result,b=this.transaction;try{switch(typeof i){case"function":{const P=()=>i.call(this,v,b),E=()=>Si(v,b);let M,B=E();for(;typeof(M=P())=="function";){M.call(this,v,b,y);const U=E(),z=xi(B,U,!1);if(B=U,!((w=z.add)!=null&&w.length||(S=z.change)!=null&&S.length||($=z.del)!=null&&$.length))throw new Error('Parameter "store" contradicts "upgradeneeded"')}break}case"string":case"object":{let P;if(typeof i=="string"){const[M,B]=i.split("|");P={[M]:B||"++"}}else P=i;const E=oo(P,v,b,s);Sc(E,v,b);break}default:if(!u.call(this,v,b))throw new TypeError('Missing or wrong type of "upgradeneeded" parameter')}}catch(P){console.error(P),b.abort(),v.close(),p(P)}},h.onsuccess=function(y){const v=this.result;v.onversionchange=function(){v.close(),e.delete(o)},v.onclose=function(){e.delete(o)},e.set(o,v);try{m(c(v))}catch(b){p(b)}},h.onblocked=function(y){var b;let v=e.get(o);v&&((b=v==null?void 0:v.close)==null||b.call(v))}})}},idbDelete:o=>new Promise((i,s)=>{let a=t.indexedDB.deleteDatabase(o);a.onerror=function(l){s(this.error)},a.onsuccess=function(l){i(null)}})}}const Oc=xc(window),{idbOpen:Oi,idbDelete:Pp}=Oc,Ec=(t,e)=>e.some(r=>t instanceof r);let io,so;function Pc(){return io||(io=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Ac(){return so||(so=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Ei=new WeakMap,Fr=new WeakMap,Pi=new WeakMap,gr=new WeakMap,ln=new WeakMap;function $c(t){const e=new Promise((r,n)=>{const o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(le(t.result)),o()},s=()=>{n(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return e.then(r=>{r instanceof IDBCursor&&Ei.set(r,t)}).catch(()=>{}),ln.set(e,t),e}function Rc(t){if(Fr.has(t))return;const e=new Promise((r,n)=>{const o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});Fr.set(t,e)}let jr={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return Fr.get(t);if(e==="objectStoreNames")return t.objectStoreNames||Pi.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return le(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Lc(t){jr=t(jr)}function Cc(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(mr(this),e,...r);return Pi.set(n,e.sort?e.sort():[e]),le(n)}:Ac().includes(t)?function(...e){return t.apply(mr(this),e),le(Ei.get(this))}:function(...e){return le(t.apply(mr(this),e))}}function Nc(t){return typeof t=="function"?Cc(t):(t instanceof IDBTransaction&&Rc(t),Ec(t,Pc())?new Proxy(t,jr):t)}function le(t){if(t instanceof IDBRequest)return $c(t);if(gr.has(t))return gr.get(t);const e=Nc(t);return e!==t&&(gr.set(t,e),ln.set(e,t)),e}const mr=t=>ln.get(t);function _c(t,e,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){const s=indexedDB.open(t,e),a=le(s);return n&&s.addEventListener("upgradeneeded",l=>{n(le(s.result),l.oldVersion,l.newVersion,le(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const Tc=["get","getKey","getAll","getAllKeys","count"],Ic=["put","add","delete","clear"],yr=new Map;function ao(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(yr.get(e))return yr.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,o=Ic.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||Tc.includes(r)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),o&&l.done]))[0]};return yr.set(e,i),i}Lc(t=>({...t,get:(e,r,n)=>ao(e,r)||t.get(e,r,n),has:(e,r)=>!!ao(e,r)||t.has(e,r)}));const Mr="GOST-UI",un=async t=>le(await Oi(Mr,{store:t})),kc=async t=>{const e=await Oi(Mr),r=e.version+1;e.close(),_c(Mr,r,{upgrade:(n,o,i,s,a)=>{t(s)}})},fe="localCache",ze="savedServer";class G{constructor(e){X(this,"dsName",fe);X(this,"type");X(this,"_getIdb",()=>un(`${this.dsName}|++_id_,_key_,_type_,[_type_+_key_],[name+_type_+_key_]`));X(this,"_getTransaction",async()=>{const r=(await this._getIdb()).transaction(this.dsName,"readwrite"),n=r.objectStore(this.dsName);return{transaction:r,store:n}});X(this,"getList",async()=>(await this._getIdb()).getAllFromIndex(this.dsName,"[_type_+_key_]",IDBKeyRange.only([this.type,this.key])));X(this,"get",async e=>(await this._getIdb()).getFromIndex(this.dsName,"[name+_type_+_key_]",IDBKeyRange.only([e,this.type,this.key])));X(this,"add",async e=>{await(await this._getIdb()).add(this.dsName,{...e,_key_:this.key,_type_:this.type})});X(this,"put",async(e,r)=>{if(r._id_)await(await this._getIdb()).put(this.dsName,r);else{const{transaction:n,store:o}=await this._getTransaction(),i=await o.index("[name+_type_+_key_]").get(IDBKeyRange.only([e,this.type,this.key]));return r._id_=i._id_,await o.put({...i,...r,_id_:i._id_}),n.done}});X(this,"delete",async e=>{const{transaction:r,store:n}=await this._getTransaction(),o=await n.index("[name+_type_+_key_]").get(IDBKeyRange.only([e,this.type,this.key]));return await n.delete(o._id_),r.done});this.type=e}get key(){var e;return(e=Ai())==null?void 0:e.addr}}const Dc=new G("admissions"),Fc=new G("authers"),jc=new G("bypasses"),Mc=new G("chains"),Bc=new G("climiters"),Uc=new G("limiters"),zc=new G("rlimiters"),Vc=new G("hops"),Hc=new G("hosts"),Kc=new G("ingresses"),qc=new G("resolvers"),Wc=new G("services");class Fe{static _getIdb(){return un({[ze]:"addr",[fe]:"++_id_,_key_"})}static async getAllServer(){return(await this._getIdb()).getAll(ze)}static async getServer(e){return(await this._getIdb()).get(ze,e)}static async setServer(e){await(await this._getIdb()).put(ze,e)}static async deleteServer(e,r=!1){await(await this._getIdb()).delete(ze,e),r&&await this.deleteCacheConfig(e)}static async deleteCacheConfig(e){const o=await(await this._getIdb()).transaction([fe],"readwrite").objectStore(fe),i=await o.index("_key_").getAllKeys(IDBKeyRange.only(e));await o.delete(i)}static async getAllCacheConfig(e){const r=await this._getIdb();return e?r.getAllFromIndex(fe,"_key_",IDBKeyRange.only(e)):r.getAll(fe)}}const Gc=async()=>{const t=await un(`${fe}|++_id_`),e=t.objectStoreNames,r=/^services-/,n="services",o=[...e].filter(s=>r.test(s)),i=t.transaction(e,"readwrite");for(const s of o){const a=await i.objectStore(s).getAll();let l=decodeURIComponent(s.replace(/^services-/,""));/^(https?:)?\/\//.test(l)?/^\/\//.test(l)&&(l=`${location.protocol}`+l):l=`${location.protocol}//`+l,a.length>0&&await a.map(u=>i.objectStore(fe).add({...u,_type_:n,_key_:l})),await i.objectStore(s).clear()}return await i.done,o.length&&kc(s=>{const a=[...s.objectStoreNames],l=/^services-/;[...a.filter(c=>l.test(c)),"services","localConfigStore"].forEach(c=>{a.includes(c)&&s.db.deleteObjectStore(c)})}),o.length>0},Ap=Object.freeze(Object.defineProperty({__proto__:null,GostCommit:G,ServerComm:Fe,admissions:Dc,authers:Fc,bypasses:jc,chains:Mc,climiters:Bc,fixOldCacheConfig:Gc,hops:Vc,hosts:Hc,ingresses:Kc,limiters:Uc,resolvers:qc,rlimiters:zc,services:Wc},Symbol.toStringTag,{value:"Module"})),ve="__GOST_SERVER__",ft="__USE_SERVER__",vr="__SETTINGS__",be=Tt();Object.defineProperty(window,ve,{get:be.get,set:be.set});const dt=Tt(),pt=Tt(),Br=Tt(()=>{const t=localStorage.getItem(vr)||"{}";try{return JSON.parse(t)}catch(e){return console.error(e),{}}},t=>{t==null&&localStorage.removeItem(vr),localStorage.setItem(vr,JSON.stringify(t))}),Ai=()=>be.get(),Jc=async()=>{if(window[ve])return!0;const t=Wu.parse(location.search,{ignoreQueryPrefix:!0});t.use&&(window[ft]=t.use,window.history.replaceState(null,"",location.pathname),$i());const e=sessionStorage.getItem(ve);if(e){const r=JSON.parse(e);return await Ur(r),!0}if(window[ft]){const r=await Qc(window[ft]);r&&(r.isLocal=!0,await Ur(r),r&&(r.time=Date.now(),Ri(window[ft],r)))}},Yc=async t=>{const e=t.addr.replace(/\/+$/,"");return Yo.get(e+"/config",{auth:t.auth}).catch(r=>{throw"verify error"})},Ur=async(t,e)=>{try{await Yc(t),window[ve]=t,window.sessionStorage.setItem(ve,JSON.stringify(t)),e&&(t.isLocal=!0,window[ve]=t,await Ri(t.addr,t))}catch(r){throw r==="verify error"&&($i(),br.error((r==null?void 0:r.message)||Ir("msg.connectionFailed"))),r}},$i=async()=>{be.set(null),window.sessionStorage.removeItem(ve)},Ri=async(t,e)=>Fe.setServer({...e,isLocal:!0,time:Date.now()}),Qc=async t=>Fe.getServer(t),Xc=async t=>Fe.deleteServer(t),Zc=async()=>Fe.getAllServer(),we=Yo.create();we.interceptors.request.use(t=>{const e=Ai();return t.baseURL=e==null?void 0:e.addr,t.auth=e==null?void 0:e.auth,t});we.interceptors.response.use(t=>{var e;return t.config.method!=="get"&&!((e=t.config)!=null&&e.noMsg)&&br.success(Ir("msg.success")),t.data?t.data:t},t=>{var n,o;const{response:e}=t||{};let r=t.message||Ir("msg.unknown");throw(n=e==null?void 0:e.data)!=null&&n.msg&&(r=(o=e==null?void 0:e.data)==null?void 0:o.msg),br.error(r),t});const I={config:"/config",admissions:"/config/admissions",authers:"/config/authers",bypasses:"/config/bypasses",chains:"/config/chains",climiters:"/config/climiters",limiters:"/config/limiters",rlimiters:"/config/rlimiters",hops:"/config/hops",hosts:"/config/hosts",ingresses:"/config/ingresses",observers:"/config/observers",resolvers:"/config/resolvers",sds:"/config/sds",services:"/config/services"},j=t=>({post:e=>we.post(t,e),put:(e,r)=>we.put(`${t}/${e}`,r),delete:e=>we.delete(`${t}/${e}`)}),ef=j(I.admissions),tf=j(I.authers),rf=j(I.bypasses),nf=j(I.chains),of=j(I.climiters),sf=j(I.limiters),af=j(I.rlimiters),lf=j(I.hops),uf=j(I.hosts),cf=j(I.ingresses),ff=j(I.resolvers),df=j(I.services),pf=j(I.sds),hf=j(I.observers),zr=t=>we.get(I.config),gf=(t="json",e)=>we.post(I.config,null,{params:{format:t,path:e},noMsg:!0}),$p=Object.freeze(Object.defineProperty({__proto__:null,admissions:ef,apis:I,authers:tf,bypasses:rf,chains:nf,climiters:of,getConfig:zr,getRESTfulApi:j,hops:lf,hosts:uf,ingresses:cf,limiters:sf,observers:hf,resolvers:ff,rlimiters:af,saveCofnig:gf,sds:pf,services:df},Symbol.toStringTag,{value:"Module"}));var mf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"};const yf=mf;var vf=function(e,r){return O.createElement(Qe,Xe({},e,{ref:r,icon:yf}))},bf=O.forwardRef(vf);const wf=bf;var Sf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const xf=Sf;var Of=function(e,r){return O.createElement(Qe,Xe({},e,{ref:r,icon:xf}))},Ef=O.forwardRef(Of);const Pf=Ef;var Af={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"};const $f=Af;var Rf=function(e,r){return O.createElement(Qe,Xe({},e,{ref:r,icon:$f}))},Lf=O.forwardRef(Rf);const Cf=Lf;var Nf={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"};const _f=Nf;var Tf=function(e,r){return O.createElement(Qe,Xe({},e,{ref:r,icon:_f}))},If=O.forwardRef(Tf);const kf=If;var Df={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const Ff=Df;var jf=function(e,r){return O.createElement(Qe,Xe({},e,{ref:r,icon:Ff}))},Mf=O.forwardRef(jf);const Bf=Mf;function Uf(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),r=0;r()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}};function uo(t,e,r){t.loadNamespaces(e,Li(t,r))}function co(t,e,r,n){typeof r=="string"&&(r=[r]),r.forEach(o=>{t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,Li(t,n))}function zf(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=e.languages[0],o=e.options?e.options.fallbackLng:!1,i=e.languages[e.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=e.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(n,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||s(n,t)&&(!o||s(i,t)))}function Vf(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(Vr("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:r.lng,precheck:(o,i)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!i(o.isLanguageChangingTo,t))return!1}}):zf(t,e,r)}const Hf=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Kf={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},qf=t=>Kf[t],Wf=t=>t.replace(Hf,qf);let Hr={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Wf};function Gf(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hr={...Hr,...t}}function Jf(){return Hr}let Ci;function Yf(t){Ci=t}function Qf(){return Ci}const Xf={type:"3rdParty",init(t){Gf(t.options.react),Yf(t)}},Zf=O.createContext();class ed{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const td=(t,e)=>{const r=O.useRef();return O.useEffect(()=>{r.current=e?r.current:t},[t,e]),r.current};function Ni(t,e,r,n){return t.getFixedT(e,r,n)}function rd(t,e,r,n){return O.useCallback(Ni(t,e,r,n),[t,e,r,n])}function Bt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=e,{i18n:n,defaultNS:o}=O.useContext(Zf)||{},i=r||n||Qf();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new ed),!i){Vr("You will need to pass in an i18next instance by using initReactI18next");const S=(P,E)=>typeof E=="string"?E:E&&typeof E=="object"&&typeof E.defaultValue=="string"?E.defaultValue:Array.isArray(P)?P[P.length-1]:P,$=[S,{},!1];return $.t=S,$.i18n={},$.ready=!1,$}i.options.react&&i.options.react.wait!==void 0&&Vr("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...Jf(),...i.options.react,...e},{useSuspense:a,keyPrefix:l}=s;let u=t||o||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(S=>Vf(S,i,s)),d=rd(i,e.lng||null,s.nsMode==="fallback"?u:u[0],l),f=()=>d,m=()=>Ni(i,e.lng||null,s.nsMode==="fallback"?u:u[0],l),[p,h]=O.useState(f);let y=u.join();e.lng&&(y=`${e.lng}${y}`);const v=td(y),b=O.useRef(!0);O.useEffect(()=>{const{bindI18n:S,bindI18nStore:$}=s;b.current=!0,!c&&!a&&(e.lng?co(i,e.lng,u,()=>{b.current&&h(m)}):uo(i,u,()=>{b.current&&h(m)})),c&&v&&v!==y&&b.current&&h(m);function P(){b.current&&h(m)}return S&&i&&i.on(S,P),$&&i&&i.store.on($,P),()=>{b.current=!1,S&&i&&S.split(" ").forEach(E=>i.off(E,P)),$&&i&&$.split(" ").forEach(E=>i.store.off(E,P))}},[i,y]),O.useEffect(()=>{b.current&&c&&h(f)},[i,l,c]);const w=[p,i,c];if(w.t=p,w.i18n=i,w.ready=c,c||!c&&!a)return w;throw new Promise(S=>{e.lng?co(i,e.lng,u,()=>S()):uo(i,u,()=>S())})}const nd=()=>{const{t}=Bt(),[e,r]=O.useState(),n=O.useCallback(async()=>Zc().then(o=>o.sort((i,s)=>{const a=i.time||0;return(s.time||0)-a})).then(o=>r(o)),[]);return O.useEffect(()=>{n()},[]),x.jsx(x.Fragment,{children:e&&(e==null?void 0:e.length)>0?x.jsxs(yo,{direction:"vertical",style:{display:"flex"},children:[x.jsx("div",{children:t("home.quickConnect")}),x.jsx(Hi,{gutter:10,children:e.map(o=>x.jsx(Ki,{span:12,title:o.addr,style:{overflow:"hidden",textOverflow:"ellipsis"},children:x.jsxs(qi,{gap:5,style:{overflow:"hidden"},children:[x.jsx("a",{style:{overflow:"hidden",textOverflow:"ellipsis",flex:"auto"},href:`?use=${o.addr}`,children:o.addr}),x.jsx(Wi,{style:{color:"red"},onClick:async()=>{await Xc(o.addr),n()}})]})},o.addr))})]}):null})},od=()=>{const[t,e]=O.useState(window.matchMedia("(prefers-color-scheme: dark)").matches);return O.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)"),n=o=>{e(o.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),t},_i=()=>{const t=od(),{theme:e}=Br();return O.useMemo(()=>!e||e==="system"?t:e==="dark",[e,t])},id=t=>{const e=Br(),r=_i(),n=r?x.jsx(Cf,{}):x.jsx(kf,{});return x.jsx(qr,{shape:"circle",icon:n,...t,onClick:()=>{const o={...e};o.theme=r?"light":"dark",Br.set(o)}})},sd=t=>{const{i18n:e}=Bt();return x.jsx(qr,{shape:"circle",...t,onClick:()=>{e.changeLanguage(e.resolvedLanguage==="en"?"zh":"en")},children:e.resolvedLanguage==="en"?"中":"En"})},ad=()=>{const{t,i18n:e}=Bt();return x.jsxs(x.Fragment,{children:[x.jsxs(xe,{className:"home-form",size:"large",layout:"horizontal",initialValues:{baseURL:"http://",save:!0},onFinish:r=>{let n=r.baseURL;return/^(https?:)?\/\//.test(n)?/^\/\//.test(n)&&(n=`${location.protocol}`+n):n=`${location.protocol}//`+n,Ur({addr:n,auth:{username:r.username,password:r.password}},r.save)},children:[x.jsx("h1",{children:t("base.title")}),x.jsx("h2",{children:t("base.description")}),x.jsx(xe.Item,{name:"baseURL",rules:[{required:!0,message:t("msg.baseURL.required")},{validator(r,n,o){n==="http://"&&o(t("msg.baseURL.required")),o()}}],children:x.jsx(Qt,{placeholder:t("placeholder.baseURL"),prefix:x.jsx(wf,{className:"prefixIcon"})})}),x.jsx(xe.Item,{name:"username",children:x.jsx(Qt,{placeholder:"username",prefix:x.jsx(Bf,{className:"prefixIcon"})})}),x.jsx(xe.Item,{name:"password",children:x.jsx(Qt.Password,{placeholder:"password",prefix:x.jsx(Pf,{className:"prefixIcon"})})}),x.jsx(xe.Item,{name:"save",valuePropName:"checked",children:x.jsx(Gi,{children:t("base.form.local")})}),x.jsx(xe.Item,{noStyle:!0,style:{marginBottom:"1em"},children:x.jsx(qr,{block:!0,type:"primary",htmlType:"submit",children:t("base.cmd.connect")})}),x.jsx(nd,{})]}),x.jsx("div",{style:{position:"absolute",top:"1em",right:"1em"},children:x.jsxs(yo,{children:[x.jsx(id,{}),x.jsx(sd,{})]})})]})};const se=new Ro.EventEmitter;var Ut={},Ti={exports:{}};(function(t){function e(r){return r&&r.__esModule?r:{default:r}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(Ti);var je=Ti.exports,zt={};Object.defineProperty(zt,"__esModule",{value:!0});zt.default=void 0;var ld={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};zt.default=ld;var Vt={},nt={},Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.default=void 0;var ud={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};Ht.default=ud;var ot={};Object.defineProperty(ot,"__esModule",{value:!0});ot.default=void 0;const cd={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};ot.default=cd;var Ii=je.default;Object.defineProperty(nt,"__esModule",{value:!0});nt.default=void 0;var fd=Ii(Ht),dd=Ii(ot);const ki={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},fd.default),timePickerLocale:Object.assign({},dd.default)};ki.lang.ok="确定";nt.default=ki;var pd=je.default;Object.defineProperty(Vt,"__esModule",{value:!0});Vt.default=void 0;var hd=pd(nt);Vt.default=hd.default;var Kt=je.default;Object.defineProperty(Ut,"__esModule",{value:!0});Ut.default=void 0;var gd=Kt(zt),md=Kt(Vt),yd=Kt(nt),vd=Kt(ot);const q="${label}不是一个有效的${type}",bd={locale:"zh-cn",Pagination:gd.default,DatePicker:yd.default,TimePicker:vd.default,Calendar:md.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:q,method:q,array:q,object:q,number:q,date:q,boolean:q,integer:q,float:q,regexp:q,email:q,url:q,hex:q},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无"}};Ut.default=bd;var wd=Ut;const fo=Kr(wd);var qt={},Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.default=void 0;var Sd={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};Wt.default=Sd;var Gt={},it={},Jt={};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.default=void 0;var xd={locale:"en_GB",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"Select time",dateSelect:"Select date",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};Jt.default=xd;var st={};Object.defineProperty(st,"__esModule",{value:!0});st.default=void 0;const Od={placeholder:"Select time"};st.default=Od;var Di=je.default;Object.defineProperty(it,"__esModule",{value:!0});it.default=void 0;var Ed=Di(Jt),Pd=Di(st);const Ad={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Ed.default),timePickerLocale:Object.assign({},Pd.default)};it.default=Ad;var $d=je.default;Object.defineProperty(Gt,"__esModule",{value:!0});Gt.default=void 0;var Rd=$d(it);Gt.default=Rd.default;var Yt=je.default;Object.defineProperty(qt,"__esModule",{value:!0});qt.default=void 0;var Ld=Yt(Wt),Cd=Yt(Gt),Nd=Yt(it),_d=Yt(st);const W="${label} is not a valid ${type}",Td={locale:"en-gb",Pagination:Ld.default,DatePicker:Nd.default,TimePicker:_d.default,Calendar:Cd.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:W,method:W,array:W,object:W,number:W,date:W,boolean:W,integer:W,float:W,regexp:W,email:W,url:W,hex:W},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};qt.default=Td;var Id=qt;const kd=Kr(Id),Dd=Ct.createContext({}),Rp=Ct.createContext({localList:[],name:""}),Lp=(t,e)=>{const r=`${t}:getComm`,n=o=>{o(e)};return se.on(r,n),()=>{se.off(r,n)}},Cp=t=>new Promise((e,r)=>{const n=`${t}:getComm`;se.emit(n,e)}),{slice:Fd,forEach:jd}=[];function Md(t){return jd.call(Fd.call(arguments,1),e=>{if(e)for(const r in e)t[r]===void 0&&(t[r]=e[r])}),t}const po=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Bd=(t,e,r)=>{const n=r||{};n.path=n.path||"/";const o=encodeURIComponent(e);let i=`${t}=${o}`;if(n.maxAge>0){const s=n.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(s)}`}if(n.domain){if(!po.test(n.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${n.domain}`}if(n.path){if(!po.test(n.path))throw new TypeError("option path is invalid");i+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},ho={create(t,e,r,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),n&&(o.domain=n),document.cookie=Bd(t,encodeURIComponent(e),o)},read(t){const e=`${t}=`,r=document.cookie.split(";");for(let n=0;n-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const s=o.substring(1).split("&");for(let a=0;a0&&s[a].substring(0,l)===e&&(r=s[a].substring(l+1))}}return r}};let Ve=null;const go=()=>{if(Ve!==null)return Ve;try{Ve=window!=="undefined"&&window.localStorage!==null;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Ve=!1}return Ve};var Vd={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&go())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:r}=e;r&&go()&&window.localStorage.setItem(r,t)}};let He=null;const mo=()=>{if(He!==null)return He;try{He=window!=="undefined"&&window.sessionStorage!==null;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{He=!1}return He};var Hd={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&mo())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:r}=e;r&&mo()&&window.sessionStorage.setItem(r,t)}},Kd={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:r,userLanguage:n,language:o}=navigator;if(r)for(let i=0;i0?e:void 0}},qd={name:"htmlTag",lookup(t){let{htmlTag:e}=t,r;const n=e||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},Wd={name:"path",lookup(t){var o;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?(o=r[typeof e=="number"?e:0])==null?void 0:o.replace("/",""):void 0}},Gd={name:"subdomain",lookup(t){var o,i;let{lookupFromSubdomainIndex:e}=t;const r=typeof e=="number"?e+1:1,n=typeof window<"u"&&((i=(o=window.location)==null?void 0:o.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(n)return n[r]}};function Jd(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t}}class Fi{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=Md(r,this.options||{},Jd()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(Ud),this.addDetector(zd),this.addDetector(Vd),this.addDetector(Hd),this.addDetector(Kd),this.addDetector(qd),this.addDetector(Wd),this.addDetector(Gd)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let r=[];return e.forEach(n=>{if(this.detectors[n]){let o=this.detectors[n].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(r=r.concat(o))}}),r=r.map(n=>this.options.convertDetectedLanguage(n)),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(e,r){r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(e,this.options)}))}}Fi.type="languageDetector";const Yd="English",Qd={title:"GOST API Manage",description:"Connecting to API Services",form:{username:"Username",password:"Password",local:"Save to local",name:"Name",details:"Details"},cmd:{connect:"Connect",controls:"Operation",enabled:"Enabled",disable:"Disable",copy:"Copy",edit:"Edit",del:"Delete"}},Xd={warn:"Warning",deleteing:"Are you sure you want to delete?",doubleClickEdit:"Double click to modify"},Zd={admission:{title:"Admission",subTitle:"admission"},auther:{title:"Auther",subTitle:"auther"},bypass:{title:"Bypass",subTitle:"bypass"},chain:{title:"Chain",subTitle:"chain"},climiter:{title:"climiter",subTitle:"climiter"},limiter:{title:"limiter",subTitle:"limiter"},rlimiter:{title:"rlimiter",subTitle:"rlimiter"},hop:{title:"Hop",subTitle:"hop"},host:{title:"Hosts",subTitle:"hosts"},ingress:{title:"Ingress",subTitle:"Ingress"},resolver:{title:"Resolver",subTitle:"resolver"},service:{title:"Service",subTitle:"service"},sd:{title:"SD",subTitle:"SD"},observer:{title:"Observer",subTitle:"observer"}},ep={baseURL:{required:"BaseURL cannot be empty"},require:"Can not be empty!",success:"Success!",unknown:"Unknown error!",connectionFailed:"Connection failed!",wordWrap:"Word Wrap",invalidName:"Invalid name",autofixName:"Whether to automatically assign a name?",autofix:"Autofix Reminder",fixName:"Reassign name to {{name}}",formatError:"{{name}}Format error!"},tp={baseURL:"API baseURL",savePath:"By default, it is saved to the context directory."},rp={quickConnect:"Quick Connect"},np={cmd:{reload:"Reload Config",save:"Save to server",download:"Download Config",logout:"Logout",switch:"Switch Services",new:"Connect to new Services"},label:{autoSave:"Autosave",format:"Format",path:"Save path",limit:"Speed and current limit",allConfig:"All Config JSON"}},op={edit:"Edit {{name}}",add:"Add {{name}}",copied:"Copied from {{name}}"},ip={default:"Default",inline:"Inline"},sp={template:"Template",forwarder:"Forwarder",key0:"Remote Port Forwarding"},ap={language:Yd,base:Qd,text:Xd,modules:Zd,msg:ep,placeholder:tp,home:rp,manage:np,title:op,template:ip,terms:sp},lp="简体中文",up={title:"GOST API Manage",description:"连接API服务",form:{username:"用户名",password:"密码",local:"保存到本地",name:"名称",details:"详情"},cmd:{connect:"连接",controls:"操作",enabled:"启用",disable:"禁用",copy:"复制",edit:"修改",del:"删除"}},cp={warn:"警告",deleteing:"确定要删除吗?",doubleClickEdit:"双击修改"},fp={admission:{title:"准入控制器(Admission)",subTitle:"准入控制器"},auther:{title:"认证器(Auther)",subTitle:"认证器"},bypass:{title:"分流器(Bypass)",subTitle:"分流器"},chain:{title:"转发链(Chain)",subTitle:"转发链"},climiter:{title:"并发连接数限制",subTitle:""},limiter:{title:"流量速率限制",subTitle:""},rlimiter:{title:"请求速率限制",subTitle:""},hop:{title:"跳跃点(Hop)",subTitle:"跳跃点"},host:{title:"主机映射器(Hosts)",subTitle:"主机映射器"},ingress:{title:"Ingress",subTitle:"Ingress"},resolver:{title:"域名解析器(Resolver)",subTitle:"域名解析器"},service:{title:"服务(Service)",subTitle:"服务"},sd:{title:"服务发现(SD)",subTitle:"服务发现"},observer:{title:"观测器(Observer)",subTitle:"观测器"}},dp={baseURL:{required:"请输入API地址"},require:"不能为空!",success:"操作成功!",unknown:"出现未知错误!",connectionFailed:"连接失败!",wordWrap:"自动换行",invalidName:"name无效",autofixName:"是否自动分配name?",autofix:"自动修正提醒",fixName:"新分配 name 为 {{name}}",formatError:"{{name}}格式错误!"},pp={baseURL:"API baseURL",savePath:"默认保存到上下文目录"},hp={quickConnect:"快速连接"},gp={cmd:{reload:"刷新配置",save:"保存到服务器",download:"下载当前配置",logout:"退出",switch:"切换服务",new:"连接新服务"},label:{autoSave:"自动保存",format:"格式",path:"保存路径",limit:"限速限流",allConfig:"完整配置"}},mp={edit:"修改 {{name}}",add:"添加 {{name}}",copied:"复制自 {{name}}"},yp={default:"默认",inline:"内联"},vp={template:"模板",forwarder:"转发/反代",key0:"远程端口转发"},bp={language:lp,base:up,text:cp,modules:fp,msg:dp,placeholder:pp,home:hp,manage:gp,title:mp,template:yp,terms:vp},ji="en";k.use(Fi).use(Xf).init({debug:!0,fallbackLng:ji,interpolation:{escapeValue:!1},resources:{en:{translation:ap},zh:{translation:bp}}});function Np(t){if(typeof t=="string"||O.isValidElement(t))return t;const e=k.resolvedLanguage;return t[e]||t[ji]||""}const wp=Ct.lazy(()=>is(()=>import("./Manage-364971f1.js"),["./Manage-364971f1.js","./antd-15fa66a0.js"],import.meta.url)),Sp=t=>{const{locale:e,theme:r}=O.useContext(ht.ConfigContext);return O.useLayoutEffect(()=>{ht.config({theme:r,holderRender:n=>x.jsx(ht,{theme:r,children:n})})},[e,r]),x.jsx(Yi,{children:t.children})};function xp(){const t=be(),{t:e,i18n:r}=Bt(),n=dt(),o=pt(),i=_i(),[s,a]=O.useState(!1),[l,u]=O.useState(!1),[c,d]=O.useState(fo),f=O.useMemo(()=>s||l,[s,l]),m=O.useRef({update:async()=>{var p;try{a(!0),u(!0);const[h,y]=await Promise.all([zr(),m.current.updateLocalConfig((p=be.get())==null?void 0:p.addr)]);return dt.set(h),pt.set(y),[h,y]}finally{a(!1),u(!1)}},updateLocalConfig:async p=>{try{p||pt.set(null),u(!0);const h=await Fe.getAllCacheConfig(p),y={};return h.forEach(v=>{const{_type_:b}=v;(y[b]?y[b]:y[b]=[]).push(v)}),y}finally{u(!1)}},defaultTitle:document.title});return O.useEffect(()=>{Jc();const p=async v=>{if((v==null?void 0:v.url)!==I.config)return dt.set(await zr())},h=async()=>{var v;return pt.set(await m.current.updateLocalConfig((v=be.get())==null?void 0:v.addr))},y=m.current.update;return se.on("apiUpdate",p),se.on("localUpdate",h),se.on("update",y),()=>{se.off("apiUpdate",p),se.off("localUpdate",h),se.off("update",y)}},[]),O.useEffect(()=>{t?m.current.update().then(([p])=>{dt.set(p),document.title=t.addr.replace(/^(https?:)?\/\//,"")}):document.title=m.current.defaultTitle},[t]),O.useEffect(()=>{var p,h;i?(document.documentElement.classList.add("theme-dark"),(p=window==null?void 0:window.monaco)==null||p.editor.setTheme("vs-dark")):(document.documentElement.classList.remove("theme-dark"),(h=window==null?void 0:window.monaco)==null||h.editor.setTheme("vs"))},[i]),O.useEffect(()=>{const p=r.resolvedLanguage;d(p==="zh"?fo:kd)},[r.resolvedLanguage]),x.jsx(Dd.Provider,{value:{gostConfig:n,localConfig:o,isLoading:f},children:x.jsx(ht,{theme:{algorithm:i?Ji.darkAlgorithm:void 0},locale:c,children:x.jsx(Sp,{children:x.jsx(Ct.Suspense,{fallback:"loading...",children:t?x.jsx(wp,{}):x.jsx(ad,{})})})})})}wr.createRoot(document.getElementById("root")).render(x.jsx(xp,{}));export{$p as A,Rp as C,Ap as L,id as T,_i as a,Np as b,wr as c,Dd as d,se as e,Lp as f,Qf as g,Cp as h,dt as i,x as j,be as k,Zc as l,Gc as m,zr as n,$i as o,sd as p,Wu as q,Ri as r,gf as s,I as t,Bt as u}; +`+e.prev}function at(t,e){var r=Nr(t),n=[];if(r){n.length=t.length;for(var o=0;o1;){var r=e.pop(),n=r.obj[r.prop];if(ge(n)){for(var o=[],i=0;i=pr?s.slice(l,l+pr):s,c=[],d=0;d=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===mu.RFC1738&&(f===40||f===41)){c[c.length]=u.charAt(d);continue}if(f<128){c[c.length]=Z[f];continue}if(f<2048){c[c.length]=Z[192|f>>6]+Z[128|f&63];continue}if(f<55296||f>=57344){c[c.length]=Z[224|f>>12]+Z[128|f>>6&63]+Z[128|f&63];continue}d+=1,f=65536+((f&1023)<<10|u.charCodeAt(d)&1023),c[c.length]=Z[240|f>>18]+Z[128|f>>12&63]+Z[128|f>>6&63]+Z[128|f&63]}a+=c.join("")}return a},xu=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o"u"&&(A=0)}if(typeof c=="function"?w=c(r,w):w instanceof Date?w=m(w):n==="comma"&&ee(w)&&(w=St.maybeMap(w,function(ie){return ie instanceof Date?m(ie):ie})),w===null){if(s)return u&&!y?u(r,_.encoder,v,"key",p):r;w=""}if(Cu(w)||St.isBuffer(w)){if(u){var M=y?r:u(r,_.encoder,v,"key",p);return[h(M)+"="+h(u(w,_.encoder,v,"value",p))]}return[h(r)+"="+h(String(w))]}var B=[];if(typeof w>"u")return B;var U;if(n==="comma"&&ee(w))y&&u&&(w=St.maybeMap(w,u)),U=[{value:w.length>0?w.join(",")||null:void 0}];else if(ee(c))U=c;else{var z=Object.keys(w);U=d?z.sort(d):z}var he=l?r.replace(/\./g,"%2E"):r,H=o&&ee(w)&&w.length===1?he+"[]":he;if(i&&ee(w)&&w.length===0)return H+"[]";for(var V=0;V"u"?e.encodeDotInKeys===!0?!0:_.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:_.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:_.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?_.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:_.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:_.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:_.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:_.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:_.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:_.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:_.strictNullHandling}},Iu=function(t,e){var r=t,n=_u(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):ee(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a=gi[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=hi(),c=0;c0?m+f:""},Ie=pi,Ir=Object.prototype.hasOwnProperty,Tu=Array.isArray,C={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Ie.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ku=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},yi=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Du="utf8=%26%2310003%3B",Fu="utf8=%E2%9C%93",ju=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l-1&&(p=Tu(p)?[p]:p);var h=Ir.call(n,m);h&&r.duplicates==="combine"?n[m]=Ie.combine(n[m],p):(!h||r.duplicates==="last")&&(n[m]=p)}return n},Mu=function(t,e,r,n){for(var o=n?e:yi(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&o===""?[]:[].concat(o);else{s=r.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:o}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},Bu=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(i),u=l?i.slice(0,l.index):i,c=[];if(u){if(!n.plainObjects&&Ir.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&(l=a.exec(i))!==null&&d"u"?C.charset:e.charset,n=typeof e.duplicates>"u"?C.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:C.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:C.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:C.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:C.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:C.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:C.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:C.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:C.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:C.decoder,delimiter:typeof e.delimiter=="string"||Ie.isRegExp(e.delimiter)?e.delimiter:C.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:C.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:C.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:C.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:C.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:C.strictNullHandling}},zu=function(t,e){var r=Uu(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?ju(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||Gu,this.options=r,this.debug=r.debug}log(){for(var e=arguments.length,r=new Array(e),n=0;n{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(e,r){if(this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e].delete(r)}}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o{let[a,l]=s;for(let u=0;u{let[a,l]=s;for(let u=0;u{t=n,e=o});return r.resolve=t,r.reject=e,r}function Yn(t){return t==null?"":""+t}function Ju(t,e,r){t.forEach(n=>{e[n]&&(r[n]=e[n])})}const Yu=/###/g;function Ge(t,e,r){function n(a){return a&&a.indexOf("###")>-1?a.replace(Yu,"."):a}function o(){return!t||typeof t=="string"}const i=typeof e!="string"?e:e.split(".");let s=0;for(;s":">",'"':""","'":"'","/":"/"};function ec(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>Zu[e]):t}class tc{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const rc=[" ",",","?","!",";"],nc=new tc(20);function oc(t,e,r){e=e||"",r=r||"";const n=rc.filter(s=>e.indexOf(s)<0&&r.indexOf(s)<0);if(n.length===0)return!0;const o=nc.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(t);if(!i){const s=t.indexOf(r);s>0&&!o.test(t.substring(0,s))&&(i=!0)}return i}function Tr(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const n=e.split(r);let o=t;for(let i=0;i-1&&l0?t.replace("_","-"):t}class Xn extends Bt{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,r],n&&(Array.isArray(n)?a.push(...n):typeof n=="string"&&i?a.push(...n.split(i)):a.push(n)));const l=Lt(this.data,a);return!l&&!r&&!n&&e.indexOf(".")>-1&&(e=a[0],r=a[1],n=a.slice(2).join(".")),l||!s||typeof n!="string"?l:Tr(this.data&&this.data[e]&&this.data[e][r],n,i)}addResource(e,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[e,r];n&&(a=a.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(a=e.split("."),o=r,r=a[1]),this.addNamespaces(r),Qn(this.data,a,o),i.silent||this.emit("added",e,r,n,o)}addResources(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(typeof n[i]=="string"||Array.isArray(n[i]))&&this.addResource(e,r,i,n[i],{silent:!0});o.silent||this.emit("added",e,r,n)}addResourceBundle(e,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,r];e.indexOf(".")>-1&&(a=e.split("."),o=n,n=r,r=a[1]),this.addNamespaces(r);let l=Lt(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?vi(l,n,i):l={...l,...n},Qn(this.data,a,l),s.silent||this.emit("added",e,r,n)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,r)}:this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var bi={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,o){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,r,n,o))}),e}};const Zn={};class Ct extends Bt{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ju(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ne.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,r);return n&&n.res!==void 0}extractFromKey(e,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const s=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!oc(e,n,o);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const u=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(o)}return typeof i=="string"&&(i=[i]),{key:e,namespaces:i}}translate(e,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],r),l=a[a.length-1],u=r.lng||this.language,c=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const S=r.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${S}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${S}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s}const d=this.resolve(e,r);let f=d&&d.res;const m=d&&d.usedKey||s,p=d&&d.exactUsedKey||s,h=Object.prototype.toString.apply(f),y=["[object Number]","[object Function]","[object RegExp]"],v=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&y.indexOf(h)<0&&!(typeof v=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,f,{...r,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=S,d.usedParams=this.getUsedParamsDetails(r),d):S}if(i){const S=Array.isArray(f),A=S?[]:{},P=S?p:m;for(const E in f)if(Object.prototype.hasOwnProperty.call(f,E)){const M=`${P}${i}${E}`;A[E]=this.translate(M,{...r,joinArrays:!1,ns:a}),A[E]===M&&(A[E]=f[E])}f=A}}else if(b&&typeof v=="string"&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,r,n));else{let S=!1,A=!1;const P=r.count!==void 0&&typeof r.count!="string",E=Ct.hasDefaultValue(r),M=P?this.pluralResolver.getSuffix(u,r.count,r):"",B=r.ordinal&&P?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",U=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),z=U&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${M}`]||r[`defaultValue${B}`]||r.defaultValue;!this.isValidLookup(f)&&E&&(S=!0,f=z),this.isValidLookup(f)||(A=!0,f=s);const H=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:f,V=E&&z!==f&&this.options.updateMissing;if(A||S||V){if(this.logger.log(V?"updateKey":"missingKey",u,l,s,V?z:f),i){const F=this.resolve(s,{...r,keySeparator:!1});F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let K=[];const Y=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Y&&Y[0])for(let F=0;F{const fn=E&&ie!==f?ie:H;this.options.missingKeyHandler?this.options.missingKeyHandler(F,l,Q,fn,V,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(F,l,Q,fn,V,r),this.emit("missingKey",F,l,Q,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(F=>{const Q=this.pluralResolver.getSuffixes(F,r);U&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Q.indexOf(`${this.options.pluralSeparator}zero`)<0&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(ie=>{Se([F],s+ie,r[`defaultValue${ie}`]||z)})}):Se(K,s,z))}f=this.extendTranslation(f,e,r,d,n),A&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(A||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,S?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(r),d):f}extendTranslation(e,r,n,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof e=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=e.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,n.lng||this.language,n),u){const f=e.match(this.interpolator.nestingRegexp),m=f&&f.length;c1&&arguments[1]!==void 0?arguments[1]:{},n,o,i,s,a;return typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(l,r),c=u.key;o=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",m=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),p=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",h=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(y=>{this.isValidLookup(n)||(a=y,!Zn[`${h[0]}-${y}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Zn[`${h[0]}-${y}`]=!0,this.logger.warn(`key "${o}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(v=>{if(this.isValidLookup(n))return;s=v;const b=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,c,v,y,r);else{let S;f&&(S=this.pluralResolver.getSuffix(v,r.count,r));const A=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(b.push(c+S),r.ordinal&&S.indexOf(P)===0&&b.push(c+S.replace(P,this.options.pluralSeparator)),m&&b.push(c+A)),p){const E=`${c}${this.options.contextSeparator}${r.context}`;b.push(E),f&&(b.push(E+S),r.ordinal&&S.indexOf(P)===0&&b.push(E+S.replace(P,this.options.pluralSeparator)),m&&b.push(E+A))}}let w;for(;w=b.pop();)this.isValidLookup(n)||(i=w,n=this.getResource(v,y,w,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,r,n,o):this.resourceStore.getResource(e,r,n,o)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&typeof e.replace!="string";let o=n?e.replace:e;if(n&&typeof e.count<"u"&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const i of r)delete o[i]}return o}static hasDefaultValue(e){const r="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r===n.substring(0,r.length)&&e[n]!==void 0)return!0;return!1}}function gr(t){return t.charAt(0).toUpperCase()+t.slice(1)}class eo{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ne.create("languageUtils")}getScriptPartFromCode(e){if(e=Rt(e),!e||e.indexOf("-")<0)return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=Rt(e),!e||e.indexOf("-")<0)return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=gr(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=gr(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=gr(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&e.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Array.isArray(e))return e;if(!r)return e.default||[];let n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}toResolveHierarchy(e,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],e),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):typeof e=="string"&&i(this.formatLanguageCode(e)),n.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let ic=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],sc={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const ac=["v1","v2","v3"],lc=["v4"],to={zero:0,one:1,two:2,few:3,many:4,other:5};function uc(){const t={};return ic.forEach(e=>{e.lngs.forEach(r=>{t[r]={numbers:e.nr,plurals:sc[e.fc]}})}),t}class cc{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=r,this.logger=ne.create("pluralResolver"),(!this.options.compatibilityJSON||lc.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=uc()}addRule(e,r){this.rules[e]=r}getRule(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Rt(e==="dev"?"en":e),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(o=>`${r}${o}`)}getSuffixes(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,i)=>to[o]-to[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(e,o,r)):[]}getSuffix(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(e,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,r){const n=e.noAbs?e.plurals(r):e.plurals(Math.abs(r));let o=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!ac.includes(this.options.compatibilityJSON)}}function ro(t,e,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Xu(t,e,r);return!i&&o&&typeof r=="string"&&(i=Tr(t,r,n),i===void 0&&(i=Tr(e,r,n))),i}class fc{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ne.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(r=>r),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:m,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:y,maxReplaces:v,alwaysFormat:b}=e.interpolation;this.escape=r!==void 0?r:ec,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Pe(i):s||"{{",this.suffix=a?Pe(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?Pe(f):m||Pe("$t("),this.nestingSuffix=p?Pe(p):h||Pe(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=v||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,r,n,o){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const b=ro(r,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,n,{...o,...r,interpolationkey:p}):b}const h=p.split(this.formatSeparator),y=h.shift().trim(),v=h.join(this.formatSeparator).trim();return this.format(ro(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),v,n,{...o,...r,interpolationkey:y})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(a=0;i=p.regex.exec(e);){const h=i[1].trim();if(s=c(h),s===void 0)if(typeof d=="function"){const v=d(e,i,o);s=typeof v=="string"?v:""}else if(o&&Object.prototype.hasOwnProperty.call(o,h))s="";else if(f){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=Yn(s));const y=p.safeValue(s);if(e=e.replace(i[0],y),f?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const m=f.match(/'/g),p=f.match(/"/g);(m&&m.length%2===0&&!p||p.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),u&&(s={...u,...s})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,h),`${l}${c}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l}for(;o=this.nestingRegexp.exec(e);){let l=[];s={...n},s=s.replace&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const c=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=c.shift(),l=c,u=!0}if(i=r(a.call(this,o[1].trim(),s),s),i&&o[0]===e&&typeof i!="string")return i;typeof i!="string"&&(i=Yn(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),e=e.replace(o[0],i),this.regexp.lastIndex=0}return e}}function dc(t){let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);e==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):e==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();r[c]||(r[c]=u),u==="false"&&(r[c]=!1),u==="true"&&(r[c]=!0),isNaN(u)||(r[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:r}}function $e(t){const e={};return function(n,o,i){const s=o+JSON.stringify(i);let a=e[s];return a||(a=t(Rt(o),i),e[s]=a),a(n)}}class pc{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ne.create("formatter"),this.options=e,this.formats={number:$e((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return i=>o.format(i)}),currency:$e((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>o.format(i)}),datetime:$e((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return i=>o.format(i)}),relativetime:$e((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return i=>o.format(i,n.range||"day")}),list:$e((r,n)=>{const o=new Intl.ListFormat(r,{...n});return i=>o.format(i)})},this.init(e)}init(e){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=$e(r)}format(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=dc(l);if(this.formats[u]){let d=a;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},m=f.locale||f.lng||o.locale||o.lng||n;d=this.formats[u](a,m,{...c,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},e)}}function hc(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class gc extends Bt{constructor(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=ne.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(e,r,n,o){const i={},s={},a={},l={};return e.forEach(u=>{let c=!0;r.forEach(d=>{const f=`${u}|${d}`;!n.reload&&this.store.hasResourceBundle(u,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,c=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,r,n){const o=e.split("|"),i=o[0],s=o[1];r&&this.emit("failedLoading",i,s,r),n&&this.store.addResourceBundle(i,s,n,void 0,void 0,{skipCopy:!0}),this.state[e]=r?-1:2;const a={};this.queue.forEach(l=>{Qu(l.loaded,[i],s),hc(l,e),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:n,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&o{this.read.call(this,e,r,n,o+1,i*2,s)},i);return}s(u,c)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const u=l(e,r);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(e,r,a)}prepareLoading(e,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof r=="string"&&(r=[r]);const i=this.queueLoad(e,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,r,n){this.prepareLoading(e,r,{},n)}reload(e,r,n){this.prepareLoading(e,r,{reload:!0},n)}loadOne(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,a),this.loaded(e,s,a)})}saveMissing(e,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,r,n,o,l):c=u(e,r,n,o),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(e,r,n,o,a,l)}!e||!e[0]||this.store.addResource(e[0],r,n,o)}}}function no(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let r={};if(typeof e[1]=="object"&&(r=e[1]),typeof e[1]=="string"&&(r.defaultValue=e[1]),typeof e[2]=="string"&&(r.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(o=>{r[o]=n[o]})}return r},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function oo(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function ct(){}function mc(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(r=>{typeof t[r]=="function"&&(t[r]=t[r].bind(t))})}class Ye extends Bt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=oo(e),this.services={},this.logger=ne,this.modules={external:[]},mc(this),r&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(){var e=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=no();this.options={...o,...this.options,...oo(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?ne.init(i(this.modules.logger),this.options):ne.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=pc);const d=new eo(this.options);this.store=new Xn(this.options.resources,this.options);const f=this.services;f.logger=ne,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new cc(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new fc(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new gc(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(m){for(var p=arguments.length,h=new Array(p>1?p-1:0),y=1;y1?p-1:0),y=1;y{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ct),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=Ue(),u=()=>{const c=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct;const o=typeof e=="string"?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(e,r,n){const o=Ue();return e||(e=this.languages),r||(r=this.options.ns),n||(n=ct),this.services.backendConnector.reload(e,r,i=>{o.resolve(),n(i)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&bi.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,r){var n=this;this.isLanguageChangingTo=e;const o=Ue();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),o}getFixedT(e,r,n){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d`${l.keyPrefix}${f}${p}`):m=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,o.t(m,l)};return typeof e=="string"?i.lng=e:i.lngs=e,i.ns=r,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(r.precheck){const a=r.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,e)&&(!o||s(i,e)))}loadNamespaces(e,r){const n=Ue();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(e,r){const n=Ue();typeof e=="string"&&(e=[e]);const o=this.options.preload||[],i=e.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{n.resolve(),r&&r(s)}),n):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new eo(no());return r.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Ye(e,r)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},i=new Ye(o);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Xn(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Ct(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;ct.split(",").map((e,r)=>{e=e.trim();const n=e.replace(/([&*]|\+\+)/g,""),o=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return Fr(n,o,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),Array.isArray(o),r===0)});function bc(t,e,r,n){const o=t.db.createObjectStore(e,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return n.forEach(i=>Dr(o,i)),o}function Dr(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function Fr(t,e,r,n,o,i,s){return{name:t,keyPath:e,unique:r,multi:n,auto:o,compound:i,src:(r&&!s?"&":"")+(n?"*":"")+(o?"++":"")+wi(e)}}function Si(t,e,r){return{name:t,primKey:e,indexes:r,mappedClass:null,idxByName:wc(r,n=>[n.name,n])}}function xi(t,e){const r={};return[...t.objectStoreNames].forEach(o=>{const i=e.objectStore(o);let s=i.keyPath;const a=Fr(wi(s),s||"",!1,!1,!!i.autoIncrement,s&&typeof s!="string",!0),l=[];for(let c=0;c0||a.add.length>0||a.change.length>0)&&n.change.push(a)}}}return n}function wc(t,e){return t.reduce((r,n,o)=>{var i=e(n,o);return i&&(r[i[0]]=i[1]),r},{})}function io(t,e,r,n){const o=xi(e,r),i={};return Object.keys(t).forEach(a=>{const[l,...u]=vc(t[a]);i[a]=Si(a,l,u)}),Oi(o,i,n)}function Sc(t,e,r){t.add.forEach(n=>{bc(r,n[0],n[1].primKey,n[1].indexes)}),t.change.forEach(n=>{if(n.recreate)throw"Not yet support for changing primary key";{const o=r.objectStore(n.name);n.add.forEach(i=>Dr(o,i)),n.change.forEach(i=>{o.deleteIndex(i.name),Dr(o,i)}),n.del.forEach(i=>o.deleteIndex(i))}}),t.del.forEach(n=>{e.deleteObjectStore(n)})}function xc(t){const e=new Map;return{idbOpen:async(o,{store:i,incrementalUpdate:s}={})=>{if(!o||typeof o!="string")return Promise.reject(new TypeError("dbName must be a string"));let a=e.get(o);if(a)try{return await c(await a)}catch(f){if(e.delete(o),!(f instanceof Error&&Object.prototype.toString.call(f)==="[object DOMException]"&&f.message.indexOf("The database connection is closing.")!==-1))return Promise.reject(f)}let l=d();return e.set(o,l),l.catch(()=>{l===e.get(o)&&e.delete(o)}),l;function u(f,m){const p=function(h){var v,b,w;const y=io(h,f,m,s);return!((v=y.add)!=null&&v.length||(b=y.change)!=null&&b.length||(w=y.del)!=null&&w.length)};switch(typeof i){case"string":{const[h,y]=i.split("|");return p({[h]:y||"++"})}case"function":try{return typeof i.call(this,f,m)!="function"}catch(h){throw h}case"object":if(i)return p(i);default:return!0}}function c(f){if(u(f,f.objectStoreNames.length?f.transaction([...f.objectStoreNames],"readonly"):void 0))return Promise.resolve(f);{let m=f.version+1;return d(m)}}function d(f){return new Promise((m,p)=>{let h=t.indexedDB.open(o,f);h.onerror=function(y){p(this.error)},h.onupgradeneeded=function(y){var w,S,A;const v=this.result,b=this.transaction;try{switch(typeof i){case"function":{const P=()=>i.call(this,v,b),E=()=>xi(v,b);let M,B=E();for(;typeof(M=P())=="function";){M.call(this,v,b,y);const U=E(),z=Oi(B,U,!1);if(B=U,!((w=z.add)!=null&&w.length||(S=z.change)!=null&&S.length||(A=z.del)!=null&&A.length))throw new Error('Parameter "store" contradicts "upgradeneeded"')}break}case"string":case"object":{let P;if(typeof i=="string"){const[M,B]=i.split("|");P={[M]:B||"++"}}else P=i;const E=io(P,v,b,s);Sc(E,v,b);break}default:if(!u.call(this,v,b))throw new TypeError('Missing or wrong type of "upgradeneeded" parameter')}}catch(P){console.error(P),b.abort(),v.close(),p(P)}},h.onsuccess=function(y){const v=this.result;v.onversionchange=function(){v.close(),e.delete(o)},v.onclose=function(){e.delete(o)},e.set(o,v);try{m(c(v))}catch(b){p(b)}},h.onblocked=function(y){var b;let v=e.get(o);v&&((b=v==null?void 0:v.close)==null||b.call(v))}})}},idbDelete:o=>new Promise((i,s)=>{let a=t.indexedDB.deleteDatabase(o);a.onerror=function(l){s(this.error)},a.onsuccess=function(l){i(null)}})}}const Oc=xc(window),{idbOpen:Ei,idbDelete:np}=Oc,Ec=(t,e)=>e.some(r=>t instanceof r);let so,ao;function Pc(){return so||(so=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function $c(){return ao||(ao=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Pi=new WeakMap,jr=new WeakMap,$i=new WeakMap,mr=new WeakMap,un=new WeakMap;function Ac(t){const e=new Promise((r,n)=>{const o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(le(t.result)),o()},s=()=>{n(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return e.then(r=>{r instanceof IDBCursor&&Pi.set(r,t)}).catch(()=>{}),un.set(e,t),e}function Lc(t){if(jr.has(t))return;const e=new Promise((r,n)=>{const o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});jr.set(t,e)}let Mr={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return jr.get(t);if(e==="objectStoreNames")return t.objectStoreNames||$i.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return le(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Rc(t){Mr=t(Mr)}function Cc(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(yr(this),e,...r);return $i.set(n,e.sort?e.sort():[e]),le(n)}:$c().includes(t)?function(...e){return t.apply(yr(this),e),le(Pi.get(this))}:function(...e){return le(t.apply(yr(this),e))}}function Nc(t){return typeof t=="function"?Cc(t):(t instanceof IDBTransaction&&Lc(t),Ec(t,Pc())?new Proxy(t,Mr):t)}function le(t){if(t instanceof IDBRequest)return Ac(t);if(mr.has(t))return mr.get(t);const e=Nc(t);return e!==t&&(mr.set(t,e),un.set(e,t)),e}const yr=t=>un.get(t);function _c(t,e,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){const s=indexedDB.open(t,e),a=le(s);return n&&s.addEventListener("upgradeneeded",l=>{n(le(s.result),l.oldVersion,l.newVersion,le(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const Ic=["get","getKey","getAll","getAllKeys","count"],Tc=["put","add","delete","clear"],vr=new Map;function lo(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(vr.get(e))return vr.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,o=Tc.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||Ic.includes(r)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),o&&l.done]))[0]};return vr.set(e,i),i}Rc(t=>({...t,get:(e,r,n)=>lo(e,r)||t.get(e,r,n),has:(e,r)=>!!lo(e,r)||t.has(e,r)}));const Br="GOST-UI",cn=async t=>le(await Ei(Br,{store:t})),kc=async t=>{const e=await Ei(Br),r=e.version+1;e.close(),_c(Br,r,{upgrade:(n,o,i,s,a)=>{t(s)}})},fe="localCache",ze="savedServer";class G{constructor(e){X(this,"dsName",fe);X(this,"type");X(this,"_getIdb",()=>cn(`${this.dsName}|++_id_,_key_,_type_,[_type_+_key_],[name+_type_+_key_]`));X(this,"_getTransaction",async()=>{const r=(await this._getIdb()).transaction(this.dsName,"readwrite"),n=r.objectStore(this.dsName);return{transaction:r,store:n}});X(this,"getList",async()=>(await this._getIdb()).getAllFromIndex(this.dsName,"[_type_+_key_]",IDBKeyRange.only([this.type,this.key])));X(this,"get",async e=>(await this._getIdb()).getFromIndex(this.dsName,"[name+_type_+_key_]",IDBKeyRange.only([e,this.type,this.key])));X(this,"add",async e=>{await(await this._getIdb()).add(this.dsName,{...e,_key_:this.key,_type_:this.type})});X(this,"put",async(e,r)=>{if(r._id_)await(await this._getIdb()).put(this.dsName,r);else{const{transaction:n,store:o}=await this._getTransaction(),i=await o.index("[name+_type_+_key_]").get(IDBKeyRange.only([e,this.type,this.key]));return r._id_=i._id_,await o.put({...i,...r,_id_:i._id_}),n.done}});X(this,"delete",async e=>{const{transaction:r,store:n}=await this._getTransaction(),o=await n.index("[name+_type_+_key_]").get(IDBKeyRange.only([e,this.type,this.key]));return await n.delete(o._id_),r.done});this.type=e}get key(){var e;return(e=Ai())==null?void 0:e.addr}}const Dc=new G("admissions"),Fc=new G("authers"),jc=new G("bypasses"),Mc=new G("chains"),Bc=new G("climiters"),Uc=new G("limiters"),zc=new G("rlimiters"),Vc=new G("hops"),Kc=new G("hosts"),Hc=new G("ingresses"),qc=new G("resolvers"),Wc=new G("services");class Fe{static _getIdb(){return cn({[ze]:"addr",[fe]:"++_id_,_key_"})}static async getAllServer(){return(await this._getIdb()).getAll(ze)}static async getServer(e){return(await this._getIdb()).get(ze,e)}static async setServer(e){await(await this._getIdb()).put(ze,e)}static async deleteServer(e,r=!1){await(await this._getIdb()).delete(ze,e),r&&await this.deleteCacheConfig(e)}static async deleteCacheConfig(e){const o=await(await this._getIdb()).transaction([fe],"readwrite").objectStore(fe),i=await o.index("_key_").getAllKeys(IDBKeyRange.only(e));await o.delete(i)}static async getAllCacheConfig(e){const r=await this._getIdb();return e?r.getAllFromIndex(fe,"_key_",IDBKeyRange.only(e)):r.getAll(fe)}}const Gc=async()=>{const t=await cn(`${fe}|++_id_`),e=t.objectStoreNames,r=/^services-/,n="services",o=[...e].filter(s=>r.test(s)),i=t.transaction(e,"readwrite");for(const s of o){const a=await i.objectStore(s).getAll();let l=decodeURIComponent(s.replace(/^services-/,""));/^(https?:)?\/\//.test(l)?/^\/\//.test(l)&&(l=`${location.protocol}`+l):l=`${location.protocol}//`+l,a.length>0&&await a.map(u=>i.objectStore(fe).add({...u,_type_:n,_key_:l})),await i.objectStore(s).clear()}return await i.done,o.length&&kc(s=>{const a=[...s.objectStoreNames],l=/^services-/;[...a.filter(c=>l.test(c)),"services","localConfigStore"].forEach(c=>{a.includes(c)&&s.db.deleteObjectStore(c)})}),o.length>0},op=Object.freeze(Object.defineProperty({__proto__:null,GostCommit:G,ServerComm:Fe,admissions:Dc,authers:Fc,bypasses:jc,chains:Mc,climiters:Bc,fixOldCacheConfig:Gc,hops:Vc,hosts:Kc,ingresses:Hc,limiters:Uc,resolvers:qc,rlimiters:zc,services:Wc},Symbol.toStringTag,{value:"Module"})),ve="__GOST_SERVER__",ft="__USE_SERVER__",br="__SETTINGS__",be=Tt();Object.defineProperty(window,ve,{get:be.get,set:be.set});const dt=Tt(),pt=Tt(),Ur=Tt(()=>{const t=localStorage.getItem(br)||"{}";try{return JSON.parse(t)}catch(e){return console.error(e),{}}},t=>{t==null&&localStorage.removeItem(br),localStorage.setItem(br,JSON.stringify(t))}),Ai=()=>be.get(),Jc=async()=>{if(window[ve])return!0;const t=Wu.parse(location.search,{ignoreQueryPrefix:!0});t.use&&(window[ft]=t.use,window.history.replaceState(null,"",location.pathname),Li());const e=sessionStorage.getItem(ve);if(e){const r=JSON.parse(e);return await zr(r),!0}if(window[ft]){const r=await Qc(window[ft]);r&&(r.isLocal=!0,await zr(r),r&&(r.time=Date.now(),Ri(window[ft],r)))}},Yc=async t=>{const e=t.addr.replace(/\/+$/,"");return Qo.get(e+"/config",{auth:t.auth}).catch(r=>{throw"verify error"})},zr=async(t,e)=>{try{await Yc(t),window[ve]=t,window.sessionStorage.setItem(ve,JSON.stringify(t)),e&&(t.isLocal=!0,window[ve]=t,await Ri(t.addr,t))}catch(r){throw r==="verify error"&&(Li(),wr.error((r==null?void 0:r.message)||kr("msg.connectionFailed"))),r}},Li=async()=>{be.set(null),window.sessionStorage.removeItem(ve)},Ri=async(t,e)=>Fe.setServer({...e,isLocal:!0,time:Date.now()}),Qc=async t=>Fe.getServer(t),Xc=async t=>Fe.deleteServer(t),Zc=async()=>Fe.getAllServer(),we=Qo.create();we.interceptors.request.use(t=>{const e=Ai();return t.baseURL=e==null?void 0:e.addr,t.auth=e==null?void 0:e.auth,t});we.interceptors.response.use(t=>{var e;return t.config.method!=="get"&&!((e=t.config)!=null&&e.noMsg)&&wr.success(kr("msg.success")),t.data?t.data:t},t=>{var n,o;const{response:e}=t||{};let r=t.message||kr("msg.unknown");throw(n=e==null?void 0:e.data)!=null&&n.msg&&(r=(o=e==null?void 0:e.data)==null?void 0:o.msg),wr.error(r),t});const T={config:"/config",admissions:"/config/admissions",authers:"/config/authers",bypasses:"/config/bypasses",chains:"/config/chains",climiters:"/config/climiters",limiters:"/config/limiters",rlimiters:"/config/rlimiters",hops:"/config/hops",hosts:"/config/hosts",ingresses:"/config/ingresses",observers:"/config/observers",resolvers:"/config/resolvers",sds:"/config/sds",services:"/config/services"},j=t=>({post:e=>we.post(t,e),put:(e,r)=>we.put(`${t}/${e}`,r),delete:e=>we.delete(`${t}/${e}`)}),ef=j(T.admissions),tf=j(T.authers),rf=j(T.bypasses),nf=j(T.chains),of=j(T.climiters),sf=j(T.limiters),af=j(T.rlimiters),lf=j(T.hops),uf=j(T.hosts),cf=j(T.ingresses),ff=j(T.resolvers),df=j(T.services),pf=j(T.sds),hf=j(T.observers),Vr=t=>we.get(T.config),gf=(t="json",e)=>we.post(T.config,null,{params:{format:t,path:e},noMsg:!0}),ip=Object.freeze(Object.defineProperty({__proto__:null,admissions:ef,apis:T,authers:tf,bypasses:rf,chains:nf,climiters:of,getConfig:Vr,getRESTfulApi:j,hops:lf,hosts:uf,ingresses:cf,limiters:sf,observers:hf,resolvers:ff,rlimiters:af,saveCofnig:gf,sds:pf,services:df},Symbol.toStringTag,{value:"Module"}));var mf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"};const yf=mf;var vf=function(e,r){return O.createElement(Qe,Xe({},e,{ref:r,icon:yf}))},bf=O.forwardRef(vf);const wf=bf;var Sf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const xf=Sf;var Of=function(e,r){return O.createElement(Qe,Xe({},e,{ref:r,icon:xf}))},Ef=O.forwardRef(Of);const Pf=Ef;var $f={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"};const Af=$f;var Lf=function(e,r){return O.createElement(Qe,Xe({},e,{ref:r,icon:Af}))},Rf=O.forwardRef(Lf);const Cf=Rf;var Nf={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"};const _f=Nf;var If=function(e,r){return O.createElement(Qe,Xe({},e,{ref:r,icon:_f}))},Tf=O.forwardRef(If);const kf=Tf;var Df={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const Ff=Df;var jf=function(e,r){return O.createElement(Qe,Xe({},e,{ref:r,icon:Ff}))},Mf=O.forwardRef(jf);const Bf=Mf;function Uf(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),r=0;r()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}};function co(t,e,r){t.loadNamespaces(e,Ci(t,r))}function fo(t,e,r,n){typeof r=="string"&&(r=[r]),r.forEach(o=>{t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,Ci(t,n))}function zf(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=e.languages[0],o=e.options?e.options.fallbackLng:!1,i=e.languages[e.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const u=e.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!s(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(n,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||s(n,t)&&(!o||s(i,t)))}function Vf(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(Kr("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:r.lng,precheck:(o,i)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!i(o.isLanguageChangingTo,t))return!1}}):zf(t,e,r)}const Kf=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Hf={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},qf=t=>Hf[t],Wf=t=>t.replace(Kf,qf);let Hr={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Wf};function Gf(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hr={...Hr,...t}}function Jf(){return Hr}let Ni;function Yf(t){Ni=t}function Qf(){return Ni}const Xf={type:"3rdParty",init(t){Gf(t.options.react),Yf(t)}},Zf=O.createContext();class ed{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const td=(t,e)=>{const r=O.useRef();return O.useEffect(()=>{r.current=e?r.current:t},[t,e]),r.current};function _i(t,e,r,n){return t.getFixedT(e,r,n)}function rd(t,e,r,n){return O.useCallback(_i(t,e,r,n),[t,e,r,n])}function Ut(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=e,{i18n:n,defaultNS:o}=O.useContext(Zf)||{},i=r||n||Qf();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new ed),!i){Kr("You will need to pass in an i18next instance by using initReactI18next");const S=(P,E)=>typeof E=="string"?E:E&&typeof E=="object"&&typeof E.defaultValue=="string"?E.defaultValue:Array.isArray(P)?P[P.length-1]:P,A=[S,{},!1];return A.t=S,A.i18n={},A.ready=!1,A}i.options.react&&i.options.react.wait!==void 0&&Kr("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...Jf(),...i.options.react,...e},{useSuspense:a,keyPrefix:l}=s;let u=t||o||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(S=>Vf(S,i,s)),d=rd(i,e.lng||null,s.nsMode==="fallback"?u:u[0],l),f=()=>d,m=()=>_i(i,e.lng||null,s.nsMode==="fallback"?u:u[0],l),[p,h]=O.useState(f);let y=u.join();e.lng&&(y=`${e.lng}${y}`);const v=td(y),b=O.useRef(!0);O.useEffect(()=>{const{bindI18n:S,bindI18nStore:A}=s;b.current=!0,!c&&!a&&(e.lng?fo(i,e.lng,u,()=>{b.current&&h(m)}):co(i,u,()=>{b.current&&h(m)})),c&&v&&v!==y&&b.current&&h(m);function P(){b.current&&h(m)}return S&&i&&i.on(S,P),A&&i&&i.store.on(A,P),()=>{b.current=!1,S&&i&&S.split(" ").forEach(E=>i.off(E,P)),A&&i&&A.split(" ").forEach(E=>i.store.off(E,P))}},[i,y]),O.useEffect(()=>{b.current&&c&&h(f)},[i,l,c]);const w=[p,i,c];if(w.t=p,w.i18n=i,w.ready=c,c||!c&&!a)return w;throw new Promise(S=>{e.lng?fo(i,e.lng,u,()=>S()):co(i,u,()=>S())})}const nd=()=>{const{t}=Ut(),[e,r]=O.useState(),n=O.useCallback(async()=>Zc().then(o=>o.sort((i,s)=>{const a=i.time||0;return(s.time||0)-a})).then(o=>r(o)),[]);return O.useEffect(()=>{n()},[]),x.jsx(x.Fragment,{children:e&&(e==null?void 0:e.length)>0?x.jsxs(vo,{direction:"vertical",style:{display:"flex"},children:[x.jsx("div",{children:t("home.quickConnect")}),x.jsx(Hi,{gutter:10,children:e.map(o=>x.jsx(qi,{span:12,title:o.addr,style:{overflow:"hidden",textOverflow:"ellipsis"},children:x.jsxs(Wi,{gap:5,style:{overflow:"hidden"},children:[x.jsx("a",{style:{overflow:"hidden",textOverflow:"ellipsis",flex:"auto"},href:`?use=${o.addr}`,children:o.addr}),x.jsx(Gi,{style:{color:"red"},onClick:async()=>{await Xc(o.addr),n()}})]})},o.addr))})]}):null})},od=()=>{const[t,e]=O.useState(window.matchMedia("(prefers-color-scheme: dark)").matches);return O.useEffect(()=>{const r=window.matchMedia("(prefers-color-scheme: dark)"),n=o=>{e(o.matches)};return r.addEventListener("change",n),()=>{r.removeEventListener("change",n)}},[]),t},Ii=()=>{const t=od(),{theme:e}=Ur();return O.useMemo(()=>!e||e==="system"?t:e==="dark",[e,t])},id=t=>{const e=Ur(),r=Ii(),n=r?x.jsx(Cf,{}):x.jsx(kf,{});return x.jsx(Wr,{shape:"circle",icon:n,...t,onClick:()=>{const o={...e};o.theme=r?"light":"dark",Ur.set(o)}})},sd=t=>{const{i18n:e}=Ut(),[r,n]=O.useState(!1);return window.i18n=e,x.jsx(Wr,{loading:r,shape:"circle",...t,onClick:()=>{n(!0),e.changeLanguage(e.resolvedLanguage==="en"?"zh-cn":"en").finally(()=>n(!1))},children:r?"":e.resolvedLanguage==="en"?"中":"En"})},ad=()=>{const{t,i18n:e}=Ut();return x.jsxs(x.Fragment,{children:[x.jsxs(xe,{className:"home-form",size:"large",layout:"horizontal",initialValues:{baseURL:"http://",save:!0},onFinish:r=>{let n=r.baseURL;return/^(https?:)?\/\//.test(n)?/^\/\//.test(n)&&(n=`${location.protocol}`+n):n=`${location.protocol}//`+n,zr({addr:n,auth:{username:r.username,password:r.password}},r.save)},children:[x.jsx("h1",{children:t("base.title")}),x.jsx("h2",{children:t("base.description")}),x.jsx(xe.Item,{name:"baseURL",rules:[{required:!0,message:t("msg.baseURL.required")},{validator(r,n,o){n==="http://"&&o(t("msg.baseURL.required")),o()}}],children:x.jsx(Xt,{placeholder:t("placeholder.baseURL"),prefix:x.jsx(wf,{className:"prefixIcon"})})}),x.jsx(xe.Item,{name:"username",children:x.jsx(Xt,{placeholder:"username",prefix:x.jsx(Bf,{className:"prefixIcon"})})}),x.jsx(xe.Item,{name:"password",children:x.jsx(Xt.Password,{placeholder:"password",prefix:x.jsx(Pf,{className:"prefixIcon"})})}),x.jsx(xe.Item,{name:"save",valuePropName:"checked",children:x.jsx(Ji,{children:t("base.form.local")})}),x.jsx(xe.Item,{noStyle:!0,style:{marginBottom:"1em"},children:x.jsx(Wr,{block:!0,type:"primary",htmlType:"submit",children:t("base.cmd.connect")})}),x.jsx(nd,{})]}),x.jsx("div",{style:{position:"absolute",top:"1em",right:"1em"},children:x.jsxs(vo,{children:[x.jsx(id,{}),x.jsx(sd,{})]})})]})};const se=new Ro.EventEmitter;var zt={},Ti={exports:{}};(function(t){function e(r){return r&&r.__esModule?r:{default:r}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(Ti);var je=Ti.exports,Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.default=void 0;var ld={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};Vt.default=ld;var Kt={},nt={},Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.default=void 0;var ud={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};Ht.default=ud;var ot={};Object.defineProperty(ot,"__esModule",{value:!0});ot.default=void 0;const cd={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};ot.default=cd;var ki=je.default;Object.defineProperty(nt,"__esModule",{value:!0});nt.default=void 0;var fd=ki(Ht),dd=ki(ot);const Di={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},fd.default),timePickerLocale:Object.assign({},dd.default)};Di.lang.ok="确定";nt.default=Di;var pd=je.default;Object.defineProperty(Kt,"__esModule",{value:!0});Kt.default=void 0;var hd=pd(nt);Kt.default=hd.default;var qt=je.default;Object.defineProperty(zt,"__esModule",{value:!0});zt.default=void 0;var gd=qt(Vt),md=qt(Kt),yd=qt(nt),vd=qt(ot);const q="${label}不是一个有效的${type}",bd={locale:"zh-cn",Pagination:gd.default,DatePicker:yd.default,TimePicker:vd.default,Calendar:md.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:q,method:q,array:q,object:q,number:q,date:q,boolean:q,integer:q,float:q,regexp:q,email:q,url:q,hex:q},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无"}};zt.default=bd;var wd=zt;const po=qr(wd);var Wt={},Gt={};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.default=void 0;var Sd={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};Gt.default=Sd;var Jt={},it={},Yt={};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=void 0;var xd={locale:"en_GB",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"Select time",dateSelect:"Select date",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};Yt.default=xd;var st={};Object.defineProperty(st,"__esModule",{value:!0});st.default=void 0;const Od={placeholder:"Select time"};st.default=Od;var Fi=je.default;Object.defineProperty(it,"__esModule",{value:!0});it.default=void 0;var Ed=Fi(Yt),Pd=Fi(st);const $d={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Ed.default),timePickerLocale:Object.assign({},Pd.default)};it.default=$d;var Ad=je.default;Object.defineProperty(Jt,"__esModule",{value:!0});Jt.default=void 0;var Ld=Ad(it);Jt.default=Ld.default;var Qt=je.default;Object.defineProperty(Wt,"__esModule",{value:!0});Wt.default=void 0;var Rd=Qt(Gt),Cd=Qt(Jt),Nd=Qt(it),_d=Qt(st);const W="${label} is not a valid ${type}",Id={locale:"en-gb",Pagination:Rd.default,DatePicker:Nd.default,TimePicker:_d.default,Calendar:Cd.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:W,method:W,array:W,object:W,number:W,date:W,boolean:W,integer:W,float:W,regexp:W,email:W,url:W,hex:W},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};Wt.default=Id;var Td=Wt;const kd=qr(Td),Dd=Nt.createContext({}),sp=Nt.createContext({localList:[],name:""}),ap=(t,e)=>{const r=`${t}:getComm`,n=o=>{o(e)};return se.on(r,n),()=>{se.off(r,n)}},lp=t=>new Promise((e,r)=>{const n=`${t}:getComm`;se.emit(n,e)}),Fd=(t,e)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+e)))})},{slice:jd,forEach:Md}=[];function Bd(t){return Md.call(jd.call(arguments,1),e=>{if(e)for(const r in e)t[r]===void 0&&(t[r]=e[r])}),t}const ho=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Ud=(t,e,r)=>{const n=r||{};n.path=n.path||"/";const o=encodeURIComponent(e);let i=`${t}=${o}`;if(n.maxAge>0){const s=n.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(s)}`}if(n.domain){if(!ho.test(n.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${n.domain}`}if(n.path){if(!ho.test(n.path))throw new TypeError("option path is invalid");i+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i},go={create(t,e,r,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),n&&(o.domain=n),document.cookie=Ud(t,encodeURIComponent(e),o)},read(t){const e=`${t}=`,r=document.cookie.split(";");for(let n=0;n-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const s=o.substring(1).split("&");for(let a=0;a0&&s[a].substring(0,l)===e&&(r=s[a].substring(l+1))}}return r}};let Ve=null;const mo=()=>{if(Ve!==null)return Ve;try{Ve=window!=="undefined"&&window.localStorage!==null;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Ve=!1}return Ve};var Kd={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&mo())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:r}=e;r&&mo()&&window.localStorage.setItem(r,t)}};let Ke=null;const yo=()=>{if(Ke!==null)return Ke;try{Ke=window!=="undefined"&&window.sessionStorage!==null;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Ke=!1}return Ke};var Hd={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&yo())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:r}=e;r&&yo()&&window.sessionStorage.setItem(r,t)}},qd={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:r,userLanguage:n,language:o}=navigator;if(r)for(let i=0;i0?e:void 0}},Wd={name:"htmlTag",lookup(t){let{htmlTag:e}=t,r;const n=e||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},Gd={name:"path",lookup(t){var o;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?(o=r[typeof e=="number"?e:0])==null?void 0:o.replace("/",""):void 0}},Jd={name:"subdomain",lookup(t){var o,i;let{lookupFromSubdomainIndex:e}=t;const r=typeof e=="number"?e+1:1,n=typeof window<"u"&&((i=(o=window.location)==null?void 0:o.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(n)return n[r]}};function Yd(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t}}class ji{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=Bd(r,this.options||{},Yd()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(zd),this.addDetector(Vd),this.addDetector(Kd),this.addDetector(Hd),this.addDetector(qd),this.addDetector(Wd),this.addDetector(Gd),this.addDetector(Jd)}addDetector(e){return this.detectors[e.name]=e,this}detect(e){e||(e=this.options.order);let r=[];return e.forEach(n=>{if(this.detectors[n]){let o=this.detectors[n].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(r=r.concat(o))}}),r=r.map(n=>this.options.convertDetectedLanguage(n)),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(e,r){r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(e,this.options)}))}}ji.type="languageDetector";var Qd=function(e){return{type:"backend",init:function(n,o,i){},read:function(n,o,i){if(typeof e=="function"){if(e.length<3){try{var s=e(n,o);s&&typeof s.then=="function"?s.then(function(a){return i(null,a&&a.default||a)}).catch(i):i(null,s)}catch(a){i(a)}return}e(n,o,i);return}i(null,e&&e[n]&&e[n][o])}}};const Mi="en";k.use(ji).use(Xf).use(Qd((t,e)=>Fd(Object.assign({"../i18n/en.json":()=>gt(()=>import("./en-e998d6f7.js"),[],import.meta.url),"../i18n/languages.json":()=>gt(()=>import("./languages-a578aa29.js"),[],import.meta.url),"../i18n/zh.json":()=>gt(()=>import("./zh-c566da85.js"),[],import.meta.url)}),`../i18n/${t}.json`))).init({debug:!1,fallbackLng:Mi,interpolation:{escapeValue:!1}});function up(t){if(typeof t=="string"||O.isValidElement(t))return t;const e=k.resolvedLanguage;return t[e]||t[Mi]||""}const Xd=Nt.lazy(()=>gt(()=>import("./Manage-d63824ea.js"),["./Manage-d63824ea.js","./antd-15fa66a0.js"],import.meta.url)),Zd=t=>{const{locale:e,theme:r}=O.useContext(ht.ConfigContext);return O.useLayoutEffect(()=>{ht.config({theme:r,holderRender:n=>x.jsx(ht,{theme:r,children:n})})},[e,r]),x.jsx(Qi,{children:t.children})};function ep(){const t=be(),{t:e,i18n:r}=Ut(),n=dt(),o=pt(),i=Ii(),[s,a]=O.useState(!1),[l,u]=O.useState(!1),[c,d]=O.useState(po),f=O.useMemo(()=>s||l,[s,l]),m=O.useRef({update:async()=>{var p;try{a(!0),u(!0);const[h,y]=await Promise.all([Vr(),m.current.updateLocalConfig((p=be.get())==null?void 0:p.addr)]);return dt.set(h),pt.set(y),[h,y]}finally{a(!1),u(!1)}},updateLocalConfig:async p=>{try{p||pt.set(null),u(!0);const h=await Fe.getAllCacheConfig(p),y={};return h.forEach(v=>{const{_type_:b}=v;(y[b]?y[b]:y[b]=[]).push(v)}),y}finally{u(!1)}},defaultTitle:document.title});return O.useEffect(()=>{Jc();const p=async v=>{if((v==null?void 0:v.url)!==T.config)return dt.set(await Vr())},h=async()=>{var v;return pt.set(await m.current.updateLocalConfig((v=be.get())==null?void 0:v.addr))},y=m.current.update;return se.on("apiUpdate",p),se.on("localUpdate",h),se.on("update",y),()=>{se.off("apiUpdate",p),se.off("localUpdate",h),se.off("update",y)}},[]),O.useEffect(()=>{t?m.current.update().then(([p])=>{dt.set(p),document.title=t.addr.replace(/^(https?:)?\/\//,"")}):document.title=m.current.defaultTitle},[t]),O.useEffect(()=>{var p,h;i?(document.documentElement.classList.add("theme-dark"),(p=window==null?void 0:window.monaco)==null||p.editor.setTheme("vs-dark")):(document.documentElement.classList.remove("theme-dark"),(h=window==null?void 0:window.monaco)==null||h.editor.setTheme("vs"))},[i]),O.useEffect(()=>{const p=r.resolvedLanguage;d(p==="zh"?po:kd)},[r.resolvedLanguage]),x.jsx(Dd.Provider,{value:{gostConfig:n,localConfig:o,isLoading:f},children:x.jsx(ht,{theme:{algorithm:i?Yi.darkAlgorithm:void 0},locale:c,children:x.jsx(Zd,{children:x.jsx(Nt.Suspense,{fallback:"loading...",children:t?x.jsx(Xd,{}):x.jsx(ad,{})})})})})}Sr.createRoot(document.getElementById("root")).render(x.jsx(ep,{}));export{ip as A,sp as C,op as L,id as T,Ii as a,up as b,Sr as c,Dd as d,se as e,ap as f,Qf as g,lp as h,dt as i,x as j,be as k,Zc as l,Gc as m,Vr as n,Li as o,sd as p,Wu as q,Ri as r,gf as s,T as t,Ut as u}; diff --git a/assets/languages-a578aa29.js b/assets/languages-a578aa29.js new file mode 100644 index 0000000..8a53a84 --- /dev/null +++ b/assets/languages-a578aa29.js @@ -0,0 +1 @@ +const l=[{lang:"zh",label:"简体中文"},{lang:"en",label:"English"}];export{l as default}; diff --git a/assets/zh-c566da85.js b/assets/zh-c566da85.js new file mode 100644 index 0000000..e3c5d0f --- /dev/null +++ b/assets/zh-c566da85.js @@ -0,0 +1 @@ +const e="简体中文",t={title:"GOST API Manage",description:"连接API服务",form:{username:"用户名",password:"密码",local:"保存到本地",name:"名称",details:"详情"},cmd:{connect:"连接",controls:"操作",enabled:"启用",disable:"禁用",copy:"复制",edit:"修改",del:"删除"}},s={warn:"警告",deleteing:"确定要删除吗?",doubleClickEdit:"双击修改"},i={admission:{title:"准入控制器(Admission)",subTitle:"准入控制器"},auther:{title:"认证器(Auther)",subTitle:"认证器"},bypass:{title:"分流器(Bypass)",subTitle:"分流器"},chain:{title:"转发链(Chain)",subTitle:"转发链"},climiter:{title:"并发连接数限制",subTitle:""},limiter:{title:"流量速率限制",subTitle:""},rlimiter:{title:"请求速率限制",subTitle:""},hop:{title:"跳跃点(Hop)",subTitle:"跳跃点"},host:{title:"主机映射器(Hosts)",subTitle:"主机映射器"},ingress:{title:"Ingress",subTitle:"Ingress"},resolver:{title:"域名解析器(Resolver)",subTitle:"域名解析器"},service:{title:"服务(Service)",subTitle:"服务"},sd:{title:"服务发现(SD)",subTitle:"服务发现"},observer:{title:"观测器(Observer)",subTitle:"观测器"}},l={baseURL:{required:"请输入API地址"},require:"不能为空!",success:"操作成功!",unknown:"出现未知错误!",connectionFailed:"连接失败!",wordWrap:"自动换行",invalidName:"name无效",autofixName:"是否自动分配name?",autofix:"自动修正提醒",fixName:"新分配 name 为 {{name}}",formatError:"{{name}}格式错误!"},a={baseURL:"API baseURL",savePath:"默认保存到上下文目录"},o={quickConnect:"快速连接"},n={cmd:{reload:"刷新配置",save:"保存到服务器",download:"下载当前配置",logout:"退出",switch:"切换服务",new:"连接新服务"},label:{autoSave:"自动保存",format:"格式",path:"保存路径",limit:"限速限流",allConfig:"完整配置"}},r={edit:"修改 {{name}}",add:"添加 {{name}}",copied:"复制自 {{name}}"},m={default:"默认",inline:"内联"},c={template:"模板",forwarder:"转发/反代",key0:"远程端口转发"},d={language:e,base:t,text:s,modules:i,msg:l,placeholder:a,home:o,manage:n,title:r,template:m,terms:c};export{t as base,d as default,o as home,e as language,n as manage,i as modules,l as msg,a as placeholder,m as template,c as terms,s as text,r as title}; diff --git a/index.html b/index.html index 6b99fe4..916ab27 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ require.config({ paths: { vs: document.getElementById("nonaco").src.replace(/\/loader\.js/,'') } }); })(); - +