diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index 0025ed2a9..966f5bb82 100644 --- a/pilot/server/static/404.html +++ b/pilot/server/static/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/404/index.html b/pilot/server/static/404/index.html index 0025ed2a9..966f5bb82 100644 --- a/pilot/server/static/404/index.html +++ b/pilot/server/static/404/index.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/392.a6a0e6711bdba089.js b/pilot/server/static/_next/static/chunks/392.a6a0e6711bdba089.js deleted file mode 100644 index 31a443754..000000000 --- a/pilot/server/static/_next/static/chunks/392.a6a0e6711bdba089.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[392],{35392:function(e,l,a){"use strict";a.r(l),a.d(l,{default:function(){return ed}});var t=a(85893),s=a(67294),n=a(41118),r=a(16789),i=a(80837),c=a(79172),o=a(30208),d=a(40911),u=a(51610),h=a(48665),m=a(577),x=a(1375),p=e=>{let l=(0,s.useReducer)((e,l)=>({...e,...l}),{...e});return l},v=a(58301),f=a(41468),g=e=>{let{queryAgentURL:l,channel:a,queryBody:t,initHistory:n=[]}=e,[r,i]=p({history:n}),{refreshDialogList:c,chatId:o,model:d}=(0,s.useContext)(f.p),u=new AbortController;(0,s.useEffect)(()=>{n&&n.length&&i({history:n})},[n]);let h=async(e,s)=>{if(!e)return;let n=[...r.history,{role:"human",context:e}],h=n.length;i({history:n});let m={conv_uid:o,...s,...t,user_input:e,channel:a};if(!(null==m?void 0:m.conv_uid)){v.ZP.error("conv_uid 不存在,请刷新后重试");return}try{await (0,x.L)("".concat("http://127.0.0.1:5000").concat("/api"+l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m),signal:u.signal,openWhenHidden:!0,async onopen(e){if(n.length<=1){var l;c();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),null===(l=window.history)||void 0===l||l.replaceState(null,"","?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==x.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var l,a,t;if(e.data=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(a=e.data)||void 0===a?void 0:a.startsWith("[ERROR]"))i({history:[...n,{role:"view",context:null===(t=e.data)||void 0===t?void 0:t.replace("[ERROR]","")}]});else{let l=[...n];e.data&&((null==l?void 0:l[h])?l[h].context="".concat(e.data):l.push({role:"view",context:e.data,model_name:d}),i({history:l}))}}})}catch(e){console.log(e),i({history:[...n,{role:"view",context:"Sorry, We meet some error, please try agin later."}]})}};return{handleChatSubmit:h,history:r.history}},b=a(24339),j=a(14986),y=a(30322),w=a(75913),N=a(14553),Z=a(48699),_=a(13245),k=a(43458),C=a(47556),S=a(87536),P=a(39332),B=a(96486),E=a.n(B),L=a(99513),O=a(2166),M=a(50228),R=a(87547),z=a(35576),F=a(56986),U=a(93179),I=a(51792);let q={overrides:{code:e=>{let{children:l,className:a}=e;return(0,t.jsx)(U.Z,{language:"javascript",style:F.Z,children:l})},img:{props:{className:"my-2 !max-h-none"}},table:{props:{className:"my-2 border-collapse border border-slate-400 dark:border-slate-500 bg-white dark:bg-slate-800 text-sm shadow-sm"}},thead:{props:{className:"bg-slate-50 dark:bg-slate-700"}},th:{props:{className:"border border-slate-300 dark:border-slate-600 font-semibold !p-2 text-slate-900 dark:text-slate-200 !text-left"}},td:{props:{className:"border border-slate-300 dark:border-slate-700 !p-2 text-slate-500 dark:text-slate-400 !text-left"}}},wrapper:s.Fragment,namedCodesToUnicode:{amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"“"}};var A=function(e){let{content:l,isChartChat:a,onLinkClick:s}=e,{context:n,model_name:r,role:i}=l,c="view"===i;return(0,t.jsxs)("div",{className:"overflow-x-auto w-full lg:w-4/5 xl:w-3/4 mx-auto flex px-2 py-2 sm:px-4 sm:py-6 rounded-xl ".concat(c?"bg-slate-100 dark:bg-[#353539]":""),children:[(0,t.jsx)("div",{className:"mr-2 flex items-center justify-center h-7 w-7 rounded-full text-lg sm:mr-4",children:c?(0,I.A)(r)||(0,t.jsx)(M.Z,{}):(0,t.jsx)(R.Z,{})}),(0,t.jsxs)("div",{className:"flex-1 items-center text-md leading-7",children:[a&&"object"==typeof n&&(0,t.jsxs)(t.Fragment,{children:["[".concat(n.template_name,"]: "),(0,t.jsx)(O.Z,{sx:{color:"#1677ff"},component:"button",onClick:s,children:n.template_introduce||"More Details"})]}),"string"==typeof n&&(0,t.jsx)(z.Z,{options:q,children:n.replaceAll("\\n","\n")})]})]})},D=e=>{let{messages:l,onSubmit:a,paramsObj:n={},clearInitMessage:r}=e,i=(0,P.useSearchParams)(),c=i&&i.get("initMessage"),o=i&&i.get("spaceNameOriginal"),{currentDialogue:d,scene:u,model:h}=(0,s.useContext)(f.p),m="chat_dashboard"===u,[x,p]=(0,s.useState)(!1),[v,g]=(0,s.useState)(""),[B,O]=(0,s.useState)(!1),[M,R]=(0,s.useState)(),[z,F]=(0,s.useState)(l),[U,q]=(0,s.useState)(""),D=(0,s.useRef)(null),V=(0,s.useMemo)(()=>Object.entries(n).map(e=>{let[l,a]=e;return{key:l,value:a}}),[n]),W=(0,S.cI)(),T=async e=>{let{query:l}=e;try{p(!0),W.reset(),await a(l,{select_param:"chat_excel"===u?null==d?void 0:d.select_param:n[v]})}catch(e){}finally{p(!1)}},H=async()=>{try{var e;let l=new URLSearchParams(window.location.search),a=l.get("initMessage");l.delete("initMessage"),null===(e=window.history)||void 0===e||e.replaceState(null,"","?".concat(l.toString())),await T({query:a})}catch(e){console.log(e)}finally{null==r||r()}},J=e=>{let l=e;try{l=JSON.parse(e)}catch(e){console.log(e)}return l};return(0,s.useEffect)(()=>{D.current&&D.current.scrollTo(0,D.current.scrollHeight)},[null==l?void 0:l.length]),(0,s.useEffect)(()=>{c&&l.length<=0&&H()},[H,c,l.length]),(0,s.useEffect)(()=>{(null==V?void 0:V.length)&&g(o||V[0].value)},[V,null==V?void 0:V.length,o]),(0,s.useEffect)(()=>{if(m){let e=E().cloneDeep(l);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=J(null==e?void 0:e.context))}),F(e.filter(e=>["view","human"].includes(e.role)))}else F(l.filter(e=>["view","human"].includes(e.role)))},[m,l]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:D,className:"flex flex-1 overflow-y-auto pb-8 w-full flex-col",children:(0,t.jsx)("div",{className:"flex items-center flex-1 flex-col text-sm leading-6 text-slate-900 dark:text-slate-300 sm:text-base sm:leading-7",children:null==z?void 0:z.map((e,l)=>(0,t.jsx)(A,{content:e,isChartChat:m,onLinkClick:()=>{O(!0),R(l),q(JSON.stringify(null==e?void 0:e.context,null,2))}},l))})}),(0,t.jsx)("div",{className:"relative after:absolute after:-top-8 after:h-8 after:w-full after:bg-gradient-to-t after:from-white after:to-transparent dark:after:from-[#212121]",children:(0,t.jsxs)("form",{className:"flex flex-wrap w-full lg:w-4/5 xl:w-3/4 mx-auto py-2 sm:pt-6 sm:pb-10",onSubmit:e=>{e.stopPropagation(),W.handleSubmit(T)(e)},children:[!!(null==V?void 0:V.length)&&(0,t.jsx)("div",{className:"flex items-center max-w-[6rem] sm:max-w-[12rem] h-12 mr-2 mb-2",children:(0,t.jsx)(j.Z,{className:"h-full w-full",value:v,onChange:(e,l)=>{g(null!=l?l:"")},children:V.map(e=>(0,t.jsx)(y.Z,{value:e.value,children:e.key},e.key))})}),(0,t.jsx)(w.ZP,{disabled:"chat_excel"===u&&!(null==d?void 0:d.select_param),className:"flex-1 h-12",variant:"outlined",startDecorator:(0,I.A)(h||""),endDecorator:(0,t.jsx)(N.ZP,{type:"submit",children:x?(0,t.jsx)(Z.Z,{}):(0,t.jsx)(b.Z,{})}),...W.register("query")})]})}),(0,t.jsx)(_.Z,{open:B,onClose:()=>{O(!1)},children:(0,t.jsxs)(k.Z,{className:"w-1/2 h-[600px] flex items-center justify-center","aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,t.jsx)(L.Z,{className:"w-full h-[500px]",language:"json",value:U}),(0,t.jsx)(C.Z,{variant:"outlined",className:"w-full mt-2",onClick:()=>O(!1),children:"OK"})]})})]})},V=a(63012);function W(e){let{key:l,chart:a}=e;return(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)(n.Z,{className:"h-full",sx:{background:"transparent"},children:(0,t.jsxs)(o.Z,{className:"h-full",children:[(0,t.jsx)(d.ZP,{gutterBottom:!0,component:"div",children:a.chart_name}),(0,t.jsx)(d.ZP,{gutterBottom:!0,level:"body3",children:a.chart_desc}),(0,t.jsx)("div",{className:"h-[300px]",children:(0,t.jsx)(V.Chart,{autoFit:!0,data:a.values,children:(0,t.jsx)(V.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},l)}function T(e){let{key:l,chart:a}=e;return(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)(n.Z,{className:"h-full",sx:{background:"transparent"},children:(0,t.jsxs)(o.Z,{className:"h-full",children:[(0,t.jsx)(d.ZP,{gutterBottom:!0,component:"div",children:a.chart_name}),(0,t.jsx)(d.ZP,{gutterBottom:!0,level:"body3",children:a.chart_desc}),(0,t.jsx)("div",{className:"h-[300px]",children:(0,t.jsxs)(V.Chart,{autoFit:!0,data:a.values,children:[(0,t.jsx)(V.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,V.getTheme)().colors10[0]}}),(0,t.jsx)(V.Tooltip,{shared:!0})]})})]})})},l)}var H=a(61685);function J(e){var l,a;let{key:s,chart:r}=e,i=(0,B.groupBy)(r.values,"type");return(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)(n.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,t.jsxs)(o.Z,{className:"h-full",children:[(0,t.jsx)(d.ZP,{gutterBottom:!0,component:"div",children:r.chart_name}),"\xb7",(0,t.jsx)(d.ZP,{gutterBottom:!0,level:"body3",children:r.chart_desc}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsxs)(H.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{children:Object.keys(i).map(e=>(0,t.jsx)("th",{children:e},e))})}),(0,t.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(a=l[0])||void 0===a?void 0:a.map((e,l)=>{var a;return(0,t.jsx)("tr",{children:null===(a=Object.keys(i))||void 0===a?void 0:a.map(e=>{var a;return(0,t.jsx)("td",{children:(null==i?void 0:null===(a=i[e])||void 0===a?void 0:a[l].value)||""},e)})},l)})})]})})]})})},s)}var $=a(43893),G=a(45247),K=a(94139),Q=a(65170),X=a(71577),Y=a(69814),ee=a(49591),el=a(88484),ea=a(29158),et=function(e){var l;let{convUid:a,chatMode:n,onComplete:r,...i}=e,[c,o]=(0,s.useState)(!1),[d,u]=(0,s.useState)([]),[h,m]=(0,s.useState)(),[x,p]=(0,s.useState)(),{model:g}=(0,s.useContext)(f.p),b=async e=>{var l;if(!e){v.ZP.error("Please select the *.(csv|xlsx|xls) file");return}if(!/\.(csv|xlsx|xls)$/.test(null!==(l=e.file.name)&&void 0!==l?l:"")){v.ZP.error("File type must be csv, xlsx or xls");return}u([e.file])},j=async()=>{o(!0),p("normal");try{let e=new FormData;e.append("doc_file",d[0]);let[l]=await (0,$.Vx)((0,$.qn)({convUid:a,chatMode:n,data:e,model:g,config:{timeout:36e5,onUploadProgress:e=>{let l=Math.ceil(e.loaded/(e.total||0)*100);m(l)}}}));if(l)return;v.ZP.success("success"),p("success"),null==r||r()}catch(e){p("exception"),v.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{o(!1)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h-full flex items-start",children:[(0,t.jsx)(K.Z,{placement:"topLeft",title:"Files cannot be changed after upload",children:(0,t.jsx)(Q.default,{disabled:c,className:"mr-1",beforeUpload:()=>!1,fileList:d,name:"file",accept:".csv,.xlsx,.xls",multiple:!1,onChange:b,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,t.jsx)(t.Fragment,{}),...i,children:(0,t.jsx)(X.ZP,{className:"flex justify-center items-center dark:bg-[#4e4f56] dark:text-gray-200",disabled:c,icon:(0,t.jsx)(ee.Z,{}),children:"Select File"})})}),(0,t.jsx)(X.ZP,{type:"primary",loading:c,className:"flex justify-center items-center dark:text-white",disabled:!d.length,icon:(0,t.jsx)(el.Z,{}),onClick:j,children:c?100===h?"Analysis":"Uploading":"Upload"})]}),!!d.length&&(0,t.jsxs)("div",{className:"mt-2 text-gray-500 text-sm flex items-center",children:[(0,t.jsx)(ea.Z,{className:"mr-2"}),(0,t.jsx)("span",{children:null===(l=d[0])||void 0===l?void 0:l.name})]}),"number"==typeof h&&(0,t.jsx)(Y.Z,{className:"mb-0",percent:h,size:"small",status:x})]})},es=function(e){let{onComplete:l}=e,{currentDialogue:a,scene:n,chatId:r}=(0,s.useContext)(f.p);return"chat_excel"!==n?null:(0,t.jsx)("div",{className:"max-w-xs h-full",children:a?(0,t.jsxs)("div",{className:"h-full flex overflow-hidden rounded",children:[(0,t.jsx)("div",{className:"h-full flex items-center justify-center px-3 py-2 bg-gray-600",children:(0,t.jsx)(ea.Z,{className:"text-white"})}),(0,t.jsx)("div",{className:"h-full bg-gray-100 px-3 py-2 text-xs rounded-tr rounded-br dark:text-gray-800 truncate",children:a.select_param})]}):(0,t.jsx)(et,{convUid:r,chatMode:n,onComplete:l})})},en=a(25709),er=a(43927);function ei(){let{isContract:e,setIsContract:l,scene:a}=(0,s.useContext)(f.p),n=a&&["chat_with_db_execute","chat_dashboard"].includes(a);return n?(0,t.jsx)("div",{className:"leading-[3rem] text-right h-12 flex justify-center",children:(0,t.jsx)("div",{className:"flex items-center cursor-pointer",children:(0,t.jsxs)("div",{className:"relative w-56 h-10 mx-auto p-2 flex justify-center items-center bg-[#ece9e0] rounded-3xl model-tab dark:text-violet-600 z-10 ".concat(e?"editor-tab":""),children:[(0,t.jsxs)("div",{className:"z-10 w-[50%] text-center cursor-pointer",onClick:()=>{l(!1)},children:[(0,t.jsx)("span",{children:"Preview"}),(0,t.jsx)(er.Z,{className:"ml-1"})]}),(0,t.jsxs)("div",{className:"z-10 w-[50%] text-center cursor-pointer",onClick:()=>{l(!0)},children:[(0,t.jsx)("span",{children:"Editor"}),(0,t.jsx)(en.Z,{className:"ml-1"})]})]})})}):null}a(23293);var ec=function(e){let{refreshHistory:l,modelChange:a,selectedModel:n}=e,{refreshDialogList:r,model:i}=(0,s.useContext)(f.p);return(0,t.jsxs)("div",{className:"w-full py-4 flex items-center justify-center border-b border-gray-100 gap-5",children:[(0,t.jsx)(es,{onComplete:()=>{null==r||r(),null==l||l()}}),(0,t.jsx)(I.Z,{size:"sm",onChange:a}),(0,t.jsx)(ei,{})]})};let eo=()=>(0,t.jsxs)(n.Z,{className:"h-full w-full flex bg-transparent",children:[(0,t.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,t.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,t.jsx)(i.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(c.Z.content)]:{height:"100%"}},children:(0,t.jsx)(r.Z,{variant:"overlay",className:"h-full"})})]});var ed=()=>{(0,P.useSearchParams)();let[e,l]=(0,s.useState)(!1),[a,r]=(0,s.useState)(),{refreshDialogList:i,scene:c,chatId:x,model:p,setModel:v}=(0,s.useContext)(f.p),{data:b=[],run:j}=(0,m.Z)(async()=>{l(!0);let[,e]=await (0,$.Vx)((0,$.$i)(x));l(!1);let a=(e||[]).filter(e=>"view"===e.role).slice(-1)[0];return a.model_name&&v(a.model_name),null!=e?e:[]},{ready:!!x,refreshDeps:[x]}),{history:y,handleChatSubmit:w}=g({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:x,chat_mode:c||"chat_normal",model_name:p},initHistory:b}),{data:N={}}=(0,m.Z)(async()=>{let[,e]=await (0,$.Vx)((0,$.vD)(c));return null!=e?e:{}},{ready:!!c,refreshDeps:[x,c]});(0,s.useEffect)(()=>{if(y&&!(y.length<1))try{var e;let l=null==y?void 0:null===(e=y[y.length-1])||void 0===e?void 0:e.context,a=JSON.parse(l);r((null==a?void 0:a.template_name)==="report"?null==a?void 0:a.charts:void 0)}catch(e){r(void 0)}},[y]);let Z=(0,s.useMemo)(()=>{if(a){let e=[],l=null==a?void 0:a.filter(e=>"IndicatorValue"===e.chart_type);l.length>0&&e.push({charts:l,type:"IndicatorValue"});let t=null==a?void 0:a.filter(e=>"IndicatorValue"!==e.chart_type),s=t.length,n=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][s].forEach(l=>{if(l>0){let a=t.slice(n,n+l);n+=l,e.push({charts:a})}}),e}},[a]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ec,{selectedModel:p,refreshHistory:j,modelChange:e=>{v(e)}}),(0,t.jsx)(G.Z,{visible:e}),(0,t.jsxs)("div",{className:"px-4 flex flex-1 overflow-hidden",children:[a&&(0,t.jsx)("div",{className:"w-3/4",children:(0,t.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==Z?void 0:Z.map((e,l)=>(0,t.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type?(0,t.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(n.Z,{sx:{background:"transparent"},children:(0,t.jsxs)(o.Z,{className:"justify-around",children:[(0,t.jsx)(d.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,t.jsx)(d.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type?(0,t.jsx)(W,{chart:e},e.chart_uid):"BarChart"===e.chart_type?(0,t.jsx)(T,{chart:e},e.chart_uid):"Table"===e.chart_type?(0,t.jsx)(J,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(l)))})}),!a&&"chat_dashboard"===c&&(0,t.jsx)("div",{className:"w-3/4 p-6",children:(0,t.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,t.jsxs)(u.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,t.jsx)(u.Z,{xs:8,children:(0,t.jsx)(h.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,t.jsx)(eo,{})})}),(0,t.jsx)(u.Z,{xs:4,children:(0,t.jsx)(eo,{})}),(0,t.jsx)(u.Z,{xs:4,children:(0,t.jsx)(eo,{})}),(0,t.jsx)(u.Z,{xs:8,children:(0,t.jsx)(eo,{})})]})})}),(0,t.jsx)("div",{className:"".concat("chat_dashboard"===c?"w-1/3":"w-full"," flex flex-1 flex-col h-full"),children:(0,t.jsx)(D,{clearInitMessage:async()=>{await i()},messages:y,onSubmit:w,paramsObj:N})})]})]})}},51792:function(e,l,a){"use strict";a.d(l,{A:function(){return x}});var t=a(85893),s=a(41468),n=a(14986),r=a(30322),i=a(94184),c=a.n(i),o=a(25675),d=a.n(o),u=a(67294),h=a(67421);let m={proxyllm:{label:"Proxy LLM",icon:"/models/chatgpt.png"},"flan-t5-base":{label:"flan-t5-base",icon:"/models/google.png"},"vicuna-13b":{label:"vicuna-13b",icon:"/models/vicuna.jpeg"},"vicuna-7b":{label:"vicuna-7b",icon:"/models/vicuna.jpeg"},"vicuna-13b-v1.5":{label:"vicuna-13b-v1.5",icon:"/models/vicuna.jpeg"},"vicuna-7b-v1.5":{label:"vicuna-7b-v1.5",icon:"/models/vicuna.jpeg"},"codegen2-1b":{label:"codegen2-1B",icon:"/models/vicuna.jpeg"},"codet5p-2b":{label:"codet5p-2b",icon:"/models/vicuna.jpeg"},"chatglm-6b-int4":{label:"chatglm-6b-int4",icon:"/models/chatglm.png"},"chatglm-6b":{label:"chatglm-6b",icon:"/models/chatglm.png"},"chatglm2-6b":{label:"chatglm2-6b",icon:"/models/chatglm.png"},"chatglm2-6b-int4":{label:"chatglm2-6b-int4",icon:"/models/chatglm.png"},"guanaco-33b-merged":{label:"guanaco-33b-merged",icon:"/models/huggingface.svg"},"falcon-40b":{label:"falcon-40b",icon:"/models/falcon.jpeg"},"gorilla-7b":{label:"gorilla-7b",icon:"/models/gorilla.png"},"gptj-6b":{label:"ggml-gpt4all-j-v1.3-groovy.bin",icon:""},chatgpt_proxyllm:{label:"chatgpt_proxyllm",icon:"/models/chatgpt.png"},bard_proxyllm:{label:"bard_proxyllm",icon:"/models/bard.gif"},claude_proxyllm:{label:"claude_proxyllm",icon:"/models/claude.png"},wenxin_proxyllm:{label:"wenxin_proxyllm",icon:""},tongyi_proxyllm:{label:"tongyi_proxyllm",icon:"/models/qwen2.png"},zhipu_proxyllm:{label:"zhipu_proxyllm",icon:"/models/zhipu.png"},"llama-2-7b":{label:"Llama-2-7b-chat-hf",icon:"/models/llama.jpg"},"llama-2-13b":{label:"Llama-2-13b-chat-hf",icon:"/models/llama.jpg"},"llama-2-70b":{label:"Llama-2-70b-chat-hf",icon:"/models/llama.jpg"},"baichuan-13b":{label:"Baichuan-13B-Chat",icon:"/models/baichuan.png"},"baichuan-7b":{label:"baichuan-7b",icon:"/models/baichuan.png"},"baichuan2-7b":{label:"Baichuan2-7B-Chat",icon:"/models/baichuan.png"},"baichuan2-13b":{label:"Baichuan2-13B-Chat",icon:"/models/baichuan.png"},"wizardlm-13b":{label:"WizardLM-13B-V1.2",icon:"/models/wizardlm.png"},"llama-cpp":{label:"ggml-model-q4_0.bin",icon:"/models/huggingface.svg"}};function x(e){var l;return e?(0,t.jsx)(d(),{className:"rounded-full mr-2 border border-gray-200 object-contain bg-white",width:24,height:24,src:null===(l=m[e])||void 0===l?void 0:l.icon,alt:"llm"}):null}l.Z=function(e){let{size:l,onChange:a}=e,{t:i}=(0,h.$G)(),{modelList:o,model:d}=(0,u.useContext)(s.p);return!o||o.length<=0?null:(0,t.jsx)("div",{className:c()({"w-48":"sm"===l||"md"===l||!l,"w-60":"lg"===l}),children:(0,t.jsx)(n.Z,{size:l||"sm",placeholder:i("choose_model"),value:d||"",renderValue:function(e){return e?(0,t.jsxs)(t.Fragment,{children:[x(e.value),e.label]}):null},onChange:(e,l)=>{l&&(null==a||a(l))},children:o.map(e=>{var l;return(0,t.jsxs)(r.Z,{value:e,children:[x(e),(null===(l=m[e])||void 0===l?void 0:l.label)||e]},"model_".concat(e))})})})}},99513:function(e,l,a){"use strict";a.d(l,{Z:function(){return o}});var t=a(85893),s=a(63764),n=a(94184),r=a.n(n),i=a(67294),c=a(36782);function o(e){let{className:l,value:a,language:n="mysql",onChange:o,thoughts:d}=e,u=(0,i.useMemo)(()=>"mysql"!==n?a:d&&d.length>0?(0,c.WU)("-- ".concat(d," \n").concat(a)):(0,c.WU)(a),[a,d]);return(0,t.jsx)(s.ZP,{className:r()(l),value:u,language:n,onChange:o,theme:"vs-dark",options:{minimap:{enabled:!1},wordWrap:"on"}})}},45247:function(e,l,a){"use strict";var t=a(85893),s=a(48699);l.Z=function(e){let{visible:l}=e;return l?(0,t.jsx)("div",{className:"absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-white dark:bg-black bg-opacity-50 dark:bg-opacity-50",children:(0,t.jsx)(s.Z,{variant:"plain"})}):null}},23293:function(){}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/392.c534846271f9372d.js b/pilot/server/static/_next/static/chunks/392.c534846271f9372d.js new file mode 100644 index 000000000..021d5ca7f --- /dev/null +++ b/pilot/server/static/_next/static/chunks/392.c534846271f9372d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[392],{35392:function(e,l,a){"use strict";a.r(l),a.d(l,{default:function(){return eu}});var t=a(85893),n=a(67294),s=a(41118),r=a(16789),i=a(80837),c=a(79172),o=a(30208),d=a(40911),u=a(51610),h=a(48665),m=a(577),x=a(1375),p=e=>{let l=(0,n.useReducer)((e,l)=>({...e,...l}),{...e});return l},v=a(58301),f=a(41468),g=a(83454),b=e=>{let{queryAgentURL:l,channel:a,queryBody:t,initHistory:s=[]}=e,[r,i]=p({history:s}),{refreshDialogList:c,chatId:o,model:d}=(0,n.useContext)(f.p),u=new AbortController;(0,n.useEffect)(()=>{s&&s.length&&i({history:s})},[s]);let h=async(e,n)=>{if(!e)return;let s=[...r.history,{role:"human",context:e}],h=s.length;i({history:s});let m={conv_uid:o,...n,...t,user_input:e,channel:a};if(!(null==m?void 0:m.conv_uid)){v.ZP.error("conv_uid 不存在,请刷新后重试");return}try{await (0,x.L)("".concat(g.env.API_BASE_URL?g.env.API_BASE_URL:"").concat("/api"+l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m),signal:u.signal,openWhenHidden:!0,async onopen(e){if(s.length<=1){var l;c();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),null===(l=window.history)||void 0===l||l.replaceState(null,"","?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==x.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var l,a,t;if(e.data=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(a=e.data)||void 0===a?void 0:a.startsWith("[ERROR]"))i({history:[...s,{role:"view",context:null===(t=e.data)||void 0===t?void 0:t.replace("[ERROR]","")}]});else{let l=[...s];e.data&&((null==l?void 0:l[h])?l[h].context="".concat(e.data):l.push({role:"view",context:e.data,model_name:d}),i({history:l}))}}})}catch(e){console.log(e),i({history:[...s,{role:"view",context:"Sorry, We meet some error, please try agin later."}]})}};return{handleChatSubmit:h,history:r.history}},j=a(24339),y=a(14986),w=a(30322),N=a(75913),Z=a(14553),_=a(48699),k=a(13245),C=a(43458),S=a(47556),P=a(87536),B=a(39332),E=a(96486),L=a.n(E),R=a(99513),O=a(2166),U=a(50228),A=a(87547),M=a(35576),z=a(56986),F=a(93179),I=a(51792);let q={overrides:{code:e=>{let{children:l,className:a}=e;return(0,t.jsx)(F.Z,{language:"javascript",style:z.Z,children:l})},img:{props:{className:"my-2 !max-h-none"}},table:{props:{className:"my-2 border-collapse border border-slate-400 dark:border-slate-500 bg-white dark:bg-slate-800 text-sm shadow-sm"}},thead:{props:{className:"bg-slate-50 dark:bg-slate-700"}},th:{props:{className:"border border-slate-300 dark:border-slate-600 font-semibold !p-2 text-slate-900 dark:text-slate-200 !text-left"}},td:{props:{className:"border border-slate-300 dark:border-slate-700 !p-2 text-slate-500 dark:text-slate-400 !text-left"}}},wrapper:n.Fragment,namedCodesToUnicode:{amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"“"}};var D=function(e){let{content:l,isChartChat:a,onLinkClick:n}=e,{context:s,model_name:r,role:i}=l,c="view"===i;return(0,t.jsxs)("div",{className:"overflow-x-auto w-full lg:w-4/5 xl:w-3/4 mx-auto flex px-2 py-2 sm:px-4 sm:py-6 rounded-xl ".concat(c?"bg-slate-100 dark:bg-[#353539]":""),children:[(0,t.jsx)("div",{className:"mr-2 flex items-center justify-center h-7 w-7 rounded-full text-lg sm:mr-4",children:c?(0,I.A)(r)||(0,t.jsx)(U.Z,{}):(0,t.jsx)(A.Z,{})}),(0,t.jsxs)("div",{className:"flex-1 items-center text-md leading-7",children:[a&&"object"==typeof s&&(0,t.jsxs)(t.Fragment,{children:["[".concat(s.template_name,"]: "),(0,t.jsx)(O.Z,{sx:{color:"#1677ff"},component:"button",onClick:n,children:s.template_introduce||"More Details"})]}),"string"==typeof s&&(0,t.jsx)(M.Z,{options:q,children:s.replaceAll("\\n","\n")})]})]})},V=e=>{let{messages:l,onSubmit:a,paramsObj:s={},clearInitMessage:r}=e,i=(0,B.useSearchParams)(),c=i&&i.get("initMessage"),o=i&&i.get("spaceNameOriginal"),{currentDialogue:d,scene:u,model:h}=(0,n.useContext)(f.p),m="chat_dashboard"===u,[x,p]=(0,n.useState)(!1),[v,g]=(0,n.useState)(""),[b,E]=(0,n.useState)(!1),[O,U]=(0,n.useState)(),[A,M]=(0,n.useState)(l),[z,F]=(0,n.useState)(""),q=(0,n.useRef)(null),V=(0,n.useMemo)(()=>Object.entries(s).map(e=>{let[l,a]=e;return{key:l,value:a}}),[s]),W=(0,P.cI)(),T=async e=>{let{query:l}=e;try{p(!0),W.reset(),await a(l,{select_param:"chat_excel"===u?null==d?void 0:d.select_param:s[v]})}catch(e){}finally{p(!1)}},H=async()=>{try{var e;let l=new URLSearchParams(window.location.search),a=l.get("initMessage");l.delete("initMessage"),null===(e=window.history)||void 0===e||e.replaceState(null,"","?".concat(l.toString())),await T({query:a})}catch(e){console.log(e)}finally{null==r||r()}},J=e=>{let l=e;try{l=JSON.parse(e)}catch(e){console.log(e)}return l};return(0,n.useEffect)(()=>{q.current&&q.current.scrollTo(0,q.current.scrollHeight)},[null==l?void 0:l.length]),(0,n.useEffect)(()=>{c&&l.length<=0&&H()},[H,c,l.length]),(0,n.useEffect)(()=>{(null==V?void 0:V.length)&&g(o||V[0].value)},[V,null==V?void 0:V.length,o]),(0,n.useEffect)(()=>{if(m){let e=L().cloneDeep(l);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=J(null==e?void 0:e.context))}),M(e.filter(e=>["view","human"].includes(e.role)))}else M(l.filter(e=>["view","human"].includes(e.role)))},[m,l]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:q,className:"flex flex-1 overflow-y-auto pb-8 w-full flex-col",children:(0,t.jsx)("div",{className:"flex items-center flex-1 flex-col text-sm leading-6 text-slate-900 dark:text-slate-300 sm:text-base sm:leading-7",children:null==A?void 0:A.map((e,l)=>(0,t.jsx)(D,{content:e,isChartChat:m,onLinkClick:()=>{E(!0),U(l),F(JSON.stringify(null==e?void 0:e.context,null,2))}},l))})}),(0,t.jsx)("div",{className:"relative after:absolute after:-top-8 after:h-8 after:w-full after:bg-gradient-to-t after:from-white after:to-transparent dark:after:from-[#212121]",children:(0,t.jsxs)("form",{className:"flex flex-wrap w-full lg:w-4/5 xl:w-3/4 mx-auto py-2 sm:pt-6 sm:pb-10",onSubmit:e=>{e.stopPropagation(),W.handleSubmit(T)(e)},children:[!!(null==V?void 0:V.length)&&(0,t.jsx)("div",{className:"flex items-center max-w-[6rem] sm:max-w-[12rem] h-12 mr-2 mb-2",children:(0,t.jsx)(y.Z,{className:"h-full w-full",value:v,onChange:(e,l)=>{g(null!=l?l:"")},children:V.map(e=>(0,t.jsx)(w.Z,{value:e.value,children:e.key},e.key))})}),(0,t.jsx)(N.ZP,{disabled:"chat_excel"===u&&!(null==d?void 0:d.select_param),className:"flex-1 h-12",variant:"outlined",startDecorator:(0,I.A)(h||""),endDecorator:(0,t.jsx)(Z.ZP,{type:"submit",children:x?(0,t.jsx)(_.Z,{}):(0,t.jsx)(j.Z,{})}),...W.register("query")})]})}),(0,t.jsx)(k.Z,{open:b,onClose:()=>{E(!1)},children:(0,t.jsxs)(C.Z,{className:"w-1/2 h-[600px] flex items-center justify-center","aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,t.jsx)(R.Z,{className:"w-full h-[500px]",language:"json",value:z}),(0,t.jsx)(S.Z,{variant:"outlined",className:"w-full mt-2",onClick:()=>E(!1),children:"OK"})]})})]})},W=a(63012);function T(e){let{key:l,chart:a}=e;return(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,t.jsxs)(o.Z,{className:"h-full",children:[(0,t.jsx)(d.ZP,{gutterBottom:!0,component:"div",children:a.chart_name}),(0,t.jsx)(d.ZP,{gutterBottom:!0,level:"body3",children:a.chart_desc}),(0,t.jsx)("div",{className:"h-[300px]",children:(0,t.jsx)(W.Chart,{autoFit:!0,data:a.values,children:(0,t.jsx)(W.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},l)}function H(e){let{key:l,chart:a}=e;return(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,t.jsxs)(o.Z,{className:"h-full",children:[(0,t.jsx)(d.ZP,{gutterBottom:!0,component:"div",children:a.chart_name}),(0,t.jsx)(d.ZP,{gutterBottom:!0,level:"body3",children:a.chart_desc}),(0,t.jsx)("div",{className:"h-[300px]",children:(0,t.jsxs)(W.Chart,{autoFit:!0,data:a.values,children:[(0,t.jsx)(W.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,W.getTheme)().colors10[0]}}),(0,t.jsx)(W.Tooltip,{shared:!0})]})})]})})},l)}var J=a(61685);function $(e){var l,a;let{key:n,chart:r}=e,i=(0,E.groupBy)(r.values,"type");return(0,t.jsx)("div",{className:"flex-1 min-w-0",children:(0,t.jsx)(s.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,t.jsxs)(o.Z,{className:"h-full",children:[(0,t.jsx)(d.ZP,{gutterBottom:!0,component:"div",children:r.chart_name}),"\xb7",(0,t.jsx)(d.ZP,{gutterBottom:!0,level:"body3",children:r.chart_desc}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsxs)(J.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{children:Object.keys(i).map(e=>(0,t.jsx)("th",{children:e},e))})}),(0,t.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(a=l[0])||void 0===a?void 0:a.map((e,l)=>{var a;return(0,t.jsx)("tr",{children:null===(a=Object.keys(i))||void 0===a?void 0:a.map(e=>{var a;return(0,t.jsx)("td",{children:(null==i?void 0:null===(a=i[e])||void 0===a?void 0:a[l].value)||""},e)})},l)})})]})})]})})},n)}var G=a(43893),K=a(45247),Q=a(94139),X=a(65170),Y=a(71577),ee=a(69814),el=a(49591),ea=a(88484),et=a(29158),en=function(e){var l;let{convUid:a,chatMode:s,onComplete:r,...i}=e,[c,o]=(0,n.useState)(!1),[d,u]=(0,n.useState)([]),[h,m]=(0,n.useState)(),[x,p]=(0,n.useState)(),{model:g}=(0,n.useContext)(f.p),b=async e=>{var l;if(!e){v.ZP.error("Please select the *.(csv|xlsx|xls) file");return}if(!/\.(csv|xlsx|xls)$/.test(null!==(l=e.file.name)&&void 0!==l?l:"")){v.ZP.error("File type must be csv, xlsx or xls");return}u([e.file])},j=async()=>{o(!0),p("normal");try{let e=new FormData;e.append("doc_file",d[0]);let[l]=await (0,G.Vx)((0,G.qn)({convUid:a,chatMode:s,data:e,model:g,config:{timeout:36e5,onUploadProgress:e=>{let l=Math.ceil(e.loaded/(e.total||0)*100);m(l)}}}));if(l)return;v.ZP.success("success"),p("success"),null==r||r()}catch(e){p("exception"),v.ZP.error((null==e?void 0:e.message)||"Upload Error")}finally{o(!1)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"h-full flex items-start",children:[(0,t.jsx)(Q.Z,{placement:"topLeft",title:"Files cannot be changed after upload",children:(0,t.jsx)(X.default,{disabled:c,className:"mr-1",beforeUpload:()=>!1,fileList:d,name:"file",accept:".csv,.xlsx,.xls",multiple:!1,onChange:b,showUploadList:{showDownloadIcon:!1,showPreviewIcon:!1,showRemoveIcon:!1},itemRender:()=>(0,t.jsx)(t.Fragment,{}),...i,children:(0,t.jsx)(Y.ZP,{className:"flex justify-center items-center dark:bg-[#4e4f56] dark:text-gray-200",disabled:c,icon:(0,t.jsx)(el.Z,{}),children:"Select File"})})}),(0,t.jsx)(Y.ZP,{type:"primary",loading:c,className:"flex justify-center items-center dark:text-white",disabled:!d.length,icon:(0,t.jsx)(ea.Z,{}),onClick:j,children:c?100===h?"Analysis":"Uploading":"Upload"})]}),!!d.length&&(0,t.jsxs)("div",{className:"mt-2 text-gray-500 text-sm flex items-center",children:[(0,t.jsx)(et.Z,{className:"mr-2"}),(0,t.jsx)("span",{children:null===(l=d[0])||void 0===l?void 0:l.name})]}),"number"==typeof h&&(0,t.jsx)(ee.Z,{className:"mb-0",percent:h,size:"small",status:x})]})},es=function(e){let{onComplete:l}=e,{currentDialogue:a,scene:s,chatId:r}=(0,n.useContext)(f.p);return"chat_excel"!==s?null:(0,t.jsx)("div",{className:"max-w-xs h-full",children:a?(0,t.jsxs)("div",{className:"h-full flex overflow-hidden rounded",children:[(0,t.jsx)("div",{className:"h-full flex items-center justify-center px-3 py-2 bg-gray-600",children:(0,t.jsx)(et.Z,{className:"text-white"})}),(0,t.jsx)("div",{className:"h-full bg-gray-100 px-3 py-2 text-xs rounded-tr rounded-br dark:text-gray-800 truncate",children:a.select_param})]}):(0,t.jsx)(en,{convUid:r,chatMode:s,onComplete:l})})},er=a(25709),ei=a(43927);function ec(){let{isContract:e,setIsContract:l,scene:a}=(0,n.useContext)(f.p),s=a&&["chat_with_db_execute","chat_dashboard"].includes(a);return s?(0,t.jsx)("div",{className:"leading-[3rem] text-right h-12 flex justify-center",children:(0,t.jsx)("div",{className:"flex items-center cursor-pointer",children:(0,t.jsxs)("div",{className:"relative w-56 h-10 mx-auto p-2 flex justify-center items-center bg-[#ece9e0] rounded-3xl model-tab dark:text-violet-600 z-10 ".concat(e?"editor-tab":""),children:[(0,t.jsxs)("div",{className:"z-10 w-[50%] text-center cursor-pointer",onClick:()=>{l(!1)},children:[(0,t.jsx)("span",{children:"Preview"}),(0,t.jsx)(ei.Z,{className:"ml-1"})]}),(0,t.jsxs)("div",{className:"z-10 w-[50%] text-center cursor-pointer",onClick:()=>{l(!0)},children:[(0,t.jsx)("span",{children:"Editor"}),(0,t.jsx)(er.Z,{className:"ml-1"})]})]})})}):null}a(23293);var eo=function(e){let{refreshHistory:l,modelChange:a,selectedModel:s}=e,{refreshDialogList:r,model:i}=(0,n.useContext)(f.p);return(0,t.jsxs)("div",{className:"w-full py-4 flex items-center justify-center border-b border-gray-100 gap-5",children:[(0,t.jsx)(es,{onComplete:()=>{null==r||r(),null==l||l()}}),(0,t.jsx)(I.Z,{size:"sm",onChange:a}),(0,t.jsx)(ec,{})]})};let ed=()=>(0,t.jsxs)(s.Z,{className:"h-full w-full flex bg-transparent",children:[(0,t.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,t.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,t.jsx)(i.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(c.Z.content)]:{height:"100%"}},children:(0,t.jsx)(r.Z,{variant:"overlay",className:"h-full"})})]});var eu=()=>{(0,B.useSearchParams)();let[e,l]=(0,n.useState)(!1),[a,r]=(0,n.useState)(),{refreshDialogList:i,scene:c,chatId:x,model:p,setModel:v}=(0,n.useContext)(f.p),{data:g=[],run:j}=(0,m.Z)(async()=>{l(!0);let[,e]=await (0,G.Vx)((0,G.$i)(x));l(!1);let a=(e||[]).filter(e=>"view"===e.role).slice(-1)[0];return a.model_name&&v(a.model_name),null!=e?e:[]},{ready:!!x,refreshDeps:[x]}),{history:y,handleChatSubmit:w}=b({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:x,chat_mode:c||"chat_normal",model_name:p},initHistory:g}),{data:N={}}=(0,m.Z)(async()=>{let[,e]=await (0,G.Vx)((0,G.vD)(c));return null!=e?e:{}},{ready:!!c,refreshDeps:[x,c]});(0,n.useEffect)(()=>{if(y&&!(y.length<1))try{var e;let l=null==y?void 0:null===(e=y[y.length-1])||void 0===e?void 0:e.context,a=JSON.parse(l);r((null==a?void 0:a.template_name)==="report"?null==a?void 0:a.charts:void 0)}catch(e){r(void 0)}},[y]);let Z=(0,n.useMemo)(()=>{if(a){let e=[],l=null==a?void 0:a.filter(e=>"IndicatorValue"===e.chart_type);l.length>0&&e.push({charts:l,type:"IndicatorValue"});let t=null==a?void 0:a.filter(e=>"IndicatorValue"!==e.chart_type),n=t.length,s=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][n].forEach(l=>{if(l>0){let a=t.slice(s,s+l);s+=l,e.push({charts:a})}}),e}},[a]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eo,{selectedModel:p,refreshHistory:j,modelChange:e=>{v(e)}}),(0,t.jsx)(K.Z,{visible:e}),(0,t.jsxs)("div",{className:"px-4 flex flex-1 overflow-hidden",children:[a&&(0,t.jsx)("div",{className:"w-3/4",children:(0,t.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==Z?void 0:Z.map((e,l)=>(0,t.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex gap-3":""),children:e.charts.map(e=>"IndicatorValue"===e.chart_type?(0,t.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(s.Z,{sx:{background:"transparent"},children:(0,t.jsxs)(o.Z,{className:"justify-around",children:[(0,t.jsx)(d.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,t.jsx)(d.ZP,{children:e.value})]})})},e.name))},e.chart_uid):"LineChart"===e.chart_type?(0,t.jsx)(T,{chart:e},e.chart_uid):"BarChart"===e.chart_type?(0,t.jsx)(H,{chart:e},e.chart_uid):"Table"===e.chart_type?(0,t.jsx)($,{chart:e},e.chart_uid):void 0)},"chart_row_".concat(l)))})}),!a&&"chat_dashboard"===c&&(0,t.jsx)("div",{className:"w-3/4 p-6",children:(0,t.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,t.jsxs)(u.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,t.jsx)(u.Z,{xs:8,children:(0,t.jsx)(h.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,t.jsx)(ed,{})})}),(0,t.jsx)(u.Z,{xs:4,children:(0,t.jsx)(ed,{})}),(0,t.jsx)(u.Z,{xs:4,children:(0,t.jsx)(ed,{})}),(0,t.jsx)(u.Z,{xs:8,children:(0,t.jsx)(ed,{})})]})})}),(0,t.jsx)("div",{className:"".concat("chat_dashboard"===c?"w-1/3":"w-full"," flex flex-1 flex-col h-full"),children:(0,t.jsx)(V,{clearInitMessage:async()=>{await i()},messages:y,onSubmit:w,paramsObj:N})})]})]})}},51792:function(e,l,a){"use strict";a.d(l,{A:function(){return x}});var t=a(85893),n=a(41468),s=a(14986),r=a(30322),i=a(94184),c=a.n(i),o=a(25675),d=a.n(o),u=a(67294),h=a(67421);let m={proxyllm:{label:"Proxy LLM",icon:"/models/chatgpt.png"},"flan-t5-base":{label:"flan-t5-base",icon:"/models/google.png"},"vicuna-13b":{label:"vicuna-13b",icon:"/models/vicuna.jpeg"},"vicuna-7b":{label:"vicuna-7b",icon:"/models/vicuna.jpeg"},"vicuna-13b-v1.5":{label:"vicuna-13b-v1.5",icon:"/models/vicuna.jpeg"},"vicuna-7b-v1.5":{label:"vicuna-7b-v1.5",icon:"/models/vicuna.jpeg"},"codegen2-1b":{label:"codegen2-1B",icon:"/models/vicuna.jpeg"},"codet5p-2b":{label:"codet5p-2b",icon:"/models/vicuna.jpeg"},"chatglm-6b-int4":{label:"chatglm-6b-int4",icon:"/models/chatglm.png"},"chatglm-6b":{label:"chatglm-6b",icon:"/models/chatglm.png"},"chatglm2-6b":{label:"chatglm2-6b",icon:"/models/chatglm.png"},"chatglm2-6b-int4":{label:"chatglm2-6b-int4",icon:"/models/chatglm.png"},"guanaco-33b-merged":{label:"guanaco-33b-merged",icon:"/models/huggingface.svg"},"falcon-40b":{label:"falcon-40b",icon:"/models/falcon.jpeg"},"gorilla-7b":{label:"gorilla-7b",icon:"/models/gorilla.png"},"gptj-6b":{label:"ggml-gpt4all-j-v1.3-groovy.bin",icon:""},chatgpt_proxyllm:{label:"chatgpt_proxyllm",icon:"/models/chatgpt.png"},bard_proxyllm:{label:"bard_proxyllm",icon:"/models/bard.gif"},claude_proxyllm:{label:"claude_proxyllm",icon:"/models/claude.png"},wenxin_proxyllm:{label:"wenxin_proxyllm",icon:""},tongyi_proxyllm:{label:"tongyi_proxyllm",icon:"/models/qwen2.png"},zhipu_proxyllm:{label:"zhipu_proxyllm",icon:"/models/zhipu.png"},"llama-2-7b":{label:"Llama-2-7b-chat-hf",icon:"/models/llama.jpg"},"llama-2-13b":{label:"Llama-2-13b-chat-hf",icon:"/models/llama.jpg"},"llama-2-70b":{label:"Llama-2-70b-chat-hf",icon:"/models/llama.jpg"},"baichuan-13b":{label:"Baichuan-13B-Chat",icon:"/models/baichuan.png"},"baichuan-7b":{label:"baichuan-7b",icon:"/models/baichuan.png"},"baichuan2-7b":{label:"Baichuan2-7B-Chat",icon:"/models/baichuan.png"},"baichuan2-13b":{label:"Baichuan2-13B-Chat",icon:"/models/baichuan.png"},"wizardlm-13b":{label:"WizardLM-13B-V1.2",icon:"/models/wizardlm.png"},"llama-cpp":{label:"ggml-model-q4_0.bin",icon:"/models/huggingface.svg"}};function x(e){var l;return e?(0,t.jsx)(d(),{className:"rounded-full mr-2 border border-gray-200 object-contain bg-white",width:24,height:24,src:null===(l=m[e])||void 0===l?void 0:l.icon,alt:"llm"}):null}l.Z=function(e){let{size:l,onChange:a}=e,{t:i}=(0,h.$G)(),{modelList:o,model:d}=(0,u.useContext)(n.p);return!o||o.length<=0?null:(0,t.jsx)("div",{className:c()({"w-48":"sm"===l||"md"===l||!l,"w-60":"lg"===l}),children:(0,t.jsx)(s.Z,{size:l||"sm",placeholder:i("choose_model"),value:d||"",renderValue:function(e){return e?(0,t.jsxs)(t.Fragment,{children:[x(e.value),e.label]}):null},onChange:(e,l)=>{l&&(null==a||a(l))},children:o.map(e=>{var l;return(0,t.jsxs)(r.Z,{value:e,children:[x(e),(null===(l=m[e])||void 0===l?void 0:l.label)||e]},"model_".concat(e))})})})}},99513:function(e,l,a){"use strict";a.d(l,{Z:function(){return o}});var t=a(85893),n=a(63764),s=a(94184),r=a.n(s),i=a(67294),c=a(36782);function o(e){let{className:l,value:a,language:s="mysql",onChange:o,thoughts:d}=e,u=(0,i.useMemo)(()=>"mysql"!==s?a:d&&d.length>0?(0,c.WU)("-- ".concat(d," \n").concat(a)):(0,c.WU)(a),[a,d]);return(0,t.jsx)(n.ZP,{className:r()(l),value:u,language:s,onChange:o,theme:"vs-dark",options:{minimap:{enabled:!1},wordWrap:"on"}})}},45247:function(e,l,a){"use strict";var t=a(85893),n=a(48699);l.Z=function(e){let{visible:l}=e;return l?(0,t.jsx)("div",{className:"absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-white dark:bg-black bg-opacity-50 dark:bg-opacity-50",children:(0,t.jsx)(n.Z,{variant:"plain"})}):null}},23293:function(){}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/582.e556d63f0f88de69.js b/pilot/server/static/_next/static/chunks/582.74864353a0297601.js similarity index 64% rename from pilot/server/static/_next/static/chunks/582.e556d63f0f88de69.js rename to pilot/server/static/_next/static/chunks/582.74864353a0297601.js index 248e67a64..82c780d56 100644 --- a/pilot/server/static/_next/static/chunks/582.e556d63f0f88de69.js +++ b/pilot/server/static/_next/static/chunks/582.74864353a0297601.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[582,804],{92795:function(l,e,n){n.r(e);var a=n(85893),t=n(67294),i=n(577),d=n(61685),o=n(2549),s=n(40911),u=n(47556),r=n(14986),v=n(30322),c=n(48665),h=n(27015),m=n(59566),f=n(32983),x=n(63520),p=n(65908),b=n(99513),y=n(30119),j=n(39332),g=n(35392);let{Search:_}=m.default;function w(l){var e,n,i;let{editorValue:o,chartData:s,tableData:u,handleChange:r}=l,v=t.useMemo(()=>s?(0,a.jsx)("div",{className:"flex-1 overflow-auto p-3",style:{flexShrink:0,overflow:"hidden"},children:(0,a.jsx)(g.default,{...s})}):(0,a.jsx)("div",{}),[s]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,a.jsx)("div",{className:"flex-1",style:{flexShrink:0,overflow:"auto"},children:(0,a.jsx)(b.Z,{value:(null==o?void 0:o.sql)||"",language:"mysql",onChange:r,thoughts:(null==o?void 0:o.thoughts)||""})}),v]}),(0,a.jsx)("div",{className:"h-96 border-[var(--joy-palette-divider)] border-t border-solid overflow-auto",children:(null==u?void 0:null===(e=u.values)||void 0===e?void 0:e.length)>0?(0,a.jsxs)(d.Z,{"aria-label":"basic table",stickyHeader:!0,children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:null==u?void 0:null===(n=u.columns)||void 0===n?void 0:n.map((l,e)=>(0,a.jsx)("th",{children:l},l+e))})}),(0,a.jsx)("tbody",{children:null==u?void 0:null===(i=u.values)||void 0===i?void 0:i.map((l,e)=>{var n;return(0,a.jsx)("tr",{children:null===(n=Object.keys(l))||void 0===n?void 0:n.map(e=>(0,a.jsx)("td",{children:l[e]},e))},e)})})]}):(0,a.jsx)("div",{className:"h-full flex justify-center items-center",children:(0,a.jsx)(f.Z,{})})})]})}e.default=function(){var l,e,n,d,m;let[f,b]=t.useState([]),[g,k]=t.useState(""),[N,Z]=t.useState(),[S,q]=t.useState(!0),[P,C]=t.useState(),[E,O]=t.useState(),[R,D]=t.useState(),[A,T]=t.useState(),[z,B]=t.useState(),M=(0,j.useSearchParams)(),F=null==M?void 0:M.get("id"),K=null==M?void 0:M.get("scene"),{data:V,loading:Y}=(0,i.Z)(async()=>await (0,y.Tk)("/v1/editor/sql/rounds",{con_uid:F}),{onSuccess:l=>{var e,n;let a=null==l?void 0:null===(e=l.data)||void 0===e?void 0:e[(null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.length)-1];a&&Z(null==a?void 0:a.round)}}),{run:$,loading:H}=(0,i.Z)(async()=>{var l,e;let n=null===(l=null==V?void 0:null===(e=V.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name;return await (0,y.PR)("/api/v1/editor/sql/run",{db_name:n,sql:null==R?void 0:R.sql})},{manual:!0,onSuccess:l=>{var e,n;T({columns:null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.colunms,values:null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.values})}}),{run:J,loading:L}=(0,i.Z)(async()=>{var l,e;let n=null===(l=null==V?void 0:null===(e=V.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name,a={db_name:n,sql:null==R?void 0:R.sql};return"chat_dashboard"===K&&(a.chart_type=null==R?void 0:R.showcase),await (0,y.PR)("/api/v1/editor/chart/run",a)},{manual:!0,ready:!!(null==R?void 0:R.sql),onSuccess:l=>{if(null==l?void 0:l.success){var e,n,a,t,i,d,o;T({columns:(null==l?void 0:null===(e=l.data)||void 0===e?void 0:null===(n=e.sql_data)||void 0===n?void 0:n.colunms)||[],values:(null==l?void 0:null===(a=l.data)||void 0===a?void 0:null===(t=a.sql_data)||void 0===t?void 0:t.values)||[]}),(null==l?void 0:null===(i=l.data)||void 0===i?void 0:i.chart_values)?C({type:null==l?void 0:null===(d=l.data)||void 0===d?void 0:d.chart_type,values:null==l?void 0:null===(o=l.data)||void 0===o?void 0:o.chart_values,title:null==R?void 0:R.title,description:null==R?void 0:R.thoughts}):C(void 0)}}}),{run:U,loading:G}=(0,i.Z)(async()=>{var l,e,n,a,t;let i=null===(l=null==V?void 0:null===(e=V.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name;return await (0,y.PR)("/api/v1/sql/editor/submit",{conv_uid:F,db_name:i,conv_round:N,old_sql:null==E?void 0:E.sql,old_speak:null==E?void 0:E.thoughts,new_sql:null==R?void 0:R.sql,new_speak:(null===(n=null==R?void 0:null===(a=R.thoughts)||void 0===a?void 0:a.match(/^\n--(.*)\n\n$/))||void 0===n?void 0:null===(t=n[1])||void 0===t?void 0:t.trim())||(null==R?void 0:R.thoughts)})},{manual:!0,onSuccess:l=>{(null==l?void 0:l.success)&&$()}}),{run:I,loading:Q}=(0,i.Z)(async()=>{var l,e,n,a,t,i;let d=null===(l=null==V?void 0:null===(e=V.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name;return await (0,y.PR)("/api/v1/chart/editor/submit",{conv_uid:F,chart_title:null==R?void 0:R.title,db_name:d,old_sql:null==E?void 0:null===(n=E[z])||void 0===n?void 0:n.sql,new_chart_type:null==R?void 0:R.showcase,new_sql:null==R?void 0:R.sql,new_comment:(null===(a=null==R?void 0:null===(t=R.thoughts)||void 0===t?void 0:t.match(/^\n--(.*)\n\n$/))||void 0===a?void 0:null===(i=a[1])||void 0===i?void 0:i.trim())||(null==R?void 0:R.thoughts),gmt_create:new Date().getTime()})},{manual:!0,onSuccess:l=>{(null==l?void 0:l.success)&&J()}}),{data:W}=(0,i.Z)(async()=>{var l,e;let n=null===(l=null==V?void 0:null===(e=V.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name;return await (0,y.Tk)("/v1/editor/db/tables",{db_name:n,page_index:1,page_size:200})},{ready:!!(null===(l=null==V?void 0:null===(e=V.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name),refreshDeps:[null===(n=null==V?void 0:null===(d=V.data)||void 0===d?void 0:d.find(l=>l.round===N))||void 0===n?void 0:n.db_name]}),{run:X}=(0,i.Z)(async l=>await (0,y.Tk)("/v1/editor/sql",{con_uid:F,round:l}),{manual:!0,onSuccess:l=>{let e;try{if(Array.isArray(null==l?void 0:l.data))e=null==l?void 0:l.data,B("0");else if("string"==typeof(null==l?void 0:l.data)){let n=JSON.parse(null==l?void 0:l.data);e=n}else e=null==l?void 0:l.data}catch(l){console.log(l)}finally{O(e),Array.isArray(e)?D(null==e?void 0:e[Number(z||0)]):D(e)}}}),ll=t.useMemo(()=>{let l=(e,n)=>e.map(e=>{let t=e.title,i=t.indexOf(g),d=t.substring(0,i),u=t.slice(i+g.length),r=i>-1?(0,a.jsx)(o.Z,{title:((null==e?void 0:e.comment)||(null==e?void 0:e.title))+((null==e?void 0:e.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,a.jsxs)("span",{children:[d,(0,a.jsx)("span",{className:"text-[#1677ff]",children:g}),u,(null==e?void 0:e.type)&&(0,a.jsx)(s.ZP,{gutterBottom:!0,level:"body3",className:"pl-0.5",style:{display:"inline"},children:"[".concat(null==e?void 0:e.type,"]")})]})}):(0,a.jsx)(o.Z,{title:((null==e?void 0:e.comment)||(null==e?void 0:e.title))+((null==e?void 0:e.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,a.jsxs)("span",{children:[t,(null==e?void 0:e.type)&&(0,a.jsx)(s.ZP,{gutterBottom:!0,level:"body3",className:"pl-0.5",style:{display:"inline"},children:"[".concat(null==e?void 0:e.type,"]")})]})});if(e.children){let a=n?String(n)+"_"+e.key:e.key;return{title:t,showTitle:r,key:a,children:l(e.children,a)}}return{title:t,showTitle:r,key:e.key}});return(null==W?void 0:W.data)?(b([null==W?void 0:W.data.key]),l([null==W?void 0:W.data])):[]},[g,W]),le=t.useMemo(()=>{let l=[],e=(n,a)=>{if(n&&!((null==n?void 0:n.length)<=0))for(let t=0;t{let n;for(let a=0;ae.key===l)?n=t.key:ln(l,t.children)&&(n=ln(l,t.children)))}return n};function la(l){let e;if(!l)return{sql:"",thoughts:""};let n=l&&l.match(/(--.*)\n([\s\S]*)/),a="";return n&&n.length>=3&&(a=n[1],e=n[2]),{sql:e,thoughts:a}}return t.useEffect(()=>{N&&X(N)},[X,N]),t.useEffect(()=>{E&&"chat_dashboard"===K&&z&&J()},[z,K,E,J]),t.useEffect(()=>{E&&"chat_dashboard"!==K&&$()},[K,E,$]),(0,a.jsxs)("div",{className:"flex flex-col w-full h-full",children:[(0,a.jsx)("div",{className:"bg-[#f8f8f8] border-[var(--joy-palette-divider)] border-b border-solid flex items-center px-3 justify-between",children:(0,a.jsxs)("div",{className:"absolute right-4 top-2",children:[(0,a.jsx)(u.Z,{className:"bg-[#1677ff] text-[#fff] hover:bg-[#1c558e] px-4 cursor-pointer",loading:H||L,size:"sm",onClick:async()=>{"chat_dashboard"===K?J():$()},children:"Run"}),(0,a.jsx)(u.Z,{variant:"outlined",size:"sm",className:"ml-3 px-4 cursor-pointer",loading:G||Q,onClick:async()=>{"chat_dashboard"===K?await I():await U()},children:"Save"})]})}),(0,a.jsxs)("div",{className:"flex flex-1 overflow-auto",children:[(0,a.jsxs)("div",{className:"text h-full border-[var(--joy-palette-divider)] border-r border-solid p-3 max-h-full overflow-auto",style:{width:"300px"},children:[(0,a.jsxs)("div",{className:"flex items-center py-3",children:[(0,a.jsx)(r.Z,{className:"h-4 min-w-[240px]",size:"sm",value:N,onChange:(l,e)=>{Z(e)},children:null==V?void 0:null===(m=V.data)||void 0===m?void 0:m.map(l=>(0,a.jsx)(v.Z,{value:null==l?void 0:l.round,children:null==l?void 0:l.round_name},null==l?void 0:l.round))}),(0,a.jsx)(h.Z,{className:"ml-2"})]}),(0,a.jsx)(_,{style:{marginBottom:8},placeholder:"Search",onChange:l=>{let{value:e}=l.target;if(null==W?void 0:W.data){if(e){let l=le.map(l=>l.title.indexOf(e)>-1?ln(l.key,ll):null).filter((l,e,n)=>l&&n.indexOf(l)===e);b(l)}else b([]);k(e),q(!0)}}}),ll&&ll.length>0&&(0,a.jsx)(x.Z,{onExpand:l=>{b(l),q(!1)},expandedKeys:f,autoExpandParent:S,treeData:ll,fieldNames:{title:"showTitle"}})]}),(0,a.jsx)("div",{className:"flex flex-col flex-1 max-w-full overflow-hidden",children:Array.isArray(E)?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(c.Z,{className:"h-full",sx:{".ant-tabs-content, .ant-tabs-tabpane-active":{height:"100%"},"& .ant-tabs-card.ant-tabs-top >.ant-tabs-nav .ant-tabs-tab, & .ant-tabs-card.ant-tabs-top >div>.ant-tabs-nav .ant-tabs-tab":{borderRadius:"0"}},children:(0,a.jsx)(p.Z,{className:"h-full dark:text-white px-2",activeKey:z,onChange:l=>{B(l),D(null==E?void 0:E[Number(l)])},items:null==E?void 0:E.map((l,e)=>({key:e+"",label:null==l?void 0:l.title,children:(0,a.jsx)("div",{className:"flex flex-col h-full",children:(0,a.jsx)(w,{editorValue:l,handleChange:l=>{let{sql:e,thoughts:n}=la(l);D(l=>Object.assign({},l,{sql:e,thoughts:n}))},tableData:A,chartData:P})})}))})})}):(0,a.jsx)(w,{editorValue:E,handleChange:l=>{let{sql:e,thoughts:n}=la(l);D(l=>Object.assign({},l,{sql:e,thoughts:n}))},tableData:A,chartData:void 0})})]})]})}},30119:function(l,e,n){n.d(e,{Tk:function(){return o},PR:function(){return s},Ej:function(){return u}});var a=n(58301),t=n(6154);let i=t.Z.create({baseURL:"http://127.0.0.1:5000"});i.defaults.timeout=1e4,i.interceptors.response.use(l=>l.data,l=>Promise.reject(l)),n(96486);let d={"content-type":"application/json"},o=(l,e)=>{if(e){let n=Object.keys(e).filter(l=>void 0!==e[l]&&""!==e[l]).map(l=>"".concat(l,"=").concat(e[l])).join("&");n&&(l+="?".concat(n))}return i.get("/api"+l,{headers:d}).then(l=>l).catch(l=>{a.ZP.error(l),Promise.reject(l)})},s=(l,e)=>i.post(l,e,{headers:d}).then(l=>l).catch(l=>{a.ZP.error(l),Promise.reject(l)}),u=(l,e)=>i.post(l,e).then(l=>l).catch(l=>{a.ZP.error(l),Promise.reject(l)})}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[582,804],{92795:function(l,e,n){n.r(e);var a=n(85893),t=n(67294),i=n(577),d=n(61685),o=n(2549),s=n(40911),u=n(47556),r=n(14986),v=n(30322),c=n(48665),h=n(27015),m=n(59566),f=n(32983),x=n(63520),p=n(65908),b=n(99513),y=n(30119),j=n(39332),g=n(35392);let{Search:_}=m.default;function w(l){var e,n,i;let{editorValue:o,chartData:s,tableData:u,handleChange:r}=l,v=t.useMemo(()=>s?(0,a.jsx)("div",{className:"flex-1 overflow-auto p-3",style:{flexShrink:0,overflow:"hidden"},children:(0,a.jsx)(g.default,{...s})}):(0,a.jsx)("div",{}),[s]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,a.jsx)("div",{className:"flex-1",style:{flexShrink:0,overflow:"auto"},children:(0,a.jsx)(b.Z,{value:(null==o?void 0:o.sql)||"",language:"mysql",onChange:r,thoughts:(null==o?void 0:o.thoughts)||""})}),v]}),(0,a.jsx)("div",{className:"h-96 border-[var(--joy-palette-divider)] border-t border-solid overflow-auto",children:(null==u?void 0:null===(e=u.values)||void 0===e?void 0:e.length)>0?(0,a.jsxs)(d.Z,{"aria-label":"basic table",stickyHeader:!0,children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:null==u?void 0:null===(n=u.columns)||void 0===n?void 0:n.map((l,e)=>(0,a.jsx)("th",{children:l},l+e))})}),(0,a.jsx)("tbody",{children:null==u?void 0:null===(i=u.values)||void 0===i?void 0:i.map((l,e)=>{var n;return(0,a.jsx)("tr",{children:null===(n=Object.keys(l))||void 0===n?void 0:n.map(e=>(0,a.jsx)("td",{children:l[e]},e))},e)})})]}):(0,a.jsx)("div",{className:"h-full flex justify-center items-center",children:(0,a.jsx)(f.Z,{})})})]})}e.default=function(){var l,e,n,d,m;let[f,b]=t.useState([]),[g,k]=t.useState(""),[N,S]=t.useState(),[Z,q]=t.useState(!0),[P,E]=t.useState(),[C,R]=t.useState(),[A,O]=t.useState(),[D,T]=t.useState(),[z,B]=t.useState(),M=(0,j.useSearchParams)(),F=null==M?void 0:M.get("id"),K=null==M?void 0:M.get("scene"),{data:L,loading:U}=(0,i.Z)(async()=>await (0,y.Tk)("/v1/editor/sql/rounds",{con_uid:F}),{onSuccess:l=>{var e,n;let a=null==l?void 0:null===(e=l.data)||void 0===e?void 0:e[(null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.length)-1];a&&S(null==a?void 0:a.round)}}),{run:V,loading:Y}=(0,i.Z)(async()=>{var l,e;let n=null===(l=null==L?void 0:null===(e=L.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name;return await (0,y.PR)("/api/v1/editor/sql/run",{db_name:n,sql:null==A?void 0:A.sql})},{manual:!0,onSuccess:l=>{var e,n;T({columns:null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.colunms,values:null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.values})}}),{run:$,loading:H}=(0,i.Z)(async()=>{var l,e;let n=null===(l=null==L?void 0:null===(e=L.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name,a={db_name:n,sql:null==A?void 0:A.sql};return"chat_dashboard"===K&&(a.chart_type=null==A?void 0:A.showcase),await (0,y.PR)("/api/v1/editor/chart/run",a)},{manual:!0,ready:!!(null==A?void 0:A.sql),onSuccess:l=>{if(null==l?void 0:l.success){var e,n,a,t,i,d,o;T({columns:(null==l?void 0:null===(e=l.data)||void 0===e?void 0:null===(n=e.sql_data)||void 0===n?void 0:n.colunms)||[],values:(null==l?void 0:null===(a=l.data)||void 0===a?void 0:null===(t=a.sql_data)||void 0===t?void 0:t.values)||[]}),(null==l?void 0:null===(i=l.data)||void 0===i?void 0:i.chart_values)?E({type:null==l?void 0:null===(d=l.data)||void 0===d?void 0:d.chart_type,values:null==l?void 0:null===(o=l.data)||void 0===o?void 0:o.chart_values,title:null==A?void 0:A.title,description:null==A?void 0:A.thoughts}):E(void 0)}}}),{run:I,loading:J}=(0,i.Z)(async()=>{var l,e,n,a,t;let i=null===(l=null==L?void 0:null===(e=L.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name;return await (0,y.PR)("/api/v1/sql/editor/submit",{conv_uid:F,db_name:i,conv_round:N,old_sql:null==C?void 0:C.sql,old_speak:null==C?void 0:C.thoughts,new_sql:null==A?void 0:A.sql,new_speak:(null===(n=null==A?void 0:null===(a=A.thoughts)||void 0===a?void 0:a.match(/^\n--(.*)\n\n$/))||void 0===n?void 0:null===(t=n[1])||void 0===t?void 0:t.trim())||(null==A?void 0:A.thoughts)})},{manual:!0,onSuccess:l=>{(null==l?void 0:l.success)&&V()}}),{run:G,loading:Q}=(0,i.Z)(async()=>{var l,e,n,a,t,i;let d=null===(l=null==L?void 0:null===(e=L.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name;return await (0,y.PR)("/api/v1/chart/editor/submit",{conv_uid:F,chart_title:null==A?void 0:A.title,db_name:d,old_sql:null==C?void 0:null===(n=C[z])||void 0===n?void 0:n.sql,new_chart_type:null==A?void 0:A.showcase,new_sql:null==A?void 0:A.sql,new_comment:(null===(a=null==A?void 0:null===(t=A.thoughts)||void 0===t?void 0:t.match(/^\n--(.*)\n\n$/))||void 0===a?void 0:null===(i=a[1])||void 0===i?void 0:i.trim())||(null==A?void 0:A.thoughts),gmt_create:new Date().getTime()})},{manual:!0,onSuccess:l=>{(null==l?void 0:l.success)&&$()}}),{data:W}=(0,i.Z)(async()=>{var l,e;let n=null===(l=null==L?void 0:null===(e=L.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name;return await (0,y.Tk)("/v1/editor/db/tables",{db_name:n,page_index:1,page_size:200})},{ready:!!(null===(l=null==L?void 0:null===(e=L.data)||void 0===e?void 0:e.find(l=>l.round===N))||void 0===l?void 0:l.db_name),refreshDeps:[null===(n=null==L?void 0:null===(d=L.data)||void 0===d?void 0:d.find(l=>l.round===N))||void 0===n?void 0:n.db_name]}),{run:X}=(0,i.Z)(async l=>await (0,y.Tk)("/v1/editor/sql",{con_uid:F,round:l}),{manual:!0,onSuccess:l=>{let e;try{if(Array.isArray(null==l?void 0:l.data))e=null==l?void 0:l.data,B("0");else if("string"==typeof(null==l?void 0:l.data)){let n=JSON.parse(null==l?void 0:l.data);e=n}else e=null==l?void 0:l.data}catch(l){console.log(l)}finally{R(e),Array.isArray(e)?O(null==e?void 0:e[Number(z||0)]):O(e)}}}),ll=t.useMemo(()=>{let l=(e,n)=>e.map(e=>{let t=e.title,i=t.indexOf(g),d=t.substring(0,i),u=t.slice(i+g.length),r=i>-1?(0,a.jsx)(o.Z,{title:((null==e?void 0:e.comment)||(null==e?void 0:e.title))+((null==e?void 0:e.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,a.jsxs)("span",{children:[d,(0,a.jsx)("span",{className:"text-[#1677ff]",children:g}),u,(null==e?void 0:e.type)&&(0,a.jsx)(s.ZP,{gutterBottom:!0,level:"body3",className:"pl-0.5",style:{display:"inline"},children:"[".concat(null==e?void 0:e.type,"]")})]})}):(0,a.jsx)(o.Z,{title:((null==e?void 0:e.comment)||(null==e?void 0:e.title))+((null==e?void 0:e.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,a.jsxs)("span",{children:[t,(null==e?void 0:e.type)&&(0,a.jsx)(s.ZP,{gutterBottom:!0,level:"body3",className:"pl-0.5",style:{display:"inline"},children:"[".concat(null==e?void 0:e.type,"]")})]})});if(e.children){let a=n?String(n)+"_"+e.key:e.key;return{title:t,showTitle:r,key:a,children:l(e.children,a)}}return{title:t,showTitle:r,key:e.key}});return(null==W?void 0:W.data)?(b([null==W?void 0:W.data.key]),l([null==W?void 0:W.data])):[]},[g,W]),le=t.useMemo(()=>{let l=[],e=(n,a)=>{if(n&&!((null==n?void 0:n.length)<=0))for(let t=0;t{let n;for(let a=0;ae.key===l)?n=t.key:ln(l,t.children)&&(n=ln(l,t.children)))}return n};function la(l){let e;if(!l)return{sql:"",thoughts:""};let n=l&&l.match(/(--.*)\n([\s\S]*)/),a="";return n&&n.length>=3&&(a=n[1],e=n[2]),{sql:e,thoughts:a}}return t.useEffect(()=>{N&&X(N)},[X,N]),t.useEffect(()=>{C&&"chat_dashboard"===K&&z&&$()},[z,K,C,$]),t.useEffect(()=>{C&&"chat_dashboard"!==K&&V()},[K,C,V]),(0,a.jsxs)("div",{className:"flex flex-col w-full h-full",children:[(0,a.jsx)("div",{className:"bg-[#f8f8f8] border-[var(--joy-palette-divider)] border-b border-solid flex items-center px-3 justify-between",children:(0,a.jsxs)("div",{className:"absolute right-4 top-2",children:[(0,a.jsx)(u.Z,{className:"bg-[#1677ff] text-[#fff] hover:bg-[#1c558e] px-4 cursor-pointer",loading:Y||H,size:"sm",onClick:async()=>{"chat_dashboard"===K?$():V()},children:"Run"}),(0,a.jsx)(u.Z,{variant:"outlined",size:"sm",className:"ml-3 px-4 cursor-pointer",loading:J||Q,onClick:async()=>{"chat_dashboard"===K?await G():await I()},children:"Save"})]})}),(0,a.jsxs)("div",{className:"flex flex-1 overflow-auto",children:[(0,a.jsxs)("div",{className:"text h-full border-[var(--joy-palette-divider)] border-r border-solid p-3 max-h-full overflow-auto",style:{width:"300px"},children:[(0,a.jsxs)("div",{className:"flex items-center py-3",children:[(0,a.jsx)(r.Z,{className:"h-4 min-w-[240px]",size:"sm",value:N,onChange:(l,e)=>{S(e)},children:null==L?void 0:null===(m=L.data)||void 0===m?void 0:m.map(l=>(0,a.jsx)(v.Z,{value:null==l?void 0:l.round,children:null==l?void 0:l.round_name},null==l?void 0:l.round))}),(0,a.jsx)(h.Z,{className:"ml-2"})]}),(0,a.jsx)(_,{style:{marginBottom:8},placeholder:"Search",onChange:l=>{let{value:e}=l.target;if(null==W?void 0:W.data){if(e){let l=le.map(l=>l.title.indexOf(e)>-1?ln(l.key,ll):null).filter((l,e,n)=>l&&n.indexOf(l)===e);b(l)}else b([]);k(e),q(!0)}}}),ll&&ll.length>0&&(0,a.jsx)(x.Z,{onExpand:l=>{b(l),q(!1)},expandedKeys:f,autoExpandParent:Z,treeData:ll,fieldNames:{title:"showTitle"}})]}),(0,a.jsx)("div",{className:"flex flex-col flex-1 max-w-full overflow-hidden",children:Array.isArray(C)?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(c.Z,{className:"h-full",sx:{".ant-tabs-content, .ant-tabs-tabpane-active":{height:"100%"},"& .ant-tabs-card.ant-tabs-top >.ant-tabs-nav .ant-tabs-tab, & .ant-tabs-card.ant-tabs-top >div>.ant-tabs-nav .ant-tabs-tab":{borderRadius:"0"}},children:(0,a.jsx)(p.Z,{className:"h-full dark:text-white px-2",activeKey:z,onChange:l=>{B(l),O(null==C?void 0:C[Number(l)])},items:null==C?void 0:C.map((l,e)=>({key:e+"",label:null==l?void 0:l.title,children:(0,a.jsx)("div",{className:"flex flex-col h-full",children:(0,a.jsx)(w,{editorValue:l,handleChange:l=>{let{sql:e,thoughts:n}=la(l);O(l=>Object.assign({},l,{sql:e,thoughts:n}))},tableData:D,chartData:P})})}))})})}):(0,a.jsx)(w,{editorValue:C,handleChange:l=>{let{sql:e,thoughts:n}=la(l);O(l=>Object.assign({},l,{sql:e,thoughts:n}))},tableData:D,chartData:void 0})})]})]})}},30119:function(l,e,n){n.d(e,{Tk:function(){return s},PR:function(){return u},Ej:function(){return r}});var a=n(58301),t=n(6154),i=n(83454);let d=t.Z.create({baseURL:i.env.API_BASE_URL});d.defaults.timeout=1e4,d.interceptors.response.use(l=>l.data,l=>Promise.reject(l)),n(96486);let o={"content-type":"application/json"},s=(l,e)=>{if(e){let n=Object.keys(e).filter(l=>void 0!==e[l]&&""!==e[l]).map(l=>"".concat(l,"=").concat(e[l])).join("&");n&&(l+="?".concat(n))}return d.get("/api"+l,{headers:o}).then(l=>l).catch(l=>{a.ZP.error(l),Promise.reject(l)})},u=(l,e)=>d.post(l,e,{headers:o}).then(l=>l).catch(l=>{a.ZP.error(l),Promise.reject(l)}),r=(l,e)=>d.post(l,e).then(l=>l).catch(l=>{a.ZP.error(l),Promise.reject(l)})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/pages/_app-9e94401ffc6cbdb6.js b/pilot/server/static/_next/static/chunks/pages/_app-3550d2087fc40b84.js similarity index 82% rename from pilot/server/static/_next/static/chunks/pages/_app-9e94401ffc6cbdb6.js rename to pilot/server/static/_next/static/chunks/pages/_app-3550d2087fc40b84.js index d42ae9fac..8b8880870 100644 --- a/pilot/server/static/_next/static/chunks/pages/_app-9e94401ffc6cbdb6.js +++ b/pilot/server/static/_next/static/chunks/pages/_app-3550d2087fc40b84.js @@ -1,7 +1,7 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{16397:function(e,t,r){"use strict";r.d(t,{iN:function(){return g},R_:function(){return f},ez:function(){return d}});var n=r(86500),o=r(1350),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,r=e.g,o=e.b,i=(0,n.py)(t,r,o);return{h:360*i.h,s:i.s,v:i.v}}function l(e){var t=e.r,r=e.g,o=e.b;return"#".concat((0,n.vq)(t,r,o,!1))}function s(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?n+=360:n>=360&&(n-=360),n}function c(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)))}function u(e,t,r){var n;return(n=r?e.v+.05*t:e.v-.15*t)>1&&(n=1),Number(n.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,o.uA)(e),f=5;f>0;f-=1){var d=a(n),p=l((0,o.uA)({h:s(d,f,!0),s:c(d,f,!0),v:u(d,f,!0)}));r.push(p)}r.push(l(n));for(var h=1;h<=4;h+=1){var g=a(n),m=l((0,o.uA)({h:s(g,h),s:c(g,h),v:u(g,h)}));r.push(m)}return"dark"===t.theme?i.map(function(e){var n,i,a,s=e.index,c=e.opacity;return l((n=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(r[s]),a=100*c/100,{r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b}))}):r}var d={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},p={},h={};Object.keys(d).forEach(function(e){p[e]=f(d[e]),p[e].primary=p[e][5],h[e]=f(d[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]}),p.red,p.volcano,p.gold,p.orange,p.yellow,p.lime,p.green,p.cyan;var g=p.blue;p.geekblue,p.purple,p.magenta,p.grey,p.grey},23183:function(e,t,r){"use strict";r.d(t,{E4:function(){return ee},jG:function(){return O},t2:function(){return B},fp:function(){return M},xy:function(){return Q}});var n,o=r(74902),i=r(1413),a=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)},l=r(67294),s=r.t(l,2);r(56982),r(91881);var c=r(15671),u=r(43144),f=r(4942),d=function(){function e(t){(0,c.Z)(this,e),(0,f.Z)(this,"instanceId",void 0),(0,f.Z)(this,"cache",new Map),this.instanceId=t}return(0,u.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var r=e.join("%"),n=t(this.cache.get(r));null===n?this.cache.delete(r):this.cache.set(r,n)}}]),e}(),p="data-token-hash",h="data-css-hash",g="__cssinjs_instance__",m=l.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(h,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[g]=t[g]||e,t[g]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(h,"]"))).forEach(function(t){var r,o=t.getAttribute(h);n[o]?t[g]===e&&(null===(r=t.parentNode)||void 0===r||r.removeChild(t)):n[o]=!0})}return new d(e)}(),defaultCache:!0}),v=r(71002),y=r(98924),b=r(44958),x=r(97685),w=function(){function e(){(0,c.Z)(this,e),(0,f.Z)(this,"cache",void 0),(0,f.Z)(this,"keys",void 0),(0,f.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,u.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,r;o=null===(t=o)||void 0===t?void 0:null===(r=t.map)||void 0===r?void 0:r.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&n&&(o.value[1]=this.cacheCallTimes++),null===(r=o)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var r=(0,x.Z)(e,2)[1];return n.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),S+=1}return(0,u.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),k=new w;function O(e){var t=Array.isArray(e)?e:[e];return k.has(t)||k.set(t,new E(t)),k.get(t)}var Z=new WeakMap;function $(e){var t=Z.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof E?t+=n.id:n&&"object"===(0,v.Z)(n)?t+=$(n):t+=n}),Z.set(e,t)),t}var P="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),j="_bAmBoO_",A=void 0,R=r(8410),T=(0,i.Z)({},s).useInsertionEffect,F=T?function(e,t,r){return T(function(){return e(),t()},r)}:function(e,t,r){l.useMemo(e,r),(0,R.Z)(function(){return t(!0)},r)},I=void 0!==(0,i.Z)({},s).useInsertionEffect?function(e){var t=[],r=!1;return l.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){r||t.push(e)}}:function(){return function(e){e()}};function L(e,t,r,n,i){var a=l.useContext(m).cache,s=[e].concat((0,o.Z)(t)),c=s.join("_"),u=I([c]),f=function(e){a.update(s,function(t){var n=(0,x.Z)(t||[],2),o=n[0],i=[void 0===o?0:o,n[1]||r()];return e?e(i):i})};l.useMemo(function(){f()},[c]);var d=a.get(s)[1];return F(function(){null==i||i(d)},function(e){return f(function(t){var r=(0,x.Z)(t,2),n=r[0],o=r[1];return e&&0===n&&(null==i||i(d)),[n+1,o]}),function(){a.update(s,function(e){var t=(0,x.Z)(e||[],2),r=t[0],o=void 0===r?0:r,i=t[1];return 0==o-1?(u(function(){return null==n?void 0:n(i,!1)}),null):[o-1,i]})}},[c]),d}var _={},N=new Map,B=function(e,t,r,n){var o=r.getDerivativeToken(e),a=(0,i.Z)((0,i.Z)({},o),t);return n&&(a=n(a)),a};function M(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,l.useContext)(m).cache.instanceId,i=r.salt,s=void 0===i?"":i,c=r.override,u=void 0===c?_:c,f=r.formatToken,d=r.getComputedToken,h=l.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(t)))},[t]),v=l.useMemo(function(){return $(h)},[h]),y=l.useMemo(function(){return $(u)},[u]);return L("token",[s,e.id,v,y],function(){var t=d?d(h,u,e):B(h,u,e,f),r=a("".concat(s,"_").concat($(t)));t._tokenKey=r,N.set(r,(N.get(r)||0)+1);var n="".concat("css","-").concat(a(r));return t._hashId=n,[t,n]},function(e){var t,r,o;t=e[0]._tokenKey,N.set(t,(N.get(t)||0)-1),o=(r=Array.from(N.keys())).filter(function(e){return 0>=(N.get(e)||0)}),r.length-o.length>0&&o.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(p,'="').concat(e,'"]')).forEach(function(e){if(e[g]===n){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),N.delete(e)})})}var D=r(87462),z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},H=r(20211),W=r(92190),U="data-ant-cssinjs-cache-path",V="_FILE_STYLE__",q=!0,K=(0,y.Z)(),G="_multi_value_";function J(e){return(0,H.q)((0,W.MY)(e),H.P).replace(/\{%%%\:[^;];}/g,";")}var X=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,l=n.injectHash,s=n.parentSelectors,c=r.hashId,u=r.layer,f=(r.path,r.hashPriority),d=r.transformers,p=void 0===d?[]:d;r.linters;var h="",g={};function m(t){var n=t.getName(c);if(!g[n]){var o=e(t.style,r,{root:!1,parentSelectors:s}),i=(0,x.Z)(o,1)[0];g[n]="@keyframes ".concat(t.getName(c)).concat(i)}}if((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,r):t&&r.push(t)}),r})(Array.isArray(t)?t:[t]).forEach(function(t){var n="string"!=typeof t||a?t:{};if("string"==typeof n)h+="".concat(n,"\n");else if(n._keyframe)m(n);else{var u=p.reduce(function(e,t){var r;return(null==t?void 0:null===(r=t.visit)||void 0===r?void 0:r.call(t,e))||e},n);Object.keys(u).forEach(function(t){var n=u[t];if("object"!==(0,v.Z)(n)||!n||"animationName"===t&&n._keyframe||"object"===(0,v.Z)(n)&&n&&("_skip_check_"in n||G in n)){function d(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;z[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),n=t.getName(c)),h+="".concat(r,":").concat(n,";")}var p,y=null!==(p=null==n?void 0:n.value)&&void 0!==p?p:n;"object"===(0,v.Z)(n)&&null!=n&&n[G]&&Array.isArray(y)?y.forEach(function(e){d(t,e)}):d(t,y)}else{var b=!1,w=t.trim(),C=!1;(a||l)&&c?w.startsWith("@")?b=!0:w=function(e,t,r){if(!t)return e;var n=".".concat(t),i="low"===r?":where(".concat(n,")"):n;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",a=(null===(t=n.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[n="".concat(a).concat(i).concat(n.slice(a.length))].concat((0,o.Z)(r.slice(1))).join(" ")}).join(",")}(t,c,f):a&&!c&&("&"===w||""===w)&&(w="",C=!0);var S=e(n,r,{root:C,injectHash:b,parentSelectors:[].concat((0,o.Z)(s),[w])}),E=(0,x.Z)(S,2),k=E[0],O=E[1];g=(0,i.Z)((0,i.Z)({},g),O),h+="".concat(w).concat(k)}})}}),a){if(u&&(void 0===A&&(A=function(e,t,r){if((0,y.Z)()){(0,b.hq)(e,P);var n,o,i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=r?r(i):null===(n=getComputedStyle(i).content)||void 0===n?void 0:n.includes(j);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),(0,b.jL)(P),a}return!1}("@layer ".concat(P," { .").concat(P,' { content: "').concat(j,'"!important; } }'),function(e){e.className=P})),A)){var w=u.split(","),C=w[w.length-1].trim();h="@layer ".concat(C," {").concat(h,"}"),w.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,g]};function Y(){return null}function Q(e,t){var r=e.token,i=e.path,s=e.hashId,c=e.layer,u=e.nonce,d=e.clientOnly,v=e.order,w=void 0===v?0:v,C=l.useContext(m),S=C.autoClear,E=(C.mock,C.defaultCache),k=C.hashPriority,O=C.container,Z=C.ssrInline,$=C.transformers,P=C.linters,j=C.cache,A=r._tokenKey,R=[A].concat((0,o.Z)(i)),T=L("style",R,function(){var e=R.join("|");if(!function(){if(!n&&(n={},(0,y.Z)())){var e,t=document.createElement("div");t.className=U,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),r=(0,x.Z)(t,2),o=r[0],i=r[1];n[o]=i});var o=document.querySelector("style[".concat(U,"]"));o&&(q=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),n[e]){var r=function(e){var t=n[e],r=null;if(t&&(0,y.Z)()){if(q)r=V;else{var o=document.querySelector("style[".concat(h,'="').concat(n[e],'"]'));o?r=o.innerHTML:delete n[e]}}return[r,t]}(e),o=(0,x.Z)(r,2),l=o[0],u=o[1];if(l)return[l,A,u,{},d,w]}var f=X(t(),{hashId:s,hashPriority:k,layer:c,path:i.join("-"),transformers:$,linters:P}),p=(0,x.Z)(f,2),g=p[0],m=p[1],v=J(g),b=a("".concat(R.join("%")).concat(v));return[v,A,b,m,d,w]},function(e,t){var r=(0,x.Z)(e,3)[2];(t||S)&&K&&(0,b.jL)(r,{mark:h})},function(e){var t=(0,x.Z)(e,4),r=t[0],n=(t[1],t[2]),o=t[3];if(K&&r!==V){var i={mark:h,prepend:"queue",attachTo:O,priority:w},a="function"==typeof u?u():u;a&&(i.csp={nonce:a});var l=(0,b.hq)(r,n,i);l[g]=j.instanceId,l.setAttribute(p,A),Object.keys(o).forEach(function(e){(0,b.hq)(J(o[e]),"_effect-".concat(e),i)})}}),F=(0,x.Z)(T,3),I=F[0],_=F[1],N=F[2];return function(e){var t,r;return t=Z&&!K&&E?l.createElement("style",(0,D.Z)({},(r={},(0,f.Z)(r,p,_),(0,f.Z)(r,h,N),r),{dangerouslySetInnerHTML:{__html:I}})):l.createElement(Y,null),l.createElement(l.Fragment,null,t,e)}}var ee=function(){function e(t,r){(0,c.Z)(this,e),(0,f.Z)(this,"name",void 0),(0,f.Z)(this,"style",void 0),(0,f.Z)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,u.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function et(e){return e.notSplit=!0,e}et(["borderTop","borderBottom"]),et(["borderTop"]),et(["borderBottom"]),et(["borderLeft","borderRight"]),et(["borderLeft"]),et(["borderRight"])},42135:function(e,t,r){"use strict";r.d(t,{Z:function(){return $}});var n=r(87462),o=r(97685),i=r(4942),a=r(45987),l=r(67294),s=r(94184),c=r.n(s),u=r(16397),f=r(63017),d=r(1413),p=r(71002),h=r(44958),g=r(27571),m=r(80334);function v(e){return"object"===(0,p.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.Z)(e.icon)||"function"==typeof e.icon)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[r.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=n),t},{})}function b(e){return(0,u.R_)(e)[0]}function x(e){return e?Array.isArray(e)?e:[e]:[]}var w=function(e){var t=(0,l.useContext)(f.Z),r=t.csp,n=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(o=o.replace(/anticon/g,n)),(0,l.useEffect)(function(){var t=e.current,n=(0,g.A)(t);(0,h.hq)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})},[])},C=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},E=function(e){var t,r,n=e.icon,o=e.className,i=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,f=(0,a.Z)(e,C),p=l.useRef(),h=S;if(c&&(h={primaryColor:c,secondaryColor:u||b(c)}),w(p),t=v(n),r="icon should be icon definiton, but got ".concat(n),(0,m.ZP)(t,"[@ant-design/icons] ".concat(r)),!v(n))return null;var g=n;return g&&"function"==typeof g.icon&&(g=(0,d.Z)((0,d.Z)({},g),{},{icon:g.icon(h.primaryColor,h.secondaryColor)})),function e(t,r,n){return n?l.createElement(t.tag,(0,d.Z)((0,d.Z)({key:r},y(t.attrs)),n),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,d.Z)({key:r},y(t.attrs)),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))}))}(g.icon,"svg-".concat(g.name),(0,d.Z)((0,d.Z)({className:o,onClick:i,style:s,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};function k(e){var t=x(e),r=(0,o.Z)(t,2),n=r[0],i=r[1];return E.setTwoToneColors({primaryColor:n,secondaryColor:i})}E.displayName="IconReact",E.getTwoToneColors=function(){return(0,d.Z)({},S)},E.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;S.primaryColor=t,S.secondaryColor=r||b(t),S.calculated=!!r};var O=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(u.iN.primary);var Z=l.forwardRef(function(e,t){var r,s=e.className,u=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,v=(0,a.Z)(e,O),y=l.useContext(f.Z),b=y.prefixCls,w=void 0===b?"anticon":b,C=y.rootClassName,S=c()(C,w,(r={},(0,i.Z)(r,"".concat(w,"-").concat(u.name),!!u.name),(0,i.Z)(r,"".concat(w,"-spin"),!!d||"loading"===u.name),r),s),k=h;void 0===k&&g&&(k=-1);var Z=x(m),$=(0,o.Z)(Z,2),P=$[0],j=$[1];return l.createElement("span",(0,n.Z)({role:"img","aria-label":u.name},v,{ref:t,tabIndex:k,onClick:g,className:S}),l.createElement(E,{icon:u,primaryColor:P,secondaryColor:j,style:p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0}))});Z.displayName="AntdIcon",Z.getTwoToneColor=function(){var e=E.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Z.setTwoToneColor=k;var $=Z},63017:function(e,t,r){"use strict";var n=(0,r(67294).createContext)({});t.Z=n},89739:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},4340:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},97937:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},21640:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},78860:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},50888:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},86500:function(e,t,r){"use strict";r.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return c},Yt:function(){return h},lC:function(){return i},py:function(){return s},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var n=r(90279);function o(e,t,r){return{r:255*(0,n.sh)(e,255),g:255*(0,n.sh)(t,255),b:255*(0,n.sh)(r,255)}}function i(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=0,s=(o+i)/2;if(o===i)l=0,a=0;else{var c=o-i;switch(l=s>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-r)/c+(t1&&(r-=1),r<1/6)?e+(t-e)*(6*r):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function l(e,t,r){if(e=(0,n.sh)(e,360),t=(0,n.sh)(t,100),r=(0,n.sh)(r,100),0===t)i=r,l=r,o=r;else{var o,i,l,s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;o=a(c,s,e+1/3),i=a(c,s,e),l=a(c,s,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function s(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-r)/l+(t>16,g:(65280&e)>>8,b:255&e}}},48701:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});var n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:function(e,t,r){"use strict";r.d(t,{uA:function(){return a}});var n=r(86500),o=r(48701),i=r(90279);function a(e){var t={r:0,g:0,b:0},r=1,a=null,l=null,s=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=u.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=u.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=u.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=u.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=u.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=u.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=u.hex8.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),a:(0,n.T6)(r[4]),format:t?"name":"hex8"}:(r=u.hex6.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),format:t?"name":"hex"}:(r=u.hex4.exec(e))?{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),a:(0,n.T6)(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=u.hex3.exec(e))&&{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,n.rW)(e.r,e.g,e.b),c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,i.JX)(e.s),l=(0,i.JX)(e.v),t=(0,n.WE)(e.h,a,l),c=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,n.ve)(e.h,a,s),c=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=(0,i.Yq)(r),{ok:c,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return!!u.CSS_UNIT.exec(String(e))}},10274:function(e,t,r){"use strict";r.d(t,{C:function(){return l}});var n=r(86500),o=r(48701),i=r(1350),a=r(90279),l=function(){function e(t,r){if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=(0,n.Yt)(t)),this.originalInput=t;var o,a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=r.format)&&void 0!==o?o:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,r=e.g/255,n=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,n.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,n.py)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,n.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,n.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,n.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,n.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,n.vq)(this.r,this.g,this.b,!1),t=0,r=Object.entries(o.R);t=0;return!t&&n&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(255*(t/100))))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(255*(t/100))))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(255*(t/100))))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return new e(a)},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,a=[],l=1/t;t--;)a.push(new e({h:n,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],i=360/t,a=1;aMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}r.d(t,{FZ:function(){return l},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return n}})},9463:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case a.h5:e.return=function e(t,r){switch((0,i.vp)(t,r)){case 5103:return a.G$+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a.G$+t+a.uj+t+a.MS+t+t;case 6828:case 4268:return a.G$+t+a.MS+t+t;case 6165:return a.G$+t+a.MS+"flex-"+t+t;case 5187:return a.G$+t+(0,i.gx)(t,/(\w+).+(:[^]+)/,a.G$+"box-$1$2"+a.MS+"flex-$1$2")+t;case 5443:return a.G$+t+a.MS+"flex-item-"+(0,i.gx)(t,/flex-|-self/,"")+t;case 4675:return a.G$+t+a.MS+"flex-line-pack"+(0,i.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return a.G$+t+a.MS+(0,i.gx)(t,"shrink","negative")+t;case 5292:return a.G$+t+a.MS+(0,i.gx)(t,"basis","preferred-size")+t;case 6060:return a.G$+"box-"+(0,i.gx)(t,"-grow","")+a.G$+t+a.MS+(0,i.gx)(t,"grow","positive")+t;case 4554:return a.G$+(0,i.gx)(t,/([^-])(transform)/g,"$1"+a.G$+"$2")+t;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(t,/(zoom-|grab)/,a.G$+"$1"),/(image-set)/,a.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,i.gx)(t,/(image-set\([^]*)/,a.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(t,/(.+:)(flex-)?(.*)/,a.G$+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(t,/(.+)-inline(.+)/,a.G$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.to)(t)-1-r>6)switch((0,i.uO)(t,r+1)){case 109:if(45!==(0,i.uO)(t,r+4))break;case 102:return(0,i.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+a.G$+"$2-$3$1"+a.uj+(108==(0,i.uO)(t,r+3)?"$3":"$2-$3"))+t;case 115:return~(0,i.Cw)(t,"stretch")?e((0,i.gx)(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==(0,i.uO)(t,r+1))break;case 6444:switch((0,i.uO)(t,(0,i.to)(t)-3-(~(0,i.Cw)(t,"!important")&&10))){case 107:return(0,i.gx)(t,":",":"+a.G$)+t;case 101:return(0,i.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.G$+(45===(0,i.uO)(t,14)?"inline-":"")+"box$3$1"+a.G$+"$2$3$1"+a.MS+"$2box$3")+t}break;case 5936:switch((0,i.uO)(t,r+11)){case 114:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a.G$+t+a.MS+t+t}return t}(e.value,e.length);break;case a.lK:return(0,l.q)([(0,o.JG)(e,{value:(0,i.gx)(e.value,"@","@"+a.G$)})],n);case a.Fr:if(e.length)return(0,i.$e)(e.props,function(t){switch((0,i.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(read-\w+)/,":"+a.uj+"$1")]})],n);case"::placeholder":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.G$+"input-$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.uj+"$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,a.MS+"input-$1")]})],n)}return""})}}],g=function(e){var t,r,o,a,c,u=e.key;if("css"===u){var f=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(f,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var g=e.stylisPlugins||h,m={},v=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+u+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+c,styles:a,next:n}}},27278:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return l}});var n,o=r(67294),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()},l=i||o.useLayoutEffect},70444:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return i},fp:function(){return n},hC:function(){return o}});var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},60769:function(e,t,r){"use strict";r.d(t,{Z:function(){return eT}});var n,o,i,a,l,s=r(87462),c=r(63366),u=r(67294),f=r(33703),d=r(73546),p=r(82690);function h(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function g(e){var t=h(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=h(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function v(e){if("undefined"==typeof ShadowRoot)return!1;var t=h(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var y=Math.max,b=Math.min,x=Math.round;function w(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function C(){return!/^((?!chrome|android).)*safari/i.test(w())}function S(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&m(e)&&(o=e.offsetWidth>0&&x(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&x(n.height)/e.offsetHeight||1);var a=(g(e)?h(e):window).visualViewport,l=!C()&&r,s=(n.left+(l&&a?a.offsetLeft:0))/o,c=(n.top+(l&&a?a.offsetTop:0))/i,u=n.width/o,f=n.height/i;return{width:u,height:f,top:c,right:s+u,bottom:c+f,left:s,x:s,y:c}}function E(e){var t=h(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function k(e){return e?(e.nodeName||"").toLowerCase():null}function O(e){return((g(e)?e.ownerDocument:e.document)||window.document).documentElement}function Z(e){return S(O(e)).left+E(e).scrollLeft}function $(e){return h(e).getComputedStyle(e)}function P(e){var t=$(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function j(e){var t=S(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function A(e){return"html"===k(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||O(e)}function R(e,t){void 0===t&&(t=[]);var r,n=function e(t){return["html","body","#document"].indexOf(k(t))>=0?t.ownerDocument.body:m(t)&&P(t)?t:e(A(t))}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=h(n),a=o?[i].concat(i.visualViewport||[],P(n)?n:[]):n,l=t.concat(a);return o?l:l.concat(R(A(a)))}function T(e){return m(e)&&"fixed"!==$(e).position?e.offsetParent:null}function F(e){for(var t=h(e),r=T(e);r&&["table","td","th"].indexOf(k(r))>=0&&"static"===$(r).position;)r=T(r);return r&&("html"===k(r)||"body"===k(r)&&"static"===$(r).position)?t:r||function(e){var t=/firefox/i.test(w());if(/Trident/i.test(w())&&m(e)&&"fixed"===$(e).position)return null;var r=A(e);for(v(r)&&(r=r.host);m(r)&&0>["html","body"].indexOf(k(r));){var n=$(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var I="bottom",L="right",_="left",N="auto",B=["top",I,L,_],M="start",D="viewport",z="popper",H=B.reduce(function(e,t){return e.concat([t+"-"+M,t+"-end"])},[]),W=[].concat(B,[N]).reduce(function(e,t){return e.concat([t,t+"-"+M,t+"-end"])},[]),U=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],V={placement:"bottom",modifiers:[],strategy:"absolute"};function q(){for(var e=arguments.length,t=Array(e),r=0;r=0?"x":"y"}function Y(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?G(o):null,a=o?J(o):null,l=r.x+r.width/2-n.width/2,s=r.y+r.height/2-n.height/2;switch(i){case"top":t={x:l,y:r.y-n.height};break;case I:t={x:l,y:r.y+r.height};break;case L:t={x:r.x+r.width,y:s};break;case _:t={x:r.x-n.width,y:s};break;default:t={x:r.x,y:r.y}}var c=i?X(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case M:t[c]=t[c]-(r[u]/2-n[u]/2);break;case"end":t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,r,n,o,i,a,l,s=e.popper,c=e.popperRect,u=e.placement,f=e.variation,d=e.offsets,p=e.position,g=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,y=e.isFixed,b=d.x,w=void 0===b?0:b,C=d.y,S=void 0===C?0:C,E="function"==typeof v?v({x:w,y:S}):{x:w,y:S};w=E.x,S=E.y;var k=d.hasOwnProperty("x"),Z=d.hasOwnProperty("y"),P=_,j="top",A=window;if(m){var R=F(s),T="clientHeight",N="clientWidth";R===h(s)&&"static"!==$(R=O(s)).position&&"absolute"===p&&(T="scrollHeight",N="scrollWidth"),("top"===u||(u===_||u===L)&&"end"===f)&&(j=I,S-=(y&&R===A&&A.visualViewport?A.visualViewport.height:R[T])-c.height,S*=g?1:-1),(u===_||("top"===u||u===I)&&"end"===f)&&(P=L,w-=(y&&R===A&&A.visualViewport?A.visualViewport.width:R[N])-c.width,w*=g?1:-1)}var B=Object.assign({position:p},m&&Q),M=!0===v?(t={x:w,y:S},r=h(s),n=t.x,o=t.y,{x:x(n*(i=r.devicePixelRatio||1))/i||0,y:x(o*i)/i||0}):{x:w,y:S};return(w=M.x,S=M.y,g)?Object.assign({},B,((l={})[j]=Z?"0":"",l[P]=k?"0":"",l.transform=1>=(A.devicePixelRatio||1)?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",l)):Object.assign({},B,((a={})[j]=Z?S+"px":"",a[P]=k?w+"px":"",a.transform="",a))}var et={left:"right",right:"left",bottom:"top",top:"bottom"};function er(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var en={start:"end",end:"start"};function eo(e){return e.replace(/start|end/g,function(e){return en[e]})}function ei(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&v(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ea(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function el(e,t,r){var n,o,i,a,l,s,c,u,f,d;return t===D?ea(function(e,t){var r=h(e),n=O(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=C();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Z(e),y:s}}(e,r)):g(t)?((n=S(t,!1,"fixed"===r)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):ea((o=O(e),a=O(o),l=E(o),s=null==(i=o.ownerDocument)?void 0:i.body,c=y(a.scrollWidth,a.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=y(a.scrollHeight,a.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),f=-l.scrollLeft+Z(o),d=-l.scrollTop,"rtl"===$(s||a).direction&&(f+=y(a.clientWidth,s?s.clientWidth:0)-c),{width:c,height:u,x:f,y:d}))}function es(){return{top:0,right:0,bottom:0,left:0}}function ec(e){return Object.assign({},es(),e)}function eu(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function ef(e,t){void 0===t&&(t={});var r,n,o,i,a,l,s,c=t,u=c.placement,f=void 0===u?e.placement:u,d=c.strategy,p=void 0===d?e.strategy:d,h=c.boundary,v=c.rootBoundary,x=c.elementContext,w=void 0===x?z:x,C=c.altBoundary,E=c.padding,Z=void 0===E?0:E,P=ec("number"!=typeof Z?Z:eu(Z,B)),j=e.rects.popper,T=e.elements[void 0!==C&&C?w===z?"reference":z:w],_=(r=g(T)?T:T.contextElement||O(e.elements.popper),l=(a=[].concat("clippingParents"===(n=void 0===h?"clippingParents":h)?(o=R(A(r)),g(i=["absolute","fixed"].indexOf($(r).position)>=0&&m(r)?F(r):r)?o.filter(function(e){return g(e)&&ei(e,i)&&"body"!==k(e)}):[]):[].concat(n),[void 0===v?D:v]))[0],(s=a.reduce(function(e,t){var n=el(r,t,p);return e.top=y(n.top,e.top),e.right=b(n.right,e.right),e.bottom=b(n.bottom,e.bottom),e.left=y(n.left,e.left),e},el(r,l,p))).width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s),N=S(e.elements.reference),M=Y({reference:N,element:j,strategy:"absolute",placement:f}),H=ea(Object.assign({},j,M)),W=w===z?H:N,U={top:_.top-W.top+P.top,bottom:W.bottom-_.bottom+P.bottom,left:_.left-W.left+P.left,right:W.right-_.right+P.right},V=e.modifiersData.offset;if(w===z&&V){var q=V[f];Object.keys(U).forEach(function(e){var t=[L,I].indexOf(e)>=0?1:-1,r=["top",I].indexOf(e)>=0?"y":"x";U[e]+=q[r]*t})}return U}function ed(e,t,r){return y(e,b(t,r))}function ep(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function eh(e){return["top",L,I,_].some(function(t){return e[t]>=0})}var eg=(i=void 0===(o=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,l=void 0===a||a,s=h(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",r.update,K)}),l&&s.addEventListener("resize",r.update,K),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",r.update,K)}),l&&s.removeEventListener("resize",r.update,K)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=r.adaptive,i=r.roundOffsets,a=void 0===i||i,l={placement:G(t.placement),variation:J(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];m(o)&&k(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&k(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=W.reduce(function(e,r){var n,o,a,l,s,c;return e[r]=(n=t.rects,a=[_,"top"].indexOf(o=G(r))>=0?-1:1,s=(l="function"==typeof i?i(Object.assign({},n,{placement:r})):i)[0],c=l[1],s=s||0,c=(c||0)*a,[_,L].indexOf(o)>=0?{x:c,y:s}:{x:s,y:c}),e},{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,l=void 0===a||a,s=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,h=void 0===p||p,g=r.allowedAutoPlacements,m=t.options.placement,v=G(m)===m,y=s||(v||!h?[er(m)]:function(e){if(G(e)===N)return[];var t=er(e);return[eo(e),t,eo(t)]}(m)),b=[m].concat(y).reduce(function(e,r){var n,o,i,a,l,s,d,p,m,v,y,b;return e.concat(G(r)===N?(o=(n={placement:r,boundary:u,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:g}).placement,i=n.boundary,a=n.rootBoundary,l=n.padding,s=n.flipVariations,p=void 0===(d=n.allowedAutoPlacements)?W:d,0===(y=(v=(m=J(o))?s?H:H.filter(function(e){return J(e)===m}):B).filter(function(e){return p.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,r){return e[r]=ef(t,{placement:r,boundary:i,rootBoundary:a,padding:l})[G(r)],e},{})).sort(function(e,t){return b[e]-b[t]})):r)},[]),x=t.rects.reference,w=t.rects.popper,C=new Map,S=!0,E=b[0],k=0;k=0,j=P?"width":"height",A=ef(t,{placement:O,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),R=P?$?L:_:$?I:"top";x[j]>w[j]&&(R=er(R));var T=er(R),F=[];if(i&&F.push(A[Z]<=0),l&&F.push(A[R]<=0,A[T]<=0),F.every(function(e){return e})){E=O,S=!1;break}C.set(O,F)}if(S)for(var D=h?3:1,z=function(e){var t=b.find(function(t){var r=C.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},U=D;U>0&&"break"!==z(U);U--);t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=r.altAxis,a=r.boundary,l=r.rootBoundary,s=r.altBoundary,c=r.padding,u=r.tether,f=void 0===u||u,d=r.tetherOffset,p=void 0===d?0:d,h=ef(t,{boundary:a,rootBoundary:l,padding:c,altBoundary:s}),g=G(t.placement),m=J(t.placement),v=!m,x=X(g),w="x"===x?"y":"x",C=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,k="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,O="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),Z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(C){if(void 0===o||o){var P,A="y"===x?"top":_,R="y"===x?I:L,T="y"===x?"height":"width",N=C[x],B=N+h[A],D=N-h[R],z=f?-E[T]/2:0,H=m===M?S[T]:E[T],W=m===M?-E[T]:-S[T],U=t.elements.arrow,V=f&&U?j(U):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:es(),K=q[A],Y=q[R],Q=ed(0,S[T],V[T]),ee=v?S[T]/2-z-Q-K-O.mainAxis:H-Q-K-O.mainAxis,et=v?-S[T]/2+z+Q+Y+O.mainAxis:W+Q+Y+O.mainAxis,er=t.elements.arrow&&F(t.elements.arrow),en=er?"y"===x?er.clientTop||0:er.clientLeft||0:0,eo=null!=(P=null==Z?void 0:Z[x])?P:0,ei=N+ee-eo-en,ea=N+et-eo,el=ed(f?b(B,ei):B,N,f?y(D,ea):D);C[x]=el,$[x]=el-N}if(void 0!==i&&i){var ec,eu,ep="x"===x?"top":_,eh="x"===x?I:L,eg=C[w],em="y"===w?"height":"width",ev=eg+h[ep],ey=eg-h[eh],eb=-1!==["top",_].indexOf(g),ex=null!=(eu=null==Z?void 0:Z[w])?eu:0,ew=eb?ev:eg-S[em]-E[em]-ex+O.altAxis,eC=eb?eg+S[em]+E[em]-ex-O.altAxis:ey,eS=f&&eb?(ec=ed(ew,eg,eC))>eC?eC:ec:ed(f?ew:ev,eg,f?eC:ey);C[w]=eS,$[w]=eS-eg}t.modifiersData[n]=$}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,o=e.name,i=e.options,a=n.elements.arrow,l=n.modifiersData.popperOffsets,s=G(n.placement),c=X(s),u=[_,L].indexOf(s)>=0?"height":"width";if(a&&l){var f=ec("number"!=typeof(t="function"==typeof(t=i.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,B)),d=j(a),p="y"===c?"top":_,h="y"===c?I:L,g=n.rects.reference[u]+n.rects.reference[c]-l[c]-n.rects.popper[u],m=l[c]-n.rects.reference[c],v=F(a),y=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,b=f[p],x=y-d[u]-f[h],w=y/2-d[u]/2+(g/2-m/2),C=ed(b,w,x);n.modifiersData[o]=((r={})[c]=C,r.centerOffset=C-w,r)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ei(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ef(t,{elementContext:"reference"}),l=ef(t,{altBoundary:!0}),s=ep(a,n),c=ep(l,o,i),u=eh(s),f=eh(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}).defaultModifiers)?[]:o,l=void 0===(a=n.defaultOptions)?V:a,function(e,t,r){void 0===r&&(r=l);var n,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},V,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:o,setOptions:function(r){var n,s,f,d,p,h="function"==typeof r?r(o.options):r;u(),o.options=Object.assign({},l,o.options,h),o.scrollParents={reference:g(e)?R(e):e.contextElement?R(e.contextElement):[],popper:R(t)};var m=(s=Object.keys(n=[].concat(i,o.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return n[e]}),f=new Map,d=new Set,p=[],s.forEach(function(e){f.set(e.name,e)}),s.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var r=f.get(t);r&&e(r)}}),p.push(t)}(e)}),U.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return o.orderedModifiers=m.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var i=n({state:o,name:t,instance:c,options:void 0===r?{}:r});a.push(i||function(){})}}),c.update()},forceUpdate:function(){if(!s){var e,t,r,n,i,a,l,u,f,d,p,g,v=o.elements,y=v.reference,b=v.popper;if(q(y,b)){o.rects={reference:(t=F(b),r="fixed"===o.options.strategy,n=m(t),u=m(t)&&(a=x((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,l=x(i.height)/t.offsetHeight||1,1!==a||1!==l),f=O(t),d=S(y,u,r),p={scrollLeft:0,scrollTop:0},g={x:0,y:0},(n||!n&&!r)&&(("body"!==k(t)||P(f))&&(p=(e=t)!==h(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:E(e)),m(t)?(g=S(t,!0),g.x+=t.clientLeft,g.y+=t.clientTop):f&&(g.x=Z(f))),{x:d.left+p.scrollLeft-g.x,y:d.top+p.scrollTop-g.y,width:d.width,height:d.height}),popper:j(b)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var w=0;w(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(ek);return r=>t?"":e(r)}(eb)),ej={},eA=u.forwardRef(function(e,t){var r;let{anchorEl:n,children:o,direction:i,disablePortal:a,modifiers:l,open:p,placement:h,popperOptions:g,popperRef:m,slotProps:v={},slots:y={},TransitionProps:b}=e,x=(0,c.Z)(e,eO),w=u.useRef(null),C=(0,f.Z)(w,t),S=u.useRef(null),E=(0,f.Z)(S,m),k=u.useRef(E);(0,d.Z)(()=>{k.current=E},[E]),u.useImperativeHandle(m,()=>S.current,[]);let O=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,i),[Z,$]=u.useState(O),[P,j]=u.useState(e$(n));u.useEffect(()=>{S.current&&S.current.forceUpdate()}),u.useEffect(()=>{n&&j(e$(n))},[n]),(0,d.Z)(()=>{if(!P||!p)return;let e=e=>{$(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=l&&(t=t.concat(l)),g&&null!=g.modifiers&&(t=t.concat(g.modifiers));let r=eg(P,w.current,(0,s.Z)({placement:O},g,{modifiers:t}));return k.current(r),()=>{r.destroy(),k.current(null)}},[P,a,l,p,g,O]);let A={placement:Z};null!==b&&(A.TransitionProps=b);let R=eP(),T=null!=(r=y.root)?r:"div",F=function(e){var t;let{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=(0,c.Z)(e,eS),l=i?{}:(0,eC.Z)(n,o),{props:u,internalRef:d}=(0,ew.Z)((0,s.Z)({},a,{externalSlotProps:l})),p=(0,f.Z)(d,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref),h=(0,ex.Z)(r,(0,s.Z)({},u,{ref:p}),o);return h}({elementType:T,externalSlotProps:v.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:C},ownerState:e,className:R.root});return(0,eE.jsx)(T,(0,s.Z)({},F,{children:"function"==typeof o?o(A):o}))}),eR=u.forwardRef(function(e,t){let r;let{anchorEl:n,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:f=!1,modifiers:d,open:h,placement:g="bottom",popperOptions:m=ej,popperRef:v,style:y,transition:b=!1,slotProps:x={},slots:w={}}=e,C=(0,c.Z)(e,eZ),[S,E]=u.useState(!0);if(!f&&!h&&(!b||S))return null;if(i)r=i;else if(n){let e=e$(n);r=e&&void 0!==e.nodeType?(0,p.Z)(e).body:(0,p.Z)(null).body}let k=!h&&f&&(!b||S)?"none":void 0;return(0,eE.jsx)(ev.Z,{disablePortal:l,container:r,children:(0,eE.jsx)(eA,(0,s.Z)({anchorEl:n,direction:a,disablePortal:l,modifiers:d,ref:t,open:b?!S:h,placement:g,popperOptions:m,popperRef:v,slotProps:x,slots:w},C,{style:(0,s.Z)({position:"fixed",top:0,left:0,display:k},y),TransitionProps:b?{in:h,onEnter:()=>{E(!1)},onExited:()=>{E(!0)}}:void 0,children:o}))})});var eT=eR},78385:function(e,t,r){"use strict";var n=r(67294),o=r(73935),i=r(33703),a=r(73546),l=r(7960),s=r(85893);let c=n.forwardRef(function(e,t){let{children:r,container:c,disablePortal:u=!1}=e,[f,d]=n.useState(null),p=(0,i.Z)(n.isValidElement(r)?r.ref:null,t);return((0,a.Z)(()=>{!u&&d(("function"==typeof c?c():c)||document.body)},[c,u]),(0,a.Z)(()=>{if(f&&!u)return(0,l.Z)(t,f),()=>{(0,l.Z)(t,null)}},[t,f,u]),u)?n.isValidElement(r)?n.cloneElement(r,{ref:p}):(0,s.jsx)(n.Fragment,{children:r}):(0,s.jsx)(n.Fragment,{children:f?o.createPortal(r,f):f})});t.Z=c},70758:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(87462),o=r(67294),i=r(99962),a=r(33703),l=r(30437);function s(e={}){let{disabled:t=!1,focusableWhenDisabled:r,href:s,rootRef:c,tabIndex:u,to:f,type:d}=e,p=o.useRef(),[h,g]=o.useState(!1),{isFocusVisibleRef:m,onFocus:v,onBlur:y,ref:b}=(0,i.Z)(),[x,w]=o.useState(!1);t&&!r&&x&&w(!1),o.useEffect(()=>{m.current=x},[x,m]);let[C,S]=o.useState(""),E=e=>t=>{var r;x&&t.preventDefault(),null==(r=e.onMouseLeave)||r.call(e,t)},k=e=>t=>{var r;y(t),!1===m.current&&w(!1),null==(r=e.onBlur)||r.call(e,t)},O=e=>t=>{var r,n;p.current||(p.current=t.currentTarget),v(t),!0===m.current&&(w(!0),null==(n=e.onFocusVisible)||n.call(e,t)),null==(r=e.onFocus)||r.call(e,t)},Z=()=>{let e=p.current;return"BUTTON"===C||"INPUT"===C&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===C&&(null==e?void 0:e.href)},$=e=>r=>{if(!t){var n;null==(n=e.onClick)||n.call(e,r)}},P=e=>r=>{var n;t||(g(!0),document.addEventListener("mouseup",()=>{g(!1)},{once:!0})),null==(n=e.onMouseDown)||n.call(e,r)},j=e=>r=>{var n,o;null==(n=e.onKeyDown)||n.call(e,r),!r.defaultMuiPrevented&&(r.target!==r.currentTarget||Z()||" "!==r.key||r.preventDefault(),r.target!==r.currentTarget||" "!==r.key||t||g(!0),r.target!==r.currentTarget||Z()||"Enter"!==r.key||t||(null==(o=e.onClick)||o.call(e,r),r.preventDefault()))},A=e=>r=>{var n,o;r.target===r.currentTarget&&g(!1),null==(n=e.onKeyUp)||n.call(e,r),r.target!==r.currentTarget||Z()||t||" "!==r.key||r.defaultMuiPrevented||null==(o=e.onClick)||o.call(e,r)},R=o.useCallback(e=>{var t;S(null!=(t=null==e?void 0:e.tagName)?t:"")},[]),T=(0,a.Z)(R,c,b,p),F={};return"BUTTON"===C?(F.type=null!=d?d:"button",r?F["aria-disabled"]=t:F.disabled=t):""!==C&&(s||f||(F.role="button",F.tabIndex=null!=u?u:0),t&&(F["aria-disabled"]=t,F.tabIndex=r?null!=u?u:0:-1)),{getRootProps:(t={})=>{let r=(0,l.Z)(e),o=(0,n.Z)({},r,t);return delete o.onFocusVisible,(0,n.Z)({type:d},o,F,{onBlur:k(o),onClick:$(o),onFocus:O(o),onKeyDown:j(o),onKeyUp:A(o),onMouseDown:P(o),onMouseLeave:E(o),ref:T})},focusVisible:x,setFocusVisible:w,active:h,rootRef:T}}},5922:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(87462);function o(e,t,r){return void 0===e||"string"==typeof e?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}},30437:function(e,t,r){"use strict";function n(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}r.d(t,{Z:function(){return n}})},24407:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(86010),i=r(30437);function a(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function l(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:l,externalForwardedProps:s,className:c}=e;if(!t){let e=(0,o.Z)(null==s?void 0:s.className,null==l?void 0:l.className,c,null==r?void 0:r.className),t=(0,n.Z)({},null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),i=(0,n.Z)({},r,s,l);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.Z)((0,n.Z)({},s,l)),f=a(l),d=a(s),p=t(u),h=(0,o.Z)(null==p?void 0:p.className,null==r?void 0:r.className,c,null==s?void 0:s.className,null==l?void 0:l.className),g=(0,n.Z)({},null==p?void 0:p.style,null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),m=(0,n.Z)({},p,r,d,f);return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},71276:function(e,t,r){"use strict";function n(e,t,r){return"function"==typeof e?e(t,r):e}r.d(t,{Z:function(){return n}})},31523:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Article");t.Z=a},99078:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkMode");t.Z=a},28223:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 14H7v-4h4v4zm0-6H7V7h4v4zm6 6h-4v-4h4v4zm0-6h-4V7h4v4z"}),"Dataset");t.Z=a},52778:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined");t.Z=a},79453:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M4 20h16v2H4zM4 2h16v2H4zm9 7h3l-4-4-4 4h3v6H8l4 4 4-4h-3z"}),"Expand");t.Z=a},80087:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");t.Z=a},326:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=a},66418:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 9h2v2H7zm8 0h2v2h-2zm-4 0h2v2h-2z"}),"SmsOutlined");t.Z=a},48953:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"}),"WbSunny");t.Z=a},64938:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(14698)},48665:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(87462),o=r(63366),i=r(67294),a=r(70828),l=r(49731),s=r(86523),c=r(39707),u=r(96682),f=r(85893);let d=["className","component"];var p=r(37078),h=r(1812),g=r(2548);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:p="MuiBox-root",generateClassName:h}=e,g=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),m=i.forwardRef(function(e,i){let l=(0,u.Z)(r),s=(0,c.Z)(e),{className:m,component:v="div"}=s,y=(0,o.Z)(s,d);return(0,f.jsx)(g,(0,n.Z)({as:v,ref:i,className:(0,a.Z)(m,h?h(p):p),theme:t&&l[t]||l},y))});return m}({themeId:g.Z,defaultTheme:h.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var v=m},47556:function(e,t,r){"use strict";var n=r(63366),o=r(87462),i=r(67294),a=r(70758),l=r(94780),s=r(14142),c=r(33703),u=r(74312),f=r(20407),d=r(78653),p=r(30220),h=r(48699),g=r(11842),m=r(89996),v=r(85893);let y=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],b=e=>{let{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,fullWidth:i,size:a,variant:c,loading:u}=e,f={root:["root",r&&"disabled",n&&"focusVisible",i&&"fullWidth",c&&`variant${(0,s.Z)(c)}`,t&&`color${(0,s.Z)(t)}`,a&&`size${(0,s.Z)(a)}`,u&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},d=(0,l.Z)(f,g.F,{});return n&&o&&(d.root+=` ${o}`),d},x=(0,u.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),w=(0,u.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),C=(0,u.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})(({theme:e,ownerState:t})=>{var r,n;return(0,o.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(r=e.variants[t.variant])||null==(r=r[t.color])?void 0:r.color},t.disabled&&{color:null==(n=e.variants[`${t.variant}Disabled`])||null==(n=n[t.color])?void 0:n.color})}),S=(0,u.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n,i,a;return[(0,o.Z)({"--Icon-margin":"initial"},"sm"===t.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===t.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===t.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},t.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),null==(r=e.variants[t.variant])?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":null==(n=e.variants[`${t.variant}Hover`])?void 0:n[t.color]}},{"&:active":null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]},(0,o.Z)({[`&.${g.Z.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]},"center"===t.loadingPosition&&{[`&.${g.Z.loading}`]:{color:"transparent"}})]}),E=i.forwardRef(function(e,t){var r;let l=(0,f.Z)({props:e,name:"JoyButton"}),{children:s,action:u,color:g="primary",variant:E="solid",size:k="md",fullWidth:O=!1,startDecorator:Z,endDecorator:$,loading:P=!1,loadingPosition:j="center",loadingIndicator:A,disabled:R,component:T,slots:F={},slotProps:I={}}=l,L=(0,n.Z)(l,y),_=i.useContext(m.Z),N=e.variant||_.variant||E,B=e.size||_.size||k,{getColor:M}=(0,d.VT)(N),D=M(e.color,_.color||g),z=null!=(r=e.disabled)?r:_.disabled||R||P,H=i.useRef(null),W=(0,c.Z)(H,t),{focusVisible:U,setFocusVisible:V,getRootProps:q}=(0,a.Z)((0,o.Z)({},l,{disabled:z,rootRef:W})),K=null!=A?A:(0,v.jsx)(h.Z,(0,o.Z)({},"context"!==D&&{color:D},{thickness:{sm:2,md:3,lg:4}[B]||3}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var e;V(!0),null==(e=H.current)||e.focus()}}),[V]);let G=(0,o.Z)({},l,{color:D,fullWidth:O,variant:N,size:B,focusVisible:U,loading:P,loadingPosition:j,disabled:z}),J=b(G),X=(0,o.Z)({},L,{component:T,slots:F,slotProps:I}),[Y,Q]=(0,p.Z)("root",{ref:t,className:J.root,elementType:S,externalForwardedProps:X,getSlotProps:q,ownerState:G}),[ee,et]=(0,p.Z)("startDecorator",{className:J.startDecorator,elementType:x,externalForwardedProps:X,ownerState:G}),[er,en]=(0,p.Z)("endDecorator",{className:J.endDecorator,elementType:w,externalForwardedProps:X,ownerState:G}),[eo,ei]=(0,p.Z)("loadingIndicatorCenter",{className:J.loadingIndicatorCenter,elementType:C,externalForwardedProps:X,ownerState:G});return(0,v.jsxs)(Y,(0,o.Z)({},Q,{children:[(Z||P&&"start"===j)&&(0,v.jsx)(ee,(0,o.Z)({},et,{children:P&&"start"===j?K:Z})),s,P&&"center"===j&&(0,v.jsx)(eo,(0,o.Z)({},ei,{children:K})),($||P&&"end"===j)&&(0,v.jsx)(er,(0,o.Z)({},en,{children:P&&"end"===j?K:$}))]}))});E.muiName="Button",t.Z=E},11842:function(e,t,r){"use strict";r.d(t,{F:function(){return o}});var n=r(26821);function o(e){return(0,n.d6)("MuiButton",e)}let i=(0,n.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);t.Z=i},89996:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext({});t.Z=o},48699:function(e,t,r){"use strict";r.d(t,{Z:function(){return $}});var n=r(87462),o=r(63366),i=r(67294),a=r(86010),l=r(14142),s=r(94780),c=r(70917),u=r(74312),f=r(20407),d=r(78653),p=r(30220),h=r(26821);function g(e){return(0,h.d6)("MuiCircularProgress",e)}(0,h.sI)("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=r(85893);let v=e=>e,y,b=["color","backgroundColor"],x=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],w=(0,c.F4)({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),C=e=>{let{determinate:t,color:r,variant:n,size:o}=e,i={root:["root",t&&"determinate",r&&`color${(0,l.Z)(r)}`,n&&`variant${(0,l.Z)(n)}`,o&&`size${(0,l.Z)(o)}`],svg:["svg"],track:["track"],progress:["progress"]};return(0,s.Z)(i,g,{})},S=(0,u.Z)("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var r;let i=(null==(r=t.variants[e.variant])?void 0:r[e.color])||{},{color:a,backgroundColor:l}=i,s=(0,o.Z)(i,b);return(0,n.Z)({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":l,"--CircularProgress-progressColor":a,"--CircularProgress-percent":e.value,"--CircularProgress-linecap":"round"},"sm"===e.size&&{"--CircularProgress-trackThickness":"3px","--CircularProgress-progressThickness":"3px","--_root-size":"var(--CircularProgress-size, 24px)"},"sm"===e.instanceSize&&{"--CircularProgress-size":"24px"},"md"===e.size&&{"--CircularProgress-trackThickness":"6px","--CircularProgress-progressThickness":"6px","--_root-size":"var(--CircularProgress-size, 40px)"},"md"===e.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===e.size&&{"--CircularProgress-trackThickness":"8px","--CircularProgress-progressThickness":"8px","--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===e.instanceSize&&{"--CircularProgress-size":"64px"},e.thickness&&{"--CircularProgress-trackThickness":`${e.thickness}px`,"--CircularProgress-progressThickness":`${e.thickness}px`},{"--_thickness-diff":"calc(var(--CircularProgress-trackThickness) - var(--CircularProgress-progressThickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--CircularProgress-trackThickness), var(--CircularProgress-progressThickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:a},e.children&&{fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},s,"outlined"===e.variant&&{"&:before":(0,n.Z)({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},s)})}),E=(0,u.Z)("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),k=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(e,t)=>t.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--CircularProgress-trackThickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--CircularProgress-trackThickness)",stroke:"var(--CircularProgress-trackColor)"}),O=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(e,t)=>t.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--CircularProgress-progressThickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--CircularProgress-progressThickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:e})=>!e.determinate&&(0,c.iv)(y||(y=v` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{16397:function(e,t,r){"use strict";r.d(t,{iN:function(){return g},R_:function(){return f},ez:function(){return d}});var n=r(86500),o=r(1350),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,r=e.g,o=e.b,i=(0,n.py)(t,r,o);return{h:360*i.h,s:i.s,v:i.v}}function l(e){var t=e.r,r=e.g,o=e.b;return"#".concat((0,n.vq)(t,r,o,!1))}function s(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?n+=360:n>=360&&(n-=360),n}function c(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)))}function u(e,t,r){var n;return(n=r?e.v+.05*t:e.v-.15*t)>1&&(n=1),Number(n.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,o.uA)(e),f=5;f>0;f-=1){var d=a(n),p=l((0,o.uA)({h:s(d,f,!0),s:c(d,f,!0),v:u(d,f,!0)}));r.push(p)}r.push(l(n));for(var h=1;h<=4;h+=1){var g=a(n),m=l((0,o.uA)({h:s(g,h),s:c(g,h),v:u(g,h)}));r.push(m)}return"dark"===t.theme?i.map(function(e){var n,i,a,s=e.index,c=e.opacity;return l((n=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(r[s]),a=100*c/100,{r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b}))}):r}var d={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},p={},h={};Object.keys(d).forEach(function(e){p[e]=f(d[e]),p[e].primary=p[e][5],h[e]=f(d[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]}),p.red,p.volcano,p.gold,p.orange,p.yellow,p.lime,p.green,p.cyan;var g=p.blue;p.geekblue,p.purple,p.magenta,p.grey,p.grey},23183:function(e,t,r){"use strict";r.d(t,{E4:function(){return ee},jG:function(){return O},t2:function(){return B},fp:function(){return M},xy:function(){return Q}});var n,o=r(74902),i=r(1413),a=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)},l=r(67294),s=r.t(l,2);r(56982),r(91881);var c=r(15671),u=r(43144),f=r(4942),d=function(){function e(t){(0,c.Z)(this,e),(0,f.Z)(this,"instanceId",void 0),(0,f.Z)(this,"cache",new Map),this.instanceId=t}return(0,u.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var r=e.join("%"),n=t(this.cache.get(r));null===n?this.cache.delete(r):this.cache.set(r,n)}}]),e}(),p="data-token-hash",h="data-css-hash",g="__cssinjs_instance__",m=l.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(h,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[g]=t[g]||e,t[g]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(h,"]"))).forEach(function(t){var r,o=t.getAttribute(h);n[o]?t[g]===e&&(null===(r=t.parentNode)||void 0===r||r.removeChild(t)):n[o]=!0})}return new d(e)}(),defaultCache:!0}),v=r(71002),y=r(98924),b=r(44958),x=r(97685),w=function(){function e(){(0,c.Z)(this,e),(0,f.Z)(this,"cache",void 0),(0,f.Z)(this,"keys",void 0),(0,f.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,u.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,r;o=null===(t=o)||void 0===t?void 0:null===(r=t.map)||void 0===r?void 0:r.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&n&&(o.value[1]=this.cacheCallTimes++),null===(r=o)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var r=(0,x.Z)(e,2)[1];return n.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),S+=1}return(0,u.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),k=new w;function O(e){var t=Array.isArray(e)?e:[e];return k.has(t)||k.set(t,new E(t)),k.get(t)}var Z=new WeakMap;function $(e){var t=Z.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof E?t+=n.id:n&&"object"===(0,v.Z)(n)?t+=$(n):t+=n}),Z.set(e,t)),t}var P="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),j="_bAmBoO_",A=void 0,R=r(8410),T=(0,i.Z)({},s).useInsertionEffect,F=T?function(e,t,r){return T(function(){return e(),t()},r)}:function(e,t,r){l.useMemo(e,r),(0,R.Z)(function(){return t(!0)},r)},I=void 0!==(0,i.Z)({},s).useInsertionEffect?function(e){var t=[],r=!1;return l.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){r||t.push(e)}}:function(){return function(e){e()}};function L(e,t,r,n,i){var a=l.useContext(m).cache,s=[e].concat((0,o.Z)(t)),c=s.join("_"),u=I([c]),f=function(e){a.update(s,function(t){var n=(0,x.Z)(t||[],2),o=n[0],i=[void 0===o?0:o,n[1]||r()];return e?e(i):i})};l.useMemo(function(){f()},[c]);var d=a.get(s)[1];return F(function(){null==i||i(d)},function(e){return f(function(t){var r=(0,x.Z)(t,2),n=r[0],o=r[1];return e&&0===n&&(null==i||i(d)),[n+1,o]}),function(){a.update(s,function(e){var t=(0,x.Z)(e||[],2),r=t[0],o=void 0===r?0:r,i=t[1];return 0==o-1?(u(function(){return null==n?void 0:n(i,!1)}),null):[o-1,i]})}},[c]),d}var _={},N=new Map,B=function(e,t,r,n){var o=r.getDerivativeToken(e),a=(0,i.Z)((0,i.Z)({},o),t);return n&&(a=n(a)),a};function M(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,l.useContext)(m).cache.instanceId,i=r.salt,s=void 0===i?"":i,c=r.override,u=void 0===c?_:c,f=r.formatToken,d=r.getComputedToken,h=l.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(t)))},[t]),v=l.useMemo(function(){return $(h)},[h]),y=l.useMemo(function(){return $(u)},[u]);return L("token",[s,e.id,v,y],function(){var t=d?d(h,u,e):B(h,u,e,f),r=a("".concat(s,"_").concat($(t)));t._tokenKey=r,N.set(r,(N.get(r)||0)+1);var n="".concat("css","-").concat(a(r));return t._hashId=n,[t,n]},function(e){var t,r,o;t=e[0]._tokenKey,N.set(t,(N.get(t)||0)-1),o=(r=Array.from(N.keys())).filter(function(e){return 0>=(N.get(e)||0)}),r.length-o.length>0&&o.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(p,'="').concat(e,'"]')).forEach(function(e){if(e[g]===n){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),N.delete(e)})})}var D=r(87462),z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},H=r(20211),U=r(92190),W="data-ant-cssinjs-cache-path",V="_FILE_STYLE__",q=!0,K=(0,y.Z)(),G="_multi_value_";function J(e){return(0,H.q)((0,U.MY)(e),H.P).replace(/\{%%%\:[^;];}/g,";")}var X=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,l=n.injectHash,s=n.parentSelectors,c=r.hashId,u=r.layer,f=(r.path,r.hashPriority),d=r.transformers,p=void 0===d?[]:d;r.linters;var h="",g={};function m(t){var n=t.getName(c);if(!g[n]){var o=e(t.style,r,{root:!1,parentSelectors:s}),i=(0,x.Z)(o,1)[0];g[n]="@keyframes ".concat(t.getName(c)).concat(i)}}if((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,r):t&&r.push(t)}),r})(Array.isArray(t)?t:[t]).forEach(function(t){var n="string"!=typeof t||a?t:{};if("string"==typeof n)h+="".concat(n,"\n");else if(n._keyframe)m(n);else{var u=p.reduce(function(e,t){var r;return(null==t?void 0:null===(r=t.visit)||void 0===r?void 0:r.call(t,e))||e},n);Object.keys(u).forEach(function(t){var n=u[t];if("object"!==(0,v.Z)(n)||!n||"animationName"===t&&n._keyframe||"object"===(0,v.Z)(n)&&n&&("_skip_check_"in n||G in n)){function d(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;z[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),n=t.getName(c)),h+="".concat(r,":").concat(n,";")}var p,y=null!==(p=null==n?void 0:n.value)&&void 0!==p?p:n;"object"===(0,v.Z)(n)&&null!=n&&n[G]&&Array.isArray(y)?y.forEach(function(e){d(t,e)}):d(t,y)}else{var b=!1,w=t.trim(),C=!1;(a||l)&&c?w.startsWith("@")?b=!0:w=function(e,t,r){if(!t)return e;var n=".".concat(t),i="low"===r?":where(".concat(n,")"):n;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",a=(null===(t=n.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[n="".concat(a).concat(i).concat(n.slice(a.length))].concat((0,o.Z)(r.slice(1))).join(" ")}).join(",")}(t,c,f):a&&!c&&("&"===w||""===w)&&(w="",C=!0);var S=e(n,r,{root:C,injectHash:b,parentSelectors:[].concat((0,o.Z)(s),[w])}),E=(0,x.Z)(S,2),k=E[0],O=E[1];g=(0,i.Z)((0,i.Z)({},g),O),h+="".concat(w).concat(k)}})}}),a){if(u&&(void 0===A&&(A=function(e,t,r){if((0,y.Z)()){(0,b.hq)(e,P);var n,o,i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=r?r(i):null===(n=getComputedStyle(i).content)||void 0===n?void 0:n.includes(j);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),(0,b.jL)(P),a}return!1}("@layer ".concat(P," { .").concat(P,' { content: "').concat(j,'"!important; } }'),function(e){e.className=P})),A)){var w=u.split(","),C=w[w.length-1].trim();h="@layer ".concat(C," {").concat(h,"}"),w.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,g]};function Y(){return null}function Q(e,t){var r=e.token,i=e.path,s=e.hashId,c=e.layer,u=e.nonce,d=e.clientOnly,v=e.order,w=void 0===v?0:v,C=l.useContext(m),S=C.autoClear,E=(C.mock,C.defaultCache),k=C.hashPriority,O=C.container,Z=C.ssrInline,$=C.transformers,P=C.linters,j=C.cache,A=r._tokenKey,R=[A].concat((0,o.Z)(i)),T=L("style",R,function(){var e=R.join("|");if(!function(){if(!n&&(n={},(0,y.Z)())){var e,t=document.createElement("div");t.className=W,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),r=(0,x.Z)(t,2),o=r[0],i=r[1];n[o]=i});var o=document.querySelector("style[".concat(W,"]"));o&&(q=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),n[e]){var r=function(e){var t=n[e],r=null;if(t&&(0,y.Z)()){if(q)r=V;else{var o=document.querySelector("style[".concat(h,'="').concat(n[e],'"]'));o?r=o.innerHTML:delete n[e]}}return[r,t]}(e),o=(0,x.Z)(r,2),l=o[0],u=o[1];if(l)return[l,A,u,{},d,w]}var f=X(t(),{hashId:s,hashPriority:k,layer:c,path:i.join("-"),transformers:$,linters:P}),p=(0,x.Z)(f,2),g=p[0],m=p[1],v=J(g),b=a("".concat(R.join("%")).concat(v));return[v,A,b,m,d,w]},function(e,t){var r=(0,x.Z)(e,3)[2];(t||S)&&K&&(0,b.jL)(r,{mark:h})},function(e){var t=(0,x.Z)(e,4),r=t[0],n=(t[1],t[2]),o=t[3];if(K&&r!==V){var i={mark:h,prepend:"queue",attachTo:O,priority:w},a="function"==typeof u?u():u;a&&(i.csp={nonce:a});var l=(0,b.hq)(r,n,i);l[g]=j.instanceId,l.setAttribute(p,A),Object.keys(o).forEach(function(e){(0,b.hq)(J(o[e]),"_effect-".concat(e),i)})}}),F=(0,x.Z)(T,3),I=F[0],_=F[1],N=F[2];return function(e){var t,r;return t=Z&&!K&&E?l.createElement("style",(0,D.Z)({},(r={},(0,f.Z)(r,p,_),(0,f.Z)(r,h,N),r),{dangerouslySetInnerHTML:{__html:I}})):l.createElement(Y,null),l.createElement(l.Fragment,null,t,e)}}var ee=function(){function e(t,r){(0,c.Z)(this,e),(0,f.Z)(this,"name",void 0),(0,f.Z)(this,"style",void 0),(0,f.Z)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,u.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function et(e){return e.notSplit=!0,e}et(["borderTop","borderBottom"]),et(["borderTop"]),et(["borderBottom"]),et(["borderLeft","borderRight"]),et(["borderLeft"]),et(["borderRight"])},42135:function(e,t,r){"use strict";r.d(t,{Z:function(){return $}});var n=r(87462),o=r(97685),i=r(4942),a=r(45987),l=r(67294),s=r(94184),c=r.n(s),u=r(16397),f=r(63017),d=r(1413),p=r(71002),h=r(44958),g=r(27571),m=r(80334);function v(e){return"object"===(0,p.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.Z)(e.icon)||"function"==typeof e.icon)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[r.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=n),t},{})}function b(e){return(0,u.R_)(e)[0]}function x(e){return e?Array.isArray(e)?e:[e]:[]}var w=function(e){var t=(0,l.useContext)(f.Z),r=t.csp,n=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(o=o.replace(/anticon/g,n)),(0,l.useEffect)(function(){var t=e.current,n=(0,g.A)(t);(0,h.hq)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})},[])},C=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},E=function(e){var t,r,n=e.icon,o=e.className,i=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,f=(0,a.Z)(e,C),p=l.useRef(),h=S;if(c&&(h={primaryColor:c,secondaryColor:u||b(c)}),w(p),t=v(n),r="icon should be icon definiton, but got ".concat(n),(0,m.ZP)(t,"[@ant-design/icons] ".concat(r)),!v(n))return null;var g=n;return g&&"function"==typeof g.icon&&(g=(0,d.Z)((0,d.Z)({},g),{},{icon:g.icon(h.primaryColor,h.secondaryColor)})),function e(t,r,n){return n?l.createElement(t.tag,(0,d.Z)((0,d.Z)({key:r},y(t.attrs)),n),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,d.Z)({key:r},y(t.attrs)),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))}))}(g.icon,"svg-".concat(g.name),(0,d.Z)((0,d.Z)({className:o,onClick:i,style:s,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};function k(e){var t=x(e),r=(0,o.Z)(t,2),n=r[0],i=r[1];return E.setTwoToneColors({primaryColor:n,secondaryColor:i})}E.displayName="IconReact",E.getTwoToneColors=function(){return(0,d.Z)({},S)},E.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;S.primaryColor=t,S.secondaryColor=r||b(t),S.calculated=!!r};var O=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];k(u.iN.primary);var Z=l.forwardRef(function(e,t){var r,s=e.className,u=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,v=(0,a.Z)(e,O),y=l.useContext(f.Z),b=y.prefixCls,w=void 0===b?"anticon":b,C=y.rootClassName,S=c()(C,w,(r={},(0,i.Z)(r,"".concat(w,"-").concat(u.name),!!u.name),(0,i.Z)(r,"".concat(w,"-spin"),!!d||"loading"===u.name),r),s),k=h;void 0===k&&g&&(k=-1);var Z=x(m),$=(0,o.Z)(Z,2),P=$[0],j=$[1];return l.createElement("span",(0,n.Z)({role:"img","aria-label":u.name},v,{ref:t,tabIndex:k,onClick:g,className:S}),l.createElement(E,{icon:u,primaryColor:P,secondaryColor:j,style:p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0}))});Z.displayName="AntdIcon",Z.getTwoToneColor=function(){var e=E.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Z.setTwoToneColor=k;var $=Z},63017:function(e,t,r){"use strict";var n=(0,r(67294).createContext)({});t.Z=n},89739:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={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 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},4340:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},97937:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},21640:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={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 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},78860:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},50888:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=r(42135),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},86500:function(e,t,r){"use strict";r.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return c},Yt:function(){return h},lC:function(){return i},py:function(){return s},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var n=r(90279);function o(e,t,r){return{r:255*(0,n.sh)(e,255),g:255*(0,n.sh)(t,255),b:255*(0,n.sh)(r,255)}}function i(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=0,s=(o+i)/2;if(o===i)l=0,a=0;else{var c=o-i;switch(l=s>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-r)/c+(t1&&(r-=1),r<1/6)?e+(t-e)*(6*r):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function l(e,t,r){if(e=(0,n.sh)(e,360),t=(0,n.sh)(t,100),r=(0,n.sh)(r,100),0===t)i=r,l=r,o=r;else{var o,i,l,s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;o=a(c,s,e+1/3),i=a(c,s,e),l=a(c,s,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function s(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-r)/l+(t>16,g:(65280&e)>>8,b:255&e}}},48701:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});var n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:function(e,t,r){"use strict";r.d(t,{uA:function(){return a}});var n=r(86500),o=r(48701),i=r(90279);function a(e){var t={r:0,g:0,b:0},r=1,a=null,l=null,s=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=u.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=u.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=u.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=u.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=u.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=u.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=u.hex8.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),a:(0,n.T6)(r[4]),format:t?"name":"hex8"}:(r=u.hex6.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),format:t?"name":"hex"}:(r=u.hex4.exec(e))?{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),a:(0,n.T6)(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=u.hex3.exec(e))&&{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,n.rW)(e.r,e.g,e.b),c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,i.JX)(e.s),l=(0,i.JX)(e.v),t=(0,n.WE)(e.h,a,l),c=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,n.ve)(e.h,a,s),c=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=(0,i.Yq)(r),{ok:c,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return!!u.CSS_UNIT.exec(String(e))}},10274:function(e,t,r){"use strict";r.d(t,{C:function(){return l}});var n=r(86500),o=r(48701),i=r(1350),a=r(90279),l=function(){function e(t,r){if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=(0,n.Yt)(t)),this.originalInput=t;var o,a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=r.format)&&void 0!==o?o:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,r=e.g/255,n=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,n.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,n.py)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,n.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,n.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,n.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,n.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,n.vq)(this.r,this.g,this.b,!1),t=0,r=Object.entries(o.R);t=0;return!t&&n&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(255*(t/100))))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(255*(t/100))))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(255*(t/100))))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return new e(a)},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,a=[],l=1/t;t--;)a.push(new e({h:n,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],i=360/t,a=1;aMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}r.d(t,{FZ:function(){return l},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return n}})},9463:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case a.h5:e.return=function e(t,r){switch((0,i.vp)(t,r)){case 5103:return a.G$+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a.G$+t+a.uj+t+a.MS+t+t;case 6828:case 4268:return a.G$+t+a.MS+t+t;case 6165:return a.G$+t+a.MS+"flex-"+t+t;case 5187:return a.G$+t+(0,i.gx)(t,/(\w+).+(:[^]+)/,a.G$+"box-$1$2"+a.MS+"flex-$1$2")+t;case 5443:return a.G$+t+a.MS+"flex-item-"+(0,i.gx)(t,/flex-|-self/,"")+t;case 4675:return a.G$+t+a.MS+"flex-line-pack"+(0,i.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return a.G$+t+a.MS+(0,i.gx)(t,"shrink","negative")+t;case 5292:return a.G$+t+a.MS+(0,i.gx)(t,"basis","preferred-size")+t;case 6060:return a.G$+"box-"+(0,i.gx)(t,"-grow","")+a.G$+t+a.MS+(0,i.gx)(t,"grow","positive")+t;case 4554:return a.G$+(0,i.gx)(t,/([^-])(transform)/g,"$1"+a.G$+"$2")+t;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(t,/(zoom-|grab)/,a.G$+"$1"),/(image-set)/,a.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,i.gx)(t,/(image-set\([^]*)/,a.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(t,/(.+:)(flex-)?(.*)/,a.G$+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(t,/(.+)-inline(.+)/,a.G$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.to)(t)-1-r>6)switch((0,i.uO)(t,r+1)){case 109:if(45!==(0,i.uO)(t,r+4))break;case 102:return(0,i.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+a.G$+"$2-$3$1"+a.uj+(108==(0,i.uO)(t,r+3)?"$3":"$2-$3"))+t;case 115:return~(0,i.Cw)(t,"stretch")?e((0,i.gx)(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==(0,i.uO)(t,r+1))break;case 6444:switch((0,i.uO)(t,(0,i.to)(t)-3-(~(0,i.Cw)(t,"!important")&&10))){case 107:return(0,i.gx)(t,":",":"+a.G$)+t;case 101:return(0,i.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.G$+(45===(0,i.uO)(t,14)?"inline-":"")+"box$3$1"+a.G$+"$2$3$1"+a.MS+"$2box$3")+t}break;case 5936:switch((0,i.uO)(t,r+11)){case 114:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a.G$+t+a.MS+t+t}return t}(e.value,e.length);break;case a.lK:return(0,l.q)([(0,o.JG)(e,{value:(0,i.gx)(e.value,"@","@"+a.G$)})],n);case a.Fr:if(e.length)return(0,i.$e)(e.props,function(t){switch((0,i.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(read-\w+)/,":"+a.uj+"$1")]})],n);case"::placeholder":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.G$+"input-$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.uj+"$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,a.MS+"input-$1")]})],n)}return""})}}],g=function(e){var t,r,o,a,c,u=e.key;if("css"===u){var f=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(f,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var g=e.stylisPlugins||h,m={},v=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+u+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+c,styles:a,next:n}}},27278:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return l}});var n,o=r(67294),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()},l=i||o.useLayoutEffect},70444:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return i},fp:function(){return n},hC:function(){return o}});var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},60769:function(e,t,r){"use strict";r.d(t,{Z:function(){return eT}});var n,o,i,a,l,s=r(87462),c=r(63366),u=r(67294),f=r(33703),d=r(73546),p=r(82690);function h(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function g(e){var t=h(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=h(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function v(e){if("undefined"==typeof ShadowRoot)return!1;var t=h(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var y=Math.max,b=Math.min,x=Math.round;function w(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function C(){return!/^((?!chrome|android).)*safari/i.test(w())}function S(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&m(e)&&(o=e.offsetWidth>0&&x(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&x(n.height)/e.offsetHeight||1);var a=(g(e)?h(e):window).visualViewport,l=!C()&&r,s=(n.left+(l&&a?a.offsetLeft:0))/o,c=(n.top+(l&&a?a.offsetTop:0))/i,u=n.width/o,f=n.height/i;return{width:u,height:f,top:c,right:s+u,bottom:c+f,left:s,x:s,y:c}}function E(e){var t=h(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function k(e){return e?(e.nodeName||"").toLowerCase():null}function O(e){return((g(e)?e.ownerDocument:e.document)||window.document).documentElement}function Z(e){return S(O(e)).left+E(e).scrollLeft}function $(e){return h(e).getComputedStyle(e)}function P(e){var t=$(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function j(e){var t=S(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function A(e){return"html"===k(e)?e:e.assignedSlot||e.parentNode||(v(e)?e.host:null)||O(e)}function R(e,t){void 0===t&&(t=[]);var r,n=function e(t){return["html","body","#document"].indexOf(k(t))>=0?t.ownerDocument.body:m(t)&&P(t)?t:e(A(t))}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=h(n),a=o?[i].concat(i.visualViewport||[],P(n)?n:[]):n,l=t.concat(a);return o?l:l.concat(R(A(a)))}function T(e){return m(e)&&"fixed"!==$(e).position?e.offsetParent:null}function F(e){for(var t=h(e),r=T(e);r&&["table","td","th"].indexOf(k(r))>=0&&"static"===$(r).position;)r=T(r);return r&&("html"===k(r)||"body"===k(r)&&"static"===$(r).position)?t:r||function(e){var t=/firefox/i.test(w());if(/Trident/i.test(w())&&m(e)&&"fixed"===$(e).position)return null;var r=A(e);for(v(r)&&(r=r.host);m(r)&&0>["html","body"].indexOf(k(r));){var n=$(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var I="bottom",L="right",_="left",N="auto",B=["top",I,L,_],M="start",D="viewport",z="popper",H=B.reduce(function(e,t){return e.concat([t+"-"+M,t+"-end"])},[]),U=[].concat(B,[N]).reduce(function(e,t){return e.concat([t,t+"-"+M,t+"-end"])},[]),W=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],V={placement:"bottom",modifiers:[],strategy:"absolute"};function q(){for(var e=arguments.length,t=Array(e),r=0;r=0?"x":"y"}function Y(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?G(o):null,a=o?J(o):null,l=r.x+r.width/2-n.width/2,s=r.y+r.height/2-n.height/2;switch(i){case"top":t={x:l,y:r.y-n.height};break;case I:t={x:l,y:r.y+r.height};break;case L:t={x:r.x+r.width,y:s};break;case _:t={x:r.x-n.width,y:s};break;default:t={x:r.x,y:r.y}}var c=i?X(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case M:t[c]=t[c]-(r[u]/2-n[u]/2);break;case"end":t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,r,n,o,i,a,l,s=e.popper,c=e.popperRect,u=e.placement,f=e.variation,d=e.offsets,p=e.position,g=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,y=e.isFixed,b=d.x,w=void 0===b?0:b,C=d.y,S=void 0===C?0:C,E="function"==typeof v?v({x:w,y:S}):{x:w,y:S};w=E.x,S=E.y;var k=d.hasOwnProperty("x"),Z=d.hasOwnProperty("y"),P=_,j="top",A=window;if(m){var R=F(s),T="clientHeight",N="clientWidth";R===h(s)&&"static"!==$(R=O(s)).position&&"absolute"===p&&(T="scrollHeight",N="scrollWidth"),("top"===u||(u===_||u===L)&&"end"===f)&&(j=I,S-=(y&&R===A&&A.visualViewport?A.visualViewport.height:R[T])-c.height,S*=g?1:-1),(u===_||("top"===u||u===I)&&"end"===f)&&(P=L,w-=(y&&R===A&&A.visualViewport?A.visualViewport.width:R[N])-c.width,w*=g?1:-1)}var B=Object.assign({position:p},m&&Q),M=!0===v?(t={x:w,y:S},r=h(s),n=t.x,o=t.y,{x:x(n*(i=r.devicePixelRatio||1))/i||0,y:x(o*i)/i||0}):{x:w,y:S};return(w=M.x,S=M.y,g)?Object.assign({},B,((l={})[j]=Z?"0":"",l[P]=k?"0":"",l.transform=1>=(A.devicePixelRatio||1)?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",l)):Object.assign({},B,((a={})[j]=Z?S+"px":"",a[P]=k?w+"px":"",a.transform="",a))}var et={left:"right",right:"left",bottom:"top",top:"bottom"};function er(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var en={start:"end",end:"start"};function eo(e){return e.replace(/start|end/g,function(e){return en[e]})}function ei(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&v(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ea(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function el(e,t,r){var n,o,i,a,l,s,c,u,f,d;return t===D?ea(function(e,t){var r=h(e),n=O(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=C();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Z(e),y:s}}(e,r)):g(t)?((n=S(t,!1,"fixed"===r)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):ea((o=O(e),a=O(o),l=E(o),s=null==(i=o.ownerDocument)?void 0:i.body,c=y(a.scrollWidth,a.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=y(a.scrollHeight,a.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),f=-l.scrollLeft+Z(o),d=-l.scrollTop,"rtl"===$(s||a).direction&&(f+=y(a.clientWidth,s?s.clientWidth:0)-c),{width:c,height:u,x:f,y:d}))}function es(){return{top:0,right:0,bottom:0,left:0}}function ec(e){return Object.assign({},es(),e)}function eu(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function ef(e,t){void 0===t&&(t={});var r,n,o,i,a,l,s,c=t,u=c.placement,f=void 0===u?e.placement:u,d=c.strategy,p=void 0===d?e.strategy:d,h=c.boundary,v=c.rootBoundary,x=c.elementContext,w=void 0===x?z:x,C=c.altBoundary,E=c.padding,Z=void 0===E?0:E,P=ec("number"!=typeof Z?Z:eu(Z,B)),j=e.rects.popper,T=e.elements[void 0!==C&&C?w===z?"reference":z:w],_=(r=g(T)?T:T.contextElement||O(e.elements.popper),l=(a=[].concat("clippingParents"===(n=void 0===h?"clippingParents":h)?(o=R(A(r)),g(i=["absolute","fixed"].indexOf($(r).position)>=0&&m(r)?F(r):r)?o.filter(function(e){return g(e)&&ei(e,i)&&"body"!==k(e)}):[]):[].concat(n),[void 0===v?D:v]))[0],(s=a.reduce(function(e,t){var n=el(r,t,p);return e.top=y(n.top,e.top),e.right=b(n.right,e.right),e.bottom=b(n.bottom,e.bottom),e.left=y(n.left,e.left),e},el(r,l,p))).width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s),N=S(e.elements.reference),M=Y({reference:N,element:j,strategy:"absolute",placement:f}),H=ea(Object.assign({},j,M)),U=w===z?H:N,W={top:_.top-U.top+P.top,bottom:U.bottom-_.bottom+P.bottom,left:_.left-U.left+P.left,right:U.right-_.right+P.right},V=e.modifiersData.offset;if(w===z&&V){var q=V[f];Object.keys(W).forEach(function(e){var t=[L,I].indexOf(e)>=0?1:-1,r=["top",I].indexOf(e)>=0?"y":"x";W[e]+=q[r]*t})}return W}function ed(e,t,r){return y(e,b(t,r))}function ep(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function eh(e){return["top",L,I,_].some(function(t){return e[t]>=0})}var eg=(i=void 0===(o=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,l=void 0===a||a,s=h(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",r.update,K)}),l&&s.addEventListener("resize",r.update,K),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",r.update,K)}),l&&s.removeEventListener("resize",r.update,K)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=r.adaptive,i=r.roundOffsets,a=void 0===i||i,l={placement:G(t.placement),variation:J(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];m(o)&&k(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&k(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=U.reduce(function(e,r){var n,o,a,l,s,c;return e[r]=(n=t.rects,a=[_,"top"].indexOf(o=G(r))>=0?-1:1,s=(l="function"==typeof i?i(Object.assign({},n,{placement:r})):i)[0],c=l[1],s=s||0,c=(c||0)*a,[_,L].indexOf(o)>=0?{x:c,y:s}:{x:s,y:c}),e},{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,l=void 0===a||a,s=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,h=void 0===p||p,g=r.allowedAutoPlacements,m=t.options.placement,v=G(m)===m,y=s||(v||!h?[er(m)]:function(e){if(G(e)===N)return[];var t=er(e);return[eo(e),t,eo(t)]}(m)),b=[m].concat(y).reduce(function(e,r){var n,o,i,a,l,s,d,p,m,v,y,b;return e.concat(G(r)===N?(o=(n={placement:r,boundary:u,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:g}).placement,i=n.boundary,a=n.rootBoundary,l=n.padding,s=n.flipVariations,p=void 0===(d=n.allowedAutoPlacements)?U:d,0===(y=(v=(m=J(o))?s?H:H.filter(function(e){return J(e)===m}):B).filter(function(e){return p.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,r){return e[r]=ef(t,{placement:r,boundary:i,rootBoundary:a,padding:l})[G(r)],e},{})).sort(function(e,t){return b[e]-b[t]})):r)},[]),x=t.rects.reference,w=t.rects.popper,C=new Map,S=!0,E=b[0],k=0;k=0,j=P?"width":"height",A=ef(t,{placement:O,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),R=P?$?L:_:$?I:"top";x[j]>w[j]&&(R=er(R));var T=er(R),F=[];if(i&&F.push(A[Z]<=0),l&&F.push(A[R]<=0,A[T]<=0),F.every(function(e){return e})){E=O,S=!1;break}C.set(O,F)}if(S)for(var D=h?3:1,z=function(e){var t=b.find(function(t){var r=C.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},W=D;W>0&&"break"!==z(W);W--);t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=r.altAxis,a=r.boundary,l=r.rootBoundary,s=r.altBoundary,c=r.padding,u=r.tether,f=void 0===u||u,d=r.tetherOffset,p=void 0===d?0:d,h=ef(t,{boundary:a,rootBoundary:l,padding:c,altBoundary:s}),g=G(t.placement),m=J(t.placement),v=!m,x=X(g),w="x"===x?"y":"x",C=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,k="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,O="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),Z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(C){if(void 0===o||o){var P,A="y"===x?"top":_,R="y"===x?I:L,T="y"===x?"height":"width",N=C[x],B=N+h[A],D=N-h[R],z=f?-E[T]/2:0,H=m===M?S[T]:E[T],U=m===M?-E[T]:-S[T],W=t.elements.arrow,V=f&&W?j(W):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:es(),K=q[A],Y=q[R],Q=ed(0,S[T],V[T]),ee=v?S[T]/2-z-Q-K-O.mainAxis:H-Q-K-O.mainAxis,et=v?-S[T]/2+z+Q+Y+O.mainAxis:U+Q+Y+O.mainAxis,er=t.elements.arrow&&F(t.elements.arrow),en=er?"y"===x?er.clientTop||0:er.clientLeft||0:0,eo=null!=(P=null==Z?void 0:Z[x])?P:0,ei=N+ee-eo-en,ea=N+et-eo,el=ed(f?b(B,ei):B,N,f?y(D,ea):D);C[x]=el,$[x]=el-N}if(void 0!==i&&i){var ec,eu,ep="x"===x?"top":_,eh="x"===x?I:L,eg=C[w],em="y"===w?"height":"width",ev=eg+h[ep],ey=eg-h[eh],eb=-1!==["top",_].indexOf(g),ex=null!=(eu=null==Z?void 0:Z[w])?eu:0,ew=eb?ev:eg-S[em]-E[em]-ex+O.altAxis,eC=eb?eg+S[em]+E[em]-ex-O.altAxis:ey,eS=f&&eb?(ec=ed(ew,eg,eC))>eC?eC:ec:ed(f?ew:ev,eg,f?eC:ey);C[w]=eS,$[w]=eS-eg}t.modifiersData[n]=$}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,o=e.name,i=e.options,a=n.elements.arrow,l=n.modifiersData.popperOffsets,s=G(n.placement),c=X(s),u=[_,L].indexOf(s)>=0?"height":"width";if(a&&l){var f=ec("number"!=typeof(t="function"==typeof(t=i.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,B)),d=j(a),p="y"===c?"top":_,h="y"===c?I:L,g=n.rects.reference[u]+n.rects.reference[c]-l[c]-n.rects.popper[u],m=l[c]-n.rects.reference[c],v=F(a),y=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,b=f[p],x=y-d[u]-f[h],w=y/2-d[u]/2+(g/2-m/2),C=ed(b,w,x);n.modifiersData[o]=((r={})[c]=C,r.centerOffset=C-w,r)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ei(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ef(t,{elementContext:"reference"}),l=ef(t,{altBoundary:!0}),s=ep(a,n),c=ep(l,o,i),u=eh(s),f=eh(c);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}}]}).defaultModifiers)?[]:o,l=void 0===(a=n.defaultOptions)?V:a,function(e,t,r){void 0===r&&(r=l);var n,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},V,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:o,setOptions:function(r){var n,s,f,d,p,h="function"==typeof r?r(o.options):r;u(),o.options=Object.assign({},l,o.options,h),o.scrollParents={reference:g(e)?R(e):e.contextElement?R(e.contextElement):[],popper:R(t)};var m=(s=Object.keys(n=[].concat(i,o.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return n[e]}),f=new Map,d=new Set,p=[],s.forEach(function(e){f.set(e.name,e)}),s.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var r=f.get(t);r&&e(r)}}),p.push(t)}(e)}),W.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return o.orderedModifiers=m.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var i=n({state:o,name:t,instance:c,options:void 0===r?{}:r});a.push(i||function(){})}}),c.update()},forceUpdate:function(){if(!s){var e,t,r,n,i,a,l,u,f,d,p,g,v=o.elements,y=v.reference,b=v.popper;if(q(y,b)){o.rects={reference:(t=F(b),r="fixed"===o.options.strategy,n=m(t),u=m(t)&&(a=x((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,l=x(i.height)/t.offsetHeight||1,1!==a||1!==l),f=O(t),d=S(y,u,r),p={scrollLeft:0,scrollTop:0},g={x:0,y:0},(n||!n&&!r)&&(("body"!==k(t)||P(f))&&(p=(e=t)!==h(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:E(e)),m(t)?(g=S(t,!0),g.x+=t.clientLeft,g.y+=t.clientTop):f&&(g.x=Z(f))),{x:d.left+p.scrollLeft-g.x,y:d.top+p.scrollTop-g.y,width:d.width,height:d.height}),popper:j(b)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var w=0;w(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(ek);return r=>t?"":e(r)}(eb)),ej={},eA=u.forwardRef(function(e,t){var r;let{anchorEl:n,children:o,direction:i,disablePortal:a,modifiers:l,open:p,placement:h,popperOptions:g,popperRef:m,slotProps:v={},slots:y={},TransitionProps:b}=e,x=(0,c.Z)(e,eO),w=u.useRef(null),C=(0,f.Z)(w,t),S=u.useRef(null),E=(0,f.Z)(S,m),k=u.useRef(E);(0,d.Z)(()=>{k.current=E},[E]),u.useImperativeHandle(m,()=>S.current,[]);let O=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,i),[Z,$]=u.useState(O),[P,j]=u.useState(e$(n));u.useEffect(()=>{S.current&&S.current.forceUpdate()}),u.useEffect(()=>{n&&j(e$(n))},[n]),(0,d.Z)(()=>{if(!P||!p)return;let e=e=>{$(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=l&&(t=t.concat(l)),g&&null!=g.modifiers&&(t=t.concat(g.modifiers));let r=eg(P,w.current,(0,s.Z)({placement:O},g,{modifiers:t}));return k.current(r),()=>{r.destroy(),k.current(null)}},[P,a,l,p,g,O]);let A={placement:Z};null!==b&&(A.TransitionProps=b);let R=eP(),T=null!=(r=y.root)?r:"div",F=function(e){var t;let{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=(0,c.Z)(e,eS),l=i?{}:(0,eC.Z)(n,o),{props:u,internalRef:d}=(0,ew.Z)((0,s.Z)({},a,{externalSlotProps:l})),p=(0,f.Z)(d,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref),h=(0,ex.Z)(r,(0,s.Z)({},u,{ref:p}),o);return h}({elementType:T,externalSlotProps:v.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:C},ownerState:e,className:R.root});return(0,eE.jsx)(T,(0,s.Z)({},F,{children:"function"==typeof o?o(A):o}))}),eR=u.forwardRef(function(e,t){let r;let{anchorEl:n,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:f=!1,modifiers:d,open:h,placement:g="bottom",popperOptions:m=ej,popperRef:v,style:y,transition:b=!1,slotProps:x={},slots:w={}}=e,C=(0,c.Z)(e,eZ),[S,E]=u.useState(!0);if(!f&&!h&&(!b||S))return null;if(i)r=i;else if(n){let e=e$(n);r=e&&void 0!==e.nodeType?(0,p.Z)(e).body:(0,p.Z)(null).body}let k=!h&&f&&(!b||S)?"none":void 0;return(0,eE.jsx)(ev.Z,{disablePortal:l,container:r,children:(0,eE.jsx)(eA,(0,s.Z)({anchorEl:n,direction:a,disablePortal:l,modifiers:d,ref:t,open:b?!S:h,placement:g,popperOptions:m,popperRef:v,slotProps:x,slots:w},C,{style:(0,s.Z)({position:"fixed",top:0,left:0,display:k},y),TransitionProps:b?{in:h,onEnter:()=>{E(!1)},onExited:()=>{E(!0)}}:void 0,children:o}))})});var eT=eR},78385:function(e,t,r){"use strict";var n=r(67294),o=r(73935),i=r(33703),a=r(73546),l=r(7960),s=r(85893);let c=n.forwardRef(function(e,t){let{children:r,container:c,disablePortal:u=!1}=e,[f,d]=n.useState(null),p=(0,i.Z)(n.isValidElement(r)?r.ref:null,t);return((0,a.Z)(()=>{!u&&d(("function"==typeof c?c():c)||document.body)},[c,u]),(0,a.Z)(()=>{if(f&&!u)return(0,l.Z)(t,f),()=>{(0,l.Z)(t,null)}},[t,f,u]),u)?n.isValidElement(r)?n.cloneElement(r,{ref:p}):(0,s.jsx)(n.Fragment,{children:r}):(0,s.jsx)(n.Fragment,{children:f?o.createPortal(r,f):f})});t.Z=c},70758:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(87462),o=r(67294),i=r(99962),a=r(33703),l=r(30437);function s(e={}){let{disabled:t=!1,focusableWhenDisabled:r,href:s,rootRef:c,tabIndex:u,to:f,type:d}=e,p=o.useRef(),[h,g]=o.useState(!1),{isFocusVisibleRef:m,onFocus:v,onBlur:y,ref:b}=(0,i.Z)(),[x,w]=o.useState(!1);t&&!r&&x&&w(!1),o.useEffect(()=>{m.current=x},[x,m]);let[C,S]=o.useState(""),E=e=>t=>{var r;x&&t.preventDefault(),null==(r=e.onMouseLeave)||r.call(e,t)},k=e=>t=>{var r;y(t),!1===m.current&&w(!1),null==(r=e.onBlur)||r.call(e,t)},O=e=>t=>{var r,n;p.current||(p.current=t.currentTarget),v(t),!0===m.current&&(w(!0),null==(n=e.onFocusVisible)||n.call(e,t)),null==(r=e.onFocus)||r.call(e,t)},Z=()=>{let e=p.current;return"BUTTON"===C||"INPUT"===C&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===C&&(null==e?void 0:e.href)},$=e=>r=>{if(!t){var n;null==(n=e.onClick)||n.call(e,r)}},P=e=>r=>{var n;t||(g(!0),document.addEventListener("mouseup",()=>{g(!1)},{once:!0})),null==(n=e.onMouseDown)||n.call(e,r)},j=e=>r=>{var n,o;null==(n=e.onKeyDown)||n.call(e,r),!r.defaultMuiPrevented&&(r.target!==r.currentTarget||Z()||" "!==r.key||r.preventDefault(),r.target!==r.currentTarget||" "!==r.key||t||g(!0),r.target!==r.currentTarget||Z()||"Enter"!==r.key||t||(null==(o=e.onClick)||o.call(e,r),r.preventDefault()))},A=e=>r=>{var n,o;r.target===r.currentTarget&&g(!1),null==(n=e.onKeyUp)||n.call(e,r),r.target!==r.currentTarget||Z()||t||" "!==r.key||r.defaultMuiPrevented||null==(o=e.onClick)||o.call(e,r)},R=o.useCallback(e=>{var t;S(null!=(t=null==e?void 0:e.tagName)?t:"")},[]),T=(0,a.Z)(R,c,b,p),F={};return"BUTTON"===C?(F.type=null!=d?d:"button",r?F["aria-disabled"]=t:F.disabled=t):""!==C&&(s||f||(F.role="button",F.tabIndex=null!=u?u:0),t&&(F["aria-disabled"]=t,F.tabIndex=r?null!=u?u:0:-1)),{getRootProps:(t={})=>{let r=(0,l.Z)(e),o=(0,n.Z)({},r,t);return delete o.onFocusVisible,(0,n.Z)({type:d},o,F,{onBlur:k(o),onClick:$(o),onFocus:O(o),onKeyDown:j(o),onKeyUp:A(o),onMouseDown:P(o),onMouseLeave:E(o),ref:T})},focusVisible:x,setFocusVisible:w,active:h,rootRef:T}}},5922:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(87462);function o(e,t,r){return void 0===e||"string"==typeof e?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}},30437:function(e,t,r){"use strict";function n(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}r.d(t,{Z:function(){return n}})},24407:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(86010),i=r(30437);function a(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function l(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:l,externalForwardedProps:s,className:c}=e;if(!t){let e=(0,o.Z)(null==s?void 0:s.className,null==l?void 0:l.className,c,null==r?void 0:r.className),t=(0,n.Z)({},null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),i=(0,n.Z)({},r,s,l);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.Z)((0,n.Z)({},s,l)),f=a(l),d=a(s),p=t(u),h=(0,o.Z)(null==p?void 0:p.className,null==r?void 0:r.className,c,null==s?void 0:s.className,null==l?void 0:l.className),g=(0,n.Z)({},null==p?void 0:p.style,null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),m=(0,n.Z)({},p,r,d,f);return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},71276:function(e,t,r){"use strict";function n(e,t,r){return"function"==typeof e?e(t,r):e}r.d(t,{Z:function(){return n}})},31523:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Article");t.Z=a},99078:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkMode");t.Z=a},28223:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 14H7v-4h4v4zm0-6H7V7h4v4zm6 6h-4v-4h4v4zm0-6h-4V7h4v4z"}),"Dataset");t.Z=a},52778:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined");t.Z=a},79453:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M4 20h16v2H4zM4 2h16v2H4zm9 7h3l-4-4-4 4h3v6H8l4 4 4-4h-3z"}),"Expand");t.Z=a},80087:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");t.Z=a},326:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=a},66418:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 9h2v2H7zm8 0h2v2h-2zm-4 0h2v2h-2z"}),"SmsOutlined");t.Z=a},48953:function(e,t,r){"use strict";var n=r(64836);t.Z=void 0;var o=n(r(64938)),i=r(85893),a=(0,o.default)((0,i.jsx)("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"}),"WbSunny");t.Z=a},64938:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=r(14698)},48665:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(87462),o=r(63366),i=r(67294),a=r(70828),l=r(49731),s=r(86523),c=r(39707),u=r(96682),f=r(85893);let d=["className","component"];var p=r(37078),h=r(1812),g=r(2548);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:p="MuiBox-root",generateClassName:h}=e,g=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),m=i.forwardRef(function(e,i){let l=(0,u.Z)(r),s=(0,c.Z)(e),{className:m,component:v="div"}=s,y=(0,o.Z)(s,d);return(0,f.jsx)(g,(0,n.Z)({as:v,ref:i,className:(0,a.Z)(m,h?h(p):p),theme:t&&l[t]||l},y))});return m}({themeId:g.Z,defaultTheme:h.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var v=m},47556:function(e,t,r){"use strict";var n=r(63366),o=r(87462),i=r(67294),a=r(70758),l=r(94780),s=r(14142),c=r(33703),u=r(74312),f=r(20407),d=r(78653),p=r(30220),h=r(48699),g=r(11842),m=r(89996),v=r(85893);let y=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],b=e=>{let{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,fullWidth:i,size:a,variant:c,loading:u}=e,f={root:["root",r&&"disabled",n&&"focusVisible",i&&"fullWidth",c&&`variant${(0,s.Z)(c)}`,t&&`color${(0,s.Z)(t)}`,a&&`size${(0,s.Z)(a)}`,u&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},d=(0,l.Z)(f,g.F,{});return n&&o&&(d.root+=` ${o}`),d},x=(0,u.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),w=(0,u.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),C=(0,u.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(e,t)=>t.loadingIndicatorCenter})(({theme:e,ownerState:t})=>{var r,n;return(0,o.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(r=e.variants[t.variant])||null==(r=r[t.color])?void 0:r.color},t.disabled&&{color:null==(n=e.variants[`${t.variant}Disabled`])||null==(n=n[t.color])?void 0:n.color})}),S=(0,u.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n,i,a;return[(0,o.Z)({"--Icon-margin":"initial"},"sm"===t.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===t.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:e.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===t.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:e.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${e.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.lg,lineHeight:1},t.fullWidth&&{width:"100%"},{[e.focus.selector]:e.focus.default}),null==(r=e.variants[t.variant])?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":null==(n=e.variants[`${t.variant}Hover`])?void 0:n[t.color]}},{"&:active":null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]},(0,o.Z)({[`&.${g.Z.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]},"center"===t.loadingPosition&&{[`&.${g.Z.loading}`]:{color:"transparent"}})]}),E=i.forwardRef(function(e,t){var r;let l=(0,f.Z)({props:e,name:"JoyButton"}),{children:s,action:u,color:g="primary",variant:E="solid",size:k="md",fullWidth:O=!1,startDecorator:Z,endDecorator:$,loading:P=!1,loadingPosition:j="center",loadingIndicator:A,disabled:R,component:T,slots:F={},slotProps:I={}}=l,L=(0,n.Z)(l,y),_=i.useContext(m.Z),N=e.variant||_.variant||E,B=e.size||_.size||k,{getColor:M}=(0,d.VT)(N),D=M(e.color,_.color||g),z=null!=(r=e.disabled)?r:_.disabled||R||P,H=i.useRef(null),U=(0,c.Z)(H,t),{focusVisible:W,setFocusVisible:V,getRootProps:q}=(0,a.Z)((0,o.Z)({},l,{disabled:z,rootRef:U})),K=null!=A?A:(0,v.jsx)(h.Z,(0,o.Z)({},"context"!==D&&{color:D},{thickness:{sm:2,md:3,lg:4}[B]||3}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var e;V(!0),null==(e=H.current)||e.focus()}}),[V]);let G=(0,o.Z)({},l,{color:D,fullWidth:O,variant:N,size:B,focusVisible:W,loading:P,loadingPosition:j,disabled:z}),J=b(G),X=(0,o.Z)({},L,{component:T,slots:F,slotProps:I}),[Y,Q]=(0,p.Z)("root",{ref:t,className:J.root,elementType:S,externalForwardedProps:X,getSlotProps:q,ownerState:G}),[ee,et]=(0,p.Z)("startDecorator",{className:J.startDecorator,elementType:x,externalForwardedProps:X,ownerState:G}),[er,en]=(0,p.Z)("endDecorator",{className:J.endDecorator,elementType:w,externalForwardedProps:X,ownerState:G}),[eo,ei]=(0,p.Z)("loadingIndicatorCenter",{className:J.loadingIndicatorCenter,elementType:C,externalForwardedProps:X,ownerState:G});return(0,v.jsxs)(Y,(0,o.Z)({},Q,{children:[(Z||P&&"start"===j)&&(0,v.jsx)(ee,(0,o.Z)({},et,{children:P&&"start"===j?K:Z})),s,P&&"center"===j&&(0,v.jsx)(eo,(0,o.Z)({},ei,{children:K})),($||P&&"end"===j)&&(0,v.jsx)(er,(0,o.Z)({},en,{children:P&&"end"===j?K:$}))]}))});E.muiName="Button",t.Z=E},11842:function(e,t,r){"use strict";r.d(t,{F:function(){return o}});var n=r(26821);function o(e){return(0,n.d6)("MuiButton",e)}let i=(0,n.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);t.Z=i},89996:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext({});t.Z=o},48699:function(e,t,r){"use strict";r.d(t,{Z:function(){return $}});var n=r(87462),o=r(63366),i=r(67294),a=r(86010),l=r(14142),s=r(94780),c=r(70917),u=r(74312),f=r(20407),d=r(78653),p=r(30220),h=r(26821);function g(e){return(0,h.d6)("MuiCircularProgress",e)}(0,h.sI)("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=r(85893);let v=e=>e,y,b=["color","backgroundColor"],x=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],w=(0,c.F4)({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),C=e=>{let{determinate:t,color:r,variant:n,size:o}=e,i={root:["root",t&&"determinate",r&&`color${(0,l.Z)(r)}`,n&&`variant${(0,l.Z)(n)}`,o&&`size${(0,l.Z)(o)}`],svg:["svg"],track:["track"],progress:["progress"]};return(0,s.Z)(i,g,{})},S=(0,u.Z)("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var r;let i=(null==(r=t.variants[e.variant])?void 0:r[e.color])||{},{color:a,backgroundColor:l}=i,s=(0,o.Z)(i,b);return(0,n.Z)({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":l,"--CircularProgress-progressColor":a,"--CircularProgress-percent":e.value,"--CircularProgress-linecap":"round"},"sm"===e.size&&{"--CircularProgress-trackThickness":"3px","--CircularProgress-progressThickness":"3px","--_root-size":"var(--CircularProgress-size, 24px)"},"sm"===e.instanceSize&&{"--CircularProgress-size":"24px"},"md"===e.size&&{"--CircularProgress-trackThickness":"6px","--CircularProgress-progressThickness":"6px","--_root-size":"var(--CircularProgress-size, 40px)"},"md"===e.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===e.size&&{"--CircularProgress-trackThickness":"8px","--CircularProgress-progressThickness":"8px","--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===e.instanceSize&&{"--CircularProgress-size":"64px"},e.thickness&&{"--CircularProgress-trackThickness":`${e.thickness}px`,"--CircularProgress-progressThickness":`${e.thickness}px`},{"--_thickness-diff":"calc(var(--CircularProgress-trackThickness) - var(--CircularProgress-progressThickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--CircularProgress-trackThickness), var(--CircularProgress-progressThickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:a},e.children&&{fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},s,"outlined"===e.variant&&{"&:before":(0,n.Z)({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},s)})}),E=(0,u.Z)("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),k=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(e,t)=>t.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--CircularProgress-trackThickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--CircularProgress-trackThickness)",stroke:"var(--CircularProgress-trackColor)"}),O=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(e,t)=>t.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--CircularProgress-progressThickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--CircularProgress-progressThickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:e})=>!e.determinate&&(0,c.iv)(y||(y=v` animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running) ${0}; - `),w)),Z=i.forwardRef(function(e,t){let r=(0,f.Z)({props:e,name:"JoyCircularProgress"}),{children:i,className:l,color:s="primary",size:c="md",variant:u="soft",thickness:h,determinate:g=!1,value:v=g?0:25,component:y,slots:b={},slotProps:w={}}=r,Z=(0,o.Z)(r,x),{getColor:$}=(0,d.VT)(u),P=$(e.color,s),j=(0,n.Z)({},r,{color:P,size:c,variant:u,thickness:h,value:v,determinate:g,instanceSize:e.size}),A=C(j),R=(0,n.Z)({},Z,{component:y,slots:b,slotProps:w}),[T,F]=(0,p.Z)("root",{ref:t,className:(0,a.Z)(A.root,l),elementType:S,externalForwardedProps:R,ownerState:j,additionalProps:(0,n.Z)({role:"progressbar",style:{"--CircularProgress-percent":v}},v&&g&&{"aria-valuenow":"number"==typeof v?Math.round(v):Math.round(Number(v||0))})}),[I,L]=(0,p.Z)("svg",{className:A.svg,elementType:E,externalForwardedProps:R,ownerState:j}),[_,N]=(0,p.Z)("track",{className:A.track,elementType:k,externalForwardedProps:R,ownerState:j}),[B,M]=(0,p.Z)("progress",{className:A.progress,elementType:O,externalForwardedProps:R,ownerState:j});return(0,m.jsxs)(T,(0,n.Z)({},F,{children:[(0,m.jsxs)(I,(0,n.Z)({},L,{children:[(0,m.jsx)(_,(0,n.Z)({},N)),(0,m.jsx)(B,(0,n.Z)({},M))]})),i]}))});var $=Z},14553:function(e,t,r){"use strict";r.d(t,{ZP:function(){return E}});var n=r(63366),o=r(87462),i=r(67294),a=r(14142),l=r(33703),s=r(70758),c=r(94780),u=r(74312),f=r(20407),d=r(78653),p=r(30220),h=r(26821);function g(e){return(0,h.d6)("MuiIconButton",e)}let m=(0,h.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var v=r(89996),y=r(85893);let b=["children","action","component","color","disabled","variant","size","slots","slotProps"],x=e=>{let{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,size:i,variant:l}=e,s={root:["root",r&&"disabled",n&&"focusVisible",l&&`variant${(0,a.Z)(l)}`,t&&`color${(0,a.Z)(t)}`,i&&`size${(0,a.Z)(i)}`]},u=(0,c.Z)(s,g,{});return n&&o&&(u.root+=` ${o}`),u},w=(0,u.Z)("button")(({theme:e,ownerState:t})=>{var r,n,i,a;return[(0,o.Z)({"--Icon-margin":"initial"},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.5rem) / 1.667)","--CircularProgress-size":"24px",minWidth:"var(--IconButton-size, 2.5rem)",minHeight:"var(--IconButton-size, 2.5rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 3rem) / 1.714)","--CircularProgress-size":"28px",minWidth:"var(--IconButton-size, 3rem)",minHeight:"var(--IconButton-size, 3rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:e.focus.default}),null==(r=e.variants[t.variant])?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":null==(n=e.variants[`${t.variant}Hover`])?void 0:n[t.color]}},{"&:active":null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]},{[`&.${m.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]}),C=(0,u.Z)(w,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),S=i.forwardRef(function(e,t){var r;let a=(0,f.Z)({props:e,name:"JoyIconButton"}),{children:c,action:u,component:h="button",color:g="primary",disabled:m,variant:w="soft",size:S="md",slots:E={},slotProps:k={}}=a,O=(0,n.Z)(a,b),Z=i.useContext(v.Z),$=e.variant||Z.variant||w,P=e.size||Z.size||S,{getColor:j}=(0,d.VT)($),A=j(e.color,Z.color||g),R=null!=(r=e.disabled)?r:Z.disabled||m,T=i.useRef(null),F=(0,l.Z)(T,t),{focusVisible:I,setFocusVisible:L,getRootProps:_}=(0,s.Z)((0,o.Z)({},a,{disabled:R,rootRef:F}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var e;L(!0),null==(e=T.current)||e.focus()}}),[L]);let N=(0,o.Z)({},a,{component:h,color:A,disabled:R,variant:$,size:P,focusVisible:I,instanceSize:e.size}),B=x(N),M=(0,o.Z)({},O,{component:h,slots:E,slotProps:k}),[D,z]=(0,p.Z)("root",{ref:t,className:B.root,elementType:C,getSlotProps:_,externalForwardedProps:M,ownerState:N});return(0,y.jsx)(D,(0,o.Z)({},z,{children:c}))});S.muiName="IconButton";var E=S},62774:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(void 0);t.Z=o},43614:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(void 0);t.Z=o},11772:function(e,t,r){"use strict";r.d(t,{C:function(){return S},Z:function(){return O}});var n=r(63366),o=r(87462),i=r(67294),a=r(86010),l=r(14142),s=r(94780),c=r(74312),u=r(20407),f=r(78653),d=r(26821);function p(e){return(0,d.d6)("MuiList",e)}(0,d.sI)("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]);var h=r(94593),g=r(62774),m=r(43614),v=r(51712);let y=i.createContext(void 0);var b=r(30220),x=r(85893);let w=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],C=e=>{let{variant:t,color:r,size:n,nesting:o,orientation:i,instanceSize:a}=e,c={root:["root",i,t&&`variant${(0,l.Z)(t)}`,r&&`color${(0,l.Z)(r)}`,!a&&!o&&n&&`size${(0,l.Z)(n)}`,a&&`size${(0,l.Z)(a)}`,o&&"nesting"]};return(0,s.Z)(c,p,{})},S=(0,c.Z)("ul")(({theme:e,ownerState:t})=>{var r;function n(r){return"sm"===r?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":"0.5rem","--ListItem-fontSize":e.vars.fontSize.sm,"--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":"1.125rem"}:"md"===r?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.5rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":"0.75rem","--ListItem-fontSize":e.vars.fontSize.md,"--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":"1.25rem"}:"lg"===r?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"3rem","--ListItem-paddingY":"0.5rem","--ListItem-paddingX":"1rem","--ListItem-fontSize":e.vars.fontSize.md,"--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":"1.5rem"}:{}}return[t.nesting&&(0,o.Z)({},n(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0,marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&(0,o.Z)({},n(t.size),{"--List-gap":"0px","--ListItemDecorator-color":e.vars.palette.text.tertiary,"--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)","--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},"horizontal"===t.orientation?(0,o.Z)({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"}),(0,o.Z)({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},{flexGrow:1,position:"relative"},null==(r=e.variants[t.variant])?void 0:r[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"})]}),E=(0,c.Z)(S,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k=i.forwardRef(function(e,t){var r;let l;let s=i.useContext(h.Z),c=i.useContext(m.Z),d=i.useContext(y),p=(0,u.Z)({props:e,name:"JoyList"}),{component:S,className:k,children:O,size:Z,orientation:$="vertical",wrap:P=!1,variant:j="plain",color:A="neutral",role:R,slots:T={},slotProps:F={}}=p,I=(0,n.Z)(p,w),{getColor:L}=(0,f.VT)(j),_=L(e.color,A),N=Z||(null!=(r=e.size)?r:"md");c&&(l="group"),d&&(l="presentation"),R&&(l=R);let B=(0,o.Z)({},p,{instanceSize:e.size,size:N,nesting:s,orientation:$,wrap:P,variant:j,color:_,role:l}),M=C(B),D=(0,o.Z)({},I,{component:S,slots:T,slotProps:F}),[z,H]=(0,b.Z)("root",{ref:t,className:(0,a.Z)(M.root,k),elementType:E,externalForwardedProps:D,ownerState:B,additionalProps:{as:S,role:l,"aria-labelledby":"string"==typeof s?s:void 0}});return(0,x.jsx)(z,(0,o.Z)({},H,{children:(0,x.jsx)(g.Z.Provider,{value:`${"string"==typeof S?S:""}:${l||""}`,children:(0,x.jsx)(v.Z,{row:"horizontal"===$,wrap:P,children:O})})}))});var O=k},51712:function(e,t,r){"use strict";r.d(t,{M:function(){return c}});var n=r(87462),o=r(67294),i=r(40780),a=r(30532),l=r(94593),s=r(85893);let c={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};t.Z=function(e){let{children:t,nested:r,row:c=!1,wrap:u=!1}=e,f=(0,s.jsx)(i.Z.Provider,{value:c,children:(0,s.jsx)(a.Z.Provider,{value:u,children:o.Children.map(t,(e,t)=>o.isValidElement(e)?o.cloneElement(e,(0,n.Z)({},0===t&&{"data-first-child":""})):e)})});return void 0===r?f:(0,s.jsx)(l.Z.Provider,{value:r,children:f})}},94593:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(!1);t.Z=o},40780:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(!1);t.Z=o},30532:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(!1);t.Z=o},16079:function(e,t,r){"use strict";r.d(t,{r:function(){return S},Z:function(){return O}});var n=r(63366),o=r(87462),i=r(67294),a=r(86010),l=r(14142),s=r(33703),c=r(94780),u=r(70758),f=r(74312),d=r(20407),p=r(78653),h=r(26821);function g(e){return(0,h.d6)("MuiListItemButton",e)}let m=(0,h.sI)("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]);var v=r(41785),y=r(40780),b=r(30220),x=r(85893);let w=["children","className","action","component","orientation","role","selected","color","variant","slots","slotProps"],C=e=>{let{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,selected:i,variant:a}=e,s={root:["root",r&&"disabled",n&&"focusVisible",t&&`color${(0,l.Z)(t)}`,i&&"selected",a&&`variant${(0,l.Z)(a)}`]},u=(0,c.Z)(s,g,{});return n&&o&&(u.root+=` ${o}`),u},S=(0,f.Z)("div")(({theme:e,ownerState:t})=>{var r,n,i,a,l;return[(0,o.Z)({},t.selected&&{"--ListItemDecorator-color":"initial"},t.disabled&&{"--ListItemDecorator-color":null==(r=e.variants)||null==(r=r[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color},{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"none",borderRadius:"var(--ListItem-radius)",flexGrow:t.row?0:1,flexBasis:t.row?"auto":"0%",flexShrink:0,minInlineSize:0,fontSize:"var(--ListItem-fontSize)",fontFamily:e.vars.fontFamily.body},t.selected&&{fontWeight:e.vars.fontWeight.md},{[e.focus.selector]:e.focus.default}),(0,o.Z)({},null==(n=e.variants[t.variant])?void 0:n[t.color],!t.selected&&{"&:hover":null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color],"&:active":null==(a=e.variants[`${t.variant}Active`])?void 0:a[t.color]}),{[`&.${m.disabled}`]:null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color]}]}),E=(0,f.Z)(S,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k=i.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"JoyListItemButton"}),l=i.useContext(y.Z),{children:c,className:f,action:h,component:g="div",orientation:m="horizontal",role:S,selected:k=!1,color:O=k?"primary":"neutral",variant:Z="plain",slots:$={},slotProps:P={}}=r,j=(0,n.Z)(r,w),{getColor:A}=(0,p.VT)(Z),R=A(e.color,O),T=i.useRef(null),F=(0,s.Z)(T,t),{focusVisible:I,setFocusVisible:L,getRootProps:_}=(0,u.Z)((0,o.Z)({},r,{rootRef:F}));i.useImperativeHandle(h,()=>({focusVisible:()=>{var e;L(!0),null==(e=T.current)||e.focus()}}),[L]);let N=(0,o.Z)({},r,{component:g,color:R,focusVisible:I,orientation:m,row:l,selected:k,variant:Z}),B=C(N),M=(0,o.Z)({},j,{component:g,slots:$,slotProps:P}),[D,z]=(0,b.Z)("root",{ref:t,className:(0,a.Z)(B.root,f),elementType:E,externalForwardedProps:M,ownerState:N,getSlotProps:_});return(0,x.jsx)(v.Z.Provider,{value:m,children:(0,x.jsx)(D,(0,o.Z)({},z,{role:null!=S?S:z.role,children:c}))})});var O=k},41785:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext("horizontal");t.Z=o},2549:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(63366),o=r(87462),i=r(67294),a=r(86010),l=r(14142),s=r(19032),c=r(92996),u=r(59948),f=r(99962),d=r(33703),p=r(94780),h=r(60769),g=r(74312),m=r(20407),v=r(30220),y=r(78653),b=r(26821);function x(e){return(0,b.d6)("MuiTooltip",e)}(0,b.sI)("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorInfo","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var w=r(85893);let C=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],S=e=>{let{arrow:t,variant:r,color:n,size:o,placement:i,touch:a}=e,s={root:["root",t&&"tooltipArrow",a&&"touch",o&&`size${(0,l.Z)(o)}`,n&&`color${(0,l.Z)(n)}`,r&&`variant${(0,l.Z)(r)}`,`tooltipPlacement${(0,l.Z)(i.split("-")[0])}`],arrow:["arrow"]};return(0,p.Z)(s,x,{})},E=(0,g.Z)("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var r,n,i;let a=null==(r=t.variants[e.variant])?void 0:r[e.color];return(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":"1rem","--Tooltip-arrowSize":"8px",padding:t.spacing(.5,.625),fontSize:t.vars.fontSize.xs},"md"===e.size&&{"--Icon-fontSize":"1.125rem","--Tooltip-arrowSize":"10px",padding:t.spacing(.625,.75),fontSize:t.vars.fontSize.sm},"lg"===e.size&&{"--Icon-fontSize":"1.25rem","--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1),fontSize:t.vars.fontSize.md},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.xs,boxShadow:t.shadow.sm,fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,lineHeight:t.vars.lineHeight.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},a,!a.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:null!=(n=e.placement)&&n.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:null!=(i=e.placement)&&i.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),k=(0,g.Z)("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var r,n,o;let i=null==(r=e.variants[t.variant])?void 0:r[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&:before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:null!=(n=null==i?void 0:i.backgroundColor)?n:e.vars.palette.background.surface,borderRightColor:null!=(o=null==i?void 0:i.backgroundColor)?o:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${i.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),O=!1,Z=null,$={x:0,y:0};function P(e,t){return r=>{t&&t(r),e(r)}}function j(e,t){return r=>{t&&t(r),e(r)}}let A=i.forwardRef(function(e,t){var r;let l=(0,m.Z)({props:e,name:"JoyTooltip"}),{children:p,className:g,component:b,arrow:x=!1,describeChild:A=!1,disableFocusListener:R=!1,disableHoverListener:T=!1,disableInteractive:F=!1,disableTouchListener:I=!1,enterDelay:L=100,enterNextDelay:_=0,enterTouchDelay:N=700,followCursor:B=!1,id:M,leaveDelay:D=0,leaveTouchDelay:z=1500,onClose:H,onOpen:W,open:U,disablePortal:V,direction:q,keepMounted:K,modifiers:G,placement:J="bottom",title:X,color:Y="neutral",variant:Q="solid",size:ee="md",slots:et={},slotProps:er={}}=l,en=(0,n.Z)(l,C),{getColor:eo}=(0,y.VT)(Q),ei=V?eo(e.color,Y):Y,[ea,el]=i.useState(),[es,ec]=i.useState(null),eu=i.useRef(!1),ef=F||B,ed=i.useRef(),ep=i.useRef(),eh=i.useRef(),eg=i.useRef(),[em,ev]=(0,s.Z)({controlled:U,default:!1,name:"Tooltip",state:"open"}),ey=em,eb=(0,c.Z)(M),ex=i.useRef(),ew=i.useCallback(()=>{void 0!==ex.current&&(document.body.style.WebkitUserSelect=ex.current,ex.current=void 0),clearTimeout(eg.current)},[]);i.useEffect(()=>()=>{clearTimeout(ed.current),clearTimeout(ep.current),clearTimeout(eh.current),ew()},[ew]);let eC=e=>{Z&&clearTimeout(Z),O=!0,ev(!0),W&&!ey&&W(e)},eS=(0,u.Z)(e=>{Z&&clearTimeout(Z),Z=setTimeout(()=>{O=!1},800+D),ev(!1),H&&ey&&H(e),clearTimeout(ed.current),ed.current=setTimeout(()=>{eu.current=!1},150)}),eE=e=>{eu.current&&"touchstart"!==e.type||(ea&&ea.removeAttribute("title"),clearTimeout(ep.current),clearTimeout(eh.current),L||O&&_?ep.current=setTimeout(()=>{eC(e)},O?_:L):eC(e))},ek=e=>{clearTimeout(ep.current),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},D)},{isFocusVisibleRef:eO,onBlur:eZ,onFocus:e$,ref:eP}=(0,f.Z)(),[,ej]=i.useState(!1),eA=e=>{eZ(e),!1===eO.current&&(ej(!1),ek(e))},eR=e=>{ea||el(e.currentTarget),e$(e),!0===eO.current&&(ej(!0),eE(e))},eT=e=>{eu.current=!0;let t=p.props;t.onTouchStart&&t.onTouchStart(e)};i.useEffect(()=>{if(ey)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&eS(e)}},[eS,ey]);let eF=(0,d.Z)(el,t),eI=(0,d.Z)(eP,eF),eL=(0,d.Z)(p.ref,eI);"number"==typeof X||X||(ey=!1);let e_=i.useRef(null),eN={},eB="string"==typeof X;A?(eN.title=ey||!eB||T?null:X,eN["aria-describedby"]=ey?eb:null):(eN["aria-label"]=eB?X:null,eN["aria-labelledby"]=ey&&!eB?eb:null);let eM=(0,o.Z)({},eN,en,{component:b},p.props,{className:(0,a.Z)(g,p.props.className),onTouchStart:eT,ref:eL},B?{onMouseMove:e=>{let t=p.props;t.onMouseMove&&t.onMouseMove(e),$={x:e.clientX,y:e.clientY},e_.current&&e_.current.update()}}:{}),eD={};I||(eM.onTouchStart=e=>{eT(e),clearTimeout(eh.current),clearTimeout(ed.current),ew(),ex.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",eg.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ex.current,eE(e)},N)},eM.onTouchEnd=e=>{p.props.onTouchEnd&&p.props.onTouchEnd(e),ew(),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},z)}),T||(eM.onMouseOver=P(eE,eM.onMouseOver),eM.onMouseLeave=P(ek,eM.onMouseLeave),ef||(eD.onMouseOver=eE,eD.onMouseLeave=ek)),R||(eM.onFocus=j(eR,eM.onFocus),eM.onBlur=j(eA,eM.onBlur),ef||(eD.onFocus=eR,eD.onBlur=eA));let ez=(0,o.Z)({},l,{arrow:x,disableInteractive:ef,placement:J,touch:eu.current,color:ei,variant:Q,size:ee}),eH=S(ez),eW=(0,o.Z)({},en,{component:b,slots:et,slotProps:er}),eU=i.useMemo(()=>[{name:"arrow",enabled:!!es,options:{element:es,padding:6}},{name:"offset",options:{offset:[0,10]}},...G||[]],[es,G]),[eV,eq]=(0,v.Z)("root",{additionalProps:(0,o.Z)({id:eb,popperRef:e_,placement:J,anchorEl:B?{getBoundingClientRect:()=>({top:$.y,left:$.x,right:$.x,bottom:$.y,width:0,height:0})}:ea,open:!!ea&&ey,disablePortal:V,keepMounted:K,direction:q,modifiers:eU},eD),ref:null,className:eH.root,elementType:E,externalForwardedProps:eW,ownerState:ez}),[eK,eG]=(0,v.Z)("arrow",{ref:ec,className:eH.arrow,elementType:k,externalForwardedProps:eW,ownerState:ez}),eJ=(0,w.jsxs)(eV,(0,o.Z)({},eq,!(null!=(r=l.slots)&&r.root)&&{as:h.Z,slots:{root:b||"div"}},{children:[X,x?(0,w.jsx)(eK,(0,o.Z)({},eG)):null]}));return(0,w.jsxs)(i.Fragment,{children:[i.isValidElement(p)&&i.cloneElement(p,eM),V?eJ:(0,w.jsx)(y.ZP.Provider,{value:void 0,children:eJ})]})});var R=A},40911:function(e,t,r){"use strict";r.d(t,{eu:function(){return x},FR:function(){return b},ZP:function(){return Z}});var n=r(63366),o=r(87462),i=r(67294),a=r(14142),l=r(18719),s=r(39707),c=r(94780),u=r(74312),f=r(20407),d=r(78653),p=r(30220),h=r(26821);function g(e){return(0,h.d6)("MuiTypography",e)}(0,h.sI)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","body1","body2","body3","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=r(85893);let v=["color","textColor"],y=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],b=i.createContext(!1),x=i.createContext(!1),w=e=>{let{gutterBottom:t,noWrap:r,level:n,color:o,variant:i}=e,l={root:["root",n,t&&"gutterBottom",r&&"noWrap",o&&`color${(0,a.Z)(o)}`,i&&`variant${(0,a.Z)(i)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,c.Z)(l,g,{})},C=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({ownerState:e})=>{var t;return(0,o.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(t=e.sx)?void 0:t.alignItems)==="flex-start")&&{marginTop:"2px"})}),S=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})(({ownerState:e})=>{var t;return(0,o.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.endDecorator&&("flex-start"===e.alignItems||(null==(t=e.sx)?void 0:t.alignItems)==="flex-start")&&{marginTop:"2px"})}),E=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n,i,a;return(0,o.Z)({"--Icon-fontSize":"1.25em",margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:{fontFamily:e.vars.fontFamily.body,display:"block"},(t.startDecorator||t.endDecorator)&&(0,o.Z)({display:"flex",alignItems:"center"},t.nesting&&(0,o.Z)({display:"inline-flex"},t.startDecorator&&{verticalAlign:"bottom"})),t.level&&"inherit"!==t.level&&e.typography[t.level],{fontSize:`var(--Typography-fontSize, ${t.level&&"inherit"!==t.level&&null!=(r=null==(n=e.typography[t.level])?void 0:n.fontSize)?r:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&"context"!==t.color&&{color:`rgba(${null==(i=e.vars.palette[t.color])?void 0:i.mainChannel} / 1)`},t.variant&&(0,o.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!t.nesting&&{marginInline:"-0.375em"},null==(a=e.variants[t.variant])?void 0:a[t.color]))}),k={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",display1:"h1",display2:"h2",body1:"p",body2:"p",body3:"span",body4:"span",body5:"span",inherit:"p"},O=i.forwardRef(function(e,t){let r=(0,f.Z)({props:e,name:"JoyTypography"}),{color:a,textColor:c}=r,u=(0,n.Z)(r,v),h=i.useContext(b),g=i.useContext(x),O=(0,s.Z)((0,o.Z)({},u,{color:c})),{component:Z,gutterBottom:$=!1,noWrap:P=!1,level:j="body1",levelMapping:A={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",inherit:"p"},children:R,endDecorator:T,startDecorator:F,variant:I,slots:L={},slotProps:_={}}=O,N=(0,n.Z)(O,y),{getColor:B}=(0,d.VT)(I),M=B(e.color,I?null!=a?a:"neutral":a),D=h||g?e.level||"inherit":j,z=Z||(h?"span":A[D]||k[D]||"span"),H=(0,o.Z)({},O,{level:D,component:z,color:M,gutterBottom:$,noWrap:P,nesting:h,variant:I}),W=w(H),U=(0,o.Z)({},N,{component:z,slots:L,slotProps:_}),[V,q]=(0,p.Z)("root",{ref:t,className:W.root,elementType:E,externalForwardedProps:U,ownerState:H}),[K,G]=(0,p.Z)("startDecorator",{className:W.startDecorator,elementType:C,externalForwardedProps:U,ownerState:H}),[J,X]=(0,p.Z)("endDecorator",{className:W.endDecorator,elementType:S,externalForwardedProps:U,ownerState:H});return(0,m.jsx)(b.Provider,{value:!0,children:(0,m.jsxs)(V,(0,o.Z)({},q,{children:[F&&(0,m.jsx)(K,(0,o.Z)({},G,{children:F})),(0,l.Z)(R,["Skeleton"])?i.cloneElement(R,{variant:R.props.variant||"inline"}):R,T&&(0,m.jsx)(J,(0,o.Z)({},X,{children:T}))]}))})});var Z=O},26821:function(e,t,r){"use strict";r.d(t,{d6:function(){return i},sI:function(){return a}});var n=r(34867),o=r(1588);let i=(e,t)=>(0,n.Z)(e,t,"Joy"),a=(e,t)=>(0,o.Z)(e,t,"Joy")},9818:function(e,t){"use strict";t.Z={grey:{50:"#F7F7F8",100:"#EBEBEF",200:"#D8D8DF",300:"#B9B9C6",400:"#8F8FA3",500:"#73738C",600:"#5A5A72",700:"#434356",800:"#25252D",900:"#131318"},blue:{50:"#F4FAFF",100:"#DDF1FF",200:"#ADDBFF",300:"#6FB6FF",400:"#3990FF",500:"#096BDE",600:"#054DA7",700:"#02367D",800:"#072859",900:"#00153C"},yellow:{50:"#FFF8C5",100:"#FAE17D",200:"#EAC54F",300:"#D4A72C",400:"#BF8700",500:"#9A6700",600:"#7D4E00",700:"#633C01",800:"#4D2D00",900:"#3B2300"},red:{50:"#FFF8F6",100:"#FFE9E8",200:"#FFC7C5",300:"#FF9192",400:"#FA5255",500:"#D3232F",600:"#A10E25",700:"#77061B",800:"#580013",900:"#39000D"},green:{50:"#F3FEF5",100:"#D7F5DD",200:"#77EC95",300:"#4CC76E",400:"#2CA24D",500:"#1A7D36",600:"#0F5D26",700:"#034318",800:"#002F0F",900:"#001D09"},purple:{50:"#FDF7FF",100:"#F4EAFF",200:"#E1CBFF",300:"#C69EFF",400:"#A374F9",500:"#814DDE",600:"#5F35AE",700:"#452382",800:"#301761",900:"#1D0A42"}}},78653:function(e,t,r){"use strict";r.d(t,{VT:function(){return s},do:function(){return c}});var n=r(67294),o=r(38629),i=r(1812),a=r(85893);let l=n.createContext(void 0),s=e=>{let t=n.useContext(l);return{getColor:(r,n)=>t&&e&&t.includes(e)?r||"context":r||n}};function c({children:e,variant:t}){var r;let n=(0,o.F)();return(0,a.jsx)(l.Provider,{value:t?(null!=(r=n.colorInversionConfig)?r:i.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=l},56385:function(e,t,r){"use strict";r.d(t,{lL:function(){return S},tv:function(){return E}});var n=r(59766),o=r(87462),i=r(63366),a=r(71387),l=r(67294),s=r(70917),c=r(85893);function u(e){let{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,c.jsx)(s.xB,{styles:n})}var f=r(56760),d=r(71927);let p="mode",h="color-scheme",g="data-color-scheme";function m(e){if("undefined"!=typeof window&&"system"===e){let e=window.matchMedia("(prefers-color-scheme: dark)");return e.matches?"dark":"light"}}function v(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function y(e,t){let r;if("undefined"!=typeof window){try{(r=localStorage.getItem(e)||void 0)||localStorage.setItem(e,t)}catch(e){}return r||t}}let b=["colorSchemes","components","generateCssVars","cssVarPrefix"];var x=r(1812),w=r(13951),C=r(2548);let{CssVarsProvider:S,useColorScheme:E,getInitColorSchemeScript:k}=function(e){let{themeId:t,theme:r={},attribute:s=g,modeStorageKey:x=p,colorSchemeStorageKey:w=h,defaultMode:C="light",defaultColorScheme:S,disableTransitionOnChange:E=!1,resolveTheme:k,excludeVariablesFromRoot:O}=e;r.colorSchemes&&("string"!=typeof S||r.colorSchemes[S])&&("object"!=typeof S||r.colorSchemes[null==S?void 0:S.light])&&("object"!=typeof S||r.colorSchemes[null==S?void 0:S.dark])||console.error(`MUI: \`${S}\` does not exist in \`theme.colorSchemes\`.`);let Z=l.createContext(void 0),$="string"==typeof S?S:S.light,P="string"==typeof S?S:S.dark;return{CssVarsProvider:function({children:e,theme:a=r,modeStorageKey:g=x,colorSchemeStorageKey:$=w,attribute:P=s,defaultMode:j=C,defaultColorScheme:A=S,disableTransitionOnChange:R=E,storageWindow:T="undefined"==typeof window?void 0:window,documentNode:F="undefined"==typeof document?void 0:document,colorSchemeNode:I="undefined"==typeof document?void 0:document.documentElement,colorSchemeSelector:L=":root",disableNestedContext:_=!1,disableStyleSheetGeneration:N=!1}){let B=l.useRef(!1),M=(0,f.Z)(),D=l.useContext(Z),z=!!D&&!_,H=a[t],W=H||a,{colorSchemes:U={},components:V={},generateCssVars:q=()=>({vars:{},css:{}}),cssVarPrefix:K}=W,G=(0,i.Z)(W,b),J=Object.keys(U),X="string"==typeof A?A:A.light,Y="string"==typeof A?A:A.dark,{mode:Q,setMode:ee,systemMode:et,lightColorScheme:er,darkColorScheme:en,colorScheme:eo,setColorScheme:ei}=function(e){let{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:i=[],modeStorageKey:a=p,colorSchemeStorageKey:s=h,storageWindow:c="undefined"==typeof window?void 0:window}=e,u=i.join(","),[f,d]=l.useState(()=>{let e=y(a,t),o=y(`${s}-light`,r),i=y(`${s}-dark`,n);return{mode:e,systemMode:m(e),lightColorScheme:o,darkColorScheme:i}}),g=v(f,e=>"light"===e?f.lightColorScheme:"dark"===e?f.darkColorScheme:void 0),b=l.useCallback(e=>{d(r=>{if(e===r.mode)return r;let n=e||t;try{localStorage.setItem(a,n)}catch(e){}return(0,o.Z)({},r,{mode:n,systemMode:m(n)})})},[a,t]),x=l.useCallback(e=>{e?"string"==typeof e?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):d(t=>{let r=(0,o.Z)({},t);return v(t,t=>{try{localStorage.setItem(`${s}-${t}`,e)}catch(e){}"light"===t&&(r.lightColorScheme=e),"dark"===t&&(r.darkColorScheme=e)}),r}):d(t=>{let i=(0,o.Z)({},t),a=null===e.light?r:e.light,l=null===e.dark?n:e.dark;if(a){if(u.includes(a)){i.lightColorScheme=a;try{localStorage.setItem(`${s}-light`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)}if(l){if(u.includes(l)){i.darkColorScheme=l;try{localStorage.setItem(`${s}-dark`,l)}catch(e){}}else console.error(`\`${l}\` does not exist in \`theme.colorSchemes\`.`)}return i}):d(e=>{try{localStorage.setItem(`${s}-light`,r),localStorage.setItem(`${s}-dark`,n)}catch(e){}return(0,o.Z)({},e,{lightColorScheme:r,darkColorScheme:n})})},[u,s,r,n]),w=l.useCallback(e=>{"system"===f.mode&&d(t=>(0,o.Z)({},t,{systemMode:null!=e&&e.matches?"dark":"light"}))},[f.mode]),C=l.useRef(w);return C.current=w,l.useEffect(()=>{let e=(...e)=>C.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>t.removeListener(e)},[]),l.useEffect(()=>{let e=e=>{let r=e.newValue;"string"==typeof e.key&&e.key.startsWith(s)&&(!r||u.match(r))&&(e.key.endsWith("light")&&x({light:r}),e.key.endsWith("dark")&&x({dark:r})),e.key===a&&(!r||["light","dark","system"].includes(r))&&b(r||t)};if(c)return c.addEventListener("storage",e),()=>c.removeEventListener("storage",e)},[x,b,a,s,u,t,c]),(0,o.Z)({},f,{colorScheme:g,setMode:b,setColorScheme:x})}({supportedColorSchemes:J,defaultLightColorScheme:X,defaultDarkColorScheme:Y,modeStorageKey:g,colorSchemeStorageKey:$,defaultMode:j,storageWindow:T}),ea=Q,el=eo;z&&(ea=D.mode,el=D.colorScheme);let es=ea||("system"===j?C:j),ec=el||("dark"===es?Y:X),{css:eu,vars:ef}=q(),ed=(0,o.Z)({},G,{components:V,colorSchemes:U,cssVarPrefix:K,vars:ef,getColorSchemeSelector:e=>`[${P}="${e}"] &`}),ep={},eh={};Object.entries(U).forEach(([e,t])=>{let{css:r,vars:i}=q(e);ed.vars=(0,n.Z)(ed.vars,i),e===ec&&(Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?ed[e]=(0,o.Z)({},ed[e],t[e]):ed[e]=t[e]}),ed.palette&&(ed.palette.colorScheme=e));let a="string"==typeof A?A:"dark"===j?A.dark:A.light;if(e===a){if(O){let t={};O(K).forEach(e=>{t[e]=r[e],delete r[e]}),ep[`[${P}="${e}"]`]=t}ep[`${L}, [${P}="${e}"]`]=r}else eh[`${":root"===L?"":L}[${P}="${e}"]`]=r}),ed.vars=(0,n.Z)(ed.vars,ef),l.useEffect(()=>{el&&I&&I.setAttribute(P,el)},[el,P,I]),l.useEffect(()=>{let e;if(R&&B.current&&F){let t=F.createElement("style");t.appendChild(F.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),F.head.appendChild(t),window.getComputedStyle(F.body),e=setTimeout(()=>{F.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[el,R,F]),l.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);let eg=l.useMemo(()=>({mode:ea,systemMode:et,setMode:ee,lightColorScheme:er,darkColorScheme:en,colorScheme:el,setColorScheme:ei,allColorSchemes:J}),[J,el,en,er,ea,ei,ee,et]),em=!0;(N||z&&(null==M?void 0:M.cssVarPrefix)===K)&&(em=!1);let ev=(0,c.jsxs)(l.Fragment,{children:[em&&(0,c.jsxs)(l.Fragment,{children:[(0,c.jsx)(u,{styles:{[L]:eu}}),(0,c.jsx)(u,{styles:ep}),(0,c.jsx)(u,{styles:eh})]}),(0,c.jsx)(d.Z,{themeId:H?t:void 0,theme:k?k(ed):ed,children:e})]});return z?ev:(0,c.jsx)(Z.Provider,{value:eg,children:ev})},useColorScheme:()=>{let e=l.useContext(Z);if(!e)throw Error((0,a.Z)(19));return e},getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=p,colorSchemeStorageKey:i=h,attribute:a=g,colorSchemeNode:l="document.documentElement"}=e||{};return(0,c.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function() { try { + `),w)),Z=i.forwardRef(function(e,t){let r=(0,f.Z)({props:e,name:"JoyCircularProgress"}),{children:i,className:l,color:s="primary",size:c="md",variant:u="soft",thickness:h,determinate:g=!1,value:v=g?0:25,component:y,slots:b={},slotProps:w={}}=r,Z=(0,o.Z)(r,x),{getColor:$}=(0,d.VT)(u),P=$(e.color,s),j=(0,n.Z)({},r,{color:P,size:c,variant:u,thickness:h,value:v,determinate:g,instanceSize:e.size}),A=C(j),R=(0,n.Z)({},Z,{component:y,slots:b,slotProps:w}),[T,F]=(0,p.Z)("root",{ref:t,className:(0,a.Z)(A.root,l),elementType:S,externalForwardedProps:R,ownerState:j,additionalProps:(0,n.Z)({role:"progressbar",style:{"--CircularProgress-percent":v}},v&&g&&{"aria-valuenow":"number"==typeof v?Math.round(v):Math.round(Number(v||0))})}),[I,L]=(0,p.Z)("svg",{className:A.svg,elementType:E,externalForwardedProps:R,ownerState:j}),[_,N]=(0,p.Z)("track",{className:A.track,elementType:k,externalForwardedProps:R,ownerState:j}),[B,M]=(0,p.Z)("progress",{className:A.progress,elementType:O,externalForwardedProps:R,ownerState:j});return(0,m.jsxs)(T,(0,n.Z)({},F,{children:[(0,m.jsxs)(I,(0,n.Z)({},L,{children:[(0,m.jsx)(_,(0,n.Z)({},N)),(0,m.jsx)(B,(0,n.Z)({},M))]})),i]}))});var $=Z},14553:function(e,t,r){"use strict";r.d(t,{ZP:function(){return E}});var n=r(63366),o=r(87462),i=r(67294),a=r(14142),l=r(33703),s=r(70758),c=r(94780),u=r(74312),f=r(20407),d=r(78653),p=r(30220),h=r(26821);function g(e){return(0,h.d6)("MuiIconButton",e)}let m=(0,h.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var v=r(89996),y=r(85893);let b=["children","action","component","color","disabled","variant","size","slots","slotProps"],x=e=>{let{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,size:i,variant:l}=e,s={root:["root",r&&"disabled",n&&"focusVisible",l&&`variant${(0,a.Z)(l)}`,t&&`color${(0,a.Z)(t)}`,i&&`size${(0,a.Z)(i)}`]},u=(0,c.Z)(s,g,{});return n&&o&&(u.root+=` ${o}`),u},w=(0,u.Z)("button")(({theme:e,ownerState:t})=>{var r,n,i,a;return[(0,o.Z)({"--Icon-margin":"initial"},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.5rem) / 1.667)","--CircularProgress-size":"24px",minWidth:"var(--IconButton-size, 2.5rem)",minHeight:"var(--IconButton-size, 2.5rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 3rem) / 1.714)","--CircularProgress-size":"28px",minWidth:"var(--IconButton-size, 3rem)",minHeight:"var(--IconButton-size, 3rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:e.focus.default}),null==(r=e.variants[t.variant])?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":null==(n=e.variants[`${t.variant}Hover`])?void 0:n[t.color]}},{"&:active":null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]},{[`&.${m.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]}),C=(0,u.Z)(w,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),S=i.forwardRef(function(e,t){var r;let a=(0,f.Z)({props:e,name:"JoyIconButton"}),{children:c,action:u,component:h="button",color:g="primary",disabled:m,variant:w="soft",size:S="md",slots:E={},slotProps:k={}}=a,O=(0,n.Z)(a,b),Z=i.useContext(v.Z),$=e.variant||Z.variant||w,P=e.size||Z.size||S,{getColor:j}=(0,d.VT)($),A=j(e.color,Z.color||g),R=null!=(r=e.disabled)?r:Z.disabled||m,T=i.useRef(null),F=(0,l.Z)(T,t),{focusVisible:I,setFocusVisible:L,getRootProps:_}=(0,s.Z)((0,o.Z)({},a,{disabled:R,rootRef:F}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var e;L(!0),null==(e=T.current)||e.focus()}}),[L]);let N=(0,o.Z)({},a,{component:h,color:A,disabled:R,variant:$,size:P,focusVisible:I,instanceSize:e.size}),B=x(N),M=(0,o.Z)({},O,{component:h,slots:E,slotProps:k}),[D,z]=(0,p.Z)("root",{ref:t,className:B.root,elementType:C,getSlotProps:_,externalForwardedProps:M,ownerState:N});return(0,y.jsx)(D,(0,o.Z)({},z,{children:c}))});S.muiName="IconButton";var E=S},62774:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(void 0);t.Z=o},43614:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(void 0);t.Z=o},11772:function(e,t,r){"use strict";r.d(t,{C:function(){return S},Z:function(){return O}});var n=r(63366),o=r(87462),i=r(67294),a=r(86010),l=r(14142),s=r(94780),c=r(74312),u=r(20407),f=r(78653),d=r(26821);function p(e){return(0,d.d6)("MuiList",e)}(0,d.sI)("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]);var h=r(94593),g=r(62774),m=r(43614),v=r(51712);let y=i.createContext(void 0);var b=r(30220),x=r(85893);let w=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],C=e=>{let{variant:t,color:r,size:n,nesting:o,orientation:i,instanceSize:a}=e,c={root:["root",i,t&&`variant${(0,l.Z)(t)}`,r&&`color${(0,l.Z)(r)}`,!a&&!o&&n&&`size${(0,l.Z)(n)}`,a&&`size${(0,l.Z)(a)}`,o&&"nesting"]};return(0,s.Z)(c,p,{})},S=(0,c.Z)("ul")(({theme:e,ownerState:t})=>{var r;function n(r){return"sm"===r?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":"0.5rem","--ListItem-fontSize":e.vars.fontSize.sm,"--ListItemDecorator-size":"horizontal"===t.orientation?"1.5rem":"2rem","--Icon-fontSize":"1.125rem"}:"md"===r?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.5rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":"0.75rem","--ListItem-fontSize":e.vars.fontSize.md,"--ListItemDecorator-size":"horizontal"===t.orientation?"1.75rem":"2.5rem","--Icon-fontSize":"1.25rem"}:"lg"===r?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"3rem","--ListItem-paddingY":"0.5rem","--ListItem-paddingX":"1rem","--ListItem-fontSize":e.vars.fontSize.md,"--ListItemDecorator-size":"horizontal"===t.orientation?"2.25rem":"3rem","--Icon-fontSize":"1.5rem"}:{}}return[t.nesting&&(0,o.Z)({},n(t.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0,marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!t.nesting&&(0,o.Z)({},n(t.size),{"--List-gap":"0px","--ListItemDecorator-color":e.vars.palette.text.tertiary,"--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)","--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},"horizontal"===t.orientation?(0,o.Z)({},t.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"}),(0,o.Z)({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"},t.wrap&&{flexWrap:"wrap"},{flexGrow:1,position:"relative"},null==(r=e.variants[t.variant])?void 0:r[t.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"})]}),E=(0,c.Z)(S,{name:"JoyList",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k=i.forwardRef(function(e,t){var r;let l;let s=i.useContext(h.Z),c=i.useContext(m.Z),d=i.useContext(y),p=(0,u.Z)({props:e,name:"JoyList"}),{component:S,className:k,children:O,size:Z,orientation:$="vertical",wrap:P=!1,variant:j="plain",color:A="neutral",role:R,slots:T={},slotProps:F={}}=p,I=(0,n.Z)(p,w),{getColor:L}=(0,f.VT)(j),_=L(e.color,A),N=Z||(null!=(r=e.size)?r:"md");c&&(l="group"),d&&(l="presentation"),R&&(l=R);let B=(0,o.Z)({},p,{instanceSize:e.size,size:N,nesting:s,orientation:$,wrap:P,variant:j,color:_,role:l}),M=C(B),D=(0,o.Z)({},I,{component:S,slots:T,slotProps:F}),[z,H]=(0,b.Z)("root",{ref:t,className:(0,a.Z)(M.root,k),elementType:E,externalForwardedProps:D,ownerState:B,additionalProps:{as:S,role:l,"aria-labelledby":"string"==typeof s?s:void 0}});return(0,x.jsx)(z,(0,o.Z)({},H,{children:(0,x.jsx)(g.Z.Provider,{value:`${"string"==typeof S?S:""}:${l||""}`,children:(0,x.jsx)(v.Z,{row:"horizontal"===$,wrap:P,children:O})})}))});var O=k},51712:function(e,t,r){"use strict";r.d(t,{M:function(){return c}});var n=r(87462),o=r(67294),i=r(40780),a=r(30532),l=r(94593),s=r(85893);let c={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};t.Z=function(e){let{children:t,nested:r,row:c=!1,wrap:u=!1}=e,f=(0,s.jsx)(i.Z.Provider,{value:c,children:(0,s.jsx)(a.Z.Provider,{value:u,children:o.Children.map(t,(e,t)=>o.isValidElement(e)?o.cloneElement(e,(0,n.Z)({},0===t&&{"data-first-child":""})):e)})});return void 0===r?f:(0,s.jsx)(l.Z.Provider,{value:r,children:f})}},94593:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(!1);t.Z=o},40780:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(!1);t.Z=o},30532:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(!1);t.Z=o},16079:function(e,t,r){"use strict";r.d(t,{r:function(){return S},Z:function(){return O}});var n=r(63366),o=r(87462),i=r(67294),a=r(86010),l=r(14142),s=r(33703),c=r(94780),u=r(70758),f=r(74312),d=r(20407),p=r(78653),h=r(26821);function g(e){return(0,h.d6)("MuiListItemButton",e)}let m=(0,h.sI)("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]);var v=r(41785),y=r(40780),b=r(30220),x=r(85893);let w=["children","className","action","component","orientation","role","selected","color","variant","slots","slotProps"],C=e=>{let{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,selected:i,variant:a}=e,s={root:["root",r&&"disabled",n&&"focusVisible",t&&`color${(0,l.Z)(t)}`,i&&"selected",a&&`variant${(0,l.Z)(a)}`]},u=(0,c.Z)(s,g,{});return n&&o&&(u.root+=` ${o}`),u},S=(0,f.Z)("div")(({theme:e,ownerState:t})=>{var r,n,i,a,l;return[(0,o.Z)({},t.selected&&{"--ListItemDecorator-color":"initial"},t.disabled&&{"--ListItemDecorator-color":null==(r=e.variants)||null==(r=r[`${t.variant}Disabled`])||null==(r=r[t.color])?void 0:r.color},{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch"},"vertical"===t.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===t["data-first-child"]&&{marginInlineStart:t.row?"var(--List-gap)":void 0,marginBlockStart:t.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"none",borderRadius:"var(--ListItem-radius)",flexGrow:t.row?0:1,flexBasis:t.row?"auto":"0%",flexShrink:0,minInlineSize:0,fontSize:"var(--ListItem-fontSize)",fontFamily:e.vars.fontFamily.body},t.selected&&{fontWeight:e.vars.fontWeight.md},{[e.focus.selector]:e.focus.default}),(0,o.Z)({},null==(n=e.variants[t.variant])?void 0:n[t.color],!t.selected&&{"&:hover":null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color],"&:active":null==(a=e.variants[`${t.variant}Active`])?void 0:a[t.color]}),{[`&.${m.disabled}`]:null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color]}]}),E=(0,f.Z)(S,{name:"JoyListItemButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k=i.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"JoyListItemButton"}),l=i.useContext(y.Z),{children:c,className:f,action:h,component:g="div",orientation:m="horizontal",role:S,selected:k=!1,color:O=k?"primary":"neutral",variant:Z="plain",slots:$={},slotProps:P={}}=r,j=(0,n.Z)(r,w),{getColor:A}=(0,p.VT)(Z),R=A(e.color,O),T=i.useRef(null),F=(0,s.Z)(T,t),{focusVisible:I,setFocusVisible:L,getRootProps:_}=(0,u.Z)((0,o.Z)({},r,{rootRef:F}));i.useImperativeHandle(h,()=>({focusVisible:()=>{var e;L(!0),null==(e=T.current)||e.focus()}}),[L]);let N=(0,o.Z)({},r,{component:g,color:R,focusVisible:I,orientation:m,row:l,selected:k,variant:Z}),B=C(N),M=(0,o.Z)({},j,{component:g,slots:$,slotProps:P}),[D,z]=(0,b.Z)("root",{ref:t,className:(0,a.Z)(B.root,f),elementType:E,externalForwardedProps:M,ownerState:N,getSlotProps:_});return(0,x.jsx)(v.Z.Provider,{value:m,children:(0,x.jsx)(D,(0,o.Z)({},z,{role:null!=S?S:z.role,children:c}))})});var O=k},41785:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext("horizontal");t.Z=o},2549:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(63366),o=r(87462),i=r(67294),a=r(86010),l=r(14142),s=r(19032),c=r(92996),u=r(59948),f=r(99962),d=r(33703),p=r(94780),h=r(60769),g=r(74312),m=r(20407),v=r(30220),y=r(78653),b=r(26821);function x(e){return(0,b.d6)("MuiTooltip",e)}(0,b.sI)("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorInfo","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var w=r(85893);let C=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],S=e=>{let{arrow:t,variant:r,color:n,size:o,placement:i,touch:a}=e,s={root:["root",t&&"tooltipArrow",a&&"touch",o&&`size${(0,l.Z)(o)}`,n&&`color${(0,l.Z)(n)}`,r&&`variant${(0,l.Z)(r)}`,`tooltipPlacement${(0,l.Z)(i.split("-")[0])}`],arrow:["arrow"]};return(0,p.Z)(s,x,{})},E=(0,g.Z)("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var r,n,i;let a=null==(r=t.variants[e.variant])?void 0:r[e.color];return(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":"1rem","--Tooltip-arrowSize":"8px",padding:t.spacing(.5,.625),fontSize:t.vars.fontSize.xs},"md"===e.size&&{"--Icon-fontSize":"1.125rem","--Tooltip-arrowSize":"10px",padding:t.spacing(.625,.75),fontSize:t.vars.fontSize.sm},"lg"===e.size&&{"--Icon-fontSize":"1.25rem","--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1),fontSize:t.vars.fontSize.md},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.xs,boxShadow:t.shadow.sm,fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,lineHeight:t.vars.lineHeight.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},a,!a.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:null!=(n=e.placement)&&n.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:null!=(i=e.placement)&&i.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),k=(0,g.Z)("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var r,n,o;let i=null==(r=e.variants[t.variant])?void 0:r[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&:before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:null!=(n=null==i?void 0:i.backgroundColor)?n:e.vars.palette.background.surface,borderRightColor:null!=(o=null==i?void 0:i.backgroundColor)?o:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${i.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),O=!1,Z=null,$={x:0,y:0};function P(e,t){return r=>{t&&t(r),e(r)}}function j(e,t){return r=>{t&&t(r),e(r)}}let A=i.forwardRef(function(e,t){var r;let l=(0,m.Z)({props:e,name:"JoyTooltip"}),{children:p,className:g,component:b,arrow:x=!1,describeChild:A=!1,disableFocusListener:R=!1,disableHoverListener:T=!1,disableInteractive:F=!1,disableTouchListener:I=!1,enterDelay:L=100,enterNextDelay:_=0,enterTouchDelay:N=700,followCursor:B=!1,id:M,leaveDelay:D=0,leaveTouchDelay:z=1500,onClose:H,onOpen:U,open:W,disablePortal:V,direction:q,keepMounted:K,modifiers:G,placement:J="bottom",title:X,color:Y="neutral",variant:Q="solid",size:ee="md",slots:et={},slotProps:er={}}=l,en=(0,n.Z)(l,C),{getColor:eo}=(0,y.VT)(Q),ei=V?eo(e.color,Y):Y,[ea,el]=i.useState(),[es,ec]=i.useState(null),eu=i.useRef(!1),ef=F||B,ed=i.useRef(),ep=i.useRef(),eh=i.useRef(),eg=i.useRef(),[em,ev]=(0,s.Z)({controlled:W,default:!1,name:"Tooltip",state:"open"}),ey=em,eb=(0,c.Z)(M),ex=i.useRef(),ew=i.useCallback(()=>{void 0!==ex.current&&(document.body.style.WebkitUserSelect=ex.current,ex.current=void 0),clearTimeout(eg.current)},[]);i.useEffect(()=>()=>{clearTimeout(ed.current),clearTimeout(ep.current),clearTimeout(eh.current),ew()},[ew]);let eC=e=>{Z&&clearTimeout(Z),O=!0,ev(!0),U&&!ey&&U(e)},eS=(0,u.Z)(e=>{Z&&clearTimeout(Z),Z=setTimeout(()=>{O=!1},800+D),ev(!1),H&&ey&&H(e),clearTimeout(ed.current),ed.current=setTimeout(()=>{eu.current=!1},150)}),eE=e=>{eu.current&&"touchstart"!==e.type||(ea&&ea.removeAttribute("title"),clearTimeout(ep.current),clearTimeout(eh.current),L||O&&_?ep.current=setTimeout(()=>{eC(e)},O?_:L):eC(e))},ek=e=>{clearTimeout(ep.current),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},D)},{isFocusVisibleRef:eO,onBlur:eZ,onFocus:e$,ref:eP}=(0,f.Z)(),[,ej]=i.useState(!1),eA=e=>{eZ(e),!1===eO.current&&(ej(!1),ek(e))},eR=e=>{ea||el(e.currentTarget),e$(e),!0===eO.current&&(ej(!0),eE(e))},eT=e=>{eu.current=!0;let t=p.props;t.onTouchStart&&t.onTouchStart(e)};i.useEffect(()=>{if(ey)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&eS(e)}},[eS,ey]);let eF=(0,d.Z)(el,t),eI=(0,d.Z)(eP,eF),eL=(0,d.Z)(p.ref,eI);"number"==typeof X||X||(ey=!1);let e_=i.useRef(null),eN={},eB="string"==typeof X;A?(eN.title=ey||!eB||T?null:X,eN["aria-describedby"]=ey?eb:null):(eN["aria-label"]=eB?X:null,eN["aria-labelledby"]=ey&&!eB?eb:null);let eM=(0,o.Z)({},eN,en,{component:b},p.props,{className:(0,a.Z)(g,p.props.className),onTouchStart:eT,ref:eL},B?{onMouseMove:e=>{let t=p.props;t.onMouseMove&&t.onMouseMove(e),$={x:e.clientX,y:e.clientY},e_.current&&e_.current.update()}}:{}),eD={};I||(eM.onTouchStart=e=>{eT(e),clearTimeout(eh.current),clearTimeout(ed.current),ew(),ex.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",eg.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ex.current,eE(e)},N)},eM.onTouchEnd=e=>{p.props.onTouchEnd&&p.props.onTouchEnd(e),ew(),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},z)}),T||(eM.onMouseOver=P(eE,eM.onMouseOver),eM.onMouseLeave=P(ek,eM.onMouseLeave),ef||(eD.onMouseOver=eE,eD.onMouseLeave=ek)),R||(eM.onFocus=j(eR,eM.onFocus),eM.onBlur=j(eA,eM.onBlur),ef||(eD.onFocus=eR,eD.onBlur=eA));let ez=(0,o.Z)({},l,{arrow:x,disableInteractive:ef,placement:J,touch:eu.current,color:ei,variant:Q,size:ee}),eH=S(ez),eU=(0,o.Z)({},en,{component:b,slots:et,slotProps:er}),eW=i.useMemo(()=>[{name:"arrow",enabled:!!es,options:{element:es,padding:6}},{name:"offset",options:{offset:[0,10]}},...G||[]],[es,G]),[eV,eq]=(0,v.Z)("root",{additionalProps:(0,o.Z)({id:eb,popperRef:e_,placement:J,anchorEl:B?{getBoundingClientRect:()=>({top:$.y,left:$.x,right:$.x,bottom:$.y,width:0,height:0})}:ea,open:!!ea&&ey,disablePortal:V,keepMounted:K,direction:q,modifiers:eW},eD),ref:null,className:eH.root,elementType:E,externalForwardedProps:eU,ownerState:ez}),[eK,eG]=(0,v.Z)("arrow",{ref:ec,className:eH.arrow,elementType:k,externalForwardedProps:eU,ownerState:ez}),eJ=(0,w.jsxs)(eV,(0,o.Z)({},eq,!(null!=(r=l.slots)&&r.root)&&{as:h.Z,slots:{root:b||"div"}},{children:[X,x?(0,w.jsx)(eK,(0,o.Z)({},eG)):null]}));return(0,w.jsxs)(i.Fragment,{children:[i.isValidElement(p)&&i.cloneElement(p,eM),V?eJ:(0,w.jsx)(y.ZP.Provider,{value:void 0,children:eJ})]})});var R=A},40911:function(e,t,r){"use strict";r.d(t,{eu:function(){return x},FR:function(){return b},ZP:function(){return Z}});var n=r(63366),o=r(87462),i=r(67294),a=r(14142),l=r(18719),s=r(39707),c=r(94780),u=r(74312),f=r(20407),d=r(78653),p=r(30220),h=r(26821);function g(e){return(0,h.d6)("MuiTypography",e)}(0,h.sI)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","body1","body2","body3","noWrap","gutterBottom","startDecorator","endDecorator","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=r(85893);let v=["color","textColor"],y=["component","gutterBottom","noWrap","level","levelMapping","children","endDecorator","startDecorator","variant","slots","slotProps"],b=i.createContext(!1),x=i.createContext(!1),w=e=>{let{gutterBottom:t,noWrap:r,level:n,color:o,variant:i}=e,l={root:["root",n,t&&"gutterBottom",r&&"noWrap",o&&`color${(0,a.Z)(o)}`,i&&`variant${(0,a.Z)(i)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,c.Z)(l,g,{})},C=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({ownerState:e})=>{var t;return(0,o.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(t=e.sx)?void 0:t.alignItems)==="flex-start")&&{marginTop:"2px"})}),S=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})(({ownerState:e})=>{var t;return(0,o.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof e.endDecorator&&("flex-start"===e.alignItems||(null==(t=e.sx)?void 0:t.alignItems)==="flex-start")&&{marginTop:"2px"})}),E=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n,i,a;return(0,o.Z)({"--Icon-fontSize":"1.25em",margin:"var(--Typography-margin, 0px)"},t.nesting?{display:"inline"}:{fontFamily:e.vars.fontFamily.body,display:"block"},(t.startDecorator||t.endDecorator)&&(0,o.Z)({display:"flex",alignItems:"center"},t.nesting&&(0,o.Z)({display:"inline-flex"},t.startDecorator&&{verticalAlign:"bottom"})),t.level&&"inherit"!==t.level&&e.typography[t.level],{fontSize:`var(--Typography-fontSize, ${t.level&&"inherit"!==t.level&&null!=(r=null==(n=e.typography[t.level])?void 0:n.fontSize)?r:"inherit"})`},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.color&&"context"!==t.color&&{color:`rgba(${null==(i=e.vars.palette[t.color])?void 0:i.mainChannel} / 1)`},t.variant&&(0,o.Z)({borderRadius:e.vars.radius.xs,paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!t.nesting&&{marginInline:"-0.375em"},null==(a=e.variants[t.variant])?void 0:a[t.color]))}),k={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",display1:"h1",display2:"h2",body1:"p",body2:"p",body3:"span",body4:"span",body5:"span",inherit:"p"},O=i.forwardRef(function(e,t){let r=(0,f.Z)({props:e,name:"JoyTypography"}),{color:a,textColor:c}=r,u=(0,n.Z)(r,v),h=i.useContext(b),g=i.useContext(x),O=(0,s.Z)((0,o.Z)({},u,{color:c})),{component:Z,gutterBottom:$=!1,noWrap:P=!1,level:j="body1",levelMapping:A={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",inherit:"p"},children:R,endDecorator:T,startDecorator:F,variant:I,slots:L={},slotProps:_={}}=O,N=(0,n.Z)(O,y),{getColor:B}=(0,d.VT)(I),M=B(e.color,I?null!=a?a:"neutral":a),D=h||g?e.level||"inherit":j,z=Z||(h?"span":A[D]||k[D]||"span"),H=(0,o.Z)({},O,{level:D,component:z,color:M,gutterBottom:$,noWrap:P,nesting:h,variant:I}),U=w(H),W=(0,o.Z)({},N,{component:z,slots:L,slotProps:_}),[V,q]=(0,p.Z)("root",{ref:t,className:U.root,elementType:E,externalForwardedProps:W,ownerState:H}),[K,G]=(0,p.Z)("startDecorator",{className:U.startDecorator,elementType:C,externalForwardedProps:W,ownerState:H}),[J,X]=(0,p.Z)("endDecorator",{className:U.endDecorator,elementType:S,externalForwardedProps:W,ownerState:H});return(0,m.jsx)(b.Provider,{value:!0,children:(0,m.jsxs)(V,(0,o.Z)({},q,{children:[F&&(0,m.jsx)(K,(0,o.Z)({},G,{children:F})),(0,l.Z)(R,["Skeleton"])?i.cloneElement(R,{variant:R.props.variant||"inline"}):R,T&&(0,m.jsx)(J,(0,o.Z)({},X,{children:T}))]}))})});var Z=O},26821:function(e,t,r){"use strict";r.d(t,{d6:function(){return i},sI:function(){return a}});var n=r(34867),o=r(1588);let i=(e,t)=>(0,n.Z)(e,t,"Joy"),a=(e,t)=>(0,o.Z)(e,t,"Joy")},9818:function(e,t){"use strict";t.Z={grey:{50:"#F7F7F8",100:"#EBEBEF",200:"#D8D8DF",300:"#B9B9C6",400:"#8F8FA3",500:"#73738C",600:"#5A5A72",700:"#434356",800:"#25252D",900:"#131318"},blue:{50:"#F4FAFF",100:"#DDF1FF",200:"#ADDBFF",300:"#6FB6FF",400:"#3990FF",500:"#096BDE",600:"#054DA7",700:"#02367D",800:"#072859",900:"#00153C"},yellow:{50:"#FFF8C5",100:"#FAE17D",200:"#EAC54F",300:"#D4A72C",400:"#BF8700",500:"#9A6700",600:"#7D4E00",700:"#633C01",800:"#4D2D00",900:"#3B2300"},red:{50:"#FFF8F6",100:"#FFE9E8",200:"#FFC7C5",300:"#FF9192",400:"#FA5255",500:"#D3232F",600:"#A10E25",700:"#77061B",800:"#580013",900:"#39000D"},green:{50:"#F3FEF5",100:"#D7F5DD",200:"#77EC95",300:"#4CC76E",400:"#2CA24D",500:"#1A7D36",600:"#0F5D26",700:"#034318",800:"#002F0F",900:"#001D09"},purple:{50:"#FDF7FF",100:"#F4EAFF",200:"#E1CBFF",300:"#C69EFF",400:"#A374F9",500:"#814DDE",600:"#5F35AE",700:"#452382",800:"#301761",900:"#1D0A42"}}},78653:function(e,t,r){"use strict";r.d(t,{VT:function(){return s},do:function(){return c}});var n=r(67294),o=r(38629),i=r(1812),a=r(85893);let l=n.createContext(void 0),s=e=>{let t=n.useContext(l);return{getColor:(r,n)=>t&&e&&t.includes(e)?r||"context":r||n}};function c({children:e,variant:t}){var r;let n=(0,o.F)();return(0,a.jsx)(l.Provider,{value:t?(null!=(r=n.colorInversionConfig)?r:i.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=l},56385:function(e,t,r){"use strict";r.d(t,{lL:function(){return S},tv:function(){return E}});var n=r(59766),o=r(87462),i=r(63366),a=r(71387),l=r(67294),s=r(70917),c=r(85893);function u(e){let{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,c.jsx)(s.xB,{styles:n})}var f=r(56760),d=r(71927);let p="mode",h="color-scheme",g="data-color-scheme";function m(e){if("undefined"!=typeof window&&"system"===e){let e=window.matchMedia("(prefers-color-scheme: dark)");return e.matches?"dark":"light"}}function v(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function y(e,t){let r;if("undefined"!=typeof window){try{(r=localStorage.getItem(e)||void 0)||localStorage.setItem(e,t)}catch(e){}return r||t}}let b=["colorSchemes","components","generateCssVars","cssVarPrefix"];var x=r(1812),w=r(13951),C=r(2548);let{CssVarsProvider:S,useColorScheme:E,getInitColorSchemeScript:k}=function(e){let{themeId:t,theme:r={},attribute:s=g,modeStorageKey:x=p,colorSchemeStorageKey:w=h,defaultMode:C="light",defaultColorScheme:S,disableTransitionOnChange:E=!1,resolveTheme:k,excludeVariablesFromRoot:O}=e;r.colorSchemes&&("string"!=typeof S||r.colorSchemes[S])&&("object"!=typeof S||r.colorSchemes[null==S?void 0:S.light])&&("object"!=typeof S||r.colorSchemes[null==S?void 0:S.dark])||console.error(`MUI: \`${S}\` does not exist in \`theme.colorSchemes\`.`);let Z=l.createContext(void 0),$="string"==typeof S?S:S.light,P="string"==typeof S?S:S.dark;return{CssVarsProvider:function({children:e,theme:a=r,modeStorageKey:g=x,colorSchemeStorageKey:$=w,attribute:P=s,defaultMode:j=C,defaultColorScheme:A=S,disableTransitionOnChange:R=E,storageWindow:T="undefined"==typeof window?void 0:window,documentNode:F="undefined"==typeof document?void 0:document,colorSchemeNode:I="undefined"==typeof document?void 0:document.documentElement,colorSchemeSelector:L=":root",disableNestedContext:_=!1,disableStyleSheetGeneration:N=!1}){let B=l.useRef(!1),M=(0,f.Z)(),D=l.useContext(Z),z=!!D&&!_,H=a[t],U=H||a,{colorSchemes:W={},components:V={},generateCssVars:q=()=>({vars:{},css:{}}),cssVarPrefix:K}=U,G=(0,i.Z)(U,b),J=Object.keys(W),X="string"==typeof A?A:A.light,Y="string"==typeof A?A:A.dark,{mode:Q,setMode:ee,systemMode:et,lightColorScheme:er,darkColorScheme:en,colorScheme:eo,setColorScheme:ei}=function(e){let{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:i=[],modeStorageKey:a=p,colorSchemeStorageKey:s=h,storageWindow:c="undefined"==typeof window?void 0:window}=e,u=i.join(","),[f,d]=l.useState(()=>{let e=y(a,t),o=y(`${s}-light`,r),i=y(`${s}-dark`,n);return{mode:e,systemMode:m(e),lightColorScheme:o,darkColorScheme:i}}),g=v(f,e=>"light"===e?f.lightColorScheme:"dark"===e?f.darkColorScheme:void 0),b=l.useCallback(e=>{d(r=>{if(e===r.mode)return r;let n=e||t;try{localStorage.setItem(a,n)}catch(e){}return(0,o.Z)({},r,{mode:n,systemMode:m(n)})})},[a,t]),x=l.useCallback(e=>{e?"string"==typeof e?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):d(t=>{let r=(0,o.Z)({},t);return v(t,t=>{try{localStorage.setItem(`${s}-${t}`,e)}catch(e){}"light"===t&&(r.lightColorScheme=e),"dark"===t&&(r.darkColorScheme=e)}),r}):d(t=>{let i=(0,o.Z)({},t),a=null===e.light?r:e.light,l=null===e.dark?n:e.dark;if(a){if(u.includes(a)){i.lightColorScheme=a;try{localStorage.setItem(`${s}-light`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)}if(l){if(u.includes(l)){i.darkColorScheme=l;try{localStorage.setItem(`${s}-dark`,l)}catch(e){}}else console.error(`\`${l}\` does not exist in \`theme.colorSchemes\`.`)}return i}):d(e=>{try{localStorage.setItem(`${s}-light`,r),localStorage.setItem(`${s}-dark`,n)}catch(e){}return(0,o.Z)({},e,{lightColorScheme:r,darkColorScheme:n})})},[u,s,r,n]),w=l.useCallback(e=>{"system"===f.mode&&d(t=>(0,o.Z)({},t,{systemMode:null!=e&&e.matches?"dark":"light"}))},[f.mode]),C=l.useRef(w);return C.current=w,l.useEffect(()=>{let e=(...e)=>C.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>t.removeListener(e)},[]),l.useEffect(()=>{let e=e=>{let r=e.newValue;"string"==typeof e.key&&e.key.startsWith(s)&&(!r||u.match(r))&&(e.key.endsWith("light")&&x({light:r}),e.key.endsWith("dark")&&x({dark:r})),e.key===a&&(!r||["light","dark","system"].includes(r))&&b(r||t)};if(c)return c.addEventListener("storage",e),()=>c.removeEventListener("storage",e)},[x,b,a,s,u,t,c]),(0,o.Z)({},f,{colorScheme:g,setMode:b,setColorScheme:x})}({supportedColorSchemes:J,defaultLightColorScheme:X,defaultDarkColorScheme:Y,modeStorageKey:g,colorSchemeStorageKey:$,defaultMode:j,storageWindow:T}),ea=Q,el=eo;z&&(ea=D.mode,el=D.colorScheme);let es=ea||("system"===j?C:j),ec=el||("dark"===es?Y:X),{css:eu,vars:ef}=q(),ed=(0,o.Z)({},G,{components:V,colorSchemes:W,cssVarPrefix:K,vars:ef,getColorSchemeSelector:e=>`[${P}="${e}"] &`}),ep={},eh={};Object.entries(W).forEach(([e,t])=>{let{css:r,vars:i}=q(e);ed.vars=(0,n.Z)(ed.vars,i),e===ec&&(Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?ed[e]=(0,o.Z)({},ed[e],t[e]):ed[e]=t[e]}),ed.palette&&(ed.palette.colorScheme=e));let a="string"==typeof A?A:"dark"===j?A.dark:A.light;if(e===a){if(O){let t={};O(K).forEach(e=>{t[e]=r[e],delete r[e]}),ep[`[${P}="${e}"]`]=t}ep[`${L}, [${P}="${e}"]`]=r}else eh[`${":root"===L?"":L}[${P}="${e}"]`]=r}),ed.vars=(0,n.Z)(ed.vars,ef),l.useEffect(()=>{el&&I&&I.setAttribute(P,el)},[el,P,I]),l.useEffect(()=>{let e;if(R&&B.current&&F){let t=F.createElement("style");t.appendChild(F.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),F.head.appendChild(t),window.getComputedStyle(F.body),e=setTimeout(()=>{F.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[el,R,F]),l.useEffect(()=>(B.current=!0,()=>{B.current=!1}),[]);let eg=l.useMemo(()=>({mode:ea,systemMode:et,setMode:ee,lightColorScheme:er,darkColorScheme:en,colorScheme:el,setColorScheme:ei,allColorSchemes:J}),[J,el,en,er,ea,ei,ee,et]),em=!0;(N||z&&(null==M?void 0:M.cssVarPrefix)===K)&&(em=!1);let ev=(0,c.jsxs)(l.Fragment,{children:[em&&(0,c.jsxs)(l.Fragment,{children:[(0,c.jsx)(u,{styles:{[L]:eu}}),(0,c.jsx)(u,{styles:ep}),(0,c.jsx)(u,{styles:eh})]}),(0,c.jsx)(d.Z,{themeId:H?t:void 0,theme:k?k(ed):ed,children:e})]});return z?ev:(0,c.jsx)(Z.Provider,{value:eg,children:ev})},useColorScheme:()=>{let e=l.useContext(Z);if(!e)throw Error((0,a.Z)(19));return e},getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=p,colorSchemeStorageKey:i=h,attribute:a=g,colorSchemeNode:l="document.documentElement"}=e||{};return(0,c.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function() { try { var mode = localStorage.getItem('${o}') || '${t}'; var cssColorScheme = mode; var colorScheme = ''; @@ -25,9 +25,9 @@ if (colorScheme) { ${l}.setAttribute('${a}', colorScheme); } - } catch (e) {} })();`}},"mui-color-scheme-init")})((0,o.Z)({attribute:s,colorSchemeStorageKey:w,defaultMode:C,defaultLightColorScheme:$,defaultDarkColorScheme:P,modeStorageKey:x},e))}}({themeId:C.Z,theme:x.Z,attribute:"data-joy-color-scheme",modeStorageKey:"joy-mode",colorSchemeStorageKey:"joy-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t=e.colorInversion;return e.colorInversion=(0,n.Z)({soft:(0,w.pP)(e),solid:(0,w.Lo)(e)},"function"==typeof t?t(e):t,{clone:!1}),e}})},38629:function(e,t,r){"use strict";r.d(t,{F:function(){return c},Z:function(){return u}}),r(67294);var n=r(96682),o=r(71927),i=r(1812),a=r(59077),l=r(2548),s=r(85893);let c=()=>{let e=(0,n.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let r=i.Z;return t&&(r=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:r,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},1812:function(e,t,r){"use strict";var n=r(59077);let o=(0,n.Z)();t.Z=o},59077:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});var n=r(87462),o=r(63366),i=r(59766),a=r(50159),l=r(41796),s=r(41512),c=r(98373);let u=(e,t,r,n=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},f=(e,t,r)=>{!function e(n,o=[],i=[]){Object.entries(n).forEach(([n,a])=>{r&&(!r||r([...o,n]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,n],Array.isArray(a)?[...i,n]:i):t([...o,n],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let r=e[e.length-1];return r.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`;Object.assign(o,{[n]:d(e,t)}),u(i,e,`var(${n})`,l),u(a,e,`var(${n}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],g=["light"];var m=function(e,t){let{colorSchemes:r={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=r,m=(0,o.Z)(r,g);if(Object.entries(m||{}).forEach(([e,r])=>{let{vars:n,css:o,varsWithDefaults:a}=p(r,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:n}}),d){let{css:e,vars:r,varsWithDefaults:n}=p(d,t);u=(0,i.Z)(u,n),f.light={css:e,vars:r}}return{vars:u,generateCssVars:e=>e?{css:(0,n.Z)({},f[e].css),vars:f[e].vars}:{css:(0,n.Z)({},s),vars:l}}},v=r(86523),y=r(44920);let b=(0,n.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=r(9818);function w(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var C=r(26821),S=r(13951);let E=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],k=["colorSchemes"],O=(e="joy")=>(0,a.Z)(e);function Z(e){var t,r,a,u,f,d,p,h,g,y,Z,$,P,j,A,R,T,F,I,L,_,N,B,M,D,z,H,W,U,V,q,K,G,J,X,Y,Q,ee,et,er,en,eo,ei,ea,el,es,ec,eu,ef,ed,ep,eh,eg,em,ev,ey;let eb=e||{},{cssVarPrefix:ex="joy",breakpoints:ew,spacing:eC,components:eS,variants:eE,colorInversion:ek,shouldSkipGeneratingVar:eO=w}=eb,eZ=(0,o.Z)(eb,E),e$=O(ex),eP={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,info:x.Z.purple,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FFF",black:"#09090D"}},ej=e=>{var t;let r=e.split("-"),n=r[1],o=r[2];return e$(e,null==(t=eP[n])?void 0:t[o])},eA=e=>({plainColor:ej(`palette-${e}-600`),plainHoverBg:ej(`palette-${e}-100`),plainActiveBg:ej(`palette-${e}-200`),plainDisabledColor:ej(`palette-${e}-200`),outlinedColor:ej(`palette-${e}-500`),outlinedBorder:ej(`palette-${e}-200`),outlinedHoverBg:ej(`palette-${e}-100`),outlinedHoverBorder:ej(`palette-${e}-300`),outlinedActiveBg:ej(`palette-${e}-200`),outlinedDisabledColor:ej(`palette-${e}-100`),outlinedDisabledBorder:ej(`palette-${e}-100`),softColor:ej(`palette-${e}-600`),softBg:ej(`palette-${e}-100`),softHoverBg:ej(`palette-${e}-200`),softActiveBg:ej(`palette-${e}-300`),softDisabledColor:ej(`palette-${e}-300`),softDisabledBg:ej(`palette-${e}-50`),solidColor:"#fff",solidBg:ej(`palette-${e}-500`),solidHoverBg:ej(`palette-${e}-600`),solidActiveBg:ej(`palette-${e}-700`),solidDisabledColor:"#fff",solidDisabledBg:ej(`palette-${e}-200`)}),eR=e=>({plainColor:ej(`palette-${e}-300`),plainHoverBg:ej(`palette-${e}-800`),plainActiveBg:ej(`palette-${e}-700`),plainDisabledColor:ej(`palette-${e}-800`),outlinedColor:ej(`palette-${e}-200`),outlinedBorder:ej(`palette-${e}-700`),outlinedHoverBg:ej(`palette-${e}-800`),outlinedHoverBorder:ej(`palette-${e}-600`),outlinedActiveBg:ej(`palette-${e}-900`),outlinedDisabledColor:ej(`palette-${e}-800`),outlinedDisabledBorder:ej(`palette-${e}-800`),softColor:ej(`palette-${e}-200`),softBg:ej(`palette-${e}-900`),softHoverBg:ej(`palette-${e}-800`),softActiveBg:ej(`palette-${e}-700`),softDisabledColor:ej(`palette-${e}-800`),softDisabledBg:ej(`palette-${e}-900`),solidColor:"#fff",solidBg:ej(`palette-${e}-600`),solidHoverBg:ej(`palette-${e}-700`),solidActiveBg:ej(`palette-${e}-800`),solidDisabledColor:ej(`palette-${e}-700`),solidDisabledBg:ej(`palette-${e}-900`)}),eT={palette:{mode:"light",primary:(0,n.Z)({},eP.primary,eA("primary")),neutral:(0,n.Z)({},eP.neutral,{plainColor:ej("palette-neutral-800"),plainHoverColor:ej("palette-neutral-900"),plainHoverBg:ej("palette-neutral-100"),plainActiveBg:ej("palette-neutral-200"),plainDisabledColor:ej("palette-neutral-300"),outlinedColor:ej("palette-neutral-800"),outlinedBorder:ej("palette-neutral-200"),outlinedHoverColor:ej("palette-neutral-900"),outlinedHoverBg:ej("palette-neutral-100"),outlinedHoverBorder:ej("palette-neutral-300"),outlinedActiveBg:ej("palette-neutral-200"),outlinedDisabledColor:ej("palette-neutral-300"),outlinedDisabledBorder:ej("palette-neutral-100"),softColor:ej("palette-neutral-800"),softBg:ej("palette-neutral-100"),softHoverColor:ej("palette-neutral-900"),softHoverBg:ej("palette-neutral-200"),softActiveBg:ej("palette-neutral-300"),softDisabledColor:ej("palette-neutral-300"),softDisabledBg:ej("palette-neutral-50"),solidColor:ej("palette-common-white"),solidBg:ej("palette-neutral-600"),solidHoverBg:ej("palette-neutral-700"),solidActiveBg:ej("palette-neutral-800"),solidDisabledColor:ej("palette-neutral-300"),solidDisabledBg:ej("palette-neutral-50")}),danger:(0,n.Z)({},eP.danger,eA("danger")),info:(0,n.Z)({},eP.info,eA("info")),success:(0,n.Z)({},eP.success,eA("success")),warning:(0,n.Z)({},eP.warning,eA("warning"),{solidColor:ej("palette-warning-800"),solidBg:ej("palette-warning-200"),solidHoverBg:ej("palette-warning-300"),solidActiveBg:ej("palette-warning-400"),solidDisabledColor:ej("palette-warning-200"),solidDisabledBg:ej("palette-warning-50"),softColor:ej("palette-warning-800"),softBg:ej("palette-warning-50"),softHoverBg:ej("palette-warning-100"),softActiveBg:ej("palette-warning-200"),softDisabledColor:ej("palette-warning-200"),softDisabledBg:ej("palette-warning-50"),outlinedColor:ej("palette-warning-800"),outlinedHoverBg:ej("palette-warning-50"),plainColor:ej("palette-warning-800"),plainHoverBg:ej("palette-warning-50")}),common:{white:"#FFF",black:"#09090D"},text:{primary:ej("palette-neutral-800"),secondary:ej("palette-neutral-600"),tertiary:ej("palette-neutral-500")},background:{body:ej("palette-common-white"),surface:ej("palette-common-white"),popup:ej("palette-common-white"),level1:ej("palette-neutral-50"),level2:ej("palette-neutral-100"),level3:ej("palette-neutral-200"),tooltip:ej("palette-neutral-800"),backdrop:"rgba(255 255 255 / 0.5)"},divider:`rgba(${e$("palette-neutral-mainChannel",(0,l.n8)(eP.neutral[500]))} / 0.28)`,focusVisible:ej("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"187 187 187"},eF={palette:{mode:"dark",primary:(0,n.Z)({},eP.primary,eR("primary")),neutral:(0,n.Z)({},eP.neutral,{plainColor:ej("palette-neutral-200"),plainHoverColor:ej("palette-neutral-50"),plainHoverBg:ej("palette-neutral-800"),plainActiveBg:ej("palette-neutral-700"),plainDisabledColor:ej("palette-neutral-700"),outlinedColor:ej("palette-neutral-200"),outlinedBorder:ej("palette-neutral-800"),outlinedHoverColor:ej("palette-neutral-50"),outlinedHoverBg:ej("palette-neutral-800"),outlinedHoverBorder:ej("palette-neutral-700"),outlinedActiveBg:ej("palette-neutral-800"),outlinedDisabledColor:ej("palette-neutral-800"),outlinedDisabledBorder:ej("palette-neutral-800"),softColor:ej("palette-neutral-200"),softBg:ej("palette-neutral-800"),softHoverColor:ej("palette-neutral-50"),softHoverBg:ej("palette-neutral-700"),softActiveBg:ej("palette-neutral-600"),softDisabledColor:ej("palette-neutral-700"),softDisabledBg:ej("palette-neutral-900"),solidColor:ej("palette-common-white"),solidBg:ej("palette-neutral-600"),solidHoverBg:ej("palette-neutral-700"),solidActiveBg:ej("palette-neutral-800"),solidDisabledColor:ej("palette-neutral-700"),solidDisabledBg:ej("palette-neutral-900")}),danger:(0,n.Z)({},eP.danger,eR("danger")),info:(0,n.Z)({},eP.info,eR("info")),success:(0,n.Z)({},eP.success,eR("success"),{solidColor:"#fff",solidBg:ej("palette-success-600"),solidHoverBg:ej("palette-success-700"),solidActiveBg:ej("palette-success-800")}),warning:(0,n.Z)({},eP.warning,eR("warning"),{solidColor:ej("palette-common-black"),solidBg:ej("palette-warning-300"),solidHoverBg:ej("palette-warning-400"),solidActiveBg:ej("palette-warning-500")}),common:{white:"#FFF",black:"#09090D"},text:{primary:ej("palette-neutral-100"),secondary:ej("palette-neutral-300"),tertiary:ej("palette-neutral-400")},background:{body:ej("palette-neutral-900"),surface:ej("palette-common-black"),popup:ej("palette-neutral-900"),level1:ej("palette-neutral-800"),level2:ej("palette-neutral-700"),level3:ej("palette-neutral-600"),tooltip:ej("palette-neutral-600"),backdrop:`rgba(${e$("palette-neutral-darkChannel",(0,l.n8)(eP.neutral[800]))} / 0.5)`},divider:`rgba(${e$("palette-neutral-mainChannel",(0,l.n8)(eP.neutral[500]))} / 0.24)`,focusVisible:ej("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0"},eI='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',eL=(0,n.Z)({body:`"Public Sans", ${e$(`fontFamily-fallback, ${eI}`)}`,display:`"Public Sans", ${e$(`fontFamily-fallback, ${eI}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:eI},eZ.fontFamily),e_=(0,n.Z)({xs:200,sm:300,md:500,lg:600,xl:700,xl2:800,xl3:900},eZ.fontWeight),eN=(0,n.Z)({xs3:"0.5rem",xs2:"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem"},eZ.fontSize),eB=(0,n.Z)({sm:1.25,md:1.5,lg:1.7},eZ.lineHeight),eM=(0,n.Z)({sm:"-0.01em",md:"0.083em",lg:"0.125em"},eZ.letterSpacing),eD={colorSchemes:{light:eT,dark:eF},fontSize:eN,fontFamily:eL,fontWeight:e_,focus:{thickness:"2px",selector:`&.${(0,C.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${e$("focus-thickness",null!=(t=null==(r=eZ.focus)?void 0:r.thickness)?t:"2px")})`,outline:`${e$("focus-thickness",null!=(a=null==(u=eZ.focus)?void 0:u.thickness)?a:"2px")} solid ${e$("palette-focusVisible",eP.primary[500])}`}},lineHeight:eB,letterSpacing:eM,radius:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},shadow:{xs:`${e$("shadowRing",null!=(f=null==(d=eZ.colorSchemes)||null==(d=d.light)?void 0:d.shadowRing)?f:eT.shadowRing)}, 0 1px 2px 0 rgba(${e$("shadowChannel",null!=(p=null==(h=eZ.colorSchemes)||null==(h=h.light)?void 0:h.shadowChannel)?p:eT.shadowChannel)} / 0.12)`,sm:`${e$("shadowRing",null!=(g=null==(y=eZ.colorSchemes)||null==(y=y.light)?void 0:y.shadowRing)?g:eT.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(Z=null==($=eZ.colorSchemes)||null==($=$.light)?void 0:$.shadowChannel)?Z:eT.shadowChannel)} / 0.11), 0.5px 1.3px 1.8px -0.6px rgba(${e$("shadowChannel",null!=(P=null==(j=eZ.colorSchemes)||null==(j=j.light)?void 0:j.shadowChannel)?P:eT.shadowChannel)} / 0.18), 1.1px 2.7px 3.8px -1.2px rgba(${e$("shadowChannel",null!=(A=null==(R=eZ.colorSchemes)||null==(R=R.light)?void 0:R.shadowChannel)?A:eT.shadowChannel)} / 0.26)`,md:`${e$("shadowRing",null!=(T=null==(F=eZ.colorSchemes)||null==(F=F.light)?void 0:F.shadowRing)?T:eT.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(I=null==(L=eZ.colorSchemes)||null==(L=L.light)?void 0:L.shadowChannel)?I:eT.shadowChannel)} / 0.12), 1.1px 2.8px 3.9px -0.4px rgba(${e$("shadowChannel",null!=(_=null==(N=eZ.colorSchemes)||null==(N=N.light)?void 0:N.shadowChannel)?_:eT.shadowChannel)} / 0.17), 2.4px 6.1px 8.6px -0.8px rgba(${e$("shadowChannel",null!=(B=null==(M=eZ.colorSchemes)||null==(M=M.light)?void 0:M.shadowChannel)?B:eT.shadowChannel)} / 0.23), 5.3px 13.3px 18.8px -1.2px rgba(${e$("shadowChannel",null!=(D=null==(z=eZ.colorSchemes)||null==(z=z.light)?void 0:z.shadowChannel)?D:eT.shadowChannel)} / 0.29)`,lg:`${e$("shadowRing",null!=(H=null==(W=eZ.colorSchemes)||null==(W=W.light)?void 0:W.shadowRing)?H:eT.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(U=null==(V=eZ.colorSchemes)||null==(V=V.light)?void 0:V.shadowChannel)?U:eT.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e$("shadowChannel",null!=(q=null==(K=eZ.colorSchemes)||null==(K=K.light)?void 0:K.shadowChannel)?q:eT.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e$("shadowChannel",null!=(G=null==(J=eZ.colorSchemes)||null==(J=J.light)?void 0:J.shadowChannel)?G:eT.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e$("shadowChannel",null!=(X=null==(Y=eZ.colorSchemes)||null==(Y=Y.light)?void 0:Y.shadowChannel)?X:eT.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e$("shadowChannel",null!=(Q=null==(ee=eZ.colorSchemes)||null==(ee=ee.light)?void 0:ee.shadowChannel)?Q:eT.shadowChannel)} / 0.21)`,xl:`${e$("shadowRing",null!=(et=null==(er=eZ.colorSchemes)||null==(er=er.light)?void 0:er.shadowRing)?et:eT.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(en=null==(eo=eZ.colorSchemes)||null==(eo=eo.light)?void 0:eo.shadowChannel)?en:eT.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e$("shadowChannel",null!=(ei=null==(ea=eZ.colorSchemes)||null==(ea=ea.light)?void 0:ea.shadowChannel)?ei:eT.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e$("shadowChannel",null!=(el=null==(es=eZ.colorSchemes)||null==(es=es.light)?void 0:es.shadowChannel)?el:eT.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e$("shadowChannel",null!=(ec=null==(eu=eZ.colorSchemes)||null==(eu=eu.light)?void 0:eu.shadowChannel)?ec:eT.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e$("shadowChannel",null!=(ef=null==(ed=eZ.colorSchemes)||null==(ed=ed.light)?void 0:ed.shadowChannel)?ef:eT.shadowChannel)} / 0.21), 10.2px 25.5px 36px -0.9px rgba(${e$("shadowChannel",null!=(ep=null==(eh=eZ.colorSchemes)||null==(eh=eh.light)?void 0:eh.shadowChannel)?ep:eT.shadowChannel)} / 0.24), 14.8px 36.8px 52.1px -1.1px rgba(${e$("shadowChannel",null!=(eg=null==(em=eZ.colorSchemes)||null==(em=em.light)?void 0:em.shadowChannel)?eg:eT.shadowChannel)} / 0.27), 21px 52.3px 74px -1.2px rgba(${e$("shadowChannel",null!=(ev=null==(ey=eZ.colorSchemes)||null==(ey=ey.light)?void 0:ey.shadowChannel)?ev:eT.shadowChannel)} / 0.29)`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{display1:{fontFamily:e$(`fontFamily-display, ${eL.display}`),fontWeight:e$(`fontWeight-xl, ${e_.xl}`),fontSize:e$(`fontSize-xl7, ${eN.xl7}`),lineHeight:e$(`lineHeight-sm, ${eB.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eM.sm}`),color:e$("palette-text-primary",eT.palette.text.primary)},display2:{fontFamily:e$(`fontFamily-display, ${eL.display}`),fontWeight:e$(`fontWeight-xl, ${e_.xl}`),fontSize:e$(`fontSize-xl6, ${eN.xl6}`),lineHeight:e$(`lineHeight-sm, ${eB.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eM.sm}`),color:e$("palette-text-primary",eT.palette.text.primary)},h1:{fontFamily:e$(`fontFamily-display, ${eL.display}`),fontWeight:e$(`fontWeight-lg, ${e_.lg}`),fontSize:e$(`fontSize-xl5, ${eN.xl5}`),lineHeight:e$(`lineHeight-sm, ${eB.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eM.sm}`),color:e$("palette-text-primary",eT.palette.text.primary)},h2:{fontFamily:e$(`fontFamily-display, ${eL.display}`),fontWeight:e$(`fontWeight-lg, ${e_.lg}`),fontSize:e$(`fontSize-xl4, ${eN.xl4}`),lineHeight:e$(`lineHeight-sm, ${eB.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eM.sm}`),color:e$("palette-text-primary",eT.palette.text.primary)},h3:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontWeight:e$(`fontWeight-md, ${e_.md}`),fontSize:e$(`fontSize-xl3, ${eN.xl3}`),lineHeight:e$(`lineHeight-sm, ${eB.sm}`),color:e$("palette-text-primary",eT.palette.text.primary)},h4:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontWeight:e$(`fontWeight-md, ${e_.md}`),fontSize:e$(`fontSize-xl2, ${eN.xl2}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-primary",eT.palette.text.primary)},h5:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontWeight:e$(`fontWeight-md, ${e_.md}`),fontSize:e$(`fontSize-xl, ${eN.xl}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-primary",eT.palette.text.primary)},h6:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontWeight:e$(`fontWeight-md, ${e_.md}`),fontSize:e$(`fontSize-lg, ${eN.lg}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-primary",eT.palette.text.primary)},body1:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontSize:e$(`fontSize-md, ${eN.md}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-primary",eT.palette.text.primary)},body2:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontSize:e$(`fontSize-sm, ${eN.sm}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-secondary",eT.palette.text.secondary)},body3:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontSize:e$(`fontSize-xs, ${eN.xs}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-tertiary",eT.palette.text.tertiary)},body4:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontSize:e$(`fontSize-xs2, ${eN.xs2}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-tertiary",eT.palette.text.tertiary)},body5:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontSize:e$(`fontSize-xs3, ${eN.xs3}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-tertiary",eT.palette.text.tertiary)}}},ez=eZ?(0,i.Z)(eD,eZ):eD,{colorSchemes:eH}=ez,eW=(0,o.Z)(ez,k),eU=(0,n.Z)({colorSchemes:eH},eW,{breakpoints:(0,s.Z)(null!=ew?ew:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl"},styleOverrides:{root:({ownerState:e,theme:t})=>{var r;let o=e.instanceFontSize;return(0,n.Z)({color:"var(--Icon-color)",margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(r=t.vars.palette[e.color])?void 0:r.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary},o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},eS),cssVarPrefix:ex,getCssVar:e$,spacing:(0,c.Z)(eC),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(eU.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(r=>{let n={main:"500",light:"200",dark:"800"};"dark"===e&&(n.main=400),!t[r].mainChannel&&t[r][n.main]&&(t[r].mainChannel=(0,l.n8)(t[r][n.main])),!t[r].lightChannel&&t[r][n.light]&&(t[r].lightChannel=(0,l.n8)(t[r][n.light])),!t[r].darkChannel&&t[r][n.dark]&&(t[r].darkChannel=(0,l.n8)(t[r][n.dark]))})}(e,t.palette)});let{vars:eV,generateCssVars:eq}=m((0,n.Z)({colorSchemes:eH},eW),{prefix:ex,shouldSkipGeneratingVar:eO});eU.vars=eV,eU.generateCssVars=eq,eU.unstable_sxConfig=(0,n.Z)({},b,null==e?void 0:e.unstable_sxConfig),eU.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},eU.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eK={getCssVar:e$,palette:eU.colorSchemes.light.palette};return eU.variants=(0,i.Z)({plain:(0,S.Zm)("plain",eK),plainHover:(0,S.Zm)("plainHover",eK),plainActive:(0,S.Zm)("plainActive",eK),plainDisabled:(0,S.Zm)("plainDisabled",eK),outlined:(0,S.Zm)("outlined",eK),outlinedHover:(0,S.Zm)("outlinedHover",eK),outlinedActive:(0,S.Zm)("outlinedActive",eK),outlinedDisabled:(0,S.Zm)("outlinedDisabled",eK),soft:(0,S.Zm)("soft",eK),softHover:(0,S.Zm)("softHover",eK),softActive:(0,S.Zm)("softActive",eK),softDisabled:(0,S.Zm)("softDisabled",eK),solid:(0,S.Zm)("solid",eK),solidHover:(0,S.Zm)("solidHover",eK),solidActive:(0,S.Zm)("solidActive",eK),solidDisabled:(0,S.Zm)("solidDisabled",eK)},eE),eU.palette=(0,n.Z)({},eU.colorSchemes.light.palette,{colorScheme:"light"}),eU.shouldSkipGeneratingVar=eO,eU.colorInversion="function"==typeof ek?ek:(0,i.Z)({soft:(0,S.pP)(eU,!0),solid:(0,S.Lo)(eU,!0)},ek||{},{clone:!1}),eU}},2548:function(e,t){"use strict";t.Z="$$joy"},74312:function(e,t,r){"use strict";var n=r(70182),o=r(1812),i=r(2548);let a=(0,n.ZP)({defaultTheme:o.Z,themeId:i.Z});t.Z=a},20407:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(39214),i=r(1812),a=r(2548);function l({props:e,name:t}){return(0,o.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},i.Z,{components:{}}),themeId:a.Z})}},13951:function(e,t,r){"use strict";r.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var n=r(87462),o=r(50159);let i=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),a=(e,t,r)=>{t.includes("Color")&&(e.color=r),t.includes("Bg")&&(e.backgroundColor=r),t.includes("Border")&&(e.borderColor=r)},l=(e,t,r)=>{let n={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=r?r(t):o;t.includes("Disabled")&&(n.pointerEvents="none",n.cursor="default"),t.match(/(Hover|Active|Disabled)/)||(n["--variant-borderWidth"]||(n["--variant-borderWidth"]="0px"),t.includes("Border")&&(n["--variant-borderWidth"]="1px",n.border="var(--variant-borderWidth) solid")),a(n,t,e)}}),n},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let r={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(r=(0,n.Z)({},r,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return r.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverColor:"var(--variant-solidHoverColor)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),r},u=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{var n;let o=t.split("-"),i=o[1],a=o[2];return r(t,null==(n=e.palette)||null==(n=n[i])?void 0:n[a])}:r;return Object.entries(e.palette).forEach(t=>{let[r,o]=t;i(o)&&(a[r]={"--Badge-ringColor":l(`palette-${r}-softBg`),[n("--shadowChannel")]:l(`palette-${r}-darkChannel`),[e.getColorSchemeSelector("dark")]:{[n("--palette-focusVisible")]:l(`palette-${r}-300`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${r}-100`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.6)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${r}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${r}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${r}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${r}-100`),"--variant-softBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${r}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${r}-400`),"--variant-solidActiveBg":l(`palette-${r}-400`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[n("--palette-focusVisible")]:l(`palette-${r}-500`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,[n("--palette-text-primary")]:l(`palette-${r}-700`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.68)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${r}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${r}-600`),"--variant-outlinedHoverBorder":l(`palette-${r}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${r}-600`),"--variant-softBg":`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-softHoverColor":l(`palette-${r}-700`),"--variant-softHoverBg":l(`palette-${r}-200`),"--variant-softActiveBg":l(`palette-${r}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${r}-600`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${r}-500`),"--variant-solidActiveBg":l(`palette-${r}-500`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{let n=t.split("-"),o=n[1],i=n[2];return r(t,e.palette[o][i])}:r;return Object.entries(e.palette).forEach(e=>{let[t,r]=e;i(r)&&("warning"===t?a.warning={"--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-700`),[n("--palette-background-body")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.16)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.1)`,[n("--palette-background-popup")]:l(`palette-${t}-100`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${t}-900`),[n("--palette-text-secondary")]:l(`palette-${t}-700`),[n("--palette-text-tertiary")]:l(`palette-${t}-500`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,"--variant-plainColor":l(`palette-${t}-700`),"--variant-plainHoverColor":l(`palette-${t}-800`),"--variant-plainHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-700`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.5)`,"--variant-outlinedHoverColor":l(`palette-${t}-800`),"--variant-outlinedHoverBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.6)`,"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${t}-800`),"--variant-softHoverColor":l(`palette-${t}-900`),"--variant-softBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.28)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${t}-600`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${t}-700`),"--variant-solidActiveBg":l(`palette-${t}-800`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`}:a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-200`),[n("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[n("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[n("--palette-background-popup")]:l(`palette-${t}-700`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l("palette-common-white"),[n("--palette-text-secondary")]:l(`palette-${t}-100`),[n("--palette-text-tertiary")]:l(`palette-${t}-200`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverColor":l(`palette-${t}-700`),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-200`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),a}},30220:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(87462),o=r(63366),i=r(33703),a=r(71276),l=r(24407),s=r(5922),c=r(78653);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],p=["disableColorInversion"];function h(e,t){let{className:r,elementType:h,ownerState:g,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:y}=t,b=(0,o.Z)(t,u),{component:x,slots:w={[e]:void 0},slotProps:C={[e]:void 0}}=m,S=(0,o.Z)(m,f),E=w[e]||h,k=(0,a.Z)(C[e],g),O=(0,l.Z)((0,n.Z)({className:r},b,{externalForwardedProps:"root"===e?S:void 0,externalSlotProps:k})),{props:{component:Z},internalRef:$}=O,P=(0,o.Z)(O.props,d),j=(0,i.Z)($,null==k?void 0:k.ref,t.ref),A=v?v(P):{},{disableColorInversion:R=!1}=A,T=(0,o.Z)(A,p),F=(0,n.Z)({},g,T),{getColor:I}=(0,c.VT)(F.variant);if("root"===e){var L;F.color=null!=(L=P.color)?L:g.color}else R||(F.color=I(P.color,F.color));let _="root"===e?Z||x:Z,N=(0,s.Z)(E,(0,n.Z)({},"root"===e&&!x&&!w[e]&&y,"root"!==e&&!w[e]&&y,P,_&&{as:_},{ref:j}),F);return Object.keys(T).forEach(e=>{delete N[e]}),[E,N]}},14698:function(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:function(){return o},createChainedFunction:function(){return i},createSvgIcon:function(){return ee},debounce:function(){return et},deprecatedPropType:function(){return er},isMuiElement:function(){return en},ownerDocument:function(){return eo},ownerWindow:function(){return ei},requirePropFactory:function(){return ea},setRef:function(){return el},unstable_ClassNameGenerator:function(){return eg},unstable_useEnhancedEffect:function(){return es},unstable_useId:function(){return ec},unsupportedProp:function(){return eu},useControlled:function(){return ef},useEventCallback:function(){return ed},useForkRef:function(){return ep},useIsFocusVisible:function(){return eh}});var n=r(37078),o=r(14142).Z,i=function(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})},a=r(87462),l=r(67294),s=r(63366),c=function(){for(var e,t,r=0,n="";r=r?$.text.primary:Z.text.primary;return t}let m=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=(0,a.Z)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw Error((0,d.Z)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw Error((0,d.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return P(e,"light",o,n),P(e,"dark",i,n),e.contrastText||(e.contrastText=g(e.main)),e},j=(0,p.Z)((0,a.Z)({common:(0,a.Z)({},y),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:h,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:f,name:"success"}),grey:b,contrastThreshold:r,getContrastText:g,augmentColor:m,tonalOffset:n},{dark:$,light:Z}[t]),o);return j}(n),u=(0,h.Z)(e),f=(0,p.Z)(u,{mixins:(t=u.breakpoints,(0,a.Z)({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},r)),palette:c,shadows:F.slice(),typography:function(e,t){let r="function"==typeof t?t(e):t,{fontFamily:n=R,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:f=16,allVariants:d,pxToRem:h}=r,g=(0,s.Z)(r,j),m=o/14,v=h||(e=>`${e/f*m}rem`),y=(e,t,r,o,i)=>(0,a.Z)({fontFamily:n,fontWeight:e,fontSize:v(t),lineHeight:r},n===R?{letterSpacing:`${Math.round(1e5*(o/t))/1e5}em`}:{},i,d),b={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(l,48,1.167,0),h4:y(l,34,1.235,.25),h5:y(l,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(l,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(l,16,1.5,.15),body2:y(l,14,1.43,.15),button:y(c,14,1.75,.4,A),caption:y(l,12,1.66,.4),overline:y(l,12,2.66,1,A),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,p.Z)((0,a.Z)({htmlFontSize:f,pxToRem:v,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:u},b),g,{clone:!1})}(c,i),transitions:function(e){let t=(0,a.Z)({},L,e.easing),r=(0,a.Z)({},_,e.duration);return(0,a.Z)({getAutoHeightDuration:B,create:(e=["all"],n={})=>{let{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return(0,s.Z)(n,I),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:N(o)} ${i} ${"string"==typeof a?a:N(a)}`).join(",")}},e,{easing:t,duration:r})}(o),zIndex:(0,a.Z)({},M)});return(f=[].reduce((e,t)=>(0,p.Z)(e,t),f=(0,p.Z)(f,l))).unstable_sxConfig=(0,a.Z)({},g.Z,null==l?void 0:l.unstable_sxConfig),f.unstable_sx=function(e){return(0,m.Z)({sx:e,theme:this})},f}();var H="$$material",W=r(70182);let U=(0,W.ZP)({themeId:H,defaultTheme:z,rootShouldForwardProp:e=>(0,W.x9)(e)&&"classes"!==e});var V=r(1588),q=r(34867);function K(e){return(0,q.Z)("MuiSvgIcon",e)}(0,V.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var G=r(85893);let J=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],X=e=>{let{color:t,fontSize:r,classes:n}=e,i={root:["root","inherit"!==t&&`color${o(t)}`,`fontSize${o(r)}`]};return(0,u.Z)(i,K,n)},Y=U("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${o(r.color)}`],t[`fontSize${o(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,c,u,f,d,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:({inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"})[t.fontSize],color:null!=(f=null==(d=(e.vars||e).palette)||null==(d=d[t.color])?void 0:d.main)?f:({action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0})[t.color]}}),Q=l.forwardRef(function(e,t){let r=function({props:e,name:t}){return(0,f.Z)({props:e,name:t,defaultTheme:z,themeId:H})}({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:u="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:g,viewBox:m="0 0 24 24"}=r,v=(0,s.Z)(r,J),y=l.isValidElement(n)&&"svg"===n.type,b=(0,a.Z)({},r,{color:i,component:u,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:y}),x={};h||(x.viewBox=m);let w=X(b);return(0,G.jsxs)(Y,(0,a.Z)({as:u,className:c(w.root,o),focusable:"false",color:p,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},x,v,y&&n.props,{ownerState:b,children:[y?n.props.children:n,g?(0,G.jsx)("title",{children:g}):null]}))});function ee(e,t){function r(r,n){return(0,G.jsx)(Q,(0,a.Z)({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Q.muiName,l.memo(l.forwardRef(r))}Q.muiName="SvgIcon";var et=r(39336).Z,er=function(e,t){return()=>null},en=r(18719).Z,eo=r(82690).Z,ei=r(74161).Z,ea=function(e,t){return()=>null},el=r(7960).Z,es=r(73546).Z,ec=r(92996).Z,eu=function(e,t,r,n,o){return null},ef=r(19032).Z,ed=r(59948).Z,ep=r(33703).Z,eh=r(99962).Z;let eg={configure:e=>{n.Z.configure(e)}}},44819:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(null);t.Z=o},56760:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),o=r(44819);function i(){let e=n.useContext(o.Z);return e}},49731:function(e,t,r){"use strict";r.d(t,{ZP:function(){return v},Co:function(){return y}});var n=r(87462),o=r(67294),i=r(45042),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=(0,i.Z)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),s=r(75260),c=r(70444),u=r(50649),f=r(27278),d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:d},h=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,f.L)(function(){return(0,c.My)(t,r,n)}),null},m=(function e(t,r){var i,a,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==r&&(i=r.label,a=r.target);var d=h(t,r,l),m=d||p(f),v=!m("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,w=1;w{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},71927:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(87462),o=r(67294),i=r(56760),a=r(44819);let l="function"==typeof Symbol&&Symbol.for;var s=l?Symbol.for("mui.nested"):"__THEME_NESTED__",c=r(85893),u=function(e){let{children:t,theme:r}=e,l=(0,i.Z)(),u=o.useMemo(()=>{let e=null===l?r:function(e,t){if("function"==typeof t){let r=t(e);return r}return(0,n.Z)({},e,t)}(l,r);return null!=e&&(e[s]=null!==l),e},[r,l]);return(0,c.jsx)(a.Z.Provider,{value:u,children:t})},f=r(75260),d=r(34168);let p={};function h(e,t,r,i=!1){return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof r){let a=r(o),l=e?(0,n.Z)({},t,{[e]:a}):a;return i?()=>l:l}return e?(0,n.Z)({},t,{[e]:r}):(0,n.Z)({},t,r)},[e,t,r,i])}var g=function(e){let{children:t,theme:r,themeId:n}=e,o=(0,d.Z)(p),a=(0,i.Z)()||p,l=h(n,o,r),s=h(n,a,r,!0);return(0,c.jsx)(u,{theme:s,children:(0,c.jsx)(f.T.Provider,{value:l,children:t})})}},95408:function(e,t,r){"use strict";r.d(t,{L7:function(){return s},P$:function(){return u},VO:function(){return o},W8:function(){return l},dt:function(){return c},k9:function(){return a}});var n=r(59766);let o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,r){let n=e.theme||{};if(Array.isArray(t)){let e=n.breakpoints||i;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){let e=n.breakpoints||i;return Object.keys(t).reduce((n,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){let o=e.up(i);n[o]=r(t[i],i)}else n[i]=t[i];return n},{})}let a=r(t);return a}function l(e={}){var t;let r=null==(t=e.keys)?void 0:t.reduce((t,r)=>{let n=e.up(r);return t[n]={},t},{});return r||{}}function s(e,t){return e.reduce((e,t)=>{let r=e[t],n=!r||0===Object.keys(r).length;return n&&delete e[t],e},t)}function c(e,...t){let r=l(e),o=[r,...t].reduce((e,t)=>(0,n.Z)(e,t),{});return s(Object.keys(r),o)}function u({values:e,breakpoints:t,base:r}){let n;let o=r||function(e,t){if("object"!=typeof e)return{};let r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((t,n)=>{n{null!=e[t]&&(r[t]=!0)}),r}(e,t),i=Object.keys(o);return 0===i.length?e:i.reduce((t,r,o)=>(Array.isArray(e)?(t[r]=null!=e[o]?e[o]:e[n],n=o):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[n],n=r):t[r]=e,t),{})}},41796:function(e,t,r){"use strict";r.d(t,{$n:function(){return f},_j:function(){return u},mi:function(){return c},n8:function(){return a}});var n=r(71387);function o(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function i(e){let t;if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),o=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,n.Z)(9,e));let a=e.substring(r+1,e.length-1);if("color"===o){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,n.Z)(10,t))}else a=a.split(",");return{type:o,values:a=a.map(e=>parseFloat(e)),colorSpace:t}}let a=e=>{let t=i(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};function l(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),`${t}(${n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);let{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),s=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){let r=s(e),n=s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return l(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return l(e)}},70182:function(e,t,r){"use strict";r.d(t,{ZP:function(){return x},x9:function(){return m}});var n=r(63366),o=r(87462),i=r(49731),a=r(88647),l=r(14142);let s=["variant"];function c(e){return 0===e.length}function u(e){let{variant:t}=e,r=(0,n.Z)(e,s),o=t||"";return Object.keys(r).sort().forEach(t=>{"color"===t?o+=c(o)?e[t]:(0,l.Z)(e[t]):o+=`${c(o)?t:(0,l.Z)(t)}${(0,l.Z)(e[t].toString())}`}),o}var f=r(86523);let d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],p=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,h=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);let n={};return r.forEach(e=>{let t=u(e.props);n[t]=e.style}),n},g=(e,t,r,n)=>{var o;let{ownerState:i={}}=e,a=[],l=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return l&&l.forEach(r=>{let n=!0;Object.keys(r.props).forEach(t=>{i[t]!==r.props[t]&&e[t]!==r.props[t]&&(n=!1)}),n&&a.push(t[u(r.props)])}),a};function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let v=(0,a.Z)(),y=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:r}){return 0===Object.keys(t).length?e:t[r]||t}function x(e={}){let{themeId:t,defaultTheme:r=v,rootShouldForwardProp:a=m,slotShouldForwardProp:l=m}=e,s=e=>(0,f.Z)((0,o.Z)({},e,{theme:b((0,o.Z)({},e,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(e,c={})=>{var u;let f;(0,i.Co)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:v,slot:x,skipVariantsResolver:w,skipSx:C,overridesResolver:S=(u=y(x))?(e,t)=>t[u]:null}=c,E=(0,n.Z)(c,d),k=void 0!==w?w:x&&"Root"!==x&&"root"!==x||!1,O=C||!1,Z=m;"Root"===x||"root"===x?Z=a:x?Z=l:"string"==typeof e&&e.charCodeAt(0)>96&&(Z=void 0);let $=(0,i.ZP)(e,(0,o.Z)({shouldForwardProp:Z,label:f},E)),P=(n,...i)=>{let a=i?i.map(e=>"function"==typeof e&&e.__emotion_real!==e?n=>e((0,o.Z)({},n,{theme:b((0,o.Z)({},n,{defaultTheme:r,themeId:t}))})):e):[],l=n;v&&S&&a.push(e=>{let n=b((0,o.Z)({},e,{defaultTheme:r,themeId:t})),i=p(v,n);if(i){let t={};return Object.entries(i).forEach(([r,i])=>{t[r]="function"==typeof i?i((0,o.Z)({},e,{theme:n})):i}),S(e,t)}return null}),v&&!k&&a.push(e=>{let n=b((0,o.Z)({},e,{defaultTheme:r,themeId:t}));return g(e,h(v,n),n,v)}),O||a.push(s);let c=a.length-i.length;if(Array.isArray(n)&&c>0){let e=Array(c).fill("");(l=[...n,...e]).raw=[...n.raw,...e]}else"function"==typeof n&&n.__emotion_real!==n&&(l=e=>n((0,o.Z)({},e,{theme:b((0,o.Z)({},e,{defaultTheme:r,themeId:t}))})));let u=$(l,...a);return e.muiName&&(u.muiName=e.muiName),u};return $.withConfig&&(P.withConfig=$.withConfig),P}}},41512:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(63366),o=r(87462);let i=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.Z)({},e,{[t.key]:t.val}),{})};function l(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:l=5}=e,s=(0,n.Z)(e,i),c=a(t),u=Object.keys(c);function f(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function d(e){let n="number"==typeof t[e]?t[e]:e;return`@media (max-width:${n-l/100}${r})`}function p(e,n){let o=u.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:n)-l/100}${r})`}return(0,o.Z)({keys:u,values:c,up:f,down:d,between:p,only:function(e){return u.indexOf(e)+1{let r=0===e.length?[1]:e;return r.map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ")};return r.mui=!0,r}},88647:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(87462),o=r(63366),i=r(59766),a=r(41512),l={borderRadius:4},s=r(98373),c=r(86523),u=r(44920);let f=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){let{breakpoints:r={},palette:d={},spacing:p,shape:h={}}=e,g=(0,o.Z)(e,f),m=(0,a.Z)(r),v=(0,s.Z)(p),y=(0,i.Z)({breakpoints:m,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},d),spacing:v,shape:(0,n.Z)({},l,h)},g);return(y=t.reduce((e,t)=>(0,i.Z)(e,t),y)).unstable_sxConfig=(0,n.Z)({},u.Z,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},y}},50159:function(e,t,r){"use strict";function n(e=""){return(t,...r)=>`var(--${e?`${e}-`:""}${t}${function t(...r){if(!r.length)return"";let n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}(...r)})`}r.d(t,{Z:function(){return n}})},47730:function(e,t,r){"use strict";var n=r(59766);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},98700:function(e,t,r){"use strict";r.d(t,{hB:function(){return h},eI:function(){return p},NA:function(){return g},e6:function(){return v},o3:function(){return y}});var n=r(95408),o=r(54844),i=r(47730);let a={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}let[t,r]=e.split(""),n=a[t],o=l[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,r,n){var i;let a=null!=(i=(0,o.DW)(e,t,!1))?i:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function h(e){return p(e,"spacing",8,"spacing")}function g(e,t){if("string"==typeof t||null==t)return t;let r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function m(e,t){let r=h(e.theme);return Object.keys(e).map(o=>(function(e,t,r,o){if(-1===t.indexOf(r))return null;let i=c(r),a=e[r];return(0,n.k9)(e,a,e=>i.reduce((t,r)=>(t[r]=g(o,e),t),{}))})(e,t,o,r)).reduce(i.Z,{})}function v(e){return m(e,u)}function y(e){return m(e,f)}function b(e){return m(e,d)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=f,b.propTypes={},b.filterProps=d},54844:function(e,t,r){"use strict";r.d(t,{DW:function(){return i},Jq:function(){return a}});var n=r(14142),o=r(95408);function i(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:i(e,r)||n,t&&(o=t(o,n,e)),o}t.ZP=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:l,transform:s}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=e.theme,f=i(u,l)||{};return(0,o.k9)(e,c,e=>{let o=a(f,s,e);return(e===o&&"string"==typeof e&&(o=a(f,s,`${t}${"default"===e?"":(0,n.Z)(e)}`,e)),!1===r)?o:{[r]:o}})};return c.propTypes={},c.filterProps=[t],c}},44920:function(e,t,r){"use strict";r.d(t,{Z:function(){return U}});var n=r(98700),o=r(54844),i=r(47730),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,i.Z)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r},l=r(95408);function s(e){return"number"!=typeof e?e:`${e}px solid`}let c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:s}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:s}),f=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:s}),d=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:s}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:s}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,e=>({borderRadius:(0,n.NA)(t,e)}))}return null};b.propTypes={},b.filterProps=["borderRadius"],a(c,u,f,d,p,h,g,m,v,y,b);let x=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,e=>({gap:(0,n.NA)(t,e)}))}return null};x.propTypes={},x.filterProps=["gap"];let w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,e=>({columnGap:(0,n.NA)(t,e)}))}return null};w.propTypes={},w.filterProps=["columnGap"];let C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,e=>({rowGap:(0,n.NA)(t,e)}))}return null};C.propTypes={},C.filterProps=["rowGap"];let S=(0,o.ZP)({prop:"gridColumn"}),E=(0,o.ZP)({prop:"gridRow"}),k=(0,o.ZP)({prop:"gridAutoFlow"}),O=(0,o.ZP)({prop:"gridAutoColumns"}),Z=(0,o.ZP)({prop:"gridAutoRows"}),$=(0,o.ZP)({prop:"gridTemplateColumns"}),P=(0,o.ZP)({prop:"gridTemplateRows"}),j=(0,o.ZP)({prop:"gridTemplateAreas"}),A=(0,o.ZP)({prop:"gridArea"});function R(e,t){return"grey"===t?t:e}a(x,w,C,S,E,k,O,Z,$,P,j,A);let T=(0,o.ZP)({prop:"color",themeKey:"palette",transform:R}),F=(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:R}),I=(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:R});function L(e){return e<=1&&0!==e?`${100*e}%`:e}a(T,F,I);let _=(0,o.ZP)({prop:"width",transform:L}),N=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.k9)(e,e.maxWidth,t=>{var r,n;let o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||l.VO[t];return o?(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:L(t)}}):null;N.filterProps=["maxWidth"];let B=(0,o.ZP)({prop:"minWidth",transform:L}),M=(0,o.ZP)({prop:"height",transform:L}),D=(0,o.ZP)({prop:"maxHeight",transform:L}),z=(0,o.ZP)({prop:"minHeight",transform:L});(0,o.ZP)({prop:"size",cssProperty:"width",transform:L}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:L});let H=(0,o.ZP)({prop:"boxSizing"});a(_,N,B,M,D,z,H);let W={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:R},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:R},backgroundColor:{themeKey:"palette",transform:R},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:C},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:L},maxWidth:{style:N},minWidth:{transform:L},height:{transform:L},maxHeight:{transform:L},minHeight:{transform:L},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var U=W},39707:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(87462),o=r(63366),i=r(59766),a=r(44920);let l=["sx"],s=e=>{var t,r;let n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function c(e){let t;let{sx:r}=e,a=(0,o.Z)(e,l),{systemProps:c,otherProps:u}=s(a);return t=Array.isArray(r)?[c,...r]:"function"==typeof r?(...e)=>{let t=r(...e);return(0,i.P)(t)?(0,n.Z)({},c,t):c}:(0,n.Z)({},c,r),(0,n.Z)({},u,{sx:t})}},86523:function(e,t,r){"use strict";var n=r(14142),o=r(47730),i=r(54844),a=r(95408),l=r(44920);let s=function(){function e(e,t,r,o){let l={[e]:t,theme:r},s=o[e];if(!s)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:f,style:d}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,i.DW)(r,u)||{};return d?d(l):(0,a.k9)(l,t,t=>{let r=(0,i.Jq)(p,f,t);return(t===r&&"string"==typeof t&&(r=(0,i.Jq)(p,f,`${e}${"default"===t?"":(0,n.Z)(t)}`,t)),!1===c)?r:{[c]:r}})}return function t(r){var n;let{sx:i,theme:s={}}=r||{};if(!i)return null;let c=null!=(n=s.unstable_sxConfig)?n:l.Z;function u(r){let n=r;if("function"==typeof r)n=r(s);else if("object"!=typeof r)return r;if(!n)return null;let i=(0,a.W8)(s.breakpoints),l=Object.keys(i),u=i;return Object.keys(n).forEach(r=>{var i;let l="function"==typeof(i=n[r])?i(s):i;if(null!=l){if("object"==typeof l){if(c[r])u=(0,o.Z)(u,e(r,l,s,c));else{let e=(0,a.k9)({theme:s},l,e=>({[r]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)})(e,l)?u[r]=t({sx:l,theme:s}):u=(0,o.Z)(u,e)}}else u=(0,o.Z)(u,e(r,l,s,c))}}),(0,a.L7)(l,u)}return Array.isArray(i)?i.map(u):u(i)}}();s.filterProps=["sx"],t.Z=s},96682:function(e,t,r){"use strict";var n=r(88647),o=r(34168);let i=(0,n.Z)();t.Z=function(e=i){return(0,o.Z)(e)}},39214:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(87462),o=r(96682);function i({props:e,name:t,defaultTheme:r,themeId:i}){let a=(0,o.Z)(r);i&&(a=a[i]||a);let l=function(e){let{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?function e(t,r){let o=(0,n.Z)({},r);return Object.keys(t).forEach(i=>{if(i.toString().match(/^(components|slots)$/))o[i]=(0,n.Z)({},t[i],o[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){let a=t[i]||{},l=r[i];o[i]={},l&&Object.keys(l)?a&&Object.keys(a)?(o[i]=(0,n.Z)({},l),Object.keys(a).forEach(t=>{o[i][t]=e(a[t],l[t])})):o[i]=l:o[i]=a}else void 0===o[i]&&(o[i]=t[i])}),o}(t.components[r].defaultProps,o):o}({theme:a,name:t,props:e});return l}},34168:function(e,t,r){"use strict";var n=r(67294),o=r(75260);t.Z=function(e=null){let t=n.useContext(o.T);return t&&0!==Object.keys(t).length?t:e}},37078:function(e,t){"use strict";let r;let n=e=>e,o=(r=n,{configure(e){r=e},generate:e=>r(e),reset(){r=n}});t.Z=o},14142:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(71387);function o(e){if("string"!=typeof e)throw Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},94780:function(e,t,r){"use strict";function n(e,t,r){let n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){let o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}r.d(t,{Z:function(){return n}})},39336:function(e,t,r){"use strict";function n(e,t=166){let r;function n(...o){clearTimeout(r),r=setTimeout(()=>{e.apply(this,o)},t)}return n.clear=()=>{clearTimeout(r)},n}r.d(t,{Z:function(){return n}})},59766:function(e,t,r){"use strict";r.d(t,{P:function(){return o},Z:function(){return function e(t,r,i={clone:!0}){let a=i.clone?(0,n.Z)({},t):t;return o(t)&&o(r)&&Object.keys(r).forEach(n=>{"__proto__"!==n&&(o(r[n])&&n in t&&o(t[n])?a[n]=e(t[n],r[n],i):i.clone?a[n]=o(r[n])?function e(t){if(!o(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[n]):r[n]:a[n]=r[n])}),a}}});var n=r(87462);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},71387:function(e,t,r){"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{o[t]=(0,n.Z)(e,t,r)}),o}},18719:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(67294);function o(e,t){return n.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},82690:function(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{Z:function(){return n}})},74161:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(82690);function o(e){let t=(0,n.Z)(e);return t.defaultView||window}},7960:function(e,t,r){"use strict";function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}r.d(t,{Z:function(){return n}})},19032:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(67294);function o({controlled:e,default:t,name:r,state:o="value"}){let{current:i}=n.useRef(void 0!==e),[a,l]=n.useState(t),s=i?e:a,c=n.useCallback(e=>{i||l(e)},[]);return[s,c]}},73546:function(e,t,r){"use strict";var n=r(67294);let o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;t.Z=o},59948:function(e,t,r){"use strict";var n=r(67294),o=r(73546);t.Z=function(e){let t=n.useRef(e);return(0,o.Z)(()=>{t.current=e}),n.useCallback((...e)=>(0,t.current)(...e),[])}},33703:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),o=r(7960);function i(...e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,o.Z)(e,t)})},e)}},92996:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n,o=r(67294);let i=0,a=(n||(n=r.t(o,2)))["useId".toString()];function l(e){if(void 0!==a){let t=a();return null!=e?e:t}return function(e){let[t,r]=o.useState(e),n=e||t;return o.useEffect(()=>{null==t&&r(`mui-${i+=1}`)},[t]),n}(e)}},99962:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return f}});var o=r(67294);let i=!0,a=!1,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function u(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(){let e=o.useCallback(e=>{if(null!=e){var t;(t=e.ownerDocument).addEventListener("keydown",s,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0)}},[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return i||function(e){let{type:t,tagName:r}=e;return"INPUT"===r&&!!l[t]&&!e.readOnly||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(n),n=window.setTimeout(()=>{a=!1},100),t.current=!1,!0)},ref:e}}},54535:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n,o=r(97685),i=r(67294),a=r(73935),l=r(98924);r(80334);var s=r(42550),c=i.createContext(null),u=r(74902),f=r(8410),d=[],p=r(44958);function h(e){var t=e.match(/^(.*)px$/),r=Number(null==t?void 0:t[1]);return Number.isNaN(r)?function(e){if("undefined"==typeof document)return 0;if(void 0===n){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var r=document.createElement("div"),o=r.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",r.appendChild(t),document.body.appendChild(r);var i=t.offsetWidth;r.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=r.clientWidth),document.body.removeChild(r),n=i-a}return n}():r}var g="rc-util-locker-".concat(Date.now()),m=0,v=!1,y=function(e){return!1!==e&&((0,l.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},b=i.forwardRef(function(e,t){var r,n,b,x,w=e.open,C=e.autoLock,S=e.getContainer,E=(e.debug,e.autoDestroy),k=void 0===E||E,O=e.children,Z=i.useState(w),$=(0,o.Z)(Z,2),P=$[0],j=$[1],A=P||w;i.useEffect(function(){(k||w)&&j(w)},[w,k]);var R=i.useState(function(){return y(S)}),T=(0,o.Z)(R,2),F=T[0],I=T[1];i.useEffect(function(){var e=y(S);I(null!=e?e:null)});var L=function(e,t){var r=i.useState(function(){return(0,l.Z)()?document.createElement("div"):null}),n=(0,o.Z)(r,1)[0],a=i.useRef(!1),s=i.useContext(c),p=i.useState(d),h=(0,o.Z)(p,2),g=h[0],m=h[1],v=s||(a.current?void 0:function(e){m(function(t){return[e].concat((0,u.Z)(t))})});function y(){n.parentElement||document.body.appendChild(n),a.current=!0}function b(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),a.current=!1}return(0,f.Z)(function(){return e?s?s(y):y():b(),b},[e]),(0,f.Z)(function(){g.length&&(g.forEach(function(e){return e()}),m(d))},[g]),[n,v]}(A&&!F,0),_=(0,o.Z)(L,2),N=_[0],B=_[1],M=null!=F?F:N;r=!!(C&&w&&(0,l.Z)()&&(M===N||M===document.body)),n=i.useState(function(){return m+=1,"".concat(g,"_").concat(m)}),b=(0,o.Z)(n,1)[0],(0,f.Z)(function(){if(r){var e=function(e){if("undefined"==typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),r=t.width,n=t.height;return{width:h(r),height:h(n)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,p.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),b)}else(0,p.jL)(b);return function(){(0,p.jL)(b)}},[r,b]);var D=null;O&&(0,s.Yr)(O)&&t&&(D=O.ref);var z=(0,s.x1)(D,t);if(!A||!(0,l.Z)()||void 0===F)return null;var H=!1===M||("boolean"==typeof x&&(v=x),v),W=O;return t&&(W=i.cloneElement(O,{ref:z})),i.createElement(c.Provider,{value:B},H?W:(0,a.createPortal)(W,M))})},577:function(e,t,r){"use strict";r.d(t,{Z:function(){return M}});var n,o=r(97582),i=r(67294),a=(n=i.useEffect,function(e,t){var r=(0,i.useRef)(!1);n(function(){return function(){r.current=!1}},[]),n(function(){if(r.current)return e();r.current=!0},t)}),l=function(e,t){var r=t.manual,n=t.ready,l=void 0===n||n,s=t.defaultParams,c=void 0===s?[]:s,u=t.refreshDeps,f=void 0===u?[]:u,d=t.refreshDepsAction,p=(0,i.useRef)(!1);return p.current=!1,a(function(){!r&&l&&(p.current=!0,e.run.apply(e,(0,o.ev)([],(0,o.CR)(c),!1)))},[l]),a(function(){!p.current&&(r||(p.current=!0,d?d():e.refresh()))},(0,o.ev)([],(0,o.CR)(f),!1)),{onBefore:function(){if(!l)return{stopNow:!0}}}};function s(e,t){var r=(0,i.useRef)({deps:t,obj:void 0,initialized:!1}).current;return(!1===r.initialized||!function(e,t){if(e===t)return!0;for(var r=0;r-1&&(i=setTimeout(function(){d.delete(e)},t)),d.set(e,(0,o.pi)((0,o.pi)({},r),{timer:i}))},h=new Map,g=function(e,t){h.set(e,t),t.then(function(t){return h.delete(e),t}).catch(function(){h.delete(e)})},m={},v=function(e,t){m[e]&&m[e].forEach(function(e){return e(t)})},y=function(e,t){return m[e]||(m[e]=[]),m[e].push(t),function(){var r=m[e].indexOf(t);m[e].splice(r,1)}},b=function(e,t){var r=t.cacheKey,n=t.cacheTime,a=void 0===n?3e5:n,l=t.staleTime,c=void 0===l?0:l,u=t.setCache,m=t.getCache,b=(0,i.useRef)(),x=(0,i.useRef)(),w=function(e,t){u?u(t):p(e,a,t),v(e,t.data)},C=function(e,t){return(void 0===t&&(t=[]),m)?m(t):d.get(e)};return(s(function(){if(r){var t=C(r);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===c||new Date().getTime()-t.time<=c)&&(e.state.loading=!1)),b.current=y(r,function(t){e.setState({data:t})})}},[]),f(function(){var e;null===(e=b.current)||void 0===e||e.call(b)}),r)?{onBefore:function(e){var t=C(r,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===c||new Date().getTime()-t.time<=c?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var n=h.get(r);return n&&n!==x.current||(n=e.apply(void 0,(0,o.ev)([],(0,o.CR)(t),!1)),x.current=n,g(r,n)),{servicePromise:n}},onSuccess:function(t,n){var o;r&&(null===(o=b.current)||void 0===o||o.call(b),w(r,{data:t,params:n,time:new Date().getTime()}),b.current=y(r,function(t){e.setState({data:t})}))},onMutate:function(t){var n;r&&(null===(n=b.current)||void 0===n||n.call(b),w(r,{data:t,params:e.state.params,time:new Date().getTime()}),b.current=y(r,function(t){e.setState({data:t})}))}}:{}},x=r(23279),w=r.n(x),C=function(e,t){var r=t.debounceWait,n=t.debounceLeading,a=t.debounceTrailing,l=t.debounceMaxWait,s=(0,i.useRef)(),c=(0,i.useMemo)(function(){var e={};return void 0!==n&&(e.leading=n),void 0!==a&&(e.trailing=a),void 0!==l&&(e.maxWait=l),e},[n,a,l]);return((0,i.useEffect)(function(){if(r){var t=e.runAsync.bind(e);return s.current=w()(function(e){e()},r,c),e.runAsync=function(){for(var e=[],r=0;r-1&&$.splice(e,1)})}return function(){s()}},[r,a]),f(function(){s()}),{}},A=function(e,t){var r=t.retryInterval,n=t.retryCount,o=(0,i.useRef)(),a=(0,i.useRef)(0),l=(0,i.useRef)(!1);return n?{onBefore:function(){l.current||(a.current=0),l.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,-1===n||a.current<=n){var t=null!=r?r:Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){l.current=!0,e.refresh()},t)}else a.current=0},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current)}}:{}},R=r(23493),T=r.n(R),F=function(e,t){var r=t.throttleWait,n=t.throttleLeading,a=t.throttleTrailing,l=(0,i.useRef)(),s={};return(void 0!==n&&(s.leading=n),void 0!==a&&(s.trailing=a),(0,i.useEffect)(function(){if(r){var t=e.runAsync.bind(e);return l.current=T()(function(e){e()},r,s),e.runAsync=function(){for(var e=[],r=0;r{if(m(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;d(t.offsetHeight+8),h(t.offsetWidth)}),t=setInterval(()=>{var n;let o=r?`.${r(y)}`:`.${y}-dropdown`,i=null===(n=u.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let b=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});return i&&(b=i(b)),o.createElement("div",{ref:u,style:{paddingBottom:f,position:"relative",minWidth:p}},o.createElement(e,Object.assign({},b)))})}},69760:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(97937),o=r(67294);function i(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.createElement(n.Z,null),a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l="boolean"==typeof e?e:void 0===t?!!a:!1!==t&&null!==t;if(!l)return[!1,null];let s="boolean"==typeof t||null==t?i:t;return[!0,r?r(s):s]}},33603:function(e,t,r){"use strict";r.d(t,{m:function(){return l}});let n=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},i=e=>({height:e?e.offsetHeight:0}),a=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,r)=>void 0!==r?r:`${e}-${t}`;t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:`${e}-motion-collapse`,onAppearStart:n,onEnterStart:n,onAppearActive:o,onEnterActive:o,onLeaveStart:i,onLeaveActive:n,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500}}},96159:function(e,t,r){"use strict";r.d(t,{M2:function(){return a},Tm:function(){return l},l$:function(){return i}});var n,o=r(67294);let{isValidElement:i}=n||(n=r.t(o,2));function a(e){return e&&i(e)&&e.type===o.Fragment}function l(e,t){return i(e)?o.cloneElement(e,"function"==typeof t?t(e.props||{}):t):e}},31808:function(e,t,r){"use strict";let n;r.d(t,{fk:function(){return a},jD:function(){return i}});var o=r(98924);let i=()=>(0,o.Z)()&&window.document.documentElement,a=()=>{if(!i())return!1;if(void 0!==n)return n;let e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));let t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),n=1===e.scrollHeight,document.body.removeChild(t),n}},80029:function(e,t,r){"use strict";r.d(t,{n:function(){return eg},Z:function(){return ev}});var n=r(67294),o=r(94184),i=r.n(o),a=r(98423),l=r(42550),s=r(5110),c=r(53124),u=r(96159),f=r(67968);let d=e=>{let{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow 0.3s ${e.motionEaseInOut},opacity 0.35s ${e.motionEaseInOut}`}}}}};var p=(0,f.Z)("Wave",e=>[d(e)]),h=r(66680),g=r(75164),m=r(82225),v=r(38135);function y(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}let b="ant-wave-target";function x(e){return Number.isNaN(e)?0:e}let w=e=>{let{className:t,target:r,component:o}=e,a=n.useRef(null),[l,s]=n.useState(null),[c,u]=n.useState([]),[f,d]=n.useState(0),[p,h]=n.useState(0),[w,C]=n.useState(0),[S,E]=n.useState(0),[k,O]=n.useState(!1),Z={left:f,top:p,width:w,height:S,borderRadius:c.map(e=>`${e}px`).join(" ")};function $(){let e=getComputedStyle(r);s(function(e){let{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return y(t)?t:y(r)?r:y(n)?n:null}(r));let t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:x(-parseFloat(n))),h(t?r.offsetTop:x(-parseFloat(o))),C(r.offsetWidth),E(r.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([i,a,c,l].map(e=>x(parseFloat(e))))}if(l&&(Z["--wave-color"]=l),n.useEffect(()=>{if(r){let e;let t=(0,g.Z)(()=>{$(),O(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver($)).observe(r),()=>{g.Z.cancel(t),null==e||e.disconnect()}}},[]),!k)return null;let P=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(b));return n.createElement(m.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var r;if(t.deadline||"opacity"===t.propertyName){let e=null===(r=a.current)||void 0===r?void 0:r.parentElement;(0,v.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:r}=e;return n.createElement("div",{ref:a,className:i()(t,{"wave-quick":P},r),style:Z})})};var C=(e,t)=>{var r;let{component:o}=t;if("Checkbox"===o&&!(null===(r=e.querySelector("input"))||void 0===r?void 0:r.checked))return;let i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),(0,v.s)(n.createElement(w,Object.assign({},t,{target:e})),i)},S=r(25976),E=e=>{let{children:t,disabled:r,component:o}=e,{getPrefixCls:a}=(0,n.useContext)(c.E_),f=(0,n.useRef)(null),d=a("wave"),[,m]=p(d),v=function(e,t,r){let{wave:o}=n.useContext(c.E_),[,i,a]=(0,S.Z)(),l=(0,h.Z)(n=>{let l=e.current;if((null==o?void 0:o.disabled)||!l)return;let s=l.querySelector(`.${b}`)||l,{showEffect:c}=o||{};(c||C)(s,{className:t,token:i,component:r,event:n,hashId:a})}),s=n.useRef();return e=>{g.Z.cancel(s.current),s.current=(0,g.Z)(()=>{l(e)})}}(f,i()(d,m),o);if(n.useEffect(()=>{let e=f.current;if(!e||1!==e.nodeType||r)return;let t=t=>{!(0,s.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||v(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[r]),!n.isValidElement(t))return null!=t?t:null;let y=(0,l.Yr)(t)?(0,l.sQ)(t.ref,f):f;return(0,u.Tm)(t,{ref:y})},k=r(98866),O=r(98675),Z=r(4173),$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let P=n.createContext(void 0),j=/^[\u4e00-\u9fa5]{2}$/,A=j.test.bind(j);function R(e){return"string"==typeof e}function T(e){return"text"===e||"link"===e}let F=(0,n.forwardRef)((e,t)=>{let{className:r,style:o,children:a,prefixCls:l}=e,s=i()(`${l}-icon`,r);return n.createElement("span",{ref:t,className:s,style:o},a)});var I=r(50888);let L=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,className:o,style:a,iconClassName:l}=e,s=i()(`${r}-loading-icon`,o);return n.createElement(F,{prefixCls:r,className:s,style:a,ref:t},n.createElement(I.Z,{className:l}))}),_=()=>({width:0,opacity:0,transform:"scale(0)"}),N=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var B=e=>{let{prefixCls:t,loading:r,existIcon:o,className:i,style:a}=e;return o?n.createElement(L,{prefixCls:t,className:i,style:a}):n.createElement(m.ZP,{visible:!!r,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:_,onAppearActive:N,onEnterStart:_,onEnterActive:N,onLeaveStart:N,onLeaveActive:_},(e,r)=>{let{className:o,style:l}=e;return n.createElement(L,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})})},M=r(14747),D=r(45503);let z=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var H=e=>{let{componentCls:t,fontSize:r,lineWidth:n,colorPrimaryHover:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-n,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover, + } catch (e) {} })();`}},"mui-color-scheme-init")})((0,o.Z)({attribute:s,colorSchemeStorageKey:w,defaultMode:C,defaultLightColorScheme:$,defaultDarkColorScheme:P,modeStorageKey:x},e))}}({themeId:C.Z,theme:x.Z,attribute:"data-joy-color-scheme",modeStorageKey:"joy-mode",colorSchemeStorageKey:"joy-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t=e.colorInversion;return e.colorInversion=(0,n.Z)({soft:(0,w.pP)(e),solid:(0,w.Lo)(e)},"function"==typeof t?t(e):t,{clone:!1}),e}})},38629:function(e,t,r){"use strict";r.d(t,{F:function(){return c},Z:function(){return u}}),r(67294);var n=r(96682),o=r(71927),i=r(1812),a=r(59077),l=r(2548),s=r(85893);let c=()=>{let e=(0,n.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let r=i.Z;return t&&(r=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:r,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},1812:function(e,t,r){"use strict";var n=r(59077);let o=(0,n.Z)();t.Z=o},59077:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});var n=r(87462),o=r(63366),i=r(59766),a=r(50159),l=r(41796),s=r(41512),c=r(98373);let u=(e,t,r,n=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},f=(e,t,r)=>{!function e(n,o=[],i=[]){Object.entries(n).forEach(([n,a])=>{r&&(!r||r([...o,n]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,n],Array.isArray(a)?[...i,n]:i):t([...o,n],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let r=e[e.length-1];return r.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`;Object.assign(o,{[n]:d(e,t)}),u(i,e,`var(${n})`,l),u(a,e,`var(${n}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],g=["light"];var m=function(e,t){let{colorSchemes:r={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=r,m=(0,o.Z)(r,g);if(Object.entries(m||{}).forEach(([e,r])=>{let{vars:n,css:o,varsWithDefaults:a}=p(r,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:n}}),d){let{css:e,vars:r,varsWithDefaults:n}=p(d,t);u=(0,i.Z)(u,n),f.light={css:e,vars:r}}return{vars:u,generateCssVars:e=>e?{css:(0,n.Z)({},f[e].css),vars:f[e].vars}:{css:(0,n.Z)({},s),vars:l}}},v=r(86523),y=r(44920);let b=(0,n.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=r(9818);function w(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var C=r(26821),S=r(13951);let E=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],k=["colorSchemes"],O=(e="joy")=>(0,a.Z)(e);function Z(e){var t,r,a,u,f,d,p,h,g,y,Z,$,P,j,A,R,T,F,I,L,_,N,B,M,D,z,H,U,W,V,q,K,G,J,X,Y,Q,ee,et,er,en,eo,ei,ea,el,es,ec,eu,ef,ed,ep,eh,eg,em,ev,ey;let eb=e||{},{cssVarPrefix:ex="joy",breakpoints:ew,spacing:eC,components:eS,variants:eE,colorInversion:ek,shouldSkipGeneratingVar:eO=w}=eb,eZ=(0,o.Z)(eb,E),e$=O(ex),eP={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,info:x.Z.purple,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FFF",black:"#09090D"}},ej=e=>{var t;let r=e.split("-"),n=r[1],o=r[2];return e$(e,null==(t=eP[n])?void 0:t[o])},eA=e=>({plainColor:ej(`palette-${e}-600`),plainHoverBg:ej(`palette-${e}-100`),plainActiveBg:ej(`palette-${e}-200`),plainDisabledColor:ej(`palette-${e}-200`),outlinedColor:ej(`palette-${e}-500`),outlinedBorder:ej(`palette-${e}-200`),outlinedHoverBg:ej(`palette-${e}-100`),outlinedHoverBorder:ej(`palette-${e}-300`),outlinedActiveBg:ej(`palette-${e}-200`),outlinedDisabledColor:ej(`palette-${e}-100`),outlinedDisabledBorder:ej(`palette-${e}-100`),softColor:ej(`palette-${e}-600`),softBg:ej(`palette-${e}-100`),softHoverBg:ej(`palette-${e}-200`),softActiveBg:ej(`palette-${e}-300`),softDisabledColor:ej(`palette-${e}-300`),softDisabledBg:ej(`palette-${e}-50`),solidColor:"#fff",solidBg:ej(`palette-${e}-500`),solidHoverBg:ej(`palette-${e}-600`),solidActiveBg:ej(`palette-${e}-700`),solidDisabledColor:"#fff",solidDisabledBg:ej(`palette-${e}-200`)}),eR=e=>({plainColor:ej(`palette-${e}-300`),plainHoverBg:ej(`palette-${e}-800`),plainActiveBg:ej(`palette-${e}-700`),plainDisabledColor:ej(`palette-${e}-800`),outlinedColor:ej(`palette-${e}-200`),outlinedBorder:ej(`palette-${e}-700`),outlinedHoverBg:ej(`palette-${e}-800`),outlinedHoverBorder:ej(`palette-${e}-600`),outlinedActiveBg:ej(`palette-${e}-900`),outlinedDisabledColor:ej(`palette-${e}-800`),outlinedDisabledBorder:ej(`palette-${e}-800`),softColor:ej(`palette-${e}-200`),softBg:ej(`palette-${e}-900`),softHoverBg:ej(`palette-${e}-800`),softActiveBg:ej(`palette-${e}-700`),softDisabledColor:ej(`palette-${e}-800`),softDisabledBg:ej(`palette-${e}-900`),solidColor:"#fff",solidBg:ej(`palette-${e}-600`),solidHoverBg:ej(`palette-${e}-700`),solidActiveBg:ej(`palette-${e}-800`),solidDisabledColor:ej(`palette-${e}-700`),solidDisabledBg:ej(`palette-${e}-900`)}),eT={palette:{mode:"light",primary:(0,n.Z)({},eP.primary,eA("primary")),neutral:(0,n.Z)({},eP.neutral,{plainColor:ej("palette-neutral-800"),plainHoverColor:ej("palette-neutral-900"),plainHoverBg:ej("palette-neutral-100"),plainActiveBg:ej("palette-neutral-200"),plainDisabledColor:ej("palette-neutral-300"),outlinedColor:ej("palette-neutral-800"),outlinedBorder:ej("palette-neutral-200"),outlinedHoverColor:ej("palette-neutral-900"),outlinedHoverBg:ej("palette-neutral-100"),outlinedHoverBorder:ej("palette-neutral-300"),outlinedActiveBg:ej("palette-neutral-200"),outlinedDisabledColor:ej("palette-neutral-300"),outlinedDisabledBorder:ej("palette-neutral-100"),softColor:ej("palette-neutral-800"),softBg:ej("palette-neutral-100"),softHoverColor:ej("palette-neutral-900"),softHoverBg:ej("palette-neutral-200"),softActiveBg:ej("palette-neutral-300"),softDisabledColor:ej("palette-neutral-300"),softDisabledBg:ej("palette-neutral-50"),solidColor:ej("palette-common-white"),solidBg:ej("palette-neutral-600"),solidHoverBg:ej("palette-neutral-700"),solidActiveBg:ej("palette-neutral-800"),solidDisabledColor:ej("palette-neutral-300"),solidDisabledBg:ej("palette-neutral-50")}),danger:(0,n.Z)({},eP.danger,eA("danger")),info:(0,n.Z)({},eP.info,eA("info")),success:(0,n.Z)({},eP.success,eA("success")),warning:(0,n.Z)({},eP.warning,eA("warning"),{solidColor:ej("palette-warning-800"),solidBg:ej("palette-warning-200"),solidHoverBg:ej("palette-warning-300"),solidActiveBg:ej("palette-warning-400"),solidDisabledColor:ej("palette-warning-200"),solidDisabledBg:ej("palette-warning-50"),softColor:ej("palette-warning-800"),softBg:ej("palette-warning-50"),softHoverBg:ej("palette-warning-100"),softActiveBg:ej("palette-warning-200"),softDisabledColor:ej("palette-warning-200"),softDisabledBg:ej("palette-warning-50"),outlinedColor:ej("palette-warning-800"),outlinedHoverBg:ej("palette-warning-50"),plainColor:ej("palette-warning-800"),plainHoverBg:ej("palette-warning-50")}),common:{white:"#FFF",black:"#09090D"},text:{primary:ej("palette-neutral-800"),secondary:ej("palette-neutral-600"),tertiary:ej("palette-neutral-500")},background:{body:ej("palette-common-white"),surface:ej("palette-common-white"),popup:ej("palette-common-white"),level1:ej("palette-neutral-50"),level2:ej("palette-neutral-100"),level3:ej("palette-neutral-200"),tooltip:ej("palette-neutral-800"),backdrop:"rgba(255 255 255 / 0.5)"},divider:`rgba(${e$("palette-neutral-mainChannel",(0,l.n8)(eP.neutral[500]))} / 0.28)`,focusVisible:ej("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"187 187 187"},eF={palette:{mode:"dark",primary:(0,n.Z)({},eP.primary,eR("primary")),neutral:(0,n.Z)({},eP.neutral,{plainColor:ej("palette-neutral-200"),plainHoverColor:ej("palette-neutral-50"),plainHoverBg:ej("palette-neutral-800"),plainActiveBg:ej("palette-neutral-700"),plainDisabledColor:ej("palette-neutral-700"),outlinedColor:ej("palette-neutral-200"),outlinedBorder:ej("palette-neutral-800"),outlinedHoverColor:ej("palette-neutral-50"),outlinedHoverBg:ej("palette-neutral-800"),outlinedHoverBorder:ej("palette-neutral-700"),outlinedActiveBg:ej("palette-neutral-800"),outlinedDisabledColor:ej("palette-neutral-800"),outlinedDisabledBorder:ej("palette-neutral-800"),softColor:ej("palette-neutral-200"),softBg:ej("palette-neutral-800"),softHoverColor:ej("palette-neutral-50"),softHoverBg:ej("palette-neutral-700"),softActiveBg:ej("palette-neutral-600"),softDisabledColor:ej("palette-neutral-700"),softDisabledBg:ej("palette-neutral-900"),solidColor:ej("palette-common-white"),solidBg:ej("palette-neutral-600"),solidHoverBg:ej("palette-neutral-700"),solidActiveBg:ej("palette-neutral-800"),solidDisabledColor:ej("palette-neutral-700"),solidDisabledBg:ej("palette-neutral-900")}),danger:(0,n.Z)({},eP.danger,eR("danger")),info:(0,n.Z)({},eP.info,eR("info")),success:(0,n.Z)({},eP.success,eR("success"),{solidColor:"#fff",solidBg:ej("palette-success-600"),solidHoverBg:ej("palette-success-700"),solidActiveBg:ej("palette-success-800")}),warning:(0,n.Z)({},eP.warning,eR("warning"),{solidColor:ej("palette-common-black"),solidBg:ej("palette-warning-300"),solidHoverBg:ej("palette-warning-400"),solidActiveBg:ej("palette-warning-500")}),common:{white:"#FFF",black:"#09090D"},text:{primary:ej("palette-neutral-100"),secondary:ej("palette-neutral-300"),tertiary:ej("palette-neutral-400")},background:{body:ej("palette-neutral-900"),surface:ej("palette-common-black"),popup:ej("palette-neutral-900"),level1:ej("palette-neutral-800"),level2:ej("palette-neutral-700"),level3:ej("palette-neutral-600"),tooltip:ej("palette-neutral-600"),backdrop:`rgba(${e$("palette-neutral-darkChannel",(0,l.n8)(eP.neutral[800]))} / 0.5)`},divider:`rgba(${e$("palette-neutral-mainChannel",(0,l.n8)(eP.neutral[500]))} / 0.24)`,focusVisible:ej("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0"},eI='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',eL=(0,n.Z)({body:`"Public Sans", ${e$(`fontFamily-fallback, ${eI}`)}`,display:`"Public Sans", ${e$(`fontFamily-fallback, ${eI}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:eI},eZ.fontFamily),e_=(0,n.Z)({xs:200,sm:300,md:500,lg:600,xl:700,xl2:800,xl3:900},eZ.fontWeight),eN=(0,n.Z)({xs3:"0.5rem",xs2:"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem"},eZ.fontSize),eB=(0,n.Z)({sm:1.25,md:1.5,lg:1.7},eZ.lineHeight),eM=(0,n.Z)({sm:"-0.01em",md:"0.083em",lg:"0.125em"},eZ.letterSpacing),eD={colorSchemes:{light:eT,dark:eF},fontSize:eN,fontFamily:eL,fontWeight:e_,focus:{thickness:"2px",selector:`&.${(0,C.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${e$("focus-thickness",null!=(t=null==(r=eZ.focus)?void 0:r.thickness)?t:"2px")})`,outline:`${e$("focus-thickness",null!=(a=null==(u=eZ.focus)?void 0:u.thickness)?a:"2px")} solid ${e$("palette-focusVisible",eP.primary[500])}`}},lineHeight:eB,letterSpacing:eM,radius:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},shadow:{xs:`${e$("shadowRing",null!=(f=null==(d=eZ.colorSchemes)||null==(d=d.light)?void 0:d.shadowRing)?f:eT.shadowRing)}, 0 1px 2px 0 rgba(${e$("shadowChannel",null!=(p=null==(h=eZ.colorSchemes)||null==(h=h.light)?void 0:h.shadowChannel)?p:eT.shadowChannel)} / 0.12)`,sm:`${e$("shadowRing",null!=(g=null==(y=eZ.colorSchemes)||null==(y=y.light)?void 0:y.shadowRing)?g:eT.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(Z=null==($=eZ.colorSchemes)||null==($=$.light)?void 0:$.shadowChannel)?Z:eT.shadowChannel)} / 0.11), 0.5px 1.3px 1.8px -0.6px rgba(${e$("shadowChannel",null!=(P=null==(j=eZ.colorSchemes)||null==(j=j.light)?void 0:j.shadowChannel)?P:eT.shadowChannel)} / 0.18), 1.1px 2.7px 3.8px -1.2px rgba(${e$("shadowChannel",null!=(A=null==(R=eZ.colorSchemes)||null==(R=R.light)?void 0:R.shadowChannel)?A:eT.shadowChannel)} / 0.26)`,md:`${e$("shadowRing",null!=(T=null==(F=eZ.colorSchemes)||null==(F=F.light)?void 0:F.shadowRing)?T:eT.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(I=null==(L=eZ.colorSchemes)||null==(L=L.light)?void 0:L.shadowChannel)?I:eT.shadowChannel)} / 0.12), 1.1px 2.8px 3.9px -0.4px rgba(${e$("shadowChannel",null!=(_=null==(N=eZ.colorSchemes)||null==(N=N.light)?void 0:N.shadowChannel)?_:eT.shadowChannel)} / 0.17), 2.4px 6.1px 8.6px -0.8px rgba(${e$("shadowChannel",null!=(B=null==(M=eZ.colorSchemes)||null==(M=M.light)?void 0:M.shadowChannel)?B:eT.shadowChannel)} / 0.23), 5.3px 13.3px 18.8px -1.2px rgba(${e$("shadowChannel",null!=(D=null==(z=eZ.colorSchemes)||null==(z=z.light)?void 0:z.shadowChannel)?D:eT.shadowChannel)} / 0.29)`,lg:`${e$("shadowRing",null!=(H=null==(U=eZ.colorSchemes)||null==(U=U.light)?void 0:U.shadowRing)?H:eT.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(W=null==(V=eZ.colorSchemes)||null==(V=V.light)?void 0:V.shadowChannel)?W:eT.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e$("shadowChannel",null!=(q=null==(K=eZ.colorSchemes)||null==(K=K.light)?void 0:K.shadowChannel)?q:eT.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e$("shadowChannel",null!=(G=null==(J=eZ.colorSchemes)||null==(J=J.light)?void 0:J.shadowChannel)?G:eT.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e$("shadowChannel",null!=(X=null==(Y=eZ.colorSchemes)||null==(Y=Y.light)?void 0:Y.shadowChannel)?X:eT.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e$("shadowChannel",null!=(Q=null==(ee=eZ.colorSchemes)||null==(ee=ee.light)?void 0:ee.shadowChannel)?Q:eT.shadowChannel)} / 0.21)`,xl:`${e$("shadowRing",null!=(et=null==(er=eZ.colorSchemes)||null==(er=er.light)?void 0:er.shadowRing)?et:eT.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(en=null==(eo=eZ.colorSchemes)||null==(eo=eo.light)?void 0:eo.shadowChannel)?en:eT.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e$("shadowChannel",null!=(ei=null==(ea=eZ.colorSchemes)||null==(ea=ea.light)?void 0:ea.shadowChannel)?ei:eT.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e$("shadowChannel",null!=(el=null==(es=eZ.colorSchemes)||null==(es=es.light)?void 0:es.shadowChannel)?el:eT.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e$("shadowChannel",null!=(ec=null==(eu=eZ.colorSchemes)||null==(eu=eu.light)?void 0:eu.shadowChannel)?ec:eT.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e$("shadowChannel",null!=(ef=null==(ed=eZ.colorSchemes)||null==(ed=ed.light)?void 0:ed.shadowChannel)?ef:eT.shadowChannel)} / 0.21), 10.2px 25.5px 36px -0.9px rgba(${e$("shadowChannel",null!=(ep=null==(eh=eZ.colorSchemes)||null==(eh=eh.light)?void 0:eh.shadowChannel)?ep:eT.shadowChannel)} / 0.24), 14.8px 36.8px 52.1px -1.1px rgba(${e$("shadowChannel",null!=(eg=null==(em=eZ.colorSchemes)||null==(em=em.light)?void 0:em.shadowChannel)?eg:eT.shadowChannel)} / 0.27), 21px 52.3px 74px -1.2px rgba(${e$("shadowChannel",null!=(ev=null==(ey=eZ.colorSchemes)||null==(ey=ey.light)?void 0:ey.shadowChannel)?ev:eT.shadowChannel)} / 0.29)`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{display1:{fontFamily:e$(`fontFamily-display, ${eL.display}`),fontWeight:e$(`fontWeight-xl, ${e_.xl}`),fontSize:e$(`fontSize-xl7, ${eN.xl7}`),lineHeight:e$(`lineHeight-sm, ${eB.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eM.sm}`),color:e$("palette-text-primary",eT.palette.text.primary)},display2:{fontFamily:e$(`fontFamily-display, ${eL.display}`),fontWeight:e$(`fontWeight-xl, ${e_.xl}`),fontSize:e$(`fontSize-xl6, ${eN.xl6}`),lineHeight:e$(`lineHeight-sm, ${eB.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eM.sm}`),color:e$("palette-text-primary",eT.palette.text.primary)},h1:{fontFamily:e$(`fontFamily-display, ${eL.display}`),fontWeight:e$(`fontWeight-lg, ${e_.lg}`),fontSize:e$(`fontSize-xl5, ${eN.xl5}`),lineHeight:e$(`lineHeight-sm, ${eB.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eM.sm}`),color:e$("palette-text-primary",eT.palette.text.primary)},h2:{fontFamily:e$(`fontFamily-display, ${eL.display}`),fontWeight:e$(`fontWeight-lg, ${e_.lg}`),fontSize:e$(`fontSize-xl4, ${eN.xl4}`),lineHeight:e$(`lineHeight-sm, ${eB.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eM.sm}`),color:e$("palette-text-primary",eT.palette.text.primary)},h3:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontWeight:e$(`fontWeight-md, ${e_.md}`),fontSize:e$(`fontSize-xl3, ${eN.xl3}`),lineHeight:e$(`lineHeight-sm, ${eB.sm}`),color:e$("palette-text-primary",eT.palette.text.primary)},h4:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontWeight:e$(`fontWeight-md, ${e_.md}`),fontSize:e$(`fontSize-xl2, ${eN.xl2}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-primary",eT.palette.text.primary)},h5:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontWeight:e$(`fontWeight-md, ${e_.md}`),fontSize:e$(`fontSize-xl, ${eN.xl}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-primary",eT.palette.text.primary)},h6:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontWeight:e$(`fontWeight-md, ${e_.md}`),fontSize:e$(`fontSize-lg, ${eN.lg}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-primary",eT.palette.text.primary)},body1:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontSize:e$(`fontSize-md, ${eN.md}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-primary",eT.palette.text.primary)},body2:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontSize:e$(`fontSize-sm, ${eN.sm}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-secondary",eT.palette.text.secondary)},body3:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontSize:e$(`fontSize-xs, ${eN.xs}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-tertiary",eT.palette.text.tertiary)},body4:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontSize:e$(`fontSize-xs2, ${eN.xs2}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-tertiary",eT.palette.text.tertiary)},body5:{fontFamily:e$(`fontFamily-body, ${eL.body}`),fontSize:e$(`fontSize-xs3, ${eN.xs3}`),lineHeight:e$(`lineHeight-md, ${eB.md}`),color:e$("palette-text-tertiary",eT.palette.text.tertiary)}}},ez=eZ?(0,i.Z)(eD,eZ):eD,{colorSchemes:eH}=ez,eU=(0,o.Z)(ez,k),eW=(0,n.Z)({colorSchemes:eH},eU,{breakpoints:(0,s.Z)(null!=ew?ew:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl"},styleOverrides:{root:({ownerState:e,theme:t})=>{var r;let o=e.instanceFontSize;return(0,n.Z)({color:"var(--Icon-color)",margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(r=t.vars.palette[e.color])?void 0:r.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary},o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},eS),cssVarPrefix:ex,getCssVar:e$,spacing:(0,c.Z)(eC),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(eW.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(r=>{let n={main:"500",light:"200",dark:"800"};"dark"===e&&(n.main=400),!t[r].mainChannel&&t[r][n.main]&&(t[r].mainChannel=(0,l.n8)(t[r][n.main])),!t[r].lightChannel&&t[r][n.light]&&(t[r].lightChannel=(0,l.n8)(t[r][n.light])),!t[r].darkChannel&&t[r][n.dark]&&(t[r].darkChannel=(0,l.n8)(t[r][n.dark]))})}(e,t.palette)});let{vars:eV,generateCssVars:eq}=m((0,n.Z)({colorSchemes:eH},eU),{prefix:ex,shouldSkipGeneratingVar:eO});eW.vars=eV,eW.generateCssVars=eq,eW.unstable_sxConfig=(0,n.Z)({},b,null==e?void 0:e.unstable_sxConfig),eW.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},eW.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eK={getCssVar:e$,palette:eW.colorSchemes.light.palette};return eW.variants=(0,i.Z)({plain:(0,S.Zm)("plain",eK),plainHover:(0,S.Zm)("plainHover",eK),plainActive:(0,S.Zm)("plainActive",eK),plainDisabled:(0,S.Zm)("plainDisabled",eK),outlined:(0,S.Zm)("outlined",eK),outlinedHover:(0,S.Zm)("outlinedHover",eK),outlinedActive:(0,S.Zm)("outlinedActive",eK),outlinedDisabled:(0,S.Zm)("outlinedDisabled",eK),soft:(0,S.Zm)("soft",eK),softHover:(0,S.Zm)("softHover",eK),softActive:(0,S.Zm)("softActive",eK),softDisabled:(0,S.Zm)("softDisabled",eK),solid:(0,S.Zm)("solid",eK),solidHover:(0,S.Zm)("solidHover",eK),solidActive:(0,S.Zm)("solidActive",eK),solidDisabled:(0,S.Zm)("solidDisabled",eK)},eE),eW.palette=(0,n.Z)({},eW.colorSchemes.light.palette,{colorScheme:"light"}),eW.shouldSkipGeneratingVar=eO,eW.colorInversion="function"==typeof ek?ek:(0,i.Z)({soft:(0,S.pP)(eW,!0),solid:(0,S.Lo)(eW,!0)},ek||{},{clone:!1}),eW}},2548:function(e,t){"use strict";t.Z="$$joy"},74312:function(e,t,r){"use strict";var n=r(70182),o=r(1812),i=r(2548);let a=(0,n.ZP)({defaultTheme:o.Z,themeId:i.Z});t.Z=a},20407:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(87462),o=r(39214),i=r(1812),a=r(2548);function l({props:e,name:t}){return(0,o.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},i.Z,{components:{}}),themeId:a.Z})}},13951:function(e,t,r){"use strict";r.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var n=r(87462),o=r(50159);let i=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),a=(e,t,r)=>{t.includes("Color")&&(e.color=r),t.includes("Bg")&&(e.backgroundColor=r),t.includes("Border")&&(e.borderColor=r)},l=(e,t,r)=>{let n={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=r?r(t):o;t.includes("Disabled")&&(n.pointerEvents="none",n.cursor="default"),t.match(/(Hover|Active|Disabled)/)||(n["--variant-borderWidth"]||(n["--variant-borderWidth"]="0px"),t.includes("Border")&&(n["--variant-borderWidth"]="1px",n.border="var(--variant-borderWidth) solid")),a(n,t,e)}}),n},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let r={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(r=(0,n.Z)({},r,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return r.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverColor:"var(--variant-solidHoverColor)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),r},u=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{var n;let o=t.split("-"),i=o[1],a=o[2];return r(t,null==(n=e.palette)||null==(n=n[i])?void 0:n[a])}:r;return Object.entries(e.palette).forEach(t=>{let[r,o]=t;i(o)&&(a[r]={"--Badge-ringColor":l(`palette-${r}-softBg`),[n("--shadowChannel")]:l(`palette-${r}-darkChannel`),[e.getColorSchemeSelector("dark")]:{[n("--palette-focusVisible")]:l(`palette-${r}-300`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${r}-100`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.6)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${r}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${r}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${r}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${r}-100`),"--variant-softBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${r}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${r}-400`),"--variant-solidActiveBg":l(`palette-${r}-400`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[n("--palette-focusVisible")]:l(`palette-${r}-500`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,[n("--palette-text-primary")]:l(`palette-${r}-700`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.68)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${r}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${r}-600`),"--variant-outlinedHoverBorder":l(`palette-${r}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${r}-600`),"--variant-softBg":`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-softHoverColor":l(`palette-${r}-700`),"--variant-softHoverBg":l(`palette-${r}-200`),"--variant-softActiveBg":l(`palette-${r}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${r}-600`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${r}-500`),"--variant-solidActiveBg":l(`palette-${r}-500`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{let n=t.split("-"),o=n[1],i=n[2];return r(t,e.palette[o][i])}:r;return Object.entries(e.palette).forEach(e=>{let[t,r]=e;i(r)&&("warning"===t?a.warning={"--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-700`),[n("--palette-background-body")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.16)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.1)`,[n("--palette-background-popup")]:l(`palette-${t}-100`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${t}-900`),[n("--palette-text-secondary")]:l(`palette-${t}-700`),[n("--palette-text-tertiary")]:l(`palette-${t}-500`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,"--variant-plainColor":l(`palette-${t}-700`),"--variant-plainHoverColor":l(`palette-${t}-800`),"--variant-plainHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-700`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.5)`,"--variant-outlinedHoverColor":l(`palette-${t}-800`),"--variant-outlinedHoverBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.6)`,"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${t}-800`),"--variant-softHoverColor":l(`palette-${t}-900`),"--variant-softBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.28)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${t}-600`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${t}-700`),"--variant-solidActiveBg":l(`palette-${t}-800`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`}:a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-200`),[n("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[n("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[n("--palette-background-popup")]:l(`palette-${t}-700`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l("palette-common-white"),[n("--palette-text-secondary")]:l(`palette-${t}-100`),[n("--palette-text-tertiary")]:l(`palette-${t}-200`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverColor":l(`palette-${t}-700`),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-200`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),a}},30220:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(87462),o=r(63366),i=r(33703),a=r(71276),l=r(24407),s=r(5922),c=r(78653);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],p=["disableColorInversion"];function h(e,t){let{className:r,elementType:h,ownerState:g,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:y}=t,b=(0,o.Z)(t,u),{component:x,slots:w={[e]:void 0},slotProps:C={[e]:void 0}}=m,S=(0,o.Z)(m,f),E=w[e]||h,k=(0,a.Z)(C[e],g),O=(0,l.Z)((0,n.Z)({className:r},b,{externalForwardedProps:"root"===e?S:void 0,externalSlotProps:k})),{props:{component:Z},internalRef:$}=O,P=(0,o.Z)(O.props,d),j=(0,i.Z)($,null==k?void 0:k.ref,t.ref),A=v?v(P):{},{disableColorInversion:R=!1}=A,T=(0,o.Z)(A,p),F=(0,n.Z)({},g,T),{getColor:I}=(0,c.VT)(F.variant);if("root"===e){var L;F.color=null!=(L=P.color)?L:g.color}else R||(F.color=I(P.color,F.color));let _="root"===e?Z||x:Z,N=(0,s.Z)(E,(0,n.Z)({},"root"===e&&!x&&!w[e]&&y,"root"!==e&&!w[e]&&y,P,_&&{as:_},{ref:j}),F);return Object.keys(T).forEach(e=>{delete N[e]}),[E,N]}},14698:function(e,t,r){"use strict";r.r(t),r.d(t,{capitalize:function(){return o},createChainedFunction:function(){return i},createSvgIcon:function(){return ee},debounce:function(){return et},deprecatedPropType:function(){return er},isMuiElement:function(){return en},ownerDocument:function(){return eo},ownerWindow:function(){return ei},requirePropFactory:function(){return ea},setRef:function(){return el},unstable_ClassNameGenerator:function(){return eg},unstable_useEnhancedEffect:function(){return es},unstable_useId:function(){return ec},unsupportedProp:function(){return eu},useControlled:function(){return ef},useEventCallback:function(){return ed},useForkRef:function(){return ep},useIsFocusVisible:function(){return eh}});var n=r(37078),o=r(14142).Z,i=function(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})},a=r(87462),l=r(67294),s=r(63366),c=function(){for(var e,t,r=0,n="";r=r?$.text.primary:Z.text.primary;return t}let m=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=(0,a.Z)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw Error((0,d.Z)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw Error((0,d.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return P(e,"light",o,n),P(e,"dark",i,n),e.contrastText||(e.contrastText=g(e.main)),e},j=(0,p.Z)((0,a.Z)({common:(0,a.Z)({},y),mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:h,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:f,name:"success"}),grey:b,contrastThreshold:r,getContrastText:g,augmentColor:m,tonalOffset:n},{dark:$,light:Z}[t]),o);return j}(n),u=(0,h.Z)(e),f=(0,p.Z)(u,{mixins:(t=u.breakpoints,(0,a.Z)({toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}}},r)),palette:c,shadows:F.slice(),typography:function(e,t){let r="function"==typeof t?t(e):t,{fontFamily:n=R,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:f=16,allVariants:d,pxToRem:h}=r,g=(0,s.Z)(r,j),m=o/14,v=h||(e=>`${e/f*m}rem`),y=(e,t,r,o,i)=>(0,a.Z)({fontFamily:n,fontWeight:e,fontSize:v(t),lineHeight:r},n===R?{letterSpacing:`${Math.round(1e5*(o/t))/1e5}em`}:{},i,d),b={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(l,48,1.167,0),h4:y(l,34,1.235,.25),h5:y(l,24,1.334,0),h6:y(c,20,1.6,.15),subtitle1:y(l,16,1.75,.15),subtitle2:y(c,14,1.57,.1),body1:y(l,16,1.5,.15),body2:y(l,14,1.43,.15),button:y(c,14,1.75,.4,A),caption:y(l,12,1.66,.4),overline:y(l,12,2.66,1,A),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,p.Z)((0,a.Z)({htmlFontSize:f,pxToRem:v,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:u},b),g,{clone:!1})}(c,i),transitions:function(e){let t=(0,a.Z)({},L,e.easing),r=(0,a.Z)({},_,e.duration);return(0,a.Z)({getAutoHeightDuration:B,create:(e=["all"],n={})=>{let{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return(0,s.Z)(n,I),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:N(o)} ${i} ${"string"==typeof a?a:N(a)}`).join(",")}},e,{easing:t,duration:r})}(o),zIndex:(0,a.Z)({},M)});return(f=[].reduce((e,t)=>(0,p.Z)(e,t),f=(0,p.Z)(f,l))).unstable_sxConfig=(0,a.Z)({},g.Z,null==l?void 0:l.unstable_sxConfig),f.unstable_sx=function(e){return(0,m.Z)({sx:e,theme:this})},f}();var H="$$material",U=r(70182);let W=(0,U.ZP)({themeId:H,defaultTheme:z,rootShouldForwardProp:e=>(0,U.x9)(e)&&"classes"!==e});var V=r(1588),q=r(34867);function K(e){return(0,q.Z)("MuiSvgIcon",e)}(0,V.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var G=r(85893);let J=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],X=e=>{let{color:t,fontSize:r,classes:n}=e,i={root:["root","inherit"!==t&&`color${o(t)}`,`fontSize${o(r)}`]};return(0,u.Z)(i,K,n)},Y=W("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${o(r.color)}`],t[`fontSize${o(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,c,u,f,d,p,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:({inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"})[t.fontSize],color:null!=(f=null==(d=(e.vars||e).palette)||null==(d=d[t.color])?void 0:d.main)?f:({action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0})[t.color]}}),Q=l.forwardRef(function(e,t){let r=function({props:e,name:t}){return(0,f.Z)({props:e,name:t,defaultTheme:z,themeId:H})}({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:u="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:h=!1,titleAccess:g,viewBox:m="0 0 24 24"}=r,v=(0,s.Z)(r,J),y=l.isValidElement(n)&&"svg"===n.type,b=(0,a.Z)({},r,{color:i,component:u,fontSize:d,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:m,hasSvgAsChild:y}),x={};h||(x.viewBox=m);let w=X(b);return(0,G.jsxs)(Y,(0,a.Z)({as:u,className:c(w.root,o),focusable:"false",color:p,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},x,v,y&&n.props,{ownerState:b,children:[y?n.props.children:n,g?(0,G.jsx)("title",{children:g}):null]}))});function ee(e,t){function r(r,n){return(0,G.jsx)(Q,(0,a.Z)({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Q.muiName,l.memo(l.forwardRef(r))}Q.muiName="SvgIcon";var et=r(39336).Z,er=function(e,t){return()=>null},en=r(18719).Z,eo=r(82690).Z,ei=r(74161).Z,ea=function(e,t){return()=>null},el=r(7960).Z,es=r(73546).Z,ec=r(92996).Z,eu=function(e,t,r,n,o){return null},ef=r(19032).Z,ed=r(59948).Z,ep=r(33703).Z,eh=r(99962).Z;let eg={configure:e=>{n.Z.configure(e)}}},44819:function(e,t,r){"use strict";var n=r(67294);let o=n.createContext(null);t.Z=o},56760:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),o=r(44819);function i(){let e=n.useContext(o.Z);return e}},49731:function(e,t,r){"use strict";r.d(t,{ZP:function(){return v},Co:function(){return y}});var n=r(87462),o=r(67294),i=r(45042),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=(0,i.Z)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),s=r(75260),c=r(70444),u=r(50649),f=r(27278),d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:d},h=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,f.L)(function(){return(0,c.My)(t,r,n)}),null},m=(function e(t,r){var i,a,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==r&&(i=r.label,a=r.target);var d=h(t,r,l),m=d||p(f),v=!m("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,w=1;w{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},71927:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(87462),o=r(67294),i=r(56760),a=r(44819);let l="function"==typeof Symbol&&Symbol.for;var s=l?Symbol.for("mui.nested"):"__THEME_NESTED__",c=r(85893),u=function(e){let{children:t,theme:r}=e,l=(0,i.Z)(),u=o.useMemo(()=>{let e=null===l?r:function(e,t){if("function"==typeof t){let r=t(e);return r}return(0,n.Z)({},e,t)}(l,r);return null!=e&&(e[s]=null!==l),e},[r,l]);return(0,c.jsx)(a.Z.Provider,{value:u,children:t})},f=r(75260),d=r(34168);let p={};function h(e,t,r,i=!1){return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof r){let a=r(o),l=e?(0,n.Z)({},t,{[e]:a}):a;return i?()=>l:l}return e?(0,n.Z)({},t,{[e]:r}):(0,n.Z)({},t,r)},[e,t,r,i])}var g=function(e){let{children:t,theme:r,themeId:n}=e,o=(0,d.Z)(p),a=(0,i.Z)()||p,l=h(n,o,r),s=h(n,a,r,!0);return(0,c.jsx)(u,{theme:s,children:(0,c.jsx)(f.T.Provider,{value:l,children:t})})}},95408:function(e,t,r){"use strict";r.d(t,{L7:function(){return s},P$:function(){return u},VO:function(){return o},W8:function(){return l},dt:function(){return c},k9:function(){return a}});var n=r(59766);let o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,r){let n=e.theme||{};if(Array.isArray(t)){let e=n.breakpoints||i;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){let e=n.breakpoints||i;return Object.keys(t).reduce((n,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){let o=e.up(i);n[o]=r(t[i],i)}else n[i]=t[i];return n},{})}let a=r(t);return a}function l(e={}){var t;let r=null==(t=e.keys)?void 0:t.reduce((t,r)=>{let n=e.up(r);return t[n]={},t},{});return r||{}}function s(e,t){return e.reduce((e,t)=>{let r=e[t],n=!r||0===Object.keys(r).length;return n&&delete e[t],e},t)}function c(e,...t){let r=l(e),o=[r,...t].reduce((e,t)=>(0,n.Z)(e,t),{});return s(Object.keys(r),o)}function u({values:e,breakpoints:t,base:r}){let n;let o=r||function(e,t){if("object"!=typeof e)return{};let r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((t,n)=>{n{null!=e[t]&&(r[t]=!0)}),r}(e,t),i=Object.keys(o);return 0===i.length?e:i.reduce((t,r,o)=>(Array.isArray(e)?(t[r]=null!=e[o]?e[o]:e[n],n=o):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[n],n=r):t[r]=e,t),{})}},41796:function(e,t,r){"use strict";r.d(t,{$n:function(){return f},_j:function(){return u},mi:function(){return c},n8:function(){return a}});var n=r(71387);function o(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function i(e){let t;if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),o=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,n.Z)(9,e));let a=e.substring(r+1,e.length-1);if("color"===o){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,n.Z)(10,t))}else a=a.split(",");return{type:o,values:a=a.map(e=>parseFloat(e)),colorSpace:t}}let a=e=>{let t=i(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};function l(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),`${t}(${n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);let{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),s=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){let r=s(e),n=s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return l(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return l(e)}},70182:function(e,t,r){"use strict";r.d(t,{ZP:function(){return x},x9:function(){return m}});var n=r(63366),o=r(87462),i=r(49731),a=r(88647),l=r(14142);let s=["variant"];function c(e){return 0===e.length}function u(e){let{variant:t}=e,r=(0,n.Z)(e,s),o=t||"";return Object.keys(r).sort().forEach(t=>{"color"===t?o+=c(o)?e[t]:(0,l.Z)(e[t]):o+=`${c(o)?t:(0,l.Z)(t)}${(0,l.Z)(e[t].toString())}`}),o}var f=r(86523);let d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],p=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,h=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);let n={};return r.forEach(e=>{let t=u(e.props);n[t]=e.style}),n},g=(e,t,r,n)=>{var o;let{ownerState:i={}}=e,a=[],l=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return l&&l.forEach(r=>{let n=!0;Object.keys(r.props).forEach(t=>{i[t]!==r.props[t]&&e[t]!==r.props[t]&&(n=!1)}),n&&a.push(t[u(r.props)])}),a};function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let v=(0,a.Z)(),y=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:r}){return 0===Object.keys(t).length?e:t[r]||t}function x(e={}){let{themeId:t,defaultTheme:r=v,rootShouldForwardProp:a=m,slotShouldForwardProp:l=m}=e,s=e=>(0,f.Z)((0,o.Z)({},e,{theme:b((0,o.Z)({},e,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(e,c={})=>{var u;let f;(0,i.Co)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:v,slot:x,skipVariantsResolver:w,skipSx:C,overridesResolver:S=(u=y(x))?(e,t)=>t[u]:null}=c,E=(0,n.Z)(c,d),k=void 0!==w?w:x&&"Root"!==x&&"root"!==x||!1,O=C||!1,Z=m;"Root"===x||"root"===x?Z=a:x?Z=l:"string"==typeof e&&e.charCodeAt(0)>96&&(Z=void 0);let $=(0,i.ZP)(e,(0,o.Z)({shouldForwardProp:Z,label:f},E)),P=(n,...i)=>{let a=i?i.map(e=>"function"==typeof e&&e.__emotion_real!==e?n=>e((0,o.Z)({},n,{theme:b((0,o.Z)({},n,{defaultTheme:r,themeId:t}))})):e):[],l=n;v&&S&&a.push(e=>{let n=b((0,o.Z)({},e,{defaultTheme:r,themeId:t})),i=p(v,n);if(i){let t={};return Object.entries(i).forEach(([r,i])=>{t[r]="function"==typeof i?i((0,o.Z)({},e,{theme:n})):i}),S(e,t)}return null}),v&&!k&&a.push(e=>{let n=b((0,o.Z)({},e,{defaultTheme:r,themeId:t}));return g(e,h(v,n),n,v)}),O||a.push(s);let c=a.length-i.length;if(Array.isArray(n)&&c>0){let e=Array(c).fill("");(l=[...n,...e]).raw=[...n.raw,...e]}else"function"==typeof n&&n.__emotion_real!==n&&(l=e=>n((0,o.Z)({},e,{theme:b((0,o.Z)({},e,{defaultTheme:r,themeId:t}))})));let u=$(l,...a);return e.muiName&&(u.muiName=e.muiName),u};return $.withConfig&&(P.withConfig=$.withConfig),P}}},41512:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(63366),o=r(87462);let i=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.Z)({},e,{[t.key]:t.val}),{})};function l(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:l=5}=e,s=(0,n.Z)(e,i),c=a(t),u=Object.keys(c);function f(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function d(e){let n="number"==typeof t[e]?t[e]:e;return`@media (max-width:${n-l/100}${r})`}function p(e,n){let o=u.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:n)-l/100}${r})`}return(0,o.Z)({keys:u,values:c,up:f,down:d,between:p,only:function(e){return u.indexOf(e)+1{let r=0===e.length?[1]:e;return r.map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ")};return r.mui=!0,r}},88647:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(87462),o=r(63366),i=r(59766),a=r(41512),l={borderRadius:4},s=r(98373),c=r(86523),u=r(44920);let f=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){let{breakpoints:r={},palette:d={},spacing:p,shape:h={}}=e,g=(0,o.Z)(e,f),m=(0,a.Z)(r),v=(0,s.Z)(p),y=(0,i.Z)({breakpoints:m,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},d),spacing:v,shape:(0,n.Z)({},l,h)},g);return(y=t.reduce((e,t)=>(0,i.Z)(e,t),y)).unstable_sxConfig=(0,n.Z)({},u.Z,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},y}},50159:function(e,t,r){"use strict";function n(e=""){return(t,...r)=>`var(--${e?`${e}-`:""}${t}${function t(...r){if(!r.length)return"";let n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}(...r)})`}r.d(t,{Z:function(){return n}})},47730:function(e,t,r){"use strict";var n=r(59766);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},98700:function(e,t,r){"use strict";r.d(t,{hB:function(){return h},eI:function(){return p},NA:function(){return g},e6:function(){return v},o3:function(){return y}});var n=r(95408),o=r(54844),i=r(47730);let a={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}let[t,r]=e.split(""),n=a[t],o=l[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,r,n){var i;let a=null!=(i=(0,o.DW)(e,t,!1))?i:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function h(e){return p(e,"spacing",8,"spacing")}function g(e,t){if("string"==typeof t||null==t)return t;let r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function m(e,t){let r=h(e.theme);return Object.keys(e).map(o=>(function(e,t,r,o){if(-1===t.indexOf(r))return null;let i=c(r),a=e[r];return(0,n.k9)(e,a,e=>i.reduce((t,r)=>(t[r]=g(o,e),t),{}))})(e,t,o,r)).reduce(i.Z,{})}function v(e){return m(e,u)}function y(e){return m(e,f)}function b(e){return m(e,d)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=f,b.propTypes={},b.filterProps=d},54844:function(e,t,r){"use strict";r.d(t,{DW:function(){return i},Jq:function(){return a}});var n=r(14142),o=r(95408);function i(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:i(e,r)||n,t&&(o=t(o,n,e)),o}t.ZP=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:l,transform:s}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=e.theme,f=i(u,l)||{};return(0,o.k9)(e,c,e=>{let o=a(f,s,e);return(e===o&&"string"==typeof e&&(o=a(f,s,`${t}${"default"===e?"":(0,n.Z)(e)}`,e)),!1===r)?o:{[r]:o}})};return c.propTypes={},c.filterProps=[t],c}},44920:function(e,t,r){"use strict";r.d(t,{Z:function(){return W}});var n=r(98700),o=r(54844),i=r(47730),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,i.Z)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r},l=r(95408);function s(e){return"number"!=typeof e?e:`${e}px solid`}let c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:s}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:s}),f=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:s}),d=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:s}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:s}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,e=>({borderRadius:(0,n.NA)(t,e)}))}return null};b.propTypes={},b.filterProps=["borderRadius"],a(c,u,f,d,p,h,g,m,v,y,b);let x=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,e=>({gap:(0,n.NA)(t,e)}))}return null};x.propTypes={},x.filterProps=["gap"];let w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,e=>({columnGap:(0,n.NA)(t,e)}))}return null};w.propTypes={},w.filterProps=["columnGap"];let C=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,e=>({rowGap:(0,n.NA)(t,e)}))}return null};C.propTypes={},C.filterProps=["rowGap"];let S=(0,o.ZP)({prop:"gridColumn"}),E=(0,o.ZP)({prop:"gridRow"}),k=(0,o.ZP)({prop:"gridAutoFlow"}),O=(0,o.ZP)({prop:"gridAutoColumns"}),Z=(0,o.ZP)({prop:"gridAutoRows"}),$=(0,o.ZP)({prop:"gridTemplateColumns"}),P=(0,o.ZP)({prop:"gridTemplateRows"}),j=(0,o.ZP)({prop:"gridTemplateAreas"}),A=(0,o.ZP)({prop:"gridArea"});function R(e,t){return"grey"===t?t:e}a(x,w,C,S,E,k,O,Z,$,P,j,A);let T=(0,o.ZP)({prop:"color",themeKey:"palette",transform:R}),F=(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:R}),I=(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:R});function L(e){return e<=1&&0!==e?`${100*e}%`:e}a(T,F,I);let _=(0,o.ZP)({prop:"width",transform:L}),N=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.k9)(e,e.maxWidth,t=>{var r,n;let o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||l.VO[t];return o?(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:L(t)}}):null;N.filterProps=["maxWidth"];let B=(0,o.ZP)({prop:"minWidth",transform:L}),M=(0,o.ZP)({prop:"height",transform:L}),D=(0,o.ZP)({prop:"maxHeight",transform:L}),z=(0,o.ZP)({prop:"minHeight",transform:L});(0,o.ZP)({prop:"size",cssProperty:"width",transform:L}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:L});let H=(0,o.ZP)({prop:"boxSizing"});a(_,N,B,M,D,z,H);let U={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:R},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:R},backgroundColor:{themeKey:"palette",transform:R},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:C},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:L},maxWidth:{style:N},minWidth:{transform:L},height:{transform:L},maxHeight:{transform:L},minHeight:{transform:L},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var W=U},39707:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(87462),o=r(63366),i=r(59766),a=r(44920);let l=["sx"],s=e=>{var t,r;let n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function c(e){let t;let{sx:r}=e,a=(0,o.Z)(e,l),{systemProps:c,otherProps:u}=s(a);return t=Array.isArray(r)?[c,...r]:"function"==typeof r?(...e)=>{let t=r(...e);return(0,i.P)(t)?(0,n.Z)({},c,t):c}:(0,n.Z)({},c,r),(0,n.Z)({},u,{sx:t})}},86523:function(e,t,r){"use strict";var n=r(14142),o=r(47730),i=r(54844),a=r(95408),l=r(44920);let s=function(){function e(e,t,r,o){let l={[e]:t,theme:r},s=o[e];if(!s)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:f,style:d}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,i.DW)(r,u)||{};return d?d(l):(0,a.k9)(l,t,t=>{let r=(0,i.Jq)(p,f,t);return(t===r&&"string"==typeof t&&(r=(0,i.Jq)(p,f,`${e}${"default"===t?"":(0,n.Z)(t)}`,t)),!1===c)?r:{[c]:r}})}return function t(r){var n;let{sx:i,theme:s={}}=r||{};if(!i)return null;let c=null!=(n=s.unstable_sxConfig)?n:l.Z;function u(r){let n=r;if("function"==typeof r)n=r(s);else if("object"!=typeof r)return r;if(!n)return null;let i=(0,a.W8)(s.breakpoints),l=Object.keys(i),u=i;return Object.keys(n).forEach(r=>{var i;let l="function"==typeof(i=n[r])?i(s):i;if(null!=l){if("object"==typeof l){if(c[r])u=(0,o.Z)(u,e(r,l,s,c));else{let e=(0,a.k9)({theme:s},l,e=>({[r]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)})(e,l)?u[r]=t({sx:l,theme:s}):u=(0,o.Z)(u,e)}}else u=(0,o.Z)(u,e(r,l,s,c))}}),(0,a.L7)(l,u)}return Array.isArray(i)?i.map(u):u(i)}}();s.filterProps=["sx"],t.Z=s},96682:function(e,t,r){"use strict";var n=r(88647),o=r(34168);let i=(0,n.Z)();t.Z=function(e=i){return(0,o.Z)(e)}},39214:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(87462),o=r(96682);function i({props:e,name:t,defaultTheme:r,themeId:i}){let a=(0,o.Z)(r);i&&(a=a[i]||a);let l=function(e){let{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?function e(t,r){let o=(0,n.Z)({},r);return Object.keys(t).forEach(i=>{if(i.toString().match(/^(components|slots)$/))o[i]=(0,n.Z)({},t[i],o[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){let a=t[i]||{},l=r[i];o[i]={},l&&Object.keys(l)?a&&Object.keys(a)?(o[i]=(0,n.Z)({},l),Object.keys(a).forEach(t=>{o[i][t]=e(a[t],l[t])})):o[i]=l:o[i]=a}else void 0===o[i]&&(o[i]=t[i])}),o}(t.components[r].defaultProps,o):o}({theme:a,name:t,props:e});return l}},34168:function(e,t,r){"use strict";var n=r(67294),o=r(75260);t.Z=function(e=null){let t=n.useContext(o.T);return t&&0!==Object.keys(t).length?t:e}},37078:function(e,t){"use strict";let r;let n=e=>e,o=(r=n,{configure(e){r=e},generate:e=>r(e),reset(){r=n}});t.Z=o},14142:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(71387);function o(e){if("string"!=typeof e)throw Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},94780:function(e,t,r){"use strict";function n(e,t,r){let n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){let o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}r.d(t,{Z:function(){return n}})},39336:function(e,t,r){"use strict";function n(e,t=166){let r;function n(...o){clearTimeout(r),r=setTimeout(()=>{e.apply(this,o)},t)}return n.clear=()=>{clearTimeout(r)},n}r.d(t,{Z:function(){return n}})},59766:function(e,t,r){"use strict";r.d(t,{P:function(){return o},Z:function(){return function e(t,r,i={clone:!0}){let a=i.clone?(0,n.Z)({},t):t;return o(t)&&o(r)&&Object.keys(r).forEach(n=>{"__proto__"!==n&&(o(r[n])&&n in t&&o(t[n])?a[n]=e(t[n],r[n],i):i.clone?a[n]=o(r[n])?function e(t){if(!o(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[n]):r[n]:a[n]=r[n])}),a}}});var n=r(87462);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},71387:function(e,t,r){"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{o[t]=(0,n.Z)(e,t,r)}),o}},18719:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(67294);function o(e,t){return n.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},82690:function(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{Z:function(){return n}})},74161:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(82690);function o(e){let t=(0,n.Z)(e);return t.defaultView||window}},7960:function(e,t,r){"use strict";function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}r.d(t,{Z:function(){return n}})},19032:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(67294);function o({controlled:e,default:t,name:r,state:o="value"}){let{current:i}=n.useRef(void 0!==e),[a,l]=n.useState(t),s=i?e:a,c=n.useCallback(e=>{i||l(e)},[]);return[s,c]}},73546:function(e,t,r){"use strict";var n=r(67294);let o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;t.Z=o},59948:function(e,t,r){"use strict";var n=r(67294),o=r(73546);t.Z=function(e){let t=n.useRef(e);return(0,o.Z)(()=>{t.current=e}),n.useCallback((...e)=>(0,t.current)(...e),[])}},33703:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),o=r(7960);function i(...e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,o.Z)(e,t)})},e)}},92996:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n,o=r(67294);let i=0,a=(n||(n=r.t(o,2)))["useId".toString()];function l(e){if(void 0!==a){let t=a();return null!=e?e:t}return function(e){let[t,r]=o.useState(e),n=e||t;return o.useEffect(()=>{null==t&&r(`mui-${i+=1}`)},[t]),n}(e)}},99962:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return f}});var o=r(67294);let i=!0,a=!1,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function u(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(){let e=o.useCallback(e=>{if(null!=e){var t;(t=e.ownerDocument).addEventListener("keydown",s,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0)}},[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return i||function(e){let{type:t,tagName:r}=e;return"INPUT"===r&&!!l[t]&&!e.readOnly||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(n),n=window.setTimeout(()=>{a=!1},100),t.current=!1,!0)},ref:e}}},54535:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n,o=r(97685),i=r(67294),a=r(73935),l=r(98924);r(80334);var s=r(42550),c=i.createContext(null),u=r(74902),f=r(8410),d=[],p=r(44958);function h(e){var t=e.match(/^(.*)px$/),r=Number(null==t?void 0:t[1]);return Number.isNaN(r)?function(e){if("undefined"==typeof document)return 0;if(void 0===n){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var r=document.createElement("div"),o=r.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",r.appendChild(t),document.body.appendChild(r);var i=t.offsetWidth;r.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=r.clientWidth),document.body.removeChild(r),n=i-a}return n}():r}var g="rc-util-locker-".concat(Date.now()),m=0,v=!1,y=function(e){return!1!==e&&((0,l.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},b=i.forwardRef(function(e,t){var r,n,b,x,w=e.open,C=e.autoLock,S=e.getContainer,E=(e.debug,e.autoDestroy),k=void 0===E||E,O=e.children,Z=i.useState(w),$=(0,o.Z)(Z,2),P=$[0],j=$[1],A=P||w;i.useEffect(function(){(k||w)&&j(w)},[w,k]);var R=i.useState(function(){return y(S)}),T=(0,o.Z)(R,2),F=T[0],I=T[1];i.useEffect(function(){var e=y(S);I(null!=e?e:null)});var L=function(e,t){var r=i.useState(function(){return(0,l.Z)()?document.createElement("div"):null}),n=(0,o.Z)(r,1)[0],a=i.useRef(!1),s=i.useContext(c),p=i.useState(d),h=(0,o.Z)(p,2),g=h[0],m=h[1],v=s||(a.current?void 0:function(e){m(function(t){return[e].concat((0,u.Z)(t))})});function y(){n.parentElement||document.body.appendChild(n),a.current=!0}function b(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),a.current=!1}return(0,f.Z)(function(){return e?s?s(y):y():b(),b},[e]),(0,f.Z)(function(){g.length&&(g.forEach(function(e){return e()}),m(d))},[g]),[n,v]}(A&&!F,0),_=(0,o.Z)(L,2),N=_[0],B=_[1],M=null!=F?F:N;r=!!(C&&w&&(0,l.Z)()&&(M===N||M===document.body)),n=i.useState(function(){return m+=1,"".concat(g,"_").concat(m)}),b=(0,o.Z)(n,1)[0],(0,f.Z)(function(){if(r){var e=function(e){if("undefined"==typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),r=t.width,n=t.height;return{width:h(r),height:h(n)}}(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,p.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),b)}else(0,p.jL)(b);return function(){(0,p.jL)(b)}},[r,b]);var D=null;O&&(0,s.Yr)(O)&&t&&(D=O.ref);var z=(0,s.x1)(D,t);if(!A||!(0,l.Z)()||void 0===F)return null;var H=!1===M||("boolean"==typeof x&&(v=x),v),U=O;return t&&(U=i.cloneElement(O,{ref:z})),i.createElement(c.Provider,{value:B},H?U:(0,a.createPortal)(U,M))})},577:function(e,t,r){"use strict";r.d(t,{Z:function(){return M}});var n,o=r(97582),i=r(67294),a=(n=i.useEffect,function(e,t){var r=(0,i.useRef)(!1);n(function(){return function(){r.current=!1}},[]),n(function(){if(r.current)return e();r.current=!0},t)}),l=function(e,t){var r=t.manual,n=t.ready,l=void 0===n||n,s=t.defaultParams,c=void 0===s?[]:s,u=t.refreshDeps,f=void 0===u?[]:u,d=t.refreshDepsAction,p=(0,i.useRef)(!1);return p.current=!1,a(function(){!r&&l&&(p.current=!0,e.run.apply(e,(0,o.ev)([],(0,o.CR)(c),!1)))},[l]),a(function(){!p.current&&(r||(p.current=!0,d?d():e.refresh()))},(0,o.ev)([],(0,o.CR)(f),!1)),{onBefore:function(){if(!l)return{stopNow:!0}}}};function s(e,t){var r=(0,i.useRef)({deps:t,obj:void 0,initialized:!1}).current;return(!1===r.initialized||!function(e,t){if(e===t)return!0;for(var r=0;r-1&&(i=setTimeout(function(){d.delete(e)},t)),d.set(e,(0,o.pi)((0,o.pi)({},r),{timer:i}))},h=new Map,g=function(e,t){h.set(e,t),t.then(function(t){return h.delete(e),t}).catch(function(){h.delete(e)})},m={},v=function(e,t){m[e]&&m[e].forEach(function(e){return e(t)})},y=function(e,t){return m[e]||(m[e]=[]),m[e].push(t),function(){var r=m[e].indexOf(t);m[e].splice(r,1)}},b=function(e,t){var r=t.cacheKey,n=t.cacheTime,a=void 0===n?3e5:n,l=t.staleTime,c=void 0===l?0:l,u=t.setCache,m=t.getCache,b=(0,i.useRef)(),x=(0,i.useRef)(),w=function(e,t){u?u(t):p(e,a,t),v(e,t.data)},C=function(e,t){return(void 0===t&&(t=[]),m)?m(t):d.get(e)};return(s(function(){if(r){var t=C(r);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===c||new Date().getTime()-t.time<=c)&&(e.state.loading=!1)),b.current=y(r,function(t){e.setState({data:t})})}},[]),f(function(){var e;null===(e=b.current)||void 0===e||e.call(b)}),r)?{onBefore:function(e){var t=C(r,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===c||new Date().getTime()-t.time<=c?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var n=h.get(r);return n&&n!==x.current||(n=e.apply(void 0,(0,o.ev)([],(0,o.CR)(t),!1)),x.current=n,g(r,n)),{servicePromise:n}},onSuccess:function(t,n){var o;r&&(null===(o=b.current)||void 0===o||o.call(b),w(r,{data:t,params:n,time:new Date().getTime()}),b.current=y(r,function(t){e.setState({data:t})}))},onMutate:function(t){var n;r&&(null===(n=b.current)||void 0===n||n.call(b),w(r,{data:t,params:e.state.params,time:new Date().getTime()}),b.current=y(r,function(t){e.setState({data:t})}))}}:{}},x=r(23279),w=r.n(x),C=function(e,t){var r=t.debounceWait,n=t.debounceLeading,a=t.debounceTrailing,l=t.debounceMaxWait,s=(0,i.useRef)(),c=(0,i.useMemo)(function(){var e={};return void 0!==n&&(e.leading=n),void 0!==a&&(e.trailing=a),void 0!==l&&(e.maxWait=l),e},[n,a,l]);return((0,i.useEffect)(function(){if(r){var t=e.runAsync.bind(e);return s.current=w()(function(e){e()},r,c),e.runAsync=function(){for(var e=[],r=0;r-1&&$.splice(e,1)})}return function(){s()}},[r,a]),f(function(){s()}),{}},A=function(e,t){var r=t.retryInterval,n=t.retryCount,o=(0,i.useRef)(),a=(0,i.useRef)(0),l=(0,i.useRef)(!1);return n?{onBefore:function(){l.current||(a.current=0),l.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,-1===n||a.current<=n){var t=null!=r?r:Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){l.current=!0,e.refresh()},t)}else a.current=0},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current)}}:{}},R=r(23493),T=r.n(R),F=function(e,t){var r=t.throttleWait,n=t.throttleLeading,a=t.throttleTrailing,l=(0,i.useRef)(),s={};return(void 0!==n&&(s.leading=n),void 0!==a&&(s.trailing=a),(0,i.useEffect)(function(){if(r){var t=e.runAsync.bind(e);return l.current=T()(function(e){e()},r,s),e.runAsync=function(){for(var e=[],r=0;r{if(m(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;d(t.offsetHeight+8),h(t.offsetWidth)}),t=setInterval(()=>{var n;let o=r?`.${r(y)}`:`.${y}-dropdown`,i=null===(n=u.current)||void 0===n?void 0:n.querySelector(o);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let b=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});return i&&(b=i(b)),o.createElement("div",{ref:u,style:{paddingBottom:f,position:"relative",minWidth:p}},o.createElement(e,Object.assign({},b)))})}},69760:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(97937),o=r(67294);function i(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.createElement(n.Z,null),a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l="boolean"==typeof e?e:void 0===t?!!a:!1!==t&&null!==t;if(!l)return[!1,null];let s="boolean"==typeof t||null==t?i:t;return[!0,r?r(s):s]}},33603:function(e,t,r){"use strict";r.d(t,{m:function(){return l}});let n=()=>({height:0,opacity:0}),o=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},i=e=>({height:e?e.offsetHeight:0}),a=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,l=(e,t,r)=>void 0!==r?r:`${e}-${t}`;t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:`${e}-motion-collapse`,onAppearStart:n,onEnterStart:n,onAppearActive:o,onEnterActive:o,onLeaveStart:i,onLeaveActive:n,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500}}},96159:function(e,t,r){"use strict";r.d(t,{M2:function(){return a},Tm:function(){return l},l$:function(){return i}});var n,o=r(67294);let{isValidElement:i}=n||(n=r.t(o,2));function a(e){return e&&i(e)&&e.type===o.Fragment}function l(e,t){return i(e)?o.cloneElement(e,"function"==typeof t?t(e.props||{}):t):e}},31808:function(e,t,r){"use strict";let n;r.d(t,{fk:function(){return a},jD:function(){return i}});var o=r(98924);let i=()=>(0,o.Z)()&&window.document.documentElement,a=()=>{if(!i())return!1;if(void 0!==n)return n;let e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div"));let t=document.createElement("div");return t.style.position="absolute",t.style.zIndex="-9999",t.appendChild(e),document.body.appendChild(t),n=1===e.scrollHeight,document.body.removeChild(t),n}},80029:function(e,t,r){"use strict";r.d(t,{n:function(){return eg},Z:function(){return ev}});var n=r(67294),o=r(94184),i=r.n(o),a=r(98423),l=r(42550),s=r(5110),c=r(53124),u=r(96159),f=r(67968);let d=e=>{let{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:`box-shadow 0.3s ${e.motionEaseInOut},opacity 0.35s ${e.motionEaseInOut}`}}}}};var p=(0,f.Z)("Wave",e=>[d(e)]),h=r(66680),g=r(75164),m=r(82225),v=r(38135);function y(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){let t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!t||!t[1]||!t[2]||!t[3]||!(t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}let b="ant-wave-target";function x(e){return Number.isNaN(e)?0:e}let w=e=>{let{className:t,target:r,component:o}=e,a=n.useRef(null),[l,s]=n.useState(null),[c,u]=n.useState([]),[f,d]=n.useState(0),[p,h]=n.useState(0),[w,C]=n.useState(0),[S,E]=n.useState(0),[k,O]=n.useState(!1),Z={left:f,top:p,width:w,height:S,borderRadius:c.map(e=>`${e}px`).join(" ")};function $(){let e=getComputedStyle(r);s(function(e){let{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return y(t)?t:y(r)?r:y(n)?n:null}(r));let t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;d(t?r.offsetLeft:x(-parseFloat(n))),h(t?r.offsetTop:x(-parseFloat(o))),C(r.offsetWidth),E(r.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([i,a,c,l].map(e=>x(parseFloat(e))))}if(l&&(Z["--wave-color"]=l),n.useEffect(()=>{if(r){let e;let t=(0,g.Z)(()=>{$(),O(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver($)).observe(r),()=>{g.Z.cancel(t),null==e||e.disconnect()}}},[]),!k)return null;let P=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(b));return n.createElement(m.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var r;if(t.deadline||"opacity"===t.propertyName){let e=null===(r=a.current)||void 0===r?void 0:r.parentElement;(0,v.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:r}=e;return n.createElement("div",{ref:a,className:i()(t,{"wave-quick":P},r),style:Z})})};var C=(e,t)=>{var r;let{component:o}=t;if("Checkbox"===o&&!(null===(r=e.querySelector("input"))||void 0===r?void 0:r.checked))return;let i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),(0,v.s)(n.createElement(w,Object.assign({},t,{target:e})),i)},S=r(25976),E=e=>{let{children:t,disabled:r,component:o}=e,{getPrefixCls:a}=(0,n.useContext)(c.E_),f=(0,n.useRef)(null),d=a("wave"),[,m]=p(d),v=function(e,t,r){let{wave:o}=n.useContext(c.E_),[,i,a]=(0,S.Z)(),l=(0,h.Z)(n=>{let l=e.current;if((null==o?void 0:o.disabled)||!l)return;let s=l.querySelector(`.${b}`)||l,{showEffect:c}=o||{};(c||C)(s,{className:t,token:i,component:r,event:n,hashId:a})}),s=n.useRef();return e=>{g.Z.cancel(s.current),s.current=(0,g.Z)(()=>{l(e)})}}(f,i()(d,m),o);if(n.useEffect(()=>{let e=f.current;if(!e||1!==e.nodeType||r)return;let t=t=>{!(0,s.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||v(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[r]),!n.isValidElement(t))return null!=t?t:null;let y=(0,l.Yr)(t)?(0,l.sQ)(t.ref,f):f;return(0,u.Tm)(t,{ref:y})},k=r(98866),O=r(98675),Z=r(4173),$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let P=n.createContext(void 0),j=/^[\u4e00-\u9fa5]{2}$/,A=j.test.bind(j);function R(e){return"string"==typeof e}function T(e){return"text"===e||"link"===e}let F=(0,n.forwardRef)((e,t)=>{let{className:r,style:o,children:a,prefixCls:l}=e,s=i()(`${l}-icon`,r);return n.createElement("span",{ref:t,className:s,style:o},a)});var I=r(50888);let L=(0,n.forwardRef)((e,t)=>{let{prefixCls:r,className:o,style:a,iconClassName:l}=e,s=i()(`${r}-loading-icon`,o);return n.createElement(F,{prefixCls:r,className:s,style:a,ref:t},n.createElement(I.Z,{className:l}))}),_=()=>({width:0,opacity:0,transform:"scale(0)"}),N=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var B=e=>{let{prefixCls:t,loading:r,existIcon:o,className:i,style:a}=e;return o?n.createElement(L,{prefixCls:t,className:i,style:a}):n.createElement(m.ZP,{visible:!!r,motionName:`${t}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:_,onAppearActive:N,onEnterStart:_,onEnterActive:N,onLeaveStart:N,onLeaveActive:_},(e,r)=>{let{className:o,style:l}=e;return n.createElement(L,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:r,iconClassName:o})})},M=r(14747),D=r(45503);let z=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var H=e=>{let{componentCls:t,fontSize:r,lineWidth:n,colorPrimaryHover:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-n,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover, &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},z(`${t}-primary`,o),z(`${t}-danger`,i)]}};let W=e=>{let{componentCls:t,iconCls:r,buttonFontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,M.Qy)(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},U=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),V=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),q=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),K=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),G=(e,t,r,n,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:r||void 0,boxShadow:"none"},U(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:o||void 0}})}),J=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},K(e))}),X=e=>Object.assign({},J(e)),Y=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Q=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},X(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),U(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),G(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},U(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),G(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),J(e))}),ee=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},X(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),U(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),G(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},U(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),G(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),J(e))}),et=e=>Object.assign(Object.assign({},Q(e)),{borderStyle:"dashed"}),er=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},U(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),Y(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},U(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Y(e))}),en=e=>Object.assign(Object.assign(Object.assign({},U(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Y(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Y(e)),U(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),eo=e=>{let{componentCls:t}=e;return{[`${t}-default`]:Q(e),[`${t}-primary`]:ee(e),[`${t}-dashed`]:et(e),[`${t}-link`]:er(e),[`${t}-text`]:en(e),[`${t}-ghost`]:G(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ei=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:r,controlHeight:n,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:s,iconCls:c}=e,u=`${r}-icon-only`;return[{[`${r}${t}`]:{fontSize:o,height:n,padding:`${Math.max(0,(n-o*i)/2-a)}px ${s-a}px`,borderRadius:l,[`&${u}`]:{width:n,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:V(e)},{[`${r}${r}-round${t}`]:q(e)}]},ea=e=>ei(e),el=e=>{let t=(0,D.TS)(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return ei(t,`${e.componentCls}-sm`)},es=e=>{let t=(0,D.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return ei(t,`${e.componentCls}-lg`)},ec=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},eu=e=>{let{controlTmpOutline:t,paddingContentHorizontal:r}=e,n=(0,D.TS)(e,{colorOutlineDefault:t,buttonPaddingHorizontal:r,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return n};var ef=(0,f.Z)("Button",e=>{let t=eu(e);return[W(t),el(t),ea(t),es(t),ec(t),eo(t),H(t)]}),ed=r(80110),ep=(0,f.b)(["Button","compact"],e=>{let t=eu(e);return[(0,ed.c)(t),function(e){var t;let r=`${e.componentCls}-compact-vertical`;return{[r]:Object.assign(Object.assign({},{[`&-item:not(${r}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(t=e.componentCls,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(t)]}),eh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function eg(e){return"danger"===e?{danger:!0}:{type:e}}let em=(0,n.forwardRef)((e,t)=>{var r,o;let{loading:s=!1,prefixCls:f,type:d="default",danger:p,shape:h="default",size:g,styles:m,disabled:v,className:y,rootClassName:b,children:x,icon:w,ghost:C=!1,block:S=!1,htmlType:$="button",classNames:j,style:I={}}=e,L=eh(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:_,autoInsertSpaceInButton:N,direction:M,button:D}=(0,n.useContext)(c.E_),z=_("btn",f),[H,W]=ef(z),U=(0,n.useContext)(k.Z),V=null!=v?v:U,q=(0,n.useContext)(P),K=(0,n.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay,r=!Number.isNaN(t)&&"number"==typeof t;return{loading:!1,delay:r?t:0}}return{loading:!!e,delay:0}})(s),[s]),[G,J]=(0,n.useState)(K.loading),[X,Y]=(0,n.useState)(!1),Q=(0,n.createRef)(),ee=(0,l.sQ)(t,Q),et=1===n.Children.count(x)&&!w&&!T(d);(0,n.useEffect)(()=>{let e=null;return K.delay>0?e=setTimeout(()=>{e=null,J(!0)},K.delay):J(K.loading),function(){e&&(clearTimeout(e),e=null)}},[K]),(0,n.useEffect)(()=>{if(!ee||!ee.current||!1===N)return;let e=ee.current.textContent;et&&A(e)?X||Y(!0):X&&Y(!1)},[ee]);let er=t=>{let{onClick:r}=e;if(G||V){t.preventDefault();return}null==r||r(t)},en=!1!==N,{compactSize:eo,compactItemClassnames:ei}=(0,Z.ri)(z,M),ea=(0,O.Z)(e=>{var t,r;return null!==(r=null!==(t=null!=g?g:eo)&&void 0!==t?t:q)&&void 0!==r?r:e}),el=ea&&({large:"lg",small:"sm",middle:void 0})[ea]||"",es=G?"loading":w,ec=(0,a.Z)(L,["navigate"]),eu=i()(z,W,{[`${z}-${h}`]:"default"!==h&&h,[`${z}-${d}`]:d,[`${z}-${el}`]:el,[`${z}-icon-only`]:!x&&0!==x&&!!es,[`${z}-background-ghost`]:C&&!T(d),[`${z}-loading`]:G,[`${z}-two-chinese-chars`]:X&&en&&!G,[`${z}-block`]:S,[`${z}-dangerous`]:!!p,[`${z}-rtl`]:"rtl"===M},ei,y,b,null==D?void 0:D.className),ed=Object.assign(Object.assign({},null==D?void 0:D.style),I),eg=i()(null==j?void 0:j.icon,null===(r=null==D?void 0:D.classNames)||void 0===r?void 0:r.icon),em=Object.assign(Object.assign({},(null==m?void 0:m.icon)||{}),(null===(o=null==D?void 0:D.styles)||void 0===o?void 0:o.icon)||{}),ev=w&&!G?n.createElement(F,{prefixCls:z,className:eg,style:em},w):n.createElement(B,{existIcon:!!w,prefixCls:z,loading:!!G}),ey=x||0===x?function(e,t){let r=!1,o=[];return n.Children.forEach(e,e=>{let t=typeof e,n="string"===t||"number"===t;if(r&&n){let t=o.length-1,r=o[t];o[t]=`${r}${e}`}else o.push(e);r=n}),n.Children.map(o,e=>(function(e,t){if(null==e)return;let r=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&R(e.type)&&A(e.props.children)?(0,u.Tm)(e,{children:e.props.children.split("").join(r)}):R(e)?A(e)?n.createElement("span",null,e.split("").join(r)):n.createElement("span",null,e):(0,u.M2)(e)?n.createElement("span",null,e):e})(e,t))}(x,et&&en):null;if(void 0!==ec.href)return H(n.createElement("a",Object.assign({},ec,{className:i()(eu,{[`${z}-disabled`]:V}),style:ed,onClick:er,ref:ee}),ev,ey));let eb=n.createElement("button",Object.assign({},L,{type:$,className:eu,style:ed,onClick:er,disabled:V,ref:ee}),ev,ey,ei&&n.createElement(ep,{key:"compact",prefixCls:z}));return T(d)||(eb=n.createElement(E,{component:"Button",disabled:!!G},eb)),H(eb)});em.Group=e=>{let{getPrefixCls:t,direction:r}=n.useContext(c.E_),{prefixCls:o,size:a,className:l}=e,s=$(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,f]=(0,S.Z)(),d="";switch(a){case"large":d="lg";break;case"small":d="sm"}let p=i()(u,{[`${u}-${d}`]:d,[`${u}-rtl`]:"rtl"===r},l,f);return n.createElement(P.Provider,{value:a},n.createElement("div",Object.assign({},s,{className:p})))},em.__ANT_BUTTON=!0;var ev=em},71577:function(e,t,r){"use strict";var n=r(80029);t.ZP=n.Z},98866:function(e,t,r){"use strict";r.d(t,{n:function(){return i}});var n=r(67294);let o=n.createContext(!1),i=e=>{let{children:t,disabled:r}=e,i=n.useContext(o);return n.createElement(o.Provider,{value:null!=r?r:i},t)};t.Z=o},97647:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});var n=r(67294);let o=n.createContext(void 0),i=e=>{let{children:t,size:r}=e,i=n.useContext(o);return n.createElement(o.Provider,{value:r||i},t)};t.Z=o},53124:function(e,t,r){"use strict";r.d(t,{E_:function(){return i},oR:function(){return o}});var n=r(67294);let o="anticon",i=n.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:a}=i},98675:function(e,t,r){"use strict";var n=r(67294),o=r(97647);t.Z=e=>{let t=n.useContext(o.Z),r=n.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t]);return r}},46735:function(e,t,r){"use strict";let n,o,i;r.d(t,{ZP:function(){return N},w6:function(){return I}});var a=r(23183),l=r(63017),s=r(56982),c=r(8880),u=r(67294),f=r(37920),d=r(83008),p=r(76745),h=e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;u.useEffect(()=>{let e=(0,d.f)(t&&t.Modal);return e},[t]);let o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(p.Z.Provider,{value:o},r)},g=r(88526),m=r(33083),v=r(2790),y=r(53124),b=r(16397),x=r(10274),w=r(98924),C=r(44958);let S=`-ant-${Date.now()}-${Math.random()}`;var E=r(98866),k=r(97647),O=r(91881),Z=r(82225),$=r(25976);function P(e){let{children:t}=e,[,r]=(0,$.Z)(),{motion:n}=r,o=u.useRef(!1);return(o.current=o.current||!1===n,o.current)?u.createElement(Z.zt,{motion:n},t):t}var j=r(53269),A=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let R=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function T(){return n||"ant"}function F(){return o||y.oR}let I=()=>({getPrefixCls:(e,t)=>t||(e?`${T()}-${e}`:T()),getIconPrefixCls:F,getRootPrefixCls:()=>n||T(),getTheme:()=>i}),L=e=>{let{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:d,locale:p,componentSize:b,direction:x,space:w,virtual:C,dropdownMatchSelectWidth:S,popupMatchSelectWidth:Z,popupOverflow:$,legacyLocale:T,parentContext:F,iconPrefixCls:I,theme:L,componentDisabled:_,segmented:N,statistic:B,spin:M,calendar:D,carousel:z,cascader:H,collapse:W,typography:U,checkbox:V,descriptions:q,divider:K,drawer:G,skeleton:J,steps:X,image:Y,layout:Q,list:ee,mentions:et,modal:er,progress:en,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,input:ec,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:eg,avatar:em,message:ev,tag:ey,table:eb,card:ex,tabs:ew,timeline:eC,timePicker:eS,upload:eE,notification:ek,tree:eO,colorPicker:eZ,datePicker:e$,wave:eP}=e,ej=u.useCallback((t,r)=>{let{prefixCls:n}=e;if(r)return r;let o=n||F.getPrefixCls("");return t?`${o}-${t}`:o},[F.getPrefixCls,e.prefixCls]),eA=I||F.iconPrefixCls||y.oR,eR=eA!==F.iconPrefixCls,eT=r||F.csp,eF=(0,j.Z)(eA,eT),eI=function(e,t){let r=e||{},n=!1!==r.inherit&&t?t:m.u_;return(0,s.Z)(()=>{if(!e)return t;let o=Object.assign({},n.components);return Object.keys(e.components||{}).forEach(t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])}),Object.assign(Object.assign(Object.assign({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:o})},[r,n],(e,t)=>e.some((e,r)=>{let n=t[r];return!(0,O.Z)(e,n,!0)}))}(L,F.theme),eL={csp:eT,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:p||T,direction:x,space:w,virtual:C,popupMatchSelectWidth:null!=Z?Z:S,popupOverflow:$,getPrefixCls:ej,iconPrefixCls:eA,theme:eI,segmented:N,statistic:B,spin:M,calendar:D,carousel:z,cascader:H,collapse:W,typography:U,checkbox:V,descriptions:q,divider:K,drawer:G,skeleton:J,steps:X,image:Y,input:ec,layout:Q,list:ee,mentions:et,modal:er,progress:en,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:eg,avatar:em,message:ev,tag:ey,table:eb,card:ex,tabs:ew,timeline:eC,timePicker:eS,upload:eE,notification:ek,tree:eO,colorPicker:eZ,datePicker:e$,wave:eP},e_=Object.assign({},F);Object.keys(eL).forEach(e=>{void 0!==eL[e]&&(e_[e]=eL[e])}),R.forEach(t=>{let r=e[t];r&&(e_[t]=r)});let eN=(0,s.Z)(()=>e_,e_,(e,t)=>{let r=Object.keys(e),n=Object.keys(t);return r.length!==n.length||r.some(r=>e[r]!==t[r])}),eB=u.useMemo(()=>({prefixCls:eA,csp:eT}),[eA,eT]),eM=eR?eF(t):t,eD=u.useMemo(()=>{var e,t,r,n;return(0,c.T)((null===(e=g.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(r=null===(t=eN.locale)||void 0===t?void 0:t.Form)||void 0===r?void 0:r.defaultValidateMessages)||{},(null===(n=eN.form)||void 0===n?void 0:n.validateMessages)||{},(null==d?void 0:d.validateMessages)||{})},[eN,null==d?void 0:d.validateMessages]);Object.keys(eD).length>0&&(eM=u.createElement(f.Z.Provider,{value:eD},t)),p&&(eM=u.createElement(h,{locale:p,_ANT_MARK__:"internalMark"},eM)),(eA||eT)&&(eM=u.createElement(l.Z.Provider,{value:eB},eM)),b&&(eM=u.createElement(k.q,{size:b},eM)),eM=u.createElement(P,null,eM);let ez=u.useMemo(()=>{let e=eI||{},{algorithm:t,token:r,components:n}=e,o=A(e,["algorithm","token","components"]),i=t&&(!Array.isArray(t)||t.length>0)?(0,a.jG)(t):m.uH,l={};return Object.entries(n||{}).forEach(e=>{let[t,r]=e,n=Object.assign({},r);"algorithm"in n&&(!0===n.algorithm?n.theme=i:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=(0,a.jG)(n.algorithm)),delete n.algorithm),l[t]=n}),Object.assign(Object.assign({},o),{theme:i,token:Object.assign(Object.assign({},v.Z),r),components:l})},[eI]);return L&&(eM=u.createElement(m.Mj.Provider,{value:ez},eM)),void 0!==_&&(eM=u.createElement(E.n,{disabled:_},eM)),u.createElement(y.E_.Provider,{value:eN},eM)},_=e=>{let t=u.useContext(y.E_),r=u.useContext(p.Z);return u.createElement(L,Object.assign({parentContext:t,legacyLocale:r},e))};_.ConfigContext=y.E_,_.SizeContext=k.Z,_.config=e=>{let{prefixCls:t,iconPrefixCls:r,theme:a}=e;void 0!==t&&(n=t),void 0!==r&&(o=r),a&&(Object.keys(a).some(e=>e.endsWith("Color"))?function(e,t){let r=function(e,t){let r={},n=(e,t)=>{let r=e.clone();return(r=(null==t?void 0:t(r))||r).toRgbString()},o=(e,t)=>{let o=new x.C(e),i=(0,b.R_)(o.toRgbString());r[`${t}-color`]=n(o),r[`${t}-color-disabled`]=i[1],r[`${t}-color-hover`]=i[4],r[`${t}-color-active`]=i[6],r[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),r[`${t}-color-deprecated-bg`]=i[0],r[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),i=(0,b.R_)(e.toRgbString());i.forEach((e,t)=>{r[`primary-${t+1}`]=e}),r["primary-color-deprecated-l-35"]=n(e,e=>e.lighten(35)),r["primary-color-deprecated-l-20"]=n(e,e=>e.lighten(20)),r["primary-color-deprecated-t-20"]=n(e,e=>e.tint(20)),r["primary-color-deprecated-t-50"]=n(e,e=>e.tint(50)),r["primary-color-deprecated-f-12"]=n(e,e=>e.setAlpha(.12*e.getAlpha()));let a=new x.C(i[0]);r["primary-color-active-deprecated-f-30"]=n(a,e=>e.setAlpha(.3*e.getAlpha())),r["primary-color-active-deprecated-d-02"]=n(a,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let i=Object.keys(r).map(t=>`--${e}-${t}: ${r[t]};`);return` + &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},z(`${t}-primary`,o),z(`${t}-danger`,i)]}};let U=e=>{let{componentCls:t,iconCls:r,buttonFontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,M.Qy)(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},W=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),V=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),q=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),K=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),G=(e,t,r,n,o,i,a)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,backgroundColor:"transparent",borderColor:r||void 0,boxShadow:"none"},W(e,Object.assign({backgroundColor:"transparent"},i),Object.assign({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:o||void 0}})}),J=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},K(e))}),X=e=>Object.assign({},J(e)),Y=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Q=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},X(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),W(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),G(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},W(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),G(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),J(e))}),ee=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},X(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),W(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),G(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},W(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),G(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),J(e))}),et=e=>Object.assign(Object.assign({},Q(e)),{borderStyle:"dashed"}),er=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},W(e.componentCls,{color:e.colorLinkHover},{color:e.colorLinkActive})),Y(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},W(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Y(e))}),en=e=>Object.assign(Object.assign(Object.assign({},W(e.componentCls,{color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Y(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Y(e)),W(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),eo=e=>{let{componentCls:t}=e;return{[`${t}-default`]:Q(e),[`${t}-primary`]:ee(e),[`${t}-dashed`]:et(e),[`${t}-link`]:er(e),[`${t}-text`]:en(e),[`${t}-ghost`]:G(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},ei=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:r,controlHeight:n,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:s,iconCls:c}=e,u=`${r}-icon-only`;return[{[`${r}${t}`]:{fontSize:o,height:n,padding:`${Math.max(0,(n-o*i)/2-a)}px ${s-a}px`,borderRadius:l,[`&${u}`]:{width:n,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:V(e)},{[`${r}${r}-round${t}`]:q(e)}]},ea=e=>ei(e),el=e=>{let t=(0,D.TS)(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return ei(t,`${e.componentCls}-sm`)},es=e=>{let t=(0,D.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return ei(t,`${e.componentCls}-lg`)},ec=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},eu=e=>{let{controlTmpOutline:t,paddingContentHorizontal:r}=e,n=(0,D.TS)(e,{colorOutlineDefault:t,buttonPaddingHorizontal:r,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return n};var ef=(0,f.Z)("Button",e=>{let t=eu(e);return[U(t),el(t),ea(t),es(t),ec(t),eo(t),H(t)]}),ed=r(80110),ep=(0,f.b)(["Button","compact"],e=>{let t=eu(e);return[(0,ed.c)(t),function(e){var t;let r=`${e.componentCls}-compact-vertical`;return{[r]:Object.assign(Object.assign({},{[`&-item:not(${r}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(t=e.componentCls,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(t)]}),eh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function eg(e){return"danger"===e?{danger:!0}:{type:e}}let em=(0,n.forwardRef)((e,t)=>{var r,o;let{loading:s=!1,prefixCls:f,type:d="default",danger:p,shape:h="default",size:g,styles:m,disabled:v,className:y,rootClassName:b,children:x,icon:w,ghost:C=!1,block:S=!1,htmlType:$="button",classNames:j,style:I={}}=e,L=eh(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:_,autoInsertSpaceInButton:N,direction:M,button:D}=(0,n.useContext)(c.E_),z=_("btn",f),[H,U]=ef(z),W=(0,n.useContext)(k.Z),V=null!=v?v:W,q=(0,n.useContext)(P),K=(0,n.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay,r=!Number.isNaN(t)&&"number"==typeof t;return{loading:!1,delay:r?t:0}}return{loading:!!e,delay:0}})(s),[s]),[G,J]=(0,n.useState)(K.loading),[X,Y]=(0,n.useState)(!1),Q=(0,n.createRef)(),ee=(0,l.sQ)(t,Q),et=1===n.Children.count(x)&&!w&&!T(d);(0,n.useEffect)(()=>{let e=null;return K.delay>0?e=setTimeout(()=>{e=null,J(!0)},K.delay):J(K.loading),function(){e&&(clearTimeout(e),e=null)}},[K]),(0,n.useEffect)(()=>{if(!ee||!ee.current||!1===N)return;let e=ee.current.textContent;et&&A(e)?X||Y(!0):X&&Y(!1)},[ee]);let er=t=>{let{onClick:r}=e;if(G||V){t.preventDefault();return}null==r||r(t)},en=!1!==N,{compactSize:eo,compactItemClassnames:ei}=(0,Z.ri)(z,M),ea=(0,O.Z)(e=>{var t,r;return null!==(r=null!==(t=null!=g?g:eo)&&void 0!==t?t:q)&&void 0!==r?r:e}),el=ea&&({large:"lg",small:"sm",middle:void 0})[ea]||"",es=G?"loading":w,ec=(0,a.Z)(L,["navigate"]),eu=i()(z,U,{[`${z}-${h}`]:"default"!==h&&h,[`${z}-${d}`]:d,[`${z}-${el}`]:el,[`${z}-icon-only`]:!x&&0!==x&&!!es,[`${z}-background-ghost`]:C&&!T(d),[`${z}-loading`]:G,[`${z}-two-chinese-chars`]:X&&en&&!G,[`${z}-block`]:S,[`${z}-dangerous`]:!!p,[`${z}-rtl`]:"rtl"===M},ei,y,b,null==D?void 0:D.className),ed=Object.assign(Object.assign({},null==D?void 0:D.style),I),eg=i()(null==j?void 0:j.icon,null===(r=null==D?void 0:D.classNames)||void 0===r?void 0:r.icon),em=Object.assign(Object.assign({},(null==m?void 0:m.icon)||{}),(null===(o=null==D?void 0:D.styles)||void 0===o?void 0:o.icon)||{}),ev=w&&!G?n.createElement(F,{prefixCls:z,className:eg,style:em},w):n.createElement(B,{existIcon:!!w,prefixCls:z,loading:!!G}),ey=x||0===x?function(e,t){let r=!1,o=[];return n.Children.forEach(e,e=>{let t=typeof e,n="string"===t||"number"===t;if(r&&n){let t=o.length-1,r=o[t];o[t]=`${r}${e}`}else o.push(e);r=n}),n.Children.map(o,e=>(function(e,t){if(null==e)return;let r=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&R(e.type)&&A(e.props.children)?(0,u.Tm)(e,{children:e.props.children.split("").join(r)}):R(e)?A(e)?n.createElement("span",null,e.split("").join(r)):n.createElement("span",null,e):(0,u.M2)(e)?n.createElement("span",null,e):e})(e,t))}(x,et&&en):null;if(void 0!==ec.href)return H(n.createElement("a",Object.assign({},ec,{className:i()(eu,{[`${z}-disabled`]:V}),style:ed,onClick:er,ref:ee}),ev,ey));let eb=n.createElement("button",Object.assign({},L,{type:$,className:eu,style:ed,onClick:er,disabled:V,ref:ee}),ev,ey,ei&&n.createElement(ep,{key:"compact",prefixCls:z}));return T(d)||(eb=n.createElement(E,{component:"Button",disabled:!!G},eb)),H(eb)});em.Group=e=>{let{getPrefixCls:t,direction:r}=n.useContext(c.E_),{prefixCls:o,size:a,className:l}=e,s=$(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,f]=(0,S.Z)(),d="";switch(a){case"large":d="lg";break;case"small":d="sm"}let p=i()(u,{[`${u}-${d}`]:d,[`${u}-rtl`]:"rtl"===r},l,f);return n.createElement(P.Provider,{value:a},n.createElement("div",Object.assign({},s,{className:p})))},em.__ANT_BUTTON=!0;var ev=em},71577:function(e,t,r){"use strict";var n=r(80029);t.ZP=n.Z},98866:function(e,t,r){"use strict";r.d(t,{n:function(){return i}});var n=r(67294);let o=n.createContext(!1),i=e=>{let{children:t,disabled:r}=e,i=n.useContext(o);return n.createElement(o.Provider,{value:null!=r?r:i},t)};t.Z=o},97647:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});var n=r(67294);let o=n.createContext(void 0),i=e=>{let{children:t,size:r}=e,i=n.useContext(o);return n.createElement(o.Provider,{value:r||i},t)};t.Z=o},53124:function(e,t,r){"use strict";r.d(t,{E_:function(){return i},oR:function(){return o}});var n=r(67294);let o="anticon",i=n.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:a}=i},98675:function(e,t,r){"use strict";var n=r(67294),o=r(97647);t.Z=e=>{let t=n.useContext(o.Z),r=n.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t]);return r}},46735:function(e,t,r){"use strict";let n,o,i;r.d(t,{ZP:function(){return N},w6:function(){return I}});var a=r(23183),l=r(63017),s=r(56982),c=r(8880),u=r(67294),f=r(37920),d=r(83008),p=r(76745),h=e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;u.useEffect(()=>{let e=(0,d.f)(t&&t.Modal);return e},[t]);let o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(p.Z.Provider,{value:o},r)},g=r(88526),m=r(33083),v=r(2790),y=r(53124),b=r(16397),x=r(10274),w=r(98924),C=r(44958);let S=`-ant-${Date.now()}-${Math.random()}`;var E=r(98866),k=r(97647),O=r(91881),Z=r(82225),$=r(25976);function P(e){let{children:t}=e,[,r]=(0,$.Z)(),{motion:n}=r,o=u.useRef(!1);return(o.current=o.current||!1===n,o.current)?u.createElement(Z.zt,{motion:n},t):t}var j=r(53269),A=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let R=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function T(){return n||"ant"}function F(){return o||y.oR}let I=()=>({getPrefixCls:(e,t)=>t||(e?`${T()}-${e}`:T()),getIconPrefixCls:F,getRootPrefixCls:()=>n||T(),getTheme:()=>i}),L=e=>{let{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:d,locale:p,componentSize:b,direction:x,space:w,virtual:C,dropdownMatchSelectWidth:S,popupMatchSelectWidth:Z,popupOverflow:$,legacyLocale:T,parentContext:F,iconPrefixCls:I,theme:L,componentDisabled:_,segmented:N,statistic:B,spin:M,calendar:D,carousel:z,cascader:H,collapse:U,typography:W,checkbox:V,descriptions:q,divider:K,drawer:G,skeleton:J,steps:X,image:Y,layout:Q,list:ee,mentions:et,modal:er,progress:en,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,input:ec,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:eg,avatar:em,message:ev,tag:ey,table:eb,card:ex,tabs:ew,timeline:eC,timePicker:eS,upload:eE,notification:ek,tree:eO,colorPicker:eZ,datePicker:e$,wave:eP}=e,ej=u.useCallback((t,r)=>{let{prefixCls:n}=e;if(r)return r;let o=n||F.getPrefixCls("");return t?`${o}-${t}`:o},[F.getPrefixCls,e.prefixCls]),eA=I||F.iconPrefixCls||y.oR,eR=eA!==F.iconPrefixCls,eT=r||F.csp,eF=(0,j.Z)(eA,eT),eI=function(e,t){let r=e||{},n=!1!==r.inherit&&t?t:m.u_;return(0,s.Z)(()=>{if(!e)return t;let o=Object.assign({},n.components);return Object.keys(e.components||{}).forEach(t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])}),Object.assign(Object.assign(Object.assign({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:o})},[r,n],(e,t)=>e.some((e,r)=>{let n=t[r];return!(0,O.Z)(e,n,!0)}))}(L,F.theme),eL={csp:eT,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:p||T,direction:x,space:w,virtual:C,popupMatchSelectWidth:null!=Z?Z:S,popupOverflow:$,getPrefixCls:ej,iconPrefixCls:eA,theme:eI,segmented:N,statistic:B,spin:M,calendar:D,carousel:z,cascader:H,collapse:U,typography:W,checkbox:V,descriptions:q,divider:K,drawer:G,skeleton:J,steps:X,image:Y,input:ec,layout:Q,list:ee,mentions:et,modal:er,progress:en,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:eg,avatar:em,message:ev,tag:ey,table:eb,card:ex,tabs:ew,timeline:eC,timePicker:eS,upload:eE,notification:ek,tree:eO,colorPicker:eZ,datePicker:e$,wave:eP},e_=Object.assign({},F);Object.keys(eL).forEach(e=>{void 0!==eL[e]&&(e_[e]=eL[e])}),R.forEach(t=>{let r=e[t];r&&(e_[t]=r)});let eN=(0,s.Z)(()=>e_,e_,(e,t)=>{let r=Object.keys(e),n=Object.keys(t);return r.length!==n.length||r.some(r=>e[r]!==t[r])}),eB=u.useMemo(()=>({prefixCls:eA,csp:eT}),[eA,eT]),eM=eR?eF(t):t,eD=u.useMemo(()=>{var e,t,r,n;return(0,c.T)((null===(e=g.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(r=null===(t=eN.locale)||void 0===t?void 0:t.Form)||void 0===r?void 0:r.defaultValidateMessages)||{},(null===(n=eN.form)||void 0===n?void 0:n.validateMessages)||{},(null==d?void 0:d.validateMessages)||{})},[eN,null==d?void 0:d.validateMessages]);Object.keys(eD).length>0&&(eM=u.createElement(f.Z.Provider,{value:eD},t)),p&&(eM=u.createElement(h,{locale:p,_ANT_MARK__:"internalMark"},eM)),(eA||eT)&&(eM=u.createElement(l.Z.Provider,{value:eB},eM)),b&&(eM=u.createElement(k.q,{size:b},eM)),eM=u.createElement(P,null,eM);let ez=u.useMemo(()=>{let e=eI||{},{algorithm:t,token:r,components:n}=e,o=A(e,["algorithm","token","components"]),i=t&&(!Array.isArray(t)||t.length>0)?(0,a.jG)(t):m.uH,l={};return Object.entries(n||{}).forEach(e=>{let[t,r]=e,n=Object.assign({},r);"algorithm"in n&&(!0===n.algorithm?n.theme=i:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=(0,a.jG)(n.algorithm)),delete n.algorithm),l[t]=n}),Object.assign(Object.assign({},o),{theme:i,token:Object.assign(Object.assign({},v.Z),r),components:l})},[eI]);return L&&(eM=u.createElement(m.Mj.Provider,{value:ez},eM)),void 0!==_&&(eM=u.createElement(E.n,{disabled:_},eM)),u.createElement(y.E_.Provider,{value:eN},eM)},_=e=>{let t=u.useContext(y.E_),r=u.useContext(p.Z);return u.createElement(L,Object.assign({parentContext:t,legacyLocale:r},e))};_.ConfigContext=y.E_,_.SizeContext=k.Z,_.config=e=>{let{prefixCls:t,iconPrefixCls:r,theme:a}=e;void 0!==t&&(n=t),void 0!==r&&(o=r),a&&(Object.keys(a).some(e=>e.endsWith("Color"))?function(e,t){let r=function(e,t){let r={},n=(e,t)=>{let r=e.clone();return(r=(null==t?void 0:t(r))||r).toRgbString()},o=(e,t)=>{let o=new x.C(e),i=(0,b.R_)(o.toRgbString());r[`${t}-color`]=n(o),r[`${t}-color-disabled`]=i[1],r[`${t}-color-hover`]=i[4],r[`${t}-color-active`]=i[6],r[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),r[`${t}-color-deprecated-bg`]=i[0],r[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),i=(0,b.R_)(e.toRgbString());i.forEach((e,t)=>{r[`primary-${t+1}`]=e}),r["primary-color-deprecated-l-35"]=n(e,e=>e.lighten(35)),r["primary-color-deprecated-l-20"]=n(e,e=>e.lighten(20)),r["primary-color-deprecated-t-20"]=n(e,e=>e.tint(20)),r["primary-color-deprecated-t-50"]=n(e,e=>e.tint(50)),r["primary-color-deprecated-f-12"]=n(e,e=>e.setAlpha(.12*e.getAlpha()));let a=new x.C(i[0]);r["primary-color-active-deprecated-f-30"]=n(a,e=>e.setAlpha(.3*e.getAlpha())),r["primary-color-active-deprecated-d-02"]=n(a,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let i=Object.keys(r).map(t=>`--${e}-${t}: ${r[t]};`);return` :root { ${i.join("\n")} } @@ -38,10 +38,10 @@ `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[y]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]};var L=(0,T.Z)("Message",e=>{let t=(0,F.TS)(e,{height:150});return[I(t)]},e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let N={info:o.createElement(u.Z,null),success:o.createElement(l.Z,null),error:o.createElement(s.Z,null),warning:o.createElement(c.Z,null),loading:o.createElement(f.Z,null)},B=e=>{let{prefixCls:t,type:r,icon:n,children:i}=e;return o.createElement("div",{className:p()(`${t}-custom-content`,`${t}-${r}`)},n||N[r],o.createElement("span",null,i))};var M=r(97937);function D(e){let t;let r=new Promise(r=>{t=e(()=>{r(!0)})}),n=()=>{null==t||t()};return n.then=(e,t)=>r.then(e,t),n.promise=r,n}var z=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let H=e=>{let{children:t,prefixCls:r}=e,[,n]=L(r);return o.createElement(E,{classNames:{list:n,notice:n}},t)},W=(e,t)=>{let{prefixCls:r,key:n}=t;return o.createElement(H,{prefixCls:r,key:n},e)},U=o.forwardRef((e,t)=>{let{top:r,prefixCls:i,getContainer:a,maxCount:l,duration:s=3,rtl:c,transitionName:u,onAllRemoved:f}=e,{getPrefixCls:d,getPopupContainer:m,message:v}=o.useContext(j.E_),y=i||d("message"),b=o.createElement("span",{className:`${y}-close-x`},o.createElement(M.Z,{className:`${y}-close-icon`})),[x,w]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,r=void 0===t?$:t,i=e.motion,a=e.prefixCls,l=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,f=e.renderNotifications,d=(0,g.Z)(e,Z),p=o.useState(),m=(0,h.Z)(p,2),v=m[0],y=m[1],b=o.useRef(),x=o.createElement(O,{container:v,ref:b,prefixCls:a,motion:i,maxCount:l,className:s,style:c,onAllRemoved:u,renderNotifications:f}),w=o.useState([]),C=(0,h.Z)(w,2),S=C[0],E=C[1],k=o.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,r=Array(t),n=0;n({left:"50%",transform:"translateX(-50%)",top:null!=r?r:8}),className:()=>p()({[`${y}-rtl`]:c}),motion:()=>({motionName:null!=u?u:`${y}-move-up`}),closable:!1,closeIcon:b,duration:s,getContainer:()=>(null==a?void 0:a())||(null==m?void 0:m())||document.body,maxCount:l,onAllRemoved:f,renderNotifications:W});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:y,message:v})),w}),V=0;function q(e){let t=o.useRef(null),r=o.useMemo(()=>{let e=e=>{var r;null===(r=t.current)||void 0===r||r.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:n,prefixCls:i,message:a}=t.current,l=`${i}-notice`,{content:s,icon:c,type:u,key:f,className:d,style:h,onClose:g}=r,m=z(r,["content","icon","type","key","className","style","onClose"]),v=f;return null==v&&(V+=1,v=`antd-message-${V}`),D(t=>(n(Object.assign(Object.assign({},m),{key:v,content:o.createElement(B,{prefixCls:i,type:u,icon:c},s),placement:"top",className:p()(u&&`${l}-${u}`,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),h),onClose:()=>{null==g||g(),t()}})),()=>{e(v)}))},n={open:r,destroy:r=>{var n;void 0!==r?e(r):null===(n=t.current)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{n[e]=(t,n,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?l=n:(a=n,l=o);let s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return r(s)}}),n},[]);return[r,o.createElement(U,Object.assign({key:"message-holder"},e,{ref:t}))]}let K=null,G=e=>e(),J=[],X={};function Y(){let{prefixCls:e,getContainer:t,duration:r,rtl:n,maxCount:o,top:i}=X,l=null!=e?e:(0,a.w6)().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:l,getContainer:()=>s,duration:r,rtl:n,maxCount:o,top:i}}let Q=o.forwardRef((e,t)=>{let[r,n]=o.useState(Y),[i,l]=q(r),s=(0,a.w6)(),c=s.getRootPrefixCls(),u=s.getIconPrefixCls(),f=s.getTheme(),d=()=>{n(Y)};return o.useEffect(d,[]),o.useImperativeHandle(t,()=>{let e=Object.assign({},i);return Object.keys(e).forEach(t=>{e[t]=function(){return d(),i[t].apply(i,arguments)}}),{instance:e,sync:d}}),o.createElement(a.ZP,{prefixCls:c,iconPrefixCls:u,theme:f},l)});function ee(){if(!K){let e=document.createDocumentFragment(),t={fragment:e};K=t,G(()=>{(0,i.s)(o.createElement(Q,{ref:e=>{let{instance:r,sync:n}=e||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=n,ee())})}}),e)});return}K.instance&&(J.forEach(e=>{let{type:t,skipped:r}=e;if(!r)switch(t){case"open":G(()=>{let t=K.instance.open(Object.assign(Object.assign({},X),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":G(()=>{null==K||K.instance.destroy(e.key)});break;default:G(()=>{var r;let o=(r=K.instance)[t].apply(r,(0,n.Z)(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),J=[])}let et={open:function(e){let t=D(t=>{let r;let n={type:"open",config:e,resolve:t,setCloseFn:e=>{r=e}};return J.push(n),()=>{r?G(()=>{r()}):n.skipped=!0}});return ee(),t},destroy:function(e){J.push({type:"destroy",key:e}),ee()},config:function(e){X=Object.assign(Object.assign({},X),e),G(()=>{var e;null===(e=null==K?void 0:K.sync)||void 0===e||e.call(K)})},useMessage:function(e){return q(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:r,type:n,icon:i,content:a}=e,l=_(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=o.useContext(j.E_),c=t||s("message"),[,u]=L(c);return o.createElement(C,Object.assign({},l,{prefixCls:c,className:p()(r,u,`${c}-notice-pure-panel`),eventKey:"pure",duration:null,content:o.createElement(B,{prefixCls:c,type:n,icon:i},a)}))}};["success","info","warning","error","loading"].forEach(e=>{et[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{let n;let o={type:e,args:t,resolve:r,setCloseFn:e=>{n=e}};return J.push(o),()=>{n?G(()=>{n()}):o.skipped=!0}});return ee(),r}(e,r)}});var er=et},43755:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return e$}});var o=r(74902),i=r(38135),a=r(67294),l=r(46735),s=r(89739),c=r(4340),u=r(21640),f=r(78860),d=r(94184),p=r.n(d),h=r(30470),g=r(71577),m=r(80029),v=e=>{let{type:t,children:r,prefixCls:n,buttonProps:o,close:i,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:f}=e,d=a.useRef(!1),p=a.useRef(null),[v,y]=(0,h.Z)(!1),b=function(){null==i||i.apply(void 0,arguments)};a.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=p.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let x=e=>{e&&e.then&&(y(!0),e.then(function(){y(!1,!0),b.apply(void 0,arguments),d.current=!1},e=>{if(y(!1,!0),d.current=!1,null==c||!c())return Promise.reject(e)}))};return a.createElement(g.ZP,Object.assign({},(0,m.n)(t),{onClick:e=>{let t;if(!d.current){if(d.current=!0,!f){b();return}if(s){var r;if(t=f(e),u&&!((r=t)&&r.then)){d.current=!1,b(e);return}}else if(f.length)t=f(i),d.current=!1;else if(!(t=f())){b();return}x(t)}},loading:v,prefixCls:n},o,{ref:p}),r)},y=r(33603),b=r(10110),x=r(97937),w=r(87462),C=r(97685),S=r(54535),E=r(1413),k=r(94999),O=r(7028),Z=r(15105),$=r(64217);function P(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function j(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var o=e.document;"number"!=typeof(r=o.documentElement[n])&&(r=o.body[n])}return r}var A=r(82225),R=a.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),T={width:0,height:0,overflow:"hidden",outline:"none"},F=a.forwardRef(function(e,t){var r,n,o,i=e.prefixCls,l=e.className,s=e.style,c=e.title,u=e.ariaId,f=e.footer,d=e.closable,h=e.closeIcon,g=e.onClose,m=e.children,v=e.bodyStyle,y=e.bodyProps,b=e.modalRender,x=e.onMouseDown,C=e.onMouseUp,S=e.holderRef,k=e.visible,O=e.forceRender,Z=e.width,$=e.height,P=(0,a.useRef)(),j=(0,a.useRef)();a.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=P.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===j.current?P.current.focus():e||t!==P.current||j.current.focus()}}});var A={};void 0!==Z&&(A.width=Z),void 0!==$&&(A.height=$),f&&(r=a.createElement("div",{className:"".concat(i,"-footer")},f)),c&&(n=a.createElement("div",{className:"".concat(i,"-header")},a.createElement("div",{className:"".concat(i,"-title"),id:u},c))),d&&(o=a.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(i,"-close")},h||a.createElement("span",{className:"".concat(i,"-close-x")})));var F=a.createElement("div",{className:"".concat(i,"-content")},o,n,a.createElement("div",(0,w.Z)({className:"".concat(i,"-body"),style:v},y),m),r);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?u:null,"aria-modal":"true",ref:S,style:(0,E.Z)((0,E.Z)({},s),A),className:p()(i,l),onMouseDown:x,onMouseUp:C},a.createElement("div",{tabIndex:0,ref:P,style:T,"aria-hidden":"true"}),a.createElement(R,{shouldUpdate:k||O},b?b(F):F),a.createElement("div",{tabIndex:0,ref:j,style:T,"aria-hidden":"true"}))}),I=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,o=e.style,i=e.className,l=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,f=e.ariaId,d=e.onVisibleChanged,h=e.mousePosition,g=(0,a.useRef)(),m=a.useState(),v=(0,C.Z)(m,2),y=v[0],b=v[1],x={};function S(){var e,t,r,n,o,i=(r={left:(t=(e=g.current).getBoundingClientRect()).left,top:t.top},o=(n=e.ownerDocument).defaultView||n.parentWindow,r.left+=j(o),r.top+=j(o,!0),r);b(h?"".concat(h.x-i.left,"px ").concat(h.y-i.top,"px"):"")}return y&&(x.transformOrigin=y),a.createElement(A.ZP,{visible:l,onVisibleChanged:d,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(l,s){var c=l.className,u=l.style;return a.createElement(F,(0,w.Z)({},e,{ref:t,title:n,ariaId:f,prefixCls:r,holderRef:s,style:(0,E.Z)((0,E.Z)((0,E.Z)({},u),o),x),className:p()(i,c)}))})});function L(e){var t=e.prefixCls,r=e.style,n=e.visible,o=e.maskProps,i=e.motionName;return a.createElement(A.ZP,{key:"mask",visible:n,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,n){var i=e.className,l=e.style;return a.createElement("div",(0,w.Z)({ref:n,style:(0,E.Z)((0,E.Z)({},l),r),className:p()("".concat(t,"-mask"),i)},o))})}function _(e){var t=e.prefixCls,r=void 0===t?"rc-dialog":t,n=e.zIndex,o=e.visible,i=void 0!==o&&o,l=e.keyboard,s=void 0===l||l,c=e.focusTriggerAfterClose,u=void 0===c||c,f=e.wrapStyle,d=e.wrapClassName,h=e.wrapProps,g=e.onClose,m=e.afterOpenChange,v=e.afterClose,y=e.transitionName,b=e.animation,x=e.closable,S=e.mask,j=void 0===S||S,A=e.maskTransitionName,R=e.maskAnimation,T=e.maskClosable,F=e.maskStyle,_=e.maskProps,N=e.rootClassName,B=(0,a.useRef)(),M=(0,a.useRef)(),D=(0,a.useRef)(),z=a.useState(i),H=(0,C.Z)(z,2),W=H[0],U=H[1],V=(0,O.Z)();function q(e){null==g||g(e)}var K=(0,a.useRef)(!1),G=(0,a.useRef)(),J=null;return(void 0===T||T)&&(J=function(e){K.current?K.current=!1:M.current===e.target&&q(e)}),(0,a.useEffect)(function(){i&&(U(!0),(0,k.Z)(M.current,document.activeElement)||(B.current=document.activeElement))},[i]),(0,a.useEffect)(function(){return function(){clearTimeout(G.current)}},[]),a.createElement("div",(0,w.Z)({className:p()("".concat(r,"-root"),N)},(0,$.Z)(e,{data:!0})),a.createElement(L,{prefixCls:r,visible:j&&i,motionName:P(r,A,R),style:(0,E.Z)({zIndex:n},F),maskProps:_}),a.createElement("div",(0,w.Z)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===Z.Z.ESC){e.stopPropagation(),q(e);return}i&&e.keyCode===Z.Z.TAB&&D.current.changeActive(!e.shiftKey)},className:p()("".concat(r,"-wrap"),d),ref:M,onClick:J,style:(0,E.Z)((0,E.Z)({zIndex:n},f),{},{display:W?null:"none"})},h),a.createElement(I,(0,w.Z)({},e,{onMouseDown:function(){clearTimeout(G.current),K.current=!0},onMouseUp:function(){G.current=setTimeout(function(){K.current=!1})},ref:D,closable:void 0===x||x,ariaId:V,prefixCls:r,visible:i&&W,onClose:q,onVisibleChanged:function(e){if(e)!function(){if(!(0,k.Z)(M.current,document.activeElement)){var e;null===(e=D.current)||void 0===e||e.focus()}}();else{if(U(!1),j&&B.current&&u){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}W&&(null==v||v())}null==m||m(e)},motionName:P(r,y,b)}))))}I.displayName="Content";var N=function(e){var t=e.visible,r=e.getContainer,n=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,l=e.afterClose,s=a.useState(t),c=(0,C.Z)(s,2),u=c[0],f=c[1];return(a.useEffect(function(){t&&f(!0)},[t]),n||!i||u)?a.createElement(S.Z,{open:t||n||u,autoDestroy:!1,getContainer:r,autoLock:t||u},a.createElement(_,(0,w.Z)({},e,{destroyOnClose:i,afterClose:function(){null==l||l(),f(!1)}}))):null};N.displayName="Dialog";var B=r(69760),M=r(31808),D=r(53124),z=r(65223),H=r(4173),W=r(98866),U=r(83008);function V(e,t){return a.createElement("span",{className:`${e}-close-x`},t||a.createElement(x.Z,{className:`${e}-close-icon`}))}let q=e=>{let{okText:t,okType:r="primary",cancelText:n,confirmLoading:o,onOk:i,onCancel:l,okButtonProps:s,cancelButtonProps:c}=e,[u]=(0,b.Z)("Modal",(0,U.A)());return a.createElement(W.n,{disabled:!1},a.createElement(g.ZP,Object.assign({onClick:l},c),n||(null==u?void 0:u.cancelText)),a.createElement(g.ZP,Object.assign({},(0,m.n)(r),{loading:o,onClick:i},s),t||(null==u?void 0:u.okText)))};var K=r(14747),G=r(16932),J=r(50438),X=r(67968),Y=r(45503);function Q(e){return{position:e,inset:0}}let ee=e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Q("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Q("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${r}-zoom-enter), &:has(${t}${r}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:(0,G.J$)(e)}]},et=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,K.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,K.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[y]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]};var L=(0,T.Z)("Message",e=>{let t=(0,F.TS)(e,{height:150});return[I(t)]},e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let N={info:o.createElement(u.Z,null),success:o.createElement(l.Z,null),error:o.createElement(s.Z,null),warning:o.createElement(c.Z,null),loading:o.createElement(f.Z,null)},B=e=>{let{prefixCls:t,type:r,icon:n,children:i}=e;return o.createElement("div",{className:p()(`${t}-custom-content`,`${t}-${r}`)},n||N[r],o.createElement("span",null,i))};var M=r(97937);function D(e){let t;let r=new Promise(r=>{t=e(()=>{r(!0)})}),n=()=>{null==t||t()};return n.then=(e,t)=>r.then(e,t),n.promise=r,n}var z=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let H=e=>{let{children:t,prefixCls:r}=e,[,n]=L(r);return o.createElement(E,{classNames:{list:n,notice:n}},t)},U=(e,t)=>{let{prefixCls:r,key:n}=t;return o.createElement(H,{prefixCls:r,key:n},e)},W=o.forwardRef((e,t)=>{let{top:r,prefixCls:i,getContainer:a,maxCount:l,duration:s=3,rtl:c,transitionName:u,onAllRemoved:f}=e,{getPrefixCls:d,getPopupContainer:m,message:v}=o.useContext(j.E_),y=i||d("message"),b=o.createElement("span",{className:`${y}-close-x`},o.createElement(M.Z,{className:`${y}-close-icon`})),[x,w]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,r=void 0===t?$:t,i=e.motion,a=e.prefixCls,l=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,f=e.renderNotifications,d=(0,g.Z)(e,Z),p=o.useState(),m=(0,h.Z)(p,2),v=m[0],y=m[1],b=o.useRef(),x=o.createElement(O,{container:v,ref:b,prefixCls:a,motion:i,maxCount:l,className:s,style:c,onAllRemoved:u,renderNotifications:f}),w=o.useState([]),C=(0,h.Z)(w,2),S=C[0],E=C[1],k=o.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,r=Array(t),n=0;n({left:"50%",transform:"translateX(-50%)",top:null!=r?r:8}),className:()=>p()({[`${y}-rtl`]:c}),motion:()=>({motionName:null!=u?u:`${y}-move-up`}),closable:!1,closeIcon:b,duration:s,getContainer:()=>(null==a?void 0:a())||(null==m?void 0:m())||document.body,maxCount:l,onAllRemoved:f,renderNotifications:U});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:y,message:v})),w}),V=0;function q(e){let t=o.useRef(null),r=o.useMemo(()=>{let e=e=>{var r;null===(r=t.current)||void 0===r||r.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:n,prefixCls:i,message:a}=t.current,l=`${i}-notice`,{content:s,icon:c,type:u,key:f,className:d,style:h,onClose:g}=r,m=z(r,["content","icon","type","key","className","style","onClose"]),v=f;return null==v&&(V+=1,v=`antd-message-${V}`),D(t=>(n(Object.assign(Object.assign({},m),{key:v,content:o.createElement(B,{prefixCls:i,type:u,icon:c},s),placement:"top",className:p()(u&&`${l}-${u}`,d,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),h),onClose:()=>{null==g||g(),t()}})),()=>{e(v)}))},n={open:r,destroy:r=>{var n;void 0!==r?e(r):null===(n=t.current)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{n[e]=(t,n,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?l=n:(a=n,l=o);let s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return r(s)}}),n},[]);return[r,o.createElement(W,Object.assign({key:"message-holder"},e,{ref:t}))]}let K=null,G=e=>e(),J=[],X={};function Y(){let{prefixCls:e,getContainer:t,duration:r,rtl:n,maxCount:o,top:i}=X,l=null!=e?e:(0,a.w6)().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:l,getContainer:()=>s,duration:r,rtl:n,maxCount:o,top:i}}let Q=o.forwardRef((e,t)=>{let[r,n]=o.useState(Y),[i,l]=q(r),s=(0,a.w6)(),c=s.getRootPrefixCls(),u=s.getIconPrefixCls(),f=s.getTheme(),d=()=>{n(Y)};return o.useEffect(d,[]),o.useImperativeHandle(t,()=>{let e=Object.assign({},i);return Object.keys(e).forEach(t=>{e[t]=function(){return d(),i[t].apply(i,arguments)}}),{instance:e,sync:d}}),o.createElement(a.ZP,{prefixCls:c,iconPrefixCls:u,theme:f},l)});function ee(){if(!K){let e=document.createDocumentFragment(),t={fragment:e};K=t,G(()=>{(0,i.s)(o.createElement(Q,{ref:e=>{let{instance:r,sync:n}=e||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=n,ee())})}}),e)});return}K.instance&&(J.forEach(e=>{let{type:t,skipped:r}=e;if(!r)switch(t){case"open":G(()=>{let t=K.instance.open(Object.assign(Object.assign({},X),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":G(()=>{null==K||K.instance.destroy(e.key)});break;default:G(()=>{var r;let o=(r=K.instance)[t].apply(r,(0,n.Z)(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),J=[])}let et={open:function(e){let t=D(t=>{let r;let n={type:"open",config:e,resolve:t,setCloseFn:e=>{r=e}};return J.push(n),()=>{r?G(()=>{r()}):n.skipped=!0}});return ee(),t},destroy:function(e){J.push({type:"destroy",key:e}),ee()},config:function(e){X=Object.assign(Object.assign({},X),e),G(()=>{var e;null===(e=null==K?void 0:K.sync)||void 0===e||e.call(K)})},useMessage:function(e){return q(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:r,type:n,icon:i,content:a}=e,l=_(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=o.useContext(j.E_),c=t||s("message"),[,u]=L(c);return o.createElement(C,Object.assign({},l,{prefixCls:c,className:p()(r,u,`${c}-notice-pure-panel`),eventKey:"pure",duration:null,content:o.createElement(B,{prefixCls:c,type:n,icon:i},a)}))}};["success","info","warning","error","loading"].forEach(e=>{et[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{let n;let o={type:e,args:t,resolve:r,setCloseFn:e=>{n=e}};return J.push(o),()=>{n?G(()=>{n()}):o.skipped=!0}});return ee(),r}(e,r)}});var er=et},43755:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return e$}});var o=r(74902),i=r(38135),a=r(67294),l=r(46735),s=r(89739),c=r(4340),u=r(21640),f=r(78860),d=r(94184),p=r.n(d),h=r(30470),g=r(71577),m=r(80029),v=e=>{let{type:t,children:r,prefixCls:n,buttonProps:o,close:i,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:f}=e,d=a.useRef(!1),p=a.useRef(null),[v,y]=(0,h.Z)(!1),b=function(){null==i||i.apply(void 0,arguments)};a.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=p.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let x=e=>{e&&e.then&&(y(!0),e.then(function(){y(!1,!0),b.apply(void 0,arguments),d.current=!1},e=>{if(y(!1,!0),d.current=!1,null==c||!c())return Promise.reject(e)}))};return a.createElement(g.ZP,Object.assign({},(0,m.n)(t),{onClick:e=>{let t;if(!d.current){if(d.current=!0,!f){b();return}if(s){var r;if(t=f(e),u&&!((r=t)&&r.then)){d.current=!1,b(e);return}}else if(f.length)t=f(i),d.current=!1;else if(!(t=f())){b();return}x(t)}},loading:v,prefixCls:n},o,{ref:p}),r)},y=r(33603),b=r(10110),x=r(97937),w=r(87462),C=r(97685),S=r(54535),E=r(1413),k=r(94999),O=r(7028),Z=r(15105),$=r(64217);function P(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function j(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var o=e.document;"number"!=typeof(r=o.documentElement[n])&&(r=o.body[n])}return r}var A=r(82225),R=a.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),T={width:0,height:0,overflow:"hidden",outline:"none"},F=a.forwardRef(function(e,t){var r,n,o,i=e.prefixCls,l=e.className,s=e.style,c=e.title,u=e.ariaId,f=e.footer,d=e.closable,h=e.closeIcon,g=e.onClose,m=e.children,v=e.bodyStyle,y=e.bodyProps,b=e.modalRender,x=e.onMouseDown,C=e.onMouseUp,S=e.holderRef,k=e.visible,O=e.forceRender,Z=e.width,$=e.height,P=(0,a.useRef)(),j=(0,a.useRef)();a.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=P.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===j.current?P.current.focus():e||t!==P.current||j.current.focus()}}});var A={};void 0!==Z&&(A.width=Z),void 0!==$&&(A.height=$),f&&(r=a.createElement("div",{className:"".concat(i,"-footer")},f)),c&&(n=a.createElement("div",{className:"".concat(i,"-header")},a.createElement("div",{className:"".concat(i,"-title"),id:u},c))),d&&(o=a.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(i,"-close")},h||a.createElement("span",{className:"".concat(i,"-close-x")})));var F=a.createElement("div",{className:"".concat(i,"-content")},o,n,a.createElement("div",(0,w.Z)({className:"".concat(i,"-body"),style:v},y),m),r);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?u:null,"aria-modal":"true",ref:S,style:(0,E.Z)((0,E.Z)({},s),A),className:p()(i,l),onMouseDown:x,onMouseUp:C},a.createElement("div",{tabIndex:0,ref:P,style:T,"aria-hidden":"true"}),a.createElement(R,{shouldUpdate:k||O},b?b(F):F),a.createElement("div",{tabIndex:0,ref:j,style:T,"aria-hidden":"true"}))}),I=a.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,o=e.style,i=e.className,l=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,f=e.ariaId,d=e.onVisibleChanged,h=e.mousePosition,g=(0,a.useRef)(),m=a.useState(),v=(0,C.Z)(m,2),y=v[0],b=v[1],x={};function S(){var e,t,r,n,o,i=(r={left:(t=(e=g.current).getBoundingClientRect()).left,top:t.top},o=(n=e.ownerDocument).defaultView||n.parentWindow,r.left+=j(o),r.top+=j(o,!0),r);b(h?"".concat(h.x-i.left,"px ").concat(h.y-i.top,"px"):"")}return y&&(x.transformOrigin=y),a.createElement(A.ZP,{visible:l,onVisibleChanged:d,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:u,removeOnLeave:c,ref:g},function(l,s){var c=l.className,u=l.style;return a.createElement(F,(0,w.Z)({},e,{ref:t,title:n,ariaId:f,prefixCls:r,holderRef:s,style:(0,E.Z)((0,E.Z)((0,E.Z)({},u),o),x),className:p()(i,c)}))})});function L(e){var t=e.prefixCls,r=e.style,n=e.visible,o=e.maskProps,i=e.motionName;return a.createElement(A.ZP,{key:"mask",visible:n,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,n){var i=e.className,l=e.style;return a.createElement("div",(0,w.Z)({ref:n,style:(0,E.Z)((0,E.Z)({},l),r),className:p()("".concat(t,"-mask"),i)},o))})}function _(e){var t=e.prefixCls,r=void 0===t?"rc-dialog":t,n=e.zIndex,o=e.visible,i=void 0!==o&&o,l=e.keyboard,s=void 0===l||l,c=e.focusTriggerAfterClose,u=void 0===c||c,f=e.wrapStyle,d=e.wrapClassName,h=e.wrapProps,g=e.onClose,m=e.afterOpenChange,v=e.afterClose,y=e.transitionName,b=e.animation,x=e.closable,S=e.mask,j=void 0===S||S,A=e.maskTransitionName,R=e.maskAnimation,T=e.maskClosable,F=e.maskStyle,_=e.maskProps,N=e.rootClassName,B=(0,a.useRef)(),M=(0,a.useRef)(),D=(0,a.useRef)(),z=a.useState(i),H=(0,C.Z)(z,2),U=H[0],W=H[1],V=(0,O.Z)();function q(e){null==g||g(e)}var K=(0,a.useRef)(!1),G=(0,a.useRef)(),J=null;return(void 0===T||T)&&(J=function(e){K.current?K.current=!1:M.current===e.target&&q(e)}),(0,a.useEffect)(function(){i&&(W(!0),(0,k.Z)(M.current,document.activeElement)||(B.current=document.activeElement))},[i]),(0,a.useEffect)(function(){return function(){clearTimeout(G.current)}},[]),a.createElement("div",(0,w.Z)({className:p()("".concat(r,"-root"),N)},(0,$.Z)(e,{data:!0})),a.createElement(L,{prefixCls:r,visible:j&&i,motionName:P(r,A,R),style:(0,E.Z)({zIndex:n},F),maskProps:_}),a.createElement("div",(0,w.Z)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===Z.Z.ESC){e.stopPropagation(),q(e);return}i&&e.keyCode===Z.Z.TAB&&D.current.changeActive(!e.shiftKey)},className:p()("".concat(r,"-wrap"),d),ref:M,onClick:J,style:(0,E.Z)((0,E.Z)({zIndex:n},f),{},{display:U?null:"none"})},h),a.createElement(I,(0,w.Z)({},e,{onMouseDown:function(){clearTimeout(G.current),K.current=!0},onMouseUp:function(){G.current=setTimeout(function(){K.current=!1})},ref:D,closable:void 0===x||x,ariaId:V,prefixCls:r,visible:i&&U,onClose:q,onVisibleChanged:function(e){if(e)!function(){if(!(0,k.Z)(M.current,document.activeElement)){var e;null===(e=D.current)||void 0===e||e.focus()}}();else{if(W(!1),j&&B.current&&u){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}U&&(null==v||v())}null==m||m(e)},motionName:P(r,y,b)}))))}I.displayName="Content";var N=function(e){var t=e.visible,r=e.getContainer,n=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,l=e.afterClose,s=a.useState(t),c=(0,C.Z)(s,2),u=c[0],f=c[1];return(a.useEffect(function(){t&&f(!0)},[t]),n||!i||u)?a.createElement(S.Z,{open:t||n||u,autoDestroy:!1,getContainer:r,autoLock:t||u},a.createElement(_,(0,w.Z)({},e,{destroyOnClose:i,afterClose:function(){null==l||l(),f(!1)}}))):null};N.displayName="Dialog";var B=r(69760),M=r(31808),D=r(53124),z=r(65223),H=r(4173),U=r(98866),W=r(83008);function V(e,t){return a.createElement("span",{className:`${e}-close-x`},t||a.createElement(x.Z,{className:`${e}-close-icon`}))}let q=e=>{let{okText:t,okType:r="primary",cancelText:n,confirmLoading:o,onOk:i,onCancel:l,okButtonProps:s,cancelButtonProps:c}=e,[u]=(0,b.Z)("Modal",(0,W.A)());return a.createElement(U.n,{disabled:!1},a.createElement(g.ZP,Object.assign({onClick:l},c),n||(null==u?void 0:u.cancelText)),a.createElement(g.ZP,Object.assign({},(0,m.n)(r),{loading:o,onClick:i},s),t||(null==u?void 0:u.okText)))};var K=r(14747),G=r(16932),J=r(50438),X=r(67968),Y=r(45503);function Q(e){return{position:e,inset:0}}let ee=e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Q("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Q("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${r}-zoom-enter), &:has(${t}${r}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:(0,G.J$)(e)}]},et=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,K.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,K.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},er=e=>{let{componentCls:t}=e,r=`${t}-confirm`;return{[r]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${r}-body-wrapper`]:Object.assign({},(0,K.dF)()),[`${r}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${r}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${r}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${r}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${r}-title`]:{flex:1},[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${r}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${r}-error ${r}-body > ${e.iconCls}`]:{color:e.colorError},[`${r}-warning ${r}-body > ${e.iconCls}, - ${r}-confirm ${r}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${r}-info ${r}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${r}-success ${r}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},en=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},eo=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[n]:{[`${r}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${n}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${n}-btns`]:{marginTop:e.marginLG}}}};var ei=(0,X.Z)("Modal",e=>{let t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5,o=(0,Y.TS)(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:n*r+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[et(o),er(o),en(o),ee(o),e.wireframe&&eo(o),(0,J._y)(o,"zoom")]},e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})),ea=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};(0,M.jD)()&&document.documentElement.addEventListener("click",e=>{n={x:e.pageX,y:e.pageY},setTimeout(()=>{n=null},100)},!0);var el=e=>{var t;let{getPopupContainer:r,getPrefixCls:o,direction:i,modal:l}=a.useContext(D.E_),s=t=>{let{onCancel:r}=e;null==r||r(t)},{prefixCls:c,className:u,rootClassName:f,open:d,wrapClassName:h,centered:g,getContainer:m,closeIcon:v,closable:b,focusTriggerAfterClose:w=!0,style:C,visible:S,width:E=520,footer:k}=e,O=ea(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),Z=o("modal",c),$=o(),[P,j]=ei(Z),A=p()(h,{[`${Z}-centered`]:!!g,[`${Z}-wrap-rtl`]:"rtl"===i}),R=void 0===k?a.createElement(q,Object.assign({},e,{onOk:t=>{let{onOk:r}=e;null==r||r(t)},onCancel:s})):k,[T,F]=(0,B.Z)(b,v,e=>V(Z,e),a.createElement(x.Z,{className:`${Z}-close-icon`}),!0);return P(a.createElement(H.BR,null,a.createElement(z.Ux,{status:!0,override:!0},a.createElement(N,Object.assign({width:E},O,{getContainer:void 0===m?r:m,prefixCls:Z,rootClassName:p()(j,f),wrapClassName:A,footer:R,visible:null!=d?d:S,mousePosition:null!==(t=O.mousePosition)&&void 0!==t?t:n,onClose:s,closable:T,closeIcon:F,focusTriggerAfterClose:w,transitionName:(0,y.m)($,"zoom",e.transitionName),maskTransitionName:(0,y.m)($,"fade",e.maskTransitionName),className:p()(j,u,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),C)})))))};function es(e){let{icon:t,onCancel:r,onOk:n,close:o,onConfirm:i,isSilent:l,okText:d,okButtonProps:p,cancelText:h,cancelButtonProps:g,confirmPrefixCls:m,rootPrefixCls:y,type:x,okCancel:w,footer:C,locale:S}=e,E=t;if(!t&&null!==t)switch(x){case"info":E=a.createElement(f.Z,null);break;case"success":E=a.createElement(s.Z,null);break;case"error":E=a.createElement(c.Z,null);break;default:E=a.createElement(u.Z,null)}let k=e.okType||"primary",O=null!=w?w:"confirm"===x,Z=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[$]=(0,b.Z)("Modal"),P=S||$,j=O&&a.createElement(v,{isSilent:l,actionFn:r,close:function(){null==o||o.apply(void 0,arguments),null==i||i(!1)},autoFocus:"cancel"===Z,buttonProps:g,prefixCls:`${y}-btn`},h||(null==P?void 0:P.cancelText));return a.createElement("div",{className:`${m}-body-wrapper`},a.createElement("div",{className:`${m}-body`},E,void 0===e.title?null:a.createElement("span",{className:`${m}-title`},e.title),a.createElement("div",{className:`${m}-content`},e.content)),void 0===C?a.createElement("div",{className:`${m}-btns`},j,a.createElement(v,{isSilent:l,type:k,actionFn:n,close:function(){null==o||o.apply(void 0,arguments),null==i||i(!0)},autoFocus:"ok"===Z,buttonProps:p,prefixCls:`${y}-btn`},d||(O?null==P?void 0:P.okText:null==P?void 0:P.justOkText))):C)}var ec=e=>{let{close:t,zIndex:r,afterClose:n,visible:o,open:i,keyboard:s,centered:c,getContainer:u,maskStyle:f,direction:d,prefixCls:h,wrapClassName:g,rootPrefixCls:m,iconPrefixCls:v,theme:b,bodyStyle:x,closable:w=!1,closeIcon:C,modalRender:S,focusTriggerAfterClose:E}=e,k=`${h}-confirm`,O=e.width||416,Z=e.style||{},$=void 0===e.mask||e.mask,P=void 0!==e.maskClosable&&e.maskClosable,j=p()(k,`${k}-${e.type}`,{[`${k}-rtl`]:"rtl"===d},e.className);return a.createElement(l.ZP,{prefixCls:m,iconPrefixCls:v,direction:d,theme:b},a.createElement(el,{prefixCls:h,className:j,wrapClassName:p()({[`${k}-centered`]:!!e.centered},g),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:i,title:"",footer:null,transitionName:(0,y.m)(m,"zoom",e.transitionName),maskTransitionName:(0,y.m)(m,"fade",e.maskTransitionName),mask:$,maskClosable:P,maskStyle:f,style:Z,bodyStyle:x,width:O,zIndex:r,afterClose:n,keyboard:s,centered:c,getContainer:u,closable:w,closeIcon:C,modalRender:S,focusTriggerAfterClose:E},a.createElement(es,Object.assign({},e,{confirmPrefixCls:k}))))},eu=[],ef=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let ed="";function ep(e){let t;let r=document.createDocumentFragment(),n=Object.assign(Object.assign({},e),{close:u,open:!0});function s(){for(var t=arguments.length,n=Array(t),a=0;ae&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(n.slice(1))));for(let e=0;e{let e=(0,U.A)(),{getPrefixCls:t,getIconPrefixCls:f,getTheme:d}=(0,l.w6)(),p=t(void 0,ed),h=s||`${p}-modal`,g=f(),m=d(),v=c;!1===v&&(v=void 0),(0,i.s)(a.createElement(ec,Object.assign({},u,{getContainer:v,prefixCls:h,rootPrefixCls:p,iconPrefixCls:g,okText:n,locale:e,theme:m,cancelText:o||e.cancelText})),r)})}function u(){for(var t=arguments.length,r=Array(t),o=0;o{"function"==typeof e.afterClose&&e.afterClose(),s.apply(this,r)}})).visible&&delete n.visible,c(n)}return c(n),eu.push(u),{destroy:u,update:function(e){c(n="function"==typeof e?e(n):Object.assign(Object.assign({},n),e))}}}function eh(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eg(e){return Object.assign(Object.assign({},e),{type:"info"})}function em(e){return Object.assign(Object.assign({},e),{type:"success"})}function ev(e){return Object.assign(Object.assign({},e),{type:"error"})}function ey(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var eb=r(8745),ex=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ew=(0,eb.i)(e=>{let{prefixCls:t,className:r,closeIcon:n,closable:o,type:i,title:l,children:s}=e,c=ex(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:u}=a.useContext(D.E_),f=u(),d=t||u("modal"),[,h]=ei(d),g=`${d}-confirm`,m={};return m=i?{closable:null!=o&&o,title:"",footer:"",children:a.createElement(es,Object.assign({},e,{confirmPrefixCls:g,rootPrefixCls:f,content:s}))}:{closable:null==o||o,title:l,footer:void 0===e.footer?a.createElement(q,Object.assign({},e)):e.footer,children:s},a.createElement(F,Object.assign({prefixCls:d,className:p()(h,`${d}-pure-panel`,i&&g,i&&`${g}-${i}`,r)},c,{closeIcon:V(d,n),closable:o},m))}),eC=r(88526),eS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},eE=a.forwardRef((e,t)=>{var r,{afterClose:n,config:i}=e,l=eS(e,["afterClose","config"]);let[s,c]=a.useState(!0),[u,f]=a.useState(i),{direction:d,getPrefixCls:p}=a.useContext(D.E_),h=p("modal"),g=p(),m=function(){c(!1);for(var e=arguments.length,t=Array(e),r=0;re&&e.triggerCancel);u.onCancel&&n&&u.onCancel.apply(u,[()=>{}].concat((0,o.Z)(t.slice(1))))};a.useImperativeHandle(t,()=>({destroy:m,update:e=>{f(t=>Object.assign(Object.assign({},t),e))}}));let v=null!==(r=u.okCancel)&&void 0!==r?r:"confirm"===u.type,[y]=(0,b.Z)("Modal",eC.Z.Modal);return a.createElement(ec,Object.assign({prefixCls:h,rootPrefixCls:g},u,{close:m,open:s,afterClose:()=>{var e;n(),null===(e=u.afterClose)||void 0===e||e.call(u)},okText:u.okText||(v?null==y?void 0:y.okText:null==y?void 0:y.justOkText),direction:u.direction||d,cancelText:u.cancelText||(null==y?void 0:y.cancelText)},l))});let ek=0,eO=a.memo(a.forwardRef((e,t)=>{let[r,n]=function(){let[e,t]=a.useState([]),r=a.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[]);return[e,r]}();return a.useImperativeHandle(t,()=>({patchElement:n}),[]),a.createElement(a.Fragment,null,r)}));function eZ(e){return ep(eh(e))}el.useModal=function(){let e=a.useRef(null),[t,r]=a.useState([]);a.useEffect(()=>{if(t.length){let e=(0,o.Z)(t);e.forEach(e=>{e()}),r([])}},[t]);let n=a.useCallback(t=>function(n){var i;let l,s;ek+=1;let c=a.createRef(),u=new Promise(e=>{l=e}),f=!1,d=a.createElement(eE,{key:`modal-${ek}`,config:t(n),ref:c,afterClose:()=>{null==s||s()},isSilent:()=>f,onConfirm:e=>{l(e)}});return(s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d))&&eu.push(s),{destroy:()=>{function e(){var e;null===(e=c.current)||void 0===e||e.destroy()}c.current?e():r(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=c.current)||void 0===t||t.update(e)}c.current?t():r(e=>[].concat((0,o.Z)(e),[t]))},then:e=>(f=!0,u.then(e))}},[]),i=a.useMemo(()=>({info:n(eg),success:n(em),error:n(ev),warning:n(eh),confirm:n(ey)}),[]);return[i,a.createElement(eO,{key:"modal-holder",ref:e})]},el.info=function(e){return ep(eg(e))},el.success=function(e){return ep(em(e))},el.error=function(e){return ep(ev(e))},el.warning=eZ,el.warn=eZ,el.confirm=function(e){return ep(ey(e))},el.destroyAll=function(){for(;eu.length;){let e=eu.pop();e&&e()}},el.config=function(e){let{rootPrefixCls:t}=e;ed=t},el._InternalPanelDoNotUseOrYouWillBeFired=ew;var e$=el},83008:function(e,t,r){"use strict";r.d(t,{A:function(){return s},f:function(){return l}});var n=r(88526);let o=Object.assign({},n.Z.Modal),i=[],a=()=>i.reduce((e,t)=>Object.assign(Object.assign({},e),t),n.Z.Modal);function l(e){if(e){let t=Object.assign({},e);return i.push(t),o=a(),()=>{i=i.filter(e=>e!==t),o=a()}}o=Object.assign({},n.Z.Modal)}function s(){return o}},4173:function(e,t,r){"use strict";r.d(t,{BR:function(){return s},ri:function(){return l}});var n=r(94184),o=r.n(n);r(50344);var i=r(67294);let a=i.createContext(null),l=(e,t)=>{let r=i.useContext(a),n=i.useMemo(()=>{if(!r)return"";let{compactDirection:n,isFirstItem:i,isLastItem:a}=r,l="vertical"===n?"-vertical-":"-";return o()(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:"rtl"===t})},[e,t,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:n}},s=e=>{let{children:t}=e;return i.createElement(a.Provider,{value:null},t)}},80110:function(e,t,r){"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},function(e,t,r){let{focusElCls:n,focus:o,borderElCls:i}=r,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}(e,n,t)),function(e,t,r){let{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(r,n,t))}}r.d(t,{c:function(){return n}})},14747:function(e,t,r){"use strict";r.d(t,{Lx:function(){return l},Qy:function(){return u},Ro:function(){return i},Wf:function(){return o},dF:function(){return a},du:function(){return s},oN:function(){return c},vS:function(){return n}});let n={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, + ${r}-confirm ${r}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${r}-info ${r}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${r}-success ${r}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},en=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},eo=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[n]:{[`${r}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${n}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${n}-btns`]:{marginTop:e.marginLG}}}};var ei=(0,X.Z)("Modal",e=>{let t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5,o=(0,Y.TS)(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:n*r+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[et(o),er(o),en(o),ee(o),e.wireframe&&eo(o),(0,J._y)(o,"zoom")]},e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})),ea=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};(0,M.jD)()&&document.documentElement.addEventListener("click",e=>{n={x:e.pageX,y:e.pageY},setTimeout(()=>{n=null},100)},!0);var el=e=>{var t;let{getPopupContainer:r,getPrefixCls:o,direction:i,modal:l}=a.useContext(D.E_),s=t=>{let{onCancel:r}=e;null==r||r(t)},{prefixCls:c,className:u,rootClassName:f,open:d,wrapClassName:h,centered:g,getContainer:m,closeIcon:v,closable:b,focusTriggerAfterClose:w=!0,style:C,visible:S,width:E=520,footer:k}=e,O=ea(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),Z=o("modal",c),$=o(),[P,j]=ei(Z),A=p()(h,{[`${Z}-centered`]:!!g,[`${Z}-wrap-rtl`]:"rtl"===i}),R=void 0===k?a.createElement(q,Object.assign({},e,{onOk:t=>{let{onOk:r}=e;null==r||r(t)},onCancel:s})):k,[T,F]=(0,B.Z)(b,v,e=>V(Z,e),a.createElement(x.Z,{className:`${Z}-close-icon`}),!0);return P(a.createElement(H.BR,null,a.createElement(z.Ux,{status:!0,override:!0},a.createElement(N,Object.assign({width:E},O,{getContainer:void 0===m?r:m,prefixCls:Z,rootClassName:p()(j,f),wrapClassName:A,footer:R,visible:null!=d?d:S,mousePosition:null!==(t=O.mousePosition)&&void 0!==t?t:n,onClose:s,closable:T,closeIcon:F,focusTriggerAfterClose:w,transitionName:(0,y.m)($,"zoom",e.transitionName),maskTransitionName:(0,y.m)($,"fade",e.maskTransitionName),className:p()(j,u,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),C)})))))};function es(e){let{icon:t,onCancel:r,onOk:n,close:o,onConfirm:i,isSilent:l,okText:d,okButtonProps:p,cancelText:h,cancelButtonProps:g,confirmPrefixCls:m,rootPrefixCls:y,type:x,okCancel:w,footer:C,locale:S}=e,E=t;if(!t&&null!==t)switch(x){case"info":E=a.createElement(f.Z,null);break;case"success":E=a.createElement(s.Z,null);break;case"error":E=a.createElement(c.Z,null);break;default:E=a.createElement(u.Z,null)}let k=e.okType||"primary",O=null!=w?w:"confirm"===x,Z=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[$]=(0,b.Z)("Modal"),P=S||$,j=O&&a.createElement(v,{isSilent:l,actionFn:r,close:function(){null==o||o.apply(void 0,arguments),null==i||i(!1)},autoFocus:"cancel"===Z,buttonProps:g,prefixCls:`${y}-btn`},h||(null==P?void 0:P.cancelText));return a.createElement("div",{className:`${m}-body-wrapper`},a.createElement("div",{className:`${m}-body`},E,void 0===e.title?null:a.createElement("span",{className:`${m}-title`},e.title),a.createElement("div",{className:`${m}-content`},e.content)),void 0===C?a.createElement("div",{className:`${m}-btns`},j,a.createElement(v,{isSilent:l,type:k,actionFn:n,close:function(){null==o||o.apply(void 0,arguments),null==i||i(!0)},autoFocus:"ok"===Z,buttonProps:p,prefixCls:`${y}-btn`},d||(O?null==P?void 0:P.okText:null==P?void 0:P.justOkText))):C)}var ec=e=>{let{close:t,zIndex:r,afterClose:n,visible:o,open:i,keyboard:s,centered:c,getContainer:u,maskStyle:f,direction:d,prefixCls:h,wrapClassName:g,rootPrefixCls:m,iconPrefixCls:v,theme:b,bodyStyle:x,closable:w=!1,closeIcon:C,modalRender:S,focusTriggerAfterClose:E}=e,k=`${h}-confirm`,O=e.width||416,Z=e.style||{},$=void 0===e.mask||e.mask,P=void 0!==e.maskClosable&&e.maskClosable,j=p()(k,`${k}-${e.type}`,{[`${k}-rtl`]:"rtl"===d},e.className);return a.createElement(l.ZP,{prefixCls:m,iconPrefixCls:v,direction:d,theme:b},a.createElement(el,{prefixCls:h,className:j,wrapClassName:p()({[`${k}-centered`]:!!e.centered},g),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:i,title:"",footer:null,transitionName:(0,y.m)(m,"zoom",e.transitionName),maskTransitionName:(0,y.m)(m,"fade",e.maskTransitionName),mask:$,maskClosable:P,maskStyle:f,style:Z,bodyStyle:x,width:O,zIndex:r,afterClose:n,keyboard:s,centered:c,getContainer:u,closable:w,closeIcon:C,modalRender:S,focusTriggerAfterClose:E},a.createElement(es,Object.assign({},e,{confirmPrefixCls:k}))))},eu=[],ef=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let ed="";function ep(e){let t;let r=document.createDocumentFragment(),n=Object.assign(Object.assign({},e),{close:u,open:!0});function s(){for(var t=arguments.length,n=Array(t),a=0;ae&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(n.slice(1))));for(let e=0;e{let e=(0,W.A)(),{getPrefixCls:t,getIconPrefixCls:f,getTheme:d}=(0,l.w6)(),p=t(void 0,ed),h=s||`${p}-modal`,g=f(),m=d(),v=c;!1===v&&(v=void 0),(0,i.s)(a.createElement(ec,Object.assign({},u,{getContainer:v,prefixCls:h,rootPrefixCls:p,iconPrefixCls:g,okText:n,locale:e,theme:m,cancelText:o||e.cancelText})),r)})}function u(){for(var t=arguments.length,r=Array(t),o=0;o{"function"==typeof e.afterClose&&e.afterClose(),s.apply(this,r)}})).visible&&delete n.visible,c(n)}return c(n),eu.push(u),{destroy:u,update:function(e){c(n="function"==typeof e?e(n):Object.assign(Object.assign({},n),e))}}}function eh(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eg(e){return Object.assign(Object.assign({},e),{type:"info"})}function em(e){return Object.assign(Object.assign({},e),{type:"success"})}function ev(e){return Object.assign(Object.assign({},e),{type:"error"})}function ey(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var eb=r(8745),ex=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ew=(0,eb.i)(e=>{let{prefixCls:t,className:r,closeIcon:n,closable:o,type:i,title:l,children:s}=e,c=ex(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:u}=a.useContext(D.E_),f=u(),d=t||u("modal"),[,h]=ei(d),g=`${d}-confirm`,m={};return m=i?{closable:null!=o&&o,title:"",footer:"",children:a.createElement(es,Object.assign({},e,{confirmPrefixCls:g,rootPrefixCls:f,content:s}))}:{closable:null==o||o,title:l,footer:void 0===e.footer?a.createElement(q,Object.assign({},e)):e.footer,children:s},a.createElement(F,Object.assign({prefixCls:d,className:p()(h,`${d}-pure-panel`,i&&g,i&&`${g}-${i}`,r)},c,{closeIcon:V(d,n),closable:o},m))}),eC=r(88526),eS=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},eE=a.forwardRef((e,t)=>{var r,{afterClose:n,config:i}=e,l=eS(e,["afterClose","config"]);let[s,c]=a.useState(!0),[u,f]=a.useState(i),{direction:d,getPrefixCls:p}=a.useContext(D.E_),h=p("modal"),g=p(),m=function(){c(!1);for(var e=arguments.length,t=Array(e),r=0;re&&e.triggerCancel);u.onCancel&&n&&u.onCancel.apply(u,[()=>{}].concat((0,o.Z)(t.slice(1))))};a.useImperativeHandle(t,()=>({destroy:m,update:e=>{f(t=>Object.assign(Object.assign({},t),e))}}));let v=null!==(r=u.okCancel)&&void 0!==r?r:"confirm"===u.type,[y]=(0,b.Z)("Modal",eC.Z.Modal);return a.createElement(ec,Object.assign({prefixCls:h,rootPrefixCls:g},u,{close:m,open:s,afterClose:()=>{var e;n(),null===(e=u.afterClose)||void 0===e||e.call(u)},okText:u.okText||(v?null==y?void 0:y.okText:null==y?void 0:y.justOkText),direction:u.direction||d,cancelText:u.cancelText||(null==y?void 0:y.cancelText)},l))});let ek=0,eO=a.memo(a.forwardRef((e,t)=>{let[r,n]=function(){let[e,t]=a.useState([]),r=a.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[]);return[e,r]}();return a.useImperativeHandle(t,()=>({patchElement:n}),[]),a.createElement(a.Fragment,null,r)}));function eZ(e){return ep(eh(e))}el.useModal=function(){let e=a.useRef(null),[t,r]=a.useState([]);a.useEffect(()=>{if(t.length){let e=(0,o.Z)(t);e.forEach(e=>{e()}),r([])}},[t]);let n=a.useCallback(t=>function(n){var i;let l,s;ek+=1;let c=a.createRef(),u=new Promise(e=>{l=e}),f=!1,d=a.createElement(eE,{key:`modal-${ek}`,config:t(n),ref:c,afterClose:()=>{null==s||s()},isSilent:()=>f,onConfirm:e=>{l(e)}});return(s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d))&&eu.push(s),{destroy:()=>{function e(){var e;null===(e=c.current)||void 0===e||e.destroy()}c.current?e():r(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=c.current)||void 0===t||t.update(e)}c.current?t():r(e=>[].concat((0,o.Z)(e),[t]))},then:e=>(f=!0,u.then(e))}},[]),i=a.useMemo(()=>({info:n(eg),success:n(em),error:n(ev),warning:n(eh),confirm:n(ey)}),[]);return[i,a.createElement(eO,{key:"modal-holder",ref:e})]},el.info=function(e){return ep(eg(e))},el.success=function(e){return ep(em(e))},el.error=function(e){return ep(ev(e))},el.warning=eZ,el.warn=eZ,el.confirm=function(e){return ep(ey(e))},el.destroyAll=function(){for(;eu.length;){let e=eu.pop();e&&e()}},el.config=function(e){let{rootPrefixCls:t}=e;ed=t},el._InternalPanelDoNotUseOrYouWillBeFired=ew;var e$=el},83008:function(e,t,r){"use strict";r.d(t,{A:function(){return s},f:function(){return l}});var n=r(88526);let o=Object.assign({},n.Z.Modal),i=[],a=()=>i.reduce((e,t)=>Object.assign(Object.assign({},e),t),n.Z.Modal);function l(e){if(e){let t=Object.assign({},e);return i.push(t),o=a(),()=>{i=i.filter(e=>e!==t),o=a()}}o=Object.assign({},n.Z.Modal)}function s(){return o}},4173:function(e,t,r){"use strict";r.d(t,{BR:function(){return s},ri:function(){return l}});var n=r(94184),o=r.n(n);r(50344);var i=r(67294);let a=i.createContext(null),l=(e,t)=>{let r=i.useContext(a),n=i.useMemo(()=>{if(!r)return"";let{compactDirection:n,isFirstItem:i,isLastItem:a}=r,l="vertical"===n?"-vertical-":"-";return o()(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:"rtl"===t})},[e,t,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:n}},s=e=>{let{children:t}=e;return i.createElement(a.Provider,{value:null},t)}},80110:function(e,t,r){"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},function(e,t,r){let{focusElCls:n,focus:o,borderElCls:i}=r,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}(e,n,t)),function(e,t,r){let{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(r,n,t))}}r.d(t,{c:function(){return n}})},14747:function(e,t,r){"use strict";r.d(t,{Lx:function(){return l},Qy:function(){return u},Ro:function(){return i},Wf:function(){return o},dF:function(){return a},du:function(){return s},oN:function(){return c},vS:function(){return n}});let n={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,t)=>{let{fontFamily:r,fontSize:n}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},c=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),u=e=>({"&:focus-visible":Object.assign({},c(e))})},16932:function(e,t,r){"use strict";r.d(t,{J$:function(){return l}});var n=r(23183),o=r(93590);let i=new n.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a=new n.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:r}=e,n=`${r}-fade`,l=t?"&":"";return[(0,o.R)(n,i,a,e.motionDurationMid,t),{[` ${l}${n}-enter, ${l}${n}-appear @@ -99,16 +99,16 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case g:case s:return e;default:return t}}case o:return t}}}function C(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},21296:function(e,t,r){"use strict";e.exports=r(96103)},62705:function(e,t,r){var n=r(55639).Symbol;e.exports=n},44239:function(e,t,r){var n=r(62705),o=r(89607),i=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},27561:function(e,t,r){var n=r(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},31957:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},89607:function(e,t,r){var n=r(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[l]=r:delete e[l]),o}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,r){var n=r(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},23279:function(e,t,r){var n=r(13218),o=r(7771),i=r(14841),a=Math.max,l=Math.min;e.exports=function(e,t,r){var s,c,u,f,d,p,h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=s,n=c;return s=c=void 0,h=t,f=e.apply(n,r)}function b(e){var r=e-p,n=e-h;return void 0===p||r>=t||r<0||m&&n>=u}function x(){var e,r,n,i=o();if(b(i))return w(i);d=setTimeout(x,(e=i-p,r=i-h,n=t-e,m?l(n,u-r):n))}function w(e){return(d=void 0,v&&s)?y(e):(s=c=void 0,f)}function C(){var e,r=o(),n=b(r);if(s=arguments,c=this,p=r,n){if(void 0===d)return h=e=p,d=setTimeout(x,t),g?y(e):f;if(m)return clearTimeout(d),d=setTimeout(x,t),y(p)}return void 0===d&&(d=setTimeout(x,t)),f}return t=i(t)||0,n(r)&&(g=!!r.leading,u=(m="maxWait"in r)?a(i(r.maxWait)||0,t):u,v="trailing"in r?!!r.trailing:v),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},C.flush=function(){return void 0===d?f:w(o())},C}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,r){var n=r(44239),o=r(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},7771:function(e,t,r){var n=r(55639);e.exports=function(){return n.Date.now()}},23493:function(e,t,r){var n=r(23279),o=r(13218);e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},14841:function(e,t,r){var n=r(27561),o=r(13218),i=r(33448),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):l.test(e)?a:+e}},83454:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(77663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(49688)}])},41468:function(e,t,r){"use strict";r.d(t,{R:function(){return c},p:function(){return s}});var n=r(85893),o=r(67294),i=r(43893),a=r(39332),l=r(577);let s=(0,o.createContext)({scene:"",chatId:"",modelList:[],model:"",setModel:()=>{},dialogueList:[],setIsContract:()=>{},setIsMenuExpand:()=>{},queryDialogueList:()=>{},refreshDialogList:()=>{}}),c=e=>{var t,r;let{children:c}=e,u=(0,a.useSearchParams)(),[f,d]=(0,o.useState)(!1),p=null!==(t=null==u?void 0:u.get("id"))&&void 0!==t?t:"",h=null!==(r=null==u?void 0:u.get("scene"))&&void 0!==r?r:"",[g,m]=(0,o.useState)(""),[v,y]=(0,o.useState)("chat_dashboard"!==h),{run:b,data:x=[],refresh:w}=(0,l.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.Js)());return null!=e?e:[]},{manual:!0}),{data:C=[]}=(0,l.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.fZ)());return null!=e?e:[]});(0,o.useEffect)(()=>{m(C[0])},[C,null==C?void 0:C.length]);let S=(0,o.useMemo)(()=>x.find(e=>e.conv_uid===p),[p,x]);return(0,n.jsx)(s.Provider,{value:{isContract:f,isMenuExpand:v,scene:h,chatId:p,modelList:C,model:g,setModel:m,dialogueList:x,setIsContract:d,setIsMenuExpand:y,queryDialogueList:b,refreshDialogList:w,currentDialogue:S},children:c})}},43893:function(e,t,r){"use strict";r.d(t,{HT:function(){return x},a4:function(){return w},Vx:function(){return i},MX:function(){return y},XN:function(){return s},BJ:function(){return c},Js:function(){return p},$i:function(){return m},fZ:function(){return h},sW:function(){return l},rw:function(){return d},LM:function(){return u},G9:function(){return f},qn:function(){return v},vD:function(){return g},CU:function(){return a}});var n=r(6154),o=r(58301);let i=(e,t)=>e.then(e=>{let{data:r}=e;if(!r)throw Error("Network Error!");if(!r.success&&t&&"*"!==t&&r.err_code&&t.includes(r.err_code)){var n;throw o.ZP.error(r.err_msg),Error(null!==(n=r.err_msg)&&void 0!==n?n:"")}return[null,r.data,r,e]}).catch(e=>[e,null,null,null]),a=()=>w("/chat/dialogue/scenes"),l=e=>w("/chat/dialogue/new",e),s=()=>x("/chat/db/list"),c=()=>x("/chat/db/support/type"),u=e=>w("/chat/db/delete?db_name=".concat(e),void 0),f=e=>w("/chat/db/edit",e),d=e=>w("/chat/db/add",e),p=()=>x("/chat/dialogue/list"),h=()=>x("/model/types"),g=e=>w("/chat/mode/params/list?chat_mode=".concat(e)),m=e=>x("/chat/dialogue/messages/history?con_uid=".concat(e)),v=e=>{let{convUid:t,chatMode:r,data:n,config:o,model:i}=e;return w("/chat/mode/params/file/load?conv_uid=".concat(t,"&chat_mode=").concat(r,"&model_name=").concat(i),n,{headers:{"Content-Type":"multipart/form-data"},...o})},y=e=>w("/chat/dialogue/delete?con_uid=".concat(e)),b=n.Z.create({baseURL:"".concat("http://127.0.0.1:5000","/api/v1"),timeout:1e4}),x=(e,t,r)=>b.get(e,{params:t,...r}),w=(e,t,r)=>b.post(e,t,r)},32665:function(e,t,r){"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(38754),r(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41219:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return p},useSearchParams:function(){return h},usePathname:function(){return g},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return s.useServerInsertedHTML},useRouter:function(){return m},useParams:function(){return v},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return c.redirect},notFound:function(){return u.notFound}});let n=r(67294),o=r(27473),i=r(35802),a=r(32665),l=r(43512),s=r(98751),c=r(96885),u=r(86323),f=Symbol("internal for urlsearchparams readonly");function d(){return Error("ReadonlyURLSearchParams cannot be modified")}class p{[Symbol.iterator](){return this[f][Symbol.iterator]()}append(){throw d()}delete(){throw d()}set(){throw d()}sort(){throw d()}constructor(e){this[f]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function h(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(i.SearchParamsContext),t=(0,n.useMemo)(()=>e?new p(e):null,[e]);return t}function g(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(i.PathnameContext)}function m(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function v(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(o.GlobalLayoutRouterContext);return e?function e(t,r){void 0===r&&(r={});let n=t[1];for(let t of Object.values(n)){let n=t[0],o=Array.isArray(n),i=o?n[1]:n;!i||i.startsWith("__PAGE__")||(o&&(r[n[0]]=n[1]),r=e(t,r))}return r}(e.tree):null}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(o.LayoutRouterContext);return function e(t,r,n,o){let i;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)i=t[1][r];else{var a;let e=t[1];i=null!=(a=e.children)?a:Object.values(e)[0]}if(!i)return o;let s=i[0],c=(0,l.getSegmentValue)(s);return!c||c.startsWith("__PAGE__")?o:(o.push(c),e(i,r,!1,o))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86323:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return o}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function o(e){return(null==e?void 0:e.digest)===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96885:function(e,t,r){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return l},redirect:function(){return s},isRedirectError:function(){return c},getURLFromRedirectError:function(){return u},getRedirectTypeFromError:function(){return f}});let i=r(68214),a="NEXT_REDIRECT";function l(e,t){let r=Error(a);r.digest=a+";"+t+";"+e;let n=i.requestAsyncStorage.getStore();return n&&(r.mutableCookies=n.mutableCookies),r}function s(e,t){throw void 0===t&&(t="replace"),l(e,t)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,n]=e.digest.split(";",3);return t===a&&("replace"===r||"push"===r)&&"string"==typeof n}function u(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(o=n||(n={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43512:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29382:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return u}});let o="refresh",i="navigate",a="restore",l="server-patch",s="prefetch",c="fast-refresh",u="server-action";(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75476:function(e,t){"use strict";function r(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69873:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let n=r(38754),o=r(61757),i=o._(r(67294)),a=n._(r(68965)),l=r(38083),s=r(2478),c=r(76226);r(59941);let u=n._(r(31720)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function d(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function h(e,t,r,n,o,i,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===r&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}})}function g(e){let[t,r]=i.version.split("."),n=parseInt(t,10),o=parseInt(r,10);return n>18||18===n&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let m=(0,i.forwardRef)((e,t)=>{let{imgAttributes:r,heightInt:n,widthInt:o,qualityInt:a,className:l,imgStyle:s,blurStyle:c,isLazy:u,fetchPriority:f,fill:d,placeholder:p,loading:m,srcString:v,config:y,unoptimized:b,loader:x,onLoadRef:w,onLoadingCompleteRef:C,setBlurComplete:S,setShowAltText:E,onLoad:k,onError:O,...Z}=e;return m=u?"lazy":m,i.default.createElement("img",{...Z,...g(f),loading:m,width:o,height:n,decoding:"async","data-nimg":d?"fill":"1",className:l,style:{...s,...c},...r,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&h(e,v,p,w,C,S,b))},[v,p,w,C,S,O,b,t]),onLoad:e=>{let t=e.currentTarget;h(t,v,p,w,C,S,b)},onError:e=>{E(!0),"blur"===p&&S(!0),O&&O(e)}})}),v=(0,i.forwardRef)((e,t)=>{var r;let n,o,{src:h,sizes:v,unoptimized:y=!1,priority:b=!1,loading:x,className:w,quality:C,width:S,height:E,fill:k,style:O,onLoad:Z,onLoadingComplete:$,placeholder:P="empty",blurDataURL:j,fetchPriority:A,layout:R,objectFit:T,objectPosition:F,lazyBoundary:I,lazyRoot:L,..._}=e,N=(0,i.useContext)(c.ImageConfigContext),B=(0,i.useMemo)(()=>{let e=f||N||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[N]),M=_.loader||u.default;delete _.loader;let D="__next_img_default"in M;if(D){if("custom"===B.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=M;M=t=>{let{config:r,...n}=t;return e(n)}}if(R){"fill"===R&&(k=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];e&&(O={...O,...e});let t={responsive:"100vw",fill:"100vw"}[R];t&&!v&&(v=t)}let z="",H=p(S),W=p(E);if("object"==typeof(r=h)&&(d(r)||void 0!==r.src)){let e=d(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(n=e.blurWidth,o=e.blurHeight,j=j||e.blurDataURL,z=e.src,!k){if(H||W){if(H&&!W){let t=H/e.width;W=Math.round(e.height*t)}else if(!H&&W){let t=W/e.height;H=Math.round(e.width*t)}}else H=e.width,W=e.height}}let U=!b&&("lazy"===x||void 0===x);(!(h="string"==typeof h?h:z)||h.startsWith("data:")||h.startsWith("blob:"))&&(y=!0,U=!1),B.unoptimized&&(y=!0),D&&h.endsWith(".svg")&&!B.dangerouslyAllowSVG&&(y=!0),b&&(A="high");let[V,q]=(0,i.useState)(!1),[K,G]=(0,i.useState)(!1),J=p(C),X=Object.assign(k?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:T,objectPosition:F}:{},K?{}:{color:"transparent"},O),Y="blur"===P&&j&&!V?{backgroundSize:X.objectFit||"cover",backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:H,heightInt:W,blurWidth:n,blurHeight:o,blurDataURL:j,objectFit:X.objectFit})+'")'}:{},Q=function(e){let{config:t,src:r,unoptimized:n,width:o,quality:i,sizes:a,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:s,kind:c}=function(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}(t,o,a),u=s.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:s.map((e,n)=>l({config:t,src:r,quality:i,width:e})+" "+("w"===c?e:n+1)+c).join(", "),src:l({config:t,src:r,quality:i,width:s[u]})}}({config:B,src:h,unoptimized:y,width:H,quality:J,sizes:v,loader:M}),ee=h,et=(0,i.useRef)(Z);(0,i.useEffect)(()=>{et.current=Z},[Z]);let er=(0,i.useRef)($);(0,i.useEffect)(()=>{er.current=$},[$]);let en={isLazy:U,imgAttributes:Q,heightInt:W,widthInt:H,qualityInt:J,className:w,imgStyle:X,blurStyle:Y,loading:x,config:B,fetchPriority:A,fill:k,unoptimized:y,placeholder:P,loader:M,srcString:ee,onLoadRef:et,onLoadingCompleteRef:er,setBlurComplete:q,setShowAltText:G,..._};return i.default.createElement(i.default.Fragment,null,i.default.createElement(m,{...en,ref:t}),b?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+Q.src+Q.srcSet+Q.sizes,rel:"preload",as:"image",href:Q.srcSet?void 0:Q.src,imageSrcSet:Q.srcSet,imageSizes:Q.sizes,crossOrigin:_.crossOrigin,referrerPolicy:_.referrerPolicy,...g(A)})):null)}),y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9940:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let n=r(38754),o=n._(r(67294)),i=r(65722),a=r(65723),l=r(28904),s=r(95514),c=r(27521),u=r(44293),f=r(27473),d=r(81307),p=r(75476),h=r(66318),g=r(29382),m=new Set;function v(e,t,r,n,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let o=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,i=t+"%"+r+"%"+o;if(m.has(i))return;m.add(i)}let l=i?e.prefetch(t,o):e.prefetch(t,r,n);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:m,children:b,prefetch:x=null,passHref:w,replace:C,shallow:S,scroll:E,locale:k,onClick:O,onMouseEnter:Z,onTouchStart:$,legacyBehavior:P=!1,...j}=e;r=b,P&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let A=!1!==x,R=null===x?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,T=o.default.useContext(u.RouterContext),F=o.default.useContext(f.AppRouterContext),I=null!=T?T:F,L=!T,{href:_,as:N}=o.default.useMemo(()=>{if(!T){let e=y(l);return{href:e,as:m?y(m):e}}let[e,t]=(0,i.resolveHref)(T,l,!0);return{href:e,as:m?(0,i.resolveHref)(T,m):t||e}},[T,l,m]),B=o.default.useRef(_),M=o.default.useRef(N);P&&(n=o.default.Children.only(r));let D=P?n&&"object"==typeof n&&n.ref:t,[z,H,W]=(0,d.useIntersection)({rootMargin:"200px"}),U=o.default.useCallback(e=>{(M.current!==N||B.current!==_)&&(W(),M.current=N,B.current=_),z(e),D&&("function"==typeof D?D(e):"object"==typeof D&&(D.current=e))},[N,D,_,W,z]);o.default.useEffect(()=>{I&&H&&A&&v(I,_,N,{locale:k},{kind:R},L)},[N,_,H,k,A,null==T?void 0:T.locale,I,L,R]);let V={ref:U,onClick(e){P||"function"!=typeof O||O(e),P&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),I&&!e.defaultPrevented&&function(e,t,r,n,i,l,s,c,u,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:l,locale:c,scroll:s}):t[i?"replace":"push"](n||r,{forceOptimisticNavigation:!f})};u?o.default.startTransition(h):h()}(e,I,_,N,C,S,E,k,L,A)},onMouseEnter(e){P||"function"!=typeof Z||Z(e),P&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),I&&(A||!L)&&v(I,_,N,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:R},L)},onTouchStart(e){P||"function"!=typeof $||$(e),P&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),I&&(A||!L)&&v(I,_,N,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:R},L)}};if((0,s.isAbsoluteUrl)(N))V.href=N;else if(!P||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==k?k:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,p.getDomainLocale)(N,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);V.href=t||(0,h.addBasePath)((0,c.addLocale)(N,e,null==T?void 0:T.defaultLocale))}return P?o.default.cloneElement(n,V):o.default.createElement("a",{...j,...V},r)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81307:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let n=r(67294),o=r(82997),i="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:r,disabled:s}=e,c=s||!i,[u,f]=(0,n.useState)(!1),d=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{d.current=e},[]);(0,n.useEffect)(()=>{if(i){if(c||u)return;let e=d.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:o,elements:i}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:i,elements:o},l.push(r),a.set(r,t),t}(r);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!u){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,r,t,u,d.current]);let h=(0,n.useCallback)(()=>{f(!1)},[]);return[p,u,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38083:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=n||t,s=o||r,c=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&s?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+s+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(n&&o?"1":"20")+"'/%3E"+c+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},31720:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:o}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},98751:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let n=r(61757),o=n._(r(67294)),i=o.default.createContext(null);function a(e){let t=(0,o.useContext)(i);t&&t(e)}},49688:function(e,t,r){"use strict";let n,o;r.r(t),r.d(t,{default:function(){return to}});var i=r(85893),a=r(67294),l=r(39332),s=r(41664),c=r.n(s),u=r(43755),f=r(56385),d=r(48665),p=r(47556),h=r(11772),g=r(63366),m=r(87462),v=r(86010),y=r(14142),b=r(18719),x=r(94780),w=r(74312),C=r(20407),S=r(78653),E=r(30220),k=r(26821);function O(e){return(0,k.d6)("MuiListItem",e)}(0,k.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var Z=r(94593),$=r(40780),P=r(30532),j=r(62774);let A=a.createContext(void 0);var R=r(43614);let T=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],F=e=>{let{sticky:t,nested:r,nesting:n,variant:o,color:i}=e,a={root:["root",r&&"nested",n&&"nesting",t&&"sticky",i&&`color${(0,y.Z)(i)}`,o&&`variant${(0,y.Z)(o)}`],startAction:["startAction"],endAction:["endAction"]};return(0,x.Z)(a,O,{})},I=(0,w.Z)("li",{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},(0,m.Z)({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"flex",flex:"none",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},void 0===t["data-first-child"]&&(0,m.Z)({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)",fontSize:"var(--ListItem-fontSize)",fontFamily:e.vars.fontFamily.body},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"}),null==(r=e.variants[t.variant])?void 0:r[t.color]]}),L=(0,w.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1})),_=(0,w.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"})),N=a.forwardRef(function(e,t){let r=(0,C.Z)({props:e,name:"JoyListItem"}),n=a.useContext(R.Z),o=a.useContext(j.Z),l=a.useContext($.Z),s=a.useContext(P.Z),c=a.useContext(Z.Z),{component:u,className:f,children:d,nested:p=!1,sticky:h=!1,variant:y="plain",color:x="neutral",startAction:w,endAction:k,role:O,slots:N={},slotProps:B={}}=r,M=(0,g.Z)(r,T),{getColor:D}=(0,S.VT)(y),z=D(e.color,x),[H,W]=a.useState(""),[U,V]=(null==o?void 0:o.split(":"))||["",""],q=u||(U&&!U.match(/^(ul|ol|menu)$/)?"div":void 0),K="menu"===n?"none":void 0;o&&(K=({menu:"none",menubar:"none",group:"presentation"})[V]),O&&(K=O);let G=(0,m.Z)({},r,{sticky:h,startAction:w,endAction:k,row:l,wrap:s,variant:y,color:z,nesting:c,nested:p,component:q,role:K}),J=F(G),X=(0,m.Z)({},M,{component:q,slots:N,slotProps:B}),[Y,Q]=(0,E.Z)("root",{additionalProps:{role:K},ref:t,className:(0,v.Z)(J.root,f),elementType:I,externalForwardedProps:X,ownerState:G}),[ee,et]=(0,E.Z)("startAction",{className:J.startAction,elementType:L,externalForwardedProps:X,ownerState:G}),[er,en]=(0,E.Z)("endAction",{className:J.endAction,elementType:_,externalForwardedProps:X,ownerState:G});return(0,i.jsx)(A.Provider,{value:W,children:(0,i.jsx)(Z.Z.Provider,{value:!!p&&(H||!0),children:(0,i.jsxs)(Y,(0,m.Z)({},Q,{children:[w&&(0,i.jsx)(ee,(0,m.Z)({},et,{children:w})),a.Children.map(d,(e,t)=>a.isValidElement(e)?a.cloneElement(e,(0,m.Z)({},0===t&&{"data-first-child":""},(0,b.Z)(e,["ListItem"])&&{component:e.props.component||"div"})):e),k&&(0,i.jsx)(er,(0,m.Z)({},en,{children:k}))]}))})})});N.muiName="ListItem";var B=r(16079);function M(e){return(0,k.d6)("MuiListItemContent",e)}(0,k.sI)("MuiListItemContent",["root"]);let D=["component","className","children","slots","slotProps"],z=()=>(0,x.Z)({root:["root"]},M,{}),H=(0,w.Z)("div",{name:"JoyListItemContent",slot:"Root",overridesResolver:(e,t)=>t.root})({flex:"1 1 auto",minWidth:0}),W=a.forwardRef(function(e,t){let r=(0,C.Z)({props:e,name:"JoyListItemContent"}),{component:n,className:o,children:a,slots:l={},slotProps:s={}}=r,c=(0,g.Z)(r,D),u=(0,m.Z)({},r),f=z(),d=(0,m.Z)({},c,{component:n,slots:l,slotProps:s}),[p,h]=(0,E.Z)("root",{ref:t,className:(0,v.Z)(f.root,o),elementType:H,externalForwardedProps:d,ownerState:u});return(0,i.jsx)(p,(0,m.Z)({},h,{children:a}))});var U=r(40911),V=r(14553);function q(e){return(0,k.d6)("MuiListItemDecorator",e)}(0,k.sI)("MuiListItemDecorator",["root"]);var K=r(41785);let G=["component","className","children","slots","slotProps"],J=()=>(0,x.Z)({root:["root"]},q,{}),X=(0,w.Z)("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,m.Z)({boxSizing:"border-box",display:"inline-flex",color:"var(--ListItemDecorator-color)"},"horizontal"===e.parentOrientation?{minInlineSize:"var(--ListItemDecorator-size)",alignItems:"center"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center"})),Y=a.forwardRef(function(e,t){let r=(0,C.Z)({props:e,name:"JoyListItemDecorator"}),{component:n,className:o,children:l,slots:s={},slotProps:c={}}=r,u=(0,g.Z)(r,G),f=a.useContext(K.Z),d=(0,m.Z)({parentOrientation:f},r),p=J(),h=(0,m.Z)({},u,{component:n,slots:s,slotProps:c}),[y,b]=(0,E.Z)("root",{ref:t,className:(0,v.Z)(p.root,o),elementType:X,externalForwardedProps:h,ownerState:d});return(0,i.jsx)(y,(0,m.Z)({},b,{children:l}))});var Q=r(2549),ee=r(31523),et=r(99078),er=r(48953),en=r(66418),eo=r(52778),ei=r(25675),ea=r.n(ei),el=r(94184),es=r.n(el),ec=r(326),eu=r(28223),ef=r(79453),ed=r(80087),ep=r(67421),eh=r(41468),eg=r(43893),em=()=>{let e=(0,l.usePathname)(),{t,i18n:r}=(0,ep.$G)();(0,l.useSearchParams)();let n=(0,l.useRouter)(),[o,s]=(0,a.useState)("/LOGO_1.png"),{dialogueList:g,chatId:m,queryDialogueList:v,refreshDialogList:y,isMenuExpand:b,setIsMenuExpand:x}=(0,a.useContext)(eh.p),{mode:w,setMode:C}=(0,f.tv)(),S=(0,a.useMemo)(()=>[{label:t("Data_Source"),route:"/database",icon:(0,i.jsx)(eu.Z,{fontSize:"small"}),tooltip:"Database",active:"/database"===e},{label:t("Knowledge_Space"),route:"/datastores",icon:(0,i.jsx)(ee.Z,{fontSize:"small"}),tooltip:"Knowledge",active:"/datastores"===e}],[e,r.language]);function E(){"light"===w?C("dark"):C("light")}return(0,a.useEffect)(()=>{"light"===w?s("/LOGO_1.png"):s("/WHITE_LOGO.png")},[w]),(0,a.useEffect)(()=>{(async()=>{await v()})()},[]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("nav",{className:es()("grid max-h-screen h-full max-md:hidden"),children:(0,i.jsx)(d.Z,{className:"flex flex-col border-r border-divider max-h-screen sticky left-0 top-0 overflow-hidden",children:b?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{className:"p-2 gap-2 flex flex-row justify-between items-center",children:(0,i.jsx)("div",{className:"flex items-center gap-3",children:(0,i.jsx)(c(),{href:"/",children:(0,i.jsx)(ea(),{src:o,alt:"DB-GPT",width:633,height:157,className:"w-full max-w-full"})})})}),(0,i.jsx)(d.Z,{className:"px-2",children:(0,i.jsx)(c(),{href:"/",children:(0,i.jsx)(p.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,i.jsx)(d.Z,{className:"p-2 hidden xs:block sm:inline-block max-h-full overflow-auto",children:(0,i.jsx)(h.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,i.jsx)(N,{nested:!0,children:(0,i.jsx)(h.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:(g||[]).map(t=>{let r=("/chat"===e||"/chat/"===e)&&m===t.conv_uid;return(0,i.jsx)(N,{children:(0,i.jsx)(B.Z,{selected:r,variant:r?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,i.jsx)(W,{children:(0,i.jsxs)(c(),{href:"/chat?id=".concat(t.conv_uid,"&scene=").concat(null==t?void 0:t.chat_mode),className:"flex items-center justify-between",children:[(0,i.jsxs)(U.ZP,{fontSize:14,noWrap:!0,children:[(0,i.jsx)(en.Z,{style:{marginRight:"0.5rem"}}),(null==t?void 0:t.user_name)||(null==t?void 0:t.user_input)||"undefined"]}),(0,i.jsx)(V.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:r=>{r.preventDefault(),r.stopPropagation(),u.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,eg.Vx)((0,eg.MX)(t.conv_uid)),await y(),"/chat"===e&&m===t.conv_uid&&n.push("/")}})},className:"del-btn invisible",children:(0,i.jsx)(eo.Z,{})})]})})})},t.conv_uid)})})})})}),(0,i.jsx)("div",{className:"flex flex-col justify-end flex-1",children:(0,i.jsx)(d.Z,{className:"p-2 pt-3 pb-6 border-t border-divider xs:block sticky bottom-0 z-100",children:(0,i.jsxs)(h.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,i.jsx)(N,{nested:!0,children:(0,i.jsx)(h.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:S.map(e=>(0,i.jsx)(c(),{href:e.route,children:(0,i.jsx)(N,{children:(0,i.jsxs)(B.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,i.jsx)(Y,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,i.jsx)(W,{children:e.label})]})})},e.route))})}),(0,i.jsx)(N,{children:(0,i.jsxs)(B.Z,{className:"h-10",onClick:E,children:[(0,i.jsx)(Q.Z,{title:"Theme",children:(0,i.jsx)(Y,{children:"dark"===w?(0,i.jsx)(et.Z,{fontSize:"small"}):(0,i.jsx)(er.Z,{fontSize:"small"})})}),(0,i.jsx)(W,{children:t("Theme")})]})}),(0,i.jsx)(N,{children:(0,i.jsxs)(B.Z,{className:"h-10",onClick:()=>{let e="en"===r.language?"zh":"en";r.changeLanguage(e),window.localStorage.setItem("db_gpt_lng",e)},children:[(0,i.jsx)(Q.Z,{title:"Language",children:(0,i.jsx)(Y,{className:"text-2xl",children:(0,i.jsx)(ed.Z,{fontSize:"small"})})}),(0,i.jsx)(W,{children:t("language")})]})}),(0,i.jsx)(N,{children:(0,i.jsxs)(B.Z,{className:"h-10",onClick:()=>{x(!1)},children:[(0,i.jsx)(Q.Z,{title:"Close Sidebar",children:(0,i.jsx)(Y,{className:"text-2xl",children:(0,i.jsx)(ef.Z,{className:"transform rotate-90",fontSize:"small"})})}),(0,i.jsx)(W,{children:t("Close_Sidebar")})]})})]})})})]}):(0,i.jsxs)(d.Z,{className:"h-full py-6 flex flex-col justify-between",children:[(0,i.jsx)(d.Z,{className:"flex justify-center items-center",children:(0,i.jsx)(Q.Z,{title:"Menu",children:(0,i.jsx)(ec.Z,{className:"cursor-pointer text-2xl",onClick:()=>{x(!0)}})})}),(0,i.jsxs)(d.Z,{className:"flex flex-col gap-4 justify-center items-center",children:[S.map((e,t)=>(0,i.jsx)("div",{className:"flex justify-center text-2xl cursor-pointer",children:(0,i.jsx)(Q.Z,{title:e.tooltip,children:e.icon})},"menu_".concat(t))),(0,i.jsx)(N,{children:(0,i.jsx)(B.Z,{onClick:E,children:(0,i.jsx)(Q.Z,{title:"Theme",children:(0,i.jsx)(Y,{className:"text-2xl",children:"dark"===w?(0,i.jsx)(et.Z,{fontSize:"small"}):(0,i.jsx)(er.Z,{fontSize:"small"})})})})}),(0,i.jsx)(N,{children:(0,i.jsx)(B.Z,{onClick:()=>{x(!0)},children:(0,i.jsx)(Q.Z,{title:"Unfold",children:(0,i.jsx)(Y,{className:"text-2xl",children:(0,i.jsx)(ef.Z,{className:"transform rotate-90",fontSize:"small"})})})})})]})]})})})})},ev=r(38629),ey=r(59077),eb=r(9818);let ex=(0,ey.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...eb.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...eb.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var ew=r(11163),eC=r.n(ew),eS=r(74865),eE=r.n(eS);let ek=0;function eO(){"loading"!==o&&(o="loading",n=setTimeout(function(){eE().start()},250))}function eZ(){ek>0||(o="stop",clearTimeout(n),eE().done())}if(eC().events.on("routeChangeStart",eO),eC().events.on("routeChangeComplete",eZ),eC().events.on("routeChangeError",eZ),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||eP,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{e(...r)})}if(this.observers["*"]){let t=[].concat(this.observers["*"]);t.forEach(t=>{t.apply(t,[e,...r])})}}}function eT(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r}function eF(e){return null==e?"":""+e}function eI(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}let i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};let t=n(i.shift());!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function eL(e,t,r){let{obj:n,k:o}=eI(e,t,Object);n[o]=r}function e_(e,t){let{obj:r,k:n}=eI(e,t);if(r)return r[n]}function eN(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var eB={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function eM(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>eB[e]):e}let eD=[" ",",","?","!",";"];function ez(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(r),o=e;for(let e=0;ee+i;)i++,l=o[a=n.slice(e,e+i).join(r)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(a)){if("string"==typeof l)return l;if(a&&"string"==typeof l[a])return l[a]}let s=n.slice(e+i).join(r);if(s)return ez(l,s,r);return}o=o[n[e]]}return o}function eH(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class eW extends eR{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."));let l=e_(this.data,a);return l||!i||"string"!=typeof r?l:ez(this.data&&this.data[e]&&this.data[e][t],r,o)}addResource(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),eL(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in r)("string"==typeof r[n]||"[object Array]"===Object.prototype.toString.apply(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let l=e_(this.data,a)||{};n?function e(t,r,n){for(let o in r)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof r[o]||r[o]instanceof String?n&&(t[o]=r[o]):e(t[o],r[o],n):t[o]=r[o]);return t}(l,r,o):l={...l,...r},eL(this.data,a,l),i.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e),r=t&&Object.keys(t)||[];return!!r.find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var eU={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,o))}),t}};let eV={};class eq extends eR{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,r){e.forEach(e=>{t[e]&&(r[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=eA.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=r&&e.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,r){t=t||"",r=r||"";let n=eD.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let o=RegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),i=!o.test(e);if(!i){let t=e.indexOf(r);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,r,n);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};let i=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:`${l}${e}${i}`}return n?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:i}let u=this.resolve(e,t),f=u&&u.res,d=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(f),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(m&&f&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof g&&"[object Array]"===h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(u.res=e,u):e}if(o){let e="[object Array]"===h,r=e?[]:{},n=e?p:d;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${n}${o}${e}`;r[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),r[e]===i&&(r[e]=f[e])}f=r}}else if(m&&"string"==typeof g&&"[object Array]"===h)(f=f.join(g))&&(f=this.extendTranslation(f,e,t,r));else{let n=!1,a=!1,c=void 0!==t.count&&"string"!=typeof t.count,d=eq.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",g=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(f)&&d&&(n=!0,f=g),this.isValidLookup(f)||(a=!0,f=i);let m=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,v=m&&a?void 0:f,y=d&&g!==f&&this.options.updateMissing;if(a||n||y){if(this.logger.log(y?"updateKey":"missingKey",s,l,i,y?g:f),o){let e=this.resolve(i,{...t,keySeparator:!1});e&&e.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 e=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t{let o=d&&n!==f?n:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,r,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,r,o,y,t),this.emit("missingKey",e,l,r,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{this.pluralResolver.getSuffixes(e,t).forEach(r=>{n([e],i+r,t[`defaultValue${r}`]||g)})}):n(e,i,g))}f=this.extendTranslation(f,e,t,u,r),a&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${i}`),(a||n)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,n?f:void 0):this.options.parseMissingKeyHandler(f))}return n?(u.res=f,u):f}extendTranslation(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let a;r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let l="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,r.lng||this.language,r),l){let t=e.match(this.interpolator.nestingRegexp),n=t&&t.length;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),s=l.key;r=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==a.count&&"string"!=typeof a.count,f=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(i=e,!eV[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(eV[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" 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!!!")),p.forEach(r=>{let i;if(this.isValidLookup(t))return;o=r;let l=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,r,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(r,a.count,a));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(l.push(s+e),a.ordinal&&0===e.indexOf(n)&&l.push(s+e.replace(n,this.options.pluralSeparator)),f&&l.push(s+t)),d){let r=`${s}${this.options.contextSeparator}${a.context}`;l.push(r),u&&(l.push(r+e),a.ordinal&&0===e.indexOf(n)&&l.push(r+e.replace(n,this.options.pluralSeparator)),f&&l.push(r+t))}}for(;i=l.pop();)this.isValidLookup(t)||(n=i,t=this.getResource(r,e,i,a))}))})}),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}function eK(e){return e.charAt(0).toUpperCase()+e.slice(1)}class eG{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=eA.create("languageUtils")}getScriptPartFromCode(e){if(!(e=eH(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=eH(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=eK(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=eK(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=eK(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&0===e.indexOf(r))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(e=>{0>n.indexOf(e)&&o(this.formatLanguageCode(e))}),n}}let eJ=[{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}],eX={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},eY=["v1","v2","v3"],eQ=["v4"],e0={zero:0,one:1,two:2,few:3,many:4,other:5};class e1{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=eA.create("pluralResolver"),(!this.options.compatibilityJSON||eQ.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!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=function(){let e={};return eJ.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:eX[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(eH(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>e0[e]-e0[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!eY.includes(this.options.compatibilityJSON)}}function e2(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],i=function(e,t,r){let n=e_(e,r);return void 0!==n?n:e_(t,r)}(e,t,r);return!i&&o&&"string"==typeof r&&void 0===(i=ez(e,r,n))&&(i=ez(t,r,n)),i}class e4{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=eA.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:eM,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?eN(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?eN(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?eN(t.nestingPrefix):t.nestingPrefixEscaped||eN("$t("),this.nestingSuffix=t.nestingSuffix?eN(t.nestingSuffix):t.nestingSuffixEscaped||eN(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=RegExp(e,"g");let t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=RegExp(t,"g");let r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=RegExp(r,"g")}interpolate(e,t,r,n){let o,i,a;let l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}let c=e=>{if(0>e.indexOf(this.formatSeparator)){let o=e2(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(e2(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...n,...t,interpolationkey:i})};this.resetRegExp();let u=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,f=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,d=[{regex:this.regexpUnescape,safeValue:e=>s(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?s(this.escape(e)):s(e)}];return d.forEach(t=>{for(a=0;o=t.regex.exec(e);){let r=o[1].trim();if(void 0===(i=c(r))){if("function"==typeof u){let t=u(e,o,n);i="string"==typeof t?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else if(f){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=eF(i));let l=t.safeValue(i);if(e=e.replace(o[0],l),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t){let r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),i=`{${n[1]}`;e=n[0],i=this.interpolate(i,o);let a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return delete o.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){let l=[];(o=(o={...i}).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let s=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),l=e,s=!0}if((n=t(a.call(this,r[1].trim(),o),o))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=eF(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),s&&(n=l.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}function e5(e){let t={};return function(r,n,o){let i=n+JSON.stringify(o),a=t[i];return a||(a=e(eH(n),o),t[i]=a),a(r)}}class e6{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=eA.create("formatter"),this.options=e,this.formats={number:e5((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:e5((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:e5((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:e5((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:e5((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=t.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=e5(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator),i=o.reduce((e,t)=>{let{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let o=n[1].substring(0,n[1].length-1);if("currency"===t&&0>o.indexOf(":"))r.currency||(r.currency=o.trim());else if("relativetime"===t&&0>o.indexOf(":"))r.range||(r.range=o.trim());else{let e=o.split(";");e.forEach(e=>{if(!e)return;let[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,"");r[t.trim()]||(r[t.trim()]=o),"false"===o&&(r[t.trim()]=!1),"true"===o&&(r[t.trim()]=!0),isNaN(o)||(r[t.trim()]=parseInt(o,10))})}}return{formatName:t,formatOptions:r}}(t);if(this.formats[o]){let t=e;try{let a=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},l=a.locale||a.lng||n.locale||n.lng||r;t=this.formats[o](e,l,{...i,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class e3 extends eR{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=eA.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){let o={},i={},a={},l={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,n=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,r){let n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),r&&this.store.addResourceBundle(o,i,r),this.state[e]=t?-1:2;let a={};this.queue.forEach(r=>{(function(e,t,r,n){let{obj:o,k:i}=eI(e,t,Object);o[i]=o[i]||[],n&&(o[i]=o[i].concat(r)),n||o[i].push(r)})(r.loaded,[o],i),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{a[e]||(a[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:o,callback:i});return}this.readingCalls++;let a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&l&&n{this.read.call(this,e,t,r,n+1,2*o,i)},o);return}i(a,l)},l=this.backend[r].bind(this.backend);if(2===l.length){try{let r=l(e,t);r&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}return}return l(e,t,a)}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=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."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,(r,i)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,i),this.loaded(e,r,i)})}saveMissing(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${r}" as the namespace "${t}" 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(null!=r&&""!==r){if(this.backend&&this.backend.create){let l={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;(o=5===s.length?s(e,t,r,n,l):s(e,t,r,n))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else s(e,t,r,n,a,l)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}function e8(){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 t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:(e,t,r,n)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function e7(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function e9(){}class te extends eR{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=e7(e),this.services={},this.logger=eA,this.modules={external:[]},!function(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let n=e8();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...n,...this.options,...e7(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?eA.init(o(this.modules.logger),this.options):eA.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=e6);let r=new eG(this.options);this.store=new eW(this.options.resources,this.options);let i=this.services;i.logger=eA,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new e1(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new e4(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new e3(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=e9),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[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(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let i=eT(),a=()=>{let e=(e,t)=>{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),i.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e9,r=t,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{if(!t||"cimode"===t)return;let r=this.services.languageUtils.toResolveHierarchy(t);r.forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};if(n)t(n);else{let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.forEach(e=>t(e))}this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=eT();return e||(e=this.languages),t||(t=this.options.ns),r||(r=e9),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&eU.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;let n=eT();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);let r="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{i(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;let o=function(e,t){let i,a;if("object"!=typeof t){for(var l=arguments.length,s=Array(l>2?l-2:0),c=2;c`${i.keyPrefix}${u}${e}`):i.keyPrefix?`${i.keyPrefix}${u}${e}`:e,n.t(a,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}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 t=arguments.length>1&&void 0!==arguments[1]?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;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let i=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||2===r};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!n||i(o,e)))}loadNamespaces(e,t){let r=eT();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=eT();"string"==typeof e&&(e=[e]);let n=this.options.preload||[],o=e.filter(e=>0>n.indexOf(e));return o.length?(this.options.preload=n.concat(o),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";let t=this.services&&this.services.languageUtils||new eG(e8());return["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"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new te(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e9,r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},o=new te(n);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new eW(this.store.data,n),o.services.resourceStore=o.store),o.translator=new eq(o.services,n),o.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{if((null==o?void 0:o.current)&&n){var e,t,r,i,a,l;null==o||null===(e=o.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(n),"light"===n?null==o||null===(r=o.current)||void 0===r||null===(i=r.classList)||void 0===i||i.remove("dark"):null==o||null===(a=o.current)||void 0===a||null===(l=a.classList)||void 0===l||l.remove("light")}},[o,n]),(0,a.useEffect)(()=>{r.changeLanguage&&r.changeLanguage(window.localStorage.getItem("db_gpt_lng")||"en")},[r]),(0,i.jsxs)("div",{ref:o,children:[(0,i.jsx)(e$,{}),(0,i.jsx)(eh.R,{children:t})]})}function tn(e){let{children:t}=e,{isMenuExpand:r}=(0,a.useContext)(eh.p);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"flex w-screen h-screen overflow-hidden",children:[(0,i.jsx)("div",{className:es()("transition-[width]",r?"w-[240px]":"w-[80px]","hidden","md:block"),children:(0,i.jsx)(em,{})}),(0,i.jsx)("div",{className:"flex flex-col flex-1 relative overflow-hidden",children:t})]})})}tt.createInstance=te.createInstance,tt.createInstance,tt.dir,tt.init,tt.loadResources,tt.reloadResources,tt.use,tt.changeLanguage,tt.getFixedT,tt.t,tt.exists,tt.setDefaultNamespace,tt.hasLoadedNamespace,tt.loadNamespaces,tt.loadLanguages,tt.use(ep.Db).init({resources:{en:{translation:{Knowledge_Space:"Knowledge Space",space:"space",Vector:"Vector",Owner:"Owner",Docs:"Docs",Knowledge_Space_Config:"Knowledge Space Config",Choose_a_Datasource_type:"Choose a Datasource type",Setup_the_Datasource:"Setup the Datasource",Knowledge_Space_Name:"Knowledge Space Name",Please_input_the_name:"Please input the name",Please_input_the_owner:"Please input the owner",Description:"Description",Please_input_the_description:"Please input the description",Next:"Next",the_name_can_only_contain:'the name can only contain numbers, letters, Chinese characters, "-" and "_"',Text:"Text","Fill your raw text":"Fill your raw text",URL:"URL",Fetch_the_content_of_a_URL:"Fetch the content of a URL",Document:"Document",Upload_a_document:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown",Name:"Name",Text_Source:"Text Source(Optional)",Please_input_the_text_source:"Please input the text source",Synch:"Synch",Back:"Back",Finish:"Finish",Web_Page_URL:"Web Page URL",Please_input_the_Web_Page_URL:"Please input the Web Page URL",Select_or_Drop_file:"Select or Drop file",Documents:"Documents",Chat:"Chat",Add_Datasource:"Add Datasource",Arguments:"Arguments",Type:"Type",Size:"Size",Last_Synch:"Last Synch",Status:"Status",Result:"Result",Details:"Details",Delete:"Delete",Operation:"Operation",Submit:"Submit",Chunks:"Chunks",Content:"Content",Meta_Data:"Meta Data",Please_select_a_file:"Please select a file",Please_input_the_text:"Please input the text",Embedding:"Embedding",topk:"topk",the_top_k_vectors:"the top k vectors based on similarity score",recall_score:"recall_score",Set_a_threshold_score:"Set a threshold score for the retrieval of similar vectors",recall_type:"recall_type",Recall_Type:"recall type",model:"model",A_model_used:"A model used to create vector representations of text or other data",chunk_size:"chunk_size",The_size_of_the_data_chunks:"The size of the data chunks used in processing",chunk_overlap:"chunk_overlap",The_amount_of_overlap:"The amount of overlap between adjacent data chunks",Prompt:"Prompt",scene:"scene",A_contextual_parameter:"A contextual parameter used to define the setting or environment in which the prompt is being used",template:"template",structure_or_format:"A pre-defined structure or format for the prompt, which can help ensure that the AI system generates responses that are consistent with the desired style or tone.",max_token:"max_token",The_maximum_number_of_tokens:"The maximum number of tokens or words allowed in a prompt",Theme:"Theme",Port:"Port",Username:"Username",Password:"Password",Remark:"Remark",Edit:"Edit",Database:"Database",Data_Source:"Data Source",Close_Sidebar:"Fold",language:"Language",choose_model:"Please choose a model"}},zh:{translation:{Knowledge_Space:"知识库",space:"知识库",Vector:"向量",Owner:"创建人",Docs:"文档数",Knowledge_Space_Config:"知识库配置",Choose_a_Datasource_type:"选择数据源类型",Setup_the_Datasource:"设置数据源",Knowledge_Space_Name:"知识库名称",Please_input_the_name:"请输入名称",Please_input_the_owner:"请输入创建人",Description:"描述",Please_input_the_description:"请输入描述",Next:"下一步",the_name_can_only_contain:"名称只能包含数字、字母、中文字符、-或_",Text:"文本","Fill your raw text":"填写您的原始文本",URL:"网址",Fetch_the_content_of_a_URL:"获取 URL 的内容",Document:"文档",Upload_a_document:"上传文档,文档类型可以是PDF、CSV、Text、PowerPoint、Word、Markdown",Name:"名称",Text_Source:"文本来源(可选)",Please_input_the_text_source:"请输入文本来源",Synch:"同步",Back:"上一步",Finish:"完成",Web_Page_URL:"网页网址",Please_input_the_Web_Page_URL:"请输入网页网址",Select_or_Drop_file:"选择或拖拽文件",Documents:"文档",Chat:"对话",Add_Datasource:"添加数据源",Arguments:"参数",Type:"类型",Size:"切片",Last_Synch:"上次同步时间",Status:"状态",Result:"结果",Details:"明细",Delete:"删除",Operation:"操作",Submit:"提交",Chunks:"切片",Content:"内容",Meta_Data:"元数据",Please_select_a_file:"请上传一个文件",Please_input_the_text:"请输入文本",Embedding:"嵌入",topk:"球",the_top_k_vectors:"基于相似度得分的前 k 个向量",recall_score:"召回分数",Set_a_threshold_score:"设置相似向量检索的阈值分数",recall_type:"回忆类型",Recall_Type:"回忆类型",model:"模型",A_model_used:"用于创建文本或其他数据的矢量表示的模型",chunk_size:"块大小",The_size_of_the_data_chunks:"处理中使用的数据块的大小",chunk_overlap:"块重叠",The_amount_of_overlap:"相邻数据块之间的重叠量",Prompt:"迅速的",scene:"场景",A_contextual_parameter:"用于定义使用提示的设置或环境的上下文参数",template:"模板",structure_or_format:"预定义的提示结构或格式,有助于确保人工智能系统生成与所需风格或语气一致的响应。",max_token:"最大令牌",The_maximum_number_of_tokens:"提示中允许的最大标记或单词数",Theme:"主题",Port:"端口",Username:"用户名",Password:"密码",Remark:"备注",Edit:"编辑",Database:"数据库",Data_Source:"数据源",Close_Sidebar:"收起",language:"语言",choose_model:"请选择一个模型"}}},lng:"en",interpolation:{escapeValue:!1}});var to=function(e){let{Component:t,pageProps:r}=e;return(0,i.jsx)(ev.Z,{theme:ex,children:(0,i.jsx)(f.lL,{theme:ex,defaultMode:"light",children:(0,i.jsx)(tr,{children:(0,i.jsx)(tn,{children:(0,i.jsx)(t,{...r})})})})})}},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=s(e),a=i[0],l=i[1],c=new o((a+l)*3/4-l),u=0,f=l>0?a-4:a;for(r=0;r>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,l=n-o;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>l?l:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! + */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case g:case s:return e;default:return t}}case o:return t}}}function C(e){return w(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=s,t.Element=n,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},21296:function(e,t,r){"use strict";e.exports=r(96103)},62705:function(e,t,r){var n=r(55639).Symbol;e.exports=n},44239:function(e,t,r){var n=r(62705),o=r(89607),i=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},27561:function(e,t,r){var n=r(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},31957:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},89607:function(e,t,r){var n=r(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[l]=r:delete e[l]),o}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,r){var n=r(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},23279:function(e,t,r){var n=r(13218),o=r(7771),i=r(14841),a=Math.max,l=Math.min;e.exports=function(e,t,r){var s,c,u,f,d,p,h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=s,n=c;return s=c=void 0,h=t,f=e.apply(n,r)}function b(e){var r=e-p,n=e-h;return void 0===p||r>=t||r<0||m&&n>=u}function x(){var e,r,n,i=o();if(b(i))return w(i);d=setTimeout(x,(e=i-p,r=i-h,n=t-e,m?l(n,u-r):n))}function w(e){return(d=void 0,v&&s)?y(e):(s=c=void 0,f)}function C(){var e,r=o(),n=b(r);if(s=arguments,c=this,p=r,n){if(void 0===d)return h=e=p,d=setTimeout(x,t),g?y(e):f;if(m)return clearTimeout(d),d=setTimeout(x,t),y(p)}return void 0===d&&(d=setTimeout(x,t)),f}return t=i(t)||0,n(r)&&(g=!!r.leading,u=(m="maxWait"in r)?a(i(r.maxWait)||0,t):u,v="trailing"in r?!!r.trailing:v),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},C.flush=function(){return void 0===d?f:w(o())},C}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,r){var n=r(44239),o=r(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},7771:function(e,t,r){var n=r(55639);e.exports=function(){return n.Date.now()}},23493:function(e,t,r){var n=r(23279),o=r(13218);e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},14841:function(e,t,r){var n=r(27561),o=r(13218),i=r(33448),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):l.test(e)?a:+e}},83454:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(77663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(49688)}])},41468:function(e,t,r){"use strict";r.d(t,{R:function(){return c},p:function(){return s}});var n=r(85893),o=r(67294),i=r(43893),a=r(39332),l=r(577);let s=(0,o.createContext)({scene:"",chatId:"",modelList:[],model:"",setModel:()=>{},dialogueList:[],setIsContract:()=>{},setIsMenuExpand:()=>{},queryDialogueList:()=>{},refreshDialogList:()=>{}}),c=e=>{var t,r;let{children:c}=e,u=(0,a.useSearchParams)(),[f,d]=(0,o.useState)(!1),p=null!==(t=null==u?void 0:u.get("id"))&&void 0!==t?t:"",h=null!==(r=null==u?void 0:u.get("scene"))&&void 0!==r?r:"",[g,m]=(0,o.useState)(""),[v,y]=(0,o.useState)("chat_dashboard"!==h),{run:b,data:x=[],refresh:w}=(0,l.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.Js)());return null!=e?e:[]},{manual:!0}),{data:C=[]}=(0,l.Z)(async()=>{let[,e]=await (0,i.Vx)((0,i.fZ)());return null!=e?e:[]});(0,o.useEffect)(()=>{m(C[0])},[C,null==C?void 0:C.length]);let S=(0,o.useMemo)(()=>x.find(e=>e.conv_uid===p),[p,x]);return(0,n.jsx)(s.Provider,{value:{isContract:f,isMenuExpand:v,scene:h,chatId:p,modelList:C,model:g,setModel:m,dialogueList:x,setIsContract:d,setIsMenuExpand:y,queryDialogueList:b,refreshDialogList:w,currentDialogue:S},children:c})}},43893:function(e,t,r){"use strict";r.d(t,{HT:function(){return C},a4:function(){return S},Vx:function(){return a},MX:function(){return b},XN:function(){return c},BJ:function(){return u},Js:function(){return h},$i:function(){return v},fZ:function(){return g},sW:function(){return s},rw:function(){return p},LM:function(){return f},G9:function(){return d},qn:function(){return y},vD:function(){return m},CU:function(){return l}});var n,o=r(6154),i=r(58301);let a=(e,t)=>e.then(e=>{let{data:r}=e;if(!r)throw Error("Network Error!");if(!r.success&&t&&"*"!==t&&r.err_code&&t.includes(r.err_code)){var n;throw i.ZP.error(r.err_msg),Error(null!==(n=r.err_msg)&&void 0!==n?n:"")}return[null,r.data,r,e]}).catch(e=>[e,null,null,null]),l=()=>S("/chat/dialogue/scenes"),s=e=>S("/chat/dialogue/new",e),c=()=>C("/chat/db/list"),u=()=>C("/chat/db/support/type"),f=e=>S("/chat/db/delete?db_name=".concat(e),void 0),d=e=>S("/chat/db/edit",e),p=e=>S("/chat/db/add",e),h=()=>C("/chat/dialogue/list"),g=()=>C("/model/types"),m=e=>S("/chat/mode/params/list?chat_mode=".concat(e)),v=e=>C("/chat/dialogue/messages/history?con_uid=".concat(e)),y=e=>{let{convUid:t,chatMode:r,data:n,config:o,model:i}=e;return S("/chat/mode/params/file/load?conv_uid=".concat(t,"&chat_mode=").concat(r,"&model_name=").concat(i),n,{headers:{"Content-Type":"multipart/form-data"},...o})},b=e=>S("/chat/dialogue/delete?con_uid=".concat(e));var x=r(83454);let w=o.Z.create({baseURL:"".concat(null!==(n=x.env.API_BASE_URL)&&void 0!==n?n:"","/api/v1"),timeout:1e4}),C=(e,t,r)=>w.get(e,{params:t,...r}),S=(e,t,r)=>w.post(e,t,r)},32665:function(e,t,r){"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(38754),r(67294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41219:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return p},useSearchParams:function(){return h},usePathname:function(){return g},ServerInsertedHTMLContext:function(){return s.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return s.useServerInsertedHTML},useRouter:function(){return m},useParams:function(){return v},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return c.redirect},notFound:function(){return u.notFound}});let n=r(67294),o=r(27473),i=r(35802),a=r(32665),l=r(43512),s=r(98751),c=r(96885),u=r(86323),f=Symbol("internal for urlsearchparams readonly");function d(){return Error("ReadonlyURLSearchParams cannot be modified")}class p{[Symbol.iterator](){return this[f][Symbol.iterator]()}append(){throw d()}delete(){throw d()}set(){throw d()}sort(){throw d()}constructor(e){this[f]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function h(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(i.SearchParamsContext),t=(0,n.useMemo)(()=>e?new p(e):null,[e]);return t}function g(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(i.PathnameContext)}function m(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function v(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(o.GlobalLayoutRouterContext);return e?function e(t,r){void 0===r&&(r={});let n=t[1];for(let t of Object.values(n)){let n=t[0],o=Array.isArray(n),i=o?n[1]:n;!i||i.startsWith("__PAGE__")||(o&&(r[n[0]]=n[1]),r=e(t,r))}return r}(e.tree):null}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(o.LayoutRouterContext);return function e(t,r,n,o){let i;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)i=t[1][r];else{var a;let e=t[1];i=null!=(a=e.children)?a:Object.values(e)[0]}if(!i)return o;let s=i[0],c=(0,l.getSegmentValue)(s);return!c||c.startsWith("__PAGE__")?o:(o.push(c),e(i,r,!1,o))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86323:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return o}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function o(e){return(null==e?void 0:e.digest)===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96885:function(e,t,r){"use strict";var n,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return l},redirect:function(){return s},isRedirectError:function(){return c},getURLFromRedirectError:function(){return u},getRedirectTypeFromError:function(){return f}});let i=r(68214),a="NEXT_REDIRECT";function l(e,t){let r=Error(a);r.digest=a+";"+t+";"+e;let n=i.requestAsyncStorage.getStore();return n&&(r.mutableCookies=n.mutableCookies),r}function s(e,t){throw void 0===t&&(t="replace"),l(e,t)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,n]=e.digest.split(";",3);return t===a&&("replace"===r||"push"===r)&&"string"==typeof n}function u(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(o=n||(n={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43512:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29382:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return o},ACTION_NAVIGATE:function(){return i},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return s},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return u}});let o="refresh",i="navigate",a="restore",l="server-patch",s="prefetch",c="fast-refresh",u="server-action";(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75476:function(e,t){"use strict";function r(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69873:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let n=r(38754),o=r(61757),i=o._(r(67294)),a=n._(r(68965)),l=r(38083),s=r(2478),c=r(76226);r(59941);let u=n._(r(31720)),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function d(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function h(e,t,r,n,o,i,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===r&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}})}function g(e){let[t,r]=i.version.split("."),n=parseInt(t,10),o=parseInt(r,10);return n>18||18===n&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let m=(0,i.forwardRef)((e,t)=>{let{imgAttributes:r,heightInt:n,widthInt:o,qualityInt:a,className:l,imgStyle:s,blurStyle:c,isLazy:u,fetchPriority:f,fill:d,placeholder:p,loading:m,srcString:v,config:y,unoptimized:b,loader:x,onLoadRef:w,onLoadingCompleteRef:C,setBlurComplete:S,setShowAltText:E,onLoad:k,onError:O,...Z}=e;return m=u?"lazy":m,i.default.createElement("img",{...Z,...g(f),loading:m,width:o,height:n,decoding:"async","data-nimg":d?"fill":"1",className:l,style:{...s,...c},...r,ref:(0,i.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&h(e,v,p,w,C,S,b))},[v,p,w,C,S,O,b,t]),onLoad:e=>{let t=e.currentTarget;h(t,v,p,w,C,S,b)},onError:e=>{E(!0),"blur"===p&&S(!0),O&&O(e)}})}),v=(0,i.forwardRef)((e,t)=>{var r;let n,o,{src:h,sizes:v,unoptimized:y=!1,priority:b=!1,loading:x,className:w,quality:C,width:S,height:E,fill:k,style:O,onLoad:Z,onLoadingComplete:$,placeholder:P="empty",blurDataURL:j,fetchPriority:A,layout:R,objectFit:T,objectPosition:F,lazyBoundary:I,lazyRoot:L,..._}=e,N=(0,i.useContext)(c.ImageConfigContext),B=(0,i.useMemo)(()=>{let e=f||N||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r}},[N]),M=_.loader||u.default;delete _.loader;let D="__next_img_default"in M;if(D){if("custom"===B.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=M;M=t=>{let{config:r,...n}=t;return e(n)}}if(R){"fill"===R&&(k=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];e&&(O={...O,...e});let t={responsive:"100vw",fill:"100vw"}[R];t&&!v&&(v=t)}let z="",H=p(S),U=p(E);if("object"==typeof(r=h)&&(d(r)||void 0!==r.src)){let e=d(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(n=e.blurWidth,o=e.blurHeight,j=j||e.blurDataURL,z=e.src,!k){if(H||U){if(H&&!U){let t=H/e.width;U=Math.round(e.height*t)}else if(!H&&U){let t=U/e.height;H=Math.round(e.width*t)}}else H=e.width,U=e.height}}let W=!b&&("lazy"===x||void 0===x);(!(h="string"==typeof h?h:z)||h.startsWith("data:")||h.startsWith("blob:"))&&(y=!0,W=!1),B.unoptimized&&(y=!0),D&&h.endsWith(".svg")&&!B.dangerouslyAllowSVG&&(y=!0),b&&(A="high");let[V,q]=(0,i.useState)(!1),[K,G]=(0,i.useState)(!1),J=p(C),X=Object.assign(k?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:T,objectPosition:F}:{},K?{}:{color:"transparent"},O),Y="blur"===P&&j&&!V?{backgroundSize:X.objectFit||"cover",backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:H,heightInt:U,blurWidth:n,blurHeight:o,blurDataURL:j,objectFit:X.objectFit})+'")'}:{},Q=function(e){let{config:t,src:r,unoptimized:n,width:o,quality:i,sizes:a,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:s,kind:c}=function(e,t,r){let{deviceSizes:n,allSizes:o}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let i=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:i,kind:"x"}}(t,o,a),u=s.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:s.map((e,n)=>l({config:t,src:r,quality:i,width:e})+" "+("w"===c?e:n+1)+c).join(", "),src:l({config:t,src:r,quality:i,width:s[u]})}}({config:B,src:h,unoptimized:y,width:H,quality:J,sizes:v,loader:M}),ee=h,et=(0,i.useRef)(Z);(0,i.useEffect)(()=>{et.current=Z},[Z]);let er=(0,i.useRef)($);(0,i.useEffect)(()=>{er.current=$},[$]);let en={isLazy:W,imgAttributes:Q,heightInt:U,widthInt:H,qualityInt:J,className:w,imgStyle:X,blurStyle:Y,loading:x,config:B,fetchPriority:A,fill:k,unoptimized:y,placeholder:P,loader:M,srcString:ee,onLoadRef:et,onLoadingCompleteRef:er,setBlurComplete:q,setShowAltText:G,..._};return i.default.createElement(i.default.Fragment,null,i.default.createElement(m,{...en,ref:t}),b?i.default.createElement(a.default,null,i.default.createElement("link",{key:"__nimg-"+Q.src+Q.srcSet+Q.sizes,rel:"preload",as:"image",href:Q.srcSet?void 0:Q.src,imageSrcSet:Q.srcSet,imageSizes:Q.sizes,crossOrigin:_.crossOrigin,referrerPolicy:_.referrerPolicy,...g(A)})):null)}),y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9940:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let n=r(38754),o=n._(r(67294)),i=r(65722),a=r(65723),l=r(28904),s=r(95514),c=r(27521),u=r(44293),f=r(27473),d=r(81307),p=r(75476),h=r(66318),g=r(29382),m=new Set;function v(e,t,r,n,o,i){if(!i&&!(0,a.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let o=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,i=t+"%"+r+"%"+o;if(m.has(i))return;m.add(i)}let l=i?e.prefetch(t,o):e.prefetch(t,r,n);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:m,children:b,prefetch:x=null,passHref:w,replace:C,shallow:S,scroll:E,locale:k,onClick:O,onMouseEnter:Z,onTouchStart:$,legacyBehavior:P=!1,...j}=e;r=b,P&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let A=!1!==x,R=null===x?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,T=o.default.useContext(u.RouterContext),F=o.default.useContext(f.AppRouterContext),I=null!=T?T:F,L=!T,{href:_,as:N}=o.default.useMemo(()=>{if(!T){let e=y(l);return{href:e,as:m?y(m):e}}let[e,t]=(0,i.resolveHref)(T,l,!0);return{href:e,as:m?(0,i.resolveHref)(T,m):t||e}},[T,l,m]),B=o.default.useRef(_),M=o.default.useRef(N);P&&(n=o.default.Children.only(r));let D=P?n&&"object"==typeof n&&n.ref:t,[z,H,U]=(0,d.useIntersection)({rootMargin:"200px"}),W=o.default.useCallback(e=>{(M.current!==N||B.current!==_)&&(U(),M.current=N,B.current=_),z(e),D&&("function"==typeof D?D(e):"object"==typeof D&&(D.current=e))},[N,D,_,U,z]);o.default.useEffect(()=>{I&&H&&A&&v(I,_,N,{locale:k},{kind:R},L)},[N,_,H,k,A,null==T?void 0:T.locale,I,L,R]);let V={ref:W,onClick(e){P||"function"!=typeof O||O(e),P&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),I&&!e.defaultPrevented&&function(e,t,r,n,i,l,s,c,u,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:l,locale:c,scroll:s}):t[i?"replace":"push"](n||r,{forceOptimisticNavigation:!f})};u?o.default.startTransition(h):h()}(e,I,_,N,C,S,E,k,L,A)},onMouseEnter(e){P||"function"!=typeof Z||Z(e),P&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),I&&(A||!L)&&v(I,_,N,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:R},L)},onTouchStart(e){P||"function"!=typeof $||$(e),P&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),I&&(A||!L)&&v(I,_,N,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:R},L)}};if((0,s.isAbsoluteUrl)(N))V.href=N;else if(!P||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==k?k:null==T?void 0:T.locale,t=(null==T?void 0:T.isLocaleDomain)&&(0,p.getDomainLocale)(N,e,null==T?void 0:T.locales,null==T?void 0:T.domainLocales);V.href=t||(0,h.addBasePath)((0,c.addLocale)(N,e,null==T?void 0:T.defaultLocale))}return P?o.default.cloneElement(n,V):o.default.createElement("a",{...j,...V},r)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81307:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let n=r(67294),o=r(82997),i="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:r,disabled:s}=e,c=s||!i,[u,f]=(0,n.useState)(!1),d=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{d.current=e},[]);(0,n.useEffect)(()=>{if(i){if(c||u)return;let e=d.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:o,elements:i}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let o=new Map,i=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:i,elements:o},l.push(r),a.set(r,t),t}(r);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!u){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,r,t,u,d.current]);let h=(0,n.useCallback)(()=>{f(!1)},[]);return[p,u,h]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38083:function(e,t){"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:o,blurDataURL:i,objectFit:a}=e,l=n||t,s=o||r,c=i.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&s?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+s+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(n&&o?"1":"20")+"'/%3E"+c+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},31720:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:o}=e;return t.path+"?url="+encodeURIComponent(r)+"&w="+n+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},98751:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return a}});let n=r(61757),o=n._(r(67294)),i=o.default.createContext(null);function a(e){let t=(0,o.useContext)(i);t&&t(e)}},49688:function(e,t,r){"use strict";let n,o;r.r(t),r.d(t,{default:function(){return to}});var i=r(85893),a=r(67294),l=r(39332),s=r(41664),c=r.n(s),u=r(43755),f=r(56385),d=r(48665),p=r(47556),h=r(11772),g=r(63366),m=r(87462),v=r(86010),y=r(14142),b=r(18719),x=r(94780),w=r(74312),C=r(20407),S=r(78653),E=r(30220),k=r(26821);function O(e){return(0,k.d6)("MuiListItem",e)}(0,k.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var Z=r(94593),$=r(40780),P=r(30532),j=r(62774);let A=a.createContext(void 0);var R=r(43614);let T=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],F=e=>{let{sticky:t,nested:r,nesting:n,variant:o,color:i}=e,a={root:["root",r&&"nested",n&&"nesting",t&&"sticky",i&&`color${(0,y.Z)(i)}`,o&&`variant${(0,y.Z)(o)}`],startAction:["startAction"],endAction:["endAction"]};return(0,x.Z)(a,O,{})},I=(0,w.Z)("li",{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},(0,m.Z)({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"flex",flex:"none",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},void 0===t["data-first-child"]&&(0,m.Z)({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)",fontSize:"var(--ListItem-fontSize)",fontFamily:e.vars.fontFamily.body},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"}),null==(r=e.variants[t.variant])?void 0:r[t.color]]}),L=(0,w.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1})),_=(0,w.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"})),N=a.forwardRef(function(e,t){let r=(0,C.Z)({props:e,name:"JoyListItem"}),n=a.useContext(R.Z),o=a.useContext(j.Z),l=a.useContext($.Z),s=a.useContext(P.Z),c=a.useContext(Z.Z),{component:u,className:f,children:d,nested:p=!1,sticky:h=!1,variant:y="plain",color:x="neutral",startAction:w,endAction:k,role:O,slots:N={},slotProps:B={}}=r,M=(0,g.Z)(r,T),{getColor:D}=(0,S.VT)(y),z=D(e.color,x),[H,U]=a.useState(""),[W,V]=(null==o?void 0:o.split(":"))||["",""],q=u||(W&&!W.match(/^(ul|ol|menu)$/)?"div":void 0),K="menu"===n?"none":void 0;o&&(K=({menu:"none",menubar:"none",group:"presentation"})[V]),O&&(K=O);let G=(0,m.Z)({},r,{sticky:h,startAction:w,endAction:k,row:l,wrap:s,variant:y,color:z,nesting:c,nested:p,component:q,role:K}),J=F(G),X=(0,m.Z)({},M,{component:q,slots:N,slotProps:B}),[Y,Q]=(0,E.Z)("root",{additionalProps:{role:K},ref:t,className:(0,v.Z)(J.root,f),elementType:I,externalForwardedProps:X,ownerState:G}),[ee,et]=(0,E.Z)("startAction",{className:J.startAction,elementType:L,externalForwardedProps:X,ownerState:G}),[er,en]=(0,E.Z)("endAction",{className:J.endAction,elementType:_,externalForwardedProps:X,ownerState:G});return(0,i.jsx)(A.Provider,{value:U,children:(0,i.jsx)(Z.Z.Provider,{value:!!p&&(H||!0),children:(0,i.jsxs)(Y,(0,m.Z)({},Q,{children:[w&&(0,i.jsx)(ee,(0,m.Z)({},et,{children:w})),a.Children.map(d,(e,t)=>a.isValidElement(e)?a.cloneElement(e,(0,m.Z)({},0===t&&{"data-first-child":""},(0,b.Z)(e,["ListItem"])&&{component:e.props.component||"div"})):e),k&&(0,i.jsx)(er,(0,m.Z)({},en,{children:k}))]}))})})});N.muiName="ListItem";var B=r(16079);function M(e){return(0,k.d6)("MuiListItemContent",e)}(0,k.sI)("MuiListItemContent",["root"]);let D=["component","className","children","slots","slotProps"],z=()=>(0,x.Z)({root:["root"]},M,{}),H=(0,w.Z)("div",{name:"JoyListItemContent",slot:"Root",overridesResolver:(e,t)=>t.root})({flex:"1 1 auto",minWidth:0}),U=a.forwardRef(function(e,t){let r=(0,C.Z)({props:e,name:"JoyListItemContent"}),{component:n,className:o,children:a,slots:l={},slotProps:s={}}=r,c=(0,g.Z)(r,D),u=(0,m.Z)({},r),f=z(),d=(0,m.Z)({},c,{component:n,slots:l,slotProps:s}),[p,h]=(0,E.Z)("root",{ref:t,className:(0,v.Z)(f.root,o),elementType:H,externalForwardedProps:d,ownerState:u});return(0,i.jsx)(p,(0,m.Z)({},h,{children:a}))});var W=r(40911),V=r(14553);function q(e){return(0,k.d6)("MuiListItemDecorator",e)}(0,k.sI)("MuiListItemDecorator",["root"]);var K=r(41785);let G=["component","className","children","slots","slotProps"],J=()=>(0,x.Z)({root:["root"]},q,{}),X=(0,w.Z)("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,m.Z)({boxSizing:"border-box",display:"inline-flex",color:"var(--ListItemDecorator-color)"},"horizontal"===e.parentOrientation?{minInlineSize:"var(--ListItemDecorator-size)",alignItems:"center"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center"})),Y=a.forwardRef(function(e,t){let r=(0,C.Z)({props:e,name:"JoyListItemDecorator"}),{component:n,className:o,children:l,slots:s={},slotProps:c={}}=r,u=(0,g.Z)(r,G),f=a.useContext(K.Z),d=(0,m.Z)({parentOrientation:f},r),p=J(),h=(0,m.Z)({},u,{component:n,slots:s,slotProps:c}),[y,b]=(0,E.Z)("root",{ref:t,className:(0,v.Z)(p.root,o),elementType:X,externalForwardedProps:h,ownerState:d});return(0,i.jsx)(y,(0,m.Z)({},b,{children:l}))});var Q=r(2549),ee=r(31523),et=r(99078),er=r(48953),en=r(66418),eo=r(52778),ei=r(25675),ea=r.n(ei),el=r(94184),es=r.n(el),ec=r(326),eu=r(28223),ef=r(79453),ed=r(80087),ep=r(67421),eh=r(41468),eg=r(43893),em=()=>{let e=(0,l.usePathname)(),{t,i18n:r}=(0,ep.$G)();(0,l.useSearchParams)();let n=(0,l.useRouter)(),[o,s]=(0,a.useState)("/LOGO_1.png"),{dialogueList:g,chatId:m,queryDialogueList:v,refreshDialogList:y,isMenuExpand:b,setIsMenuExpand:x}=(0,a.useContext)(eh.p),{mode:w,setMode:C}=(0,f.tv)(),S=(0,a.useMemo)(()=>[{label:t("Data_Source"),route:"/database",icon:(0,i.jsx)(eu.Z,{fontSize:"small"}),tooltip:"Database",active:"/database"===e},{label:t("Knowledge_Space"),route:"/datastores",icon:(0,i.jsx)(ee.Z,{fontSize:"small"}),tooltip:"Knowledge",active:"/datastores"===e}],[e,r.language]);function E(){"light"===w?C("dark"):C("light")}return(0,a.useEffect)(()=>{"light"===w?s("/LOGO_1.png"):s("/WHITE_LOGO.png")},[w]),(0,a.useEffect)(()=>{(async()=>{await v()})()},[]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("nav",{className:es()("grid max-h-screen h-full max-md:hidden"),children:(0,i.jsx)(d.Z,{className:"flex flex-col border-r border-divider max-h-screen sticky left-0 top-0 overflow-hidden",children:b?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.Z,{className:"p-2 gap-2 flex flex-row justify-between items-center",children:(0,i.jsx)("div",{className:"flex items-center gap-3",children:(0,i.jsx)(c(),{href:"/",children:(0,i.jsx)(ea(),{src:o,alt:"DB-GPT",width:633,height:157,className:"w-full max-w-full"})})})}),(0,i.jsx)(d.Z,{className:"px-2",children:(0,i.jsx)(c(),{href:"/",children:(0,i.jsx)(p.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,i.jsx)(d.Z,{className:"p-2 hidden xs:block sm:inline-block max-h-full overflow-auto",children:(0,i.jsx)(h.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,i.jsx)(N,{nested:!0,children:(0,i.jsx)(h.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:(g||[]).map(t=>{let r=("/chat"===e||"/chat/"===e)&&m===t.conv_uid;return(0,i.jsx)(N,{children:(0,i.jsx)(B.Z,{selected:r,variant:r?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,i.jsx)(U,{children:(0,i.jsxs)(c(),{href:"/chat?id=".concat(t.conv_uid,"&scene=").concat(null==t?void 0:t.chat_mode),className:"flex items-center justify-between",children:[(0,i.jsxs)(W.ZP,{fontSize:14,noWrap:!0,children:[(0,i.jsx)(en.Z,{style:{marginRight:"0.5rem"}}),(null==t?void 0:t.user_name)||(null==t?void 0:t.user_input)||"undefined"]}),(0,i.jsx)(V.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:r=>{r.preventDefault(),r.stopPropagation(),u.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,eg.Vx)((0,eg.MX)(t.conv_uid)),await y(),"/chat"===e&&m===t.conv_uid&&n.push("/")}})},className:"del-btn invisible",children:(0,i.jsx)(eo.Z,{})})]})})})},t.conv_uid)})})})})}),(0,i.jsx)("div",{className:"flex flex-col justify-end flex-1",children:(0,i.jsx)(d.Z,{className:"p-2 pt-3 pb-6 border-t border-divider xs:block sticky bottom-0 z-100",children:(0,i.jsxs)(h.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,i.jsx)(N,{nested:!0,children:(0,i.jsx)(h.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:S.map(e=>(0,i.jsx)(c(),{href:e.route,children:(0,i.jsx)(N,{children:(0,i.jsxs)(B.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,i.jsx)(Y,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,i.jsx)(U,{children:e.label})]})})},e.route))})}),(0,i.jsx)(N,{children:(0,i.jsxs)(B.Z,{className:"h-10",onClick:E,children:[(0,i.jsx)(Q.Z,{title:"Theme",children:(0,i.jsx)(Y,{children:"dark"===w?(0,i.jsx)(et.Z,{fontSize:"small"}):(0,i.jsx)(er.Z,{fontSize:"small"})})}),(0,i.jsx)(U,{children:t("Theme")})]})}),(0,i.jsx)(N,{children:(0,i.jsxs)(B.Z,{className:"h-10",onClick:()=>{let e="en"===r.language?"zh":"en";r.changeLanguage(e),window.localStorage.setItem("db_gpt_lng",e)},children:[(0,i.jsx)(Q.Z,{title:"Language",children:(0,i.jsx)(Y,{className:"text-2xl",children:(0,i.jsx)(ed.Z,{fontSize:"small"})})}),(0,i.jsx)(U,{children:t("language")})]})}),(0,i.jsx)(N,{children:(0,i.jsxs)(B.Z,{className:"h-10",onClick:()=>{x(!1)},children:[(0,i.jsx)(Q.Z,{title:"Close Sidebar",children:(0,i.jsx)(Y,{className:"text-2xl",children:(0,i.jsx)(ef.Z,{className:"transform rotate-90",fontSize:"small"})})}),(0,i.jsx)(U,{children:t("Close_Sidebar")})]})})]})})})]}):(0,i.jsxs)(d.Z,{className:"h-full py-6 flex flex-col justify-between",children:[(0,i.jsx)(d.Z,{className:"flex justify-center items-center",children:(0,i.jsx)(Q.Z,{title:"Menu",children:(0,i.jsx)(ec.Z,{className:"cursor-pointer text-2xl",onClick:()=>{x(!0)}})})}),(0,i.jsxs)(d.Z,{className:"flex flex-col gap-4 justify-center items-center",children:[S.map((e,t)=>(0,i.jsx)("div",{className:"flex justify-center text-2xl cursor-pointer",children:(0,i.jsx)(Q.Z,{title:e.tooltip,children:e.icon})},"menu_".concat(t))),(0,i.jsx)(N,{children:(0,i.jsx)(B.Z,{onClick:E,children:(0,i.jsx)(Q.Z,{title:"Theme",children:(0,i.jsx)(Y,{className:"text-2xl",children:"dark"===w?(0,i.jsx)(et.Z,{fontSize:"small"}):(0,i.jsx)(er.Z,{fontSize:"small"})})})})}),(0,i.jsx)(N,{children:(0,i.jsx)(B.Z,{onClick:()=>{x(!0)},children:(0,i.jsx)(Q.Z,{title:"Unfold",children:(0,i.jsx)(Y,{className:"text-2xl",children:(0,i.jsx)(ef.Z,{className:"transform rotate-90",fontSize:"small"})})})})})]})]})})})})},ev=r(38629),ey=r(59077),eb=r(9818);let ex=(0,ey.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...eb.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...eb.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var ew=r(11163),eC=r.n(ew),eS=r(74865),eE=r.n(eS);let ek=0;function eO(){"loading"!==o&&(o="loading",n=setTimeout(function(){eE().start()},250))}function eZ(){ek>0||(o="stop",clearTimeout(n),eE().done())}if(eC().events.on("routeChangeStart",eO),eC().events.on("routeChangeComplete",eZ),eC().events.on("routeChangeError",eZ),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||eP,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(e=>e!==t)}}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{e(...r)})}if(this.observers["*"]){let t=[].concat(this.observers["*"]);t.forEach(t=>{t.apply(t,[e,...r])})}}}function eT(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r}function eF(e){return null==e?"":""+e}function eI(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}let i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};let t=n(i.shift());!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function eL(e,t,r){let{obj:n,k:o}=eI(e,t,Object);n[o]=r}function e_(e,t){let{obj:r,k:n}=eI(e,t);if(r)return r[n]}function eN(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var eB={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function eM(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>eB[e]):e}let eD=[" ",",","?","!",";"];function ez(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let n=t.split(r),o=e;for(let e=0;ee+i;)i++,l=o[a=n.slice(e,e+i).join(r)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(a)){if("string"==typeof l)return l;if(a&&"string"==typeof l[a])return l[a]}let s=n.slice(e+i).join(r);if(s)return ez(l,s,r);return}o=o[n[e]]}return o}function eH(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class eU extends eR{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."));let l=e_(this.data,a);return l||!i||"string"!=typeof r?l:ez(this.data&&this.data[e]&&this.data[e][t],r,o)}addResource(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),eL(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in r)("string"==typeof r[n]||"[object Array]"===Object.prototype.toString.apply(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let l=e_(this.data,a)||{};n?function e(t,r,n){for(let o in r)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof r[o]||r[o]instanceof String?n&&(t[o]=r[o]):e(t[o],r[o],n):t[o]=r[o]);return t}(l,r,o):l={...l,...r},eL(this.data,a,l),i.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e),r=t&&Object.keys(t)||[];return!!r.find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var eW={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,o))}),t}};let eV={};class eq extends eR{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,r){e.forEach(e=>{t[e]&&(r[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=eA.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=r&&e.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,r){t=t||"",r=r||"";let n=eD.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let o=RegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),i=!o.test(e);if(!i){let t=e.indexOf(r);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,r,n);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};let i=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:`${l}${e}${i}`}return n?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l}:i}let u=this.resolve(e,t),f=u&&u.res,d=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(f),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(m&&f&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(h)&&!("string"==typeof g&&"[object Array]"===h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(d,f,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return n?(u.res=e,u):e}if(o){let e="[object Array]"===h,r=e?[]:{},n=e?p:d;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${n}${o}${e}`;r[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),r[e]===i&&(r[e]=f[e])}f=r}}else if(m&&"string"==typeof g&&"[object Array]"===h)(f=f.join(g))&&(f=this.extendTranslation(f,e,t,r));else{let n=!1,a=!1,c=void 0!==t.count&&"string"!=typeof t.count,d=eq.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",g=t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(f)&&d&&(n=!0,f=g),this.isValidLookup(f)||(a=!0,f=i);let m=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,v=m&&a?void 0:f,y=d&&g!==f&&this.options.updateMissing;if(a||n||y){if(this.logger.log(y?"updateKey":"missingKey",s,l,i,y?g:f),o){let e=this.resolve(i,{...t,keySeparator:!1});e&&e.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 e=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t{let o=d&&n!==f?n:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,r,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,r,o,y,t),this.emit("missingKey",e,l,r,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach(e=>{this.pluralResolver.getSuffixes(e,t).forEach(r=>{n([e],i+r,t[`defaultValue${r}`]||g)})}):n(e,i,g))}f=this.extendTranslation(f,e,t,u,r),a&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${i}`),(a||n)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,n?f:void 0):this.options.parseMissingKeyHandler(f))}return n?(u.res=f,u):f}extendTranslation(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let a;r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let l="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,r.lng||this.language,r),l){let t=e.match(this.interpolator.nestingRegexp),n=t&&t.length;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),s=l.key;r=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==a.count&&"string"!=typeof a.count,f=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),d=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach(e=>{this.isValidLookup(t)||(i=e,!eV[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(eV[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" 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!!!")),p.forEach(r=>{let i;if(this.isValidLookup(t))return;o=r;let l=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,r,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(r,a.count,a));let t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(l.push(s+e),a.ordinal&&0===e.indexOf(n)&&l.push(s+e.replace(n,this.options.pluralSeparator)),f&&l.push(s+t)),d){let r=`${s}${this.options.contextSeparator}${a.context}`;l.push(r),u&&(l.push(r+e),a.ordinal&&0===e.indexOf(n)&&l.push(r+e.replace(n,this.options.pluralSeparator)),f&&l.push(r+t))}}for(;i=l.pop();)this.isValidLookup(t)||(n=i,t=this.getResource(r,e,i,a))}))})}),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}function eK(e){return e.charAt(0).toUpperCase()+e.slice(1)}class eG{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=eA.create("languageUtils")}getScriptPartFromCode(e){if(!(e=eH(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=eH(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=eK(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=eK(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=eK(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&0===e.indexOf(r))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(e=>{0>n.indexOf(e)&&o(this.formatLanguageCode(e))}),n}}let eJ=[{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}],eX={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},eY=["v1","v2","v3"],eQ=["v4"],e0={zero:0,one:1,two:2,few:3,many:4,other:5};class e1{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=eA.create("pluralResolver"),(!this.options.compatibilityJSON||eQ.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!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=function(){let e={};return eJ.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:eX[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(eH(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>e0[e]-e0[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));let o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!eY.includes(this.options.compatibilityJSON)}}function e2(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],i=function(e,t,r){let n=e_(e,r);return void 0!==n?n:e_(t,r)}(e,t,r);return!i&&o&&"string"==typeof r&&void 0===(i=ez(e,r,n))&&(i=ez(t,r,n)),i}class e4{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=eA.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let t=e.interpolation;this.escape=void 0!==t.escape?t.escape:eM,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?eN(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?eN(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?eN(t.nestingPrefix):t.nestingPrefixEscaped||eN("$t("),this.nestingSuffix=t.nestingSuffix?eN(t.nestingSuffix):t.nestingSuffixEscaped||eN(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=RegExp(e,"g");let t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=RegExp(t,"g");let r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=RegExp(r,"g")}interpolate(e,t,r,n){let o,i,a;let l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(e){return e.replace(/\$/g,"$$$$")}let c=e=>{if(0>e.indexOf(this.formatSeparator)){let o=e2(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(e2(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...n,...t,interpolationkey:i})};this.resetRegExp();let u=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,f=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,d=[{regex:this.regexpUnescape,safeValue:e=>s(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?s(this.escape(e)):s(e)}];return d.forEach(t=>{for(a=0;o=t.regex.exec(e);){let r=o[1].trim();if(void 0===(i=c(r))){if("function"==typeof u){let t=u(e,o,n);i="string"==typeof t?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else if(f){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=eF(i));let l=t.safeValue(i);if(e=e.replace(o[0],l),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t){let r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),i=`{${n[1]}`;e=n[0],i=this.interpolate(i,o);let a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return delete o.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){let l=[];(o=(o={...i}).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let s=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),l=e,s=!0}if((n=t(a.call(this,r[1].trim(),o),o))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=eF(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),s&&(n=l.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}function e5(e){let t={};return function(r,n,o){let i=n+JSON.stringify(o),a=t[i];return a||(a=e(eH(n),o),t[i]=a),a(r)}}class e6{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=eA.create("formatter"),this.options=e,this.formats={number:e5((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:e5((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:e5((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:e5((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:e5((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=t.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=e5(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=t.split(this.formatSeparator),i=o.reduce((e,t)=>{let{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let o=n[1].substring(0,n[1].length-1);if("currency"===t&&0>o.indexOf(":"))r.currency||(r.currency=o.trim());else if("relativetime"===t&&0>o.indexOf(":"))r.range||(r.range=o.trim());else{let e=o.split(";");e.forEach(e=>{if(!e)return;let[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,"");r[t.trim()]||(r[t.trim()]=o),"false"===o&&(r[t.trim()]=!1),"true"===o&&(r[t.trim()]=!0),isNaN(o)||(r[t.trim()]=parseInt(o,10))})}}return{formatName:t,formatOptions:r}}(t);if(this.formats[o]){let t=e;try{let a=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},l=a.locale||a.lng||n.locale||n.lng||r;t=this.formats[o](e,l,{...i,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class e3 extends eR{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=eA.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){let o={},i={},a={},l={};return e.forEach(e=>{let n=!0;t.forEach(t=>{let a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,n=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,r){let n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),r&&this.store.addResourceBundle(o,i,r),this.state[e]=t?-1:2;let a={};this.queue.forEach(r=>{(function(e,t,r,n){let{obj:o,k:i}=eI(e,t,Object);o[i]=o[i]||[],n&&(o[i]=o[i].concat(r)),n||o[i].push(r)})(r.loaded,[o],i),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{a[e]||(a[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:o,callback:i});return}this.readingCalls++;let a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&l&&n{this.read.call(this,e,t,r,n+1,2*o,i)},o);return}i(a,l)},l=this.backend[r].bind(this.backend);if(2===l.length){try{let r=l(e,t);r&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}return}return l(e,t,a)}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=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."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,(r,i)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,i),this.loaded(e,r,i)})}saveMissing(e,t,r,n,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${r}" as the namespace "${t}" 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(null!=r&&""!==r){if(this.backend&&this.backend.create){let l={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;(o=5===s.length?s(e,t,r,n,l):s(e,t,r,n))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else s(e,t,r,n,a,l)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}function e8(){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 t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:(e,t,r,n)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function e7(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function e9(){}class te extends eR{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=e7(e),this.services={},this.logger=eA,this.modules={external:[]},!function(e){let t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let n=e8();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...n,...this.options,...e7(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?eA.init(o(this.modules.logger),this.options):eA.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=e6);let r=new eG(this.options);this.store=new eU(this.options.resources,this.options);let i=this.services;i.logger=eA,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new e1(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=o(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new e4(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new e3(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o1?r-1:0),o=1;o{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=e9),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[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(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let i=eT(),a=()=>{let e=(e,t)=>{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),i.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),i}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e9,r=t,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{if(!t||"cimode"===t)return;let r=this.services.languageUtils.toResolveHierarchy(t);r.forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};if(n)t(n);else{let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.forEach(e=>t(e))}this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=eT();return e||(e=this.languages),t||(t=this.options.ns),r||(r=e9),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&eW.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;let n=eT();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);let r="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{i(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;let o=function(e,t){let i,a;if("object"!=typeof t){for(var l=arguments.length,s=Array(l>2?l-2:0),c=2;c`${i.keyPrefix}${u}${e}`):i.keyPrefix?`${i.keyPrefix}${u}${e}`:e,n.t(a,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}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 t=arguments.length>1&&void 0!==arguments[1]?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;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let i=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||2===r};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!n||i(o,e)))}loadNamespaces(e,t){let r=eT();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=eT();"string"==typeof e&&(e=[e]);let n=this.options.preload||[],o=e.filter(e=>0>n.indexOf(e));return o.length?(this.options.preload=n.concat(o),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";let t=this.services&&this.services.languageUtils||new eG(e8());return["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"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new te(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e9,r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},o=new te(n);return(void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new eU(this.store.data,n),o.services.resourceStore=o.store),o.translator=new eq(o.services,n),o.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{if((null==o?void 0:o.current)&&n){var e,t,r,i,a,l;null==o||null===(e=o.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(n),"light"===n?null==o||null===(r=o.current)||void 0===r||null===(i=r.classList)||void 0===i||i.remove("dark"):null==o||null===(a=o.current)||void 0===a||null===(l=a.classList)||void 0===l||l.remove("light")}},[o,n]),(0,a.useEffect)(()=>{r.changeLanguage&&r.changeLanguage(window.localStorage.getItem("db_gpt_lng")||"en")},[r]),(0,i.jsxs)("div",{ref:o,children:[(0,i.jsx)(e$,{}),(0,i.jsx)(eh.R,{children:t})]})}function tn(e){let{children:t}=e,{isMenuExpand:r}=(0,a.useContext)(eh.p);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"flex w-screen h-screen overflow-hidden",children:[(0,i.jsx)("div",{className:es()("transition-[width]",r?"w-[240px]":"w-[80px]","hidden","md:block"),children:(0,i.jsx)(em,{})}),(0,i.jsx)("div",{className:"flex flex-col flex-1 relative overflow-hidden",children:t})]})})}tt.createInstance=te.createInstance,tt.createInstance,tt.dir,tt.init,tt.loadResources,tt.reloadResources,tt.use,tt.changeLanguage,tt.getFixedT,tt.t,tt.exists,tt.setDefaultNamespace,tt.hasLoadedNamespace,tt.loadNamespaces,tt.loadLanguages,tt.use(ep.Db).init({resources:{en:{translation:{Knowledge_Space:"Knowledge Space",space:"space",Vector:"Vector",Owner:"Owner",Docs:"Docs",Knowledge_Space_Config:"Knowledge Space Config",Choose_a_Datasource_type:"Choose a Datasource type",Setup_the_Datasource:"Setup the Datasource",Knowledge_Space_Name:"Knowledge Space Name",Please_input_the_name:"Please input the name",Please_input_the_owner:"Please input the owner",Description:"Description",Please_input_the_description:"Please input the description",Next:"Next",the_name_can_only_contain:'the name can only contain numbers, letters, Chinese characters, "-" and "_"',Text:"Text","Fill your raw text":"Fill your raw text",URL:"URL",Fetch_the_content_of_a_URL:"Fetch the content of a URL",Document:"Document",Upload_a_document:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown",Name:"Name",Text_Source:"Text Source(Optional)",Please_input_the_text_source:"Please input the text source",Synch:"Synch",Back:"Back",Finish:"Finish",Web_Page_URL:"Web Page URL",Please_input_the_Web_Page_URL:"Please input the Web Page URL",Select_or_Drop_file:"Select or Drop file",Documents:"Documents",Chat:"Chat",Add_Datasource:"Add Datasource",Arguments:"Arguments",Type:"Type",Size:"Size",Last_Synch:"Last Synch",Status:"Status",Result:"Result",Details:"Details",Delete:"Delete",Operation:"Operation",Submit:"Submit",Chunks:"Chunks",Content:"Content",Meta_Data:"Meta Data",Please_select_a_file:"Please select a file",Please_input_the_text:"Please input the text",Embedding:"Embedding",topk:"topk",the_top_k_vectors:"the top k vectors based on similarity score",recall_score:"recall_score",Set_a_threshold_score:"Set a threshold score for the retrieval of similar vectors",recall_type:"recall_type",Recall_Type:"recall type",model:"model",A_model_used:"A model used to create vector representations of text or other data",chunk_size:"chunk_size",The_size_of_the_data_chunks:"The size of the data chunks used in processing",chunk_overlap:"chunk_overlap",The_amount_of_overlap:"The amount of overlap between adjacent data chunks",Prompt:"Prompt",scene:"scene",A_contextual_parameter:"A contextual parameter used to define the setting or environment in which the prompt is being used",template:"template",structure_or_format:"A pre-defined structure or format for the prompt, which can help ensure that the AI system generates responses that are consistent with the desired style or tone.",max_token:"max_token",The_maximum_number_of_tokens:"The maximum number of tokens or words allowed in a prompt",Theme:"Theme",Port:"Port",Username:"Username",Password:"Password",Remark:"Remark",Edit:"Edit",Database:"Database",Data_Source:"Data Source",Close_Sidebar:"Fold",language:"Language",choose_model:"Please choose a model"}},zh:{translation:{Knowledge_Space:"知识库",space:"知识库",Vector:"向量",Owner:"创建人",Docs:"文档数",Knowledge_Space_Config:"知识库配置",Choose_a_Datasource_type:"选择数据源类型",Setup_the_Datasource:"设置数据源",Knowledge_Space_Name:"知识库名称",Please_input_the_name:"请输入名称",Please_input_the_owner:"请输入创建人",Description:"描述",Please_input_the_description:"请输入描述",Next:"下一步",the_name_can_only_contain:"名称只能包含数字、字母、中文字符、-或_",Text:"文本","Fill your raw text":"填写您的原始文本",URL:"网址",Fetch_the_content_of_a_URL:"获取 URL 的内容",Document:"文档",Upload_a_document:"上传文档,文档类型可以是PDF、CSV、Text、PowerPoint、Word、Markdown",Name:"名称",Text_Source:"文本来源(可选)",Please_input_the_text_source:"请输入文本来源",Synch:"同步",Back:"上一步",Finish:"完成",Web_Page_URL:"网页网址",Please_input_the_Web_Page_URL:"请输入网页网址",Select_or_Drop_file:"选择或拖拽文件",Documents:"文档",Chat:"对话",Add_Datasource:"添加数据源",Arguments:"参数",Type:"类型",Size:"切片",Last_Synch:"上次同步时间",Status:"状态",Result:"结果",Details:"明细",Delete:"删除",Operation:"操作",Submit:"提交",Chunks:"切片",Content:"内容",Meta_Data:"元数据",Please_select_a_file:"请上传一个文件",Please_input_the_text:"请输入文本",Embedding:"嵌入",topk:"球",the_top_k_vectors:"基于相似度得分的前 k 个向量",recall_score:"召回分数",Set_a_threshold_score:"设置相似向量检索的阈值分数",recall_type:"回忆类型",Recall_Type:"回忆类型",model:"模型",A_model_used:"用于创建文本或其他数据的矢量表示的模型",chunk_size:"块大小",The_size_of_the_data_chunks:"处理中使用的数据块的大小",chunk_overlap:"块重叠",The_amount_of_overlap:"相邻数据块之间的重叠量",Prompt:"迅速的",scene:"场景",A_contextual_parameter:"用于定义使用提示的设置或环境的上下文参数",template:"模板",structure_or_format:"预定义的提示结构或格式,有助于确保人工智能系统生成与所需风格或语气一致的响应。",max_token:"最大令牌",The_maximum_number_of_tokens:"提示中允许的最大标记或单词数",Theme:"主题",Port:"端口",Username:"用户名",Password:"密码",Remark:"备注",Edit:"编辑",Database:"数据库",Data_Source:"数据源",Close_Sidebar:"收起",language:"语言",choose_model:"请选择一个模型"}}},lng:"en",interpolation:{escapeValue:!1}});var to=function(e){let{Component:t,pageProps:r}=e;return(0,i.jsx)(ev.Z,{theme:ex,children:(0,i.jsx)(f.lL,{theme:ex,defaultMode:"light",children:(0,i.jsx)(tr,{children:(0,i.jsx)(tn,{children:(0,i.jsx)(t,{...r})})})})})}},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=s(e),a=i[0],l=i[1],c=new o((a+l)*3/4-l),u=0,f=l>0?a-4:a;for(r=0;r>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,l=n-o;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>l?l:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */var n=r(675),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(o)return n?-1:k(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){var i,a=1,l=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,l/=2,s/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=r;il&&(r=l-s),i=r;i>=0;i--){for(var f=!0,d=0;d239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&c)<<6|63&i)>127&&(u=s);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],(192&i)==128&&(192&a)==128&&(192&l)==128&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(u=s)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,o,i){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function w(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function C(e,t,r,n,i){return t=+t,r>>>=0,i||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,i){return t=+t,r>>>=0,i||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},l.allocUnsafe=function(e){return u(e)},l.allocUnsafeSlow=function(e){return u(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(P(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);or&&(e+=" ... "),""},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,o){if(P(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,s=Math.min(i,a),c=this.slice(n,o),u=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,l,s,c,u,f,d,p,h,g,m=this.length-t;if((void 0===r||r>m)&&(r=m),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var v=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a>8,o.push(r%256),o.push(n);return o}(e,this.length-h),this,h,g);default:if(v)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),v=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;x(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;x(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);x(this,e,t,r,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);x(this,e,t,r,o-1,-o)}var i=r-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function O(e){for(var t=[],r=0;r=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var j=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,o){var i,a,l=8*o-n-1,s=(1<>1,u=-7,f=r?o-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,n),i-=c}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,l,s,c=8*i-o-1,u=(1<>1,d=23===o?5960464477539062e-23:0,p=n?0:i-1,h=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+f>=1?t+=d/s:t+=d*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=u?(l=0,a=u):a+f>=1?(l=(t*s-1)*Math.pow(2,o),a+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&l,p+=h,l/=256,o-=8);for(a=a<0;e[r+p]=255&a,p+=h,a/=256,c-=8);e[r+p-h]|=128*g}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(72);e.exports=o}()},90833:function(){},80864:function(){},77663:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s=[],c=!1,u=-1;function f(){c&&n&&(c=!1,n.length?s=n.concat(s):u=-1,s.length&&d())}function d(){if(!c){var e=l(f);c=!0;for(var t=s.length;t;){for(n=s,s=[];++u1)for(var r=1;r
'};function i(e,t,r){return er?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(o[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=i(e,o.minimum,1),n.status=1===e?null:e;var r=n.render(!t),s=r.querySelector(o.barSelector),c=o.speed,u=o.easing;return r.offsetWidth,a(function(t){var i,a;""===o.positionUsing&&(o.positionUsing=n.getPositioningCSS()),l(s,(i=e,(a="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+i)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+i)*100+"%,0)"}:{"margin-left":(-1+i)*100+"%"}).transition="all "+c+"ms "+u,a)),1===e?(l(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){l(r,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},c)},c)):setTimeout(t,c)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*i(Math.random()*t,.1,.95)),t=i(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*o.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var r,i,a=t.querySelector(o.barSelector),s=e?"-100":(-1+(n.status||0))*100,u=document.querySelector(o.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!o.showSpinner&&(i=t.querySelector(o.spinnerSelector))&&d(i),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(t),t},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var a=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,o){var i;n=t[i=(i=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[i]=function(t){var r=document.body.style;if(t in r)return t;for(var n,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((n=e[o]+i)in r)return n;return t}(i)),r.style[n]=o}return function(e,t){var n,o,i=arguments;if(2==i.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,i[1],i[2])}}();function s(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}function c(e,t){var r=f(e),n=r+t;s(r,t)||(e.className=n.substring(1))}function u(e,t){var r,n=f(e);s(e,t)&&(r=n.replace(" "+t+" "," "),e.className=r.substring(1,r.length-1))}function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?n.call(t,r,t,e):n)&&(e.exports=o)},43589:function(e,t,r){"use strict";r.d(t,{gN:function(){return em},zb:function(){return x},RV:function(){return eO},aV:function(){return ev},ZM:function(){return w},ZP:function(){return eR},cI:function(){return eE},qo:function(){return ej}});var n,o=r(67294),i=r(87462),a=r(45987),l=r(4942),s=r(1413),c=r(74902),u=r(15671),f=r(43144),d=r(97326),p=r(32531),h=r(73568),g=r(50344),m=r(80334),v=r(91881),y="RC_FORM_INTERNAL_HOOKS",b=function(){(0,m.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},x=o.createContext({getFieldValue:b,getFieldsValue:b,getFieldError:b,getFieldWarning:b,getFieldsError:b,isFieldsTouched:b,isFieldTouched:b,isFieldValidating:b,isFieldsValidating:b,resetFields:b,setFields:b,setFieldValue:b,setFieldsValue:b,validateFields:b,submit:b,getInternalHooks:function(){return b(),{dispatch:b,initEntityValue:b,registerField:b,useSubscribe:b,setInitialValues:b,destroyForm:b,setCallbacks:b,registerWatch:b,getFields:b,setValidateMessages:b,setPreserve:b,getInitialValue:b}}}),w=o.createContext(null);function C(e){return null==e?[]:Array.isArray(e)?e:[e]}var S=r(74165),E=r(15861),k=r(83454);function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),n=1;n=i)return e;switch(e){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch(e){return"[Circular]"}break;default:return e}}):e}function F(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t)&&"string"==typeof e&&!e}function I(e,t,r){var n=0,o=e.length;!function i(a){if(a&&a.length){r(a);return}var l=n;n+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},z={integer:function(e){return z.number(e)&&parseInt(e,10)===e},float:function(e){return z.number(e)&&!z.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!z.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(D.email)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(M())},hex:function(e){return"string"==typeof e&&!!e.match(D.hex)}},H="enum",W={required:B,whitespace:function(e,t,r,n,o){(/^\s+$/.test(t)||""===t)&&n.push(T(o.messages.whitespace,e.fullField))},type:function(e,t,r,n,o){if(e.required&&void 0===t){B(e,t,r,n,o);return}var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?z[i](t)||n.push(T(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&n.push(T(o.messages.types[i],e.fullField,e.type))},range:function(e,t,r,n,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(u?c="number":f?c="string":d&&(c="array"),!c)return!1;d&&(s=t.length),f&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&n.push(T(o.messages[c].len,e.fullField,e.len)):a&&!l&&se.max?n.push(T(o.messages[c].max,e.fullField,e.max)):a&&l&&(se.max)&&n.push(T(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,r,n,o){e[H]=Array.isArray(e[H])?e[H]:[],-1===e[H].indexOf(t)&&n.push(T(o.messages[H],e.fullField,e[H].join(", ")))},pattern:function(e,t,r,n,o){!e.pattern||(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(T(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||new RegExp(e.pattern).test(t)||n.push(T(o.messages.pattern.mismatch,e.fullField,t,e.pattern)))}},U=function(e,t,r,n,o){var i=e.type,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t,i)&&!e.required)return r();W.required(e,t,n,a,o,i),F(t,i)||W.type(e,t,n,a,o)}r(a)},V={string:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t,"string")&&!e.required)return r();W.required(e,t,n,i,o,"string"),F(t,"string")||(W.type(e,t,n,i,o),W.range(e,t,n,i,o),W.pattern(e,t,n,i,o),!0===e.whitespace&&W.whitespace(e,t,n,i,o))}r(i)},method:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();W.required(e,t,n,i,o),void 0!==t&&W.type(e,t,n,i,o)}r(i)},number:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),F(t)&&!e.required)return r();W.required(e,t,n,i,o),void 0!==t&&(W.type(e,t,n,i,o),W.range(e,t,n,i,o))}r(i)},boolean:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();W.required(e,t,n,i,o),void 0!==t&&W.type(e,t,n,i,o)}r(i)},regexp:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();W.required(e,t,n,i,o),F(t)||W.type(e,t,n,i,o)}r(i)},integer:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();W.required(e,t,n,i,o),void 0!==t&&(W.type(e,t,n,i,o),W.range(e,t,n,i,o))}r(i)},float:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();W.required(e,t,n,i,o),void 0!==t&&(W.type(e,t,n,i,o),W.range(e,t,n,i,o))}r(i)},array:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();W.required(e,t,n,i,o,"array"),null!=t&&(W.type(e,t,n,i,o),W.range(e,t,n,i,o))}r(i)},object:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();W.required(e,t,n,i,o),void 0!==t&&W.type(e,t,n,i,o)}r(i)},enum:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();W.required(e,t,n,i,o),void 0!==t&&W.enum(e,t,n,i,o)}r(i)},pattern:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t,"string")&&!e.required)return r();W.required(e,t,n,i,o),F(t,"string")||W.pattern(e,t,n,i,o)}r(i)},date:function(e,t,r,n,o){var i,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t,"date")&&!e.required)return r();W.required(e,t,n,a,o),!F(t,"date")&&(i=t instanceof Date?t:new Date(t),W.type(e,i,n,a,o),i&&W.range(e,i.getTime(),n,a,o))}r(a)},url:U,hex:U,email:U,required:function(e,t,r,n,o){var i=[],a=Array.isArray(t)?"array":typeof t;W.required(e,t,n,i,o,a),r(i)},any:function(e,t,r,n,o){var i=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(F(t)&&!e.required)return r();W.required(e,t,n,i,o)}r(i)}};function q(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var K=q(),G=function(){function e(e){this.rules=null,this._messages=K,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(r){var n=e[r];t.rules[r]=Array.isArray(n)?n:[n]})},t.messages=function(e){return e&&(this._messages=N(q(),e)),this._messages},t.validate=function(t,r,n){var o=this;void 0===r&&(r={}),void 0===n&&(n=function(){});var i=t,a=r,l=n;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(a.messages){var s=this.messages();s===K&&(s=q()),N(s,a.messages),a.messages=s}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach(function(e){var r=o.rules[e],n=i[e];r.forEach(function(r){var a=r;"function"==typeof a.transform&&(i===t&&(i=O({},i)),n=i[e]=a.transform(n)),(a="function"==typeof a?{validator:a}:O({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:n,source:i,field:e}))})});var u={};return function(e,t,r,n,o){if(t.first){var i=new Promise(function(t,i){var a;I((a=[],Object.keys(e).forEach(function(t){a.push.apply(a,e[t]||[])}),a),r,function(e){return n(e),e.length?i(new L(e,R(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],f=new Promise(function(t,i){var f=function(e){if(u.push.apply(u,e),++c===s)return n(u),u.length?i(new L(u,R(u))):t(o)};l.length||(n(u),t(o)),l.forEach(function(t){var n=e[t];-1!==a.indexOf(t)?I(n,r,f):function(e,t,r){var n=[],o=0,i=e.length;function a(e){n.push.apply(n,e||[]),++o===i&&r(n)}e.forEach(function(e){t(e,a)})}(n,r,f)})});return f.catch(function(e){return e}),f}(c,a,function(t,r){var n,o=t.rule,l=("object"===o.type||"array"===o.type)&&("object"==typeof o.fields||"object"==typeof o.defaultField);function s(e,t){return O({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(n){void 0===n&&(n=[]);var c=Array.isArray(n)?n:[n];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var f=c.map(_(o,i));if(a.first&&f.length)return u[o.field]=1,r(f);if(l){if(o.required&&!t.value)return void 0!==o.message?f=[].concat(o.message).map(_(o,i)):a.error&&(f=[a.error(o,T(a.messages.required,o.field))]),r(f);var d={};o.defaultField&&Object.keys(t.value).map(function(e){d[e]=o.defaultField});var p={};Object.keys(d=O({},d,t.rule.fields)).forEach(function(e){var t=d[e],r=Array.isArray(t)?t:[t];p[e]=r.map(s.bind(null,e))});var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),r(t.length?t:null)})}else r(f)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)n=o.asyncValidator(o,t.value,c,t.source,a);else if(o.validator){try{n=o.validator(o,t.value,c,t.source,a)}catch(e){null==console.error||console.error(e),a.suppressValidatorError||setTimeout(function(){throw e},0),c(e.message)}!0===n?c():!1===n?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):n instanceof Array?c(n):n instanceof Error&&c(n.message)}n&&n.then&&n.then(function(){return c()},function(e){return c(e)})},function(e){!function(e){for(var t=[],r={},n=0;n=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat((0,c.Z)(e.slice(0,r)),[o],(0,c.Z)(e.slice(r,t)),(0,c.Z)(e.slice(t+1,n))):i<0?[].concat((0,c.Z)(e.slice(0,t)),(0,c.Z)(e.slice(t+1,r+1)),[o],(0,c.Z)(e.slice(r+1,n))):e}var ed=["name"],ep=[];function eh(e,t,r,n,o,i){return"function"==typeof e?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var eg=function(e){(0,p.Z)(r,e);var t=(0,h.Z)(r);function r(e){var n;return(0,u.Z)(this,r),(n=t.call(this,e)).state={resetCount:0},n.cancelRegisterFunc=null,n.mounted=!1,n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.prevValidating=void 0,n.errors=ep,n.warnings=ep,n.cancelRegister=function(){var e=n.props,t=e.preserve,r=e.isListField,o=e.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(r,t,ea(o)),n.cancelRegisterFunc=null},n.getNamePath=function(){var e=n.props,t=e.name,r=e.fieldContext.prefixName,o=void 0===r?[]:r;return void 0!==t?[].concat((0,c.Z)(o),(0,c.Z)(t)):[]},n.getRules=function(){var e=n.props,t=e.rules,r=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(r):e})},n.refresh=function(){n.mounted&&n.setState(function(e){return{resetCount:e.resetCount+1}})},n.metaCache=null,n.triggerMetaEvent=function(e){var t=n.props.onMetaChange;if(t){var r=(0,s.Z)((0,s.Z)({},n.getMeta()),{},{destroy:e});(0,v.Z)(n.metaCache,r)||t(r),n.metaCache=r}else n.metaCache=null},n.onStoreChange=function(e,t,r){var o=n.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,s=o.onReset,c=r.store,u=n.getNamePath(),f=n.getValue(e),d=n.getValue(c),p=t&&es(t,u);switch("valueUpdate"===r.type&&"external"===r.source&&f!==d&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=ep,n.warnings=ep,n.triggerMetaEvent()),r.type){case"reset":if(!t||p){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=ep,n.warnings=ep,n.triggerMetaEvent(),null==s||s(),n.refresh();return}break;case"remove":if(i){n.reRender();return}break;case"setField":if(p){var h=r.data;"touched"in h&&(n.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(n.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(n.errors=h.errors||ep),"warnings"in h&&(n.warnings=h.warnings||ep),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}if(i&&!u.length&&eh(i,e,c,f,d,r)){n.reRender();return}break;case"dependenciesUpdate":if(l.map(ea).some(function(e){return es(r.relatedFields,e)})){n.reRender();return}break;default:if(p||(!l.length||u.length||i)&&eh(i,e,c,f,d,r)){n.reRender();return}}!0===i&&n.reRender()},n.validateRules=function(e){var t=n.getNamePath(),r=n.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=Promise.resolve().then(function(){if(!n.mounted)return[];var o=n.props,a=o.validateFirst,u=void 0!==a&&a,f=o.messageVariables,d=n.getRules();i&&(d=d.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||C(t).includes(i)}));var p=function(e,t,r,n,o,i){var a,l,c=e.join("."),u=r.map(function(e,t){var r=e.validator,n=(0,s.Z)((0,s.Z)({},e),{},{ruleIndex:t});return r&&(n.validator=function(e,t,n){var o=!1,i=r(e,t,function(){for(var e=arguments.length,t=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:ep;if(n.validatePromise===l){n.validatePromise=null;var t,r=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,n=e.errors,i=void 0===n?ep:n;t?o.push.apply(o,(0,c.Z)(i)):r.push.apply(r,(0,c.Z)(i))}),n.errors=r,n.warnings=o,n.triggerMetaEvent(),n.reRender()}}),p});return void 0!==a&&a||(n.validatePromise=l,n.dirty=!0,n.errors=ep,n.warnings=ep,n.triggerMetaEvent(),n.reRender()),l},n.isFieldValidating=function(){return!!n.validatePromise},n.isFieldTouched=function(){return n.touched},n.isFieldDirty=function(){return!!n.dirty||void 0!==n.props.initialValue||void 0!==(0,n.props.fieldContext.getInternalHooks(y).getInitialValue)(n.getNamePath())},n.getErrors=function(){return n.errors},n.getWarnings=function(){return n.warnings},n.isListField=function(){return n.props.isListField},n.isList=function(){return n.props.isList},n.isPreserve=function(){return n.props.preserve},n.getMeta=function(){return n.prevValidating=n.isFieldValidating(),{touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:null===n.validatePromise}},n.getOnlyChild=function(e){if("function"==typeof e){var t=n.getMeta();return(0,s.Z)((0,s.Z)({},n.getOnlyChild(e(n.getControlled(),t,n.props.fieldContext))),{},{isFunction:!0})}var r=(0,g.Z)(e);return 1===r.length&&o.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}},n.getValue=function(e){var t=n.props.fieldContext.getFieldsValue,r=n.getNamePath();return(0,ei.Z)(e||t(!0),r)},n.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,r=t.trigger,o=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,c=t.valuePropName,u=t.getValueProps,f=t.fieldContext,d=void 0!==o?o:f.validateTrigger,p=n.getNamePath(),h=f.getInternalHooks,g=f.getFieldsValue,m=h(y).dispatch,v=n.getValue(),b=u||function(e){return(0,l.Z)({},c,e)},x=e[r],w=(0,s.Z)((0,s.Z)({},e),b(v));return w[r]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var e,t=arguments.length,r=Array(t),o=0;o=0&&t<=r.length?(d.keys=[].concat((0,c.Z)(d.keys.slice(0,t)),[d.id],(0,c.Z)(d.keys.slice(t))),o([].concat((0,c.Z)(r.slice(0,t)),[e],(0,c.Z)(r.slice(t))))):(d.keys=[].concat((0,c.Z)(d.keys),[d.id]),o([].concat((0,c.Z)(r),[e]))),d.id+=1},remove:function(e){var t=a(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(d.keys=d.keys.filter(function(e,t){return!r.has(t)}),o(t.filter(function(e,t){return!r.has(t)})))},move:function(e,t){if(e!==t){var r=a();e<0||e>=r.length||t<0||t>=r.length||(d.keys=ef(d.keys,e,t),o(ef(r,e,t)))}}},t)})))},ey=r(97685),eb="__@field_split__";function ex(e){return e.map(function(e){return"".concat((0,eo.Z)(e),":").concat(e)}).join(eb)}var ew=function(){function e(){(0,u.Z)(this,e),this.kvs=new Map}return(0,f.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(ex(e),t)}},{key:"get",value:function(e){return this.kvs.get(ex(e))}},{key:"update",value:function(e,t){var r=t(this.get(e));r?this.set(e,r):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(ex(e))}},{key:"map",value:function(e){return(0,c.Z)(this.kvs.entries()).map(function(t){var r=(0,ey.Z)(t,2),n=r[0],o=r[1];return e({key:n.split(eb).map(function(e){var t=e.match(/^([^:]*):(.*)$/),r=(0,ey.Z)(t,3),n=r[1],o=r[2];return"number"===n?Number(o):o}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var r=t.key,n=t.value;return e[r.join(".")]=n,null}),e}}]),e}(),eC=["name"],eS=(0,f.Z)(function e(t){var r=this;(0,u.Z)(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}},this.getInternalHooks=function(e){return e===y?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):((0,m.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){r.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){if(r.initialValues=e||{},t){var n,o=(0,Y.T)(e,r.store);null===(n=r.prevWithoutPreserves)||void 0===n||n.map(function(t){var r=t.key;o=(0,Y.Z)(o,r,(0,ei.Z)(e,r))}),r.prevWithoutPreserves=null,r.updateStore(o)}},this.destroyForm=function(){var e=new ew;r.getFieldEntities(!0).forEach(function(t){r.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),r.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=(0,ei.Z)(r.initialValues,e);return e.length?(0,Y.T)(t):t},this.setCallbacks=function(e){r.callbacks=e},this.setValidateMessages=function(e){r.validateMessages=e},this.setPreserve=function(e){r.preserve=e},this.watchList=[],this.registerWatch=function(e){return r.watchList.push(e),function(){r.watchList=r.watchList.filter(function(t){return t!==e})}},this.notifyWatch=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(r.watchList.length){var t=r.getFieldsValue(),n=r.getFieldsValue(!0);r.watchList.forEach(function(r){r(t,n,e)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){r.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?r.fieldEntities.filter(function(e){return e.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new ew;return r.getFieldEntities(e).forEach(function(e){var r=e.getNamePath();t.set(r,e)}),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return r.getFieldEntities(!0);var t=r.getFieldsMap(!0);return e.map(function(e){var r=ea(e);return t.get(r)||{INVALIDATE_NAME_PATH:ea(e)}})},this.getFieldsValue=function(e,t){if(r.warningUnhooked(),!0===e||Array.isArray(e)?(n=e,o=t):e&&"object"===(0,eo.Z)(e)&&(i=e.strict,o=e.filter),!0===n&&!o)return r.store;var n,o,i,a=r.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),l=[];return a.forEach(function(e){var t,r,a="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null===(r=e.isList)||void 0===r?void 0:r.call(e))return}else if(!n&&(null===(t=e.isListField)||void 0===t?void 0:t.call(e)))return;o?o("getMeta"in e?e.getMeta():null)&&l.push(a):l.push(a)}),el(r.store,l.map(ea))},this.getFieldValue=function(e){r.warningUnhooked();var t=ea(e);return(0,ei.Z)(r.store,t)},this.getFieldsError=function(e){return r.warningUnhooked(),r.getFieldEntitiesForNamePathList(e).map(function(t,r){return!t||"INVALIDATE_NAME_PATH"in t?{name:ea(e[r]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})},this.getFieldError=function(e){r.warningUnhooked();var t=ea(e);return r.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){r.warningUnhooked();var t=ea(e);return r.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){r.warningUnhooked();for(var e,t=arguments.length,n=Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=new ew,o=r.getFieldEntities(!0);o.forEach(function(e){var t=e.props.initialValue,r=e.getNamePath();if(void 0!==t){var o=n.get(r)||new Set;o.add({entity:e,value:t}),n.set(r,o)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var r,o=n.get(t);o&&(r=e).push.apply(r,(0,c.Z)((0,c.Z)(o).map(function(e){return e.entity})))})):e=o,function(e){e.forEach(function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==r.getInitialValue(o))(0,m.ZP)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=n.get(o);if(i&&i.size>1)(0,m.ZP)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=r.getFieldValue(o);t.skipExist&&void 0!==a||r.updateStore((0,Y.Z)(r.store,o,(0,c.Z)(i)[0].value))}}}})}(e)},this.resetFields=function(e){r.warningUnhooked();var t=r.store;if(!e){r.updateStore((0,Y.T)(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(t,null,{type:"reset"}),r.notifyWatch();return}var n=e.map(ea);n.forEach(function(e){var t=r.getInitialValue(e);r.updateStore((0,Y.Z)(r.store,e,t))}),r.resetWithFieldInitialValue({namePathList:n}),r.notifyObservers(t,n,{type:"reset"}),r.notifyWatch(n)},this.setFields=function(e){r.warningUnhooked();var t=r.store,n=[];e.forEach(function(e){var o=e.name,i=(0,a.Z)(e,eC),l=ea(o);n.push(l),"value"in i&&r.updateStore((0,Y.Z)(r.store,l,i.value)),r.notifyObservers(t,[l],{type:"setField",data:e})}),r.notifyWatch(n)},this.getFields=function(){return r.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),n=e.getMeta(),o=(0,s.Z)((0,s.Z)({},n),{},{name:t,value:r.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o})},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var n=e.getNamePath();void 0===(0,ei.Z)(r.store,n)&&r.updateStore((0,Y.Z)(r.store,n,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:r.preserve;return null==t||t},this.registerField=function(e){r.fieldEntities.push(e);var t=e.getNamePath();if(r.notifyWatch([t]),void 0!==e.props.initialValue){var n=r.store;r.resetWithFieldInitialValue({entities:[e],skipExist:!0}),r.notifyObservers(n,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(n,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(t){return t!==e}),!r.isMergedPreserve(o)&&(!n||i.length>1)){var a=n?void 0:r.getInitialValue(t);if(t.length&&r.getFieldValue(t)!==a&&r.fieldEntities.every(function(e){return!ec(e.getNamePath(),t)})){var l=r.store;r.updateStore((0,Y.Z)(l,t,a,!0)),r.notifyObservers(l,[t],{type:"remove"}),r.triggerDependenciesUpdate(l,t)}}r.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,n=e.value;r.updateValue(t,n);break;case"validateField":var o=e.namePath,i=e.triggerName;r.validateFields([o],{triggerName:i})}},this.notifyObservers=function(e,t,n){if(r.subscribable){var o=(0,s.Z)((0,s.Z)({},n),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(r){(0,r.onStoreChange)(e,t,o)})}else r.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var n=r.getDependencyChildrenFields(t);return n.length&&r.validateFields(n),r.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t].concat((0,c.Z)(n))}),n},this.updateValue=function(e,t){var n=ea(e),o=r.store;r.updateStore((0,Y.Z)(r.store,n,t)),r.notifyObservers(o,[n],{type:"valueUpdate",source:"internal"}),r.notifyWatch([n]);var i=r.triggerDependenciesUpdate(o,n),a=r.callbacks.onValuesChange;a&&a(el(r.store,[n]),r.getFieldsValue()),r.triggerOnFieldsChange([n].concat((0,c.Z)(i)))},this.setFieldsValue=function(e){r.warningUnhooked();var t=r.store;if(e){var n=(0,Y.T)(r.store,e);r.updateStore(n)}r.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()},this.setFieldValue=function(e,t){r.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,n=[],o=new ew;return r.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var r=ea(t);o.update(r,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(r){(o.get(r)||new Set).forEach(function(r){if(!t.has(r)){t.add(r);var o=r.getNamePath();r.isFieldDirty()&&o.length&&(n.push(o),e(o))}})}(e),n},this.triggerOnFieldsChange=function(e,t){var n=r.callbacks.onFieldsChange;if(n){var o=r.getFields();if(t){var i=new ew;t.forEach(function(e){var t=e.name,r=e.errors;i.set(t,r)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){return es(e,t.name)});a.length&&n(a,o)}},this.validateFields=function(e,t){r.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(a=e,l=t):l=e;var n,o,i,a,l,u=!!a,f=u?a.map(ea):[],d=[],p=String(Date.now()),h=new Set;r.getFieldEntities(!0).forEach(function(e){if(u||f.push(e.getNamePath()),(null===(t=l)||void 0===t?void 0:t.recursive)&&u){var t,n=e.getNamePath();n.every(function(e,t){return a[t]===e||void 0===a[t]})&&f.push(n)}if(e.props.rules&&e.props.rules.length){var o=e.getNamePath();if(h.add(o.join(p)),!u||es(f,o)){var i=e.validateRules((0,s.Z)({validateMessages:(0,s.Z)((0,s.Z)({},X),r.validateMessages)},l));d.push(i.then(function(){return{name:o,errors:[],warnings:[]}}).catch(function(e){var t,r=[],n=[];return(null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,o=e.errors;t?n.push.apply(n,(0,c.Z)(o)):r.push.apply(r,(0,c.Z)(o))}),r.length)?Promise.reject({name:o,errors:r,warnings:n}):{name:o,errors:r,warnings:n}}))}}});var g=(n=!1,o=d.length,i=[],d.length?new Promise(function(e,t){d.forEach(function(r,a){r.catch(function(e){return n=!0,e}).then(function(r){o-=1,i[a]=r,o>0||(n&&t(i),e(i))})})}):Promise.resolve([]));r.lastValidatePromise=g,g.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});r.notifyObservers(r.store,t,{type:"validateFinish"}),r.triggerOnFieldsChange(t,e)});var m=g.then(function(){return r.lastValidatePromise===g?Promise.resolve(r.getFieldsValue(f)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:r.getFieldsValue(f),errorFields:t,outOfDate:r.lastValidatePromise!==g})});m.catch(function(e){return e});var v=f.filter(function(e){return h.has(e.join(p))});return r.triggerOnFieldsChange(v),m},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(e){var t=r.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=r.callbacks.onFinishFailed;t&&t(e)})},this.forceRootUpdate=t}),eE=function(e){var t=o.useRef(),r=o.useState({}),n=(0,ey.Z)(r,2)[1];if(!t.current){if(e)t.current=e;else{var i=new eS(function(){n({})});t.current=i.getForm()}}return[t.current]},ek=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eO=function(e){var t=e.validateMessages,r=e.onFormChange,n=e.onFormFinish,i=e.children,a=o.useContext(ek),c=o.useRef({});return o.createElement(ek.Provider,{value:(0,s.Z)((0,s.Z)({},a),{},{validateMessages:(0,s.Z)((0,s.Z)({},a.validateMessages),t),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:c.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){n&&n(e,{values:t,forms:c.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(c.current=(0,s.Z)((0,s.Z)({},c.current),{},(0,l.Z)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,s.Z)({},c.current);delete t[e],c.current=t,a.unregisterForm(e)}})},i)},eZ=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];function e$(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var eP=function(){},ej=function(){for(var e=arguments.length,t=Array(e),r=0;r1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,J.Z)(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i},t]},Y=[R,T,F,"end"],Q=[R,I];function ee(e){return e===F||"end"===e}var et=function(e,t,r){var n=(0,O.Z)(A),o=(0,u.Z)(n,2),i=o[0],a=o[1],l=X(),s=(0,u.Z)(l,2),c=s[0],f=s[1],d=t?Q:Y;return G(function(){if(i!==A&&"end"!==i){var e=d.indexOf(i),t=d[e+1],n=r(i);!1===n?a(t,!0):t&&c(function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[e,i]),m.useEffect(function(){return function(){f()}},[]),[function(){a(R,!0)},i]},er=(a=W,"object"===(0,f.Z)(W)&&(a=W.transitionSupport),(l=m.forwardRef(function(e,t){var r=e.visible,n=void 0===r||r,o=e.removeOnLeave,i=void 0===o||o,l=e.forceRender,f=e.children,d=e.motionName,v=e.leavedClassName,y=e.eventProps,x=m.useContext(b).motion,w=!!(e.motionName&&a&&!1!==x),C=(0,m.useRef)(),S=(0,m.useRef)(),E=function(e,t,r,n){var o=n.motionEnter,i=void 0===o||o,a=n.motionAppear,l=void 0===a||a,f=n.motionLeave,d=void 0===f||f,p=n.motionDeadline,h=n.motionLeaveImmediately,g=n.onAppearPrepare,v=n.onEnterPrepare,y=n.onLeavePrepare,b=n.onAppearStart,x=n.onEnterStart,w=n.onLeaveStart,C=n.onAppearActive,S=n.onEnterActive,E=n.onLeaveActive,k=n.onAppearEnd,A=n.onEnterEnd,L=n.onLeaveEnd,_=n.onVisibleChanged,N=(0,O.Z)(),B=(0,u.Z)(N,2),M=B[0],D=B[1],z=(0,O.Z)(Z),H=(0,u.Z)(z,2),W=H[0],U=H[1],V=(0,O.Z)(null),q=(0,u.Z)(V,2),J=q[0],X=q[1],Y=(0,m.useRef)(!1),Q=(0,m.useRef)(null),er=(0,m.useRef)(!1);function en(){U(Z,!0),X(null,!0)}function eo(e){var t,n=r();if(!e||e.deadline||e.target===n){var o=er.current;W===$&&o?t=null==k?void 0:k(n,e):W===P&&o?t=null==A?void 0:A(n,e):W===j&&o&&(t=null==L?void 0:L(n,e)),W!==Z&&o&&!1!==t&&en()}}var ei=K(eo),ea=(0,u.Z)(ei,1)[0],el=function(e){var t,r,n;switch(e){case $:return t={},(0,s.Z)(t,R,g),(0,s.Z)(t,T,b),(0,s.Z)(t,F,C),t;case P:return r={},(0,s.Z)(r,R,v),(0,s.Z)(r,T,x),(0,s.Z)(r,F,S),r;case j:return n={},(0,s.Z)(n,R,y),(0,s.Z)(n,T,w),(0,s.Z)(n,F,E),n;default:return{}}},es=m.useMemo(function(){return el(W)},[W]),ec=et(W,!e,function(e){if(e===R){var t,n=es[R];return!!n&&n(r())}return ed in es&&X((null===(t=es[ed])||void 0===t?void 0:t.call(es,r(),null))||null),ed===F&&(ea(r()),p>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){eo({deadline:!0})},p))),ed===I&&en(),!0}),eu=(0,u.Z)(ec,2),ef=eu[0],ed=eu[1],ep=ee(ed);er.current=ep,G(function(){D(t);var r,n=Y.current;Y.current=!0,!n&&t&&l&&(r=$),n&&t&&i&&(r=P),(n&&!t&&d||!n&&h&&!t&&d)&&(r=j);var o=el(r);r&&(e||o[R])?(U(r),ef()):U(Z)},[t]),(0,m.useEffect)(function(){(W!==$||l)&&(W!==P||i)&&(W!==j||d)||U(Z)},[l,i,d]),(0,m.useEffect)(function(){return function(){Y.current=!1,clearTimeout(Q.current)}},[]);var eh=m.useRef(!1);(0,m.useEffect)(function(){M&&(eh.current=!0),void 0!==M&&W===Z&&((eh.current||M)&&(null==_||_(M)),eh.current=!0)},[M,W]);var eg=J;return es[R]&&ed===T&&(eg=(0,c.Z)({transition:"none"},eg)),[W,ed,eg,null!=M?M:t]}(w,n,function(){try{return C.current instanceof HTMLElement?C.current:(0,h.Z)(S.current)}catch(e){return null}},e),A=(0,u.Z)(E,4),L=A[0],_=A[1],N=A[2],B=A[3],M=m.useRef(B);B&&(M.current=!0);var D=m.useCallback(function(e){C.current=e,(0,g.mH)(t,e)},[t]),z=(0,c.Z)((0,c.Z)({},y),{},{visible:n});if(f){if(L===Z)H=B?f((0,c.Z)({},z),D):!i&&M.current&&v?f((0,c.Z)((0,c.Z)({},z),{},{className:v}),D):!l&&(i||v)?null:f((0,c.Z)((0,c.Z)({},z),{},{style:{display:"none"}}),D);else{_===R?U="prepare":ee(_)?U="active":_===T&&(U="start");var H,W,U,V=q(d,"".concat(L,"-").concat(U));H=f((0,c.Z)((0,c.Z)({},z),{},{className:p()(q(d,L),(W={},(0,s.Z)(W,V,V&&U),(0,s.Z)(W,d,"string"==typeof d),W)),style:N}),D)}}else H=null;return m.isValidElement(H)&&(0,g.Yr)(H)&&!H.ref&&(H=m.cloneElement(H,{ref:D})),m.createElement(k,{ref:S},H)})).displayName="CSSMotion",l),en=r(87462),eo=r(97326),ei="keep",ea="remove",el="removed";function es(e){var t;return t=e&&"object"===(0,f.Z)(e)&&"key"in e?e:{key:e},(0,c.Z)((0,c.Z)({},t),{},{key:String(t.key)})}function ec(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(es)}var eu=["component","children","onVisibleChanged","onAllRemoved"],ef=["status"],ed=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],ep=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,r=function(e){(0,S.Z)(n,e);var r=(0,E.Z)(n);function n(){var e;(0,w.Z)(this,n);for(var t=arguments.length,o=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=0,o=t.length,i=ec(e),a=ec(t);i.forEach(function(e){for(var t=!1,i=n;i1}).forEach(function(e){(r=r.filter(function(t){var r=t.key,n=t.status;return r!==e||n!==ea})).forEach(function(t){t.key===e&&(t.status=ei)})}),r})(n,ec(r)).filter(function(e){var t=n.find(function(t){var r=t.key;return e.key===r});return!t||t.status!==el||e.status!==ea})}}}]),n}(m.Component);return(0,s.Z)(r,"defaultProps",{component:"div"}),r}(W),eh=er},62906:function(e,t){"use strict";t.Z={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"}},50344:function(e,t,r){"use strict";r.d(t,{Z:function(){return function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[];return n.Children.forEach(t,function(t){(null!=t||r.keepEmpty)&&(Array.isArray(t)?i=i.concat(e(t)):(0,o.isFragment)(t)&&t.props?i=i.concat(e(t.props.children,r)):i.push(t))}),i}}});var n=r(67294),o=r(11805)},98924:function(e,t,r){"use strict";function n(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}r.d(t,{Z:function(){return n}})},94999:function(e,t,r){"use strict";function n(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}r.d(t,{Z:function(){return n}})},44958:function(e,t,r){"use strict";r.d(t,{hq:function(){return h},jL:function(){return p}});var n=r(98924),o=r(94999),i="data-rc-order",a="data-rc-priority",l=new Map;function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u(e){return Array.from((l.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,n.Z)())return null;var r=t.csp,o=t.prepend,l=t.priority,s=void 0===l?0:l,f="queue"===o?"prependQueue":o?"prepend":"append",d="prependQueue"===f,p=document.createElement("style");p.setAttribute(i,f),d&&s&&p.setAttribute(a,"".concat(s)),null!=r&&r.nonce&&(p.nonce=null==r?void 0:r.nonce),p.innerHTML=e;var h=c(t),g=h.firstChild;if(o){if(d){var m=u(h).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(i))&&s>=Number(e.getAttribute(a)||0)});if(m.length)return h.insertBefore(p,m[m.length-1].nextSibling),p}h.insertBefore(p,g)}else h.appendChild(p);return p}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(c(t)).find(function(r){return r.getAttribute(s(t))===e})}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=d(e,t);r&&c(t).removeChild(r)}function h(e,t){var r,n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var r=l.get(e);if(!r||!(0,o.Z)(document,r)){var n=f("",t),i=n.parentNode;l.set(e,i),e.removeChild(n)}}(c(a),a);var u=d(t,a);if(u)return null!==(r=a.csp)&&void 0!==r&&r.nonce&&u.nonce!==(null===(n=a.csp)||void 0===n?void 0:n.nonce)&&(u.nonce=null===(i=a.csp)||void 0===i?void 0:i.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;var p=f(e,a);return p.setAttribute(s(a),t),p}},34203:function(e,t,r){"use strict";r.d(t,{S:function(){return i},Z:function(){return a}});var n=r(67294),o=r(73935);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof n.Component?o.findDOMNode(e):null}},5110:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},27571:function(e,t,r){"use strict";function n(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return n(e) instanceof ShadowRoot?n(e):null}r.d(t,{A:function(){return o}})},15105:function(e,t){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE||e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY||e>=r.A&&e<=r.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=r},38135:function(e,t,r){"use strict";r.d(t,{s:function(){return m},v:function(){return y}});var n,o,i=r(74165),a=r(15861),l=r(71002),s=r(1413),c=r(73935),u=(0,s.Z)({},n||(n=r.t(c,2))),f=u.version,d=u.render,p=u.unmountComponentAtNode;try{Number((f||"").split(".")[0])>=18&&(o=u.createRoot)}catch(e){}function h(e){var t=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,l.Z)(t)&&(t.usingClientEntryPoint=e)}var g="__rc_react_root__";function m(e,t){if(o){var r;h(!0),r=t[g]||o(t),h(!1),r.render(e),t[g]=r;return}d(e,t)}function v(){return(v=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[g])||void 0===e||e.unmount(),delete t[g]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(void 0!==o)){e.next=2;break}return e.abrupt("return",function(e){return v.apply(this,arguments)}(t));case 2:p(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}},66680:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(67294);function o(e){var t=n.useRef();return t.current=e,n.useCallback(function(){for(var e,r=arguments.length,n=Array(r),o=0;o2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(t);if((0,o.ZP)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(r&&l>1)return!1;i.add(t);var c=l+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u