From 5f45bd8654ce374fee5f1fe9d175ce74ddf7d7b4 Mon Sep 17 00:00:00 2001 From: Pengdehua <1139168548@qq.com> Date: Tue, 20 Aug 2024 21:23:52 +0800 Subject: [PATCH] build --- data/config.json | 2 +- frontend/dist/assets/AccountModal-0f37a6a5.js | 5 + frontend/dist/assets/Login-23396c5f.js | 1 + frontend/dist/assets/Page403-73ef0093.js | 1 + frontend/dist/assets/Page404-2b9adb22.js | 1 + frontend/dist/assets/Page500-0841149d.js | 1 + .../dist/assets/RobotOutlined-5230b30c.js | 2 + frontend/dist/assets/ShareModal-20b6362a.js | 19 ++ .../dist/assets/accountService-0801bb34.js | 1 + frontend/dist/assets/bounce-e10a9aae.js | 1 + frontend/dist/assets/chatgpt-a53fef8d.js | 61 ++++++ frontend/dist/assets/chatgpt-b855ed0a.js | 1 + frontend/dist/assets/claude-5cb39f7b.js | 1 + frontend/dist/assets/claude-fe98c508.js | 1 + frontend/dist/assets/index-57131342.js | 5 + frontend/dist/assets/index-83bdf3a0.js | 1 + frontend/dist/assets/index-873b24ad.js | 1 + frontend/dist/assets/index-8bf8489d.js | 187 ++++++++++++++++++ frontend/dist/assets/index-ea43e5b5.js | 7 + frontend/dist/assets/index-ec51f637.js | 1 + frontend/dist/assets/row-b45105b9.js | 1 + frontend/dist/assets/useQuery-e775fa21.js | 1 + frontend/dist/index.html | 2 +- frontend/src/api/apiClient.ts | 2 +- frontend/src/pages/token/account/chatgpt.tsx | 2 +- frontend/src/pages/token/account/claude.tsx | 2 +- frontend/src/router/index.tsx | 3 +- frontend/vite.config.ts | 2 +- internal/service/account.go | 14 +- 29 files changed, 317 insertions(+), 12 deletions(-) create mode 100644 frontend/dist/assets/AccountModal-0f37a6a5.js create mode 100644 frontend/dist/assets/Login-23396c5f.js create mode 100644 frontend/dist/assets/Page403-73ef0093.js create mode 100644 frontend/dist/assets/Page404-2b9adb22.js create mode 100644 frontend/dist/assets/Page500-0841149d.js create mode 100644 frontend/dist/assets/RobotOutlined-5230b30c.js create mode 100644 frontend/dist/assets/ShareModal-20b6362a.js create mode 100644 frontend/dist/assets/accountService-0801bb34.js create mode 100644 frontend/dist/assets/bounce-e10a9aae.js create mode 100644 frontend/dist/assets/chatgpt-a53fef8d.js create mode 100644 frontend/dist/assets/chatgpt-b855ed0a.js create mode 100644 frontend/dist/assets/claude-5cb39f7b.js create mode 100644 frontend/dist/assets/claude-fe98c508.js create mode 100644 frontend/dist/assets/index-57131342.js create mode 100644 frontend/dist/assets/index-83bdf3a0.js create mode 100644 frontend/dist/assets/index-873b24ad.js create mode 100644 frontend/dist/assets/index-8bf8489d.js create mode 100644 frontend/dist/assets/index-ea43e5b5.js create mode 100644 frontend/dist/assets/index-ec51f637.js create mode 100644 frontend/dist/assets/row-b45105b9.js create mode 100644 frontend/dist/assets/useQuery-e775fa21.js diff --git a/data/config.json b/data/config.json index 30ee210..81e9113 100644 --- a/data/config.json +++ b/data/config.json @@ -6,7 +6,7 @@ "host": "0.0.0.0", "port": 9000, "title": "Pandora", - "rate": 100 + "rate": 1000 }, "database": { "driver": "sqlite", diff --git a/frontend/dist/assets/AccountModal-0f37a6a5.js b/frontend/dist/assets/AccountModal-0f37a6a5.js new file mode 100644 index 0000000..807ec14 --- /dev/null +++ b/frontend/dist/assets/AccountModal-0f37a6a5.js @@ -0,0 +1,5 @@ +import{i as e,Y as t,Z as o,$ as n,a0 as a,m as r,r as s,k as i,a1 as l,h as c,a2 as d,a3 as u,A as m,n as b,a4 as g,a5 as f,a6 as p,u as h,j as v,P as $,I as x,a7 as y,W as j,a8 as S,a9 as C,B as O}from"./index-8bf8489d.js";import{a as w}from"./accountService-0801bb34.js";import{F as k}from"./index-83bdf3a0.js";import{I as N}from"./ShareModal-20b6362a.js";const E=new t("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),z=new t("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),I=new t("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),T=new t("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),R=new t("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),B=new t("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),F=e=>{const{fontHeight:t,lineWidth:o,marginXS:n,colorBorderBg:a}=e,s=t,i=o,l=e.colorBgContainer,c=e.colorError,d=e.colorErrorHover;return r(e,{badgeFontHeight:s,badgeShadowSize:i,badgeTextColor:l,badgeColor:c,badgeColorHover:d,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:n,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},A=e=>{const{fontSize:t,lineHeight:o,fontSizeSM:n,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*a,indicatorHeightSM:t,dotSize:n/2,textFontSize:n,textFontSizeSM:n,textFontWeight:"normal",statusSize:n/2}},M=e("Badge",(e=>(e=>{const{componentCls:t,iconCls:r,antCls:s,badgeShadowSize:i,motionDurationSlow:l,textFontSize:c,textFontSizeSM:d,statusSize:u,dotSize:m,textFontWeight:b,indicatorHeight:g,indicatorHeightSM:f,marginXS:p,calc:h}=e,v=`${s}-scroll-number`,$=o(e,((e,o)=>{let{darkColor:n}=o;return{[`&${t} ${t}-color-${e}`]:{background:n,[`&:not(${t}-count)`]:{color:n},"a:hover &":{background:n}}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},n(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.indicatorZIndex,minWidth:g,height:g,color:e.badgeTextColor,fontWeight:b,fontSize:c,lineHeight:a(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(g).div(2).equal(),boxShadow:`0 0 0 ${a(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:d,lineHeight:a(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${a(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:m,minWidth:m,height:m,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${a(i)} ${e.badgeShadowColor}`},[`${t}-dot${v}`]:{transition:`background ${l}`},[`${t}-count, ${t}-dot, ${v}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${r}-spin`]:{animationName:B,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:u,height:u,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:E,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:p,color:e.colorText,fontSize:e.fontSize}}}),$),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:z,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:I,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:T,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:R,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${v}-custom-component, ${t}-count`]:{transform:"none"},[`${v}-custom-component, ${v}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${v}`]:{overflow:"hidden",[`${v}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${v}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${v}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${v}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}})(F(e))),A),P=e(["Badge","Ribbon"],(e=>(e=>{const{antCls:t,badgeFontHeight:r,marginXS:s,badgeRibbonOffset:i,calc:l}=e,c=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,u=o(e,((e,t)=>{let{darkColor:o}=t;return{[`&${c}-color-${e}`]:{background:o,color:o}}}));return{[`${d}`]:{position:"relative"},[`${c}`]:Object.assign(Object.assign(Object.assign(Object.assign({},n(e)),{position:"absolute",top:s,padding:`0 ${a(e.paddingXS)}`,color:e.colorPrimary,lineHeight:a(r),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-text`]:{color:e.colorTextLightSolid},[`${c}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${a(l(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),u),{[`&${c}-placement-end`]:{insetInlineEnd:l(i).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:l(i).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(F(e))),A),H=e=>{const{className:t,prefixCls:o,style:n,color:a,children:r,text:d,placement:u="end",rootClassName:m}=e,{getPrefixCls:b,direction:g}=s.useContext(i),f=b("ribbon",o),p=`${f}-wrapper`,[h,v,$]=P(f,p),x=l(a,!1),y=c(f,`${f}-placement-${u}`,{[`${f}-rtl`]:"rtl"===g,[`${f}-color-${a}`]:x},t),j={},S={};return a&&!x&&(j.background=a,S.color=a),h(s.createElement("div",{className:c(p,m,v,$)},r,s.createElement("div",{className:c(y,v),style:Object.assign(Object.assign({},j),n)},s.createElement("span",{className:`${f}-text`},d),s.createElement("div",{className:`${f}-corner`,style:S}))))};function D(e){let t,{prefixCls:o,value:n,current:a,offset:r=0}=e;return r&&(t={position:"absolute",top:`${r}00%`,left:0}),s.createElement("span",{style:t,className:c(`${o}-only-unit`,{current:a})},n)}function W(e,t,o){let n=e,a=0;for(;(n+10)%10!==t;)n+=o,a+=o;return a}function Z(e){const{prefixCls:t,count:o,value:n}=e,a=Number(n),r=Math.abs(o),[i,l]=s.useState(a),[c,d]=s.useState(r),u=()=>{l(a),d(r)};let m,b;if(s.useEffect((()=>{const e=setTimeout((()=>{u()}),1e3);return()=>{clearTimeout(e)}}),[a]),i===a||Number.isNaN(a)||Number.isNaN(i))m=[s.createElement(D,Object.assign({},e,{key:a,current:!0}))],b={transition:"none"};else{m=[];const t=a+10,o=[];for(let e=a;e<=t;e+=1)o.push(e);const n=o.findIndex((e=>e%10===i));m=o.map(((t,o)=>{const a=t%10;return s.createElement(D,Object.assign({},e,{key:t,value:a,offset:o-n,current:o===n}))}));b={transform:`translateY(${-W(i,a,c{const{prefixCls:o,count:n,className:a,motionClassName:r,style:l,title:u,show:m,component:b="sup",children:g}=e,f=_(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=s.useContext(i),h=p("scroll-number",o),v=Object.assign(Object.assign({},f),{"data-show":m,style:l,className:c(h,a,r),title:u});let $=n;if(n&&Number(n)%1==0){const e=String(n).split("");$=s.createElement("bdi",null,e.map(((t,o)=>s.createElement(Z,{prefixCls:h,count:Number(n),value:t,key:e.length-o}))))}return l&&l.borderColor&&(v.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),g?d(g,(e=>({className:c(`${h}-custom-component`,null==e?void 0:e.className,r)}))):s.createElement(b,Object.assign({},v,{ref:t}),$)}));var V=globalThis&&globalThis.__rest||function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a{var o,n,a,r,m;const{prefixCls:b,scrollNumberPrefixCls:g,children:f,status:p,text:h,color:v,count:$=null,overflowCount:x=99,dot:y=!1,size:j="default",title:S,offset:C,style:O,className:w,rootClassName:k,classNames:N,styles:E,showZero:z=!1}=e,I=V(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:T,direction:R,badge:B}=s.useContext(i),F=T("badge",b),[A,P,H]=M(F),D=$>x?`${x}+`:$,W="0"===D||0===D,Z=(null!=p||null!=v)&&(null===$||W&&!z),_=y&&!W,L=_?"":D,X=s.useMemo((()=>(null==L||""===L||W&&!z)&&!_),[L,W,z,_]),K=s.useRef($);X||(K.current=$);const Q=K.current,Y=s.useRef(L);X||(Y.current=L);const U=Y.current,G=s.useRef(_);X||(G.current=_);const J=s.useMemo((()=>{if(!C)return Object.assign(Object.assign({},null==B?void 0:B.style),O);const e={marginTop:C[1]};return"rtl"===R?e.left=parseInt(C[0],10):e.right=-parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},e),null==B?void 0:B.style),O)}),[R,C,O,null==B?void 0:B.style]),ee=null!=S?S:"string"==typeof Q||"number"==typeof Q?Q:void 0,te=X||!h?null:s.createElement("span",{className:`${F}-status-text`},h),oe=Q&&"object"==typeof Q?d(Q,(e=>({style:Object.assign(Object.assign({},J),e.style)}))):void 0,ne=l(v,!1),ae=c(null==N?void 0:N.indicator,null===(o=null==B?void 0:B.classNames)||void 0===o?void 0:o.indicator,{[`${F}-status-dot`]:Z,[`${F}-status-${p}`]:!!p,[`${F}-color-${v}`]:ne}),re={};v&&!ne&&(re.color=v,re.background=v);const se=c(F,{[`${F}-status`]:Z,[`${F}-not-a-wrapper`]:!f,[`${F}-rtl`]:"rtl"===R},w,k,null==B?void 0:B.className,null===(n=null==B?void 0:B.classNames)||void 0===n?void 0:n.root,null==N?void 0:N.root,P,H);if(!f&&Z){const e=J.color;return A(s.createElement("span",Object.assign({},I,{className:se,style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.root),null===(a=null==B?void 0:B.styles)||void 0===a?void 0:a.root),J)}),s.createElement("span",{className:ae,style:Object.assign(Object.assign(Object.assign({},null==E?void 0:E.indicator),null===(r=null==B?void 0:B.styles)||void 0===r?void 0:r.indicator),re)}),h&&s.createElement("span",{style:{color:e},className:`${F}-status-text`},h)))}return A(s.createElement("span",Object.assign({ref:t},I,{className:se,style:Object.assign(Object.assign({},null===(m=null==B?void 0:B.styles)||void 0===m?void 0:m.root),null==E?void 0:E.root)}),f,s.createElement(u,{visible:!X,motionName:`${F}-zoom`,motionAppear:!1,motionDeadline:1e3},(e=>{let{className:t,ref:o}=e;var n,a;const r=T("scroll-number",g),i=G.current,l=c(null==N?void 0:N.indicator,null===(n=null==B?void 0:B.classNames)||void 0===n?void 0:n.indicator,{[`${F}-dot`]:i,[`${F}-count`]:!i,[`${F}-count-sm`]:"small"===j,[`${F}-multiple-words`]:!i&&U&&U.toString().length>1,[`${F}-status-${p}`]:!!p,[`${F}-color-${v}`]:ne});let d=Object.assign(Object.assign(Object.assign({},null==E?void 0:E.indicator),null===(a=null==B?void 0:B.styles)||void 0===a?void 0:a.indicator),J);return v&&!ne&&(d=d||{},d.background=v),s.createElement(q,{prefixCls:r,show:!X,motionClassName:t,className:l,count:U,title:ee,style:d,key:"scrollNumber",ref:o},oe)})),te))}));L.Ribbon=H;const X=L;const K={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var Q=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:K}))}; +/**![reload](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOS4xIDIwOS4zbC01Ni40IDQ0LjFDNzc1LjggMTU1LjEgNjU2LjIgOTIgNTIxLjkgOTIgMjkwIDkyIDEwMi4zIDI3OS41IDEwMiA1MTEuNSAxMDEuNyA3NDMuNyAyODkuOCA5MzIgNTIxLjkgOTMyYzE4MS4zIDAgMzM1LjgtMTE1IDM5NC42LTI3Ni4xIDEuNS00LjItLjctOC45LTQuOS0xMC4zbC01Ni43LTE5LjVhOCA4IDAgMDAtMTAuMSA0LjhjLTEuOCA1LTMuOCAxMC01LjkgMTQuOS0xNy4zIDQxLTQyLjEgNzcuOC03My43IDEwOS40QTM0NC43NyAzNDQuNzcgMCAwMTY1NS45IDgyOWMtNDIuMyAxNy45LTg3LjQgMjctMTMzLjggMjctNDYuNSAwLTkxLjUtOS4xLTEzMy44LTI3QTM0MS41IDM0MS41IDAgMDEyNzkgNzU1LjJhMzQyLjE2IDM0Mi4xNiAwIDAxLTczLjctMTA5LjRjLTE3LjktNDIuNC0yNy04Ny40LTI3LTEzMy45czkuMS05MS41IDI3LTEzMy45YzE3LjMtNDEgNDIuMS03Ny44IDczLjctMTA5LjQgMzEuNi0zMS42IDY4LjQtNTYuNCAxMDkuMy03My44IDQyLjMtMTcuOSA4Ny40LTI3IDEzMy44LTI3IDQ2LjUgMCA5MS41IDkuMSAxMzMuOCAyN2EzNDEuNSAzNDEuNSAwIDAxMTA5LjMgNzMuOGM5LjkgOS45IDE5LjIgMjAuNCAyNy44IDMxLjRsLTYwLjIgNDdhOCA4IDAgMDAzIDE0LjFsMTc1LjYgNDNjNSAxLjIgOS45LTIuNiA5LjktNy43bC44LTE4MC45Yy0uMS02LjYtNy44LTEwLjMtMTMtNi4yeiIgLz48L3N2Zz4=) */const Y=s.forwardRef(Q);const U={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.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.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z",fill:t}},{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z",fill:e}}]}},name:"check-circle",theme:"twotone"};var G=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:U}))}; +/**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIGZpbGw9IiMxNjc3ZmYiIC8+PHBhdGggZD0iTTUxMiAxNDBjLTIwNS40IDAtMzcyIDE2Ni42LTM3MiAzNzJzMTY2LjYgMzcyIDM3MiAzNzIgMzcyLTE2Ni42IDM3Mi0zNzItMTY2LjYtMzcyLTM3Mi0zNzJ6bTE5My40IDIyNS43bC0yMTAuNiAyOTJhMzEuOCAzMS44IDAgMDEtNTEuNyAwTDMxOC41IDQ4NC45Yy0zLjgtNS4zIDAtMTIuNyA2LjUtMTIuN2g0Ni45YzEwLjMgMCAxOS45IDUgMjUuOSAxMy4zbDcxLjIgOTguOCAxNTcuMi0yMThjNi04LjQgMTUuNy0xMy4zIDI1LjktMTMuM0g2OTljNi41IDAgMTAuMyA3LjQgNi40IDEyLjd6IiBmaWxsPSIjZTZmNGZmIiAvPjxwYXRoIGQ9Ik02OTkgMzUzaC00Ni45Yy0xMC4yIDAtMTkuOSA0LjktMjUuOSAxMy4zTDQ2OSA1ODQuM2wtNzEuMi05OC44Yy02LTguMy0xNS42LTEzLjMtMjUuOS0xMy4zSDMyNWMtNi41IDAtMTAuMyA3LjQtNi41IDEyLjdsMTI0LjYgMTcyLjhhMzEuOCAzMS44IDAgMDA1MS43IDBsMjEwLjYtMjkyYzMuOS01LjMuMS0xMi43LTYuNC0xMi43eiIgZmlsbD0iIzE2NzdmZiIgLz48L3N2Zz4=) */const J=s.forwardRef(G);const ee={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-32 156c0-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",fill:t}},{tag:"path",attrs:{d:"M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8zm-24 112a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}}]}},name:"exclamation-circle",theme:"twotone"};var te=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:ee}))}; +/**![exclamation-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIGZpbGw9IiMxNjc3ZmYiIC8+PHBhdGggZD0iTTUxMiAxNDBjLTIwNS40IDAtMzcyIDE2Ni42LTM3MiAzNzJzMTY2LjYgMzcyIDM3MiAzNzIgMzcyLTE2Ni42IDM3Mi0zNzItMTY2LjYtMzcyLTM3Mi0zNzJ6bS0zMiAxNTZjMC00LjQgMy42LTggOC04aDQ4YzQuNCAwIDggMy42IDggOHYyNzJjMCA0LjQtMy42IDgtOCA4aC00OGMtNC40IDAtOC0zLjYtOC04VjI5NnptMzIgNDQwYTQ4LjAxIDQ4LjAxIDAgMDEwLTk2IDQ4LjAxIDQ4LjAxIDAgMDEwIDk2eiIgZmlsbD0iI2U2ZjRmZiIgLz48cGF0aCBkPSJNNDg4IDU3Nmg0OGM0LjQgMCA4LTMuNiA4LThWMjk2YzAtNC40LTMuNi04LTgtOGgtNDhjLTQuNCAwLTggMy42LTggOHYyNzJjMCA0LjQgMy42IDggOCA4em0tMjQgMTEyYTQ4IDQ4IDAgMTA5NiAwIDQ4IDQ4IDAgMTAtOTYgMHoiIGZpbGw9IiMxNjc3ZmYiIC8+PC9zdmc+) */const oe=s.forwardRef(te);const ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"};var ae=function(e,t){return s.createElement(m,b({},e,{ref:t,icon:ne}))}; +/**![share-alt](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc1MiA2NjRjLTI4LjUgMC01NC44IDEwLTc1LjQgMjYuN0w0NjkuNCA1NDAuOGExNjAuNjggMTYwLjY4IDAgMDAwLTU3LjZsMjA3LjItMTQ5LjlDNjk3LjIgMzUwIDcyMy41IDM2MCA3NTIgMzYwYzY2LjIgMCAxMjAtNTMuOCAxMjAtMTIwcy01My44LTEyMC0xMjAtMTIwLTEyMCA1My44LTEyMCAxMjBjMCAxMS42IDEuNiAyMi43IDQuNyAzMy4zTDQzOS45IDQxNS44QzQxMC43IDM3Ny4xIDM2NC4zIDM1MiAzMTIgMzUyYy04OC40IDAtMTYwIDcxLjYtMTYwIDE2MHM3MS42IDE2MCAxNjAgMTYwYzUyLjMgMCA5OC43LTI1LjEgMTI3LjktNjMuOGwxOTYuOCAxNDIuNWMtMy4xIDEwLjYtNC43IDIxLjgtNC43IDMzLjMgMCA2Ni4yIDUzLjggMTIwIDEyMCAxMjBzMTIwLTUzLjggMTIwLTEyMC01My44LTEyMC0xMjAtMTIwem0wLTQ3NmMyOC43IDAgNTIgMjMuMyA1MiA1MnMtMjMuMyA1Mi01MiA1Mi01Mi0yMy4zLTUyLTUyIDIzLjMtNTIgNTItNTJ6TTMxMiA2MDBjLTQ4LjUgMC04OC0zOS41LTg4LTg4czM5LjUtODggODgtODggODggMzkuNSA4OCA4OC0zOS41IDg4LTg4IDg4em00NDAgMjM2Yy0yOC43IDAtNTItMjMuMy01Mi01MnMyMy4zLTUyIDUyLTUyIDUyIDIzLjMgNTIgNTItMjMuMyA1Mi01MiA1MnoiIC8+PC9zdmc+) */const re=s.forwardRef(ae),se=()=>{const e=g();return f(w.addAccount,{onSuccess:()=>{p.success("Add Account Success"),e.invalidateQueries(["accounts"])}})},ie=()=>{const e=g();return f(w.updateAccount,{onSuccess:()=>{p.success("Update Account Success"),e.invalidateQueries(["accounts"])}})},le=()=>{const e=g();return f(w.deleteAccount,{onSuccess:()=>{p.success("Delete Account Success"),e.invalidateQueries(["accounts"])}})},ce=()=>{const e=g();return f(w.refreshAccount,{onSuccess:()=>{p.success("Refresh Account Success"),e.invalidateQueries(["accounts"])}})};function de({title:e,show:t,formValue:o,onOk:n,onCancel:a}){const[r]=k.useForm(),[i,l]=s.useState(!1),{t:c}=h();return v.jsx($,{title:e,open:t,onOk:()=>{r.validateFields().then((e=>{l(!0),n(e,l)}))},onCancel:()=>{r.resetFields(),a()},okButtonProps:{loading:i},destroyOnClose:!0,children:v.jsxs(k,{initialValues:o,form:r,layout:"vertical",preserve:!1,autoComplete:"off",children:[v.jsx(k.Item,{name:"id",hidden:!0,children:v.jsx(x,{})}),v.jsx(k.Item,{name:"accountType",hidden:!0,children:v.jsx(x,{})}),v.jsx(k.Item,{label:"Email",name:"email",required:!0,children:v.jsx(x,{placeholder:"仅作标记用, 没有实际用处"})}),v.jsx(k.Item,{label:c("token.password"),name:"password",children:v.jsx(y,{placeholder:"仅作标记用, 没有实际用处"})}),v.jsx(k.Item,{label:v.jsxs(j,{children:["共享",v.jsx(S,{title:"开启后,将分享在 /share 页面,任何人都可以使用它",children:v.jsx(N,{})})]}),name:"shared",labelAlign:"left",valuePropName:"checked",getValueFromEvent:e=>e?1:0,required:!0,children:v.jsx(C,{})}),"chatgpt"===o.accountType?v.jsxs(v.Fragment,{children:[v.jsx(k.Item,{label:v.jsx("a",{href:"https://token.oaifree.com/auth",target:"_blank",rel:"noopener noreferrer",children:"Refresh Token (点击获取)"}),name:"refreshToken",children:v.jsx(x.TextArea,{})}),v.jsx(k.Item,{label:v.jsx("a",{href:"https://token.oaifree.com/auth",target:"_blank",rel:"noopener noreferrer",children:"Access Token (点击获取)"}),name:"accessToken",children:v.jsx(x.TextArea,{})})]}):v.jsx(k.Item,{label:v.jsxs(j,{children:["Session Key",v.jsx(O,{type:"link",onClick:()=>{$.info({title:"Session Key 获取方法",content:v.jsxs("ul",{children:[v.jsxs("li",{children:["1. ",v.jsx(O,{type:"link",href:"https://demo.fuclaude.com/",target:"_blank",children:"点击登录 Fuclaude "})," "]}),v.jsxs("li",{children:["2. ",v.jsx(O,{type:"link",href:"https://demo.fuclaude.com/api/auth/session",target:"_blank",children:"点击获取SessionKey"})]})]})})},children:"获取方法"})]}),name:"sessionKey",children:v.jsx(x.TextArea,{})})]})})}export{de as A,X as B,J as C,oe as E,Y as R,re as S,ie as a,le as b,ce as c,se as u}; diff --git a/frontend/dist/assets/Login-23396c5f.js b/frontend/dist/assets/Login-23396c5f.js new file mode 100644 index 0000000..a78dd0a --- /dev/null +++ b/frontend/dist/assets/Login-23396c5f.js @@ -0,0 +1 @@ +import{_ as e,a as t,r as n,u as r,b as i,c as s,j as a,I as o,B as c,d as u,e as d,g as l,S as p,N as h,C as _,L as f,f as m}from"./index-8bf8489d.js";import{F as g}from"./index-83bdf3a0.js";import{L as y}from"./index-ec51f637.js";import{T as v}from"./index-57131342.js";import"./row-b45105b9.js";var E=Object.defineProperty,S=Object.defineProperties,T=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,w=(e,t,n)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||(t={}))x.call(t,n)&&w(e,n,t[n]);if(b)for(var n of b(t))R.call(t,n)&&w(e,n,t[n]);return e},N=(e,t)=>S(e,T(t)),k=(e,t)=>{var n={};for(var r in e)x.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&b)for(var r of b(e))t.indexOf(r)<0&&R.call(e,r)&&(n[r]=e[r]);return n},C=(e,t)=>{for(var n in t)E(e,n,{get:t[n],enumerable:!0})},B=(e,t,n)=>new Promise(((r,i)=>{var s=e=>{try{o(n.next(e))}catch(t){i(t)}},a=e=>{try{o(n.throw(e))}catch(t){i(t)}},o=e=>e.done?r(e.value):Promise.resolve(e.value).then(s,a);o((n=n.apply(e,t)).next())}));function U(e){let t=e&&e.ownerDocument||document;return{document:t,window:t.defaultView||t.parentWindow||window}}function I(e){return e||document.head}var O="hCaptcha-script",Y="hCaptchaOnLoad",G="script-error",$="@hCaptcha/loader",j=Object.prototype.toString;function P(e){switch(j.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return J(e,Error)}}function L(e,t){return j.call(e)===`[object ${t}]`}function A(e){return L(e,"ErrorEvent")}function M(e){return L(e,"DOMError")}function H(e){return L(e,"String")}function q(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function F(e){return L(e,"Object")}function z(e){return"undefined"!=typeof Event&&J(e,Event)}function W(e){return!(!e||!e.then||"function"!=typeof e.then)}function V(e){return"number"==typeof e&&e!=e}function J(e,t){try{return e instanceof t}catch(n){return!1}}function X(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function K(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Q(e,t){if(!Array.isArray(e))return"";let n=[];for(let i=0;iZ(e,t,n)))}function te(e,t,n=250,r,i,s,a){if(!(s.exception&&s.exception.values&&a&&J(a.originalException,Error)))return;let o=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;o&&(s.exception.values=function(e,t){return e.map((e=>(e.value&&(e.value=K(e.value,t)),e)))}(ne(e,t,i,a.originalException,r,s.exception.values,o,0),n))}function ne(e,t,n,r,i,s,a,o){if(s.length>=n+1)return s;let c=[...s];if(J(r[i],Error)){re(a,o);let s=e(t,r[i]),u=c.length;ie(s,i,u,o),c=ne(e,t,n,r[i],i,[s,...c],s,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,s)=>{if(J(r,Error)){re(a,o);let u=e(t,r),d=c.length;ie(u,`errors[${s}]`,d,o),c=ne(e,t,n,r,i,[u,...c],u,d)}})),c}function re(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=N(D({},e.mechanism),{is_exception_group:!0,exception_id:t})}function ie(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=N(D({},e.mechanism),{type:"chained",source:t,exception_id:n,parent_id:r})}function se(e){return e&&e.Math==Math?e:void 0}var ae="object"==typeof globalThis&&se(globalThis)||"object"==typeof window&&se(window)||"object"==typeof self&&se(self)||"object"==typeof global&&se(global)||function(){return this}()||{};function oe(){return ae}function ce(e,t,n){let r=n||ae,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}var ue=oe(),de=80;function le(e,t={}){try{let n,r=e,i=5,s=[],a=0,o=0,c=" > ",u=c.length,d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||de;for(;r&&a++1&&o+s.length*u+n.length>=l));)s.push(n),o+=n.length,r=r.parentNode;return s.reverse().join(c)}catch(n){return""}}function pe(e,t){let n,r,i,s,a,o=e,c=[];if(!o||!o.tagName)return"";c.push(o.tagName.toLowerCase());let u=t&&t.length?t.filter((e=>o.getAttribute(e))).map((e=>[e,o.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{c.push(`[${e[0]}="${e[1]}"]`)}));else if(o.id&&c.push(`#${o.id}`),n=o.className,n&&H(n))for(r=n.split(/\s+/),a=0;a{let r=_e[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}var me=function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?he.forEach((n=>{t[n]=(...t)=>{e&&fe((()=>{ae.console[n](`Sentry Logger [${n}]:`,...t)}))}})):he.forEach((e=>{t[e]=()=>{}})),t}(),ge=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ye(e,t=!1){let{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:c}=e;return`${o}://${c}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function ve(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ee(e){let t="string"==typeof e?function(e){let t=ge.exec(e);if(!t)return;let[n,r,i="",s,a="",o]=t.slice(1),c="",u=o,d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){let e=u.match(/^\d+/);e&&(u=e[0])}return ve({host:s,pass:i,path:c,projectId:u,port:a,protocol:n,publicKey:r})}(e):ve(e);if(t&&function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;let{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(me.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(me.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(me.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(me.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}var Se=class extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}};function Te(e,t,n){if(!(t in e))return;let r=e[t],i=n(r);"function"==typeof i&&xe(i,r),e[t]=i}function be(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function xe(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,be(e,"__sentry_original__",t)}catch(n){}}function Re(e){return e.__sentry_original__}function we(e){if(P(e))return D({message:e.message,name:e.name,stack:e.stack},Ne(e));if(z(e)){let t=D({type:e.type,target:De(e.target),currentTarget:De(e.currentTarget)},Ne(e));return"undefined"!=typeof CustomEvent&&J(e,CustomEvent)&&(t.detail=e.detail),t}return e}function De(e){try{return function(e){return"undefined"!=typeof Element&&J(e,Element)}(e)?le(e):Object.prototype.toString.call(e)}catch(t){return""}}function Ne(e){if("object"==typeof e&&null!==e){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function ke(e){return Ce(e,new Map)}function Ce(e,t){if(F(e)){let n=t.get(e);if(void 0!==n)return n;let r={};t.set(e,r);for(let i of Object.keys(e))void 0!==e[i]&&(r[i]=Ce(e[i],t));return r}if(Array.isArray(e)){let n=t.get(e);if(void 0!==n)return n;let r=[];return t.set(e,r),e.forEach((e=>{r.push(Ce(e,t))})),r}return e}var Be=50,Ue=/\(error: (.*)\)/,Ie=/captureMessage|captureException/;var Oe="";function Ye(e){try{return e&&"function"==typeof e&&e.name||Oe}catch(t){return Oe}}var Ge=oe();function $e(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function je(){if(!function(){if(!("fetch"in Ge))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if($e(Ge.fetch))return!0;let e=!1,t=Ge.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=$e(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}var Pe=oe();var Le,Ae=oe(),Me="__sentry_xhr_v2__",He={},qe={};function Fe(e){if(!qe[e])switch(qe[e]=!0,e){case"console":"console"in ae&&he.forEach((function(e){e in ae.console&&Te(ae.console,e,(function(t){return _e[e]=t,function(...t){We("console",{args:t,level:e});let n=_e[e];n&&n.apply(ae.console,t)}}))}));break;case"dom":!function(){if(!Ae.document)return;let e=We.bind(null,"dom"),t=Ze(e,!0);Ae.document.addEventListener("click",t,!1),Ae.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{let n=Ae[t]&&Ae[t].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Te(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=s[n]=s[n]||{refCount:0};if(!a.handler){let r=Ze(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch(s){}return t.call(this,n,r,i)}})),Te(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this,i=n.__sentry_instrumentation_handlers__||{},s=i[t];s&&(s.refCount--,s.refCount<=0&&(e.call(this,t,s.handler,r),s.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(i){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!Ae.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;Te(e,"open",(function(e){return function(...t){let n=t[1],r=this[Me]={method:H(t[0])?t[0].toUpperCase():t[0],url:t[1],request_headers:{}};H(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let e=this[Me];if(e&&4===this.readyState){try{e.status_code=this.status}catch(n){}We("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Te(this,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(this,t)}})):this.addEventListener("readystatechange",i),Te(this,"setRequestHeader",(function(e){return function(...t){let[n,r]=t,i=this[Me];return i&&(i.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),Te(e,"send",(function(e){return function(...t){let n=this[Me];return n&&void 0!==t[0]&&(n.body=t[0]),We("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":je()&&Te(ae,"fetch",(function(e){return function(...t){let{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:Je(t),method:Ve(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:Je(t),method:Ve(t,"method")?String(t.method).toUpperCase():"GET"}}(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return We("fetch",D({},i)),e.apply(ae,t).then((e=>(We("fetch",N(D({},i),{endTimestamp:Date.now(),response:e})),e)),(e=>{throw We("fetch",N(D({},i),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(!function(){let e=Pe.chrome,t=e&&e.app&&e.app.runtime,n="history"in Pe&&!!Pe.history.pushState&&!!Pe.history.replaceState;return!t&&n}())return;let e=Ae.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=Le,t=String(n);Le=t,We("history",{from:e,to:t})}return e.apply(this,t)}}Ae.onpopstate=function(...t){let n=Ae.location.href,r=Le;if(Le=n,We("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(i){}},Te(Ae.history,"pushState",t),Te(Ae.history,"replaceState",t)}();break;case"error":et=Ae.onerror,Ae.onerror=function(e,t,n,r,i){return We("error",{column:r,error:i,line:n,msg:e,url:t}),!(!et||et.__SENTRY_LOADER__)&&et.apply(this,arguments)},Ae.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":nt=Ae.onunhandledrejection,Ae.onunhandledrejection=function(e){return We("unhandledrejection",e),!(nt&&!nt.__SENTRY_LOADER__)||nt.apply(this,arguments)},Ae.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("unknown instrumentation type:",e))}}function ze(e,t){He[e]=He[e]||[],He[e].push(t),Fe(e)}function We(e,t){if(e&&He[e])for(let r of He[e]||[])try{r(t)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${Ye(r)}\nError:`,n)}}function Ve(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Je(e){return"string"==typeof e?e:e?Ve(e,"url")?e.url:e.toString?e.toString():"":""}var Xe,Ke,Qe=1e3;function Ze(e,t=!1){return n=>{if(!n||Ke===n||function(e){if("keypress"!==e.type)return!1;try{let t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(t){}return!0}(n))return;let r="keypress"===n.type?"input":n.type;(void 0===Xe||function(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(n){}return!1}(Ke,n))&&(e({event:n,name:r,global:t}),Ke=n),clearTimeout(Xe),Xe=Ae.setTimeout((()=>{Xe=void 0}),Qe)}}var et=null;var tt,nt=null;function rt(){let e=ae,t=e.crypto||e.msCrypto,n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>t.getRandomValues(new Uint8Array(1))[0])}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function it(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function st(e){let{message:t,event_id:n}=e;if(t)return t;let r=it(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function at(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function ot(e,t){let n=it(e);if(!n)return;let r=n.mechanism;if(n.mechanism=D(D(D({},{type:"generic",handled:!0}),r),t),t&&"data"in t){let e=D(D({},r&&r.data),t.data);n.mechanism.data=e}}function ct(e){if(e&&e.__sentry_captured__)return!0;try{be(e,"__sentry_captured__",!0)}catch(t){}return!1}function ut(e,t=100,n=1/0){try{return lt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function dt(e,t=3,n=102400){let r=ut(e,t);return function(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}(r)>n?dt(e,t-1,n):r}function lt(e,t,n=1/0,r=1/0,i=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=r){d[_]="[MaxProperties ~]";break}let e=p[_];d[_]=lt(_,e,c-1,r,i),l++}return a(t),d}function pt(e){return new _t((t=>{t(e)}))}function ht(e){return new _t(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(tt||(tt={}));var _t=class{constructor(e){_t.prototype.__init.call(this),_t.prototype.__init2.call(this),_t.prototype.__init3.call(this),_t.prototype.__init4.call(this),this._state=tt.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new _t(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(i){r(i)}else n(t)},e=>{if(t)try{n(t(e))}catch(i){r(i)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new _t(((t,n)=>{let r,i;return this.then((t=>{i=!1,r=t,e&&e()}),(t=>{i=!0,r=t,e&&e()})).then((()=>{i?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(tt.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(tt.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===tt.PENDING){if(W(t))return void t.then(this._resolve,this._reject);this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===tt.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===tt.RESOLVED&&e[1](this._value),this._state===tt.REJECTED&&e[2](this._value),e[0]=!0)}))}}};function ft(e){let t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new _t(((n,r)=>{let i=t.length;if(!i)return n(!0);let s=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{pt(e).then((()=>{--i||(clearTimeout(s),n(!0))}),r)}))}))}}}function mt(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}var gt=["fatal","error","warning","log","info","debug"];function yt(e){return"warn"===e?"warning":gt.includes(e)?e:"log"}var vt=oe(),Et={nowSeconds:()=>Date.now()/1e3};var St="undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__||"[object process]"!==Object.prototype.toString.call("undefined"!=typeof process?process:0)?function(){let{performance:e}=vt;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}():function(){try{return(e=module,t="perf_hooks",e.require(t)).performance}catch(e){return}var e,t}(),Tt=void 0===St?Et:{nowSeconds:()=>(St.timeOrigin+St.now())/1e3},bt=Et.nowSeconds.bind(Et),xt=Tt.nowSeconds.bind(Tt),Rt=(()=>{let{performance:e}=vt;if(!e||!e.now)return;let t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i{let i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?i:`${e},${i}`;return s.length>kt?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${Dt}${t}`]=n),e)),{}))}function Bt(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}var Ut=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function It(e,t){let n=function(e){if(!e)return;let t,n=e.match(Ut);return n?("1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}):void 0}(e),r=function(e){if(!H(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{let n=Bt(t);return D(D({},e),n)}),{});else{if(!e)return;t=Bt(e)}let n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Nt)&&(e[t.slice(Dt.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(t),{traceId:i,parentSpanId:s,parentSampled:a}=n||{},o={traceId:i||rt(),spanId:rt().substring(16),sampled:a};return s&&(o.parentSpanId=s),r&&(o.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:o}}function Ot(e=rt(),t=rt().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Yt(e,t=[]){return[e,t]}function Gt(e,t){let[n,r]=e;return[n,[...r,t]]}function $t(e,t){let n=e[1];for(let r of n){if(t(r,r[0].type))return!0}return!1}function jt(e,t){return(t||new TextEncoder).encode(e)}function Pt(e,t){let[n,r]=e,i=JSON.stringify(n);function s(e){"string"==typeof i?i="string"==typeof e?i+e:[jt(i,t),e]:i.push("string"==typeof e?jt(e,t):e)}for(let o of r){let[e,t]=o;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)s(t);else{let e;try{e=JSON.stringify(t)}catch(a){e=JSON.stringify(ut(t))}s(e)}}return"string"==typeof i?i:function(e){let t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t),r=0;for(let i of e)n.set(i,r),r+=i.length;return n}(i)}function Lt(e,t){let n="string"==typeof e.data?jt(e.data,t):e.data;return[ke({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var At={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function Mt(e){return At[e]}function Ht(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function qt(e,{statusCode:t,headers:n},r=Date.now()){let i=D({},e),s=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(s)for(let o of s.trim().split(",")){let[e,t]=o.split(":",2),n=parseInt(e,10),s=1e3*(isNaN(n)?60:n);if(t)for(let a of t.split(";"))i[a]=r+s;else i.all=r+s}else a?i.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(i.all=r+6e4);return i}var Ft="production";function zt(){return ce("globalEventProcessors",(()=>[]))}function Wt(e){zt().push(e)}function Vt(e,t,n,r=0){return new _t(((i,s)=>{let a=e[r];if(null===t||"function"!=typeof a)i(t);else{let o=a(D({},t),n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===o&&me.log(`Event processor "${a.id}" dropped event`),W(o)?o.then((t=>Vt(e,t,n,r+1).then(i))).then(null,s):Vt(e,o,n,r+1).then(i).then(null,s)}}))}function Jt(e){let t=xt(),n={sid:rt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return ke({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Xt(n,e),n}function Xt(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||xt(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:rt()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}var Kt=class{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Qt()}static clone(e){let t=new Kt;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags=D({},e._tags),t._extra=D({},e._extra),t._contexts=D({},e._contexts),t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata=D({},e._sdkProcessingMetadata),t._propagationContext=D({},e._propagationContext)),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&Xt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags=D(D({},this._tags),e),this._notifyScopeListeners(),this}setTag(e,t){return this._tags=N(D({},this._tags),{[e]:t}),this._notifyScopeListeners(),this}setExtras(e){return this._extra=D(D({},this._extra),e),this._notifyScopeListeners(),this}setExtra(e,t){return this._extra=N(D({},this._extra),{[e]:t}),this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){let t=e(this);return t instanceof Kt?t:this}return e instanceof Kt?(this._tags=D(D({},this._tags),e._tags),this._extra=D(D({},this._extra),e._extra),this._contexts=D(D({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):F(e)&&(this._tags=D(D({},this._tags),e.tags),this._extra=D(D({},this._extra),e.extra),this._contexts=D(D({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Qt(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r=D({timestamp:bt()},e),i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={},n){if(this._extra&&Object.keys(this._extra).length&&(e.extra=D(D({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=D(D({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=D(D({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=D(D({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=D({trace:this._span.getTraceContext()},e.contexts);let t=this._span.transaction;if(t){e.sdkProcessingMetadata=D({dynamicSamplingContext:t.getDynamicSamplingContext()},e.sdkProcessingMetadata);let n=t.name;n&&(e.tags=D({transaction:n},e.tags))}}this._applyFingerprint(e);let r=this._getBreadcrumbs(),i=[...e.breadcrumbs||[],...r];return e.breadcrumbs=i.length>0?i:void 0,e.sdkProcessingMetadata=N(D(D({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),Vt([...n||[],...zt(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=D(D({},this._sdkProcessingMetadata),e),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){var t;e.fingerprint=e.fingerprint?(t=e.fingerprint,Array.isArray(t)?t:[t]):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}};function Qt(){return{traceId:rt(),spanId:rt().substring(16)}}var Zt=4,en=100,tn=class{constructor(e,t=new Kt,n=Zt){this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version{i.captureException(e,N(D({originalException:e,syntheticException:r},t),{event_id:n}),s)})),n}captureMessage(e,t,n){let r=this._lastEventId=n&&n.event_id?n.event_id:rt(),i=new Error(e);return this._withClient(((s,a)=>{s.captureMessage(e,t,N(D({originalException:e,syntheticException:i},n),{event_id:r}),a)})),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:rt();return e.type||(this._lastEventId=n),this._withClient(((r,i)=>{r.captureEvent(e,N(D({},t),{event_id:n}),i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=en}=r.getOptions&&r.getOptions()||{};if(s<=0)return;let a=bt(),o=D({timestamp:a},e),c=i?fe((()=>i(o,t))):o;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){let t=rn(this);try{e(this)}finally{rn(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){let n=this._callExtensionMethod("startTransaction",e,t);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n){this.getClient()}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),Xt(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i=Ft}=n&&n.getOptions()||{},{userAgent:s}=ae.navigator||{},a=Jt(D(D({release:r,environment:i,user:t.getUser()},s&&{userAgent:s}),e)),o=t.getSession&&t.getSession();return o&&"ok"===o.status&&Xt(o,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!(!t||!t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){let n=nn().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Extension method ${e} couldn't be found, doing nothing.`)}};function nn(){return ae.__SENTRY__=ae.__SENTRY__||{extensions:{},hub:void 0},ae}function rn(e){let t=nn(),n=an(t);return on(t,e),n}function sn(){let e=nn();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=nn()){return(!function(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}(e)||an(e).isOlderThan(Zt))&&on(e,new tn),an(e)}(e)}function an(e){return ce("hub",(()=>new tn),e)}function on(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function cn(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=sn().getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function un(e){return(e||sn()).getScope().getTransaction()}var dn=!1;function ln(){let e=un();if(e){let t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}ln.tag="sentry_tracingErrorCallback";var pn=class{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}},hn=class{constructor(e={}){this.traceId=e.traceId||rt(),this.spanId=e.spanId||rt().substring(16),this.startTimestamp=e.startTimestamp||xt(),this.tags=e.tags||{},this.data=e.data||{},this.instrumenter=e.instrumenter||"sentry",this.origin=e.origin||"manual",e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.name&&(this.description=e.name),e.status&&(this.status=e.status),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}get name(){return this.description||""}set name(e){this.setName(e)}startChild(e){let t=new hn(N(D({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){let n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},me.log(n)}return t}setTag(e,t){return this.tags=N(D({},this.tags),{[e]:t}),this}setData(e,t){return this.data=N(D({},this.data),{[e]:t}),this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e)),this.setData("http.response.status_code",e);let t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}setName(e){this.description=e}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){let{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&me.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:xt()}toTraceparent(){return Ot(this.traceId,this.spanId,this.sampled)}toContext(){return ke({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=e.data||{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=e.spanId||this.spanId,this.startTimestamp=e.startTimestamp||this.startTimestamp,this.status=e.status,this.tags=e.tags||{},this.traceId=e.traceId||this.traceId,this}getTraceContext(){return ke({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return ke({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}};function _n(e,t,n){let r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},a=ke({environment:r.environment||Ft,release:r.release,user_segment:s,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}var fn=class extends hn{constructor(e,t){super(e),delete this.description,this._measurements={},this._contexts={},this._hub=t||sn(),this._name=e.name||"",this.metadata=N(D({source:"custom"},e.metadata),{spanMetadata:{}}),this._trimEnd=e.trimEnd,this.transaction=this;let n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext=D({},n))}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new pn(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata=D(D({},this.metadata),e)}finish(e){let t=this._finishTransaction(e);if(t)return this._hub.captureEvent(t)}toContext(){let e=super.toContext();return ke(N(D({},e),{name:this.name,trimEnd:this._trimEnd}))}updateWithContext(e){return super.updateWithContext(e),this.name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;let e=this._hub||sn(),t=e.getClient();if(!t)return{};let n=e.getScope(),r=_n(this.traceId,t,n),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=`${i}`);let s=this.metadata.source;return s&&"url"!==s&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Transaction has no name, falling back to ``."),this.name=""),super.finish(e);let t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));let n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);let r=this.metadata,i=D({contexts:N(D({},this._contexts),{trace:this.getTraceContext()}),spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:N(D({},r),{dynamicSamplingContext:this.getDynamicSamplingContext()})},r.source&&{transaction_info:{source:r.source}});return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),i}},mn={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},gn=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],yn=class extends pn{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:xt(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}},vn=class extends fn{constructor(e,t,n=mn.idleTimeout,r=mn.finalTimeout,i=mn.heartbeatInterval,s=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=gn[4],s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=gn[3],this.finish())}),this._finalTimeout)}finish(e=xt()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);for(let t of this._beforeFinishCallbacks)t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));let n=t.startTimestamp{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new yn(t,n,this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=gn[5],this.finish(e)))}setFinishReason(e){this._finishReason=e}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{!this._finished&&0===Object.keys(this.activities).length&&(this._finishReason=gn[1],this.finish(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){let e=xt();this._idleTimeoutCanceledPermanently?(this._finishReason=gn[5],this.finish(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=gn[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}};function En(){let e=this.getScope().getSpan();return e?{"sentry-trace":e.toTraceparent()}:{}}function Sn(e,t,n){if(!cn(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:void 0!==t.tracesSampleRate?(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})):(r=1,e.setMetadata({sampleRate:r})),function(e){return V(e)||"number"!=typeof e&&"boolean"!=typeof e?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!(e<0||e>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1)}(r)?r?(e.sampled=Math.random()`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}(D({sentry_key:e.publicKey,sentry_version:Rn},t&&{sentry_client:`${t.name}/${t.version}`}))}function Dn(e,t,n,r){let i=Ht(n),s=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);let a=function(e,t,n,r){let i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return D(D(D({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:ye(r)}),i&&{trace:ke(D({},i))})}(e,i,r,t);return delete e.sdkProcessingMetadata,Yt(a,[[{type:s},e]])}var Nn=[];function kn(e,t,n){if(n[t.name]=t,-1===Nn.indexOf(t.name)&&(t.setupOnce(Wt,sn),Nn.push(t.name)),e.on&&"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Integration installed: ${t.name}`)}function Cn(e,t,n,r,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,o=N(D({},t),{event_id:t.event_id||n.event_id||rt(),timestamp:t.timestamp||bt()}),c=n.integrations||e.integrations.map((e=>e.name));(function(e,t){let{environment:n,release:r,dist:i,maxValueLength:s=250}=t;"environment"in e||(e.environment="environment"in t?n:Ft),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=K(e.message,s));let a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=K(a.value,s));let o=e.request;o&&o.url&&(o.url=K(o.url,s))})(o,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(o,c),void 0===t.type&&function(e,t){let n=ae._sentryDebugIds;if(!n)return;let r,i=Bn.get(t);i?r=i:(r=new Map,Bn.set(t,r));let s=Object.keys(n).reduce(((e,i)=>{let s,a=r.get(i);a?s=a:(s=t(i),r.set(i,s));for(let t=s.length-1;t>=0;t--){let r=s[t];if(r.filename){e[r.filename]=n[i];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=s[e.filename])}))}))}catch(a){}}(o,e.stackParser);let u=r;n.captureContext&&(u=Kt.clone(u).update(n.captureContext));let d=pt(o),l=i&&i.getEventProcessors?i.getEventProcessors():[];if(u){if(u.getAttachments){let e=[...n.attachments||[],...u.getAttachments()];e.length&&(n.attachments=e)}d=u.applyToEvent(o,n,l)}else d=Vt([...l,...zt()],o,n);return d.then((e=>(e&&function(e){let t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(r){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;let r=D(D(D(D(D({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>D(D({},e),e.data&&{data:ut(e.data,t,n)})))}),e.user&&{user:ut(e.user,t,n)}),e.contexts&&{contexts:ut(e.contexts,t,n)}),e.extra&&{extra:ut(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=ut(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=ut(e.data,t,n)),e)))),r}(e,s,a):e)))}var Bn=new WeakMap;var Un="Not capturing exception because it's already been captured.",In=class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=Ee(e.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("No DSN provided, client will not send events."),this._dsn){let t=function(e,t={}){let n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${wn(e,r)}`}(this._dsn,e);this._transport=e.transport(N(D({recordDroppedEvent:this.recordDroppedEvent.bind(this)},e.transportOptions),{url:t}))}}captureException(e,t,n){if(ct(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(Un));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let i=n&&n.event_id,s=q(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(s.then((e=>this._captureEvent(e,n,r))).then((e=>{i=e}))),i}captureEvent(e,t,n){if(t&&t.originalException&&ct(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(Un));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Xt(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):pt(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&(this._integrations=function(e,t){let n={};return t.forEach((t=>{t&&kn(e,t,n)})),n}(this,this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){kn(this,e,this._integrations)}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=Dn(e,this._dsn,this._options._metadata,this._options.tunnel);for(let i of t.attachments||[])n=Gt(n,Lt(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));let r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){let t=function(e,t,n,r){let i=Ht(n);return Yt(D(D({sent_at:(new Date).toISOString()},i&&{sdk:i}),!!r&&t&&{dsn:ye(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){let n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_updateSessionFromEvent(e,t){let n=!1,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;for(let e of i){let t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}let s="ok"===e.status;(s&&0===e.errors||s&&n)&&(Xt(e,N(D({},n&&{status:"crashed"}),{errors:e.errors||Number(r||n)})),this.captureSession(e))}_isClientDoneProcessing(e){return new _t((t=>{let n=0,r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n){let r=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),Cn(r,e,t,n,this).then((e=>{if(null===e)return e;let{propagationContext:t}=e.sdkProcessingMetadata||{};if((!e.contexts||!e.contexts.trace)&&t){let{traceId:r,spanId:i,parentSpanId:s,dsc:a}=t;e.contexts=D({trace:{trace_id:r,span_id:i,parent_span_id:s}},e.contexts);let o=a||_n(r,this,n);e.sdkProcessingMetadata=D({dynamicSamplingContext:o},e.sdkProcessingMetadata)}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){let t=e;"log"===t.logLevel?me.log(t.message):me.warn(t)}}))}_processEvent(e,t,n){let r=this.getOptions(),{sampleRate:i}=r,s=Yn(e),a=On(e),o=e.type||"error",c=`before send for type \`${o}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",e),ht(new Se(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));let u="replay_event"===o?"replay":o;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new Se("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;let i=function(e,t,n){let{beforeSend:r,beforeSendTransaction:i}=e;return On(t)&&r?r(t,n):Yn(t)&&i?i(t,n):t}(r,n,t);return function(e,t){let n=`${t} must return \`null\` or a valid event.`;if(W(e))return e.then((e=>{if(!F(e)&&null!==e)throw new Se(n);return e}),(e=>{throw new Se(`${t} rejected with ${e}`)}));if(!F(e)&&null!==e)throw new Se(n);return e}(i,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new Se(`${c} returned \`null\`, will not send event.`,"log");let i=n&&n.getSession();!s&&i&&this._updateSessionFromEvent(i,r);let a=r.transaction_info;if(s&&a&&r.transaction!==e.transaction){let e="custom";r.transaction_info=N(D({},a),{source:e})}return this.sendEvent(r,t),r})).then(null,(e=>{throw e instanceof Se?e:(this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Se(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error("Error while sending event:",e)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error("Transport disabled")}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{let[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}};function On(e){return void 0===e.type}function Yn(e){return"transaction"===e.type}var Gn=30;function $n(e,t,n=ft(e.bufferSize||Gn)){let r={};function i(i){let s=[];if($t(i,((t,n)=>{let i=Mt(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){let r=jn(t,n);e.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(t)})),0===s.length)return pt();let a=Yt(i[0],s),o=t=>{$t(a,((n,r)=>{let i=jn(n,r);e.recordDroppedEvent(t,Mt(r),i)}))};return n.add((()=>t({body:Pt(a,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=qt(r,e),e)),(e=>{throw o("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Se)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error("Skipped sending event because buffer is full."),o("queue_overflow"),pt();throw e}))}return i.__sentry__baseTransport__=!0,{send:i,flush:e=>n.drain(e)}}function jn(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}var Pn="7.73.0",Ln={};C(Ln,{FunctionToString:()=>Mn,InboundFilters:()=>Fn});var An,Mn=class{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=Mn.id}setupOnce(){An=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Re(this)||this;return An.apply(t,e)}}catch(e){}}};Mn.__initStatic();var Hn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],qn=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/],Fn=class{static __initStatic(){this.id="InboundFilters"}constructor(e={}){this.name=Fn.id,this._options=e}setupOnce(e,t){}processEvent(e,t,n){let r=n.getOptions(),i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Hn],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:qn],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(this._options,r);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${st(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){let t,r=[];e.message&&r.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(n){}return t&&t.value&&(r.push(t.value),t.type&&r.push(`${t.type}: ${t.value}`)),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&0===r.length&&me.error(`Could not extract message for event ${st(e)}`),r}(e).some((e=>ee(e,t)))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${st(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;let n=e.transaction;return!!n&&ee(n,t)}(e,t.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${st(e)}`),!0):function(e,t){if(!t||!t.length)return!1;let n=zn(e);return!!n&&ee(n,t)}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${st(e)}.\nUrl: ${zn(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;let n=zn(e);return!n||ee(n,t)}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${st(e)}.\nUrl: ${zn(e)}`),!0)}(e,i)?null:e}};function zn(e){try{let n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.error(`Cannot extract url for event ${st(e)}`),null}}Fn.__initStatic();var Wn=ae,Vn=0;function Jn(){return Vn>0}function Xn(e,t={},n){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t)return t;if(Re(e))return e}catch(i){return e}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map((e=>Xn(e,t)));return e.apply(this,i)}catch(i){throw Vn++,setTimeout((()=>{Vn--})),function(e){sn().withScope(e)}((e=>{e.addEventProcessor((e=>(t.mechanism&&(at(e,void 0,void 0),ot(e,t.mechanism)),e.extra=N(D({},e.extra),{arguments:r}),e))),function(e,t){sn().captureException(e,{captureContext:t})}(i)})),i}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(i){}xe(r,e),be(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(i){}return r}function Kn(e,t){let n=Zn(e,t),r={type:t&&t.name,value:tr(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Qn(e,t){return{exception:{values:[Kn(e,t)]}}}function Zn(e,t){let n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(er.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(i){}return[]}var er=/Minified React error #\d+;/i;function tr(e){let t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function nr(e,t,n,r,i){let s;if(A(t)&&t.error)return Qn(e,t.error);if(M(t)||function(e){return L(e,"DOMException")}(t)){let i=t;if("stack"in t)s=Qn(e,t);else{let t=i.name||(M(i)?"DOMError":"DOMException"),a=i.message?`${t}: ${i.message}`:t;s=rr(e,a,n,r),at(s,a)}return"code"in i&&(s.tags=N(D({},s.tags),{"DOMException.code":`${i.code}`})),s}return P(t)?Qn(e,t):F(t)||z(t)?(s=function(e,t,n,r){let i=sn().getClient(),s=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:z(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ir(t,{isUnhandledRejection:r})}]},extra:{__serialized__:dt(t,s)}};if(n){let t=Zn(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,i),ot(s,{synthetic:!0}),s):(s=rr(e,t,n,r),at(s,`${t}`,void 0),ot(s,{synthetic:!0}),s)}function rr(e,t,n,r){let i={message:t};if(r&&n){let r=Zn(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]})}return i}function ir(e,{isUnhandledRejection:t}){let n=function(e,t=40){let n=Object.keys(we(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return K(n[0],t);for(let r=n.length;r>0;r--){let e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:K(e,t)}return""}(e),r=t?"promise rejection":"exception";return A(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:z(e)?`Event \`${function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}var sr,ar=class extends In{constructor(e){let t=Wn.SENTRY_SDK_SOURCE||"npm";e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${t}:@sentry/browser`,version:Pn}],version:Pn},super(e),e.sendClientReports&&Wn.document&&Wn.document.addEventListener("visibilitychange",(()=>{"hidden"===Wn.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){let i=nr(e,t,n&&n.syntheticException||void 0,r);return ot(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),pt(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,i){let s=rr(e,t,r&&r.syntheticException||void 0,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),pt(s)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("SDK not enabled, will not capture user feedback."));let t=function(e,{metadata:t,tunnel:n,dsn:r}){let i=D(D({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}}),!!n&&!!r&&{dsn:ye(r)}),s=function(e){return[{type:"user_report"},e]}(e);return Yt(i,[s])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){let e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("Sending outcomes:",e);let t=function(e,t,n){return Yt(t?{dsn:t}:{},[[{type:"client_report"},{timestamp:n||bt(),discarded_events:e}]])}(e,this._options.tunnel&&ye(this._dsn));this._sendEnvelope(t)}};function or(e,t=function(){if(sr)return sr;if($e(Wn.fetch))return sr=Wn.fetch.bind(Wn);let e=Wn.document,t=Wn.fetch;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);let r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return sr=t.bind(Wn)}()){let n=0,r=0;return $n(e,(function(i){let s=i.body.length;n+=s,r++;let a=D({body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);try{return t(e.url,a).then((e=>(n-=s,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(o){return sr=void 0,n-=s,r--,ht(o)}}))}var cr=4;function ur(e){return $n(e,(function(t){return new _t(((n,r)=>{let i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{i.readyState===cr&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(let t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&i.setRequestHeader(t,e.headers[t]);i.send(t.body)}))}))}var dr="?";function lr(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var pr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,hr=/\((\S*)(?::(\d+))(?::(\d+))\)/,_r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,mr=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,gr=function(...e){let t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{let r=[],i=e.split("\n");for(let s=n;s1024)continue;let n=Ue.test(e)?e.replace(Ue,"$1"):e;if(!n.match(/\S*Error: /)){for(let e of t){let t=e(n);if(t){r.push(t);break}}if(r.length>=Be)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Ie.test(t[t.length-1].function||"")&&(t.pop(),Ie.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Be).map((e=>N(D({},e),{filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}(...[[30,e=>{let t=pr.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=hr.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=yr(t[1]||dr,t[2]);return lr(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{let t=_r.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=fr.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||dr;return[n,e]=yr(n,e),lr(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{let t=mr.exec(e);return t?lr(t[2],t[1]||dr,+t[3],t[4]?+t[4]:void 0):void 0}]]),yr=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:dr,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},vr=class{static __initStatic(){this.id="GlobalHandlers"}constructor(e){this.name=vr.id,this._options=D({onerror:!0,onunhandledrejection:!0},e),this._installFunc={onerror:Er,onunhandledrejection:Sr}}setupOnce(){Error.stackTraceLimit=50;let e=this._options;for(let n in e){let r=this._installFunc[n];r&&e[n]&&(t=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`Global Handler attached: ${t}`),r(),this._installFunc[n]=void 0)}var t}};function Er(){ze("error",(e=>{let[t,n,r]=xr();if(!t.getIntegration(vr))return;let{msg:i,url:s,line:a,column:o,error:c}=e;if(Jn()||c&&c.__sentry_own_request__)return;let u=void 0===c&&H(i)?function(e,t,n,r){let i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,s=A(e)?e.message:e,a="Error",o=s.match(i);return o&&(a=o[1],s=o[2]),Tr({exception:{values:[{type:a,value:s}]}},t,n,r)}(i,s,a,o):Tr(nr(n,c||i,void 0,r,!1),s,a,o);u.level="error",br(t,c,u,"onerror")}))}function Sr(){ze("unhandledrejection",(e=>{let[t,n,r]=xr();if(!t.getIntegration(vr))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(a){}if(Jn()||i&&i.__sentry_own_request__)return!0;let s=q(i)?function(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}(i):nr(n,i,void 0,r,!0);s.level="error",br(t,i,s,"onunhandledrejection")}))}function Tr(e,t,n,r){let i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},c=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,l=H(t)&&t.length>0?t:function(){try{return ue.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:u,filename:l,function:"?",in_app:!0,lineno:d}),e}function br(e,t,n,r){ot(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function xr(){let e=sn(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}vr.__initStatic();var Rr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],wr=class{static __initStatic(){this.id="TryCatch"}constructor(e){this.name=wr.id,this._options=D({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}setupOnce(){this._options.setTimeout&&Te(Wn,"setTimeout",Dr),this._options.setInterval&&Te(Wn,"setInterval",Dr),this._options.requestAnimationFrame&&Te(Wn,"requestAnimationFrame",Nr),this._options.XMLHttpRequest&&"XMLHttpRequest"in Wn&&Te(XMLHttpRequest.prototype,"send",kr);let e=this._options.eventTarget;e&&(Array.isArray(e)?e:Rr).forEach(Cr)}};function Dr(e){return function(...t){let n=t[0];return t[0]=Xn(n,{mechanism:{data:{function:Ye(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Nr(e){return function(t){return e.apply(this,[Xn(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ye(e)},handled:!1,type:"instrument"}})])}}function kr(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&Te(n,e,(function(t){let n={mechanism:{data:{function:e,handler:Ye(t)},handled:!1,type:"instrument"}},r=Re(t);return r&&(n.mechanism.data.handler=Ye(r)),Xn(t,n)}))})),e.apply(this,t)}}function Cr(e){let t=Wn,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Te(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Xn(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ye(r),target:e},handled:!1,type:"instrument"}}))}catch(s){}return t.apply(this,[n,Xn(r,{mechanism:{data:{function:"addEventListener",handler:Ye(r),target:e},handled:!1,type:"instrument"}}),i])}})),Te(n,"removeEventListener",(function(e){return function(t,n,r){let i=n;try{let n=i&&i.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(s){}return e.call(this,t,i,r)}})))}wr.__initStatic();var Br=1024,Ur=class{static __initStatic(){this.id="Breadcrumbs"}constructor(e){this.name=Ur.id,this.options=D({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}setupOnce(){if(this.options.console&&ze("console",Or),this.options.dom&&ze("dom",function(e){function t(t){let n,r="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>Br&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=Br),"string"==typeof r&&(r=[r]);try{let e=t.event;n=function(e){return!!e&&!!e.target}(e)?le(e.target,{keyAttrs:r,maxStringLength:i}):le(e,{keyAttrs:r,maxStringLength:i})}catch(s){n=""}0!==n.length&&sn().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&ze("xhr",Yr),this.options.fetch&&ze("fetch",Gr),this.options.history&&ze("history",$r),this.options.sentry){let e=sn().getClient();e&&e.on&&e.on("beforeSendEvent",Ir)}}};function Ir(e){sn().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:st(e)},{event:e})}function Or(e){let t={category:"console",data:{arguments:e.args,logger:"console"},level:yt(e.level),message:Q(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message=`Assertion failed: ${Q(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1)}sn().addBreadcrumb(t,{input:e.args,level:e.level})}function Yr(e){let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[Me];if(!t||!n||!r)return;let{method:i,url:s,status_code:a,body:o}=r,c={method:i,url:s,status_code:a},u={xhr:e.xhr,input:o,startTimestamp:t,endTimestamp:n};sn().addBreadcrumb({category:"xhr",data:c,type:"http"},u)}function Gr(e){let{startTimestamp:t,endTimestamp:n}=e;if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r=e.fetchData,i={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n};sn().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r=N(D({},e.fetchData),{status_code:e.response&&e.response.status}),i={input:e.args,response:e.response,startTimestamp:t,endTimestamp:n};sn().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function $r(e){let t=e.from,n=e.to,r=mt(Wn.location.href),i=mt(t),s=mt(n);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),sn().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}Ur.__initStatic();var jr=class{static __initStatic(){this.id="LinkedErrors"}constructor(e={}){this.name=jr.id,this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){}preprocessEvent(e,t,n){let r=n.getOptions();te(Kn,r.stackParser,r.maxValueLength,this._key,this._limit,e,t)}};jr.__initStatic();var Pr=class{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Pr.id}setupOnce(){}preprocessEvent(e){if(!Wn.navigator&&!Wn.location&&!Wn.document)return;let t=e.request&&e.request.url||Wn.location&&Wn.location.href,{referrer:n}=Wn.document||{},{userAgent:r}=Wn.navigator||{},i=D(D(D({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),s=N(D(D({},e.request),t&&{url:t}),{headers:i});e.request=s}};Pr.__initStatic();var Lr=class{static __initStatic(){this.id="Dedupe"}constructor(){this.name=Lr.id}setupOnce(e,t){}processEvent(e){if(e.type)return e;try{if(function(e,t){return!!t&&!(!function(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Mr(e,t)||!Ar(e,t))}(e,t)&&!function(e,t){let n=Hr(t),r=Hr(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&Mr(e,t)&&Ar(e,t))}(e,t))}(e,this._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return this._previousEvent=e}};function Ar(e,t){let n=qr(e),r=qr(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let i=0;iUr,Dedupe:()=>Lr,GlobalHandlers:()=>vr,HttpContext:()=>Pr,LinkedErrors:()=>jr,TryCatch:()=>wr});var zr=ae;var Wr=(e,t,n)=>{let r,i;return s=>{t.value>=0&&(s||n)&&(i=t.value-(r||0),(i||void 0===r)&&(r=t.value,t.delta=i,e(t)))}},Vr=()=>zr.__WEB_VITALS_POLYFILL__?zr.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{let e=zr.performance.timing,t=zr.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(let r in e)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n})()):zr.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Jr=()=>{let e=Vr();return e&&e.activationStart||0},Xr=(e,t)=>{let n=Vr(),r="navigate";return n&&(r=zr.document.prerendering||Jr()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Kr=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}},Qr=(e,t)=>{let n=r=>{("pagehide"===r.type||"hidden"===zr.document.visibilityState)&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Zr=e=>{let t,n=Xr("CLS",0),r=0,i=[],s=e=>{e.forEach((e=>{if(!e.hadRecentInput){let s=i[0],a=i[i.length-1];r&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-s.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>n.value&&(n.value=r,n.entries=i,t&&t())}}))},a=Kr("layout-shift",s);if(a){t=Wr(e,n);let r=()=>{s(a.takeRecords()),t(!0)};return Qr(r),r}},ei=-1,ti=()=>(ei<0&&(ei="hidden"!==zr.document.visibilityState||zr.document.prerendering?1/0:0,Qr((({timeStamp:e})=>{ei=e}),!0)),{get firstHiddenTime(){return ei}}),ni=e=>{let t,n=ti(),r=Xr("FID"),i=e=>{e.startTime{e.forEach(i)},a=Kr("first-input",s);t=Wr(e,r),a&&Qr((()=>{s(a.takeRecords()),a.disconnect()}),!0)},ri={},ii=e=>{let t,n=ti(),r=Xr("LCP"),i=e=>{let i=e[e.length-1];if(i){let e=Math.max(i.startTime-Jr(),0);e{ri[r.id]||(i(s.takeRecords()),s.disconnect(),ri[r.id]=!0,t(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,n,{once:!0,capture:!0})})),Qr(n,!0),n}};function si(e){return"number"==typeof e&&isFinite(e)}function ai(e,t){var n=t,{startTimestamp:r}=n,i=k(n,["startTimestamp"]);return r&&e.startTimestamp>r&&(e.startTimestamp=r),e.startChild(D({startTimestamp:r},i))}function oi(e){return e/1e3}function ci(){return zr&&zr.addEventListener&&zr.performance}var ui,di,li=0,pi={};function hi(){let e=ci();if(e&&Rt){e.mark&&zr.performance.mark("sentry-tracing-init"),ni((e=>{let t=e.entries.pop();if(!t)return;let n=oi(Rt),r=oi(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding FID"),pi.fid={value:e.value,unit:"millisecond"},pi["mark.fid"]={value:n+r,unit:"second"}}));let t=Zr((e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding CLS"),pi.cls={value:e.value,unit:""},di=t)})),n=ii((e=>{let t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding LCP"),pi.lcp={value:e.value,unit:"millisecond"},ui=t)}));return()=>{t&&t(),n&&n()}}return()=>{}}function _i(e){let t=ci();if(!t||!zr.performance.getEntries||!Rt)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Tracing] Adding & adjusting spans using Performance API");let n,r,i=oi(Rt),s=t.getEntries();if(s.slice(li).forEach((t=>{let s=oi(t.startTime),a=oi(t.duration);if(!("navigation"===e.op&&i+s{fi(e,t,r,n)})),fi(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),fi(e,t,"fetch",n,"cache","domainLookupStart"),fi(e,t,"domainLookup",n,"DNS"),function(e,t,n){ai(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+oi(t.requestStart),endTimestamp:n+oi(t.responseEnd)}),ai(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+oi(t.responseStart),endTimestamp:n+oi(t.responseEnd)})}(e,t,n)})(e,t,i),n=i+oi(t.responseStart),r=i+oi(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,i){let s=i+n,a=s+r;ai(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(e,t,s,a,i);let n=ti(),r=t.startTime{if(!pi[t]||i>=e.startTimestamp)return;let n=pi[t].value,r=i+oi(n),s=Math.abs(1e3*(r-e.startTimestamp)),a=s-n;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Measurements] Normalized ${t} from ${n} to ${s} (${a})`),pi[t].value=s}));let t=pi["mark.fid"];t&&pi.fid&&(ai(e,{description:"first input delay",endTimestamp:t.value+oi(pi.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete pi["mark.fid"]),"fcp"in pi||delete pi.cls,Object.keys(pi).forEach((t=>{e.setMeasurement(t,pi[t].value,pi[t].unit)})),function(e){ui&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding LCP Data"),ui.element&&e.setTag("lcp.element",le(ui.element)),ui.id&&e.setTag("lcp.id",ui.id),ui.url&&e.setTag("lcp.url",ui.url.trim().slice(0,200)),e.setTag("lcp.size",ui.size)),di&&di.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log("[Measurements] Adding CLS Data"),di.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,le(t.node)))))}(e)}ui=void 0,di=void 0,pi={}}function fi(e,t,n,r,i,s){let a=s?t[s]:t[`${n}End`],o=t[`${n}Start`];!o||!a||ai(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+oi(o),endTimestamp:r+oi(a)})}var mi=["localhost",/^\/(?!\/)/],gi={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:mi,tracePropagationTargets:mi};function yi(e){let{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:a}=D({traceFetch:gi.traceFetch,traceXHR:gi.traceXHR},e),o="function"==typeof s?s:e=>!0,c=e=>function(e,t){return ee(e,t||mi)}(e,r||i),u={};t&&ze("fetch",(e=>{let t=function(e,t,n,r){if(!cn()||!e.fetchData)return;let i=t(e.fetchData.url);if(e.endTimestamp&&i){let t=e.fetchData.__span;if(!t)return;let n=r[t];if(n){if(e.response){n.setHttpStatus(e.response.status);let t=e.response&&e.response.headers&&e.response.headers.get("content-length"),r=parseInt(t);r>0&&n.setData("http.response_content_length",r)}else e.error&&n.setStatus("internal_error");n.finish(),delete r[t]}return}let s=sn(),a=s.getScope(),o=s.getClient(),c=a.getSpan(),{method:u,url:d}=e.fetchData,l=i&&c?c.startChild({data:{url:d,type:"fetch","http.method":u},description:`${u} ${d}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(l&&(e.fetchData.__span=l.spanId,r[l.spanId]=l),n(e.fetchData.url)&&o){let t=e.args[0];e.args[1]=e.args[1]||{};let n=e.args[1];n.headers=function(e,t,n,r,i){let s=i||n.getSpan(),a=s&&s.transaction,{traceId:o,sampled:c,dsc:u}=n.getPropagationContext(),d=s?s.toTraceparent():Ot(o,void 0,c),l=a?a.getDynamicSamplingContext():u||_n(o,t,n),p=Ct(l),h="undefined"!=typeof Request&&J(e,Request)?e.headers:r.headers;if(h){if("undefined"!=typeof Headers&&J(h,Headers)){let e=new Headers(h);return e.append("sentry-trace",d),p&&e.append(wt,p),e}if(Array.isArray(h)){let e=[...h,["sentry-trace",d]];return p&&e.push([wt,p]),e}{let e="baggage"in h?h.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),p&&t.push(p),N(D({},h),{"sentry-trace":d,baggage:t.length>0?t.join(","):void 0})}}return{"sentry-trace":d,baggage:p}}(t,o,a,n,l)}return l}(e,o,c,u);a&&t&&vi(t)})),n&&ze("xhr",(e=>{let t=function(e,t,n,r){let i=e.xhr,s=i&&i[Me];if(!cn()||i&&i.__sentry_own_request__||!i||!s)return;let a=t(s.url);if(e.endTimestamp&&a){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=r[e];return void(t&&(t.setHttpStatus(s.status_code),t.finish(),delete r[e]))}let o=sn(),c=o.getScope(),u=c.getSpan(),d=a&&u?u.startChild({data:N(D({},s.data),{type:"xhr","http.method":s.method,url:s.url}),description:`${s.method} ${s.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;if(d&&(i.__sentry_xhr_span_id__=d.spanId,r[i.__sentry_xhr_span_id__]=d),i.setRequestHeader&&n(s.url))if(d){let e=d&&d.transaction,t=Ct(e&&e.getDynamicSamplingContext());Si(i,d.toTraceparent(),t)}else{let e=o.getClient(),{traceId:t,sampled:n,dsc:r}=c.getPropagationContext();Si(i,Ot(t,void 0,n),Ct(r||(e?_n(t,e,c):void 0)))}return d}(e,o,c,u);a&&t&&vi(t)}))}function vi(e){let t=e.data.url,n=new PerformanceObserver((r=>{r.getEntries().forEach((r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(function(e){let{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(let i of e){if("/"===i){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Rt?[...r,["http.request.redirect_start",Ei(e.redirectStart)],["http.request.fetch_start",Ei(e.fetchStart)],["http.request.domain_lookup_start",Ei(e.domainLookupStart)],["http.request.domain_lookup_end",Ei(e.domainLookupEnd)],["http.request.connect_start",Ei(e.connectStart)],["http.request.secure_connection_start",Ei(e.secureConnectionStart)],["http.request.connection_end",Ei(e.connectEnd)],["http.request.request_start",Ei(e.requestStart)],["http.request.response_start",Ei(e.responseStart)],["http.request.response_end",Ei(e.responseEnd)]]:r}(r).forEach((t=>e.setData(...t))),n.disconnect())}))}));n.observe({entryTypes:["resource"]})}function Ei(e=0){return((Rt||performance.timeOrigin)+e)/1e3}function Si(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(wt,n)}catch(r){}}var Ti=D(N(D({},mn),{markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!zr||!zr.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("Could not initialize routing instrumentation due to invalid location"));let r,i=zr.location.href;t&&(r=e({name:zr.location.pathname,startTimestamp:Rt?Rt/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&ze("history",(({to:t,from:n})=>{void 0===n&&i&&-1!==i.indexOf(t)?i=void 0:n!==t&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=e({name:zr.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{}}),gi),bi=class{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,xn(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options=D(D({},Ti),e),void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=hi(),this.options.enableLongTask&&Kr("longtask",(e=>{for(let t of e){let e=un();if(!e)return;let n=oi(Rt+t.startTime),r=oi(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}})),this.options._experiments.enableInteractions&&Kr("event",(e=>{for(let t of e){let e=un();if(!e)return;if("click"===t.name){let n=oi(Rt+t.startTime),r=oi(t.duration);e.startChild({description:le(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}}),{durationThreshold:0})}setupOnce(e,t){this._getCurrentHub=t;let n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:s,startTransactionOnPageLoad:a,markBackgroundTransactions:o,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:d,enableHTTPTimings:l,_experiments:p}=this.options,h=r&&r.tracePropagationTargets,_=h||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&h&&me.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i((e=>{let n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),a,s),o&&(zr&&zr.document?zr.document.addEventListener("visibilitychange",(()=>{let e=un();if(zr.document.hidden&&e){let t="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),yi({traceFetch:c,traceXHR:u,tracePropagationTargets:_,shouldCreateSpanForRequest:d,enableHTTPTimings:l})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));let t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=this.options,a="pageload"===e.op,o=a?xi("sentry-trace"):"",c=a?xi("baggage"):"",{traceparentData:u,dynamicSamplingContext:d,propagationContext:l}=It(o,c),p=N(D(D({},e),u),{metadata:N(D({},e.metadata),{dynamicSamplingContext:u&&!d?{}:d}),trimEnd:!0}),h="function"==typeof n?n(p):p,_=void 0===h?N(D({},p),{sampled:!1}):h;_.metadata=_.name!==p.name?N(D({},_.metadata),{source:"custom"}):_.metadata,this._latestRouteName=_.name,this._latestRouteSource=_.metadata&&_.metadata.source,!1===_.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Will not send ${_.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.log(`[Tracing] Starting ${_.op} transaction on scope`);let{location:f}=zr,m=bn(t,_,r,i,!0,{location:f},s),g=t.getScope();return a&&u?g.setPropagationContext(l):g.setPropagationContext({traceId:m.traceId,spanId:m.spanId,parentSpanId:m.parentSpanId,sampled:m.sampled}),m.registerBeforeFinishCallback((e=>{this._collectWebVitals(),_i(e)})),m}_registerInteractionListener(){let e,t=()=>{let{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",s=un();if(s&&s.op&&["navigation","pageload"].includes(s.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.finish(),e=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&me.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`));let a=this._getCurrentHub(),{location:o}=zr,c={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};e=bn(a,c,t,n,!0,{location:o},r)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}};function xi(e){let t=function(e){return ue.document&&ue.document.querySelector?ue.document.querySelector(e):null}(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}var Ri={};Wn.Sentry&&Wn.Sentry.Integrations&&(Ri=Wn.Sentry.Integrations),D(D(D({},Ri),Ln),Fr);var wi="https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6",Di=null;function Ni(e,t){if(!1===e)return ki(e);if(Di)return ki(Di,t);let n=new ar({dsn:wi,transport:window.fetch?or:ur,stackParser:gr,integrations:[new Ur,new vr,new jr,new Lr,new Pr,new bi]});return ki(Di=new tn(n),t)}function ki(e,t={key:"source",value:"@hCaptcha/loader"}){return{addBreadcrumb:t=>{e&&e.addBreadcrumb(t)},captureMessage:n=>{e&&e.withScope((function(r){r.setTag(t.key,t.value),e.captureMessage(n)}))},captureException:n=>{e&&e.withScope((function(r){r.setTag(t.key,t.value),e.captureEvent({message:G,level:"error",extra:n})}))}}}var Ci=[];function Bi(e={cleanup:!0},t){try{t.addBreadcrumb({category:$,message:"hCaptcha loader params",data:e});let n=U(I(e.scriptLocation)),r=Ci.find((({scope:e})=>e===n.window));if(r)return t.addBreadcrumb({category:$,message:"hCaptcha already loaded"}),r.promise;let i=new Promise(((i,s)=>B(this,null,(function*(){try{n.window[Y]=()=>{t.addBreadcrumb({category:$,message:"hCaptcha script called onload function"}),i(n.window.hcaptcha)};let s=function(e){return Object.entries(e).filter((([,e])=>e||!1===e)).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(String(t))}`)).join("&")}({custom:e.custom,render:e.render,sentry:e.sentry,assethost:e.assethost,imghost:e.imghost,reportapi:e.reportapi,endpoint:e.endpoint,host:e.host,recaptchacompat:e.recaptchacompat,hl:e.hl});yield function({scriptLocation:e,query:t,loadAsync:n=!0,crossOrigin:r,apihost:i="https://js.hcaptcha.com",cleanup:s=!0,secureApi:a=!1,scriptSource:o=""}={}){let c=I(e),u=U(c);return new Promise(((e,d)=>{let l=u.document.createElement("script");l.id=O,l.src=o?`${o}?onload=${Y}`:a?`${i}/1/secure-api.js?onload=${Y}`:`${i}/1/api.js?onload=${Y}`,l.crossOrigin=r,l.async=n;let p=(e,t)=>{try{!a&&s&&c.removeChild(l),t(e)}catch(n){d(n)}};l.onload=t=>p(t,e),l.onerror=e=>p(e,d),l.src+=""!==t?`&${t}`:"",c.appendChild(l)}))}(D({query:s},e)),t.addBreadcrumb({category:$,message:"hCaptcha loaded",data:r})}catch(a){t.addBreadcrumb({category:$,message:"hCaptcha failed to load",data:a});let e=Ci.findIndex((e=>e.scope===n.window));-1!==e&&Ci.splice(e,1),t.captureException(a),s(new Error(G))}}))));return Ci.push({promise:i,scope:n.window}),i}catch(n){return t.captureException(n),Promise.reject(new Error(G))}}function Ui(e,t=0){return B(this,null,(function*(){let n=t<2?"Retry loading hCaptcha Api":"Exceeded maximum retries",r=Ni(e.sentry);try{return yield Bi(e,r)}catch(i){return r.addBreadcrumb({SENTRY_SOURCE:$,message:n,data:{error:i}}),t>=2?(r.captureException(i),Promise.reject(i)):Ui(e,t+=1)}}))}function Ii(){return B(this,arguments,(function*(e={}){return yield Ui(e)}))}function Oi(e){var t=e&&e.ownerDocument||document;return{document:t,window:t.defaultView||t.parentWindow||window}}function Yi(e){return e||document.head}var Gi={key:"source",value:"@hCaptcha/react"},$i="hCaptcha component mounted",ji="hCaptcha expired",Pi="hCaptcha component unmounted",Li="hCaptcha reset",Ai="hCaptcha removed",Mi=function(r){function i(e){var i;return(i=r.call(this,e)||this)._hcaptcha=void 0,i.renderCaptcha=i.renderCaptcha.bind(t(i)),i.resetCaptcha=i.resetCaptcha.bind(t(i)),i.removeCaptcha=i.removeCaptcha.bind(t(i)),i.isReady=i.isReady.bind(t(i)),i.loadCaptcha=i.loadCaptcha.bind(t(i)),i.handleOnLoad=i.handleOnLoad.bind(t(i)),i.handleSubmit=i.handleSubmit.bind(t(i)),i.handleExpire=i.handleExpire.bind(t(i)),i.handleError=i.handleError.bind(t(i)),i.handleOpen=i.handleOpen.bind(t(i)),i.handleClose=i.handleClose.bind(t(i)),i.handleChallengeExpired=i.handleChallengeExpired.bind(t(i)),i.ref=n.createRef(),i.apiScriptRequested=!1,i.sentryHub=null,i.state={isApiReady:!1,isRemoved:!1,elementId:e.id,captchaId:""},i}e(i,r);var s=i.prototype;return s.componentDidMount=function(){var e=this,t=Oi(Yi(this.props.scriptLocation));this._hcaptcha=t.window.hcaptcha||void 0;var n=void 0!==this._hcaptcha;this.sentryHub=Ni(this.props.sentry,Gi),this.sentryHub.addBreadcrumb({category:Gi.value,message:$i}),n?this.setState({isApiReady:!0},(function(){e.renderCaptcha()})):this.loadCaptcha()},s.componentWillUnmount=function(){var e=this.state.captchaId,t=this._hcaptcha;this.isReady()&&(t.reset(e),t.remove(e),this.sentryHub.addBreadcrumb({category:Gi.value,message:Pi}))},s.shouldComponentUpdate=function(e,t){return this.state.isApiReady===t.isApiReady&&this.state.isRemoved===t.isRemoved},s.componentDidUpdate=function(e){var t=this;["sitekey","size","theme","tabindex","languageOverride","endpoint"].every((function(n){return e[n]===t.props[n]}))||this.removeCaptcha((function(){t.renderCaptcha()}))},s.loadCaptcha=function(){if(!this.apiScriptRequested){var e=this.props,t=e.apihost,n=e.assethost,r=e.endpoint,i=e.host,s=e.imghost,a=e.languageOverride,o=e.reCaptchaCompat,c=e.reportapi,u=e.sentry,d=e.custom,l=e.loadAsync,p=e.scriptLocation,h=e.scriptSource,_=e.secureApi,f=e.cleanup;Ii({render:"explicit",apihost:t,assethost:n,endpoint:r,hl:a,host:i,imghost:s,recaptchacompat:!1===o?"off":null,reportapi:c,sentry:u,custom:d,loadAsync:l,scriptLocation:p,scriptSource:h,secureApi:_,cleanup:void 0===f||f}).then(this.handleOnLoad,this.handleError).catch(this.handleError),this.apiScriptRequested=!0}},s.renderCaptcha=function(e){if(this.state.isApiReady){var t=Object.assign({"open-callback":this.handleOpen,"close-callback":this.handleClose,"error-callback":this.handleError,"chalexpired-callback":this.handleChallengeExpired,"expired-callback":this.handleExpire,callback:this.handleSubmit},this.props,{hl:this.props.hl||this.props.languageOverride,languageOverride:void 0}),n=this._hcaptcha.render(this.ref.current,t);this.setState({isRemoved:!1,captchaId:n},(function(){e&&e()}))}},s.resetCaptcha=function(){var e=this.state.captchaId,t=this._hcaptcha;this.isReady()&&(t.reset(e),this.sentryHub.addBreadcrumb({category:Gi.value,message:Li}))},s.removeCaptcha=function(e){var t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(this.setState({isRemoved:!0},(function(){n.remove(t),e&&e()})),this.sentryHub.addBreadcrumb({category:Gi.value,message:Ai}))},s.handleOnLoad=function(){var e=this;this.setState({isApiReady:!0},(function(){try{var t=Oi(Yi(e.props.scriptLocation));e._hcaptcha=t.window.hcaptcha,e.renderCaptcha((function(){var t=e.props.onLoad;t&&t()}))}catch(n){e.sentryHub.captureException(n)}}))},s.handleSubmit=function(e){var t=this.props.onVerify,n=this.state,r=n.isRemoved,i=n.captchaId,s=this._hcaptcha;if(void 0!==s&&!r){var a=s.getResponse(i),o=s.getRespKey(i);t&&t(a,o)}},s.handleExpire=function(){var e=this.props.onExpire,t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(n.reset(t),e&&e(),this.sentryHub.addBreadcrumb({category:Gi.value,message:ji}))},s.handleError=function(e){var t=this.props.onError,n=this.state.captchaId,r=this._hcaptcha;this.isReady()&&r.reset(n),t&&t(e)},s.isReady=function(){var e=this.state,t=e.isApiReady,n=e.isRemoved;return t&&!n},s.handleOpen=function(){this.isReady()&&this.props.onOpen&&this.props.onOpen()},s.handleClose=function(){this.isReady()&&this.props.onClose&&this.props.onClose()},s.handleChallengeExpired=function(){this.isReady()&&this.props.onChalExpired&&this.props.onChalExpired()},s.execute=function(e){void 0===e&&(e=null);try{var t=this.state.captchaId,n=this._hcaptcha;if(!this.isReady())return;return e&&"object"!=typeof e&&(e=null),n.execute(t,e)}catch(r){this.sentryHub.captureException(r)}},s.setData=function(e){var t=this.state.captchaId,n=this._hcaptcha;this.isReady()&&(e&&"object"!=typeof e&&(e=null),n.setData(t,e))},s.getResponse=function(){return this._hcaptcha.getResponse(this.state.captchaId)},s.getRespKey=function(){return this._hcaptcha.getRespKey(this.state.captchaId)},s.render=function(){var e=this.state.elementId;return n.createElement("div",{ref:this.ref,id:e})},i}(n.Component);function Hi(){const{t:e}=r(),[t]=g.useForm(),[u,d]=n.useState(!1),[l,p]=n.useState(void 0),h=i(),_=s();return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"mb-4 text-2xl font-bold xl:text-3xl",children:e("sys.login.signInFormTitle")}),a.jsxs(g,{form:t,name:"login",size:"large",onFinish:async({password:e})=>{d(!0);try{await _({password:e,token:l})}finally{d(!1)}},children:[a.jsx(g.Item,{name:"password",rules:[{required:!0,message:e("sys.login.passwordPlaceholder")}],children:a.jsx(o.Password,{type:"password",placeholder:e("sys.login.password")})}),h&&a.jsx("div",{className:"flex flex-row justify-center",children:a.jsx(g.Item,{name:"token",children:a.jsx(Mi,{sitekey:h,onVerify:p})})}),a.jsx(g.Item,{children:a.jsx(c,{type:"primary",htmlType:"submit",className:"w-full",loading:u,children:e("sys.login.loginButton")})})]})]})}const{VITE_APP_HOMEPAGE:qi}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function Fi(){n.useEffect((()=>{document.title="Login"}),[]);const{t:e}=r(),t=u(),{colorBgElevated:i}=d();if(t.accessToken&&l(p.Token))return a.jsx(h,{to:qi,replace:!0});const s=_(i).alpha(.9).toString(),o=`linear-gradient(${s}, ${s}) center center / cover no-repeat,url(/admin/assets/overlay_2-613a921a.jpg)`;return a.jsxs(y,{className:"relative flex !min-h-screen !w-full !flex-row",children:[a.jsxs("div",{className:"hidden grow flex-col items-center justify-center gap-[80px] bg-center bg-no-repeat md:flex",style:{background:o},children:[a.jsx("div",{className:"text-3xl font-bold leading-normal lg:text-4xl xl:text-5xl",children:"PandoraNext Helper"}),a.jsx("img",{className:"max-w-[480px] xl:max-w-[560px]",src:"/admin/assets/dashboard-63c403eb.png",alt:""}),a.jsx(v.Text,{className:"flex flex-row gap-[16px] text-2xl",children:e("sys.login.signInSecondTitle")})]}),a.jsx("div",{className:"m-auto flex !h-screen w-full max-w-[480px] flex-col justify-center px-[16px] lg:px-[64px]",children:a.jsx(f,{children:a.jsx(Hi,{})})}),a.jsx("div",{className:"absolute right-2 top-0",children:a.jsx(m,{})})]})}export{Fi as default}; diff --git a/frontend/dist/assets/Page403-73ef0093.js b/frontend/dist/assets/Page403-73ef0093.js new file mode 100644 index 0000000..2d3f9f7 --- /dev/null +++ b/frontend/dist/assets/Page403-73ef0093.js @@ -0,0 +1 @@ +import{e,j as s,cz as c,cA as i,cB as a}from"./index-8bf8489d.js";import{M as l,v as r}from"./bounce-e10a9aae.js";import{T as t}from"./index-57131342.js";const{VITE_APP_HOMEPAGE:o}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function n(){const{colorBgBase:n,colorTextBase:d,colorPrimary:h,colorPrimaryActive:x,colorPrimaryTextActive:p,colorPrimaryHover:m}=e();return s.jsxs(s.Fragment,{children:[s.jsx(c,{children:s.jsx("title",{children:" 403 No Permission!"})}),s.jsx("div",{className:"m-auto max-w-[400px]",children:s.jsxs(l,{className:"flex flex-col items-center justify-center px-2",children:[s.jsx(i.div,{variants:r().in,children:s.jsx(t.Title,{level:3,className:"text-center",children:"No permission"})}),s.jsx(i.div,{variants:r().in,children:s.jsx(t.Paragraph,{type:"secondary",className:"text-center",children:"The page you are trying access has restricted access. Please refer to your system administrator"})}),s.jsx(i.div,{variants:r().in,children:s.jsxs("svg",{viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",width:400,height:400,className:"w-full",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[s.jsx("stop",{offset:"0%",stopColor:h}),s.jsx("stop",{offset:"100%",stopColor:h,stopOpacity:"0"})]})}),s.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),s.jsx("image",{href:"/admin/assets/character_4-9f255140.png",height:"300",x:"220",y:"30"}),s.jsx("path",{fill:h,d:"M425.545 119.2c0-5-4.6-9-9.6-8.2-2-3.7-6-6-10.2-5.9 4.3-21.4-30-21.4-25.7 0-8.7-.8-15.1 9.4-10.4 16.8 2.1 3.5 5.9 5.6 10 5.5h38.7v-.1c4.1-.4 7.2-3.9 7.2-8.1zm-321.3 81.8c.1-4.2-4.1-7.8-8.2-7-1.7-3.2-5.1-5.1-8.8-5 3.8-18.4-25.8-18.4-22 0-7.4-.7-12.9 8.1-8.9 14.4 1.8 3 5.1 4.8 8.6 4.7h33.2v-.1c3.4-.4 6.1-3.4 6.1-7z",opacity:"0.08"}),s.jsx("path",{fill:"#FFAB00",d:"M111.045 142.2c58.7-1 58.6-88.3 0-89.2-58.6 1-58.6 88.3 0 89.2z",opacity:"0.12"}),s.jsx("path",{fill:"#FFD666",d:"M111.045 121c30.8-.5 30.8-46.3 0-46.8-30.8.5-30.8 46.3 0 46.8z"}),s.jsx("path",{fill:"#FBCDBE",d:"M278.045 250.1c-4.6-6.5-14 5.1-18.1 7.2-.6-2.1 1.5-41.3-1.4-41.8-2.8-3-8.1-.7-8 3.3.2-4 .5-11.3-5.6-10.2-4.8.6-3.8 6.9-3.8 10.2.1-6.1-9.5-6.1-9.4 0v5.6c.2-4.2-5.7-6.4-8.3-3-2.6-.2-.4 41.8-1.1 43.3-.2 10 8.7 19 18.8 18.7 6.1.4 12.6-1.2 16.8-5.9l19.7-21c1.7-1.6 1.8-4.5.4-6.4z"}),s.jsx("path",{fill:"#000",fillOpacity:"0.24",fillRule:"evenodd",d:"M248.745 212.3v32.8h1.9v-31.9c.1-2.9-2.8-5.2-5.6-4.6 2 0 3.7 1.7 3.7 3.7zm-9.4 5.6v27.2h1.9v-26.3c.1-2.8-2.8-5.2-5.5-4.6 1.9 0 3.6 1.8 3.6 3.7zm-9.4 27.2v-21.6c.1-2-1.7-3.7-3.7-3.8 2.8-.6 5.6 1.8 5.5 4.6V245h-1.8v.1z",clipRule:"evenodd"}),s.jsx("path",{fill:p,d:"M244.945 189.8c-67.6 1.3-77 97-11 111.4 81 11.8 92.7-107.3 11-111.4zm-48.5 56.2c-1-40.4 49.8-63.8 79.9-36.9l-68.3 68.3c-7.5-8.7-11.6-19.9-11.6-31.4zm48.5 48.5c-11.5 0-22.7-4.1-31.4-11.6l68.3-68.3c27 30.1 3.5 80.9-36.9 79.9z"}),s.jsx("path",{fill:"url(#paint0_linear_1_129)",d:"M169.245 261h-11.3v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.8-1.4-17.1 4l-55 68.3c-2.7 3.3-1.8 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7h11.4c4.4 0 5.6-1.5 5.6-5.6-.3-4.8 2-13.8-5.6-12.9zm-30.8 0h-36l36-44.4V261zm263.9 12.1c1.9 44.8-78.7 46-78 1.2h19.3c-.8 15.3 18.3 21.4 30.1 15.5 12.7-6 12.3-29.1-1-34-5.6-2.8-16.6-2-23.1-2.1v-15.1c6.3-.2 17.6.9 22.7-2.3 11.6-5.5 11.9-25.4.9-31.4-10.8-5.9-29 .1-28.2 14.5h-19.4c-.5-28.1 35.4-38.5 57-28.2 23.4 9 24.1 45.5-.2 54.6 12.3 3.9 20.1 14.6 19.9 27.3z"}),s.jsx("defs",{children:s.jsxs("linearGradient",{id:"paint0_linear_1_129",x1:"78.245",x2:"78.245",y1:"187.309",y2:"307.306",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:m}),s.jsx("stop",{offset:"1",stopColor:x})]})})]})}),s.jsx(a,{to:o,style:{background:d,color:n},className:"rounded-md p-4",children:"Go to Home"})]})})]})}export{n as default}; diff --git a/frontend/dist/assets/Page404-2b9adb22.js b/frontend/dist/assets/Page404-2b9adb22.js new file mode 100644 index 0000000..70e5fa1 --- /dev/null +++ b/frontend/dist/assets/Page404-2b9adb22.js @@ -0,0 +1 @@ +import{e,j as s,cz as r,cA as c,cB as t}from"./index-8bf8489d.js";import{M as i,v as a}from"./bounce-e10a9aae.js";import{T as o}from"./index-57131342.js";const{VITE_APP_HOMEPAGE:l}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function n(){const{colorBgBase:n,colorTextBase:d,colorPrimary:x,colorPrimaryActive:h,colorPrimaryTextActive:p,colorPrimaryHover:m}=e();return s.jsxs(s.Fragment,{children:[s.jsx(r,{children:s.jsx("title",{children:" 404 Page Not Found!"})}),s.jsx("div",{className:"m-auto max-w-[400px]",children:s.jsxs(i,{className:"flex flex-col items-center justify-center px-2",children:[s.jsx(c.div,{variants:a().in,children:s.jsx(o.Title,{level:3,className:"text-center",children:"Sorry, Page Not Found!"})}),s.jsx(c.div,{variants:a().in,children:s.jsx(o.Paragraph,{type:"secondary",className:"text-center",children:"Sorry, we couldn’t find the page you’re looking for. Perhaps you’ve mistyped the URL? Be sure to check your spelling."})}),s.jsx(c.div,{variants:a().in,children:s.jsxs("svg",{viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",width:400,height:400,className:"w-full",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[s.jsx("stop",{offset:"0%",stopColor:x}),s.jsx("stop",{offset:"100%",stopColor:x,stopOpacity:"0"})]})}),s.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),s.jsx("image",{href:"/admin/assets/character_6-2c6258b6.png",height:"300",x:"205",y:"30"}),s.jsx("path",{fill:"#FFAB00",d:"M111.1 141.2c58.7-1 58.6-88.3 0-89.2-58.6 1-58.6 88.3 0 89.2z",opacity:"0.12"}),s.jsx("path",{fill:"#FFD666",d:"M111.1 120c30.8-.5 30.8-46.3 0-46.8-30.8.5-30.8 46.3 0 46.8z"}),s.jsx("path",{fill:p,d:"M244.9 182.5c82.3 1.4 82.2 123.8 0 125.2-82.3-1.5-82.3-123.8 0-125.2zm0 23.1c-51.8.9-51.8 77.9 0 78.8 51.8-.9 51.7-77.9 0-78.8z"}),s.jsx("path",{fill:"url(#paint0_linear_1_119)",d:"M175 265.6c1-8.7-12.1-4.8-17-5.6v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.8-1.4-17.1 4l-55 68.3c-2.7 3.3-1.8 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7c13.8-1.1 18.1 4.5 17.1-12.9zm-72.5-5.6l36-44.4V260h-36zm309.1 5.6c1-8.7-12.2-4.8-17.1-5.6v-66.6c0-4.5-1.5-5.6-5.6-5.6-5.3.3-13.7-1.4-17.1 4l-55 68.3c-2.7 3.3-1.9 8.8-2 12.8 0 4.1 1.5 5.6 5.6 5.6h54.7v21.7c-.9 7.9 9.1 5.2 13.7 5.6 4.1 0 5.6-1.5 5.6-5.6v-21.7c14.1-1.1 18.2 4.5 17.2-12.9zm-72.4-5.6l36-44.4V260h-36z"}),s.jsx("path",{fill:x,d:"M425.6 118.2c0-5-4.6-9-9.6-8.2-2-3.7-6-6-10.2-5.9 4.3-21.4-30-21.4-25.7 0-8.7-.8-15.1 9.4-10.4 16.8 2.1 3.5 5.9 5.6 10 5.5h38.7v-.1c4.1-.4 7.2-3.9 7.2-8.1zM104.3 200c.1-4.2-4.1-7.8-8.2-7-1.7-3.2-5.1-5.1-8.8-5 3.8-18.4-25.8-18.4-22 0-7.4-.7-12.9 8.1-8.9 14.4 1.8 3 5.1 4.8 8.6 4.7h33.2v-.1c3.4-.4 6.1-3.4 6.1-7z",opacity:"0.08"}),s.jsx("defs",{children:s.jsxs("linearGradient",{id:"paint0_linear_1_119",x1:"78.3",x2:"78.3",y1:"187.77",y2:"305.935",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:m}),s.jsx("stop",{offset:"1",stopColor:h})]})})]})}),s.jsx(t,{to:l,style:{background:d,color:n},className:"rounded-md p-4",children:"Go to Home"})]})})]})}export{n as default}; diff --git a/frontend/dist/assets/Page500-0841149d.js b/frontend/dist/assets/Page500-0841149d.js new file mode 100644 index 0000000..87960ff --- /dev/null +++ b/frontend/dist/assets/Page500-0841149d.js @@ -0,0 +1 @@ +import{e as c,j as s,cz as e,cA as l,cB as a}from"./index-8bf8489d.js";import{M as t,v as i}from"./bounce-e10a9aae.js";import{T as r}from"./index-57131342.js";const{VITE_APP_HOMEPAGE:h}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function n(){const{colorBgBase:n,colorTextBase:o,colorPrimary:d}=c();return s.jsxs(s.Fragment,{children:[s.jsx(e,{children:s.jsx("title",{children:" 500 Internal Server Error!"})}),s.jsx("div",{className:"m-auto max-w-[400px]",children:s.jsxs(t,{className:"flex flex-col items-center justify-center px-2",children:[s.jsx(l.div,{variants:i().in,children:s.jsx(r.Title,{level:3,className:"text-center",children:"500 Internal Server Error"})}),s.jsx(l.div,{variants:i().in,children:s.jsx(r.Paragraph,{type:"secondary",className:"text-center",children:"There was an error, please try again later."})}),s.jsx(l.div,{variants:i().in,children:s.jsxs("svg",{viewBox:"0 0 480 360",xmlns:"http://www.w3.org/2000/svg",width:400,height:400,className:"w-full",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[s.jsx("stop",{offset:"0%",stopColor:d}),s.jsx("stop",{offset:"100%",stopColor:d,stopOpacity:"0"})]})}),s.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),s.jsx("image",{href:"/admin/assets/character_8-ac2a088d.png",height:"300",x:"340",y:"30"}),s.jsx("path",{fill:d,d:"M292.4 266.4h-7.3v-.6h6.7v-59.6h-25.7V118h-23.6v-.6h24.2v88.2h25.7v60.8zM146 164.5h-.6v-21.1h16.5v-19h.6v19.7H146v20.4z"}),s.jsx("path",{fill:d,d:"M242.5 112.3c0 3.2-1.3 6.3-3.5 8.5-2.3 2.3-5.3 3.5-8.5 3.5h-82.9c-4.4.1-8.5-2.2-10.7-5.9-2.2-3.8-2.2-8.5 0-12.3 2.2-3.8 6.3-6.1 10.7-5.9h2.8c-2-7.2-.6-14.9 3.9-20.8s11.6-9.4 19-9.4h7c8.9 0 17 4.9 21.1 12.8 2-1 4.2-1.6 6.5-1.6h1.8c3.8 0 7.4 1.5 10.1 4.2 2.7 2.7 4.2 6.3 4.2 10.1v.7c0 1.3-.2 2.7-.6 3.9h6.9c6.8.2 12.2 5.6 12.2 12.2z",opacity:"0.08"}),s.jsx("path",{fill:"#fff",d:"M275.4 228.3v14c0 .8-.4 1.5-1.1 1.8-.3.2-.7.3-1.1.3-1.2 0-2.2-1-2.2-2.1v-14c0-4.7-3.5-8.6-8.1-9.1-.4 0-.7-.1-1.1-.1-5.1 0-9.2 4.1-9.2 9.2v14c0 .8-.4 1.5-1.1 1.8-.3.2-.7.3-1.1.3-1.2 0-2.2-1-2.2-2.2v-14c0-7.5 6.1-13.5 13.5-13.5.4 0 .7 0 1.1.1 7.2.6 12.6 6.4 12.6 13.5z"}),s.jsx("path",{fill:"#DFE3E8",d:"M275.4 228.3v14c.3.5.2 1.2-.3 1.6-.5.4-1.1.4-1.6 0s-.6-1.1-.3-1.6v-14c0-5.1-4.1-9.2-9.2-9.2-.4 0-.7 0-1.1.1-.4 0-.7-.1-1.1-.1-5.1 0-9.2 4.1-9.2 9.2v14c.3.5.2 1.2-.3 1.6-.5.4-1.1.4-1.6 0s-.6-1-.3-1.6v-14c-.4-4.7 1.9-9.2 5.9-11.7s9.1-2.5 13.1 0c4.1 2.4 6.4 7 6 11.7z"}),s.jsx("path",{fill:d,d:"M277.8 242.2h-33.2c-4 0-7.3 3.3-7.3 7.3v33.2c0 4 3.3 7.3 7.3 7.3h33.2c4 0 7.3-3.3 7.3-7.3v-33.2c0-4-3.3-7.3-7.3-7.3z"}),s.jsx("path",{fill:d,d:"M277.8 242.2h-24.9c-4 0-7.3 3.3-7.3 7.3v33.2c0 4 3.3 7.3 7.3 7.3h24.9c4 0 7.3-3.3 7.3-7.3v-33.2c0-4-3.3-7.3-7.3-7.3z"}),s.jsx("path",{fill:"url(#paint0_linear_1_140)",d:"M278 145h-22c-4.4 0-8 3.6-8 8v22.8c0 4.4 3.6 8 8 8h22c4.4 0 8-3.6 8-8V153c0-4.4-3.6-8-8-8z"}),s.jsx("path",{fill:d,d:"M126 129.7h-22.4c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H126c1.7 0 3-1.3 3-3v-32.8c0-1.7-1.4-3-3-3z",opacity:"0.08"}),s.jsx("path",{fill:"#fff",d:"M119.1 135.9H96.6c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H119c1.7 0 3-1.3 3-3v-32.8c.1-1.6-1.3-3-2.9-3z"}),s.jsx("path",{fill:d,d:"M119.1 135.9H96.6c-1.7 0-3 1.3-3 3v32.8c0 1.7 1.3 3 3 3H119c1.7 0 3-1.3 3-3v-32.8c.1-1.6-1.3-3-2.9-3z",opacity:"0.48"}),s.jsx("path",{fill:d,d:"M80 243.5c.2 2 .9 3.9 2 5.5 4.4 7.8 9.4 15.5 16.2 21.3 10.1 8.5 23.2 12.2 36 15.7-1.1-.6-2.5-6.4-3-7.7-1-2.5-1.9-5.1-2.8-7.6-1.5-4-4.6-7.2-7.7-10.2-6.9-6.7-15.3-11.6-24.5-14.4-5.3-1.7-10.8-2.6-16.2-2.6z"}),s.jsx("path",{fill:d,d:"M129.8 247.8c-1-7.3-2.1-14.6-5-21.4-2.9-6.7-8-12.9-14.9-15.4l-.6 31.2c-.1 6-.2 12.1 1.5 17.9 3 10.1 13.5 21.9 23.6 25.3 1.5-4.8-1-12.2-1.7-17.2l-2.9-20.4z"}),s.jsx("path",{fill:d,d:"M237.2 164H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm0 44H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm0 44.2H140c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h97.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4z"}),s.jsx("path",{fill:"url(#paint1_linear_1_140)",d:"M237.6 164h-91.2c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h91.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4zm8.4 53.6v16.8c0 2.5-1 5-2.9 6.8-1.9 1.8-4.4 2.8-7.1 2.8h-88c-2.7 0-5.2-1-7.1-2.8-1.9-1.8-2.9-4.2-2.9-6.8v-16.8c0-5.3 4.5-9.6 10-9.6h88c2.7 0 5.2 1 7.1 2.8 1.8 1.8 2.9 4.2 2.9 6.8zm-8.4 34.4h-91.2c-4.7 0-8.4 3.8-8.4 8.4v19.1c0 4.7 3.8 8.4 8.4 8.4h91.1c4.7 0 8.4-3.8 8.4-8.4v-19.1c.1-4.6-3.7-8.4-8.3-8.4z"}),s.jsx("path",{fill:d,d:"M161.6 182c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zM162 226c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm52-6h-30c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h30c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1zm-72 46c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm12 0c0 2.2-1.8 4-4 4s-4-1.8-4-4 1.8-4 4-4 4 1.8 4 4zm8 4c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm52-6h-30c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h30c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1z"}),s.jsx("path",{fill:d,d:"M264.4 267.7c.5-1.8-.8-3.7-1.2-5.5-.1-.3-.1-.7 0-1 .2-1.5 1.5-2.6 3-2.6s2.8 1.1 3 2.6c.1.3 0 .7 0 1-.3 1.8-1.6 3.8-1.1 5.6l.4 1.3c.5 1.5-.7 3.1-2.3 3.1-1.6 0-2.7-1.5-2.3-3l.5-1.5zM258 158.8l9.2-4.8 8.8 4.8s-1.6 11.8-8.6 15.2c0 0-8.6-3.3-9.4-15.2z"}),s.jsxs("defs",{children:[s.jsxs("linearGradient",{id:"paint0_linear_1_140",x1:"277.574",x2:"255.652",y1:"143.24",y2:"187.057",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:d}),s.jsx("stop",{offset:"1",stopColor:d})]}),s.jsxs("linearGradient",{id:"paint1_linear_1_140",x1:"138",x2:"138",y1:"164",y2:"287.9",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:d}),s.jsx("stop",{offset:"1",stopColor:d})]})]})]})}),s.jsx(a,{to:h,style:{background:o,color:n},className:"rounded-md p-4",children:"Go to Home"})]})})]})}export{n as default}; diff --git a/frontend/dist/assets/RobotOutlined-5230b30c.js b/frontend/dist/assets/RobotOutlined-5230b30c.js new file mode 100644 index 0000000..4a51e98 --- /dev/null +++ b/frontend/dist/assets/RobotOutlined-5230b30c.js @@ -0,0 +1,2 @@ +import{ac as c,r as t,A as a,n as e}from"./index-8bf8489d.js";function n(){const[a]=c();return t.useMemo((()=>a),[a])}const o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"};var r=function(c,n){return t.createElement(a,e({},c,{ref:n,icon:o}))}; +/**![robot](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMwMCAzMjhhNjAgNjAgMCAxMDEyMCAwIDYwIDYwIDAgMTAtMTIwIDB6TTg1MiA2NEgxNzJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjY2MGMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2ODBjMTcuNyAwIDMyLTE0LjMgMzItMzJWOTZjMC0xNy43LTE0LjMtMzItMzItMzJ6bS0zMiA2NjBIMjA0VjEyOGg2MTZ2NTk2ek02MDQgMzI4YTYwIDYwIDAgMTAxMjAgMCA2MCA2MCAwIDEwLTEyMCAwem0yNTAuMiA1NTZIMTY5LjhjLTE2LjUgMC0yOS44IDE0LjMtMjkuOCAzMnYzNmMwIDQuNCAzLjMgOCA3LjQgOGg3MjkuMWM0LjEgMCA3LjQtMy42IDcuNC04di0zNmMuMS0xNy43LTEzLjItMzItMjkuNy0zMnpNNjY0IDUwOEgzNjBjLTQuNCAwLTggMy42LTggOHY2MGMwIDQuNCAzLjYgOCA4IDhoMzA0YzQuNCAwIDgtMy42IDgtOHYtNjBjMC00LjQtMy42LTgtOC04eiIgLz48L3N2Zz4=) */const s=t.forwardRef(r);export{s as R,n as u}; diff --git a/frontend/dist/assets/ShareModal-20b6362a.js b/frontend/dist/assets/ShareModal-20b6362a.js new file mode 100644 index 0000000..932aae8 --- /dev/null +++ b/frontend/dist/assets/ShareModal-20b6362a.js @@ -0,0 +1,19 @@ +import{ad as e,r as t,h as n,R as r,ae as o,af as a,ag as i,ah as l,ai as c,aj as s,ak as u,al as d,am as f,n as p,an as m,ao as g,ap as h,aq as v,ar as b,as as y,at as x,au as C,av as S,aw as w,ax as k,ay as $,az as E,aA as N,aB as I,aC as M,o as O,aD as D,aE as R,k as P,aF as T,$ as H,aG as j,aH as B,aI as z,aJ as K,aK as L,aL as A,aM as F,aN as W,a0 as _,m as V,i as Y,aO as q,aP as X,ab as G,p as U,aQ as Q,aR as Z,aS as J,aT as ee,aU as te,aV as ne,aW as re,aX as oe,aY as ae,aZ as ie,a_ as le,a$ as ce,b0 as se,b1 as ue,b2 as de,b3 as fe,b4 as pe,b5 as me,b6 as ge,b7 as he,a8 as ve,a2 as be,s as ye,q as xe,b8 as Ce,b9 as Se,ba as we,bb as ke,bc as $e,bd as Ee,be as Ne,bf as Ie,bg as Me,bh as Oe,bi as De,bj as Re,bk as Pe,bl as Te,A as He,bm as je,bn as Be,bo as ze,bp as Ke,bq as Le,br as Ae,bs as Fe,bt as We,bu as _e,B as Ve,bv as Ye,bw as qe,bx as Xe,by as Ge,bz as Ue,bA as Qe,bB as Ze,bC as Je,bD as et,bE as tt,bF as nt,bG as rt,bH as ot,bI as at,bJ as it,bK as lt,bL as ct,bM as st,bN as ut,bO as dt,bP as ft,bQ as pt,bR as mt,bS as gt,a as ht,bT as vt,bU as bt,bV as yt,a3 as xt,bW as Ct,Y as St,bX as wt,I as kt,bY as $t,bZ as Et,b_ as Nt,t as It,a6 as Mt,aa as Ot,a4 as Dt,a5 as Rt,j as Pt,W as Tt,u as Ht,P as jt}from"./index-8bf8489d.js";import{C as Bt,i as zt,o as Kt}from"./index-57131342.js";import{F as Lt}from"./index-83bdf3a0.js";import{R as At,C as Ft}from"./row-b45105b9.js";function Wt(e){return null!=e&&e===e.window}function _t(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:r=(()=>window),callback:o,duration:a=450}=n,i=r(),l=function(e,t){var n,r;if("undefined"==typeof window)return 0;const o=t?"scrollTop":"scrollLeft";let a=0;return Wt(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:(e instanceof HTMLElement||e)&&(a=e[o]),e&&!Wt(e)&&"number"!=typeof a&&(a=null===(r=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===r?void 0:r[o]),a}(i,!0),c=Date.now(),s=()=>{const n=Date.now()-c,r=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(n>a?a:n,l,t,a);Wt(i)?i.scrollTo(window.pageXOffset,r):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=r:i.scrollTop=r,n0&&void 0!==arguments[0]?arguments[0]:250,n=t.useRef(null),r=t.useRef(null);return t.useEffect((function(){return function(){window.clearTimeout(r.current)}}),[]),[function(){return n.current},function(t){(t||null===n.current)&&(n.current=t),window.clearTimeout(r.current),r.current=window.setTimeout((function(){n.current=null}),e)}]}var Xt=function(e,r){var o,a=e.prefixCls,i=e.id,u=e.inputElement,d=e.disabled,f=e.tabIndex,p=e.autoFocus,m=e.autoComplete,g=e.editable,h=e.activeDescendantId,v=e.value,b=e.maxLength,y=e.onKeyDown,x=e.onMouseDown,C=e.onChange,S=e.onPaste,w=e.onCompositionStart,k=e.onCompositionEnd,$=e.open,E=e.attrs,N=u||t.createElement("input",null),I=N,M=I.ref,O=I.props,D=O.onKeyDown,R=O.onChange,P=O.onMouseDown,T=O.onCompositionStart,H=O.onCompositionEnd,j=O.style;return l(!("maxLength"in N.props)),N=t.cloneElement(N,c(c(c({type:"search"},O),{},{id:i,ref:s(r,M),disabled:d,tabIndex:f,autoComplete:m||"off",autoFocus:p,className:n("".concat(a,"-selection-search-input"),null===(o=N)||void 0===o||null===(o=o.props)||void 0===o?void 0:o.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":$?h:void 0},E),{},{value:g?v:"",maxLength:b,readOnly:!g,unselectable:g?null:"on",style:c(c({},j),{},{opacity:g?null:0}),onKeyDown:function(e){y(e),D&&D(e)},onMouseDown:function(e){x(e),P&&P(e)},onChange:function(e){C(e),R&&R(e)},onCompositionStart:function(e){w(e),T&&T(e)},onCompositionEnd:function(e){k(e),H&&H(e)},onPaste:S}))},Gt=t.forwardRef(Xt);function Ut(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Qt="undefined"!=typeof window&&window.document&&window.document.documentElement;function Zt(e){return["string","number"].includes(o(e))}function Jt(e){var t=void 0;return e&&(Zt(e.title)?t=e.title.toString():Zt(e.label)&&(t=e.label.toString())),t}function en(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var tn=function(e){e.preventDefault(),e.stopPropagation()},nn=function(e){var r,o,i=e.id,l=e.prefixCls,c=e.values,s=e.open,p=e.searchValue,m=e.autoClearSearchValue,g=e.inputRef,h=e.placeholder,v=e.disabled,b=e.mode,y=e.showSearch,x=e.autoFocus,C=e.autoComplete,S=e.activeDescendantId,w=e.tabIndex,k=e.removeIcon,$=e.maxTagCount,E=e.maxTagTextLength,N=e.maxTagPlaceholder,I=void 0===N?function(e){return"+ ".concat(e.length," ...")}:N,M=e.tagRender,O=e.onToggleOpen,D=e.onRemove,R=e.onInputChange,P=e.onInputPaste,T=e.onInputKeyDown,H=e.onInputMouseDown,j=e.onInputCompositionStart,B=e.onInputCompositionEnd,z=t.useRef(null),K=t.useState(0),L=a(K,2),A=L[0],F=L[1],W=t.useState(!1),_=a(W,2),V=_[0],Y=_[1],q="".concat(l,"-selection"),X=s||"multiple"===b&&!1===m||"tags"===b?p:"",G="tags"===b||"multiple"===b&&!1===m||y&&(s||V);r=function(){F(z.current.scrollWidth)},o=[X],Qt?t.useLayoutEffect(r,o):t.useEffect(r,o);var U=function(e,r,o,a,i){return t.createElement("span",{title:Jt(e),className:n("".concat(q,"-item"),f({},"".concat(q,"-item-disabled"),o))},t.createElement("span",{className:"".concat(q,"-item-content")},r),a&&t.createElement(Vt,{className:"".concat(q,"-item-remove"),onMouseDown:tn,onClick:i,customizeIcon:k},"×"))},Q=t.createElement("div",{className:"".concat(q,"-search"),style:{width:A},onFocus:function(){Y(!0)},onBlur:function(){Y(!1)}},t.createElement(Gt,{ref:g,open:s,prefixCls:l,id:i,inputElement:null,disabled:v,autoFocus:x,autoComplete:C,editable:G,activeDescendantId:S,value:X,onKeyDown:T,onMouseDown:H,onChange:R,onPaste:P,onCompositionStart:j,onCompositionEnd:B,tabIndex:w,attrs:u(e,!0)}),t.createElement("span",{ref:z,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},X," ")),Z=t.createElement(d,{prefixCls:"".concat(q,"-overflow"),data:c,renderItem:function(e){var n=e.disabled,r=e.label,o=e.value,a=!v&&!n,i=r;if("number"==typeof E&&("string"==typeof r||"number"==typeof r)){var l=String(i);l.length>E&&(i="".concat(l.slice(0,E),"..."))}var c=function(t){t&&t.stopPropagation(),D(e)};return"function"==typeof M?function(e,n,r,o,a){return t.createElement("span",{onMouseDown:function(e){tn(e),O(!s)}},M({label:n,value:e,disabled:r,closable:o,onClose:a}))}(o,i,n,a,c):U(e,i,n,a,c)},renderRest:function(e){var t="function"==typeof I?I(e):I;return U({title:t},t,!1)},suffix:Q,itemKey:en,maxCount:$});return t.createElement(t.Fragment,null,Z,!c.length&&!X&&t.createElement("span",{className:"".concat(q,"-placeholder")},h))},rn=function(e){var n=e.inputElement,r=e.prefixCls,o=e.id,i=e.inputRef,l=e.disabled,c=e.autoFocus,s=e.autoComplete,d=e.activeDescendantId,f=e.mode,p=e.open,m=e.values,g=e.placeholder,h=e.tabIndex,v=e.showSearch,b=e.searchValue,y=e.activeValue,x=e.maxLength,C=e.onInputKeyDown,S=e.onInputMouseDown,w=e.onInputChange,k=e.onInputPaste,$=e.onInputCompositionStart,E=e.onInputCompositionEnd,N=e.title,I=t.useState(!1),M=a(I,2),O=M[0],D=M[1],R="combobox"===f,P=R||v,T=m[0],H=b||"";R&&y&&!O&&(H=y),t.useEffect((function(){R&&D(!1)}),[R,y]);var j=!("combobox"!==f&&!p&&!v)&&!!H,B=void 0===N?Jt(T):N,z=t.useMemo((function(){return T?null:t.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},g)}),[T,j,g,r]);return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(r,"-selection-search")},t.createElement(Gt,{ref:i,prefixCls:r,id:o,open:p,inputElement:n,disabled:l,autoFocus:c,autoComplete:s,editable:P,activeDescendantId:d,value:H,onKeyDown:C,onMouseDown:S,onChange:function(e){D(!0),w(e)},onPaste:k,onCompositionStart:$,onCompositionEnd:E,tabIndex:h,attrs:u(e,!0),maxLength:R?x:void 0})),!R&&T?t.createElement("span",{className:"".concat(r,"-selection-item"),title:B,style:j?{visibility:"hidden"}:void 0},T.label):null,z)},on=function(e,n){var r=t.useRef(null),o=t.useRef(!1),l=e.prefixCls,c=e.open,s=e.mode,u=e.showSearch,d=e.tokenWithEnter,f=e.autoClearSearchValue,m=e.onSearch,g=e.onSearchSubmit,h=e.onToggleOpen,v=e.onInputKeyDown,b=e.domRef;t.useImperativeHandle(n,(function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}}));var y=qt(0),x=a(y,2),C=x[0],S=x[1],w=t.useRef(null),k=function(e){!1!==m(e,!0,o.current)&&h(!0)},$={inputRef:r,onInputKeyDown:function(e){var t,n=e.which;n!==i.UP&&n!==i.DOWN||e.preventDefault(),v&&v(e),n!==i.ENTER||"tags"!==s||o.current||c||null==g||g(e.target.value),t=n,[i.ESC,i.SHIFT,i.BACKSPACE,i.TAB,i.WIN_KEY,i.ALT,i.META,i.WIN_KEY_RIGHT,i.CTRL,i.SEMICOLON,i.EQUALS,i.CAPS_LOCK,i.CONTEXT_MENU,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12].includes(t)||h(!0)},onInputMouseDown:function(){S(!0)},onInputChange:function(e){var t=e.target.value;if(d&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==s&&k(e.target.value)}},E="multiple"===s||"tags"===s?t.createElement(nn,p({},e,$)):t.createElement(rn,p({},e,$));return t.createElement("div",{ref:b,className:"".concat(l,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){r.current.focus()})):r.current.focus())},onMouseDown:function(e){var t=C();e.target===r.current||t||"combobox"===s||e.preventDefault(),("combobox"===s||u&&t)&&c||(c&&!1!==f&&m("",!0,!1),h())}},E)},an=t.forwardRef(on),ln=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],cn=function(e,r){var o=e.prefixCls;e.disabled;var a=e.visible,i=e.children,l=e.popupElement,s=e.animation,u=e.transitionName,d=e.dropdownStyle,h=e.dropdownClassName,v=e.direction,b=void 0===v?"ltr":v,y=e.placement,x=e.builtinPlacements,C=e.dropdownMatchSelectWidth,S=e.dropdownRender,w=e.dropdownAlign,k=e.getPopupContainer,$=e.empty,E=e.getTriggerDOMNode,N=e.onPopupVisibleChange,I=e.onPopupMouseEnter,M=m(e,ln),O="".concat(o,"-dropdown"),D=l;S&&(D=S(l));var R=t.useMemo((function(){return x||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(C)}),[x,C]),P=s?"".concat(O,"-").concat(s):u,T="number"==typeof C,H=t.useMemo((function(){return T?null:!1===C?"minWidth":"width"}),[C,T]),j=d;T&&(j=c(c({},j),{},{width:C}));var B=t.useRef(null);return t.useImperativeHandle(r,(function(){return{getPopupElement:function(){var e;return null===(e=B.current)||void 0===e?void 0:e.popupElement}}})),t.createElement(g,p({},M,{showAction:N?["click"]:[],hideAction:N?["click"]:[],popupPlacement:y||("rtl"===b?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:O,popupTransitionName:P,popup:t.createElement("div",{onMouseEnter:I},D),ref:B,stretch:H,popupAlign:w,popupVisible:a,getPopupContainer:k,popupClassName:n(h,f({},"".concat(O,"-empty"),$)),popupStyle:j,getTriggerDOMNode:E,onPopupVisibleChange:N}),i)},sn=t.forwardRef(cn);function un(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function dn(e){return void 0!==e&&!Number.isNaN(e)}function fn(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function pn(e){var t=c({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return h(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var mn=t.createContext(null),gn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],hn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],vn=function(e){return"tags"===e||"multiple"===e},bn=t.forwardRef((function(e,l){var s,u=e.id,d=e.prefixCls,g=e.className,h=e.showSearch,w=e.tagRender,k=e.direction,$=e.omitDomProps,E=e.displayValues,N=e.onDisplayValuesChange,I=e.emptyOptions,M=e.notFoundContent,O=void 0===M?"Not Found":M,D=e.onClear,R=e.mode,P=e.disabled,T=e.loading,H=e.getInputElement,j=e.getRawInputElement,B=e.open,z=e.defaultOpen,K=e.onDropdownVisibleChange,L=e.activeValue,A=e.onActiveValueChange,F=e.activeDescendantId,W=e.searchValue,_=e.autoClearSearchValue,V=e.onSearch,Y=e.onSearchSplit,q=e.tokenSeparators,X=e.allowClear,G=e.suffixIcon,U=e.clearIcon,Q=e.OptionList,Z=e.animation,J=e.transitionName,ee=e.dropdownStyle,te=e.dropdownClassName,ne=e.dropdownMatchSelectWidth,re=e.dropdownRender,oe=e.dropdownAlign,ae=e.placement,ie=e.builtinPlacements,le=e.getPopupContainer,ce=e.showAction,se=void 0===ce?[]:ce,ue=e.onFocus,de=e.onBlur,fe=e.onKeyUp,pe=e.onKeyDown,me=e.onMouseDown,ge=m(e,gn),he=vn(R),ve=(void 0!==h?h:he)||"combobox"===R,be=c({},ge);hn.forEach((function(e){delete be[e]})),null==$||$.forEach((function(e){delete be[e]}));var ye=t.useState(!1),xe=a(ye,2),Ce=xe[0],Se=xe[1];t.useEffect((function(){Se(y())}),[]);var we=t.useRef(null),ke=t.useRef(null),$e=t.useRef(null),Ee=t.useRef(null),Ne=t.useRef(null),Ie=t.useRef(!1),Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=t.useState(!1),r=a(n,2),o=r[0],i=r[1],l=t.useRef(null),c=function(){window.clearTimeout(l.current)};return t.useEffect((function(){return c}),[]),[o,function(t,n){c(),l.current=window.setTimeout((function(){i(t),n&&n()}),e)},c]}(),Oe=a(Me,3),De=Oe[0],Re=Oe[1],Pe=Oe[2];t.useImperativeHandle(l,(function(){var e,t;return{focus:null===(e=Ee.current)||void 0===e?void 0:e.focus,blur:null===(t=Ee.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Ne.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Te=t.useMemo((function(){var e;if("combobox"!==R)return W;var t=null===(e=E[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[W,R,E]),He="combobox"===R&&"function"==typeof H&&H()||null,je="function"==typeof j&&j(),Be=x(ke,null==je||null===(s=je.props)||void 0===s?void 0:s.ref),ze=t.useState(!1),Ke=a(ze,2),Le=Ke[0],Ae=Ke[1];C((function(){Ae(!0)}),[]);var Fe=S(!1,{defaultValue:z,value:B}),We=a(Fe,2),_e=We[0],Ve=We[1],Ye=!!Le&&_e,qe=!O&&I;(P||qe&&Ye&&"combobox"===R)&&(Ye=!1);var Xe=!qe&&Ye,Ge=t.useCallback((function(e){var t=void 0!==e?e:!Ye;P||(Ve(t),Ye!==t&&(null==K||K(t)))}),[P,Ye,Ve,K]),Ue=t.useMemo((function(){return(q||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[q]),Qe=t.useContext(mn)||{},Ze=Qe.maxCount,Je=Qe.rawValues,et=function(e,t,n){if(!(he&&dn(Ze)&&(null==Je?void 0:Je.size)>=Ze)){var r=!0,o=e;null==A||A(null);var a=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=v(n),a=o[0],i=o.slice(1);if(!a)return[t];var l=t.split(a);return r=r||l.length>1,l.reduce((function(t,n){return[].concat(b(t),b(e(n,i)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,q,dn(Ze)?Ze-Je.size:void 0),i=n?null:a;return"combobox"!==R&&i&&(o="",null==Y||Y(i),Ge(!1),r=!1),V&&Te!==o&&V(o,{source:t?"typing":"effect"}),r}};t.useEffect((function(){Ye||he||"combobox"===R||et("",!1,!1)}),[Ye]),t.useEffect((function(){_e&&P&&Ve(!1),P&&!Ie.current&&Re(!1)}),[P]);var tt=qt(),nt=a(tt,2),rt=nt[0],ot=nt[1],at=t.useRef(!1),it=[];t.useEffect((function(){return function(){it.forEach((function(e){return clearTimeout(e)})),it.splice(0,it.length)}}),[]);var lt,ct=t.useState({}),st=a(ct,2)[1];je&&(lt=function(e){Ge(e)}),function(e,n,r,o){var a=t.useRef(null);a.current={open:n,triggerOpen:r,customizedTrigger:o},t.useEffect((function(){function t(t){var n;if(null===(n=a.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),a.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[we.current,null===(e=$e.current)||void 0===e?void 0:e.getPopupElement()]}),Xe,Ge,!!je);var ut,dt=t.useMemo((function(){return c(c({},e),{},{notFoundContent:O,open:Ye,triggerOpen:Xe,id:u,showSearch:ve,multiple:he,toggleOpen:Ge})}),[e,O,Xe,Ye,u,ve,he,Ge]),ft=!!G||T;ft&&(ut=t.createElement(Vt,{className:n("".concat(d,"-arrow"),f({},"".concat(d,"-arrow-loading"),T)),customizeIcon:G,customizeIconProps:{loading:T,searchValue:Te,open:Ye,focused:De,showSearch:ve}}));var pt,mt=function(e,t,n,a,i){var l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=r.useMemo((function(){return"object"===o(a)?a.clearIcon:i||void 0}),[a,i]);return{allowClear:r.useMemo((function(){return!(l||!a||!n.length&&!c||"combobox"===s&&""===c)}),[a,l,n.length,c,s]),clearIcon:r.createElement(Vt,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:u},"×")}}(d,(function(){var e;null==D||D(),null===(e=Ee.current)||void 0===e||e.focus(),N([],{type:"clear",values:E}),et("",!1,!1)}),E,X,U,P,Te,R),gt=mt.allowClear,ht=mt.clearIcon,vt=t.createElement(Q,{ref:Ne}),bt=n(d,g,f(f(f(f(f(f(f(f(f(f({},"".concat(d,"-focused"),De),"".concat(d,"-multiple"),he),"".concat(d,"-single"),!he),"".concat(d,"-allow-clear"),X),"".concat(d,"-show-arrow"),ft),"".concat(d,"-disabled"),P),"".concat(d,"-loading"),T),"".concat(d,"-open"),Ye),"".concat(d,"-customize-input"),He),"".concat(d,"-show-search"),ve)),yt=t.createElement(sn,{ref:$e,disabled:P,prefixCls:d,visible:Xe,popupElement:vt,animation:Z,transitionName:J,dropdownStyle:ee,dropdownClassName:te,direction:k,dropdownMatchSelectWidth:ne,dropdownRender:re,dropdownAlign:oe,placement:ae,builtinPlacements:ie,getPopupContainer:le,empty:I,getTriggerDOMNode:function(){return ke.current},onPopupVisibleChange:lt,onPopupMouseEnter:function(){st({})}},je?t.cloneElement(je,{ref:Be}):t.createElement(an,p({},e,{domRef:ke,prefixCls:d,inputElement:He,ref:Ee,id:u,showSearch:ve,autoClearSearchValue:_,mode:R,activeDescendantId:F,tagRender:w,values:E,open:Ye,onToggleOpen:Ge,activeValue:L,searchValue:Te,onSearch:et,onSearchSubmit:function(e){e&&e.trim()&&V(e,{source:"submit"})},onRemove:function(e){var t=E.filter((function(t){return t!==e}));N(t,{type:"remove",values:[e]})},tokenWithEnter:Ue})));return pt=je?yt:t.createElement("div",p({className:bt},be,{ref:we,onMouseDown:function(e){var t,n=e.target,r=null===(t=$e.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=it.indexOf(o);-1!==t&&it.splice(t,1),Pe(),Ce||r.contains(document.activeElement)||null===(e=Ee.current)||void 0===e||e.focus()}));it.push(o)}for(var a=arguments.length,i=new Array(a>1?a-1:0),l=1;l=0;l-=1){var c=o[l];if(!c.disabled){o.splice(l,1),a=c;break}}a&&N(o,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d1?t-1:0),r=1;r1&&void 0!==arguments[1]&&arguments[1],n=e<0&&a.current.top||e>0&&a.current.bottom;return t&&n?(clearTimeout(o.current),r.current=!1):n&&!r.current||(clearTimeout(o.current),r.current=!0,o.current=setTimeout((function(){r.current=!1}),50)),!r.current&&n}};function On(n,r,o,a,i){var l=t.useRef(0),c=t.useRef(null),s=t.useRef(null),u=t.useRef(!1),d=Mn(r,o);var f=t.useRef(null),p=t.useRef(null);return[function(t){if(n){e.cancel(p.current),p.current=e((function(){f.current=null}),2);var r=t.deltaX,o=t.deltaY,m=t.shiftKey,g=r,h=o;("sx"===f.current||!f.current&&m&&o&&!r)&&(g=o,h=0,f.current="sx");var v=Math.abs(g),b=Math.abs(h);null===f.current&&(f.current=a&&v>b?"x":"y"),"y"===f.current?function(t,n){e.cancel(c.current),l.current+=n,s.current=n,d(n)||(In||t.preventDefault(),c.current=e((function(){var e=u.current?10:1;i(l.current*e),l.current=0})))}(t,h):function(e,t){i(t,!0),In||e.preventDefault()}(t,g)}},function(e){n&&(u.current=e.detail===s.current)}]}var Dn=14/15;var Rn=20;function Pn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,Rn),Math.floor(t)}var Tn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Hn=[],jn={overflowY:"auto",overflowAnchor:"none"};function Bn(r,i){var l=r.prefixCls,s=void 0===l?"rc-virtual-list":l,u=r.className,d=r.height,g=r.itemHeight,h=r.fullHeight,v=void 0===h||h,b=r.style,y=r.data,x=r.children,S=r.itemKey,k=r.virtual,$=r.direction,M=r.scrollWidth,O=r.component,D=void 0===O?"div":O,R=r.onScroll,P=r.onVirtualScroll,T=r.onVisibleChange,H=r.innerProps,j=r.extraRender,B=r.styles,z=m(r,Tn),K=t.useCallback((function(e){return"function"==typeof S?S(e):null==e?void 0:e[S]}),[S]),L=function(n,r,o){var i=t.useState(0),l=a(i,2),c=l[0],s=l[1],u=t.useRef(new Map),d=t.useRef(new $n),f=t.useRef();function p(){e.cancel(f.current)}function m(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p();var n=function(){u.current.forEach((function(e,t){if(e&&e.offsetParent){var n=E(e),r=n.offsetHeight;d.current.get(t)!==r&&d.current.set(t,n.offsetHeight)}})),s((function(e){return e+1}))};t?n():f.current=e(n)}return t.useEffect((function(){return p}),[]),[function(e,t){var a=n(e),i=u.current.get(a);t?(u.current.set(a,t),m()):u.current.delete(a),!i!=!t&&(t?null==r||r(e):null==o||o(e))},m,d.current,c]}(K,null,null),A=a(L,4),F=A[0],W=A[1],_=A[2],V=A[3],Y=!(!1===k||!d||!g),q=t.useMemo((function(){return Object.values(_.maps).reduce((function(e,t){return e+t}),0)}),[_.id,_.maps]),X=Y&&y&&(Math.max(g*y.length,q)>d||!!M),G="rtl"===$,U=n(s,f({},"".concat(s,"-rtl"),G),u),Q=y||Hn,Z=t.useRef(),J=t.useRef(),ee=t.useState(0),te=a(ee,2),ne=te[0],re=te[1],oe=t.useState(0),ae=a(oe,2),ie=ae[0],le=ae[1],ce=t.useState(!1),se=a(ce,2),ue=se[0],de=se[1],fe=function(){de(!0)},pe=function(){de(!1)},me={getKey:K};function ge(e){re((function(t){var n=function(e){var t=e;Number.isNaN(Te.current)||(t=Math.min(t,Te.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return Z.current.scrollTop=n,n}))}var he=t.useRef({start:0,end:Q.length}),ve=t.useRef(),be=Nn(Q,K),ye=a(be,1)[0];ve.current=ye;var xe=t.useMemo((function(){if(!Y)return{scrollHeight:void 0,start:0,end:Q.length-1,offset:void 0};var e;if(!X)return{scrollHeight:(null===(e=J.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:Q.length-1,offset:void 0};for(var t,n,r,o=0,a=Q.length,i=0;i=ne&&void 0===t&&(t=i,n=o),u>ne+d&&void 0===r&&(r=i),o=u}return void 0===t&&(t=0,n=0,r=Math.ceil(d/g)),void 0===r&&(r=Q.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,Q.length-1),offset:n}}),[X,Y,ne,Q,V,d]),Ce=xe.scrollHeight,Se=xe.start,we=xe.end,ke=xe.offset;he.current.start=Se,he.current.end=we;var $e=t.useState({width:0,height:d}),Ee=a($e,2),Ne=Ee[0],Ie=Ee[1],Me=t.useRef(),Oe=t.useRef(),De=t.useMemo((function(){return Pn(Ne.width,M)}),[Ne.width,M]),Re=t.useMemo((function(){return Pn(Ne.height,Ce)}),[Ne.height,Ce]),Pe=Ce-d,Te=t.useRef(Pe);Te.current=Pe;var He=ne<=0,je=ne>=Pe,Be=Mn(He,je),ze=function(){return{x:G?-ie:ie,y:ne}},Ke=t.useRef(ze()),Le=N((function(){if(P){var e=ze();Ke.current.x===e.x&&Ke.current.y===e.y||(P(e),Ke.current=e)}}));function Ae(e,t){var n=e;t?(I.flushSync((function(){le(n)})),Le()):ge(n)}var Fe=function(e){var t=e,n=M?M-Ne.width:0;return t=Math.max(t,0),t=Math.min(t,n)},We=N((function(e,t){t?(I.flushSync((function(){le((function(t){return Fe(t+(G?-e:e))}))})),Le()):ge((function(t){return t+e}))})),_e=On(Y,He,je,!!M,We),Ve=a(_e,2),Ye=Ve[0],qe=Ve[1];!function(e,n,r){var o,a=t.useRef(!1),i=t.useRef(0),l=t.useRef(null),c=t.useRef(null),s=function(e){if(a.current){var t=Math.ceil(e.touches[0].pageY),n=i.current-t;i.current=t,r(n)&&e.preventDefault(),clearInterval(c.current),c.current=setInterval((function(){(!r(n*=Dn,!0)||Math.abs(n)<=.1)&&clearInterval(c.current)}),16)}},u=function(){a.current=!1,o()},d=function(e){o(),1!==e.touches.length||a.current||(a.current=!0,i.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",s),l.current.addEventListener("touchend",u))};o=function(){l.current&&(l.current.removeEventListener("touchmove",s),l.current.removeEventListener("touchend",u))},C((function(){return e&&n.current.addEventListener("touchstart",d),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",d),o(),clearInterval(c.current)}}),[e])}(Y,Z,(function(e,t){return!Be(e,t)&&(Ye({preventDefault:function(){},deltaY:e}),!0)})),C((function(){function e(e){Y&&e.preventDefault()}var t=Z.current;return t.addEventListener("wheel",Ye),t.addEventListener("DOMMouseScroll",qe),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Ye),t.removeEventListener("DOMMouseScroll",qe),t.removeEventListener("MozMousePixelScroll",e)}}),[Y]),C((function(){M&&le((function(e){return Fe(e)}))}),[Ne.width,M]);var Xe=function(){var e,t;null===(e=Me.current)||void 0===e||e.delayHidden(),null===(t=Oe.current)||void 0===t||t.delayHidden()},Ge=function(n,r,i,l,s,u,d,f){var p=t.useRef(),m=t.useState(null),g=a(m,2),h=g[0],v=g[1];return C((function(){if(h&&h.times=0;N-=1){var I=s(r[N]),M=i.get(I);if(void 0===M){p=!0;break}if((E-=M)<=0)break}switch(b){case"top":g=x-a;break;case"bottom":g=C-f+a;break;default:var O=n.current.scrollTop;xO+f&&(m="bottom")}null!==g&&d(g),g!==h.lastTop&&(p=!0)}p&&v(c(c({},h),{},{times:h.times+1,targetAlign:m,lastTop:g}))}}),[h,n.current]),function(t){if(null!=t){if(e.cancel(p.current),"number"==typeof t)d(t);else if(t&&"object"===o(t)){var n,a=t.align;n="index"in t?t.index:r.findIndex((function(e){return s(e)===t.key}));var i=t.offset;v({times:0,index:n,offset:void 0===i?0:i,originAlign:a})}}else f()}}(Z,Q,_,g,K,(function(){return W(!0)}),ge,Xe);t.useImperativeHandle(i,(function(){return{getScrollInfo:ze,scrollTo:function(e){var t;(t=e)&&"object"===o(t)&&("left"in t||"top"in t)?(void 0!==e.left&&le(Fe(e.left)),Ge(e.top)):Ge(e)}}})),C((function(){if(T){var e=Q.slice(Se,we+1);T(e,Q)}}),[Se,we,Q]);var Ue=function(e,n,r,o){var i=t.useMemo((function(){return[new Map,[]]}),[e,r.id,o]),l=a(i,2),c=l[0],s=l[1];return function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=c.get(t),l=c.get(a);if(void 0===i||void 0===l)for(var u=e.length,d=s.length;dd&&t.createElement(wn,{ref:Me,prefixCls:s,scrollOffset:ne,scrollRange:Ce,rtl:G,onScroll:Ae,onStartMove:fe,onStopMove:pe,spinSize:Re,containerSize:Ne.height,style:null==B?void 0:B.verticalScrollBar,thumbStyle:null==B?void 0:B.verticalScrollBarThumb}),X&&M>Ne.width&&t.createElement(wn,{ref:Oe,prefixCls:s,scrollOffset:ie,scrollRange:M,rtl:G,onScroll:Ae,onStartMove:fe,onStopMove:pe,spinSize:De,containerSize:Ne.width,horizontal:!0,style:null==B?void 0:B.horizontalScrollBar,thumbStyle:null==B?void 0:B.horizontalScrollBarThumb}))}var zn=t.forwardRef(Bn);zn.displayName="List";var Kn=["disabled","title","children","style","className"];function Ln(e){return"string"==typeof e||"number"==typeof e}var An=function(e,r){var o=t.useContext(Yt),l=o.prefixCls,c=o.id,s=o.open,d=o.multiple,g=o.mode,h=o.searchValue,v=o.toggleOpen,y=o.notFoundContent,x=o.onPopupScroll,C=t.useContext(mn),S=C.maxCount,w=C.flattenOptions,k=C.onActiveValue,$=C.defaultActiveFirstOption,E=C.onSelect,N=C.menuItemSelectedIcon,I=C.rawValues,D=C.fieldNames,R=C.virtual,P=C.direction,T=C.listHeight,H=C.listItemHeight,j=C.optionRender,B="".concat(l,"-item"),z=M((function(){return w}),[s,w],(function(e,t){return t[0]&&e[1]!==t[1]})),K=t.useRef(null),L=t.useMemo((function(){return d&&dn(S)&&(null==I?void 0:I.size)>=S}),[d,S,null==I?void 0:I.size]),A=function(e){e.preventDefault()},F=function(e){var t;null===(t=K.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},W=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=z.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=z[e];r?k(r.value,e,n):k(null,-1,n)};t.useEffect((function(){X(!1!==$?W(0):-1)}),[z.length,h]);var G=t.useCallback((function(e){return I.has(e)&&"combobox"!==g}),[g,b(I).toString(),I.size]);t.useEffect((function(){var e,t=setTimeout((function(){if(!d&&s&&1===I.size){var e=Array.from(I)[0],t=z.findIndex((function(t){return t.data.value===e}));-1!==t&&(X(t),F(t))}}));s&&(null===(e=K.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[s,h]);var U=function(e){void 0!==e&&E(e,{selected:!I.has(e)}),d||v(!1)};if(t.useImperativeHandle(r,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case i.N:case i.P:case i.UP:case i.DOWN:var r=0;if(t===i.UP?r=-1:t===i.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===i.N?r=1:t===i.P&&(r=-1)),0!==r){var o=W(Y+r,r);F(o),X(o,!0)}break;case i.ENTER:var a,l=z[Y];!l||null!=l&&null!==(a=l.data)&&void 0!==a&&a.disabled||L?U(void 0):U(l.value),s&&e.preventDefault();break;case i.ESC:v(!1),s&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){F(e)}}})),0===z.length)return t.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(B,"-empty"),onMouseDown:A},y);var Q=Object.keys(D).map((function(e){return D[e]})),Z=function(e){return e.label};function J(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var ee=function(e){var n=z[e];if(!n)return null;var r=n.data||{},o=r.value,a=n.group,i=u(r,!0),l=Z(n);return n?t.createElement("div",p({"aria-label":"string"!=typeof l||a?null:l},i,{key:e},J(n,e),{"aria-selected":G(o)}),o):null},te={role:"listbox",id:"".concat(c,"_list")};return t.createElement(t.Fragment,null,R&&t.createElement("div",p({},te,{style:{height:0,width:0,overflow:"hidden"}}),ee(Y-1),ee(Y),ee(Y+1)),t.createElement(zn,{itemKey:"key",ref:K,data:z,height:T,itemHeight:H,fullHeight:!1,onMouseDown:A,onScroll:x,virtual:R,direction:P,innerProps:R?null:te},(function(e,r){var o=e.group,a=e.groupOption,i=e.data,l=e.label,c=e.value,s=i.key;if(o){var d,g=null!==(d=i.title)&&void 0!==d?d:Ln(l)?l.toString():void 0;return t.createElement("div",{className:n(B,"".concat(B,"-group"),i.className),title:g},void 0!==l?l:s)}var h=i.disabled,v=i.title;i.children;var b=i.style,y=i.className,x=m(i,Kn),C=O(x,Q),S=G(c),w=h||!S&&L,k="".concat(B,"-option"),$=n(B,k,y,f(f(f(f({},"".concat(k,"-grouped"),a),"".concat(k,"-active"),Y===r&&!w),"".concat(k,"-disabled"),w),"".concat(k,"-selected"),S)),E=Z(e),I=!N||"function"==typeof N||S,M="number"==typeof E?E:E||c,D=Ln(M)?M.toString():void 0;return void 0!==v&&(D=v),t.createElement("div",p({},u(C),R?{}:J(e,r),{"aria-selected":S,className:$,title:D,onMouseMove:function(){Y===r||w||X(r)},onClick:function(){w||U(c)},style:b}),t.createElement("div",{className:"".concat(k,"-content")},"function"==typeof j?j(e,{index:r}):M),t.isValidElement(N)||S,I&&t.createElement(Vt,{className:"".concat(B,"-option-state"),customizeIcon:N,customizeIconProps:{value:c,disabled:w,isSelected:S}},S?"✓":null))})))},Fn=t.forwardRef(An);function Wn(e,t){return Ut(e).join("").toUpperCase().includes(t)}var _n=0,Vn=D();function Yn(e){var n=t.useState(),r=a(n,2),o=r[0],i=r[1];return t.useEffect((function(){var e;i("rc_select_".concat((Vn?(e=_n,_n+=1):e="TEST_OR_SSR",e)))}),[]),e||o}var qn=["children","value"],Xn=["children"];function Gn(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return R(e).map((function(e,r){if(!t.isValidElement(e)||!e.type)return null;var o=e,a=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,u=m(l,Xn);return n||!a?function(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,i=m(r,qn);return c({key:n,value:void 0!==a?a:n,children:o},i)}(e):c(c({key:"__RC_SELECT_GRP__".concat(null===i?r:i,"__"),label:i},u),{},{options:Gn(s)})})).filter((function(e){return e}))}function Un(e){var n=t.useRef();n.current=e;var r=t.useCallback((function(){return n.current.apply(n,arguments)}),[]);return r}var Qn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Zn=["inputValue"];var Jn=t.forwardRef((function(e,n){var r=e.id,i=e.mode,l=e.prefixCls,s=void 0===l?"rc-select":l,u=e.backfill,d=e.fieldNames,g=e.inputValue,h=e.searchValue,v=e.onSearch,y=e.autoClearSearchValue,x=void 0===y||y,C=e.onSelect,w=e.onDeselect,k=e.dropdownMatchSelectWidth,$=void 0===k||k,E=e.filterOption,N=e.filterSort,I=e.optionFilterProp,M=e.optionLabelProp,O=e.options,D=e.optionRender,R=e.children,P=e.defaultActiveFirstOption,T=e.menuItemSelectedIcon,H=e.virtual,j=e.direction,B=e.listHeight,z=void 0===B?200:B,K=e.listItemHeight,L=void 0===K?20:K,A=e.labelRender,F=e.value,W=e.defaultValue,_=e.labelInValue,V=e.onChange,Y=e.maxCount,q=m(e,Qn),X=Yn(r),G=vn(i),U=!(O||!R),Q=t.useMemo((function(){return(void 0!==E||"combobox"!==i)&&E}),[E,i]),Z=t.useMemo((function(){return fn(d,U)}),[JSON.stringify(d),U]),J=S("",{value:void 0!==h?h:g,postState:function(e){return e||""}}),ee=a(J,2),te=ee[0],ne=ee[1],re=function(e,n,r,o,a){return t.useMemo((function(){var t=e;!e&&(t=Gn(n));var i=new Map,l=new Map,c=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=fn(n,!1),i=a.label,l=a.value,c=a.options,s=a.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(c in t)){var a=t[l];o.push({key:un(t,o.length),groupOption:n,data:t,label:t[i],value:a})}else{var u=t[s];void 0===u&&r&&(u=t.label),o.push({key:un(t,o.length),group:!0,data:t,label:u}),e(t[c],!0)}}))}(e,!1),o}(Se,{fieldNames:Z,childrenAsData:U})}),[Se,Z,U]),ke=function(e){var t=le(e);if(de(t),V&&(t.length!==ge.length||t.some((function(e,t){var n;return(null===(n=ge[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=_?t:t.map((function(e){return e.value})),r=t.map((function(e){return pn(he(e.value))}));V(G?n:n[0],G?r:r[0])}},$e=t.useState(null),Ee=a($e,2),Ne=Ee[0],Ie=Ee[1],Me=t.useState(0),Oe=a(Me,2),De=Oe[0],Re=Oe[1],Pe=void 0!==P?P:"combobox"!==i,Te=t.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Re(t),u&&"combobox"===i&&null!==e&&"keyboard"===r&&Ie(String(e))}),[u,i]),He=function(e,t,n){var r=function(){var t,n=he(e);return[_?{label:null==n?void 0:n[Z.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,pn(n)]};if(t&&C){var o=r(),i=a(o,2),l=i[0],c=i[1];C(l,c)}else if(!t&&w&&"clear"!==n){var s=r(),u=a(s,2),d=u[0],f=u[1];w(d,f)}},je=Un((function(e,t){var n,r=!G||t.selected;n=r?G?[].concat(b(ge),[e]):[e]:ge.filter((function(t){return t.value!==e})),ke(n),He(e,r),"combobox"===i?Ie(""):vn&&!x||(ne(""),Ie(""))})),Be=t.useMemo((function(){var e=!1!==H&&!1!==$;return c(c({},re),{},{flattenOptions:we,onActiveValue:Te,defaultActiveFirstOption:Pe,onSelect:je,menuItemSelectedIcon:T,rawValues:be,fieldNames:Z,virtual:e,direction:j,listHeight:z,listItemHeight:L,childrenAsData:U,maxCount:Y,optionRender:D})}),[Y,re,we,Te,Pe,je,T,be,Z,H,$,j,z,L,U,D]);return t.createElement(mn.Provider,{value:Be},t.createElement(bn,p({},q,{id:X,prefixCls:s,ref:n,omitDomProps:Zn,mode:i,displayValues:ve,onDisplayValuesChange:function(e,t){ke(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){He(e.value,!1,n)}))},direction:j,searchValue:te,onSearch:function(e,t){if(ne(e),Ie(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===i&&ke(e),null==v||v(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(b(be),[n])));ke(r),He(n,!0),ne("")}}},autoClearSearchValue:x,onSearchSplit:function(e){var t=e;"tags"!==i&&(t=e.map((function(e){var t=ae.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat(b(be),b(t))));ke(n),n.forEach((function(e){He(e,!0)}))},dropdownMatchSelectWidth:$,OptionList:Fn,emptyOptions:!we.length,activeValue:Ne,activeDescendantId:"".concat(X,"_list_").concat(De)})))}));Jn.Option=xn,Jn.OptGroup=yn;const er=e=>{const{componentName:n}=e,{getPrefixCls:o}=t.useContext(P),a=o("empty");switch(n){case"Table":case"List":return r.createElement(T,{image:T.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(T,{image:T.PRESENTED_IMAGE_SIMPLE,className:`${a}-small`});default:return r.createElement(T,null)}};function tr(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)}const nr=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},rr=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},H(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${o}${l}bottomLeft,\n ${a}${l}bottomLeft\n `]:{animationName:j},[`\n ${o}${l}topLeft,\n ${a}${l}topLeft,\n ${o}${l}topRight,\n ${a}${l}topRight\n `]:{animationName:B},[`${i}${l}bottomLeft`]:{animationName:z},[`\n ${i}${l}topLeft,\n ${i}${l}topRight\n `]:{animationName:K},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},nr(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},L),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},nr(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},A(e,"slide-up"),A(e,"slide-down"),F(e,"move-up"),F(e,"move-down")]},or=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(o).equal(),0),itemHeight:_(t),itemLineHeight:_(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},ar=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},W()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},ir=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,i=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",c=or(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},ar(e)),{[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${_(r)} 0`,lineHeight:_(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:_(c.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:_(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function lr(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[ir(e,t),o]}const cr=e=>{const{componentCls:t}=e,n=V(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=V(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[lr(e),lr(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},lr(r,"lg")]};function sr(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},H(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:_(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${_(r)}`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:_(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${_(r)}`,"&:after":{display:"none"}}}}}}}function ur(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[sr(e),sr(V(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${_(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},sr(V(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const dr=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${_(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${_(o)} ${t.activeShadowColor}`,outline:0}}}},fr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},dr(e,t))}),pr=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},dr(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),fr(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),fr(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),mr=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${_(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},gr=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mr(e,t))}),hr=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},mr(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),gr(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),gr(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),vr=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),br=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},pr(e)),hr(e)),vr(e))}),yr=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},xr=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Cr=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},H(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},yr(e)),xr(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},L),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},L),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},W()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Sr=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Cr(e),ur(e),cr(e),rr(e),{[`${t}-rtl`]:{direction:"rtl"}},q(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},wr=Y("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=V(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Sr(r),br(r)]}),(e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:h,colorTextDisabled:v}=e,b=2*l,y=2*r,x=Math.min(o-b,o-y),C=Math.min(a-b,a-y),S=Math.min(i-b,i-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:i,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:C,multipleItemHeightLG:S,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function kr(e){let{suffixIcon:n,clearIcon:r,menuItemSelectedIcon:o,removeIcon:a,loading:i,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const m=null!=r?r:t.createElement(X,null),g=e=>null!==n||c||f?t.createElement(t.Fragment,null,!1!==u&&e,c&&d):null;let h=null;if(void 0!==n)h=g(n);else if(i)h=g(t.createElement(U,{spin:!0}));else{const e=`${s}-suffix`;h=n=>{let{open:r,showSearch:o}=n;return g(r&&o?t.createElement(Q,{className:e}):t.createElement(Z,{className:e}))}}let v=null;v=void 0!==o?o:l?t.createElement(Bt,null):null;let b=null;return b=void 0!==a?a:t.createElement(G,null),{clearIcon:m,suffixIcon:h,itemIcon:v,removeIcon:b}}var $r=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o;const{prefixCls:a,bordered:i,className:l,rootClassName:c,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:f=256,placement:p,listItemHeight:m,size:g,disabled:h,notFoundContent:v,status:b,builtinPlacements:y,dropdownMatchSelectWidth:x,popupMatchSelectWidth:C,direction:S,style:w,allowClear:k,variant:$,dropdownStyle:E,transitionName:N,tagRender:I,maxCount:M}=e,D=$r(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:R,getPrefixCls:T,renderEmpty:H,direction:j,virtual:B,popupMatchSelectWidth:z,popupOverflow:K,select:L}=t.useContext(P),[,A]=ee(),F=null!=m?m:null==A?void 0:A.controlHeight,W=T("select",a),_=T(),V=null!=S?S:j,{compactSize:Y,compactItemClassnames:q}=te(W,V),[X,G]=ne($,i),U=re(W),[Q,Z,J]=wr(W,U),de=t.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===Er?"combobox":t}),[e.mode]),fe="multiple"===de||"tags"===de,pe=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),me=null!==(o=null!=C?C:x)&&void 0!==o?o:z,{status:ge,hasFeedback:he,isFormItemInput:ve,feedbackIcon:be}=t.useContext(oe),ye=ue(ge,b);let xe;xe=void 0!==v?v:"combobox"===de?null:(null==H?void 0:H("Select"))||t.createElement(er,{componentName:"Select"});const{suffixIcon:Ce,itemIcon:Se,removeIcon:we,clearIcon:ke}=kr(Object.assign(Object.assign({},D),{multiple:fe,hasFeedback:he,feedbackIcon:be,showSuffixIcon:pe,prefixCls:W,componentName:"Select"})),$e=!0===k?{clearIcon:ke}:k,Ee=O(D,["suffixIcon","itemIcon"]),Ne=n(u||d,{[`${W}-dropdown-${V}`]:"rtl"===V},c,J,U,Z),Ie=ae((e=>{var t;return null!==(t=null!=g?g:Y)&&void 0!==t?t:e})),Me=t.useContext(ie),Oe=null!=h?h:Me,De=n({[`${W}-lg`]:"large"===Ie,[`${W}-sm`]:"small"===Ie,[`${W}-rtl`]:"rtl"===V,[`${W}-${X}`]:G,[`${W}-in-form-item`]:ve},le(W,ye,he),q,null==L?void 0:L.className,l,c,J,U,Z),Re=t.useMemo((()=>void 0!==p?p:"rtl"===V?"bottomRight":"bottomLeft"),[p,V]),[Pe]=ce("SelectLike",null==E?void 0:E.zIndex);return Q(t.createElement(Jn,Object.assign({ref:r,virtual:B,showSearch:null==L?void 0:L.showSearch},Ee,{style:Object.assign(Object.assign({},null==L?void 0:L.style),w),dropdownMatchSelectWidth:me,transitionName:se(_,"slide-up",N),builtinPlacements:tr(y,K),listHeight:f,listItemHeight:F,mode:de,prefixCls:W,placement:Re,direction:V,suffixIcon:Ce,menuItemSelectedIcon:Se,removeIcon:we,allowClear:$e,notFoundContent:xe,className:De,getPopupContainer:s||R,dropdownClassName:Ne,disabled:Oe,dropdownStyle:Object.assign(Object.assign({},E),{zIndex:Pe}),maxCount:fe?M:void 0,tagRender:fe?I:void 0})))},Ir=t.forwardRef(Nr),Mr=J(Ir);Ir.SECRET_COMBOBOX_MODE_DO_NOT_USE=Er,Ir.Option=xn,Ir.OptGroup=yn,Ir._InternalPanelDoNotUseOrYouWillBeFired=Mr;const Or=Ir,Dr=e=>e?"function"==typeof e?e():e:null,Rr=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:a,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},H(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:i,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},fe(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Pr=e=>{const{componentCls:t}=e;return{[t]:pe.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},Tr=Y("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=V(e,{popoverBg:t,popoverColor:n});return[Rr(r),Pr(r),de(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:a,zIndexPopupBase:i,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},me(e)),ge({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${g}px ${m}px`:0,titleBorderBottom:a?`${t}px ${s} ${u}`:"none",innerContentPadding:a?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Hr=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{hashId:r,prefixCls:o,className:a,style:i,placement:l="top",title:c,content:s,children:u}=e;return t.createElement("div",{className:n(r,o,`${o}-pure`,`${o}-placement-${l}`,a),style:i},t.createElement("div",{className:`${o}-arrow`}),t.createElement(he,Object.assign({},e,{className:r,prefixCls:o}),u||((e,n,r)=>n||r?t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${e}-title`},Dr(n)),t.createElement("div",{className:`${e}-inner-content`},Dr(r))):null)(o,c,s)))},Br=e=>{const{prefixCls:r,className:o}=e,a=Hr(e,["prefixCls","className"]),{getPrefixCls:i}=t.useContext(P),l=i("popover",r),[c,s,u]=Tr(l);return c(t.createElement(jr,Object.assign({},a,{prefixCls:l,hashId:s,className:n(o,u)})))};var zr=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{title:n,content:r,prefixCls:o}=e;return t.createElement(t.Fragment,null,n&&t.createElement("div",{className:`${o}-title`},Dr(n)),t.createElement("div",{className:`${o}-inner-content`},Dr(r)))},Lr=t.forwardRef(((e,r)=>{var o,a;const{prefixCls:l,title:c,content:s,overlayClassName:u,placement:d="top",trigger:f="hover",children:p,mouseEnterDelay:m=.1,mouseLeaveDelay:g=.1,onOpenChange:h,overlayStyle:v={}}=e,b=zr(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:y}=t.useContext(P),x=y("popover",l),[C,w,k]=Tr(x),$=y(),E=n(u,w,k),[N,I]=S(!1,{value:null!==(o=e.open)&&void 0!==o?o:e.visible,defaultValue:null!==(a=e.defaultOpen)&&void 0!==a?a:e.defaultVisible}),M=(e,t)=>{I(e,!0),null==h||h(e,t)};return C(t.createElement(ve,Object.assign({placement:d,trigger:f,mouseEnterDelay:m,mouseLeaveDelay:g,overlayStyle:v},b,{prefixCls:x,overlayClassName:E,ref:r,open:N,onOpenChange:e=>{M(e)},overlay:c||s?t.createElement(Kr,{prefixCls:x,title:c,content:s}):null,transitionName:se($,"zoom-big",b.transitionName),"data-popover-inject":!0}),be(p,{onKeyDown:e=>{var n,r;t.isValidElement(p)&&(null===(r=null==p?void 0:(n=p.props).onKeyDown)||void 0===r||r.call(n,e)),(e=>{e.keyCode===i.ESC&&M(!1,e)})(e)}})))})),Ar=Lr;Ar._InternalPanelDoNotUseOrYouWillBeFired=Br;const Fr=Ar;var Wr={exports:{}};Wr.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",a="minute",i="hour",l="day",c="week",s="month",u="quarter",d="year",f="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()1)return e(i[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},k=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},$=b;$.l=w,$.i=S,$.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function h(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var v=h.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if($.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(m);if(r){var o=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return $},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return k(e)25){var r=n(this).startOf(Ur).add(1,Ur).date(t),o=n(this).endOf(Gr);if(r.isBefore(o))return 1}var a=n(this).startOf(Ur).date(t).startOf(Gr).subtract(1,"millisecond"),i=this.diff(a,Gr,!0);return i<0?n(this).startOf("week").week():Math.ceil(i)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}));var Jr={exports:{}};Jr.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}};const eo=ye(Jr.exports);var to={exports:{}};to.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(a)}};const no=ye(to.exports);var ro={exports:{}};ro.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},i=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],s=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[o,function(e){this.afternoon=u(e,!1)}],a:[o,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[n,l("day")],Do:[o,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,l("month")],MM:[n,l("month")],MMM:[o,function(e){var t=s("months"),n=(s("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[n,function(e){this.year=i(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=i.length,c=0;c-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),o=r.year,a=r.month,i=r.day,l=r.hours,c=r.minutes,s=r.seconds,u=r.milliseconds,d=r.zone,p=new Date,m=i||(o||a?1:p.getDate()),g=o||p.getFullYear(),h=0;o&&!a||(h=a>0?a-1:p.getMonth());var v=l||0,b=c||0,y=s||0,x=u||0;return d?new Date(Date.UTC(g,h,m,v,b,y,x+60*d.offset*1e3)):n?new Date(Date.UTC(g,h,m,v,b,y,x)):new Date(g,h,m,v,b,y,x)}catch(e){return new Date("")}}(t,l,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var p=l.length,m=1;m<=p;m+=1){i[1]=l[m-1];var g=n.apply(this,i);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===p&&(this.$d=new Date(""))}else o.call(this,e)}}}();const oo=ye(ro.exports);_r.extend(oo),_r.extend(no),_r.extend(Yr),_r.extend(Xr),_r.extend(Zr),_r.extend(eo),_r.extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var ao={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},io=function(e){return ao[e]||e.split("_")[0]},lo=function(){Ce(!1,"Not match any format. Please help to fire a issue about this.")},co={getNow:function(){return _r()},getFixedDate:function(e){return _r(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return _r().locale(io(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(io(e)).weekday(0)},getWeek:function(e,t){return t.locale(io(e)).week()},getShortWeekDays:function(e){return _r().locale(io(e)).localeData().weekdaysMin()},getShortMonths:function(e){return _r().locale(io(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(io(e)).format(n)},parse:function(e,t,n){for(var r=io(e),o=0;o2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length2&&void 0!==arguments[2]?arguments[2]:[],o=t.useState([!1,!1]),i=a(o,2),l=i[0],c=i[1];return[t.useMemo((function(){return l.map((function(t,o){if(t)return!0;var a=e[o];return!!a&&(!r[o]&&!a||!(!a||!n(a,{activeIndex:o})))}))}),[e,l,n,r]),function(e,t){c((function(n){return go(n,t,e)}))}]}function Co(e,t,n,r,o){var a="",i=[];return e&&i.push(o?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),a=i.join(":"),r&&(a+=".SSS"),o&&(a+=" A"),a}function So(e,t){var n=t.showHour,o=t.showMinute,a=t.showSecond,i=t.showMillisecond,l=t.use12Hours;return r.useMemo((function(){return function(e,t,n,r,o,a){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,p=e.fieldQuarterFormat,m=e.yearFormat,g=e.cellYearFormat,h=e.cellQuarterFormat,v=e.dayFormat,b=e.cellDateFormat,y=Co(t,n,r,o,a);return c(c({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(y),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||y,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:g||"YYYY",cellQuarterFormat:h||"[Q]Q",cellDateFormat:b||v||"D"})}(e,n,o,a,i,l)}),[e,n,o,a,i,l])}function wo(e,t,n){return null!=n?n:t.some((function(t){return e.includes(t)}))}var ko=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function $o(e){return e&&"string"==typeof e}function Eo(e,t,n,r){return[e,t,n,r].some((function(e){return void 0!==e}))}function No(e,t,n,r,o){var a=t,i=n,l=r;if(e||a||i||l||o){if(e){var c,s,u,d=[a,i,l].some((function(e){return!1===e})),f=[a,i,l].some((function(e){return!0===e})),p=!!d||!f;a=null!==(c=a)&&void 0!==c?c:p,i=null!==(s=i)&&void 0!==s?s:p,l=null!==(u=l)&&void 0!==u?u:p}}else a=!0,i=!0,l=!0;return[a,i,l,o]}function Io(e){var t=e.showTime,n=function(e){var t=ho(e,ko),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a="object"===o(a)?a.format:a),"time"===r&&(t.format=a),[t,a]}(e),r=a(n,2),i=r[0],l=r[1],s=t&&"object"===o(t)?t:{},u=c(c({defaultOpenValue:s.defaultOpenValue||s.defaultValue},i),s),d=u.showMillisecond,f=u.showHour,p=u.showMinute,m=u.showSecond,g=No(Eo(f,p,m,d),f,p,m,d),h=a(g,3);return f=h[0],p=h[1],m=h[2],[u,c(c({},u),{},{showHour:f,showMinute:p,showSecond:m,showMillisecond:d}),u.format,l]}function Mo(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,l=vo(e,o,null),s=[t,n],u=0;u1&&void 0!==arguments[1]&&arguments[1];return t.useMemo((function(){var t=e?mo(e):e;return n&&t&&(t[1]=t[1]||t[0]),t}),[e,n])}function qo(e,n){var r=e.generateConfig,i=e.locale,l=e.picker,s=void 0===l?"date":l,u=e.prefixCls,d=void 0===u?"rc-picker":u,f=e.styles,p=void 0===f?{}:f,m=e.classNames,g=void 0===m?{}:m,h=e.order,v=void 0===h||h,b=e.components,y=void 0===b?{}:b,x=e.inputRender,C=e.allowClear,S=e.clearIcon,w=e.needConfirm,k=e.multiple,$=e.format,E=e.inputReadOnly,I=e.disabledDate,M=e.minDate,O=e.maxDate,D=e.showTime,R=e.value,P=e.defaultValue,T=e.pickerValue,H=e.defaultPickerValue,j=Yo(R),B=Yo(P),z=Yo(T),K=Yo(H),L="date"===s&&D?"datetime":s,A="time"===L||"datetime"===L,F=A||k,W=null!=w?w:A,_=Io(e),V=a(_,4),Y=V[0],q=V[1],X=V[2],G=V[3],U=So(i,q),Q=t.useMemo((function(){return Mo(L,X,G,Y,U)}),[L,X,G,Y,U]),Z=t.useMemo((function(){return c(c({},e),{},{prefixCls:d,locale:U,picker:s,styles:p,classNames:g,order:v,components:c({input:x},y),clearIcon:Oo(d,C,S),showTime:Q,value:j,defaultValue:B,pickerValue:z,defaultPickerValue:K},null==n?void 0:n())}),[e]),J=function(e,n,r){return t.useMemo((function(){var t=mo(vo(e,n,r)),a=t[0],i="object"===o(a)&&"mask"===a.type?a.format:null;return[t.map((function(e){return"string"==typeof e||"function"==typeof e?e:e.format})),i]}),[e,n,r])}(L,U,$),ee=a(J,2),te=ee[0],ne=ee[1],re=function(e,t,n){return!("function"!=typeof e[0]&&!n)||t}(te,E,k),oe=function(e,t,n,r,o){return N((function(a,i){return!(!n||!n(a,i))||!(!r||!e.isAfter(r,a)||Ao(e,t,r,a,i.type))||!(!o||!e.isAfter(a,o)||Ao(e,t,o,a,i.type))}))}(r,i,I,M,O),ae=function(e,t,n,r){return N((function(o,a){var i=c({type:t},a);if(delete i.activeIndex,!e.isValidate(o)||n&&n(o,i))return!0;if(("date"===t||"time"===t)&&r){var l,s=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,a&&1===a.activeIndex?"end":"start"))||{},u=s.disabledHours,d=s.disabledMinutes,f=s.disabledSeconds,p=s.disabledMilliseconds,m=r.disabledHours,g=r.disabledMinutes,h=r.disabledSeconds,v=u||m,b=d||g,y=f||h,x=e.getHour(o),C=e.getMinute(o),S=e.getSecond(o),w=e.getMillisecond(o);if(v&&v().includes(x))return!0;if(b&&b(x).includes(C))return!0;if(y&&y(x,C).includes(S))return!0;if(p&&p(x,C,S).includes(w))return!0}return!1}))}(r,s,oe,Q);return[t.useMemo((function(){return c(c({},Z),{},{needConfirm:W,inputReadOnly:re,disabledDate:oe})}),[Z,W,re,oe]),L,F,te,ne,ae]}function Xo(t,n){var o,i,l,c,s,u,d,f,p,m,g,h=arguments.length>3?arguments[3]:void 0,v=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(e){return e}))&&t,b=(i=h,l=S(n||!1,{value:o=v}),c=a(l,2),s=c[0],u=c[1],d=r.useRef(o),f=r.useRef(),p=function(){e.cancel(f.current)},m=N((function(){u(d.current),i&&s!==d.current&&i(d.current)})),g=N((function(t,n){p(),d.current=t,t||n?m():f.current=e(m)})),r.useEffect((function(){return p}),[]),[s,g]),y=a(b,2),x=y[0],C=y[1];return[x,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!x||C(e,t.force)}]}function Go(e){var n=t.useRef();return t.useImperativeHandle(e,(function(){var e;return{nativeElement:null===(e=n.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var t;null===(t=n.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=n.current)||void 0===e||e.blur()}}})),n}function Uo(e,n){return t.useMemo((function(){return e||(n?(h(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map((function(e){var t=a(e,2);return{label:t[0],value:t[1]}}))):[])}),[e,n])}function Qo(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=t.useRef(r);a.current=r,Se((function(){if(!n){var t=e((function(){a.current(n)}),o);return function(){e.cancel(t)}}a.current(n)}),[n])}function Zo(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.useState(0),o=a(r,2),i=o[0],l=o[1],c=t.useState(!1),s=a(c,2),u=s[0],d=s[1],f=t.useRef([]),p=t.useRef(null);return Qo(u,(function(){u||(f.current=[])})),t.useEffect((function(){u&&f.current.push(i)}),[u,i]),[u,function(e){d(e)},function(e){return e&&(p.current=e),p.current},i,l,function(t){var r=f.current,o=new Set(r.filter((function(e){return t[e]||n[e]}))),a=0===r[r.length-1]?1:0;return o.size>=2||e[a]?null:a},f.current]}function Jo(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var ea=[];function ta(e,n,r,o,i,l,c,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:ea,d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:ea,f=arguments.length>11?arguments[11]:void 0,p=arguments.length>12?arguments[12]:void 0,m=arguments.length>13?arguments[13]:void 0,g="time"===c,h=l||0,v=function(t){var n=e.getNow();return g&&(n=Vo(e,n)),u[t]||r[t]||n},b=a(arguments.length>9&&void 0!==arguments[9]?arguments[9]:ea,2),y=b[0],x=b[1],w=S((function(){return v(0)}),{value:y}),k=a(w,2),$=k[0],E=k[1],N=S((function(){return v(1)}),{value:x}),I=a(N,2),M=I[0],O=I[1],D=t.useMemo((function(){var t=[$,M][h];return g?t:Vo(e,t,d[h])}),[g,$,M,h,e,d]),R=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[E,O][h])(t);var a=[$,M];a[h]=t,!f||Ao(e,n,$,a[0],c)&&Ao(e,n,M,a[1],c)||f(a,{source:r,range:1===h?"end":"start",mode:o})},P=t.useRef(null);return C((function(){if(i&&!u[h]){var t=g?null:e.getNow();if(null!==P.current&&P.current!==h?t=[$,M][1^h]:r[h]?t=0===h?r[0]:function(t,r){if(s){var o={date:"month",week:"month",month:"year",quarter:"year"}[c];if(o&&!Ao(e,n,t,r,o))return Jo(e,c,r,-1);if("year"===c&&Math.floor(e.getYear(t)/10)!==Math.floor(e.getYear(r)/10))return Jo(e,c,r,-1)}return r}(r[0],r[1]):r[1^h]&&(t=r[1^h]),t){p&&e.isAfter(p,t)&&(t=p);var o=s?Jo(e,c,t,1):t;m&&e.isAfter(o,m)&&(t=s?Jo(e,c,m,-1):m),R(t,"reset")}}}),[i,h,r[h]]),t.useEffect((function(){P.current=i?h:null}),[i,h]),C((function(){i&&u&&u[h]&&R(u[h],"reset")}),[i,h]),[D,R]}function na(e,n){var r=t.useRef(e),o=t.useState({}),i=a(o,2)[1],l=function(e){return e&&void 0!==n?n:r.current};return[l,function(e){r.current=e,i({})},l(!0)]}var ra=[];function oa(e,t,n){return[function(r){return r.map((function(r){return _o(r,{generateConfig:e,locale:t,format:n[0]})}))},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,a=0;a2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,i=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=o.includes(c);s&&r||i.push({label:po(c,a),value:c,disabled:s})}return i}function da(e){var n=arguments.length>2?arguments[2]:void 0,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},o=r.use12Hours,i=r.hourStep,l=void 0===i?1:i,s=r.minuteStep,u=void 0===s?1:s,d=r.secondStep,f=void 0===d?1:d,p=r.millisecondStep,m=void 0===p?100:p,g=r.hideDisabledOptions,h=r.disabledTime,v=r.disabledHours,y=r.disabledMinutes,x=r.disabledSeconds,C=t.useMemo((function(){return n||e.getNow()}),[n,e]),S=t.useCallback((function(e){var t=(null==h?void 0:h(e))||{};return[t.disabledHours||v||sa,t.disabledMinutes||y||sa,t.disabledSeconds||x||sa,t.disabledMilliseconds||sa]}),[h,v,y,x]),w=t.useMemo((function(){return S(C)}),[C,S]),k=a(w,4),$=k[0],E=k[1],N=k[2],I=k[3],M=t.useCallback((function(e,t,n,r){var a=ua(0,23,l,g,e()),i=o?a.map((function(e){return c(c({},e),{},{label:po(e.value%12||12,2)})})):a;return[i,function(e){return ua(0,59,u,g,t(e))},function(e,t){return ua(0,59,f,g,n(e,t))},function(e,t,n){return ua(0,999,m,g,r(e,t,n),3)}]}),[g,l,o,m,u,f]),O=t.useMemo((function(){return M($,E,N,I)}),[M,$,E,N,I]),D=a(O,4),R=D[0],P=D[1],T=D[2],H=D[3];return[function(t,n){var r=function(){return R},o=P,i=T,l=H;if(n){var c=S(n),s=a(c,4),u=s[0],d=s[1],f=s[2],p=s[3],m=M(u,d,f,p),g=a(m,4),h=g[0];r=function(){return h},o=g[1],i=g[2],l=g[3]}var v=function(e,t,n,r,o,a){var i=e;function l(e,t,n){var r=a[e](i),o=n.find((function(e){return e.value===r}));if(!o||o.disabled){var l=n.filter((function(e){return!e.disabled})),c=b(l).reverse().find((function(e){return e.value<=r}))||l[0];c&&(r=c.value,i=a[t](i,r))}return r}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",r(c,s));return l("getMillisecond","setMillisecond",o(c,s,u)),i}(t,r,o,i,l,e);return v},R,P,T,H]}function fa(e){var r=e.mode,o=e.internalMode,i=e.renderExtraFooter,l=e.showNow,c=e.showTime,s=e.onSubmit,u=e.onNow,d=e.invalid,f=e.needConfirm,p=e.generateConfig,m=e.disabledDate,g=t.useContext(so),h=g.prefixCls,v=g.locale,b=g.button,y=void 0===b?"button":b,x=p.getNow(),C=da(p,c,x),S=a(C,1)[0],w=null==i?void 0:i(r),k=m(x,{type:r}),$="".concat(h,"-now"),E="".concat($,"-btn"),N=l&&t.createElement("li",{className:$},t.createElement("a",{className:n(E,k&&"".concat(E,"-disabled")),"aria-disabled":k,onClick:function(){if(!k){var e=S(x);u(e)}}},"date"===o?v.today:v.now)),I=f&&t.createElement("li",{className:"".concat(h,"-ok")},t.createElement(y,{disabled:d,onClick:s},v.ok)),M=(N||I)&&t.createElement("ul",{className:"".concat(h,"-ranges")},N,I);return w||M?t.createElement("div",{className:"".concat(h,"-footer")},w&&t.createElement("div",{className:"".concat(h,"-footer-extra")},w),M):null}function pa(e,t,n){return function(r,o){var a=r.findIndex((function(r){return Ao(e,t,r,o,n)}));if(-1===a)return[].concat(b(r),[o]);var i=b(r);return i.splice(a,1),i}}var ma=t.createContext(null);function ga(){return t.useContext(ma)}function ha(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,a=e.disabledDate,i=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,h=e.nextIcon,v=e.superPrevIcon,b=e.superNextIcon,y=r.getNow();return[{now:y,values:f,pickerValue:p,prefixCls:n,disabledDate:a,minDate:i,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:h,superPrevIcon:v,superNextIcon:b},y]}var va=t.createContext({});function ba(e){for(var r=e.rowNum,o=e.colNum,i=e.baseDate,l=e.getCellDate,s=e.prefixColumn,u=e.rowClassName,d=e.titleFormat,p=e.getCellText,m=e.getCellClassName,g=e.headerCells,h=e.cellSelection,v=void 0===h||h,b=e.disabledDate,y=ga(),x=y.prefixCls,C=y.panelType,S=y.now,w=y.disabledDate,k=y.cellRender,$=y.onHover,E=y.hoverValue,N=y.hoverRangeValue,I=y.generateConfig,M=y.values,O=y.locale,D=y.onSelect,R=b||w,P="".concat(x,"-cell"),T=t.useContext(va).onCellDblClick,H=[],j=0;j1&&(i=t.addDate(i,-7)),i}(l.locale,c,I),O=c.getMonth(s),D=S||y?function(e){var r=null==h?void 0:h(e,{type:"week"});return t.createElement("td",{key:"week",className:n(C,"".concat(C,"-week"),f({},"".concat(C,"-disabled"),r)),onClick:function(){r||v(e)},onMouseEnter:function(){r||null==b||b(e)},onMouseLeave:function(){r||null==b||b(null)}},t.createElement("div",{className:"".concat(C,"-inner")},c.locale.getWeek(l.locale,e)))}:null,R=[],P=l.shortWeekDays||(c.locale.getShortWeekDays?c.locale.getShortWeekDays(l.locale):[]);D&&R.push(t.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var T=0;T1&&void 0!==arguments[1]&&arguments[1];pe(e),null==k||k(e),t&&me(e)},he=function(e,t){ee(e),t&&ge(t),me(t,e)},ve=t.useMemo((function(){var e,t;if(Array.isArray(R)){var n=a(R,2);e=n[0],t=n[1]}else e=R;return e||t?(e=e||t,t=t||e,l.isAfter(e,t)?[t,e]:[e,t]):null}),[R,l]),be=yo(P,T,H),ye=B[te]||Ia[te]||Ca,xe=t.useContext(va),Ce=t.useMemo((function(){return c(c({},xe),{},{hideHeader:z})}),[xe,z]),Se="".concat(K,"-panel"),we=ho(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return t.createElement(va.Provider,{value:Ce},t.createElement("div",{ref:L,tabIndex:m,className:n(Se,f({},"".concat(Se,"-rtl"),"rtl"===s))},t.createElement(ye,p({},we,{showTime:G,prefixCls:K,locale:q,generateConfig:l,onModeChange:he,pickerValue:fe,onPickerValueChange:function(e){ge(e,!0)},value:le[0],onSelect:function(e){if(se(e),ge(e),J!==M){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(b(n),["week"]),date:[].concat(b(n),["date"])}[M]||n,o=r.indexOf(J),a=r[o+1];a&&he(a,e)}},values:le,cellRender:be,hoverRangeValue:ve,hoverValue:D}))))}var Oa=t.memo(t.forwardRef(Ma));function Da(e){var n=e.picker,r=e.multiplePanel,o=e.pickerValue,a=e.onPickerValueChange,i=e.needConfirm,l=e.onSubmit,s=e.range,u=e.hoverValue,d=t.useContext(so),f=d.prefixCls,m=d.generateConfig,g=t.useCallback((function(e,t){return Jo(m,n,e,t)}),[m,n]),h=t.useMemo((function(){return g(o,1)}),[o,g]),v={onCellDblClick:function(){i&&l()}},b="time"===n,y=c(c({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:b});return s?y.hoverRangeValue=u:y.hoverValue=u,r?t.createElement("div",{className:"".concat(f,"-panels")},t.createElement(va.Provider,{value:c(c({},v),{},{hideNext:!0})},t.createElement(Oa,y)),t.createElement(va.Provider,{value:c(c({},v),{},{hidePrev:!0})},t.createElement(Oa,p({},y,{pickerValue:h,onPickerValueChange:function(e){a(g(e,-1))}})))):t.createElement(va.Provider,{value:c({},v)},t.createElement(Oa,y))}function Ra(e){return"function"==typeof e?e():e}function Pa(e){var n=e.prefixCls,r=e.presets,o=e.onClick,a=e.onHover;return r.length?t.createElement("div",{className:"".concat(n,"-presets")},t.createElement("ul",null,r.map((function(e,n){var r=e.label,i=e.value;return t.createElement("li",{key:n,onClick:function(){o(Ra(i))},onMouseEnter:function(){a(Ra(i))},onMouseLeave:function(){a(null)}},r)})))):null}function Ta(e){var r=e.panelRender,o=e.internalMode,i=e.picker,l=e.showNow,c=e.range,s=e.multiple,u=e.activeOffset,d=void 0===u?0:u,m=e.presets,g=e.onPresetHover,h=e.onPresetSubmit,v=e.onFocus,b=e.onBlur,y=e.direction,x=e.value,C=e.onSelect,S=e.isInvalid,k=e.defaultOpenValue,$=e.onOk,E=e.onSubmit,N=t.useContext(so).prefixCls,I="".concat(N,"-panel"),M="rtl"===y,O=t.useRef(null),D=t.useRef(null),R=t.useState(0),P=a(R,2),T=P[0],H=P[1],j=t.useState(0),B=a(j,2),z=B[0],K=B[1];function L(e){return e.filter((function(e){return e}))}t.useEffect((function(){if(c){var e,t=(null===(e=O.current)||void 0===e?void 0:e.offsetWidth)||0;K(d<=T-t?0:d+t-T)}}),[T,d,c]);var A=t.useMemo((function(){return L(mo(x))}),[x]),F="time"===i&&!A.length,W=t.useMemo((function(){return F?L([k]):A}),[F,A,k]),_=F?k:A,V=t.useMemo((function(){return!W.length||W.some((function(e){return S(e)}))}),[W,S]),Y=t.createElement("div",{className:"".concat(N,"-panel-layout")},t.createElement(Pa,{prefixCls:N,presets:m,onClick:h,onHover:g}),t.createElement("div",null,t.createElement(Da,p({},e,{value:_})),t.createElement(fa,p({},e,{showNow:!s&&l,invalid:V,onSubmit:function(){F&&C(k),$(),E()}}))));r&&(Y=r(Y));var q="".concat(I,"-container"),X="marginLeft",G="marginRight",U=t.createElement("div",{tabIndex:-1,className:n(q,"".concat(N,"-").concat(o,"-panel-container")),style:f(f({},M?G:X,z),M?X:G,"auto"),onFocus:v,onBlur:b},Y);return c&&(U=t.createElement("div",{ref:D,className:n("".concat(N,"-range-wrapper"),"".concat(N,"-").concat(i,"-range-wrapper"))},t.createElement("div",{ref:O,className:"".concat(N,"-range-arrow"),style:f({},M?"right":"left",d)}),t.createElement(w,{onResize:function(e){e.offsetWidth&&H(e.offsetWidth)}},U))),U}function Ha(e,n){var r=e.format,o=e.maskFormat,a=e.generateConfig,i=e.locale,l=e.preserveInvalidOnBlur,s=e.inputReadOnly,d=e.required,f=e["aria-required"],p=e.onSubmit,m=e.onFocus,g=e.onBlur,h=e.onInputChange,v=e.onInvalid,b=e.open,y=e.onOpenChange,x=e.onKeyDown,C=e.onChange,S=e.activeHelp,w=e.name,k=e.autoComplete,$=e.id,E=e.value,N=e.invalid,I=e.placeholder,M=e.disabled,O=e.activeIndex,D=e.allHelp,R=e.picker,P=function(e,t){var n=a.locale.parse(i.locale,e,[t]);return n&&a.isValidate(n)?n:null},T=r[0],H=t.useCallback((function(e){return _o(e,{locale:i,format:T,generateConfig:a})}),[i,a,T]),j=t.useMemo((function(){return E.map(H)}),[E,H]),B=t.useMemo((function(){var e="time"===R?8:10,t="function"==typeof T?T(a.getNow()).length:T.length;return Math.max(e,t)+2}),[T,R,a]),z=function(e){for(var t=0;t=a&&e<=i)return r;var l=Math.min(Math.abs(e-a),Math.abs(e-i));l0?r:o));var u=o-r+1;return String(r+(u+(s+e)-r)%u)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",l(-1);break;case"ArrowRight":n="",l(1);break;case"ArrowUp":n="",r=c(1);break;case"ArrowDown":n="",r=c(-1);break;default:isNaN(Number(t))||(r=n=Y+t)}if(null!==n&&(q(n),n.length>=o&&(l(1),q(""))),null!==r){var s=ne.slice(0,ce)+po(r,o)+ne.slice(se);de(s.slice(0,u.length))}te({})},onMouseDown:function(){fe.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=ae.getMaskCellIndex(t);Q(n),te({}),null==O||O(e),fe.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");d(t)&&de(t)}}:{};return t.createElement("div",{ref:re,className:n(H,f(f({},"".concat(H,"-active"),i&&c),"".concat(H,"-placeholder"),h))},t.createElement(T,p({ref:oe,"aria-invalid":w,autoComplete:"off"},$,{onKeyDown:me,onBlur:pe},he,{value:ne,onChange:function(e){if(!u){var t=e.target.value;ue(t),W(t),g(t)}}})),t.createElement(La,{type:"suffix",icon:s}),k)})),Ya=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],qa=["index"];function Xa(e,r){var i=e.id,l=e.clearIcon,s=e.suffixIcon,u=e.separator,d=void 0===u?"~":u,g=e.activeIndex;e.activeHelp,e.allHelp;var h=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var v=e.placeholder,b=e.className,y=e.style,x=e.onClick,C=e.onClear,S=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var k=e.disabled,$=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var I=e.onActiveOffset,M=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,D=m(e,Ya),R="rtl"===E,P=t.useContext(so).prefixCls,T=t.useMemo((function(){if("string"==typeof i)return[i];var e=i||{};return[e.start,e.end]}),[i]),H=t.useRef(),j=t.useRef(),B=t.useRef(),z=function(e){var t;return null===(t=[j,B][e])||void 0===t?void 0:t.current};t.useImperativeHandle(r,(function(){return{nativeElement:H.current,focus:function(e){if("object"===o(e)){var t,n=e||{},r=n.index,a=void 0===r?0:r,i=m(n,qa);null===(t=z(a))||void 0===t||t.focus(i)}else{var l;null===(l=z(null!=e?e:0))||void 0===l||l.focus()}},blur:function(){var e,t;null===(e=z(0))||void 0===e||e.blur(),null===(t=z(1))||void 0===t||t.blur()}}}));var K=Ba(D),L=t.useMemo((function(){return Array.isArray(v)?v:[v,v]}),[v]),A=Ha(c(c({},e),{},{id:T,placeholder:L})),F=a(A,1)[0],W=R?"right":"left",_=t.useState(f({position:"absolute",width:0},W,0)),V=a(_,2),Y=V[0],q=V[1],X=N((function(){var e=z(g);if(e){var t=e.nativeElement,n=t.offsetWidth,r=t.offsetLeft,o=t.offsetParent,a=r;if(R){var i=o,l=getComputedStyle(i);a=i.offsetWidth-parseFloat(l.borderRightWidth)-parseFloat(l.borderLeftWidth)-r-n}q((function(e){return c(c({},e),{},f({width:n},W,a))})),I(0===g?0:a)}}));t.useEffect((function(){X()}),[g]);var G=l&&(S[0]&&!k[0]||S[1]&&!k[1]),U=O&&!k[0],Q=O&&!U&&!k[1];return t.createElement(w,{onResize:X},t.createElement("div",p({},K,{className:n(P,"".concat(P,"-range"),f(f(f(f({},"".concat(P,"-focused"),h),"".concat(P,"-disabled"),k.every((function(e){return e}))),"".concat(P,"-invalid"),$.some((function(e){return e}))),"".concat(P,"-rtl"),R),b),style:y,ref:H,onClick:x,onMouseDown:function(e){var t=e.target;t!==j.current.inputElement&&t!==B.current.inputElement&&e.preventDefault(),null==M||M(e)}}),t.createElement(Va,p({ref:j},F(0),{autoFocus:U,"date-range":"start"})),t.createElement("div",{className:"".concat(P,"-range-separator")},d),t.createElement(Va,p({ref:B},F(1),{autoFocus:Q,"date-range":"end"})),t.createElement("div",{className:"".concat(P,"-active-bar"),style:Y}),t.createElement(La,{type:"suffix",icon:s}),G&&t.createElement(Aa,{icon:l,onClear:C})))}var Ga=t.forwardRef(Xa);function Ua(e,t){var n=null!=e?e:t;return Array.isArray(n)?n:[n,n]}function Qa(e){return 1===e?"end":"start"}function Za(e,n){var r=qo(e,(function(){var t=e.disabled,n=e.allowEmpty;return{disabled:Ua(t,!1),allowEmpty:Ua(n,!1)}})),o=a(r,6),i=o[0],l=o[1],s=o[2],d=o[3],f=o[4],m=o[5],g=i.prefixCls,h=i.styles,v=i.classNames,y=i.defaultValue,x=i.value,w=i.needConfirm,k=i.onKeyDown,$=i.disabled,E=i.allowEmpty,I=i.disabledDate,M=i.minDate,D=i.maxDate,R=i.defaultOpen,P=i.open,T=i.onOpenChange,H=i.locale,j=i.generateConfig,B=i.picker,z=i.showNow,K=i.showToday,L=i.showTime,A=i.mode,F=i.onPanelChange,W=i.onCalendarChange,_=i.onOk,V=i.defaultPickerValue,Y=i.pickerValue,q=i.onPickerValueChange,X=i.inputReadOnly,G=i.suffixIcon,U=i.onFocus,Q=i.onBlur,Z=i.presets,J=i.ranges,ee=i.components,te=i.cellRender,ne=i.dateRender,re=i.monthCellRender,oe=i.onClick,ae=Go(n),ie=Xo(P,R,$,T),le=a(ie,2),ce=le[0],se=le[1],ue=function(e,t){!$.some((function(e){return!e}))&&e||se(e,t)},de=ia(j,H,d,!0,!1,y,x,W,_),fe=a(de,5),pe=fe[0],me=fe[1],ge=fe[2],he=fe[3],ve=fe[4],be=ge(),ye=Zo($,E),xe=a(ye,7),Ce=xe[0],Se=xe[1],we=xe[2],ke=xe[3],$e=xe[4],Ee=xe[5],Ne=xe[6],Ie=function(e,t){Se(!0),null==U||U(e,{range:Qa(null!=t?t:ke)})},Me=function(e,t){Se(!1),null==Q||Q(e,{range:Qa(null!=t?t:ke)})},Oe=t.useMemo((function(){if(!L)return null;var e=L.disabledTime,t=e?function(t){var n=Qa(ke);return e(t,n)}:void 0;return c(c({},L),{},{disabledTime:t})}),[L,ke]),De=S([B,B],{value:A}),Re=a(De,2),Pe=Re[0],Te=Re[1],He=Pe[ke]||B,je="date"===He&&Oe?"datetime":He,Be=je===B&&"time"!==je,ze=ca(B,He,z,K,!0),Ke=la(i,pe,me,ge,he,$,d,Ce,ce,m),Le=a(Ke,2),Ae=Le[0],Fe=Le[1],We=function(e,t,n,r,o,i){var l=n[n.length-1],s=n.find((function(t){return e[t]}));return function(n,u){var d=a(e,2),f=d[0],p=d[1],m=c(c({},u),{},{from:l!==s?e[s]:void 0});return!(1!==l||!t[0]||!f||Ao(r,o,f,n,m.type)||!r.isAfter(f,n))||!(0!==l||!t[1]||!p||Ao(r,o,p,n,m.type)||!r.isAfter(n,p))||(null==i?void 0:i(n,m))}}(be,$,Ne,j,H,I),_e=xo(be,m,E),Ve=a(_e,2),Ye=Ve[0],qe=Ve[1],Xe=ta(j,H,be,Pe,ce,ke,l,Be,V,Y,null==Oe?void 0:Oe.defaultOpenValue,q,M,D),Ge=a(Xe,2),Ue=Ge[0],Qe=Ge[1],Ze=N((function(e,t,n){var r=go(Pe,ke,t);if(r[0]===Pe[0]&&r[1]===Pe[1]||Te(r),F&&!1!==n){var o=b(be);e&&(o[ke]=e),F(o,r)}})),Je=function(e,t){return go(be,t,e)},et=function(e,t){var n=be;e&&(n=Je(e,ke));var r=Ee(n);he(n),Ae(ke,null===r),null===r?ue(!1,{force:!0}):t||ae.current.focus({index:r})},tt=t.useState(null),nt=a(tt,2),rt=nt[0],ot=nt[1],at=t.useState(null),it=a(at,2),lt=it[0],ct=it[1],st=t.useMemo((function(){return lt||be}),[be,lt]);t.useEffect((function(){ce||ct(null)}),[ce]);var ut=t.useState(0),dt=a(ut,2),ft=dt[0],pt=dt[1],mt=Uo(Z,J),gt=yo(te,ne,re,Qa(ke)),ht=be[ke]||null,vt=N((function(e){return m(e,{activeIndex:ke})})),bt=t.useMemo((function(){var e=u(i,!1);return O(i,[].concat(b(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))}),[i]),yt=t.createElement(Ta,p({},bt,{showNow:ze,showTime:Oe,range:!0,multiplePanel:Be,activeOffset:ft,disabledDate:We,onFocus:function(e){ue(!0),Ie(e)},onBlur:Me,picker:B,mode:He,internalMode:je,onPanelChange:Ze,format:f,value:ht,isInvalid:vt,onChange:null,onSelect:function(e){we("panel");var t=go(be,ke,e);he(t),w||s||l!==je||et(e)},pickerValue:Ue,defaultOpenValue:mo(null==L?void 0:L.defaultOpenValue)[ke],onPickerValueChange:Qe,hoverValue:st,onHover:function(e){ct(e?Je(e,ke):null),ot("cell")},needConfirm:w,onSubmit:et,onOk:ve,presets:mt,onPresetHover:function(e){ct(e),ot("preset")},onPresetSubmit:function(e){Fe(e)&&ue(!1,{force:!0})},onNow:function(e){et(e)},cellRender:gt})),xt=t.useMemo((function(){return{prefixCls:g,locale:H,generateConfig:j,button:ee.button,input:ee.input}}),[g,H,j,ee.button,ee.input]);return C((function(){ce&&void 0!==ke&&Ze(null,B,!1)}),[ce,ke,B]),C((function(){var e=we();ce||"input"!==e||(ue(!1),et(null,!0)),ce||!s||w||"panel"!==e||(ue(!0),et())}),[ce]),t.createElement(so.Provider,{value:xt},t.createElement(fo,p({},bo(i),{popupElement:yt,popupStyle:h.popup,popupClassName:v.popup,visible:ce,onClose:function(){ue(!1)},range:!0}),t.createElement(Ga,p({},i,{ref:ae,suffixIcon:G,activeIndex:Ce||ce?ke:null,activeHelp:!!lt,allHelp:!!lt&&"preset"===rt,focused:Ce,onFocus:function(e,t){we("input"),ue(!0,{inherit:!0}),$e(t),Ie(e,t)},onBlur:function(e,t){ue(!1),Me(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&et(null,!0),null==k||k(e,t)},onSubmit:et,value:st,maskFormat:f,onChange:function(e,t){var n=Je(e,t);he(n)},onInputChange:function(){we("input")},format:d,inputReadOnly:X,disabled:$,open:ce,onOpenChange:ue,onClick:function(e){if(!ae.current.nativeElement.contains(document.activeElement)){var t=$.findIndex((function(e){return!e}));t>=0&&ae.current.focus({index:t})}ue(!0),null==oe||oe(e)},onClear:function(){Fe(null),ue(!1,{force:!0})},invalid:Ye,onInvalid:qe,onActiveOffset:pt}))))}var Ja=t.forwardRef(Za);function ei(e){var r=e.prefixCls,o=e.value,a=e.onRemove,i=e.removeIcon,l=void 0===i?"×":i,c=e.formatDate,s=e.disabled,u=e.maxTagCount,f=e.placeholder,p="".concat(r,"-selector"),m="".concat(r,"-selection"),g="".concat(m,"-overflow");function h(e,r){return t.createElement("span",{className:n("".concat(m,"-item")),title:"string"==typeof e?e:null},t.createElement("span",{className:"".concat(m,"-item-content")},e),!s&&r&&t.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:r,className:"".concat(m,"-item-remove")},l))}return t.createElement("div",{className:p},t.createElement(d,{prefixCls:g,data:o,renderItem:function(e){return h(c(e),(function(t){t&&t.stopPropagation(),a(e)}))},renderRest:function(e){return h("+ ".concat(e.length," ..."))},itemKey:function(e){return c(e)},maxCount:u}),!o.length&&t.createElement("span",{className:"".concat(r,"-selection-placeholder")},f))}var ti=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function ni(e,r){e.id;var o=e.open,i=e.clearIcon,l=e.suffixIcon;e.activeHelp,e.allHelp;var s=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var u=e.locale,d=e.generateConfig,g=e.placeholder,h=e.className,v=e.style,b=e.onClick,y=e.onClear,x=e.internalPicker,C=e.value,S=e.onChange,w=e.onSubmit;e.onInputChange;var k=e.multiple,$=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var E=e.disabled,N=e.invalid;e.inputReadOnly;var I=e.direction;e.onOpenChange;var M=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,D=e.removeIcon,R=m(e,ti),P="rtl"===I,T=t.useContext(so).prefixCls,H=t.useRef(),j=t.useRef();t.useImperativeHandle(r,(function(){return{nativeElement:H.current,focus:function(e){var t;null===(t=j.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=j.current)||void 0===e||e.blur()}}}));var B=Ba(R),z=Ha(c(c({},e),{},{onChange:function(e){S([e])}}),(function(e){return{value:e.valueTexts[0]||"",active:s}})),K=a(z,2),L=K[0],A=K[1],F=!(!i||!C.length||E),W=k?t.createElement(t.Fragment,null,t.createElement(ei,{prefixCls:T,value:C,onRemove:function(e){var t=C.filter((function(t){return t&&!Ao(d,u,t,e,x)}));S(t),o||w()},formatDate:A,maxTagCount:$,disabled:E,removeIcon:D,placeholder:g}),t.createElement("input",{className:"".concat(T,"-multiple-input"),value:C.map(A).join(","),ref:j,readOnly:!0,autoFocus:O}),t.createElement(La,{type:"suffix",icon:l}),F&&t.createElement(Aa,{icon:i,onClear:y})):t.createElement(Va,p({ref:j},L(),{autoFocus:O,suffixIcon:l,clearIcon:F&&t.createElement(Aa,{icon:i,onClear:y}),showActiveCls:!1}));return t.createElement("div",p({},B,{className:n(T,f(f(f(f(f({},"".concat(T,"-multiple"),k),"".concat(T,"-focused"),s),"".concat(T,"-disabled"),E),"".concat(T,"-invalid"),N),"".concat(T,"-rtl"),P),h),style:v,ref:H,onClick:b,onMouseDown:function(e){var t;e.target!==(null===(t=j.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null==M||M(e)}}),W)}var ri=t.forwardRef(ni);function oi(e,n){var r=qo(e),o=a(r,6),i=o[0],l=o[1],s=o[2],d=o[3],f=o[4],m=o[5],g=i,h=g.prefixCls,v=g.styles,y=g.classNames,x=g.order,w=g.defaultValue,k=g.value,$=g.needConfirm,E=g.onChange,I=g.onKeyDown,M=g.disabled,D=g.disabledDate,R=g.minDate,P=g.maxDate,T=g.defaultOpen,H=g.open,j=g.onOpenChange,B=g.locale,z=g.generateConfig,K=g.picker,L=g.showNow,A=g.showToday,F=g.showTime,W=g.mode,_=g.onPanelChange,V=g.onCalendarChange,Y=g.onOk,q=g.multiple,X=g.defaultPickerValue,G=g.pickerValue,U=g.onPickerValueChange,Q=g.inputReadOnly,Z=g.suffixIcon,J=g.removeIcon,ee=g.onFocus,te=g.onBlur,ne=g.presets,re=g.components,oe=g.cellRender,ae=g.dateRender,ie=g.monthCellRender,le=g.onClick,ce=Go(n);function se(e){return null===e?null:q?e:e[0]}var ue=pa(z,B,l),de=Xo(H,T,[M],j),fe=a(de,2),pe=fe[0],me=fe[1],ge=ia(z,B,d,!1,x,w,k,(function(e,t,n){if(V){var r=c({},n);delete r.range,V(se(e),se(t),r)}}),(function(e){null==Y||Y(se(e))})),he=a(ge,5),ve=he[0],be=he[1],ye=he[2],xe=he[3],Ce=he[4],Se=ye(),we=Zo([M]),ke=a(we,4),$e=ke[0],Ee=ke[1],Ne=ke[2],Ie=ke[3],Me=function(e){Ee(!0),null==ee||ee(e,{})},Oe=function(e){Ee(!1),null==te||te(e,{})},De=S(K,{value:W}),Re=a(De,2),Pe=Re[0],Te=Re[1],He="date"===Pe&&F?"datetime":Pe,je=ca(K,Pe,L,A),Be=E&&function(e,t){E(se(e),se(t))},ze=la(c(c({},i),{},{onChange:Be}),ve,be,ye,xe,[],d,$e,pe,m),Ke=a(ze,2)[1],Le=xo(Se,m),Ae=a(Le,2),Fe=Ae[0],We=Ae[1],_e=t.useMemo((function(){return Fe.some((function(e){return e}))}),[Fe]),Ve=ta(z,B,Se,[Pe],pe,Ie,l,!1,X,G,mo(null==F?void 0:F.defaultOpenValue),(function(e,t){if(U){var n=c(c({},t),{},{mode:t.mode[0]});delete n.range,U(e[0],n)}}),R,P),Ye=a(Ve,2),qe=Ye[0],Xe=Ye[1],Ge=N((function(e,t,n){if(Te(t),_&&!1!==n){var r=e||Se[Se.length-1];_(r,t)}})),Ue=function(){Ke(ye()),me(!1,{force:!0})},Qe=t.useState(null),Ze=a(Qe,2),Je=Ze[0],et=Ze[1],tt=t.useState(null),nt=a(tt,2),rt=nt[0],ot=nt[1],at=t.useMemo((function(){var e=[rt].concat(b(Se)).filter((function(e){return e}));return q?e:e.slice(0,1)}),[Se,rt,q]),it=t.useMemo((function(){return!q&&rt?[rt]:Se.filter((function(e){return e}))}),[Se,rt,q]);t.useEffect((function(){pe||ot(null)}),[pe]);var lt=Uo(ne),ct=function(e){var t=q?ue(ye(),e):[e];Ke(t)&&!q&&me(!1,{force:!0})},st=yo(oe,ae,ie),ut=t.useMemo((function(){var e=u(i,!1),t=O(i,[].concat(b(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return c(c({},t),{},{multiple:i.multiple})}),[i]),dt=t.createElement(Ta,p({},ut,{showNow:je,showTime:F,disabledDate:D,onFocus:function(e){me(!0),Me(e)},onBlur:Oe,picker:K,mode:Pe,internalMode:He,onPanelChange:Ge,format:f,value:Se,isInvalid:m,onChange:null,onSelect:function(e){Ne("panel");var t=q?ue(ye(),e):[e];xe(t),$||s||l!==He||Ue()},pickerValue:qe,defaultOpenValue:null==F?void 0:F.defaultOpenValue,onPickerValueChange:Xe,hoverValue:at,onHover:function(e){ot(e),et("cell")},needConfirm:$,onSubmit:Ue,onOk:Ce,presets:lt,onPresetHover:function(e){ot(e),et("preset")},onPresetSubmit:ct,onNow:function(e){ct(e)},cellRender:st})),ft=t.useMemo((function(){return{prefixCls:h,locale:B,generateConfig:z,button:re.button,input:re.input}}),[h,B,z,re.button,re.input]);return C((function(){pe&&void 0!==Ie&&Ge(null,K,!1)}),[pe,Ie,K]),C((function(){var e=Ne();pe||"input"!==e||(me(!1),Ue()),pe||!s||$||"panel"!==e||(me(!0),Ue())}),[pe]),t.createElement(so.Provider,{value:ft},t.createElement(fo,p({},bo(i),{popupElement:dt,popupStyle:v.popup,popupClassName:y.popup,visible:pe,onClose:function(){me(!1)}}),t.createElement(ri,p({},i,{ref:ce,suffixIcon:Z,removeIcon:J,activeHelp:!!rt,allHelp:!!rt&&"preset"===Je,focused:$e,onFocus:function(e){Ne("input"),me(!0,{inherit:!0}),Me(e)},onBlur:function(e){me(!1),Oe(e)},onKeyDown:function(e,t){"Tab"===e.key&&Ue(),null==I||I(e,t)},onSubmit:Ue,value:it,maskFormat:f,onChange:function(e){xe(e)},onInputChange:function(){Ne("input")},internalPicker:l,format:d,inputReadOnly:Q,disabled:M,open:pe,onOpenChange:me,onClick:function(e){M||ce.current.nativeElement.contains(document.activeElement)||ce.current.focus(),me(!0),null==le||le(e)},onClear:function(){Ke(null),me(!1,{force:!0})},invalid:_e,onInvalid:function(e){We(e,0)}}))))}var ai=t.forwardRef(oi);const ii=t.createContext(null),li=ii.Provider,ci=t.createContext(null),si=ci.Provider;var ui=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],di=t.forwardRef((function(e,r){var o=e.prefixCls,i=void 0===o?"rc-checkbox":o,l=e.className,s=e.style,u=e.checked,d=e.disabled,g=e.defaultChecked,h=void 0!==g&&g,v=e.type,b=void 0===v?"checkbox":v,y=e.title,x=e.onChange,C=m(e,ui),w=t.useRef(null),k=S(h,{value:u}),$=a(k,2),E=$[0],N=$[1];t.useImperativeHandle(r,(function(){return{focus:function(e){var t;null===(t=w.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=w.current)||void 0===e||e.blur()},input:w.current}}));var I=n(i,l,f(f({},"".concat(i,"-checked"),E),"".concat(i,"-disabled"),d));return t.createElement("span",{className:I,title:y,style:s},t.createElement("input",p({},C,{className:"".concat(i,"-input"),ref:w,onChange:function(t){d||("checked"in e||N(t.target.checked),null==x||x({target:c(c({},e),{},{type:b,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:d,checked:!!E,type:b})),t.createElement("span",{className:"".concat(i,"-inner")}))}));const fi=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},H(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},pi=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:h,radioBgColor:v,calc:b}=e,y=`${t}-inner`,x=b(o).sub(b(4).mul(2)),C=b(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},H(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${_(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},H(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:Object.assign({},ke(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:C,height:C,marginBlockStart:b(1).mul(o).div(-2).equal(),marginInlineStart:b(1).mul(o).div(-2).equal(),backgroundColor:h,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${a} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(x).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},mi=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:m,paddingXS:g,borderRadius:h,borderRadiusSM:v,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:x,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:k,colorPrimary:$,colorPrimaryHover:E,colorPrimaryActive:N,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:O,calc:D}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:_(D(n).sub(D(o).mul(2)).equal()),background:d,border:`${_(o)} ${a} ${i}`,borderBlockStartWidth:D(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:D(o).mul(-1).equal(),insetInlineStart:D(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${_(o)} ${a} ${i}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:_(D(p).sub(D(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:D(g).sub(o).equal(),paddingBlock:0,lineHeight:_(D(m).sub(D(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":Object.assign({},ke(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:y,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:I,borderColor:I,"&:hover":{color:x,background:M,borderColor:M},"&:active":{color:x,background:O,borderColor:O}},"&-disabled":{color:C,backgroundColor:S,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:w,borderColor:i,boxShadow:"none"}}}},gi=Y("Radio",(e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${_(n)} ${t}`,o=V(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[fi(o),pi(o),mi(o)]}),(e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:i,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e;return{radioSize:a,dotSize:t?a-8:a-2*(4+o),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?l:d}}),{unitless:{radioSize:!0,dotSize:!0}});var hi=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o,a;const i=t.useContext(ii),l=t.useContext(ci),{getPrefixCls:c,direction:u,radio:d}=t.useContext(P),f=t.useRef(null),p=s(r,f),{isFormItemInput:m}=t.useContext(oe),g=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null==i?void 0:i.onChange)||void 0===r||r.call(i,t)},{prefixCls:h,className:v,rootClassName:b,children:y,style:x,title:C}=e,S=hi(e,["prefixCls","className","rootClassName","children","style","title"]),w=c("radio",h),k="button"===((null==i?void 0:i.optionType)||l),$=k?`${w}-button`:w,E=re(w),[N,I,M]=gi(w,E),O=Object.assign({},S),D=t.useContext(ie);i&&(O.name=i.name,O.onChange=g,O.checked=e.value===i.value,O.disabled=null!==(o=O.disabled)&&void 0!==o?o:i.disabled),O.disabled=null!==(a=O.disabled)&&void 0!==a?a:D;const R=n(`${$}-wrapper`,{[`${$}-wrapper-checked`]:O.checked,[`${$}-wrapper-disabled`]:O.disabled,[`${$}-wrapper-rtl`]:"rtl"===u,[`${$}-wrapper-in-form-item`]:m},null==d?void 0:d.className,v,b,I,M,E);return N(t.createElement($e,{component:"Radio",disabled:O.disabled},t.createElement("label",{className:R,style:Object.assign(Object.assign({},null==d?void 0:d.style),x),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C},t.createElement(di,Object.assign({},O,{className:n(O.className,!k&&Ee),type:"radio",prefixCls:$,ref:p})),void 0!==y?t.createElement("span",null,y):null)))},bi=t.forwardRef(vi),yi=t.forwardRef(((e,r)=>{const{getPrefixCls:o,direction:a}=t.useContext(P),[i,l]=S(e.defaultValue,{value:e.value}),{prefixCls:c,className:s,rootClassName:d,options:f,buttonStyle:p="outline",disabled:m,children:g,size:h,style:v,id:b,onMouseEnter:y,onMouseLeave:x,onFocus:C,onBlur:w}=e,k=o("radio",c),$=`${k}-group`,E=re(k),[N,I,M]=gi(k,E);let O=g;f&&f.length>0&&(O=f.map((e=>"string"==typeof e||"number"==typeof e?t.createElement(bi,{key:e.toString(),prefixCls:k,disabled:m,value:e,checked:i===e},e):t.createElement(bi,{key:`radio-group-value-options-${e.value}`,prefixCls:k,disabled:e.disabled||m,value:e.value,checked:i===e.value,title:e.title,style:e.style,id:e.id,required:e.required},e.label))));const D=ae(h),R=n($,`${$}-${p}`,{[`${$}-${D}`]:D,[`${$}-rtl`]:"rtl"===a},s,d,I,M,E);return N(t.createElement("div",Object.assign({},u(e,{aria:!0,data:!0}),{className:R,style:v,onMouseEnter:y,onMouseLeave:x,onFocus:C,onBlur:w,id:b,ref:r}),t.createElement(li,{value:{onChange:t=>{const n=i,r=t.target.value;"value"in e||l(r);const{onChange:o}=e;o&&r!==n&&o(t)},value:i,disabled:e.disabled,name:e.name,optionType:e.optionType}},O)))})),xi=t.memo(yi);var Ci=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:r}=t.useContext(P),{prefixCls:o}=e,a=Ci(e,["prefixCls"]),i=r("radio",o);return t.createElement(si,{value:"button"},t.createElement(bi,Object.assign({prefixCls:i},a,{type:"radio",ref:n})))},wi=t.forwardRef(Si),ki=bi;ki.Button=wi,ki.Group=xi,ki.__ANT_RADIO=!0;const $i=ki,Ei=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",a=or(e);return[{[`${n}-multiple${o}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:_(a.itemLineHeight)}}}]},Ni=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=V(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=V(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Ei(o,"small"),Ei(e),Ei(a,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},ar(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Ii=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:a,cellHoverBg:i,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:_(r),borderRadius:o,transition:`background ${a}`},[`&:hover:not(${t}-in-view),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${_(l)} ${c} ${s}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:f,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},Mi=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:a,cellWidth:i,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:g,colorSplit:h,pickerControlIconBorderWidth:v,colorIcon:b,textHeight:y,motionDurationMid:x,colorIconHover:C,fontWeightStrong:S,cellHeight:w,pickerCellPaddingVertical:k,colorTextDisabled:$,colorText:E,fontSize:N,motionDurationSlow:I,withoutTimeCellHeight:M,pickerQuarterPanelContentHeight:O,borderRadiusSM:D,colorTextLightSolid:R,cellHoverBg:P,timeColumnHeight:T,timeColumnWidth:H,timeCellHeight:j,controlItemBgActive:B,marginXXS:z,pickerDatePanelPaddingHorizontal:K,pickerControlIconMargin:L}=e,A=e.calc(i).mul(7).add(e.calc(K).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{direction:"rtl",[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:A},"&-header":{display:"flex",padding:`0 ${_(c)}`,color:g,borderBottom:`${_(d)} ${f} ${h}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:_(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:C},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:_(y),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:a,height:a,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:v,borderBlockEndWidth:0,borderInlineStartWidth:v,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:L,insetInlineStart:L,display:"inline-block",width:a,height:a,border:"0 solid currentcolor",borderBlockStartWidth:v,borderBlockEndWidth:0,borderInlineStartWidth:v,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(k).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${_(k)} 0`,color:$,cursor:"pointer","&-in-view":{color:E}},Ii(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(M).mul(4).equal()},[r]:{padding:`0 ${_(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:O}},"&-decade-panel":{[r]:{padding:`0 ${_(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${_(c)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${_(c)} ${_(K)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${x}`},"&:first-child:before":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child:before":{borderStartEndRadius:D,borderEndEndRadius:D}},"&:hover td":{"&:before":{background:P}},"&-range-start td,\n &-range-end td,\n &-selected td,\n &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new Ne(R).setAlpha(.5).toHexString()},[r]:{color:R}}},"&-range-hover td:before":{background:B}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${_(c)} ${_(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${_(d)} ${f} ${h}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${I}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:T},"&-column":{flex:"1 0 auto",width:H,margin:`${_(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc("100%").sub(j).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${_(d)} ${f} ${h}`},"&-active":{background:new Ne(B).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:z,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(H).sub(e.calc(z).mul(2)).equal(),height:j,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(H).sub(j).div(2).equal(),color:E,lineHeight:_(j),borderRadius:D,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:B}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:$,background:"transparent",cursor:"not-allowed"}}}}}}}}},Oi=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:a,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${_(r)} ${s} ${u}`,"&-extra":{padding:`0 ${_(o)}`,lineHeight:_(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${_(r)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:_(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:_(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:i,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Di=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},Me(e)),Oe(e)),De(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Ri=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),a=e.max(e.calc(t).sub(o).div(2).equal(),0),i=e.max(e.calc(t).sub(o).sub(a).equal(),0);return{padding:`${_(a)} ${_(r)} ${_(i)}`}},Pi=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},Ti=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:a,lineType:i,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:f,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:g,paddingXS:h,marginXS:v,colorTextDescription:b,lineWidthBold:y,colorPrimary:x,motionDurationSlow:C,zIndexPopup:S,paddingXXS:w,sizePopupArrow:k,colorBgElevated:$,borderRadiusLG:E,boxShadowSecondary:N,borderRadiusSM:I,colorSplit:M,cellHoverBg:O,presetsWidth:D,presetsMaxWidth:R,boxShadowPopoverArrow:P,fontHeight:T,fontHeightLG:W,lineHeightLG:V}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},H(e)),Ri(e,r,T,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},Pe(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},Ri(e,f,W,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:V}}),"&-small":Object.assign({},Ri(e,m,T,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(h).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(a).mul(-1).equal(),height:y,background:x,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${_(h)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},H(e)),Mi(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:B},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:j},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:K},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:z},[`${t}-panel > ${t}-time-panel`]:{paddingTop:w},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`left ${C} ease-out`},Te(e,$,P)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:$,borderRadius:E,boxShadow:N,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:D,maxWidth:R,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:h,borderInlineEnd:`${_(a)} ${i} ${M}`,li:Object.assign(Object.assign({},L),{borderRadius:I,paddingInline:h,paddingBlock:e.calc(m).sub(T).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:v},"&:hover":{background:O}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content,\n table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${_(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},A(e,"slide-up"),A(e,"slide-down"),F(e,"move-up"),F(e,"move-down")]},Hi=Y("DatePicker",(e=>{const t=V(Re(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Oi(t),Ti(t),Di(t),Pi(t),Ni(t),q(e,{focusElCls:`${e.componentCls}-focused`})]}),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ie(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:a,lineWidth:i}=e,l=2*a,c=2*i,s=Math.min(n-l,n-c),u=Math.min(r-l,r-c),d=Math.min(o-l,o-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Ne(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Ne(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),me(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})));function ji(e,t){return e[t]}var Bi=["children"];function zi(e,t){return"".concat(e,"-").concat(t)}function Ki(e,t){return null!=e?e:t}function Li(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function Ai(e){return function e(t){return R(t).map((function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return h(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,a=m(r,Bi),i=c({key:n},a),l=e(o);return l.length&&(i.children=l),i})).filter((function(e){return e}))}(e)}function Fi(e,t,n){var r=Li(n),o=r._title,a=r.key,i=r.children,l=new Set(!0===t?[]:t),s=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(u,d){for(var f,p=zi(r?r.pos:"0",d),m=Ki(u[a],p),g=0;g1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,i=t.externalGetKey,l=t.childrenPropName,c=t.fieldNames,s=i||(arguments.length>2?arguments[2]:void 0),u={},d={},f={posEntities:u,keyEntities:d};return n&&(f=n(f)||f),function(e,t,n){var r,a=("object"===o(n)?n:{externalGetKey:n})||{},i=a.childrenPropName,l=a.externalGetKey,c=Li(a.fieldNames),s=c.key,u=c.children,d=i||u;l?"string"==typeof l?r=function(e){return e[l]}:"function"==typeof l&&(r=function(e){return l(e)}):r=function(e,t){return Ki(e[s],t)},function n(o,a,i,l){var c=o?o[d]:e,s=o?zi(i.pos,a):"0",u=o?[].concat(b(l),[o]):[];if(o){var f=r(o,s),p={node:o,index:a,pos:s,key:f,parentPos:i.node?i.pos:null,level:i.level+1,nodes:u};t(p)}c&&c.forEach((function(e,t){n(e,t,{node:o,pos:s,level:i?i.level+1:-1},u)}))}(null)}(e,(function(e){var t=e.node,n=e.index,o=e.pos,a=e.key,i=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:a,pos:o,level:l},s=Ki(a,o);u[o]=c,d[s]=c,c.parent=u[i],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:s,childrenPropName:l,fieldNames:c}),a&&a(f),f}function _i(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=ji(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function Vi(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,s=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,p=e.active,m=e.eventKey,g=c(c({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:p,key:m});return"props"in g||Object.defineProperty(g,"props",{get:function(){return h(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}function Yi(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function qi(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function Xi(e,t,n,r){var o,a=[];o=r||qi;var i,l=new Set(e.filter((function(e){var t=!!ji(n,e);return t||a.push(e),t}))),c=new Map,s=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,o=c.get(r);o||(o=new Set,c.set(r,o)),o.add(t),s=Math.max(s,r)})),h(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),i=!0===t?function(e,t,n,r){for(var o=new Set(e),a=new Set,i=0;i<=n;i+=1)(t.get(i)||new Set).forEach((function(e){var t=e.key,n=e.node,a=e.children,i=void 0===a?[]:a;o.has(t)&&!r(n)&&i.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var i=!0,c=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);i&&!n&&(i=!1),c||!n&&!a.has(t)||(c=!0)})),i&&o.add(t.key),c&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Yi(a,o))}}(l,c,s,o):function(e,t,n,r,o){for(var a=new Set(e),i=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;a.has(t)||i.has(t)||o(n)||l.filter((function(e){return!o(e.node)})).forEach((function(e){a.delete(e.key)}))}));i=new Set;for(var c=new Set,s=r;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!c.has(e.parent.key))if(o(e.parent.node))c.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=a.has(t);r&&!n&&(r=!1),l||!n&&!i.has(t)||(l=!0)})),r||a.delete(t.key),l&&i.add(t.key),c.add(t.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Yi(i,a))}}(l,t.halfCheckedKeys,c,s,o),i}const Gi=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},H(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},H(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},H(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},ke(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${_(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Ui(e,t){const n=V(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Gi(n)]}const Qi=Y("Checkbox",((e,t)=>{let{prefixCls:n}=t;return[Ui(n,e)]})),Zi=r.createContext(null);var Ji=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o;const{prefixCls:a,className:i,rootClassName:l,children:c,indeterminate:s=!1,style:u,onMouseEnter:d,onMouseLeave:f,skipGroup:p=!1,disabled:m}=e,g=Ji(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:v,checkbox:b}=t.useContext(P),y=t.useContext(Zi),{isFormItemInput:x}=t.useContext(oe),C=t.useContext(ie),S=null!==(o=(null==y?void 0:y.disabled)||m)&&void 0!==o?o:C,w=t.useRef(g.value);t.useEffect((()=>{null==y||y.registerValue(g.value)}),[]),t.useEffect((()=>{if(!p)return g.value!==w.current&&(null==y||y.cancelValue(w.current),null==y||y.registerValue(g.value),w.current=g.value),()=>null==y?void 0:y.cancelValue(g.value)}),[g.value]);const k=h("checkbox",a),$=re(k),[E,N,I]=Qi(k,$),M=Object.assign({},g);y&&!p&&(M.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),y.toggleOption&&y.toggleOption({label:c,value:g.value})},M.name=y.name,M.checked=y.value.includes(g.value));const O=n(`${k}-wrapper`,{[`${k}-rtl`]:"rtl"===v,[`${k}-wrapper-checked`]:M.checked,[`${k}-wrapper-disabled`]:S,[`${k}-wrapper-in-form-item`]:x},null==b?void 0:b.className,i,l,I,$,N),D=n({[`${k}-indeterminate`]:s},Ee,N),R=s?"mixed":void 0;return E(t.createElement($e,{component:"Checkbox",disabled:S},t.createElement("label",{className:O,style:Object.assign(Object.assign({},null==b?void 0:b.style),u),onMouseEnter:d,onMouseLeave:f},t.createElement(di,Object.assign({"aria-checked":R},M,{prefixCls:k,className:D,disabled:S,ref:r})),void 0!==c&&t.createElement("span",null,c))))},tl=t.forwardRef(el);var nl=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{defaultValue:o,children:a,options:i=[],prefixCls:l,className:c,rootClassName:s,style:u,onChange:d}=e,f=nl(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:m}=t.useContext(P),[g,h]=t.useState(f.value||o||[]),[v,y]=t.useState([]);t.useEffect((()=>{"value"in f&&h(f.value||[])}),[f.value]);const x=t.useMemo((()=>i.map((e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e))),[i]),C=p("checkbox",l),S=`${C}-group`,w=re(C),[k,$,E]=Qi(C,w),N=O(f,["value","disabled"]),I=i.length?x.map((e=>t.createElement(tl,{prefixCls:C,key:e.value.toString(),disabled:"disabled"in e?e.disabled:f.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:`${S}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label))):a,M={toggleOption:e=>{const t=g.indexOf(e.value),n=b(g);-1===t?n.push(e.value):n.splice(t,1),"value"in f||h(n),null==d||d(n.filter((e=>v.includes(e))).sort(((e,t)=>x.findIndex((t=>t.value===e))-x.findIndex((e=>e.value===t)))))},value:g,disabled:f.disabled,name:f.name,registerValue:e=>{y((t=>[].concat(b(t),[e])))},cancelValue:e=>{y((t=>t.filter((t=>t!==e))))}},D=n(S,{[`${S}-rtl`]:"rtl"===m},c,s,E,w,$);return k(t.createElement("div",Object.assign({className:D,style:u},N,{ref:r}),t.createElement(Zi.Provider,{value:M},I)))})),ol=tl;ol.Group=rl,ol.__ANT_CHECKBOX=!0;const al=ol;const il={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var ll=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:il}))}; +/**![up](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg5MC41IDc1NS4zTDUzNy45IDI2OS4yYy0xMi44LTE3LjYtMzktMTcuNi01MS43IDBMMTMzLjUgNzU1LjNBOCA4IDAgMDAxNDAgNzY4aDc1YzUuMSAwIDkuOS0yLjUgMTIuOS02LjZMNTEyIDM2OS44bDI4NC4xIDM5MS42YzMgNC4xIDcuOCA2LjYgMTIuOSA2LjZoNzVjNi41IDAgMTAuMy03LjQgNi41LTEyLjd6IiAvPjwvc3ZnPg==) */const cl=t.forwardRef(ll);function sl(){return"function"==typeof BigInt}function ul(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function dl(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";"0"===a&&"0"===i&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:"".concat(l).concat(r)}}function fl(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function pl(e){var t=String(e);if(fl(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!=r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&gl(t)?t.length-t.indexOf(".")-1:0}function ml(e){var t=String(e);if(fl(e)){if(e>Number.MAX_SAFE_INTEGER)return String(sl()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":dl("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),vl=function(){function e(t){$(this,e),f(this,"origin",""),f(this,"number",void 0),f(this,"empty",void 0),ul(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return k(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":ml(this.number):this.origin}}]),e}();function bl(e){return sl()?new hl(e):new vl(e)}function yl(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=dl(e),a=o.negativeStr,i=o.integerStr,l=o.decimalStr,c="".concat(t).concat(l),s="".concat(a).concat(i);if(n>=0){var u=Number(l[n]);return u>=5&&!r?yl(bl(e).add("".concat(a,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}var xl=function(){var e=t.useState(!1),n=a(e,2),r=n[0],o=n[1];return C((function(){o(y())}),[]),r};function Cl(r){var o=r.prefixCls,a=r.upNode,i=r.downNode,l=r.upDisabled,c=r.downDisabled,s=r.onStep,u=t.useRef(),d=t.useRef([]),m=t.useRef();m.current=s;var g=function(){clearTimeout(u.current)},h=function(e,t){e.preventDefault(),g(),m.current(t),u.current=setTimeout((function e(){m.current(t),u.current=setTimeout(e,200)}),600)};if(t.useEffect((function(){return function(){g(),d.current.forEach((function(t){return e.cancel(t)}))}}),[]),xl())return null;var v="".concat(o,"-handler"),b=n(v,"".concat(v,"-up"),f({},"".concat(v,"-up-disabled"),l)),y=n(v,"".concat(v,"-down"),f({},"".concat(v,"-down-disabled"),c)),x=function(){return d.current.push(e(g))},C={unselectable:"on",role:"button",onMouseUp:x,onMouseLeave:x};return t.createElement("div",{className:"".concat(v,"-wrap")},t.createElement("span",p({},C,{onMouseDown:function(e){h(e,!0)},"aria-label":"Increase Value","aria-disabled":l,className:b}),a||t.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-up-inner")})),t.createElement("span",p({},C,{onMouseDown:function(e){h(e,!1)},"aria-label":"Decrease Value","aria-disabled":c,className:y}),i||t.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-down-inner")})))}function Sl(e){var t="number"==typeof e?ml(e):dl(e).fullStr;return t.includes(".")?dl(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var wl=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],kl=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],$l=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},El=function(e){var t=bl(e);return t.isInvalidate()?null:t},Nl=t.forwardRef((function(r,i){var l,c=r.prefixCls,u=void 0===c?"rc-input-number":c,d=r.className,g=r.style,v=r.min,b=r.max,y=r.step,x=void 0===y?1:y,C=r.defaultValue,S=r.value,w=r.disabled,k=r.readOnly,$=r.upHandler,E=r.downHandler,N=r.keyboard,I=r.changeOnWheel,M=void 0!==I&&I,O=r.controls,D=void 0===O||O;r.classNames;var R=r.stringMode,P=r.parser,T=r.formatter,H=r.precision,j=r.decimalSeparator,B=r.onChange,z=r.onInput,K=r.onPressEnter,L=r.onStep,A=r.changeOnBlur,F=void 0===A||A,W=m(r,wl),_="".concat(u,"-input"),V=t.useRef(null),Y=t.useState(!1),q=a(Y,2),X=q[0],G=q[1],U=t.useRef(!1),Q=t.useRef(!1),Z=t.useRef(!1),J=t.useState((function(){return bl(null!=S?S:C)})),ee=a(J,2),te=ee[0],ne=ee[1];var re=t.useCallback((function(e,t){if(!t)return H>=0?H:Math.max(pl(e),pl(x))}),[H,x]),oe=t.useCallback((function(e){var t=String(e);if(P)return P(t);var n=t;return j&&(n=n.replace(j,".")),n.replace(/[^\w.-]+/g,"")}),[P,j]),ae=t.useRef(""),ie=t.useCallback((function(e,t){if(T)return T(e,{userTyping:t,input:String(ae.current)});var n="number"==typeof e?ml(e):e;if(!t){var r=re(n,t);if(gl(n)&&(j||r>=0))n=yl(n,j||".",r)}return n}),[T,re,j]),le=t.useState((function(){var e=null!=C?C:S;return te.isInvalidate()&&["string","number"].includes(o(e))?Number.isNaN(e)?"":e:ie(te.toString(),!1)})),ce=a(le,2),se=ce[0],ue=ce[1];function de(e,t){ue(ie(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ae.current=se;var fe,pe,me,ge,he,ve=t.useMemo((function(){return El(b)}),[b,H]),be=t.useMemo((function(){return El(v)}),[v,H]),ye=t.useMemo((function(){return!(!ve||!te||te.isInvalidate())&&ve.lessEquals(te)}),[ve,te]),xe=t.useMemo((function(){return!(!be||!te||te.isInvalidate())&&te.lessEquals(be)}),[be,te]),Ce=(fe=V.current,pe=X,me=t.useRef(null),[function(){try{var e=fe.selectionStart,t=fe.selectionEnd,n=fe.value,r=n.substring(0,e),o=n.substring(t);me.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:o}}catch(Gr){}},function(){if(fe&&me.current&&pe)try{var e=fe.value,t=me.current,n=t.beforeTxt,r=t.afterTxt,o=t.start,a=e.length;if(e.endsWith(r))a=e.length-me.current.afterTxt.length;else if(e.startsWith(n))a=n.length;else{var i=n[o-1],l=e.indexOf(i,o-1);-1!==l&&(a=l+1)}fe.setSelectionRange(a,a)}catch(Gr){h(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Gr.message))}}]),we=a(Ce,2),ke=we[0],$e=we[1],Ee=function(e){return ve&&!e.lessEquals(ve)?ve:be&&!be.lessEquals(e)?be:null},Ne=function(e){return!Ee(e)},Ie=function(e,t){var n,r=e,o=Ne(r)||r.isEmpty();if(r.isEmpty()||t||(r=Ee(r)||r,o=!0),!k&&!w&&o){var a=r.toString(),i=re(a,t);return i>=0&&(r=bl(yl(a,".",i)),Ne(r)||(r=bl(yl(a,".",i,!0)))),r.equals(te)||(n=r,void 0===S&&ne(n),null==B||B(r.isEmpty()?null:$l(R,r)),void 0===S&&de(r,t)),r}return te},Me=(ge=t.useRef(0),he=function(){e.cancel(ge.current)},t.useEffect((function(){return he}),[]),function(t){he(),ge.current=e((function(){t()}))}),Oe=function e(t){if(ke(),ae.current=t,ue(t),!Q.current){var n=bl(oe(t));n.isNaN()||Ie(n,!0)}null==z||z(t),Me((function(){var n=t;P||(n=t.replace(/。/g,".")),n!==t&&e(n)}))},De=function(e){var t;if(!(e&&ye||!e&&xe)){U.current=!1;var n=bl(Z.current?Sl(x):x);e||(n=n.negate());var r=(te||bl(0)).add(n.toString()),o=Ie(r,!1);null==L||L($l(R,o),{offset:Z.current?Sl(x):x,type:e?"up":"down"}),null===(t=V.current)||void 0===t||t.focus()}},Re=function(e){var t=bl(oe(se)),n=t;n=t.isNaN()?Ie(te,e):Ie(t,e),void 0!==S?de(te,!1):n.isNaN()||de(n,!1)};t.useEffect((function(){if(M&&X){var e=function(e){De(e.deltaY<0),e.preventDefault()},t=V.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}}));return Se((function(){te.isInvalidate()||de(te,!1)}),[H,T]),Se((function(){var e=bl(S);ne(e);var t=bl(oe(se));e.equals(t)&&U.current&&!T||de(e,U.current)}),[S]),Se((function(){T&&$e()}),[se]),t.createElement("div",{className:n(u,d,(l={},f(l,"".concat(u,"-focused"),X),f(l,"".concat(u,"-disabled"),w),f(l,"".concat(u,"-readonly"),k),f(l,"".concat(u,"-not-a-number"),te.isNaN()),f(l,"".concat(u,"-out-of-range"),!te.isInvalidate()&&!Ne(te)),l)),style:g,onFocus:function(){G(!0)},onBlur:function(){F&&Re(!1),G(!1),U.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;U.current=!0,Z.current=n,"Enter"===t&&(Q.current||(U.current=!1),Re(!1),null==K||K(e)),!1!==N&&!Q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(De("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){U.current=!1,Z.current=!1},onCompositionStart:function(){Q.current=!0},onCompositionEnd:function(){Q.current=!1,Oe(V.current.value)},onBeforeInput:function(){U.current=!0}},D&&t.createElement(Cl,{prefixCls:u,upNode:$,downNode:E,upDisabled:ye,downDisabled:xe,onStep:De}),t.createElement("div",{className:"".concat(_,"-wrap")},t.createElement("input",p({autoComplete:"off",role:"spinbutton","aria-valuemin":v,"aria-valuemax":b,"aria-valuenow":te.isInvalidate()?null:te.toString(),step:x},W,{ref:s(V,i),className:_,value:se,onChange:function(e){Oe(e.target.value)},disabled:w,readOnly:k}))))})),Il=t.forwardRef((function(e,n){var r=e.disabled,o=e.style,a=e.prefixCls,i=e.value,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,g=e.classNames,h=m(e,kl),v=t.useRef(null);return t.createElement(je,{className:f,triggerFocus:function(e){v.current&&Be(v.current,e)},prefixCls:a,value:i,disabled:r,style:o,prefix:l,suffix:c,addonAfter:d,addonBefore:u,classNames:g,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},t.createElement(Nl,p({prefixCls:a,disabled:r,ref:s(v,n),className:null==g?void 0:g.input},h)))}));Il.displayName="InputNumber";const Ml=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const a="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${n}-handler-up`]:{borderStartEndRadius:a},[`${n}-handler-down`]:{borderEndEndRadius:a}}}},Ol=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,fontSizeLG:a,controlHeightLG:i,controlHeightSM:l,colorError:c,paddingInlineSM:s,paddingBlockSM:u,paddingBlockLG:d,paddingInlineLG:f,colorTextDescription:p,motionDurationMid:m,handleHoverColor:g,paddingInline:h,paddingBlock:v,handleBg:b,handleActiveBg:y,colorTextDisabled:x,borderRadiusSM:C,borderRadiusLG:S,controlWidth:w,handleOpacity:k,handleBorderColor:$,filledHandleBg:E,lineHeightLG:N,calc:I}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H(e)),ze(e)),{display:"inline-block",width:w,margin:0,padding:0,borderRadius:o}),Me(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${_(n)} ${r} ${$}`}}})),Oe(e,{[`${t}-handler-wrap`]:{background:E,[`${t}-handler-down`]:{borderBlockStart:`${_(n)} ${r} ${$}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),De(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:N,borderRadius:S,[`input${t}-input`]:{height:I(i).sub(I(n).mul(2)).equal(),padding:`${_(d)} ${_(f)}`}},"&-sm":{padding:0,borderRadius:C,[`input${t}-input`]:{height:I(l).sub(I(n).mul(2)).equal(),padding:`${_(u)} ${_(s)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},H(e)),Ke(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},Le(e)),Ae(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},H(e)),{width:"100%",padding:`${_(v)} ${_(h)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${m} linear`,appearance:"textfield",fontSize:"inherit"}),Pe(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:Object.assign(Object.assign(Object.assign({[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:k,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${m} linear ${m}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${_(n)} ${r} ${$}`,transition:`all ${m} linear`,"&:active":{background:y},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},W()),{color:p,transition:`all ${m} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Ml(e,"lg")),Ml(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:x}})}]},Dl=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:a,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${_(n)} 0`}},ze(e)),{position:"relative",display:"inline-flex",width:a,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${_(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${_(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:o}}})}},Rl=Y("InputNumber",(e=>{const t=V(e,Re(e));return[Ol(t),Dl(t),q(t)]}),(e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto";return Object.assign(Object.assign({},Ie(e)),{controlWidth:90,handleWidth:e.controlHeightSM-2*e.lineWidth,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Ne(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0})}),{unitless:{handleOpacity:!0}});var Pl=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:o,direction:a}=t.useContext(P),i=t.useRef(null);t.useImperativeHandle(r,(()=>i.current));const{className:l,rootClassName:c,size:s,disabled:u,prefixCls:d,addonBefore:f,addonAfter:p,prefix:m,bordered:g,readOnly:h,status:v,controls:b,variant:y}=e,x=Pl(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls","variant"]),C=o("input-number",d),S=re(C),[w,k,$]=Rl(C,S),{compactSize:E,compactItemClassnames:N}=te(C,a);let I=t.createElement(cl,{className:`${C}-handler-up-inner`}),M=t.createElement(Z,{className:`${C}-handler-down-inner`});const O="boolean"==typeof b?b:void 0;"object"==typeof b&&(I=void 0===b.upIcon?I:t.createElement("span",{className:`${C}-handler-up-inner`},b.upIcon),M=void 0===b.downIcon?M:t.createElement("span",{className:`${C}-handler-down-inner`},b.downIcon));const{hasFeedback:D,status:R,isFormItemInput:T,feedbackIcon:H}=t.useContext(oe),j=ue(R,v),B=ae((e=>{var t;return null!==(t=null!=s?s:E)&&void 0!==t?t:e})),z=t.useContext(ie),K=null!=u?u:z,[L,A]=ne(y,g),F=D&&t.createElement(t.Fragment,null,H),W=n({[`${C}-lg`]:"large"===B,[`${C}-sm`]:"small"===B,[`${C}-rtl`]:"rtl"===a,[`${C}-in-form-item`]:T},k),_=`${C}-group`;return w(t.createElement(Il,Object.assign({ref:i,disabled:K,className:n($,S,l,c,N),upHandler:I,downHandler:M,prefixCls:C,readOnly:h,controls:O,prefix:m,suffix:F,addonAfter:p&&t.createElement(Fe,null,t.createElement(We,{override:!0,status:!0},p)),addonBefore:f&&t.createElement(Fe,null,t.createElement(We,{override:!0,status:!0},f)),classNames:{input:W,variant:n({[`${C}-${L}`]:A},le(C,j,D)),affixWrapper:n({[`${C}-affix-wrapper-sm`]:"small"===B,[`${C}-affix-wrapper-lg`]:"large"===B,[`${C}-affix-wrapper-rtl`]:"rtl"===a},k),wrapper:n({[`${_}-rtl`]:"rtl"===a},k),groupWrapper:n({[`${C}-group-wrapper-sm`]:"small"===B,[`${C}-group-wrapper-lg`]:"large"===B,[`${C}-group-wrapper-rtl`]:"rtl"===a,[`${C}-group-wrapper-${L}`]:A},le(`${C}-group-wrapper`,j,D),k)}},x)))})),Hl=Tl;Hl._InternalPanelDoNotUseOrYouWillBeFired=e=>t.createElement(_e,{theme:{components:{InputNumber:{handleVisible:!0}}}},t.createElement(Tl,Object.assign({},e)));const jl=Hl;const Bl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var zl=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Bl}))}; +/**![calendar](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAxODRINzEydi02NGMwLTQuNC0zLjYtOC04LThoLTU2Yy00LjQgMC04IDMuNi04IDh2NjRIMzg0di02NGMwLTQuNC0zLjYtOC04LThoLTU2Yy00LjQgMC04IDMuNi04IDh2NjRIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY2NjRjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjIxNmMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDY1NkgxODRWNDYwaDY1NnYzODB6TTE4NCAzOTJWMjU2aDEyOHY0OGMwIDQuNCAzLjYgOCA4IDhoNTZjNC40IDAgOC0zLjYgOC04di00OGgyNTZ2NDhjMCA0LjQgMy42IDggOCA4aDU2YzQuNCAwIDgtMy42IDgtOHYtNDhoMTI4djEzNkgxODR6IiAvPjwvc3ZnPg==) */const Kl=t.forwardRef(zl);const Ll={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var Al=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Ll}))}; +/**![clock-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTY4Ni43IDYzOC42TDU0NC4xIDUzNS41VjI4OGMwLTQuNC0zLjYtOC04LThINDg4Yy00LjQgMC04IDMuNi04IDh2Mjc1LjRjMCAyLjYgMS4yIDUgMy4zIDYuNWwxNjUuNCAxMjAuNmMzLjYgMi42IDguNiAxLjggMTEuMi0xLjdsMjguNi0zOWMyLjYtMy43IDEuOC04LjctMS44LTExLjJ6IiAvPjwvc3ZnPg==) */const Fl=t.forwardRef(Al);const Wl={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};var _l=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Wl}))}; +/**![swap-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg3My4xIDU5Ni4ybC0xNjQtMjA4QTMyIDMyIDAgMDA2ODQgMzc2aC02NC44Yy02LjcgMC0xMC40IDcuNy02LjMgMTNsMTQ0LjMgMTgzSDE1MmMtNC40IDAtOCAzLjYtOCA4djYwYzAgNC40IDMuNiA4IDggOGg2OTUuOWMyNi44IDAgNDEuNy0zMC44IDI1LjItNTEuOHoiIC8+PC9zdmc+) */const Vl=t.forwardRef(_l);function Yl(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function ql(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Xl(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function Gl(e,n){const{allowClear:r=!0}=e,{clearIcon:o,removeIcon:a}=kr(Object.assign(Object.assign({},e),{prefixCls:n,componentName:"DatePicker"}));return[t.useMemo((()=>{if(!1===r)return!1;const e=!0===r?{}:r;return Object.assign({clearIcon:o},e)}),[r,o]),a]}function Ul(e){return t.createElement(Ve,Object.assign({size:"small",type:"primary"},e))}function Ql(e){return t.useMemo((()=>Object.assign({button:Ul},e)),[e])}var Zl=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var l;const{prefixCls:c,getPopupContainer:s,components:u,style:d,className:f,rootClassName:p,size:m,bordered:g,placement:h,placeholder:v,popupClassName:b,dropdownClassName:y,disabled:x,status:C,variant:S,onCalendarChange:w}=o,k=Jl(o,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:$,direction:E,getPopupContainer:N,[a]:I}=t.useContext(P),M=$("picker",c),{compactSize:O,compactItemClassnames:D}=te(M,E),R=t.useRef(null),[T,H]=ne(S,g),j=re(M),[B,z,K]=Hi(M,j);t.useImperativeHandle(i,(()=>R.current));const L=r||o.picker,A=$(),{onSelect:F,multiple:W}=k,_=F&&"time"===r&&!W,[V,Y]=Gl(o,M),q=Ql(u),X=ae((e=>{var t;return null!==(t=null!=m?m:O)&&void 0!==t?t:e})),G=t.useContext(ie),U=null!=x?x:G,Q=t.useContext(oe),{hasFeedback:Z,status:J,feedbackIcon:ee}=Q,se=t.createElement(t.Fragment,null,"time"===L?t.createElement(Fl,null):t.createElement(Kl,null),Z&&ee),[de]=Ye("DatePicker",qe),fe=Object.assign(Object.assign({},de),o.locale),[pe]=ce("DatePicker",null===(l=o.popupStyle)||void 0===l?void 0:l.zIndex);return B(t.createElement(Fe,null,t.createElement(ai,Object.assign({ref:R,placeholder:Yl(fe,L,v),suffixIcon:se,dropdownAlign:Xl(E,h),prevIcon:t.createElement("span",{className:`${M}-prev-icon`}),nextIcon:t.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:r,onCalendarChange:(e,t,n)=>{null==w||w(e,t,n),_&&F(e)}},{showToday:!0},k,{locale:fe.lang,className:n({[`${M}-${X}`]:X,[`${M}-${T}`]:H},le(M,ue(J,C),Z),z,D,null==I?void 0:I.className,f,K,j,p),style:Object.assign(Object.assign({},null==I?void 0:I.style),d),prefixCls:M,getPopupContainer:s||N,generateConfig:e,components:q,direction:E,disabled:U,classNames:{popup:n(z,K,j,p,b||y)},styles:{popup:Object.assign(Object.assign({},o.popupStyle),{zIndex:pe})},allowClear:V,removeIcon:Y}))))}));return i}const o=r(),a=r("week","WeekPicker"),i=r("month","MonthPicker"),l=r("year","YearPicker"),c=r("quarter","QuarterPicker");return{DatePicker:o,WeekPicker:a,MonthPicker:i,YearPicker:l,TimePicker:r("time","TimePicker"),QuarterPicker:c}}(e),s=function(e){const r=t.forwardRef(((r,o)=>{var a;const{prefixCls:i,getPopupContainer:l,components:c,className:s,style:u,placement:d,size:f,disabled:p,bordered:m=!0,placeholder:g,popupClassName:h,dropdownClassName:v,status:b,rootClassName:y,variant:x}=r,C=Zl(r,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant"]),S=t.useRef(null),{getPrefixCls:w,direction:k,getPopupContainer:$,rangePicker:E}=t.useContext(P),N=w("picker",i),{compactSize:I,compactItemClassnames:M}=te(N,k),{picker:O}=r,D=w(),[R,T]=ne(x,m),H=re(N),[j,B,z]=Hi(N,H),[K]=Gl(r,N),L=Ql(c),A=ae((e=>{var t;return null!==(t=null!=f?f:I)&&void 0!==t?t:e})),F=t.useContext(ie),W=null!=p?p:F,_=t.useContext(oe),{hasFeedback:V,status:Y,feedbackIcon:q}=_,X=t.createElement(t.Fragment,null,"time"===O?t.createElement(Fl,null):t.createElement(Kl,null),V&&q);t.useImperativeHandle(o,(()=>S.current));const[G]=Ye("Calendar",qe),U=Object.assign(Object.assign({},G),r.locale),[Q]=ce("DatePicker",null===(a=r.popupStyle)||void 0===a?void 0:a.zIndex);return j(t.createElement(Fe,null,t.createElement(Ja,Object.assign({separator:t.createElement("span",{"aria-label":"to",className:`${N}-separator`},t.createElement(Vl,null)),disabled:W,ref:S,popupAlign:Xl(k,d),placeholder:ql(U,O,g),suffixIcon:X,prevIcon:t.createElement("span",{className:`${N}-prev-icon`}),nextIcon:t.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:t.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:t.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${D}-slide-up`},C,{className:n({[`${N}-${A}`]:A,[`${N}-${R}`]:T},le(N,ue(Y,b),V),B,M,s,null==E?void 0:E.className,z,H,y),style:Object.assign(Object.assign({},null==E?void 0:E.style),u),locale:U.lang,prefixCls:N,getPopupContainer:l||$,generateConfig:e,components:L,direction:k,classNames:{popup:n(B,h||v,z,H,y)},styles:{popup:Object.assign(Object.assign({},r.popupStyle),{zIndex:Q})},allowClear:K}))))}));return r}(e),u=r;return u.WeekPicker=o,u.MonthPicker=a,u.YearPicker=i,u.RangePicker=s,u.TimePicker=l,u.QuarterPicker=c,u}const tc=ec(co);function nc(e){const t=Xl(e.direction,e.placement);return t.overflow.adjustY=!1,t.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:t})}const rc=J(tc,"picker",null,nc);tc._InternalPanelDoNotUseOrYouWillBeFired=rc;const oc=J(tc.RangePicker,"picker",null,nc);tc._InternalRangePanelDoNotUseOrYouWillBeFired=oc,tc.generatePicker=ec;const ac=tc;function ic(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function lc(e,t,n,r){var o=Xe.unstable_batchedUpdates?function(e){Xe.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const cc=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[t];void 0!==r&&(e[t]=r)}))}return e};const sc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var uc=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:sc}))}; +/**![double-left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI3Mi45IDUxMmwyNjUuNC0zMzkuMWM0LjEtNS4yLjQtMTIuOS02LjMtMTIuOWgtNzcuM2MtNC45IDAtOS42IDIuMy0xMi42IDYuMUwxODYuOCA0OTIuM2EzMS45OSAzMS45OSAwIDAwMCAzOS41bDI1NS4zIDMyNi4xYzMgMy45IDcuNyA2LjEgMTIuNiA2LjFINTMyYzYuNyAwIDEwLjQtNy43IDYuMy0xMi45TDI3Mi45IDUxMnptMzA0IDBsMjY1LjQtMzM5LjFjNC4xLTUuMi40LTEyLjktNi4zLTEyLjloLTc3LjNjLTQuOSAwLTkuNiAyLjMtMTIuNiA2LjFMNDkwLjggNDkyLjNhMzEuOTkgMzEuOTkgMCAwMDAgMzkuNWwyNTUuMyAzMjYuMWMzIDMuOSA3LjcgNi4xIDEyLjYgNi4xSDgzNmM2LjcgMCAxMC40LTcuNyA2LjMtMTIuOUw1NzYuOSA1MTJ6IiAvPjwvc3ZnPg==) */const dc=t.forwardRef(uc);const fc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var pc=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:fc}))}; +/**![double-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUzMy4yIDQ5Mi4zTDI3Ny45IDE2Ni4xYy0zLTMuOS03LjctNi4xLTEyLjYtNi4xSDE4OGMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlMNDQ3LjEgNTEyIDE4MS43IDg1MS4xQTcuOTggNy45OCAwIDAwMTg4IDg2NGg3Ny4zYzQuOSAwIDkuNi0yLjMgMTIuNi02LjFsMjU1LjMtMzI2LjFjOS4xLTExLjcgOS4xLTI3LjkgMC0zOS41em0zMDQgMEw1ODEuOSAxNjYuMWMtMy0zLjktNy43LTYuMS0xMi42LTYuMUg0OTJjLTYuNyAwLTEwLjQgNy43LTYuMyAxMi45TDc1MS4xIDUxMiA0ODUuNyA4NTEuMUE3Ljk4IDcuOTggMCAwMDQ5MiA4NjRoNzcuM2M0LjkgMCA5LjYtMi4zIDEyLjYtNi4xbDI1NS4zLTMyNi4xYzkuMS0xMS43IDkuMS0yNy45IDAtMzkuNXoiIC8+PC9zdmc+) */const mc=t.forwardRef(pc);var gc={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},hc=["10","20","50","100"],vc=function(e){var t=e.pageSizeOptions,n=void 0===t?hc:t,o=e.locale,l=e.changeSize,c=e.pageSize,s=e.goButton,u=e.quickGo,d=e.rootPrefixCls,f=e.selectComponentClass,p=e.selectPrefixCls,m=e.disabled,g=e.buildOptionText,h=r.useState(""),v=a(h,2),b=v[0],y=v[1],x=function(){return!b||Number.isNaN(b)?void 0:Number(b)},C="function"==typeof g?g:function(e){return"".concat(e," ").concat(o.items_per_page)},S=function(e){""!==b&&(e.keyCode!==i.ENTER&&"click"!==e.type||(y(""),null==u||u(x())))},w="".concat(d,"-options");if(!l&&!u)return null;var k=null,$=null,E=null;if(l&&f){var N=(n.some((function(e){return e.toString()===c.toString()}))?n:n.concat([c.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,t){return r.createElement(f.Option,{key:t,value:e.toString()},C(e))}));k=r.createElement(f,{disabled:m,prefixCls:p,showSearch:!1,className:"".concat(w,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(c||n[0]).toString(),onChange:function(e){null==l||l(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":o.page_size,defaultOpen:!1},N)}return u&&(s&&(E="boolean"==typeof s?r.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:m,className:"".concat(w,"-quick-jumper-button")},o.jump_to_confirm):r.createElement("span",{onClick:S,onKeyUp:S},s)),$=r.createElement("div",{className:"".concat(w,"-quick-jumper")},o.jump_to,r.createElement("input",{disabled:m,type:"text",value:b,onChange:function(e){y(e.target.value)},onKeyUp:S,onBlur:function(e){s||""===b||(y(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(d,"-item"))>=0)||null==u||u(x()))},"aria-label":o.page}),o.page,E)),r.createElement("li",{className:w},k,$)},bc=function(e){var t,o=e.rootPrefixCls,a=e.page,i=e.active,l=e.className,c=e.showTitle,s=e.onClick,u=e.onKeyPress,d=e.itemRender,p="".concat(o,"-item"),m=n(p,"".concat(p,"-").concat(a),(f(t={},"".concat(p,"-active"),i),f(t,"".concat(p,"-disabled"),!a),t),l),g=d(a,"page",r.createElement("a",{rel:"nofollow"},a));return g?r.createElement("li",{title:c?String(a):null,className:m,onClick:function(){s(a)},onKeyDown:function(e){u(e,s,a)},tabIndex:0},g):null},yc=function(e,t,n){return n};function xc(){}function Cc(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Sc(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}var wc=function(e){var o,l=e.prefixCls,s=void 0===l?"rc-pagination":l,d=e.selectPrefixCls,m=void 0===d?"rc-select":d,g=e.className,h=e.selectComponentClass,v=e.current,b=e.defaultCurrent,y=void 0===b?1:b,x=e.total,C=void 0===x?0:x,w=e.pageSize,k=e.defaultPageSize,$=void 0===k?10:k,E=e.onChange,N=void 0===E?xc:E,I=e.hideOnSinglePage,M=e.showPrevNextJumpers,O=void 0===M||M,D=e.showQuickJumper,R=e.showLessItems,P=e.showTitle,T=void 0===P||P,H=e.onShowSizeChange,j=void 0===H?xc:H,B=e.locale,z=void 0===B?gc:B,K=e.style,L=e.totalBoundaryShowSizeChanger,A=void 0===L?50:L,F=e.disabled,W=e.simple,_=e.showTotal,V=e.showSizeChanger,Y=e.pageSizeOptions,q=e.itemRender,X=void 0===q?yc:q,G=e.jumpPrevIcon,U=e.jumpNextIcon,Q=e.prevIcon,Z=e.nextIcon,J=r.useRef(null),ee=S(10,{value:w,defaultValue:$}),te=a(ee,2),ne=te[0],re=te[1],oe=S(1,{value:v,defaultValue:y,postState:function(e){return Math.max(1,Math.min(e,Sc(void 0,ne,C)))}}),ae=a(oe,2),ie=ae[0],le=ae[1],ce=r.useState(ie),se=a(ce,2),ue=se[0],de=se[1];t.useEffect((function(){de(ie)}),[ie]);var fe=Math.max(1,ie-(R?3:5)),pe=Math.min(Sc(void 0,ne,C),ie+(R?3:5));function me(t,n){var o=t||r.createElement("button",{type:"button","aria-label":n,className:"".concat(s,"-item-link")});return"function"==typeof t&&(o=r.createElement(t,c({},e))),o}function ge(e){var t=e.target.value,n=Sc(void 0,ne,C);return""===t?t:Number.isNaN(Number(t))?ue:t>=n?n:Number(t)}var he=C>ne&&D;function ve(e){var t=ge(e);switch(t!==ue&&de(t),e.keyCode){case i.ENTER:be(t);break;case i.UP:be(t-1);break;case i.DOWN:be(t+1)}}function be(e){if(function(e){return Cc(e)&&e!==ie&&Cc(C)&&C>0}(e)&&!F){var t=Sc(void 0,ne,C),n=e;return e>t?n=t:e<1&&(n=1),n!==ue&&de(n),le(n),null==N||N(n,ne),n}return ie}var ye=ie>1,xe=ieA;function Se(){ye&&be(ie-1)}function we(){xe&&be(ie+1)}function ke(){be(fe)}function $e(){be(pe)}function Ee(e,t){if("Enter"===e.key||e.charCode===i.ENTER||e.keyCode===i.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;oC?C:ie*ne])),De=null,Re=Sc(void 0,ne,C);if(I&&C<=ne)return null;var Pe=[],Te={rootPrefixCls:s,onClick:be,onKeyPress:Ee,showTitle:T,itemRender:X,page:-1},He=ie-1>0?ie-1:0,je=ie+1=2*Le&&3!==ie&&(Pe[0]=r.cloneElement(Pe[0],{className:n("".concat(s,"-item-after-jump-prev"),Pe[0].props.className)}),Pe.unshift(Ie)),Re-ie>=2*Le&&ie!==Re-2){var Ge=Pe[Pe.length-1];Pe[Pe.length-1]=r.cloneElement(Ge,{className:n("".concat(s,"-item-before-jump-next"),Ge.props.className)}),Pe.push(De)}1!==Ye&&Pe.unshift(r.createElement(bc,p({},Te,{key:1,page:1}))),qe!==Re&&Pe.push(r.createElement(bc,p({},Te,{key:Re,page:Re})))}var Ue=function(e){var t=X(e,"prev",me(Q,"prev page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!ye}):t}(He);if(Ue){var Qe=!ye||!Re;Ue=r.createElement("li",{title:T?z.prev_page:null,onClick:Se,tabIndex:Qe?null:0,onKeyDown:function(e){Ee(e,Se)},className:n("".concat(s,"-prev"),f({},"".concat(s,"-disabled"),Qe)),"aria-disabled":Qe},Ue)}var Ze,Je,et=function(e){var t=X(e,"next",me(Z,"next page"));return r.isValidElement(t)?r.cloneElement(t,{disabled:!xe}):t}(je);et&&(W?(Ze=!xe,Je=ye?0:null):Je=(Ze=!xe||!Re)?null:0,et=r.createElement("li",{title:T?z.next_page:null,onClick:we,tabIndex:Je,onKeyDown:function(e){Ee(e,we)},className:n("".concat(s,"-next"),f({},"".concat(s,"-disabled"),Ze)),"aria-disabled":Ze},et));var tt=n(s,g,(f(o={},"".concat(s,"-simple"),W),f(o,"".concat(s,"-disabled"),F),o));return r.createElement("ul",p({className:tt,style:K,ref:J},Me),Oe,Ue,W?Ke:Pe,et,r.createElement(vc,{locale:z,rootPrefixCls:s,disabled:F,selectComponentClass:h,selectPrefixCls:m,changeSize:Ce?function(e){var t=Sc(e,ne,C),n=ie>t&&0!==t?t:ie;re(e),de(n),null==j||j(ie,e),le(n),null==N||N(n,e)}:null,pageSize:ne,pageSizeOptions:Y,quickGo:he?be:null,goButton:ze}))};const kc=e=>t.createElement(Or,Object.assign({},e,{showSearch:!0,size:"small"})),$c=e=>t.createElement(Or,Object.assign({},e,{showSearch:!0,size:"middle"}));kc.Option=Or.Option,$c.Option=Or.Option;const Ec=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Nc=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:_(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:_(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:_(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM),input:Object.assign(Object.assign({},Ue(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Ic=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:_(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${_(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${_(e.inputOutlineOffset)} 0 ${_(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Mc=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${_(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${_(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:_(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},ze(e)),Qe(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Ze(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Oc=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:_(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${_(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${_(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},Dc=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:_(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Oc(e)),Mc(e)),Ic(e)),Nc(e)),Ec(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Rc=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ge(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ke(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},ke(e))}}}},Pc=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Ie(e)),Tc=e=>V(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Re(e)),Hc=Y("Pagination",(e=>{const t=Tc(e);return[Dc(t),Rc(t)]}),Pc),jc=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Bc=Je(["Pagination","bordered"],(e=>{const t=Tc(e);return[jc(t)]}),Pc);var zc=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,selectPrefixCls:o,className:a,rootClassName:i,style:l,size:c,locale:s,selectComponentClass:u,responsive:d,showSizeChanger:f}=e,p=zc(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:m}=et(d),[,g]=ee(),{getPrefixCls:h,direction:v,pagination:b={}}=t.useContext(P),y=h("pagination",r),[x,C,S]=Hc(y),w=null!=f?f:b.showSizeChanger,k=t.useMemo((()=>{const e=t.createElement("span",{className:`${y}-item-ellipsis`},"•••");return{prevIcon:t.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?t.createElement(nt,null):t.createElement(rt,null)),nextIcon:t.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===v?t.createElement(rt,null):t.createElement(nt,null)),jumpPrevIcon:t.createElement("a",{className:`${y}-item-link`},t.createElement("div",{className:`${y}-item-container`},"rtl"===v?t.createElement(mc,{className:`${y}-item-link-icon`}):t.createElement(dc,{className:`${y}-item-link-icon`}),e)),jumpNextIcon:t.createElement("a",{className:`${y}-item-link`},t.createElement("div",{className:`${y}-item-container`},"rtl"===v?t.createElement(dc,{className:`${y}-item-link-icon`}):t.createElement(mc,{className:`${y}-item-link-icon`}),e))}}),[v,y]),[$]=Ye("Pagination",tt),E=Object.assign(Object.assign({},$),s),N=ae(c),I="small"===N||!(!m||N||!d),M=h("select",o),O=n({[`${y}-mini`]:I,[`${y}-rtl`]:"rtl"===v,[`${y}-bordered`]:g.wireframe},null==b?void 0:b.className,a,i,C,S),D=Object.assign(Object.assign({},null==b?void 0:b.style),l);return x(t.createElement(t.Fragment,null,g.wireframe&&t.createElement(Bc,{prefixCls:y}),t.createElement(wc,Object.assign({},k,p,{style:D,prefixCls:y,selectPrefixCls:M,className:O,selectComponentClass:u||(I?kc:$c),locale:E,showSizeChanger:w}))))},Lc=Y("Popconfirm",(e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:a,colorWarning:i,marginXXS:l,marginXS:c,fontSize:s,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:s},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:s,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:a}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}})(e)),(e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}}),{resetStyle:!1});var Ac=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:r,okButtonProps:o,cancelButtonProps:a,title:i,description:l,cancelText:c,okText:s,okType:u="primary",icon:d=t.createElement(lt,null),showCancel:f=!0,close:p,onConfirm:m,onCancel:g,onPopupClick:h}=e,{getPrefixCls:v}=t.useContext(P),[b]=Ye("Popconfirm",ot.Popconfirm),y=Dr(i),x=Dr(l);return t.createElement("div",{className:`${r}-inner-content`,onClick:h},t.createElement("div",{className:`${r}-message`},d&&t.createElement("span",{className:`${r}-message-icon`},d),t.createElement("div",{className:`${r}-message-text`},y&&t.createElement("div",{className:n(`${r}-title`)},y),x&&t.createElement("div",{className:`${r}-description`},x))),t.createElement("div",{className:`${r}-buttons`},f&&t.createElement(Ve,Object.assign({onClick:g,size:"small"},a),c||(null==b?void 0:b.cancelText)),t.createElement(at,{buttonProps:Object.assign(Object.assign({size:"small"},it(u)),o),actionFn:m,close:p,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(null==b?void 0:b.okText))))},Wc=e=>{const{prefixCls:r,placement:o,className:a,style:i}=e,l=Ac(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=t.useContext(P),s=c("popconfirm",r),[u]=Lc(s);return u(t.createElement(Br,{placement:o,className:n(s,a),style:i,content:t.createElement(Fc,Object.assign({prefixCls:s},l))}))};var _c=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var o,a;const{prefixCls:i,placement:l="top",trigger:c="click",okType:s="primary",icon:u=t.createElement(lt,null),children:d,overlayClassName:f,onOpenChange:p,onVisibleChange:m}=e,g=_c(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:h}=t.useContext(P),[v,b]=S(!1,{value:null!==(o=e.open)&&void 0!==o?o:e.visible,defaultValue:null!==(a=e.defaultOpen)&&void 0!==a?a:e.defaultVisible}),y=(e,t)=>{b(e,!0),null==m||m(e),null==p||p(e,t)},x=h("popconfirm",i),C=n(x,f),[w]=Lc(x);return w(t.createElement(Fr,Object.assign({},O(g,["title"]),{trigger:c,placement:l,onOpenChange:(t,n)=>{const{disabled:r=!1}=e;r||y(t,n)},open:v,ref:r,overlayClassName:C,content:t.createElement(Fc,Object.assign({okType:s,icon:u},e,{prefixCls:x,close:e=>{y(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(globalThis,t)},onCancel:t=>{var n;y(!1,t),null===(n=e.onCancel)||void 0===n||n.call(globalThis,t)}})),"data-popover-inject":!0}),d))})),Yc=Vc;Yc._InternalPanelDoNotUseOrYouWillBeFired=Wc;const qc=Yc;var Xc={},Gc="rc-table-internal-hook";function Uc(e){var n=t.createContext(void 0);return{Context:n,Provider:function(e){var r=e.value,o=e.children,i=t.useRef(r);i.current=r;var l=t.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),c=a(l,1)[0];return C((function(){I.unstable_batchedUpdates((function(){c.listeners.forEach((function(e){e(r)}))}))}),[r]),t.createElement(n.Provider,{value:c},o)},defaultValue:e}}function Qc(e,n){var r=N("function"==typeof n?n:function(e){if(void 0===n)return e;if(!Array.isArray(n))return e[n];var t={};return n.forEach((function(n){t[n]=e[n]})),t}),o=t.useContext(null==e?void 0:e.Context),i=o||{},l=i.listeners,c=i.getValue,s=t.useRef();s.current=r(o?c():null==e?void 0:e.defaultValue);var u=t.useState({}),d=a(u,2)[1];return C((function(){if(o)return l.add(e),function(){l.delete(e)};function e(e){var t=r(e);ct(s.current,t,!0)||d({})}}),[o]),s.current}var Zc=function(){var e=t.createContext(null);function n(){return t.useContext(e)}return{makeImmutable:function(r,o){var a=st(r),i=function(i,l){var c=a?{ref:l}:{},s=t.useRef(0),u=t.useRef(i);return null!==n()?t.createElement(r,p({},i,c)):(o&&!o(u.current,i)||(s.current+=1),u.current=i,t.createElement(e.Provider,{value:s.current},t.createElement(r,p({},i,c))))};return a?t.forwardRef(i):i},responseImmutable:function(e,r){var o=st(e),a=function(r,a){var i=o?{ref:a}:{};return n(),t.createElement(e,p({},r,i))};return o?t.memo(t.forwardRef(a),r):t.memo(a,r)},useImmutableMark:n}}(),Jc=Zc.makeImmutable,es=Zc.responseImmutable,ts=Zc.useImmutableMark,ns=Uc(),rs=t.createContext({renderWithProps:!1}),os="RC_TABLE_KEY";function as(e){var t=[],n={};return e.forEach((function(e){for(var r,o=e||{},a=o.key,i=o.dataIndex,l=a||(r=i,null==r?[]:Array.isArray(r)?r:[r]).join("-")||os;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function is(e){return null!=e}function ls(e,n,r,i,l,c){var s=t.useContext(rs),u=ts();return M((function(){if(is(i))return[i];var a,c=null==n||""===n?[]:Array.isArray(n)?n:[n],u=ut(e,c),d=u,f=void 0;if(l){var p=l(u,e,r);!(a=p)||"object"!==o(a)||Array.isArray(a)||t.isValidElement(a)?d=p:(d=p.children,f=p.props,s.renderWithProps=!0)}return[d,f]}),[u,e,i,n,l,r],(function(e,t){if(c){var n=a(e,2)[1],r=a(t,2)[1];return c(r,n)}return!!s.renderWithProps||!ct(e,t,!0)}))}function cs(e){var r,i,l,s,u,d,m,g,h=e.component,v=e.children,b=e.ellipsis,y=e.scope,x=e.prefixCls,C=e.className,S=e.align,w=e.record,k=e.render,$=e.dataIndex,E=e.renderIndex,I=e.shouldCellUpdate,M=e.index,O=e.rowType,D=e.colSpan,R=e.rowSpan,P=e.fixLeft,T=e.fixRight,H=e.firstFixLeft,j=e.lastFixLeft,B=e.firstFixRight,z=e.lastFixRight,K=e.appendNode,L=e.additionalProps,A=void 0===L?{}:L,F=e.isSticky,W="".concat(x,"-cell"),_=Qc(ns,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=_.supportSticky,Y=_.allColumnsFixedLeft,q=_.rowHoverable,X=ls(w,$,E,v,k,I),G=a(X,2),U=G[0],Q=G[1],Z={},J="number"==typeof P&&V,ee="number"==typeof T&&V;J&&(Z.position="sticky",Z.left=P),ee&&(Z.position="sticky",Z.right=T);var te=null!==(r=null!==(i=null!==(l=null==Q?void 0:Q.colSpan)&&void 0!==l?l:A.colSpan)&&void 0!==i?i:D)&&void 0!==r?r:1,ne=null!==(s=null!==(u=null!==(d=null==Q?void 0:Q.rowSpan)&&void 0!==d?d:A.rowSpan)&&void 0!==u?u:R)&&void 0!==s?s:1,re=function(e,t){return Qc(ns,(function(n){var r,o,a,i;return[(r=e,o=t||1,a=n.hoverStartRow,i=n.hoverEndRow,r<=i&&r+o-1>=a),n.onHover]}))}(M,ne),oe=a(re,2),ae=oe[0],ie=oe[1],le=N((function(e){var t;w&&ie(M,M+ne-1),null==A||null===(t=A.onMouseEnter)||void 0===t||t.call(A,e)})),ce=N((function(e){var t;w&&ie(-1,-1),null==A||null===(t=A.onMouseLeave)||void 0===t||t.call(A,e)}));if(0===te||0===ne)return null;var se=null!==(m=A.title)&&void 0!==m?m:function(e){var n,r=e.ellipsis,o=e.rowType,a=e.children,i=!0===r?{showTitle:!0}:r;return i&&(i.showTitle||"header"===o)&&("string"==typeof a||"number"==typeof a?n=a.toString():t.isValidElement(a)&&"string"==typeof a.props.children&&(n=a.props.children)),n}({rowType:O,ellipsis:b,children:U}),ue=n(W,C,(f(f(f(f(f(f(f(f(f(f(g={},"".concat(W,"-fix-left"),J&&V),"".concat(W,"-fix-left-first"),H&&V),"".concat(W,"-fix-left-last"),j&&V),"".concat(W,"-fix-left-all"),j&&Y&&V),"".concat(W,"-fix-right"),ee&&V),"".concat(W,"-fix-right-first"),B&&V),"".concat(W,"-fix-right-last"),z&&V),"".concat(W,"-ellipsis"),b),"".concat(W,"-with-append"),K),"".concat(W,"-fix-sticky"),(J||ee)&&F&&V),f(g,"".concat(W,"-row-hover"),!Q&&ae)),A.className,null==Q?void 0:Q.className),de={};S&&(de.textAlign=S);var fe=c(c(c(c({},Z),A.style),de),null==Q?void 0:Q.style),pe=U;return"object"!==o(pe)||Array.isArray(pe)||t.isValidElement(pe)||(pe=null),b&&(j||B)&&(pe=t.createElement("span",{className:"".concat(W,"-content")},pe)),t.createElement(h,p({},Q,A,{className:ue,style:fe,title:se,scope:y,onMouseEnter:q?le:void 0,onMouseLeave:q?ce:void 0,colSpan:1!==te?te:null,rowSpan:1!==ne?ne:null}),K,pe)}const ss=t.memo(cs);function us(e,t,n,r,o){var a,i,l=n[e]||{},c=n[t]||{};"left"===l.fixed?a=r.left["rtl"===o?t:e]:"right"===c.fixed&&(i=r.right["rtl"===o?e:t]);var s=!1,u=!1,d=!1,f=!1,p=n[t+1],m=n[e-1],g=p&&void 0===p.fixed||m&&void 0===m.fixed||n.every((function(e){return"left"===e.fixed}));if("rtl"===o){if(void 0!==a)f=!(m&&"left"===m.fixed)&&g;else if(void 0!==i){d=!(p&&"right"===p.fixed)&&g}}else if(void 0!==a){s=!(p&&"left"===p.fixed)&&g}else if(void 0!==i){u=!(m&&"right"===m.fixed)&&g}return{fixLeft:a,fixRight:i,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var ds=t.createContext({});var fs=["children"];function ps(e){return e.children}ps.Row=function(e){var n=e.children,r=m(e,fs);return t.createElement("tr",r,n)},ps.Cell=function(e){var n=e.className,r=e.index,o=e.children,a=e.colSpan,i=void 0===a?1:a,l=e.rowSpan,c=e.align,s=Qc(ns,["prefixCls","direction"]),u=s.prefixCls,d=s.direction,f=t.useContext(ds),m=f.scrollColumnIndex,g=f.stickyOffsets,h=r+i-1+1===m?i+1:i,v=us(r,r+h-1,f.flattenColumns,g,d);return t.createElement(ss,p({className:n,index:r,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:h,rowSpan:l,render:function(){return o}},v))};const ms=es((function(e){var n=e.children,r=e.stickyOffsets,o=e.flattenColumns,a=Qc(ns,"prefixCls"),i=o.length-1,l=o[i],c=t.useMemo((function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:null!=l&&l.scrollbar?i:null}}),[l,o,i,r]);return t.createElement(ds.Provider,{value:c},t.createElement("tfoot",{className:"".concat(a,"-summary")},n))}));var gs=ps;function hs(e,t,n,r,o,a,i){e.push({record:t,indent:n,index:i});var l=a(t),c=null==o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var s=0;s1?n-1:0),o=1;o=1?E:""),style:c(c({},o),null==C?void 0:C.style)}),b.map((function(e,n){var r=e.render,o=e.dataIndex,c=e.className,s=xs(h,e,n,d,i),u=s.key,f=s.fixedInfo,b=s.appendCellNode,y=s.additionalCellProps;return t.createElement(ss,p({className:c,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?g:m,prefixCls:v,key:u,record:a,index:i,renderIndex:l,dataIndex:o,render:r,shouldCellUpdate:e.shouldCellUpdate},f,{appendNode:b,additionalProps:y}))})));if(w&&(k.current||S)){var I=x(a,i,d+1,S);$=t.createElement(ys,{expanded:S,className:n("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(d+1),E),prefixCls:v,component:f,cellComponent:m,colSpan:b.length,isEmpty:!1},I)}return t.createElement(t.Fragment,null,N,$)}));function Ss(e){var n=e.columnKey,r=e.onColumnResize,o=t.useRef();return t.useEffect((function(){o.current&&r(n,o.current.offsetWidth)}),[]),t.createElement(w,{data:n},t.createElement("td",{ref:o,style:{padding:0,border:0,height:0}},t.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function ws(e){var n=e.prefixCls,r=e.columnsKey,o=e.onColumnResize;return t.createElement("tr",{"aria-hidden":"true",className:"".concat(n,"-measure-row"),style:{height:0,fontSize:0}},t.createElement(w.Collection,{onBatchResize:function(e){e.forEach((function(e){var t=e.data,n=e.size;o(t,n.offsetWidth)}))}},r.map((function(e){return t.createElement(Ss,{key:e,columnKey:e,onColumnResize:o})}))))}const ks=es((function(e){var n,r=e.data,o=e.measureColumnWidth,a=Qc(ns,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=a.prefixCls,l=a.getComponent,c=a.onColumnResize,s=a.flattenColumns,u=a.getRowKey,d=a.expandedKeys,f=a.childrenColumnName,p=a.emptyNode,m=vs(r,f,d,u),g=t.useRef({renderWithProps:!1}),h=l(["body","wrapper"],"tbody"),v=l(["body","row"],"tr"),b=l(["body","cell"],"td"),y=l(["body","cell"],"th");n=r.length?m.map((function(e,n){var r=e.record,o=e.indent,a=e.index,i=u(r,n);return t.createElement(Cs,{key:i,rowKey:i,record:r,index:n,renderIndex:a,rowComponent:v,cellComponent:b,scopeCellComponent:y,getRowKey:u,indent:o})})):t.createElement(ys,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:v,cellComponent:b,colSpan:s.length,isEmpty:!0},p);var x=as(s);return t.createElement(rs.Provider,{value:g.current},t.createElement(h,{className:"".concat(i,"-tbody")},o&&t.createElement(ws,{prefixCls:i,columnsKey:x,onColumnResize:c}),n))}));var $s=["expandable"],Es="RC_TABLE_INTERNAL_COL_DEFINE";var Ns=["columnType"];function Is(e){for(var n=e.colWidths,r=e.columns,o=[],a=!1,i=(e.columCount||r.length)-1;i>=0;i-=1){var l=n[i],c=r&&r[i],s=c&&c[Es];if(l||s||a){var u=s||{};u.columnType;var d=m(u,Ns);o.unshift(t.createElement("col",p({key:i,style:{width:l}},d))),a=!0}}return t.createElement("colgroup",null,o)}var Ms=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var Os=t.forwardRef((function(e,r){var o=e.className,a=e.noData,i=e.columns,l=e.flattenColumns,s=e.colWidths,u=e.columCount,d=e.stickyOffsets,p=e.direction,g=e.fixHeader,h=e.stickyTopOffset,v=e.stickyBottomOffset,y=e.stickyClassName,x=e.onScroll,C=e.maxContentScroll,S=e.children,w=m(e,Ms),k=Qc(ns,["prefixCls","scrollbarSize","isSticky","getComponent"]),$=k.prefixCls,E=k.scrollbarSize,N=k.isSticky,I=(0,k.getComponent)(["header","table"],"table"),M=N&&!g?0:E,O=t.useRef(null),D=t.useCallback((function(e){dt(r,e),dt(O,e)}),[]);t.useEffect((function(){var e;function t(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(x({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}return null===(e=O.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=O.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var R=t.useMemo((function(){return l.every((function(e){return e.width}))}),[l]),P=l[l.length-1],T={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($,"-cell-scrollbar")}}},H=t.useMemo((function(){return M?[].concat(b(i),[T]):i}),[M,i]),j=t.useMemo((function(){return M?[].concat(b(l),[T]):l}),[M,l]),B=t.useMemo((function(){var e=d.right,t=d.left;return c(c({},d),{},{left:"rtl"===p?[].concat(b(t.map((function(e){return e+M}))),[0]):t,right:"rtl"===p?e:[].concat(b(e.map((function(e){return e+M}))),[0]),isSticky:N})}),[M,d,N]),z=function(e,n){return t.useMemo((function(){for(var t=[],r=0;r1?"colgroup":"col":null,ellipsis:i.ellipsis,align:i.align,component:l,prefixCls:d,key:m[n]},c,{additionalProps:r,rowType:"header"}))})))};const Ps=es((function(e){var n=e.stickyOffsets,r=e.columns,o=e.flattenColumns,a=e.onHeaderRow,i=Qc(ns,["prefixCls","getComponent"]),l=i.prefixCls,c=i.getComponent,s=t.useMemo((function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var a=r;return n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:a},i=1,l=n.children;return l&&l.length>0&&(i=e(l,a,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(i=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,t[o].push(r),a+=i,i}))}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var Hs=["children"],js=["fixed"];function Bs(e){return R(e).filter((function(e){return t.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,o=m(n,Hs),a=c({key:t},o);return r&&(a.children=Bs(r)),a}))}function zs(e){return e.filter((function(e){return e&&"object"===o(e)&&!e.hidden})).map((function(e){var t=e.children;return t&&t.length>0?c(c({},e),{},{children:zs(t)}):e}))}function Ks(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===o(e)})).reduce((function(e,n,r){var o=n.fixed,a=!0===o?"left":o,i="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat(b(e),b(Ks(l,i).map((function(e){return c({fixed:a},e)})))):[].concat(b(e),[c(c({key:i},n),{},{fixed:a})])}),[])}function Ls(e,n){var r=e.prefixCls,o=e.columns,i=e.children,l=e.expandable,s=e.expandedKeys,u=e.columnTitle,d=e.getRowKey,p=e.onTriggerExpand,g=e.expandIcon,h=e.rowExpandable,v=e.expandIconColumnIndex,b=e.direction,y=e.expandRowByClick,x=e.columnWidth,C=e.fixed,S=e.scrollWidth,w=e.clientWidth,k=t.useMemo((function(){return zs((o||Bs(i)||[]).slice())}),[o,i]),$=t.useMemo((function(){if(l){var e=k.slice();if(!e.includes(Xc)){var n=v||0;n>=0&&e.splice(n,0,Xc)}var o=e.indexOf(Xc);e=e.filter((function(e,t){return e!==Xc||t===o}));var a,i=k[o];a="left"!==C&&!C||v?"right"!==C&&!C||v!==k.length?i?i.fixed:null:"right":"left";var c=f(f(f(f(f(f({},Es,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",u),"fixed",a),"className","".concat(r,"-row-expand-icon-cell")),"width",x),"render",(function(e,n,o){var a=d(n,o),i=s.has(a),l=!h||h(n),c=g({prefixCls:r,expanded:i,expandable:l,record:n,onExpand:p});return y?t.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c}));return e.map((function(e){return e===Xc?c:e}))}return k.filter((function(e){return e!==Xc}))}),[l,k,d,s,g,b]),E=t.useMemo((function(){var e=$;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,$,b]),N=t.useMemo((function(){return"rtl"===b?function(e){return e.map((function(e){var t=e.fixed,n=m(e,js),r=t;return"left"===t?r="right":"right"===t&&(r="left"),c({fixed:r},n)}))}(Ks(E)):Ks(E)}),[E,b,S]),I=t.useMemo((function(){for(var e=-1,t=N.length-1;t>=0;t-=1){var n=N[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=N[r].fixed;if("left"!==o&&!0!==o)return!0}var a=N.findIndex((function(e){return"right"===e.fixed}));if(a>=0)for(var i=a;i0){var t=0,o=0;e.forEach((function(e){var r=Ts(n,e.width);r?t+=r:o+=1}));var a=Math.max(n,r),i=Math.max(a-t,o),l=o,s=i/o,u=0,d=e.map((function(e){var t=c({},e),r=Ts(n,t.width);if(r)t.width=r;else{var o=Math.floor(s);t.width=1===l?i:o,i-=o,l-=1}return u+=t.width,t}));if(u=h&&(r=h-v),u({scrollLeft:r/h*(g+2)}),w.current.x=e.pageX}else E&&N(!1)},D=function(){I.current=e((function(){if(s.current){var e=ic(s.current).top,t=e+s.current.offsetHeight,n=p===window?document.documentElement.scrollTop+window.innerHeight:ic(p).top+p.clientHeight;t-ft()<=n||e>=n-d?S((function(e){return c(c({},e),{},{isHiddenScrollBar:!0})})):S((function(e){return c(c({},e),{},{isHiddenScrollBar:!1})}))}}))},R=function(e){S((function(t){return c(c({},t),{},{scrollLeft:e/g*h||0})}))};return t.useImperativeHandle(o,(function(){return{setScrollLeft:R,checkScrollBarVisible:D}})),t.useEffect((function(){var e=lc(document.body,"mouseup",M,!1),t=lc(document.body,"mousemove",O,!1);return D(),function(){e.remove(),t.remove()}}),[v,E]),t.useEffect((function(){var e=lc(p,"scroll",D,!1),t=lc(window,"resize",D,!1);return function(){e.remove(),t.remove()}}),[p]),t.useEffect((function(){C.isHiddenScrollBar||S((function(e){var t=s.current;return t?c(c({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[C.isHiddenScrollBar]),g<=h||!v||C.isHiddenScrollBar?null:t.createElement("div",{style:{height:ft(),width:h,bottom:d},className:"".concat(m,"-sticky-scroll")},t.createElement("div",{onMouseDown:function(e){e.persist(),w.current.delta=e.pageX-C.scrollLeft,w.current.x=0,N(!0),e.preventDefault()},ref:b,className:n("".concat(m,"-sticky-scroll-bar"),f({},"".concat(m,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))};const qs=t.forwardRef(Ys);var Xs="rc-table",Gs=[],Us={};function Qs(){return"No Data"}function Zs(e,r){var i=c({rowKey:"key",prefixCls:Xs,emptyText:Qs},e),l=i.prefixCls,s=i.className,d=i.rowClassName,m=i.style,g=i.data,h=i.rowKey,v=i.scroll,b=i.tableLayout,y=i.direction,x=i.title,C=i.footer,S=i.summary,k=i.caption,$=i.id,E=i.showHeader,I=i.components,O=i.emptyText,D=i.onRow,R=i.onHeaderRow,P=i.onScroll,T=i.internalHooks,H=i.transformColumns,j=i.internalRefs,B=i.tailor,z=i.getContainerWidth,K=i.sticky,L=i.rowHoverable,A=void 0===L||L,F=g||Gs,W=!!F.length,_=T===Gc,V=t.useCallback((function(e,t){return ut(I,e)||t}),[I]),Y=t.useMemo((function(){return"function"==typeof h?h:function(e){return e&&e[h]}}),[h]),q=V(["body"]),X=function(){var e=t.useState(-1),n=a(e,2),r=n[0],o=n[1],i=t.useState(-1),l=a(i,2),c=l[0],s=l[1];return[r,c,t.useCallback((function(e,t){o(e),s(t)}),[])]}(),G=a(X,3),U=G[0],Q=G[1],Z=G[2],J=Fs(i,F,Y),ee=a(J,6),te=ee[0],ne=ee[1],re=ee[2],oe=ee[3],ae=ee[4],ie=ee[5],le=null==v?void 0:v.x,ce=t.useState(0),se=a(ce,2),ue=se[0],de=se[1],fe=Ls(c(c(c({},i),te),{},{expandable:!!te.expandedRowRender,columnTitle:te.columnTitle,expandedKeys:re,getRowKey:Y,onTriggerExpand:ie,expandIcon:oe,expandIconColumnIndex:te.expandIconColumnIndex,direction:y,scrollWidth:_&&B&&"number"==typeof le?le:null,clientWidth:ue}),_?H:null),pe=a(fe,4),me=pe[0],ge=pe[1],he=pe[2],ve=pe[3],be=null!=he?he:le,ye=t.useMemo((function(){return{columns:me,flattenColumns:ge}}),[me,ge]),xe=t.useRef(),Ce=t.useRef(),Se=t.useRef(),ke=t.useRef();t.useImperativeHandle(r,(function(){return{nativeElement:xe.current,scrollTo:function(e){var t;if(Se.current instanceof HTMLElement){var n=e.index,r=e.top,o=e.key;if(r){var a;null===(a=Se.current)||void 0===a||a.scrollTo({top:r})}else{var i,l=null!=o?o:Y(F[n]);null===(i=Se.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===i||i.scrollIntoView()}}else null!==(t=Se.current)&&void 0!==t&&t.scrollTo&&Se.current.scrollTo(e)}}}));var $e,Ee,Ne,Ie=t.useRef(),Me=t.useState(!1),Oe=a(Me,2),De=Oe[0],Re=Oe[1],Pe=t.useState(!1),Te=a(Pe,2),He=Te[0],je=Te[1],Be=Ws(new Map),ze=a(Be,2),Ke=ze[0],Le=ze[1],Ae=as(ge).map((function(e){return Ke.get(e)})),Fe=t.useMemo((function(){return Ae}),[Ae.join("_")]),We=function(e,n,r){var o=t.useMemo((function(){var t=n.length,o=function(t,r,o){for(var a=[],i=0,l=t;l!==r;l+=o)a.push(i),n[l].fixed&&(i+=e[l]||0);return a},a=o(0,t,1),i=o(t-1,-1,-1).reverse();return"rtl"===r?{left:i,right:a}:{left:a,right:i}}),[e,n,r]);return o}(Fe,ge,y),_e=v&&is(v.y),Ve=v&&is(be)||Boolean(te.fixed),Ye=Ve&&ge.some((function(e){return e.fixed})),qe=t.useRef(),Xe=function(e,n){var r="object"===o(e)?e:{},a=r.offsetHeader,i=void 0===a?0:a,l=r.offsetSummary,c=void 0===l?0:l,s=r.offsetScroll,u=void 0===s?0:s,d=r.getContainer,f=(void 0===d?function(){return _s}:d)()||_s;return t.useMemo((function(){var t=!!e;return{isSticky:t,stickyClassName:t?"".concat(n,"-sticky-holder"):"",offsetHeader:i,offsetSummary:c,offsetScroll:u,container:f}}),[u,i,c,n,f])}(K,l),Ge=Xe.isSticky,Ue=Xe.offsetHeader,Qe=Xe.offsetSummary,Ze=Xe.offsetScroll,Je=Xe.stickyClassName,et=Xe.container,tt=t.useMemo((function(){return null==S?void 0:S(F)}),[S,F]),nt=(_e||Ge)&&t.isValidElement(tt)&&tt.type===ps&&tt.props.fixed;_e&&(Ee={overflowY:"scroll",maxHeight:v.y}),Ve&&($e={overflowX:"auto"},_e||(Ee={overflowY:"hidden"}),Ne={width:!0===be?"auto":be,minWidth:"100%"});var rt=t.useCallback((function(e,t){we(xe.current)&&Le((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),ot=function(e){var n=t.useRef(e||null),r=t.useRef();function o(){window.clearTimeout(r.current)}return t.useEffect((function(){return o}),[]),[function(e){n.current=e,o(),r.current=window.setTimeout((function(){n.current=null,r.current=void 0}),100)},function(){return n.current}]}(null),at=a(ot,2),it=at[0],lt=at[1];function st(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout((function(){t.scrollLeft=e}),0)))}var dt=N((function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===y,a="number"==typeof r?r:n.scrollLeft,i=n||Us;lt()&<()!==i||(it(i),st(a,Ce.current),st(a,Se.current),st(a,Ie.current),st(a,null===(t=qe.current)||void 0===t?void 0:t.setScrollLeft));var l=n||Ce.current;if(l){var c=l.scrollWidth,s=l.clientWidth;if(c===s)return Re(!1),void je(!1);o?(Re(-a0)):(Re(a>0),je(a1?x-R:0,T=c(c(c({},N),f),{},{flex:"0 0 ".concat(R,"px"),width:"".concat(R,"px"),marginRight:P,pointerEvents:"auto"}),H=t.useMemo((function(){return g?D<=1:0===M||0===D||D>1}),[D,M,g]);H?T.visibility="hidden":g&&(T.height=null==h?void 0:h(D));var j=H?function(){return null}:v,B={};return 0!==D&&0!==M||(B.rowSpan=1,B.colSpan=1),t.createElement(ss,p({className:n(y,m),ellipsis:o.ellipsis,align:o.align,scope:o.rowScope,component:s,prefixCls:r.prefixCls,key:w,record:d,index:l,renderIndex:u,dataIndex:b,render:j,shouldCellUpdate:o.shouldCellUpdate},k,{appendNode:$,additionalProps:c(c({},E),{},{style:T},B)}))}var au=["data","index","className","rowKey","style","extra","getHeight"],iu=es(t.forwardRef((function(e,r){var o,a=e.data,i=e.index,l=e.className,s=e.rowKey,u=e.style,d=e.extra,g=e.getHeight,h=m(e,au),v=a.record,b=a.indent,y=a.index,x=Qc(ns,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),C=x.scrollX,S=x.flattenColumns,w=x.prefixCls,k=x.fixColumn,$=x.componentWidth,E=Qc(nu,["getComponent"]).getComponent,N=bs(v,s,i,b),I=E(["body","row"],"div"),M=E(["body","cell"],"div"),O=N.rowSupportExpand,D=N.expanded,R=N.rowProps,P=N.expandedRowRender,T=N.expandedRowClassName;if(O&&D){var H=P(v,i,b+1,D),j=null==T?void 0:T(v,i,b),B={};k&&(B={style:f({},"--virtual-width","".concat($,"px"))});var z="".concat(w,"-expanded-row-cell");o=t.createElement(I,{className:n("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(b+1),j)},t.createElement(ss,{component:M,prefixCls:w,className:n(z,f({},"".concat(z,"-fixed"),k)),additionalProps:B},H))}var K=c(c({},u),{},{width:C});d&&(K.position="absolute",K.pointerEvents="none");var L=t.createElement(I,p({},R,h,{"data-row-key":s,ref:O?null:r,className:n(l,"".concat(w,"-row"),null==R?void 0:R.className,f({},"".concat(w,"-row-extra"),d)),style:c(c({},K),null==R?void 0:R.style)}),S.map((function(e,n){return t.createElement(ou,{key:n,component:M,rowInfo:N,column:e,colIndex:n,indent:b,index:i,renderIndex:y,record:v,inverse:d,getHeight:g})})));return O?t.createElement("div",{ref:r},L,o):L}))),lu=t.forwardRef((function(e,r){var i=e.data,l=e.onScroll,c=Qc(ns,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),s=c.flattenColumns,u=c.onColumnResize,d=c.getRowKey,f=c.expandedKeys,m=c.prefixCls,g=c.childrenColumnName,h=c.emptyNode,v=c.scrollX,b=Qc(nu),y=b.sticky,x=b.scrollY,C=b.listItemHeight,S=b.getComponent,w=b.onScroll,k=t.useRef(),$=vs(i,g,f,d),E=t.useMemo((function(){var e=0;return s.map((function(t){var n=t.width;return[t.key,n,e+=n]}))}),[s]),N=t.useMemo((function(){return E.map((function(e){return e[2]}))}),[E]);t.useEffect((function(){E.forEach((function(e){var t=a(e,2),n=t[0],r=t[1];u(n,r)}))}),[E]),t.useImperativeHandle(r,(function(){var e={scrollTo:function(e){var t;null===(t=k.current)||void 0===t||t.scrollTo(e)}};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=k.current)||void 0===t||t.scrollTo({left:e})}}),e}));var I,M=function(e,t){var n,r=null===(n=$[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var a,i=o(r,t);return null!==(a=null==i?void 0:i.rowSpan)&&void 0!==a?a:1}return 1},O=t.useMemo((function(){return{columnsOffset:N}}),[N]),D="".concat(m,"-tbody"),R=S(["body","wrapper"]),P=S(["body","row"],"div"),T=S(["body","cell"],"div");if($.length){var H={};y&&(H.position="sticky",H.bottom=0,"object"===o(y)&&y.offsetScroll&&(H.bottom=y.offsetScroll)),I=t.createElement(zn,{fullHeight:!1,ref:k,prefixCls:"".concat(D,"-virtual"),styles:{horizontalScrollBar:H},className:D,height:x,itemHeight:C||24,data:$,itemKey:function(e){return d(e.record)},component:R,scrollWidth:v,onVirtualScroll:function(e){var t=e.x;l({scrollLeft:t})},onScroll:w,extraRender:function(e){var n=e.start,r=e.end,o=e.getSize,a=e.offsetY;if(r<0)return null;for(var i=s.filter((function(e){return 0===M(e,n)})),l=n,c=function(e){if(!(i=i.filter((function(t){return 0===M(t,e)}))).length)return l=e,1},u=n;u>=0&&!c(u);u-=1);for(var f=s.filter((function(e){return 1!==M(e,r)})),p=r,m=function(e){if(!(f=f.filter((function(t){return 1!==M(t,e)}))).length)return p=Math.max(e-1,r),1},g=r;g<$.length&&!m(g);g+=1);for(var h=[],v=function(e){if(!$[e])return 1;s.some((function(t){return M(t,e)>1}))&&h.push(e)},b=l;b<=p;b+=1)v(b);return h.map((function(e){var n=$[e],r=d(n.record,e),i=o(r);return t.createElement(iu,{key:e,data:n,rowKey:r,index:e,style:{top:-a+i.top},extra:!0,getHeight:function(t){var n=e+t-1,a=d($[n].record,n),i=o(r,a);return i.bottom-i.top}})}))}},(function(e,n,r){var o=d(e.record,n);return t.createElement(iu,p({data:e,rowKey:o,index:n},r))}))}else I=t.createElement(P,{className:n("".concat(m,"-placeholder"))},t.createElement(ss,{component:T,prefixCls:m},h));return t.createElement(ru.Provider,{value:O},I)})),cu=es(lu),su=function(e,n){var r=n.ref,o=n.onScroll;return t.createElement(cu,{ref:r,data:e,onScroll:o})};function uu(e,r){var o=e.columns,a=e.scroll,i=e.sticky,l=e.prefixCls,s=void 0===l?Xs:l,u=e.className,d=e.listItemHeight,f=e.components,m=e.onScroll,g=a||{},h=g.x,v=g.y;"number"!=typeof h&&(h=1),"number"!=typeof v&&(v=500);var b=N((function(e,t){return ut(f,e)||t})),y=N(m),x=t.useMemo((function(){return{sticky:i,scrollY:v,listItemHeight:d,getComponent:b,onScroll:y}}),[i,v,d,b,y]);return t.createElement(nu.Provider,{value:x},t.createElement(tu,p({},e,{className:n(u,"".concat(s,"-virtual")),scroll:c(c({},a),{},{x:h}),components:c(c({},f),{},{body:su}),columns:o,internalHooks:Gc,tailor:!0,ref:r})))}var du=t.forwardRef(uu);function fu(e){return Jc(du,e)}fu();var pu=t.createContext(null),mu=function(e){for(var r=e.prefixCls,o=e.level,a=e.isStart,i=e.isEnd,l="".concat(r,"-indent-unit"),c=[],s=0;s=0&&n.splice(r,1),n}function Su(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function wu(e){return e.split("-")}function ku(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){var r=t.key,o=t.children;n.push(r),e(o)}))}(ji(t,e).children),n}function $u(e){if(e.parent){var t=wu(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Eu(e,t,n,r,o,a,i,l,c,s){var u,d=e.clientX,f=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,h=(("rtl"===s?-1:1)*(((null==o?void 0:o.x)||0)-d)-12)/r,v=c.filter((function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length})),b=ji(l,n.props.eventKey);if(f-1.5?a({dragNode:I,dropNode:M,dropPosition:1})?k=1:O=!1:a({dragNode:I,dropNode:M,dropPosition:0})?k=0:a({dragNode:I,dropNode:M,dropPosition:1})?k=1:O=!1:a({dragNode:I,dropNode:M,dropPosition:1})?k=1:O=!1,{dropPosition:k,dropLevelOffset:$,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:w,dropContainerKey:0===k?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:O}}function Nu(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function Iu(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==o(e))return h(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Mu(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=ji(t,e);if(o){n.add(e);var a=o.parent;o.node.disabled||a&&r(a.key)}}}return(e||[]).forEach((function(e){r(e)})),b(n)}xu.displayName="TreeNode",xu.isTreeNode=1;const Ou={},Du="SELECT_ALL",Ru="SELECT_INVERT",Pu="SELECT_NONE",Tu=[],Hu=(e,t)=>{let n=[];return(t||[]).forEach((t=>{n.push(t),t&&"object"==typeof t&&e in t&&(n=[].concat(b(n),b(Hu(e,t[e]))))})),n},ju=(e,r)=>{const{preserveSelectedRowKeys:o,selectedRowKeys:a,defaultSelectedRowKeys:i,getCheckboxProps:l,onChange:c,onSelect:s,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:p,columnWidth:m,type:g,selections:h,fixed:v,renderCell:y,hideSelectAll:x,checkStrictly:C=!0}=r||{},{prefixCls:w,data:k,pageData:$,getRecordByKey:E,getRowKey:N,expandType:I,childrenColumnName:M,locale:O,getPopupContainer:D}=e,R=vt(),[P,T]=function(e){const[n,r]=t.useState(null);return[t.useCallback(((t,o,a)=>{const i=null!=n?n:t,l=Math.min(i||0,t),c=Math.max(i||0,t),s=o.slice(l,c+1).map((t=>e(t))),u=s.some((e=>!a.has(e))),d=[];return s.forEach((e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))})),r(u?c:null),d}),[n]),e=>{r(e)}]}((e=>e)),[H,j]=S(a||i||Tu,{value:a}),B=t.useRef(new Map),z=t.useCallback((e=>{if(o){const t=new Map;e.forEach((e=>{let n=E(e);!n&&B.current.has(e)&&(n=B.current.get(e)),t.set(e,n)})),B.current=t}}),[E,o]);t.useEffect((()=>{z(H)}),[H]);const{keyEntities:K}=t.useMemo((()=>{if(C)return{keyEntities:null};let e=k;if(o){const t=new Set(k.map(((e,t)=>N(e,t)))),n=Array.from(B.current).reduce(((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)}),[]);e=[].concat(b(e),b(n))}return Wi(e,{externalGetKey:N,childrenPropName:M})}),[k,N,C,M,o]),L=t.useMemo((()=>Hu(M,$)),[M,$]),A=t.useMemo((()=>{const e=new Map;return L.forEach(((t,n)=>{const r=N(t,n),o=(l?l(t):null)||{};e.set(r,o)})),e}),[L,N,l]),F=t.useCallback((e=>{var t;return!!(null===(t=A.get(N(e)))||void 0===t?void 0:t.disabled)}),[A,N]),[W,_]=t.useMemo((()=>{if(C)return[H||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Xi(H,!0,K,F);return[e||[],t]}),[H,C,K,F]),V=t.useMemo((()=>{const e="radio"===g?W.slice(0,1):W;return new Set(e)}),[W,g]),Y=t.useMemo((()=>"radio"===g?new Set:new Set(_)),[_,g]);t.useEffect((()=>{r||j(Tu)}),[!!r]);const q=t.useCallback(((e,t)=>{let n,r;z(e),o?(n=e,r=e.map((e=>B.current.get(e)))):(n=[],r=[],e.forEach((e=>{const t=E(e);void 0!==t&&(n.push(e),r.push(t))}))),j(n),null==c||c(n,r,{type:t})}),[j,E,c,o]),X=t.useCallback(((e,t,n,r)=>{if(s){const o=n.map((e=>E(e)));s(E(e),t,o,r)}q(n,"single")}),[s,E,q]),G=t.useMemo((()=>{if(!h||x)return null;return(!0===h?[Du,Ru,Pu]:h).map((e=>e===Du?{key:"all",text:O.selectionAll,onSelect(){q(k.map(((e,t)=>N(e,t))).filter((e=>{const t=A.get(e);return!(null==t?void 0:t.disabled)||V.has(e)})),"all")}}:e===Ru?{key:"invert",text:O.selectInvert,onSelect(){const e=new Set(V);$.forEach(((t,n)=>{const r=N(t,n),o=A.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))}));const t=Array.from(e);d&&(R.deprecated(!1,"onSelectInvert","onChange"),d(t)),q(t,"invert")}}:e===Pu?{key:"none",text:O.selectNone,onSelect(){null==f||f(),q(Array.from(V).filter((e=>{const t=A.get(e);return null==t?void 0:t.disabled})),"none")}}:e)).map((e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),a=0;a{var o;if(!r)return e.filter((e=>e!==Ou));let a=b(e);const i=new Set(V),l=L.map(N).filter((e=>!A.get(e).disabled)),c=l.every((e=>i.has(e))),s=l.some((e=>i.has(e))),d=()=>{const e=[];c?l.forEach((t=>{i.delete(t),e.push(t)})):l.forEach((t=>{i.has(t)||(i.add(t),e.push(t))}));const t=Array.from(i);null==u||u(!c,t.map((e=>E(e))),e.map((e=>E(e)))),q(t,"all"),T(null)};let f,S,k;if("radio"!==g){let e;if(G){const n={getPopupContainer:D,items:G.map(((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!=n?n:t,onClick:()=>{null==o||o(l)},label:r}}))};e=t.createElement("div",{className:`${w}-selection-extra`},t.createElement(bt,{menu:n,getPopupContainer:D},t.createElement("span",null,t.createElement(Z,null))))}const n=L.map(((e,t)=>{const n=N(e,t),r=A.get(n)||{};return Object.assign({checked:i.has(n)},r)})).filter((e=>{let{disabled:t}=e;return t})),r=!!n.length&&n.length===L.length,o=r&&n.every((e=>{let{checked:t}=e;return t})),a=r&&n.some((e=>{let{checked:t}=e;return t}));S=t.createElement(al,{checked:r?o:!!L.length&&c,indeterminate:r?!o&&a:!c&&s,onChange:d,disabled:0===L.length||r,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),f=!x&&t.createElement("div",{className:`${w}-selection`},S,e)}k="radio"===g?(e,n,r)=>{const o=N(n,r),a=i.has(o);return{node:t.createElement($i,Object.assign({},A.get(o),{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{i.has(o)||X(o,!0,[o],e.nativeEvent)}})),checked:a}}:(e,n,r)=>{var o;const a=N(n,r),c=i.has(a),s=Y.has(a),u=A.get(a);let d;return d="nest"===I?s:null!==(o=null==u?void 0:u.indeterminate)&&void 0!==o?o:s,{node:t.createElement(al,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t,r=l.findIndex((e=>e===a)),o=W.some((e=>l.includes(e)));if(n&&C&&o){const e=P(r,l,i),t=Array.from(i);null==p||p(!c,t.map((e=>E(e))),e.map((e=>E(e)))),q(t,"multiple")}else{const e=W;if(C){const n=c?Cu(e,a):Su(e,a);X(a,!c,n,t)}else{const n=Xi([].concat(b(e),[a]),!0,K,F),{checkedKeys:r,halfCheckedKeys:o}=n;let i=r;if(c){const e=new Set(r);e.delete(a),i=Xi(Array.from(e),{checked:!1,halfCheckedKeys:o},K,F).checkedKeys}X(a,!c,i,t)}}T(c?null:r)}})),checked:c}};if(!a.includes(Ou))if(0===a.findIndex((e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[Es])||void 0===t?void 0:t.columnType)}))){const[e,...t]=a;a=[e,Ou].concat(b(t))}else a=[Ou].concat(b(a));const $=a.indexOf(Ou);a=a.filter(((e,t)=>e!==Ou||t===$));const M=a[$-1],O=a[$+1];let R=v;void 0===R&&(void 0!==(null==O?void 0:O.fixed)?R=O.fixed:void 0!==(null==M?void 0:M.fixed)&&(R=M.fixed)),R&&M&&"EXPAND_COLUMN"===(null===(o=M[Es])||void 0===o?void 0:o.columnType)&&void 0===M.fixed&&(M.fixed=R);const H=n(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:h&&"checkbox"===g}),j={fixed:R,width:m,className:`${w}-selection-column`,title:(null==r?void 0:r.columnTitle)?"function"==typeof r.columnTitle?r.columnTitle(S):r.columnTitle:f,render:(e,t,n)=>{const{node:r,checked:o}=k(e,t,n);return y?y(o,t,n,r):r},onCell:r.onCell,[Es]:{className:H}};return a.map((e=>e===Ou?j:e))}),[N,L,r,W,V,Y,m,G,I,A,p,X,F]);return[U,V]};function Bu(e,n){return t.useImperativeHandle(e,(()=>{const e=n(),{nativeElement:t}=e;return"undefined"!=typeof Proxy?new Proxy(t,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=t)._antProxy=r._antProxy||{},Object.keys(o).forEach((e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}})),r);var r,o}))}function zu(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Ku(e,t){return t?`${t}-${e}`:`${e}`}function Lu(e,t){return"function"==typeof e?e(t):e}const Au={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var Fu=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Au}))}; +/**![filter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM0OSA4MzhjMCAxNy43IDE0LjIgMzIgMzEuOCAzMmgyNjIuNGMxNy42IDAgMzEuOC0xNC4zIDMxLjgtMzJWNjQySDM0OXYxOTZ6bTUzMS4xLTY4NEgxNDMuOWMtMjQuNSAwLTM5LjggMjYuNy0yNy41IDQ4bDIyMS4zIDM3NmgzNDguOGwyMjEuMy0zNzZjMTIuMS0yMS4zLTMuMi00OC0yNy43LTQ4eiIgLz48L3N2Zz4=) */const Wu=t.forwardRef(Fu);function _u(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var Vu=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Yu=function(e,r){var o=e.className,i=e.style,l=e.motion,c=e.motionNodes,s=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,f=e.active,g=e.treeNodeRequiredProps,h=m(e,Vu),v=t.useState(!0),b=a(v,2),y=b[0],x=b[1],S=t.useContext(pu).prefixCls,w=c&&"hide"!==s;C((function(){c&&w!==y&&x(w)}),[c]);var k=t.useRef(!1),$=function(){c&&!k.current&&(k.current=!0,d())};!function(e,n){var r=t.useState(!1),o=a(r,2),i=o[0],l=o[1];C((function(){if(i)return e(),function(){n()}}),[i]),C((function(){return l(!0),function(){l(!1)}}),[])}((function(){c&&u()}),$);return c?t.createElement(xt,p({ref:r,visible:y},l,{motionAppear:"show"===s,onVisibleChanged:function(e){w===e&&$()}}),(function(e,r){var o=e.className,a=e.style;return t.createElement("div",{ref:r,className:n("".concat(S,"-treenode-motion"),o),style:a},c.map((function(e){var n=Object.assign({},(_u(e.data),e.data)),r=e.title,o=e.key,a=e.isStart,i=e.isEnd;delete n.children;var l=_i(o,g);return t.createElement(xu,p({},n,l,{title:r,active:f,data:e.data,key:o,isStart:a,isEnd:i}))})))})):t.createElement(xu,p({domRef:r,className:o,style:i},h,{active:f}))};Yu.displayName="MotionTreeNode";var qu=t.forwardRef(Yu);function Xu(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],a=t.findIndex((function(e){return e.key===n}));if(o){var i=t.findIndex((function(e){return e.key===o.key}));return t.slice(a+1,i)}return t.slice(a+1)}var Gu=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Uu={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Qu=function(){},Zu="RC_TREE_MOTION_".concat(Math.random()),Ju={key:Zu},ed={key:Zu,level:0,index:0,pos:"0",node:Ju,nodes:[Ju]},td={parent:null,children:[],pos:ed.pos,data:Ju,title:null,key:Zu,isStart:[],isEnd:[]};function nd(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function rd(e){return Ki(e.key,e.pos)}var od=t.forwardRef((function(e,n){var r=e.prefixCls,o=e.data;e.selectable,e.checkable;var i=e.expandedKeys,l=e.selectedKeys,c=e.checkedKeys,s=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,g=e.disabled,h=e.dragging,v=e.dragOverNodeKey,b=e.dropPosition,y=e.motion,x=e.height,S=e.itemHeight,w=e.virtual,k=e.focusable,$=e.activeItem,E=e.focused,N=e.tabIndex,I=e.onKeyDown,M=e.onFocus,O=e.onBlur,D=e.onActiveChange,R=e.onListChangeStart,P=e.onListChangeEnd,T=m(e,Gu),H=t.useRef(null),j=t.useRef(null);t.useImperativeHandle(n,(function(){return{scrollTo:function(e){H.current.scrollTo(e)},getIndentWidth:function(){return j.current.offsetWidth}}}));var B=t.useState(i),z=a(B,2),K=z[0],L=z[1],A=t.useState(o),F=a(A,2),W=F[0],_=F[1],V=t.useState(o),Y=a(V,2),q=Y[0],X=Y[1],G=t.useState([]),U=a(G,2),Q=U[0],Z=U[1],J=t.useState(null),ee=a(J,2),te=ee[0],ne=ee[1],re=t.useRef(o);function oe(){var e=re.current;_(e),X(e),Z([]),ne(null),P()}re.current=o,C((function(){L(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n ").concat(t);return t}($)),t.createElement("div",null,t.createElement("input",{style:Uu,disabled:!1===k||g,tabIndex:!1!==k?N:null,onKeyDown:I,onFocus:M,onBlur:O,value:"",onChange:Qu,"aria-label":"for screen reader"})),t.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},t.createElement("div",{className:"".concat(r,"-indent")},t.createElement("div",{ref:j,className:"".concat(r,"-indent-unit")}))),t.createElement(zn,p({},T,{data:ae,itemKey:rd,height:x,fullHeight:!1,virtual:w,itemHeight:S,prefixCls:"".concat(r,"-list"),ref:H,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return rd(e)===Zu}))&&oe()}}),(function(e){var n=e.pos,r=Object.assign({},(_u(e.data),e.data)),o=e.title,a=e.key,i=e.isStart,l=e.isEnd,c=Ki(a,n);delete r.key,delete r.children;var s=_i(c,ie);return t.createElement(qu,p({},r,s,{title:o,active:!!$&&a===$.key,pos:n,data:e.data,isStart:i,isEnd:l,motion:y,motionNodes:a===Zu?Q:null,motionType:te,onMotionStart:R,onMotionEnd:oe,treeNodeRequiredProps:ie,onMouseMove:function(){D(null)}}))})))}));od.displayName="NodeList";var ad=function(e){mt(a,e);var r=gt(a);function a(){var e;$(this,a);for(var n=arguments.length,o=new Array(n),l=0;l2&&void 0!==arguments[2]&&arguments[2],a=e.state,i=a.dragChildrenKeys,l=a.dropPosition,s=a.dropTargetKey,u=a.dropTargetPos;if(a.dropAllowed){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var f=c(c({},_i(s,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===s,data:ji(e.state.keyEntities,s).node}),p=-1!==i.indexOf(s);h(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var m=wu(u),g={event:t,node:Vi(f),dragNode:e.dragNode?Vi(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(m[m.length-1])};o||null==d||d(g),e.dragNode=null}}})),f(ht(e),"cleanDragState",(function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null})),f(ht(e),"triggerExpandActionExpand",(function(t,n){var r=e.state,o=r.expandedKeys,a=r.flattenNodes,i=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var s=a.filter((function(e){return e.key===l}))[0],u=Vi(c(c({},_i(l,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(i?Cu(o,l):Su(o,l)),e.onNodeExpand(t,u)}})),f(ht(e),"onNodeClick",(function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),f(ht(e),"onNodeDoubleClick",(function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null==o||o(t,n)})),f(ht(e),"onNodeSelect",(function(t,n){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,i=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[i.key],f=!u,p=(r=f?s?Su(r,d):[d]:Cu(r,d)).map((function(e){var t=ji(a,e);return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})})),f(ht(e),"onNodeCheck",(function(t,n,r){var o,a=e.state,i=a.keyEntities,l=a.checkedKeys,c=a.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var m=r?Su(l,f):Cu(l,f);o={checked:m,halfChecked:Cu(c,f)},p.checkedNodes=m.map((function(e){return ji(i,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var g=Xi([].concat(b(l),[f]),!0,i),h=g.checkedKeys,v=g.halfCheckedKeys;if(!r){var y=new Set(h);y.delete(f);var x=Xi(Array.from(y),{checked:!1,halfCheckedKeys:v},i);h=x.checkedKeys,v=x.halfCheckedKeys}o=h,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=v,h.forEach((function(e){var t=ji(i,e);if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:h},!1,{halfCheckedKeys:v})}null==d||d(o,p)})),f(ht(e),"onNodeLoad",(function(t){var n=t.key,r=new Promise((function(r,o){e.setState((function(a){var i=a.loadedKeys,l=void 0===i?[]:i,c=a.loadingKeys,s=void 0===c?[]:c,u=e.props,d=u.loadData,f=u.onLoad;return d&&-1===l.indexOf(n)&&-1===s.indexOf(n)?(d(t).then((function(){var o=Su(e.state.loadedKeys,n);null==f||f(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState((function(e){return{loadingKeys:Cu(e.loadingKeys,n)}})),r()})).catch((function(t){if(e.setState((function(e){return{loadingKeys:Cu(e.loadingKeys,n)}})),e.loadingRetryTimes[n]=(e.loadingRetryTimes[n]||0)+1,e.loadingRetryTimes[n]>=10){var a=e.state.loadedKeys;h(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:Su(a,n)}),r()}o(t)})),{loadingKeys:Su(s,n)}):null}))}));return r.catch((function(){})),r})),f(ht(e),"onNodeMouseEnter",(function(t,n){var r=e.props.onMouseEnter;null==r||r({event:t,node:n})})),f(ht(e),"onNodeMouseLeave",(function(t,n){var r=e.props.onMouseLeave;null==r||r({event:t,node:n})})),f(ht(e),"onNodeContextMenu",(function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))})),f(ht(e),"onFocus",(function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,i={};Object.keys(t).forEach((function(n){n in e.props?a=!1:(o=!0,i[n]=t[n])})),!o||n&&!a||e.setState(c(c({},i),r))}})),f(ht(e),"scrollTo",(function(t){e.listRef.current.scrollTo(t)})),e}return k(a,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,r=this.state,a=r.focused,i=r.flattenNodes,l=r.keyEntities,c=r.draggingNodeKey,s=r.activeKey,d=r.dropLevelOffset,m=r.dropContainerKey,g=r.dropTargetKey,h=r.dropPosition,v=r.dragOverNodeKey,b=r.indent,y=this.props,x=y.prefixCls,C=y.className,S=y.style,w=y.showLine,k=y.focusable,$=y.tabIndex,E=void 0===$?0:$,N=y.selectable,I=y.showIcon,M=y.icon,O=y.switcherIcon,D=y.draggable,R=y.checkable,P=y.checkStrictly,T=y.disabled,H=y.motion,j=y.loadData,B=y.filterTreeNode,z=y.height,K=y.itemHeight,L=y.virtual,A=y.titleRender,F=y.dropIndicatorRender,W=y.onContextMenu,_=y.onScroll,V=y.direction,Y=y.rootClassName,q=y.rootStyle,X=u(this.props,{aria:!0,data:!0});return D&&(e="object"===o(D)?D:"function"==typeof D?{nodeDraggable:D}:{}),t.createElement(pu.Provider,{value:{prefixCls:x,selectable:N,showIcon:I,icon:M,switcherIcon:O,draggable:e,draggingNodeKey:c,checkable:R,checkStrictly:P,disabled:T,keyEntities:l,dropLevelOffset:d,dropContainerKey:m,dropTargetKey:g,dropPosition:h,dragOverNodeKey:v,indent:b,direction:V,dropIndicatorRender:F,loadData:j,filterTreeNode:B,titleRender:A,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},t.createElement("div",{role:"tree",className:n(x,C,Y,f(f(f({},"".concat(x,"-show-line"),w),"".concat(x,"-focused"),a),"".concat(x,"-active-focused"),null!==s)),style:q},t.createElement(od,p({ref:this.listRef,prefixCls:x,style:S,data:i,disabled:T,selectable:N,checkable:!!R,motion:H,dragging:null!==c,height:z,itemHeight:K,virtual:L,focusable:k,focused:a,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:_},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function a(t){return!r&&t in e||r&&r[t]!==e[t]}var i=t.fieldNames;if(a("fieldNames")&&(i=Li(e.fieldNames),o.fieldNames=i),a("treeData")?n=e.treeData:a("children")&&(h(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Ai(e.children)),n){o.treeData=n;var l=Wi(n,{fieldNames:i});o.keyEntities=c(f({},Zu,ed),l.keyEntities)}var s,u=o.keyEntities||t.keyEntities;if(a("expandedKeys")||r&&a("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Mu(e.expandedKeys,u):e.expandedKeys;else if(!r&&e.defaultExpandAll){var d=c({},u);delete d[Zu],o.expandedKeys=Object.keys(d).map((function(e){return d[e].key}))}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Mu(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var p=Fi(n||t.treeData,o.expandedKeys||t.expandedKeys,i);o.flattenNodes=p}if((e.selectable&&(a("selectedKeys")?o.selectedKeys=Nu(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=Nu(e.defaultSelectedKeys,e))),e.checkable)&&(a("checkedKeys")?s=Iu(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=Iu(e.defaultCheckedKeys)||{}:n&&(s=Iu(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var m=s,g=m.checkedKeys,v=void 0===g?[]:g,b=m.halfCheckedKeys,y=void 0===b?[]:b;if(!e.checkStrictly){var x=Xi(v,!0,u);v=x.checkedKeys,y=x.halfCheckedKeys}o.checkedKeys=v,o.halfCheckedKeys=y}return a("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),a}(t.Component);f(ad,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,r=e.dropLevelOffset,o=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*o;break;case 1:a.bottom=0,a.left=-r*o;break;case 0:a.bottom=0,a.left=o}return t.createElement("div",{style:a})},allowDrop:function(){return!0},expandAction:!1}),f(ad,"TreeNode",xu);const id={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var ld=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:id}))}; +/**![file](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg1NC42IDI4OC42TDYzOS40IDczLjRjLTYtNi0xNC4xLTkuNC0yMi42LTkuNEgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjgzMmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg2NDBjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzExLjNjMC04LjUtMy40LTE2LjctOS40LTIyLjd6TTc5MC4yIDMyNkg2MDJWMTM3LjhMNzkwLjIgMzI2em0xLjggNTYySDIzMlYxMzZoMzAydjIxNmE0MiA0MiAwIDAwNDIgNDJoMjE2djQ5NHoiIC8+PC9zdmc+) */const cd=t.forwardRef(ld);const sd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var ud=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:sd}))}; +/**![folder-open](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyOCA0NDRIODIwVjMzMC40YzAtMTcuNy0xNC4zLTMyLTMyLTMySDQ3M0wzNTUuNyAxODYuMmE4LjE1IDguMTUgMCAwMC01LjUtMi4ySDk2Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY1OTJjMCAxNy43IDE0LjMgMzIgMzIgMzJoNjk4YzEzIDAgMjQuOC03LjkgMjkuNy0yMGwxMzQtMzMyYzEuNS0zLjggMi4zLTcuOSAyLjMtMTIgMC0xNy43LTE0LjMtMzItMzItMzJ6TTEzNiAyNTZoMTg4LjVsMTE5LjYgMTE0LjRINzQ4VjQ0NEgyMzhjLTEzIDAtMjQuOCA3LjktMjkuNyAyMEwxMzYgNjQzLjJWMjU2em02MzUuMyA1MTJIMTU5bDEwMy4zLTI1Nmg2MTIuNEw3NzEuMyA3Njh6IiAvPjwvc3ZnPg==) */const dd=t.forwardRef(ud);const fd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var pd=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:fd}))}; +/**![folder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4MCAyOTguNEg1MjFMNDAzLjcgMTg2LjJhOC4xNSA4LjE1IDAgMDAtNS41LTIuMkgxNDRjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjU5MmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg3MzZjMTcuNyAwIDMyLTE0LjMgMzItMzJWMzMwLjRjMC0xNy43LTE0LjMtMzItMzItMzJ6TTg0MCA3NjhIMTg0VjI1NmgxODguNWwxMTkuNiAxMTQuNEg4NDBWNzY4eiIgLz48L3N2Zz4=) */const md=t.forwardRef(pd);const gd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var hd=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:gd}))}; +/**![holder](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMwMCAyNzYuNWE1NiA1NiAwIDEwNTYtOTcgNTYgNTYgMCAwMC01NiA5N3ptMCAyODRhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCAyMjhhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6bTAgMjg0YTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDAwLTExMiAwek0zMDAgODQ0LjVhNTYgNTYgMCAxMDU2LTk3IDU2IDU2IDAgMDAtNTYgOTd6TTY0MCA3OTZhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMDAtMTEyIDB6IiAvPjwvc3ZnPg==) */const vd=t.forwardRef(hd),bd=new St("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),yd=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),xd=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${_(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Cd=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,nodeSelectedBg:i,nodeHoverBg:l}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},H(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},ke(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:bd,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${_(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,lineHeight:`${_(a)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},yd(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${_(a)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${_(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${_(a)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{backgroundColor:i},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${_(a)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${_(a)}`,userSelect:"none"},xd(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${_(t.calc(a).div(2).equal())} !important`}}}}})}},Sd=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:a}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:a,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent"}}}}}},wd=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),a=V(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[Cd(e,a),Sd(a)]},kd=Y("Tree",((e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Ui(`${n}-checkbox`,e)},wd(n,e),Ct(e)]}),(e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}));function $d(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:a,direction:i="ltr"}=e,l="ltr"===i?"left":"right",c="ltr"===i?"right":"left",s={[l]:-n*a+4,[c]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[l]=a+4}return r.createElement("div",{style:s,className:`${o}-drop-indicator`})}const Ed={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var Nd=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Ed}))}; +/**![caret-down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg0MC40IDMwMEgxODMuNmMtMTkuNyAwLTMwLjcgMjAuOC0xOC41IDM1bDMyOC40IDM4MC44YzkuNCAxMC45IDI3LjUgMTAuOSAzNyAwTDg1OC45IDMzNWMxMi4yLTE0LjIgMS4yLTM1LTE4LjUtMzV6IiAvPjwvc3ZnPg==) */const Id=t.forwardRef(Nd);const Md={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var Od=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Md}))}; +/**![minus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMzY4YzQuNCAwIDgtMy42IDgtOHYtNDhjMC00LjQtMy42LTgtOC04SDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */const Dd=t.forwardRef(Od);const Rd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var Pd=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Rd}))}; +/**![plus-square](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTMyOCA1NDRoMTUydjE1MmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjU0NGgxNTJjNC40IDAgOC0zLjYgOC04di00OGMwLTQuNC0zLjYtOC04LThINTQ0VjMyOGMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MTUySDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOHoiIC8+PHBhdGggZD0iTTg4MCAxMTJIMTQ0Yy0xNy43IDAtMzIgMTQuMy0zMiAzMnY3MzZjMCAxNy43IDE0LjMgMzIgMzIgMzJoNzM2YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE0NGMwLTE3LjctMTQuMy0zMi0zMi0zMnptLTQwIDcyOEgxODRWMTg0aDY1NnY2NTZ6IiAvPjwvc3ZnPg==) */const Td=t.forwardRef(Pd),Hd=e=>{const{prefixCls:r,switcherIcon:o,treeNodeProps:a,showLine:i}=e,{isLeaf:l,expanded:c,loading:s}=a;if(s)return t.createElement(U,{className:`${r}-switcher-loading-icon`});let u;if(i&&"object"==typeof i&&(u=i.showLeafIcon),l){if(!i)return null;if("boolean"!=typeof u&&u){const e="function"==typeof u?u(a):u,o=`${r}-switcher-line-custom-icon`;return t.isValidElement(e)?be(e,{className:n(e.props.className||"",o)}):e}return u?t.createElement(cd,{className:`${r}-switcher-line-icon`}):t.createElement("span",{className:`${r}-switcher-leaf-line`})}const d=`${r}-switcher-icon`,f="function"==typeof o?o(a):o;return t.isValidElement(f)?be(f,{className:n(f.props.className||"",d)}):void 0!==f?f:i?c?t.createElement(Dd,{className:`${r}-switcher-line-icon`}):t.createElement(Td,{className:`${r}-switcher-line-icon`}):t.createElement(Id,{className:d})},jd=r.forwardRef(((e,t)=>{var o;const{getPrefixCls:a,direction:i,virtual:l,tree:c}=r.useContext(P),{prefixCls:s,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,blockNode:m=!1,children:g,checkable:h=!1,selectable:v=!0,draggable:b,motion:y,style:x}=e,C=a("tree",s),S=a(),w=null!=y?y:Object.assign(Object.assign({},wt(S)),{motionAppear:!1}),k=Object.assign(Object.assign({},e),{checkable:h,selectable:v,showIcon:d,motion:w,blockNode:m,showLine:Boolean(f),dropIndicatorRender:$d}),[$,E,N]=kd(C),[,I]=ee(),M=I.paddingXS/2+((null===(o=I.Tree)||void 0===o?void 0:o.titleHeight)||I.controlHeightSM),O=r.useMemo((()=>{if(!b)return!1;let e={};switch(typeof b){case"function":e.nodeDraggable=b;break;case"object":e=Object.assign({},b)}return!1!==e.icon&&(e.icon=e.icon||r.createElement(vd,null)),e}),[b]);return $(r.createElement(ad,Object.assign({itemHeight:M,ref:t,virtual:l},k,{style:Object.assign(Object.assign({},null==c?void 0:c.style),x),prefixCls:C,className:n({[`${C}-icon-hide`]:!d,[`${C}-block-node`]:m,[`${C}-unselectable`]:!v,[`${C}-rtl`]:"rtl"===i},null==c?void 0:c.className,u,E,N),direction:i,checkable:h?r.createElement("span",{className:`${C}-checkbox-inner`}):h,selectable:v,switcherIcon:e=>r.createElement(Hd,{prefixCls:C,switcherIcon:p,treeNodeProps:e,showLine:f}),draggable:O}),g))}));function Bd(e,t,n){const{key:r,children:o}=n;e.forEach((function(e){const a=e[r],i=e[o];!1!==t(a,e)&&Bd(i||[],t,n)}))}function zd(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:a}=e;const i=[];let l=0;if(r&&r===o)return[r];if(!r||!o)return[];return Bd(t,(e=>{if(2===l)return!1;if(function(e){return e===r||e===o}(e)){if(i.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&i.push(e);return n.includes(e)}),Li(a)),i}function Kd(e,t,n){const r=b(t),o=[];return Bd(e,((e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length}),Li(n)),o}var Ld=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:o,defaultExpandParent:a,defaultExpandedKeys:i}=e,l=Ld(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=t.useRef(),s=t.useRef(),[u,d]=t.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[f,p]=t.useState((()=>(()=>{const{keyEntities:e}=Wi(Fd(l));let t;return t=o?Object.keys(e):a?Mu(l.expandedKeys||i||[],e):l.expandedKeys||i||[],t})()));t.useEffect((()=>{"selectedKeys"in l&&d(l.selectedKeys)}),[l.selectedKeys]),t.useEffect((()=>{"expandedKeys"in l&&p(l.expandedKeys)}),[l.expandedKeys]);const{getPrefixCls:m,direction:g}=t.useContext(P),{prefixCls:h,className:v,showIcon:y=!0,expandAction:x="click"}=l,C=Ld(l,["prefixCls","className","showIcon","expandAction"]),S=m("tree",h),w=n(`${S}-directory`,{[`${S}-directory-rtl`]:"rtl"===g},v);return t.createElement(jd,Object.assign({icon:Ad,ref:r,blockNode:!0},C,{showIcon:y,expandAction:x,prefixCls:S,className:w,expandedKeys:f,selectedKeys:u,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=l,{node:a,nativeEvent:i}=t,{key:u=""}=a,p=Fd(l),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null==i?void 0:i.ctrlKey)||(null==i?void 0:i.metaKey),h=null==i?void 0:i.shiftKey;let v;r&&g?(v=e,c.current=u,s.current=v,m.selectedNodes=Kd(p,v,o)):r&&h?(v=Array.from(new Set([].concat(b(s.current||[]),b(zd({treeData:p,expandedKeys:f,startKey:u,endKey:c.current,fieldNames:o}))))),m.selectedNodes=Kd(p,v,o)):(v=[u],c.current=u,s.current=v,m.selectedNodes=Kd(p,v,o)),null===(n=l.onSelect)||void 0===n||n.call(l,v,m),"selectedKeys"in l||d(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in l||p(e),null===(n=l.onExpand)||void 0===n?void 0:n.call(l,e,t)}}))},_d=t.forwardRef(Wd),Vd=jd;Vd.DirectoryTree=_d,Vd.TreeNode=xu;const Yd=Vd;function qd(e){let{value:n,onChange:r,filterSearch:o,tablePrefixCls:a,locale:i}=e;return o?t.createElement("div",{className:`${a}-filter-dropdown-search`},t.createElement(kt,{prefix:t.createElement(Q,null),placeholder:i.filterSearchPlaceholder,onChange:r,value:n,htmlSize:1,className:`${a}-filter-dropdown-search-input`})):null}const Xd=e=>{const{keyCode:t}=e;t===i.ENTER&&e.stopPropagation()},Gd=t.forwardRef(((e,n)=>t.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Xd,ref:n},e.children))),Ud=Gd;function Qd(e){let t=[];return(e||[]).forEach((e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat(b(t),b(Qd(r))))})),t}function Zd(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function Jd(e){let{filters:n,prefixCls:r,filteredKeys:o,filterMultiple:a,searchValue:i,filterSearch:l}=e;return n.map(((e,n)=>{const c=String(e.value);if(e.children)return{key:c||n,label:e.text,popupClassName:`${r}-dropdown-submenu`,children:Jd({filters:e.children,prefixCls:r,filteredKeys:o,filterMultiple:a,searchValue:i,filterSearch:l})};const s=a?al:$i,u={key:void 0!==e.value?c:n,label:t.createElement(t.Fragment,null,t.createElement(s,{checked:o.includes(c)}),t.createElement("span",null,e.text))};return i.trim()?"function"==typeof l?l(i,e)?u:null:Zd(i,e.text)?u:null:u}))}function ef(e){return e||[]}function tf(e){var r,o;const{tablePrefixCls:a,prefixCls:i,column:l,dropdownPrefixCls:c,columnKey:s,filterOnClose:u,filterMultiple:d,filterMode:f="menu",filterSearch:p=!1,filterState:m,triggerFilter:g,locale:h,children:v,getPopupContainer:b,rootClassName:y}=e,{filterDropdownOpen:x,onFilterDropdownOpenChange:C,filterResetToDefaultFilteredValue:S,defaultFilteredValue:w,filterDropdownVisible:k,onFilterDropdownVisibleChange:$}=l,[E,N]=t.useState(!1),I=!(!m||!(null===(r=m.filteredKeys)||void 0===r?void 0:r.length)&&!m.forceFiltered),M=e=>{N(e),null==C||C(e),null==$||$(e)},O=null!==(o=null!=x?x:k)&&void 0!==o?o:E,D=null==m?void 0:m.filteredKeys,[R,H]=function(e){const n=t.useRef(e),r=yt();return[()=>n.current,e=>{n.current=e,r()}]}(ef(D)),j=e=>{let{selectedKeys:t}=e;H(t)},B=(e,t)=>{let{node:n,checked:r}=t;j(d?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};t.useEffect((()=>{E&&j({selectedKeys:ef(D)})}),[D]);const[z,K]=t.useState([]),L=e=>{K(e)},[A,F]=t.useState(""),W=e=>{const{value:t}=e.target;F(t)};t.useEffect((()=>{E||F("")}),[E]);const _=e=>{const t=e&&e.length?e:null;return null!==t||m&&m.filteredKeys?ct(t,null==m?void 0:m.filteredKeys,!0)?null:void g({column:l,key:s,filteredKeys:t}):null},V=()=>{M(!1),_(R())},Y=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&_([]),t&&M(!1),F(""),H(S?(w||[]).map((e=>String(e))):[])},q=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&M(!1),_(R())},X=n({[`${c}-menu-without-submenu`]:(G=l.filters||[],!G.some((e=>{let{children:t}=e;return t})))});var G;const U=e=>{if(e.target.checked){const e=Qd(null==l?void 0:l.filters).map((e=>String(e)));H(e)}else H([])},Q=e=>{let{filters:t}=e;return(t||[]).map(((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=Q({filters:e.children})),r}))},Z=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map((e=>Z(e))))||[]})};let J;if("function"==typeof l.filterDropdown)J=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:R(),confirm:q,clearFilters:Y,filters:l.filters,visible:O,close:()=>{M(!1)}});else if(l.filterDropdown)J=l.filterDropdown;else{const e=R()||[],n=()=>{const n=t.createElement(T,{image:T.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if(0===(l.filters||[]).length)return n;if("tree"===f)return t.createElement(t.Fragment,null,t.createElement(qd,{filterSearch:p,value:A,onChange:W,tablePrefixCls:a,locale:h}),t.createElement("div",{className:`${a}-filter-dropdown-tree`},d?t.createElement(al,{checked:e.length===Qd(l.filters).length,indeterminate:e.length>0&&e.length"function"==typeof p?p(A,Z(e)):Zd(A,e.title):void 0})));const r=Jd({filters:l.filters||[],filterSearch:p,prefixCls:i,filteredKeys:R(),filterMultiple:d,searchValue:A}),o=r.every((e=>null===e));return t.createElement(t.Fragment,null,t.createElement(qd,{filterSearch:p,value:A,onChange:W,tablePrefixCls:a,locale:h}),o?n:t.createElement($t,{selectable:!0,multiple:d,prefixCls:`${c}-menu`,className:X,onSelect:j,onDeselect:j,selectedKeys:e,getPopupContainer:b,openKeys:z,onOpenChange:L,items:r}))},r=()=>S?ct((w||[]).map((e=>String(e))),e,!0):0===e.length;J=t.createElement(t.Fragment,null,n(),t.createElement("div",{className:`${i}-dropdown-btns`},t.createElement(Ve,{type:"link",size:"small",disabled:r(),onClick:()=>Y()},h.filterReset),t.createElement(Ve,{type:"primary",size:"small",onClick:V},h.filterConfirm)))}l.filterDropdown&&(J=t.createElement(Et,{selectable:void 0},J));let ee;ee="function"==typeof l.filterIcon?l.filterIcon(I):l.filterIcon?l.filterIcon:t.createElement(Wu,null);const{direction:te}=t.useContext(P);return t.createElement("div",{className:`${i}-column`},t.createElement("span",{className:`${a}-column-title`},v),t.createElement(bt,{dropdownRender:()=>t.createElement(Ud,{className:`${i}-dropdown`},J),trigger:["click"],open:O,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==D&&H(ef(D)),M(e),e||l.filterDropdown||!u||V())},getPopupContainer:b,placement:"rtl"===te?"bottomLeft":"bottomRight",rootClassName:y},t.createElement("span",{role:"button",tabIndex:-1,className:n(`${i}-trigger`,{active:I}),onClick:e=>{e.stopPropagation()}},ee)))}function nf(e,t,n){let r=[];return(e||[]).forEach(((e,o)=>{var a;const i=Ku(o,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;"filterDropdown"in e||(t=null!==(a=null==t?void 0:t.map(String))&&void 0!==a?a:t),r.push({column:e,key:zu(e,i),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:zu(e,i),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(b(r),b(nf(e.children,t,i))))})),r}function rf(e,n,r,o,a,i,l,c,s){return r.map(((r,u)=>{const d=Ku(u,c),{filterOnClose:f=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=r;let h=r;if(h.filters||h.filterDropdown){const c=zu(h,d),u=o.find((e=>{let{key:t}=e;return c===t}));h=Object.assign(Object.assign({},h),{title:o=>t.createElement(tf,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:n,column:h,columnKey:c,filterState:u,filterOnClose:f,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:i,locale:a,getPopupContainer:l,rootClassName:s},Lu(r.title,o))})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:rf(e,n,h.children,o,a,i,l,d,s)})),h}))}function of(e){const t={};return e.forEach((e=>{let{key:n,filteredKeys:r,column:o}=e;const a=n,{filters:i,filterDropdown:l}=o;if(l)t[a]=r||null;else if(Array.isArray(r)){const e=Qd(i);t[a]=e.filter((e=>r.includes(String(e))))}else t[a]=null})),t}function af(e,t,n){return t.reduce(((e,r)=>{const{column:{onFilter:o,filters:a},filteredKeys:i}=r;return o&&i&&i.length?e.map((e=>Object.assign({},e))).filter((e=>i.some((r=>{const i=Qd(a),l=i.findIndex((e=>String(e)===String(r))),c=-1!==l?i[l]:r;return e[n]&&(e[n]=af(e[n],t,n)),o(c,e)})))):e}),e)}const lf=e=>e.flatMap((e=>"children"in e?[e].concat(b(lf(e.children||[]))):[e]));function cf(e){let{prefixCls:n,dropdownPrefixCls:r,mergedColumns:o,onFilterChange:a,getPopupContainer:i,locale:l,rootClassName:c}=e;vt();const s=t.useMemo((()=>lf(o||[])),[o]),[u,d]=t.useState((()=>nf(s,!0))),f=t.useMemo((()=>{const e=nf(s,!1);if(0===e.length)return e;let t=!0;if(e.forEach((e=>{let{filteredKeys:n}=e;void 0!==n&&(t=!1)})),t){const e=(s||[]).map(((e,t)=>zu(e,Ku(t))));return u.filter((t=>{let{key:n}=t;return e.includes(n)})).map((t=>{const n=s[e.findIndex((e=>e===t.key))];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})}))}return e}),[s,u]),p=t.useMemo((()=>of(f)),[f]),m=e=>{const t=f.filter((t=>{let{key:n}=t;return n!==e.key}));t.push(e),d(t),a(of(t),t)};return[e=>rf(n,r,e,f,l,m,i,void 0,c),f,p]}var sf=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const i=Ku(a,n);e.children?("sortOrder"in e&&o(e,i),r=[].concat(b(r),b(Cf(e.children,t,i)))):e.sorter&&("sortOrder"in e?o(e,i):t&&e.defaultSortOrder&&r.push({column:e,key:zu(e,i),multiplePriority:yf(e),sortOrder:e.defaultSortOrder}))})),r}function Sf(e,r,o,a,l,c,s,u){return(r||[]).map(((r,d)=>{const f=Ku(d,u);let p=r;if(p.sorter){const u=p.sortDirections||l,d=void 0===p.showSorterTooltip?s:p.showSorterTooltip,m=zu(p,f),g=o.find((e=>{let{key:t}=e;return t===m})),h=g?g.sortOrder:null,v=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(u,h);let b;if(r.sortIcon)b=r.sortIcon({sortOrder:h});else{const r=u.includes(vf)&&t.createElement(hf,{className:n(`${e}-column-sorter-up`,{active:h===vf})}),o=u.includes(bf)&&t.createElement(pf,{className:n(`${e}-column-sorter-down`,{active:h===bf})});b=t.createElement("span",{className:n(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!r||!o)})},t.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},r,o))}const{cancelSort:y,triggerAsc:x,triggerDesc:C}=c||{};let S=y;v===bf?S=C:v===vf&&(S=x);const w="object"==typeof d?Object.assign({title:S},d):{title:S};p=Object.assign(Object.assign({},p),{className:n(p.className,{[`${e}-column-sort`]:h}),title:n=>{const o=`${e}-column-sorters`,a=t.createElement("span",{className:`${e}-column-title`},Lu(r.title,n)),i=t.createElement("div",{className:o},a,b);return d?"boolean"!=typeof d&&"sorter-icon"===(null==d?void 0:d.target)?t.createElement("div",{className:`${o} ${e}-column-sorters-tooltip-target-sorter`},a,t.createElement(ve,Object.assign({},w),b)):t.createElement(ve,Object.assign({},w),i):i},onHeaderCell:t=>{const o=r.onHeaderCell&&r.onHeaderCell(t)||{},l=o.onClick,c=o.onKeyDown;o.onClick=e=>{a({column:r,key:m,sortOrder:v,multiplePriority:yf(r)}),null==l||l(e)},o.onKeyDown=e=>{e.keyCode===i.ENTER&&(a({column:r,key:m,sortOrder:v,multiplePriority:yf(r)}),null==c||c(e))};const s=function(e,t){const n=Lu(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n}(r.title,{}),u=null==s?void 0:s.toString();return h?o["aria-sort"]="ascend"===h?"ascending":"descending":o["aria-label"]=u||"",o.className=n(o.className,`${e}-column-has-sorters`),o.tabIndex=0,r.ellipsis&&(o.title=(null!=s?s:"").toString()),o}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:Sf(e,p.children,o,a,l,c,s,f)})),p}))}const wf=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},kf=e=>{const t=e.filter((e=>{let{sortOrder:t}=e;return t})).map(wf);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},wf(e[t])),{column:void 0})}return t.length<=1?t[0]||{}:t};function $f(e,t,n){const r=t.slice().sort(((e,t)=>t.multiplePriority-e.multiplePriority)),o=e.slice(),a=r.filter((e=>{let{column:{sorter:t},sortOrder:n}=e;return xf(t)&&n}));return a.length?o.sort(((e,t)=>{for(let n=0;n{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:$f(r,t,n)}):e})):o}function Ef(e,t){return e.map((e=>{const n=Object.assign({},e);return n.title=Lu(e.title,t),"children"in n&&(n.children=Ef(n.children,t)),n}))}function Nf(e){return[t.useCallback((t=>Ef(t,e)),[e])]}const If=eu(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),Mf=fu(((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r})),Of=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:c}=e,s=`${_(n)} ${r} ${o}`,u=(e,r,o)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${_(c(r).mul(-1).equal())}\n ${_(c(c(o).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:s,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:s,borderTop:s,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${_(c(i).mul(-1).equal())} ${_(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:s,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${_(n)} 0 ${_(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}},Df=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},L),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Rf=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Pf=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:i,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:h,expandIconHalfInner:v,expandIconScale:b,calc:y}=e,x=`${_(o)} ${i} ${l}`,C=y(m).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:s},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Kt(e)),{position:"relative",float:"left",boxSizing:"border-box",width:h,height:h,padding:0,color:"inherit",lineHeight:_(h),background:c,border:x,borderRadius:u,transform:`scale(${b})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:C,insetInlineStart:C,height:o},"&::after":{top:C,bottom:C,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${_(y(d).mul(-1).equal())} ${_(y(f).mul(-1).equal())}`,padding:`${_(d)} ${_(f)}`}}}},Tf=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:h,colorTextDescription:v,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:S,controlItemBgHover:w,controlItemBgActive:k,boxShadowSecondary:$,filterDropdownMenuBg:E,calc:N}=e,I=`${n}-dropdown`,M=`${t}-filter-dropdown`,O=`${n}-tree`,D=`${_(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:N(i).mul(-1).equal(),marginInline:`${_(i)} ${_(N(m).div(2).mul(-1).equal())}`,padding:`0 ${_(i)}`,color:f,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:v,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},H(e)),{minWidth:o,backgroundColor:C,borderRadius:g,boxShadow:$,overflow:"hidden",[`${I}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${_(l)} 0`,color:x,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${_(l)} 0`,paddingInline:l,[O]:{padding:0},[`${O}-treenode ${O}-node-content-wrapper:hover`]:{backgroundColor:w},[`${O}-treenode-checkbox-checked ${O}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${M}-search`]:{padding:l,borderBottom:D,"&-input":{input:{minWidth:a},[r]:{color:x}}},[`${M}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${_(N(l).sub(s).equal())} ${_(l)}`,overflow:"hidden",borderTop:D}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Hf=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:l,calc:c}=e,s=r;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:a,background:i},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},jf=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${_(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Bf=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${_(n)} ${_(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${_(n)} ${_(n)}`}}}}},zf=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Kf=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:i,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(s).add(m(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(o).add(m(a).div(4)).add(m(i).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:_(m(p).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},Lf=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(e,o,a,i)=>({[`${t}${t}-${e}`]:{fontSize:i,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${_(o)} ${_(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:_(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${_(r(o).mul(-1).equal())} ${_(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:_(r(o).mul(-1).equal()),marginInline:`${_(r(n).sub(a).equal())} ${_(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:_(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Af=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},Ff=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,f=`${_(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${_(a)} !important`,zIndex:l,display:"flex",alignItems:"center",background:i,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},Wf=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a=`${_(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${_(o(n).mul(-1).equal())} 0 ${r}`}}}},_f=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:i}=e,l=`${_(r)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row:not(tr)`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${_(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},Vf=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:i,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:h,tableFooterBg:v,calc:b}=e,y=`${_(i)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Nt()),{[t]:Object.assign(Object.assign({},H(e)),{fontSize:s,background:u,borderRadius:`${_(d)} ${_(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${_(d)} ${_(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${_(r)} ${_(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${_(r)} ${_(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:_(b(r).mul(-1).equal()),marginInline:`${_(b(a).sub(o).equal())}\n ${_(b(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${_(r)} ${_(o)}`,color:h,background:v}})}},Yf=Y("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:h,cellPaddingInlineMD:v,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:x,footerBg:C,footerColor:S,headerBorderRadius:w,cellFontSize:k,cellFontSizeMD:$,cellFontSizeSM:E,headerSplitColor:N,fixedHeaderSortActiveBg:I,headerFilterHoverBg:M,filterDropdownBg:O,expandIconBg:D,selectionColumnWidth:R,stickyScrollBarBg:P,calc:T}=e,H=V(e,{tableFontSize:k,tableBg:r,tableRadius:w,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:h,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:x,tableHeaderTextColor:i,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:C,tableHeaderCellSplitColor:N,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:I,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:O,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:$,tableFontSizeSmall:E,tableSelectionColumnWidth:R,tableExpandIconBg:D,tableExpandColumnWidth:T(o).add(T(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[Vf(H),jf(H),Wf(H),Af(H),Tf(H),Of(H),Bf(H),Pf(H),Wf(H),Rf(H),Kf(H),Hf(H),Ff(H),Df(H),Lf(H),zf(H),_f(H)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:h,lineHeight:v,lineWidth:b,colorIcon:y,colorIconHover:x,opacityLoading:C,controlInteractiveSize:S}=e,w=new Ne(o).onBackground(n).toHexShortString(),k=new Ne(a).onBackground(n).toHexShortString(),$=new Ne(t).onBackground(n).toHexShortString(),E=new Ne(y),N=new Ne(x),I=S/2-b,M=2*I+3*b;return{headerBg:$,headerColor:r,headerSortActiveBg:w,headerSortHoverBg:k,bodySortBg:$,rowHoverBg:$,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:$,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:w,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*b)/2-Math.ceil((1.4*h-3*b)/2),headerIconColor:E.clone().setAlpha(E.getAlpha()*C).toRgbString(),headerIconHoverColor:N.clone().setAlpha(N.getAlpha()*C).toRgbString(),expandIconHalfInner:I,expandIconSize:M,expandIconScale:S/M}}),{unitless:{expandIconScale:!0}}),qf=[],Xf=(e,r)=>{var o,a;const{prefixCls:i,className:l,rootClassName:c,style:s,size:u,bordered:d,dropdownPrefixCls:f,dataSource:p,pagination:m,rowSelection:g,rowKey:h="key",rowClassName:v,columns:y,children:x,childrenColumnName:C,onChange:S,getPopupContainer:w,loading:k,expandIcon:$,expandable:E,expandedRowRender:N,expandIconColumnIndex:I,indentSize:M,scroll:D,sortDirections:R,locale:T,showSorterTooltip:H={target:"full-header"},virtual:j}=e;vt();const B=t.useMemo((()=>y||Bs(x)),[y,x]),z=t.useMemo((()=>B.some((e=>e.responsive))),[B]),K=et(z),L=t.useMemo((()=>{const e=new Set(Object.keys(K).filter((e=>K[e])));return B.filter((t=>!t.responsive||t.responsive.some((t=>e.has(t)))))}),[B,K]),A=O(e,["className","style","columns"]),{locale:F=ot,direction:W,table:_,renderEmpty:V,getPrefixCls:Y,getPopupContainer:q}=t.useContext(P),X=ae(u),G=Object.assign(Object.assign({},F.Table),T),U=p||qf,Q=Y("table",i),Z=Y("dropdown",f),[,J]=ee(),te=re(Q),[ne,oe,ie]=Yf(Q,te),le=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:I},E),{expandIcon:null!==(o=null==E?void 0:E.expandIcon)&&void 0!==o?o:null===(a=null==_?void 0:_.expandable)||void 0===a?void 0:a.expandIcon}),{childrenColumnName:ce="children"}=le,se=t.useMemo((()=>U.some((e=>null==e?void 0:e[ce]))?"nest":N||E&&E.expandedRowRender?"row":null),[U]),ue={body:t.useRef()},de=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return o}}(Q),fe=t.useRef(null),pe=t.useRef(null);Bu(r,(()=>Object.assign(Object.assign({},pe.current),{nativeElement:fe.current})));const me=t.useMemo((()=>"function"==typeof h?h:e=>null==e?void 0:e[h]),[h]),[ge]=function(e,n,r){const o=t.useRef({});return[function(t){if(!o.current||o.current.data!==e||o.current.childrenColumnName!==n||o.current.getRowKey!==r){const a=new Map;function i(e){e.forEach(((e,t)=>{const o=r(e,t);a.set(o,e),e&&"object"==typeof e&&n in e&&i(e[n]||[])}))}i(e),o.current={data:e,childrenColumnName:n,kvMap:a,getRowKey:r}}return o.current.kvMap.get(t)}]}(U,ce,me),he={},ve=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,a;const i=Object.assign(Object.assign({},he),e);n&&(null===(r=he.resetPagination)||void 0===r||r.call(he),(null===(o=i.pagination)||void 0===o?void 0:o.current)&&(i.pagination.current=1),m&&m.onChange&&m.onChange(1,null===(a=i.pagination)||void 0===a?void 0:a.pageSize)),D&&!1!==D.scrollToFirstRowOnChange&&ue.body.current&&_t(0,{getContainer:()=>ue.body.current}),null==S||S(i.pagination,i.filters,i.sorter,{currentDataSource:af($f(U,i.sorterStates,ce),i.filterStates,ce),action:t})},[be,ye,xe,Ce]=function(e){let{prefixCls:n,mergedColumns:r,onSorterChange:o,sortDirections:a,tableLocale:i,showSorterTooltip:l}=e;const[c,s]=t.useState(Cf(r,!0)),u=t.useMemo((()=>{let e=!0;const t=Cf(r,!1);if(!t.length)return c;const n=[];function o(t){e?n.push(t):n.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let a=null;return t.forEach((t=>{null===a?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),o(t))})),n}),[r,c]),d=t.useMemo((()=>{const e=u.map((e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[u]),f=e=>{let t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat(b(u.filter((t=>{let{key:n}=t;return n!==e.key}))),[e]):[e],s(t),o(kf(t),t)};return[e=>Sf(n,e,u,f,a,i,l),u,d,()=>kf(u)]}({prefixCls:Q,mergedColumns:L,onSorterChange:(e,t)=>{ve({sorter:e,sorterStates:t},"sort",!1)},sortDirections:R||["ascend","descend"],tableLocale:G,showSorterTooltip:H}),Se=t.useMemo((()=>$f(U,ye,ce)),[U,ye]);he.sorter=Ce(),he.sorterStates=ye;const[we,ke,$e]=cf({prefixCls:Q,locale:G,dropdownPrefixCls:Z,mergedColumns:L,onFilterChange:(e,t)=>{ve({filters:e,filterStates:t},"filter",!0)},getPopupContainer:w||q,rootClassName:n(c,te)}),Ee=af(Se,ke,ce);he.filters=$e,he.filterStates=ke;const Ne=t.useMemo((()=>{const e={};return Object.keys($e).forEach((t=>{null!==$e[t]&&(e[t]=$e[t])})),Object.assign(Object.assign({},xe),{filters:e})}),[xe,$e]),[Ie]=Nf(Ne),[Me,Oe]=function(e,n,r){const o=r&&"object"==typeof r?r:{},{total:a=0}=o,i=sf(o,["total"]),[l,c]=t.useState((()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:uf}))),s=cc(l,i,{total:a>0?a:e}),u=Math.ceil((a||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!=e?e:1,pageSize:t||s.pageSize})};return!1===r?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,t)=>{var o;r&&(null===(o=r.onChange)||void 0===o||o.call(r,e,t)),d(e,t),n(e,t||(null==s?void 0:s.pageSize))}}),d]}(Ee.length,((e,t)=>{ve({pagination:Object.assign(Object.assign({},he.pagination),{current:e,pageSize:t})},"paginate")}),m);he.pagination=!1===m?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"==typeof t?t:{};return Object.keys(r).forEach((t=>{const r=e[t];"function"!=typeof r&&(n[t]=r)})),n}(Me,m),he.resetPagination=Oe;const De=t.useMemo((()=>{if(!1===m||!Me.pageSize)return Ee;const{current:e=1,total:t,pageSize:n=uf}=Me;return Ee.lengthn?Ee.slice((e-1)*n,e*n):Ee:Ee.slice((e-1)*n,e*n)}),[!!m,Ee,Me&&Me.current,Me&&Me.pageSize,Me&&Me.total]),[Re,Pe]=ju({prefixCls:Q,data:Ee,pageData:De,getRowKey:me,getRecordByKey:ge,expandType:se,childrenColumnName:ce,locale:G,getPopupContainer:w||q},g);le.__PARENT_RENDER_ICON__=le.expandIcon,le.expandIcon=le.expandIcon||$||function(e){return function(r){let{prefixCls:o,onExpand:a,record:i,expanded:l,expandable:c}=r;const s=`${o}-row-expand-icon`;return t.createElement("button",{type:"button",onClick:e=>{a(i,e),e.stopPropagation()},className:n(s,{[`${s}-spaced`]:!c,[`${s}-expanded`]:c&&l,[`${s}-collapsed`]:c&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}}(G),"nest"===se&&void 0===le.expandIconColumnIndex?le.expandIconColumnIndex=g?1:0:le.expandIconColumnIndex>0&&g&&(le.expandIconColumnIndex-=1),"number"!=typeof le.indentSize&&(le.indentSize="number"==typeof M?M:15);const Te=t.useCallback((e=>Ie(Re(we(be(e))))),[be,we,Re]);let He,je,Be;if(!1!==m&&(null==Me?void 0:Me.total)){let e;e=Me.size?Me.size:"small"===X||"middle"===X?"small":void 0;const r=r=>t.createElement(Kc,Object.assign({},Me,{className:n(`${Q}-pagination ${Q}-pagination-${r}`,Me.className),size:e})),o="rtl"===W?"left":"right",{position:a}=Me;if(null!==a&&Array.isArray(a)){const e=a.find((e=>e.includes("top"))),t=a.find((e=>e.includes("bottom"))),n=a.every((e=>"none"==`${e}`));e||t||n||(je=r(o)),e&&(He=r(e.toLowerCase().replace("top",""))),t&&(je=r(t.toLowerCase().replace("bottom","")))}else je=r(o)}"boolean"==typeof k?Be={spinning:k}:"object"==typeof k&&(Be=Object.assign({spinning:!0},k));const ze=n(ie,te,`${Q}-wrapper`,null==_?void 0:_.className,{[`${Q}-wrapper-rtl`]:"rtl"===W},l,c,oe),Ke=Object.assign(Object.assign({},null==_?void 0:_.style),s),Le=T&&T.emptyText||(null==V?void 0:V("Table"))||t.createElement(er,{componentName:"Table"}),Ae=j?Mf:If,Fe={},We=t.useMemo((()=>{const{fontSize:e,lineHeight:t,padding:n,paddingXS:r,paddingSM:o}=J,a=Math.floor(e*t);switch(X){case"large":return 2*n+a;case"small":return 2*r+a;default:return 2*o+a}}),[J,X]);return j&&(Fe.listItemHeight=We),ne(t.createElement("div",{ref:fe,className:ze,style:Ke},t.createElement(It,Object.assign({spinning:!1},Be),He,t.createElement(Ae,Object.assign({},Fe,A,{ref:pe,columns:L,direction:W,expandable:le,prefixCls:Q,className:n({[`${Q}-middle`]:"middle"===X,[`${Q}-small`]:"small"===X,[`${Q}-bordered`]:d,[`${Q}-empty`]:0===U.length},ie,te,oe),data:De,rowKey:me,rowClassName:(e,t,r)=>{let o;return o=n("function"==typeof v?v(e,t,r):v),n({[`${Q}-row-selected`]:Pe.has(me(e,t))},o)},emptyText:Le,internalHooks:Gc,internalRefs:ue,transformColumns:Te,getContainerWidth:de})),je)))},Gf=t.forwardRef(Xf),Uf=(e,n)=>{const r=t.useRef(0);return r.current+=1,t.createElement(Gf,Object.assign({},e,{ref:n,_renderTimes:r.current}))},Qf=t.forwardRef(Uf);Qf.SELECTION_COLUMN=Ou,Qf.EXPAND_COLUMN=Xc,Qf.SELECTION_ALL=Du,Qf.SELECTION_INVERT=Ru,Qf.SELECTION_NONE=Pu,Qf.Column=function(e){return null},Qf.ColumnGroup=function(e){return null},Qf.Summary=gs;const Zf=Qf;const Jf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var ep=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:Jf}))}; +/**![delete](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTM2MCAxODRoLThjNC40IDAgOC0zLjYgOC04djhoMzA0di04YzAgNC40IDMuNiA4IDggOGgtOHY3Mmg3MnYtODBjMC0zNS4zLTI4LjctNjQtNjQtNjRIMzUyYy0zNS4zIDAtNjQgMjguNy02NCA2NHY4MGg3MnYtNzJ6bTUwNCA3MkgxNjBjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjMyYzAgNC40IDMuNiA4IDggOGg2MC40bDI0LjcgNTIzYzEuNiAzNC4xIDI5LjggNjEgNjMuOSA2MWg0NTRjMzQuMiAwIDYyLjMtMjYuOCA2My45LTYxbDI0LjctNTIzSDg4OGM0LjQgMCA4LTMuNiA4LTh2LTMyYzAtMTcuNy0xNC4zLTMyLTMyLTMyek03MzEuMyA4NDBIMjkyLjdsLTI0LjItNTEyaDQ4N2wtMjQuMiA1MTJ6IiAvPjwvc3ZnPg==) */const tp=t.forwardRef(ep);const np={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};var rp=function(e,n){return t.createElement(He,p({},e,{ref:n,icon:np}))}; +/**![info-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTQ2NCAzMzZhNDggNDggMCAxMDk2IDAgNDggNDggMCAxMC05NiAwem03MiAxMTJoLTQ4Yy00LjQgMC04IDMuNi04IDh2MjcyYzAgNC40IDMuNiA4IDggOGg0OGM0LjQgMCA4LTMuNiA4LThWNDU2YzAtNC40LTMuNi04LTgtOHoiIC8+PC9zdmc+) */const op=t.forwardRef(rp),ap=(e,t,n)=>{if(e){n?.preventDefault(),n?.stopPropagation();try{navigator.clipboard.writeText(e),Mt.success(t("token.copySuccess"))}catch(r){r.target.select()}}},ip={getShareList:()=>Ot.get({url:"/share/list"}),addShare:e=>Ot.post({url:"/share/add",data:e}),updateShare:e=>Ot.post({url:"/share/update",data:e}),searchShare:(e,t,n)=>Ot.post({url:"/share/search",data:{email:t,uniqueName:n,accountType:e}}),deleteShare:e=>Ot.post({url:"/share/delete",data:e}),getShareStatistic:e=>Ot.post({url:"/share/statistic",data:{accountId:e}}),chatLoginShare:(e,t)=>Ot.post({url:"/login_share",data:{username:e,password:t}})},lp=()=>{const e=Dt();return Rt(ip.addShare,{onSuccess:()=>{e.invalidateQueries(["accounts"]),e.invalidateQueries(["shareList"]),Mt.success("Success")}})},cp=()=>{const e=Dt();return Rt(ip.updateShare,{onSuccess:()=>{e.invalidateQueries(["shareList"]),Mt.success("Success")}})},sp=()=>{const e=Dt();return Rt(ip.deleteShare,{onSuccess:()=>{e.invalidateQueries(["shareList"]),Mt.success("Success")}})},up={id:void 0,accountId:-1,email:"",uniqueName:"",password:"",shareToken:"",refreshEveryday:!1,comment:"",expiresIn:0,expiresAt:void 0,siteLimit:"",gpt35Limit:-1,gpt4Limit:-1,showUserinfo:!1,temporaryChat:!1,showConversations:!1};function dp(e){return Pt.jsxs(Tt,{children:[e.label,Pt.jsx(ve,{title:e.info,children:Pt.jsx(op,{})})]})}function fp({title:e,show:n,formValue:r,onOk:o,onCancel:a}){const[i]=Lt.useForm(),[l,c]=t.useState(!1),{t:s}=Ht(),u="Edit"===e||"编辑"===e?"edit":"create";t.useEffect((()=>{i.setFieldsValue({...r,expiresAt:r.expiresAt?_r(r.expiresAt):void 0})}),[r,i]);return Pt.jsx(jt,{title:e,open:n,onOk:()=>{i.validateFields().then((e=>{const t=e.expiresAt;e.expiresAt=t?t.format("YYYY-MM-DD"):void 0,o(e,c)}))},getContainer:!1,onCancel:()=>{a()},okButtonProps:{loading:l},destroyOnClose:!1,children:Pt.jsxs(Lt,{initialValues:r,form:i,layout:"vertical",preserve:!1,children:[Pt.jsx(Lt.Item,{name:"id",hidden:!0,children:Pt.jsx(kt,{})}),Pt.jsx(Lt.Item,{name:"shareType",hidden:!0,children:Pt.jsx(kt,{})}),"chatgpt"===r.shareType&&Pt.jsx(Lt.Item,{name:"shareToken",hidden:!0,children:Pt.jsx(kt,{})}),Pt.jsx(Lt.Item,{name:"accountId",hidden:!0,children:Pt.jsx(kt,{})}),Pt.jsx(Lt.Item,{label:"Unique Name",name:"uniqueName",required:!0,children:Pt.jsx(kt,{readOnly:"edit"===u,disabled:"edit"===u})}),Pt.jsx(Lt.Item,{label:s("token.password"),name:"password",required:!0,children:Pt.jsx(kt.Password,{})}),Pt.jsxs(At,{gutter:16,children:[Pt.jsx(Ft,{span:12,children:Pt.jsx(Lt.Item,{label:s("token.expiresAt"),name:"expiresAt",children:Pt.jsx(ac,{style:{width:"100%"},format:"YYYY-MM-DD"})})}),"chatgpt"===r.shareType&&Pt.jsx(Ft,{span:12,children:Pt.jsx(Lt.Item,{label:s("token.siteLimit"),name:"siteLimit",children:Pt.jsx(kt,{placeholder:"eg: https://demo.oaifree.com"})})})]}),"chatgpt"===r.shareType&&Pt.jsxs(At,{gutter:16,children:[Pt.jsx(Ft,{span:12,children:Pt.jsx(Lt.Item,{label:s("token.gpt35Limit"),name:"gpt35Limit",children:Pt.jsx(jl,{style:{width:"100%"},formatter:e=>{switch(e?.toString()){case"-1":return"无限制";case"0":return"禁用";default:return`${e}`}},parser:e=>{switch(e){case"无限制":return-1;case"禁用":return 0;default:return parseInt(e)}}})})}),Pt.jsx(Ft,{span:12,children:Pt.jsx(Lt.Item,{label:Pt.jsx(dp,{label:s("token.gpt4Limit"),info:"这里的限制只是在FK限制,而不是OpenAi的限额"}),name:"gpt4Limit",children:Pt.jsx(jl,{style:{width:"100%"},formatter:e=>{switch(e?.toString()){case"-1":return"无限制";case"0":return"禁用";default:return`${e}`}},parser:e=>{switch(e){case"无限制":return-1;case"禁用":return 0;default:return parseInt(e)}}})})})]}),"chatgpt"===r.shareType&&Pt.jsxs(At,{children:[Pt.jsx(Ft,{span:8,children:Pt.jsx(Lt.Item,{label:Pt.jsx(dp,{label:s("token.refreshEveryday"),info:"刷新次数限制的频率,"}),name:"refreshEveryday",valuePropName:"checked",children:Pt.jsx(al,{})})}),Pt.jsx(Ft,{span:7,children:Pt.jsx(Lt.Item,{label:s("token.showUserinfo"),name:"showUserinfo",labelCol:{span:18},wrapperCol:{span:6},valuePropName:"checked",children:Pt.jsx(al,{defaultChecked:!1})})}),Pt.jsx(Ft,{span:5,children:Pt.jsx(Lt.Item,{label:s("token.showConversations"),name:"showConversations",valuePropName:"checked",children:Pt.jsx(al,{defaultChecked:!0})})}),Pt.jsx(Ft,{span:4,children:Pt.jsx(Lt.Item,{label:s("token.temporaryChat"),name:"temporaryChat",valuePropName:"checked",children:Pt.jsx(al,{defaultChecked:!0})})})]}),Pt.jsx(Lt.Item,{label:s("token.comment"),name:"comment",children:Pt.jsx(kt.TextArea,{})})]})})}export{tp as D,op as I,qc as P,fp as S,Zf as T,sp as a,cp as b,up as d,ap as o,ip as s,lp as u}; diff --git a/frontend/dist/assets/accountService-0801bb34.js b/frontend/dist/assets/accountService-0801bb34.js new file mode 100644 index 0000000..a38e895 --- /dev/null +++ b/frontend/dist/assets/accountService-0801bb34.js @@ -0,0 +1 @@ +import{aa as t}from"./index-8bf8489d.js";const a={getAccountList:()=>t.get({url:"/account/list"}).then((t=>(t.forEach((t=>{t.shareList&&(t.shareList=JSON.parse(t.shareList))})),t))),searchAccountList:(a,c)=>t.post({url:"/account/search",data:{email:a,accountType:c}}).then((t=>(t.forEach((t=>{t.shareList&&(t.shareList=JSON.parse(t.shareList))})),t))),addAccount:a=>t.post({url:"/account/add",data:a}),updateAccount:a=>t.post({url:"/account/update",data:a}),deleteAccount:a=>t.post({url:"/account/delete",data:{id:a}}),refreshAccount:a=>t.post({url:"/account/refresh",data:{id:a}}),getShareAccountList:()=>t.post({url:"/share_accounts"}),loginFreeAccount:a=>t.post({url:"/login_free_account",data:a})};export{a}; diff --git a/frontend/dist/assets/bounce-e10a9aae.js b/frontend/dist/assets/bounce-e10a9aae.js new file mode 100644 index 0000000..8efd39f --- /dev/null +++ b/frontend/dist/assets/bounce-e10a9aae.js @@ -0,0 +1 @@ +import{j as a,cA as t}from"./index-8bf8489d.js";function i({children:i,className:n}){return a.jsx(t.div,{initial:"initial",animate:"animate",exit:"exit",variants:{animate:{transition:{staggerChildren:e?.staggerIn||.05,delayChildren:e?.staggerIn||.05}},exit:{transition:{staggerChildren:e?.staggerIn||.05,staggerDirection:-1}}},className:n,children:i});var e}const n=a=>({duration:a?.durationIn||.64,ease:a?.easeIn||[.43,.13,.23,.96]}),e=a=>({duration:a?.durationOut||.48,ease:a?.easeOut||[.43,.13,.23,.96]}),s=a=>{const t=a?.durationIn,i=a?.durationOut,s=a?.easeIn,o=a?.easeOut;return{in:{initial:{},animate:{scale:[.3,1.1,.9,1.03,.97,1],opacity:[0,1,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{scale:[.9,1.1,.3],opacity:[1,1,0]}},inUp:{initial:{},animate:{y:[720,-24,12,-4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:{...n({durationIn:t,easeIn:s})}},exit:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},inDown:{initial:{},animate:{y:[-720,24,-12,4,0],scaleY:[4,.9,.95,.985,1],opacity:[0,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},inLeft:{initial:{},animate:{x:[-720,24,-12,4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},inRight:{initial:{},animate:{x:[720,-24,12,-4,0],scaleX:[3,1,.98,.995,1],opacity:[0,1,1,1,1],transition:n({durationIn:t,easeIn:s})},exit:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0],transition:e({durationOut:i,easeOut:o})}},out:{animate:{scale:[.9,1.1,.3],opacity:[1,1,0]}},outUp:{animate:{y:[-12,24,-720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outDown:{animate:{y:[12,-24,720],scaleY:[.985,.9,3],opacity:[1,1,0]}},outLeft:{animate:{x:[0,24,-720],scaleX:[1,.9,2],opacity:[1,1,0]}},outRight:{animate:{x:[0,-24,720],scaleX:[1,.9,2],opacity:[1,1,0]}}}};export{i as M,s as v}; diff --git a/frontend/dist/assets/chatgpt-a53fef8d.js b/frontend/dist/assets/chatgpt-a53fef8d.js new file mode 100644 index 0000000..264b912 --- /dev/null +++ b/frontend/dist/assets/chatgpt-a53fef8d.js @@ -0,0 +1,61 @@ +import{D as t,E as e,G as i,J as a,r as s,A as r,n as o,e as n,K as l,M as h,C as c,T as d,O as g,j as u,u as p,P as f,t as x,Q as b,I as v,U as m,B as y,V as w,W as k,X as A}from"./index-8bf8489d.js";import{s as S,u as C,d as L,o as P,P as M,D as I,T,S as z}from"./ShareModal-20b6362a.js";import{a as X}from"./accountService-0801bb34.js";import{u as E,a as Y,b as R,c as F,C as O,E as H,B as D,S as N,R as W,A as B}from"./AccountModal-0f37a6a5.js";import{u as G}from"./useQuery-e775fa21.js";import{F as V}from"./index-83bdf3a0.js";import{T as j,E as _}from"./index-57131342.js";import{R as U,C as q}from"./row-b45105b9.js";const Z=t((function(t,i,a){var s,r={};for(s in a=a||{},i=i||{})e(s,i)&&(r[s]=e(s,a)?t(s,i[s],a[s]):i[s]);for(s in a)e(s,a)&&!e(s,r)&&(r[s]=a[s]);return r}));const $=t((function t(e,a,s){return Z((function(a,s,r){return i(s)&&i(r)?t(e,s,r):e(a,s,r)}),a,s)}));const J=a((function(t,e){return $((function(t,e,i){return i}),t,e)}));const K={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-40 632H134V236h752v560zm-658.9-82.3c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L531 565 416.6 450.5a8.03 8.03 0 00-11.3 0l-214.9 215a8.03 8.03 0 000 11.3l36.7 36.9z"}}]},name:"fund",theme:"outlined"};var Q=function(t,e){return s.createElement(r,o({},t,{ref:e,icon:K}))}; +/**![fund](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkyNiAxNjRIOTRjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjY0MGMwIDE3LjcgMTQuMyAzMiAzMiAzMmg4MzJjMTcuNyAwIDMyLTE0LjMgMzItMzJWMTk2YzAtMTcuNy0xNC4zLTMyLTMyLTMyem0tNDAgNjMySDEzNFYyMzZoNzUydjU2MHptLTY1OC45LTgyLjNjMy4xIDMuMSA4LjIgMy4xIDExLjMgMGwxNzIuNS0xNzIuNSAxMTQuNCAxMTQuNWMzLjEgMy4xIDguMiAzLjEgMTEuMyAwbDI5Ny0yOTcuMmMzLjEtMy4xIDMuMS04LjIgMC0xMS4zbC0zNi44LTM2LjhhOC4wMyA4LjAzIDAgMDAtMTEuMyAwTDUzMSA1NjUgNDE2LjYgNDUwLjVhOC4wMyA4LjAzIDAgMDAtMTEuMyAwbC0yMTQuOSAyMTVhOC4wMyA4LjAzIDAgMDAwIDExLjNsMzYuNyAzNi45eiIgLz48L3N2Zz4=) */const tt=s.forwardRef(Q);var et={},it={exports:{}}; +/*! + * ApexCharts v3.49.0 + * (c) 2018-2024 ApexCharts + * Released under the MIT License. + */ +!function(t,e){function i(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function a(t){for(var e=1;et.length)&&(e=t.length);for(var i=0,a=new Array(e);i>16,o=i>>8&255,n=255&i;return"#"+(16777216+65536*(Math.round((a-r)*s)+r)+256*(Math.round((a-o)*s)+o)+(Math.round((a-n)*s)+n)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,i){return t.isColorHex(i)?this.shadeHexColor(e,i):this.shadeRGBColor(e,i)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===s(t)&&!Array.isArray(t)&&null!=t}},{key:"is",value:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){var e=String(t).split(/[eE]/);if(1===e.length)return e[0];var i="",a=t<0?"-":"",s=e[0].replace(".",""),r=Number(e[1])+1;if(r<0){for(i=a+"0.";r++;)i+="0";return i+s.replace(/^-/,"")}for(r-=s.length;r--;)i+="0";return s+i}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,a=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[a-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce((function(t,e){return Array.isArray(e)&&(e=e.reduce((function(t,e){return t.length>e.length?t:e}))),t.length>e.length?t:e}),0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==t.substring(0,1)&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:"x",i=t.toString().slice();return i.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var a=i-t.length+1;a--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var a=t.indexOf("Edge/");return a>0&&parseInt(t.substring(a+5,t.indexOf(".",a)),10)}},{key:"getGCD",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,a=Math.pow(10,i-Math.floor(Math.log10(Math.max(t,e))));for(t=Math.round(Math.abs(t)*a),e=Math.round(Math.abs(e)*a);e;){var s=e;e=t%e,t=s}return t/a}},{key:"getPrimeFactors",value:function(t){for(var e=[],i=2;t>=2;)t%i==0?(e.push(i),t/=i):i++;return e}},{key:"mod",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,a=Math.pow(10,i-Math.floor(Math.log10(Math.max(t,e))));return(t=Math.round(Math.abs(t)*a))%(e=Math.round(Math.abs(e)*a))/a}}]),t}(),m=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return n(t,[{key:"setEasingFunctions",value:function(){var t;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":default:t="<>";break;case"swing":t=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1};break;case"bounce":t=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=t}}},{key:"animateLine",value:function(t,e,i,a){t.attr(e).animate(a).attr(i)}},{key:"animateMarker",value:function(t,e,i,a,s,r){e||(e=0),t.attr({r:e,width:e,height:e}).animate(a,s).attr({r:i,width:i.width,height:i.height}).afterAll((function(){r()}))}},{key:"animateCircle",value:function(t,e,i,a,s){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(a,s).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,a,s){t.attr(e).animate(a).attr(i).afterAll((function(){return s()}))}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,a=t.j,s=t.fill,r=t.pathFrom,o=t.pathTo,n=t.speed,l=t.delay,h=this.w,c=0;h.config.chart.animations.animateGradually.enabled&&(c=h.config.chart.animations.animateGradually.delay),h.config.chart.animations.dynamicAnimation.enabled&&h.globals.dataChanged&&"bar"!==h.config.chart.type&&(c=0),this.morphSVG(e,i,a,"line"!==h.config.chart.type||h.globals.comboCharts?s:"stroke",r,o,n,l*c)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(t){var e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")}))}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,a,s,r,o,n){var l=this,h=this.w;s||(s=t.attr("pathFrom")),r||(r=t.attr("pathTo"));var c=function(t){return"radar"===h.config.chart.type&&(o=1),"M 0 ".concat(h.globals.gridHeight)};(!s||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=c()),(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=c()),h.globals.shouldAnimate||(o=1),t.plot(s).animate(1,h.globals.easing,n).plot(s).animate(o,h.globals.easing,n).plot(r).afterAll((function(){v.isNumber(i)?i===h.globals.series[h.globals.maxValsInArrayIndex].length-2&&h.globals.shouldAnimate&&l.animationCompleted(t):"none"!==a&&h.globals.shouldAnimate&&(!h.globals.comboCharts&&e===h.globals.series.length-1||h.globals.comboCharts)&&l.animationCompleted(t),l.showDelayedElements()}))}}]),t}(),y=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(t,e,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addNormalFilter",value:function(t,e){var i=this.w;i.config.chart.dropShadow.enabled&&!t.node.classList.contains("apexcharts-marker")&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"addLightenFilter",value:function(t,e,i){var a=this,s=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:r}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"addDarkenFilter",value:function(t,e,i){var a=this,s=this.w,r=i.intensity;t.unfilter(!0),new window.SVG.Filter,t.filter((function(t){var i=s.config.chart.dropShadow;(i.enabled?a.addShadow(t,e,i):t).componentTransfer({rgb:{type:"linear",slope:r}})})),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)}},{key:"applyFilter",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(t,e);break;case"lighten":this.addLightenFilter(t,e,{intensity:a});break;case"darken":this.addDarkenFilter(t,e,{intensity:a})}}},{key:"addShadow",value:function(t,e,i){var a,s=this.w,r=i.blur,o=i.top,n=i.left,l=i.color,h=i.opacity;if((null===(a=s.config.chart.dropShadow.enabledOnSeries)||void 0===a?void 0:a.length)>0&&-1===s.config.chart.dropShadow.enabledOnSeries.indexOf(e))return t;var c=t.flood(Array.isArray(l)?l[e]:l,h).composite(t.sourceAlpha,"in").offset(n,o).gaussianBlur(r).merge(t.source);return t.blend(t.source,c)}},{key:"dropShadow",value:function(t,e){var i,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=e.top,o=e.left,n=e.blur,l=e.color,h=e.opacity,c=e.noUserSpaceOnUse,d=this.w;return t.unfilter(!0),v.isIE()&&"radialBar"===d.config.chart.type||(null===(i=d.config.chart.dropShadow.enabledOnSeries)||void 0===i?void 0:i.length)>0&&-1===(null===(a=d.config.chart.dropShadow.enabledOnSeries)||void 0===a?void 0:a.indexOf(s))||(l=Array.isArray(l)?l[s]:l,t.filter((function(t){var e;e=v.isSafari()||v.isFirefox()||v.isIE()?t.flood(l,h).composite(t.sourceAlpha,"in").offset(o,r).gaussianBlur(n):t.flood(l,h).composite(t.sourceAlpha,"in").offset(o,r).gaussianBlur(n).merge(t.source),t.blend(t.source,e)})),c||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(t.filterer.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var a=this.w;if(void 0!==a.globals.selectedDataPoints[e]&&a.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var s=a.config.states.active.filter;"none"!==s&&this.applyFilter(t,e,s.type,s.value)}}},{key:"_scaleFilterSize",value:function(t){!function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),w=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"roundPathCorners",value:function(t,e){function i(t,e,i){var s=e.x-t.x,r=e.y-t.y,o=Math.sqrt(s*s+r*r);return a(t,e,Math.min(1,i/o))}function a(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function s(t,e){t.length>2&&(t[t.length-2]=e.x,t[t.length-1]=e.y)}function r(t){return{x:parseFloat(t[t.length-2]),y:parseFloat(t[t.length-1])}}t.indexOf("NaN")>-1&&(t="");var o=t.split(/[,\s]/).reduce((function(t,e){var i=e.match("([a-zA-Z])(.+)");return i?(t.push(i[1]),t.push(i[2])):t.push(e),t}),[]).reduce((function(t,e){return parseFloat(e)==e&&t.length?t[t.length-1].push(e):t.push([e]),t}),[]),n=[];if(o.length>1){var l=r(o[0]),h=null;"Z"==o[o.length-1][0]&&o[0].length>2&&(h=["L",l.x,l.y],o[o.length-1]=h),n.push(o[0]);for(var c=1;c2&&"L"==g[0]&&u.length>2&&"L"==u[0]){var p,f,x=r(d),b=r(g),v=r(u);p=i(b,x,e),f=i(b,v,e),s(g,p),g.origPoint=b,n.push(g);var m=a(p,b,.5),y=a(b,f,.5),w=["C",m.x,m.y,y.x,y.y,f.x,f.y];w.origPoint=b,n.push(w)}else n.push(g)}if(h){var k=r(n[n.length-1]);n.push(["Z"]),s(n[0],k)}}else n=o;return n.reduce((function(t,e){return t+e.join(" ")+" "}),"")}},{key:"drawLine",value:function(t,e,i,a){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,n=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:a,stroke:s,"stroke-dasharray":r,"stroke-width":o,"stroke-linecap":n})}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,n=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,c=this.w.globals.dom.Paper.rect();return c.attr({x:t,y:e,width:i>0?i:0,height:a>0?a:0,rx:s,ry:s,opacity:o,"stroke-width":null!==n?n:0,stroke:null!==l?l:"none","stroke-dasharray":h}),c.node.setAttribute("fill",r),c}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:a,stroke:e,"stroke-width":i})}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t<0&&(t=0);var i=this.w.globals.dom.Paper.circle(2*t);return null!==e&&i.attr(e),i}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,a=t.stroke,s=void 0===a?"#a8a8a8":a,r=t.strokeWidth,o=void 0===r?1:r,n=t.fill,l=t.fillOpacity,h=void 0===l?1:l,c=t.strokeOpacity,d=void 0===c?1:c,g=t.classes,u=t.strokeLinecap,p=void 0===u?null:u,f=t.strokeDashArray,x=void 0===f?0:f,b=this.w;return null===p&&(p=b.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(b.globals.gridHeight)),b.globals.dom.Paper.path(i).attr({fill:n,"fill-opacity":h,stroke:s,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":o,"stroke-dasharray":x,class:g})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w.globals.dom.Paper.group();return null!==t&&e.attr(t),e}},{key:"move",value:function(t,e){return["M",t,e].join(" ")}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=null;return null===i?a=[" L",t,e].join(" "):"H"===i?a=[" H",t].join(" "):"V"===i&&(a=[" V",e].join(" ")),a}},{key:"curve",value:function(t,e,i,a,s,r){return["C",t,e,i,a,s,r].join(" ")}},{key:"quadraticCurve",value:function(t,e,i,a){return["Q",t,e,i,a].join(" ")}},{key:"arc",value:function(t,e,i,a,s,r,o){var n="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(n="a"),[n,t,e,i,a,s,r,o].join(" ")}},{key:"renderPaths",value:function(t){var e,i=t.j,s=t.realIndex,r=t.pathFrom,o=t.pathTo,n=t.stroke,l=t.strokeWidth,h=t.strokeLinecap,c=t.fill,d=t.animationDelay,g=t.initialSpeed,u=t.dataChangeSpeed,p=t.className,f=t.shouldClipToGrid,x=void 0===f||f,b=t.bindEventsOnPaths,v=void 0===b||b,w=t.drawShadow,k=void 0===w||w,A=this.w,S=new y(this.ctx),C=new m(this.ctx),L=this.w.config.chart.animations.enabled,P=L&&this.w.config.chart.animations.dynamicAnimation.enabled,M=!!(L&&!A.globals.resized||P&&A.globals.dataChanged&&A.globals.shouldAnimate);M?e=r:(e=o,A.globals.animationEnded=!0);var I,T=A.config.stroke.dashArray;I=Array.isArray(T)?T[s]:A.config.stroke.dashArray;var z=this.drawPath({d:e,stroke:n,strokeWidth:l,fill:c,fillOpacity:1,classes:p,strokeLinecap:h,strokeDashArray:I});if(z.attr("index",s),x&&z.attr({"clip-path":"url(#gridRectMask".concat(A.globals.cuid,")")}),"none"!==A.config.states.normal.filter.type)S.getDefaultFilter(z,s);else if(A.config.chart.dropShadow.enabled&&k){var X=A.config.chart.dropShadow;S.dropShadow(z,X,s)}v&&(z.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,z)),z.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,z)),z.node.addEventListener("mousedown",this.pathMouseDown.bind(this,z))),z.attr({pathTo:o,pathFrom:r});var E={el:z,j:i,realIndex:s,pathFrom:r,pathTo:o,fill:c,strokeWidth:l,delay:d};return!L||A.globals.resized||A.globals.dataChanged?!A.globals.resized&&A.globals.dataChanged||C.showDelayedElements():C.animatePathsGradually(a(a({},E),{},{speed:g})),A.globals.dataChanged&&P&&M&&C.animatePathsGradually(a(a({},E),{},{speed:u})),z}},{key:"drawPattern",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(e,i,(function(r){"horizontalLines"===t?r.line(0,0,i,0).stroke({color:a,width:s+1}):"verticalLines"===t?r.line(0,0,0,e).stroke({color:a,width:s+1}):"slantedLines"===t?r.line(0,0,e,i).stroke({color:a,width:s}):"squares"===t?r.rect(e,i).fill("none").stroke({color:a,width:s}):"circles"===t&&r.circle(e).fill("none").stroke({color:a,width:s})}))}},{key:"drawGradient",value:function(t,e,i,a,s){var r,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=this.w;e.length<9&&0===e.indexOf("#")&&(e=v.hexToRgba(e,a)),i.length<9&&0===i.indexOf("#")&&(i=v.hexToRgba(i,s));var d=0,g=1,u=1,p=null;null!==n&&(d=void 0!==n[0]?n[0]/100:0,g=void 0!==n[1]?n[1]/100:1,u=void 0!==n[2]?n[2]/100:1,p=void 0!==n[3]?n[3]/100:null);var f=!("donut"!==c.config.chart.type&&"pie"!==c.config.chart.type&&"polarArea"!==c.config.chart.type&&"bubble"!==c.config.chart.type);if(r=null===l||0===l.length?c.globals.dom.Paper.gradient(f?"radial":"linear",(function(t){t.at(d,e,a),t.at(g,i,s),t.at(u,i,s),null!==p&&t.at(p,e,a)})):c.globals.dom.Paper.gradient(f?"radial":"linear",(function(t){(Array.isArray(l[h])?l[h]:l).forEach((function(e){t.at(e.offset/100,e.color,e.opacity)}))})),f){var x=c.globals.gridWidth/2,b=c.globals.gridHeight/2;"bubble"!==c.config.chart.type?r.attr({gradientUnits:"userSpaceOnUse",cx:x,cy:b,r:o}):r.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?r.from(0,0).to(0,1):"diagonal"===t?r.from(0,0).to(1,1):"horizontal"===t?r.from(0,1).to(1,1):"diagonal2"===t&&r.from(1,0).to(0,1);return r}},{key:"getTextBasedOnMaxWidth",value:function(t){var e=t.text,i=t.maxWidth,a=t.fontSize,s=t.fontFamily,r=this.getTextRects(e,a,s),o=r.width/e.length,n=Math.floor(i/o);return i-1){var n=i.globals.selectedDataPoints[s].indexOf(r);i.globals.selectedDataPoints[s].splice(n,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,h=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,c=function(t){Array.prototype.forEach.call(t,(function(t){t.node.setAttribute("selected","false"),a.getDefaultFilter(t,s)}))};c(l),c(h)}t.node.setAttribute("selected","true"),o="true",void 0===i.globals.selectedDataPoints[s]&&(i.globals.selectedDataPoints[s]=[]),i.globals.selectedDataPoints[s].push(r)}if("true"===o){var d=i.config.states.active.filter;if("none"!==d)a.applyFilter(t,s,d.type,d.value);else if("none"!==i.config.states.hover.filter&&!i.globals.isTouchDevice){var g=i.config.states.hover.filter;a.applyFilter(t,s,g.type,g.value)}}else"none"!==i.config.states.active.filter.type&&("none"===i.config.states.hover.filter.type||i.globals.isTouchDevice?a.getDefaultFilter(t,s):(g=i.config.states.hover.filter,a.applyFilter(t,s,g.type,g.value)));"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:s,dataPointIndex:r,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e={};return t&&"function"==typeof t.getBBox&&(e=t.getBBox()),{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,a){var s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w,o=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});a&&o.attr("transform",a),r.globals.dom.Paper.add(o);var n=o.bbox();return s||(n=o.node.getBoundingClientRect()),o.remove(),{width:n.width,height:n.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if("function"==typeof t.getComputedTextLength&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var a=e.length-3;a>0;a-=3)if(t.getSubStringLength(0,a)<=i/1.1)return void(t.textContent=e.substring(0,a)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),t}(),k=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"getStackedSeriesTotals",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.w,i=[];if(0===e.globals.series.length)return i;for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce((function(t,e){return t+e}),0):this.w.globals.series[t].reduce((function(t,e){return t+e}),0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var t=this,e=this.w,i=[];return e.globals.seriesGroups.forEach((function(a){var s=[];e.config.series.forEach((function(t,i){a.indexOf(e.globals.seriesNames[i])>-1&&s.push(i)}));var r=e.globals.series.map((function(t,e){return-1===s.indexOf(e)?e:-1})).filter((function(t){return-1!==t}));i.push(t.getStackedSeriesTotals(r))})),i}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter((function(t){return null!==t})):this.w.config.series[t].data.filter((function(t){return null!==t}))).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every((function(t,e,i){return t===i[0]}))}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map((function(t,i){return e.config.xaxis.labels.formatter(t-e.globals.minX+1)}))),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map((function(t){return t.length})).indexOf(Math.max.apply(Math,t.globals.series.map((function(t){return t.length}))))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach((function(t){e=Math.max(e,t)})),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach((function(t){e=Math.max(e,t.size)})),e>0&&(e+=t.config.markers.hover.sizeOffset+1),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map((function(t,e){var i=0;if(Array.isArray(t))for(var a=0;at&&i.globals.seriesX[s][o]0){var u=function(t,e){var i=s.config.yaxis[s.globals.seriesYAxisReverseMap[e]],r=t<0?-1:1;return t=Math.abs(t),i.logarithmic&&(t=a.getBaseLog(i.logBase,t)),-r*t/o[e]};if(r.isMultipleYAxis){l=[];for(var p=0;p0&&(i=!0),{comboBarCount:a,comboCharts:i}}},{key:"extendArrayProps",value:function(t,e,i){var a,s,r,o,n,l;return null!==(a=e)&&void 0!==a&&a.yaxis&&(e=t.extendYAxis(e,i)),null!==(s=e)&&void 0!==s&&s.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),null!==(r=e)&&void 0!==r&&null!==(o=r.annotations)&&void 0!==o&&o.xaxis&&(e=t.extendXAxisAnnotations(e)),null!==(n=e)&&void 0!==n&&null!==(l=n.annotations)&&void 0!==l&&l.points&&(e=t.extendPointAnnotations(e))),e}}]),t}(),A=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e}return n(t,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===t.label.orientation){var a=null!==e?e:0,s=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(a,"']"));if(null!==s){var r=s.getBoundingClientRect();s.setAttribute("x",parseFloat(s.getAttribute("x"))-r.height+4),"top"===t.label.position?s.setAttribute("y",parseFloat(s.getAttribute("y"))+r.width):s.setAttribute("y",parseFloat(s.getAttribute("y"))-r.width);var o=this.annoCtx.graphics.rotateAroundCenter(s),n=o.x,l=o.y;s.setAttribute("transform","rotate(-90 ".concat(n," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||void 0===e.label.text||void 0!==e.label.text&&!String(e.label.text).trim())return null;var a=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=t.getBoundingClientRect(),r=e.label.style.padding.left,o=e.label.style.padding.right,n=e.label.style.padding.top,l=e.label.style.padding.bottom;"vertical"===e.label.orientation&&(n=e.label.style.padding.left,l=e.label.style.padding.right,r=e.label.style.padding.top,o=e.label.style.padding.bottom);var h=s.left-a.left-r,c=s.top-a.top-n,d=this.annoCtx.graphics.drawRect(h-i.globals.barPadForNumericAxis,c,s.width+r+o,s.height+n+l,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&d.node.classList.add(e.id),d}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,a,s){var r=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(a,"']"));if(r){var o=r.parentNode,n=t.addBackgroundToAnno(r,i);n&&(o.insertBefore(n.node,r),i.label.mouseEnter&&n.node.addEventListener("mouseenter",i.label.mouseEnter.bind(t,i)),i.label.mouseLeave&&n.node.addEventListener("mouseleave",i.label.mouseLeave.bind(t,i)),i.label.click&&n.node.addEventListener("click",i.label.click.bind(t,i)))}};e.config.annotations.xaxis.map((function(t,e){i(t,e,"xaxis")})),e.config.annotations.yaxis.map((function(t,e){i(t,e,"yaxis")})),e.config.annotations.points.map((function(t,e){i(t,e,"point")}))}},{key:"getY1Y2",value:function(t,e){var i,a="y1"===t?e.y:e.y2,s=!1,r=this.w;if(this.annoCtx.invertAxis){var o=r.globals.labels;r.config.xaxis.convertedCatToNumeric&&(o=r.globals.categoryLabels);var n=o.indexOf(a),l=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(n+1)+")");i=l?parseFloat(l.getAttribute("y")):(r.globals.gridHeight/o.length-1)*(n+1)-r.globals.barHeight,void 0!==e.seriesIndex&&r.globals.barHeight&&(i=i-r.globals.barHeight/2*(r.globals.series.length-1)+r.globals.barHeight*e.seriesIndex)}else{var h,c=r.globals.seriesYAxisMap[e.yAxisIndex][0];(h=r.config.yaxis[e.yAxisIndex].logarithmic?(a=new k(this.annoCtx.ctx).getLogVal(r.config.yaxis[e.yAxisIndex].logBase,a,c))/r.globals.yLogRatio[c]:(a-r.globals.minYArr[c])/(r.globals.yRange[c]/r.globals.gridHeight))>r.globals.gridHeight?(h=r.globals.gridHeight,s=!0):h<0&&(h=0,s=!0),i=r.globals.gridHeight-h,!e.marker||void 0!==e.y&&null!==e.y||(i=0),r.config.yaxis[e.yAxisIndex]&&r.config.yaxis[e.yAxisIndex].reversed&&(i=h)}return"string"==typeof a&&a.indexOf("px")>-1&&(i=parseFloat(a)),{yP:i,clipped:s}}},{key:"getX1X2",value:function(t,e){var i,a="x1"===t?e.x:e.x2,s=this.w,r=this.annoCtx.invertAxis?s.globals.minY:s.globals.minX,o=this.annoCtx.invertAxis?s.globals.maxY:s.globals.maxX,n=this.annoCtx.invertAxis?s.globals.yRange[0]:s.globals.xRange,l=!1;return i=this.annoCtx.inversedReversedAxis?(o-a)/(n/s.globals.gridWidth):(a-r)/(n/s.globals.gridWidth),"category"!==s.config.xaxis.type&&!s.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||s.globals.dataFormatXNumeric||s.config.chart.sparkline.enabled||(i=this.getStringX(a)),"string"==typeof a&&a.indexOf("px")>-1&&(i=parseFloat(a)),null==a&&e.marker&&(i=s.globals.gridWidth),void 0!==e.seriesIndex&&s.globals.barWidth&&!this.annoCtx.invertAxis&&(i=i-s.globals.barWidth/2*(s.globals.series.length-1)+s.globals.barWidth*e.seriesIndex),i>s.globals.gridWidth?(i=s.globals.gridWidth,l=!0):i<0&&(i=0,l=!0),{x:i,clipped:l}}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var a=e.globals.labels.indexOf(t),s=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(a+1)+")");return s&&(i=parseFloat(s.getAttribute("x"))),i}}]),t}(),S=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new A(this.annoCtx)}return n(t,[{key:"addXaxisAnnotation",value:function(t,e,i){var a,s=this.w,r=this.helpers.getX1X2("x1",t),o=r.x,n=r.clipped,l=!0,h=t.label.text,c=t.strokeDashArray;if(v.isNumber(o)){if(null===t.x2||void 0===t.x2){if(!n){var d=this.annoCtx.graphics.drawLine(o+t.offsetX,0+t.offsetY,o+t.offsetX,s.globals.gridHeight+t.offsetY,t.borderColor,c,t.borderWidth);e.appendChild(d.node),t.id&&d.node.classList.add(t.id)}}else{var g=this.helpers.getX1X2("x2",t);if(a=g.x,l=g.clipped,!n||!l){if(a12?g-12:0===g?12:g;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+l(g))).replace(/(^|[^\\])H/g,"$1"+g)).replace(/(^|[^\\])hh+/g,"$1"+l(u))).replace(/(^|[^\\])h/g,"$1"+u);var p=a?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var x=a?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+l(x))).replace(/(^|[^\\])s/g,"$1"+x);var b=a?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+l(b,3)),b=Math.round(b/10),e=e.replace(/(^|[^\\])ff/g,"$1"+l(b)),b=Math.round(b/10);var v=g<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+b)).replace(/(^|[^\\])TT+/g,"$1"+v)).replace(/(^|[^\\])T/g,"$1"+v.charAt(0));var m=v.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+m)).replace(/(^|[^\\])t/g,"$1"+m.charAt(0));var y=-t.getTimezoneOffset(),w=a||!y?"Z":y>0?"+":"-";if(!a){var k=(y=Math.abs(y))%60;w+=l(Math.floor(y/60))+":"+l(k)}e=e.replace(/(^|[^\\])K/g,"$1"+w);var A=(a?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(o[0],"g"),o[A])).replace(new RegExp(n[0],"g"),n[A])).replace(new RegExp(s[0],"g"),s[c])).replace(new RegExp(r[0],"g"),r[c])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var a=this.w;void 0!==a.config.xaxis.min&&(t=a.config.xaxis.min),void 0!==a.config.xaxis.max&&(e=a.config.xaxis.max);var s=this.getDate(t),r=this.getDate(e),o=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" "),n=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(n[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(n[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(n[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(n[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(n[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(n[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(n[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var a=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&a++,a}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=v.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),t}(),L=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return n(t,[{key:"xLabelFormat",value:function(t,e,i,a){var s=this.w;if("datetime"===s.config.xaxis.type&&void 0===s.config.xaxis.labels.formatter&&void 0===s.config.tooltip.x.formatter){var r=new C(this.ctx);return r.formatDate(r.getDate(e),s.config.tooltip.x.format)}return t(e,i,a)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map((function(t){return t})):t}},{key:"defaultYFormatter",value:function(t,e,i){var a=this.w;if(v.isNumber(t))if(0!==a.globals.yValueDecimal)t=t.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:a.globals.yValueDecimal);else{var s=t.toFixed(0);t=t==s?s:t.toFixed(1)}return t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttKeyFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttZFormatter=function(t){return t},e.globals.legendFormatter=function(e){return t.defaultGeneralFormatter(e)},void 0!==e.config.xaxis.labels.formatter?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(t){if(v.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(v.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);var i=e.globals.maxX-e.globals.minX;return i>0&&i<100?t.toFixed(1):t.toFixed(0)}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?t.toFixed(1):t.toFixed(0)}return t},"function"==typeof e.config.tooltip.x.formatter?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(e.globals.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach((function(i,a){void 0!==i.labels.formatter?e.globals.yLabelFormatters[a]=i.labels.formatter:e.globals.yLabelFormatters[a]=function(s){return e.globals.xyCharts?Array.isArray(s)?s.map((function(e){return t.defaultYFormatter(e,i,a)})):t.defaultYFormatter(s,i,a):s}})),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce((function(t,e){return t.length>e.length?t:e}),0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),t}(),P=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"getLabel",value:function(t,e,i,a){var s,r,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],h=this.w,c=void 0===t[a]?"":t[a],d=c,g=h.globals.xLabelFormatter,u=h.config.xaxis.labels.formatter,p=!1,f=new L(this.ctx),x=c;l&&(d=f.xLabelFormat(g,c,x,{i:a,dateFormatter:new C(this.ctx).formatDate,w:h}),void 0!==u&&(d=u(c,t[a],{i:a,dateFormatter:new C(this.ctx).formatDate,w:h}))),e.length>0?(s=e[a].unit,r=null,e.forEach((function(t){"month"===t.unit?r="year":"day"===t.unit?r="month":"hour"===t.unit?r="day":"minute"===t.unit&&(r="hour")})),p=r===s,i=e[a].position,d=e[a].value):"datetime"===h.config.xaxis.type&&void 0===u&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var b,v=new w(this.ctx);b=h.globals.rotateXLabels&&l?v.getTextRects(d,parseInt(n,10),null,"rotate(".concat(h.config.xaxis.labels.rotate," 0 0)"),!1):v.getTextRects(d,parseInt(n,10));var m=!h.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&("NaN"===String(d)||o.indexOf(d)>=0&&m)&&(d=""),{x:i,text:d,textRect:b,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var a=this.w,s=a.config.xaxis.tickAmount;return"dataPoints"===s&&(s=Math.round(a.globals.gridWidth/120)),s>i||t%Math.round(i/(s+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,a,s){var r=this.w;if(0===t&&r.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&r.globals.skipLastTimelinelabel&&(e.text=""),r.config.xaxis.labels.hideOverlappingLabels&&a.length>0){var o=s[s.length-1];e.xa.length||a.some((function(t){return Array.isArray(t.seriesName)}))?t:i.seriesYAxisReverseMap[t]}},{key:"isYAxisHidden",value:function(t){var e=this.w,i=e.config.yaxis[t];if(!i.show||this.yAxisAllSeriesCollapsed(t))return!0;if(!i.showForNullSeries){var a=e.globals.seriesYAxisMap[t],s=new k(this.ctx);return a.every((function(t){return s.isSeriesNull(t)}))}return!1}},{key:"getYAxisForeColor",value:function(t,e){var i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&this.ctx.theme.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1),t}},{key:"drawYAxisTicks",value:function(t,e,i,a,s,r,o){var n=this.w,l=new w(this.ctx),h=n.globals.translateY;if(a.show&&e>0){!0===n.config.yaxis[s].opposite&&(t+=a.width);for(var c=e;c>=0;c--){var d=h+e/10+n.config.yaxis[s].labels.offsetY-1;n.globals.isBarHorizontal&&(d=r*c),"heatmap"===n.config.chart.type&&(d+=r/2);var g=l.drawLine(t+i.offsetX-a.width+a.offsetX,d+a.offsetY,t+i.offsetX+a.offsetX,d+a.offsetY,a.color);o.add(g),h+=r}}}}]),t}(),M=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new A(this.annoCtx),this.axesUtils=new P(this.annoCtx)}return n(t,[{key:"addYaxisAnnotation",value:function(t,e,i){var a,s=this.w,r=t.strokeDashArray,o=this.helpers.getY1Y2("y1",t),n=o.yP,l=o.clipped,h=!0,c=!1,d=t.label.text;if(null===t.y2||void 0===t.y2){if(!l){c=!0;var g=this.annoCtx.graphics.drawLine(0+t.offsetX,n+t.offsetY,this._getYAxisAnnotationWidth(t),n+t.offsetY,t.borderColor,r,t.borderWidth);e.appendChild(g.node),t.id&&g.node.classList.add(t.id)}}else{if(a=(o=this.helpers.getY1Y2("y2",t)).yP,h=o.clipped,a>n){var u=n;n=a,a=u}if(!l||!h){c=!0;var p=this.annoCtx.graphics.drawRect(0+t.offsetX,a+t.offsetY,this._getYAxisAnnotationWidth(t),n-a,0,t.fillColor,t.opacity,1,t.borderColor,r);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),e.appendChild(p.node),t.id&&p.node.classList.add(t.id)}}if(c){var f="right"===t.label.position?s.globals.gridWidth:"center"===t.label.position?s.globals.gridWidth/2:0,x=this.annoCtx.graphics.drawText({x:f+t.label.offsetX,y:(null!=a?a:n)+t.label.offsetY-3,text:d,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});x.attr({rel:i}),e.appendChild(x.node)}}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.forEach((function(e,a){e.yAxisIndex=t.axesUtils.translateYAxisIndex(e.yAxisIndex),t.axesUtils.isYAxisHidden(e.yAxisIndex)&&t.axesUtils.yAxisAllSeriesCollapsed(e.yAxisIndex)||t.addYaxisAnnotation(e,i.node,a)})),i}}]),t}(),I=function(){function t(e){r(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new A(this.annoCtx)}return n(t,[{key:"addPointAnnotation",value:function(t,e,i){if(!(this.w.globals.collapsedSeriesIndices.indexOf(t.seriesIndex)>-1)){var a=this.helpers.getX1X2("x1",t),s=a.x,r=a.clipped,o=(a=this.helpers.getY1Y2("y1",t)).yP,n=a.clipped;if(v.isNumber(s)&&!n&&!r){var l={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},h=this.annoCtx.graphics.drawMarker(s+t.marker.offsetX,o+t.marker.offsetY,l);e.appendChild(h.node);var c=t.label.text?t.label.text:"",d=this.annoCtx.graphics.drawText({x:s+t.label.offsetX,y:o+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,text:c,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(d.attr({rel:i}),e.appendChild(d.node),t.customSVG.SVG){var g=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});g.attr({transform:"translate(".concat(s+t.customSVG.offsetX,", ").concat(o+t.customSVG.offsetY,")")}),g.node.innerHTML=t.customSVG.SVG,e.appendChild(g.node)}if(t.image.path){var u=t.image.width?t.image.width:20,p=t.image.height?t.image.height:20;h=this.annoCtx.addImage({x:s+t.image.offsetX-u/2,y:o+t.image.offsetY-p/2,width:u,height:p,path:t.image.path,appendTo:".apexcharts-point-annotations"})}t.mouseEnter&&h.node.addEventListener("mouseenter",t.mouseEnter.bind(this,t)),t.mouseLeave&&h.node.addEventListener("mouseleave",t.mouseLeave.bind(this,t)),t.click&&h.node.addEventListener("click",t.click.bind(this,t))}}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map((function(e,a){t.addPointAnnotation(e,i.node,a)})),i}}]),t}(),T={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},z=function(){function t(){r(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return n(t,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[T],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(t){return new Date(t).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)/t.globals.series.length+"%"}}},barLabels:{enabled:!1,margin:5,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(t){return t},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce((function(t,e){return t+e}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return null!==t?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}(),X=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.graphics=new w(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new A(this),this.xAxisAnnotations=new S(this),this.yAxisAnnotations=new M(this),this.pointsAnnotations=new I(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return n(t,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),s=t.config.chart.animations.enabled,r=[e,i,a],o=[i.node,e.node,a.node],n=0;n<3;n++)t.globals.dom.elGraphical.add(r[n]),!s||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&t.globals.dataPoints>1&&o[n].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:o[n],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map((function(e,i){t.addImage(e,i)}))}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map((function(e,i){t.addText(e,i)}))}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,a=t.y,s=t.text,r=t.textAnchor,o=t.foreColor,n=t.fontSize,l=t.fontFamily,h=t.fontWeight,c=t.cssClass,d=t.backgroundColor,g=t.borderWidth,u=t.strokeDashArray,p=t.borderRadius,f=t.borderColor,x=t.appendTo,b=void 0===x?".apexcharts-svg":x,v=t.paddingLeft,m=void 0===v?4:v,y=t.paddingRight,w=void 0===y?4:y,k=t.paddingBottom,A=void 0===k?2:k,S=t.paddingTop,C=void 0===S?2:S,L=this.w,P=this.graphics.drawText({x:i,y:a,text:s,textAnchor:r||"start",fontSize:n||"12px",fontWeight:h||"regular",fontFamily:l||L.config.chart.fontFamily,foreColor:o||L.config.chart.foreColor,cssClass:c}),M=L.globals.dom.baseEl.querySelector(b);M&&M.appendChild(P.node);var I=P.bbox();if(s){var T=this.graphics.drawRect(I.x-m,I.y-C,I.width+m+w,I.height+A+C,p,d||"transparent",1,g,f,u);M.insertBefore(T.node,P.node)}}},{key:"addImage",value:function(t,e){var i=this.w,a=t.path,s=t.x,r=void 0===s?0:s,o=t.y,n=void 0===o?0:o,l=t.width,h=void 0===l?20:l,c=t.height,d=void 0===c?20:c,g=t.appendTo,u=void 0===g?".apexcharts-svg":g,p=i.globals.dom.Paper.image(a);p.size(h,d).move(r,n);var f=i.globals.dom.baseEl.querySelector(u);return f&&f.appendChild(p.node),p}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,a=t.context,s=t.type,r=t.contextMethod,o=a,n=o.w,l=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations")),h=l.childNodes.length+1,c=new z,d=Object.assign({},"xaxis"===s?c.xAxisAnnotation:"yaxis"===s?c.yAxisAnnotation:c.pointAnnotation),g=v.extend(d,e);switch(s){case"xaxis":this.addXaxisAnnotation(g,l,h);break;case"yaxis":this.addYaxisAnnotation(g,l,h);break;case"point":this.addPointAnnotation(g,l,h)}var u=n.globals.dom.baseEl.querySelector(".apexcharts-".concat(s,"-annotations .apexcharts-").concat(s,"-annotation-label[rel='").concat(h,"']")),p=this.helpers.addBackgroundToAnno(u,g);return p&&l.insertBefore(p.node,u),i&&n.globals.memory.methodsToExec.push({context:o,id:g.id?g.id:v.randomId(),method:r,label:"addAnnotation",params:e}),a}},{key:"clearAnnotations",value:function(t){var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");e.globals.memory.methodsToExec.map((function(t,i){"addText"!==t.label&&"addAnnotation"!==t.label||e.globals.memory.methodsToExec.splice(i,1)})),i=v.listToArray(i),Array.prototype.forEach.call(i,(function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}))}},{key:"removeAnnotation",value:function(t,e){var i=t.w,a=i.globals.dom.baseEl.querySelectorAll(".".concat(e));a&&(i.globals.memory.methodsToExec.map((function(t,a){t.id===e&&i.globals.memory.methodsToExec.splice(a,1)})),Array.prototype.forEach.call(a,(function(t){t.parentElement.removeChild(t)})))}}]),t}(),E=function(t){var e,i=t.isTimeline,a=t.ctx,s=t.seriesIndex,r=t.dataPointIndex,o=t.y1,n=t.y2,l=t.w,h=l.globals.seriesRangeStart[s][r],c=l.globals.seriesRangeEnd[s][r],d=l.globals.labels[r],g=l.config.series[s].name?l.config.series[s].name:"",u=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,f={w:l,seriesIndex:s,dataPointIndex:r,start:h,end:c};"function"==typeof p&&(g=p(g,f)),null!==(e=l.config.series[s].data[r])&&void 0!==e&&e.x&&(d=l.config.series[s].data[r].x),i||"datetime"===l.config.xaxis.type&&(d=new L(a).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new C(a).formatDate,w:l})),"function"==typeof u&&(d=u(d,f)),Number.isFinite(o)&&Number.isFinite(n)&&(h=o,c=n);var x="",b="",v=l.globals.colors[s];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var m=new C(a);x=m.formatDate(m.getDate(h),l.config.tooltip.x.format),b=m.formatDate(m.getDate(c),l.config.tooltip.x.format)}else x=h,b=c;else x=l.config.tooltip.x.formatter(h),b=l.config.tooltip.x.formatter(c);return{start:h,end:c,startVal:x,endVal:b,ylabel:d,color:v,seriesName:g}},Y=function(t){var e=t.color,i=t.seriesName,a=t.ylabel,s=t.start,r=t.end,o=t.seriesIndex,n=t.dataPointIndex,l=t.ctx.tooltip.tooltipLabels.getFormatters(o);s=l.yLbFormatter(s),r=l.yLbFormatter(r);var h=l.yLbFormatter(t.w.globals.series[o][n]),c='\n '.concat(s,'\n - \n ').concat(r,"\n ");return'
'+(i||"")+'
'+a+": "+(t.w.globals.comboCharts?"rangeArea"===t.w.config.series[o].type||"rangeBar"===t.w.config.series[o].type?c:"".concat(h,""):c)+"
"},R=function(){function t(e){r(this,t),this.opts=e}return n(t,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.hideYAxis(),v.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),a(a({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,a=e.dataPointIndex,s=e.w;return t._getBoxTooltip(s,i,a,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,a=e.dataPointIndex,s=e.w,r=function(){var t=s.globals.seriesRangeStart[i][a];return s.globals.seriesRangeEnd[i][a]-t};return s.globals.comboCharts?"rangeBar"===s.config.series[i].type||"rangeArea"===s.config.series[i].type?r():t:r()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(t){var e=E(a(a({},t),{},{isTimeline:!0})),i=e.color,s=e.seriesName,r=e.ylabel,o=e.startVal,n=e.endVal;return Y(a(a({},t),{},{color:i,seriesName:s,ylabel:r,start:o,end:n}))}(t):function(t){var e=E(t),i=e.color,s=e.seriesName,r=e.ylabel,o=e.start,n=e.end;return Y(a(a({},t),{},{color:i,seriesName:s,ylabel:r,start:o,end:n}))}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(t){var e,i;return null!==(e=t.plotOptions.bar)&&void 0!==e&&e.barHeight||(t.plotOptions.bar.barHeight=2),null!==(i=t.plotOptions.bar)&&void 0!==i&&i.columnWidth||(t.plotOptions.bar.columnWidth=2),t}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(t){return function(t){var e=E(t),i=e.color,s=e.seriesName,r=e.ylabel,o=e.start,n=e.end;return Y(a(a({},t),{},{color:i,seriesName:s,ylabel:r,start:o,end:n}))}(t)}}}}},{key:"brush",value:function(t){return v.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})),"bar"===t.chart.type&&(t.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t}),t}},{key:"stackedBars",value:function(){var t=this.bar();return a(a({},t),{},{plotOptions:a(a({},t.plotOptions),{},{bar:a(a({},t.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return v.isNumber(t)?Math.floor(t):t};var a=t.xaxis.labels.formatter,s=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(s=i.map((function(t){return Array.isArray(t)?t:String(t)}))),s&&s.length&&(t.xaxis.labels.formatter=function(t){return v.isNumber(t)?a(s[Math.floor(t)-1]):a(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(t,e,i,a,s){var r=t.globals.seriesCandleO[e][i],o=t.globals.seriesCandleH[e][i],n=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],h=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==s?'
\n '.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": ").concat(t.globals.series[e][i],"\n
"):'
')+"
".concat(a[0],': ')+r+"
"+"
".concat(a[1],': ')+o+"
"+(n?"
".concat(a[2],': ')+n+"
":"")+"
".concat(a[3],': ')+l+"
"+"
".concat(a[4],': ')+h+"
"}}]),t}(),F=function(){function t(e){r(this,t),this.opts=e}return n(t,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,a=new z,r=new R(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var o=a.init(),n={};if(i&&"object"===s(i)){var l,h,c,d,g,u,p,f,x={};x=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?r[i.chart.type]():r.line(),null!==(l=i.plotOptions)&&void 0!==l&&null!==(h=l.bar)&&void 0!==h&&h.isFunnel&&(x=r.funnel()),i.chart.stacked&&"bar"===i.chart.type&&(x=r.stackedBars()),null!==(c=i.chart.brush)&&void 0!==c&&c.enabled&&(x=r.brush(x)),i.chart.stacked&&"100%"===i.chart.stackType&&(i=r.stacked100(i)),null!==(d=i.plotOptions)&&void 0!==d&&null!==(g=d.bar)&&void 0!==g&&g.isDumbbell&&(i=r.dumbbell(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},e||(i.xaxis.convertedCatToNumeric=!1),(null!==(u=(i=this.checkForCatToNumericXAxis(this.chartType,x,i)).chart.sparkline)&&void 0!==u&&u.enabled||null!==(p=window.Apex.chart)&&void 0!==p&&null!==(f=p.sparkline)&&void 0!==f&&f.enabled)&&(x=r.sparkline(x)),n=v.extend(o,x)}var b=v.extend(n,window.Apex);return o=v.extend(b,i),this.handleUserInputErrors(o)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var a,s,r=new R(i),o=("bar"===t||"boxPlot"===t)&&(null===(a=i.plotOptions)||void 0===a||null===(s=a.bar)||void 0===s?void 0:s.horizontal),n="pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t,l="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,h=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return o||n||!l||"between"===h||(i=r.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new z;(void 0===t.yaxis||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=v.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[v.extend(i.yAxis,t.yaxis)]:t.yaxis=v.extendArray(t.yaxis,i.yAxis);var a=!1;t.yaxis.forEach((function(t){t.logarithmic&&(a=!0)}));var s=t.series;return e&&!s&&(s=e.config.series),a&&s.length!==t.yaxis.length&&s.length&&(t.yaxis=s.map((function(e,a){if(e.name||(s[a].name="series-".concat(a+1)),t.yaxis[a])return t.yaxis[a].seriesName=s[a].name,t.yaxis[a];var r=v.extend(i.yAxis,t.yaxis[0]);return r.show=!1,r}))),a&&s.length>1&&(s.length,t.yaxis.length),t}},{key:"extendAnnotations",value:function(t){return void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new z;return t.annotations.yaxis=v.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new z;return t.annotations.xaxis=v.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new z;return t.annotations.points=v.extendArray(void 0!==t.annotations.points?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.chart.background||(t.chart.background="#424242"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===e.chart.type&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"!==e.chart.type&&"rangeBar"!==e.chart.type||e.tooltip.shared&&"barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),"candlestick"!==e.chart.type&&"boxPlot"!==e.chart.type||e.yaxis[0].reversed&&(e.yaxis[0].reversed=!1),e}}]),t}(),O=function(){function t(){r(this,t)}return n(t,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRange=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.barGroups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0,t.multiAxisTickAmount=0}},{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=v.extend({},t),e.initialSeries=v.clone(t.series),e.lastXAxis=v.clone(e.initialConfig.xaxis),e.lastYAxis=v.clone(e.initialConfig.yaxis),e}}]),t}(),H=function(){function t(e){r(this,t),this.opts=e}return n(t,[{key:"init",value:function(){var t=new F(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new O).init(t)}}}]),t}(),D=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return n(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,a=parseInt(e.globals.gridWidth,10),s=parseInt(e.globals.gridHeight,10),r=a>s?a:s,o=t.image,n=0,l=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(n=i.fill.image.width+1,l=i.fill.image.height):(n=r+1,l=r):(n=t.width,l=t.height);var h=document.createElementNS(e.globals.SVGNS,"pattern");w.setAttrs(h,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:n+"px",height:l+"px"});var c=document.createElementNS(e.globals.SVGNS,"image");h.appendChild(c),c.setAttributeNS(window.SVG.xlink,"href",o),w.setAttrs(c,{x:0,y:0,preserveAspectRatio:"none",width:n+"px",height:l+"px"}),c.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(h)}},{key:"getSeriesIndex",value:function(t){var e=this.w,i=e.config.chart.type;return("bar"===i||"rangeBar"===i)&&e.config.plotOptions.bar.distributed||"heatmap"===i||"treemap"===i?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,a,s,r=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var o=this.getFillColors()[this.seriesIndex];void 0!==e.globals.seriesColors[this.seriesIndex]&&(o=e.globals.seriesColors[this.seriesIndex]),"function"==typeof o&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:e}));var n=t.fillType?t.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity;t.color&&(o=t.color),o||(o="#fff");var h=o;if(-1===o.indexOf("rgb")?o.length<9&&(h=v.hexToRgba(o,l)):o.indexOf("rgba")>-1&&(l=v.getOpacityFromRGBA(o)),t.opacity&&(l=t.opacity),"pattern"===n&&(a=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:a,fillColor:o,fillOpacity:l,defaultColor:h})),"gradient"===n&&(s=this.handleGradientFill({fillConfig:t.fillConfig,fillColor:o,fillOpacity:l,i:this.seriesIndex})),"image"===n){var c=r.fill.image.src,d=t.patternID?t.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(c)?t.seriesNumber-1&&(u=v.getOpacityFromRGBA(g));var p=void 0===o.gradient.opacityTo?i:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[r]:o.gradient.opacityTo;if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)n="dark"===o.gradient.shade?c.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?v.rgb2hex(e):e):c.shadeColor(parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?v.rgb2hex(e):e);else if(o.gradient.gradientToColors[l.seriesNumber]){var f=o.gradient.gradientToColors[l.seriesNumber];n=f,f.indexOf("rgba")>-1&&(p=v.getOpacityFromRGBA(f))}else n=e;if(o.gradient.gradientFrom&&(g=o.gradient.gradientFrom),o.gradient.gradientTo&&(n=o.gradient.gradientTo),o.gradient.inverseColors){var x=g;g=n,n=x}return g.indexOf("rgb")>-1&&(g=v.rgb2hex(g)),n.indexOf("rgb")>-1&&(n=v.rgb2hex(n)),h.drawGradient(d,g,n,u,p,l.size,o.gradient.stops,o.gradient.colorStops,r)}}]),t}(),N=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length4&&void 0!==arguments[4]&&arguments[4],o=this.w,n=e,l=t,h=null,c=new w(this.ctx),d=o.config.markers.discrete&&o.config.markers.discrete.length;if((o.globals.markers.size[e]>0||r||d)&&(h=c.group({class:r||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(l.x))for(var g=0;g0:o.config.markers.size>0)||r||d){v.isNumber(l.y[g])?p+=" w".concat(v.randomId()):p="apexcharts-nullpoint";var f=this.getMarkerConfig({cssClass:p,seriesIndex:e,dataPointIndex:u});o.config.series[n].data[u]&&(o.config.series[n].data[u].fillColor&&(f.pointFillColor=o.config.series[n].data[u].fillColor),o.config.series[n].data[u].strokeColor&&(f.pointStrokeColor=o.config.series[n].data[u].strokeColor)),a&&(f.pSize=a),(l.x[g]<0||l.x[g]>o.globals.gridWidth||l.y[g]<-o.globals.markers.largestSize||l.y[g]>o.globals.gridHeight+o.globals.markers.largestSize)&&(f.pSize=0),(s=c.drawMarker(l.x[g],l.y[g],f)).attr("rel",u),s.attr("j",u),s.attr("index",e),s.node.setAttribute("default-marker-size",f.pSize),new y(this.ctx).setSelectionFilter(s,e,u),this.addEvents(s),h&&h.add(s)}else void 0===o.globals.pointsArray[e]&&(o.globals.pointsArray[e]=[]),o.globals.pointsArray[e].push([l.x[g],l.y[g]])}return h}},{key:"getMarkerConfig",value:function(t){var e=t.cssClass,i=t.seriesIndex,a=t.dataPointIndex,s=void 0===a?null:a,r=t.finishRadius,o=void 0===r?null:r,n=this.w,l=this.getMarkerStyle(i),h=n.globals.markers.size[i],c=n.config.markers;return null!==s&&c.discrete.length&&c.discrete.map((function(t){t.seriesIndex===i&&t.dataPointIndex===s&&(l.pointStrokeColor=t.strokeColor,l.pointFillColor=t.fillColor,h=t.size,l.pointShape=t.shape)})),{pSize:null===o?h:o,pRadius:c.radius,width:Array.isArray(c.width)?c.width[i]:c.width,height:Array.isArray(c.height)?c.height[i]:c.height,pointStrokeWidth:Array.isArray(c.strokeWidth)?c.strokeWidth[i]:c.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(c.shape)?c.shape[i]:c.shape),class:e,pointStrokeOpacity:Array.isArray(c.strokeOpacity)?c.strokeOpacity[i]:c.strokeOpacity,pointStrokeDashArray:Array.isArray(c.strokeDashArray)?c.strokeDashArray[i]:c.strokeDashArray,pointFillOpacity:Array.isArray(c.fillOpacity)?c.fillOpacity[i]:c.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(t){var e=this.w,i=new w(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,a=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(a)?a[t]:a,pointFillColor:Array.isArray(i)?i[t]:i}}}]),t}(),W=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return n(t,[{key:"draw",value:function(t,e,i){var a=this.w,s=new w(this.ctx),r=i.realIndex,o=i.pointsPos,n=i.zRatio,l=i.elParent,h=s.group({class:"apexcharts-series-markers apexcharts-series-".concat(a.config.chart.type)});if(h.attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(o.x))for(var c=0;cf.maxBubbleRadius&&(p=f.maxBubbleRadius)}a.config.chart.animations.enabled||(u=p);var x=o.x[c],b=o.y[c];if(u=u||0,null!==b&&void 0!==a.globals.series[r][d]||(g=!1),g){var v=this.drawPoint(x,b,u,p,r,d,e);h.add(v)}l.add(h)}}},{key:"drawPoint",value:function(t,e,i,a,s,r,o){var n=this.w,l=s,h=new m(this.ctx),c=new y(this.ctx),d=new D(this.ctx),g=new N(this.ctx),u=new w(this.ctx),p=g.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:r,finishRadius:"bubble"===n.config.chart.type||n.globals.comboCharts&&n.config.series[s]&&"bubble"===n.config.series[s].type?a:null});a=p.pSize;var f,x=d.fillPath({seriesNumber:s,dataPointIndex:r,color:p.pointFillColor,patternUnits:"objectBoundingBox",value:n.globals.series[s][o]});if("circle"===p.shape?f=u.drawCircle(i):"square"!==p.shape&&"rect"!==p.shape||(f=u.drawRect(0,0,p.width-p.pointStrokeWidth/2,p.height-p.pointStrokeWidth/2,p.pRadius)),n.config.series[l].data[r]&&n.config.series[l].data[r].fillColor&&(x=n.config.series[l].data[r].fillColor),f.attr({x:t-p.width/2-p.pointStrokeWidth/2,y:e-p.height/2-p.pointStrokeWidth/2,cx:t,cy:e,fill:x,"fill-opacity":p.pointFillOpacity,stroke:p.pointStrokeColor,r:a,"stroke-width":p.pointStrokeWidth,"stroke-dasharray":p.pointStrokeDashArray,"stroke-opacity":p.pointStrokeOpacity}),n.config.chart.dropShadow.enabled){var b=n.config.chart.dropShadow;c.dropShadow(f,b,s)}if(!this.initialAnim||n.globals.dataChanged||n.globals.resized)n.globals.animationEnded=!0;else{var v=n.config.chart.animations.speed;h.animateMarker(f,0,"circle"===p.shape?a:{width:p.width,height:p.height},v,n.globals.easing,(function(){window.setTimeout((function(){h.animationCompleted(f)}),100)}))}if(n.globals.dataChanged&&"circle"===p.shape)if(this.dynamicAnim){var k,A,S,C,L=n.config.chart.animations.dynamicAnimation.speed;null!=(C=n.globals.previousPaths[s]&&n.globals.previousPaths[s][o])&&(k=C.x,A=C.y,S=void 0!==C.r?C.r:a);for(var P=0;Pn.globals.gridHeight+d&&(e=n.globals.gridHeight+d/2),void 0===n.globals.dataLabelsRects[a]&&(n.globals.dataLabelsRects[a]=[]),n.globals.dataLabelsRects[a].push({x:t,y:e,width:c,height:d});var g=n.globals.dataLabelsRects[a].length-2,u=void 0!==n.globals.lastDrawnDataLabelsIndexes[a]?n.globals.lastDrawnDataLabelsIndexes[a][n.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(void 0!==n.globals.dataLabelsRects[a][g]){var p=n.globals.dataLabelsRects[a][u];(t>p.x+p.width||e>p.y+p.height||e+de.globals.gridWidth+f.textRects.width+30)&&(n="");var x=e.globals.dataLabels.style.colors[r];(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(x=e.globals.dataLabels.style.colors[o]),"function"==typeof x&&(x=x({series:e.globals.series,seriesIndex:r,dataPointIndex:o,w:e})),g&&(x=g);var b=d.offsetX,v=d.offsetY;if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||(b=0,v=0),f.drawnextLabel){var m=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:a+b,y:s+v,foreColor:x,textAnchor:l||d.textAnchor,text:n,fontSize:h||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(m.attr({class:"apexcharts-datalabel",cx:a,cy:s}),d.dropShadow.enabled){var k=d.dropShadow;new y(this.ctx).dropShadow(m,k)}c.add(m),void 0===e.globals.lastDrawnDataLabelsIndexes[r]&&(e.globals.lastDrawnDataLabelsIndexes[r]=[]),e.globals.lastDrawnDataLabelsIndexes[r].push(o)}}}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,a=i.config.dataLabels.background,s=a.padding,r=a.padding/2,o=e.width,n=e.height,l=new w(this.ctx).drawRect(e.x-s,e.y-r/2,o+2*s,n+r,a.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new y(this.ctx).dropShadow(l,a.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var t=this.w;if("bubble"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.w,s=v.clone(a.globals.initialSeries);a.globals.previousPaths=[],i?(a.globals.collapsedSeries=[],a.globals.ancillaryCollapsedSeries=[],a.globals.collapsedSeriesIndices=[],a.globals.ancillaryCollapsedSeriesIndices=[]):s=this.emptyCollapsedSeries(s),a.config.series=s,t&&(e&&(a.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(s,a.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i-1&&(t[i].data=[]);return t}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w;e||(e=t.target);var a=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if("mousemove"===t.type){var s=parseInt(e.getAttribute("rel"),10)-1,r=null,o=null,n=null;if(i.globals.axisCharts||"radialBar"===i.config.chart.type)if(i.globals.axisCharts){r=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"));var l=i.globals.seriesYAxisReverseMap[s];n=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(l,"']"))}else r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']"));else r=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var h=0;h=t.from&&a<=t.to&&s[e].classList.remove(i.legendInactiveClass)}}(a.config.plotOptions.heatmap.colorScale.ranges[o])}else"mouseout"===t.type&&r("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.w,a=0;if(i.config.series.length>1)for(var s=i.config.series.map((function(t,a){return t.data&&t.data.length>0&&-1===i.globals.collapsedSeriesIndices.indexOf(a)&&(!i.globals.comboCharts||0===e.length||e.length&&e.indexOf(i.config.series[a].type)>-1)?a:-1})),r="asc"===t?0:s.length-1;"asc"===t?r=0;"asc"===t?r++:r--)if(-1!==s[r]){a=s[r];break}return a}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map((function(t,e){return"bar"===t.type||"column"===t.type?e:-1})).filter((function(t){return-1!==t})):this.w.config.series.map((function(t,e){return e}))}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(e,i,a){for(var s=e[i].childNodes,r={type:a,paths:[],realIndex:e[i].getAttribute("data:realIndex")},o=0;o0)for(var a=function(e){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(e,"'] rect")),a=[],s=function(t){var e=function(e){return i[t].getAttribute(e)},s={x:parseFloat(e("x")),y:parseFloat(e("y")),width:parseFloat(e("width")),height:parseFloat(e("height"))};a.push({rect:s,color:i[t].getAttribute("color")})},r=0;r0)for(var a=0;a0?t:[]}))}}]),t}(),V=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new k(this.ctx)}return n(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new G(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new G(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&void 0!==t[this.activeSeriesIndex].data[0]&&null!==t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,a=this.w.globals,s="boxPlot"===i.chart.type||"boxPlot"===i.series[e].type,r=0;r=5?this.twoDSeries.push(v.parseNumber(t[e].data[r][4])):this.twoDSeries.push(v.parseNumber(t[e].data[r][1])),a.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var o=new Date(t[e].data[r][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(t[e].data[r][0]);for(var n=0;n-1&&(r=this.activeSeriesIndex);for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:this.ctx,s=this.w.config,r=this.w.globals,o=new C(a),n=s.labels.length>0?s.labels.slice():s.xaxis.categories.slice();if(r.isRangeBar="rangeBar"===s.chart.type&&r.isBarHorizontal,r.hasXaxisGroups="category"===s.xaxis.type&&s.xaxis.group.groups.length>0,r.hasXaxisGroups&&(r.groups=s.xaxis.group.groups),t.forEach((function(t,e){void 0!==t.name?r.seriesNames.push(t.name):r.seriesNames.push("series-"+parseInt(e+1,10))})),r.hasSeriesGroups=null===(e=t[0])||void 0===e?void 0:e.group,r.hasSeriesGroups){var l=[],h=f(new Set(t.map((function(t){return t.group}))));t.forEach((function(t,e){var i=h.indexOf(t.group);l[i]||(l[i]=[]),l[i].push(r.seriesNames[e])})),r.seriesGroups=l}for(var c=function(){for(var t=0;t0&&(this.twoDSeriesX=n,r.seriesX.push(this.twoDSeriesX))),r.labels.push(this.twoDSeriesX);var g=t[d].data.map((function(t){return v.parseNumber(t)}));r.series.push(g)}r.seriesZ.push(this.threeDSeries),void 0!==t[d].color?r.seriesColors.push(t[d].color):r.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var a=0;a0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map((function(t){t.forEach((function(t){i.labels.indexOf(t.x)<0&&t.x&&i.labels.push(t.x)}))})),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),e.xaxis.convertedCatToNumeric&&(new R(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,a=[];if(e.axisCharts){if(e.series.length>0)if(this.isFormatXY())for(var s=i.series.map((function(t,e){return t.data.filter((function(t,e,i){return i.findIndex((function(e){return e.x===t.x}))===e}))})),r=s.reduce((function(t,e,i,a){return a[t].length>e.length?t:i}),0),o=0;o0&&s==i.length&&e.push(a)})),t.globals.ignoreYAxisIndexes=e.map((function(t){return t}))}}]),t}(),j=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),a=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",a*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+a)}},{key:"fixSvgStringForIe11",value:function(t){if(!v.isIE11())return t.replace(/ /g," ");var e=0,i=t.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,(function(t){return 2==++e?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':t}));return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(t){null==t&&(t=1);var e=this.w.globals.dom.Paper.svg();if(1!==t){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,t),e=(new XMLSerializer).serializeToString(i)}return this.fixSvgStringForIe11(e)}},{key:"cleanup",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=t.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(a,(function(t){t.setAttribute("width",0)})),e&&e[0]&&(e[0].setAttribute("x",-500),e[0].setAttribute("x1",-500),e[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var t=this.getSvgString(),e=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(e)}},{key:"dataURI",value:function(t){var e=this;return new Promise((function(i){var a=e.w,s=t?t.scale||t.width/a.globals.svgWidth:1;e.cleanup();var r=document.createElement("canvas");r.width=a.globals.svgWidth*s,r.height=parseInt(a.globals.dom.elWrap.style.height,10)*s;var o="transparent"===a.config.chart.background?"#fff":a.config.chart.background,n=r.getContext("2d");n.fillStyle=o,n.fillRect(0,0,r.width*s,r.height*s);var l=e.getSvgString(s);if(window.canvg&&v.isIE11()){var h=window.canvg.Canvg.fromString(n,l,{ignoreClear:!0,ignoreDimensions:!0});h.start();var c=r.msToBlob();h.stop(),i({blob:c})}else{var d="data:image/svg+xml,"+encodeURIComponent(l),g=new Image;g.crossOrigin="anonymous",g.onload=function(){if(n.drawImage(g,0,0),r.msToBlob){var t=r.msToBlob();i({blob:t})}else{var e=r.toDataURL("image/png");i({imgURI:e})}},g.src=d}}))}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var t=this;this.dataURI().then((function(e){var i=e.imgURI,a=e.blob;a?navigator.msSaveOrOpenBlob(a,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,a=t.fileName,s=t.columnDelimiter,r=void 0===s?",":s,o=t.lineDelimiter,n=void 0===o?"\n":o,l=this.w;i||(i=l.config.series);var h,c,d=[],g=[],u="",p=l.globals.series.map((function(t,e){return-1===l.globals.collapsedSeriesIndices.indexOf(e)?t:[]})),x=function(t){return"datetime"===l.config.xaxis.type&&String(t).length>=10},b=Math.max.apply(Math,f(i.map((function(t){return t.data?t.data.length:0})))),m=new V(this.ctx),y=new P(this.ctx),w=function(t){var i="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var a=l.globals.yLabelFormatters[0],s=new G(e.ctx).getActiveConfigSeriesIndex();i=a(l.globals.labels[t],{seriesIndex:s,dataPointIndex:t,w:l})}else i=y.getLabel(l.globals.labels,l.globals.timescaleLabels,0,t).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?i=l.config.xaxis.categories[t]:l.config.labels.length&&(i=l.config.labels[t]))}else i=l.config.labels[t];return Array.isArray(i)&&(i=i.join(" ")),v.isNumber(i)?i:i.split(r).join("")};d.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(d.push("minimum"),d.push("q1"),d.push("median"),d.push("q3"),d.push("maximum")):"candlestick"===l.config.chart.type?(d.push("open"),d.push("high"),d.push("low"),d.push("close")):"rangeBar"===l.config.chart.type?(d.push("minimum"),d.push("maximum")):i.map((function(t,e){var i=(t.name?t.name:"series-".concat(e))+"";l.globals.axisCharts&&d.push(i.split(r).join("")?i.split(r).join(""):"series-".concat(e))})),l.globals.axisCharts||(d.push(l.config.chart.toolbar.export.csv.headerValue),g.push(d.join(r))),l.globals.allSeriesHasEqualX||!l.globals.axisCharts||l.config.xaxis.categories.length||l.config.labels.length?i.map((function(t,e){l.globals.axisCharts?function(t,e){if(d.length&&0===e&&g.push(d.join(r)),t.data){t.data=t.data.length&&t.data||f(Array(b)).map((function(){return""}));for(var a=0;a0&&!a.globals.isBarHorizontal&&(this.xaxisLabels=a.globals.timescaleLabels.slice()),a.config.xaxis.overwriteCategories&&(this.xaxisLabels=a.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===a.config.xaxis.position?this.offY=0:this.offY=a.globals.gridHeight+1,this.offY=this.offY+a.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===a.config.chart.type&&a.config.plotOptions.bar.horizontal,this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.xaxisBorderWidth=a.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=a.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=a.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=a.config.xaxis.axisBorder.height,this.yaxis=a.config.yaxis[0]}return n(t,[{key:"drawXaxis",value:function(){var t=this.w,e=new w(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),a=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(a);for(var s=[],r=0;r6&&void 0!==arguments[6]?arguments[6]:{},h=[],c=[],d=this.w,g=l.xaxisFontSize||this.xaxisFontSize,u=l.xaxisFontFamily||this.xaxisFontFamily,p=l.xaxisForeColors||this.xaxisForeColors,f=l.fontWeight||d.config.xaxis.labels.style.fontWeight,x=l.cssClass||d.config.xaxis.labels.style.cssClass,b=d.globals.padHorizontal,v=a.length,m="category"===d.config.xaxis.type?d.globals.dataPoints:v;if(0===m&&v>m&&(m=v),s){var y=m>1?m-1:m;o=d.globals.gridWidth/Math.min(y,v-1),b=b+r(0,o)/2+d.config.xaxis.labels.offsetX}else o=d.globals.gridWidth/m,b=b+r(0,o)+d.config.xaxis.labels.offsetX;for(var w=function(s){var l=b-r(s,o)/2+d.config.xaxis.labels.offsetX;0===s&&1===v&&o/2===b&&1===m&&(l=d.globals.gridWidth/2);var y=n.axesUtils.getLabel(a,d.globals.timescaleLabels,l,s,h,g,t),w=28;if(d.globals.rotateXLabels&&t&&(w=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(w+=parseFloat(d.config.xaxis.title.style.fontSize)+2),t||(w=w+parseFloat(g)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),y=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?n.axesUtils.checkLabelBasedOnTickamount(s,y,v):n.axesUtils.checkForOverflowingLabels(s,y,v,h,c),d.config.xaxis.labels.show){var k=e.drawText({x:y.x,y:n.offY+d.config.xaxis.labels.offsetY+w-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:y.text,textAnchor:"middle",fontWeight:y.isBold?600:f,fontSize:g,fontFamily:u,foreColor:Array.isArray(p)?t&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+s-1]:p[s]:p,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+x});if(i.add(k),k.on("click",(function(t){if("function"==typeof d.config.chart.events.xAxisLabelClick){var e=Object.assign({},d,{labelIndex:s});d.config.chart.events.xAxisLabelClick(t,n.ctx,e)}})),t){var A=document.createElementNS(d.globals.SVGNS,"title");A.textContent=Array.isArray(y.text)?y.text.join(" "):y.text,k.node.appendChild(A),""!==y.text&&(h.push(y.text),c.push(y))}}sa.globals.gridWidth)){var r=this.offY+a.config.xaxis.axisTicks.offsetY;if(e=e+r+a.config.xaxis.axisTicks.height,"top"===a.config.xaxis.position&&(e=r-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){var o=new w(this.ctx).drawLine(t+a.config.xaxis.axisTicks.offsetX,r+a.config.xaxis.offsetY,s+a.config.xaxis.axisTicks.offsetX,e+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);i.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,a=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var s=0;s0){var h=s[s.length-1].getBBox(),c=s[0].getBBox();h.x<-20&&s[s.length-1].parentNode.removeChild(s[s.length-1]),c.x+c.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&s[0].parentNode.removeChild(s[0]);for(var d=0;d0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return n(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new w(this.ctx);null===t&&(t=i.group({class:"apexcharts-grid"}));var a=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),s=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(s),t.add(a),t}},{key:"drawGrid",value:function(){var t=null;return this.w.globals.axisCharts&&(t=this.renderGrid(),this.drawGridArea(t.el)),t}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new w(this.ctx),a=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var s=0;t.config.stroke.width.forEach((function(t){s=Math.max(s,t)})),a=s}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elForecastMask.setAttribute("id","forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(e.cuid));var r=t.config.chart.type,o=0,n=0;("bar"===r||"rangeBar"===r||"candlestick"===r||"boxPlot"===r||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(o=t.config.grid.padding.left,n=t.config.grid.padding.right,e.barPadForNumericAxis>o&&(o=e.barPadForNumericAxis,n=e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-a/2-o-2,-a/2-2,e.gridWidth+a+n+o+4,e.gridHeight+a+4,0,"#fff");var l=t.globals.markers.largestSize+1;e.dom.elGridRectMarker=i.drawRect(2*-l,2*-l,e.gridWidth+4*l,e.gridHeight+4*l,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var h=e.dom.baseEl.querySelector("defs");h.appendChild(e.dom.elGridRectMask),h.appendChild(e.dom.elForecastMask),h.appendChild(e.dom.elNonForecastMask),h.appendChild(e.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,a=t.y1,s=t.x2,r=t.y2,o=t.xCount,n=t.parent,l=this.w;if(!(0===e&&l.globals.skipFirstTimelinelabel||e===o-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:i,y1:a,x2:s,y2:r,xCount:o,parent:n});var h=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var c=l.globals.groups;if(c){for(var d=0,g=0;d0&&"datetime"!==t.config.xaxis.type&&(s=e.yAxisScale[a].result.length-1)),this._drawXYLines({xCount:s,tickAmount:l})):(s=l,l=e.xTickAmount,this._drawInvertedXYLines({xCount:s,tickAmount:l}));return this.drawGridBands(s,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:e.gridWidth/s}}},{key:"drawGridBands",value:function(t,e){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var a=0,s=i.globals.gridHeight/e,r=i.globals.gridWidth,o=0,n=0;o=i.config.grid.row.colors.length&&(n=0),this._drawGridBandRect({c:n,x1:0,y1:a,x2:r,y2:s,type:"row"}),a+=i.globals.gridHeight/e;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var l=i.globals.isBarHorizontal||"on"!==i.config.xaxis.tickPlacement||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?t:t-1,h=i.globals.padHorizontal,c=i.globals.padHorizontal+i.globals.gridWidth/l,d=i.globals.gridHeight,g=0,u=0;g=i.config.grid.column.colors.length&&(u=0),this._drawGridBandRect({c:u,x1:h,y1:0,x2:c,y2:d,type:"column"}),h+=i.globals.gridWidth/l}}]),t}(),q=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"niceScale",value:function(t,e){var i,a,s,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=1e-11,l=this.w,h=l.globals;h.isBarHorizontal?(i=l.config.xaxis,a=Math.max((h.svgWidth-100)/25,2)):(i=l.config.yaxis[o],a=Math.max((h.svgHeight-100)/15,2)),s=void 0!==i.min&&null!==i.min,r=void 0!==i.max&&null!==i.min;var c=void 0!==i.stepSize&&null!==i.stepSize,d=void 0!==i.tickAmount&&null!==i.tickAmount,g=d?i.tickAmount:i.forceNiceScale?h.niceScaleDefaultTicks[Math.min(Math.round(a/2),h.niceScaleDefaultTicks.length-1)]:10;if(h.isMultipleYAxis&&!d&&h.multiAxisTickAmount>0&&(g=h.multiAxisTickAmount,d=!0),g="dataPoints"===g?h.dataPoints-1:Math.abs(Math.round(g)),(t===Number.MIN_VALUE&&0===e||!v.isNumber(t)&&!v.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)&&(t=v.isNumber(i.min)?i.min:0,e=v.isNumber(i.max)?i.max:t+g,h.allSeriesCollapsed=!1),t>e){var u=e;e=t,t=u}else t===e&&(t=0===t?0:t-1,e=0===e?2:e+1);var p=[];g<1&&(g=1);var f=g,x=Math.abs(e-t);i.forceNiceScale&&(!s&&t>0&&t/x<.15&&(t=0,s=!0),!r&&e<0&&-e/x<.15&&(e=0,r=!0),x=Math.abs(e-t));var b=x/f,m=b,y=Math.floor(Math.log10(m)),w=Math.pow(10,y),k=Math.ceil(m/w);if(b=m=(k=h.niceScaleAllowedMagMsd[0===h.yValueDecimal?0:1][k])*w,h.isBarHorizontal&&i.stepSize&&"datetime"!==i.type?(b=i.stepSize,c=!0):c&&(b=i.stepSize),c&&i.forceNiceScale){var A=Math.floor(Math.log10(b));b*=Math.pow(10,y-A)}if(s&&r){var S=x/f;if(d)if(c)if(0!=v.mod(x,b)){var C=v.getGCD(b,S);b=S/C<10?C:S}else 0==v.mod(b,S)?b=S:(S=b,d=!1);else b=S;else if(c)0==v.mod(x,b)?S=b:b=S;else if(0==v.mod(x,b))S=b;else{S=x/(f=Math.ceil(x/b));var L=v.getGCD(x,b);x/La&&(t=e-b*g,t+=b*Math.floor((P-t)/b))}else if(s)if(d)e=t+b*f;else{var M=e;e=b*Math.ceil(e/b),Math.abs(e-t)/v.getGCD(x,b)>a&&(e=t+b*g,e+=b*Math.ceil((M-e)/b))}}else if(d){var I=b/(e-t>e?1:2),T=I*Math.floor(t/I);Math.abs(T-t)<=I/2?e=(t=T)+b*f:t=(e=I*Math.ceil(e/I))-b*f}else t=b*Math.floor(t/b),e=b*Math.ceil(e/b);x=Math.abs(e-t),b=v.getGCD(x,b),f=Math.round(x/b)}if(d||s||r||(f=Math.ceil((x-n)/(b+n)))>16&&v.getPrimeFactors(f).length<2&&f++,!d&&i.forceNiceScale&&0===h.yValueDecimal&&f>x&&(f=x,b=Math.round(x/f)),f>a&&(!d&&!c||i.forceNiceScale)){var z=v.getPrimeFactors(f),X=z.length-1,E=f;t:for(var Y=0;YW);return{result:p,niceMin:p[0],niceMax:p[p.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,r=Math.abs(e-t);"dataPoints"===(i=this._adjustTicksForSmallRange(i,a,r))&&(i=this.w.globals.dataPoints-1),s||(s=r/i),i===Number.MAX_VALUE&&(i=5,s=1);for(var o=[],n=t;i>=0;)o.push(n),n+=s,i-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScaleNice",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var a=[],s=Math.ceil(Math.log(e)/Math.log(i)+1),r=Math.floor(Math.log(t)/Math.log(i));r5?(a.allSeriesCollapsed=!1,a.yAxisScale[t]=r.forceNiceScale?this.logarithmicScaleNice(e,i,r.logBase):this.logarithmicScale(e,i,r.logBase)):i!==-Number.MAX_VALUE&&v.isNumber(i)&&e!==Number.MAX_VALUE&&v.isNumber(e)?(a.allSeriesCollapsed=!1,a.yAxisScale[t]=this.niceScale(e,i,t)):a.yAxisScale[t]=this.niceScale(Number.MIN_VALUE,0,t)}},{key:"setXScale",value:function(t,e){var i=this.w,a=i.globals,s=Math.abs(e-t);return e!==-Number.MAX_VALUE&&v.isNumber(e)?a.xAxisScale=this.linearScale(t,e,i.config.xaxis.tickAmount?i.config.xaxis.tickAmount:s<10&&s>1?s+1:10,0,i.config.xaxis.stepSize):a.xAxisScale=this.linearScale(0,10,10),a.xAxisScale}},{key:"setSeriesYAxisMappings",value:function(){var t=this.w.globals,e=this.w.config;t.minYArr,t.maxYArr;var i=[],a=[],s=[],r=t.series.length>e.yaxis.length||e.yaxis.some((function(t){return Array.isArray(t.seriesName)}));e.series.forEach((function(t,e){s.push(e),a.push(null)})),e.yaxis.forEach((function(t,e){i[e]=[]}));var o=[];e.yaxis.forEach((function(t,a){var n=!1;if(t.seriesName){var l=[];Array.isArray(t.seriesName)?l=t.seriesName:l.push(t.seriesName),l.forEach((function(t){e.series.forEach((function(e,o){if(e.name===t){var l=o;a===o||r?(!r||s.indexOf(o)>-1)&&i[a].push([a,o]):(i[o].push([o,a]),l=a),n=!0,-1!==(l=s.indexOf(l))&&s.splice(l,1)}}))}))}n||o.push(a)})),i=i.map((function(t,e){var i=[];return t.forEach((function(t){a[t[1]]=t[0],i.push(t[1])})),i}));for(var n=e.yaxis.length-1,l=0;l0?function(){var l,h,c=Number.MAX_VALUE,d=-Number.MAX_VALUE,g=c,u=d;if(e.chart.stacked)!function(){var t=i.seriesX[a[0]],s=[],r=[],p=[];n.forEach((function(){s.push(t.map((function(){return Number.MIN_VALUE}))),r.push(t.map((function(){return Number.MIN_VALUE}))),p.push(t.map((function(){return Number.MIN_VALUE})))}));for(var f=function(t){!l&&e.series[a[t]].type&&(l=e.series[a[t]].type);var c=a[t];h=e.series[c].group?e.series[c].group:"axis-".concat(o),!(i.collapsedSeriesIndices.indexOf(c)<0&&i.ancillaryCollapsedSeriesIndices.indexOf(c)<0)||(i.allSeriesCollapsed=!1,n.forEach((function(t,a){if(e.series[c].group===t)for(var o=0;o=0?r[a][o]+=n:p[a][o]+=n,s[a][o]+=n,g=Math.min(g,n),u=Math.max(u,n)}}))),"bar"!==l&&"column"!==l||i.barGroups.push(h)},x=0;x1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w.config,r=this.w.globals,o=-Number.MAX_VALUE,n=Number.MIN_VALUE;null===a&&(a=t+1);var l=0,h=0,c=void 0;if(r.seriesX.length>=a){var d,g;l=0,h=(c=f(new Set((d=[]).concat.apply(d,f(r.seriesX.slice(t,a)))))).length-1;var u=null===(g=r.brushSource)||void 0===g?void 0:g.w.config.chart.brush;if(s.chart.zoom.enabled&&s.chart.zoom.autoScaleYaxis||null!=u&&u.enabled&&null!=u&&u.autoScaleYaxis){if(s.xaxis.min)for(l=0;ll&&c[h]>s.xaxis.max;h--);}}var p=r.series,x=p,b=p;"candlestick"===s.chart.type?(x=r.seriesCandleL,b=r.seriesCandleH):"boxPlot"===s.chart.type?(x=r.seriesCandleO,b=r.seriesCandleC):r.isRangeData&&(x=r.seriesRangeStart,b=r.seriesRangeEnd);for(var m=t;mx[m][w]&&x[m][w]<0&&(n=x[m][w])}else r.hasNullValues=!0}"bar"!==y&&"column"!==y||(n<0&&o<0&&(o=0,i=Math.max(i,0)),n===Number.MIN_VALUE&&(n=0,e=Math.min(e,0)))}return"rangeBar"===s.chart.type&&r.seriesRangeStart.length&&r.isBarHorizontal&&(n=e),"bar"===s.chart.type&&(n<0&&o<0&&(o=0),n===Number.MIN_VALUE&&(n=0)),{minY:n,maxY:o,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i,a=Number.MAX_VALUE;if(t.isMultipleYAxis){a=Number.MAX_VALUE;for(var s=0;st.dataPoints&&0!==t.dataPoints&&(a=t.dataPoints-1)):"dataPoints"===e.xaxis.tickAmount?(t.series.length>1&&(a=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric&&(a=t.maxX-t.minX-1)):a=e.xaxis.tickAmount,t.xTickAmount=a,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var s=[],r=t.minX-1;r0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,a-1,0,e.xaxis.stepSize),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e0){var s=e-a[i-1];s>0&&(t.minXDiff=Math.min(s,t.minXDiff))}})),1!==t.dataPoints&&t.minXDiff!==Number.MAX_VALUE||(t.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var t=this,e=this.w.globals;if(e.series.length){var i=e.seriesGroups;i.length||(i=[this.w.globals.seriesNames.map((function(t){return t}))]);var a={},s={};i.forEach((function(i){a[i]=[],s[i]=[],t.w.config.series.map((function(t,a){return i.indexOf(e.seriesNames[a])>-1?a:null})).filter((function(t){return null!==t})).forEach((function(r){for(var o=0;o0?a[i][o]+=parseFloat(e.series[r][o])+1e-4:s[i][o]+=parseFloat(e.series[r][o]))}}))})),Object.entries(a).forEach((function(t){var i=p(t,1)[0];a[i].forEach((function(t,r){e.maxY=Math.max(e.maxY,a[i][r]),e.minY=Math.min(e.minY,s[i][r])}))}))}}}]),t}(),$=function(){function t(e,i){r(this,t),this.ctx=e,this.elgrid=i,this.w=e.w;var a=this.w;this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.axisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===a.config.chart.type&&a.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===a.config.xaxis.position&&(this.xAxisoffX=a.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new P(e)}return n(t,[{key:"drawYaxis",value:function(t){var e=this,i=this.w,a=new w(this.ctx),s=i.config.yaxis[t].labels.style,r=s.fontSize,o=s.fontFamily,n=s.fontWeight,l=a.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+i.globals.translateYAxisX[t]+", 0)"});if(this.axesUtils.isYAxisHidden(t))return l;var h=a.group({class:"apexcharts-yaxis-texts-g"});l.add(h);var c=i.globals.yAxisScale[t].result.length-1,d=i.globals.gridHeight/c,g=i.globals.translateY,u=i.globals.yLabelFormatters[t],p=i.globals.yAxisScale[t].result.slice();p=this.axesUtils.checkForReversedLabels(t,p);var f="";if(i.config.yaxis[t].labels.show)for(var x=function(l){var x=p[l];x=u(x,l,i);var b=i.config.yaxis[t].labels.padding;i.config.yaxis[t].opposite&&0!==i.config.yaxis.length&&(b*=-1);var v="end";i.config.yaxis[t].opposite&&(v="start"),"left"===i.config.yaxis[t].labels.align?v="start":"center"===i.config.yaxis[t].labels.align?v="middle":"right"===i.config.yaxis[t].labels.align&&(v="end");var m=e.axesUtils.getYAxisForeColor(s.colors,t),y=i.config.yaxis[t].labels.offsetY;"heatmap"===i.config.chart.type&&(y-=(i.globals.gridHeight/i.globals.series.length-1)/2);var w=a.drawText({x:b,y:g+c/10+y+1,text:x,textAnchor:v,fontSize:r,fontFamily:o,fontWeight:n,maxWidth:i.config.yaxis[t].labels.maxWidth,foreColor:Array.isArray(m)?m[l]:m,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+s.cssClass});l===c&&(f=w),h.add(w);var k=document.createElementNS(i.globals.SVGNS,"title");if(k.textContent=Array.isArray(x)?x.join(" "):x,w.node.appendChild(k),0!==i.config.yaxis[t].labels.rotate){var A=a.rotateAroundCenter(f.node),S=a.rotateAroundCenter(w.node);w.node.setAttribute("transform","rotate(".concat(i.config.yaxis[t].labels.rotate," ").concat(A.x," ").concat(S.y,")"))}g+=d},b=c;b>=0;b--)x(b);if(void 0!==i.config.yaxis[t].title.text){var v=a.group({class:"apexcharts-yaxis-title"}),m=0;i.config.yaxis[t].opposite&&(m=i.globals.translateYAxisX[t]);var y=a.drawText({x:m,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[t].title.offsetY,text:i.config.yaxis[t].title.text,textAnchor:"end",foreColor:i.config.yaxis[t].title.style.color,fontSize:i.config.yaxis[t].title.style.fontSize,fontWeight:i.config.yaxis[t].title.style.fontWeight,fontFamily:i.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[t].title.style.cssClass});v.add(y),l.add(v)}var k=i.config.yaxis[t].axisBorder,A=31+k.offsetX;if(i.config.yaxis[t].opposite&&(A=-31-k.offsetX),k.show){var S=a.drawLine(A,i.globals.translateY+k.offsetY-2,A,i.globals.gridHeight+i.globals.translateY+k.offsetY+2,k.color,0,k.width);l.add(S)}return i.config.yaxis[t].axisTicks.show&&this.axesUtils.drawYAxisTicks(A,c,k,i.config.yaxis[t].axisTicks,t,d,l),l}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new w(this.ctx),a=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),s=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});a.add(s);var r=e.globals.yAxisScale[t].result.length-1,o=e.globals.gridWidth/r+.1,n=o+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,h=e.globals.yAxisScale[t].result.slice(),c=e.globals.timescaleLabels;c.length>0&&(this.xaxisLabels=c.slice(),r=(h=c.slice()).length),h=this.axesUtils.checkForReversedLabels(t,h);var d=c.length;if(e.config.xaxis.labels.show)for(var g=d?0:r;d?g=0;d?g++:g--){var u=h[g];u=l(u,g,e);var p=e.globals.gridWidth+e.globals.padHorizontal-(n-o+e.config.xaxis.labels.offsetX);if(c.length){var f=this.axesUtils.getLabel(h,c,p,g,this.drawnLabels,this.xaxisFontSize);p=f.x,u=f.text,this.drawnLabels.push(f.text),0===g&&e.globals.skipFirstTimelinelabel&&(u=""),g===h.length-1&&e.globals.skipLastTimelinelabel&&(u="")}var x=i.drawText({x:p,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:u,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});s.add(x),x.tspan(u);var b=document.createElementNS(e.globals.SVGNS,"title");b.textContent=u,x.node.appendChild(b),n+=o}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new w(this.ctx),a=e.config.xaxis.axisBorder;if(a.show){var s=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(s-=15);var r=i.drawLine(e.globals.padHorizontal+s+a.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(r):t.add(r)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new w(this.ctx);if(void 0!==e.config.xaxis.title.text){var a=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),s=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});a.add(s),t.add(a)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,a=new w(this.ctx),s={width:0,height:0},r={width:0,height:0},o=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));null!==o&&(s=o.getBoundingClientRect());var n=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(null!==n&&(r=n.getBoundingClientRect()),null!==n){var l=this.xPaddingForYAxisTitle(t,s,r,e);n.setAttribute("x",l.xPos-(e?10:0))}if(null!==n){var h=a.rotateAroundCenter(n);n.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(h.x," ").concat(h.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,a){var s=this.w,r=0,o=0,n=10;return void 0===s.config.yaxis[t].title.text||t<0?{xPos:o,padd:0}:(a?(o=e.width+s.config.yaxis[t].title.offsetX+i.width/2+n/2,0===(r+=1)&&(o-=n/2)):(o=-1*e.width+s.config.yaxis[t].title.offsetX+n/2+i.width/2,s.globals.isBarHorizontal&&(n=25,o=-1*e.width-s.config.yaxis[t].title.offsetX-n)),{xPos:o,padd:n})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,a=0,s=0,r=18,o=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map((function(n,l){var h=i.globals.ignoreYAxisIndexes.indexOf(l)>-1||!n.show||n.floating||0===t[l].width,c=t[l].width+e[l].width;n.opposite?i.globals.isBarHorizontal?(s=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=s-n.labels.offsetX):(s=i.globals.gridWidth+i.globals.translateX+o,h||(o=o+c+20),i.globals.translateYAxisX[l]=s-n.labels.offsetX+20):(a=i.globals.translateX-r,h||(r=r+c+20),i.globals.translateYAxisX[l]=a+n.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var t=this.w,e=t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(e=v.listToArray(e)).forEach((function(e,i){var a=t.config.yaxis[i];if(a&&!a.floating&&void 0!==a.labels.align){var s=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"));r=v.listToArray(r);var o=s.getBoundingClientRect();"left"===a.labels.align?(r.forEach((function(t,e){t.setAttribute("text-anchor","start")})),a.opposite||s.setAttribute("transform","translate(-".concat(o.width,", 0)"))):"center"===a.labels.align?(r.forEach((function(t,e){t.setAttribute("text-anchor","middle")})),s.setAttribute("transform","translate(".concat(o.width/2*(a.opposite?1:-1),", 0)"))):"right"===a.labels.align&&(r.forEach((function(t,e){t.setAttribute("text-anchor","end")})),a.opposite&&s.setAttribute("transform","translate(".concat(o.width,", 0)")))}}))}}]),t}(),J=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.documentEvent=v.bind(this.documentEvent,this)}return n(t,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var a=i.globals.events[t].indexOf(e);-1!==a&&i.globals.events[t].splice(a,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var a=i.globals.events[t],s=a.length,r=0;r0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter((function(e){return e.name===t}))[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var a=v.extend(T,i);this.w.globals.locale=a.options}}]),t}(),Q=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"drawAxis",value:function(t,e){var i,a,s=this,r=this.w.globals,o=this.w.config,n=new _(this.ctx,e),l=new $(this.ctx,e);r.axisCharts&&"radar"!==t&&(r.isBarHorizontal?(a=l.drawYaxisInversed(0),i=n.drawXaxisInversed(0),r.dom.elGraphical.add(i),r.dom.elGraphical.add(a)):(i=n.drawXaxis(),r.dom.elGraphical.add(i),o.yaxis.map((function(t,e){if(-1===r.ignoreYAxisIndexes.indexOf(e)&&(a=l.drawYaxis(e),r.dom.Paper.add(a),"back"===s.w.config.grid.position)){var i=r.dom.Paper.children()[1];i.remove(),r.dom.Paper.add(i)}}))))}}]),t}(),tt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new w(this.ctx),i=new y(this.ctx),a=t.config.xaxis.crosshairs.fill.gradient,s=t.config.xaxis.crosshairs.dropShadow,r=t.config.xaxis.crosshairs.fill.type,o=a.colorFrom,n=a.colorTo,l=a.opacityFrom,h=a.opacityTo,c=a.stops,d=s.enabled,g=s.left,u=s.top,p=s.blur,f=s.color,x=s.opacity,b=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===r&&(b=e.drawGradient("vertical",o,n,l,h,null,c,null));var m=e.drawRect();1===t.config.xaxis.crosshairs.width&&(m=e.drawLine());var k=t.globals.gridHeight;(!v.isNumber(k)||k<0)&&(k=0);var A=t.config.xaxis.crosshairs.width;(!v.isNumber(A)||A<0)&&(A=0),m.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:k,width:A,height:k,fill:b,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),d&&(m=i.dropShadow(m,{left:g,top:u,blur:p,color:f,opacity:x})),t.globals.dom.elGraphical.add(m)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new w(this.ctx),i=t.config.yaxis[0].crosshairs,a=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var s=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(s)}var r=e.drawLine(-a,0,t.globals.gridWidth+a,0,i.stroke.color,0,0);r.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(r)}}]),t}(),et=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,a=i.config;if(0!==a.responsive.length){var s=a.responsive.slice();s.sort((function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0})).reverse();var r=new F({}),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s[0].breakpoint,o=window.innerWidth>0?window.innerWidth:screen.width;if(o>a){var n=k.extendArrayProps(r,i.globals.initialConfig,i);t=v.extend(n,t),t=v.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l0&&"function"==typeof i.config.colors[0]&&(i.globals.colors=i.config.series.map((function(t,a){var s=i.config.colors[a];return s||(s=i.config.colors[0]),"function"==typeof s?(e.isColorFn=!0,s({value:i.globals.axisCharts?i.globals.series[a][0]?i.globals.series[a][0]:0:i.globals.series[a],seriesIndex:a,dataPointIndex:a,w:i})):s})))),i.globals.seriesColors.map((function(t,e){t&&(i.globals.colors[e]=t)})),i.config.theme.monochrome.enabled){var s=[],r=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(r=i.globals.series[0].length*i.globals.series.length);for(var o=i.config.theme.monochrome.color,n=1/(r/i.config.theme.monochrome.shadeIntensity),l=i.config.theme.monochrome.shadeTo,h=0,c=0;c2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=e||a.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===a.config.chart.type&&a.config.plotOptions.heatmap.colorScale.inverse),i&&a.globals.series.length&&(s=a.globals.series[a.globals.maxValsInArrayIndex].length*a.globals.series.length),t.lengtht.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var a=e.map((function(t,e){return Array.isArray(t)?t.length:1})),s=Math.max.apply(Math,f(a));i=e[a.indexOf(s)]}return i}}]),t}(),rt=function(){function t(e){r(this,t),this.w=e.w,this.dCtx=e}return n(t,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var a=this.getxAxisTimeScaleLabelsCoords();t={width:a.width,height:a.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;var s=e.globals.xLabelFormatter,r=v.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,i);e.globals.isBarHorizontal&&(o=r=e.globals.yAxisScale[0].result.reduce((function(t,e){return t.length>e.length?t:e}),0));var n=new L(this.dCtx.ctx),l=r;r=n.xLabelFormat(s,r,l,{i:void 0,dateFormatter:new C(this.dCtx.ctx).formatDate,w:e}),o=n.xLabelFormat(s,o,l,{i:void 0,dateFormatter:new C(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===r||""===String(r).trim())&&(o=r="1");var h=new w(this.dCtx.ctx),c=h.getTextRects(r,e.config.xaxis.labels.style.fontSize),d=c;if(r!==o&&(d=h.getTextRects(o,e.config.xaxis.labels.style.fontSize)),(t={width:c.width>=d.width?c.width:d.width,height:c.height>=d.height?c.height:d.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var g=function(t){return h.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};c=g(r),r!==o&&(d=g(o)),t.height=(c.height>d.height?c.height:d.height)/1.5,t.width=c.width>d.width?c.width:d.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var t,e=this.w;if(!e.globals.hasXaxisGroups)return{width:0,height:0};var i,a=(null===(t=e.config.xaxis.group.style)||void 0===t?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,s=e.globals.groups.map((function(t){return t.title})),r=v.getLargestStringFromArr(s),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(r,s),n=new w(this.dCtx.ctx),l=n.getTextRects(r,a),h=l;return r!==o&&(h=n.getTextRects(o,a)),i={width:l.width>=h.width?l.width:h.width,height:l.height>=h.height?l.height:h.height},e.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var a=new w(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=a.width,i=a.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map((function(t){return t.value})),a=i.reduce((function(t,e){return void 0===t?0:t.length>e.length?t:e}),0);return 1.05*(t=new w(this.dCtx.ctx).getTextRects(a,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,a=i.globals,s=i.config,r=s.xaxis.type,o=t.width;a.skipLastTimelinelabel=!1,a.skipFirstTimelinelabel=!1;var n=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(t,n){s.yaxis.length>1&&function(t){return-1!==a.collapsedSeriesIndices.indexOf(t)}(n)||function(t){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var n=e.dCtx.timescaleLabels[0],l=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+o/1.75-e.dCtx.yAxisWidthRight,h=n.position-o/1.75+e.dCtx.yAxisWidthLeft,c="right"===i.config.legend.position&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;l>a.svgWidth-a.translateX-c&&(a.skipLastTimelinelabel=!0),h<-(t.show&&!t.floating||"bar"!==s.chart.type&&"candlestick"!==s.chart.type&&"rangeBar"!==s.chart.type&&"boxPlot"!==s.chart.type?10:o/1.75)&&(a.skipFirstTimelinelabel=!0)}else"datetime"===r?e.dCtx.gridPad.right(null===(a=String(c(e,n)))||void 0===a?void 0:a.length)?t:e}),d),u=g=c(g,n);if(void 0!==g&&0!==g.length||(g=l.niceMax),e.globals.isBarHorizontal){a=0;var p=e.globals.labels.slice();g=v.getLargestStringFromArr(p),g=c(g,{seriesIndex:o,dataPointIndex:-1,w:e}),u=t.dCtx.dimHelpers.getLargestStringFromMultiArr(g,p)}var f=new w(t.dCtx.ctx),x="rotate(".concat(r.labels.rotate," 0 0)"),b=f.getTextRects(g,r.labels.style.fontSize,r.labels.style.fontFamily,x,!1),m=b;g!==u&&(m=f.getTextRects(u,r.labels.style.fontSize,r.labels.style.fontFamily,x,!1)),i.push({width:(h>m.width||h>b.width?h:m.width>b.width?m.width:b.width)+a,height:m.height>b.height?m.height:b.height})}else i.push({width:0,height:0})})),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map((function(e,a){if(e.show&&void 0!==e.title.text){var s=new w(t.dCtx.ctx),r="rotate(".concat(e.title.rotate," 0 0)"),o=s.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,r,!1);i.push({width:o.width,height:o.height})}else i.push({width:0,height:0})})),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,a=0,s=t.globals.yAxisScale.length>1?10:0,r=new P(this.dCtx.ctx),o=function(o,n){var l=t.config.yaxis[n].floating,h=0;o.width>0&&!l?(h=o.width+s,function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1}(n)&&(h=h-o.width-s)):h=l||r.isYAxisHidden(n)?0:5,t.config.yaxis[n].opposite?a+=h:i+=h,e+=h};return t.globals.yLabelsCoords.map((function(t,e){o(t,e)})),t.globals.yTitleCoords.map((function(t,e){o(t,e)})),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=a,e}}]),t}(),nt=function(){function t(e){r(this,t),this.w=e.w,this.dCtx=e}return n(t,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w,i=e.config,a=e.globals;if(a.noData||a.collapsedSeries.length+a.ancillaryCollapsedSeries.length===i.series.length)return 0;var s=function(t){return"bar"===t||"rangeBar"===t||"candlestick"===t||"boxPlot"===t},r=i.chart.type,o=0,n=s(r)?i.series.length:1;if(a.comboBarCount>0&&(n=a.comboBarCount),a.collapsedSeries.forEach((function(t){s(t.type)&&(n-=1)})),i.chart.stacked&&(n=1),(s(r)||a.comboBarCount>0)&&a.isXNumeric&&!a.isBarHorizontal&&n>0){var l,h,c=Math.abs(a.initialMaxX-a.initialMinX);c<=3&&(c=a.dataPoints),l=c/t,a.minXDiff&&a.minXDiff/l>0&&(h=a.minXDiff/l),h>t/2&&(h/=2),(o=h*parseInt(i.plotOptions.bar.columnWidth,10)/100)<1&&(o=1),a.barPadForNumericAxis=o}return o}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,a=this.dCtx.isSparkline||!e.globals.axisCharts?0:10;["title","subtitle"].forEach((function(i){void 0!==e.config[i].text?a+=e.config[i].margin:a+=t.dCtx.isSparkline||!e.globals.axisCharts?0:5})),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||e.globals.axisCharts||(a+=10);var s=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),r=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-s.height-r.height-a,i.translateY=i.translateY+s.height+r.height+a}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,a=new P(this.dCtx.ctx);i.config.yaxis.map((function(s,r){-1!==i.globals.ignoreYAxisIndexes.indexOf(r)||s.floating||a.isYAxisHidden(r)||(s.opposite&&(i.globals.translateX=i.globals.translateX-(e[r].width+t[r].width)-parseInt(i.config.yaxis[r].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))}))}}]),t}(),lt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new st(this),this.dimYAxis=new ot(this),this.dimXAxis=new rt(this),this.dimGrid=new nt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return n(t,[{key:"plotCoords",value:function(){var t=this,e=this.w,i=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach((function(e){var i=p(e,2),a=i[0],s=i[1];t.gridPad[a]=Math.max(s,t.w.globals.markers.largestSize/1.5)})),this.gridPad.top=Math.max(e.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(e.config.stroke.width/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a+4:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,a=this.dimYAxis.getyAxisLabelsCoords(),s=this.dimYAxis.getyAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map((function(t,i){e.globals.yLabelsCoords.push({width:a[i].width,index:i}),e.globals.yTitleCoords.push({width:s[i].width,index:i})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var r=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),n=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(r,n,o),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var l=this.yAxisWidth,h=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-n.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-r.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var c=10;("radar"===e.config.chart.type||this.isSparkline)&&(l=0,h=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(l=0,h=0,c=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(r);var d=function(){i.translateX=l,i.gridHeight=i.svgHeight-t.lgRect.height-h-(t.isSparkline||"treemap"===e.config.chart.type?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-l};switch("top"===e.config.xaxis.position&&(c=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=c,d();break;case"top":i.translateY=this.lgRect.height+c,d();break;case"left":i.translateY=c,i.translateX=this.lgRect.width+l,i.gridHeight=i.svgHeight-h-12,i.gridWidth=i.svgWidth-this.lgRect.width-l;break;case"right":i.translateY=c,i.translateX=l,i.gridHeight=i.svgHeight-h-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(s,a),new $(this.ctx).setYAxisXPosition(a,s)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,a=0;t.config.legend.show&&!t.config.legend.floating&&(a=20);var s="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",r=i.plotOptions[s].offsetY,o=i.plotOptions[s].offsetX;if(!i.legend.show||i.legend.floating)return e.gridHeight=e.svgHeight-i.grid.padding.left+i.grid.padding.right,e.gridWidth=e.gridHeight,e.translateY=r,void(e.translateX=o+(e.svgWidth-e.gridWidth)/2);switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=r-10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height-e.goldenPadding,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+r+10,e.translateX=o+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-a,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+this.lgRect.width+a;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-a-5,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=r,e.translateX=o+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e,i){var a=this.w,s=a.globals.hasXaxisGroups?2:1,r=i.height+t.height+e.height,o=a.globals.isMultiLineX?1.2:a.globals.LINE_HEIGHT_RATIO,n=a.globals.rotateXLabels?22:10,l=a.globals.rotateXLabels&&"bottom"===a.config.legend.position?10:0;this.xAxisHeight=r*o+s*n+l,this.xAxisWidth=t.width,this.xAxisHeight-e.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeightc&&(this.yAxisWidth=c)}}]),t}(),ht=function(){function t(e){r(this,t),this.w=e.w,this.lgCtx=e}return n(t,[{key:"getLegendStyles",value:function(){var t,e,i,a=document.createElement("style");a.setAttribute("type","text/css");var s=(null===(t=this.lgCtx.ctx)||void 0===t||null===(e=t.opts)||void 0===e||null===(i=e.chart)||void 0===i?void 0:i.nonce)||this.w.config.chart.nonce;s&&a.setAttribute("nonce",s);var r=document.createTextNode("\n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n justify-content: flex-start;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n }\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n }\n .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{\n display: flex;\n align-items: center;\n }\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n .apexcharts-legend-marker {\n position: relative;\n display: inline-block;\n cursor: pointer;\n margin-right: 3px;\n border-style: solid;\n }\n\n .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{\n display: inline-block;\n }\n .apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n }\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n .apexcharts-inactive-legend {\n opacity: 0.45;\n }");return a.appendChild(r),a}},{key:"getLegendBBox",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(t,e){var i=this,a=this.w;if(a.globals.axisCharts||"radialBar"===a.config.chart.type){a.globals.resized=!0;var s=null,r=null;a.globals.risingSeries=[],a.globals.axisCharts?(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),r=parseInt(s.getAttribute("data:realIndex"),10)):(s=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),r=parseInt(s.getAttribute("rel"),10)-1),e?[{cs:a.globals.collapsedSeries,csi:a.globals.collapsedSeriesIndices},{cs:a.globals.ancillaryCollapsedSeries,csi:a.globals.ancillaryCollapsedSeriesIndices}].forEach((function(t){i.riseCollapsedSeries(t.cs,t.csi,r)})):this.hideSeries({seriesEl:s,realIndex:r})}else{var o=a.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(t+1,"'] path")),n=a.config.chart.type;if("pie"===n||"polarArea"===n||"donut"===n){var l=a.config.plotOptions.pie.donut.labels;new w(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,l)}o.fire("click")}}},{key:"hideSeries",value:function(t){var e=t.seriesEl,i=t.realIndex,a=this.w,s=a.globals,r=v.clone(a.config.series);if(s.axisCharts){var o=a.config.yaxis[s.seriesYAxisReverseMap[i]];if(o&&o.show&&o.showAlways)s.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(s.ancillaryCollapsedSeries.push({index:i,data:r[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),s.ancillaryCollapsedSeriesIndices.push(i));else if(s.collapsedSeriesIndices.indexOf(i)<0){s.collapsedSeries.push({index:i,data:r[i].data.slice(),type:e.parentNode.className.baseVal.split("-")[1]}),s.collapsedSeriesIndices.push(i);var n=s.risingSeries.indexOf(i);s.risingSeries.splice(n,1)}}else s.collapsedSeries.push({index:i,data:r[i]}),s.collapsedSeriesIndices.push(i);for(var l=e.childNodes,h=0;h0){for(var r=0;r1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),v.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var t=this,e=this.w,i=e.config.legend.fontFamily,a=e.globals.seriesNames,s=e.globals.colors.slice();if("heatmap"===e.config.chart.type){var r=e.config.plotOptions.heatmap.colorScale.ranges;a=r.map((function(t){return t.name?t.name:t.from+" - "+t.to})),s=r.map((function(t){return t.color}))}else this.isBarsDistributed&&(a=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(a=e.config.legend.customLegendItems);for(var o=e.globals.legendFormatter,n=e.config.legend.inverseOrder,l=n?a.length-1:0;n?l>=0:l<=a.length-1;n?l--:l++){var h,c=o(a[l],{seriesIndex:l,w:e}),d=!1,g=!1;if(e.globals.collapsedSeries.length>0)for(var u=0;u0)for(var p=0;p0?l-10:0)+(h>0?h-10:0)}a.style.position="absolute",r=r+t+i.config.legend.offsetX,o=o+e+i.config.legend.offsetY,a.style.left=r+"px",a.style.top=o+"px","bottom"===i.config.legend.position?(a.style.top="auto",a.style.bottom=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(a.style.left="auto",a.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach((function(t){a.style[t]&&(a.style[t]=parseInt(i.config.legend[t],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.elLegendWrap.style.right=0;var e=this.legendHelpers.getLegendBBox(),i=new lt(this.ctx),a=i.dimHelpers.getTitleSubtitleCoords("title"),s=i.dimHelpers.getTitleSubtitleCoords("subtitle"),r=0;"bottom"===t.config.legend.position?r=-e.clwh/1.8:"top"===t.config.legend.position&&(r=a.height+s.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,r)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendBBox(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if("heatmap"===e.config.chart.type||this.isBarsDistributed){if(i){var a=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,a,this.w]),new G(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new G(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,a="true"===t.target.getAttribute("data:collapsed"),s=this.w.config.chart.events.legendClick;"function"==typeof s&&s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var r=this.w.config.legend.markers.onClick;"function"==typeof r&&t.target.classList.contains("apexcharts-legend-marker")&&(r(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==e.config.chart.type&&"heatmap"!==e.config.chart.type&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,a)}}}]),t}(),dt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return n(t,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},a=i();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=e.config.chart.toolbar.offsetY+"px",a.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(a),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var s=0;s\n \n \n\n'),o("zoomOut",this.elZoomOut,'\n \n \n\n');var n=function(i){t.t[i]&&e.config.chart[i].enabled&&r.push({el:"zoom"===i?t.elZoom:t.elSelection,icon:"string"==typeof t.t[i]?t.t[i]:"zoom"===i?'\n \n \n \n':'\n \n \n',title:t.localeValues["zoom"===i?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};n("zoom"),n("selection"),this.t.pan&&e.config.chart.zoom.enabled&&r.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'\n \n \n \n \n \n \n \n',title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,'\n \n \n'),this.t.download&&r.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l0&&e.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(void 0!==t.globals.selection&&null!==t.globals.selection)this.drawSelectionRect(t.globals.selection);else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio,a=t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i;t.globals.isRangeBar&&(i=(t.config.chart.selection.xaxis.min-t.globals.yAxisScale[0].niceMin)/e.invertedYRatio,a=(t.config.chart.selection.xaxis.max-t.config.chart.selection.xaxis.min)/e.invertedYRatio);var s={x:i,y:0,width:a,height:t.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(s),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,a=t.width,s=t.height,r=t.translateX,o=void 0===r?0:r,n=t.translateY,l=void 0===n?0:n,h=this.w,c=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==h.globals.selection){var g={transform:"translate("+o+", "+l+")"};h.globals.zoomEnabled&&this.dragged&&(a<0&&(a=1),c.attr({x:e,y:i,width:a,height:s,fill:h.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":h.config.chart.zoom.zoomedArea.fill.opacity,stroke:h.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":h.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":h.config.chart.zoom.zoomedArea.stroke.opacity}),w.setAttrs(c.node,g)),h.globals.selectionEnabled&&(d.attr({x:e,y:i,width:a>0?a:0,height:s>0?s:0,fill:h.config.chart.selection.fill.color,"fill-opacity":h.config.chart.selection.fill.opacity,stroke:h.config.chart.selection.stroke.color,"stroke-width":h.config.chart.selection.stroke.width,"stroke-dasharray":h.config.chart.selection.stroke.dashArray,"stroke-opacity":h.config.chart.selection.stroke.opacity}),w.setAttrs(d.node,g))}}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e,i=t.context,a=t.zoomtype,s=this.w,r=i,o=this.gridRect.getBoundingClientRect(),n=r.startX-1,l=r.startY,h=!1,c=!1,d=r.clientX-o.left-n,g=r.clientY-o.top-l;return Math.abs(d+n)>s.globals.gridWidth?d=s.globals.gridWidth-n:r.clientX-o.left<0&&(d=n),n>r.clientX-o.left&&(h=!0,d=Math.abs(d)),l>r.clientY-o.top&&(c=!0,g=Math.abs(g)),e="x"===a?{x:h?n-d:n,y:0,width:d,height:s.globals.gridHeight}:"y"===a?{x:0,y:c?l-g:l,width:s.globals.gridWidth,height:g}:{x:h?n-d:n,y:c?l-g:l,width:d,height:g},r.drawSelectionRect(e),r.selectionDragging("resizing"),e}},{key:"selectionDragging",value:function(t,e){var i=this,a=this.w,s=this.xyRatios,r=this.selectionRect,o=0;"resizing"===t&&(o=30);var n=function(t){return parseFloat(r.node.getAttribute(t))},l={x:n("x"),y:n("y"),width:n("width"),height:n("height")};a.globals.selection=l,"function"==typeof a.config.chart.events.selection&&a.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var t,e,o,n,l=i.gridRect.getBoundingClientRect(),h=r.node.getBoundingClientRect();a.globals.isRangeBar?(t=a.globals.yAxisScale[0].niceMin+(h.left-l.left)*s.invertedYRatio,e=a.globals.yAxisScale[0].niceMin+(h.right-l.left)*s.invertedYRatio,o=0,n=1):(t=a.globals.xAxisScale.niceMin+(h.left-l.left)*s.xRatio,e=a.globals.xAxisScale.niceMin+(h.right-l.left)*s.xRatio,o=a.globals.yAxisScale[0].niceMin+(l.bottom-h.bottom)*s.yRatio[0],n=a.globals.yAxisScale[0].niceMax-(h.top-l.top)*s.yRatio[0]);var c={xaxis:{min:t,max:e},yaxis:{min:o,max:n}};a.config.chart.events.selection(i.ctx,c),a.config.chart.brush.enabled&&void 0!==a.config.chart.events.brushScrolled&&a.config.chart.events.brushScrolled(i.ctx,c)}),o))}},{key:"selectionDrawn",value:function(t){var e=t.context,i=t.zoomtype,a=this.w,s=e,r=this.xyRatios,o=this.ctx.toolbar;if(s.startX>s.endX){var n=s.startX;s.startX=s.endX,s.endX=n}if(s.startY>s.endY){var l=s.startY;s.startY=s.endY,s.endY=l}var h=void 0,c=void 0;a.globals.isRangeBar?(h=a.globals.yAxisScale[0].niceMin+s.startX*r.invertedYRatio,c=a.globals.yAxisScale[0].niceMin+s.endX*r.invertedYRatio):(h=a.globals.xAxisScale.niceMin+s.startX*r.xRatio,c=a.globals.xAxisScale.niceMin+s.endX*r.xRatio);var d=[],g=[];if(a.config.yaxis.forEach((function(t,e){if(a.globals.seriesYAxisMap[e].length>0){var i=a.globals.seriesYAxisMap[e][0];d.push(a.globals.yAxisScale[e].niceMax-r.yRatio[i]*s.startY),g.push(a.globals.yAxisScale[e].niceMax-r.yRatio[i]*s.endY)}})),s.dragged&&(s.dragX>10||s.dragY>10)&&h!==c)if(a.globals.zoomEnabled){var u=v.clone(a.globals.initialConfig.yaxis),p=v.clone(a.globals.initialConfig.xaxis);if(a.globals.zoomed=!0,a.config.xaxis.convertedCatToNumeric&&(h=Math.floor(h),c=Math.floor(c),h<1&&(h=1,c=a.globals.dataPoints),c-h<2&&(c=h+1)),"xy"!==i&&"x"!==i||(p={min:h,max:c}),"xy"!==i&&"y"!==i||u.forEach((function(t,e){u[e].min=g[e],u[e].max=d[e]})),o){var f=o.getBeforeZoomRange(p,u);f&&(p=f.xaxis?f.xaxis:p,u=f.yaxis?f.yaxis:u)}var x={xaxis:p};a.config.chart.group||(x.yaxis=u),s.ctx.updateHelpers._updateOptions(x,!1,s.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof a.config.chart.events.zoomed&&o.zoomCallback(p,u)}else if(a.globals.selectionEnabled){var b,m=null;b={min:h,max:c},"xy"!==i&&"y"!==i||(m=v.clone(a.config.yaxis)).forEach((function(t,e){m[e].min=g[e],m[e].max=d[e]})),a.globals.selection=s.selection,"function"==typeof a.config.chart.events.selection&&a.config.chart.events.selection(s.ctx,{xaxis:b,yaxis:m})}}},{key:"panDragging",value:function(t){var e=t.context,i=this.w,a=e;if(void 0!==i.globals.lastClientPosition.x){var s=i.globals.lastClientPosition.x-a.clientX,r=i.globals.lastClientPosition.y-a.clientY;Math.abs(s)>Math.abs(r)&&s>0?this.moveDirection="left":Math.abs(s)>Math.abs(r)&&s<0?this.moveDirection="right":Math.abs(r)>Math.abs(s)&&r>0?this.moveDirection="up":Math.abs(r)>Math.abs(s)&&r<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:a.clientX,y:a.clientY};var o=i.globals.isRangeBar?i.globals.minY:i.globals.minX,n=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;i.config.xaxis.convertedCatToNumeric||a.panScrolled(o,n)}},{key:"delayedPanScrolled",value:function(){var t=this.w,e=t.globals.minX,i=t.globals.maxX,a=(t.globals.maxX-t.globals.minX)/2;"left"===this.moveDirection?(e=t.globals.minX+a,i=t.globals.maxX+a):"right"===this.moveDirection&&(e=t.globals.minX-a,i=t.globals.maxX-a),e=Math.floor(e),i=Math.floor(i),this.updateScrolledChart({xaxis:{min:e,max:i}},e,i)}},{key:"panScrolled",value:function(t,e){var i=this.w,a=this.xyRatios,s=v.clone(i.globals.initialConfig.yaxis),r=a.xRatio,o=i.globals.minX,n=i.globals.maxX;i.globals.isRangeBar&&(r=a.invertedYRatio,o=i.globals.minY,n=i.globals.maxY),"left"===this.moveDirection?(t=o+i.globals.gridWidth/15*r,e=n+i.globals.gridWidth/15*r):"right"===this.moveDirection&&(t=o-i.globals.gridWidth/15*r,e=n-i.globals.gridWidth/15*r),i.globals.isRangeBar||(ti.globals.initialMaxX)&&(t=o,e=n);var l={xaxis:{min:t,max:e}};i.config.chart.group||(l.yaxis=s),this.updateScrolledChart(l,t,e)}},{key:"updateScrolledChart",value:function(t,e,i){var a=this.w;this.ctx.updateHelpers._updateOptions(t,!1,!1),"function"==typeof a.config.chart.events.scrolled&&a.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),i}(),ut=function(){function t(e){r(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return n(t,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,a=t.clientX,s=t.clientY,r=this.w,o=i.getBoundingClientRect(),n=o.width,l=o.height,h=n/(r.globals.dataPoints-1),c=l/r.globals.dataPoints,d=this.hasBars();!r.globals.comboCharts&&!d||r.config.xaxis.convertedCatToNumeric||(h=n/r.globals.dataPoints);var g=a-o.left-r.globals.barPadForNumericAxis,u=s-o.top;g<0||u<0||g>n||u>l?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):r.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):r.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var p=Math.round(g/h),f=Math.floor(u/c);d&&!r.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(g/h),p-=1);var x=null,b=null,m=r.globals.seriesXvalues.map((function(t){return t.filter((function(t){return v.isNumber(t)}))})),y=r.globals.seriesYvalues.map((function(t){return t.filter((function(t){return v.isNumber(t)}))}));if(r.globals.isXNumeric){var w=this.ttCtx.getElGrid().getBoundingClientRect(),k=g*(w.width/n),A=u*(w.height/l);x=(b=this.closestInMultiArray(k,A,m,y)).index,p=b.j,null!==x&&(m=r.globals.seriesXvalues[x],p=(b=this.closestInArray(k,m)).index)}return r.globals.capturedSeriesIndex=null===x?-1:x,(!p||p<1)&&(p=0),r.globals.isBarHorizontal?r.globals.capturedDataPointIndex=f:r.globals.capturedDataPointIndex=p,{capturedSeries:x,j:r.globals.isBarHorizontal?f:p,hoverX:g,hoverY:u}}},{key:"closestInMultiArray",value:function(t,e,i,a){var s=this.w,r=0,o=null,n=-1;s.globals.series.length>1?r=this.getFirstActiveXArray(i):o=0;var l=i[r][0],h=Math.abs(t-l);if(i.forEach((function(e){e.forEach((function(e,i){var a=Math.abs(t-e);a<=h&&(h=a,n=i)}))})),-1!==n){var c=a[r][n],d=Math.abs(e-c);o=r,a.forEach((function(t,i){var a=Math.abs(e-t[n]);a<=d&&(d=a,o=i)}))}return{index:o,j:n}}},{key:"getFirstActiveXArray",value:function(t){for(var e=this.w,i=0,a=t.map((function(t,e){return t.length>0?e:-1})),s=0;s0)for(var a=0;a *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(t=f(t)).sort((function(t,e){var i=Number(t.getAttribute("data:realIndex")),a=Number(e.getAttribute("data:realIndex"));return ai?-1:0}));var e=[];return t.forEach((function(t){e.push(t.querySelector(".apexcharts-marker"))})),e}},{key:"hasMarkers",value:function(t){return this.getElMarkers(t).length>0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return void 0===i&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var a=i.allTooltipSeriesGroups,s=0;s ').concat(i.attrs.name,""),e+="
".concat(i.val,"
")})),v.innerHTML=t+"",m.innerHTML=e+""};o?l.globals.seriesGoals[e][i]&&Array.isArray(l.globals.seriesGoals[e][i])?y():(v.innerHTML="",m.innerHTML=""):y()}else v.innerHTML="",m.innerHTML="";if(null!==p&&(a[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,a[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),o&&f[0]){if(l.config.tooltip.hideEmptySeries){var w=a[e].querySelector(".apexcharts-tooltip-marker"),k=a[e].querySelector(".apexcharts-tooltip-text");0==parseFloat(c)?(w.style.display="none",k.style.display="none"):(w.style.display="block",k.style.display="block")}null==c||l.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||l.globals.collapsedSeriesIndices.indexOf(e)>-1?f[0].parentNode.style.display="none":f[0].parentNode.style.display=l.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("apexcharts-active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,a=this.w,s=this.ctx.series.filteredSeriesX(),r="",o="",n=null,l=null,h={series:a.globals.series,seriesIndex:e,dataPointIndex:i,w:a},c=a.globals.ttZFormatter;null===i?l=a.globals.series[e]:a.globals.isXNumeric&&"treemap"!==a.config.chart.type?(r=s[e][i],0===s[e].length&&(r=s[this.tooltipUtil.getFirstActiveXArray(s)][i])):r=void 0!==a.globals.labels[i]?a.globals.labels[i]:"";var d=r;return r=a.globals.isXNumeric&&"datetime"===a.config.xaxis.type?new L(this.ctx).xLabelFormat(a.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new C(this.ctx).formatDate,w:this.w}):a.globals.isBarHorizontal?a.globals.yLabelFormatters[0](d,h):a.globals.xLabelFormatter(d,h),void 0!==a.config.tooltip.x.formatter&&(r=a.globals.ttKeyFormatter(d,h)),a.globals.seriesZ.length>0&&a.globals.seriesZ[e].length>0&&(n=c(a.globals.seriesZ[e][i],a)),o="function"==typeof a.config.xaxis.tooltip.formatter?a.globals.xaxisTooltipFormatter(d,h):r,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(r)?r.join(" "):r,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:n}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,a=t.y1,s=t.y2,r=t.w,o=this.ttCtx.getElTooltip(),n=r.config.tooltip.custom;Array.isArray(n)&&n[e]&&(n=n[e]),o.innerHTML=n({ctx:this.ctx,series:r.globals.series,seriesIndex:e,dataPointIndex:i,y1:a,y2:s,w:r})}}]),t}(),ft=function(){function t(e){r(this,t),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return n(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,a=this.w,s=i.getElXCrosshairs(),r=t-i.xcrosshairsWidth/2,o=a.globals.labels.slice().length;if(null!==e&&(r=a.globals.gridWidth/o*e),null===s||a.globals.isBarHorizontal||(s.setAttribute("x",r),s.setAttribute("x1",r),s.setAttribute("x2",r),s.setAttribute("y2",a.globals.gridHeight),s.classList.add("apexcharts-active")),r<0&&(r=0),r>a.globals.gridWidth&&(r=a.globals.gridWidth),i.isXAxisTooltipEnabled){var n=r;"tickWidth"!==a.config.xaxis.crosshairs.width&&"barWidth"!==a.config.xaxis.crosshairs.width||(n=r+i.xcrosshairsWidth/2),this.moveXAxisTooltip(n)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&w.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&w.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip&&0!==i.xcrosshairsWidth){i.xaxisTooltip.classList.add("apexcharts-active");var a,s=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t))t+=e.globals.translateX,a=new w(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=a.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=s+"px"}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var a=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),s=e.globals.translateY+a,r=i.yaxisTTEls[t].getBoundingClientRect().height,o=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(o-=26),s-=r/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=s+"px",i.yaxisTTEls[t].style.left=o+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.w,s=this.ttCtx,r=s.getElTooltip(),o=s.tooltipRect,n=null!==i?parseFloat(i):1,l=parseFloat(t)+n+5,h=parseFloat(e)+n/2;if(l>a.globals.gridWidth/2&&(l=l-o.ttWidth-n-10),l>a.globals.gridWidth-o.ttWidth-10&&(l=a.globals.gridWidth-o.ttWidth),l<-20&&(l=-20),a.config.tooltip.followCursor){var c=s.getElGrid().getBoundingClientRect();(l=s.e.clientX-c.left)>a.globals.gridWidth/2&&(l-=s.tooltipRect.ttWidth),(h=s.e.clientY+a.globals.translateY-c.top)>a.globals.gridHeight/2&&(h-=s.tooltipRect.ttHeight)}else a.globals.isBarHorizontal||o.ttHeight/2+h>a.globals.gridHeight&&(h=a.globals.gridHeight-o.ttHeight+a.globals.translateY);isNaN(l)||(l+=a.globals.translateX,r.style.left=l+"px",r.style.top=h+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,a=this.ttCtx;if(i.globals.markers.size[t]>0)for(var s=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),r=0;r0&&(h.setAttribute("r",n),h.setAttribute("cx",i),h.setAttribute("cy",a)),this.moveXCrosshairs(i),r.fixedTooltip||this.moveTooltip(i,a,n)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,a=i.w,s=0,r=0,o=a.globals.pointsArray;e=new G(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var n=i.tooltipUtil.getHoverMarkerSize(e);o[e]&&(s=o[e][t][0],r=o[e][t][1]);var l=i.tooltipUtil.getAllMarkers();if(null!==l)for(var h=0;h0?(l[h]&&l[h].setAttribute("r",n),l[h]&&l[h].setAttribute("cy",d)):l[h]&&l[h].setAttribute("r",0)}}this.moveXCrosshairs(s),i.fixedTooltip||this.moveTooltip(s,r||a.globals.gridHeight,n)}},{key:"moveStickyTooltipOverBars",value:function(t,e){var i=this.w,a=this.ttCtx,s=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,r=s>=2&&s%2==0?Math.floor(s/2):Math.floor(s/2)+1;i.globals.isBarHorizontal&&(r=new G(this.ctx).getActiveConfigSeriesIndex("desc")+1);var o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(r,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(r,"'] path[j='").concat(t,"']"));o||"number"!=typeof e||(o=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"']")));var n=o?parseFloat(o.getAttribute("cx")):0,l=o?parseFloat(o.getAttribute("cy")):0,h=o?parseFloat(o.getAttribute("barWidth")):0,c=a.getElGrid().getBoundingClientRect(),d=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(o&&!d&&(n-=s%2!=0?h/2:0),o&&d&&i.globals.comboCharts&&(n-=h/2)):i.globals.isBarHorizontal||(n=a.xAxisTicksPositions[t-1]+a.dataPointsDividedWidth/2,isNaN(n)&&(n=a.xAxisTicksPositions[t]-a.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?l-=a.tooltipRect.ttHeight:i.config.tooltip.followCursor?l=a.e.clientY-c.top-a.tooltipRect.ttHeight/2:l+a.tooltipRect.ttHeight+15>i.globals.gridHeight&&(l=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(n),a.fixedTooltip||this.moveTooltip(n,l||i.globals.gridHeight)}}]),t}(),xt=function(){function t(e){r(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new ft(e)}return n(t,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new w(this.ctx),i=new N(this.ctx),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");a=f(a),t.config.chart.stacked&&a.sort((function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))}));for(var s=0;s2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.w;"bubble"!==s.config.chart.type&&this.newPointSize(t,e);var r=e.getAttribute("cx"),o=e.getAttribute("cy");if(null!==i&&null!==a&&(r=i,o=a),this.tooltipPosition.moveXCrosshairs(r),!this.fixedTooltip){if("radar"===s.config.chart.type){var n=this.ttCtx.getElGrid().getBoundingClientRect();r=this.ttCtx.e.clientX-n.left}this.tooltipPosition.moveTooltip(r,o,s.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,a=this.ttCtx,s=t,r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),o=e.config.markers.hover.size,n=0;n=0?t[e].setAttribute("r",i):t[e].setAttribute("r",0)}}}]),t}(),bt=function(){function t(e){r(this,t),this.w=e.w;var i=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&"rangeBar"===i.config.chart.type&&i.config.plotOptions.bar.rangeBarGroupRows}return n(t,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,a=t.x,s=t.y,r=t.type,o=this.ttCtx,n=this.w;if(e.target.classList.contains("apexcharts-".concat(r,"-rect"))){var l=this.getAttr(e,"i"),h=this.getAttr(e,"j"),c=this.getAttr(e,"cx"),d=this.getAttr(e,"cy"),g=this.getAttr(e,"width"),u=this.getAttr(e,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:h,shared:!1,e:e}),n.globals.capturedSeriesIndex=l,n.globals.capturedDataPointIndex=h,a=c+o.tooltipRect.ttWidth/2+g,s=d+o.tooltipRect.ttHeight/2-u/2,o.tooltipPosition.moveXCrosshairs(c+g/2),a>n.globals.gridWidth/2&&(a=c-o.tooltipRect.ttWidth/2+g),o.w.config.tooltip.followCursor){var p=n.globals.dom.elWrap.getBoundingClientRect();a=n.globals.clientX-p.left-(a>n.globals.gridWidth/2?o.tooltipRect.ttWidth:0),s=n.globals.clientY-p.top-(s>n.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:a,y:s}}},{key:"handleMarkerTooltip",value:function(t){var e,i,a=t.e,s=t.opt,r=t.x,o=t.y,n=this.w,l=this.ttCtx;if(a.target.classList.contains("apexcharts-marker")){var h=parseInt(s.paths.getAttribute("cx"),10),c=parseInt(s.paths.getAttribute("cy"),10),d=parseFloat(s.paths.getAttribute("val"));if(i=parseInt(s.paths.getAttribute("rel"),10),e=parseInt(s.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var g=v.findAncestor(s.paths,"apexcharts-series");g&&(e=parseInt(g.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:e,j:i,shared:!l.showOnIntersect&&n.config.tooltip.shared,e:a}),"mouseup"===a.type&&l.markerClick(a,e,i),n.globals.capturedSeriesIndex=e,n.globals.capturedDataPointIndex=i,r=h,o=c+n.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var u=l.getElGrid().getBoundingClientRect();o=l.e.clientY+n.globals.translateY-u.top}d<0&&(o=c),l.marker.enlargeCurrentPoint(i,s.paths,r,o)}return{x:r,y:o}}},{key:"handleBarTooltip",value:function(t){var e,i,a=t.e,s=t.opt,r=this.w,o=this.ttCtx,n=o.getElTooltip(),l=0,h=0,c=0,d=this.getBarTooltipXY({e:a,opt:s});e=d.i;var g=d.barHeight,u=d.j;r.globals.capturedSeriesIndex=e,r.globals.capturedDataPointIndex=u,r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!r.config.tooltip.shared?(h=d.x,c=d.y,i=Array.isArray(r.config.stroke.width)?r.config.stroke.width[e]:r.config.stroke.width,l=h):r.globals.comboCharts||r.config.tooltip.shared||(l/=2),isNaN(c)&&(c=r.globals.svgHeight-o.tooltipRect.ttHeight);var p=parseInt(s.paths.parentNode.getAttribute("data:realIndex"),10),f=r.globals.isMultipleYAxis?r.config.yaxis[p]&&r.config.yaxis[p].reversed:r.config.yaxis[0].reversed;if(h+o.tooltipRect.ttWidth>r.globals.gridWidth&&!f?h-=o.tooltipRect.ttWidth:h<0&&(h=0),o.w.config.tooltip.followCursor){var x=o.getElGrid().getBoundingClientRect();c=o.e.clientY-x.top}null===o.tooltip&&(o.tooltip=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),r.config.tooltip.shared||(r.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(l+i/2):o.tooltipPosition.moveXCrosshairs(l)),!o.fixedTooltip&&(!r.config.tooltip.shared||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(f&&(h-=o.tooltipRect.ttWidth)<0&&(h=0),!f||r.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||(c=c+g-2*(r.globals.series[e][u]<0?g:0)),c=c+r.globals.translateY-o.tooltipRect.ttHeight/2,n.style.left=h+r.globals.translateX+"px",n.style.top=c+"px")}},{key:"getBarTooltipXY",value:function(t){var e=this,i=t.e,a=t.opt,s=this.w,r=null,o=this.ttCtx,n=0,l=0,h=0,c=0,d=0,g=i.target.classList;if(g.contains("apexcharts-bar-area")||g.contains("apexcharts-candlestick-area")||g.contains("apexcharts-boxPlot-area")||g.contains("apexcharts-rangebar-area")){var u=i.target,p=u.getBoundingClientRect(),f=a.elGrid.getBoundingClientRect(),x=p.height;d=p.height;var b=p.width,v=parseInt(u.getAttribute("cx"),10),m=parseInt(u.getAttribute("cy"),10);c=parseFloat(u.getAttribute("barWidth"));var y="touchmove"===i.type?i.touches[0].clientX:i.clientX;r=parseInt(u.getAttribute("j"),10),n=parseInt(u.parentNode.getAttribute("rel"),10)-1;var w=u.getAttribute("data-range-y1"),k=u.getAttribute("data-range-y2");s.globals.comboCharts&&(n=parseInt(u.parentNode.getAttribute("data:realIndex"),10));var A=function(t){return s.globals.isXNumeric?v-b/2:e.isVerticalGroupedRangeBar?v+b/2:v-o.dataPointsDividedWidth+b/2},S=function(){return m-o.dataPointsDividedHeight+x/2-o.tooltipRect.ttHeight/2};o.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:n,j:r,y1:w?parseInt(w,10):null,y2:k?parseInt(k,10):null,shared:!o.showOnIntersect&&s.config.tooltip.shared,e:i}),s.config.tooltip.followCursor?s.globals.isBarHorizontal?(l=y-f.left+15,h=S()):(l=A(),h=i.clientY-f.top-o.tooltipRect.ttHeight/2-15):s.globals.isBarHorizontal?((l=v)0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var a=this.ttCtx,s=this.w.globals,r=s.seriesYAxisMap[t];if(a.yaxisTooltips[t]&&r.length>0){var o=s.yLabelFormatters[t],n=a.getElGrid().getBoundingClientRect(),l=r[0];i.yRatio.length>1&&function(t){throw new TypeError('"translationsIndex" is read-only')}();var h=(e-n.top)*i.yRatio[0],c=s.maxYArr[l]-s.minYArr[l],d=s.minYArr[l]+(c-h);a.tooltipPosition.moveYCrosshairs(e-n.top),a.yaxisTooltipText[t].innerHTML=o(d),a.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),mt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new ut(this),this.tooltipLabels=new pt(this),this.tooltipPosition=new ft(this),this.marker=new xt(this),this.intersect=new bt(this),this.axesTooltip=new vt(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!i.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return n(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl?t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map((function(t,i){return!!(t.show&&t.tooltip.enabled&&e.globals.axisCharts)})),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var a=new _(this.ctx);this.xAxisTicksPositions=a.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==e.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==e.config.markers.size&&0!==e.globals.markers.largestSize||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var s=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(s=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(s),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,a=[],s=this.getElTooltip(),r=function(r){var o=document.createElement("div");o.classList.add("apexcharts-tooltip-series-group"),o.style.order=i.config.tooltip.inverseOrder?t-r:r+1,e.tConfig.shared&&e.tConfig.enabledOnSeries&&Array.isArray(e.tConfig.enabledOnSeries)&&e.tConfig.enabledOnSeries.indexOf(r)<0&&o.classList.add("apexcharts-tooltip-series-group-hidden");var n=document.createElement("span");n.classList.add("apexcharts-tooltip-marker"),n.style.backgroundColor=i.globals.colors[r],o.appendChild(n);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,l.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach((function(t){var e=document.createElement("div");e.classList.add("apexcharts-tooltip-".concat(t,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(t,"-label")),e.appendChild(i);var a=document.createElement("span");a.classList.add("apexcharts-tooltip-text-".concat(t,"-value")),e.appendChild(a),l.appendChild(e)})),o.appendChild(l),s.appendChild(o),a.push(o)},o=0;o0&&this.addPathsEventListeners(u,c),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(c)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),a=i.width+10,s=i.height+10,r=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,n=this.tConfig.fixed.position.toLowerCase();return n.indexOf("right")>-1&&(r=r+t.globals.svgWidth-a+10),n.indexOf("bottom")>-1&&(o=o+t.globals.svgHeight-s-10),e.style.left=r+"px",e.style.top=o+"px",{x:r,y:o,ttWidth:a,ttHeight:s}}},{key:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,a=function(a){var s={paths:t[a],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(e){return t[a].addEventListener(e,i.onSeriesHover.bind(i,s),{capture:!1,passive:!0})}))},s=0;s=100?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){i.seriesHover(t,e)}),100-a))}},{key:"seriesHover",value:function(t,e){var i=this;this.lastHoverTime=Date.now();var a=[],s=this.w;s.config.chart.group&&(a=this.ctx.getGroupedCharts()),s.globals.axisCharts&&(s.globals.minX===-1/0&&s.globals.maxX===1/0||0===s.globals.dataPoints)||(a.length?a.forEach((function(a){var s=i.getElTooltip(a),r={paths:t.paths,tooltipEl:s,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:a.w.globals.tooltip.ttItems};a.w.globals.minX===i.w.globals.minX&&a.w.globals.maxX===i.w.globals.maxX&&a.w.globals.tooltip.seriesHoverByContext({chartCtx:a,ttCtx:a.w.globals.tooltip,opt:r,e:e})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e:e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,a=t.opt,s=t.e,r=e.w,o=this.getElTooltip();o&&(i.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},i.e=s,!i.tooltipUtil.hasBars()||r.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new G(e).toggleSeriesOnHover(s,s.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),r.globals.axisCharts?i.axisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:s,opt:a,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(t){var e,i,a=t.e,s=t.opt,r=this.w,o=s.elGrid.getBoundingClientRect(),n="touchmove"===a.type?a.touches[0].clientX:a.clientX,l="touchmove"===a.type?a.touches[0].clientY:a.clientY;if(this.clientY=l,this.clientX=n,r.globals.capturedSeriesIndex=-1,r.globals.capturedDataPointIndex=-1,lo.top+o.height)this.handleMouseOut(s);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!r.config.tooltip.shared){var h=parseInt(s.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(h)<0)return void this.handleMouseOut(s)}var c=this.getElTooltip(),d=this.getElXCrosshairs(),g=r.globals.xyCharts||"bar"===r.config.chart.type&&!r.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||r.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===a.type||"touchmove"===a.type||"mouseup"===a.type){if(r.globals.collapsedSeries.length+r.globals.ancillaryCollapsedSeries.length===r.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var u=this.yaxisTooltips.filter((function(t){return!0===t}));if(null!==this.ycrosshairs&&u.length&&this.ycrosshairs.classList.add("apexcharts-active"),g&&!this.showOnIntersect)this.handleStickyTooltip(a,n,l,s);else if("heatmap"===r.config.chart.type||"treemap"===r.config.chart.type){var p=this.intersect.handleHeatTreeTooltip({e:a,opt:s,x:e,y:i,type:r.config.chart.type});e=p.x,i=p.y,c.style.left=e+"px",c.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:a,opt:s}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:a,opt:s,x:e,y:i});if(this.yaxisTooltips.length)for(var f=0;fl.width)this.handleMouseOut(a);else if(null!==n)this.handleStickyCapturedSeries(t,n,a,o);else if(this.tooltipUtil.isXoverlap(o)||s.globals.isBarHorizontal){var h=s.globals.series.findIndex((function(t,e){return!s.globals.collapsedSeriesIndices.includes(e)}));this.create(t,this,h,o,a.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(t,e,i,a){var s=this.w;if(this.tConfig.shared||null!==s.globals.series[e][a]){if(void 0!==s.globals.series[e][a])this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,a,i.ttItems):this.create(t,this,e,a,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(a)){var r=s.globals.series.findIndex((function(t,e){return!s.globals.collapsedSeriesIndices.includes(e)}));this.create(t,this,r,a,i.ttItems)}}else this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new w(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),a=0;a5&&void 0!==arguments[5]?arguments[5]:null,S=this.w,C=e;"mouseup"===t.type&&this.markerClick(t,i,s),null===A&&(A=this.tConfig.shared);var L=this.tooltipUtil.hasMarkers(i),P=this.tooltipUtil.getElBars();if(S.config.legend.tooltipHoverFormatter){var M=S.config.legend.tooltipHoverFormatter,I=Array.from(this.legendLabels);I.forEach((function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}));for(var T=0;T0?C.marker.enlargePoints(s):C.tooltipPosition.moveDynamicPointsOnHover(s);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(P),this.barSeriesHeight>0)){var F=new w(this.ctx),O=S.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(s,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(s,i);for(var H=0;H0&&a.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(u-=c*A)),k&&(u=u+g.height/2-v/2-2);var C=this.barCtx.series[s][r]<0,L=l;switch(this.barCtx.isReversed&&(L=l-d+(C?2*d:0),l-=d),x.position){case"center":p=k?C?L-d/2+y:L+d/2-y:C?L-d/2+g.height/2+y:L+d/2+g.height/2-y;break;case"bottom":p=k?C?L-d+y:L+d-y:C?L-d+g.height+v+y:L+d-g.height/2+v-y;break;case"top":p=k?C?L+y:L-y:C?L-g.height/2-y:L+g.height+y}if(this.barCtx.lastActiveBarSerieIndex===o&&b.enabled){var P=new w(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:r}),f.fontSize);e=C?L-P.height/2-y-b.offsetY+18:L+P.height+y+b.offsetY-18,i=u+b.offsetX}return a.config.chart.stacked||(p<0?p=0+v:p+g.height/3>a.globals.gridHeight&&(p=a.globals.gridHeight-v)),{bcx:h,bcy:l,dataLabelsX:u,dataLabelsY:p,totalDataLabelsX:i,totalDataLabelsY:e,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,a=t.i,s=t.j,r=t.realIndex,o=t.groupIndex,n=t.bcy,l=t.barHeight,h=t.barWidth,c=t.textRects,d=t.dataLabelsX,g=t.strokeWidth,u=t.dataLabelsConfig,p=t.barDataLabelsConfig,f=t.barTotalDataLabelsConfig,x=t.offX,b=t.offY,v=e.globals.gridHeight/e.globals.dataPoints;h=Math.abs(h);var m,y,k=(n+=-1!==o?o*l:0)-(this.barCtx.isRangeBar?0:v)+l/2+c.height/2+b-3,A="start",S=this.barCtx.series[a][s]<0,C=i;switch(this.barCtx.isReversed&&(C=i+h-(S?2*h:0),i=e.globals.gridWidth-h),p.position){case"center":d=S?C+h/2-x:Math.max(c.width/2,C-h/2)+x;break;case"bottom":d=S?C+h-g-Math.round(c.width/2)-x:C-h+g+Math.round(c.width/2)+x;break;case"top":d=S?C-g+Math.round(c.width/2)-x:C-g-Math.round(c.width/2)+x}if(this.barCtx.lastActiveBarSerieIndex===r&&f.enabled){var L=new w(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:r,j:s}),u.fontSize);S?(m=C-g+Math.round(L.width/2)-x-f.offsetX-15,A="end"):m=C-g-Math.round(L.width/2)+x+f.offsetX+15,y=k+f.offsetY}return e.config.chart.stacked||(d<0?d=d+c.width+g:d+c.width/2>e.globals.gridWidth&&(d=e.globals.gridWidth-c.width-g)),{bcx:i,bcy:n,dataLabelsX:d,dataLabelsY:k,totalDataLabelsX:m,totalDataLabelsY:y,totalDataLabelsAnchor:A}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,s=t.val,r=t.i,o=t.j,n=t.textRects,l=t.barHeight,h=t.barWidth,c=t.dataLabelsConfig,d=this.w,g="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(g="rotate(-90, ".concat(e,", ").concat(i,")"));var u=new B(this.barCtx.ctx),p=new w(this.barCtx.ctx),f=c.formatter,x=null,b=d.globals.collapsedSeriesIndices.indexOf(r)>-1;if(c.enabled&&!b){x=p.group({class:"apexcharts-data-labels",transform:g});var v="";void 0!==s&&(v=f(s,a(a({},d),{},{seriesIndex:r,dataPointIndex:o,w:d}))),!s&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(v="");var m=d.globals.series[r][o]<0,y=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===y&&(c.textAnchor=m?"end":"start"),"center"===y&&(c.textAnchor="middle"),"bottom"===y&&(c.textAnchor=m?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&hMath.abs(h)&&(v=""):n.height/1.6>Math.abs(l)&&(v=""));var k=a({},c);this.barCtx.isHorizontal&&s<0&&("start"===c.textAnchor?k.textAnchor="end":"end"===c.textAnchor&&(k.textAnchor="start")),u.plotDataLabelsText({x:e,y:i,text:v,i:r,j:o,parent:x,dataLabelsConfig:k,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return x}},{key:"drawTotalDataLabels",value:function(t){var e,i=t.x,a=t.y,s=t.val,r=t.barWidth,o=t.barHeight,n=t.realIndex,l=t.textAnchor,h=t.barTotalDataLabelsConfig,c=this.w,d=new w(this.barCtx.ctx);return h.enabled&&void 0!==i&&void 0!==a&&this.barCtx.lastActiveBarSerieIndex===n&&(e=d.drawText({x:i-(!c.globals.isBarHorizontal&&c.globals.seriesGroups.length?r/c.globals.seriesGroups.length:0),y:a-(c.globals.isBarHorizontal&&c.globals.seriesGroups.length?o/c.globals.seriesGroups.length:0),foreColor:h.style.color,text:s,textAnchor:l,fontFamily:h.style.fontFamily,fontSize:h.style.fontSize,fontWeight:h.style.fontWeight})),e}}]),t}(),wt=function(){function t(e){r(this,t),this.w=e.w,this.barCtx=e}return n(t,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var a=0;ae.globals.minX&&e.globals.seriesX[i][a]0&&(a=l.globals.minXDiff/d),(r=a/c*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(r=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(r=parseInt(this.barCtx.barOptions.columnWidth,10)),o=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),t=l.globals.padHorizontal+(a-r*this.barCtx.seriesLen)/2}return l.globals.barHeight=s,l.globals.barWidth=r,{x:t,y:e,yDivision:i,xDivision:a,barHeight:s,barWidth:r,zeroH:o,zeroW:n}}},{key:"initializeStackedPrevVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach((function(e){t[e]||(t[e]={}),t[e].prevY=[],t[e].prevX=[],t[e].prevYF=[],t[e].prevXF=[],t[e].prevYVal=[],t[e].prevXVal=[]})):(t.prevY=[],t.prevX=[],t.prevYF=[],t.prevXF=[],t.prevYVal=[],t.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(t){var e=t.w;e.globals.hasSeriesGroups?e.globals.seriesGroups.forEach((function(e){t[e]||(t[e]={}),t[e].xArrj=[],t[e].xArrjF=[],t[e].xArrjVal=[],t[e].yArrj=[],t[e].yArrjF=[],t[e].yArrjVal=[]})):(t.xArrj=[],t.xArrjF=[],t.xArrjVal=[],t.yArrj=[],t.yArrjF=[],t.yArrjVal=[])}},{key:"getPathFillColor",value:function(t,e,i,a){var s,r,o,n,l=this.w,h=new D(this.barCtx.ctx),c=null,d=this.barCtx.barOptions.distributed?i:e;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(a){t[e][i]>=a.from&&t[e][i]<=a.to&&(c=a.color)})),l.config.series[e].data[i]&&l.config.series[e].data[i].fillColor&&(c=l.config.series[e].data[i].fillColor),h.fillPath({seriesNumber:this.barCtx.barOptions.distributed?d:a,dataPointIndex:i,color:c,value:t[e][i],fillConfig:null===(s=l.config.series[e].data[i])||void 0===s?void 0:s.fill,fillType:null!==(r=l.config.series[e].data[i])&&void 0!==r&&null!==(o=r.fill)&&void 0!==o&&o.type?null===(n=l.config.series[e].data[i])||void 0===n?void 0:n.fill.type:Array.isArray(l.config.fill.type)?l.config.fill.type[e]:l.config.fill.type})}},{key:"getStrokeWidth",value:function(t,e,i){var a=0,s=this.w;return void 0===this.barCtx.series[t][e]||null===this.barCtx.series[t][e]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,s.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),a}},{key:"shouldApplyRadius",value:function(t){var e=this.w,i=!1;return e.config.plotOptions.bar.borderRadius>0&&(e.config.chart.stacked&&"last"===e.config.plotOptions.bar.borderRadiusWhenStacked?this.barCtx.lastActiveBarSerieIndex===t&&(i=!0):i=!0),i}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,a=t.x1,s=t.x2,r=t.y1,o=t.y2,n=t.elSeries,l=this.w,h=new w(this.barCtx.ctx),c=new G(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&c===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[e],g=h.drawRect(void 0!==a?a:0,void 0!==r?r:0,void 0!==s?s:l.globals.gridWidth,void 0!==o?o:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);n.add(g),g.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e,i=t.barWidth,a=t.barXPosition,s=t.y1,r=t.y2,o=t.strokeWidth,n=t.seriesGroup,l=t.realIndex,h=t.i,c=t.j,d=t.w,g=new w(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var u=i,p=a;null!==(e=d.config.series[l].data[c])&&void 0!==e&&e.columnWidthOffset&&(p=a-d.config.series[l].data[c].columnWidthOffset/2,u=i+d.config.series[l].data[c].columnWidthOffset);var f=p,x=p+u;s+=.001,r+=.001;var b=g.move(f,s),v=g.move(f,s),m=g.line(x-o,s);if(d.globals.previousPaths.length>0&&(v=this.barCtx.getPreviousPath(l,c,!1)),b=b+g.line(f,r)+g.line(x-o,r)+g.line(x-o,s)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),v=v+g.line(f,s)+m+m+m+m+m+g.line(f,s)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(b=g.roundPathCorners(b,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var y=this.barCtx;d.globals.hasSeriesGroups&&n&&(y=this.barCtx[n]),y.yArrj.push(r),y.yArrjF.push(Math.abs(s-r)),y.yArrjVal.push(this.barCtx.series[h][c])}return{pathTo:b,pathFrom:v}}},{key:"getBarpaths",value:function(t){var e,i=t.barYPosition,a=t.barHeight,s=t.x1,r=t.x2,o=t.strokeWidth,n=t.seriesGroup,l=t.realIndex,h=t.i,c=t.j,d=t.w,g=new w(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var u=i,p=a;null!==(e=d.config.series[l].data[c])&&void 0!==e&&e.barHeightOffset&&(u=i-d.config.series[l].data[c].barHeightOffset/2,p=a+d.config.series[l].data[c].barHeightOffset);var f=u,x=u+p;s+=.001,r+=.001;var b=g.move(s,f),v=g.move(s,f);d.globals.previousPaths.length>0&&(v=this.barCtx.getPreviousPath(l,c,!1));var m=g.line(s,x-o);if(b=b+g.line(r,f)+g.line(r,x-o)+m+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),v=v+g.line(s,f)+m+m+m+m+m+g.line(s,f)+("around"===d.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(l)&&(b=g.roundPathCorners(b,d.config.plotOptions.bar.borderRadius)),d.config.chart.stacked){var y=this.barCtx;d.globals.hasSeriesGroups&&n&&(y=this.barCtx[n]),y.xArrj.push(r),y.xArrjF.push(Math.abs(s-r)),y.xArrjVal.push(this.barCtx.series[h][c])}return{pathTo:b,pathFrom:v}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,a=0;a2&&void 0!==arguments[2]&&!arguments[2]?null:e;return null!=t&&(i=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(t,e,i){var a=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?null:e;return null!=t&&(a=e-t/this.barCtx.yRatio[i]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[i]:0)),a}},{key:"getGoalValues",value:function(t,e,i,s,r,o){var n=this,h=this.w,c=[],d=function(a,s){var r;c.push((l(r={},t,"x"===t?n.getXForValue(a,e,!1):n.getYForValue(a,i,o,!1)),l(r,"attrs",s),r))};if(h.globals.seriesGoals[s]&&h.globals.seriesGoals[s][r]&&Array.isArray(h.globals.seriesGoals[s][r])&&h.globals.seriesGoals[s][r].forEach((function(t){d(t.value,t)})),this.barCtx.barOptions.isDumbbell&&h.globals.seriesRange.length){var g=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:h.globals.colors,u={strokeHeight:"x"===t?0:h.globals.markers.size[s],strokeWidth:"x"===t?h.globals.markers.size[s]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(g[s])?g[s][0]:g[s]};d(h.globals.seriesRangeStart[s][r],u),d(h.globals.seriesRangeEnd[s][r],a(a({},u),{},{strokeColor:Array.isArray(g[s])?g[s][1]:g[s]}))}return c}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,a=t.goalX,s=t.goalY,r=t.barWidth,o=t.barHeight,n=new w(this.barCtx.ctx),l=n.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var h=null;return this.barCtx.isHorizontal?Array.isArray(a)&&a.forEach((function(t){if(t.x>=-1&&t.x<=n.w.globals.gridWidth+1){var e=void 0!==t.attrs.strokeHeight?t.attrs.strokeHeight:o/2,a=i+e+o/2;h=n.drawLine(t.x,a-2*e,t.x,a,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeWidth?t.attrs.strokeWidth:2,t.attrs.strokeLineCap),l.add(h)}})):Array.isArray(s)&&s.forEach((function(t){if(t.y>=-1&&t.y<=n.w.globals.gridHeight+1){var i=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:r/2,a=e+i+r/2;h=n.drawLine(a-2*i,t.y,a,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight?t.attrs.strokeHeight:2,t.attrs.strokeLineCap),l.add(h)}})),l}},{key:"drawBarShadow",value:function(t){var e=t.prevPaths,i=t.currPaths,a=t.color,s=this.w,r=e.x,o=e.x1,n=e.barYPosition,l=i.x,h=i.x1,c=i.barYPosition,d=n+i.barHeight,g=new w(this.barCtx.ctx),u=new v,p=g.move(o,d)+g.line(r,d)+g.line(l,c)+g.line(h,c)+g.line(o,d)+("around"===s.config.plotOptions.bar.borderRadiusApplication?" Z":" z");return g.drawPath({d:p,fill:u.shadeColor(.5,v.rgb2hex(a)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(t){var e=t.i,i=t.j,a=this.w,s=0,r=0;return a.globals.seriesPercent.forEach((function(t,a){t[i]&&s++,a0&&(this.visibleI=this.visibleI+1);var y=0,A=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[b],this.translationsIndex=b);var S=this.translationsIndex;this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var C=this.barHelpers.initialPositions();p=C.y,y=C.barHeight,c=C.yDivision,g=C.zeroW,u=C.x,A=C.barWidth,h=C.xDivision,d=C.zeroH,this.horizontal||x.push(u+A/2);var L=s.group({class:"apexcharts-datalabels","data:realIndex":b});i.globals.delayedElements.push({el:L.node}),L.node.classList.add("apexcharts-element-hidden");var P=s.group({class:"apexcharts-bar-goals-markers"}),M=s.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:M.node}),M.node.classList.add("apexcharts-element-hidden");for(var I=0;I0){var Y=this.barHelpers.drawBarShadow({color:"string"==typeof E&&-1===(null==E?void 0:E.indexOf("url"))?E:v.hexToRgba(i.globals.colors[n]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:z});Y&&M.add(Y)}this.pathArr.push(z);var R=this.barHelpers.drawGoalLine({barXPosition:z.barXPosition,barYPosition:z.barYPosition,goalX:z.goalX,goalY:z.goalY,barHeight:y,barWidth:A});R&&P.add(R),p=z.y,u=z.x,I>0&&x.push(u+A/2),f.push(p),this.renderSeries({realIndex:b,pathFill:E,j:I,i:n,pathFrom:z.pathFrom,pathTo:z.pathTo,strokeWidth:T,elSeries:m,x:u,y:p,series:t,barHeight:z.barHeight?z.barHeight:y,barWidth:z.barWidth?z.barWidth:A,elDataLabelsWrap:L,elGoalsMarkers:P,elBarShadows:M,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[b]=x,i.globals.seriesYvalues[b]=f,o.add(m)}return o}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,a=t.lineFill,s=t.j,r=t.i,o=t.groupIndex,n=t.pathFrom,l=t.pathTo,h=t.strokeWidth,c=t.elSeries,d=t.x,g=t.y,u=t.y1,p=t.y2,f=t.series,x=t.barHeight,b=t.barWidth,v=t.barXPosition,m=t.barYPosition,k=t.elDataLabelsWrap,A=t.elGoalsMarkers,S=t.elBarShadows,C=t.visibleSeries,L=t.type,P=this.w,M=new w(this.ctx);if(!a){var I="function"==typeof P.globals.stroke.colors[e]?function(t){var e,i=P.config.stroke.colors;return Array.isArray(i)&&i.length>0&&((e=i[t])||(e=""),"function"==typeof e)?e({value:P.globals.series[t][s],dataPointIndex:s,w:P}):e}(e):P.globals.stroke.colors[e];a=this.barOptions.distributed?P.globals.stroke.colors[s]:I}P.config.series[r].data[s]&&P.config.series[r].data[s].strokeColor&&(a=P.config.series[r].data[s].strokeColor),this.isNullValue&&(i="none");var T=s/P.config.chart.animations.animateGradually.delay*(P.config.chart.animations.speed/P.globals.dataPoints)/2.4,z=M.renderPaths({i:r,j:s,realIndex:e,pathFrom:n,pathTo:l,stroke:a,strokeWidth:h,strokeLineCap:P.config.stroke.lineCap,fill:i,animationDelay:T,initialSpeed:P.config.chart.animations.speed,dataChangeSpeed:P.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(L,"-area")});z.attr("clip-path","url(#gridRectMask".concat(P.globals.cuid,")"));var X=P.config.forecastDataPoints;X.count>0&&s>=P.globals.dataPoints-X.count&&(z.node.setAttribute("stroke-dasharray",X.dashArray),z.node.setAttribute("stroke-width",X.strokeWidth),z.node.setAttribute("fill-opacity",X.fillOpacity)),void 0!==u&&void 0!==p&&(z.attr("data-range-y1",u),z.attr("data-range-y2",p)),new y(this.ctx).setSelectionFilter(z,e,s),c.add(z);var E=new yt(this).handleBarDataLabels({x:d,y:g,y1:u,y2:p,i:r,j:s,series:f,realIndex:e,groupIndex:o,barHeight:x,barWidth:b,barXPosition:v,barYPosition:m,renderedPath:z,visibleSeries:C});return null!==E.dataLabels&&k.add(E.dataLabels),E.totalDataLabels&&k.add(E.totalDataLabels),c.add(k),A&&c.add(A),S&&c.add(S),c}},{key:"drawBarPaths",value:function(t){var e,i=t.indexes,a=t.barHeight,s=t.strokeWidth,r=t.zeroW,o=t.x,n=t.y,l=t.yDivision,h=t.elSeries,c=this.w,d=i.i,g=i.j;if(c.globals.isXNumeric)e=(n=(c.globals.seriesX[d][g]-c.globals.minX)/this.invertedXRatio-a)+a*this.visibleI;else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){var u=0,p=0;c.globals.seriesPercent.forEach((function(t,e){t[g]&&u++,e0&&(a=this.seriesLen*a/u),e=n+a*this.visibleI,e-=a*p}else e=n+a*this.visibleI;this.isFunnel&&(r-=(this.barHelpers.getXForValue(this.series[d][g],r)-r)/2),o=this.barHelpers.getXForValue(this.series[d][g],r);var f=this.barHelpers.getBarpaths({barYPosition:e,barHeight:a,x1:r,x2:o,strokeWidth:s,series:this.series,realIndex:i.realIndex,i:d,j:g,w:c});return c.globals.isXNumeric||(n+=l),this.barHelpers.barBackground({j:g,i:d,y1:e-a*this.visibleI,y2:a*this.seriesLen,elSeries:h}),{pathTo:f.pathTo,pathFrom:f.pathFrom,x1:r,x:o,y:n,goalX:this.barHelpers.getGoalValues("x",r,null,d,g),barYPosition:e,barHeight:a}}},{key:"drawColumnPaths",value:function(t){var e,i=t.indexes,a=t.x,s=t.y,r=t.xDivision,o=t.barWidth,n=t.zeroH,l=t.strokeWidth,h=t.elSeries,c=this.w,d=i.realIndex,g=i.translationsIndex,u=i.i,p=i.j,f=i.bc;if(c.globals.isXNumeric){var x=this.getBarXForNumericXAxis({x:a,j:p,realIndex:d,barWidth:o});a=x.x,e=x.barXPosition}else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){var b=this.barHelpers.getZeroValueEncounters({i:u,j:p}),v=b.nonZeroColumns,m=b.zeroEncounters;v>0&&(o=this.seriesLen*o/v),e=a+o*this.visibleI,e-=o*m}else e=a+o*this.visibleI;s=this.barHelpers.getYForValue(this.series[u][p],n,g);var y=this.barHelpers.getColumnPaths({barXPosition:e,barWidth:o,y1:n,y2:s,strokeWidth:l,series:this.series,realIndex:d,i:u,j:p,w:c});return c.globals.isXNumeric||(a+=r),this.barHelpers.barBackground({bc:f,j:p,i:u,x1:e-l/2-o*this.visibleI,x2:o*this.seriesLen+l/2,elSeries:h}),{pathTo:y.pathTo,pathFrom:y.pathFrom,x:a,y:s,goalY:this.barHelpers.getGoalValues("y",null,n,u,p,g),barXPosition:e,barWidth:o}}},{key:"getBarXForNumericXAxis",value:function(t){var e=t.x,i=t.barWidth,a=t.realIndex,s=t.j,r=this.w,o=a;return r.globals.seriesX[a].length||(o=r.globals.maxValsInArrayIndex),r.globals.seriesX[o][s]&&(e=(r.globals.seriesX[o][s]-r.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:e+i*this.visibleI,x:e}}},{key:"getPreviousPath",value:function(t,e){for(var i,a=this.w,s=0;s0&&parseInt(r.realIndex,10)===parseInt(t,10)&&void 0!==a.globals.previousPaths[s].paths[e]&&(i=a.globals.previousPaths[s].paths[e].d)}return i}}]),t}(),At=function(t){h(i,kt);var e=u(i);function i(){return r(this,i),e.apply(this,arguments)}return n(i,[{key:"draw",value:function(t,e){var i=this,s=this.w;this.graphics=new w(this.ctx),this.bar=new kt(this.ctx,this.xyRatios);var r=new k(this.ctx,s);t=r.getLogSeries(t),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),"100%"===s.config.chart.stackType&&(t=s.globals.seriesPercent.slice()),this.series=t,this.barHelpers.initializeStackedPrevVars(this);for(var o=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),n=0,l=0,h=function(r,h){var c=void 0,d=void 0,g=void 0,u=void 0,p=-1;i.groupCtx=i,s.globals.seriesGroups.forEach((function(t,e){t.indexOf(s.globals.seriesNames[r])>-1&&(p=e)})),-1!==p&&(i.groupCtx=i[s.globals.seriesGroups[p]]);var f=[],x=[],b=s.globals.comboCharts?e[r]:r,m=0;i.yRatio.length>1&&(i.yaxisIndex=s.globals.seriesYAxisReverseMap[b][0],m=b),i.isReversed=s.config.yaxis[i.yaxisIndex]&&s.config.yaxis[i.yaxisIndex].reversed;var y=i.graphics.group({class:"apexcharts-series",seriesName:v.escapeString(s.globals.seriesNames[b]),rel:r+1,"data:realIndex":b});i.ctx.series.addCollapsedClassToSeries(y,b);var w=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":b}),k=i.graphics.group({class:"apexcharts-bar-goals-markers"}),A=0,S=0,C=i.initialPositions(n,l,c,d,g,u,m);l=C.y,A=C.barHeight,d=C.yDivision,u=C.zeroW,n=C.x,S=C.barWidth,c=C.xDivision,g=C.zeroH,s.globals.barHeight=A,s.globals.barWidth=S,i.barHelpers.initializeStackedXYVars(i),1===i.groupCtx.prevY.length&&i.groupCtx.prevY[0].every((function(t){return isNaN(t)}))&&(i.groupCtx.prevY[0]=i.groupCtx.prevY[0].map((function(t){return g})),i.groupCtx.prevYF[0]=i.groupCtx.prevYF[0].map((function(t){return 0})));for(var L=0;L1?(i=h.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:l*parseInt(h.config.plotOptions.bar.columnWidth,10)/100,-1===String(h.config.plotOptions.bar.columnWidth).indexOf("%")&&(l=parseInt(h.config.plotOptions.bar.columnWidth,10)),s=h.globals.gridHeight-this.baseLineY[o]-(this.isReversed?h.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[o]:0),t=h.globals.padHorizontal+(i-l)/2);var c=h.globals.barGroups.length?h.globals.barGroups.length:1;return{x:t,y:e,yDivision:a,xDivision:i,barHeight:n/c,barWidth:l/c,zeroH:s,zeroW:r}}},{key:"drawStackedBarPaths",value:function(t){for(var e,i=t.indexes,a=t.barHeight,s=t.strokeWidth,r=t.zeroW,o=t.x,n=t.y,l=t.groupIndex,h=t.seriesGroup,c=t.yDivision,d=t.elSeries,g=this.w,u=n+(-1!==l?l*a:0),p=i.i,f=i.j,x=i.translationsIndex,b=0,v=0;v0){var y=r;this.groupCtx.prevXVal[m-1][f]<0?y=this.series[p][f]>=0?this.groupCtx.prevX[m-1][f]+b-2*(this.isReversed?b:0):this.groupCtx.prevX[m-1][f]:this.groupCtx.prevXVal[m-1][f]>=0&&(y=this.series[p][f]>=0?this.groupCtx.prevX[m-1][f]:this.groupCtx.prevX[m-1][f]-b+2*(this.isReversed?b:0)),e=y}else e=r;o=null===this.series[p][f]?e:e+this.series[p][f]/this.invertedYRatio-2*(this.isReversed?this.series[p][f]/this.invertedYRatio:0);var w=this.barHelpers.getBarpaths({barYPosition:u,barHeight:a,x1:e,x2:o,strokeWidth:s,series:this.series,realIndex:i.realIndex,seriesGroup:h,i:p,j:f,w:g});return this.barHelpers.barBackground({j:f,i:p,y1:u,y2:a,elSeries:d}),n+=c,{pathTo:w.pathTo,pathFrom:w.pathFrom,goalX:this.barHelpers.getGoalValues("x",r,null,p,f,x),barYPosition:u,x:o,y:n}}},{key:"drawStackedColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.y,s=t.xDivision,r=t.barWidth,o=t.zeroH,n=t.groupIndex,l=t.seriesGroup,h=t.elSeries,c=this.w,d=e.i,g=e.j,u=e.bc,p=e.translationsIndex;if(c.globals.isXNumeric){var f=c.globals.seriesX[d][g];f||(f=0),i=(f-c.globals.minX)/this.xRatio-r/2,c.globals.barGroups.length&&(i=(f-c.globals.minX)/this.xRatio-r/2*c.globals.barGroups.length)}for(var x,b=i+(-1!==n?n*r:0),v=0,m=0;m0&&!c.globals.isXNumeric||y>0&&c.globals.isXNumeric&&c.globals.seriesX[d-1][g]===c.globals.seriesX[d][g]){var w,k,A,S=Math.min(this.yRatio.length+1,d+1);if(void 0!==this.groupCtx.prevY[y-1]&&this.groupCtx.prevY[y-1].length)for(var C=1;C=0?A-v+2*(this.isReversed?v:0):A;break}if((null===(I=this.groupCtx.prevYVal[y-P])||void 0===I?void 0:I[g])>=0){k=this.series[d][g]>=0?A:A+v-2*(this.isReversed?v:0);break}}void 0===k&&(k=c.globals.gridHeight),x=null!==(w=this.groupCtx.prevYF[0])&&void 0!==w&&w.every((function(t){return 0===t}))&&this.groupCtx.prevYF.slice(1,y).every((function(t){return t.every((function(t){return isNaN(t)}))}))?o:k}else x=o;a=this.series[d][g]?x-this.series[d][g]/this.yRatio[p]+2*(this.isReversed?this.series[d][g]/this.yRatio[p]:0):x;var T=this.barHelpers.getColumnPaths({barXPosition:b,barWidth:r,y1:x,y2:a,yRatio:this.yRatio[p],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:l,realIndex:e.realIndex,i:d,j:g,w:c});return this.barHelpers.barBackground({bc:u,j:g,i:d,x1:b,x2:r,elSeries:h}),i+=s,{pathTo:T.pathTo,pathFrom:T.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,o,d,g),barXPosition:b,x:c.globals.isXNumeric?i-s:i,y:a}}}]),i}(),St=function(t){h(i,kt);var e=u(i);function i(){return r(this,i),e.apply(this,arguments)}return n(i,[{key:"draw",value:function(t,e,i){var s=this,r=this.w,o=new w(this.ctx),n=r.globals.comboCharts?e:r.config.chart.type,l=new D(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=r.config.plotOptions.bar.horizontal;var h=new k(this.ctx,r);t=h.getLogSeries(t),this.series=t,this.yRatio=h.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);for(var c=o.group({class:"apexcharts-".concat(n,"-series apexcharts-plot-series")}),d=function(e){s.isBoxPlot="boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[e].type;var n,h,d,g,u=void 0,p=void 0,f=[],x=[],b=r.globals.comboCharts?i[e]:e,m=o.group({class:"apexcharts-series",seriesName:v.escapeString(r.globals.seriesNames[b]),rel:e+1,"data:realIndex":b});s.ctx.series.addCollapsedClassToSeries(m,b),t[e].length>0&&(s.visibleI=s.visibleI+1);var y,w,k=0;s.yRatio.length>1&&(s.yaxisIndex=r.globals.seriesYAxisReverseMap[b][0],k=b);var A=s.barHelpers.initialPositions();p=A.y,y=A.barHeight,h=A.yDivision,g=A.zeroW,u=A.x,w=A.barWidth,n=A.xDivision,d=A.zeroH,x.push(u+w/2);for(var S=o.group({class:"apexcharts-datalabels","data:realIndex":b}),C=function(i){var o=s.barHelpers.getStrokeWidth(e,i,b),c=null,v={indexes:{i:e,j:i,realIndex:b,translationsIndex:k},x:u,y:p,strokeWidth:o,elSeries:m};c=s.isHorizontal?s.drawHorizontalBoxPaths(a(a({},v),{},{yDivision:h,barHeight:y,zeroW:g})):s.drawVerticalBoxPaths(a(a({},v),{},{xDivision:n,barWidth:w,zeroH:d})),p=c.y,u=c.x,i>0&&x.push(u+w/2),f.push(p),c.pathTo.forEach((function(a,n){var h=!s.isBoxPlot&&s.candlestickOptions.wick.useFillColor?c.color[n]:r.globals.stroke.colors[e],d=l.fillPath({seriesNumber:b,dataPointIndex:i,color:c.color[n],value:t[e][i]});s.renderSeries({realIndex:b,pathFill:d,lineFill:h,j:i,i:e,pathFrom:c.pathFrom,pathTo:a,strokeWidth:o,elSeries:m,x:u,y:p,series:t,barHeight:y,barWidth:w,elDataLabelsWrap:S,visibleSeries:s.visibleI,type:r.config.chart.type})}))},L=0;Lb.c&&(d=!1);var y=Math.min(b.o,b.c),k=Math.max(b.o,b.c),A=b.m;n.globals.isXNumeric&&(i=(n.globals.seriesX[x][c]-n.globals.minX)/this.xRatio-s/2);var S=i+s*this.visibleI;void 0===this.series[h][c]||null===this.series[h][c]?(y=r,k=r):(y=r-y/f,k=r-k/f,v=r-b.h/f,m=r-b.l/f,A=r-b.m/f);var C=l.move(S,r),L=l.move(S+s/2,y);return n.globals.previousPaths.length>0&&(L=this.getPreviousPath(x,c,!0)),C=this.isBoxPlot?[l.move(S,y)+l.line(S+s/2,y)+l.line(S+s/2,v)+l.line(S+s/4,v)+l.line(S+s-s/4,v)+l.line(S+s/2,v)+l.line(S+s/2,y)+l.line(S+s,y)+l.line(S+s,A)+l.line(S,A)+l.line(S,y+o/2),l.move(S,A)+l.line(S+s,A)+l.line(S+s,k)+l.line(S+s/2,k)+l.line(S+s/2,m)+l.line(S+s-s/4,m)+l.line(S+s/4,m)+l.line(S+s/2,m)+l.line(S+s/2,k)+l.line(S,k)+l.line(S,A)+"z"]:[l.move(S,k)+l.line(S+s/2,k)+l.line(S+s/2,v)+l.line(S+s/2,k)+l.line(S+s,k)+l.line(S+s,y)+l.line(S+s/2,y)+l.line(S+s/2,m)+l.line(S+s/2,y)+l.line(S,y)+l.line(S,k-o/2)],L+=l.move(S,y),n.globals.isXNumeric||(i+=a),{pathTo:C,pathFrom:L,x:i,y:k,barXPosition:S,color:this.isBoxPlot?p:d?[g]:[u]}}},{key:"drawHorizontalBoxPaths",value:function(t){var e=t.indexes;t.x;var i=t.y,a=t.yDivision,s=t.barHeight,r=t.zeroW,o=t.strokeWidth,n=this.w,l=new w(this.ctx),h=e.i,c=e.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.invertedYRatio,u=e.realIndex,p=this.getOHLCValue(u,c),f=r,x=r,b=Math.min(p.o,p.c),v=Math.max(p.o,p.c),m=p.m;n.globals.isXNumeric&&(i=(n.globals.seriesX[u][c]-n.globals.minX)/this.invertedXRatio-s/2);var y=i+s*this.visibleI;void 0===this.series[h][c]||null===this.series[h][c]?(b=r,v=r):(b=r+b/g,v=r+v/g,f=r+p.h/g,x=r+p.l/g,m=r+p.m/g);var k=l.move(r,y),A=l.move(b,y+s/2);return n.globals.previousPaths.length>0&&(A=this.getPreviousPath(u,c,!0)),k=[l.move(b,y)+l.line(b,y+s/2)+l.line(f,y+s/2)+l.line(f,y+s/2-s/4)+l.line(f,y+s/2+s/4)+l.line(f,y+s/2)+l.line(b,y+s/2)+l.line(b,y+s)+l.line(m,y+s)+l.line(m,y)+l.line(b+o/2,y),l.move(m,y)+l.line(m,y+s)+l.line(v,y+s)+l.line(v,y+s/2)+l.line(x,y+s/2)+l.line(x,y+s-s/4)+l.line(x,y+s/4)+l.line(x,y+s/2)+l.line(v,y+s/2)+l.line(v,y)+l.line(m,y)+"z"],A+=l.move(b,y),n.globals.isXNumeric||(i+=a),{pathTo:k,pathFrom:A,x:v,y:i,barYPosition:y,color:d}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:this.isBoxPlot?i.globals.seriesCandleH[t][e]:i.globals.seriesCandleO[t][e],h:this.isBoxPlot?i.globals.seriesCandleO[t][e]:i.globals.seriesCandleH[t][e],m:i.globals.seriesCandleM[t][e],l:this.isBoxPlot?i.globals.seriesCandleC[t][e]:i.globals.seriesCandleL[t][e],c:this.isBoxPlot?i.globals.seriesCandleL[t][e]:i.globals.seriesCandleC[t][e]}}}]),i}(),Ct=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map((function(t,i){t.from<=0&&(e=!0)})),e}},{key:"getShadeColor",value:function(t,e,i,a){var s=this.w,r=1,o=s.config.plotOptions[t].shadeIntensity,n=this.determineColor(t,e,i);s.globals.hasNegs||a?r=s.config.plotOptions[t].reverseNegativeShade?n.percent<0?n.percent/100*(1.25*o):(1-n.percent/100)*(1.25*o):n.percent<=0?1-(1+n.percent/100)*o:(1-n.percent/100)*o:(r=1-n.percent/100,"treemap"===t&&(r=(1-n.percent/100)*(1.25*o)));var l=n.color,h=new v;return s.config.plotOptions[t].enableShades&&(l="dark"===this.w.config.theme.mode?v.hexToRgba(h.shadeColor(-1*r,n.color),s.config.fill.opacity):v.hexToRgba(h.shadeColor(r,n.color),s.config.fill.opacity)),{color:l,colorProps:n}}},{key:"determineColor",value:function(t,e,i){var a=this.w,s=a.globals.series[e][i],r=a.config.plotOptions[t],o=r.colorScale.inverse?i:e;r.distributed&&"treemap"===a.config.chart.type&&(o=i);var n=a.globals.colors[o],l=null,h=Math.min.apply(Math,f(a.globals.series[e])),c=Math.max.apply(Math,f(a.globals.series[e]));r.distributed||"heatmap"!==t||(h=a.globals.minY,c=a.globals.maxY),void 0!==r.colorScale.min&&(h=r.colorScale.mina.globals.maxY?r.colorScale.max:a.globals.maxY);var d=Math.abs(c)+Math.abs(h),g=100*s/(0===d?d-1e-6:d);return r.colorScale.ranges.length>0&&r.colorScale.ranges.map((function(t,e){if(s>=t.from&&s<=t.to){n=t.color,l=t.foreColor?t.foreColor:null,h=t.from,c=t.to;var i=Math.abs(c)+Math.abs(h);g=100*s/(0===i?i-1e-6:i)}})),{color:n,foreColor:l,percent:g}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,a=t.y,s=t.i,r=t.j,o=t.colorProps,n=t.fontSize,l=this.w.config.dataLabels,h=new w(this.ctx),c=new B(this.ctx),d=null;if(l.enabled){d=h.group({class:"apexcharts-data-labels"});var g=l.offsetX,u=l.offsetY,p=i+g,f=a+parseFloat(l.style.fontSize)/3+u;c.plotDataLabelsText({x:p,y:f,text:e,i:s,j:r,color:o.foreColor,parent:d,fontSize:n,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(t){var e=new w(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),t}(),Lt=function(){function t(e,i){r(this,t),this.ctx=e,this.w=e.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Ct(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return n(t,[{key:"draw",value:function(t){var e=this.w,i=new w(this.ctx),a=i.group({class:"apexcharts-heatmap"});a.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var s=e.globals.gridWidth/e.globals.dataPoints,r=e.globals.gridHeight/e.globals.series.length,o=0,n=!1;this.negRange=this.helpers.checkColorRange();var l=t.slice();e.config.yaxis[0].reversed&&(n=!0,l.reverse());for(var h=n?0:l.length-1;n?h=0;n?h++:h--){var c=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:v.escapeString(e.globals.seriesNames[h]),rel:h+1,"data:realIndex":h});if(this.ctx.series.addCollapsedClassToSeries(c,h),e.config.chart.dropShadow.enabled){var d=e.config.chart.dropShadow;new y(this.ctx).dropShadow(c,d,h)}for(var g=0,u=e.config.plotOptions.heatmap.shadeIntensity,p=0;p-1&&this.pieClicked(d),i.config.dataLabels.enabled){var A=m.x,S=m.y,C=100*u/this.fullAngle+"%";if(0!==u&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabelthis.fullAngle?e.endAngle=e.endAngle-(a+o):a+o=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(h=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(h)>this.fullAngle&&(h-=this.fullAngle);var c=Math.PI*(h-90)/180,d=i.centerX+r*Math.cos(l),g=i.centerY+r*Math.sin(l),u=i.centerX+r*Math.cos(c),p=i.centerY+r*Math.sin(c),f=v.polarToCartesian(i.centerX,i.centerY,i.donutSize,h),x=v.polarToCartesian(i.centerX,i.centerY,i.donutSize,n),b=s>180?1:0,m=["M",d,g,"A",r,r,0,b,1,u,p];return e="donut"===i.chartType?[].concat(m,["L",f.x,f.y,"A",i.donutSize,i.donutSize,0,b,0,x.x,x.y,"L",d,g,"z"]).join(" "):"pie"===i.chartType||"polarArea"===i.chartType?[].concat(m,["L",i.centerX,i.centerY,"L",d,g]).join(" "):[].concat(m).join(" "),o.roundPathCorners(e,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new q(this.ctx),a=new w(this.ctx),s=new Pt(this.ctx),r=a.group(),o=a.group(),n=i.niceScale(0,Math.ceil(this.maxY),0),l=n.result.reverse(),h=n.result.length;this.maxY=n.niceMax;for(var c=e.globals.radialSize,d=c/(h-1),g=0;g1&&t.total.show&&(s=t.total.color);var o=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),n=r.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,r),a||"function"!=typeof t.total.formatter||(i=t.total.formatter(r));var l=e===t.total.label;e=t.name.formatter(e,l,r),null!==o&&(o.textContent=e),null!==n&&(n.textContent=i),null!==o&&(o.style.fill=s)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,a=t.getAttribute("data:value"),s=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,s,a,t);var r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==r&&(r.style.opacity=1)}},{key:"drawSpokes",value:function(t){var e=this,i=this.w,a=new w(this.ctx),s=i.config.plotOptions.polarArea.spokes;if(0!==s.strokeWidth){for(var r=[],o=360/i.globals.series.length,n=0;n1)o&&!e.total.showAlways?l({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(e,e.total.label,e.total.formatter(s));else if(l({makeSliceOut:!1,printLabel:!0}),!o)if(s.globals.selectedDataPoints.length&&s.globals.series.length>1)if(s.globals.selectedDataPoints[0].length>0){var h=s.globals.selectedDataPoints[0],c=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(h));this.printDataLabelsInner(c,e)}else r&&s.globals.selectedDataPoints.length&&0===s.globals.selectedDataPoints[0].length&&(r.style.opacity=0);else r&&s.globals.series.length>1&&(r.style.opacity=0)}}]),t}(),It=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var i=this.w;this.graphics=new w(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight0&&(f=e.getPreviousPath(n));for(var x=0;x=10?t.x>0?(i="start",a+=10):t.x<0&&(i="end",a-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?s-=10:t.y>0&&(s+=10)),{textAnchor:i,newX:a,newY:s}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,a=0;a0&&parseInt(s.realIndex,10)===parseInt(t,10)&&void 0!==e.globals.previousPaths[a].paths[0]&&(i=e.globals.previousPaths[a].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var a=[],s=0;s=360&&(g=360-Math.abs(this.startAngle)-.1);var u=i.drawPath({d:"",stroke:c,strokeWidth:o*parseInt(h.strokeWidth,10)/100,fill:"none",strokeOpacity:h.opacity,classes:"apexcharts-radialbar-area"});if(h.dropShadow.enabled){var p=h.dropShadow;s.dropShadow(u,p)}l.add(u),u.attr("id","apexcharts-radialbarTrack-"+n),this.animatePaths(u,{centerX:t.centerX,centerY:t.centerY,endAngle:g,startAngle:d,size:t.size,i:n,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return a}},{key:"drawArcs",value:function(t){var e=this.w,i=new w(this.ctx),a=new D(this.ctx),s=new y(this.ctx),r=i.group(),o=this.getStrokeWidth(t);t.size=t.size-o/2;var n=e.config.plotOptions.radialBar.hollow.background,l=t.size-o*t.series.length-this.margin*t.series.length-o*parseInt(e.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,h=l-e.config.plotOptions.radialBar.hollow.margin;void 0!==e.config.plotOptions.radialBar.hollow.image&&(n=this.drawHollowImage(t,r,l,n));var c=this.drawHollow({size:h,centerX:t.centerX,centerY:t.centerY,fill:n||"transparent"});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=e.config.plotOptions.radialBar.hollow.dropShadow;s.dropShadow(c,d)}var g=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(g=0);var u=null;this.radialDataLabels.show&&(u=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:g})),"back"===e.config.plotOptions.radialBar.hollow.position&&(r.add(c),u&&r.add(u));var p=!1;e.config.plotOptions.radialBar.inverseOrder&&(p=!0);for(var f=p?t.series.length-1:0;p?f>=0:f100?100:t.series[f])/100,S=Math.round(this.totalAngle*A)+this.startAngle,C=void 0;e.globals.dataChanged&&(k=this.startAngle,C=Math.round(this.totalAngle*v.negToZero(e.globals.previousPaths[f])/100)+k),Math.abs(S)+Math.abs(m)>=360&&(S-=.01),Math.abs(C)+Math.abs(k)>=360&&(C-=.01);var L=S-m,P=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[f]:e.config.stroke.dashArray,M=i.drawPath({d:"",stroke:b,strokeWidth:o,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+f,strokeDashArray:P});if(w.setAttrs(M.node,{"data:angle":L,"data:value":t.series[f]}),e.config.chart.dropShadow.enabled){var I=e.config.chart.dropShadow;s.dropShadow(M,I,f)}if(s.setSelectionFilter(M,0,f),this.addListeners(M,this.radialDataLabels),x.add(M),M.attr({index:0,j:f}),this.barLabels.enabled){var T=v.polarToCartesian(t.centerX,t.centerY,t.size,m),z=this.barLabels.formatter(e.globals.seriesNames[f],{seriesIndex:f,w:e}),X=["apexcharts-radialbar-label"];this.barLabels.onClick||X.push("apexcharts-no-click");var E=this.barLabels.useSeriesColors?e.globals.colors[f]:e.config.chart.foreColor;E||(E=e.config.chart.foreColor);var Y=T.x-this.barLabels.margin,R=T.y,F=i.drawText({x:Y,y:R,text:z,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:E,cssClass:X.join(" ")});F.on("click",this.onBarLabelClick),F.attr({rel:f+1}),0!==m&&F.attr({"transform-origin":"".concat(Y," ").concat(R),transform:"rotate(".concat(m," 0 0)")}),x.add(F)}var O=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(O=e.config.chart.animations.speed),e.globals.dataChanged&&(O=e.config.chart.animations.dynamicAnimation.speed),this.animDur=O/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(M,{centerX:t.centerX,centerY:t.centerY,endAngle:S,startAngle:m,prevEndAngle:C,prevStartAngle:k,size:t.size,i:f,totalItems:2,animBeginArr:this.animBeginArr,dur:O,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:r,elHollow:c,dataLabels:u}}},{key:"drawHollow",value:function(t){var e=new w(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}},{key:"drawHollowImage",value:function(t,e,i,a){var s=this.w,r=new D(this.ctx),o=v.randomId(),n=s.config.plotOptions.radialBar.hollow.image;if(s.config.plotOptions.radialBar.hollow.imageClipped)r.clippedImgArea({width:i,height:i,image:n,patternID:"pattern".concat(s.globals.cuid).concat(o)}),a="url(#pattern".concat(s.globals.cuid).concat(o,")");else{var l=s.config.plotOptions.radialBar.hollow.imageWidth,h=s.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===h){var c=s.globals.dom.Paper.image(n).loaded((function(e){this.move(t.centerX-e.width/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+s.config.plotOptions.radialBar.hollow.imageOffsetY)}));e.add(c)}else{var d=s.globals.dom.Paper.image(n).loaded((function(e){this.move(t.centerX-l/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-h/2+s.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,h)}));e.add(d)}}return a}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size,10))/100/(t.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(t){var e=parseInt(t.target.getAttribute("rel"),10)-1,i=this.barLabels.onClick,a=this.w;i&&i(a.globals.seriesNames[e],{w:a,seriesIndex:e})}}]),i}(),zt=function(t){h(i,kt);var e=u(i);function i(){return r(this,i),e.apply(this,arguments)}return n(i,[{key:"draw",value:function(t,e){var i=this.w,s=new w(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var r=s.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o0&&(this.visibleI=this.visibleI+1);var x=0,b=0,m=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[p][0],m=p);var y=this.barHelpers.initialPositions();u=y.y,d=y.zeroW,g=y.x,b=y.barWidth,x=y.barHeight,n=y.xDivision,h=y.yDivision,c=y.zeroH;for(var k=s.group({class:"apexcharts-datalabels","data:realIndex":p}),A=s.group({class:"apexcharts-rangebar-goals-markers"}),S=0;S0}));return this.isHorizontal?(a=g.config.plotOptions.bar.rangeBarGroupRows?r+h*b:r+n*this.visibleI+h*b,v>-1&&!g.config.plotOptions.bar.rangeBarOverlap&&(u=g.globals.seriesRange[e][v].overlaps).indexOf(p)>-1&&(a=(n=d.barHeight/u.length)*this.visibleI+h*(100-parseInt(this.barOptions.barHeight,10))/100/2+n*(this.visibleI+u.indexOf(p))+h*b)):(b>-1&&(s=g.config.plotOptions.bar.rangeBarGroupRows?o+c*b:o+l*this.visibleI+c*b),v>-1&&!g.config.plotOptions.bar.rangeBarOverlap&&(u=g.globals.seriesRange[e][v].overlaps).indexOf(p)>-1&&(s=(l=d.barWidth/u.length)*this.visibleI+c*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+u.indexOf(p))+c*b)),{barYPosition:a,barXPosition:s,barHeight:n,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x,a=t.xDivision,s=t.barWidth,r=t.barXPosition,o=t.zeroH,n=this.w,l=e.i,h=e.j,c=this.yRatio[e.translationsIndex],d=e.realIndex,g=this.getRangeValue(d,h),u=Math.min(g.start,g.end),p=Math.max(g.start,g.end);void 0===this.series[l][h]||null===this.series[l][h]?u=o:(u=o-u/c,p=o-p/c);var f=Math.abs(p-u),x=this.barHelpers.getColumnPaths({barXPosition:r,barWidth:s,y1:u,y2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:e.realIndex,i:d,j:h,w:n});if(n.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:i,j:h,realIndex:d,barWidth:s});i=b.x,r=b.barXPosition}else i+=a;return{pathTo:x.pathTo,pathFrom:x.pathFrom,barHeight:f,x:i,y:p,goalY:this.barHelpers.getGoalValues("y",null,o,l,h,e.translationsIndex),barXPosition:r}}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,a=t.y1,s=t.y2,r=t.yDivision,o=t.barHeight,n=t.barYPosition,l=t.zeroW,h=this.w,c=l+a/this.invertedYRatio,d=l+s/this.invertedYRatio,g=Math.abs(d-c),u=this.barHelpers.getBarpaths({barYPosition:n,barHeight:o,x1:c,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:e.realIndex,realIndex:e.realIndex,j:e.j,w:h});return h.globals.isXNumeric||(i+=r),{pathTo:u.pathTo,pathFrom:u.pathFrom,barWidth:g,x:d,goalX:this.barHelpers.getGoalValues("x",l,null,e.realIndex,e.j),y:i}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}}]),i}(),Xt=function(){function t(e){r(this,t),this.w=e.w,this.lineCtx=e}return n(t,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if(("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[t])&&new k(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var a=e[t].slice();a[a.length-1]=a[a.length-1]+1e-6,e[t]=a}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,a=t.x,s=t.y,r=t.i,o=t.j,n=t.prevY,l=this.w,h=[],c=[];if(0===o){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),h.push(d),c.push(v.isNumber(e[r][0])?n+l.config.markers.offsetY:null),h.push(a+l.config.markers.offsetX),c.push(v.isNumber(e[r][o+1])?s+l.config.markers.offsetY:null)}else h.push(a+l.config.markers.offsetX),c.push(v.isNumber(e[r][o+1])?s+l.config.markers.offsetY:null);return{x:h,y:c}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,a=t.realIndex,s=this.w,r=0;r0&&parseInt(o.realIndex,10)===parseInt(a,10)&&("line"===o.type?(this.lineCtx.appendPathFrom=!1,e=s.globals.previousPaths[r].paths[0].d):"area"===o.type&&(this.lineCtx.appendPathFrom=!1,i=s.globals.previousPaths[r].paths[0].d,s.config.stroke.show&&s.globals.previousPaths[r].paths[1]&&(e=s.globals.previousPaths[r].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e,i,a,s=t.i,r=t.realIndex,o=t.series,n=t.prevY,l=t.lineYPosition,h=t.translationsIndex,c=this.w,d=c.config.chart.stacked&&!c.globals.comboCharts||c.config.chart.stacked&&c.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(e=this.w.config.series[r])||void 0===e?void 0:e.type)||"column"===(null===(i=this.w.config.series[r])||void 0===i?void 0:i.type));if(void 0!==(null===(a=o[s])||void 0===a?void 0:a[0]))n=(l=d&&s>0?this.lineCtx.prevSeriesY[s-1][0]:this.lineCtx.zeroY)-o[s][0]/this.lineCtx.yRatio[h]+2*(this.lineCtx.isReversed?o[s][0]/this.lineCtx.yRatio[h]:0);else if(d&&s>0&&void 0===o[s][0])for(var g=s-1;g>=0;g--)if(null!==o[g][0]&&void 0!==o[g][0]){n=l=this.lineCtx.prevSeriesY[g][0];break}return{prevY:n,lineYPosition:l}}}]),t}(),Et=function(t){var e=function(t){for(var e,i,a,s,r=function(t){for(var e=[],i=t[0],a=t[1],s=e[0]=Rt(i,a),r=1,o=t.length-1;r9&&(s=3*a/Math.sqrt(s),r[l]=s*e,r[l+1]=s*i);for(var h=0;h<=o;h++)s=(t[Math.min(o,h+1)][0]-t[Math.max(0,h-1)][0])/(6*(1+r[h]*r[h])),n.push([s||0,r[h]*s||0]);return n}(t),i=t[1],a=t[0],s=[],r=e[1],o=e[0];s.push(a,[a[0]+o[0],a[1]+o[1],i[0]-r[0],i[1]-r[1],i[0],i[1]]);for(var n=2,l=e.length;n1&&a[1].length<6){var s=a[0].length;a[1]=[2*a[0][s-2]-a[0][s-4],2*a[0][s-1]-a[0][s-3]].concat(a[1])}a[0]=a[0].slice(-2)}return a};function Rt(t,e){return(e[1]-t[1])/(e[0]-t[0])}var Ft=function(){function t(e,i,a){r(this,t),this.ctx=e,this.w=e.w,this.xyRatios=i,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||a,this.scatter=new W(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Xt(this),this.markers=new N(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return n(t,[{key:"draw",value:function(t,e,i,s){var r,o=this.w,n=new w(this.ctx),l=o.globals.comboCharts?e:o.config.chart.type,h=n.group({class:"apexcharts-".concat(l,"-series apexcharts-plot-series")}),c=new k(this.ctx,o);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=c.getLogSeries(t),this.yRatio=c.getLogYRatios(this.yRatio);for(var d=[],g=0;g1?u:0;this._initSerieVariables(t,g,u);var f=[],x=[],b=[],v=o.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,u),o.globals.isXNumeric&&o.globals.seriesX.length>0&&(v=(o.globals.seriesX[u][0]-o.globals.minX)/this.xRatio),b.push(v);var m,y=v,A=void 0,S=y,C=this.zeroY,L=this.zeroY;C=this.lineHelpers.determineFirstPrevY({i:g,realIndex:u,series:t,prevY:C,lineYPosition:0,translationsIndex:p}).prevY,"monotoneCubic"===o.config.stroke.curve&&null===t[g][0]?f.push(null):f.push(C),m=C,"rangeArea"===l&&(A=L=this.lineHelpers.determineFirstPrevY({i:g,realIndex:u,series:s,prevY:L,lineYPosition:0,translationsIndex:p}).prevY,x.push(null!==f[0]?L:null));var P=this._calculatePathsFrom({type:l,series:t,i:g,realIndex:u,translationsIndex:p,prevX:S,prevY:C,prevY2:L}),M=[f[0]],I=[x[0]],T={type:l,series:t,realIndex:u,translationsIndex:p,i:g,x:v,y:1,pX:y,pY:m,pathsFrom:P,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:b,yArrj:f,y2Arrj:x,seriesRangeEnd:s},z=this._iterateOverDataPoints(a(a({},T),{},{iterations:"rangeArea"===l?t[g].length-1:void 0,isRangeStart:!0}));if("rangeArea"===l){for(var X=this._calculatePathsFrom({series:s,i:g,realIndex:u,prevX:S,prevY:L}),E=this._iterateOverDataPoints(a(a({},T),{},{series:s,xArrj:[v],yArrj:M,y2Arrj:I,pY:A,areaPaths:z.areaPaths,pathsFrom:X,iterations:s[g].length-1,isRangeStart:!1})),Y=z.linePaths.length/2,R=0;R0;F--)h.add(d[F-1]);else for(var O=0;O1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[i],r=i),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.globals.gridHeight-this.baseLineY[r]-(this.isReversed?a.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[r]:0),this.areaBottomY=this.zeroY,(this.zeroY>a.globals.gridHeight||"end"===a.config.plotOptions.area.fillTo)&&(this.areaBottomY=a.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=s.group({class:"apexcharts-series",zIndex:void 0!==a.config.series[i].zIndex?a.config.series[i].zIndex:i,seriesName:v.escapeString(a.globals.seriesNames[i])}),this.elPointsMain=s.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=s.group({class:"apexcharts-datalabels","data:realIndex":i});var o=t[e].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":o,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,a,s,r=t.type,o=t.series,n=t.i,l=t.realIndex,h=t.translationsIndex,c=t.prevX,d=t.prevY,g=t.prevY2,u=this.w,p=new w(this.ctx);if(null===o[n][0]){for(var f=0;f0){var x=this.lineHelpers.checkPreviousPaths({pathFromLine:a,pathFromArea:s,realIndex:l});a=x.pathFromLine,s=x.pathFromArea}return{prevX:c,prevY:d,linePath:e,areaPath:i,pathFromLine:a,pathFromArea:s}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,s=t.i,r=t.paths,o=this.w,n=new w(this.ctx),l=new D(this.ctx);this.prevSeriesY.push(r.yArrj),o.globals.seriesXvalues[i]=r.xArrj,o.globals.seriesYvalues[i]=r.yArrj;var h=o.config.forecastDataPoints;if(h.count>0&&"rangeArea"!==e){var c=o.globals.seriesXvalues[i][o.globals.seriesXvalues[i].length-h.count-1],d=n.drawRect(c,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(d.node);var g=n.drawRect(0,0,c,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(g.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var u={i:s,realIndex:i,animationDelay:s,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if("area"===e)for(var p=l.fillPath({seriesNumber:i}),f=0;f0&&"rangeArea"!==e){var S=n.renderPaths(k);S.node.setAttribute("stroke-dasharray",h.dashArray),h.strokeWidth&&S.node.setAttribute("stroke-width",h.strokeWidth),this.elSeries.add(S),S.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),A.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){var e,i,a=this,s=t.type,r=t.series,o=t.iterations,n=t.realIndex,l=t.translationsIndex,h=t.i,c=t.x,d=t.y,g=t.pX,u=t.pY,p=t.pathsFrom,f=t.linePaths,x=t.areaPaths,b=t.seriesIndex,m=t.lineYPosition,y=t.xArrj,k=t.yArrj,A=t.y2Arrj,S=t.isRangeStart,C=t.seriesRangeEnd,L=this.w,P=new w(this.ctx),M=this.yRatio,I=p.prevY,T=p.linePath,z=p.areaPath,X=p.pathFromLine,E=p.pathFromArea,Y=v.isNumber(L.globals.minYArr[n])?L.globals.minYArr[n]:L.globals.minY;o||(o=L.globals.dataPoints>1?L.globals.dataPoints-1:L.globals.dataPoints);var R=function(t,e){return e-t/M[l]+2*(a.isReversed?t/M[l]:0)},F=d,O=L.config.chart.stacked&&!L.globals.comboCharts||L.config.chart.stacked&&L.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(e=this.w.config.series[n])||void 0===e?void 0:e.type)||"column"===(null===(i=this.w.config.series[n])||void 0===i?void 0:i.type)),H=L.config.stroke.curve;Array.isArray(H)&&(H=Array.isArray(b)?H[b[h]]:H[h]);for(var D,N=0,W=0;W0&&L.globals.collapsedSeries.length-1){e--;break}return e>=0?e:0}(h-1)][W+1]:this.zeroY,B?d=R(Y,m):(d=R(r[h][W+1],m),"rangeArea"===s&&(F=R(C[h][W+1],m))),y.push(c),!B||"smooth"!==L.config.stroke.curve&&"monotoneCubic"!==L.config.stroke.curve?(k.push(d),A.push(F)):(k.push(null),A.push(null));var V=this.lineHelpers.calculatePoints({series:r,x:c,y:d,realIndex:n,i:h,j:W,prevY:I}),j=this._createPaths({type:s,series:r,i:h,realIndex:n,j:W,x:c,y:d,y2:F,xArrj:y,yArrj:k,y2Arrj:A,pX:g,pY:u,pathState:N,segmentStartX:D,linePath:T,areaPath:z,linePaths:f,areaPaths:x,curve:H,isRangeStart:S});x=j.areaPaths,f=j.linePaths,g=j.pX,u=j.pY,N=j.pathState,D=j.segmentStartX,z=j.areaPath,T=j.linePath,!this.appendPathFrom||"monotoneCubic"===H&&"rangeArea"===s||(X+=P.line(c,this.zeroY),E+=P.line(c,this.zeroY)),this.handleNullDataPoints(r,V,h,W,n),this._handleMarkersAndLabels({type:s,pointsPos:V,i:h,j:W,realIndex:n,isRangeStart:S})}return{yArrj:k,xArrj:y,pathFromArea:E,areaPaths:x,pathFromLine:X,linePaths:f,linePath:T,areaPath:z}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.type,i=t.pointsPos,a=t.isRangeStart,s=t.i,r=t.j,o=t.realIndex,n=this.w,l=new B(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,r,{realIndex:o,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{n.globals.series[s].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var h=this.markers.plotChartMarkers(i,o,r+1);null!==h&&this.elPointsMain.add(h)}var c=l.drawDataLabel({type:e,isRangeStart:a,pos:i,i:o,j:r+1});null!==c&&this.elDataLabelsWrap.add(c)}},{key:"_createPaths",value:function(t){var e=t.type,i=t.series,a=t.i;t.realIndex;var s=t.j,r=t.x,o=t.y,n=t.xArrj,l=t.yArrj,h=t.y2,c=t.y2Arrj,d=t.pX,g=t.pY,u=t.pathState,p=t.segmentStartX,f=t.linePath,x=t.areaPath,b=t.linePaths,v=t.areaPaths,m=t.curve,y=t.isRangeStart;this.w;var k,A=new w(this.ctx),S=this.areaBottomY,C="rangeArea"===e,L="rangeArea"===e&&y;switch(m){case"monotoneCubic":var P=y?l:c;switch(u){case 0:if(null===P[s+1])break;u=1;case 1:if(!(C?n.length===i[a].length:s===i[a].length-2))break;case 2:var M=y?n:n.slice().reverse(),I=y?P:P.slice().reverse(),T=(k=I,M.map((function(t,e){return[t,k[e]]})).filter((function(t){return null!==t[1]}))),z=T.length>1?Et(T):T,X=[];C&&(L?v=T:X=v.reverse());var E=0,Y=0;if(function(t,e){for(var i=function(t){var e=[],i=0;return t.forEach((function(t){null!==t?i++:i>0&&(e.push(i),i=0)})),i>0&&e.push(i),e}(t),a=[],s=0,r=0;s4?(e+="C".concat(a[0],", ").concat(a[1]),e+=", ".concat(a[2],", ").concat(a[3]),e+=", ".concat(a[4],", ").concat(a[5])):s>2&&(e+="S".concat(a[0],", ").concat(a[1]),e+=", ".concat(a[2],", ").concat(a[3]))}return e}(t),i=Y,a=(Y+=t.length)-1;L?f=A.move(T[i][0],T[i][1])+e:C?f=A.move(X[i][0],X[i][1])+A.line(T[i][0],T[i][1])+e+A.line(X[a][0],X[a][1]):(f=A.move(T[i][0],T[i][1])+e,x=f+A.line(T[a][0],S)+A.line(T[i][0],S)+"z",v.push(x)),b.push(f)})),C&&E>1&&!L){var R=b.slice(E).reverse();b.splice(E),R.forEach((function(t){return b.push(t)}))}u=0}break;case"smooth":var F=.35*(r-d);if(null===i[a][s])u=0;else switch(u){case 0:if(p=d,f=L?A.move(d,c[s])+A.line(d,g):A.move(d,g),x=A.move(d,g),u=1,s=i[a].length-2&&(f+=L?A.curve(r,o,r,o,r,h)+A.move(r,h):A.move(r,o),x+=A.curve(r,o,r,o,r,S)+A.line(p,S)+"z",b.push(f),v.push(x))}}d=r,g=o;break;default:var D=function(t,e,i){var a=[];switch(t){case"stepline":a=A.line(e,null,"H")+A.line(null,i,"V");break;case"linestep":a=A.line(null,i,"V")+A.line(e,null,"H");break;case"straight":a=A.line(e,i)}return a};if(null===i[a][s])u=0;else switch(u){case 0:if(p=d,f=L?A.move(d,c[s])+A.line(d,g):A.move(d,g),x=A.move(d,g),u=1,s=i[a].length-2&&(f+=L?A.line(r,h):A.move(r,o),x+=A.line(r,S)+A.line(p,S)+"z",b.push(f),v.push(x))}}d=r,g=o}return{linePaths:b,areaPaths:v,pX:d,pY:g,pathState:u,segmentStartX:p,linePath:f,areaPath:x}}},{key:"handleNullDataPoints",value:function(t,e,i,a,s){var r=this.w;if(null===t[i][a]&&r.config.markers.showNullDataPoints||1===t[i].length){var o=this.strokeWidth-r.config.markers.strokeWidth/2;o>0||(o=0);var n=this.markers.plotChartMarkers(e,s,a+1,o,!0);null!==n&&this.elPointsMain.add(n)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(e,i,a,s){this.xoffset=e,this.yoffset=i,this.height=s,this.width=a,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],a=this.xoffset,s=this.yoffset,o=r(t)/this.height,n=r(t)/this.width;if(this.width>=this.height)for(e=0;e=this.height){var a=e/this.height,s=this.width-a;i=new t(this.xoffset+a,this.yoffset,s,this.height)}else{var r=e/this.width,o=this.height-r;i=new t(this.xoffset,this.yoffset+r,this.width,o)}return i}}function e(e,a,s,o,n){o=void 0===o?0:o,n=void 0===n?0:n;var l=i(function(t,e){var i,a=[],s=e/r(t);for(i=0;i=a(s,i))}(e,l=t[0],n)?(e.push(l),i(t.slice(1),e,s,o)):(h=s.cutArea(r(e),o),o.push(s.getCoordinates(e)),i(t,[],h,o)),o;o.push(s.getCoordinates(e))}function a(t,e){var i=Math.min.apply(Math,t),a=Math.max.apply(Math,t),s=r(t);return Math.max(Math.pow(e,2)*a/Math.pow(s,2),Math.pow(s,2)/(Math.pow(e,2)*i))}function s(t){return t&&t.constructor===Array}function r(t){var e,i=0;for(e=0;er-a&&l.width<=o-s){var h=n.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(h.x," ").concat(h.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(t,e,i,a,s,r){var o=new w(this.ctx),n=o.getTextRects(t,e).width+this.w.config.stroke.width+5>s-i&&r-a>s-i?r-a:s-i,l=o.getTextBasedOnMaxWidth({text:t,maxWidth:n,fontSize:e});return t.length!==l.length&&n/e<5?"":l}},{key:"animateTreemap",value:function(t,e,i,a){var s=new m(this.ctx);s.animateRect(t,{x:e.x,y:e.y,width:e.width,height:e.height},{x:i.x,y:i.y,width:i.width,height:i.height},a,(function(){s.animationCompleted(t)}))}}]),t}(),Nt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return n(t,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,s=this.w;if(s.globals.allSeriesCollapsed)return s.globals.labels=[],s.globals.timescaleLabels=[],[];var r=new C(this.ctx),o=(e-t)/864e5;this.determineInterval(o),s.globals.disableZoomIn=!1,s.globals.disableZoomOut=!1,o<.00011574074074074075?s.globals.disableZoomIn=!0:o>5e4&&(s.globals.disableZoomOut=!0);var n=r.getTimeUnitsfromTimestamp(t,e,this.utc),l=s.globals.gridWidth/o,h=l/24,c=h/60,d=c/60,g=Math.floor(24*o),u=Math.floor(1440*o),p=Math.floor(86400*o),f=Math.floor(o),x=Math.floor(o/30),b=Math.floor(o/365),v={minMillisecond:n.minMillisecond,minSecond:n.minSecond,minMinute:n.minMinute,minHour:n.minHour,minDate:n.minDate,minMonth:n.minMonth,minYear:n.minYear},m={firstVal:v,currentMillisecond:v.minMillisecond,currentSecond:v.minSecond,currentMinute:v.minMinute,currentHour:v.minHour,currentMonthDate:v.minDate,currentDate:v.minDate,currentMonth:v.minMonth,currentYear:v.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:h,minutesWidthOnXAxis:c,secondsWidthOnXAxis:d,numberOfSeconds:p,numberOfMinutes:u,numberOfHours:g,numberOfDays:f,numberOfMonths:x,numberOfYears:b};switch(this.tickInterval){case"years":this.generateYearScale(m);break;case"months":case"half_year":this.generateMonthScale(m);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(m);break;case"hours":this.generateHourScale(m);break;case"minutes_fives":case"minutes":this.generateMinuteScale(m);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(m)}var y=this.timeScaleArray.map((function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day?t.day:1,hour:t.hour?t.hour:0,month:t.month+1};return"month"===t.unit?a(a({},e),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?a(a({},e),{},{value:t.value}):"minute"===t.unit?a(a({},e),{},{value:t.value,minute:t.value}):"second"===t.unit?a(a({},e),{},{value:t.value,minute:t.minute,second:t.second}):t}));return y.filter((function(t){var e=1,a=Math.ceil(s.globals.gridWidth/120),r=t.value;void 0!==s.config.xaxis.tickAmount&&(a=s.config.xaxis.tickAmount),y.length>a&&(e=Math.floor(y.length/a));var o=!1,n=!1;switch(i.tickInterval){case"years":"year"===t.unit&&(o=!0);break;case"half_year":e=7,"year"===t.unit&&(o=!0);break;case"months":e=1,"year"===t.unit&&(o=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(o=!0),30===r&&(n=!0);break;case"months_days":e=10,"month"===t.unit&&(o=!0),30===r&&(n=!0);break;case"week_days":e=8,"month"===t.unit&&(o=!0);break;case"days":e=1,"month"===t.unit&&(o=!0);break;case"hours":"day"===t.unit&&(o=!0);break;case"minutes_fives":case"seconds_fives":r%5!=0&&(n=!0);break;case"seconds_tens":r%10!=0&&(n=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!n)return!0}else if((r%e==0||o)&&!n)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,a=this.formatDates(t),s=this.removeOverlappingTS(a);i.globals.timescaleLabels=s.slice(),new lt(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,a=t.currentYear,s=t.daysWidthOnXAxis,r=t.numberOfYears,o=e.minYear,n=0,l=new C(this.ctx),h="year";if(e.minDate>1||e.minMonth>0){var c=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);n=(l.determineDaysOfYear(e.minYear)-c+1)*s,o=e.minYear+1,this.timeScaleArray.push({position:n,value:o,unit:h,year:o,month:v.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:n,value:o,unit:h,year:a,month:v.monthMod(i+1)});for(var d=o,g=n,u=0;u1){l=(h.determineDaysOfMonths(a+1,e.minYear)-i+1)*r,n=v.monthMod(a+1);var g=s+d,u=v.monthMod(n),p=n;0===n&&(c="year",p=g,u=1,g+=d+=1),this.timeScaleArray.push({position:l,value:p,unit:c,year:g,month:u})}else this.timeScaleArray.push({position:l,value:n,unit:c,year:s,month:v.monthMod(a)});for(var f=n+1,x=l,b=0,m=1;bo.determineDaysOfMonths(e+1,i)?(h=1,n="month",g=e+=1,e):e},d=(24-e.minHour)*s,g=l,u=c(h,i,a);0===e.minHour&&1===e.minDate?(d=0,g=v.monthMod(e.minMonth),n="month",h=e.minDate):1!==e.minDate&&0===e.minHour&&0===e.minMinute&&(d=0,l=e.minDate,g=l,u=c(h=l,i,a)),this.timeScaleArray.push({position:d,value:g,unit:n,year:this._getYear(a,u,0),month:v.monthMod(u),day:h});for(var p=d,f=0;fn.determineDaysOfMonths(e+1,s)&&(f=1,e+=1),{month:e,date:f}},c=function(t,e){return t>n.determineDaysOfMonths(e+1,s)?e+=1:e},d=60-(e.minMinute+e.minSecond/60),g=d*r,u=e.minHour+1,p=u;60===d&&(g=0,p=u=e.minHour);var f=i;p>=24&&(p=0,f+=1,l="day");var x=h(f,a).month;x=c(f,x),this.timeScaleArray.push({position:g,value:u,unit:l,day:f,hour:p,year:s,month:v.monthMod(x)}),p++;for(var b=g,m=0;m=24&&(p=0,l="day",x=h(f+=1,x).month,x=c(f,x));var y=this._getYear(s,x,0);b=60*r+b;var w=0===p?f:p;this.timeScaleArray.push({position:b,value:w,unit:l,hour:p,day:f,year:y,month:v.monthMod(x)}),p++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,r=t.currentDate,o=t.currentMonth,n=t.currentYear,l=t.minutesWidthOnXAxis,h=t.secondsWidthOnXAxis,c=t.numberOfMinutes,d=a+1,g=r,u=o,p=n,f=s,x=(60-i-e/1e3)*h,b=0;b=60&&(d=0,24===(f+=1)&&(f=0)),this.timeScaleArray.push({position:x,value:d,unit:"minute",hour:f,minute:d,day:g,year:this._getYear(p,u,0),month:v.monthMod(u)}),x+=l,d++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,a=t.currentMinute,s=t.currentHour,r=t.currentDate,o=t.currentMonth,n=t.currentYear,l=t.secondsWidthOnXAxis,h=t.numberOfSeconds,c=i+1,d=a,g=r,u=o,p=n,f=s,x=(1e3-e)/1e3*l,b=0;b=60&&(c=0,++d>=60&&(d=0,24==++f&&(f=0))),this.timeScaleArray.push({position:x,value:c,unit:"second",hour:f,minute:d,second:c,day:g,year:this._getYear(p,u,0),month:v.monthMod(u)}),x+=l,c++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return 0===t.month&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),"day"===t.unit?i+="day"===t.unit?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),"hour"===t.unit?i+="hour"===t.unit?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),"minute"===t.unit?i+=":"+("0"+e).slice(-2):i+=":"+(t.minute?("0"+t.minute).slice(-2):"00"),"second"===t.unit?i+=":"+("0"+e).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map((function(t){var a=t.value.toString(),s=new C(e.ctx),r=e.createRawDateString(t,a),o=s.getDate(s.parseDate(r));if(e.utc||(o=s.getDate(s.parseDateWithTimezone(r))),void 0===i.config.xaxis.labels.format){var n="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(n=l.year),"month"===t.unit&&(n=l.month),"day"===t.unit&&(n=l.day),"hour"===t.unit&&(n=l.hour),"minute"===t.unit&&(n=l.minute),"second"===t.unit&&(n=l.second),a=s.formatDate(o,n)}else a=s.formatDate(o,i.config.xaxis.labels.format);return{dateString:r,position:t.position,value:a,unit:t.unit,year:t.year,month:t.month}}))}},{key:"removeOverlappingTS",value:function(t){var e,i=this,a=new w(this.ctx),s=!1;t.length>0&&t[0].value&&t.every((function(e){return e.value.length===t[0].value.length}))&&(s=!0,e=a.getTextRects(t[0].value).width);var r=0,o=t.map((function(o,n){if(n>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=s?e:a.getTextRects(t[r].value).width,h=t[r].position;return o.position>h+l+10?(r=n,o):null}return o}));return o.filter((function(t){return null!==t}))}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),t}(),Wt=function(){function t(e,i){r(this,t),this.ctx=i,this.w=i.w,this.el=e}return n(t,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,t.isBarHorizontal=("bar"===e.chart.type||"rangeBar"===e.chart.type||"boxPlot"===e.chart.type)&&e.plotOptions.bar.horizontal,t.chartClass=".apexcharts"+t.chartID,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),w.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background="dark"!==e.theme.mode||e.chart.background?e.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),w.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.dom.elLegendForeign.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,a=i.config,s=i.globals,r={series:[],i:[]},o={series:[],i:[]},n={series:[],i:[]},l={series:[],i:[]},h={series:[],i:[]},c={series:[],i:[]},d={series:[],i:[]},g={series:[],i:[]},u={series:[],seriesRangeEnd:[],i:[]},p=void 0!==a.chart.type?a.chart.type:"line",f=0;s.series.map((function(e,x){void 0!==t[x].type?"column"===t[x].type||"bar"===t[x].type?(h.series.push(e),h.i.push(x),i.globals.columnSeries=h.series,"bar"!==p&&(s.series.length>1&&a.plotOptions.bar.horizontal,f++)):"area"===t[x].type?(o.series.push(e),o.i.push(x),p!==t[x].type&&f++):"line"===t[x].type?(r.series.push(e),r.i.push(x),p!==t[x].type&&f++):"scatter"===t[x].type?(n.series.push(e),n.i.push(x)):"bubble"===t[x].type?(l.series.push(e),l.i.push(x),p!==t[x].type&&f++):"candlestick"===t[x].type?(c.series.push(e),c.i.push(x),p!==t[x].type&&f++):"boxPlot"===t[x].type?(d.series.push(e),d.i.push(x),p!==t[x].type&&f++):"rangeBar"===t[x].type?(g.series.push(e),g.i.push(x),p!==t[x].type&&f++):"rangeArea"===t[x].type&&(u.series.push(s.seriesRangeStart[x]),u.seriesRangeEnd.push(s.seriesRangeEnd[x]),u.i.push(x),p!==t[x].type&&f++):(r.series.push(e),r.i.push(x))})),s.comboCharts||(s.comboCharts=f>0);var x=new Ft(this.ctx,e),b=new St(this.ctx,e);this.ctx.pie=new Mt(this.ctx);var v=new Tt(this.ctx);this.ctx.rangeBar=new zt(this.ctx,e);var m=new It(this.ctx),y=[];if(s.comboCharts){if(o.series.length>0&&y.push(x.draw(o.series,"area",o.i)),h.series.length>0)if(i.config.chart.stacked){var w=new At(this.ctx,e);y.push(w.draw(h.series,h.i))}else this.ctx.bar=new kt(this.ctx,e),y.push(this.ctx.bar.draw(h.series,h.i));if(u.series.length>0&&y.push(x.draw(u.series,"rangeArea",u.i,u.seriesRangeEnd)),r.series.length>0&&y.push(x.draw(r.series,"line",r.i)),c.series.length>0&&y.push(b.draw(c.series,"candlestick",c.i)),d.series.length>0&&y.push(b.draw(d.series,"boxPlot",d.i)),g.series.length>0&&y.push(this.ctx.rangeBar.draw(g.series,g.i)),n.series.length>0){var k=new Ft(this.ctx,e,!0);y.push(k.draw(n.series,"scatter",n.i))}if(l.series.length>0){var A=new Ft(this.ctx,e,!0);y.push(A.draw(l.series,"bubble",l.i))}}else switch(a.chart.type){case"line":y=x.draw(s.series,"line");break;case"area":y=x.draw(s.series,"area");break;case"bar":a.chart.stacked?y=new At(this.ctx,e).draw(s.series):(this.ctx.bar=new kt(this.ctx,e),y=this.ctx.bar.draw(s.series));break;case"candlestick":y=new St(this.ctx,e).draw(s.series,"candlestick");break;case"boxPlot":y=new St(this.ctx,e).draw(s.series,a.chart.type);break;case"rangeBar":y=this.ctx.rangeBar.draw(s.series);break;case"rangeArea":y=x.draw(s.seriesRangeStart,"rangeArea",void 0,s.seriesRangeEnd);break;case"heatmap":y=new Lt(this.ctx,e).draw(s.series);break;case"treemap":y=new Dt(this.ctx,e).draw(s.series);break;case"pie":case"donut":case"polarArea":y=this.ctx.pie.draw(s.series);break;case"radialBar":y=v.draw(s.series);break;case"radar":y=m.draw(s.series);break;default:y=x.draw(s.series)}return y}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=v.getDimensions(this.el),a=e.chart.width.toString().split(/[0-9]+/g).pop();"%"===a?v.isNumber(i[0])&&(0===i[0].width&&(i=v.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width,10)/100):"px"!==a&&""!==a||(t.svgWidth=parseInt(e.chart.width,10));var s=e.chart.height.toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===s){var r=v.getDimensions(this.el.parentNode);t.svgHeight=r[1]*parseInt(e.chart.height,10)/100}else t.svgHeight=parseInt(e.chart.height,10);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth/1.2;if(t.svgWidth<0&&(t.svgWidth=0),t.svgHeight<0&&(t.svgHeight=0),w.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==s){var o=e.chart.sparkline.enabled?0:t.axisCharts?e.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+o+"px"}t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};w.setAttrs(t.dom.elGraphical.node,i)}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,a=t.config.chart.sparkline.enabled?1:15;a+=t.config.grid.padding.bottom,"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||!t.config.legend.show||t.config.legend.floating||(i=new ct(this.ctx).legendHelpers.getLegendBBox().clwh+10);var s=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),r=2.05*t.globals.radialSize;if(s&&!t.config.chart.sparkline.enabled&&0!==t.config.plotOptions.radialBar.startAngle){var o=v.getBoundingClientRect(s);r=o.bottom;var n=o.bottom-o.top;r=Math.max(2.05*t.globals.radialSize,n)}var l=r+e.translateY+i+a;e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",l),t.config.chart.height&&String(t.config.chart.height).indexOf("%")>0||(e.dom.elWrap.style.height=l+"px",w.setAttrs(e.dom.Paper.node,{height:l}),e.dom.Paper.node.parentNode.parentNode.style.minHeight=l+"px")}},{key:"coreCalculations",value:function(){new Z(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map((function(t){return[]}))},i=new O,a=this.w.globals;i.initGlobalVars(a),a.seriesXvalues=e(),a.seriesYvalues=e()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var t=null,e=this.w;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new tt(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new tt(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new Nt(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new k(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.w;if(e.config.chart.brush.enabled&&"function"!=typeof e.config.chart.events.selection){var i=Array.isArray(e.config.chart.brush.targets)?e.config.chart.brush.targets:[e.config.chart.brush.target];i.forEach((function(e){var i=ApexCharts.getChartByID(e);i.w.globals.brushSource=t.ctx,"function"!=typeof i.w.config.chart.events.zoomed&&(i.w.config.chart.events.zoomed=function(){t.updateSourceChart(i)}),"function"!=typeof i.w.config.chart.events.scrolled&&(i.w.config.chart.events.scrolled=function(){t.updateSourceChart(i)})})),e.config.chart.events.selection=function(t,e){i.forEach((function(t){ApexCharts.getChartByID(t).ctx.updateHelpers._updateOptions({xaxis:{min:e.xaxis.min,max:e.xaxis.max}},!1,!1,!1,!1)}))}}}}]),t}(),Bt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(n){var l=[e.ctx];r&&(l=e.ctx.getSyncedCharts()),e.ctx.w.globals.isExecCalled&&(l=[e.ctx],e.ctx.w.globals.isExecCalled=!1),l.forEach((function(r,h){var c=r.w;if(c.globals.shouldAnimate=a,i||(c.globals.resized=!0,c.globals.dataChanged=!0,a&&r.series.getPreviousPaths()),t&&"object"===s(t)&&(r.config=new F(t),t=k.extendArrayProps(r.config,t,c),r.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,c.config=v.extend(c.config,t),o&&(c.globals.lastXAxis=t.xaxis?v.clone(t.xaxis):[],c.globals.lastYAxis=t.yaxis?v.clone(t.yaxis):[],c.globals.initialConfig=v.extend({},c.config),c.globals.initialSeries=v.clone(c.config.series),t.series))){for(var d=0;d2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(s){var r,o=i.w;return o.globals.shouldAnimate=e,o.globals.dataChanged=!0,e&&i.ctx.series.getPreviousPaths(),o.globals.axisCharts?(0===(r=t.map((function(t,e){return i._extendSeries(t,e)}))).length&&(r=[{data:[]}]),o.config.series=r):o.config.series=t.slice(),a&&(o.globals.initialConfig.series=v.clone(o.config.series),o.globals.initialSeries=v.clone(o.config.series)),i.ctx.update().then((function(){s(i.ctx)}))}))}},{key:"_extendSeries",value:function(t,e){var i=this.w,s=i.config.series[e];return a(a({},i.config.series[e]),{},{name:t.name?t.name:null==s?void 0:s.name,color:t.color?t.color:null==s?void 0:s.color,type:t.type?t.type:null==s?void 0:s.type,group:t.group?t.group:null==s?void 0:s.group,data:t.data?t.data:null==s?void 0:s.data,zIndex:void 0!==t.zIndex?t.zIndex:e})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,a=null,s=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(e,"'], ").concat(s," circle[j='").concat(e,"'], ").concat(s," rect[j='").concat(e,"']")).members[0]:void 0===e&&(a=i.globals.dom.Paper.select("".concat(s," path[j='").concat(t,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(t)),a?(new w(this.ctx).pathMouseDown(a,null),a.node?a.node:null):null}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach((function(i){void 0!==t.xaxis[i]&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])})),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new R(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){return t.chart&&t.chart.stacked&&"100%"===t.chart.stackType&&(Array.isArray(t.yaxis)?t.yaxis.forEach((function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100})):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,a=i.globals.lastXAxis,s=i.globals.lastYAxis;t&&t.xaxis&&(a=t.xaxis),t&&t.yaxis&&(s=t.yaxis),i.config.xaxis.min=a.min,i.config.xaxis.max=a.max;i.config.yaxis.map((function(t,a){i.globals.zoomed||void 0!==s[a]?function(t){void 0!==s[t]&&(i.config.yaxis[t].min=s[t].min,i.config.yaxis[t].max=s[t].max)}(a):void 0!==e.ctx.opts.yaxis[a]&&(t.min=e.ctx.opts.yaxis[a].min,t.max=e.ctx.opts.yaxis[a].max)}))}}]),t}();Ot="undefined"!=typeof window?window:void 0,Ht=function(t,e){var i=(void 0!==this?this:t).SVG=function(t){if(i.supported)return t=new i.Doc(t),i.parser.draw||i.prepare(),t};if(i.ns="http://www.w3.org/2000/svg",i.xmlns="http://www.w3.org/2000/xmlns/",i.xlink="http://www.w3.org/1999/xlink",i.svgjs="http://svgjs.dev",i.supported=!0,!i.supported)return!1;i.did=1e3,i.eid=function(t){return"Svgjs"+d(t)+i.did++},i.create=function(t){var i=e.createElementNS(this.ns,t);return i.setAttribute("id",this.eid(t)),i},i.extend=function(){var t,e;e=(t=[].slice.call(arguments)).pop();for(var a=t.length-1;a>=0;a--)if(t[a])for(var s in e)t[a].prototype[s]=e[s];i.Set&&i.Set.inherit&&i.Set.inherit()},i.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,i.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&i.extend(e,t.extend),t.construct&&i.extend(t.parent||i.Container,t.construct),e},i.adopt=function(e){return e?e.instance?e.instance:((a="svg"==e.nodeName?e.parentNode instanceof t.SVGElement?new i.Nested:new i.Doc:"linearGradient"==e.nodeName?new i.Gradient("linear"):"radialGradient"==e.nodeName?new i.Gradient("radial"):i[d(e.nodeName)]?new(i[d(e.nodeName)]):new i.Element(e)).type=e.nodeName,a.node=e,e.instance=a,a instanceof i.Doc&&a.namespace().defs(),a.setData(JSON.parse(e.getAttribute("svgjs:data"))||{}),a):null;var a},i.prepare=function(){var t=e.getElementsByTagName("body")[0],a=(t?new i.Doc(t):i.adopt(e.documentElement).nested()).size(2,0);i.parser={body:t||e.documentElement,draw:a.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:a.polyline().node,path:a.path().node,native:i.create("svg")}},i.parser={native:i.create("svg")},e.addEventListener("DOMContentLoaded",(function(){i.parser.draw||i.prepare()}),!1),i.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},i.utils={map:function(t,e){for(var i=t.length,a=[],s=0;s1?1:t,new i.Color({r:~~(this.r+(this.destination.r-this.r)*t),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)})):this}}),i.Color.test=function(t){return t+="",i.regex.isHex.test(t)||i.regex.isRgb.test(t)},i.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},i.Color.isColor=function(t){return i.Color.isRgb(t)||i.Color.test(t)},i.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},i.extend(i.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(t){return t=t.valueOf(),Array.isArray(t)?t:this.split(t)}}),i.PointArray=function(t,e){i.Array.call(this,t,e||[[0,0]])},i.PointArray.prototype=new i.Array,i.PointArray.prototype.constructor=i.PointArray;for(var a={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]}},r="mlhvqtcsaz".split(""),o=0,n=r.length;ol);return r},bbox:function(){return i.parser.draw||i.prepare(),i.parser.path.setAttribute("d",this.toString()),i.parser.path.getBBox()}}),i.Number=i.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(i.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof i.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new i.Number(t),new i.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new i.Number(t),new i.Number(this-t,this.unit||t.unit)},times:function(t){return t=new i.Number(t),new i.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new i.Number(t),new i.Number(this/t,this.unit||t.unit)},to:function(t){var e=new i.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new i.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new i.Number(this.destination).minus(this).times(t).plus(this):this}}}),i.Element=i.invent({create:function(t){this._stroke=i.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var a=u(this,t,e);return this.width(new i.Number(a.width)).height(new i.Number(a.height))},clone:function(t){this.writeDataToDom();var e=x(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var t=this.attr("class");return null==t?[]:t.trim().split(i.regex.delimiter)},hasClass:function(t){return-1!=this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){var e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!=t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)},reference:function(t){return i.get(this.attr(t))},parent:function(e){var a=this;if(!a.node.parentNode)return null;if(a=i.adopt(a.node.parentNode),!e)return a;for(;a&&a.node instanceof t.SVGElement;){if("string"==typeof e?a.matches(e):a instanceof e)return a;if(!a.node.parentNode||"#document"==a.node.parentNode.nodeName)return null;a=i.adopt(a.node.parentNode)}},doc:function(){return this instanceof i.Doc?this:this.parent(i.Doc)},parents:function(t){var e=[],i=this;do{if(!(i=i.parent(t))||!i.node)break;e.push(i)}while(i.parent);return e},matches:function(t){return function(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)}(this.node,t)},native:function(){return this.node},svg:function(t){var a=e.createElement("svg");if(!(t&&this instanceof i.Parent))return a.appendChild(t=e.createElement("svg")),this.writeDataToDom(),t.appendChild(this.node.cloneNode(!0)),a.innerHTML.replace(/^/,"").replace(/<\/svg>$/,"");a.innerHTML=""+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var s=0,r=a.firstChild.childNodes.length;s":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},i.morph=function(t){return function(e,a){return new i.MorphObj(e,a).at(t)}},i.Situation=i.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new i.Number(t.duration).valueOf(),this.delay=new i.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),i.FX=i.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(t,e,a){"object"===s(t)&&(e=t.ease,a=t.delay,t=t.duration);var r=new i.Situation({duration:t||1e3,delay:a||0,ease:i.easing[e||"-"]||e});return this.queue(r),this},target:function(t){return t&&t instanceof i.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=t.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){t.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return("function"==typeof t||t instanceof i.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof i.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e=this.situation;if(e.init)return this;for(var a in e.animations){t=this.target()[a](),Array.isArray(t)||(t=[t]),Array.isArray(e.animations[a])||(e.animations[a]=[e.animations[a]]);for(var s=t.length;s--;)e.animations[a][s]instanceof i.Number&&(t[s]=new i.Number(t[s])),e.animations[a][s]=t[s].morph(e.animations[a][s])}for(var a in e.attrs)e.attrs[a]=new i.MorphObj(this.target().attr(a),e.attrs[a]);for(var a in e.styles)e.styles[a]=new i.MorphObj(this.target().style(a),e.styles[a]);return e.initialTransformation=this.target().matrixify(),e.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(t){var e=this.last();return this.target().on("finished.fx",(function i(a){a.detail.situation==e&&(t.call(this,e),this.off("finished.fx",i))})),this._callStart()},during:function(t){var e=this.last(),a=function(a){a.detail.situation==e&&t.call(this,a.detail.pos,i.morph(a.detail.pos),a.detail.eased,e)};return this.target().off("during.fx",a).on("during.fx",a),this.after((function(){this.off("during.fx",a)})),this._callStart()},afterAll:function(t){var e=function e(i){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){var e,i,a;t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(e=Math.max(this.absPos,0),i=Math.floor(e),!0===this.situation.loops||ithis.lastPos&&r<=s&&(this.situation.once[r].call(this.target(),this.pos,s),delete this.situation.once[r]);return this.active&&this.target().fire("during",{pos:this.pos,eased:s,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=s,this):this},eachAt:function(){var t,e=this,a=this.target(),s=this.situation;for(var r in s.animations)t=[].concat(s.animations[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a[r].apply(a,t);for(var r in s.attrs)t=[r].concat(s.attrs[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a.attr.apply(a,t);for(var r in s.styles)t=[r].concat(s.styles[r]).map((function(t){return"string"!=typeof t&&t.at?t.at(s.ease(e.pos),e.pos):t})),a.style.apply(a,t);if(s.transforms.length){t=s.initialTransformation,r=0;for(var o=s.transforms.length;r=0;--a)this[v[a]]=null!=t[v[a]]?t[v[a]]:e[v[a]]},extend:{extract:function(){var t=p(this,0,1);p(this,1,0);var e=180/Math.PI*Math.atan2(t.y,t.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(e*Math.PI/180)+this.f*Math.sin(e*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(e*Math.PI/180)+this.e*Math.sin(-e*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new i.Matrix(this)}},clone:function(){return new i.Matrix(this)},morph:function(t){return this.destination=new i.Matrix(t),this},multiply:function(t){return new i.Matrix(this.native().multiply(function(t){return t instanceof i.Matrix||(t=new i.Matrix(t)),t}(t).native()))},inverse:function(){return new i.Matrix(this.native().inverse())},translate:function(t,e){return new i.Matrix(this.native().translate(t||0,e||0))},native:function(){for(var t=i.parser.native.createSVGMatrix(),e=v.length-1;e>=0;e--)t[v[e]]=this[v[e]];return t},toString:function(){return"matrix("+b(this.a)+","+b(this.b)+","+b(this.c)+","+b(this.d)+","+b(this.e)+","+b(this.f)+")"}},parent:i.Element,construct:{ctm:function(){return new i.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof i.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new i.Matrix(e)}return new i.Matrix(this.node.getScreenCTM())}}}),i.Point=i.invent({create:function(t,e){var i;i=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===s(t)?{x:t.x,y:t.y}:null!=t?{x:t,y:null!=e?e:t}:{x:0,y:0},this.x=i.x,this.y=i.y},extend:{clone:function(){return new i.Point(this)},morph:function(t,e){return this.destination=new i.Point(t,e),this}}}),i.extend(i.Element,{point:function(t,e){return new i.Point(t,e).transform(this.screenCTM().inverse())}}),i.extend(i.Element,{attr:function(t,e,a){if(null==t){for(t={},a=(e=this.node.attributes).length-1;a>=0;a--)t[e[a].nodeName]=i.regex.isNumber.test(e[a].nodeValue)?parseFloat(e[a].nodeValue):e[a].nodeValue;return t}if("object"===s(t))for(var r in t)this.attr(r,t[r]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?i.defaults.attrs[t]:i.regex.isNumber.test(e)?parseFloat(e):e;"stroke-width"==t?this.attr("stroke",parseFloat(e)>0?this._stroke:null):"stroke"==t&&(this._stroke=e),"fill"!=t&&"stroke"!=t||(i.regex.isImage.test(e)&&(e=this.doc().defs().image(e,0,0)),e instanceof i.Image&&(e=this.doc().defs().pattern(0,0,(function(){this.add(e)})))),"number"==typeof e?e=new i.Number(e):i.Color.isColor(e)?e=new i.Color(e):Array.isArray(e)&&(e=new i.Array(e)),"leading"==t?this.leading&&this.leading(e):"string"==typeof a?this.node.setAttributeNS(a,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!=t&&"x"!=t||this.rebuild(t,e)}return this}}),i.extend(i.Element,{transform:function(t,e){var a;return"object"!==s(t)?(a=new i.Matrix(this).extract(),"string"==typeof t?a[t]:a):(a=new i.Matrix(this),e=!!e||!!t.relative,null!=t.a&&(a=e?a.multiply(new i.Matrix(t)):new i.Matrix(t)),this.attr("transform",a))}}),i.extend(i.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(i.regex.transforms).slice(0,-1).map((function(t){var e=t.trim().split("(");return[e[0],e[1].split(i.regex.delimiter).map((function(t){return parseFloat(t)}))]})).reduce((function(t,e){return"matrix"==e[0]?t.multiply(f(e[1])):t[e[0]].apply(t,e[1])}),new i.Matrix)},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t).untransform().transform(i.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),i.Transformation=i.invent({create:function(t,e){if(arguments.length>1&&"boolean"!=typeof e)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(t))for(var i=0,a=this.arguments.length;i=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return i.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){for(var a=this.children(),s=0,r=a.length;s=0;a--)e.childNodes[a]instanceof t.SVGElement&&x(e.childNodes[a]);return i.adopt(e).id(i.eid(e.nodeName))}function b(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach((function(t){var e={};e[t]=function(e){if(void 0===e)return this;if("string"==typeof e||i.Color.isRgb(e)||e&&"function"==typeof e.fill)this.attr(t,e);else for(var a=l[t].length-1;a>=0;a--)null!=e[l[t][a]]&&this.attr(l.prefix(t,l[t][a]),e[l[t][a]]);return this},i.extend(i.Element,i.FX,e)})),i.extend(i.Element,i.FX,{translate:function(t,e){return this.transform({x:t,y:e})},matrix:function(t){return this.attr("transform",new i.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new i.Number(t).plus(this instanceof i.FX?0:this.x()),!0)},dy:function(t){return this.y(new i.Number(t).plus(this instanceof i.FX?0:this.y()),!0)}}),i.extend(i.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),i.Set=i.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){for(var t=[].slice.call(arguments),e=0,i=t.length;e-1&&this.members.splice(e,1),this},each:function(t){for(var e=0,i=this.members.length;e=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(t){return new i.Set(t)}}}),i.FX.Set=i.invent({create:function(t){this.set=t}}),i.Set.inherit=function(){var t=[];for(var e in i.Shape.prototype)"function"==typeof i.Shape.prototype[e]&&"function"!=typeof i.Set.prototype[e]&&t.push(e);for(var e in t.forEach((function(t){i.Set.prototype[t]=function(){for(var e=0,a=this.members.length;e=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),i.get=function(t){var a=e.getElementById(function(t){var e=(t||"").toString().match(i.regex.reference);if(e)return e[1]}(t)||t);return i.adopt(a)},i.select=function(t,a){return new i.Set(i.utils.map((a||e).querySelectorAll(t),(function(t){return i.adopt(t)})))},i.extend(i.Parent,{select:function(t){return i.select(t,this.node)}});var v="abcdef".split("");if("function"!=typeof t.CustomEvent){var m=function(t,i){i=i||{bubbles:!1,cancelable:!1,detail:void 0};var a=e.createEvent("CustomEvent");return a.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),a};m.prototype=t.Event.prototype,i.CustomEvent=m}else i.CustomEvent=t.CustomEvent;return i},"object"===s(e)?t.exports=Ot.document?Ht(Ot,Ot.document):function(t){return Ht(t,t.document)}:Ot.SVG=Ht(Ot,Ot.document), +/*! svg.filter.js - v2.0.2 - 2016-02-24 + * https://github.com/wout/svg.filter.js + * Copyright (c) 2016 Wout Fierens; Licensed MIT */ +function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(t,e){return this.add(t,e),!t.attr("in")&&this.autoSetIn&&t.attr("in",this.source),t.attr("result")||t.attr("result",t),t},blend:function(t,e,i){return this.put(new SVG.BlendEffect(t,e,i))},colorMatrix:function(t,e){return this.put(new SVG.ColorMatrixEffect(t,e))},convolveMatrix:function(t){return this.put(new SVG.ConvolveMatrixEffect(t))},componentTransfer:function(t){return this.put(new SVG.ComponentTransferEffect(t))},composite:function(t,e,i){return this.put(new SVG.CompositeEffect(t,e,i))},flood:function(t,e){return this.put(new SVG.FloodEffect(t,e))},offset:function(t,e){return this.put(new SVG.OffsetEffect(t,e))},image:function(t){return this.put(new SVG.ImageEffect(t))},merge:function(){var t=[void 0];for(var e in arguments)t.push(arguments[e]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,t)))},gaussianBlur:function(t,e){return this.put(new SVG.GaussianBlurEffect(t,e))},morphology:function(t,e){return this.put(new SVG.MorphologyEffect(t,e))},diffuseLighting:function(t,e,i){return this.put(new SVG.DiffuseLightingEffect(t,e,i))},displacementMap:function(t,e,i,a,s){return this.put(new SVG.DisplacementMapEffect(t,e,i,a,s))},specularLighting:function(t,e,i,a){return this.put(new SVG.SpecularLightingEffect(t,e,i,a))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(t,e,i,a,s){return this.put(new SVG.TurbulenceEffect(t,e,i,a,s))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(t){var e=this.put(new SVG.Filter);return"function"==typeof t&&t.call(e,e),e}}),SVG.extend(SVG.Container,{filter:function(t){return this.defs().filter(t)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(t){return this.filterer=t instanceof SVG.Element?t:this.doc().filter(t),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(t){return this.filterer&&!0===t&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(t){return null==t?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",t)},result:function(t){return null==t?this.attr("result"):this.attr("result",t)},toString:function(){return this.result()}}});var t={blend:function(t,e){return this.parent()&&this.parent().blend(this,t,e)},colorMatrix:function(t,e){return this.parent()&&this.parent().colorMatrix(t,e).in(this)},convolveMatrix:function(t){return this.parent()&&this.parent().convolveMatrix(t).in(this)},componentTransfer:function(t){return this.parent()&&this.parent().componentTransfer(t).in(this)},composite:function(t,e){return this.parent()&&this.parent().composite(this,t,e)},flood:function(t,e){return this.parent()&&this.parent().flood(t,e)},offset:function(t,e){return this.parent()&&this.parent().offset(t,e).in(this)},image:function(t){return this.parent()&&this.parent().image(t)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(t,e){return this.parent()&&this.parent().gaussianBlur(t,e).in(this)},morphology:function(t,e){return this.parent()&&this.parent().morphology(t,e).in(this)},diffuseLighting:function(t,e,i){return this.parent()&&this.parent().diffuseLighting(t,e,i).in(this)},displacementMap:function(t,e,i,a){return this.parent()&&this.parent().displacementMap(this,t,e,i,a)},specularLighting:function(t,e,i,a){return this.parent()&&this.parent().specularLighting(t,e,i,a).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(t,e,i,a,s){return this.parent()&&this.parent().turbulence(t,e,i,a,s).in(this)}};SVG.extend(SVG.Effect,t),SVG.extend(SVG.ParentEffect,t),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(t){this.attr("in",t)}}});var e={blend:function(t,e,i){this.attr({in:t,in2:e,mode:i||"normal"})},colorMatrix:function(t,e){"matrix"==t&&(e=s(e)),this.attr({type:t,values:void 0===e?null:e})},convolveMatrix:function(t){t=s(t),this.attr({order:Math.sqrt(t.split(" ").length),kernelMatrix:t})},composite:function(t,e,i){this.attr({in:t,in2:e,operator:i})},flood:function(t,e){this.attr("flood-color",t),null!=e&&this.attr("flood-opacity",e)},offset:function(t,e){this.attr({dx:t,dy:e})},image:function(t){this.attr("href",t,SVG.xlink)},displacementMap:function(t,e,i,a,s){this.attr({in:t,in2:e,scale:i,xChannelSelector:a,yChannelSelector:s})},gaussianBlur:function(t,e){null!=t||null!=e?this.attr("stdDeviation",function(t){if(!Array.isArray(t))return t;for(var e=0,i=t.length,a=[];e1&&(M*=a=Math.sqrt(a),I*=a),s=(new SVG.Matrix).rotate(T).scale(1/M,1/I).rotate(-T),R=R.transform(s),n=(r=[(F=F.transform(s)).x-R.x,F.y-R.y])[0]*r[0]+r[1]*r[1],o=Math.sqrt(n),r[0]/=o,r[1]/=o,l=n<4?Math.sqrt(1-n/4):0,z===X&&(l*=-1),h=new SVG.Point((F.x+R.x)/2+l*-r[1],(F.y+R.y)/2+l*r[0]),c=new SVG.Point(R.x-h.x,R.y-h.y),d=new SVG.Point(F.x-h.x,F.y-h.y),g=Math.acos(c.x/Math.sqrt(c.x*c.x+c.y*c.y)),c.y<0&&(g*=-1),u=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(u*=-1),X&&g>u&&(u+=2*Math.PI),!X&&gr.maxX-e.width&&(o=(a=r.maxX-e.width)-this.startPoints.box.x),null!=r.minY&&sr.maxY-e.height&&(n=(s=r.maxY-e.height)-this.startPoints.box.y),null!=r.snapToGrid&&(a-=a%r.snapToGrid,s-=s%r.snapToGrid,o-=o%r.snapToGrid,n-=n%r.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:n},!0):this.el.move(a,s));return i},t.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,i){"function"!=typeof e&&"object"!=typeof e||(i=e,e=!0);var a=this.remember("_draggable")||new t(this);return(e=void 0===e||e)?a.init(i||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function t(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,e,i){var a="string"!=typeof t?t:e[t];return i?a/2:a},this.pointCoords=function(t,e){var i=this.pointsList[t];return{x:this.pointCoord(i[0],e,"t"===t||"b"===t),y:this.pointCoord(i[1],e,"r"===t||"l"===t)}}}t.prototype.init=function(t,e){var i=this.el.bbox();this.options={};var a=this.el.selectize.defaults.points;for(var s in this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],void 0!==e[s]&&(this.options[s]=e[s]);var r=["points","pointsExclude"];for(var s in r){var o=this.options[r[s]];"string"==typeof o?o=o.length>0?o.split(/\s*,\s*/i):[]:"boolean"==typeof o&&"points"===r[s]&&(o=o?a:[]),this.options[r[s]]=o}this.options.points=[a,this.options.points].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(t,e){return t.filter((function(t){return e.indexOf(t)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},t.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},t.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map((function(e){return[e[0]-t.x,e[1]-t.y]}))},t.prototype.drawPoints=function(){for(var t=this,e=this.getPointArray(),i=0,a=e.length;i0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y+i[1]).size(this.parameters.box.width-i[0],this.parameters.box.height-i[1])}};break;case"rt":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).size(this.parameters.box.width+i[0],this.parameters.box.height-i[1])}};break;case"rb":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+i[0],this.parameters.box.height+i[1])}};break;case"lb":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i,!0),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).size(this.parameters.box.width-i[0],this.parameters.box.height+i[1])}};break;case"t":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).height(this.parameters.box.height-i[1])}};break;case"r":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+i[0])}};break;case"b":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+i[1])}};break;case"l":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).width(this.parameters.box.width-i[0])}};break;case"rot":this.calc=function(t,e){var i=t+this.parameters.p.x,a=e+this.parameters.p.y,s=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),r=Math.atan2(a-this.parameters.box.y-this.parameters.box.height/2,i-this.parameters.box.x-this.parameters.box.width/2),o=this.parameters.rotation+180*(r-s)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(o-o%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(t,e){var i=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),a=this.el.array().valueOf();a[this.parameters.i][0]=this.parameters.pointCoords[0]+i[0],a[this.parameters.i][1]=this.parameters.pointCoords[1]+i[1],this.el.plot(a)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"touchend.resize",(function(){e.done()})),SVG.on(window,"mousemove.resize",(function(t){e.update(t||window.event)})),SVG.on(window,"mouseup.resize",(function(){e.done()}))},t.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),a=i.x-this.parameters.p.x,s=i.y-this.parameters.p.y;this.lastUpdateCall=[a,s],this.calc(a,s),this.el.fire("resizing",{dx:a,dy:s,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},t.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},t.prototype.snapToGrid=function(t,e,i,a){var s;return void 0!==a?s=[(i+t)%this.options.snapToGrid,(a+e)%this.options.snapToGrid]:(i=null==i?3:i,s=[(this.parameters.box.x+t+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),t<0&&(s[0]-=this.options.snapToGrid),e<0&&(s[1]-=this.options.snapToGrid),t-=Math.abs(s[0])o.maxX&&(t=o.maxX-s),void 0!==o.minY&&r+eo.maxY&&(e=o.maxY-r),[t,e]},t.prototype.checkAspectRatio=function(t,e){if(!this.options.saveAspectRatio)return t;var i=t.slice(),a=this.parameters.box.width/this.parameters.box.height,s=this.parameters.box.width+t[0],r=this.parameters.box.height-t[1],o=s/r;return oa&&(i[0]=this.parameters.box.width-r*a,e&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new t(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var Gt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new m(this.ctx),this.ctx.axes=new Q(this.ctx),this.ctx.core=new Wt(this.ctx.el,this.ctx),this.ctx.config=new F({}),this.ctx.data=new V(this.ctx),this.ctx.grid=new U(this.ctx),this.ctx.graphics=new w(this.ctx),this.ctx.coreUtils=new k(this.ctx),this.ctx.crosshairs=new tt(this.ctx),this.ctx.events=new J(this.ctx),this.ctx.exports=new j(this.ctx),this.ctx.localization=new K(this.ctx),this.ctx.options=new z,this.ctx.responsive=new et(this.ctx),this.ctx.series=new G(this.ctx),this.ctx.theme=new it(this.ctx),this.ctx.formatters=new L(this.ctx),this.ctx.titleSubtitle=new at(this.ctx),this.ctx.legend=new ct(this.ctx),this.ctx.toolbar=new dt(this.ctx),this.ctx.tooltip=new mt(this.ctx),this.ctx.dimensions=new lt(this.ctx),this.ctx.updateHelpers=new Bt(this.ctx),this.ctx.zoomPanSelection=new gt(this.ctx),this.ctx.w.globals.tooltip=new mt(this.ctx)}}]),t}(),Vt=function(){function t(e){r(this,t),this.ctx=e,this.w=e.w}return n(t,[{key:"clear",value:function(t){var e=t.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:e})}},{key:"killSVG",value:function(t){t.each((function(t,e){this.removeClass("*"),this.off(),this.stop()}),!0),t.ungroup(),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=t.isUpdating,a=this.w.globals.dom.Paper.node;a.parentNode&&a.parentNode.parentNode&&!i&&(a.parentNode.parentNode.style.minHeight="unset");var s=this.w.globals.dom.baseEl;s&&this.ctx.eventList.forEach((function(t){s.removeEventListener(t,e.ctx.events.documentEvent)}));var r=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(r.Paper),r.Paper.remove(),r.elWrap=null,r.elGraphical=null,r.elLegendWrap=null,r.elLegendForeign=null,r.baseEl=null,r.elGridRect=null,r.elGridRectMask=null,r.elGridRectMarkerMask=null,r.elForecastMask=null,r.elNonForecastMask=null,r.elDefs=null}}]),t}(),jt=new WeakMap,_t=function(){function t(e,i){r(this,t),this.opts=i,this.ctx=this,this.w=new H(i).init(),this.el=e,this.w.globals.cuid=v.randomId(),this.w.globals.chartID=this.w.config.chart.id?v.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Gt(this).initModules(),this.create=v.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return n(t,[{key:"render",value:function(){var t=this;return new Promise((function(e,i){if(null!==t.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var a=t.w.config.chart.events.beforeMount;"function"==typeof a&&a(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),function(t,e){var i=!1;if(t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var a=t.getBoundingClientRect();"none"!==t.style.display&&0!==a.width||(i=!0)}var s=new ResizeObserver((function(a){i&&e.call(t,a),i=!0}));t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(t.children).forEach((function(t){return s.observe(t)})):s.observe(t),jt.set(e,s)}(t.el.parentNode,t.parentResizeHandler);var s=t.el.getRootNode&&t.el.getRootNode(),r=v.is("ShadowRoot",s),o=t.el.ownerDocument,n=r?s.getElementById("apexcharts-css"):o.getElementById("apexcharts-css");if(!n){var l;(n=document.createElement("style")).id="apexcharts-css",n.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n 0%,to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0,0,0,.5);\n box-shadow: 0 0 1px rgba(255,255,255,.5);\n -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\n.legend-mouseover-inactive {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255,255,255,.96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30,30,30,.8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0,0,0,.7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0;\n margin-right: 10px;\n border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-series-group-hidden {\n opacity: 0;\n height: 0;\n line-height: 0;\n padding: 0!important\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0,0,0,.7);\n border: 1px solid rgba(0,0,0,.5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0,0,0,.7);\n border: 1px solid rgba(0,0,0,.5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0,0,0,.5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_boundingRect,.svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0,0,0,.7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {\n opacity: 0\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {\n pointer-events: none\n}\n\n.apexcharts-marker {\n transition: .15s ease all\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,.resize-triggers,.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers{\n pointer-events: none\n}\n\n.apexcharts-bar-shadows{\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers{\n pointer-events: none\n}';var h=(null===(l=t.opts.chart)||void 0===l?void 0:l.nonce)||t.w.config.chart.nonce;h&&n.setAttribute("nonce",h),r?s.prepend(n):o.head.appendChild(n)}var c=t.create(t.w.config.series,{});if(!c)return e(t);t.mount(c).then((function(){"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(c)})).catch((function(t){i(t)}))}else i(new Error("Element not found"))}))}},{key:"create",value:function(t,e){var i=this.w;new Gt(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(e),i.config.xaxis.convertedCatToNumeric&&new R(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el)return a.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===a.svgWidth)return a.animationEnded=!0,null;var s=k.checkComboSeries(t,i.config.chart.type);a.comboCharts=s.comboCharts,a.comboBarCount=s.comboBarCount;var r=t.every((function(t){return t.data&&0===t.data.length}));(0===t.length||r&&a.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(t),this.theme.init(),new N(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new k(this).getLargestMarkerSize(),this.dimensions.plotCoords();var o=this.core.xySettings();this.grid.createGridMask();var n=this.core.plotChartType(t,o),l=new B(this);return l.bringForward(),i.config.dataLabels.background.enabled&&l.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:n,xyRatios:o,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,a=i.w;return new Promise((function(s,r){if(null===i.el)return r(new Error("Not enough data to display or target element not found"));(null===e||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new U(i);var o,n,l=i.grid.drawGrid();if(i.annotations=new X(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===a.config.grid.position&&(l&&a.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&a.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(e.elGraph))for(var h=0;h0&&a.globals.memory.methodsToExec.forEach((function(t){t.method(t.params,!1,t.context)})),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),s(i)}))}},{key:"destroy",value:function(){var t,e;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,t=this.parentResizeHandler,(e=jt.get(t))&&(e.disconnect(),jt.delete(t));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach((function(t,e){t.id===v.escapeString(i)&&Apex._chartInstances.splice(e,1)})),new Vt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w;return o.globals.selection=void 0,t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map((function(t,i){return e.updateHelpers._extendSeries(t,i)}))),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,a,s,r)}},{key:"updateSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.w.config.series.slice();return a.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,e,i)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var a=i.w.config.series.slice(),s=0;s0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(t,e,a)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(t,e,a)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(t,e,a)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Z(this.ctx).getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Z(this.ctx).getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new j(this.ctx).dataURI(t)}},{key:"exportToCSV",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new j(this.ctx).exportToCSV(t)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;"function"==typeof t&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=v.escapeString(t);if(Apex._chartInstances){var i=Apex._chartInstances.filter((function(t){return t.id===e}))[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),i=0;i2?s-2:0),o=2;ot.$theme.colorText}; + border-radius: 10px; + backdrop-filter: blur(6px); + background-color: ${t=>c(t.$theme.colorBgElevated).alpha(.8).toString()}; + box-shadow: ${t=>t.$thememode===d.Light?"rgba(145, 158, 171, 0.24) 0px 0px 2px 0px, rgba(145, 158, 171, 0.24) -20px 20px 40px -4px":"rgba(0, 0, 0, 0.24) 0px 0px 2px 0px, rgba(0, 0, 0, 0.24) -20px 20px 40px -4px;"}; + .apexcharts-tooltip-title { + text-align: center; + font-weight: bold; + background-color: rgba(145, 158, 171, 0.08); + } + } + + /* TOOLTIP X */ + .apexcharts-xaxistooltip { + color: ${t=>t.$theme.colorText}; + border-radius: 10px; + backdrop-filter: blur(6px); + border-color: transparent; + box-shadow: ${t=>t.$thememode===d.Light?"rgba(145, 158, 171, 0.24) 0px 0px 2px 0px, rgba(145, 158, 171, 0.24) -20px 20px 40px -4px":"rgba(0, 0, 0, 0.24) 0px 0px 2px 0px, rgba(0, 0, 0, 0.24) -20px 20px 40px -4px;"}; + background-color: ${t=>c(t.$theme.colorBgElevated).alpha(.8).toString()}; + &::before { + border-bottom-color: rgba(145, 158, 171, 0.24); + } + &::after { + border-bottom-color: rgba(255, 255, 255, 0.8); + } + } + + /* LEGEND */ + .apexcharts-legend { + padding: 0; + .apexcharts-legend-series { + display: inline-flex !important; + align-items: ecnter; + } + .apexcharts-legend-text { + line-height: 18px; + text-transform: capitalize; + } + } + } +`;const ft=s.memo((function(t){const{themeMode:e}=g(),i=n();return u.jsx(pt,{$thememode:e,$theme:i,children:u.jsx(at,{...t})})}));function xt({accountId:t,onOk:e,show:i}){const{data:a,isLoading:s}=G({queryKey:["shareInfo",t],queryFn:()=>S.getShareStatistic(t),enabled:i}),{t:r}=p(),o=function(t){const e=n(),i={show:!0,label:"Total",color:e.colorTextSecondary,fontSize:e.fontSizeHeading2,lineHeight:e.lineHeightHeading2},a={offsetY:8,color:e.colorText,fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3},s={colors:[e.colorPrimary,e.colorWarning,e.colorInfo,e.colorError,e.colorSuccess,e.colorWarningActive,e.colorSuccessActive,e.colorInfoActive,e.colorInfoText],chart:{toolbar:{show:!1},zoom:{enabled:!1},foreColor:e.colorTextDisabled,fontFamily:e.fontFamily},states:{hover:{filter:{type:"lighten",value:.04}},active:{filter:{type:"darken",value:.88}}},fill:{opacity:1,gradient:{type:"vertical",shadeIntensity:0,opacityFrom:.4,opacityTo:0,stops:[0,100]}},dataLabels:{enabled:!1},stroke:{width:3,curve:"smooth",lineCap:"round"},grid:{strokeDashArray:3,borderColor:e.colorSplit,xaxis:{lines:{show:!1}}},xaxis:{axisBorder:{show:!1},axisTicks:{show:!1}},markers:{size:0},tooltip:{theme:!1,x:{show:!0}},legend:{show:!0,fontSize:13,position:"top",horizontalAlign:"right",markers:{radius:12},fontWeight:500,itemMargin:{horizontal:8},labels:{colors:e.colorText}},plotOptions:{bar:{borderRadius:4,columnWidth:"28%",borderRadiusApplication:"end",borderRadiusWhenStacked:"last"},pie:{donut:{labels:{show:!0,value:a,total:i}}},radialBar:{track:{strokeWidth:"100%"},dataLabels:{value:a,total:i}},radar:{polygons:{fill:{colors:["transparent"]},strokeColors:e.colorSplit,connectorColors:e.colorSplit}},polarArea:{rings:{strokeColor:e.colorSplit},spokes:{connectorColors:e.colorSplit}}},responsive:[{breakpoint:e.screenSM,options:{plotOptions:{bar:{columnWidth:"40%"}}}},{breakpoint:e.screenMD,options:{plotOptions:{bar:{columnWidth:"32%"}}}}]};return J(s,t)}({legend:{horizontalAlign:"center"},stroke:{show:!0},dataLabels:{enabled:!0,dropShadow:{enabled:!1}},xaxis:{categories:a?.categories||[]},tooltip:{fillSeriesColor:!1},plotOptions:{pie:{donut:{labels:{show:!1}}}}});return u.jsx(f,{title:r("token.statistic"),open:i,onOk:e,closable:!1,onCancel:e,children:u.jsx(x,{spinning:s,tip:r("token.queryingInfo"),children:u.jsx(ft,{type:"bar",series:a?.series||[],options:o,height:320})})})}function bt(){const[t]=V.useForm(),{t:e}=p(),i=E(),a=Y(),r=R(),o=F(),n=C(),l=b(),[h,c]=s.useState(-1),[d,g]=s.useState(-1),f=V.useWatch("email",t),x={email:"",accountType:"chatgpt",password:"",refreshToken:""},[S,Z]=s.useState({formValue:{...x},title:"New",show:!1,onOk:(t,e)=>{t.id?a.mutate(t,{onSuccess:()=>{Z((t=>({...t,show:!1})))},onSettled:()=>e(!1)}):i.mutate(t,{onSuccess:()=>{Z((t=>({...t,show:!1})))},onSettled:()=>e(!1)})},onCancel:()=>{Z((t=>({...t,show:!1,formValue:{...x}})))}}),[$,J]=s.useState({formValue:{...L,shareType:"chatgpt"},title:"New",show:!1,onOk:(t,e)=>{e(!0),n.mutate(t,{onSuccess:()=>{J((t=>({...t,show:!1})))},onSettled:()=>{e(!1)}})},onCancel:()=>{J((t=>({...t,show:!1})))}}),[K,Q]=s.useState({accountId:-1,show:!1,onOk:()=>{Q((t=>({...t,show:!1})))}}),et=[{title:e("token.email"),dataIndex:"email",ellipsis:!0,align:"center",render:t=>u.jsx(j.Text,{style:{maxWidth:200},ellipsis:!0,children:t})},{title:e("token.password"),dataIndex:"password",align:"center",ellipsis:!0,render:t=>u.jsx(j.Text,{style:{maxWidth:200},ellipsis:!0,children:t})},{title:"Refresh Token",dataIndex:"refreshToken",align:"center",width:150,render:(t,i)=>i.refreshToken?u.jsx(v,{value:i.refreshToken,onClick:t=>P(i.refreshToken,e,t),readOnly:!0}):u.jsx(m,{color:"error",children:"Empty"})},{title:"Access Token",dataIndex:"accessToken",align:"center",width:100,render:(t,i)=>i.accessToken?u.jsx(v,{value:i.accessToken,onClick:t=>P(i.accessToken,e,t),readOnly:!0}):u.jsx(m,{color:"error",children:"Empty"})},{title:e("token.shareStatus"),dataIndex:"shared",align:"center",width:100,render:(t,e)=>1==e.shared?u.jsx(O,{twoToneColor:"#52c41a"}):u.jsx(H,{twoToneColor:"#fa8c16"})},{title:e("token.updateTime"),dataIndex:"updateTime",align:"center",width:200},{title:e("token.share"),key:"share",align:"center",render:(t,i)=>u.jsxs(y.Group,{children:[u.jsx(D,{count:i.shareList?.length,style:{zIndex:9},children:u.jsx(y,{icon:u.jsx(N,{}),onClick:()=>l({pathname:"/admin/share/chatgpt",search:`?email=${i.email}`}),children:e("token.shareList")})}),u.jsx(y,{icon:u.jsx(w,{}),onClick:()=>at(i)}),u.jsx(y,{icon:u.jsx(tt,{}),onClick:()=>st(i)})]})},{title:e("token.action"),key:"operation",align:"center",render:(t,i)=>u.jsxs(y.Group,{children:[u.jsx(M,{title:e("common.refreshConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{g(i.id),o.mutate(i.id,{onSettled:()=>g(void 0)})},children:u.jsx(y,{icon:u.jsx(W,{}),type:"primary",loading:d===i.id,children:e("common.refresh")},i.id)}),u.jsx(y,{onClick:()=>rt(i),icon:u.jsx(_,{}),type:"primary"}),u.jsx(M,{title:e("common.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{c(i.id),r.mutate(i.id,{onSuccess:()=>c(void 0)})},children:u.jsx(y,{icon:u.jsx(I,{}),type:"primary",loading:h===i.id,danger:!0})})]})}],{data:it}=G({queryKey:["accounts","chatgpt",f],queryFn:()=>X.searchAccountList(f,"chatgpt")}),at=t=>{J((i=>({...i,show:!0,title:e("token.share"),formValue:{...L,accountId:t.id,shareType:"chatgpt"}})))},st=t=>{Q((e=>({...e,show:!0,accountId:t.id,shareType:"chatgpt"})))},rt=t=>{Z((i=>({...i,show:!0,title:e("token.edit"),formValue:{...i.formValue,id:t.id,email:t.email,password:t.password,shared:t.shared,refreshToken:t.refreshToken,accessToken:t.accessToken}})))};return u.jsxs(k,{direction:"vertical",size:"large",className:"w-full",children:[u.jsx(A,{children:u.jsx(V,{form:t,children:u.jsxs(U,{gutter:[16,16],children:[u.jsx(q,{span:6,lg:6,children:u.jsx(V.Item,{label:e("token.email"),name:"email",className:"!mb-0",children:u.jsx(v,{})})}),u.jsx(q,{span:18,lg:18,children:u.jsxs("div",{className:"flex justify-end",children:[u.jsx(y,{onClick:()=>{t.resetFields()},children:e("token.reset")}),u.jsx(y,{type:"primary",className:"ml-4",children:e("token.search")})]})})]})})}),u.jsx(A,{title:e("token.accountList"),extra:u.jsx(k,{children:u.jsx(y,{type:"primary",onClick:()=>{Z((t=>({...t,show:!0,title:e("token.createNew"),formValue:{id:void 0,email:"",password:"",sessionKey:"",accountType:"chatgpt",shared:0,custom_type:"refresh_token",custom_token:""}})))},children:e("token.createNew")})}),children:u.jsx(T,{rowKey:"id",size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:et,dataSource:it})}),u.jsx(B,{...S}),u.jsx(z,{...$}),u.jsx(xt,{...K})]})}export{bt as default}; diff --git a/frontend/dist/assets/chatgpt-b855ed0a.js b/frontend/dist/assets/chatgpt-b855ed0a.js new file mode 100644 index 0000000..fa361b5 --- /dev/null +++ b/frontend/dist/assets/chatgpt-b855ed0a.js @@ -0,0 +1 @@ +import{u as e,j as t,I as a,ab as n,B as i,a8 as s,r,a6 as l,W as o,X as d,a9 as c}from"./index-8bf8489d.js";import{o as m,P as h,D as u,a as x,b as p,d as k,s as j,T as y,S as g}from"./ShareModal-20b6362a.js";import{R as f,u as w}from"./RobotOutlined-5230b30c.js";import{C,T as N,E as I}from"./index-57131342.js";import{F as S}from"./index-83bdf3a0.js";import{u as q}from"./useQuery-e775fa21.js";import{R as b,C as L}from"./row-b45105b9.js";function v(){const{t:v}=e(),T=[{key:"email",title:v("token.email"),dataIndex:["account","email"],width:120,render:e=>t.jsx(a,{value:e,onClick:t=>m(e,v,t),readOnly:!0})},{key:"uniqueName",title:"Unique Name",dataIndex:"uniqueName",align:"center",width:120},{key:"password",title:v("token.password"),dataIndex:"password",align:"center",width:120},{key:"gpt35Limit",title:v("token.gpt35Limit"),dataIndex:"gpt35Limit",align:"center",width:120,render:e=>-1==e?"无限制":e},{key:"gpt4Limit",title:v("token.gpt4Limit"),dataIndex:"gpt4Limit",align:"center",width:120,render:e=>-1==e?"无限制":e},{key:"refreshEveryday",title:v("token.refreshEveryday"),dataIndex:"refreshEveryday",align:"center",width:120,render:e=>e?t.jsx(C,{}):t.jsx(n,{})},{key:"temporaryChat",title:v("token.temporaryChat"),dataIndex:"temporaryChat",align:"center",width:80,render:e=>e?t.jsx(C,{}):t.jsx(n,{})},{key:"expiresAt",title:v("token.expiresAt"),dataIndex:"expiresAt",align:"center",width:120,render:e=>""==e?"未知":e},{key:"shareToken",title:"Share Token",dataIndex:"shareToken",align:"center",width:120,render:e=>t.jsx(a,{value:e,onClick:t=>m(e,v,t),readOnly:!0})},{key:"comment",title:v("token.comment"),dataIndex:"comment",align:"center",render:e=>t.jsx(N.Text,{style:{maxWidth:500},ellipsis:!0,children:e})},{title:v("token.action"),key:"operation",align:"center",render:(e,a)=>t.jsxs(i.Group,{children:[t.jsx(s,{title:"登录并跳转至对话",placement:"bottom",children:t.jsx(i,{icon:t.jsx(f,{}),type:"primary",onClick:()=>Y(a)})}),t.jsx(i,{icon:t.jsx(I,{}),type:"primary",onClick:()=>X(a)}),t.jsx(h,{title:v("token.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>_(a),children:t.jsx(i,{icon:t.jsx(u,{}),type:"primary",loading:G==a.accountId+a.uniqueName,danger:!0})})]})}],F=["uniqueName","gpt4Limit","expiresAt","comment","operation"],E=T.map((e=>e.key)),O=x(),A=p(),[W,z]=r.useState(!1),R=w(),[V]=S.useForm(),K=S.useWatch("email",V),U=S.useWatch("uniqueName",V),[B,D]=r.useState(F),[G,M]=r.useState(void 0),[P,Q]=r.useState({formValue:{...k},title:v("token.edit"),show:!1,onOk:e=>{Q((e=>({...e,show:!1})))},onCancel:()=>{Q((e=>({...e,show:!1})))}});r.useEffect((()=>{V.setFieldValue("email",R.get("email"))}),[R]);const X=e=>{Q({formValue:e,title:v("token.edit"),show:!0,onOk:(e,t)=>{A.mutate(e,{onSuccess:()=>{Q((e=>({...e,show:!1})))},onSettled:()=>t(!1)})},onCancel:()=>{Q((e=>({...e,show:!1})))}})},Y=e=>{z(!0),l.info({content:"正在跳转至对话...",key:"chatLogin",duration:5}),j.chatLoginShare(e.uniqueName,e.password).then((e=>{e&&window.open(e,"_blank")})).finally((()=>{z(!1)}))},_=e=>{M(e.accountId+e.uniqueName),O.mutate(e,{onSettled:()=>{M(void 0)}})},{data:H}=q({queryKey:["shareList","chatgpt",K,U],queryFn:()=>j.searchShare("chatgpt",K,U)}),J=T.map((e=>({...e,hidden:!B.includes(e.key)})));return t.jsxs(o,{direction:"vertical",size:"large",className:"w-full",children:[t.jsx(d,{children:t.jsx(S,{form:V,children:t.jsxs(b,{gutter:[16,16],children:[t.jsx(L,{span:6,lg:6,children:t.jsx(S.Item,{label:v("token.email"),name:"email",className:"!mb-0",children:t.jsx(a,{})})}),t.jsx(L,{span:6,lg:6,children:t.jsx(S.Item,{label:"Unique Name",name:"uniqueName",className:"!mb-0",children:t.jsx(a,{})})}),t.jsx(L,{span:12,lg:12,children:t.jsxs("div",{className:"flex justify-end",children:[t.jsx(i,{onClick:()=>{V.resetFields()},children:v("token.reset")}),t.jsx(i,{type:"primary",className:"ml-4",onClick:()=>{V.validateFields().then((e=>{V.submit()}))},children:v("token.search")})]})})]})})}),t.jsx(d,{title:v("token.shareList"),extra:t.jsx(c,{title:"abc",defaultChecked:!0,checkedChildren:"简洁",unCheckedChildren:"详细",onChange:e=>{D(e?[...F]:[...E])}}),children:t.jsx(y,{rowKey:e=>e.accountId+e.uniqueName,size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:J,dataSource:H,loading:W})}),t.jsx(g,{...P})]})}export{v as default}; diff --git a/frontend/dist/assets/claude-5cb39f7b.js b/frontend/dist/assets/claude-5cb39f7b.js new file mode 100644 index 0000000..44274d4 --- /dev/null +++ b/frontend/dist/assets/claude-5cb39f7b.js @@ -0,0 +1 @@ +import{u as e,Q as s,r as a,j as t,I as n,U as o,B as i,V as r,W as l,X as c}from"./index-8bf8489d.js";import{u as d,d as m,o as h,P as u,D as x,T as j,S as p}from"./ShareModal-20b6362a.js";import{a as y}from"./accountService-0801bb34.js";import{u as f,a as k,b as w,c as S,C as g,E as T,B as C,S as K,R as N,A as I}from"./AccountModal-0f37a6a5.js";import{F as v}from"./index-83bdf3a0.js";import{T as V,E as z}from"./index-57131342.js";import{u as F}from"./useQuery-e775fa21.js";import{R as L,C as W}from"./row-b45105b9.js";function b(){const[b]=v.useForm(),{t:A}=e(),E=f(),O=k(),_=w(),q=S(),B=d(),G=s(),[M,Q]=a.useState(-1),[R,Y]=a.useState(-1),D=v.useWatch("email",b),[P,U]=a.useState({formValue:{email:"",accountType:"claude",password:"",refreshToken:""},title:"New",show:!1,onOk:(e,s)=>{e.id?O.mutate(e,{onSuccess:()=>{U((e=>({...e,show:!1})))},onSettled:()=>s(!1)}):E.mutate(e,{onSuccess:()=>{U((e=>({...e,show:!1})))},onSettled:()=>s(!1)})},onCancel:()=>{U((e=>({...e,show:!1})))}}),[X,$]=a.useState({formValue:{...m,shareType:"claude"},title:"New",show:!1,onOk:(e,s)=>{s(!0),B.mutate(e,{onSuccess:()=>{$((e=>({...e,show:!1})))},onSettled:()=>{s(!1)}})},onCancel:()=>{$((e=>({...e,show:!1})))}}),H=[{title:A("token.email"),dataIndex:"email",ellipsis:!0,align:"center",render:e=>t.jsx(V.Text,{style:{maxWidth:200},ellipsis:!0,children:e})},{title:A("token.password"),dataIndex:"password",align:"center",ellipsis:!0,render:e=>t.jsx(V.Text,{style:{maxWidth:200},ellipsis:!0,children:e})},{title:"Session Key",dataIndex:"sessionKey",align:"center",width:150,render:(e,s)=>s.sessionKey?t.jsx(n,{value:s.sessionKey,onClick:e=>h(s.sessionKey,A,e),readOnly:!0}):t.jsx(o,{color:"error",children:"Empty"})},{title:A("token.shareStatus"),dataIndex:"shared",align:"center",width:100,render:(e,s)=>1==s.shared?t.jsx(g,{twoToneColor:"#52c41a"}):t.jsx(T,{twoToneColor:"#fa8c16"})},{title:A("token.updateTime"),dataIndex:"updateTime",align:"center",width:200},{title:A("token.share"),key:"share",align:"center",render:(e,s)=>t.jsxs(i.Group,{children:[t.jsx(C,{count:s.shareList?.length,style:{zIndex:9},children:t.jsx(i,{icon:t.jsx(K,{}),onClick:()=>G({pathname:"/admin/share/claude",search:`?email=${s.email}`}),children:A("token.shareList")})}),t.jsx(i,{icon:t.jsx(r,{}),onClick:()=>Z(s)})]})},{title:A("token.action"),key:"operation",align:"center",render:(e,s)=>t.jsxs(i.Group,{children:[t.jsx(u,{title:A("common.refreshConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{Y(s.id),q.mutate(s.id,{onSettled:()=>Y(void 0)})},children:t.jsx(i,{icon:t.jsx(N,{}),type:"primary",loading:R===s.id,children:A("common.refresh")},s.id)}),t.jsx(i,{onClick:()=>ee(s),icon:t.jsx(z,{}),type:"primary"}),t.jsx(u,{title:A("common.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>{Q(s.id),_.mutate(s.id,{onSuccess:()=>Q(void 0)})},children:t.jsx(i,{icon:t.jsx(x,{}),type:"primary",loading:M===s.id,danger:!0})})]})}],{data:J}=F({queryKey:["accounts","claude",D],queryFn:()=>y.searchAccountList(D,"claude")}),Z=e=>{$((s=>({...s,show:!0,title:A("token.share"),formValue:{...m,accountId:e.id,shareType:"claude"}})))},ee=e=>{U((s=>({...s,show:!0,title:A("token.edit"),formValue:{...s.formValue,id:e.id,email:e.email,password:e.password,shared:e.shared,sessionKey:e.sessionKey}})))};return t.jsxs(l,{direction:"vertical",size:"large",className:"w-full",children:[t.jsx(c,{children:t.jsx(v,{form:b,children:t.jsxs(L,{gutter:[16,16],children:[t.jsx(W,{span:6,lg:6,children:t.jsx(v.Item,{label:A("token.email"),name:"email",className:"!mb-0",children:t.jsx(n,{})})}),t.jsx(W,{span:18,lg:18,children:t.jsxs("div",{className:"flex justify-end",children:[t.jsx(i,{onClick:()=>{b.resetFields()},children:A("token.reset")}),t.jsx(i,{type:"primary",className:"ml-4",children:A("token.search")})]})})]})})}),t.jsx(c,{title:A("token.accountList"),extra:t.jsx(l,{children:t.jsx(i,{type:"primary",onClick:()=>{U((e=>({...e,show:!0,title:A("token.createNew"),formValue:{id:void 0,email:"",password:"",sessionKey:"",accountType:"claude",shared:0,custom_type:"refresh_token",custom_token:""}})))},children:A("token.createNew")})}),children:t.jsx(j,{rowKey:"id",size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:H,dataSource:J})}),t.jsx(I,{...P}),t.jsx(p,{...X})]})}export{b as default}; diff --git a/frontend/dist/assets/claude-fe98c508.js b/frontend/dist/assets/claude-fe98c508.js new file mode 100644 index 0000000..c83f3a8 --- /dev/null +++ b/frontend/dist/assets/claude-fe98c508.js @@ -0,0 +1 @@ +import{u as e,j as a,I as t,B as s,a8 as n,r as i,a6 as l,W as o,X as r}from"./index-8bf8489d.js";import{o as c,P as d,D as m,a as u,b as x,d as h,s as j,T as p,S as k}from"./ShareModal-20b6362a.js";import{R as y,u as f}from"./RobotOutlined-5230b30c.js";import{T as w,E as g}from"./index-57131342.js";import{F as N}from"./index-83bdf3a0.js";import{u as q}from"./useQuery-e775fa21.js";import{R as S,C as I}from"./row-b45105b9.js";function C(){const{t:C}=e(),b=[{key:"email",title:C("token.email"),dataIndex:["account","email"],width:120,render:e=>a.jsx(t,{value:e,onClick:a=>c(e,C,a),readOnly:!0})},{key:"uniqueName",title:"Unique Name",dataIndex:"uniqueName",align:"center",width:120},{key:"password",title:C("token.password"),dataIndex:"password",align:"center",width:120},{key:"expiresAt",title:C("token.expiresAt"),dataIndex:"expiresAt",align:"center",width:120,render:e=>""==e?"未知":e},{key:"comment",title:C("token.comment"),dataIndex:"comment",align:"center",render:e=>a.jsx(w.Text,{style:{maxWidth:500},ellipsis:!0,children:e})},{title:C("token.action"),key:"operation",align:"center",render:(e,t)=>a.jsxs(s.Group,{children:[a.jsx(n,{title:"登录并跳转至对话",placement:"bottom",children:a.jsx(s,{icon:a.jsx(y,{}),type:"primary",onClick:()=>B(t)})}),a.jsx(s,{icon:a.jsx(g,{}),type:"primary",onClick:()=>U(t)}),a.jsx(d,{title:C("token.deleteConfirm"),okText:"Yes",cancelText:"No",placement:"left",onConfirm:()=>D(t),children:a.jsx(s,{icon:a.jsx(m,{}),type:"primary",loading:R==t.accountId+t.uniqueName,danger:!0})})]})}],v=u(),F=x(),[T,L]=i.useState(!1),O=f(),[W]=N.useForm(),z=N.useWatch("email",W),A=N.useWatch("uniqueName",W),[R,V]=i.useState(void 0),[E,K]=i.useState({formValue:{...h},title:C("token.edit"),show:!1,onOk:e=>{K((e=>({...e,show:!1})))},onCancel:()=>{K((e=>({...e,show:!1})))}});i.useEffect((()=>{W.setFieldValue("email",O.get("email"))}),[O]);const U=e=>{K({formValue:e,title:C("token.edit"),show:!0,onOk:(e,a)=>{F.mutate(e,{onSuccess:()=>{K((e=>({...e,show:!1})))},onSettled:()=>a(!1)})},onCancel:()=>{K((e=>({...e,show:!1})))}})},B=e=>{L(!0),l.info({content:"正在跳转至对话...",key:"chatLogin",duration:5}),j.chatLoginShare(e.uniqueName,e.password).then((e=>{e&&window.open(e,"_blank")})).finally((()=>{L(!1)}))},D=e=>{V(e.accountId+e.uniqueName),v.mutate(e,{onSettled:()=>{V(void 0)}})},{data:G}=q({queryKey:["shareList","claude",z,A],queryFn:()=>j.searchShare("claude",z,A)});return a.jsxs(o,{direction:"vertical",size:"large",className:"w-full",children:[a.jsx(r,{children:a.jsx(N,{form:W,children:a.jsxs(S,{gutter:[16,16],children:[a.jsx(I,{span:6,lg:6,children:a.jsx(N.Item,{label:C("token.email"),name:"email",className:"!mb-0",children:a.jsx(t,{})})}),a.jsx(I,{span:6,lg:6,children:a.jsx(N.Item,{label:"Unique Name",name:"uniqueName",className:"!mb-0",children:a.jsx(t,{})})}),a.jsx(I,{span:12,lg:12,children:a.jsxs("div",{className:"flex justify-end",children:[a.jsx(s,{onClick:()=>{W.resetFields()},children:C("token.reset")}),a.jsx(s,{type:"primary",className:"ml-4",onClick:()=>{W.validateFields().then((e=>{W.submit()}))},children:C("token.search")})]})})]})})}),a.jsx(r,{title:C("token.shareList"),children:a.jsx(p,{rowKey:e=>e.accountId+e.uniqueName,size:"small",scroll:{x:"max-content"},pagination:{pageSize:10},columns:b,dataSource:G,loading:T})}),a.jsx(k,{...E})]})}export{C as default}; diff --git a/frontend/dist/assets/index-57131342.js b/frontend/dist/assets/index-57131342.js new file mode 100644 index 0000000..2bef296 --- /dev/null +++ b/frontend/dist/assets/index-57131342.js @@ -0,0 +1,5 @@ +import{aD as e,r as t,A as n,n as o,ag as r,cC as l,a0 as a,i,h as c,cD as s,a2 as d,s as u,aA as p,k as f,aj as g,a8 as m,p as b,aE as y,au as v,ar as h,bv as x,o as O,av as E,aw as w}from"./index-8bf8489d.js";const S=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var j=function(t){if(e()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],o=window.document.documentElement;return n.some((function(e){return e in o.style}))}return!1};function C(e,t){return Array.isArray(e)||void 0===t?j(e):function(e,t){if(!j(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}const k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var T=function(e,r){return t.createElement(n,o({},e,{ref:r,icon:k}))}; +/**![check](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkxMiAxOTBoLTY5LjljLTkuOCAwLTE5LjEgNC41LTI1LjEgMTIuMkw0MDQuNyA3MjQuNSAyMDcgNDc0YTMyIDMyIDAgMDAtMjUuMS0xMi4ySDExMmMtNi43IDAtMTAuNCA3LjctNi4zIDEyLjlsMjczLjkgMzQ3YzEyLjggMTYuMiAzNy40IDE2LjIgNTAuMyAwbDQ4OC40LTYxOC45YzQuMS01LjEuNC0xMi44LTYuMy0xMi44eiIgLz48L3N2Zz4=) */const $=t.forwardRef(T);var R=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{style:o,noStyle:l,disabled:a}=e,i=R(e,["style","noStyle","disabled"]);let c={};return l||(c=Object.assign({},D)),a&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),o),t.createElement("div",Object.assign({role:"button",tabIndex:0,ref:n},i,{onKeyDown:e=>{const{keyCode:t}=e;t===r.ENTER&&e.preventDefault()},onKeyUp:t=>{const{keyCode:n}=t,{onClick:o}=e;n===r.ENTER&&o&&o()},style:c}))}));const M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var P=function(e,r){return t.createElement(n,o({},e,{ref:r,icon:M}))}; +/**![edit](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI1Ny43IDc1MmMyIDAgNC0uMiA2LS41TDQzMS45IDcyMmMyLS40IDMuOS0xLjMgNS4zLTIuOGw0MjMuOS00MjMuOWE5Ljk2IDkuOTYgMCAwMDAtMTQuMUw2OTQuOSAxMTQuOWMtMS45LTEuOS00LjQtMi45LTcuMS0yLjlzLTUuMiAxLTcuMSAyLjlMMjU2LjggNTM4LjhjLTEuNSAxLjUtMi40IDMuMy0yLjggNS4zbC0yOS41IDE2OC4yYTMzLjUgMzMuNSAwIDAwOS40IDI5LjhjNi42IDYuNCAxNC45IDkuOSAyMy44IDkuOXptNjcuNC0xNzQuNEw2ODcuOCAyMTVsNzMuMyA3My4zLTM2Mi43IDM2Mi42LTg4LjkgMTUuNyAxNS42LTg5ek04ODAgODM2SDE0NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2MzZjMCA0LjQgMy42IDggOCA4aDc4NGM0LjQgMCA4LTMuNiA4LTh2LTM2YzAtMTcuNy0xNC4zLTMyLTMyLTMyeiIgLz48L3N2Zz4=) */const z=t.forwardRef(P);const I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};var L=function(e,r){return t.createElement(n,o({},e,{ref:r,icon:I}))}; +/**![enter](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg2NCAxNzBoLTYwYy00LjQgMC04IDMuNi04IDh2NTE4SDMxMHYtNzNjMC02LjctNy44LTEwLjUtMTMtNi4zbC0xNDEuOSAxMTJhOCA4IDAgMDAwIDEyLjZsMTQxLjkgMTEyYzUuMyA0LjIgMTMgLjQgMTMtNi4zdi03NWg0OThjMzUuMyAwIDY0LTI4LjcgNjQtNjRWMTc4YzAtNC40LTMuNi04LTgtOHoiIC8+PC9zdmc+) */const A=t.forwardRef(L),B=e=>{const t={};return[1,2,3,4,5].forEach((n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:l}=o;return{marginBottom:r,color:n,fontWeight:l,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)})),t},N=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},S(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},W=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:l[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),_=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(o).mul(-1).equal(),marginBottom:`calc(1em - ${a(o)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},F=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),K=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},B(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),W(e)),N(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},S(e)),{marginInlineStart:e.marginXXS})}),_(e)),F(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},U=i("Typography",(e=>[K(e)]),(()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}))),V=e=>{const{prefixCls:n,"aria-label":o,className:l,style:a,direction:i,maxLength:u,autoSize:p=!0,value:f,onSave:g,onCancel:m,onEnd:b,component:y,enterIcon:v=t.createElement(A,null)}=e,h=t.useRef(null),x=t.useRef(!1),O=t.useRef(),[E,w]=t.useState(f);t.useEffect((()=>{w(f)}),[f]),t.useEffect((()=>{if(h.current&&h.current.resizableTextArea){const{textArea:e}=h.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const S=()=>{g(E.trim())},j=y?`${n}-${y}`:"",[C,k,T]=U(n),$=c(n,`${n}-edit-content`,{[`${n}-rtl`]:"rtl"===i},l,j,k,T);return C(t.createElement("div",{className:$,style:a},t.createElement(s,{ref:h,maxLength:u,value:E,onChange:e=>{let{target:t}=e;w(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;x.current||(O.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:l,shiftKey:a}=e;O.current!==t||x.current||n||o||l||a||(t===r.ENTER?(S(),null==b||b()):t===r.ESC&&m())},onCompositionStart:()=>{x.current=!0},onCompositionEnd:()=>{x.current=!1},onBlur:()=>{S()},"aria-label":o,rows:1,autoSize:p}),null!==v?d(v,{className:`${n}-edit-content-confirm`}):null))};var q=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o{let{copyConfig:n,children:o}=e;const[r,l]=t.useState(!1),[a,i]=t.useState(!1),c=t.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},d={};n.format&&(d.format=n.format),t.useEffect((()=>s),[]);return{copied:r,copyLoading:a,onClick:p((e=>Q(void 0,void 0,void 0,(function*(){var t;null==e||e.preventDefault(),null==e||e.stopPropagation(),i(!0);try{const r="function"==typeof n.text?yield n.text():n.text;J(r||String(o)||"",d),i(!1),l(!0),s(),c.current=setTimeout((()=>{l(!1)}),3e3),null===(t=n.onCopy)||void 0===t||t.call(n,e)}catch(r){throw i(!1),r}}))))}};function Z(e,n){return t.useMemo((()=>{const t=!!e;return[t,Object.assign(Object.assign({},n),t&&"object"==typeof e?e:null)]}),[e])}const ee=(e,n)=>{const o=t.useRef(!1);t.useEffect((()=>{o.current?e():o.current=!0}),n)};var te=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{prefixCls:o,component:r="article",className:l,rootClassName:a,setContentRef:i,children:s,direction:d,style:u}=e,p=te(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:m,direction:b,typography:y}=t.useContext(f),v=null!=d?d:b;let h=n;i&&(h=g(n,i));const x=m("typography",o),[O,E,w]=U(x),S=c(x,null==y?void 0:y.className,{[`${x}-rtl`]:"rtl"===v},l,a,E,w),j=Object.assign(Object.assign({},null==y?void 0:y.style),u);return O(t.createElement(r,Object.assign({className:S,style:j,ref:h},p),s))}));const oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};var re=function(e,r){return t.createElement(n,o({},e,{ref:r,icon:oe}))}; +/**![copy](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTgzMiA2NEgyOTZjLTQuNCAwLTggMy42LTggOHY1NmMwIDQuNCAzLjYgOCA4IDhoNDk2djY4OGMwIDQuNCAzLjYgOCA4IDhoNTZjNC40IDAgOC0zLjYgOC04Vjk2YzAtMTcuNy0xNC4zLTMyLTMyLTMyek03MDQgMTkySDE5MmMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2NTMwLjdjMCA4LjUgMy40IDE2LjYgOS40IDIyLjZsMTczLjMgMTczLjNjMi4yIDIuMiA0LjcgNCA3LjQgNS41djEuOWg0LjJjMy41IDEuMyA3LjIgMiAxMSAySDcwNGMxNy43IDAgMzItMTQuMyAzMi0zMlYyMjRjMC0xNy43LTE0LjMtMzItMzItMzJ6TTM1MCA4NTYuMkwyNjMuOSA3NzBIMzUwdjg2LjJ6TTY2NCA4ODhINDE0Vjc0NmMwLTIyLjEtMTcuOS00MC00MC00MEgyMzJWMjY0aDQzMnY2MjR6IiAvPjwvc3ZnPg==) */const le=t.forwardRef(re);function ae(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function ie(e,t,n){return!0===e||void 0===e?t:e||n&&t}function ce(e){const{prefixCls:n,copied:o,locale:r={},onCopy:l,iconOnly:a,tooltips:i,icon:s,loading:d}=e,u=ae(i),p=ae(s),{copied:f,copy:g}=r,y=o?ie(u[1],f):ie(u[0],g),v="string"==typeof y?y:o?f:g;return t.createElement(m,{key:"copy",title:y},t.createElement(H,{className:c(`${n}-copy`,{[`${n}-copy-success`]:o,[`${n}-copy-icon-only`]:a}),onClick:l,"aria-label":v},o?ie(p[1],t.createElement($,null),!0):ie(p[0],d?t.createElement(b,null):t.createElement(le,null),!0)))}const se=t.forwardRef(((e,n)=>{let{style:o,children:r}=e;const l=t.useRef(null);return t.useImperativeHandle(n,(()=>({isExceed:()=>{const e=l.current;return e.scrollHeight>e.clientHeight},getHeight:()=>l.current.clientHeight}))),t.createElement("span",{"aria-hidden":!0,ref:l,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},o)},r)}));function de(e){const t=typeof e;return"string"===t||"number"===t}function ue(e,t){let n=0;const o=[];for(let r=0;rt){const e=t-n;return o.push(String(l).slice(0,e)),o}o.push(l),n=a}return e}const pe={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function fe(e){const{enableMeasure:n,width:o,text:r,children:l,rows:a,expanded:i,miscDeps:c,onEllipsis:s}=e,d=t.useMemo((()=>y(r)),[r]),u=t.useMemo((()=>function(e){let t=0;return e.forEach((e=>{de(e)?t+=String(e).length:t+=1})),t}(d)),[r]),p=t.useMemo((()=>l(d,!1)),[r]),[f,g]=t.useState(null),m=t.useRef(null),b=t.useRef(null),x=t.useRef(null),O=t.useRef(null),[E,w]=t.useState(!1),[S,j]=t.useState(0),[C,k]=t.useState(0);v((()=>{j(n&&o&&u?1:0)}),[o,r,a,n,d]),v((()=>{var e,t,n,o;if(1===S){const r=!!(null===(e=b.current)||void 0===e?void 0:e.isExceed());j(r?2:3),g(r?[0,u]:null),w(r);const l=(null===(t=b.current)||void 0===t?void 0:t.getHeight())||0,i=(1===a?0:(null===(n=x.current)||void 0===n?void 0:n.getHeight())||0)+((null===(o=O.current)||void 0===o?void 0:o.getHeight())||0),c=Math.max(l,i);k(c+1),s(r)}}),[S]);const T=f?Math.ceil((f[0]+f[1])/2):0;v((()=>{var e;const[t,n]=f||[0,0];if(t!==n){const o=((null===(e=m.current)||void 0===e?void 0:e.getHeight())||0)>C;let r=T;n-t==1&&(r=o?t:n),g(o?[t,r]:[r,n])}}),[f,T]);const $=t.useMemo((()=>{if(2!==S||!f||f[0]!==f[1]){const e=l(d,!1);return 3!==S&&0!==S?t.createElement("span",{style:Object.assign(Object.assign({},pe),{WebkitLineClamp:a})},e):e}return l(i?d:ue(d,f[0]),E)}),[i,S,f,d].concat(h(c))),R={width:o,whiteSpace:"normal",margin:0,padding:0};return t.createElement(t.Fragment,null,$,1===S&&t.createElement(t.Fragment,null,t.createElement(se,{style:Object.assign(Object.assign(Object.assign({},R),pe),{WebkitLineClamp:a}),ref:b},p),t.createElement(se,{style:Object.assign(Object.assign(Object.assign({},R),pe),{WebkitLineClamp:a-1}),ref:x},p),t.createElement(se,{style:Object.assign(Object.assign(Object.assign({},R),pe),{WebkitLineClamp:1}),ref:O},l([],!0))),2===S&&f&&f[0]!==f[1]&&t.createElement(se,{style:Object.assign(Object.assign({},R),{top:400}),ref:m},l(ue(d,T),!0)))}const ge=e=>{let{enableEllipsis:n,isEllipsis:o,children:r,tooltipProps:l}=e;return(null==l?void 0:l.title)&&n?t.createElement(m,Object.assign({open:!!o&&void 0},l),r):r};var me=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var o,r,l;const{prefixCls:a,className:i,style:s,type:d,disabled:u,children:p,ellipsis:b,editable:h,copyable:S,component:j,title:k}=e,T=me(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:$,direction:R}=t.useContext(f),[D]=x("Text"),M=t.useRef(null),P=t.useRef(null),I=$("typography",a),L=O(T,["mark","code","delete","underline","strong","keyboard","italic"]),[A,B]=Z(h),[N,W]=E(!1,{value:B.editing}),{triggerType:_=["icon"]}=B,F=e=>{var t;e&&(null===(t=B.onStart)||void 0===t||t.call(B)),W(e)};ee((()=>{var e;N||null===(e=P.current)||void 0===e||e.focus()}),[N]);const K=e=>{null==e||e.preventDefault(),F(!0)},U=e=>{var t;null===(t=B.onChange)||void 0===t||t.call(B,e),F(!1)},q=()=>{var e;null===(e=B.onCancel)||void 0===e||e.call(B),F(!1)},[X,G]=Z(S),{copied:J,copyLoading:Q,onClick:te}=Y({copyConfig:G,children:p}),[oe,re]=t.useState(!1),[le,ae]=t.useState(!1),[ie,se]=t.useState(!1),[de,ue]=t.useState(!1),[pe,be]=t.useState(!0),[ye,ve]=Z(b,{expandable:!1,symbol:e=>e?null==D?void 0:D.collapse:null==D?void 0:D.expand}),[he,xe]=E(ve.defaultExpanded||!1,{value:ve.expanded}),Oe=ye&&(!he||"collapsible"===ve.expandable),{rows:Ee=1}=ve,we=t.useMemo((()=>Oe&&(void 0!==ve.suffix||ve.onEllipsis||ve.expandable||A||X)),[Oe,ve,A,X]);v((()=>{ye&&!we&&(re(C("webkitLineClamp")),ae(C("textOverflow")))}),[we,ye]);const[Se,je]=t.useState(Oe),Ce=t.useMemo((()=>!we&&(1===Ee?le:oe)),[we,le,oe]);v((()=>{je(Ce&&Oe)}),[Ce,Oe]);const ke=Oe&&(Se?de:ie),Te=Oe&&1===Ee&&Se,$e=Oe&&Ee>1&&Se,[Re,De]=t.useState(0),He=e=>{var t;se(e),ie!==e&&(null===(t=ve.onEllipsis)||void 0===t||t.call(ve,e))};t.useEffect((()=>{const e=M.current;if(ye&&Se&&e){const t=$e?e.offsetHeight{const e=M.current;if("undefined"==typeof IntersectionObserver||!e||!Se||!Oe)return;const t=new IntersectionObserver((()=>{be(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[Se,Oe]);let Me={};Me=!0===ve.tooltip?{title:null!==(o=B.text)&&void 0!==o?o:p}:t.isValidElement(ve.tooltip)?{title:ve.tooltip}:"object"==typeof ve.tooltip?Object.assign({title:null!==(r=B.text)&&void 0!==r?r:p},ve.tooltip):{title:ve.tooltip};const Pe=t.useMemo((()=>{const e=e=>["string","number"].includes(typeof e);if(ye&&!Se)return e(B.text)?B.text:e(p)?p:e(k)?k:e(Me.title)?Me.title:void 0}),[ye,Se,k,Me.title,ke]);if(N)return t.createElement(V,{value:null!==(l=B.text)&&void 0!==l?l:"string"==typeof p?p:"",onSave:U,onCancel:q,onEnd:B.onEnd,prefixCls:I,className:i,style:s,direction:R,component:j,maxLength:B.maxLength,autoSize:B.autoSize,enterIcon:B.enterIcon});const ze=()=>{const{expandable:e,symbol:n}=ve;return e?he&&"collapsible"!==e?null:t.createElement("a",{key:"expand",className:`${I}-${he?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;xe(t.expanded),null===(n=ve.onExpand)||void 0===n||n.call(ve,e,t)})(e,{expanded:!he}),"aria-label":he?D.collapse:null==D?void 0:D.expand},"function"==typeof n?n(he):n):null},Ie=()=>{if(!A)return;const{icon:e,tooltip:n}=B,o=y(n)[0]||(null==D?void 0:D.edit),r="string"==typeof o?o:"";return _.includes("icon")?t.createElement(m,{key:"edit",title:!1===n?"":o},t.createElement(H,{ref:P,className:`${I}-edit`,onClick:K,"aria-label":r},e||t.createElement(z,{role:"button"}))):null},Le=e=>[e&&ze(),Ie(),X?t.createElement(ce,Object.assign({key:"copy"},G,{prefixCls:I,copied:J,locale:D,onCopy:te,loading:Q,iconOnly:null==p})):null];return t.createElement(w,{onResize:e=>{let{offsetWidth:t}=e;De(t)},disabled:!Oe},(o=>t.createElement(ge,{tooltipProps:Me,enableEllipsis:Oe,isEllipsis:ke},t.createElement(ne,Object.assign({className:c({[`${I}-${d}`]:d,[`${I}-disabled`]:u,[`${I}-ellipsis`]:ye,[`${I}-single-line`]:Oe&&1===Ee&&!he,[`${I}-ellipsis-single-line`]:Te,[`${I}-ellipsis-multiple-line`]:$e},i),prefixCls:a,style:Object.assign(Object.assign({},s),{WebkitLineClamp:$e?Ee:void 0}),component:j,ref:g(o,M,n),direction:R,onClick:_.includes("text")?K:void 0,"aria-label":null==Pe?void 0:Pe.toString(),title:k},L),t.createElement(fe,{enableMeasure:Oe&&!Se,text:p,rows:Ee,width:Re,onEllipsis:He,expanded:he,miscDeps:[J,he,Q,A,X]},((n,o)=>{let r=n;n.length&&o&&!he&&Pe&&(r=t.createElement("span",{key:"show-content","aria-hidden":!0},r));const l=function(e,n){let{mark:o,code:r,underline:l,delete:a,strong:i,keyboard:c,italic:s}=e,d=n;function u(e,n){n&&(d=t.createElement(e,{},d))}return u("strong",i),u("u",l),u("del",a),u("code",r),u("mark",o),u("kbd",c),u("i",s),d}(e,t.createElement(t.Fragment,null,r,(e=>[e&&!he&&t.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ve.suffix,Le(e)])(o)));return l}))))))}));var ye=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{ellipsis:o,rel:r}=e,l=ye(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},l),{rel:void 0===r&&"_blank"===l.target?"noopener noreferrer":r});return delete a.navigate,t.createElement(be,Object.assign({},a,{ref:n,ellipsis:!!o,component:"a"}))})),he=t.forwardRef(((e,n)=>t.createElement(be,Object.assign({ref:n},e,{component:"div"}))));var xe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{var{ellipsis:o}=e,r=xe(e,["ellipsis"]);const l=t.useMemo((()=>o&&"object"==typeof o?O(o,["expandable","rows"]):o),[o]);return t.createElement(be,Object.assign({ref:n},r,{ellipsis:l,component:"span"}))},Ee=t.forwardRef(Oe);var we=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r{const{level:o=1}=e,r=we(e,["level"]);let l;return l=Se.includes(o)?`h${o}`:"h1",t.createElement(be,Object.assign({ref:n},r,{component:l}))})),Ce=ne;Ce.Text=Ee,Ce.Link=ve,Ce.Title=je,Ce.Paragraph=he;const ke=Ce;export{$ as C,z as E,ke as T,C as i,S as o}; diff --git a/frontend/dist/assets/index-83bdf3a0.js b/frontend/dist/assets/index-83bdf3a0.js new file mode 100644 index 0000000..6df14b6 --- /dev/null +++ b/frontend/dist/assets/index-83bdf3a0.js @@ -0,0 +1 @@ +import{r as e,i as t,bW as n,b$ as r,$ as o,a0 as l,m as i,c0 as a,aW as s,bX as c,ar as u,a3 as d,h as m,c1 as p,c2 as f,aZ as g,k as h,aY as b,c3 as y,c4 as v,c5 as $,c6 as x,c7 as w,c8 as C,c9 as E,aE as O,aX as S,ad as k,aj as I,bC as j,bv as M,a8 as F,bH as N,ca as P,cb as T,bK as W,aP as _,p as H,ba as R,au as q,o as z,cc as A,cd as D,ce as L,cf as B,cg as V,bM as X,a2 as G,bT as Y,ch as K,ci as U}from"./index-8bf8489d.js";import{C as Z,R as J}from"./row-b45105b9.js";const Q=e=>"object"==typeof e&&null!=e&&1===e.nodeType,ee=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,te=(e,t)=>{if(e.clientHeight{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightlt||l>e&&i=t&&a>=n?l-e-r:i>t&&an?i-t+o:0,re=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},oe=(e,t)=>{var n,r,o,l;if("undefined"==typeof document)return[];const{scrollMode:i,block:a,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Q(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,p=[];let f=e;for(;Q(f)&&d(f);){if(f=re(f),f===m){p.push(f);break}null!=f&&f===document.body&&te(f)&&!te(document.documentElement)||null!=f&&te(f,u)&&p.push(f)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(l=null==(o=window.visualViewport)?void 0:o.height)?l:innerHeight,{scrollX:b,scrollY:y}=window,{height:v,width:$,top:x,right:w,bottom:C,left:E}=e.getBoundingClientRect(),{top:O,right:S,bottom:k,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let j="start"===a||"nearest"===a?x-O:"end"===a?C+k:x+v/2-O+k,M="center"===s?E+$/2-I+S:"end"===s?w+S:E-I;const F=[];for(let N=0;N=0&&E>=0&&C<=h&&w<=g&&x>=r&&C<=l&&E>=c&&w<=o)return F;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),f=parseInt(u.borderTopWidth,10),O=parseInt(u.borderRightWidth,10),S=parseInt(u.borderBottomWidth,10);let k=0,I=0;const P="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-O:0,T="offsetHeight"in e?e.offsetHeight-e.clientHeight-f-S:0,W="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,_="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(m===e)k="start"===a?j:"end"===a?j-h:"nearest"===a?ne(y,y+h,h,f,S,y+j,y+j+v,v):j-h/2,I="start"===s?M:"center"===s?M-g/2:"end"===s?M-g:ne(b,b+g,g,d,O,b+M,b+M+$,$),k=Math.max(0,k+y),I=Math.max(0,I+b);else{k="start"===a?j-r-f:"end"===a?j-l+S+T:"nearest"===a?ne(r,l,t,f,S+T,j,j+v,v):j-(r+t/2)+T/2,I="start"===s?M-c-d:"center"===s?M-(c+n/2)+P/2:"end"===s?M-o+O+P:ne(c,o,n,d,O+P,M,M+$,$);const{scrollLeft:i,scrollTop:u}=e;k=0===_?0:Math.max(0,Math.min(u+k/_,e.scrollHeight-t/_+T)),I=0===W?0:Math.max(0,Math.min(i+I/W,e.scrollWidth-n/W+P)),j+=u-k,M+=i-I}F.push({el:e,top:k,left:I})}return F},le=e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"};function ie(t){const[n,r]=e.useState(t);return e.useEffect((()=>{const e=setTimeout((()=>{r(t)}),t.length?0:10);return()=>{clearTimeout(e)}}),[t]),n}const ae=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},se=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${l(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${l(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),ce=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},ue=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},o(e)),se(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},ce(e,e.controlHeightSM)),"&-large":Object.assign({},ce(e,e.controlHeightLG))})}},de=e=>{const{formItemCls:t,iconCls:n,componentCls:l,rootPrefixCls:i,labelRequiredMarkColor:a,labelColor:s,labelFontSize:c,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:m,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},o(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:s,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${l}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${l}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:m},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:r,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},me=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},pe=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},fe=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ge=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:fe(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},he=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n .${r}-col-24${n}-label,\n .${r}-col-xl-24${n}-label`]:fe(e),[`@media (max-width: ${l(e.screenXSMax)})`]:[ge(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:fe(e)}}],[`@media (max-width: ${l(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:fe(e)}},[`@media (max-width: ${l(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:fe(e)}},[`@media (max-width: ${l(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:fe(e)}}}},be=(e,t)=>i(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),ye=t("Form",((e,t)=>{let{rootPrefixCls:o}=t;const l=be(e,o);return[ue(l),de(l),ae(l),me(l),pe(l),he(l),n(l),r]}),(e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0})),{order:-1e3}),ve=[];function $e(e,t,n){return{key:"string"==typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const xe=t=>{let{help:n,helpStatus:r,errors:o=ve,warnings:l=ve,className:i,fieldId:f,onVisibleChanged:g}=t;const{prefixCls:h}=e.useContext(a),b=`${h}-item-explain`,y=s(h),[v,$,x]=ye(h,y),w=e.useMemo((()=>c(h)),[h]),C=ie(o),E=ie(l),O=e.useMemo((()=>null!=n?[$e(n,"help",r)]:[].concat(u(C.map(((e,t)=>$e(e,"error","error",t)))),u(E.map(((e,t)=>$e(e,"warning","warning",t)))))),[n,r,C,E]),S={};return f&&(S.id=`${f}_help`),v(e.createElement(d,{motionDeadline:w.motionDeadline,motionName:`${h}-show-help`,visible:!!O.length,onVisibleChanged:g},(t=>{const{className:n,style:r}=t;return e.createElement("div",Object.assign({},S,{className:m(b,n,x,y,i,$),style:r,role:"alert"}),e.createElement(p,Object.assign({keys:O},c(h),{motionName:`${h}-show-help-item`,component:!1}),(t=>{const{key:n,error:r,errorStatus:o,className:l,style:i}=t;return e.createElement("div",{key:n,className:m(l,{[`${b}-${o}`]:o}),style:i},r)})))})))},we=["parentNode"],Ce="form_item";function Ee(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Oe(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return we.includes(n)?`${Ce}_${n}`:n}function Se(e,t,n,r,o,l){let i=r;return void 0!==l?i=l:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||o&&n.validated)&&(i="success"),i}function ke(e){return Ee(e).join("_")}function Ie(t){const[n]=f(),r=e.useRef({}),o=e.useMemo((()=>null!=t?t:Object.assign(Object.assign({},n),{__INTERNAL__:{itemRef:e=>t=>{const n=ke(e);t?r.current[n]=t:delete r.current[n]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Oe(Ee(e),o.__INTERNAL__.name),r=n?document.getElementById(n):null;r&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(oe(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:l,left:i}of oe(e,le(t))){const e=l-n.top+n.bottom,t=i-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}(r,Object.assign({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:e=>{const t=ke(e);return r.current[t]}})),[t,n]);return[o]}var je=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=e.useContext(g),{getPrefixCls:o,direction:l,form:i}=e.useContext(h),{prefixCls:a,className:c,rootClassName:u,size:d,disabled:p=r,form:f,colon:O,labelAlign:S,labelWrap:k,labelCol:I,wrapperCol:j,hideRequiredMark:M,layout:F="horizontal",scrollToFirstError:N,requiredMark:P,onFinishFailed:T,name:W,style:_,feedbackIcons:H,variant:R}=t,q=je(t,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),z=b(d),A=e.useContext(y),D=e.useMemo((()=>void 0!==P?P:!M&&(!i||void 0===i.requiredMark||i.requiredMark)),[M,P,i]),L=null!=O?O:null==i?void 0:i.colon,B=o("form",a),V=s(B),[X,G,Y]=ye(B,V),K=m(B,`${B}-${F}`,{[`${B}-hide-required-mark`]:!1===D,[`${B}-rtl`]:"rtl"===l,[`${B}-${z}`]:z},Y,V,G,null==i?void 0:i.className,c,u),[U]=Ie(f),{__INTERNAL__:Z}=U;Z.name=W;const J=e.useMemo((()=>({name:W,labelAlign:S,labelCol:I,labelWrap:k,wrapperCol:j,vertical:"vertical"===F,colon:L,requiredMark:D,itemRef:Z.itemRef,form:U,feedbackIcons:H})),[W,S,I,j,F,L,D,U,H]);e.useImperativeHandle(n,(()=>U));const Q=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=e),U.scrollToField(t,n)}};return X(e.createElement(v.Provider,{value:R},e.createElement($,{disabled:p},e.createElement(x.Provider,{value:z},e.createElement(w,{validateMessages:A},e.createElement(C.Provider,{value:J},e.createElement(E,Object.assign({id:W},q,{name:W,onFinishFailed:e=>{if(null==T||T(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==N)return void Q(N,t);i&&void 0!==i.scrollToFirstError&&Q(i.scrollToFirstError,t)}},form:U,style:Object.assign(Object.assign({},null==i?void 0:i.style),_),className:K}))))))))},Fe=e.forwardRef(Me);const Ne=()=>{const{status:t,errors:n=[],warnings:r=[]}=e.useContext(S);return{status:t,errors:n,warnings:r}};Ne.Context=S;const Pe=Ne;const Te=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},We=j(["Form","item-item"],((e,t)=>{let{rootPrefixCls:n}=t;const r=be(e,n);return[Te(r)]})),_e=t=>{const{prefixCls:n,status:r,wrapperCol:o,children:l,errors:i,warnings:s,_internalItemRender:c,extra:u,help:d,fieldId:p,marginBottom:f,onErrorVisibleChanged:g}=t,h=`${n}-item`,b=e.useContext(C),y=o||b.wrapperCol||{},v=m(`${h}-control`,y.className),$=e.useMemo((()=>Object.assign({},b)),[b]);delete $.labelCol,delete $.wrapperCol;const x=e.createElement("div",{className:`${h}-control-input`},e.createElement("div",{className:`${h}-control-input-content`},l)),w=e.useMemo((()=>({prefixCls:n,status:r})),[n,r]),E=null!==f||i.length||s.length?e.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},e.createElement(a.Provider,{value:w},e.createElement(xe,{fieldId:p,errors:i,warnings:s,help:d,helpStatus:r,className:`${h}-explain-connected`,onVisibleChanged:g})),!!f&&e.createElement("div",{style:{width:0,height:f}})):null,O={};p&&(O.id=`${p}_extra`);const S=u?e.createElement("div",Object.assign({},O,{className:`${h}-extra`}),u):null,k=c&&"pro_table_render"===c.mark&&c.render?c.render(t,{input:x,errorList:E,extra:S}):e.createElement(e.Fragment,null,x,E,S);return e.createElement(C.Provider,{value:$},e.createElement(Z,Object.assign({},y,{className:v}),k),e.createElement(We,{prefixCls:n}))};var He=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{prefixCls:n,label:r,htmlFor:o,labelCol:l,labelAlign:i,colon:a,required:s,requiredMark:c,tooltip:u}=t;var d;const[p]=M("Form"),{vertical:f,labelAlign:g,labelCol:h,labelWrap:b,colon:y}=e.useContext(C);if(!r)return null;const v=l||h||{},$=`${n}-item-label`,x=m($,"left"===(i||g)&&`${$}-left`,v.className,{[`${$}-wrap`]:!!b});let w=r;const E=!0===a||!1!==y&&!1!==a;E&&!f&&"string"==typeof r&&""!==r.trim()&&(w=r.replace(/[:|:]\s*$/,""));const O=function(t){return t?"object"!=typeof t||e.isValidElement(t)?{title:t}:t:null}(u);if(O){const{icon:t=e.createElement(P,null)}=O,r=He(O,["icon"]),o=e.createElement(F,Object.assign({},r),e.cloneElement(t,{className:`${n}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));w=e.createElement(e.Fragment,null,w,o)}const S="optional"===c,k="function"==typeof c;k?w=c(w,{required:!!s}):S&&!s&&(w=e.createElement(e.Fragment,null,w,e.createElement("span",{className:`${n}-item-optional`,title:""},(null==p?void 0:p.optional)||(null===(d=N.Form)||void 0===d?void 0:d.optional))));const I=m({[`${n}-item-required`]:s,[`${n}-item-required-mark-optional`]:S||k,[`${n}-item-no-colon`]:!E});return e.createElement(Z,Object.assign({},v,{className:x}),e.createElement("label",{htmlFor:o,className:I,title:"string"==typeof r?r:""},w))},qe={success:T,warning:W,error:_,validating:H};function ze(t){let{children:n,errors:r,warnings:o,hasFeedback:l,validateStatus:i,prefixCls:a,meta:s,noStyle:c}=t;const u=`${a}-item`,{feedbackIcons:d}=e.useContext(C),p=Se(r,o,s,null,!!l,i),{isFormItemInput:f,status:g,hasFeedback:h,feedbackIcon:b}=e.useContext(S),y=e.useMemo((()=>{var t;let n;if(l){const i=!0!==l&&l.icons||d,a=p&&(null===(t=null==i?void 0:i({status:p,errors:r,warnings:o}))||void 0===t?void 0:t[p]),s=p&&qe[p];n=!1!==a&&s?e.createElement("span",{className:m(`${u}-feedback-icon`,`${u}-feedback-icon-${p}`)},a||e.createElement(s,null)):null}const i={status:p||"",errors:r,warnings:o,hasFeedback:!!l,feedbackIcon:n,isFormItemInput:!0};return c&&(i.status=(null!=p?p:g)||"",i.isFormItemInput=f,i.hasFeedback=!!(null!=l?l:h),i.feedbackIcon=void 0!==l?i.feedbackIcon:b),i}),[p,l,c,f,g]);return e.createElement(S.Provider,{value:y},n)}var Ae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(k&&w.current){const e=getComputedStyle(w.current);M(parseInt(e.marginBottom,10))}}),[k,I]);const F=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Se(e?E:u.errors,e?O:u.warnings,u,"",!!d,c)}(),N=m($,r,o,{[`${$}-with-help`]:S||E.length||O.length,[`${$}-has-feedback`]:F&&d,[`${$}-has-success`]:"success"===F,[`${$}-has-warning`]:"warning"===F,[`${$}-has-error`]:"error"===F,[`${$}-is-validating`]:"validating"===F,[`${$}-hidden`]:p});return e.createElement("div",{className:N,style:l,ref:w},e.createElement(J,Object.assign({className:`${$}-row`},z(v,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),e.createElement(Re,Object.assign({htmlFor:g},t,{requiredMark:x,required:null!=h?h:b,prefixCls:n})),e.createElement(_e,Object.assign({},t,u,{errors:E,warnings:O,prefixCls:n,status:F,help:i,marginBottom:j,onErrorVisibleChanged:e=>{e||M(null)}}),e.createElement(A.Provider,{value:y},e.createElement(ze,{prefixCls:n,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:F},f)))),!!j&&e.createElement("div",{className:`${$}-margin-offset`,style:{marginBottom:-j}}))}const Le=e.memo((e=>{let{children:t}=e;return t}),((e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>{const r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o}))}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(((e,n)=>e===t.childProps[n]))));const Be=function(t){const{name:n,noStyle:r,className:o,dependencies:l,prefixCls:i,shouldUpdate:a,rules:c,children:d,required:p,label:f,messageVariables:g,trigger:b="onChange",validateTrigger:y,hidden:v,help:$}=t,{getPrefixCls:x}=e.useContext(h),{name:w}=e.useContext(C),E=function(e){if("function"==typeof e)return e;const t=O(e);return t.length<=1?t[0]:t}(d),S="function"==typeof E,j=e.useContext(A),{validateTrigger:M}=e.useContext(D),F=void 0!==y?y:M,N=!(null==n),P=x("form",i),T=s(P),[W,_,H]=ye(P,T);Y();const R=e.useContext(L),q=e.useRef(),[z,K]=function(t){const[n,r]=e.useState(t),o=e.useRef(null),l=e.useRef([]),i=e.useRef(!1);return e.useEffect((()=>(i.current=!1,()=>{i.current=!0,k.cancel(o.current),o.current=null})),[]),[n,function(e){i.current||(null===o.current&&(l.current=[],o.current=k((()=>{o.current=null,r((e=>{let t=e;return l.current.forEach((e=>{t=e(t)})),t}))}))),l.current.push(e))}]}({}),[U,Z]=B((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),J=(e,t)=>{K((n=>{const r=Object.assign({},n),o=[].concat(u(e.name.slice(0,-1)),u(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r}))},[Q,ee]=e.useMemo((()=>{const e=u(U.errors),t=u(U.warnings);return Object.values(z).forEach((n=>{e.push.apply(e,u(n.errors||[])),t.push.apply(t,u(n.warnings||[]))})),[e,t]}),[z,U.errors,U.warnings]),te=function(){const{itemRef:t}=e.useContext(C),n=e.useRef({});return function(e,r){const o=r&&"object"==typeof r&&r.ref,l=e.join("_");return n.current.name===l&&n.current.originRef===o||(n.current.name=l,n.current.originRef=o,n.current.ref=I(t(e),o)),n.current.ref}}();function ne(n,l,i){return r&&!v?e.createElement(ze,{prefixCls:P,hasFeedback:t.hasFeedback,validateStatus:t.validateStatus,meta:U,errors:Q,warnings:ee,noStyle:!0},n):e.createElement(De,Object.assign({key:"row"},t,{className:m(o,H,T,_),prefixCls:P,fieldId:l,isRequired:i,errors:Q,warnings:ee,meta:U,onSubItemMetaChange:J}),n)}if(!N&&!S&&!l)return W(ne(E));let re={};return"string"==typeof f?re.label=f:n&&(re.label=String(n)),g&&(re=Object.assign(Object.assign({},re),g)),W(e.createElement(V,Object.assign({},t,{messageVariables:re,trigger:b,validateTrigger:F,onMetaChange:e=>{const t=null==R?void 0:R.getKey(e.name);if(Z(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==$&&j){let n=e.name;if(e.destroy)n=q.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(u(r)),q.current=n}j(e,n)}}}),((r,o,i)=>{const s=Ee(n).length&&o?o.name:[],d=Oe(s,w),m=void 0!==p?p:!(!c||!c.some((e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(i);return t&&t.required&&!t.warningOnly}return!1}))),f=Object.assign({},r);let g=null;if(Array.isArray(E)&&N)g=E;else if(S&&(!a&&!l||N));else if(!l||S||N)if(e.isValidElement(E)){const n=Object.assign(Object.assign({},E.props),f);if(n.id||(n.id=d),$||Q.length>0||ee.length>0||t.extra){const e=[];($||Q.length>0)&&e.push(`${d}_help`),t.extra&&e.push(`${d}_extra`),n["aria-describedby"]=e.join(" ")}Q.length>0&&(n["aria-invalid"]="true"),m&&(n["aria-required"]="true"),X(E)&&(n.ref=te(s,E));new Set([].concat(u(Ee(b)),u(Ee(F)))).forEach((e=>{n[e]=function(){for(var t,n,r,o,l,i=arguments.length,a=new Array(i),s=0;s{var{prefixCls:n,children:r}=t,o=Xe(t,["prefixCls","children"]);const{getPrefixCls:l}=e.useContext(h),i=l("form",n),s=e.useMemo((()=>({prefixCls:i,status:"error"})),[i]);return e.createElement(K,Object.assign({},o),((t,n,o)=>e.createElement(a.Provider,{value:s},r(t.map((e=>Object.assign(Object.assign({},e),{fieldKey:e.key}))),n,{errors:o.errors,warnings:o.warnings}))))};const Ye=Fe;Ye.Item=Ve,Ye.List=Ge,Ye.ErrorList=xe,Ye.useForm=Ie,Ye.useFormInstance=function(){const{form:t}=e.useContext(C);return t},Ye.useWatch=U,Ye.Provider=w,Ye.create=()=>{};const Ke=Ye;export{Ke as F}; diff --git a/frontend/dist/assets/index-873b24ad.js b/frontend/dist/assets/index-873b24ad.js new file mode 100644 index 0000000..24a2a52 --- /dev/null +++ b/frontend/dist/assets/index-873b24ad.js @@ -0,0 +1 @@ +import{u as l,e as a,Q as c,C as e,j as s,W as t}from"./index-8bf8489d.js";import{R as i,C as r}from"./row-b45105b9.js";const o="/admin/assets/character_3-e4c36e91.png";function n(){const{t:t}=l(),o=a(),n=c(),z=`linear-gradient(135deg, ${e(o.colorPrimaryHover).alpha(.2)}, ${e(o.colorPrimary).alpha(.2)}) rgb(255, 255, 255)`;return s.jsxs(i,{className:"!mx-0 rounded-2xl p-10",gutter:[16,16],justify:"space-between",style:{background:z},children:[s.jsxs(r,{span:24,md:12,xl:16,className:"flex-1 text-center md:text-left",children:[s.jsxs("div",{className:"mt-4 text-lg font-semibold md:text-xl",style:{color:o.colorPrimaryActive},children:[s.jsxs("h4",{children:[t("common.welcomeBack")," "]}),s.jsx("h4",{children:"PandoraNext Helper"})]}),s.jsx("p",{style:{color:o.colorPrimaryTextActive},className:"mx-auto mb-6 mt-4 max-w-sm text-sm opacity-80 md:mx-0",children:t("common.desc")}),s.jsx("button",{className:"font-mediumtext-black m-auto flex items-center justify-center rounded-md px-2 py-1 shadow-none md:m-0",style:{backgroundColor:o.colorPrimary},onClick:()=>n("/token/account"),children:t("common.goNow")})]}),s.jsx(r,{span:24,md:12,xl:8,className:"!md:max-w-[320px] mx-auto !max-w-[270px] flex-none items-center justify-center ",children:s.jsx(m,{})})]})}function m(){const{colorPrimary:l,colorPrimaryActive:c,colorPrimaryHover:e}=a();return s.jsxs("svg",{viewBox:"0 0 480 360",className:"h-full w-full",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"BG",x1:"19.496%",x2:"77.479%",y1:"71.822%",y2:"16.69%",children:[s.jsx("stop",{offset:"0%",stopColor:l}),s.jsx("stop",{offset:"100%",stopColor:l,stopOpacity:"0"})]})}),s.jsx("path",{fill:"url(#BG)",fillRule:"nonzero",d:"M0 198.78c0 41.458 14.945 79.236 39.539 107.786 28.214 32.765 69.128 53.365 114.734 53.434a148.44 148.44 0 0056.495-11.036c9.051-3.699 19.182-3.274 27.948 1.107a75.779 75.779 0 0033.957 8.01c5.023 0 9.942-.494 14.7-1.433 13.58-2.67 25.94-8.99 36.09-17.94 6.378-5.627 14.547-8.456 22.897-8.446h.142c27.589 0 53.215-8.732 74.492-23.696 19.021-13.36 34.554-31.696 44.904-53.224C474.92 234.58 480 213.388 480 190.958c0-76.93-59.774-139.305-133.498-139.305-7.516 0-14.88.663-22.063 1.899C305.418 21.42 271.355 0 232.499 0a103.651 103.651 0 00-45.88 10.661c-13.24 6.487-25.011 15.705-34.64 26.939-32.698.544-62.931 11.69-87.676 30.291C25.351 97.155 0 144.882 0 198.781z",opacity:"0.2"}),s.jsx("path",{fill:c,fillRule:"evenodd",d:"M109.224 97.41l.812 1.827-.02.009-.061.027-.248.112c-.219.1-.544.25-.968.449l-.849-1.811c.43-.202.762-.355.988-.457l.256-.117.066-.03.024-.01zm-6.771 3.278c.997-.507 1.901-.958 2.7-1.35l.882 1.795c-.791.388-1.687.835-2.675 1.337l-.907-1.782zm-5.356 2.808c.93-.502 1.82-.975 2.665-1.418l.929 1.771c-.838.439-1.72.909-2.644 1.407l-.95-1.76zm-5.274 2.927c.901-.513 1.779-1.007 2.63-1.479l.97 1.749c-.844.468-1.715.958-2.609 1.468l-.99-1.738zm-5.232 3.065c.887-.533 1.758-1.05 2.612-1.55l1.01 1.725c-.847.497-1.712 1.01-2.591 1.539l-1.03-1.714zm-5.117 3.16c.861-.546 1.713-1.079 2.555-1.599l1.05 1.702c-.834.516-1.68 1.044-2.534 1.586l-1.071-1.689zm-5.065 3.301a242.86 242.86 0 012.515-1.661l1.092 1.675a236.91 236.91 0 00-2.494 1.648l-1.113-1.662zm-4.978 3.431c.83-.589 1.66-1.168 2.484-1.736l1.134 1.646c-.817.564-1.638 1.137-2.461 1.721l-1.157-1.631zm-4.873 3.56a197.5 197.5 0 012.427-1.8l1.18 1.615c-.8.585-1.602 1.179-2.404 1.782l-1.203-1.597zm-4.771 3.71c.787-.632 1.576-1.256 2.366-1.87l1.228 1.579c-.782.608-1.563 1.225-2.342 1.85l-1.252-1.559zm-4.651 3.867c.765-.659 1.534-1.31 2.307-1.952l1.279 1.538c-.764.635-1.525 1.278-2.281 1.929l-1.305-1.515zm-4.51 4.035c.739-.688 1.485-1.368 2.236-2.04l1.333 1.491c-.742.664-1.478 1.335-2.208 2.013l-1.362-1.464zm-4.347 4.215a136.43 136.43 0 012.151-2.132l1.392 1.437c-.715.692-1.422 1.392-2.12 2.1l-1.423-1.405zm-4.157 4.411c.674-.751 1.359-1.495 2.053-2.231l1.455 1.371c-.683.725-1.356 1.457-2.019 2.196l-1.489-1.336zm-3.929 4.623c.633-.788 1.279-1.568 1.936-2.341l1.524 1.295a105.43 105.43 0 00-1.9 2.298l-1.56-1.252zm-3.657 4.848a94.278 94.278 0 011.793-2.455l1.596 1.205c-.6.794-1.185 1.595-1.754 2.403l-1.635-1.153zm-3.328 5.084a83.294 83.294 0 011.617-2.57l1.673 1.097a80.437 80.437 0 00-1.578 2.507l-1.712-1.034zm-2.94 5.341c.45-.907.922-1.806 1.414-2.698l1.752.965a69.62 69.62 0 00-1.375 2.623l-1.791-.89zm-2.465 5.583c.366-.948.755-1.889 1.168-2.823l1.83.808c-.4.906-.778 1.817-1.132 2.735l-1.866-.72zm-1.903 5.808c.265-.984.558-1.962.876-2.932l1.9.624a54.83 54.83 0 00-.845 2.828l-1.93-.52zm-1.253 5.993c.15-1.012.331-2.018.54-3.017l1.958.41a50.126 50.126 0 00-.52 2.901l-1.978-.294zm-.467 4.577c.028-.513.065-1.024.109-1.535l1.992.174c-.042.489-.077.98-.104 1.472-.028.496-.04.986-.037 1.469l-2 .014c-.003-.526.01-1.057.04-1.594zm.822 7.749a22.495 22.495 0 01-.643-3.074l1.982-.272c.131.959.328 1.892.585 2.801l-1.924.545zm2.498 5.699a23.889 23.889 0 01-1.444-2.77l1.83-.805c.382.867.824 1.713 1.324 2.538l-1.71 1.037zm3.777 4.87a30.2 30.2 0 01-2.019-2.327l1.578-1.23a28.113 28.113 0 001.885 2.173l-1.444 1.384zm4.602 4.048a41.441 41.441 0 01-2.349-1.902l1.316-1.506c.706.617 1.452 1.22 2.235 1.809l-1.202 1.599zm5.09 3.361a56.872 56.872 0 01-2.58-1.598l1.1-1.671a54.91 54.91 0 002.488 1.542l-1.008 1.727zm5.371 2.823a75.691 75.691 0 01-2.716-1.355l.929-1.771c.857.449 1.74.889 2.645 1.319l-.858 1.807zm5.542 2.408c-.95-.379-1.882-.766-2.794-1.162l.795-1.834c.894.387 1.807.767 2.74 1.138l-.741 1.858zm294.857-2.594c.244.101.598.253 1.048.457l-.828 1.821a31.67 31.67 0 00-1.241-.534l-.061-.025-.014-.005-.003-.001.357-.934.356-.934h.001l.002.001.006.002.021.008.075.03c.065.025.159.063.281.114zm-289.206 4.68c-.96-.329-1.906-.664-2.837-1.007l.692-1.877c.915.337 1.846.668 2.793.992l-.648 1.892zm293.015-2.865c.807.425 1.708.923 2.682 1.497l-1.016 1.723a62.506 62.506 0 00-2.598-1.45l.932-1.77zm-287.286 4.698c-.965-.289-1.918-.583-2.859-.884l.609-1.905c.928.296 1.87.587 2.824.873l-.574 1.916zm292.565-1.59a69.641 69.641 0 012.522 1.724l-1.165 1.626a66.44 66.44 0 00-2.449-1.674l1.092-1.676zM69.05 221.541c-.967-.256-1.924-.517-2.87-.783l.54-1.926c.938.264 1.885.522 2.842.776l-.512 1.933zm5.833 1.464c-.977-.233-1.945-.469-2.905-.709l.486-1.94c.952.238 1.912.472 2.881.703l-.462 1.946zm5.867 1.326c-.988-.213-1.97-.429-2.944-.649l.44-1.951c.968.219 1.943.434 2.925.645l-.42 1.955zm280.057-2.439a67.422 67.422 0 012.356 1.94l-1.306 1.515a65.709 65.709 0 00-2.286-1.883l1.236-1.572zM86.623 225.54a333.57 333.57 0 01-2.954-.595l.403-1.959c.973.201 1.952.398 2.937.591l-.386 1.963zm5.88 1.112c-.985-.179-1.967-.361-2.944-.546l.371-1.965c.973.184 1.95.365 2.931.543l-.357 1.968zm5.904 1.035c-.983-.167-1.963-.335-2.94-.506l.345-1.97c.973.17 1.95.338 2.93.504l-.335 1.972zm267.031-1.801a64.195 64.195 0 012.181 2.162l-1.442 1.386a63.013 63.013 0 00-2.113-2.095l1.374-1.453zm-261.112 2.771c-.989-.157-1.976-.316-2.959-.477l.323-1.974c.981.161 1.964.319 2.95.476l-.314 1.975zm5.919.916c-.99-.149-1.978-.3-2.965-.453l.306-1.976c.984.152 1.969.302 2.957.451l-.298 1.978zm5.92.873c-.987-.143-1.975-.287-2.961-.432l.292-1.979c.984.145 1.969.289 2.955.431l-.286 1.98zm5.929.84a781.94 781.94 0 01-2.965-.417l.281-1.98 2.96.417-.276 1.98zm5.927.818c-.987-.135-1.976-.27-2.965-.407l.273-1.981c.988.136 1.976.272 2.962.406l-.27 1.982zm241.664-1.8a62.33 62.33 0 011.957 2.359l-1.571 1.238a58.92 58.92 0 00-1.893-2.282l1.507-1.315zm-235.74 2.603l-2.957-.4.269-1.982 2.956.4-.268 1.982zm5.935.801l-2.964-.4.267-1.982 2.965.4-.268 1.982zm5.928.805l-2.977-.406.269-1.982 2.98.407-.272 1.981zm5.915.821l-2.962-.414.275-1.981c.993.138 1.982.276 2.966.415l-.279 1.98zm5.896.848c-.971-.143-1.948-.285-2.93-.426l.284-1.98c.985.142 1.964.284 2.937.427l-.291 1.979zm5.922.895c-.972-.151-1.952-.302-2.94-.451l.299-1.977c.99.149 1.973.3 2.949.452l-.308 1.976zm209.938-1.957a59.573 59.573 0 011.709 2.551l-1.69 1.069a56.139 56.139 0 00-1.651-2.463l1.632-1.157zm-204.034 2.911c-.974-.163-1.958-.325-2.952-.486l.319-1.974c.998.161 1.986.324 2.965.488l-.332 1.972zm5.881 1.035a369.37 369.37 0 00-2.965-.534l.346-1.97c1.006.177 2 .356 2.982.537l-.363 1.967zm5.85 1.143c-.972-.201-1.959-.399-2.961-.595l.383-1.963c1.009.197 2.004.397 2.984.6l-.406 1.958zm5.81 1.291c-.958-.228-1.935-.453-2.932-.674l.433-1.953c1.006.223 1.995.451 2.964.682l-.465 1.945zm5.75 1.497a126.97 126.97 0 00-2.901-.788l.502-1.936c1.006.261 1.988.527 2.947.8l-.548 1.924zm184.026-2.689c.494.881.972 1.787 1.431 2.718l-1.794.884a54.93 54.93 0 00-1.381-2.623l1.744-.979zm-178.387 4.477a83.817 83.817 0 00-2.858-.956l.602-1.907c1.007.317 1.983.643 2.926.978l-.67 1.885zm5.402 2.214a50.388 50.388 0 00-2.665-1.174l.755-1.852a52.08 52.08 0 012.773 1.222l-.863 1.804zm175.7-1.183c.397.928.775 1.88 1.132 2.854l-1.878.687a55.769 55.769 0 00-1.093-2.754l1.839-.787zm-171.918 3.282a27.52 27.52 0 00-1.18-.728l1.008-1.727c.438.255.86.515 1.266.781.386.252.788.506 1.206.763l-1.045 1.705a54.43 54.43 0 01-1.255-.794zm6.674 3.795a88.769 88.769 0 01-2.71-1.43l.964-1.752c.839.462 1.723.928 2.65 1.398l-.904 1.784zm167.354-1.314c.295.964.57 1.949.822 2.955l-1.94.486a56.86 56.86 0 00-.794-2.854l1.912-.587zm-161.766 3.964c-.978-.436-1.926-.872-2.842-1.305l.856-1.808c.902.427 1.836.856 2.801 1.287l-.815 1.826zm5.624 2.389c-.977-.396-1.932-.792-2.864-1.188l.781-1.841c.922.391 1.867.783 2.834 1.175l-.751 1.854zm5.702 2.219c-.979-.366-1.942-.734-2.887-1.101l.726-1.864c.936.364 1.891.728 2.863 1.092l-.702 1.873zm151.931-2.627c.195.988.367 1.994.517 3.019l-1.979.289a60 60 0 00-.5-2.921l1.962-.387zm-146.173 4.709a282.93 282.93 0 01-2.913-1.035l.68-1.881c.95.343 1.915.686 2.893 1.028l-.66 1.888zm5.793 1.961c-.989-.325-1.966-.651-2.932-.977l.642-1.895c.959.325 1.931.649 2.913.971l-.623 1.901zm5.808 1.851a366.91 366.91 0 01-2.928-.92l.607-1.905c.961.306 1.932.611 2.912.915l-.591 1.91zm135.458-2.462c.049.509.093 1.023.131 1.542a15.1 15.1 0 01.032 1.682l-1.998-.075c.017-.471.008-.958-.029-1.461a59 59 0 00-.127-1.495l1.991-.193zm-129.616 4.222a452.59 452.59 0 01-2.926-.869l.577-1.915c.963.29 1.934.578 2.911.864l-.562 1.92zm5.875 1.674c-.982-.272-1.957-.546-2.927-.823l.548-1.923c.965.275 1.936.548 2.913.819l-.534 1.927zm5.902 1.593a521.99 521.99 0 01-2.943-.783l.521-1.931c.972.262 1.949.522 2.93.779l-.508 1.935zm117.481-1.038a12.02 12.02 0 01-1.365 2.996l-1.691-1.069a9.965 9.965 0 001.139-2.499l1.917.572zm-111.556 2.55c-.993-.246-1.982-.495-2.968-.747l.495-1.938c.981.251 1.966.499 2.955.744l-.482 1.941zm5.937 1.432c-.995-.233-1.987-.469-2.977-.708l.469-1.944c.985.238 1.973.472 2.964.704l-.456 1.948zm5.954 1.352a461.96 461.96 0 01-2.98-.667l.443-1.95c.987.224 1.976.445 2.967.663l-.43 1.954zm5.976 1.272a440.55 440.55 0 01-2.989-.626l.416-1.956c.992.211 1.984.419 2.976.623l-.403 1.959zm90.244-1.087a17.352 17.352 0 01-2.54 1.996l-1.091-1.676a15.272 15.272 0 002.247-1.764l1.384 1.444zm-84.25 2.277c-1-.191-2.001-.386-3.002-.585l.39-1.962c.996.198 1.992.392 2.987.582l-.375 1.965zm6.003 1.101c-.999-.175-1.999-.355-3.001-.539l.361-1.967c.997.183 1.993.362 2.987.537l-.347 1.969zm72.9.168c-.911.427-1.878.819-2.897 1.178l-.663-1.887a29.338 29.338 0 002.71-1.102l.85 1.811zm-66.872.844c-1-.16-2.003-.324-3.007-.493l.33-1.972c1 .168 1.997.331 2.992.49l-.315 1.975zm6.051.913a350.993 350.993 0 01-3.025-.444l.299-1.977c1.006.152 2.009.299 3.007.441l-.281 1.98zm54.962.332c-.979.263-1.996.501-3.05.716l-.4-1.96a50.079 50.079 0 002.932-.688l.518 1.932zm-48.896.472a292.674 292.674 0 01-3.049-.39l.263-1.982c1.015.135 2.025.264 3.03.387l-.244 1.985zm6.076.684a273.234 273.234 0 01-3.058-.328l.224-1.987c1.019.115 2.031.223 3.037.325l-.203 1.99zm36.729.101c-.989.152-2.005.287-3.047.406l-.226-1.988a74.52 74.52 0 002.968-.395l.305 1.977zm-30.642.446a247.153 247.153 0 01-3.048-.255l.18-1.992c1.015.091 2.023.176 3.023.253l-.155 1.994zm6.099.39a193.964 193.964 0 01-3.036-.173l.128-1.995c1.012.064 2.015.122 3.007.171l-.099 1.997zm18.393-.133c-.991.079-2.002.144-3.032.196l-.101-1.997a107.33 107.33 0 002.975-.193l.158 1.994zm-12.279.337a175.75 175.75 0 01-3.028-.075l.067-1.999c1.01.034 2.008.059 2.993.075l-.032 1.999zm6.131-.023c-.993.025-2.002.039-3.025.043l-.007-2c1.009-.004 2.003-.018 2.981-.043l.051 2z",clipRule:"evenodd",opacity:"0.24"}),s.jsx("path",{fill:"#fff",d:"M47.943 122.571L96.231 273.55a11.4 11.4 0 0011.786 7.805l63.326-5.36 148.013-12.644a11.316 11.316 0 009.904-7.823c.456-1.421.627-2.918.503-4.405a12.314 12.314 0 00-.729-3.122l-11.838-31.221-21.412-57.238-16.599-44.23a11.37 11.37 0 00-10.641-7.362H58.741a11.345 11.345 0 00-11.344 11.343c.016 1.114.2 2.219.546 3.278z"}),s.jsx("path",{fill:"#fff",d:"M47.943 122.571L96.231 273.55a11.4 11.4 0 0011.786 7.805l63.326-5.36 148.013-12.644a11.316 11.316 0 009.904-7.823c.456-1.421.627-2.918.503-4.405a12.314 12.314 0 00-.729-3.122l-11.838-31.221-21.412-57.238-16.599-44.23a11.37 11.37 0 00-10.641-7.362H58.741a11.345 11.345 0 00-11.344 11.343c.016 1.114.2 2.219.546 3.278z"}),s.jsx("path",{fill:"url(#paint0_linear_1_51)",d:"M170.575 276.06l-62.558 5.295a11.4 11.4 0 01-11.785-7.805L47.942 122.571a11.028 11.028 0 01-.546-3.278A11.34 11.34 0 0158.74 107.95h57.453l54.382 168.11z"}),s.jsx("path",{fill:"#F4F6F8",d:"M227.879 191.221c2.613-.162 4.368-2.749 3.553-5.237l-8.483-25.895a4.002 4.002 0 00-3.993-2.75l-61.621 2.961c-2.666.128-4.461 2.782-3.588 5.304l9.248 26.717a3.999 3.999 0 004.028 2.683l60.856-3.783z"}),s.jsx("path",{fill:"#DFE3E8",d:"M244.879 239.221c2.613-.162 4.368-2.749 3.553-5.237l-8.483-25.895a4.002 4.002 0 00-3.993-2.75l-61.621 2.961c-2.666.128-4.461 2.782-3.588 5.304l9.248 26.717a3.999 3.999 0 004.028 2.683l60.856-3.783z"}),s.jsx("g",{filter:"url(#filter0_f_1_51)",opacity:"0.4",children:s.jsx("path",{fill:"#919EAB",d:"M253.012 134.539l15.948 52.893a4.007 4.007 0 003.903 2.94l39.559-1.142a2 2 0 001.816-2.7l-20.001-53.4a2 2 0 00-1.755-1.295l-35.906-2.109a3.612 3.612 0 00-3.059 1.461 3.614 3.614 0 00-.505 3.352z"})}),s.jsx("path",{fill:"#fff",d:"M330.082 174.424l-16.495-46.701a4.03 4.03 0 00-3.512-2.732l-69.518-4.111a3.676 3.676 0 00-3.061 1.481 3.663 3.663 0 00-.53 3.358l15.949 52.92a4.057 4.057 0 003.902 2.966l70.091-2.108a3.663 3.663 0 002.898-1.716 3.667 3.667 0 00.276-3.357z"}),s.jsx("path",{fill:c,d:"M295.375 166.976c.478 1.237.718 1.856 1.229 2.206.511.351 1.174.351 2.501.351h.32c2.648 0 3.972 0 4.568-.87.596-.869.118-2.104-.837-4.574l-6.427-16.612c-.479-1.238-.719-1.856-1.23-2.207-.511-.35-1.174-.35-2.501-.35h-.32c-2.648 0-3.972 0-4.568.87-.596.869-.118 2.104.837 4.573l6.428 16.613z"}),s.jsxs("g",{opacity:"0.48",children:[s.jsx("path",{fill:"url(#paint1_linear_1_51)",d:"M306.33 166.969c.478 1.241.717 1.861 1.228 2.212.512.351 1.176.351 2.505.351h.314c2.649 0 3.973 0 4.569-.869.596-.87.118-2.105-.839-4.574l-1.586-4.099c-.479-1.237-.718-1.855-1.229-2.205-.511-.351-1.175-.351-2.501-.351h-.305c-2.644 0-3.966 0-4.562.868-.596.868-.121 2.102.829 4.569l1.577 4.098z"}),s.jsx("path",{fill:"url(#paint2_linear_1_51)",d:"M284.397 166.971c.478 1.24.717 1.86 1.228 2.211.512.351 1.176.351 2.505.351h.315c2.648 0 3.973 0 4.568-.87.596-.87.118-2.105-.838-4.575l-2.705-6.986c-.479-1.237-.718-1.855-1.229-2.205-.511-.35-1.175-.35-2.501-.35h-.303c-2.645 0-3.967 0-4.563.868-.596.868-.12 2.102.831 4.57l2.692 6.986z"}),s.jsx("path",{fill:"url(#paint3_linear_1_51)",d:"M273.442 166.976c.479 1.237.718 1.856 1.229 2.206.511.351 1.175.351 2.502.351h.32c2.648 0 3.972 0 4.568-.87.596-.869.118-2.104-.838-4.574l-9.445-24.417c-.479-1.238-.718-1.856-1.229-2.207-.511-.35-1.175-.35-2.502-.35h-.32c-2.648 0-3.972 0-4.568.869-.596.87-.118 2.104.837 4.574l9.446 24.418z"}),s.jsx("path",{fill:"url(#paint4_linear_1_51)",d:"M262.463 166.974c.479 1.239.718 1.858 1.229 2.208.511.351 1.175.351 2.502.351h.322c2.647 0 3.97 0 4.566-.869.596-.869.119-2.104-.835-4.573l-12.935-33.472c-.479-1.238-.718-1.857-1.229-2.207-.511-.351-1.175-.351-2.502-.351h-.322c-2.647 0-3.97 0-4.566.869-.596.869-.119 2.104.835 4.573l12.935 33.471z"})]}),s.jsx("g",{fill:"#fff",fillRule:"evenodd",clipRule:"evenodd",opacity:"0.4",children:s.jsx("path",{d:"M78.02 155.171a15.22 15.22 0 11.312 1.015l-.156-.495-.157-.52zm15.194-4.189l-3.59-11.525a12.641 12.641 0 013.121-.547 12.102 12.102 0 0111.994 8.456c.312 1.014.496 2.062.546 3.122a13.006 13.006 0 01-.286 3.148 11.815 11.815 0 01-2.914 5.516 11.914 11.914 0 01-11.525 3.59 13.21 13.21 0 01-2.94-1.067 12.76 12.76 0 01-2.602-1.821 12.257 12.257 0 01-3.33-5.203l11.526-3.669zM111.296 251.773a15.298 15.298 0 0129.321-8.429v.494c0 .156 0 .338.182.494a15.272 15.272 0 01-28.619 10.407c-.078-.247-.149-.495-.221-.742a28.499 28.499 0 00-.221-.741 16.041 16.041 0 01-.171-.595 10.734 10.734 0 00-.271-.888zm11.187-14.7l3.746 11.474.079-.026 3.746 11.5a11.965 11.965 0 006.921-6.01 11.83 11.83 0 001.04-2.966c.23-1.024.317-2.075.26-3.122a12.07 12.07 0 00-9.548-11.188 12.42 12.42 0 00-6.244.338zM100.21 187.509a15.272 15.272 0 00-4.473 10.799v1.066a15.272 15.272 0 1030.544 0v-1.066a15.271 15.271 0 00-26.071-10.799zm10.591 11.293V186.73c2.112.016 4.183.581 6.01 1.639a11.366 11.366 0 012.602 1.925 12.027 12.027 0 01-.005 17.068 12.022 12.022 0 01-5.433 3.096 11.575 11.575 0 01-6.244 0 12.202 12.202 0 01-2.914-1.171l5.984-10.485z"})}),s.jsx("path",{fill:"url(#paint5_linear_1_51)",d:"M151.154 76h-41.55l12.645 7.727L151.154 76z"}),s.jsx("path",{fill:"url(#paint6_linear_1_51)",d:"M151.154 76l-26.668 12.332 4.501 15.715L151.154 76z"}),s.jsx("path",{fill:"url(#paint7_linear_1_51)",d:"M117.435 95.279l7.051-6.947L151.154 76 117.435 95.28z"}),s.jsx("path",{fill:c,d:"M117.435 95.279l7.051-6.947L151.154 76l-28.905 7.727-4.814 11.552z"}),s.jsxs("defs",{children:[s.jsxs("filter",{id:"filter0_f_1_51",width:"101.56",height:"100.65",x:"232.807",y:"109.722",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[s.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),s.jsx("feGaussianBlur",{result:"effect1_foregroundBlur_1_51",stdDeviation:"10"})]}),s.jsxs("linearGradient",{id:"paint0_linear_1_51",x1:"47.397",x2:"47.397",y1:"107.95",y2:"281.395",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:e}),s.jsx("stop",{offset:"1",stopColor:c})]}),s.jsxs("linearGradient",{id:"paint1_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:e}),s.jsx("stop",{offset:"1",stopColor:c})]}),s.jsxs("linearGradient",{id:"paint2_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:e}),s.jsx("stop",{offset:"1",stopColor:c})]}),s.jsxs("linearGradient",{id:"paint3_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:e}),s.jsx("stop",{offset:"1",stopColor:c})]}),s.jsxs("linearGradient",{id:"paint4_linear_1_51",x1:"248.43",x2:"248.43",y1:"128.061",y2:"169.533",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:e}),s.jsx("stop",{offset:"1",stopColor:c})]}),s.jsxs("linearGradient",{id:"paint5_linear_1_51",x1:"109.604",x2:"109.604",y1:"76",y2:"104.047",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:e}),s.jsx("stop",{offset:"1",stopColor:c})]}),s.jsxs("linearGradient",{id:"paint6_linear_1_51",x1:"109.604",x2:"109.604",y1:"76",y2:"104.047",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:e}),s.jsx("stop",{offset:"1",stopColor:c})]}),s.jsxs("linearGradient",{id:"paint7_linear_1_51",x1:"109.604",x2:"109.604",y1:"76",y2:"104.047",gradientUnits:"userSpaceOnUse",children:[s.jsx("stop",{stopColor:e}),s.jsx("stop",{offset:"1",stopColor:c})]})]}),s.jsx("image",{href:o,height:"300",x:"312",y:"30"})]})}function z(){return s.jsx(t,{direction:"vertical",size:"large",style:{width:"100%"},children:s.jsx(n,{})})}export{z as default}; diff --git a/frontend/dist/assets/index-8bf8489d.js b/frontend/dist/assets/index-8bf8489d.js new file mode 100644 index 0000000..bc3e0f8 --- /dev/null +++ b/frontend/dist/assets/index-8bf8489d.js @@ -0,0 +1,187 @@ +function e(e,t){for(var n=0;nr[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}},o={},i={exports:{}},a={},s=Symbol.for("react.element"),l=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.iterator;var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function S(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}function C(){}function E(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},C.prototype=S.prototype;var k=E.prototype=new C;k.constructor=E,x(k,S.prototype),k.isPureReactComponent=!0;var O=Array.isArray,$=Object.prototype.hasOwnProperty,P={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)$.call(t,r)&&!T.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Q="undefined"==typeof window||"Deno"in window;function J(){}function ee(e){return"number"==typeof e&&e>=0&&e!==1/0}function te(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ne(e,t,n){return me(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function re(e,t,n){return me(e)?[{...t,queryKey:e},n]:[e||{},t]}function oe(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(me(a))if(r){if(t.queryHash!==ae(a,t.options))return!1}else if(!le(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function ie(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(me(i)){if(!t.options.mutationKey)return!1;if(n){if(se(t.options.mutationKey)!==se(i))return!1}else if(!le(t.options.mutationKey,i))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function ae(e,t){return((null==t?void 0:t.queryKeyHashFn)||se)(e)}function se(e){return JSON.stringify(e,((e,t)=>pe(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function le(e,t){return ce(e,t)}function ce(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!ce(e[n],t[n]))))}function ue(e,t){if(e===t)return e;const n=fe(e)&&fe(t);if(n||pe(e)&&pe(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l{setTimeout(t,e)}))}function ve(e){ge(0).then(e)}function be(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?ue(e,t):t}const ye=new class extends Z{constructor(){super(),this.setup=e=>{if(!Q&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},xe=["online","offline"];const we=new class extends Z{constructor(){super(),this.setup=e=>{if(!Q&&window.addEventListener){const t=()=>e();return xe.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{xe.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function Se(e){return Math.min(1e3*2**e,3e4)}function Ce(e){return"online"!==(null!=e?e:"online")||we.isOnline()}class Ee{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function ke(e){return e instanceof Ee}function Oe(e){let t,n,r,o=!1,i=0,a=!1;const s=new Promise(((e,t)=>{n=e,r=t})),l=()=>!ye.isFocused()||"always"!==e.networkMode&&!we.isOnline(),c=r=>{a||(a=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},u=n=>{a||(a=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise((n=>{t=e=>{const t=a||!l();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,a||null==e.onContinue||e.onContinue()})),f=()=>{if(a)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(c).catch((t=>{var n,r;if(a)return;const s=null!=(n=e.retry)?n:3,c=null!=(r=e.retryDelay)?r:Se,p="function"==typeof c?c(i,t):c,h=!0===s||"number"==typeof s&&i{if(l())return d()})).then((()=>{o?u(t):f()}))):u(t)}))};return Ce(e.networkMode)?f():d().then(f),{promise:s,cancel:t=>{a||(u(new Ee(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}const $e=console;const Pe=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):ve((()=>{n(r)}))},i=()=>{const t=e;e=[],t.length&&ve((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class Te{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ee(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Q?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Me extends Te{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||$e,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=be(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(J).catch(J):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!te(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const i=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(a);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(s(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=l.fetchOptions)?void 0:c.meta});const u=e=>{var t,n,r,o;(ke(e)&&e.silent||this.dispatch({type:"error",error:e}),ke(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Oe({fn:l.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Ce(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return ke(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Pe.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class Ie extends Z{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,i=null!=(r=t.queryHash)?r:ae(o,t);let a=this.get(i);return a||(a=new Me({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){Pe.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=re(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>oe(n,e)))}findAll(e,t){const[n]=re(e,t);return Object.keys(n).length>0?this.queries.filter((e=>oe(n,e))):this.queries}notify(e){Pe.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){Pe.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){Pe.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class je extends Te{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||$e,this.observers=[],this.state=e.state||Re(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=Oe({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,i,a,s,l,c;if(!t){var u,d,f,p;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(d=this.mutationCache.config).onMutate)?void 0:u.call(d,this.state.variables,this));const e=await(null==(f=(p=this.options).onMutate)?void 0:f.call(p,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const h=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,h,this.state.variables,this.state.context,this)),await(null==(o=(i=this.options).onSuccess)?void 0:o.call(i,h,this.state.variables,this.state.context)),await(null==(a=(s=this.mutationCache.config).onSettled)?void 0:a.call(s,h,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(S){try{var h,m,g,v,b,y,x,w;throw await(null==(h=(m=this.mutationCache.config).onError)?void 0:h.call(m,S,this.state.variables,this.state.context,this)),await(null==(g=(v=this.options).onError)?void 0:g.call(v,S,this.state.variables,this.state.context)),await(null==(b=(y=this.mutationCache.config).onSettled)?void 0:b.call(y,void 0,S,this.state.variables,this.state.context,this)),await(null==(x=(w=this.options).onSettled)?void 0:x.call(w,void 0,S,this.state.variables,this.state.context)),S}finally{this.dispatch({type:"error",error:S})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Ce(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),Pe.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function Re(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Ne extends Z{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new je({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){Pe.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>ie(e,t)))}findAll(e){return this.mutations.filter((t=>ie(e,t)))}notify(e){Pe.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return Pe.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(J)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function Ae(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,c=null==l?void 0:l.pageParam,u="forward"===(null==l?void 0:l.direction),d="backward"===(null==l?void 0:l.direction),f=(null==(i=e.state.data)?void 0:i.pages)||[],p=(null==(a=e.state.data)?void 0:a.pageParams)||[];let h=p,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(h=r?[t,...h]:[...h,t],r?[n,...e]:[...e,n]),b=(t,n,r,o)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};(t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}})})(i);const a=g(i);return Promise.resolve(a).then((e=>v(t,r,e,o)))};let y;if(f.length)if(u){const t=void 0!==c,n=t?c:Le(e.options,f);y=b(f,t,n)}else if(d){const t=void 0!==c,n=t?c:(x=e.options,w=f,null==x.getPreviousPageParam?void 0:x.getPreviousPageParam(w[0],w));y=b(f,t,n,!0)}else{h=[];const t=void 0===e.options.getNextPageParam;y=!s||!f[0]||s(f[0],0,f)?b([],t,p[0]):Promise.resolve(v([],p[0],f[0]));for(let n=1;n{if(!s||!f[n]||s(f[n],n,f)){const o=t?p[n]:Le(e.options,r);return b(r,t,o)}return Promise.resolve(v(r,p[n],f[n]))}))}else y=b([]);var x,w;const S=y.then((e=>({pages:e,pageParams:h})));return S}}}}function Le(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}let _e=class extends Z{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),de(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){Pe.batch((()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var i,a,s,l;null==(i=(a=this.mutateOptions).onError)||i.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}};var De={exports:{}},Be={},Fe={exports:{}},ze={}; +/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(!(0>>1;ro(l,n))co(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(co(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(l,o)}o=n(c)}}function x(e){if(m=!1,y(e),!h)if(null!==n(l))h=!0,j(w);else{var t=n(c);null!==t&&R(x,t.startTime-e)}}function w(t,o){h=!1,m&&(m=!1,v(k),k=-1),p=!0;var i=f;try{for(y(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!P());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),y(o)}else r(l);d=n(l)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&R(x,g.startTime-o),u=!1}return u}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,C=!1,E=null,k=-1,O=5,$=-1;function P(){return!(e.unstable_now()-$e||125a?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(m?(v(k),k=-1):m=!0,R(x,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,j(w))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(ze),Fe.exports=ze;var He=Fe.exports,Ve=F,Ue=He; +/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function We(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n",t=Xt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Zt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Qt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jt=["Webkit","ms","Moz","O"];function en(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function tn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=en(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Qt).forEach((function(e){Jt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]}))}));var nn=Ct({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rn(e,t){if(t){if(nn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(We(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(We(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(We(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(We(62))}}function on(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var an=null;function sn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ln=null,cn=null,un=null;function dn(e){if(e=ia(e)){if("function"!=typeof ln)throw Error(We(280));var t=e.stateNode;t&&(t=sa(t),ln(e.stateNode,e.type,t))}}function fn(e){cn?un?un.push(e):un=[e]:cn=e}function pn(){if(cn){var e=cn,t=un;if(un=cn=null,dn(e),t)for(e=0;e>>=0,0===e?32:31-(Gn(e)/Kn|0)|0},Gn=Math.log,Kn=Math.LN2;var Xn=64,Yn=4194304;function Zn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Qn(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=Zn(s):0!==(i&=a)&&(r=Zn(i))}else 0!==(a=n&~o)?r=Zn(a):0!==i&&(r=Zn(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function rr(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-qn(t)]=n}function or(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qn(n),o=1<=wo),Eo=String.fromCharCode(32),ko=!1;function Oo(e,t){switch(e){case"keyup":return-1!==yo.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $o(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Po=!1;var To={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!To[e.type]:"textarea"===t}function Io(e,t,n,r){fn(r),0<(t=ji(t,"onChange")).length&&(n=new Xr("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jo=null,Ro=null;function No(e){Ei(e,0)}function Ao(e){if(Rt(aa(e)))return e}function Lo(e,t){if("change"===e)return t}var _o=!1;if(Ye){var Do;if(Ye){var Bo="oninput"in document;if(!Bo){var Fo=document.createElement("div");Fo.setAttribute("oninput","return;"),Bo="function"==typeof Fo.oninput}Do=Bo}else Do=!1;_o=Do&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Xo(r)}}function Zo(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Zo(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Qo(){for(var e=window,t=Nt();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(a7){n=!1}if(!n)break;t=Nt((e=t.contentWindow).document)}return t}function Jo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ei(e){var t=Qo(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zo(n.ownerDocument.documentElement,n)){if(null!==r&&Jo(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Yo(n,i);var a=Yo(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,ni=null,ri=null,oi=null,ii=!1;function ai(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ii||null==ni||ni!==Nt(r)||("selectionStart"in(r=ni)&&Jo(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},oi&&Ko(oi,r)||(oi=r,0<(r=ji(ri,"onSelect")).length&&(t=new Xr("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ni)))}function si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var li={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionend:si("Transition","TransitionEnd")},ci={},ui={};function di(e){if(ci[e])return ci[e];if(!li[e])return e;var t,n=li[e];for(t in n)if(n.hasOwnProperty(t)&&t in ui)return ci[e]=n[t];return e}Ye&&(ui=document.createElement("div").style,"AnimationEvent"in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),"TransitionEvent"in window||delete li.transitionend.transition);var fi=di("animationend"),pi=di("animationiteration"),hi=di("animationstart"),mi=di("transitionend"),gi=new Map,vi="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function bi(e,t){gi.set(e,t),Ke(t,[e])}for(var yi=0;yica||(e.current=la[ca],la[ca]=null,ca--)}function fa(e,t){ca++,la[ca]=e.current,e.current=t}var pa={},ha=ua(pa),ma=ua(!1),ga=pa;function va(e,t){var n=e.type.contextTypes;if(!n)return pa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ba(e){return null!=(e=e.childContextTypes)}function ya(){da(ma),da(ha)}function xa(e,t,n){if(ha.current!==pa)throw Error(We(168));fa(ha,t),fa(ma,n)}function wa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(We(108,Tt(e)||"Unknown",o));return Ct({},n,r)}function Sa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pa,ga=ha.current,fa(ha,e),fa(ma,ma.current),!0}function Ca(e,t,n){var r=e.stateNode;if(!r)throw Error(We(169));n?(e=wa(e,t,ga),r.__reactInternalMemoizedMergedChildContext=e,da(ma),da(ha),fa(ha,e)):da(ma),fa(ma,n)}var Ea=null,ka=!1,Oa=!1;function $a(e){null===Ea?Ea=[e]:Ea.push(e)}function Pa(){if(!Oa&&null!==Ea){Oa=!0;var e=0,t=ir;try{var n=Ea;for(ir=1;e>=a,o-=a,La=1<<32-qn(t)+o|n<m?(g=h,h=null):g=h.sibling;var v=f(o,h,s[m],l);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===s.length)return n(o,h),Ua&&Da(o,m),c;if(null===h){for(;mm?(g=h,h=null):g=h.sibling;var b=f(o,h,v.value,l);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),a=i(b,a,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),Ua&&Da(o,m),c;if(null===h){for(;!v.done;m++,v=s.next())null!==(v=d(o,v.value,l))&&(a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return Ua&&Da(o,m),c}for(h=r(o,h);!v.done;m++,v=s.next())null!==(v=p(h,o,m,v.value,l))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),Ua&&Da(o,m),c}return function e(r,i,s,l){if("object"==typeof s&&null!==s&&s.type===ct&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case st:e:{for(var c=s.key,u=i;null!==u;){if(u.key===c){if((c=s.type)===ct){if(7===u.tag){n(r,u.sibling),(i=o(u,s.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===bt&&os(c)===u.type){n(r,u.sibling),(i=o(u,s.props)).ref=ns(r,u,s),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===ct?((i=yd(s.props.children,r.mode,l,s.key)).return=r,r=i):((l=bd(s.type,s.key,s.props,null,r.mode,l)).ref=ns(r,i,s),l.return=r,r=l)}return a(r);case lt:e:{for(u=s.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(r,i.sibling),(i=o(i,s.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Sd(s,r.mode,l)).return=r,r=i}return a(r);case bt:return e(r,i,(u=s._init)(s._payload),l)}if(zt(s))return h(r,i,s,l);if(wt(s))return m(r,i,s,l);rs(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,s)).return=r,r=i):(n(r,i),(i=wd(s,r.mode,l)).return=r,r=i),a(r)):n(r,i)}}var as=is(!0),ss=is(!1),ls=ua(null),cs=null,us=null,ds=null;function fs(){ds=us=cs=null}function ps(e){var t=ls.current;da(ls),e._currentValue=t}function hs(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ms(e,t){cs=e,ds=us=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(rc=!0),e.firstContext=null)}function gs(e){var t=e._currentValue;if(ds!==e)if(e={context:e,memoizedValue:t,next:null},null===us){if(null===cs)throw Error(We(308));us=e,cs.dependencies={lanes:0,firstContext:e}}else us=us.next=e;return t}var vs=null;function bs(e){null===vs?vs=[e]:vs.push(e)}function ys(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,bs(t)):(n.next=o.next,o.next=n),t.interleaved=n,xs(e,r)}function xs(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ws=!1;function Ss(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ks(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&fu){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,xs(e,n)}return null===(o=r.interleaved)?(t.next=t,bs(r)):(t.next=o.next,o.next=t),r.interleaved=t,xs(e,n)}function Os(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,or(e,n)}}function $s(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ps(e,t,n,r){var o=e.updateQueue;ws=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=Ct({},d,f);break e;case 2:ws=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);xu|=a,e.lanes=a,e.memoizedState=d}}function Ts(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tn?n:4,e(!0);var r=Us.transition;Us.transition={};try{e(!1),t()}finally{ir=n,Us.transition=r}}function Il(){return ol().memoizedState}function jl(e,t,n){var r=Bu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Nl(e))Al(t,n);else if(null!==(n=ys(e,t,n,r))){Fu(n,e,r,Du()),Ll(n,t,r)}}function Rl(e,t,n){var r=Bu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nl(e))Al(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Go(s,a)){var l=t.interleaved;return null===l?(o.next=o,bs(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(f7){}null!==(n=ys(e,t,o,r))&&(Fu(n,e,r,o=Du()),Ll(n,t,r))}}function Nl(e){var t=e.alternate;return e===qs||null!==t&&t===qs}function Al(e,t){Ys=Xs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ll(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,or(e,n)}}var _l={readContext:gs,useCallback:Js,useContext:Js,useEffect:Js,useImperativeHandle:Js,useInsertionEffect:Js,useLayoutEffect:Js,useMemo:Js,useReducer:Js,useRef:Js,useState:Js,useDebugValue:Js,useDeferredValue:Js,useTransition:Js,useMutableSource:Js,useSyncExternalStore:Js,useId:Js,unstable_isNewReconciler:!1},Dl={readContext:gs,useCallback:function(e,t){return rl().memoizedState=[e,void 0===t?null:t],e},useContext:gs,useEffect:xl,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,bl(4194308,4,El.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bl(4194308,4,e,t)},useInsertionEffect:function(e,t){return bl(4,2,e,t)},useMemo:function(e,t){var n=rl();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rl();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=jl.bind(null,qs,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},rl().memoizedState=e},useState:ml,useDebugValue:Ol,useDeferredValue:function(e){return rl().memoizedState=e},useTransition:function(){var e=ml(!1),t=e[0];return e=Ml.bind(null,e[1]),rl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=qs,o=rl();if(Ua){if(void 0===n)throw Error(We(407));n=n()}else{if(n=t(),null===pu)throw Error(We(349));30&Ws||ul(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,xl(fl.bind(null,r,i,e),[e]),r.flags|=2048,gl(9,dl.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=rl(),t=pu.identifierPrefix;if(Ua){var n=_a;t=":"+t+"R"+(n=(La&~(1<<32-qn(La)-1)).toString(32)+n),0<(n=Zs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Qs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Bl={readContext:gs,useCallback:$l,useContext:gs,useEffect:wl,useImperativeHandle:kl,useInsertionEffect:Sl,useLayoutEffect:Cl,useMemo:Pl,useReducer:al,useRef:vl,useState:function(){return al(il)},useDebugValue:Ol,useDeferredValue:function(e){return Tl(ol(),Gs.memoizedState,e)},useTransition:function(){return[al(il)[0],ol().memoizedState]},useMutableSource:ll,useSyncExternalStore:cl,useId:Il,unstable_isNewReconciler:!1},Fl={readContext:gs,useCallback:$l,useContext:gs,useEffect:wl,useImperativeHandle:kl,useInsertionEffect:Sl,useLayoutEffect:Cl,useMemo:Pl,useReducer:sl,useRef:vl,useState:function(){return sl(il)},useDebugValue:Ol,useDeferredValue:function(e){var t=ol();return null===Gs?t.memoizedState=e:Tl(t,Gs.memoizedState,e)},useTransition:function(){return[sl(il)[0],ol().memoizedState]},useMutableSource:ll,useSyncExternalStore:cl,useId:Il,unstable_isNewReconciler:!1};function zl(e,t){if(e&&e.defaultProps){for(var n in t=Ct({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Hl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Ct({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Vl={isMounted:function(e){return!!(e=e._reactInternals)&&Pn(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Du(),o=Bu(e),i=Es(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=ks(e,i,o))&&(Fu(t,e,o,r),Os(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Du(),o=Bu(e),i=Es(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=ks(e,i,o))&&(Fu(t,e,o,r),Os(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Du(),r=Bu(e),o=Es(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ks(e,o,r))&&(Fu(t,e,r,n),Os(t,e,r))}};function Ul(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Ko(n,r)||!Ko(o,i))}function Wl(e,t,n){var r=!1,o=pa,i=t.contextType;return"object"==typeof i&&null!==i?i=gs(i):(o=ba(t)?ga:ha.current,i=(r=null!=(r=t.contextTypes))?va(e,o):pa),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Vl,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ql(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vl.enqueueReplaceState(t,t.state,null)}function Gl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Ss(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=gs(i):(i=ba(t)?ga:ha.current,o.context=va(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Hl(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Vl.enqueueReplaceState(o,o.state,null),Ps(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Kl(e,t){try{var n="",r=t;do{n+=$t(r),r=r.return}while(r);var o=n}catch(l7){o="\nError generating stack: "+l7.message+"\n"+l7.stack}return{value:e,source:t,stack:o,digest:null}}function Xl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}var Yl="function"==typeof WeakMap?WeakMap:Map;function Zl(e,t,n){(n=Es(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Pu||(Pu=!0,Tu=r)},n}function Ql(e,t,n){(n=Es(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Mu?Mu=new Set([this]):Mu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Jl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Yl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=cd.bind(null,e,t,n),t.then(e,e))}function ec(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function tc(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Es(-1,1)).tag=2,ks(n,t,1))),n.lanes|=1),e)}var nc=at.ReactCurrentOwner,rc=!1;function oc(e,t,n,r){t.child=null===e?ss(t,null,n,r):as(t,e.child,n,r)}function ic(e,t,n,r,o){n=n.render;var i=t.ref;return ms(t,o),r=tl(e,t,n,r,i,o),n=nl(),null===e||rc?(Ua&&n&&Fa(t),t.flags|=1,oc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Pc(e,t,o))}function ac(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||gd(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=bd(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,sc(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Ko)(a,r)&&e.ref===t.ref)return Pc(e,t,o)}return t.flags|=1,(e=vd(i,r)).ref=t.ref,e.return=t,t.child=e}function sc(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Ko(i,r)&&e.ref===t.ref){if(rc=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Pc(e,t,o);131072&e.flags&&(rc=!0)}}return uc(e,t,n,r,o)}function lc(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fa(vu,gu),gu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,fa(vu,gu),gu|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fa(vu,gu),gu|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,fa(vu,gu),gu|=r;return oc(e,t,o,n),t.child}function cc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function uc(e,t,n,r,o){var i=ba(n)?ga:ha.current;return i=va(t,i),ms(t,o),n=tl(e,t,n,r,i,o),r=nl(),null===e||rc?(Ua&&r&&Fa(t),t.flags|=1,oc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Pc(e,t,o))}function dc(e,t,n,r,o){if(ba(n)){var i=!0;Sa(t)}else i=!1;if(ms(t,o),null===t.stateNode)$c(e,t),Wl(t,n,r),Gl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=gs(c):c=va(t,c=ba(n)?ga:ha.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ql(t,a,r,c),ws=!1;var f=t.memoizedState;a.state=f,Ps(t,r,a,o),l=t.memoizedState,s!==r||f!==l||ma.current||ws?("function"==typeof u&&(Hl(t,n,u,r),l=t.memoizedState),(s=ws||Ul(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Cs(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:zl(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=gs(l):l=va(t,l=ba(n)?ga:ha.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ql(t,a,r,l),ws=!1,f=t.memoizedState,a.state=f,Ps(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||ma.current||ws?("function"==typeof p&&(Hl(t,n,p,r),h=t.memoizedState),(c=ws||Ul(t,n,c,r,f,h,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return fc(e,t,n,r,i,o)}function fc(e,t,n,r,o,i){cc(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Ca(t,n,!1),Pc(e,t,i);r=t.stateNode,nc.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=as(t,e.child,null,i),t.child=as(t,null,s,i)):oc(e,t,s,i),t.memoizedState=r.state,o&&Ca(t,n,!0),t.child}function pc(e){var t=e.stateNode;t.pendingContext?xa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xa(0,t.context,!1),As(e,t.containerInfo)}function hc(e,t,n,r,o){return Ja(),es(o),t.flags|=256,oc(e,t,n,r),t.child}var mc,gc,vc,bc,yc={dehydrated:null,treeContext:null,retryLane:0};function xc(e){return{baseLanes:e,cachePool:null,transitions:null}}function wc(e,t,n){var r,o=t.pendingProps,i=Bs.current,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),fa(Bs,1&i),null===e)return Xa(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,a?(o=t.mode,a=t.child,s={mode:"hidden",children:s},1&o||null===a?a=xd(s,o,0,null):(a.childLanes=0,a.pendingProps=s),e=yd(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=xc(n),t.memoizedState=yc,e):Sc(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Cc(e,t,a,r=Xl(Error(We(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=xd({mode:"visible",children:r.children},o,0,null),(i=yd(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&as(t,e.child,null,a),t.child.memoizedState=xc(a),t.memoizedState=yc,i);if(!(1&t.mode))return Cc(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Cc(e,t,a,r=Xl(i=Error(We(419)),r,void 0))}if(s=!!(a&e.childLanes),rc||s){if(null!==(r=pu)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,xs(e,o),Fu(r,e,o,-1))}return Ju(),Cc(e,t,a,r=Xl(Error(We(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=dd.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Va=Xi(o.nextSibling),Ha=t,Ua=!0,Wa=null,null!==e&&(Ra[Na++]=La,Ra[Na++]=_a,Ra[Na++]=Aa,La=e.id,_a=e.overflow,Aa=t),t=Sc(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,i,n);if(a){a=o.fallback,s=t.mode,r=(i=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&s||t.child===i?(o=vd(i,l)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==r?a=vd(r,a):(a=yd(a,s,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,s=null===(s=e.child.memoizedState)?xc(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=yc,o}return e=(a=e.child).sibling,o=vd(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Sc(e,t){return(t=xd({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Cc(e,t,n,r){return null!==r&&es(r),as(t,e.child,null,n),(e=Sc(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ec(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),hs(e.return,t,n)}function kc(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Oc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(oc(e,t,r.children,n),2&(r=Bs.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ec(e,n,t);else if(19===e.tag)Ec(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fa(Bs,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Fs(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),kc(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Fs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}kc(t,!0,n,null,i);break;case"together":kc(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function $c(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pc(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),xu|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(We(153));if(null!==t.child){for(n=vd(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=vd(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Tc(e,t){if(!Ua)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mc(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ic(e,t,n){var r=t.pendingProps;switch(za(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mc(t),null;case 1:case 17:return ba(t.type)&&ya(),Mc(t),null;case 3:return r=t.stateNode,Ls(),da(ma),da(ha),Hs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Za(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Wa&&(Uu(Wa),Wa=null))),gc(e,t),Mc(t),null;case 5:Ds(t);var o=Ns(Rs.current);if(n=t.type,null!==e&&null!=t.stateNode)vc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(We(166));return Mc(t),null}if(e=Ns(Is.current),Za(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Qi]=t,r[Ji]=i,e=!!(1&t.mode),n){case"dialog":ki("cancel",r),ki("close",r);break;case"iframe":case"object":case"embed":ki("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Qi]=t,e[Ji]=r,mc(e,t,!1,!1),t.stateNode=e;e:{switch(a=on(n,r),n){case"dialog":ki("cancel",e),ki("close",e),o=r;break;case"iframe":case"object":case"embed":ki("load",e),o=r;break;case"video":case"audio":for(o=0;oOu&&(t.flags|=128,r=!0,Tc(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Fs(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Tc(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!Ua)return Mc(t),null}else 2*_n()-i.renderingStartTime>Ou&&1073741824!==n&&(t.flags|=128,r=!0,Tc(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_n(),t.sibling=null,n=Bs.current,fa(Bs,r?1&n|2:1&n),t):(Mc(t),null);case 22:case 23:return Xu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&gu)&&(Mc(t),6&t.subtreeFlags&&(t.flags|=8192)):Mc(t),null;case 24:case 25:return null}throw Error(We(156,t.tag))}function jc(e,t){switch(za(t),t.tag){case 1:return ba(t.type)&&ya(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ls(),da(ma),da(ha),Hs(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ds(t),null;case 13:if(da(Bs),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(We(340));Ja()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return da(Bs),null;case 4:return Ls(),null;case 10:return ps(t.type._context),null;case 22:case 23:return Xu(),null;default:return null}}mc=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},gc=function(){},vc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ns(Is.current);var i,a=null;switch(n){case"input":o=At(e,o),r=At(e,r),a=[];break;case"select":o=Ct({},o,{value:void 0}),r=Ct({},r,{value:void 0}),a=[];break;case"textarea":o=Vt(e,o),r=Vt(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Bi)}for(c in rn(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Ge.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Ge.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&ki("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},bc=function(e,t,n,r){n!==r&&(t.flags|=4)};var Rc=!1,Nc=!1,Ac="function"==typeof WeakSet?WeakSet:Set,Lc=null;function _c(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(a7){ld(e,t,a7)}else n.current=null}function Dc(e,t,n){try{n()}catch(a7){ld(e,t,a7)}}var Bc=!1;function Fc(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Dc(t,n,i)}o=o.next}while(o!==r)}}function zc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Hc(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function Vc(e){var t=e.alternate;null!==t&&(e.alternate=null,Vc(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Qi],delete t[Ji],delete t[ta],delete t[na],delete t[ra])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Uc(e){return 5===e.tag||3===e.tag||4===e.tag}function Wc(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Uc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function qc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Bi));else if(4!==r&&null!==(e=e.child))for(qc(e,t,n),e=e.sibling;null!==e;)qc(e,t,n),e=e.sibling}function Gc(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Gc(e,t,n),e=e.sibling;null!==e;)Gc(e,t,n),e=e.sibling}var Kc=null,Xc=!1;function Yc(e,t,n){for(n=n.child;null!==n;)Zc(e,t,n),n=n.sibling}function Zc(e,t,n){if(Wn&&"function"==typeof Wn.onCommitFiberUnmount)try{Wn.onCommitFiberUnmount(Un,n)}catch(u7){}switch(n.tag){case 5:Nc||_c(n,t);case 6:var r=Kc,o=Xc;Kc=null,Yc(e,t,n),Xc=o,null!==(Kc=r)&&(Xc?(e=Kc,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Kc.removeChild(n.stateNode));break;case 18:null!==Kc&&(Xc?(e=Kc,n=n.stateNode,8===e.nodeType?Ki(e.parentNode,n):1===e.nodeType&&Ki(e,n),Pr(e)):Ki(Kc,n.stateNode));break;case 4:r=Kc,o=Xc,Kc=n.stateNode.containerInfo,Xc=!0,Yc(e,t,n),Kc=r,Xc=o;break;case 0:case 11:case 14:case 15:if(!Nc&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&Dc(n,t,a),o=o.next}while(o!==r)}Yc(e,t,n);break;case 1:if(!Nc&&(_c(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u7){ld(n,t,u7)}Yc(e,t,n);break;case 21:Yc(e,t,n);break;case 22:1&n.mode?(Nc=(r=Nc)||null!==n.memoizedState,Yc(e,t,n),Nc=r):Yc(e,t,n);break;default:Yc(e,t,n)}}function Qc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ac),t.forEach((function(t){var r=fd.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Jc(e,t){var n=t.deletions;if(null!==n)for(var r=0;ro&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=_n()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*lu(r/1960))-r)){e.timeoutHandle=Vi(id.bind(null,e,Eu,$u),r);break}id(e,Eu,$u);break;default:throw Error(We(329))}}}return zu(e,_n()),e.callbackNode===n?Hu.bind(null,e):null}function Vu(e,t){var n=Cu;return e.current.memoizedState.isDehydrated&&(Yu(e,t).flags|=256),2!==(e=ed(e,t))&&(t=Eu,Eu=n,null!==t&&Uu(t)),e}function Uu(e){null===Eu?Eu=e:Eu.push.apply(Eu,e)}function Wu(e,t){for(t&=~Su,t&=~wu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===ju)var r=!1;else{if(e=ju,ju=null,Ru=0,6&fu)throw Error(We(331));var o=fu;for(fu|=4,Lc=e.current;null!==Lc;){var i=Lc,a=i.child;if(16&Lc.flags){var s=i.deletions;if(null!==s){for(var l=0;l_n()-ku?Yu(e,0):Su|=n),zu(e,t)}function ud(e,t){0===t&&(1&e.mode?(t=Yn,!(130023424&(Yn<<=1))&&(Yn=4194304)):t=1);var n=Du();null!==(e=xs(e,t))&&(rr(e,t,n),zu(e,n))}function dd(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ud(e,n)}function fd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(We(314))}null!==r&&r.delete(t),ud(e,n)}function pd(e,t){return Rn(e,t)}function hd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function md(e,t,n,r){return new hd(e,t,n,r)}function gd(e){return!(!(e=e.prototype)||!e.isReactComponent)}function vd(e,t){var n=e.alternate;return null===n?((n=md(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bd(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)gd(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case ct:return yd(n.children,o,i,t);case ut:a=8,o|=8;break;case dt:return(e=md(12,n,t,2|o)).elementType=dt,e.lanes=i,e;case mt:return(e=md(13,n,t,o)).elementType=mt,e.lanes=i,e;case gt:return(e=md(19,n,t,o)).elementType=gt,e.lanes=i,e;case yt:return xd(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ft:a=10;break e;case pt:a=9;break e;case ht:a=11;break e;case vt:a=14;break e;case bt:a=16,r=null;break e}throw Error(We(130,null==e?e:typeof e,""))}return(t=md(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function yd(e,t,n,r){return(e=md(7,e,r,t)).lanes=n,e}function xd(e,t,n,r){return(e=md(22,e,r,t)).elementType=yt,e.lanes=n,e.stateNode={isHidden:!1},e}function wd(e,t,n){return(e=md(6,e,null,t)).lanes=n,e}function Sd(e,t,n){return(t=md(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cd(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nr(0),this.expirationTimes=nr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nr(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ed(e,t,n,r,o,i,a,s,l){return e=new Cd(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=md(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ss(i),e}function kd(e){if(!e)return pa;e:{if(Pn(e=e._reactInternals)!==e||1!==e.tag)throw Error(We(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ba(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(We(171))}if(1===e.tag){var n=e.type;if(ba(n))return wa(e,n,t)}return t}function Od(e,t,n,r,o,i,a,s,l){return(e=Ed(n,r,!0,e,0,i,0,s,l)).context=kd(null),n=e.current,(i=Es(r=Du(),o=Bu(n))).callback=null!=t?t:null,ks(n,i,o),e.current.lanes=o,rr(e,o,r),zu(e,r),e}function $d(e,t,n,r){var o=t.current,i=Du(),a=Bu(o);return n=kd(n),null===t.context?t.context=n:t.pendingContext=n,(t=Es(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ks(o,t,a))&&(Fu(e,o,a,i),Os(e,o,a)),a}function Pd(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Td(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n{const t=F.useContext(of(e,F.useContext(rf)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},sf=({client:e,children:t,context:n,contextSharing:r=!1})=>{F.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]);const o=of(n,r);return F.createElement(rf.Provider,{value:!n&&r},F.createElement(o.Provider,{value:e},t))};function lf(e,t){return"function"==typeof e?e(...t):!!e}function cf(e,t,n){const r=function(e,t,n){return me(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,n),o=af({context:r.context}),[i]=F.useState((()=>new _e(o,r)));F.useEffect((()=>{i.setOptions(r)}),[i,r]);const a=tf(F.useCallback((e=>i.subscribe(Pe.batchCalls(e))),[i]),(()=>i.getCurrentResult()),(()=>i.getCurrentResult())),s=F.useCallback(((e,t)=>{i.mutate(e,t).catch(uf)}),[i]);if(a.error&&lf(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function uf(){}const df=function(){return null};var ff={},pf=Hd;ff.createRoot=pf.createRoot,ff.hydrateRoot=pf.hydrateRoot;var hf={exports:{}};function mf(){}function gf(){}gf.resetWarningCache=mf;hf.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:gf,resetWarningCache:mf};return n.PropTypes=n,n}();var vf=hf.exports;const bf=n(vf);var yf="undefined"!=typeof Element,xf="function"==typeof Map,wf="function"==typeof Set,Sf="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Cf(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,o,i;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!Cf(e[r],t[r]))return!1;return!0}if(xf&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Cf(r.value[1],t.get(r.value[0])))return!1;return!0}if(wf&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Sf&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(yf&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!e.$$typeof)&&!Cf(e[o[r]],t[o[r]]))return!1;return!0}return e!=e&&t!=t}var Ef=function(e,t){try{return Cf(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return!1;throw n}};const kf=n(Ef);var Of=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}};const $f=n(Of);var Pf=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l=0||(o[n]=e[n]);return o}var Nf={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},Af={rel:["amphtml","canonical","alternate"]},Lf={type:["application/ld+json"]},_f={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Df=Object.keys(Nf).map((function(e){return Nf[e]})),Bf={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ff=Object.keys(Bf).reduce((function(e,t){return e[Bf[t]]=t,e}),{}),zf=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Hf=function(e){var t=zf(e,Nf.TITLE),n=zf(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=zf(e,"defaultTitle");return t||r||void 0},Vf=function(e){return zf(e,"onChangeClientState")||function(){}},Uf=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return Mf({},e,t)}),{})},Wf=function(e,t){return t.filter((function(e){return void 0!==e[Nf.BASE]})).map((function(e){return e[Nf.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),o=0;o/g,">").replace(/"/g,""").replace(/'/g,"'")},Jf=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},ep=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[Bf[n]||n]=e[n],t}),t)},tp=function(e,t){return t.map((function(t,n){var r,o=((r={key:n})["data-rh"]=!0,r);return Object.keys(t).forEach((function(e){var n=Bf[e]||e;"innerHTML"===n||"cssText"===n?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),z.createElement(e,o)}))},np=function(e,t,n){switch(e){case Nf.TITLE:return{toComponent:function(){return n=t.titleAttributes,(r={key:e=t.title})["data-rh"]=!0,o=ep(n,r),[z.createElement(Nf.TITLE,o,e)];var e,n,r,o},toString:function(){return function(e,t,n,r){var o=Jf(n),i=Kf(t);return o?"<"+e+' data-rh="true" '+o+">"+Qf(i,r)+"":"<"+e+' data-rh="true">'+Qf(i,r)+""}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return ep(t)},toString:function(){return Jf(t)}};default:return{toComponent:function(){return tp(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var o=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var o=void 0===r[t]?t:t+'="'+Qf(r[t],n)+'"';return e?e+" "+o:o}),""),i=r.innerHTML||r.cssText||"",a=-1===Zf.indexOf(e);return t+"<"+e+' data-rh="true" '+o+(a?"/>":">"+i+"")}),"")}(e,t,n)}}}},rp=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,o=e.htmlAttributes,i=e.noscriptTags,a=e.styleTags,s=e.title,l=void 0===s?"":s,c=e.titleAttributes,u=e.linkTags,d=e.metaTags,f=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,o=Xf(e.metaTags,_f),i=Xf(t,Af),a=Xf(n,Lf);return{priorityMethods:{toComponent:function(){return[].concat(tp(Nf.META,o.priority),tp(Nf.LINK,i.priority),tp(Nf.SCRIPT,a.priority))},toString:function(){return np(Nf.META,o.priority,r)+" "+np(Nf.LINK,i.priority,r)+" "+np(Nf.SCRIPT,a.priority,r)}},metaTags:o.default,linkTags:i.default,scriptTags:a.default}}(e);p=h.priorityMethods,u=h.linkTags,d=h.metaTags,f=h.scriptTags}return{priority:p,base:np(Nf.BASE,t,r),bodyAttributes:np("bodyAttributes",n,r),htmlAttributes:np("htmlAttributes",o,r),link:np(Nf.LINK,u,r),meta:np(Nf.META,d,r),noscript:np(Nf.NOSCRIPT,i,r),script:np(Nf.SCRIPT,f,r),style:np(Nf.STYLE,a,r),title:np(Nf.TITLE,{title:l,titleAttributes:c},r)}},op=[],ip=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?op:n.instances},add:function(e){(n.canUseDOM?op:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?op:n.instances).indexOf(e);(n.canUseDOM?op:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=rp({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},ap=z.createContext({}),sp=bf.shape({setHelmet:bf.func,helmetInstances:bf.shape({get:bf.func,add:bf.func,remove:bf.func})}),lp="undefined"!=typeof document,cp=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new ip(r.props.context,t.canUseDOM),r}return If(t,e),t.prototype.render=function(){return z.createElement(ap.Provider,{value:this.helmetData.value},this.props.children)},t}(F.Component);cp.canUseDOM=lp,cp.propTypes={context:bf.shape({helmet:bf.shape()}),children:bf.node.isRequired},cp.defaultProps={context:{}},cp.displayName="HelmetProvider";var up=function(e,t){var n,r=document.head||document.querySelector(Nf.HEAD),o=r.querySelectorAll(e+"[data-rh]"),i=[].slice.call(o),a=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&("innerHTML"===o?r.innerHTML=t.innerHTML:"cssText"===o?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(o,void 0===t[o]?"":t[o]));r.setAttribute("data-rh","true"),i.some((function(e,t){return n=t,r.isEqualNode(e)}))?i.splice(n,1):a.push(r)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),a.forEach((function(e){return r.appendChild(e)})),{oldTags:i,newTags:a}},dp=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),o=r?r.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s=0;d-=1)n.removeAttribute(i[d]);o.length===i.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==a.join(",")&&n.setAttribute("data-rh",a.join(","))}},fp=function(e,t){var n=e.baseTag,r=e.htmlAttributes,o=e.linkTags,i=e.metaTags,a=e.noscriptTags,s=e.onChangeClientState,l=e.scriptTags,c=e.styleTags,u=e.title,d=e.titleAttributes;dp(Nf.BODY,e.bodyAttributes),dp(Nf.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=Kf(e)),dp(Nf.TITLE,t)}(u,d);var f={baseTag:up(Nf.BASE,n),linkTags:up(Nf.LINK,o),metaTags:up(Nf.META,i),noscriptTags:up(Nf.NOSCRIPT,a),scriptTags:up(Nf.SCRIPT,l),styleTags:up(Nf.STYLE,c)},p={},h={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(h[e]=f[e].oldTags)})),t&&t(),s(e,p,h)},pp=null,hp=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return Mf({},r,((t={})[n.type]=[].concat(r[n.type]||[],[Mf({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(r.type){case Nf.TITLE:return Mf({},o,((t={})[r.type]=a,t.titleAttributes=Mf({},i),t));case Nf.BODY:return Mf({},o,{bodyAttributes:Mf({},i)});case Nf.HTML:return Mf({},o,{htmlAttributes:Mf({},i)});default:return Mf({},o,((n={})[r.type]=Mf({},i),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=Mf({},t);return Object.keys(e).forEach((function(t){var r;n=Mf({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return $f(Df.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+Df.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),$f(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``} ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,r={};return z.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=Rf(o,mp),s=Object.keys(a).reduce((function(e,t){return e[Ff[t]||t]=a[t],e}),{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,i),l){case Nf.FRAGMENT:t=n.mapChildrenToProps(i,t);break;case Nf.LINK:case Nf.META:case Nf.NOSCRIPT:case Nf.SCRIPT:case Nf.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:s,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(r,t)},n.render=function(){var e=this.props,t=e.children,n=Rf(e,gp),r=Mf({},n),o=n.helmetData;return t&&(r=this.mapChildrenToProps(t,r)),!o||o instanceof ip||(o=new ip(o.context,o.instances)),o?z.createElement(hp,Mf({},r,{context:o.value,helmetData:void 0})):z.createElement(ap.Consumer,null,(function(e){return z.createElement(hp,Mf({},r,{context:e}))}))},t}(F.Component);if(vp.propTypes={base:bf.object,bodyAttributes:bf.object,children:bf.oneOfType([bf.arrayOf(bf.node),bf.node]),defaultTitle:bf.string,defer:bf.bool,encodeSpecialCharacters:bf.bool,htmlAttributes:bf.object,link:bf.arrayOf(bf.object),meta:bf.arrayOf(bf.object),noscript:bf.arrayOf(bf.object),onChangeClientState:bf.func,script:bf.arrayOf(bf.object),style:bf.arrayOf(bf.object),title:bf.string,titleAttributes:bf.object,titleTemplate:bf.string,prioritizeSeoTags:bf.bool,helmetData:bf.object},vp.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},vp.displayName="Helmet","undefined"!=typeof window){function Fie(){var e=document.body,t=document.getElementById("__svg__icons__dom__");t||((t=document.createElementNS("http://www.w3.org/2000/svg","svg")).style.position="absolute",t.style.width="0",t.style.height="0",t.id="__svg__icons__dom__",t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),t.innerHTML='',e.insertBefore(t,e.lastChild)}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Fie):Fie()}var bp,yp={exports:{}}; +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/bp=yp,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t1&&void 0!==arguments[1]?arguments[1]:{},n=[];return z.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(zp(e)):Fp.isFragment(e)&&e.props?n=n.concat(zp(e.props.children,t)):n.push(e))})),n}var Hp={};function Vp(e,t){}function Up(e,t){}function Wp(e,t,n){t||Hp[n]||(e(!1,n),Hp[n]=!0)}function qp(e,t){Wp(Vp,e,t)}function Gp(e,t){Wp(Up,e,t)}function Kp(e){return Kp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kp(e)}function Xp(e){var t=function(e,t){if("object"!=Kp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Kp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kp(t)?t:t+""}function Yp(e,t,n){return(t=Xp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qp(e){for(var t=1;t0},e.prototype.connect_=function(){lh&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fh?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){lh&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;dh.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),hh=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Oh="undefined"!=typeof WeakMap?new WeakMap:new sh,$h=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ph.getInstance(),r=new kh(t,n,this);Oh.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){$h.prototype[e]=function(){var t;return(t=Oh.get(this))[e].apply(t,arguments)}}));var Ph=void 0!==ch.ResizeObserver?ch.ResizeObserver:$h,Th=new Map;var Mh=new Ph((function(e){e.forEach((function(e){var t,n=e.target;null===(t=Th.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));function Ih(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jh(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:1),t};function rm(e){if(Array.isArray(e))return e}function om(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function im(e,t){return rm(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Xh(e,t)||om()}function am(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function sm(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function lm(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}nm.cancel=function(e){var t=em.get(e);return tm(e),Qh(t)};var cm="data-rc-order",um="data-rc-priority",dm="rc-util-key",fm=new Map;function pm(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):dm}function hm(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function mm(e){return Array.from((fm.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function gm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!sm())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(cm,a),s&&i&&l.setAttribute(um,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=hm(t),u=c.firstChild;if(r){if(s){var d=(t.styles||mm(c)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(cm)))return!1;var t=Number(e.getAttribute(um)||0);return i>=t}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function vm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=hm(t);return(t.styles||mm(n)).find((function(n){return n.getAttribute(pm(t))===e}))}function bm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=vm(e,t);n&&hm(t).removeChild(n)}function ym(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=hm(n),o=mm(r),i=Qp(Qp({},n),{},{styles:o});!function(e,t){var n=fm.get(e);if(!n||!lm(document,n)){var r=gm("",t),o=r.parentNode;fm.set(e,o),e.removeChild(r)}}(r,i);var a=vm(t,i);if(a){var s,l,c;if(null!==(s=i.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=gm(e,i);return u.setAttribute(pm(i),t),u}function xm(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}function wm(e,t){if(null==e)return{};var n,r,o=xm(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sm(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(qp(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var s=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var l=0;l1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.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,n){var r=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 n=im(e,2)[1];return r.internalGet(t)[1]1&&void 0!==arguments[1]&&arguments[1],n=Fm.get(e)||"";return n||(Object.keys(e).forEach((function(r){var o=e[r];n+=r,o instanceof Am?n+=o.id:o&&"object"===Kp(o)?n+=zm(o,t):n+=o})),t&&(n=am(n)),Fm.set(e,n)),n}function Hm(e,t){return am("".concat(t,"_").concat(zm(e,!0)))}var Vm=sm();function Um(e){return"number"==typeof e?"".concat(e,"px"):e}function Wm(e,t,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var o=Qp(Qp({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(Yp(r={},$m,t),Yp(r,Pm,n),r)),i=Object.keys(o).map((function(e){var t=o[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var qm=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Gm=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=im(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Km=function(e,t,n){var r={},o={};return Object.entries(e).forEach((function(e){var t,i,a=im(e,2),s=a[0],l=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])o[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[s])){var c,u=qm(s,null==n?void 0:n.prefix);r[u]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),o[s]="var(".concat(u,")")}})),[o,Gm(r,t,{scope:null==n?void 0:n.scope})]},Xm=sm()?F.useLayoutEffect:F.useEffect,Ym=function(e,t){var n=F.useRef(!0);Xm((function(){return e(n.current)}),t),Xm((function(){return n.current=!1,function(){n.current=!0}}),[])},Zm=function(e,t){Ym((function(t){if(!t)return e()}),t)},Qm=Qp({},H).useInsertionEffect,Jm=Qm?function(e,t,n){return Qm((function(){return e(),t()}),n)}:function(e,t,n){F.useMemo(e,n),Ym((function(){return t(!0)}),n)},eg=void 0!==Qp({},H).useInsertionEffect?function(e){var t=[],n=!1;return F.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function tg(e,t,n,r,o){var i=F.useContext(Im).cache,a=Em([e].concat(Yh(t))),s=eg([a]),l=function(e){i.opUpdate(a,(function(t){var r=im(t||[void 0,void 0],2),o=r[0],i=[void 0===o?0:o,r[1]||n()];return e?e(i):i}))};F.useMemo((function(){l()}),[a]);var c=i.opGet(a)[1];return Jm((function(){null==o||o(c)}),(function(e){return l((function(t){var n=im(t,2),r=n[0],i=n[1];return e&&0===r&&(null==o||o(c)),[r+1,i]})),function(){i.opUpdate(a,(function(t){var n=im(t||[],2),o=n[0],l=void 0===o?0:o,c=n[1];return 0===l-1?(s((function(){!e&&i.opGet(a)||null==r||r(c,!1)})),null):[l-1,c]}))}}),[a]),c}var ng={},rg="css",og=new Map;var ig=0;function ag(e,t){og.set(e,(og.get(e)||0)-1);var n=Array.from(og.keys()),r=n.filter((function(e){return(og.get(e)||0)<=0}));n.length-r.length>ig&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat($m,'="').concat(e,'"]')).forEach((function(e){var n;e[Tm]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),og.delete(e)}))}var sg=function(e,t,n,r){var o=Qp(Qp({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o},lg="token";function cg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=F.useContext(Im),o=r.cache.instanceId,i=r.container,a=n.salt,s=void 0===a?"":a,l=n.override,c=void 0===l?ng:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=function(e,t){for(var n=Dm,r=0;r2||_g(Mg)>3?"":" "}function Fg(e,t){for(;--t&&Rg()&&!(Mg<48||Mg>102||Mg>57&&Mg<65||Mg>70&&Mg<97););return Lg(e,Ag()+(t<6&&32==Ng()&&32==Rg()))}function zg(e){for(;Rg();)switch(Mg){case e:return Tg;case 34:case 39:34!==e&&39!==e&&zg(Mg);break;case 40:41===e&&zg(e);break;case 92:Rg()}return Tg}function Hg(e,t){for(;Rg()&&e+Mg!==57&&(e+Mg!==84||47!==Ng()););return"/*"+Lg(t,Tg-1)+"*"+bg(47===e?e:Rg())}function Vg(e){for(;!_g(Ng());)Rg();return Lg(e,Tg)}function Ug(e){return function(e){return Ig="",e}(Wg("",null,null,null,[""],e=function(e){return Og=$g=1,Pg=Eg(Ig=e),Tg=0,[]}(e),0,[0],e))}function Wg(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,w=i,S=r,C=y;g;)switch(h=b,b=Rg()){case 40:if(108!=h&&58==Sg(C,d-1)){-1!=wg(C+=xg(Dg(b),"&","&\f"),"&\f",vg(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Dg(b);break;case 9:case 10:case 13:case 32:C+=Bg(h);break;case 92:C+=Fg(Ag()-1,7);continue;case 47:switch(Ng()){case 42:case 47:kg(Gg(Hg(Rg(),Ag()),t,n,l),l);break;default:C+="/"}break;case 123*m:s[c++]=Eg(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(C=xg(C,/\f/g,"")),p>0&&Eg(C)-d&&kg(p>32?Kg(C+";",r,n,d-1,l):Kg(xg(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(kg(S=qg(C,t,n,c,u,o,s,y,x=[],w=[],d,i),i),123===b)if(0===u)Wg(C,t,S,S,x,i,d,s,w);else switch(99===f&&110===Sg(C,3)?100:f){case 100:case 108:case 109:case 115:Wg(e,S,S,r&&kg(qg(e,S,S,0,0,o,s,y,o,x=[],d,w),w),o,w,d,s,r?x:w);break;default:Wg(C,S,S,S,[""],w,0,s,w)}}c=u=p=0,m=v=1,y=C="",d=a;break;case 58:d=1+Eg(C),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==(Mg=Tg>0?Sg(Ig,--Tg):0,$g--,10===Mg&&($g=1,Og--),Mg))continue;switch(C+=bg(b),b*m){case 38:v=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Eg(C)-1)*v,v=1;break;case 64:45===Ng()&&(C+=Dg(Rg())),f=Ng(),u=d=Eg(y=C+=Vg(Ag())),b++;break;case 45:45===h&&2==Eg(C)&&(m=0)}}return i}function qg(e,t,n,r,o,i,a,s,l,c,u,d){for(var f=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),m=0,g=0,v=0;m0?p[b]+" "+y:xg(y,/&\f/g,p[b])))&&(l[v++]=x);return jg(e,t,n,0===o?fg:s,l,c,u,d)}function Gg(e,t,n,r){return jg(e,t,n,dg,bg(Mg),Cg(e,2,-2),0,r)}function Kg(e,t,n,r,o){return jg(e,t,n,pg,Cg(e,0,r),Cg(e,r+1,-1),r,o)}function Xg(e,t){for(var n="",r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=void 0===u?[]:u;n.linters;var f="",p={};function h(t){var r=t.getName(s);if(!p[r]){var o=im(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(s)).concat(o)}}var m=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return m.forEach((function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)h(r);else{var l=d.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(l).forEach((function(t){var r=l[t];if("object"!==Kp(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===Kp(e)&&e&&("_skip_check_"in e||nv in e)}(r)){var u;function w(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;ug[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(h(t),r=t.getName(s)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===Kp(r)&&null!=r&&r[nv]&&Array.isArray(d)?d.forEach((function(e){w(t,e)})):w(t,d)}else{var m=!1,g=t.trim(),v=!1;(o||i)&&s?g.startsWith("@")?m=!0:g=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,i=e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(Yh(n.slice(1))).join(" ")}));return i.join(",")}(t,s,c):!o||s||"&"!==g&&""!==g||(g="",v=!0);var b=im(e(r,n,{root:v,injectHash:m,parentSelectors:[].concat(Yh(a),[g])}),2),y=b[0],x=b[1];p=Qp(Qp({},p),x),f+="".concat(g).concat(y)}}))}})),o?l&&(f="@layer ".concat(l.name," {").concat(f,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(l.name,";")})).join("\n"))):f="{".concat(f,"}"),[f,p]};function iv(e,t){return am("".concat(e.join("%")).concat(t))}function av(){return null}var sv="style";function lv(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=void 0===l?0:l,u=F.useContext(Im),d=u.autoClear;u.mock;var f=u.defaultCache,p=u.hashPriority,h=u.container,m=u.ssrInline,g=u.transformers,v=u.linters,b=u.cache,y=u.layer,x=n._tokenKey,w=[x];y&&w.push("layer"),w.push.apply(w,Yh(r));var S=Vm,C=tg(sv,w,(function(){var e=w.join("|");if(tv(e)){var n=function(e){var t=Zg[e],n=null;if(t&&sm())if(ev)n=Jg;else{var r=document.querySelector("style[".concat(Pm,'="').concat(Zg[e],'"]'));r?n=r.innerHTML:delete Zg[e]}return[n,t]}(e),a=im(n,2),l=a[0],u=a[1];if(l)return[l,x,u,{},s,c]}var d=t(),f=im(ov(d,{hashId:o,hashPriority:p,layer:y?i:void 0,path:r.join("-"),transformers:g,linters:v}),2),h=f[0],m=f[1],b=rv(h),S=iv(w,b);return[b,x,S,m,s,c]}),(function(e,t){var n=im(e,3)[2];(t||d)&&Vm&&bm(n,{mark:Pm})}),(function(e){var t=im(e,4),n=t[0];t[1];var r=t[2],o=t[3];if(S&&n!==Jg){var i={mark:Pm,prepend:!y&&"queue",attachTo:h,priority:c},s="function"==typeof a?a():a;s&&(i.csp={nonce:s});var l=[],u=[];Object.keys(o).forEach((function(e){e.startsWith("@layer")?l.push(e):u.push(e)})),l.forEach((function(e){ym(rv(o[e]),"_layer-".concat(e),Qp(Qp({},i),{},{prepend:!0}))}));var d=ym(n,r,i);d[Tm]=b.instanceId,d.setAttribute($m,x),u.forEach((function(e){ym(rv(o[e]),"_effect-".concat(e),i)}))}})),E=im(C,3),k=E[0],O=E[1],$=E[2];return function(e){var t,n;m&&!S&&f?t=F.createElement("style",wp({},(Yp(n={},$m,O),Yp(n,Pm,$),n),{dangerouslySetInnerHTML:{__html:k}})):t=F.createElement(av,null);return F.createElement(F.Fragment,null,t,e)}}var cv,uv="cssVar";Yp(cv={},sv,(function(e,t,n){var r=im(e,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=(n||{}).plain;if(l)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Wm(o,i,a,f,u),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=Wm(rv(s[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),Yp(cv,lg,(function(e,t,n){var r=im(e,5),o=r[2],i=r[3],a=r[4],s=(n||{}).plain;if(!i)return null;var l=o._tokenKey;return[-999,l,Wm(i,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Yp(cv,uv,(function(e,t,n){var r=im(e,4),o=r[1],i=r[2],a=r[3],s=(n||{}).plain;if(!o)return null;return[-999,i,Wm(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var dv=function(){function e(t,n){Ih(this,e),Yp(this,"name",void 0),Yp(this,"style",void 0),Yp(this,"_keyframe",!0),this.name=t,this.style=n}return Rh(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 fv(e){return e.notSplit=!0,e}fv(["borderTop","borderBottom"]),fv(["borderTop"]),fv(["borderBottom"]),fv(["borderLeft","borderRight"]),fv(["borderLeft"]),fv(["borderRight"]);const pv=F.createContext({});function hv(e){return rm(e)||Kh(e)||Xh(e)||om()}function mv(e,t){for(var n=e,r=0;r3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!mv(e,t.slice(0,-1))?e:gv(e,t,n,r)}function bv(e){return Array.isArray(e)?[]:{}}var yv="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function xv(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=wv,e},Ev=F.createContext(void 0);var kv={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"};const Ov={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},$v={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},Ov)},Pv="${label} is not a valid ${type}",Tv={locale:"en",Pagination:kv,DatePicker:$v,TimePicker:Ov,Calendar:$v,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Pv,method:Pv,array:Pv,object:Pv,number:Pv,date:Pv,boolean:Pv,integer:Pv,float:Pv,regexp:Pv,email:Pv,url:Pv,hex:Pv},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};let Mv=Object.assign({},Tv.Modal),Iv=[];const jv=()=>Iv.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),Tv.Modal);function Rv(){return Mv}const Nv=F.createContext(void 0),Av=(e,t)=>{const n=F.useContext(Nv),r=F.useMemo((()=>{var r;const o=t||Tv[e],i=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})}),[e,t,n]);return[r,F.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?Tv.locale:e}),[n])]},Lv=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;F.useEffect((()=>{const e=function(e){if(e){const t=Object.assign({},e);return Iv.push(t),Mv=jv(),()=>{Iv=Iv.filter((e=>e!==t)),Mv=jv()}}Mv=Object.assign({},Tv.Modal)}(t&&t.Modal);return e}),[t]);const o=F.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return F.createElement(Nv.Provider,{value:o},n)};function _v(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Dv(e){return Math.min(1,Math.max(0,e))}function Bv(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Fv(e){return e<=1?"".concat(100*Number(e),"%"):e}function zv(e){return 1===e.length?"0"+e:String(e)}function Hv(e,t,n){e=_v(e,255),t=_v(t,255),n=_v(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Uv(e,t,n){e=_v(e,255),t=_v(t,255),n=_v(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=0===r?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Yv(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.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=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},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,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Bv(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=Uv(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=Uv(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Hv(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=Hv(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Wv(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),function(e,t,n,r,o){var i=[zv(Math.round(e).toString(16)),zv(Math.round(t).toString(16)),zv(Math.round(n).toString(16)),zv(qv(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(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),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*_v(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*_v(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="#"+Wv(this.r,this.g,this.b,!1),t=0,n=Object.entries(Xv);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},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 n=this.toHsl();return n.l+=t/100,n.l=Dv(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Dv(n.l),new e(n)},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 n=this.toHsl();return n.s-=t/100,n.s=Dv(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Dv(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));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 n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.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 n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a=60&&Math.round(e.h)<=240?n?Math.round(e.h)-rb*t:Math.round(e.h)+rb*t:n?Math.round(e.h)+rb*t:Math.round(e.h)-rb*t)<0?r+=360:r>=360&&(r-=360),r}function hb(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-ob*t:t===cb?e.s+ob:e.s+ib*t)>1&&(r=1),n&&t===lb&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function mb(e,t,n){var r;return(r=n?e.v+ab*t:e.v-sb*t)>1&&(r=1),Number(r.toFixed(2))}function gb(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Yv(e),o=lb;o>0;o-=1){var i=db(r),a=fb(Yv({h:pb(i,o,!0),s:hb(i,o,!0),v:mb(i,o,!0)}));n.push(a)}n.push(fb(r));for(var s=1;s<=cb;s+=1){var l=db(r),c=fb(Yv({h:pb(l,s),s:hb(l,s),v:mb(l,s)}));n.push(c)}return"dark"===t.theme?ub.map((function(e){var r=e.index,o=e.opacity,i=fb(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}(Yv(t.backgroundColor||"#141414"),Yv(n[r]),100*o));return i})):n}var vb={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"},bb={},yb={};Object.keys(vb).forEach((function(e){bb[e]=gb(vb[e]),bb[e].primary=bb[e][5],yb[e]=gb(vb[e],{theme:"dark",backgroundColor:"#141414"}),yb[e].primary=yb[e][5]}));var xb=bb.gold,wb=bb.blue;const Sb={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Cb=Object.assign(Object.assign({},Sb),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function Eb(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(o),p=n(i),h=n(a),m=n(s),g=r(c,u),v=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new nb("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const kb=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const Ob=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function $b(e){return(e+8)/e}const Pb=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:$b(e)})))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const Tb=(e,t)=>new nb(e).setAlpha(t).toRgbString(),Mb=(e,t)=>new nb(e).darken(t).toHexString(),Ib=e=>{const t=gb(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},jb=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Tb(r,.88),colorTextSecondary:Tb(r,.65),colorTextTertiary:Tb(r,.45),colorTextQuaternary:Tb(r,.25),colorFill:Tb(r,.15),colorFillSecondary:Tb(r,.06),colorFillTertiary:Tb(r,.04),colorFillQuaternary:Tb(r,.02),colorBgLayout:Mb(n,4),colorBgContainer:Mb(n,0),colorBgElevated:Mb(n,0),colorBgSpotlight:Tb(r,.85),colorBgBlur:"transparent",colorBorder:Mb(n,15),colorBorderSecondary:Mb(n,6)}};function Rb(e){const t=Object.keys(Sb).map((t=>{const n=gb(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Eb(e,{generateColorPalettes:Ib,generateNeutralColorPalettes:jb})),Pb(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),Ob(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},kb(r))}(e))}const Nb=_m(Rb),Ab={token:Cb,override:{override:Cb},hashed:!0},Lb=z.createContext(Ab),_b="anticon",Db=F.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:_b}),Bb=`-ant-${Date.now()}-${Math.random()}`;function Fb(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new nb(e),i=gb(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new nb(t.primaryColor),i=gb(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new nb(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);sm()&&ym(n,`${Bb}-dynamic-theme`)}const zb=F.createContext(!1),Hb=e=>{let{children:t,disabled:n}=e;const r=F.useContext(zb);return F.createElement(zb.Provider,{value:null!=n?n:r},t)},Vb=zb,Ub=F.createContext(void 0),Wb=e=>{let{children:t,size:n}=e;const r=F.useContext(Ub);return F.createElement(Ub.Provider,{value:n||r},t)},qb=Ub;const Gb=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Kb="5.16.4";function Xb(e){return e>=0&&e<=255}function Yb(e,t){const{r:n,g:r,b:o,a:i}=new nb(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new nb(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-s*(1-c))/c),i=Math.round((o-l*(1-c))/c);if(Xb(e)&&Xb(t)&&Xb(i))return new nb({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new nb({r:n,g:r,b:o,a:1}).toRgbString()}var Zb=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Yb(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Yb(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Yb(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Yb(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new nb("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new nb("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new nb("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Jb=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=Jb(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Qb(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=Jb(n,["theme"]);let i=o;r&&(i=ry(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function oy(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=z.useContext(Lb),i=`${Kb}-${t||""}`,a=n||Nb,[s,l,c]=cg(a,[Cb,e],{salt:i,override:r,getComputedToken:ry,formatToken:Qb,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:ey,ignore:ty,preserve:ny}});return[a,c,t?l:"",s,o]}function iy(e,t,n){return t=Lh(t),Bh(e,_h()?Reflect.construct(t,n||[],Lh(e).constructor):t.apply(e,n))}const ay=Rh((function e(){Ih(this,e)})),sy="CALC_UNIT",ly=new RegExp(sy,"g");function cy(e){return"number"==typeof e?`${e}${sy}`:e}let uy=function(e){function t(e){var n;return Ih(this,t),(n=iy(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=cy(e):"string"==typeof e&&(n.result=e),n}return Ah(t,ay),Rh(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${cy(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${cy(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{};return this.result=this.result.replace(ly,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(),dy=function(e){function t(e){var n;return Ih(this,t),(n=iy(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return Ah(t,ay),Rh(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}();const fy=e=>{const t="css"===e?uy:dy;return e=>new t(e)};function py(e){var t=F.useRef();t.current=e;var n=F.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},yy=()=>({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"}}),xy=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),wy=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Sy=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},Cy=e=>({outline:`${Um(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Ey=e=>({"&:focus-visible":Object.assign({},Cy(e))});const ky="undefined"!=typeof CSSINJS_STATISTIC;let Oy=!0;function $y(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),Oy=!0,r}const Py={};function Ty(){}const My=(e,t)=>{const[n,r]=oy();return lv({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},Iy=(e,t,n)=>{var r;return"function"==typeof n?n($y(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},jy=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==o?void 0:o[t])||(null==o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null==o?void 0:o[t]))}))}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};function Ry(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[s,l,c,u,d]=oy(),{getPrefixCls:f,iconPrefixCls:p,csp:h}=F.useContext(Db),m=f(),g=d?"css":"js",v=fy(g),{max:b,min:y}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;nUm(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;nUm(e))).join(",")})`}}}(g),x={theme:s,token:u,hashId:c,nonce:()=>null==h?void 0:h.nonce,clientOnly:r.clientOnly,order:r.order||-999};lv(Object.assign(Object.assign({},x),{clientOnly:!1,path:["Shared",m]}),(()=>[{"&":wy(u)}])),My(p,h);const w=lv(Object.assign(Object.assign({},x),{path:[a,e,p]}),(()=>{if(!1===r.injectStyle)return[];const{token:a,flush:s}=(e=>{let t,n=e,r=Ty;return ky&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(Oy&&t.add(n),e[n])}),r=(e,n)=>{var r;Py[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=Py[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}})(u),f=Iy(i,l,n),h=`.${e}`,g=jy(i,l,f,{deprecatedTokens:r.deprecatedTokens});d&&Object.keys(f).forEach((e=>{f[e]=`var(${qm(e,((e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(i,d.prefix))})`}));const x=$y(a,{componentCls:h,prefixCls:e,iconCls:`.${p}`,antCls:`.${m}`,calc:v,max:b,min:y},d?f:g),w=t(x,{hashId:c,prefixCls:e,rootPrefixCls:m,iconPrefixCls:p});return s(i,g),[!1===r.resetStyle?null:Sy(x,e,o,r.resetFont),w]}));return[w,c]}}const Ny=(e,t,n,r)=>{const o=Ry(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t,rootCls:n=t}=e;return o(t,n),null}},Ay=(e,t,n)=>{function r(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=null!=n?n:{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach((e=>{a[r(e)]=o[e]}));const s=o=>{let{rootCls:i,cssVar:s}=o;const[,l]=oy();return function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,s=e.scope,l=void 0===s?"":s,c=F.useContext(Im),u=c.cache.instanceId,d=c.container,f=a._tokenKey,p=[].concat(Yh(e.path),[n,l,f]),h=tg(uv,p,(function(){var e=t(),a=im(Km(e,n,{prefix:r,unitless:o,ignore:i,scope:l}),2),s=a[0],c=a[1];return[s,c,iv(p,c),n]}),(function(e){var t=im(e,3)[2];Vm&&bm(t,{mark:Pm})}),(function(e){var t=im(e,3),r=t[1],o=t[2];if(r){var i=ym(r,o,{mark:Pm,prepend:"queue",attachTo:d,priority:-999});i[Tm]=u,i.setAttribute($m,n)}}))}({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},ey),a),ignore:ty,token:l,scope:i},(()=>{const o=Iy(e,l,t),i=jy(e,l,o,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(o).forEach((e=>{i[r(e)]=i[e],delete i[e]})),i})),null};return t=>{const[,,,,n]=oy();return[r=>i&&n?z.createElement(z.Fragment,null,z.createElement(s,{rootCls:t,cssVar:n,component:e}),r):r,null==n?void 0:n.key]}},Ly=(e,t,n,r)=>{const o=Ry(e,t,n,r),i=Ay(Array.isArray(e)?e[0]:e,n,r);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=o(e,t),[r,a]=i(t);return[r,n,a]}};function _y(e,t){return Gb.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const Dy=Object.assign({},H),{useId:By}=Dy,Fy=void 0===By?()=>"":By;var zy=["children"],Hy=F.createContext({});function Vy(e){var t=e.children,n=wm(e,zy);return F.createElement(Hy.Provider,{value:n},t)}var Uy=function(e){Ah(n,F.Component);var t=Fh(n);function n(){return Ih(this,n),t.apply(this,arguments)}return Rh(n,[{key:"render",value:function(){return this.props.children}}]),n}(),Wy="none",qy="appear",Gy="enter",Ky="leave",Xy="none",Yy="prepare",Zy="start",Qy="active",Jy="end",ex="prepared";function tx(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var nx,rx,ox,ix=(nx=sm(),rx="undefined"!=typeof window?window:{},ox={animationend:tx("Animation","AnimationEnd"),transitionend:tx("Transition","TransitionEnd")},nx&&("AnimationEvent"in rx||delete ox.animationend.animation,"TransitionEvent"in rx||delete ox.transitionend.transition),ox),ax={};if(sm()){var sx=document.createElement("div");ax=sx.style}var lx={};function cx(e){if(lx[e])return lx[e];var t=ix[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=nm((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),s=im(a,2),l=s[0],c=s[1];var u=t?yx:bx;return vx((function(){if(o!==Xy&&o!==Jy){var e=u.indexOf(o),t=u[e+1],r=n(o);r===xx?i(t,!0):t&&l((function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,o]),F.useEffect((function(){return function(){c()}}),[]),[function(){i(Yy,!0)},o]};const Ex=function(e){var t=e;"object"===Kp(e)&&(t=e.transitionSupport);var n=F.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,s=e.forceRender,l=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,f=function(e,n){return!(!e.motionName||!t||!1===n)}(e,F.useContext(Hy).motion),p=F.useRef(),h=F.useRef();var m=function(e,t,n,r){var o=r.motionEnter,i=void 0===o||o,a=r.motionAppear,s=void 0===a||a,l=r.motionLeave,c=void 0===l||l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,m=r.onAppearStart,g=r.onEnterStart,v=r.onLeaveStart,b=r.onAppearActive,y=r.onEnterActive,x=r.onLeaveActive,w=r.onAppearEnd,S=r.onEnterEnd,C=r.onLeaveEnd,E=r.onVisibleChanged,k=im(hy(),2),O=k[0],$=k[1],P=im(hy(Wy),2),T=P[0],M=P[1],I=im(hy(null),2),j=I[0],R=I[1],N=F.useRef(!1),A=F.useRef(null);function L(){return n()}var _=F.useRef(!1);function D(){M(Wy,!0),R(null,!0)}function B(e){var t=L();if(!e||e.deadline||e.target===t){var n,r=_.current;T===qy&&r?n=null==w?void 0:w(t,e):T===Gy&&r?n=null==S?void 0:S(t,e):T===Ky&&r&&(n=null==C?void 0:C(t,e)),T!==Wy&&r&&!1!==n&&D()}}var z=im(gx(B),1)[0],H=function(e){var t,n,r;switch(e){case qy:return Yp(t={},Yy,f),Yp(t,Zy,m),Yp(t,Qy,b),t;case Gy:return Yp(n={},Yy,p),Yp(n,Zy,g),Yp(n,Qy,y),n;case Ky:return Yp(r={},Yy,h),Yp(r,Zy,v),Yp(r,Qy,x),r;default:return{}}},V=F.useMemo((function(){return H(T)}),[T]),U=im(Cx(T,!e,(function(e){if(e===Yy){var t=V[Yy];return t?t(L()):xx}var n;return q in V&&R((null===(n=V[q])||void 0===n?void 0:n.call(V,L(),null))||null),q===Qy&&(z(L()),u>0&&(clearTimeout(A.current),A.current=setTimeout((function(){B({deadline:!0})}),u))),q===ex&&D(),wx})),2),W=U[0],q=U[1],G=Sx(q);_.current=G,vx((function(){$(t);var n,r=N.current;N.current=!0,!r&&t&&s&&(n=qy),r&&t&&i&&(n=Gy),(r&&!t&&c||!r&&d&&!t&&c)&&(n=Ky);var o=H(n);n&&(e||o[Yy])?(M(n),W()):M(Wy)}),[t]),F.useEffect((function(){(T===qy&&!s||T===Gy&&!i||T===Ky&&!c)&&M(Wy)}),[s,i,c]),F.useEffect((function(){return function(){N.current=!1,clearTimeout(A.current)}}),[]);var K=F.useRef(!1);F.useEffect((function(){O&&(K.current=!0),void 0!==O&&T===Wy&&((K.current||O)&&(null==E||E(O)),K.current=!0)}),[O,T]);var X=j;return V[Yy]&&q===Zy&&(X=Qp({transition:"none"},X)),[T,q,X,null!=O?O:t]}(f,o,(function(){try{return p.current instanceof HTMLElement?p.current:eh(h.current)}catch(s7){return null}}),e),g=im(m,4),v=g[0],b=g[1],y=g[2],x=g[3],w=F.useRef(x);x&&(w.current=!0);var S,C=F.useCallback((function(e){p.current=e,nh(n,e)}),[n]),E=Qp(Qp({},d),{},{visible:o});if(l)if(v===Wy)S=x?l(Qp({},E),C):!a&&w.current&&u?l(Qp(Qp({},E),{},{className:u}),C):s||!a&&!u?l(Qp(Qp({},E),{},{style:{display:"none"}}),C):null;else{var k,O;b===Yy?O="prepare":Sx(b)?O="active":b===Zy&&(O="start");var $=mx(c,"".concat(v,"-").concat(O));S=l(Qp(Qp({},E),{},{className:xp(mx(c,v),(k={},Yp(k,$,$&&O),Yp(k,c,"string"==typeof c),k)),style:y}),C)}else S=null;F.isValidElement(S)&&ih(S)&&(S.ref||(S=F.cloneElement(S,{ref:C})));return F.createElement(Uy,{ref:h},S)}));return n.displayName="CSSMotion",n}(fx);var kx="add",Ox="keep",$x="remove",Px="removed";function Tx(e){var t;return Qp(Qp({},t=e&&"object"===Kp(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Mx(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Tx)}var Ix=["component","children","onVisibleChanged","onAllRemoved"],jx=["status"],Rx=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Nx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ex,n=function(e){Ah(r,F.Component);var n=Fh(r);function r(){var e;Ih(this,r);for(var t=arguments.length,o=new Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Mx(e),a=Mx(t);i.forEach((function(e){for(var t=!1,i=r;i1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==$x}))).forEach((function(t){t.key===e&&(t.status=Ox)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Px||e.status!==$x}))}}}]),r}();return Yp(n,"defaultProps",{component:"div"}),n}(fx);function Ax(e){const{children:t}=e,[,n]=oy(),{motion:r}=n,o=F.useRef(!1);return o.current=o.current||!1===r,o.current?F.createElement(Vy,{motion:r},t):t}const Lx=()=>null;var _x=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({getPrefixCls:(e,t)=>t||(e?`${Vx()}-${e}`:Vx()),getIconPrefixCls:Ux,getRootPrefixCls:()=>Bx||Vx(),getTheme:()=>zx,holderRender:Hx}),qx=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:m,parentContext:g,iconPrefixCls:v,theme:b,componentDisabled:y,segmented:x,statistic:w,spin:S,calendar:C,carousel:E,cascader:k,collapse:O,typography:$,checkbox:P,descriptions:T,divider:M,drawer:I,skeleton:j,steps:R,image:N,layout:A,list:L,mentions:_,modal:D,progress:B,result:z,slider:H,breadcrumb:V,menu:U,pagination:W,input:q,textArea:G,empty:K,badge:X,radio:Y,rate:Z,switch:Q,transfer:J,avatar:ee,message:te,tag:ne,table:re,card:oe,tabs:ie,timeline:ae,timePicker:se,upload:le,notification:ce,tree:ue,colorPicker:de,datePicker:fe,rangePicker:pe,flex:he,wave:me,dropdown:ge,warning:ve,tour:be,floatButtonGroup:ye}=e,xe=F.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||g.getPrefixCls("");return t?`${o}-${t}`:o}),[g.getPrefixCls,e.prefixCls]),we=v||g.iconPrefixCls||_b,Se=n||g.csp;My(we,Se);const Ce=function(e,t,n){var r;Cv();const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},Ab),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:Ab.hashed,cssVar:null==t?void 0:t.cssVar}),a=Fy();return th((()=>{var r,s;if(!e)return t;const l=Object.assign({},i.components);Object.keys(e.components||{}).forEach((t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])}));const c=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(s=o.cssVar)||void 0===s?void 0:s.key)||c});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:l,cssVar:u})}),[o,i],((e,t)=>e.some(((e,n)=>!Sm(e,t[n],!0)))))}(b,g.theme,{prefixCls:xe("")}),Ee={csp:Se,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||m,direction:c,space:u,virtual:d,popupMatchSelectWidth:null!=p?p:f,popupOverflow:h,getPrefixCls:xe,iconPrefixCls:we,theme:Ce,segmented:x,statistic:w,spin:S,calendar:C,carousel:E,cascader:k,collapse:O,typography:$,checkbox:P,descriptions:T,divider:M,drawer:I,skeleton:j,steps:R,image:N,input:q,textArea:G,layout:A,list:L,mentions:_,modal:D,progress:B,result:z,slider:H,breadcrumb:V,menu:U,pagination:W,empty:K,badge:X,radio:Y,rate:Z,switch:Q,transfer:J,avatar:ee,message:te,tag:ne,table:re,card:oe,tabs:ie,timeline:ae,timePicker:se,upload:le,notification:ce,tree:ue,colorPicker:de,datePicker:fe,rangePicker:pe,flex:he,wave:me,dropdown:ge,warning:ve,tour:be,floatButtonGroup:ye},ke=Object.assign({},g);Object.keys(Ee).forEach((e=>{void 0!==Ee[e]&&(ke[e]=Ee[e])})),Dx.forEach((t=>{const n=e[t];n&&(ke[t]=n)}));const Oe=th((()=>ke),ke,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),$e=F.useMemo((()=>({prefixCls:we,csp:Se})),[we,Se]);let Pe=F.createElement(F.Fragment,null,F.createElement(Lx,{dropdownMatchSelectWidth:f}),t);const Te=F.useMemo((()=>{var e,t,n,r;return xv((null===(e=Tv.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Oe.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Oe.form)||void 0===r?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})}),[Oe,null==a?void 0:a.validateMessages]);Object.keys(Te).length>0&&(Pe=F.createElement(Ev.Provider,{value:Te},Pe)),s&&(Pe=F.createElement(Lv,{locale:s,_ANT_MARK__:"internalMark"},Pe)),(we||Se)&&(Pe=F.createElement(pv.Provider,{value:$e},Pe)),l&&(Pe=F.createElement(Wb,{size:l},Pe)),Pe=F.createElement(Ax,null,Pe);const Me=F.useMemo((()=>{const e=Ce||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=_x(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?_m(t):Nb,s={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=_m(r.algorithm)),delete r.algorithm),s[t]=r}));const l=Object.assign(Object.assign({},Cb),n);return Object.assign(Object.assign({},i),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:o})}),[Ce]);return b&&(Pe=F.createElement(Lb.Provider,{value:Me},Pe)),Oe.warning&&(Pe=F.createElement(Sv.Provider,{value:Oe.warning},Pe)),void 0!==y&&(Pe=F.createElement(Hb,{disabled:y},Pe)),F.createElement(Db.Provider,{value:Oe},Pe)},Gx=e=>{const t=F.useContext(Db),n=F.useContext(Nv);return F.createElement(qx,Object.assign({parentContext:t,legacyLocale:n},e))};Gx.ConfigContext=Db,Gx.SizeContext=qb,Gx.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Bx=t),void 0!==n&&(Fx=n),"holderRender"in e&&(Hx=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?zx=r:Fb(Vx(),r))},Gx.useConfig=function(){return{componentDisabled:F.useContext(Vb),componentSize:F.useContext(qb)}},Object.defineProperty(Gx,"SizeContext",{get:()=>qb});const Kx=Gx;const Xx={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"};function Yx(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Zx(e){return function(e){return Yx(e)instanceof ShadowRoot}(e)?Yx(e):null}function Qx(e){return"object"===Kp(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===Kp(e.icon)||"function"==typeof e.icon)}function Jx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function ew(e,t,n){return n?z.createElement(e.tag,Qp(Qp({key:t},Jx(e.attrs)),n),(e.children||[]).map((function(n,r){return ew(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):z.createElement(e.tag,Qp({key:t},Jx(e.attrs)),(e.children||[]).map((function(n,r){return ew(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function tw(e){return gb(e)[0]}function nw(e){return e?Array.isArray(e)?e:[e]:[]}var rw=["icon","className","onClick","style","primaryColor","secondaryColor"],ow={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var iw=function(e){var t,n,r,o,i,a=e.icon,s=e.className,l=e.onClick,c=e.style,u=e.primaryColor,d=e.secondaryColor,f=wm(e,rw),p=F.useRef(),h=ow;if(u&&(h={primaryColor:u,secondaryColor:d||tw(u)}),t=p,n=F.useContext(pv),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-flex;\n alignItems: center;\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",o&&(i=i.replace(/anticon/g,o)),F.useEffect((function(){var e=Zx(t.current);ym(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:e})}),[]),function(e,t){qp(e,"[@ant-design/icons] ".concat(t))}(Qx(a),"icon should be icon definiton, but got ".concat(a)),!Qx(a))return null;var m=a;return m&&"function"==typeof m.icon&&(m=Qp(Qp({},m),{},{icon:m.icon(h.primaryColor,h.secondaryColor)})),ew(m.icon,"svg-".concat(m.name),Qp(Qp({className:s,onClick:l,style:c,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};iw.displayName="IconReact",iw.getTwoToneColors=function(){return Qp({},ow)},iw.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;ow.primaryColor=t,ow.secondaryColor=n||tw(t),ow.calculated=!!n};const aw=iw;function sw(e){var t=im(nw(e),2),n=t[0],r=t[1];return aw.setTwoToneColors({primaryColor:n,secondaryColor:r})}var lw=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];sw(wb.primary);var cw=F.forwardRef((function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=wm(e,lw),u=F.useContext(pv),d=u.prefixCls,f=void 0===d?"anticon":d,p=u.rootClassName,h=xp(p,f,Yp(Yp({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!o||"loading"===r.name),n),m=a;void 0===m&&s&&(m=-1);var g=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,v=im(nw(l),2),b=v[0],y=v[1];return F.createElement("span",wp({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:s,className:h}),F.createElement(aw,{icon:r,primaryColor:b,secondaryColor:y,style:g}))}));cw.displayName="AntdIcon",cw.getTwoToneColor=function(){var e=aw.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},cw.setTwoToneColor=sw;const uw=cw;var dw=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:Xx}))}; +/**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0xOTMuNSAzMDEuN2wtMjEwLjYgMjkyYTMxLjggMzEuOCAwIDAxLTUxLjcgMEwzMTguNSA0ODQuOWMtMy44LTUuMyAwLTEyLjcgNi41LTEyLjdoNDYuOWMxMC4yIDAgMTkuOSA0LjkgMjUuOSAxMy4zbDcxLjIgOTguOCAxNTcuMi0yMThjNi04LjMgMTUuNi0xMy4zIDI1LjktMTMuM0g2OTljNi41IDAgMTAuMyA3LjQgNi41IDEyLjd6IiAvPjwvc3ZnPg==) */const fw=F.forwardRef(dw);const pw={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"};var hw=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:pw}))}; +/**![close-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNTEyIDY0YzI0Ny40IDAgNDQ4IDIwMC42IDQ0OCA0NDhTNzU5LjQgOTYwIDUxMiA5NjAgNjQgNzU5LjQgNjQgNTEyIDI2NC42IDY0IDUxMiA2NHptMTI3Ljk4IDI3NC44MmgtLjA0bC0uMDguMDZMNTEyIDQ2Ni43NSAzODQuMTQgMzM4Ljg4Yy0uMDQtLjA1LS4wNi0uMDYtLjA4LS4wNmEuMTIuMTIgMCAwMC0uMDcgMGMtLjAzIDAtLjA1LjAxLS4wOS4wNWwtNDUuMDIgNDUuMDJhLjIuMiAwIDAwLS4wNS4wOS4xMi4xMiAwIDAwMCAuMDd2LjAyYS4yNy4yNyAwIDAwLjA2LjA2TDQ2Ni43NSA1MTIgMzM4Ljg4IDYzOS44NmMtLjA1LjA0LS4wNi4wNi0uMDYuMDhhLjEyLjEyIDAgMDAwIC4wN2MwIC4wMy4wMS4wNS4wNS4wOWw0NS4wMiA0NS4wMmEuMi4yIDAgMDAuMDkuMDUuMTIuMTIgMCAwMC4wNyAwYy4wMiAwIC4wNC0uMDEuMDgtLjA1TDUxMiA1NTcuMjVsMTI3Ljg2IDEyNy44N2MuMDQuMDQuMDYuMDUuMDguMDVhLjEyLjEyIDAgMDAuMDcgMGMuMDMgMCAuMDUtLjAxLjA5LS4wNWw0NS4wMi00NS4wMmEuMi4yIDAgMDAuMDUtLjA5LjEyLjEyIDAgMDAwLS4wN3YtLjAyYS4yNy4yNyAwIDAwLS4wNS0uMDZMNTU3LjI1IDUxMmwxMjcuODctMTI3Ljg2Yy4wNC0uMDQuMDUtLjA2LjA1LS4wOGEuMTIuMTIgMCAwMDAtLjA3YzAtLjAzLS4wMS0uMDUtLjA1LS4wOWwtNDUuMDItNDUuMDJhLjIuMiAwIDAwLS4wOS0uMDUuMTIuMTIgMCAwMC0uMDcgMHoiIC8+PC9zdmc+) */const mw=F.forwardRef(hw);const gw={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"};var vw=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:gw}))}; +/**![close](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNzk5Ljg2IDE2Ni4zMWMuMDIgMCAuMDQuMDIuMDguMDZsNTcuNjkgNTcuN2MuMDQuMDMuMDUuMDUuMDYuMDhhLjEyLjEyIDAgMDEwIC4wNmMwIC4wMy0uMDIuMDUtLjA2LjA5TDU2OS45MyA1MTJsMjg3LjcgMjg3LjdjLjA0LjA0LjA1LjA2LjA2LjA5YS4xMi4xMiAwIDAxMCAuMDdjMCAuMDItLjAyLjA0LS4wNi4wOGwtNTcuNyA1Ny42OWMtLjAzLjA0LS4wNS4wNS0uMDcuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMyAwLS4wNS0uMDItLjA5LS4wNkw1MTIgNTY5LjkzbC0yODcuNyAyODcuN2MtLjA0LjA0LS4wNi4wNS0uMDkuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMiAwLS4wNC0uMDItLjA4LS4wNmwtNTcuNjktNTcuN2MtLjA0LS4wMy0uMDUtLjA1LS4wNi0uMDdhLjEyLjEyIDAgMDEwLS4wN2MwLS4wMy4wMi0uMDUuMDYtLjA5TDQ1NC4wNyA1MTJsLTI4Ny43LTI4Ny43Yy0uMDQtLjA0LS4wNS0uMDYtLjA2LS4wOWEuMTIuMTIgMCAwMTAtLjA3YzAtLjAyLjAyLS4wNC4wNi0uMDhsNTcuNy01Ny42OWMuMDMtLjA0LjA1LS4wNS4wNy0uMDZhLjEyLjEyIDAgMDEuMDcgMGMuMDMgMCAuMDUuMDIuMDkuMDZMNTEyIDQ1NC4wN2wyODcuNy0yODcuN2MuMDQtLjA0LjA2LS4wNS4wOS0uMDZhLjEyLjEyIDAgMDEuMDcgMHoiIC8+PC9zdmc+) */const bw=F.forwardRef(vw);const yw={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"};var xw=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:yw}))}; +/**![exclamation-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0tMzIgMjMyYzAtNC40IDMuNi04IDgtOGg0OGM0LjQgMCA4IDMuNiA4IDh2MjcyYzAgNC40LTMuNiA4LTggOGgtNDhjLTQuNCAwLTgtMy42LTgtOFYyOTZ6bTMyIDQ0MGE0OC4wMSA0OC4wMSAwIDAxMC05NiA0OC4wMSA0OC4wMSAwIDAxMCA5NnoiIC8+PC9zdmc+) */const ww=F.forwardRef(xw);const Sw={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"};var Cw=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:Sw}))}; +/**![info-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0zMiA2NjRjMCA0LjQtMy42IDgtOCA4aC00OGMtNC40IDAtOC0zLjYtOC04VjQ1NmMwLTQuNCAzLjYtOCA4LThoNDhjNC40IDAgOCAzLjYgOCA4djI3MnptLTMyLTM0NGE0OC4wMSA0OC4wMSAwIDAxMC05NiA0OC4wMSA0OC4wMSAwIDAxMCA5NnoiIC8+PC9zdmc+) */const Ew=F.forwardRef(Cw);var kw="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),Ow="aria-",$w="data-";function Pw(e,t){return 0===e.indexOf(t)}function Tw(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Qp({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Pw(n,Ow))||t.data&&Pw(n,$w)||t.attr&&kw.includes(n))&&(r[n]=e[n])})),r}function Mw(e){return e&&z.isValidElement(e)&&e.type===z.Fragment}const Iw=(e,t,n)=>z.isValidElement(e)?z.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function jw(e,t){return Iw(e,e,t)}const Rw=e=>{const[,,,,t]=oy();return t?`${e}-css-var`:""};var Nw={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>=Nw.F1&&t<=Nw.F12)return!1;switch(t){case Nw.ALT:case Nw.CAPS_LOCK:case Nw.CONTEXT_MENU:case Nw.CTRL:case Nw.DOWN:case Nw.END:case Nw.ESC:case Nw.HOME:case Nw.INSERT:case Nw.LEFT:case Nw.MAC_FF_META:case Nw.META:case Nw.NUMLOCK:case Nw.NUM_CENTER:case Nw.PAGE_DOWN:case Nw.PAGE_UP:case Nw.PAUSE:case Nw.PRINT_SCREEN:case Nw.RIGHT:case Nw.SHIFT:case Nw.UP:case Nw.WIN_KEY:case Nw.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Nw.ZERO&&e<=Nw.NINE)return!0;if(e>=Nw.NUM_ZERO&&e<=Nw.NUM_MULTIPLY)return!0;if(e>=Nw.A&&e<=Nw.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Nw.SPACE:case Nw.QUESTION_MARK:case Nw.NUM_PLUS:case Nw.NUM_MINUS:case Nw.NUM_PERIOD:case Nw.NUM_DIVISION:case Nw.SEMICOLON:case Nw.DASH:case Nw.EQUALS:case Nw.COMMA:case Nw.PERIOD:case Nw.SLASH:case Nw.APOSTROPHE:case Nw.SINGLE_QUOTE:case Nw.OPEN_SQUARE_BRACKET:case Nw.BACKSLASH:case Nw.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Aw=F.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=void 0===i?4.5:i,s=e.eventKey,l=e.content,c=e.closable,u=e.closeIcon,d=void 0===u?"x":u,f=e.props,p=e.onClick,h=e.onNoticeClose,m=e.times,g=e.hovering,v=im(F.useState(!1),2),b=v[0],y=v[1],x=g||b,w=function(){h(s)};F.useEffect((function(){if(!x&&a>0){var e=setTimeout((function(){w()}),1e3*a);return function(){clearTimeout(e)}}}),[a,x,m]);var S=F.useMemo((function(){return"object"===Kp(c)&&null!==c?c:c?{closeIcon:d}:{}}),[c,d]),C=Tw(S,!0),E="".concat(n,"-notice");return F.createElement("div",wp({},f,{ref:t,className:xp(E,o,Yp({},"".concat(E,"-closable"),c)),style:r,onMouseEnter:function(e){var t;y(!0),null==f||null===(t=f.onMouseEnter)||void 0===t||t.call(f,e)},onMouseLeave:function(e){var t;y(!1),null==f||null===(t=f.onMouseLeave)||void 0===t||t.call(f,e)},onClick:p}),F.createElement("div",{className:"".concat(E,"-content")},l),c&&F.createElement("a",wp({tabIndex:0,className:"".concat(E,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Nw.ENTER||w()},"aria-label":"Close"},C,{onClick:function(e){e.preventDefault(),e.stopPropagation(),w()}}),S.closeIcon))})),Lw=z.createContext({}),_w=function(e){var t=e.children,n=e.classNames;return z.createElement(Lw.Provider,{value:{classNames:n}},t)},Dw=["className","style","classNames","styles"],Bw=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,i=e.style,a=e.motion,s=e.onAllNoticeRemoved,l=e.onNoticeClose,c=e.stack,u=F.useContext(Lw).classNames,d=F.useRef({}),f=im(F.useState(null),2),p=f[0],h=f[1],m=im(F.useState([]),2),g=m[0],v=m[1],b=t.map((function(e){return{config:e,key:String(e.key)}})),y=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};return e&&"object"===Kp(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16),[!!e,o]}(c),x=im(y,2),w=x[0],S=x[1],C=S.offset,E=S.threshold,k=S.gap,O=w&&(g.length>0||b.length<=E),$="function"==typeof a?a(n):a;return F.useEffect((function(){w&&g.length>1&&v((function(e){return e.filter((function(e){return b.some((function(t){var n=t.key;return e===n}))}))}))}),[g,b,w]),F.useEffect((function(){var e,t;w&&d.current[null===(e=b[b.length-1])||void 0===e?void 0:e.key]&&h(d.current[null===(t=b[b.length-1])||void 0===t?void 0:t.key])}),[b,w]),z.createElement(Nx,wp({key:n,className:xp(r,"".concat(r,"-").concat(n),null==u?void 0:u.list,o,Yp(Yp({},"".concat(r,"-stack"),!!w),"".concat(r,"-stack-expanded"),O)),style:i,keys:b,motionAppear:!0},$,{onAllRemoved:function(){s(n)}}),(function(e,t){var o=e.config,i=e.className,a=e.style,s=e.index,c=o,f=c.key,h=c.times,m=String(f),y=o,x=y.className,S=y.style,E=y.classNames,$=y.styles,P=wm(y,Dw),T=b.findIndex((function(e){return e.key===m})),M={};if(w){var I=b.length-1-(T>-1?T:s-1),j="top"===n||"bottom"===n?"-50%":"0";if(I>0){var R,N,A;M.height=O?null===(R=d.current[m])||void 0===R?void 0:R.offsetHeight:null==p?void 0:p.offsetHeight;for(var L=0,_=0;_-1?d.current[m]=e:delete d.current[m]},prefixCls:r,classNames:E,styles:$,className:xp(x,null==u?void 0:u.notice),style:S,times:h,key:f,eventKey:f,onNoticeClose:l,hovering:w&&g.length>0})))}))},Fw=F.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=im(F.useState([]),2),p=f[0],h=f[1],m=function(e){var t,n=p.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),h((function(t){return t.filter((function(t){return t.key!==e}))}))};F.useImperativeHandle(t,(function(){return{open:function(e){h((function(t){var n,r=Yh(t),o=r.findIndex((function(t){return t.key===e.key})),i=Qp({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return a>0&&r.length>a&&(r=r.slice(-a)),r}))},close:function(e){m(e)},destroy:function(){h([])}}}));var g=im(F.useState({}),2),v=g[0],b=g[1];F.useEffect((function(){var e={};p.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(v).forEach((function(t){e[t]=e[t]||[]})),b(e)}),[p]);var y=function(e){b((function(t){var n=Qp({},t);return(n[e]||[]).length||delete n[e],n}))},x=F.useRef(!1);if(F.useEffect((function(){Object.keys(v).length>0?x.current=!0:x.current&&(null==c||c(),x.current=!1)}),[v]),!o)return null;var w=Object.keys(v);return Hd.createPortal(F.createElement(F.Fragment,null,w.map((function(e){var t=v[e],n=F.createElement(Bw,{key:e,configList:t,placement:e,prefixCls:r,className:null==s?void 0:s(e),style:null==l?void 0:l(e),motion:i,onNoticeClose:m,onAllNoticeRemoved:y,stack:u});return d?d(n,{prefixCls:r,key:e}):n}))),o)})),zw=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Hw=function(){return document.body},Vw=0;function Uw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?Hw:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=wm(e,zw),f=im(F.useState(),2),p=f[0],h=f[1],m=F.useRef(),g=F.createElement(Fw,{container:p,ref:m,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),v=im(F.useState([]),2),b=v[0],y=v[1],x=F.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:h,zIndexPopup:m,contentPadding:g,contentBg:v}=e,b=`${t}-notice`,y=new dv("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),x=new dv("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:p,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${b}-content`]:{display:"inline-block",padding:g,background:v,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},by(e)),{color:o,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},tS=Ly("Message",(e=>{const t=$y(e,{height:150});return[eS(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+Yw+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})));var nS=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,type:n,icon:r,children:o}=e;return F.createElement("div",{className:xp(`${t}-custom-content`,`${t}-${n}`)},r||rS[n],F.createElement("span",null,o))},iS=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=nS(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=F.useContext(Db),l=t||s("message"),c=Rw(l),[u,d,f]=tS(l,c);return u(F.createElement(Aw,Object.assign({},a,{prefixCls:l,className:xp(n,d,`${l}-notice-pure-panel`,f,c),eventKey:"pure",duration:null,content:F.createElement(oS,{prefixCls:l,type:r,icon:o},i)})))};function aS(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var sS=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=Rw(n),[o,i,a]=tS(n,r);return o(F.createElement(_w,{classNames:{list:xp(i,a,r)}},t))},uS=(e,t)=>{let{prefixCls:n,key:r}=t;return F.createElement(cS,{prefixCls:n,key:r},e)},dS=F.forwardRef(((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=lS,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:p}=F.useContext(Db),h=r||u("message"),m=F.createElement("span",{className:`${h}-close-x`},F.createElement(bw,{className:`${h}-close-icon`})),[g,v]=Uw({prefixCls:h,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>xp({[`${h}-rtl`]:null!=s?s:"rtl"===p}),motion:()=>function(e,t){return{motionName:null!=t?t:`${e}-move-up`}}(h,l),closable:!1,closeIcon:m,duration:a,getContainer:()=>(null==o?void 0:o())||(null==d?void 0:d())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:uS});return F.useImperativeHandle(t,(()=>Object.assign(Object.assign({},g),{prefixCls:h,message:f}))),v}));let fS=0;function pS(e){const t=F.useRef(null);Cv();const n=F.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,message:i}=t.current,a=`${o}-notice`,{content:s,icon:l,type:c,key:u,className:d,style:f,onClose:p}=n,h=sS(n,["content","icon","type","key","className","style","onClose"]);let m=u;return null==m&&(fS+=1,m=`antd-message-${fS}`),aS((t=>(r(Object.assign(Object.assign({},h),{key:m,content:F.createElement(oS,{prefixCls:o,type:c,icon:l},s),placement:"top",className:xp(c&&`${a}-${c}`,d,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),f),onClose:()=>{null==p||p(),t()}})),()=>{e(m)})))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{r[e]=(t,r,o)=>{let i,a,s;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?s=r:(a=r,s=o);const l=Object.assign(Object.assign({onClose:s,duration:a},i),{type:e});return n(l)}})),r}),[]);return[n,F.createElement(dS,Object.assign({key:"message-holder"},e,{ref:t}))]}function hS(e){return pS(e)}function mS(){mS=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new M(r||[]);return o(a,"_invoke",{value:O(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,S=w&&w(w(I([])));S&&S!==n&&r.call(S,a)&&(x=S);var C=y.prototype=v.prototype=Object.create(x);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Kp(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=$(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function $(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,$(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function gS(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function vS(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){gS(i,r,o,a,s,"next",e)}function s(e){gS(i,r,o,a,s,"throw",e)}a(void 0)}))}}var bS,yS=Qp({},Ud),xS=yS.version,wS=yS.render,SS=yS.unmountComponentAtNode;try{Number((xS||"").split(".")[0])>=18&&(bS=yS.createRoot)}catch(s7){}function CS(e){var t=yS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===Kp(t)&&(t.usingClientEntryPoint=e)}var ES="__rc_react_root__";function kS(e,t){bS?function(e,t){CS(!0);var n=t[ES]||bS(t);CS(!1),n.render(e),t[ES]=n}(e,t):function(e,t){wS(e,t)}(e,t)}function OS(e){return $S.apply(this,arguments)}function $S(){return($S=vS(mS().mark((function e(t){return mS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[ES])||void 0===e||e.unmount(),delete t[ES]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function PS(e){SS(e)}function TS(e){return MS.apply(this,arguments)}function MS(){return(MS=vS(mS().mark((function e(t){return mS().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===bS){e.next=2;break}return e.abrupt("return",OS(t));case 2:PS(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const IS=()=>({height:0,opacity:0}),jS=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},RS=e=>({height:e?e.offsetHeight:0}),NS=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,AS=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:IS,onEnterStart:IS,onAppearActive:jS,onEnterActive:jS,onLeaveStart:RS,onLeaveActive:IS,onAppearEnd:NS,onEnterEnd:NS,onLeaveEnd:NS,motionDeadline:500}},LS=(e,t,n)=>void 0!==n?n:`${e}-${t}`,_S=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},DS=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},BS=Ry("Wave",(e=>[DS(e)])),FS="ant-wave-target";function zS(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const 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}function HS(e){return Number.isNaN(e)?0:e}const VS=e=>{const{className:t,target:n,component:r}=e,o=F.useRef(null),[i,a]=F.useState(null),[s,l]=F.useState([]),[c,u]=F.useState(0),[d,f]=F.useState(0),[p,h]=F.useState(0),[m,g]=F.useState(0),[v,b]=F.useState(!1),y={left:c,top:d,width:p,height:m,borderRadius:s.map((e=>`${e}px`)).join(" ")};function x(){const e=getComputedStyle(n);a(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return zS(t)?t:zS(n)?n:zS(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;u(t?n.offsetLeft:HS(-parseFloat(r))),f(t?n.offsetTop:HS(-parseFloat(o))),h(n.offsetWidth),g(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;l([i,s,d,c].map((e=>HS(parseFloat(e)))))}if(i&&(y["--wave-color"]=i),F.useEffect((()=>{if(n){const e=nm((()=>{x(),b(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(x),t.observe(n)),()=>{nm.cancel(e),null==t||t.disconnect()}}}),[]),!v)return null;const w=("Checkbox"===r||"Radio"===r)&&(null==n?void 0:n.classList.contains(FS));return F.createElement(Ex,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=o.current)||void 0===n?void 0:n.parentElement;TS(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return F.createElement("div",{ref:o,className:xp(t,{"wave-quick":w},n),style:y})}))},US=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==e||e.insertBefore(o,null==e?void 0:e.firstChild),kS(F.createElement(VS,Object.assign({},t,{target:e})),o)},WS=(e,t,n)=>{const{wave:r}=F.useContext(Db),[,o,i]=oy(),a=py((a=>{const s=e.current;if((null==r?void 0:r.disabled)||!s)return;const l=s.querySelector(`.${FS}`)||s,{showEffect:c}=r||{};(c||US)(l,{className:t,token:o,component:n,event:a,hashId:i})})),s=F.useRef();return e=>{nm.cancel(s.current),s.current=nm((()=>{a(e)}))}},qS=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=F.useContext(Db),i=F.useRef(null),a=o("wave"),[,s]=BS(a),l=WS(i,xp(a,s),r);if(z.useEffect((()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!_S(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||l(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!z.isValidElement(t))return null!=t?t:null;return jw(t,{ref:ih(t)?rh(t.ref,i):i})},GS=e=>{const t=z.useContext(qb);return z.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},KS=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},XS=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},YS=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},ZS=Ly("Space",(e=>{const t=$y(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[XS(t),YS(t),KS(t)]}),(()=>({})),{resetStyle:!1});var QS=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=F.useContext(JS),r=F.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return xp(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},tC=e=>{let{children:t}=e;return F.createElement(JS.Provider,{value:null},t)},nC=e=>{var{children:t}=e,n=QS(e,["children"]);return F.createElement(JS.Provider,{value:n},t)},rC=e=>{const{getPrefixCls:t,direction:n}=F.useContext(Db),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=QS(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=GS((e=>null!=r?r:e)),f=t("space-compact",a),[p,h]=ZS(f),m=xp(f,h,{[`${f}-rtl`]:"rtl"===n,[`${f}-block`]:i,[`${f}-vertical`]:"vertical"===o},s,l),g=F.useContext(JS),v=zp(c),b=F.useMemo((()=>v.map(((e,t)=>{const n=e&&e.key||`${f}-item-${t}`;return F.createElement(nC,{key:n,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!g||(null==g?void 0:g.isFirstItem)),isLastItem:t===v.length-1&&(!g||(null==g?void 0:g.isLastItem))},e)}))),[r,v,g]);return 0===v.length?null:p(F.createElement("div",Object.assign({className:m},u),b))};var oC=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=F.useContext(Db),{prefixCls:r,size:o,className:i}=e,a=oC(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=oy();let c="";switch(o){case"large":c="lg";break;case"small":c="sm"}const u=xp(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:"rtl"===n},i,l);return F.createElement(iC.Provider,{value:o},F.createElement("div",Object.assign({},a,{className:u})))},sC=/^[\u4e00-\u9fa5]{2}$/,lC=sC.test.bind(sC);function cC(e){return"danger"===e?{danger:!0}:{type:e}}function uC(e){return"string"==typeof e}function dC(e){return"text"===e||"link"===e}function fC(e,t){let n=!1;const r=[];return z.Children.forEach(e,(e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o})),z.Children.map(r,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&uC(e.type)&&lC(e.props.children)?jw(e,{children:e.props.children.split("").join(n)}):uC(e)?lC(e)?z.createElement("span",null,e.split("").join(n)):z.createElement("span",null,e):Mw(e)?z.createElement("span",null,e):e}(e,t)))}const pC=F.forwardRef(((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=xp(`${i}-icon`,n);return z.createElement("span",{ref:t,className:a,style:r},o)})),hC=pC,mC=F.forwardRef(((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=xp(`${n}-loading-icon`,r);return z.createElement(hC,{prefixCls:n,className:a,style:o,ref:t},z.createElement(Gw,{className:i}))})),gC=()=>({width:0,opacity:0,transform:"scale(0)"}),vC=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),bC=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?z.createElement(mC,{prefixCls:t,className:o,style:i}):z.createElement(Ex,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:gC,onAppearActive:vC,onEnterStart:gC,onEnterActive:vC,onLeaveStart:vC,onLeaveActive:gC},((e,n)=>{let{className:r,style:a}=e;return z.createElement(mC,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),a),ref:n,iconClassName:r})}))},yC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),xC=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor: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:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},yC(`${t}-primary`,o),yC(`${t}-danger`,i)]}},wC=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return $y(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},SC=e=>{var t,n,r,o,i,a;const s=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,l=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:$b(s),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:$b(l),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:$b(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},CC=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Um(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{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({},Ey(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},EC=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),kC=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),OC=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),$C=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),PC=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},EC(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),TC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},$C(e))}),MC=e=>Object.assign({},TC(e)),IC=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),jC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},MC(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),EC(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),PC(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},EC(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),PC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),TC(e))}),RC=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},MC(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),EC(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),PC(e.componentCls,e.ghostBg,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({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},EC(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),PC(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),TC(e))}),NC=e=>Object.assign(Object.assign({},jC(e)),{borderStyle:"dashed"}),AC=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},EC(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),IC(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},EC(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),IC(e))}),LC=e=>Object.assign(Object.assign(Object.assign({},EC(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),IC(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},IC(e)),EC(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),_C=e=>{const{componentCls:t}=e;return{[`${t}-default`]:jC(e),[`${t}-primary`]:RC(e),[`${t}-dashed`]:NC(e),[`${t}-link`]:AC(e),[`${t}-text`]:LC(e),[`${t}-ghost`]:PC(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},DC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:i,height:r,padding:`${Um(c)} ${Um(s)}`,borderRadius:a,[`&${u}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:kC(e)},{[`${n}${n}-round${t}`]:OC(e)}]},BC=e=>{const t=$y(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return DC(t,e.componentCls)},FC=e=>{const t=$y(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return DC(t,`${e.componentCls}-sm`)},zC=e=>{const t=$y(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return DC(t,`${e.componentCls}-lg`)},HC=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},VC=Ly("Button",(e=>{const t=wC(e);return[CC(t),BC(t),FC(t),zC(t),HC(t),_C(t),xC(t)]}),SC,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function UC(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function WC(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";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}}}}function qC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},UC(e,r,t)),WC(n,r,t))}}function GC(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function KC(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},GC(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const XC=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Um(e.lineWidth)} * 2)`,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:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Um(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},YC=Ny(["Button","compact"],(e=>{const t=wC(e);return[qC(t),KC(t),XC(t)]}),SC);var ZC=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;const{loading:o=!1,prefixCls:i,type:a,danger:s,shape:l="default",size:c,styles:u,disabled:d,className:f,rootClassName:p,children:h,icon:m,ghost:g=!1,block:v=!1,htmlType:b="button",classNames:y,style:x={}}=e,w=ZC(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),S=a||"default",{getPrefixCls:C,autoInsertSpaceInButton:E,direction:k,button:O}=F.useContext(Db),$=C("btn",i),[P,T,M]=VC($),I=F.useContext(Vb),j=null!=d?d:I,R=F.useContext(iC),N=F.useMemo((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o)),[o]),[A,L]=F.useState(N.loading),[_,D]=F.useState(!1),B=rh(t,F.createRef()),H=1===F.Children.count(h)&&!m&&!dC(S);F.useEffect((()=>{let e=null;return N.delay>0?e=setTimeout((()=>{e=null,L(!0)}),N.delay):L(N.loading),function(){e&&(clearTimeout(e),e=null)}}),[N]),F.useEffect((()=>{if(!B||!B.current||!1===E)return;const e=B.current.textContent;H&&lC(e)?_||D(!0):_&&D(!1)}),[B]);const V=t=>{const{onClick:n}=e;A||j?t.preventDefault():null==n||n(t)},U=!1!==E,{compactSize:W,compactItemClassnames:q}=eC($,k),G={large:"lg",small:"sm",middle:void 0},K=GS((e=>{var t,n;return null!==(n=null!==(t=null!=c?c:W)&&void 0!==t?t:R)&&void 0!==n?n:e})),X=K&&G[K]||"",Y=A?"loading":m,Z=qh(w,["navigate"]),Q=xp($,T,M,{[`${$}-${l}`]:"default"!==l&&l,[`${$}-${S}`]:S,[`${$}-${X}`]:X,[`${$}-icon-only`]:!h&&0!==h&&!!Y,[`${$}-background-ghost`]:g&&!dC(S),[`${$}-loading`]:A,[`${$}-two-chinese-chars`]:_&&U&&!A,[`${$}-block`]:v,[`${$}-dangerous`]:!!s,[`${$}-rtl`]:"rtl"===k},q,f,p,null==O?void 0:O.className),J=Object.assign(Object.assign({},null==O?void 0:O.style),x),ee=xp(null==y?void 0:y.icon,null===(n=null==O?void 0:O.classNames)||void 0===n?void 0:n.icon),te=Object.assign(Object.assign({},(null==u?void 0:u.icon)||{}),(null===(r=null==O?void 0:O.styles)||void 0===r?void 0:r.icon)||{}),ne=m&&!A?z.createElement(hC,{prefixCls:$,className:ee,style:te},m):z.createElement(bC,{existIcon:!!m,prefixCls:$,loading:!!A}),re=h||0===h?fC(h,H&&U):null;if(void 0!==Z.href)return P(z.createElement("a",Object.assign({},Z,{className:xp(Q,{[`${$}-disabled`]:j}),href:j?void 0:Z.href,style:J,onClick:V,ref:B,tabIndex:j?-1:0}),ne,re));let oe=z.createElement("button",Object.assign({},w,{type:b,className:Q,style:J,onClick:V,disabled:j,ref:B}),ne,re,!!q&&z.createElement(YC,{key:"compact",prefixCls:$}));return dC(S)||(oe=z.createElement(qS,{component:"Button",disabled:!!A},oe)),P(oe)})),JC=QC;JC.Group=aC,JC.__ANT_BUTTON=!0;const eE=JC;function tE(e){return!(!e||!e.then)}const nE=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=F.useRef(!1),f=F.useRef(null),[p,h]=hy(!1),m=function(){null==i||i.apply(void 0,arguments)};F.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=f.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return F.createElement(eE,Object.assign({},cC(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void m();let t;if(s){if(t=u(e),c&&!tE(t))return d.current=!1,void m(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!t)return void m();(e=>{tE(e)&&(h(!0),e.then((function(){h(!1,!0),m.apply(void 0,arguments),d.current=!1}),(e=>{if(h(!1,!0),d.current=!1,!(null==l?void 0:l()))return Promise.reject(e)})))})(t)},loading:p,prefixCls:r},o,{ref:f}),n)},rE=z.createContext({}),{Provider:oE}=rE,iE=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=F.useContext(rE);return o?z.createElement(nE,{isSilent:r,actionFn:s,close:function(){null==a||a.apply(void 0,arguments),null==l||l(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},aE=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=F.useContext(rE);return z.createElement(nE,{isSilent:n,type:a||"primary",actionFn:l,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)};var sE,lE=F.createContext(null),cE=[];function uE(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";ym("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(s7){r=l,o=c}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),bm(t),{width:f,height:p}}function dE(e){return"undefined"==typeof document?0:((e||void 0===sE)&&(sE=uE()),sE.width)}function fE(e){return"undefined"!=typeof document&&e&&e instanceof Element?uE(e):{width:0,height:0}}var pE="rc-util-locker-".concat(Date.now()),hE=0;function mE(e){var t=!!e,n=im(F.useState((function(){return hE+=1,"".concat(pE,"_").concat(hE)})),1)[0];Ym((function(){if(t){var e=fE(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;ym("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else bm(n);return function(){bm(n)}}),[t,n])}var gE=!1;var vE=function(e){return!1!==e&&(sm()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},bE=F.forwardRef((function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=void 0===i||i,s=e.children,l=im(F.useState(n),2),c=l[0],u=l[1],d=c||n;F.useEffect((function(){(a||n)&&u(n)}),[n,a]);var f=im(F.useState((function(){return vE(o)})),2),p=f[0],h=f[1];F.useEffect((function(){var e=vE(o);h(null!=e?e:null)}));var m=function(e,t){var n=im(F.useState((function(){return sm()?document.createElement("div"):null})),1)[0],r=F.useRef(!1),o=F.useContext(lE),i=im(F.useState(cE),2),a=i[0],s=i[1],l=o||(r.current?void 0:function(e){s((function(t){return[e].concat(Yh(t))}))});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return Ym((function(){return e?o?o(c):c():u(),u}),[e]),Ym((function(){a.length&&(a.forEach((function(e){return e()})),s(cE))}),[a]),[n,l]}(d&&!p),g=im(m,2),v=g[0],b=g[1],y=null!=p?p:v;mE(r&&n&&sm()&&(y===v||y===document.body));var x=null;s&&ih(s)&&t&&(x=s.ref);var w=oh(x,t);if(!d||!sm()||void 0===p)return null;var S,C=!1===y||("boolean"==typeof S&&(gE=S),gE),E=s;return t&&(E=F.cloneElement(s,{ref:w})),F.createElement(lE.Provider,{value:b},C?E:Hd.createPortal(E,y))})),yE=F.createContext({});var xE=0,wE=Qp({},H).useId;const SE=wE?function(e){var t=wE();return e||t}:function(e){var t=im(F.useState("ssr-id"),2),n=t[0],r=t[1];return F.useEffect((function(){var e=xE;xE+=1,r("rc_unique_".concat(e))}),[]),e||n};function CE(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function EE(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const kE=F.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var OE={width:0,height:0,overflow:"hidden",outline:"none"},$E={outline:"none"},PE=z.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,p=e.bodyProps,h=e.modalRender,m=e.onMouseDown,g=e.onMouseUp,v=e.holderRef,b=e.visible,y=e.forceRender,x=e.width,w=e.height,S=e.classNames,C=e.styles,E=oh(v,z.useContext(yE).panel),k=F.useRef(),O=F.useRef(),$=F.useRef();z.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=$.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===O.current?k.current.focus():e||t!==k.current||O.current.focus()}}}));var P,T,M={};void 0!==x&&(M.width=x),void 0!==w&&(M.height=w),s&&(P=z.createElement("div",{className:xp("".concat(n,"-footer"),null==S?void 0:S.footer),style:Qp({},null==C?void 0:C.footer)},s)),i&&(T=z.createElement("div",{className:xp("".concat(n,"-header"),null==S?void 0:S.header),style:Qp({},null==C?void 0:C.header)},z.createElement("div",{className:"".concat(n,"-title"),id:a},i)));var I,j=F.useMemo((function(){return"object"===Kp(l)&&null!==l?l:l?{closeIcon:null!=c?c:z.createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[l,c]),R=Tw(j,!0);l&&(I=z.createElement("button",wp({type:"button",onClick:u,"aria-label":"Close"},R,{className:"".concat(n,"-close")}),j.closeIcon));var N=z.createElement("div",{className:xp("".concat(n,"-content"),null==S?void 0:S.content),style:null==C?void 0:C.content},I,T,z.createElement("div",wp({className:xp("".concat(n,"-body"),null==S?void 0:S.body),style:Qp(Qp({},f),null==C?void 0:C.body)},p),d),P);return z.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:E,style:Qp(Qp({},o),M),className:xp(n,r),onMouseDown:m,onMouseUp:g},z.createElement("div",{tabIndex:0,ref:k,style:OE,"aria-hidden":"true"}),z.createElement("div",{ref:$,tabIndex:-1,style:$E},z.createElement(kE,{shouldUpdate:b||y},h?h(N):N)),z.createElement("div",{tabIndex:0,ref:O,style:OE,"aria-hidden":"true"}))})),TE=F.forwardRef((function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,p=F.useRef(),h=im(F.useState(),2),m=h[0],g=h[1],v={};function b(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=EE(o),n.top+=EE(o,!0),n}(p.current);g(f?"".concat(f.x-e.left,"px ").concat(f.y-e.top,"px"):"")}return m&&(v.transformOrigin=m),F.createElement(Ex,{visible:a,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:c,removeOnLeave:l,ref:p},(function(a,s){var l=a.className,c=a.style;return F.createElement(PE,wp({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:s,style:Qp(Qp(Qp({},c),o),v),className:xp(i,l)}))}))}));function ME(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return F.createElement(Ex,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,r){var i=e.className,s=e.style;return F.createElement("div",wp({ref:r,style:Qp(Qp({},s),n),className:xp("".concat(t,"-mask"),i,a)},o))}))}function IE(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,a=e.keyboard,s=void 0===a||a,l=e.focusTriggerAfterClose,c=void 0===l||l,u=e.wrapStyle,d=e.wrapClassName,f=e.wrapProps,p=e.onClose,h=e.afterOpenChange,m=e.afterClose,g=e.transitionName,v=e.animation,b=e.closable,y=void 0===b||b,x=e.mask,w=void 0===x||x,S=e.maskTransitionName,C=e.maskAnimation,E=e.maskClosable,k=void 0===E||E,O=e.maskStyle,$=e.maskProps,P=e.rootClassName,T=e.classNames,M=e.styles,I=F.useRef(),j=F.useRef(),R=F.useRef(),N=im(F.useState(i),2),A=N[0],L=N[1],_=SE();function D(e){null==p||p(e)}var B=F.useRef(!1),z=F.useRef(),H=null;return k&&(H=function(e){B.current?B.current=!1:j.current===e.target&&D(e)}),F.useEffect((function(){i&&(L(!0),lm(j.current,document.activeElement)||(I.current=document.activeElement))}),[i]),F.useEffect((function(){return function(){clearTimeout(z.current)}}),[]),F.createElement("div",wp({className:xp("".concat(n,"-root"),P)},Tw(e,{data:!0})),F.createElement(ME,{prefixCls:n,visible:w&&i,motionName:CE(n,S,C),style:Qp(Qp({zIndex:r},O),null==M?void 0:M.mask),maskProps:$,className:null==T?void 0:T.mask}),F.createElement("div",wp({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===Nw.ESC)return e.stopPropagation(),void D(e);i&&e.keyCode===Nw.TAB&&R.current.changeActive(!e.shiftKey)},className:xp("".concat(n,"-wrap"),d,null==T?void 0:T.wrapper),ref:j,onClick:H,style:Qp(Qp(Qp({zIndex:r},u),null==M?void 0:M.wrapper),{},{display:A?null:"none"})},f),F.createElement(TE,wp({},e,{onMouseDown:function(){clearTimeout(z.current),B.current=!0},onMouseUp:function(){z.current=setTimeout((function(){B.current=!1}))},ref:R,closable:y,ariaId:_,prefixCls:n,visible:i&&A,onClose:D,onVisibleChanged:function(e){if(e)lm(j.current,document.activeElement)||null===(t=R.current)||void 0===t||t.focus();else{if(L(!1),w&&I.current&&c){try{I.current.focus({preventScroll:!0})}catch(s7){}I.current=null}A&&(null==m||m())}var t;null==h||h(e)},motionName:CE(n,g,v)}))))}TE.displayName="Content";var jE=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,s=e.panelRef,l=im(F.useState(t),2),c=l[0],u=l[1],d=F.useMemo((function(){return{panel:s}}),[s]);return F.useEffect((function(){t&&u(!0)}),[t]),r||!i||c?F.createElement(yE.Provider,{value:d},F.createElement(bE,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},F.createElement(IE,wp({},e,{destroyOnClose:i,afterClose:function(){null==a||a(),u(!1)}})))):null};function RE(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function NE(e){const{closable:t,closeIcon:n}=e||{};return z.useMemo((()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e}),[t,n])}function AE(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{t&&Object.keys(t).forEach((n=>{void 0!==t[n]&&(e[n]=t[n])}))})),e}jE.displayName="Dialog";const LE={};function _E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:LE;const r=NE(e),o=NE(t),i=z.useMemo((()=>Object.assign({closeIcon:z.createElement(bw,null)},n)),[n]),a=z.useMemo((()=>!1!==r&&(r?AE(i,o,r):!1!==o&&(o?AE(i,o):!!i.closable&&i))),[r,o,i]);return z.useMemo((()=>{if(!1===a)return[!1,null];const{closeIconRender:e}=i,{closeIcon:t}=a;let n=t;if(null!=n){e&&(n=e(t));const r=Tw(a,!0);Object.keys(r).length&&(n=z.isValidElement(n)?z.cloneElement(n,r):z.createElement("span",Object.assign({},r),n))}return[!0,n]}),[a,i])}var DE="RC_FORM_INTERNAL_HOOKS",BE=function(){qp(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},FE=F.createContext({getFieldValue:BE,getFieldsValue:BE,getFieldError:BE,getFieldWarning:BE,getFieldsError:BE,isFieldsTouched:BE,isFieldTouched:BE,isFieldValidating:BE,isFieldsValidating:BE,resetFields:BE,setFields:BE,setFieldValue:BE,setFieldsValue:BE,validateFields:BE,submit:BE,getInternalHooks:function(){return BE(),{dispatch:BE,initEntityValue:BE,registerField:BE,useSubscribe:BE,setInitialValues:BE,destroyForm:BE,setCallbacks:BE,registerWatch:BE,getFields:BE,setValidateMessages:BE,setPreserve:BE,getInitialValue:BE}}}),zE=F.createContext(null);function HE(e){return null==e?[]:Array.isArray(e)?e:[e]}function VE(){return VE=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(QK){return"[Circular]"}break;default:return e}}));return a}return e}function QE(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function JE(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s()\[\]\\.,;:\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,}))$/,sk=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,lk={integer:function(e){return lk.number(e)&&parseInt(e,10)===e},float:function(e){return lk.number(e)&&!lk.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(s7){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&&!lk.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(ak)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(ok)return ok;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};l.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")};var c=l.v4().source,u=l.v6().source;return ok=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(sk)}},ck="enum",uk={required:ik,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(ZE(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)ik(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?lk[i](t)||r.push(ZE(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(ZE(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?l!==e.len&&r.push(ZE(o.messages[c].len,e.fullField,e.len)):a&&!s&&le.max?r.push(ZE(o.messages[c].max,e.fullField,e.max)):a&&s&&(le.max)&&r.push(ZE(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[ck]=Array.isArray(e[ck])?e[ck]:[],-1===e[ck].indexOf(t)&&r.push(ZE(o.messages[ck],e.fullField,e[ck].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(ZE(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(ZE(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},dk=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t,i)&&!e.required)return n();uk.required(e,t,r,a,o,i),QE(t,i)||uk.type(e,t,r,a,o)}n(a)},fk={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t,"string")&&!e.required)return n();uk.required(e,t,r,i,o,"string"),QE(t,"string")||(uk.type(e,t,r,i,o),uk.range(e,t,r,i,o),uk.pattern(e,t,r,i,o),!0===e.whitespace&&uk.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t)&&!e.required)return n();uk.required(e,t,r,i,o),void 0!==t&&uk.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),QE(t)&&!e.required)return n();uk.required(e,t,r,i,o),void 0!==t&&(uk.type(e,t,r,i,o),uk.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t)&&!e.required)return n();uk.required(e,t,r,i,o),void 0!==t&&uk.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t)&&!e.required)return n();uk.required(e,t,r,i,o),QE(t)||uk.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t)&&!e.required)return n();uk.required(e,t,r,i,o),void 0!==t&&(uk.type(e,t,r,i,o),uk.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t)&&!e.required)return n();uk.required(e,t,r,i,o),void 0!==t&&(uk.type(e,t,r,i,o),uk.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();uk.required(e,t,r,i,o,"array"),null!=t&&(uk.type(e,t,r,i,o),uk.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t)&&!e.required)return n();uk.required(e,t,r,i,o),void 0!==t&&uk.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t)&&!e.required)return n();uk.required(e,t,r,i,o),void 0!==t&&uk.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t,"string")&&!e.required)return n();uk.required(e,t,r,i,o),QE(t,"string")||uk.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t,"date")&&!e.required)return n();var a;if(uk.required(e,t,r,i,o),!QE(t,"date"))a=t instanceof Date?t:new Date(t),uk.type(e,a,r,i,o),a&&uk.range(e,a.getTime(),r,i,o)}n(i)},url:dk,hex:dk,email:dk,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;uk.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(QE(t)&&!e.required)return n();uk.required(e,t,r,i,o)}n(i)}};function pk(){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 hk=pk(),mk=function(){function e(e){this.rules=null,this._messages=hk,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=rk(pk(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,s=r;if("function"==typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,i),Promise.resolve(i);if(a.messages){var l=this.messages();l===hk&&(l=pk()),rk(l,a.messages),a.messages=l}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=i[e];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=VE({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:VE({},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:r,source:i,field:e}))}))}));var u={};return tk(c,a,(function(t,n){var r,o=t.rule,s=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function l(e,t){return VE({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var d=c.map(nk(o,i));if(a.first&&d.length)return u[o.field]=1,n(d);if(s){if(o.required&&!t.value)return void 0!==o.message?d=[].concat(o.message).map(nk(o,i)):a.error&&(d=[a.error(o,ZE(a.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=VE({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(l.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=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(s=s&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,a)}catch(d){console.error,a.suppressValidatorError||setTimeout((function(){throw d}),0),c(d.message)}!0===r?c():!1===r?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var o=0;o2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return Tk(t,e,n)}))}function Tk(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function Mk(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===Kp(t.target)&&e in t.target?t.target[e]:t}function Ik(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Yh(e.slice(0,n)),[o],Yh(e.slice(n,t)),Yh(e.slice(t+1,r))):i<0?[].concat(Yh(e.slice(0,t)),Yh(e.slice(t+1,n+1)),[o],Yh(e.slice(n+1,r))):e}var jk=["name"],Rk=[];function Nk(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Ak=function(e){Ah(n,F.Component);var t=Fh(n);function n(e){var r;(Ih(this,n),Yp(Dh(r=t.call(this,e)),"state",{resetCount:0}),Yp(Dh(r),"cancelRegisterFunc",null),Yp(Dh(r),"mounted",!1),Yp(Dh(r),"touched",!1),Yp(Dh(r),"dirty",!1),Yp(Dh(r),"validatePromise",void 0),Yp(Dh(r),"prevValidating",void 0),Yp(Dh(r),"errors",Rk),Yp(Dh(r),"warnings",Rk),Yp(Dh(r),"cancelRegister",(function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Ok(o)),r.cancelRegisterFunc=null})),Yp(Dh(r),"getNamePath",(function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(Yh(void 0===n?[]:n),Yh(t)):[]})),Yp(Dh(r),"getRules",(function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(o):e}))})),Yp(Dh(r),"refresh",(function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))})),Yp(Dh(r),"metaCache",null),Yp(Dh(r),"triggerMetaEvent",(function(e){var t=r.props.onMetaChange;if(t){var n=Qp(Qp({},r.getMeta()),{},{destroy:e});Sm(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null})),Yp(Dh(r),"onStoreChange",(function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,s=void 0===a?[]:a,l=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),f=r.getValue(c),p=t&&Pk(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Sm(d,f)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=Rk,r.warnings=Rk,r.triggerMetaEvent()),n.type){case"reset":if(!t||p)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=Rk,r.warnings=Rk,r.triggerMetaEvent(),null==l||l(),void r.refresh();break;case"remove":if(i)return void r.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||Rk),"warnings"in h&&(r.warnings=h.warnings||Rk),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&Pk(t,u,!0))return void r.reRender();if(i&&!u.length&&Nk(i,e,c,d,f,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(Ok).some((function(e){return Pk(n.relatedFields,e)})))return void r.reRender();break;default:if(p||(!s.length||u.length||i)&&Nk(i,e,c,d,f,n))return void r.reRender()}!0===i&&r.reRender()})),Yp(Dh(r),"validateRules",(function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(vS(mS().mark((function o(){var a,s,c,u,d,f,p;return mS().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,f=r.getRules(),i&&(f=f.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||HE(t).includes(i)}))),!d||!i){o.next=10;break}return o.next=8,new Promise((function(e){setTimeout(e,d)}));case 8:if(r.validatePromise===l){o.next=10;break}return o.abrupt("return",[]);case 10:return(p=Ck(t,n,f,e,c,u)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rk;if(r.validatePromise===l){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?Rk:r;t?o.push.apply(o,Yh(i)):n.push.apply(n,Yh(i))})),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}})),o.abrupt("return",p);case 13:case"end":return o.stop()}}),o)}))));return s||(r.validatePromise=l,r.dirty=!0,r.errors=Rk,r.warnings=Rk,r.triggerMetaEvent(),r.reRender()),l})),Yp(Dh(r),"isFieldValidating",(function(){return!!r.validatePromise})),Yp(Dh(r),"isFieldTouched",(function(){return r.touched})),Yp(Dh(r),"isFieldDirty",(function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(DE).getInitialValue)(r.getNamePath())})),Yp(Dh(r),"getErrors",(function(){return r.errors})),Yp(Dh(r),"getWarnings",(function(){return r.warnings})),Yp(Dh(r),"isListField",(function(){return r.props.isListField})),Yp(Dh(r),"isList",(function(){return r.props.isList})),Yp(Dh(r),"isPreserve",(function(){return r.props.preserve})),Yp(Dh(r),"getMeta",(function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}})),Yp(Dh(r),"getOnlyChild",(function(e){if("function"==typeof e){var t=r.getMeta();return Qp(Qp({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=zp(e);return 1===n.length&&F.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Yp(Dh(r),"getValue",(function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return mv(e||t(!0),n)})),Yp(Dh(r),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=r.getNamePath(),p=u.getInternalHooks,h=u.getFieldsValue,m=p(DE).dispatch,g=r.getValue(),v=c||function(e){return Yp({},l,e)},b=e[o],y=void 0!==n?v(g):{},x=Qp(Qp({},e),y);return x[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o=0&&t<=n.length?(c.keys=[].concat(Yh(c.keys.slice(0,t)),[c.id],Yh(c.keys.slice(t))),i([].concat(Yh(n.slice(0,t)),[e],Yh(n.slice(t))))):(c.keys=[].concat(Yh(c.keys),[c.id]),i([].concat(Yh(n),[e]))),c.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(c.keys=Ik(c.keys,e,t),i(Ik(n,e,t)))}}},f=o||[];return Array.isArray(f)||(f=[]),r(f.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),d,t)}))))}Yp(Ak,"contextType",FE),Yp(Ak,"defaultProps",{trigger:"onChange",valuePropName:"value"});var Dk="__@field_split__";function Bk(e){return e.map((function(e){return"".concat(Kp(e),":").concat(e)})).join(Dk)}var Fk=function(){function e(){Ih(this,e),Yp(this,"kvs",new Map)}return Rh(e,[{key:"set",value:function(e,t){this.kvs.set(Bk(e),t)}},{key:"get",value:function(e){return this.kvs.get(Bk(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Bk(e))}},{key:"map",value:function(e){return Yh(this.kvs.entries()).map((function(t){var n=im(t,2),r=n[0],o=n[1],i=r.split(Dk);return e({key:i.map((function(e){var t=im(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),zk=["name"],Hk=Rh((function e(t){var n=this;Ih(this,e),Yp(this,"formHooked",!1),Yp(this,"forceRootUpdate",void 0),Yp(this,"subscribable",!0),Yp(this,"store",{}),Yp(this,"fieldEntities",[]),Yp(this,"initialValues",{}),Yp(this,"callbacks",{}),Yp(this,"validateMessages",null),Yp(this,"preserve",null),Yp(this,"lastValidatePromise",null),Yp(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),Yp(this,"getInternalHooks",(function(e){return e===DE?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(qp(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Yp(this,"useSubscribe",(function(e){n.subscribable=e})),Yp(this,"prevWithoutPreserves",null),Yp(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=xv(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=vv(o,n,mv(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),Yp(this,"destroyForm",(function(){var e=new Fk;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),Yp(this,"getInitialValue",(function(e){var t=mv(n.initialValues,e);return e.length?xv(t):t})),Yp(this,"setCallbacks",(function(e){n.callbacks=e})),Yp(this,"setValidateMessages",(function(e){n.validateMessages=e})),Yp(this,"setPreserve",(function(e){n.preserve=e})),Yp(this,"watchList",[]),Yp(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),Yp(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),Yp(this,"timeoutId",null),Yp(this,"warningUnhooked",(function(){})),Yp(this,"updateStore",(function(e){n.store=e})),Yp(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),Yp(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Fk;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),Yp(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Ok(e);return t.get(n)||{INVALIDATE_NAME_PATH:Ok(e)}}))})),Yp(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===Kp(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach((function(e){var t,n,a,l,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(l=e).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&s.push(c)}else s.push(c)})),$k(n.store,s.map(Ok))})),Yp(this,"getFieldValue",(function(e){n.warningUnhooked();var t=Ok(e);return mv(n.store,t)})),Yp(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Ok(e[n]),errors:[],warnings:[]}}))})),Yp(this,"getFieldError",(function(e){n.warningUnhooked();var t=Ok(e);return n.getFieldsError([t])[0].errors})),Yp(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=Ok(e);return n.getFieldsError([t])[0].warnings})),Yp(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new Fk,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,Yh(Yh(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))qp(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)qp(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(vv(n.store,o,Yh(i)[0].value))}}}}))})),Yp(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(xv(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Ok);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(vv(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),Yp(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,i=wm(e,zk),a=Ok(o);r.push(a),"value"in i&&n.updateStore(vv(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})})),n.notifyWatch(r)})),Yp(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=Qp(Qp({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Yp(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===mv(n.store,r)&&n.updateStore(vv(n.store,r,t))}})),Yp(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),Yp(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!Tk(e.getNamePath(),t)}))){var s=n.store;n.updateStore(vv(s,t,a,!0)),n.notifyObservers(s,[t],{type:"remove"}),n.triggerDependenciesUpdate(s,t)}}n.notifyWatch([t])}})),Yp(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),Yp(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=Qp(Qp({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),Yp(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(Yh(r))}),r})),Yp(this,"updateValue",(function(e,t){var r=Ok(e),o=n.store;n.updateStore(vv(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a($k(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Yh(i)))})),Yp(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=xv(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Yp(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),Yp(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new Fk;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Ok(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),Yp(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Fk;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return Pk(e,n)}));a.length&&r(a,o)}})),Yp(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Ok):[],s=[],l=String(Date.now()),c=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(l)),!i||Pk(a,t,d)){var r=e.validateRules(Qp({validateMessages:Qp(Qp({},vk),n.validateMessages)},o));s.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,Yh(n)):r.push.apply(r,Yh(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=p,p.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var h=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})}));h.catch((function(e){return e}));var m=a.filter((function(e){return c.has(e.join(l))}));return n.triggerOnFieldsChange(m),h})),Yp(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));function Vk(e){var t=F.useRef(),n=im(F.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new Hk((function(){n({})}));t.current=r.getForm()}return[t.current]}var Uk=F.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Wk=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=F.useContext(Uk),a=F.useRef({});return F.createElement(Uk.Provider,{value:Qp(Qp({},i),{},{validateMessages:Qp(Qp({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=Qp(Qp({},a.current),{},Yp({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=Qp({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)},qk=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Gk=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,s=e.children,l=e.component,c=void 0===l?"form":l,u=e.validateMessages,d=e.validateTrigger,f=void 0===d?"onChange":d,p=e.onValuesChange,h=e.onFieldsChange,m=e.onFinish,g=e.onFinishFailed,v=wm(e,qk),b=F.useContext(Uk),y=im(Vk(i),1)[0],x=y.getInternalHooks(DE),w=x.useSubscribe,S=x.setInitialValues,C=x.setCallbacks,E=x.setValidateMessages,k=x.setPreserve,O=x.destroyForm;F.useImperativeHandle(t,(function(){return y})),F.useEffect((function(){return b.registerForm(n,y),function(){b.unregisterForm(n)}}),[b,y,n]),E(Qp(Qp({},b.validateMessages),u)),C({onValuesChange:p,onFieldsChange:function(e){if(b.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o{}}),Qk=F.createContext(null),Jk=e=>{const t=qh(e,["prefixCls"]);return F.createElement(Wk,Object.assign({},t))},eO=F.createContext({prefixCls:""}),tO=F.createContext({}),nO=e=>{let{children:t,status:n,override:r}=e;const o=F.useContext(tO),i=F.useMemo((()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,r,o]);return F.createElement(tO.Provider,{value:i},t)},rO=F.createContext(void 0);function oO(){}const iO=F.createContext({add:oO,remove:oO});function aO(e){const t=F.useContext(iO),n=F.useRef();return py((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}const sO=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=F.useContext(rE);return z.createElement(eE,Object.assign({onClick:n},e),t)},lO=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=F.useContext(rE);return z.createElement(eE,Object.assign({},cC(n),{loading:e,onClick:o},t),r)};function cO(e,t){return z.createElement("span",{className:`${e}-close-x`},t||z.createElement(bw,{className:`${e}-close-icon`}))}const uO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Av("Modal",Rv()),d={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:t||(null==u?void 0:u.okText),cancelTextLocale:r||(null==u?void 0:u.cancelText),okType:n,onOk:i,onCancel:a},f=z.useMemo((()=>d),Yh(Object.values(d)));let p;return"function"==typeof c||void 0===c?(p=z.createElement(z.Fragment,null,z.createElement(sO,null),z.createElement(lO,null)),"function"==typeof c&&(p=c(p,{OkBtn:lO,CancelBtn:sO})),p=z.createElement(oE,{value:f},p)):p=c,z.createElement(Hb,{disabled:!1},p)},dO=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),fO=e=>({animationDuration:e,animationFillMode:"both"}),pO=e=>({animationDuration:e,animationFillMode:"both"}),hO=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${e}-enter,\n ${o}${e}-appear\n `]:Object.assign(Object.assign({},fO(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},pO(r)),{animationPlayState:"paused"}),[`\n ${o}${e}-enter${e}-enter-active,\n ${o}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},mO=new dv("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),gO=new dv("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),vO=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[hO(r,mO,gO,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},bO=new dv("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),yO=new dv("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),xO=new dv("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),wO=new dv("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),SO=new dv("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),CO=new dv("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),EO={"move-up":{inKeyframes:new dv("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new dv("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:bO,outKeyframes:yO},"move-left":{inKeyframes:xO,outKeyframes:wO},"move-right":{inKeyframes:SO,outKeyframes:CO}},kO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=EO[t];return[hO(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},OO=new dv("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$O=new dv("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),PO=new dv("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),TO=new dv("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),MO=new dv("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),IO=new dv("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),jO=new dv("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),RO=new dv("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),NO={"slide-up":{inKeyframes:OO,outKeyframes:$O},"slide-down":{inKeyframes:PO,outKeyframes:TO},"slide-left":{inKeyframes:MO,outKeyframes:IO},"slide-right":{inKeyframes:jO,outKeyframes:RO}},AO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=NO[t];return[hO(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},LO=new dv("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),_O=new dv("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),DO=new dv("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),BO=new dv("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),FO=new dv("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zO=new dv("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),HO={zoom:{inKeyframes:LO,outKeyframes:_O},"zoom-big":{inKeyframes:DO,outKeyframes:BO},"zoom-big-fast":{inKeyframes:DO,outKeyframes:BO},"zoom-left":{inKeyframes:new dv("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new dv("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new dv("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new dv("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:FO,outKeyframes:zO},"zoom-down":{inKeyframes:new dv("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new dv("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},VO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=HO[t];return[hO(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function UO(e){return{position:e,inset:0}}const WO=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},UO("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},UO("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:vO(e)}]},qO=e=>{const{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}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Um(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},by(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Um(e.calc(e.margin).mul(2).equal())})`,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.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),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:`${Um(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ey(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Um(e.borderRadiusLG)} ${Um(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},GO=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},KO=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return $y(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},XO=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Um(e.paddingMD)} ${Um(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Um(e.padding)} ${Um(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Um(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Um(e.paddingXS)} ${Um(e.padding)}`:0,footerBorderTop:e.wireframe?`${Um(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Um(e.borderRadiusLG)} ${Um(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Um(2*e.padding)} ${Um(2*e.padding)} ${Um(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),YO=Ly("Modal",(e=>{const t=KO(e);return[qO(t),GO(t),WO(t),VO(t,"zoom")]}),XO,{unitless:{titleLineHeight:!0}});var ZO=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{QO={x:e.pageX,y:e.pageY},setTimeout((()=>{QO=null}),100)};sm()&&window.document.documentElement&&document.documentElement.addEventListener("click",JO,!0);const e$=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=F.useContext(Db),a=t=>{const{onCancel:n}=e;null==n||n(t)},{prefixCls:s,className:l,rootClassName:c,open:u,wrapClassName:d,centered:f,getContainer:p,focusTriggerAfterClose:h=!0,style:m,visible:g,width:v=520,footer:b,classNames:y,styles:x}=e,w=ZO(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),S=r("modal",s),C=r(),E=Rw(S),[k,O,$]=YO(S,E),P=xp(d,{[`${S}-centered`]:!!f,[`${S}-wrap-rtl`]:"rtl"===o}),T=null!==b&&F.createElement(uO,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:a})),[M,I]=_E(RE(e),RE(i),{closable:!0,closeIcon:F.createElement(bw,{className:`${S}-close-icon`}),closeIconRender:e=>cO(S,e)}),j=aO(`.${S}-content`),[R,N]=Jw("Modal",w.zIndex);return k(F.createElement(tC,null,F.createElement(nO,{status:!0,override:!0},F.createElement(Kw.Provider,{value:N},F.createElement(jE,Object.assign({width:v},w,{zIndex:R,getContainer:void 0===p?n:p,prefixCls:S,rootClassName:xp(O,c,$,E),footer:T,visible:null!=u?u:g,mousePosition:null!==(t=w.mousePosition)&&void 0!==t?t:QO,onClose:a,closable:M,closeIcon:I,focusTriggerAfterClose:h,transitionName:LS(C,"zoom",e.transitionName),maskTransitionName:LS(C,"fade",e.maskTransitionName),className:xp(O,l,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),m),classNames:Object.assign(Object.assign(Object.assign({},null==i?void 0:i.classNames),y),{wrapper:xp(P,null==y?void 0:y.wrapper)}),styles:Object.assign(Object.assign({},null==i?void 0:i.styles),x),panelRef:j}))))))},t$=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Um(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},n$=Ny(["Modal","confirm"],(e=>{const t=KO(e);return[t$(t)]}),XO,{order:-1e3});var r$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ob),Yh(Object.values(b))),x=F.createElement(F.Fragment,null,F.createElement(iE,null),F.createElement(aE,null)),w=void 0!==e.title&&null!==e.title,S=`${i}-body`;return F.createElement("div",{className:`${i}-body-wrapper`},F.createElement("div",{className:xp(S,{[`${S}-has-title`]:w})},d,F.createElement("div",{className:`${i}-paragraph`},w&&F.createElement("span",{className:`${i}-title`},e.title),F.createElement("div",{className:`${i}-content`},e.content))),void 0===l||"function"==typeof l?F.createElement(oE,{value:y},F.createElement("div",{className:`${i}-btns`},"function"==typeof l?l(x,{OkBtn:aE,CancelBtn:iE}):x)):l,F.createElement(n$,{prefixCls:t}))}const i$=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:l,direction:c,prefixCls:u,wrapClassName:d,rootPrefixCls:f,bodyStyle:p,closable:h=!1,closeIcon:m,modalRender:g,focusTriggerAfterClose:v,onConfirm:b,styles:y}=e,x=`${u}-confirm`,w=e.width||416,S=e.style||{},C=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,k=xp(x,`${x}-${e.type}`,{[`${x}-rtl`]:"rtl"===c},e.className),[,O]=oy(),$=F.useMemo((()=>void 0!==n?n:O.zIndexPopupBase+Yw),[n,O]);return F.createElement(e$,{prefixCls:u,className:k,wrapClassName:xp({[`${x}-centered`]:!!e.centered},d),onCancel:()=>{null==t||t({triggerCancel:!0}),null==b||b(!1)},open:o,title:"",footer:null,transitionName:LS(f||"","zoom",e.transitionName),maskTransitionName:LS(f||"","fade",e.maskTransitionName),mask:C,maskClosable:E,style:S,styles:Object.assign({body:p,mask:l},y),width:w,zIndex:$,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:h,closeIcon:m,modalRender:g,focusTriggerAfterClose:v},F.createElement(o$,Object.assign({},e,{confirmPrefixCls:x})))},a$=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return F.createElement(Kx,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},F.createElement(i$,Object.assign({},e)))},s$=[];let l$="";function c$(){return l$}const u$=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Rv(),s=F.useContext(Db),l=c$()||s.getPrefixCls(),c=r||`${l}-modal`;let u=o;return!1===u&&(u=void 0),z.createElement(a$,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:null!=i?i:s.direction,locale:null!==(n=null===(t=s.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:a,getContainer:u}))};function d$(e){const t=Wx(),n=document.createDocumentFragment();let r,o=Object.assign(Object.assign({},e),{close:s,open:!0});function i(){for(var t=arguments.length,r=new Array(t),o=0;oe&&e.triggerCancel));e.onCancel&&i&&e.onCancel.apply(e,[()=>{}].concat(Yh(r.slice(1))));for(let e=0;e{const r=t.getPrefixCls(void 0,c$()),o=t.getIconPrefixCls(),i=t.getTheme(),a=z.createElement(u$,Object.assign({},e));kS(z.createElement(Kx,{prefixCls:r,iconPrefixCls:o,theme:i},t.holderRender?t.holderRender(a):a),n)}))}function s(){for(var t=arguments.length,n=new Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),i.apply(this,n)}}),o.visible&&delete o.visible,a(o)}return a(o),s$.push(s),{destroy:s,update:function(e){o="function"==typeof e?e(o):Object.assign(Object.assign({},o),e),a(o)}}}function f$(e){return Object.assign(Object.assign({},e),{type:"warning"})}function p$(e){return Object.assign(Object.assign({},e),{type:"info"})}function h$(e){return Object.assign(Object.assign({},e),{type:"success"})}function m$(e){return Object.assign(Object.assign({},e),{type:"error"})}function g$(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var v$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,i=v$(e,["afterClose","config"]);const[a,s]=F.useState(!0),[l,c]=F.useState(o),{direction:u,getPrefixCls:d}=F.useContext(Db),f=d("modal"),p=d(),h=function(){s(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));l.onCancel&&r&&l.onCancel.apply(l,[()=>{}].concat(Yh(t.slice(1))))};F.useImperativeHandle(t,(()=>({destroy:h,update:e=>{c((t=>Object.assign(Object.assign({},t),e)))}})));const m=null!==(n=l.okCancel)&&void 0!==n?n:"confirm"===l.type,[g]=Av("Modal",Tv.Modal);return F.createElement(a$,Object.assign({prefixCls:f,rootPrefixCls:p},l,{close:h,open:a,afterClose:()=>{var e;r(),null===(e=l.afterClose)||void 0===e||e.call(l)},okText:l.okText||(m?null==g?void 0:g.okText:null==g?void 0:g.justOkText),direction:l.direction||u,cancelText:l.cancelText||(null==g?void 0:g.cancelText)},i))},y$=F.forwardRef(b$);let x$=0;const w$=F.memo(F.forwardRef(((e,t)=>{const[n,r]=function(){const[e,t]=F.useState([]);return[e,F.useCallback((e=>(t((t=>[].concat(Yh(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return F.useImperativeHandle(t,(()=>({patchElement:r})),[]),F.createElement(F.Fragment,null,n)})));function S$(){const e=F.useRef(null),[t,n]=F.useState([]);F.useEffect((()=>{if(t.length){Yh(t).forEach((e=>{e()})),n([])}}),[t]);const r=F.useCallback((t=>function(r){var o;x$+=1;const i=F.createRef();let a;const s=new Promise((e=>{a=e}));let l,c=!1;const u=F.createElement(y$,{key:`modal-${x$}`,config:t(r),ref:i,afterClose:()=>{null==l||l()},isSilent:()=>c,onConfirm:e=>{a(e)}});l=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),l&&s$.push(l);const d={destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n((t=>[].concat(Yh(t),[e])))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n((e=>[].concat(Yh(e),[t])))},then:e=>(c=!0,s.then(e))};return d}),[]);return[F.useMemo((()=>({info:r(p$),success:r(h$),error:r(m$),warning:r(f$),confirm:r(g$)})),[]),F.createElement(w$,{key:"modal-holder",ref:e})]}const C$=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new dv("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new dv("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new dv("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new dv("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},E$=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],k$={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},O$=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},$$=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},O$(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},$$(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},E$.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[k$[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},T$=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:h,fontSize:m,lineHeight:g,width:v,notificationIconSize:b,colorText:y}=e,x=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[x]:{padding:p,width:v,maxWidth:`calc(100vw - ${Um(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:g,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:m,color:y},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:o},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:m},[`${x}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${x}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Ey(e)),[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},M$=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new dv("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},by(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},T$(e))}}]},I$=Ly("Notification",(e=>{const t=(e=>{const t=e.paddingMD,n=e.paddingLG;return $y(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Um(e.paddingMD)} ${Um(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})})(e);return[M$(t),C$(t),P$(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+Yw+50,width:384})));function j$(e,t){return null===t||!1===t?null:t||F.createElement(bw,{className:`${e}-close-icon`})}globalThis&&globalThis.__rest;const R$={success:fw,info:Ew,error:mw,warning:ww},N$=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=F.createElement("span",{className:`${t}-icon`},n):r&&(l=F.createElement(R$[r]||null,{className:xp(`${t}-icon`,`${t}-icon-${r}`)})),F.createElement("div",{className:xp({[`${t}-with-icon`]:l}),role:s},l,F.createElement("div",{className:`${t}-message`},o),F.createElement("div",{className:`${t}-description`},i),a&&F.createElement("div",{className:`${t}-btn`},a))};var A$=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=Rw(n),[o,i,a]=I$(n,r);return o(z.createElement(_w,{classNames:{list:xp(i,a,r)}},t))},D$=(e,t)=>{let{prefixCls:n,key:r}=t;return z.createElement(_$,{prefixCls:n,key:r},e)},B$=z.forwardRef(((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u}=e,{getPrefixCls:d,getPopupContainer:f,notification:p,direction:h}=F.useContext(Db),[,m]=oy(),g=o||d("notification"),[v,b]=Uw({prefixCls:g,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=r?r:24),className:()=>xp({[`${g}-rtl`]:null!=s?s:"rtl"===h}),motion:()=>function(e){return{motionName:`${e}-fade`}}(g),closable:!0,closeIcon:j$(g),duration:null!=u?u:4.5,getContainer:()=>(null==i?void 0:i())||(null==f?void 0:f())||document.body,maxCount:a,onAllRemoved:l,renderNotifications:D$,stack:!1!==c&&{threshold:"object"==typeof c?null==c?void 0:c.threshold:void 0,offset:8,gap:m.margin}});return z.useImperativeHandle(t,(()=>Object.assign(Object.assign({},v),{prefixCls:g,notification:p}))),b}));function F$(e){return function(e){const t=z.useRef(null);Cv();const n=z.useMemo((()=>{const n=n=>{var r;if(!t.current)return;const{open:o,prefixCls:i,notification:a}=t.current,s=`${i}-notice`,{message:l,description:c,icon:u,type:d,btn:f,className:p,style:h,role:m="alert",closeIcon:g,closable:v}=n,b=A$(n,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),y=j$(s,void 0!==g?g:null==a?void 0:a.closeIcon);return o(Object.assign(Object.assign({placement:null!==(r=null==e?void 0:e.placement)&&void 0!==r?r:L$},b),{content:z.createElement(N$,{prefixCls:s,icon:u,type:d,message:l,description:c,btn:f,role:m}),className:xp(d&&`${s}-${d}`,p,null==a?void 0:a.className),style:Object.assign(Object.assign({},null==a?void 0:a.style),h),closeIcon:y,closable:null!=v?v:!!y}))},r={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{r[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),r}),[]);return[n,z.createElement(B$,Object.assign({key:"notification-holder"},e,{ref:t}))]}(e)}const z$=z.createContext({}),H$=z.createContext({message:{},notification:{},modal:{}}),V$=Ly("App",(e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}}),(()=>({}))),U$=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s,component:l="div"}=e,{getPrefixCls:c}=F.useContext(Db),u=c("app",t),[d,f,p]=V$(u),h=xp(f,u,r,o,p),m=F.useContext(z$),g=z.useMemo((()=>({message:Object.assign(Object.assign({},m.message),i),notification:Object.assign(Object.assign({},m.notification),a)})),[i,a,m.message,m.notification]),[v,b]=hS(g.message),[y,x]=F$(g.notification),[w,S]=S$(),C=z.useMemo((()=>({message:v,notification:y,modal:w})),[v,y,w]),E=!1===l?z.Fragment:l,k={className:h,style:s};return d(z.createElement(H$.Provider,{value:C},z.createElement(z$.Provider,{value:g},z.createElement(E,Object.assign({},!1===l?void 0:k),S,b,x,n))))};U$.useApp=()=>z.useContext(H$);const W$=U$;function q$(e){return t=>F.createElement(Kx,{theme:{token:{motion:!1,zIndexPopupBase:0}}},F.createElement(e,Object.assign({},t)))}const G$=(e,t,n,r)=>q$((o=>{const{prefixCls:i,style:a}=o,s=F.useRef(null),[l,c]=F.useState(0),[u,d]=F.useState(0),[f,p]=gy(!1,{value:o.open}),{getPrefixCls:h}=F.useContext(Db),m=h(t||"select",i);F.useEffect((()=>{if(p(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;c(t.offsetHeight+8),d(t.offsetWidth)})),t=setInterval((()=>{var r;const o=n?`.${n(m)}`:`.${m}-dropdown`,i=null===(r=s.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let g=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},a),{margin:0}),open:f,visible:f,getPopupContainer:()=>s.current});r&&(g=r(g));const v={paddingBottom:l,position:"relative",minWidth:u};return F.createElement("div",{ref:s,style:v},F.createElement(e,Object.assign({},g)))})),K$=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};var X$=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Y$=void 0;function Z$(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,p=e.display,h=e.order,m=e.component,g=void 0===m?"div":m,v=wm(e,X$),b=a&&!p;function y(e){l(c,e)}F.useEffect((function(){return function(){y(null)}}),[]);var x,w=i&&o!==Y$?i(o):f;r||(x={opacity:b?0:1,height:b?0:Y$,overflowY:b?"hidden":Y$,order:a?h:Y$,pointerEvents:b?"none":Y$,position:b?"absolute":Y$});var S={};b&&(S["aria-hidden"]=!0);var C=F.createElement(g,wp({className:xp(!r&&n,u),style:Qp(Qp({},x),d)},S,v,{ref:t}),w);return a&&(C=F.createElement(Wh,{onResize:function(e){y(e.offsetWidth)},disabled:s},C)),C}var Q$=F.forwardRef(Z$);function J$(){var e=F.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)nm(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){Hd.unstable_batchedUpdates((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function eP(e,t){var n=im(F.useState(t),2),r=n[0],o=n[1];return[r,py((function(t){e((function(){o(t)}))}))]}Q$.displayName="Item";var tP=z.createContext(null),nP=["component"],rP=["className"],oP=["className"],iP=function(e,t){var n=F.useContext(tP);if(!n){var r=e.component,o=void 0===r?"div":r,i=wm(e,nP);return F.createElement(o,wp({},i,{ref:t}))}var a=n.className,s=wm(n,rP),l=e.className,c=wm(e,oP);return F.createElement(tP.Provider,{value:null},F.createElement(Q$,wp({ref:t,className:xp(a,l)},s,c)))},aP=F.forwardRef(iP);aP.displayName="RawItem";var sP=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],lP="responsive",cP="invalidate";function uP(e){return"+ ".concat(e.length," ...")}function dP(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,o=e.data,i=void 0===o?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=void 0===c?10:c,d=e.ssr,f=e.style,p=e.className,h=e.maxCount,m=e.renderRest,g=e.renderRawRest,v=e.suffix,b=e.component,y=void 0===b?"div":b,x=e.itemComponent,w=e.onVisibleChange,S=wm(e,sP),C="full"===d,E=J$(),k=im(eP(E,null),2),O=k[0],$=k[1],P=O||0,T=im(eP(E,new Map),2),M=T[0],I=T[1],j=im(eP(E,0),2),R=j[0],N=j[1],A=im(eP(E,0),2),L=A[0],_=A[1],D=im(eP(E,0),2),B=D[0],z=D[1],H=im(F.useState(null),2),V=H[0],U=H[1],W=im(F.useState(null),2),q=W[0],G=W[1],K=F.useMemo((function(){return null===q&&C?Number.MAX_SAFE_INTEGER:q||0}),[q,O]),X=im(F.useState(!1),2),Y=X[0],Z=X[1],Q="".concat(r,"-item"),J=Math.max(R,L),ee=h===lP,te=i.length&&ee,ne=h===cP,re=te||"number"==typeof h&&i.length>h,oe=F.useMemo((function(){var e=i;return te?e=null===O&&C?i:i.slice(0,Math.min(i.length,P/u)):"number"==typeof h&&(e=i.slice(0,h)),e}),[i,u,O,h,te]),ie=F.useMemo((function(){return te?i.slice(K+1):i.slice(oe.length)}),[i,oe,te,K]),ae=F.useCallback((function(e,t){var n;return"function"==typeof l?l(e):null!==(n=l&&(null==e?void 0:e[l]))&&void 0!==n?n:t}),[l]),se=F.useCallback(a||function(e){return e},[a]);function le(e,t,n){(q!==e||void 0!==t&&t!==V)&&(G(e),n||(Z(eP){le(r-1,e-o-B+L);break}}v&&ue(0)+B>P&&U(null)}}),[P,M,L,B,ae,oe]);var de=Y&&!!ie.length,fe={};null!==V&&te&&(fe={position:"absolute",left:V,top:0});var pe,he={prefixCls:Q,responsive:te,component:x,invalidate:ne},me=s?function(e,t){var n=ae(e,t);return F.createElement(tP.Provider,{key:n,value:Qp(Qp({},he),{},{order:t,item:e,itemKey:n,registerSize:ce,display:t<=K})},s(e,t))}:function(e,t){var n=ae(e,t);return F.createElement(Q$,wp({},he,{order:t,key:n,item:e,renderItem:se,itemKey:n,registerSize:ce,display:t<=K}))},ge={order:de?K:Number.MAX_SAFE_INTEGER,className:"".concat(Q,"-rest"),registerSize:function(e,t){_(t),N(L)},display:de};if(g)g&&(pe=F.createElement(tP.Provider,{value:Qp(Qp({},he),ge)},g(ie)));else{var ve=m||uP;pe=F.createElement(Q$,wp({},he,ge),"function"==typeof ve?ve(ie):ve)}var be=F.createElement(y,wp({className:xp(!ne&&r,p),style:f,ref:t},S),oe.map(me),re?pe:null,v&&F.createElement(Q$,wp({},he,{responsive:ee,responsiveDisabled:!te,order:K,className:"".concat(Q,"-suffix"),registerSize:function(e,t){z(t)},display:!0,style:fe}),v));return ee&&(be=F.createElement(Wh,{onResize:function(e,t){$(t.clientWidth)},disabled:!te},be)),be}var fP=F.forwardRef(dP);function pP(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=void 0===l?0:l,u=o.y,d=void 0===u?0:u,f=F.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],m=n.points[1],g=h[0],v=h[1],b=m[0],y=m[1];g!==b&&["t","b"].includes(g)?"t"===g?p.top=0:p.bottom=0:p.top=d,v!==y&&["l","r"].includes(v)?"l"===v?p.left=0:p.right=0:p.left=c}return F.createElement("div",{ref:f,className:xp("".concat(t,"-arrow"),a),style:p},s)}function hP(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?F.createElement(Ex,wp({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return F.createElement("div",{style:{zIndex:r},className:xp("".concat(t,"-mask"),n)})})):null}fP.displayName="Overflow",fP.Item=aP,fP.RESPONSIVE=lP,fP.INVALIDATE=cP;var mP=F.memo((function(e){return e.children}),(function(e,t){return t.cache})),gP=F.forwardRef((function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,h=e.arrowPos,m=e.align,g=e.motion,v=e.maskMotion,b=e.forceRender,y=e.getPopupContainer,x=e.autoDestroy,w=e.portal,S=e.zIndex,C=e.onMouseEnter,E=e.onMouseLeave,k=e.onPointerEnter,O=e.ready,$=e.offsetX,P=e.offsetY,T=e.offsetR,M=e.offsetB,I=e.onAlign,j=e.onPrepare,R=e.stretch,N=e.targetWidth,A=e.targetHeight,L="function"==typeof n?n():n,_=l||c,D=(null==y?void 0:y.length)>0,B=im(F.useState(!y||!D),2),z=B[0],H=B[1];if(Ym((function(){!z&&D&&a&&H(!0)}),[z,D,a]),!z)return null;var V="auto",U={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(O||!l){var W,q=m.points,G=m.dynamicInset||(null===(W=m._experimental)||void 0===W?void 0:W.dynamicInset),K=G&&"r"===q[0][1],X=G&&"b"===q[0][0];K?(U.right=T,U.left=V):(U.left=$,U.right=V),X?(U.bottom=M,U.top=V):(U.top=P,U.bottom=V)}var Y={};return R&&(R.includes("height")&&A?Y.height=A:R.includes("minHeight")&&A&&(Y.minHeight=A),R.includes("width")&&N?Y.width=N:R.includes("minWidth")&&N&&(Y.minWidth=N)),l||(Y.pointerEvents="none"),F.createElement(w,{open:b||_,getContainer:y&&function(){return y(a)},autoDestroy:x},F.createElement(hP,{prefixCls:o,open:l,zIndex:S,mask:f,motion:v}),F.createElement(Wh,{onResize:I,disabled:!l},(function(e){return F.createElement(Ex,wp({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:j,onEnterPrepare:j,visible:l,onVisibleChanged:function(e){var t;null==g||null===(t=g.onVisibleChanged)||void 0===t||t.call(g,e),s(e)}}),(function(n,a){var s=n.className,c=n.style,f=xp(o,s,r);return F.createElement("div",{ref:rh(e,t,a),className:f,style:Qp(Qp(Qp(Qp({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},U),Y),c),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:C,onMouseLeave:E,onPointerEnter:k,onClick:d},p&&F.createElement(pP,{prefixCls:o,arrow:p,arrowPos:h,align:m}),F.createElement(mP,{cache:!l&&!u},L))}))})))})),vP=F.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=ih(n),i=F.useCallback((function(e){nh(t,r?r(e):e)}),[r]),a=oh(i,n.ref);return o?F.cloneElement(n,{ref:a}):n})),bP=F.createContext(null);function yP(e){return e?Array.isArray(e)?e:[e]:[]}function xP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function wP(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function SP(e){return e.ownerDocument.defaultView}function CP(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=SP(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function EP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function kP(e){return EP(parseFloat(e),0)}function OP(e,t){var n=Qp({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=SP(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=kP(i),m=kP(a),g=kP(s),v=kP(l),b=EP(Math.round(c.width/f*1e3)/1e3),y=EP(Math.round(c.height/u*1e3)/1e3),x=(f-p-g-v)*b,w=(u-d-h-m)*y,S=h*y,C=m*y,E=g*b,k=v*b,O=0,$=0;if("clip"===r){var P=kP(o);O=P*b,$=P*y}var T=c.x+E-O,M=c.y+S-$,I=T+c.width+2*O-E-k-x,j=M+c.height+2*$-S-C-w;n.left=Math.max(n.left,T),n.top=Math.max(n.top,M),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,j)}})),n}function $P(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function PP(e,t){var n=im(t||[],2),r=n[0],o=n[1];return[$P(e.width,r),$P(e.height,o)]}function TP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function MP(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function IP(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var jP=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const RP=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bE,t=F.forwardRef((function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=t.children,a=t.action,s=void 0===a?"hover":a,l=t.showAction,c=t.hideAction,u=t.popupVisible,d=t.defaultPopupVisible,f=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,h=t.mouseEnterDelay,m=t.mouseLeaveDelay,g=void 0===m?.1:m,v=t.focusDelay,b=t.blurDelay,y=t.mask,x=t.maskClosable,w=void 0===x||x,S=t.getPopupContainer,C=t.forceRender,E=t.autoDestroy,k=t.destroyPopupOnHide,O=t.popup,$=t.popupClassName,P=t.popupStyle,T=t.popupPlacement,M=t.builtinPlacements,I=void 0===M?{}:M,j=t.popupAlign,R=t.zIndex,N=t.stretch,A=t.getPopupClassNameFromAlign,L=t.fresh,_=t.alignPoint,D=t.onPopupClick,B=t.onPopupAlign,z=t.arrow,H=t.popupMotion,V=t.maskMotion,U=t.popupTransitionName,W=t.popupAnimation,q=t.maskTransitionName,G=t.maskAnimation,K=t.className,X=t.getTriggerDOMNode,Y=wm(t,jP),Z=E||k||!1,Q=im(F.useState(!1),2),J=Q[0],ee=Q[1];Ym((function(){ee(K$())}),[]);var te=F.useRef({}),ne=F.useContext(bP),re=F.useMemo((function(){return{registerSubPopup:function(e,t){te.current[e]=t,null==ne||ne.registerSubPopup(e,t)}}}),[ne]),oe=SE(),ie=im(F.useState(null),2),ae=ie[0],se=ie[1],le=F.useRef(null),ce=py((function(e){le.current=e,Jp(e)&&ae!==e&&se(e),null==ne||ne.registerSubPopup(oe,e)})),ue=im(F.useState(null),2),de=ue[0],fe=ue[1],pe=F.useRef(null),he=py((function(e){Jp(e)&&de!==e&&(fe(e),pe.current=e)})),me=F.Children.only(i),ge=(null==me?void 0:me.props)||{},ve={},be=py((function(e){var t,n,r=de;return(null==r?void 0:r.contains(e))||(null===(t=Zx(r))||void 0===t?void 0:t.host)===e||e===r||(null==ae?void 0:ae.contains(e))||(null===(n=Zx(ae))||void 0===n?void 0:n.host)===e||e===ae||Object.values(te.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),ye=wP(o,H,W,U),xe=wP(o,V,G,q),we=im(F.useState(d||!1),2),Se=we[0],Ce=we[1],Ee=null!=u?u:Se,ke=py((function(e){void 0===u&&Ce(e)}));Ym((function(){Ce(u||!1)}),[u]);var Oe=F.useRef(Ee);Oe.current=Ee;var $e=F.useRef([]);$e.current=[];var Pe=py((function(e){var t;ke(e),(null!==(t=$e.current[$e.current.length-1])&&void 0!==t?t:Ee)!==e&&($e.current.push(e),null==f||f(e))})),Te=F.useRef(),Me=function(){clearTimeout(Te.current)},Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Me(),0===t?Pe(e):Te.current=setTimeout((function(){Pe(e)}),1e3*t)};F.useEffect((function(){return Me}),[]);var je=im(F.useState(!1),2),Re=je[0],Ne=je[1];Ym((function(e){e&&!Ee||Ne(!0)}),[Ee]);var Ae=im(F.useState(null),2),Le=Ae[0],_e=Ae[1],De=im(F.useState([0,0]),2),Be=De[0],Fe=De[1],ze=function(e){Fe([e.clientX,e.clientY])},He=function(e,t,n,r,o,i,a){var s=im(F.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),l=s[0],c=s[1],u=F.useRef(0),d=F.useMemo((function(){return t?CP(t):[]}),[t]),f=F.useRef({});e||(f.current={});var p=py((function(){if(t&&n&&e){var s,l,u,p=t,h=p.ownerDocument,m=SP(p).getComputedStyle(p),g=m.width,v=m.height,b=m.position,y=p.style.left,x=p.style.top,w=p.style.right,S=p.style.bottom,C=p.style.overflow,E=Qp(Qp({},o[r]),i),k=h.createElement("div");if(null===(s=p.parentElement)||void 0===s||s.appendChild(k),k.style.left="".concat(p.offsetLeft,"px"),k.style.top="".concat(p.offsetTop,"px"),k.style.position=b,k.style.height="".concat(p.offsetHeight,"px"),k.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))u={x:n[0],y:n[1],width:0,height:0};else{var O=n.getBoundingClientRect();u={x:O.x,y:O.y,width:O.width,height:O.height}}var $=p.getBoundingClientRect(),P=h.documentElement,T=P.clientWidth,M=P.clientHeight,I=P.scrollWidth,j=P.scrollHeight,R=P.scrollTop,N=P.scrollLeft,A=$.height,L=$.width,_=u.height,D=u.width,B={left:0,top:0,right:T,bottom:M},F={left:-N,top:-R,right:I-N,bottom:j-R},z=E.htmlRegion,H="visible",V="visibleFirst";"scroll"!==z&&z!==V&&(z=H);var U=z===V,W=OP(F,d),q=OP(B,d),G=z===H?q:W,K=U?q:G;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var X=p.getBoundingClientRect();p.style.left=y,p.style.top=x,p.style.right=w,p.style.bottom=S,p.style.overflow=C,null===(l=p.parentElement)||void 0===l||l.removeChild(k);var Y=EP(Math.round(L/parseFloat(g)*1e3)/1e3),Z=EP(Math.round(A/parseFloat(v)*1e3)/1e3);if(0===Y||0===Z||Jp(n)&&!_S(n))return;var Q=E.offset,J=E.targetOffset,ee=im(PP($,Q),2),te=ee[0],ne=ee[1],re=im(PP(u,J),2),oe=re[0],ie=re[1];u.x-=oe,u.y-=ie;var ae=im(E.points||[],2),se=ae[0],le=TP(ae[1]),ce=TP(se),ue=MP(u,le),de=MP($,ce),fe=Qp({},E),pe=ue.x-de.x+te,he=ue.y-de.y+ne;function st(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:G,r=$.x+e,o=$.y+t,i=r+L,a=o+A,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var me,ge,ve,be,ye=st(pe,he),xe=st(pe,he,q),we=MP(u,["t","l"]),Se=MP($,["t","l"]),Ce=MP(u,["b","r"]),Ee=MP($,["b","r"]),ke=E.overflow||{},Oe=ke.adjustX,$e=ke.adjustY,Pe=ke.shiftX,Te=ke.shiftY,Me=function(e){return"boolean"==typeof e?e:e>=0};function lt(){me=$.y+he,ge=me+A,ve=$.x+pe,be=ve+L}lt();var Ie=Me($e),je=ce[0]===le[0];if(Ie&&"t"===ce[0]&&(ge>K.bottom||f.current.bt)){var Re=he;je?Re-=A-_:Re=we.y-Ee.y-ne;var Ne=st(pe,Re),Ae=st(pe,Re,q);Ne>ye||Ne===ye&&(!U||Ae>=xe)?(f.current.bt=!0,he=Re,ne=-ne,fe.points=[IP(ce,0),IP(le,0)]):f.current.bt=!1}if(Ie&&"b"===ce[0]&&(meye||_e===ye&&(!U||De>=xe)?(f.current.tb=!0,he=Le,ne=-ne,fe.points=[IP(ce,0),IP(le,0)]):f.current.tb=!1}var Be=Me(Oe),Fe=ce[1]===le[1];if(Be&&"l"===ce[1]&&(be>K.right||f.current.rl)){var ze=pe;Fe?ze-=L-D:ze=we.x-Ee.x-te;var He=st(ze,he),Ve=st(ze,he,q);He>ye||He===ye&&(!U||Ve>=xe)?(f.current.rl=!0,pe=ze,te=-te,fe.points=[IP(ce,1),IP(le,1)]):f.current.rl=!1}if(Be&&"r"===ce[1]&&(veye||We===ye&&(!U||qe>=xe)?(f.current.lr=!0,pe=Ue,te=-te,fe.points=[IP(ce,1),IP(le,1)]):f.current.lr=!1}lt();var Ge=!0===Pe?0:Pe;"number"==typeof Ge&&(veq.right&&(pe-=be-q.right-te,u.x>q.right-Ge&&(pe+=u.x-q.right+Ge)));var Ke=!0===Te?0:Te;"number"==typeof Ke&&(meq.bottom&&(he-=ge-q.bottom-ne,u.y>q.bottom-Ke&&(he+=u.y-q.bottom+Ke)));var Xe=$.x+pe,Ye=Xe+L,Ze=$.y+he,Qe=Ze+A,Je=u.x,et=Je+D,tt=u.y,nt=tt+_,rt=(Math.max(Xe,Je)+Math.min(Ye,et))/2-Xe,ot=(Math.max(Ze,tt)+Math.min(Qe,nt))/2-Ze;null==a||a(t,fe);var it=X.right-$.x-(pe+$.width),at=X.bottom-$.y-(he+$.height);c({ready:!0,offsetX:pe/Y,offsetY:he/Z,offsetR:it/Y,offsetB:at/Z,arrowX:rt/Y,arrowY:ot/Z,scaleX:Y,scaleY:Z,align:fe})}})),h=function(){c((function(e){return Qp(Qp({},e),{},{ready:!1})}))};return Ym(h,[r]),Ym((function(){e||h()}),[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,function(){u.current+=1;var e=u.current;Promise.resolve().then((function(){u.current===e&&p()}))}]}(Ee,ae,_?Be:de,T,I,j,B),Ve=im(He,11),Ue=Ve[0],We=Ve[1],qe=Ve[2],Ge=Ve[3],Ke=Ve[4],Xe=Ve[5],Ye=Ve[6],Ze=Ve[7],Qe=Ve[8],Je=Ve[9],et=Ve[10],tt=function(e,t,n,r){return F.useMemo((function(){var o=yP(null!=n?n:t),i=yP(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(J,s,l,c),nt=im(tt,2),rt=nt[0],ot=nt[1],it=rt.has("click"),at=ot.has("click")||ot.has("contextMenu"),st=py((function(){Re||et()}));!function(e,t,n,r,o){Ym((function(){if(e&&t&&n){var i=n,a=CP(t),s=CP(i),l=SP(i),c=new Set([l].concat(Yh(a),Yh(s)));function u(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(Ee,de,ae,st,(function(){Oe.current&&_&&at&&Ie(!1)})),Ym((function(){st()}),[Be,T]),Ym((function(){!Ee||null!=I&&I[T]||st()}),[JSON.stringify(j)]);var lt=F.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),l=1;l1?n-1:0),o=1;o1?n-1:0),o=1;ot||e,LP=()=>{const[,e]=oy(),t=new nb(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return F.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},F.createElement("g",{fill:"none",fillRule:"evenodd"},F.createElement("g",{transform:"translate(24 31.67)"},F.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),F.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),F.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),F.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),F.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),F.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),F.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},F.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),F.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},_P=()=>{const[,e]=oy(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=F.useMemo((()=>({borderColor:new nb(t).onBackground(o).toHexShortString(),shadowColor:new nb(n).onBackground(o).toHexShortString(),contentColor:new nb(r).onBackground(o).toHexShortString()})),[t,n,r,o]);return F.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},F.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},F.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),F.createElement("g",{fillRule:"nonzero",stroke:i},F.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),F.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},DP=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},BP=Ly("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=$y(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[DP(o)]}));var FP=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:o=zP,description:i,children:a,imageStyle:s,style:l}=e,c=FP(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:u,direction:d,empty:f}=F.useContext(Db),p=u("empty",r),[h,m,g]=BP(p),[v]=Av("Empty"),b=void 0!==i?i:null==v?void 0:v.description,y="string"==typeof b?b:"empty";let x=null;return x="string"==typeof o?F.createElement("img",{alt:y,src:o}):o,h(F.createElement("div",Object.assign({className:xp(m,g,p,null==f?void 0:f.className,{[`${p}-normal`]:o===HP,[`${p}-rtl`]:"rtl"===d},t,n),style:Object.assign(Object.assign({},null==f?void 0:f.style),l)},c),F.createElement("div",{className:`${p}-image`,style:s},x),b&&F.createElement("div",{className:`${p}-description`},b),a&&F.createElement("div",{className:`${p}-footer`},a)))};VP.PRESENTED_IMAGE_DEFAULT=zP,VP.PRESENTED_IMAGE_SIMPLE=HP;const UP=VP,WP=["outlined","borderless","filled"],qP=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=F.useContext(rO);let r;r=void 0!==e?e:!1===t?"borderless":null!=n?n:"outlined";return[r,WP.includes(r)]};const GP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var KP=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:GP}))}; +/**![down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4NCAyNTZoLTc1Yy01LjEgMC05LjkgMi41LTEyLjkgNi42TDUxMiA2NTQuMiAyMjcuOSAyNjIuNmMtMy00LjEtNy44LTYuNi0xMi45LTYuNmgtNzVjLTYuNSAwLTEwLjMgNy40LTYuNSAxMi43bDM1Mi42IDQ4Ni4xYzEyLjggMTcuNiAzOSAxNy42IDUxLjcgMGwzNTIuNi00ODYuMWMzLjktNS4zLjEtMTIuNy02LjQtMTIuN3oiIC8+PC9zdmc+) */const XP=F.forwardRef(KP);const YP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var ZP=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:YP}))}; +/**![search](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOS42IDg1NC41TDY0OS45IDU5NC44QzY5MC4yIDU0Mi43IDcxMiA0NzkgNzEyIDQxMmMwLTgwLjItMzEuMy0xNTUuNC04Ny45LTIxMi4xLTU2LjYtNTYuNy0xMzItODcuOS0yMTIuMS04Ny45cy0xNTUuNSAzMS4zLTIxMi4xIDg3LjlDMTQzLjIgMjU2LjUgMTEyIDMzMS44IDExMiA0MTJjMCA4MC4xIDMxLjMgMTU1LjUgODcuOSAyMTIuMUMyNTYuNSA2ODAuOCAzMzEuOCA3MTIgNDEyIDcxMmM2NyAwIDEzMC42LTIxLjggMTgyLjctNjJsMjU5LjcgMjU5LjZhOC4yIDguMiAwIDAwMTEuNiAwbDQzLjYtNDMuNWE4LjIgOC4yIDAgMDAwLTExLjZ6TTU3MC40IDU3MC40QzUyOCA2MTIuNyA0NzEuOCA2MzYgNDEyIDYzNnMtMTE2LTIzLjMtMTU4LjQtNjUuNkMyMTEuMyA1MjggMTg4IDQ3MS44IDE4OCA0MTJzMjMuMy0xMTYuMSA2NS42LTE1OC40QzI5NiAyMTEuMyAzNTIuMiAxODggNDEyIDE4OHMxMTYuMSAyMy4yIDE1OC40IDY1LjZTNjM2IDM1Mi4yIDYzNiA0MTJzLTIzLjMgMTE2LjEtNjUuNiAxNTguNHoiIC8+PC9zdmc+) */const QP=F.forwardRef(ZP),JP=["xxl","xl","lg","md","sm","xs"],eT=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),tT=e=>{const t=e,n=[].concat(JP).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}function rT(){const[,e]=F.useReducer((e=>e+1),0);return e}function oT(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=F.useRef({}),n=rT(),r=nT();return Ym((()=>{const o=r.subscribe((r=>{t.current=r,e&&n()}));return()=>r.unsubscribe(o)}),[]),t.current}function iT(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return F.createElement("div",{className:xp("".concat(n,"-content"),i),style:a},F.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t))}var aT={shiftX:64,adjustY:1},sT={adjustX:1,shiftY:!0},lT=[0,0],cT={left:{points:["cr","cl"],overflow:sT,offset:[-4,0],targetOffset:lT},right:{points:["cl","cr"],overflow:sT,offset:[4,0],targetOffset:lT},top:{points:["bc","tc"],overflow:aT,offset:[0,-4],targetOffset:lT},bottom:{points:["tc","bc"],overflow:aT,offset:[0,4],targetOffset:lT},topLeft:{points:["bl","tl"],overflow:aT,offset:[0,-4],targetOffset:lT},leftTop:{points:["tr","tl"],overflow:sT,offset:[-4,0],targetOffset:lT},topRight:{points:["br","tr"],overflow:aT,offset:[0,-4],targetOffset:lT},rightTop:{points:["tl","tr"],overflow:sT,offset:[4,0],targetOffset:lT},bottomRight:{points:["tr","br"],overflow:aT,offset:[0,4],targetOffset:lT},rightBottom:{points:["bl","br"],overflow:sT,offset:[4,0],targetOffset:lT},bottomLeft:{points:["tl","bl"],overflow:aT,offset:[0,4],targetOffset:lT},leftBottom:{points:["br","bl"],overflow:sT,offset:[-4,0],targetOffset:lT}},uT=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],dT=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,s=e.mouseLeaveDelay,l=void 0===s?.1:s,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,f=e.children,p=e.onVisibleChange,h=e.afterVisibleChange,m=e.transitionName,g=e.animation,v=e.motion,b=e.placement,y=void 0===b?"right":b,x=e.align,w=void 0===x?{}:x,S=e.destroyTooltipOnHide,C=void 0!==S&&S,E=e.defaultVisible,k=e.getTooltipContainer,O=e.overlayInnerStyle;e.arrowContent;var $=e.overlay,P=e.id,T=e.showArrow,M=void 0===T||T,I=wm(e,uT),j=F.useRef(null);F.useImperativeHandle(t,(function(){return j.current}));var R=Qp({},I);"visible"in e&&(R.popupVisible=e.visible);return F.createElement(RP,wp({popupClassName:n,prefixCls:d,popup:function(){return F.createElement(iT,{key:"content",prefixCls:d,id:P,overlayInnerStyle:O},$)},action:o,builtinPlacements:cT,popupPlacement:y,ref:j,popupAlign:w,getPopupContainer:k,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:m,popupAnimation:g,popupMotion:v,defaultPopupVisible:E,autoDestroy:C,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:a,arrow:M},R),f)};const fT=F.forwardRef(dT);function pT(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),l=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-l,d=c,f=2*o-a,p=s,h=2*o-0,m=i,g=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${h} ${m} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const hT=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Um(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},mT=8;function gT(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?mT:r}}function vT(e,t){return e?t:{}}function bT(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},hT(e,t,o)),{"&:before":{background:t}})]},vT(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),vT(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),vT(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),vT(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const yT={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},xT={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},wT=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ST(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(yT).forEach((e=>{const c=r&&xT[e]||yT[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,wT.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+o}const d=gT({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+s}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),l}const CT=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},by(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${Um(e.calc(c).div(2).equal())} ${Um(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,mT)}},[`${t}-content`]:{position:"relative"}}),_y(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},bT(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ET=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},gT({contentRadius:e.borderRadius,limitVerticalRadius:!0})),pT($y(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),kT=function(e){const t=Ly("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=$y(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[CT(o),VO(e,"zoom-big-fast")]}),ET,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},OT=Gb.map((e=>`${e}-inverse`)),$T=["success","processing","error","default","warning"];function PT(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(Yh(OT),Yh(Gb)).includes(e):Gb.includes(e)}function TT(e,t){const n=PT(t),r=xp({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const MT=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=F.useContext(Db),l=s("tooltip",t),[c,u,d]=kT(l),f=TT(l,i),p=f.arrowStyle,h=Object.assign(Object.assign({},a),f.overlayStyle),m=xp(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return c(F.createElement("div",{className:m,style:p},F.createElement("div",{className:`${l}-arrow`}),F.createElement(iT,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),o)))};var IT=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:h=!0,title:m,overlay:g,builtinPlacements:v,arrowPointAtCenter:b=!1,autoAdjustOverflow:y=!0}=e,x=!!h,[,w]=oy(),{getPopupContainer:S,getPrefixCls:C,direction:E}=F.useContext(Db),k=Cv(),O=F.useRef(null),$=()=>{var e;null===(e=O.current)||void 0===e||e.forceAlign()};F.useImperativeHandle(t,(()=>({forceAlign:$,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),$()}})));const[P,T]=gy(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),M=!m&&!g&&0!==m,I=F.useMemo((()=>{var e,t;let n=b;return"object"==typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:b),v||ST({arrowPointAtCenter:n,autoAdjustOverflow:y,arrowWidth:x?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})}),[b,h,v,w]),j=F.useMemo((()=>0===m?m:g||m||""),[g,m]),R=F.createElement(tC,null,"function"==typeof j?j():j),{getPopupContainer:N,placement:A="top",mouseEnterDelay:L=.1,mouseLeaveDelay:_=.1,overlayStyle:D,rootClassName:B}=e,z=IT(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=C("tooltip",o),V=C(),U=e["data-popover-inject"];let W=P;"open"in e||"visible"in e||!M||(W=!1);const q=F.isValidElement(u)&&!Mw(u)?u:F.createElement("span",null,u),G=q.props,K=G.className&&"string"!=typeof G.className?G.className:xp(G.className,i||`${H}-open`),[X,Y,Z]=kT(H,!U),Q=TT(H,l),J=Q.arrowStyle,ee=Object.assign(Object.assign({},c),Q.overlayStyle),te=xp(s,{[`${H}-rtl`]:"rtl"===E},Q.className,B,Y,Z),[ne,re]=Jw("Tooltip",z.zIndex),oe=F.createElement(fT,Object.assign({},z,{zIndex:ne,showArrow:x,placement:A,mouseEnterDelay:L,mouseLeaveDelay:_,prefixCls:H,overlayClassName:te,overlayStyle:Object.assign(Object.assign({},J),D),getTooltipContainer:N||a||S,ref:O,builtinPlacements:I,overlay:R,visible:W,onVisibleChange:t=>{var n,r;T(!M&&t),M||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=d?d:f,overlayInnerStyle:ee,arrowContent:F.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:LS(V,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),W?jw(q,{className:K}):q);return X(F.createElement(Kw.Provider,{value:re},oe))})),RT=jT;RT._InternalPanelDoNotUseOrYouWillBeFired=MT;const NT=RT;const AT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var LT=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:AT}))}; +/**![right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc2NS43IDQ4Ni44TDMxNC45IDEzNC43QTcuOTcgNy45NyAwIDAwMzAyIDE0MXY3Ny4zYzAgNC45IDIuMyA5LjYgNi4xIDEyLjZsMzYwIDI4MS4xLTM2MCAyODEuMWMtMy45IDMtNi4xIDcuNy02LjEgMTIuNlY4ODNjMCA2LjcgNy43IDEwLjQgMTIuOSA2LjNsNDUwLjgtMzUyLjFhMzEuOTYgMzEuOTYgMCAwMDAtNTAuNHoiIC8+PC9zdmc+) */const _T=F.forwardRef(LT);var DT=Nw.ESC,BT=Nw.TAB;var FT=F.forwardRef((function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=F.useMemo((function(){return"function"==typeof n?n():n}),[n]),a=rh(t,null==i?void 0:i.ref);return z.createElement(z.Fragment,null,r&&z.createElement("div",{className:"".concat(o,"-arrow")}),z.cloneElement(i,{ref:ih(i)?a:void 0}))})),zT={adjustX:1,adjustY:1},HT=[0,0],VT={topLeft:{points:["bl","tl"],overflow:zT,offset:[0,-4],targetOffset:HT},top:{points:["bc","tc"],overflow:zT,offset:[0,-4],targetOffset:HT},topRight:{points:["br","tr"],overflow:zT,offset:[0,-4],targetOffset:HT},bottomLeft:{points:["tl","bl"],overflow:zT,offset:[0,4],targetOffset:HT},bottom:{points:["tc","bc"],overflow:zT,offset:[0,4],targetOffset:HT},bottomRight:{points:["tr","br"],overflow:zT,offset:[0,4],targetOffset:HT}},UT=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function WT(e,t){var n,r=e.arrow,o=void 0!==r&&r,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,f=e.placements,p=void 0===f?VT:f,h=e.getPopupContainer,m=e.showAction,g=e.hideAction,v=e.overlayClassName,b=e.overlayStyle,y=e.visible,x=e.trigger,w=void 0===x?["hover"]:x,S=e.autoFocus,C=e.overlay,E=e.children,k=e.onVisibleChange,O=wm(e,UT),$=im(z.useState(),2),P=$[0],T=$[1],M="visible"in e?y:P,I=z.useRef(null),j=z.useRef(null),R=z.useRef(null);z.useImperativeHandle(t,(function(){return I.current}));var N=function(e){T(e),null==k||k(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=F.useRef(!1),s=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null==r||r(!1))},l=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus||(i.current.focus(),a.current=!0,0))},c=function(e){switch(e.keyCode){case DT:s();break;case BT:var t=!1;a.current||(t=l()),t?e.preventDefault():s()}};F.useEffect((function(){return t?(window.addEventListener("keydown",c),o&&nm(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}}),[t])}({visible:M,triggerRef:R,onVisibleChange:N,autoFocus:S,overlayRef:j});var A,L,_,D=function(){return z.createElement(FT,{ref:j,overlay:C,prefixCls:a,arrow:o})},B=z.cloneElement(E,{className:xp(null===(n=E.props)||void 0===n?void 0:n.className,M&&(A=e.openClassName,void 0!==A?A:"".concat(a,"-open"))),ref:ih(E)?rh(R,E.ref):void 0}),H=g;return H||-1===w.indexOf("contextMenu")||(H=["click"]),z.createElement(RP,wp({builtinPlacements:p},O,{prefixCls:a,ref:I,popupClassName:xp(v,Yp({},"".concat(a,"-show-arrow"),o)),popupStyle:b,action:w,showAction:m,hideAction:H,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:M,stretch:(L=e.minOverlayWidthMatchTrigger,_=e.alignPoint,("minOverlayWidthMatchTrigger"in e?L:!_)?"minWidth":""),popup:"function"==typeof C?D:D(),onPopupVisibleChange:N,onPopupClick:function(t){var n=e.onOverlayClick;T(!1),n&&n(t)},getPopupContainer:h}),B)}const qT=z.forwardRef(WT);var GT=F.createContext(null);function KT(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function XT(e){return KT(F.useContext(GT),e)}var YT=["children","locked"],ZT=F.createContext(null);function QT(e){var t=e.children,n=e.locked,r=wm(e,YT),o=F.useContext(ZT),i=th((function(){return function(e,t){var n=Qp({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}(o,r)}),[o,r],(function(e,t){return!(n||e[0]===t[0]&&Sm(e[1],t[1],!0))}));return F.createElement(ZT.Provider,{value:i},t)}var JT=[],eM=F.createContext(null);function tM(){return F.useContext(eM)}var nM=F.createContext(JT);function rM(e){var t=F.useContext(nM);return F.useMemo((function(){return void 0!==e?[].concat(Yh(t),[e]):t}),[t,e])}var oM=F.createContext(null),iM=F.createContext({});function aM(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(_S(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var sM=Nw.LEFT,lM=Nw.RIGHT,cM=Nw.UP,uM=Nw.DOWN,dM=Nw.ENTER,fM=Nw.ESC,pM=Nw.HOME,hM=Nw.END,mM=[cM,uM,sM,lM];function gM(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Yh(e.querySelectorAll("*")).filter((function(e){return aM(e,t)}));return aM(e,t)&&n.unshift(e),n}(e,!0);return n.filter((function(e){return t.has(e)}))}function vM(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=gM(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var bM=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(KT(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function yM(e,t,n,r,o,i,a,s,l,c){var u=F.useRef(),d=F.useRef();d.current=t;var f=function(){nm.cancel(u.current)};return F.useEffect((function(){return function(){f()}}),[]),function(p){var h=p.which;if([].concat(mM,[dM,fM,pM,hM]).includes(h)){var m=i(),g=bM(m,r),v=g,b=v.elements,y=v.key2element,x=v.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),S=x.get(w),C=function(e,t,n,r){var o,i="prev",a="next",s="children",l="parent";if("inline"===e&&r===dM)return{inlineTrigger:!0};var c=Yp(Yp({},cM,i),uM,a),u=Yp(Yp(Yp(Yp({},sM,n?a:i),lM,n?i:a),uM,s),dM,s),d=Yp(Yp(Yp(Yp(Yp(Yp({},cM,i),uM,a),dM,s),fM,l),sM,n?s:l),lM,n?l:s);switch(null===(o={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(e,1===a(S,!0).length,n,h);if(!C&&h!==pM&&h!==hM)return;(mM.includes(h)||[pM,hM].includes(h))&&p.preventDefault();var E=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=x.get(e);s(r),f(),u.current=nm((function(){d.current===r&&t.focus()}))}};if([pM,hM].includes(h)||C.sibling||!w){var k,O,$=gM(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):o.current,b);O=h===pM?$[0]:h===hM?$[$.length-1]:vM(k,b,w,C.offset),E(O)}else if(C.inlineTrigger)l(S);else if(C.offset>0)l(S,!0),f(),u.current=nm((function(){g=bM(m,r);var e=w.getAttribute("aria-controls"),t=vM(document.getElementById(e),g.elements);E(t)}),5);else if(C.offset<0){var P=a(S,!0),T=P[P.length-2],M=y.get(T);l(T,!1),E(M)}}null==c||c(p)}}var xM="__RC_UTIL_PATH_SPLIT__",wM=function(e){return e.join(xM)},SM="rc-menu-more";function CM(){var e=im(F.useState({}),2)[1],t=F.useRef(new Map),n=F.useRef(new Map),r=im(F.useState([]),2),o=r[0],i=r[1],a=F.useRef(0),s=F.useRef(!1),l=F.useCallback((function(r,o){var i=wM(o);n.current.set(i,r),t.current.set(r,i),a.current+=1;var l,c=a.current;l=function(){c===a.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=F.useCallback((function(e,r){var o=wM(r);n.current.delete(o),t.current.delete(e)}),[]),u=F.useCallback((function(e){i(e)}),[]),d=F.useCallback((function(e,n){var r=t.current.get(e)||"",i=r.split(xM);return n&&o.includes(i[0])&&i.unshift(SM),i}),[o]),f=F.useCallback((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),p=F.useCallback((function(e){var r="".concat(t.current.get(e)).concat(xM),o=new Set;return Yh(n.current.keys()).forEach((function(e){e.startsWith(r)&&o.add(n.current.get(e))})),o}),[]);return F.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:function(){var e=Yh(t.current.keys());return o.length&&e.push(SM),e},getSubPathKeys:p}}function EM(e){var t=F.useRef(e);t.current=e;var n=F.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(v.motionAppear=!1);var b=v.onVisibleChanged;return v.onVisibleChanged=function(e){return f.current||e||m(!0),null==b?void 0:b(e)},h?null:F.createElement(QT,{mode:i,locked:!f.current},F.createElement(Ex,wp({visible:g},v,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,r=e.style;return F.createElement(zM,{id:t,className:n,style:r},o)})))}var YM=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ZM=["active"],QM=function(e){var t=e.style,n=e.className,r=e.title,o=e.eventKey;e.warnKey;var i=e.disabled,a=e.internalPopupClose,s=e.children,l=e.itemIcon,c=e.expandIcon,u=e.popupClassName,d=e.popupOffset,f=e.popupStyle,p=e.onClick,h=e.onMouseEnter,m=e.onMouseLeave,g=e.onTitleClick,v=e.onTitleMouseEnter,b=e.onTitleMouseLeave,y=wm(e,YM),x=XT(o),w=F.useContext(ZT),S=w.prefixCls,C=w.mode,E=w.openKeys,k=w.disabled,O=w.overflowDisabled,$=w.activeKey,P=w.selectedKeys,T=w.itemIcon,M=w.expandIcon,I=w.onItemClick,j=w.onOpenChange,R=w.onActive,N=F.useContext(iM)._internalRenderSubMenuItem,A=F.useContext(oM).isSubPathKey,L=rM(),_="".concat(S,"-submenu"),D=k||i,B=F.useRef(),z=F.useRef(),H=null!=l?l:T,V=null!=c?c:M,U=E.includes(o),W=!O&&U,q=A(P,o),G=$M(o,D,v,b),K=G.active,X=wm(G,ZM),Y=im(F.useState(!1),2),Z=Y[0],Q=Y[1],J=function(e){D||Q(e)},ee=F.useMemo((function(){return K||"inline"!==C&&(Z||A([$],o))}),[C,K,$,Z,o,A]),te=PM(L.length),ne=EM((function(e){null==p||p(IM(e)),I(e)})),re=x&&"".concat(x,"-popup"),oe=F.createElement("div",wp({role:"menuitem",style:te,className:"".concat(_,"-title"),tabIndex:D?null:-1,ref:B,title:"string"==typeof r?r:null,"data-menu-id":O&&x?null:x,"aria-expanded":W,"aria-haspopup":!0,"aria-controls":re,"aria-disabled":D,onClick:function(e){D||(null==g||g({key:o,domEvent:e}),"inline"===C&&j(o,!U))},onFocus:function(){R(o)}},X),r,F.createElement(TM,{icon:"horizontal"!==C?V:void 0,props:Qp(Qp({},e),{},{isOpen:W,isSubMenu:!0})},F.createElement("i",{className:"".concat(_,"-arrow")}))),ie=F.useRef(C);if("inline"!==C&&L.length>1?ie.current="vertical":ie.current=C,!O){var ae=ie.current;oe=F.createElement(KM,{mode:ae,prefixCls:_,visible:!a&&W&&"inline"!==C,popupClassName:u,popupOffset:d,popupStyle:f,popup:F.createElement(QT,{mode:"horizontal"===ae?"vertical":ae},F.createElement(zM,{id:re,ref:z},s)),disabled:D,onVisibleChange:function(e){"inline"!==C&&j(o,e)}},oe)}var se=F.createElement(fP.Item,wp({role:"none"},y,{component:"li",style:t,className:xp(_,"".concat(_,"-").concat(C),n,Yp(Yp(Yp(Yp({},"".concat(_,"-open"),W),"".concat(_,"-active"),ee),"".concat(_,"-selected"),q),"".concat(_,"-disabled"),D)),onMouseEnter:function(e){J(!0),null==h||h({key:o,domEvent:e})},onMouseLeave:function(e){J(!1),null==m||m({key:o,domEvent:e})}}),oe,!O&&F.createElement(XM,{id:re,open:W,keyPath:L},s));return N&&(se=N(se,e,{selected:q,active:ee,open:W,disabled:D})),F.createElement(QT,{onItemClick:ne,mode:"horizontal"===C?"vertical":C,itemIcon:H,expandIcon:V},se)};function JM(e){var t,n=e.eventKey,r=e.children,o=rM(n),i=HM(r,o),a=tM();return F.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:F.createElement(QM,e,i),F.createElement(nM.Provider,{value:o},t)}var eI=["className","title","eventKey","children"],tI=["children"],nI=function(e){var t=e.className,n=e.title;e.eventKey;var r=e.children,o=wm(e,eI),i=F.useContext(ZT).prefixCls,a="".concat(i,"-item-group");return F.createElement("li",wp({role:"presentation"},o,{onClick:function(e){return e.stopPropagation()},className:xp(a,t)}),F.createElement("div",{role:"presentation",className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),F.createElement("ul",{role:"group",className:"".concat(a,"-list")},r))};function rI(e){var t=e.children,n=wm(e,tI),r=HM(t,rM(n.eventKey));return tM()?r:F.createElement(nI,qh(n,["warnKey"]),r)}function oI(e){var t=e.className,n=e.style,r=F.useContext(ZT).prefixCls;return tM()?null:F.createElement("li",{role:"separator",className:xp("".concat(r,"-item-divider"),t),style:n})}var iI=["label","children","key","type"];function aI(e){return(e||[]).map((function(e,t){if(e&&"object"===Kp(e)){var n=e,r=n.label,o=n.children,i=n.key,a=n.type,s=wm(n,iI),l=null!=i?i:"tmp-".concat(t);return o||"group"===a?"group"===a?F.createElement(rI,wp({key:l},s,{title:r}),aI(o)):F.createElement(JM,wp({key:l},s,{title:r}),aI(o)):"divider"===a?F.createElement(oI,wp({key:l},s)):F.createElement(DM,wp({key:l},s),r)}return null})).filter((function(e){return e}))}function sI(e,t,n){var r=e;return t&&(r=aI(t)),HM(r,n)}var lI=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],cI=[],uI=F.forwardRef((function(e,t){var n,r=e,o=r.prefixCls,i=void 0===o?"rc-menu":o,a=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=void 0===c?0:c,d=r.items,f=r.children,p=r.direction,h=r.id,m=r.mode,g=void 0===m?"vertical":m,v=r.inlineCollapsed,b=r.disabled,y=r.disabledOverflow,x=r.subMenuOpenDelay,w=void 0===x?.1:x,S=r.subMenuCloseDelay,C=void 0===S?.1:S,E=r.forceSubMenuRender,k=r.defaultOpenKeys,O=r.openKeys,$=r.activeKey,P=r.defaultActiveFirst,T=r.selectable,M=void 0===T||T,I=r.multiple,j=void 0!==I&&I,R=r.defaultSelectedKeys,N=r.selectedKeys,A=r.onSelect,L=r.onDeselect,_=r.inlineIndent,D=void 0===_?24:_,B=r.motion,z=r.defaultMotions,H=r.triggerSubMenuAction,V=void 0===H?"hover":H,U=r.builtinPlacements,W=r.itemIcon,q=r.expandIcon,G=r.overflowedIndicator,K=void 0===G?"...":G,X=r.overflowedIndicatorPopupClassName,Y=r.getPopupContainer,Z=r.onClick,Q=r.onOpenChange,J=r.onKeyDown;r.openAnimation,r.openTransitionName;var ee=r._internalRenderMenuItem,te=r._internalRenderSubMenuItem,ne=wm(r,lI),re=F.useMemo((function(){return sI(f,d,cI)}),[f,d]),oe=im(F.useState(!1),2),ie=oe[0],ae=oe[1],se=F.useRef(),le=function(e){var t=im(gy(e,{value:e}),2),n=t[0],r=t[1];return F.useEffect((function(){OM+=1;var e="".concat(kM,"-").concat(OM);r("rc-menu-uuid-".concat(e))}),[]),n}(h),ce="rtl"===p,ue=gy(k,{value:O,postState:function(e){return e||cI}}),de=im(ue,2),fe=de[0],pe=de[1],he=function(e){function t(){pe(e),null==Q||Q(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?Hd.flushSync(t):t()},me=im(F.useState(fe),2),ge=me[0],ve=me[1],be=F.useRef(!1),ye=im(F.useMemo((function(){return"inline"!==g&&"vertical"!==g||!v?[g,!1]:["vertical",v]}),[g,v]),2),xe=ye[0],we=ye[1],Se="inline"===xe,Ce=im(F.useState(xe),2),Ee=Ce[0],ke=Ce[1],Oe=im(F.useState(we),2),$e=Oe[0],Pe=Oe[1];F.useEffect((function(){ke(xe),Pe(we),be.current&&(Se?pe(ge):he(cI))}),[xe,we]);var Te=im(F.useState(0),2),Me=Te[0],Ie=Te[1],je=Me>=re.length-1||"horizontal"!==Ee||y;F.useEffect((function(){Se&&ve(fe)}),[fe]),F.useEffect((function(){return be.current=!0,function(){be.current=!1}}),[]);var Re=CM(),Ne=Re.registerPath,Ae=Re.unregisterPath,Le=Re.refreshOverflowKeys,_e=Re.isSubPathKey,De=Re.getKeyPath,Be=Re.getKeys,Fe=Re.getSubPathKeys,ze=F.useMemo((function(){return{registerPath:Ne,unregisterPath:Ae}}),[Ne,Ae]),He=F.useMemo((function(){return{isSubPathKey:_e}}),[_e]);F.useEffect((function(){Le(je?cI:re.slice(Me+1).map((function(e){return e.key})))}),[Me,je]);var Ve=im(gy($||P&&(null===(n=re[0])||void 0===n?void 0:n.key),{value:$}),2),Ue=Ve[0],We=Ve[1],qe=EM((function(e){We(e)})),Ge=EM((function(){We(void 0)}));F.useImperativeHandle(t,(function(){return{list:se.current,focus:function(e){var t,n,r=Be(),o=bM(r,le),i=o.elements,a=o.key2element,s=o.element2key,l=gM(se.current,i),c=null!=Ue?Ue:l[0]?s.get(l[0]):null===(t=re.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var Ke=gy(R||[],{value:N,postState:function(e){return Array.isArray(e)?e:null==e?cI:[e]}}),Xe=im(Ke,2),Ye=Xe[0],Ze=Xe[1],Qe=EM((function(e){null==Z||Z(IM(e)),function(e){if(M){var t,n=e.key,r=Ye.includes(n);t=j?r?Ye.filter((function(e){return e!==n})):[].concat(Yh(Ye),[n]):[n],Ze(t);var o=Qp(Qp({},e),{},{selectedKeys:t});r?null==L||L(o):null==A||A(o)}!j&&fe.length&&"inline"!==Ee&&he(cI)}(e)})),Je=EM((function(e,t){var n=fe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Ee){var r=Fe(e);n=n.filter((function(e){return!r.has(e)}))}Sm(fe,n,!0)||he(n,!0)})),et=yM(Ee,Ue,ce,le,se,Be,De,We,(function(e,t){var n=null!=t?t:!fe.includes(e);Je(e,n)}),J);F.useEffect((function(){ae(!0)}),[]);var tt=F.useMemo((function(){return{_internalRenderMenuItem:ee,_internalRenderSubMenuItem:te}}),[ee,te]),nt="horizontal"!==Ee||y?re:re.map((function(e,t){return F.createElement(QT,{key:e.key,overflowDisabled:t>Me},e)})),rt=F.createElement(fP,wp({id:h,ref:se,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:DM,className:xp(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ee),l,Yp(Yp({},"".concat(i,"-inline-collapsed"),$e),"".concat(i,"-rtl"),ce),a),dir:p,style:s,role:"menu",tabIndex:u,data:nt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?re.slice(-t):null;return F.createElement(JM,{eventKey:SM,title:K,disabled:je,internalPopupClose:0===t,popupClassName:X},n)},maxCount:"horizontal"!==Ee||y?fP.INVALIDATE:fP.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ie(e)},onKeyDown:et},ne));return F.createElement(iM.Provider,{value:tt},F.createElement(GT.Provider,{value:le},F.createElement(QT,{prefixCls:i,rootClassName:a,mode:Ee,openKeys:fe,rtl:ce,disabled:b,motion:ie?B:null,defaultMotions:ie?z:null,activeKey:Ue,onActive:qe,onInactive:Ge,selectedKeys:Ye,inlineIndent:D,subMenuOpenDelay:w,subMenuCloseDelay:C,forceSubMenuRender:E,builtinPlacements:U,triggerSubMenuAction:V,getPopupContainer:Y,itemIcon:W,expandIcon:q,onItemClick:Qe,onOpenChange:Je},F.createElement(oM.Provider,{value:He},rt),F.createElement("div",{style:{display:"none"},"aria-hidden":!0},F.createElement(eM.Provider,{value:ze},re)))))})),dI=uI;dI.Item=DM,dI.SubMenu=JM,dI.ItemGroup=rI,dI.Divider=oI;const fI={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var pI=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:fI}))}; +/**![bars](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkxMiAxOTJIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHptMCAyODRIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHptMCAyODRIMzI4Yy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDU4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHpNMTA0IDIyOGE1NiA1NiAwIDEwMTEyIDAgNTYgNTYgMCAxMC0xMTIgMHptMCAyODRhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMTAtMTEyIDB6bTAgMjg0YTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDEwLTExMiAweiIgLz48L3N2Zz4=) */const hI=F.forwardRef(pI);const mI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var gI=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:mI}))}; +/**![left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcyNCAyMTguM1YxNDFjMC02LjctNy43LTEwLjQtMTIuOS02LjNMMjYwLjMgNDg2LjhhMzEuODYgMzEuODYgMCAwMDAgNTAuM2w0NTAuOCAzNTIuMWM1LjMgNC4xIDEyLjkuNCAxMi45LTYuM3YtNzcuM2MwLTQuOS0yLjMtOS42LTYuMS0xMi42bC0zNjAtMjgxIDM2MC0yODEuMWMzLjgtMyA2LjEtNy43IDYuMS0xMi42eiIgLz48L3N2Zz4=) */const vI=F.forwardRef(gI),bI=e=>!isNaN(parseFloat(e))&&isFinite(e),yI=F.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var xI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),EI=F.forwardRef(((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:h,onCollapse:m,onBreakpoint:g}=e,v=xI(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=F.useContext(yI),[y,x]=F.useState("collapsed"in e?e.collapsed:a),[w,S]=F.useState(!1);F.useEffect((()=>{"collapsed"in e&&x(e.collapsed)}),[e.collapsed]);const C=(t,n)=>{"collapsed"in e||x(t),null==m||m(t,n)},E=F.useRef();E.current=e=>{S(e.matches),null==g||g(e.matches),y!==e.matches&&C(e.matches,"responsive")},F.useEffect((()=>{function e(e){return E.current(e)}let t;if("undefined"!=typeof window){const{matchMedia:r}=window;if(r&&h&&h in wI){t=r(`screen and (max-width: ${wI[h]})`);try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return()=>{try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[h]),F.useEffect((()=>{const e=CI("ant-sider-");return b.addSider(e),()=>b.removeSider(e)}),[]);const k=()=>{C(!y,"clickTrigger")},{getPrefixCls:O}=F.useContext(Db),$=F.useMemo((()=>({siderCollapsed:y})),[y]);return F.createElement(SI.Provider,{value:$},(()=>{const e=O("layout-sider",n),a=qh(v,["collapsed"]),h=y?f:d,m=bI(h)?`${h}px`:String(h),g=0===parseFloat(String(f||0))?F.createElement("span",{onClick:k,className:xp(`${e}-zero-width-trigger`,`${e}-zero-width-trigger-${u?"right":"left"}`),style:p},o||F.createElement(hI,null)):null,b={expanded:u?F.createElement(_T,null):F.createElement(vI,null),collapsed:u?F.createElement(vI,null):F.createElement(_T,null)}[y?"collapsed":"expanded"],x=null!==o?g||F.createElement("div",{className:`${e}-trigger`,onClick:k,style:{width:m}},o||b):null,S=Object.assign(Object.assign({},l),{flex:`0 0 ${m}`,maxWidth:m,minWidth:m,width:m}),C=xp(e,`${e}-${s}`,{[`${e}-collapsed`]:!!y,[`${e}-has-trigger`]:c&&null!==o&&!g,[`${e}-below`]:!!w,[`${e}-zero-width`]:0===parseFloat(m)},r);return F.createElement("aside",Object.assign({className:C},a,{style:S,ref:t}),F.createElement("div",{className:`${e}-children`},i),c||w&&g?x:null)})())})),kI=EI;const OI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var $I=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:OI}))}; +/**![ellipsis](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE3NiA1MTFhNTYgNTYgMCAxMDExMiAwIDU2IDU2IDAgMTAtMTEyIDB6bTI4MCAwYTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDEwLTExMiAwem0yODAgMGE1NiA1NiAwIDEwMTEyIDAgNTYgNTYgMCAxMC0xMTIgMHoiIC8+PC9zdmc+) */const PI=F.forwardRef($I);var TI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=TI(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=F.useContext(Db),a=i("menu",t),s=xp({[`${a}-item-divider-dashed`]:!!r},n);return F.createElement(oI,Object.assign({className:s},o))},II=F.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),jI=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:l,direction:c,disableMenuItemTitleTooltip:u,inlineCollapsed:d}=F.useContext(II),{siderCollapsed:f}=F.useContext(SI);let p=i;void 0===i?p=l?r:"":!1===i&&(p="");const h={title:p};f||d||(h.title=null,h.open=!1);const m=zp(r).length;let g=F.createElement(DM,Object.assign({},qh(e,["title","icon","danger"]),{className:xp({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(o?m+1:m)},n),title:"string"==typeof i?i:void 0}),jw(o,{className:xp(F.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),(e=>{const t=F.createElement("span",{className:`${s}-title-content`},r);return(!o||F.isValidElement(r)&&"span"===r.type)&&r&&e&&l&&"string"==typeof r?F.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):t})(d));return u||(g=F.createElement(NT,Object.assign({},h,{placement:"rtl"===c?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),g)),g},RI=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=F.useContext(II),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=rM();let d;if(r){const e=F.isValidElement(o)&&"span"===o.type;d=F.createElement(F.Fragment,null,jw(r,{className:xp(F.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:"",`${s}-item-icon`)}),e?o:F.createElement("span",{className:`${s}-title-content`},o))}else d=l&&!u.length&&o&&"string"==typeof o?F.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):F.createElement("span",{className:`${s}-title-content`},o);const f=F.useMemo((()=>Object.assign(Object.assign({},a),{firstLevel:!1})),[a]),[p]=Jw("Menu");return F.createElement(II.Provider,{value:f},F.createElement(JM,Object.assign({},qh(e,["icon"]),{title:d,popupClassName:xp(s,n,`${s}-${i||c}`),popupStyle:{zIndex:p}})))};var NI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(e&&"object"==typeof e){const n=e,{label:r,children:o,key:i,type:a}=n,s=NI(n,["label","children","key","type"]),l=null!=i?i:`tmp-${t}`;return o||"group"===a?"group"===a?F.createElement(rI,Object.assign({key:l},s,{title:r}),AI(o)):F.createElement(RI,Object.assign({key:l},s,{title:r}),AI(o)):"divider"===a?F.createElement(MI,Object.assign({key:l},s)):F.createElement(jI,Object.assign({key:l},s),r)}return null})).filter((e=>e))}function LI(e){return F.useMemo((()=>e?AI(e):e),[e])}var _I=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=_I(e,["children"]),o=F.useContext(DI),i=F.useMemo((()=>Object.assign(Object.assign({},o),r)),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=function(e){return!!F.isValidElement(e)&&!Fp.isFragment(e)&&ih(e)}(n),s=oh(t,a?n.ref:null);return F.createElement(DI.Provider,{value:i},F.createElement(tC,null,a?F.cloneElement(n,{ref:s}):n))})),FI=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Um(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},zI=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Um(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Um(n)})`}}}}},HI=e=>Object.assign({},Cy(e)),VI=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:l,activeBarHeight:c,activeBarWidth:u,activeBarBorderWidth:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:m,motionDurationMid:g,itemHoverColor:v,lineType:b,colorSplit:y,itemDisabledColor:x,dangerItemColor:w,dangerItemHoverColor:S,dangerItemSelectedColor:C,dangerItemActiveBg:E,dangerItemSelectedBg:k,popupBg:O,itemHoverBg:$,itemActiveBg:P,menuSubMenuBg:T,horizontalItemSelectedColor:M,horizontalItemSelectedBg:I,horizontalItemBorderRadius:j,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},HI(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},HI(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:P}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:$},"&:active":{backgroundColor:P}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:C},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:T},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:e.calc(d).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${Um(c)} solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:c,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:I,"&:hover":{backgroundColor:I},"&::after":{borderBottomWidth:c,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Um(d)} ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Um(u)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${g} ${h}`,`opacity ${g} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:C}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${g} ${p}`,`opacity ${g} ${p}`].join(",")}}}}}},UI=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l}=e,c=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Um(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Um(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:c}}},WI=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:h,collapsedWidth:m,collapsedIconSize:g}=e,v={height:r,lineHeight:Um(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},UI(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},UI(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Um(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${s} ${l}`,`padding-inline calc(50% - ${Um(e.calc(d).div(2).equal())} - ${Um(u)})`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:m,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Um(e.calc(d).div(2).equal())} - ${Um(u)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Um(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},vy),{paddingInline:p})}}]},qI=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},GI=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Um(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Um(a)})`}}}}},KI=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:m,lineType:g,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},by(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Um(s)} ${Um(l)}`,fontSize:b,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qI(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Um(e.calc(r).mul(2).equal())} ${Um(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:f},qI(e)),GI(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),GI(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Um(m)})`},"&::after":{transform:`rotate(45deg) translateX(${Um(e.calc(m).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Um(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Um(e.calc(m).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Um(m)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},XI=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:h,controlItemBgActive:m,colorBgTextHover:g,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:w,fontSize:S,controlHeightSM:C,fontSizeLG:E,colorTextLightSolid:k,colorErrorHover:O}=e,$=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,P=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,T=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,M=new nb(k).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:f,itemActiveBg:m,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:m,itemSelectedBg:m,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:P,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:T,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*v+"px",iconSize:S,iconMarginInlineEnd:C-S,collapsedIconSize:E,groupTitleFontSize:S,darkItemDisabledColor:new nb(k).setAlpha(.25).toRgbString(),darkItemColor:M,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:M,darkItemHoverColor:k,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:$?`calc(100% + ${P}px)`:`calc(100% - ${2*T}px)`}};var YI=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const r=F.useContext(DI),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:s,menu:l}=F.useContext(Db),c=i(),{prefixCls:u,className:d,style:f,theme:p="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:g,siderCollapsed:v,items:b,children:y,rootClassName:x,mode:w,selectable:S,onClick:C,overflowedIndicatorPopupClassName:E}=e,k=qh(YI(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]),O=LI(b)||y;null===(n=o.validator)||void 0===n||n.call(o,{mode:w});const $=py((function(){var e;null==C||C.apply(void 0,arguments),null===(e=o.onClick)||void 0===e||e.call(o)})),P=o.mode||w,T=null!=S?S:o.selectable,M=F.useMemo((()=>void 0!==v?v:g),[g,v]),I={horizontal:{motionName:`${c}-slide-up`},inline:AS(c),other:{motionName:`${c}-zoom-big`}},j=i("menu",u||o.prefixCls),R=Rw(j),[N,A,L]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=Ly("Menu",(e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:s,darkItemSelectedColor:l,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:h,darkDangerItemHoverColor:m,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(r).div(7).mul(5).equal(),w=$y(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),S=$y(w,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:l,itemBg:a,popupBg:y,subMenuItemBg:s,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:i,dangerItemHoverColor:m,dangerItemSelectedColor:g,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:l,horizontalItemSelectedBg:c});return[KI(w),FI(w),WI(w),VI(w,"light"),VI(S,"dark"),zI(w),dO(w),AO(w,"slide-up"),AO(w,"slide-down"),VO(w,"zoom-big")]}),XI,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)}(j,R,!r),_=xp(`${j}-${p}`,null==l?void 0:l.className,d),D=F.useMemo((()=>{var e,t;if("function"==typeof h||ZI(h))return h||null;if("function"==typeof o.expandIcon||ZI(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==l?void 0:l.expandIcon)||ZI(null==l?void 0:l.expandIcon))return(null==l?void 0:l.expandIcon)||null;const n=null!==(e=null!=h?h:null==o?void 0:o.expandIcon)&&void 0!==e?e:null==l?void 0:l.expandIcon;return jw(n,{className:xp(`${j}-submenu-expand-icon`,F.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})}),[h,null==o?void 0:o.expandIcon,null==l?void 0:l.expandIcon,j]),B=F.useMemo((()=>({prefixCls:j,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:p,mode:P,disableMenuItemTitleTooltip:m})),[j,M,s,m,p]);return N(F.createElement(DI.Provider,{value:null},F.createElement(II.Provider,{value:B},F.createElement(dI,Object.assign({getPopupContainer:a,overflowedIndicator:F.createElement(PI,null),overflowedIndicatorPopupClassName:xp(j,`${j}-${p}`,E),mode:P,selectable:T,onClick:$},k,{inlineCollapsed:M,style:Object.assign(Object.assign({},null==l?void 0:l.style),f),className:_,prefixCls:j,direction:s,defaultMotions:I,expandIcon:D,ref:t,rootClassName:xp(x,A,o.rootClassName,L,R)}),O))))})),JI=QI,ej=F.forwardRef(((e,t)=>{const n=F.useRef(null),r=F.useContext(SI);return F.useImperativeHandle(t,(()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}}))),F.createElement(JI,Object.assign({ref:n},e,r))}));ej.Item=jI,ej.SubMenu=RI,ej.Divider=MI,ej.ItemGroup=rI;const tj=ej,nj=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},rj=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:m}=e;return[{[t]:Object.assign(Object.assign({},by(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:OO},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:PO},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:$O},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:TO}})},bT(e,m,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ey(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Um(c)} ${Um(h)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${Um(c)} ${Um(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ey(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Um(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Um(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:m,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[AO(e,"slide-up"),AO(e,"slide-down"),kO(e,"move-up"),kO(e,"move-down"),VO(e,"zoom-big")]]},oj=Ly("Dropdown",(e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=$y(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[rj(i),nj(i)]}),(e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},gT({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),pT(e)))),ij=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:s,getPopupContainer:l,overlayClassName:c,rootClassName:u,overlayStyle:d,open:f,onOpenChange:p,visible:h,onVisibleChange:m,mouseEnterDelay:g=.15,mouseLeaveDelay:v=.1,autoAdjustOverflow:b=!0,placement:y="",overlay:x,transitionName:w}=e,{getPopupContainer:S,getPrefixCls:C,direction:E,dropdown:k}=F.useContext(Db);Cv();const O=F.useMemo((()=>{const e=C();return void 0!==w?w:y.includes("top")?`${e}-slide-down`:`${e}-slide-up`}),[C,y,w]),$=F.useMemo((()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:"rtl"===E?"bottomRight":"bottomLeft"),[y,E]),P=C("dropdown",r),T=Rw(P),[M,I,j]=oj(P,T),[,R]=oy(),N=F.Children.only(o),A=jw(N,{className:xp(`${P}-trigger`,{[`${P}-rtl`]:"rtl"===E},N.props.className),disabled:a}),L=a?[]:i;let _;L&&L.includes("contextMenu")&&(_=!0);const[D,B]=gy(!1,{value:null!=f?f:h}),z=py((e=>{null==p||p(e,{source:"trigger"}),null==m||m(e),B(e)})),H=xp(c,u,I,j,T,null==k?void 0:k.className,{[`${P}-rtl`]:"rtl"===E}),V=ST({arrowPointAtCenter:"object"==typeof n&&n.pointAtCenter,autoAdjustOverflow:b,offset:R.marginXXS,arrowWidth:n?R.sizePopupArrow:0,borderRadius:R.borderRadius}),U=F.useCallback((()=>{(null==t?void 0:t.selectable)&&(null==t?void 0:t.multiple)||(null==p||p(!1,{source:"menu"}),B(!1))}),[null==t?void 0:t.selectable,null==t?void 0:t.multiple]),[W,q]=Jw("Dropdown",null==d?void 0:d.zIndex);let G=F.createElement(qT,Object.assign({alignPoint:_},qh(e,["rootClassName"]),{mouseEnterDelay:g,mouseLeaveDelay:v,visible:D,builtinPlacements:V,arrow:!!n,overlayClassName:H,prefixCls:P,getPopupContainer:l||S,transitionName:O,trigger:L,overlay:()=>{let e;return e=(null==t?void 0:t.items)?F.createElement(tj,Object.assign({},t)):"function"==typeof x?x():x,s&&(e=s(e)),e=F.Children.only("string"==typeof e?F.createElement("span",null,e):e),F.createElement(BI,{prefixCls:`${P}-menu`,rootClassName:xp(j,T),expandIcon:F.createElement("span",{className:`${P}-menu-submenu-arrow`},F.createElement(_T,{className:`${P}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:U,validator:e=>{}},e)},placement:$,onVisibleChange:z,overlayStyle:Object.assign(Object.assign(Object.assign({},null==k?void 0:k.style),d),{zIndex:W})}),A);return W&&(G=F.createElement(Kw.Provider,{value:q},G)),M(G)};const aj=G$(ij,"dropdown",(e=>e),(function(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}));ij._InternalPanelDoNotUseOrYouWillBeFired=e=>F.createElement(aj,Object.assign({},e),F.createElement("span",null));const sj=ij,lj=e=>{let{children:t}=e;const{getPrefixCls:n}=F.useContext(Db),r=n("breadcrumb");return F.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};lj.__ANT_BREADCRUMB_SEPARATOR=!0;const cj=lj;var uj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{if(t)return t(n,r,o,i);const s=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,r);return dj(e,n,s,a)}}var pj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",children:r,menu:o,overlay:i,dropdownProps:a,href:s}=e,l=(e=>{if(o||i){const n=Object.assign({},a);if(o){const e=o||{},{items:t}=e,r=pj(e,["items"]);n.menu=Object.assign(Object.assign({},r),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:r,label:o,path:i}=e,a=pj(e,["key","title","label","path"]);let l=null!=o?o:r;return i&&(l=F.createElement("a",{href:`${s}${i}`},l)),Object.assign(Object.assign({},a),{key:null!=n?n:t,label:l})}))})}else i&&(n.overlay=i);return F.createElement(sj,Object.assign({placement:"bottom"},n),F.createElement("span",{className:`${t}-overlay-link`},e,F.createElement(XP,null)))}return e})(r);return null!=l?F.createElement(F.Fragment,null,F.createElement("li",null,l),n&&F.createElement(cj,null,n)):null},mj=e=>{const{prefixCls:t,children:n,href:r}=e,o=pj(e,["prefixCls","children","href"]),{getPrefixCls:i}=F.useContext(Db),a=i("breadcrumb",t);return F.createElement(hj,Object.assign({},o,{prefixCls:a}),dj(a,o,n,r))};mj.__ANT_BREADCRUMB_ITEM=!0;const gj=mj,vj=Ly("Breadcrumb",(e=>(e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},by(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${Um(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Ey(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${Um(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}})($y(e,{}))),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS})));var bj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{breadcrumbName:t}=e,n=bj(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),o}var xj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,separator:n="/",style:r,className:o,rootClassName:i,routes:a,items:s,children:l,itemRender:c,params:u={}}=e,d=xj(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:f,direction:p,breadcrumb:h}=F.useContext(Db);let m;const g=f("breadcrumb",t),[v,b,y]=vj(g),x=function(e,t){return F.useMemo((()=>e||(t?t.map(yj):null)),[e,t])}(s,a),w=fj(g,c);if(x&&x.length>0){const e=[],t=s||a;m=x.map(((r,o)=>{const{path:i,key:a,type:s,menu:l,overlay:c,onClick:d,className:f,separator:p,dropdownProps:h}=r,m=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(u,i);void 0!==m&&e.push(m);const v=null!=a?a:o;if("separator"===s)return F.createElement(cj,{key:v},p);const b={},y=o===x.length-1;l?b.menu=l:c&&(b.overlay=c);let{href:S}=r;return e.length&&void 0!==m&&(S=`#/${e.join("/")}`),F.createElement(hj,Object.assign({key:v},b,Tw(r,{data:!0,aria:!0}),{className:f,dropdownProps:h,href:S,separator:y?"":n,onClick:d,prefixCls:g}),w(r,u,t,e,S))}))}else if(l){const e=zp(l).length;m=zp(l).map(((t,r)=>{if(!t)return t;return jw(t,{separator:r===e-1?"":n,key:r})}))}const S=xp(g,null==h?void 0:h.className,{[`${g}-rtl`]:"rtl"===p},o,i,b,y),C=Object.assign(Object.assign({},null==h?void 0:h.style),r);return v(F.createElement("nav",Object.assign({className:S,style:C},d),F.createElement("ol",null,m)))};wj.Item=gj,wj.Separator=cj;const Sj=wj;function Cj(e){return $y(e,{inputAffixPadding:e.paddingXXS})}const Ej=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${v}`,warningActiveShadow:`0 0 0 ${m}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},kj=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Oj=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},kj($y(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),$j=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Pj=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$j(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Tj=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$j(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Oj(e))}),Pj(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Pj(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Mj=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ij=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Mj(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Mj(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Oj(e))}})}),jj=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),Rj=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Nj=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Rj(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Aj=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rj(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Oj(e))}),Nj(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Nj(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Lj=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),_j=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Um(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Um(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Lj(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Lj(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Dj=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Bj=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Um(t)} ${Um(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Fj=e=>({padding:`${Um(e.paddingBlockSM)} ${Um(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),zj=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Um(e.paddingBlock)} ${Um(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Dj(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Bj(e)),"&-sm":Object.assign({},Fj(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Hj=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Bj(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Fj(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Um(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Um(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Um(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Um(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${Um(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Vj=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},by(e)),zj(e)),Tj(e)),Aj(e)),jj(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Uj=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Um(e.inputAffixPadding)}`}}}},Wj=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},zj(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Uj(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},qj=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},by(e)),Hj(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Ij(e)),_j(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},Gj=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Kj=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},Xj=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Yj=Ly("Input",(e=>{const t=$y(e,Cj(e));return[Vj(t),Kj(t),Wj(t),qj(t),Gj(t),Xj(t),qC(t)]}),Ej,{resetFont:!1}),Zj=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=xp({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),s=xp({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),l=F.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return F.createElement("span",{className:xp(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},Qj=new dv("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Jj=e=>({height:e,lineHeight:Um(e)}),eR=e=>Object.assign({width:e},Jj(e)),tR=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Qj,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),nR=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Jj(e)),rR=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},eR(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},eR(o)),[`${t}${t}-sm`]:Object.assign({},eR(i))}},oR=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},nR(t,s)),[`${r}-lg`]:Object.assign({},nR(o,s)),[`${r}-sm`]:Object.assign({},nR(i,s))}},iR=e=>Object.assign({width:e},Jj(e)),aR=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},iR(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},iR(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},sR=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},lR=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Jj(e)),cR=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},lR(r,s))},sR(e,r,n)),{[`${n}-lg`]:Object.assign({},lR(o,s))}),sR(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},lR(i,s))}),sR(e,i,`${n}-sm`))},uR=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:h,titleHeight:m,blockRadius:g,paragraphLiHeight:v,controlHeightXS:b,paragraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},eR(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},eR(c)),[`${n}-sm`]:Object.assign({},eR(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:d,borderRadius:g,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:g,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},cR(e)),rR(e)),oR(e)),aR(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${s}\n `]:Object.assign({},tR(e))}}},dR=Ly("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=$y(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[uR(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),fR=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=F.useContext(Db),l=s("skeleton",t),[c,u,d]=dR(l),f=qh(e,["prefixCls","className"]),p=xp(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,d);return c(F.createElement("div",{className:p},F.createElement(Zj,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},f))))},pR=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=F.useContext(Db),l=s("skeleton",t),[c,u,d]=dR(l),f=qh(e,["prefixCls"]),p=xp(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,d);return c(F.createElement("div",{className:p},F.createElement(Zj,Object.assign({prefixCls:`${l}-button`,size:a},f))))},hR=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=F.useContext(Db),s=a("skeleton",t),[l,c,u]=dR(s),d=xp(s,`${s}-element`,{[`${s}-active`]:i},n,r,c,u);return l(F.createElement("div",{className:d},F.createElement("div",{className:xp(`${s}-image`,n),style:o},F.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},F.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${s}-image-path`})))))},mR=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=F.useContext(Db),l=s("skeleton",t),[c,u,d]=dR(l),f=qh(e,["prefixCls"]),p=xp(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,d);return c(F.createElement("div",{className:p},F.createElement(Zj,Object.assign({prefixCls:`${l}-input`,size:a},f))))};const gR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var vR=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:gR}))}; +/**![dot-chart](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4OCA3OTJIMjAwVjE2OGMwLTQuNC0zLjYtOC04LThoLTU2Yy00LjQgMC04IDMuNi04IDh2Njg4YzAgNC40IDMuNiA4IDggOGg3NTJjNC40IDAgOC0zLjYgOC04di01NmMwLTQuNC0zLjYtOC04LTh6TTI4OCA2MDRhNjQgNjQgMCAxMDEyOCAwIDY0IDY0IDAgMTAtMTI4IDB6bTExOC0yMjRhNDggNDggMCAxMDk2IDAgNDggNDggMCAxMC05NiAwem0xNTggMjI4YTk2IDk2IDAgMTAxOTIgMCA5NiA5NiAwIDEwLTE5MiAwem0xNDgtMzE0YTU2IDU2IDAgMTAxMTIgMCA1NiA1NiAwIDEwLTExMiAweiIgLz48L3N2Zz4=) */const bR=F.forwardRef(vR),yR=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=F.useContext(Db),l=s("skeleton",t),[c,u,d]=dR(l),f=xp(l,`${l}-element`,{[`${l}-active`]:i},u,n,r,d),p=null!=a?a:F.createElement(bR,null);return c(F.createElement("div",{className:f},F.createElement("div",{className:xp(`${l}-image`,n),style:o},p)))},xR=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},wR=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=Yh(Array(o)).map(((t,n)=>F.createElement("li",{key:n,style:{width:xR(n,e)}})));return F.createElement("ul",{className:xp(t,n),style:r},i)},SR=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return F.createElement("h3",{className:xp(t,n),style:Object.assign({width:r},o)})};function CR(e){return e&&"object"==typeof e?e:{}}const ER=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:p,skeleton:h}=F.useContext(Db),m=f("skeleton",t),[g,v,b]=dR(m);if(n||!("loading"in e)){const e=!!s,t=!!l,n=!!c;let a,f;if(e){const e=Object.assign(Object.assign({prefixCls:`${m}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),CR(s));a=F.createElement("div",{className:`${m}-header`},F.createElement(Zj,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${m}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),CR(l));r=F.createElement(SR,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),CR(c));o=F.createElement(wR,Object.assign({},n))}f=F.createElement("div",{className:`${m}-content`},r,o)}const y=xp(m,{[`${m}-with-avatar`]:e,[`${m}-active`]:u,[`${m}-rtl`]:"rtl"===p,[`${m}-round`]:d},null==h?void 0:h.className,r,o,v,b);return g(F.createElement("div",{className:y,style:Object.assign(Object.assign({},null==h?void 0:h.style),i)},a,f))}return null!=a?a:null};ER.Button=pR,ER.Avatar=fR,ER.Input=mR,ER.Image=hR,ER.Node=yR;const kR=ER;const OR={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var $R=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:OR}))}; +/**![plus](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ4MiAxNTJoNjBxOCAwIDggOHY3MDRxMCA4LTggOGgtNjBxLTggMC04LThWMTYwcTAtOCA4LTh6IiAvPjxwYXRoIGQ9Ik0xOTIgNDc0aDY3MnE4IDAgOCA4djYwcTAgOC04IDhIMTYwcS04IDAtOC04di02MHEwLTggOC04eiIgLz48L3N2Zz4=) */const PR=F.forwardRef($R),TR=F.createContext(null);var MR={width:0,height:0,left:0,top:0};function IR(e,t){var n=F.useRef(e),r=im(F.useState({}),2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var jR=Math.pow(.995,20);function RR(e){var t=im(F.useState(0),2),n=t[0],r=t[1],o=F.useRef(0),i=F.useRef();return i.current=e,Zm((function(){var e;null===(e=i.current)||void 0===e||e.call(i)}),[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var NR={width:0,height:0,left:0,top:0,right:0};function AR(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function LR(e){return String(e).replace(/"/g,"TABS_DQ")}function _R(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var DR=F.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?F.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null})),BR=F.forwardRef((function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==Kp(i)||F.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?F.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null})),FR=F.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.moreIcon,l=void 0===s?"More":s,c=e.moreTransitionName,u=e.style,d=e.className,f=e.editable,p=e.tabBarGutter,h=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,b=e.popupClassName,y=im(F.useState(!1),2),x=y[0],w=y[1],S=im(F.useState(null),2),C=S[0],E=S[1],k="".concat(r,"-more-popup"),O="".concat(n,"-dropdown"),$=null!==C?"".concat(k,"-").concat(C):null,P=null==i?void 0:i.dropdownAriaLabel;var T=F.createElement(dI,{onClick:function(e){var t=e.key,n=e.domEvent;g(t,n),w(!1)},prefixCls:"".concat(O,"-menu"),id:k,tabIndex:-1,role:"listbox","aria-activedescendant":$,selectedKeys:[C],"aria-label":void 0!==P?P:"expanded dropdown"},o.map((function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,i=e.key,a=e.label,s=_R(t,o,f,n);return F.createElement(DM,{key:i,id:"".concat(k,"-").concat(i),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(i),disabled:n},F.createElement("span",null,a),s&&F.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(O,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:t,event:e})}(e,i)}},o||f.removeIcon||"×"))})));function M(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===C}))||0,r=t.length,i=0;it?"left":"right"})})),N=im(R,2),A=N[0],L=N[1],_=IR(0,(function(e,t){!j&&x&&x({direction:e>t?"top":"bottom"})})),D=im(_,2),B=D[0],H=D[1],V=im(F.useState([0,0]),2),U=V[0],W=V[1],q=im(F.useState([0,0]),2),G=q[0],K=q[1],X=im(F.useState([0,0]),2),Y=X[0],Z=X[1],Q=im(F.useState([0,0]),2),J=Q[0],ee=Q[1],te=(n=new Map,r=F.useRef([]),o=im(F.useState({}),2)[1],i=F.useRef("function"==typeof n?n():n),a=RR((function(){var e=i.current;r.current.forEach((function(t){e=t(e)})),r.current=[],i.current=e,o({})})),[i.current,function(e){r.current.push(e),a()}]),ne=im(te,2),re=ne[0],oe=ne[1],ie=function(e,t,n){return F.useMemo((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||MR,i=o.left+o.width,a=0;ahe?he:e}j&&f?(pe=0,he=Math.max(0,se-de)):(pe=Math.min(0,de-se),he=0);var ge=F.useRef(null),ve=im(F.useState(),2),be=ve[0],ye=ve[1];function xe(){ye(Date.now())}function we(){ge.current&&clearTimeout(ge.current)}!function(e,t){var n=im(F.useState(),2),r=n[0],o=n[1],i=im(F.useState(0),2),a=i[0],s=i[1],l=im(F.useState(0),2),c=l[0],u=l[1],d=im(F.useState(),2),f=d[0],p=d[1],h=F.useRef(),m=F.useRef(),g=F.useRef(null);g.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(r){e.preventDefault();var n=e.touches[0],i=n.screenX,l=n.screenY;o({x:i,y:l});var c=i-r.x,d=l-r.y;t(c,d);var f=Date.now();s(f),u(f-a),p({x:c,y:d})}},onTouchEnd:function(){if(r&&(o(null),p(null),f)){var e=f.x/c,n=f.y/c,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<.1)return;var s=e,l=n;h.current=window.setInterval((function(){Math.abs(s)<.01&&Math.abs(l)<.01?window.clearInterval(h.current):t(20*(s*=jR),20*(l*=jR))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===m.current?n:r:i>a?(o=n,m.current="x"):(o=r,m.current="y"),t(-o,-o)&&e.preventDefault()}},F.useEffect((function(){function t(e){g.current.onTouchMove(e)}function n(e){g.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){g.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){g.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(P,(function(e,t){function n(e,t){e((function(e){return me(e+t)}))}return!!ue&&(j?n(L,e):n(H,t),we(),xe(),!0)})),F.useEffect((function(){return we(),be&&(ge.current=setTimeout((function(){ye(0)}),100)),we}),[be]);var Se=function(e,t,n,r,o,i,a){var s,l,c,u=a.tabs,d=a.tabPosition,f=a.rtl;return["top","bottom"].includes(d)?(s="width",l=f?"right":"left",c=Math.abs(n)):(s="height",l="top",c=-n),F.useMemo((function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;oc+t){r=o-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||NR)[l]=r?[0,0]:[a,r]}),[e,t,r,o,i,c,d,u.map((function(e){return e.key})).join("_"),f])}(ie,de,j?A:B,se,le,ce,Qp(Qp({},e),{},{tabs:E})),Ce=im(Se,2),Ee=Ce[0],ke=Ce[1],Oe=py((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=ie.get(e)||{width:0,height:0,left:0,right:0,top:0};if(j){var n=A;f?t.rightA+de&&(n=t.right+t.width-de):t.left<-A?n=-t.left:t.left+t.width>-A+de&&(n=-(t.left+t.width-de)),H(0),L(me(n))}else{var r=B;t.top<-B?r=-t.top:t.top+t.height>-B+de&&(r=-(t.top+t.height-de)),L(0),H(me(r))}})),$e={};"top"===g||"bottom"===g?$e[f?"marginRight":"marginLeft"]=v:$e.marginTop=v;var Pe=E.map((function(e,t){var n=e.key;return F.createElement(HR,{id:c,prefixCls:C,key:n,tab:e,style:0===t?void 0:$e,closable:e.closable,editable:h,active:n===d,renderWrapper:b,removeAriaLabel:null==m?void 0:m.removeAriaLabel,onClick:function(e){y(n,e)},onFocus:function(){Oe(n),xe(),P.current&&(f||(P.current.scrollLeft=0),P.current.scrollTop=0)}})})),Te=function(){return oe((function(){var e,t=new Map,n=null===(e=T.current)||void 0===e?void 0:e.getBoundingClientRect();return E.forEach((function(e){var r,o=e.key,i=null===(r=T.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(LR(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),s=a.width,l=a.height,c=a.x,u=a.y;return Math.abs(s-n)<1?[s,l,c-t.x,u-t.y]:[n,r,i,o]}(i,n),s=im(a,4),l=s[0],c=s[1],u=s[2],d=s[3];t.set(o,{width:l,height:c,left:u,top:d})}})),t}))};F.useEffect((function(){Te()}),[E.map((function(e){return e.key})).join("_")]);var Me=RR((function(){var e=VR(k),t=VR(O),n=VR($);W([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=VR(I);Z(r);var o=VR(M);ee(o);var i=VR(T);K([i[0]-r[0],i[1]-r[1]]),Te()})),Ie=E.slice(0,Ee),je=E.slice(ke+1),Re=[].concat(Yh(Ie),Yh(je)),Ne=ie.get(d),Ae=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicator,i=void 0===o?{}:o,a=i.size,s=i.align,l=void 0===s?"center":s,c=im(F.useState(),2),u=c[0],d=c[1],f=F.useRef(),p=z.useCallback((function(e){return"function"==typeof a?a(e):"number"==typeof a?a:e}),[a]);function h(){nm.cancel(f.current)}return F.useEffect((function(){var e={};if(t)if(n){e.width=p(t.width);var o=r?"right":"left";"start"===l&&(e[o]=t[o]),"center"===l&&(e[o]=t[o]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===l&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=p(t.height),"start"===l&&(e.top=t.top),"center"===l&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===l&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),f.current=nm((function(){d(e)})),h}),[t,n,r,l,p]),{style:u}}({activeTabOffset:Ne,horizontal:j,indicator:w,rtl:f}),Le=Ae.style;F.useEffect((function(){Oe()}),[d,pe,he,AR(Ne),AR(ie),j]),F.useEffect((function(){Me()}),[f]);var _e,De,Be,Fe,ze=!!Re.length,He="".concat(C,"-nav-wrap");return j?f?(De=A>0,_e=A!==he):(_e=A<0,De=A!==pe):(Be=B<0,Fe=B!==pe),F.createElement(Wh,{onResize:Me},F.createElement("div",{ref:oh(t,k),role:"tablist",className:xp("".concat(C,"-nav"),s),style:l,onKeyDown:function(){xe()}},F.createElement(BR,{ref:O,position:"left",extra:p,prefixCls:C}),F.createElement(Wh,{onResize:Me},F.createElement("div",{className:xp(He,Yp(Yp(Yp(Yp({},"".concat(He,"-ping-left"),_e),"".concat(He,"-ping-right"),De),"".concat(He,"-ping-top"),Be),"".concat(He,"-ping-bottom"),Fe)),ref:P},F.createElement(Wh,{onResize:Me},F.createElement("div",{ref:T,className:"".concat(C,"-nav-list"),style:{transform:"translate(".concat(A,"px, ").concat(B,"px)"),transition:be?"none":void 0}},Pe,F.createElement(DR,{ref:I,prefixCls:C,locale:m,editable:h,style:Qp(Qp({},0===Pe.length?void 0:$e),{},{visibility:ze?"hidden":null})}),F.createElement("div",{className:xp("".concat(C,"-ink-bar"),Yp({},"".concat(C,"-ink-bar-animated"),u.inkBar)),style:Le}))))),F.createElement(zR,wp({},e,{removeAriaLabel:null==m?void 0:m.removeAriaLabel,ref:M,prefixCls:C,tabs:Re,className:!ze&&fe,tabMoving:!!be})),F.createElement(BR,{ref:$,position:"right",extra:p,prefixCls:C})))})),qR=F.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return F.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:xp(n,a&&"".concat(n,"-active"),r),ref:t},l)})),GR=["renderTabBar"],KR=["label","key"],XR=function(e){var t=e.renderTabBar,n=wm(e,GR),r=F.useContext(TR).tabs;return t?t(Qp(Qp({},n),{},{panes:r.map((function(e){var t=e.label,n=e.key,r=wm(e,KR);return F.createElement(qR,wp({tab:t,key:n,tabKey:n},r))}))}),WR):F.createElement(WR,n)},YR=["key","forceRender","style","className","destroyInactiveTabPane"],ZR=function(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=F.useContext(TR),s=a.prefixCls,l=a.tabs,c=r.tabPane,u="".concat(s,"-tabpane");return F.createElement("div",{className:xp("".concat(s,"-content-holder"))},F.createElement("div",{className:xp("".concat(s,"-content"),"".concat(s,"-content-").concat(o),Yp({},"".concat(s,"-content-animated"),c))},l.map((function(e){var o=e.key,a=e.forceRender,s=e.style,l=e.className,d=e.destroyInactiveTabPane,f=wm(e,YR),p=o===n;return F.createElement(Ex,wp({key:o,visible:p,forceRender:a,removeOnLeave:!(!i&&!d),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),(function(e,n){var r=e.style,i=e.className;return F.createElement(qR,wp({},f,{prefixCls:u,id:t,tabKey:o,animated:c,active:p,style:Qp(Qp({},s),r),className:xp(l,i),ref:n}))}))}))))};var QR=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],JR=0,eN=F.forwardRef((function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-tabs":r,i=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,p=void 0===f?"top":f,h=e.tabBarGutter,m=e.tabBarStyle,g=e.tabBarExtraContent,v=e.locale,b=e.moreIcon,y=e.moreTransitionName,x=e.destroyInactiveTabPane,w=e.renderTabBar,S=e.onChange,C=e.onTabClick,E=e.onTabScroll,k=e.getPopupContainer,O=e.popupClassName,$=e.indicator,P=wm(e,QR),T=F.useMemo((function(){return(a||[]).filter((function(e){return e&&"object"===Kp(e)&&"key"in e}))}),[a]),M="rtl"===s,I=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:Qp({inkBar:!0},"object"===Kp(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(d),j=im(F.useState(!1),2),R=j[0],N=j[1];F.useEffect((function(){N(K$())}),[]);var A=im(gy((function(){var e;return null===(e=T[0])||void 0===e?void 0:e.key}),{value:l,defaultValue:c}),2),L=A[0],_=A[1],D=F.useState((function(){return T.findIndex((function(e){return e.key===L}))})),B=im(D,2),z=B[0],H=B[1];F.useEffect((function(){var e,t=T.findIndex((function(e){return e.key===L}));-1===t&&(t=Math.max(0,Math.min(z,T.length-1)),_(null===(e=T[t])||void 0===e?void 0:e.key));H(t)}),[T.map((function(e){return e.key})).join("_"),L,z]);var V=im(gy(null,{value:n}),2),U=V[0],W=V[1];F.useEffect((function(){n||(W("rc-tabs-".concat(JR)),JR+=1)}),[]);var q={id:U,activeKey:L,animated:I,tabPosition:p,rtl:M,mobile:R},G=Qp(Qp({},q),{},{editable:u,locale:v,moreIcon:b,moreTransitionName:y,tabBarGutter:h,onTabClick:function(e,t){null==C||C(e,t);var n=e!==L;_(e),n&&(null==S||S(e))},onTabScroll:E,extra:g,style:m,panes:null,getPopupContainer:k,popupClassName:O,indicator:$});return F.createElement(TR.Provider,{value:{tabs:T,prefixCls:o}},F.createElement("div",wp({ref:t,id:n,className:xp(o,"".concat(o,"-").concat(p),Yp(Yp(Yp({},"".concat(o,"-mobile"),R),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),M),i)},P),F.createElement(XR,wp({},G,{renderTabBar:w})),F.createElement(ZR,wp({destroyInactiveTabPane:x},q,{animated:I}))))}));const tN={motionAppear:!1,motionEnter:!0,motionLeave:!0};var nN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[AO(e,"slide-up"),AO(e,"slide-down")]]},oN=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Um(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Um(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Um(e.borderRadiusLG)} ${Um(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Um(e.borderRadiusLG)} ${Um(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Um(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Um(e.borderRadiusLG)} 0 0 ${Um(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Um(e.borderRadiusLG)} ${Um(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},iN=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},by(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Um(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},vy),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Um(e.paddingXXS)} ${Um(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},aN=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Um(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Um(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},sN=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Um(e.borderRadius)} ${Um(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Um(e.borderRadius)} ${Um(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Um(e.borderRadius)} ${Um(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Um(e.borderRadius)} 0 0 ${Um(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},lN=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Ey(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},cN=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Um(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Um(e.marginXS)},marginLeft:{_skip_check_:!0,value:Um(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},uN=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},by(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${Um(e.paddingXS)}`,background:"transparent",border:`${Um(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Um(e.borderRadiusLG)} ${Um(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Ey(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),lN(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},dN=Ly("Tabs",(e=>{const t=$y(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Um(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Um(e.horizontalItemGutter)}`});return[sN(t),cN(t),aN(t),iN(t),oN(t),uN(t),rN(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}})),fN=()=>null;var pN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,s,l;const{type:c,className:u,rootClassName:d,size:f,onEdit:p,hideAdd:h,centered:m,addIcon:g,removeIcon:v,moreIcon:b,popupClassName:y,children:x,items:w,animated:S,style:C,indicatorSize:E,indicator:k}=e,O=pN(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:$}=O,{direction:P,tabs:T,getPrefixCls:M,getPopupContainer:I}=F.useContext(Db),j=M("tabs",$),R=Rw(j),[N,A,L]=dN(j,R);let _;"editable-card"===c&&(_={onEdit:(e,t)=>{let{key:n,event:r}=t;null==p||p("add"===e?r:n,e)},removeIcon:null!==(t=null!=v?v:null==T?void 0:T.removeIcon)&&void 0!==t?t:F.createElement(bw,null),addIcon:(null!=g?g:null==T?void 0:T.addIcon)||F.createElement(PR,null),showAdd:!0!==h});const D=M(),B=GS(f),z=function(e,t){if(e)return e;const n=zp(t).map((e=>{if(F.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=nN(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null}));return function(e){return e.filter((e=>e))}(n)}(w,x),H=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},tN),{motionName:LS(e,"switch")})),t}(j,S),V=Object.assign(Object.assign({},null==T?void 0:T.style),C),U={align:null!==(n=null==k?void 0:k.align)&&void 0!==n?n:null===(r=null==T?void 0:T.indicator)||void 0===r?void 0:r.align,size:null!==(s=null!==(i=null!==(o=null==k?void 0:k.size)&&void 0!==o?o:E)&&void 0!==i?i:null===(a=null==T?void 0:T.indicator)||void 0===a?void 0:a.size)&&void 0!==s?s:null==T?void 0:T.indicatorSize};return N(F.createElement(eN,Object.assign({direction:P,getPopupContainer:I,moreTransitionName:`${D}-slide-up`},O,{items:z,className:xp({[`${j}-${B}`]:B,[`${j}-card`]:["card","editable-card"].includes(c),[`${j}-editable-card`]:"editable-card"===c,[`${j}-centered`]:m},null==T?void 0:T.className,u,d,A,L,R),popupClassName:xp(y,A,L,R),style:V,editable:_,moreIcon:null!==(l=null!=b?b:null==T?void 0:T.moreIcon)&&void 0!==l?l:F.createElement(PI,null),prefixCls:j,animated:H,indicator:U})))};hN.TabPane=fN;const mN=hN;var gN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=gN(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=F.useContext(Db),a=i("card",t),s=xp(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return F.createElement("div",Object.assign({},o,{className:s}))},bN=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Um(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Um(e.borderRadiusLG)} ${Um(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},vy),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},yN=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${Um(o)} 0 0 0 ${n},\n 0 ${Um(o)} 0 0 ${n},\n ${Um(o)} ${Um(o)} 0 0 ${n},\n ${Um(o)} 0 0 0 ${n} inset,\n 0 ${Um(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},xN=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Um(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Um(e.borderRadiusLG)} ${Um(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Um(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:Um(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Um(e.lineWidth)} ${e.lineType} ${i}`}}})},wN=e=>Object.assign(Object.assign({margin:`${Um(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},vy),"&-description":{color:e.colorTextDescription}}),SN=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${Um(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Um(e.padding)} ${Um(n)}`}}},CN=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},EN=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:s,extraColor:l}=e;return{[n]:Object.assign(Object.assign({},by(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:bN(e),[`${n}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:s,borderRadius:`0 0 ${Um(e.borderRadiusLG)} ${Um(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${n}-grid`]:yN(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${Um(e.borderRadiusLG)} ${Um(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:xN(e),[`${n}-meta`]:wN(e)}),[`${n}-bordered`]:{border:`${Um(e.lineWidth)} ${e.lineType} ${i}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${Um(e.borderRadiusLG)} ${Um(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:SN(e),[`${n}-loading`]:CN(e),[`${n}-rtl`]:{direction:"rtl"}}},kN=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${Um(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ON=Ly("Card",(e=>{const t=$y(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[EN(t),kN(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var $N=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return F.createElement("ul",{className:t,style:r},n.map(((e,t)=>{const r=`action-${t}`;return F.createElement("li",{style:{width:100/n.length+"%"},key:r},F.createElement("span",null,e))})))},TN=F.forwardRef(((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:d=!0,size:f,type:p,cover:h,actions:m,tabList:g,children:v,activeTabKey:b,defaultActiveTabKey:y,tabBarExtraContent:x,hoverable:w,tabProps:S={},classNames:C,styles:E}=e,k=$N(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:O,direction:$,card:P}=F.useContext(Db),T=e=>{var t;return xp(null===(t=null==P?void 0:P.classNames)||void 0===t?void 0:t[e],null==C?void 0:C[e])},M=e=>{var t;return Object.assign(Object.assign({},null===(t=null==P?void 0:P.styles)||void 0===t?void 0:t[e]),null==E?void 0:E[e])},I=F.useMemo((()=>{let e=!1;return F.Children.forEach(v,(t=>{t&&t.type&&t.type===vN&&(e=!0)})),e}),[v]),j=O("card",n),[R,N,A]=ON(j),L=F.createElement(kR,{loading:!0,active:!0,paragraph:{rows:4},title:!1},v),_=void 0!==b,D=Object.assign(Object.assign({},S),{[_?"activeKey":"defaultActiveKey"]:_?b:y,tabBarExtraContent:x});let B;const z=GS(f),H=z&&"default"!==z?z:"large",V=g?F.createElement(mN,Object.assign({size:H},D,{className:`${j}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:g.map((e=>{var{tab:t}=e,n=$N(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(c||a||V){const e=xp(`${j}-head`,T("header")),t=xp(`${j}-head-title`,T("title")),n=xp(`${j}-extra`,T("extra")),r=Object.assign(Object.assign({},s),M("header"));B=F.createElement("div",{className:e,style:r},F.createElement("div",{className:`${j}-head-wrapper`},c&&F.createElement("div",{className:t,style:M("title")},c),a&&F.createElement("div",{className:n,style:M("extra")},a)),V)}const U=xp(`${j}-cover`,T("cover")),W=h?F.createElement("div",{className:U,style:M("cover")},h):null,q=xp(`${j}-body`,T("body")),G=Object.assign(Object.assign({},l),M("body")),K=F.createElement("div",{className:q,style:G},u?L:v),X=xp(`${j}-actions`,T("actions")),Y=m&&m.length?F.createElement(PN,{actionClasses:X,actionStyle:M("actions"),actions:m}):null,Z=qh(k,["onTabChange"]),Q=xp(j,null==P?void 0:P.className,{[`${j}-loading`]:u,[`${j}-bordered`]:d,[`${j}-hoverable`]:w,[`${j}-contain-grid`]:I,[`${j}-contain-tabs`]:g&&g.length,[`${j}-${z}`]:z,[`${j}-type-${p}`]:!!p,[`${j}-rtl`]:"rtl"===$},r,o,N,A),J=Object.assign(Object.assign({},null==P?void 0:P.style),i);return R(F.createElement("div",Object.assign({ref:t},Z,{className:Q,style:J}),B,W,K,Y))})),MN=TN;var IN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=IN(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=F.useContext(Db),l=s("card",t),c=xp(`${l}-meta`,n),u=r?F.createElement("div",{className:`${l}-meta-avatar`},r):null,d=o?F.createElement("div",{className:`${l}-meta-title`},o):null,f=i?F.createElement("div",{className:`${l}-meta-description`},i):null,p=d||f?F.createElement("div",{className:`${l}-meta-detail`},d,f):null;return F.createElement("div",Object.assign({},a,{className:c}),u,p)},RN=MN;RN.Grid=vN,RN.Meta=jN;const NN=RN;function AN(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,s=o.noLeading,l=void 0!==s&&s,c=o.debounceMode,u=void 0===c?void 0:c,d=!1,f=0;function p(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,o=new Array(n),i=0;ie?l?(f=Date.now(),a||(r=setTimeout(u?m:h,e))):h():!0!==a&&(r=setTimeout(u?m:h,void 0===u?e-c:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const LN={useBreakpoint:function(){return oT()}},_N=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},by(e)),{borderBlockStart:`${Um(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Um(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Um(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Um(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Um(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Um(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},DN=Ly("Divider",(e=>{const t=$y(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[_N(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}});var BN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=F.useContext(Db),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,plain:f,style:p}=e,h=BN(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),m=t("divider",o),[g,v,b]=DN(m),y=a.length>0?`-${a}`:a,x=!!u,w="left"===a&&null!=s,S="right"===a&&null!=s,C=xp(m,null==r?void 0:r.className,v,b,`${m}-${i}`,{[`${m}-with-text`]:x,[`${m}-with-text${y}`]:x,[`${m}-dashed`]:!!d,[`${m}-plain`]:!!f,[`${m}-rtl`]:"rtl"===n,[`${m}-no-default-orientation-margin-left`]:w,[`${m}-no-default-orientation-margin-right`]:S},l,c),E=F.useMemo((()=>"number"==typeof s?s:/^\d+$/.test(s)?Number(s):s),[s]),k=Object.assign(Object.assign({},w&&{marginLeft:E}),S&&{marginRight:E});return g(F.createElement("div",Object.assign({className:C,style:Object.assign(Object.assign({},null==r?void 0:r.style),p)},h,{role:"separator"}),u&&"vertical"!==i&&F.createElement("span",{className:`${m}-inner-text`,style:k},u)))};function zN(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),o}function HN(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=zN(t,e,r)):n(o=zN(t,e,""))}}function VN(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var UN=function(e){var t,n,r=e.inputElement,o=e.children,i=e.prefixCls,a=e.prefix,s=e.suffix,l=e.addonBefore,c=e.addonAfter,u=e.className,d=e.style,f=e.disabled,p=e.readOnly,h=e.focused,m=e.triggerFocus,g=e.allowClear,v=e.value,b=e.handleReset,y=e.hidden,x=e.classes,w=e.classNames,S=e.dataAttrs,C=e.styles,E=e.components,k=null!=o?o:r,O=(null==E?void 0:E.affixWrapper)||"span",$=(null==E?void 0:E.groupWrapper)||"span",P=(null==E?void 0:E.wrapper)||"span",T=(null==E?void 0:E.groupAddon)||"span",M=F.useRef(null),I=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),j=F.cloneElement(k,{value:v,className:xp(k.props.className,!I&&(null==w?void 0:w.variant))||null});if(I){var R,N=null;if(g){var A,L=!f&&!p&&v,_="".concat(i,"-clear-icon"),D="object"===Kp(g)&&null!=g&&g.clearIcon?g.clearIcon:"✖";N=z.createElement("span",{onClick:b,onMouseDown:function(e){return e.preventDefault()},className:xp(_,(A={},Yp(A,"".concat(_,"-hidden"),!L),Yp(A,"".concat(_,"-has-suffix"),!!s),A)),role:"button",tabIndex:-1},D)}var B="".concat(i,"-affix-wrapper"),H=xp(B,(Yp(R={},"".concat(i,"-disabled"),f),Yp(R,"".concat(B,"-disabled"),f),Yp(R,"".concat(B,"-focused"),h),Yp(R,"".concat(B,"-readonly"),p),Yp(R,"".concat(B,"-input-with-clear-btn"),s&&g&&v),R),null==x?void 0:x.affixWrapper,null==w?void 0:w.affixWrapper,null==w?void 0:w.variant),V=(s||g)&&z.createElement("span",{className:xp("".concat(i,"-suffix"),null==w?void 0:w.suffix),style:null==C?void 0:C.suffix},N,s);j=z.createElement(O,wp({className:H,style:null==C?void 0:C.affixWrapper,onClick:function(e){var t;null!==(t=M.current)&&void 0!==t&&t.contains(e.target)&&(null==m||m())}},null==S?void 0:S.affixWrapper,{ref:M}),a&&z.createElement("span",{className:xp("".concat(i,"-prefix"),null==w?void 0:w.prefix),style:null==C?void 0:C.prefix},a),j,V)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var U="".concat(i,"-group"),W="".concat(U,"-addon"),q="".concat(U,"-wrapper"),G=xp("".concat(i,"-wrapper"),U,null==x?void 0:x.wrapper,null==w?void 0:w.wrapper),K=xp(q,Yp({},"".concat(q,"-disabled"),f),null==x?void 0:x.group,null==w?void 0:w.groupWrapper);j=z.createElement($,{className:K},z.createElement(P,{className:G},l&&z.createElement(T,{className:W},l),j,c&&z.createElement(T,{className:W},c)))}return z.cloneElement(j,{className:xp(null===(t=j.props)||void 0===t?void 0:t.className,u)||null,style:Qp(Qp({},null===(n=j.props)||void 0===n?void 0:n.style),d),hidden:y})},WN=["show"];function qN(e,t){return F.useMemo((function(){var n={};t&&(n.show="object"===Kp(t)&&t.formatter?t.formatter:!!t);var r=n=Qp(Qp({},n),e),o=r.show,i=wm(r,WN);return Qp(Qp({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})}),[e,t])}var GN=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],KN=F.forwardRef((function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=void 0===l?"rc-input":l,u=e.disabled,d=e.htmlSize,f=e.className,p=e.maxLength,h=e.suffix,m=e.showCount,g=e.count,v=e.type,b=void 0===v?"text":v,y=e.classes,x=e.classNames,w=e.styles,S=e.onCompositionStart,C=e.onCompositionEnd,E=wm(e,GN),k=im(F.useState(!1),2),O=k[0],$=k[1],P=F.useRef(!1),T=F.useRef(null),M=function(e){T.current&&VN(T.current,e)},I=im(gy(e.defaultValue,{value:e.value}),2),j=I[0],R=I[1],N=null==j?"":String(j),A=im(F.useState(null),2),L=A[0],_=A[1],D=qN(g,m),B=D.max||p,H=D.strategy(N),V=!!B&&H>B;F.useImperativeHandle(t,(function(){return{focus:M,blur:function(){var e;null===(e=T.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=T.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=T.current)||void 0===e||e.select()},input:T.current}})),F.useEffect((function(){$((function(e){return(!e||!u)&&e}))}),[u]);var U=function(e,t,n){var o,i,a=t;if(!P.current&&D.exceedFormatter&&D.max&&D.strategy(t)>D.max)t!==(a=D.exceedFormatter(t,{max:D.max}))&&_([(null===(o=T.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=T.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;R(a),T.current&&HN(T.current,e,r,a)};F.useEffect((function(){var e;L&&(null===(e=T.current)||void 0===e||e.setSelectionRange.apply(e,Yh(L)))}),[L]);var W,q=function(e){U(e,e.target.value,{source:"change"})},G=function(e){P.current=!1,U(e,e.currentTarget.value,{source:"compositionEnd"}),null==C||C(e)},K=function(e){a&&"Enter"===e.key&&a(e),null==s||s(e)},X=function(e){$(!0),null==o||o(e)},Y=function(e){$(!1),null==i||i(e)},Z=V&&"".concat(c,"-out-of-range");return z.createElement(UN,wp({},E,{prefixCls:c,className:xp(f,Z),handleReset:function(e){R(""),M(),T.current&&HN(T.current,e,r)},value:N,focused:O,triggerFocus:M,suffix:function(){var e=Number(B)>0;if(h||D.show){var t=D.showFormatter?D.showFormatter({value:N,count:H,maxLength:B}):"".concat(H).concat(e?" / ".concat(B):"");return z.createElement(z.Fragment,null,D.show&&z.createElement("span",{className:xp("".concat(c,"-show-count-suffix"),Yp({},"".concat(c,"-show-count-has-suffix"),!!h),null==x?void 0:x.count),style:Qp({},null==w?void 0:w.count)},t),h)}return null}(),disabled:u,classes:y,classNames:x,styles:w}),(W=qh(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),z.createElement("input",wp({autoComplete:n},W,{onChange:q,onFocus:X,onBlur:Y,onKeyDown:K,className:xp(c,Yp({},"".concat(c,"-disabled"),u),null==x?void 0:x.input),style:null==w?void 0:w.input,ref:T,size:d,type:b,onCompositionStart:function(e){P.current=!0,null==S||S(e)},onCompositionEnd:G}))))}));const XN=e=>{const{getPrefixCls:t,direction:n}=F.useContext(Db),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=Yj(a),c=xp(i,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},l,o),u=F.useContext(tO),d=F.useMemo((()=>Object.assign(Object.assign({},u),{isFormItemInput:!1})),[u]);return s(F.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},F.createElement(tO.Provider,{value:d},e.children)))},YN=e=>{let t;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:z.createElement(mw,null)}),t};function ZN(e,t){const n=F.useRef([]),r=()=>{n.current.push(setTimeout((()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))})))};return F.useEffect((()=>(t&&r(),()=>n.current.forEach((e=>{e&&clearTimeout(e)})))),[]),r}var QN=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:p,className:h,style:m,styles:g,rootClassName:v,onChange:b,classNames:y,variant:x}=e,w=QN(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:C,input:E}=z.useContext(Db),k=S("input",r),O=F.useRef(null),$=Rw(k),[P,T,M]=Yj(k,$),{compactSize:I,compactItemClassnames:j}=eC(k,C),R=GS((e=>{var t;return null!==(t=null!=a?a:I)&&void 0!==t?t:e})),N=z.useContext(Vb),A=null!=s?s:N,{status:L,hasFeedback:_,feedbackIcon:D}=F.useContext(tO),B=AP(L,i),H=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!_;F.useRef(H);const V=ZN(O,!0),U=(_||u)&&z.createElement(z.Fragment,null,u,_&&D),W=YN(null!=d?d:null==E?void 0:E.allowClear),[q,G]=qP(x,o);return P(z.createElement(KN,Object.assign({ref:rh(t,O),prefixCls:k,autoComplete:null==E?void 0:E.autoComplete},w,{disabled:A,onBlur:e=>{V(),null==l||l(e)},onFocus:e=>{V(),null==c||c(e)},style:Object.assign(Object.assign({},null==E?void 0:E.style),m),styles:Object.assign(Object.assign({},null==E?void 0:E.styles),g),suffix:U,allowClear:W,className:xp(h,v,M,$,j,null==E?void 0:E.className),onChange:e=>{V(),null==b||b(e)},addonAfter:f&&z.createElement(tC,null,z.createElement(nO,{override:!0,status:!0},f)),addonBefore:p&&z.createElement(tC,null,z.createElement(nO,{override:!0,status:!0},p)),classNames:Object.assign(Object.assign(Object.assign({},y),null==E?void 0:E.classNames),{input:xp({[`${k}-sm`]:"small"===R,[`${k}-lg`]:"large"===R,[`${k}-rtl`]:"rtl"===C},null==y?void 0:y.input,null===(n=null==E?void 0:E.classNames)||void 0===n?void 0:n.input,T),variant:xp({[`${k}-${q}`]:G},NP(k,B)),affixWrapper:xp({[`${k}-affix-wrapper-sm`]:"small"===R,[`${k}-affix-wrapper-lg`]:"large"===R,[`${k}-affix-wrapper-rtl`]:"rtl"===C},T),wrapper:xp({[`${k}-group-rtl`]:"rtl"===C},T),groupWrapper:xp({[`${k}-group-wrapper-sm`]:"small"===R,[`${k}-group-wrapper-lg`]:"large"===R,[`${k}-group-wrapper-rtl`]:"rtl"===C,[`${k}-group-wrapper-${q}`]:G},NP(`${k}-group-wrapper`,B,_),T)})})))})),eA=JN,tA=e=>{const{componentCls:t,paddingXS:n}=e;return{[`${t}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},nA=Ly(["Input","OTP"],(e=>{const t=$y(e,Cj(e));return[tA(t)]}),Ej);var rA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{value:n,onChange:r,onActiveChange:o,index:i}=e,a=rA(e,["value","onChange","onActiveChange","index"]),s=F.useRef(null);F.useImperativeHandle(t,(()=>s.current));const l=()=>{nm((()=>{var e;const t=null===(e=s.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()}))};return F.createElement(eA,Object.assign({},a,{ref:s,value:n,onInput:e=>{r(i,e.target.value)},onFocus:l,onKeyDown:e=>{let{key:t}=e;"ArrowLeft"===t?o(i-1):"ArrowRight"===t&&o(i+1),l()},onKeyUp:e=>{"Backspace"!==e.key||n||o(i-1),l()},onMouseDown:l,onMouseUp:l}))})),iA=oA;var aA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,variant:c,disabled:u,status:d,autoFocus:f}=e,p=aA(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus"]),{getPrefixCls:h,direction:m}=F.useContext(Db),g=h("otp",n),v=Tw(p,{aria:!0,data:!0,attr:!0}),b=Rw(g),[y,x,w]=nA(g,b),S=GS((e=>null!=o?o:e)),C=F.useContext(tO),E=AP(C.status,d),k=F.useMemo((()=>Object.assign(Object.assign({},C),{status:E,hasFeedback:!1,feedbackIcon:null})),[C,E]),O=F.useRef(null),$=F.useRef({});F.useImperativeHandle(t,(()=>({focus:()=>{var e;null===(e=$.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;tl?l(e):e,[T,M]=F.useState(sA(P(i||"")));F.useEffect((()=>{void 0!==a&&M(sA(a))}),[a]);const I=py((e=>{M(e),s&&e.length===r&&e.every((e=>e))&&e.some(((e,t)=>T[t]!==e))&&s(e.join(""))})),j=py(((e,t)=>{let n=Yh(T);for(let r=0;r=0&&!n[r];r-=1)n.pop();const o=P(n.map((e=>e||" ")).join(""));return n=sA(o).map(((e,t)=>" "!==e||n[t]?e:n[t])),n})),R=(e,t)=>{var n;const o=j(e,t),i=Math.min(e+t.length,r-1);i!==e&&(null===(n=$.current[i])||void 0===n||n.focus()),I(o)},N=e=>{var t;null===(t=$.current[e])||void 0===t||t.focus()},A={variant:c,disabled:u,status:E};return y(F.createElement("div",Object.assign({},v,{ref:O,className:xp(g,{[`${g}-sm`]:"small"===S,[`${g}-lg`]:"large"===S,[`${g}-rtl`]:"rtl"===m},w,x)}),F.createElement(tO.Provider,{value:k},new Array(r).fill(0).map(((e,t)=>{const n=`otp-${t}`,r=T[t]||"";return F.createElement(iA,Object.assign({ref:e=>{$.current[t]=e},key:n,index:t,size:S,htmlSize:1,className:`${g}-input`,onChange:R,value:r,onActiveChange:N,autoFocus:0===t&&f},A))})))))})),cA=lA;const uA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var dA=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:uA}))}; +/**![eye-invisible](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yUTg4OS40NyAzNzUuMTEgODE2LjcgMzA1bC01MC44OCA1MC44OEM4MDcuMzEgMzk1LjUzIDg0My40NSA0NDcuNCA4NzQuNyA1MTIgNzkxLjUgNjg0LjIgNjczLjQgNzY2IDUxMiA3NjZxLTcyLjY3IDAtMTMzLjg3LTIyLjM4TDMyMyA3OTguNzVRNDA4IDgzOCA1MTIgODM4cTI4OC4zIDAgNDMwLjItMzAwLjNhNjAuMjkgNjAuMjkgMCAwMDAtNTEuNXptLTYzLjU3LTMyMC42NEw4MzYgMTIyLjg4YTggOCAwIDAwLTExLjMyIDBMNzE1LjMxIDIzMi4yUTYyNC44NiAxODYgNTEyIDE4NnEtMjg4LjMgMC00MzAuMiAzMDAuM2E2MC4zIDYwLjMgMCAwMDAgNTEuNXE1Ni42OSAxMTkuNCAxMzYuNSAxOTEuNDFMMTEyLjQ4IDgzNWE4IDggMCAwMDAgMTEuMzFMMTU1LjE3IDg4OWE4IDggMCAwMDExLjMxIDBsNzEyLjE1LTcxMi4xMmE4IDggMCAwMDAtMTEuMzJ6TTE0OS4zIDUxMkMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGM1NC41NCAwIDEwNC4xMyA5LjM2IDE0OS4xMiAyOC4zOWwtNzAuMyA3MC4zYTE3NiAxNzYgMCAwMC0yMzguMTMgMjM4LjEzbC04My40MiA4My40MkMyMjMuMSA2MzcuNDkgMTgzLjMgNTgyLjI4IDE0OS4zIDUxMnptMjQ2LjcgMGExMTIuMTEgMTEyLjExIDAgMDExNDYuMi0xMDYuNjlMNDAxLjMxIDU0Ni4yQTExMiAxMTIgMCAwMTM5NiA1MTJ6IiAvPjxwYXRoIGQ9Ik01MDggNjI0Yy0zLjQ2IDAtNi44Ny0uMTYtMTAuMjUtLjQ3bC01Mi44MiA1Mi44MmExNzYuMDkgMTc2LjA5IDAgMDAyMjcuNDItMjI3LjQybC01Mi44MiA1Mi44MmMuMzEgMy4zOC40NyA2Ljc5LjQ3IDEwLjI1YTExMS45NCAxMTEuOTQgMCAwMS0xMTIgMTEyeiIgLz48L3N2Zz4=) */const fA=F.forwardRef(dA);const pA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var hA=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:pA}))}; +/**![eye](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yQzg0Ny40IDI4Ni41IDcwNC4xIDE4NiA1MTIgMTg2Yy0xOTIuMiAwLTMzNS40IDEwMC41LTQzMC4yIDMwMC4zYTYwLjMgNjAuMyAwIDAwMCA1MS41QzE3Ni42IDczNy41IDMxOS45IDgzOCA1MTIgODM4YzE5Mi4yIDAgMzM1LjQtMTAwLjUgNDMwLjItMzAwLjMgNy43LTE2LjIgNy43LTM1IDAtNTEuNXpNNTEyIDc2NmMtMTYxLjMgMC0yNzkuNC04MS44LTM2Mi43LTI1NEMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGMxNjEuMyAwIDI3OS40IDgxLjggMzYyLjcgMjU0Qzc5MS41IDY4NC4yIDY3My40IDc2NiA1MTIgNzY2em0tNC00MzBjLTk3LjIgMC0xNzYgNzguOC0xNzYgMTc2czc4LjggMTc2IDE3NiAxNzYgMTc2LTc4LjggMTc2LTE3Ni03OC44LTE3Ni0xNzYtMTc2em0wIDI4OGMtNjEuOSAwLTExMi01MC4xLTExMi0xMTJzNTAuMS0xMTIgMTEyLTExMiAxMTIgNTAuMSAxMTIgMTEyLTUwLjEgMTEyLTExMiAxMTJ6IiAvPjwvc3ZnPg==) */const mA=F.forwardRef(hA);var gA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe?F.createElement(mA,null):F.createElement(fA,null),bA={click:"onClick",hover:"onMouseOver"},yA=F.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,r="object"==typeof n&&void 0!==n.visible,[o,i]=F.useState((()=>!!r&&n.visible)),a=F.useRef(null);F.useEffect((()=>{r&&i(n.visible)}),[r,n]);const s=ZN(a),l=()=>{const{disabled:t}=e;t||(o&&s(),i((e=>{var t;const r=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,r)),r})))},{className:c,prefixCls:u,inputPrefixCls:d,size:f}=e,p=gA(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:h}=F.useContext(Db),m=h("input",d),g=h("input-password",u),v=n&&(t=>{const{action:n="click",iconRender:r=vA}=e,i=bA[n]||"",a=r(o),s={[i]:l,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return F.cloneElement(F.isValidElement(a)?a:F.createElement("span",null,a),s)})(g),b=xp(g,c,{[`${g}-${f}`]:!!f}),y=Object.assign(Object.assign({},qh(p,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:b,prefixCls:m,suffix:v});return f&&(y.size=f),F.createElement(eA,Object.assign({ref:rh(t,a)},y))})),xA=yA;var wA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:h}=e,m=wA(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:g,direction:v}=F.useContext(Db),b=F.useRef(!1),y=g("input-search",n),x=g("input",r),{compactSize:w}=eC(y,v),S=GS((e=>{var t;return null!==(t=null!=i?i:w)&&void 0!==t?t:e})),C=F.useRef(null),E=e=>{var t;document.activeElement===(null===(t=C.current)||void 0===t?void 0:t.input)&&e.preventDefault()},k=e=>{var t,n;d&&d(null===(n=null===(t=C.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"==typeof s?F.createElement(QP,null):null,$=`${y}-button`;let P;const T=s||{},M=T.type&&!0===T.type.__ANT_BUTTON;P=M||"button"===T.type?jw(T,Object.assign({onMouseDown:E,onClick:e=>{var t,n;null===(n=null===(t=null==T?void 0:T.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),k(e)},key:"enterButton"},M?{className:$,size:S}:{})):F.createElement(eE,{className:$,type:s?"primary":void 0,size:S,disabled:u,key:"enterButton",onMouseDown:E,onClick:k,loading:c,icon:O},s),l&&(P=[P,jw(l,{key:"addonAfter"})]);const I=xp(y,{[`${y}-rtl`]:"rtl"===v,[`${y}-${S}`]:!!S,[`${y}-with-button`]:!!s},o);return F.createElement(eA,Object.assign({ref:rh(C,t),onPressEnter:e=>{b.current||c||k(e)}},m,{size:S,onCompositionStart:e=>{b.current=!0,null==p||p(e)},onCompositionEnd:e=>{b.current=!1,null==h||h(e)},prefixCls:x,addonAfter:P,suffix:a,onChange:e=>{e&&e.target&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),f&&f(e)},className:I,disabled:u}))})),CA=SA;var EA,kA=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],OA={};function $A(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;EA||((EA=document.createElement("textarea")).setAttribute("tab-index","-1"),EA.setAttribute("aria-hidden","true"),document.body.appendChild(EA)),e.getAttribute("wrap")?EA.setAttribute("wrap",e.getAttribute("wrap")):EA.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&OA[n])return OA[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=kA.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(OA[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;EA.setAttribute("style","".concat(l,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),EA.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=EA.scrollHeight;if("border-box"===s?f+=a:"content-box"===s&&(f-=i),null!==n||null!==r){EA.value=" ";var p=EA.scrollHeight-i;null!==n&&(u=p*n,"border-box"===s&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===s&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}var h={height:f,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var PA=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],TA=F.forwardRef((function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=wm(n,PA),p=im(gy(o,{value:i,postState:function(e){return null!=e?e:""}}),2),h=p[0],m=p[1],g=F.useRef();F.useImperativeHandle(t,(function(){return{textArea:g.current}}));var v=im(F.useMemo((function(){return a&&"object"===Kp(a)?[a.minRows,a.maxRows]:[]}),[a]),2),b=v[0],y=v[1],x=!!a,w=im(F.useState(2),2),S=w[0],C=w[1],E=im(F.useState(),2),k=E[0],O=E[1],$=function(){C(0)};Ym((function(){x&&$()}),[i,b,y,x]),Ym((function(){if(0===S)C(1);else if(1===S){var e=$A(g.current,!1,b,y);C(2),O(e)}else!function(){try{if(document.activeElement===g.current){var e=g.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;g.current.setSelectionRange(t,n),g.current.scrollTop=r}}catch(s7){}}()}),[S]);var P=F.useRef(),T=function(){nm.cancel(P.current)};F.useEffect((function(){return T}),[]);var M=x?k:null,I=Qp(Qp({},c),M);return 0!==S&&1!==S||(I.overflowY="hidden",I.overflowX="hidden"),F.createElement(Wh,{onResize:function(e){2===S&&(null==s||s(e),a&&(T(),P.current=nm((function(){$()}))))},disabled:!(a||s)},F.createElement("textarea",wp({},f,{ref:g,style:I,className:xp(r,l,Yp({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:function(e){m(e.target.value),null==d||d(e)}})))})),MA=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],IA=z.forwardRef((function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,s=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,p=e.suffix,h=e.prefixCls,m=void 0===h?"rc-textarea":h,g=e.showCount,v=e.count,b=e.className,y=e.style,x=e.disabled,w=e.hidden,S=e.classNames,C=e.styles,E=e.onResize,k=wm(e,MA),O=im(gy(o,{value:i,defaultValue:o}),2),$=O[0],P=O[1],T=null==$?"":String($),M=im(z.useState(!1),2),I=M[0],j=M[1],R=z.useRef(!1),N=im(z.useState(null),2),A=N[0],L=N[1],_=F.useRef(null),D=function(){var e;return null===(e=_.current)||void 0===e?void 0:e.textArea},B=function(){D().focus()};F.useImperativeHandle(t,(function(){return{resizableTextArea:_.current,focus:B,blur:function(){D().blur()}}})),F.useEffect((function(){j((function(e){return!x&&e}))}),[x]);var H=im(z.useState(null),2),V=H[0],U=H[1];z.useEffect((function(){var e;V&&(e=D()).setSelectionRange.apply(e,Yh(V))}),[V]);var W,q=qN(v,g),G=null!==(n=q.max)&&void 0!==n?n:u,K=Number(G)>0,X=q.strategy(T),Y=!!G&&X>G,Z=function(e,t){var n=t;!R.current&&q.exceedFormatter&&q.max&&q.strategy(t)>q.max&&t!==(n=q.exceedFormatter(t,{max:q.max}))&&U([D().selectionStart||0,D().selectionEnd||0]),P(n),HN(e.currentTarget,e,l,n)},Q=p;q.show&&(W=q.showFormatter?q.showFormatter({value:T,count:X,maxLength:G}):"".concat(X).concat(K?" / ".concat(G):""),Q=z.createElement(z.Fragment,null,Q,z.createElement("span",{className:xp("".concat(m,"-data-count"),null==S?void 0:S.count),style:null==C?void 0:C.count},W)));var J=!k.autoSize&&!g&&!c;return z.createElement(UN,{value:T,allowClear:c,handleReset:function(e){P(""),B(),HN(D(),e,l)},suffix:Q,prefixCls:m,classNames:Qp(Qp({},S),{},{affixWrapper:xp(null==S?void 0:S.affixWrapper,(r={},Yp(r,"".concat(m,"-show-count"),g),Yp(r,"".concat(m,"-textarea-allow-clear"),c),r))}),disabled:x,focused:I,className:xp(b,Y&&"".concat(m,"-out-of-range")),style:Qp(Qp({},y),A&&!J?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof W?W:void 0}},hidden:w},z.createElement(TA,wp({},k,{maxLength:u,onKeyDown:function(e){var t=k.onPressEnter,n=k.onKeyDown;"Enter"===e.key&&t&&t(e),null==n||n(e)},onChange:function(e){Z(e,e.target.value)},onFocus:function(e){j(!0),null==a||a(e)},onBlur:function(e){j(!1),null==s||s(e)},onCompositionStart:function(e){R.current=!0,null==d||d(e)},onCompositionEnd:function(e){R.current=!1,Z(e,e.currentTarget.value),null==f||f(e)},className:xp(null==S?void 0:S.textarea),style:Qp(Qp({},null==C?void 0:C.textarea),{},{resize:null==y?void 0:y.resize}),disabled:x,prefixCls:m,onResize:function(e){var t;null==E||E(e),null!==(t=D())&&void 0!==t&&t.style.height&&L(!0)},ref:_})))})),jA=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,style:p,styles:h,variant:m}=e,g=jA(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:v,direction:b,textArea:y}=F.useContext(Db),x=GS(a),w=F.useContext(Vb),S=null!=s?s:w,{status:C,hasFeedback:E,feedbackIcon:k}=F.useContext(tO),O=AP(C,l),$=F.useRef(null);F.useImperativeHandle(t,(()=>{var e;return{resizableTextArea:null===(e=$.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;!function(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(n=null===(t=$.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=$.current)||void 0===e?void 0:e.blur()}}}));const P=v("input",o),T=Rw(P),[M,I,j]=Yj(P,T),[R,N]=qP(m,i),A=YN(null!=c?c:null==y?void 0:y.allowClear);return M(F.createElement(IA,Object.assign({autoComplete:null==y?void 0:y.autoComplete},g,{style:Object.assign(Object.assign({},null==y?void 0:y.style),p),styles:Object.assign(Object.assign({},null==y?void 0:y.styles),h),disabled:S,allowClear:A,className:xp(j,T,f,d,null==y?void 0:y.className),classNames:Object.assign(Object.assign(Object.assign({},u),null==y?void 0:y.classNames),{textarea:xp({[`${P}-sm`]:"small"===x,[`${P}-lg`]:"large"===x},I,null==u?void 0:u.textarea,null===(n=null==y?void 0:y.classNames)||void 0===n?void 0:n.textarea),variant:xp({[`${P}-${R}`]:N},NP(P,O)),affixWrapper:xp(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:"rtl"===b,[`${P}-affix-wrapper-sm`]:"small"===x,[`${P}-affix-wrapper-lg`]:"large"===x,[`${P}-textarea-show-count`]:e.showCount||(null===(r=e.count)||void 0===r?void 0:r.show)},I)}),prefixCls:P,suffix:E&&F.createElement("span",{className:`${P}-textarea-suffix`},k),ref:$})))})),NA=RA,AA=eA;AA.Group=XN,AA.Search=CA,AA.TextArea=NA,AA.Password=xA,AA.OTP=cA;const LA=AA;var _A=F.createContext(null),DA=F.createContext({}),BA=["prefixCls","className","containerRef"],FA=function(e){var t=e.prefixCls,n=e.className,r=e.containerRef,o=wm(e,BA),i=oh(F.useContext(DA).panel,r);return F.createElement("div",wp({className:xp("".concat(t,"-content"),n),role:"dialog",ref:i},Tw(e,{aria:!0}),{"aria-modal":"true"},o))};function zA(e){return"string"==typeof e&&String(Number(e))===e?(qp(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var HA={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function VA(e,t){var n,r,o,i=e.prefixCls,a=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,d=e.autoFocus,f=e.keyboard,p=e.classNames,h=e.rootClassName,m=e.rootStyle,g=e.zIndex,v=e.className,b=e.id,y=e.style,x=e.motion,w=e.width,S=e.height,C=e.children,E=e.mask,k=e.maskClosable,O=e.maskMotion,$=e.maskClassName,P=e.maskStyle,T=e.afterOpenChange,M=e.onClose,I=e.onMouseEnter,j=e.onMouseOver,R=e.onMouseLeave,N=e.onClick,A=e.onKeyDown,L=e.onKeyUp,_=e.styles,D=F.useRef(),B=F.useRef(),z=F.useRef();F.useImperativeHandle(t,(function(){return D.current}));F.useEffect((function(){var e;a&&d&&(null===(e=D.current)||void 0===e||e.focus({preventScroll:!0}))}),[a]);var H=im(F.useState(!1),2),V=H[0],U=H[1],W=F.useContext(_A),q=null!==(n=null!==(r=null===(o="boolean"==typeof c?c?{}:{distance:0}:c||{})||void 0===o?void 0:o.distance)&&void 0!==r?r:null==W?void 0:W.pushDistance)&&void 0!==n?n:180,G=F.useMemo((function(){return{pushDistance:q,push:function(){U(!0)},pull:function(){U(!1)}}}),[q]);F.useEffect((function(){var e,t;a?null==W||null===(e=W.push)||void 0===e||e.call(W):null==W||null===(t=W.pull)||void 0===t||t.call(W)}),[a]),F.useEffect((function(){return function(){var e;null==W||null===(e=W.pull)||void 0===e||e.call(W)}}),[]);var K=E&&F.createElement(Ex,wp({key:"mask"},O,{visible:a}),(function(e,t){var n=e.className,r=e.style;return F.createElement("div",{className:xp("".concat(i,"-mask"),n,null==p?void 0:p.mask,$),style:Qp(Qp(Qp({},r),P),null==_?void 0:_.mask),onClick:k&&a?M:void 0,ref:t})})),X="function"==typeof x?x(s):x,Y={};if(V&&q)switch(s){case"top":Y.transform="translateY(".concat(q,"px)");break;case"bottom":Y.transform="translateY(".concat(-q,"px)");break;case"left":Y.transform="translateX(".concat(q,"px)");break;default:Y.transform="translateX(".concat(-q,"px)")}"left"===s||"right"===s?Y.width=zA(w):Y.height=zA(S);var Z={onMouseEnter:I,onMouseOver:j,onMouseLeave:R,onClick:N,onKeyDown:A,onKeyUp:L},Q=F.createElement(Ex,wp({key:"panel"},X,{visible:a,forceRender:u,onVisibleChanged:function(e){null==T||T(e)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),(function(t,n){var r=t.className,o=t.style;return F.createElement("div",wp({className:xp("".concat(i,"-content-wrapper"),null==p?void 0:p.wrapper,r),style:Qp(Qp(Qp({},Y),o),null==_?void 0:_.wrapper)},Tw(e,{data:!0})),F.createElement(FA,wp({id:b,containerRef:n,prefixCls:i,className:xp(v,null==p?void 0:p.content),style:Qp(Qp({},y),null==_?void 0:_.content)},Tw(e,{aria:!0}),Z),C))})),J=Qp({},m);return g&&(J.zIndex=g),F.createElement(_A.Provider,{value:G},F.createElement("div",{className:xp(i,"".concat(i,"-").concat(s),h,Yp(Yp({},"".concat(i,"-open"),a),"".concat(i,"-inline"),l)),style:J,tabIndex:-1,ref:D,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case Nw.TAB:var r;if(t===Nw.TAB)if(n||document.activeElement!==z.current){if(n&&document.activeElement===B.current){var o;null===(o=z.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(r=B.current)||void 0===r||r.focus({preventScroll:!0});break;case Nw.ESC:M&&f&&(e.stopPropagation(),M(e))}}},K,F.createElement("div",{tabIndex:0,ref:B,style:HA,"aria-hidden":"true","data-sentinel":"start"}),Q,F.createElement("div",{tabIndex:0,ref:z,style:HA,"aria-hidden":"true","data-sentinel":"end"})))}var UA=F.forwardRef(VA),WA=function(e){var t=e.open,n=void 0!==t&&t,r=e.prefixCls,o=void 0===r?"rc-drawer":r,i=e.placement,a=void 0===i?"right":i,s=e.autoFocus,l=void 0===s||s,c=e.keyboard,u=void 0===c||c,d=e.width,f=void 0===d?378:d,p=e.mask,h=void 0===p||p,m=e.maskClosable,g=void 0===m||m,v=e.getContainer,b=e.forceRender,y=e.afterOpenChange,x=e.destroyOnClose,w=e.onMouseEnter,S=e.onMouseOver,C=e.onMouseLeave,E=e.onClick,k=e.onKeyDown,O=e.onKeyUp,$=e.panelRef,P=im(F.useState(!1),2),T=P[0],M=P[1],I=im(F.useState(!1),2),j=I[0],R=I[1];Ym((function(){R(!0)}),[]);var N=!!j&&n,A=F.useRef(),L=F.useRef();Ym((function(){N&&(L.current=document.activeElement)}),[N]);var _=F.useMemo((function(){return{panel:$}}),[$]);if(!b&&!T&&!N&&x)return null;var D={onMouseEnter:w,onMouseOver:S,onMouseLeave:C,onClick:E,onKeyDown:k,onKeyUp:O},B=Qp(Qp({},e),{},{open:N,prefixCls:o,placement:a,autoFocus:l,keyboard:u,width:f,mask:h,maskClosable:g,inline:!1===v,afterOpenChange:function(e){var t,n;(M(e),null==y||y(e),e||!L.current||null!==(t=A.current)&&void 0!==t&&t.contains(L.current))||(null===(n=L.current)||void 0===n||n.focus({preventScroll:!0}))},ref:A},D);return F.createElement(DA.Provider,{value:_},F.createElement(bE,{open:N||b||T,autoDestroy:!1,getContainer:v,autoLock:h&&(N||T)},F.createElement(UA,B)))};const qA=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,onClose:s,headerStyle:l,bodyStyle:c,footerStyle:u,children:d,classNames:f,styles:p}=e,{drawer:h}=F.useContext(Db),m=F.useCallback((e=>F.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${r}-close`},e)),[s]),[g,v]=_E(RE(e),RE(h),{closable:!0,closeIconRender:m}),b=F.useMemo((()=>{var e,t;return o||g?F.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=null==h?void 0:h.styles)||void 0===e?void 0:e.header),l),null==p?void 0:p.header),className:xp(`${r}-header`,{[`${r}-header-close-only`]:g&&!o&&!a},null===(t=null==h?void 0:h.classNames)||void 0===t?void 0:t.header,null==f?void 0:f.header)},F.createElement("div",{className:`${r}-header-title`},v,o&&F.createElement("div",{className:`${r}-title`},o)),a&&F.createElement("div",{className:`${r}-extra`},a)):null}),[g,v,a,l,r,o]),y=F.useMemo((()=>{var e,t;if(!i)return null;const n=`${r}-footer`;return F.createElement("div",{className:xp(n,null===(e=null==h?void 0:h.classNames)||void 0===e?void 0:e.footer,null==f?void 0:f.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=null==h?void 0:h.styles)||void 0===t?void 0:t.footer),u),null==p?void 0:p.footer)},i)}),[i,u,r]);return F.createElement(F.Fragment,null,b,F.createElement("div",{className:xp(`${r}-body`,null==f?void 0:f.body,null===(t=null==h?void 0:h.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=null==h?void 0:h.styles)||void 0===n?void 0:n.body),c),null==p?void 0:p.body)},d),y)},GA=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},KA=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),XA=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},KA({opacity:e},{opacity:1})),YA=(e,t)=>[XA(.7,t),KA({transform:GA(e)},{transform:"none"})],ZA=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:XA(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce(((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:YA(t,n)})),{})}}},QA=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:p,lineType:h,colorSplit:m,marginXS:g,colorIcon:v,colorIconHover:b,colorBgTextHover:y,colorBgTextActive:x,colorText:w,fontWeightStrong:S,footerPaddingBlock:C,footerPaddingInline:E,calc:k}=e,O=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none","&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[O]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${O}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${O}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${O}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${O}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Um(c)} ${Um(u)}`,fontSize:d,lineHeight:f,borderBottom:`${Um(p)} ${h} ${m}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:k(d).add(l).equal(),height:k(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:g,color:v,fontWeight:S,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:b,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:x}},Ey(e)),[`${n}-title`]:{flex:1,margin:0,color:w,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto"},[`${n}-footer`]:{flexShrink:0,padding:`${Um(C)} ${Um(E)}`,borderTop:`${Um(p)} ${h} ${m}`},"&-rtl":{direction:"rtl"}}}},JA=Ly("Drawer",(e=>{const t=$y(e,{});return[QA(t),ZA(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding})));var eL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=tL,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,style:f,className:p,visible:h,afterVisibleChange:m,maskStyle:g,drawerStyle:v,contentWrapperStyle:b}=e,y=eL(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:x,getPrefixCls:w,direction:S,drawer:C}=F.useContext(Db),E=w("drawer",u),[k,O,$]=JA(E),P=void 0===d&&x?()=>x(document.body):d,T=xp({"no-mask":!i,[`${E}-rtl`]:"rtl"===S},t,O,$),M=F.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),I=F.useMemo((()=>null!=r?r:"large"===o?736:378),[r,o]),j={motionName:LS(E,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},R=aO(),[N,A]=Jw("Drawer",y.zIndex),{classNames:L={},styles:_={}}=y,{classNames:D={},styles:B={}}=C||{};return k(F.createElement(tC,null,F.createElement(nO,{status:!0,override:!0},F.createElement(Kw.Provider,{value:A},F.createElement(WA,Object.assign({prefixCls:E,onClose:c,maskMotion:j,motion:e=>({motionName:LS(E,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},y,{classNames:{mask:xp(L.mask,D.mask),content:xp(L.content,D.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},_.mask),g),B.mask),content:Object.assign(Object.assign(Object.assign({},_.content),v),B.content),wrapper:Object.assign(Object.assign(Object.assign({},_.wrapper),b),B.wrapper)},open:null!=s?s:h,mask:i,push:a,width:M,height:I,style:Object.assign(Object.assign({},null==C?void 0:C.style),f),className:xp(null==C?void 0:C.className,p),rootClassName:T,getContainer:P,afterOpenChange:null!=l?l:m,panelRef:R,zIndex:N}),F.createElement(qA,Object.assign({prefixCls:E},y,{onClose:c})))))))};nL._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=eL(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=F.useContext(Db),s=a("drawer",t),[l,c,u]=JA(s),d=xp(s,`${s}-pure`,`${s}-${o}`,c,u,r);return l(F.createElement("div",{className:d,style:n},F.createElement(qA,Object.assign({prefixCls:s},i))))};const rL=nL;function oL(e){return["small","middle","large"].includes(e)}function iL(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}const aL=z.createContext({latestIndex:0}),sL=aL.Provider,lL=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=F.useContext(aL);return null==r?null:F.createElement(F.Fragment,null,F.createElement("div",{className:t,style:i},r),n{var n,r;const{getPrefixCls:o,space:i,direction:a}=F.useContext(Db),{size:s=(null==i?void 0:i.size)||"small",align:l,className:c,rootClassName:u,children:d,direction:f="horizontal",prefixCls:p,split:h,style:m,wrap:g=!1,classNames:v,styles:b}=e,y=cL(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[x,w]=Array.isArray(s)?s:[s,s],S=oL(w),C=oL(x),E=iL(w),k=iL(x),O=zp(d,{keepEmpty:!0}),$=void 0===l&&"horizontal"===f?"center":l,P=o("space",p),[T,M,I]=ZS(P),j=xp(P,null==i?void 0:i.className,M,`${P}-${f}`,{[`${P}-rtl`]:"rtl"===a,[`${P}-align-${$}`]:$,[`${P}-gap-row-${w}`]:S,[`${P}-gap-col-${x}`]:C},c,u,I),R=xp(`${P}-item`,null!==(n=null==v?void 0:v.item)&&void 0!==n?n:null===(r=null==i?void 0:i.classNames)||void 0===r?void 0:r.item);let N=0;const A=O.map(((e,t)=>{var n,r;null!=e&&(N=t);const o=e&&e.key||`${R}-${t}`;return F.createElement(lL,{className:R,key:o,index:t,split:h,style:null!==(n=null==b?void 0:b.item)&&void 0!==n?n:null===(r=null==i?void 0:i.styles)||void 0===r?void 0:r.item},e)})),L=F.useMemo((()=>({latestIndex:N})),[N]);if(0===O.length)return null;const _={};return g&&(_.flexWrap="wrap"),!C&&k&&(_.columnGap=x),!S&&E&&(_.rowGap=w),T(F.createElement("div",Object.assign({ref:t,className:j,style:Object.assign(Object.assign(Object.assign({},_),null==i?void 0:i.style),m)},y),F.createElement(sL,{value:L},A)))})),dL=uL;dL.Compact=rC;const fL=dL;var pL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=F.useContext(Db),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:p,arrow:h,autoFocus:m,overlay:g,trigger:v,align:b,open:y,onOpenChange:x,placement:w,getPopupContainer:S,href:C,icon:E=F.createElement(PI,null),title:k,buttonsRender:O=(e=>e),mouseEnterDelay:$,mouseLeaveDelay:P,overlayClassName:T,overlayStyle:M,destroyPopupOnHide:I,dropdownRender:j}=e,R=pL(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),N=n("dropdown",o),A=`${N}-button`,L={menu:p,arrow:h,autoFocus:m,align:b,disabled:s,trigger:s?[]:v,onOpenChange:x,getPopupContainer:S||t,mouseEnterDelay:$,mouseLeaveDelay:P,overlayClassName:T,overlayStyle:M,destroyPopupOnHide:I,dropdownRender:j},{compactSize:_,compactItemClassnames:D}=eC(N,r),B=xp(A,D,f);"overlay"in e&&(L.overlay=g),"open"in e&&(L.open=y),L.placement="placement"in e?w:"rtl"===r?"bottomLeft":"bottomRight";const z=F.createElement(eE,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:C,title:k},d),H=F.createElement(eE,{type:i,danger:a,icon:E}),[V,U]=O([z,H]);return F.createElement(fL.Compact,Object.assign({className:B,size:_,block:!0},R),V,F.createElement(sj,Object.assign({},L),U))};hL.__ANT_BUTTON=!0;const mL=hL,gL=sj;gL.Button=mL;const vL=gL;const bL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var yL=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:bL}))}; +/**![question-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PHBhdGggZD0iTTYyMy42IDMxNi43QzU5My42IDI5MC40IDU1NCAyNzYgNTEyIDI3NnMtODEuNiAxNC41LTExMS42IDQwLjdDMzY5LjIgMzQ0IDM1MiAzODAuNyAzNTIgNDIwdjcuNmMwIDQuNCAzLjYgOCA4IDhoNDhjNC40IDAgOC0zLjYgOC04VjQyMGMwLTQ0LjEgNDMuMS04MCA5Ni04MHM5NiAzNS45IDk2IDgwYzAgMzEuMS0yMiA1OS42LTU2LjEgNzIuNy0yMS4yIDguMS0zOS4yIDIyLjMtNTIuMSA0MC45LTEzLjEgMTktMTkuOSA0MS44LTE5LjkgNjQuOVY2MjBjMCA0LjQgMy42IDggOCA4aDQ4YzQuNCAwIDgtMy42IDgtOHYtMjIuN2E0OC4zIDQ4LjMgMCAwMTMwLjktNDQuOGM1OS0yMi43IDk3LjEtNzQuNyA5Ny4xLTEzMi41LjEtMzkuMy0xNy4xLTc2LTQ4LjMtMTAzLjN6TTQ3MiA3MzJhNDAgNDAgMCAxMDgwIDAgNDAgNDAgMCAxMC04MCAweiIgLz48L3N2Zz4=) */const xL=F.forwardRef(yL);const wL=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:o,lightTriggerColor:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:o},[`${t}-sider-zero-width-trigger`]:{color:i,background:o,border:`1px solid ${n}`,borderInlineStart:0}}}},SL=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:o,footerBg:i,triggerBg:a,headerHeight:s,headerPadding:l,headerColor:c,footerPadding:u,triggerHeight:d,zeroTriggerHeight:f,zeroTriggerWidth:p,motionDurationMid:h,motionDurationSlow:m,fontSize:g,borderRadius:v,bodyBg:b,headerBg:y,siderBg:x}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:x,transition:`all ${h}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:o,lineHeight:Um(d),textAlign:"center",background:a,cursor:"pointer",transition:`all ${h}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:f,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:x,borderStartStartRadius:0,borderStartEndRadius:v,borderEndEndRadius:v,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:v,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:v}}}}},wL(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:s,padding:l,color:c,lineHeight:Um(s),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:u,color:r,fontSize:g,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},CL=Ly("Layout",(e=>[SL(e)]),(e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:o}}),{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var EL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oF.forwardRef(((r,o)=>F.createElement(e,Object.assign({ref:o,suffixCls:t,tagName:n},r))))}const OL=F.forwardRef(((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=EL(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=F.useContext(Db),l=s("layout",n),[c,u,d]=CL(l),f=r?`${l}-${r}`:l;return c(F.createElement(i,Object.assign({className:xp(n||f,o,u,d),ref:t},a)))})),$L=F.forwardRef(((e,t)=>{const{direction:n}=F.useContext(Db),[r,o]=F.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=qh(EL(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:p,layout:h}=F.useContext(Db),m=p("layout",i),g=function(e,t,n){return"boolean"==typeof n?n:!!e.length||zp(t).some((e=>e.type===kI))}(r,l,c),[v,b,y]=CL(m),x=xp(m,{[`${m}-has-sider`]:g,[`${m}-rtl`]:"rtl"===n},null==h?void 0:h.className,a,s,b,y),w=F.useMemo((()=>({siderHook:{addSider:e=>{o((t=>[].concat(Yh(t),[e])))},removeSider:e=>{o((t=>t.filter((t=>t!==e))))}}})),[]);return v(F.createElement(yI.Provider,{value:w},F.createElement(u,Object.assign({ref:t,className:x,style:Object.assign(Object.assign({},null==h?void 0:h.style),d)},f),l)))})),PL=kL({tagName:"div",displayName:"Layout"})($L),TL=kL({suffixCls:"header",tagName:"header",displayName:"Header"})(OL),ML=kL({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(OL),IL=kL({suffixCls:"content",tagName:"main",displayName:"Content"})(OL),jL=new dv("antSpinMove",{to:{opacity:1}}),RL=new dv("antRotate",{to:{transform:"rotate(405deg)"}}),NL=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},by(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:jL,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:RL,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},AL=Ly("Spin",(e=>{const t=$y(e,{spinDotDefault:e.colorTextDescription});return[NL(t)]}),(e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}));var LL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:i,size:a="default",tip:s,wrapperClassName:l,style:c,children:u,fullscreen:d=!1}=e,f=LL(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:p}=F.useContext(Db),h=p("spin",t),[m,g,v]=AL(h),[b,y]=F.useState((()=>n&&!function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(n,r)));F.useEffect((()=>{if(n){const e=AN(r,(()=>{y(!0)}));return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}y(!1)}),[r,n]);const x=F.useMemo((()=>void 0!==u&&!d),[u,d]),{direction:w,spin:S}=F.useContext(Db),C=xp(h,null==S?void 0:S.className,{[`${h}-sm`]:"small"===a,[`${h}-lg`]:"large"===a,[`${h}-spinning`]:b,[`${h}-show-text`]:!!s,[`${h}-fullscreen`]:d,[`${h}-fullscreen-show`]:d&&b,[`${h}-rtl`]:"rtl"===w},o,i,g,v),E=xp(`${h}-container`,{[`${h}-blur`]:b}),k=qh(f,["indicator"]),O=Object.assign(Object.assign({},null==S?void 0:S.style),c),$=F.createElement("div",Object.assign({},k,{style:O,className:C,"aria-live":"polite","aria-busy":b}),function(e,t){const{indicator:n}=t,r=`${e}-dot`;return null===n?null:F.isValidElement(n)?jw(n,{className:xp(n.props.className,r)}):F.isValidElement(_L)?jw(_L,{className:xp(_L.props.className,r)}):F.createElement("span",{className:xp(r,`${e}-dot-spin`)},F.createElement("i",{className:`${e}-dot-item`,key:1}),F.createElement("i",{className:`${e}-dot-item`,key:2}),F.createElement("i",{className:`${e}-dot-item`,key:3}),F.createElement("i",{className:`${e}-dot-item`,key:4}))}(h,e),s&&(x||d)?F.createElement("div",{className:`${h}-text`},s):null);return m(x?F.createElement("div",Object.assign({},k,{className:xp(`${h}-nested-loading`,l,g,v)}),b&&F.createElement("div",{key:"loading"},$),F.createElement("div",{className:E,key:"container"},u)):$)};DL.setDefaultIndicator=e=>{_L=e};const BL=DL;let FL=null,zL=e=>e(),HL=[],VL={};function UL(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=VL,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const WL=z.forwardRef(((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=F.useContext(Db),i=VL.prefixCls||o("message"),a=F.useContext(z$),[s,l]=pS(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return z.useImperativeHandle(t,(()=>{const e=Object.assign({},s);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),s[t].apply(s,arguments)}})),{instance:e,sync:r}})),l})),qL=z.forwardRef(((e,t)=>{const[n,r]=z.useState(UL),o=()=>{r(UL)};z.useEffect(o,[]);const i=Wx(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=z.createElement(WL,{ref:t,sync:o,messageConfig:n});return z.createElement(Kx,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}));function GL(){if(!FL){const e=document.createDocumentFragment(),t={fragment:e};return FL=t,void zL((()=>{kS(z.createElement(qL,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,GL())}))}}),e)}))}FL.instance&&(HL.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":zL((()=>{const t=FL.instance.open(Object.assign(Object.assign({},VL),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":zL((()=>{null==FL||FL.instance.destroy(e.key)}));break;default:zL((()=>{var n;const r=(n=FL.instance)[t].apply(n,Yh(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),HL=[])}const KL={open:function(e){const t=aS((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return HL.push(r),()=>{n?zL((()=>{n()})):r.skipped=!0}}));return GL(),t},destroy:e=>{HL.push({type:"destroy",key:e}),GL()},config:function(e){VL=Object.assign(Object.assign({},VL),e),zL((()=>{var e;null===(e=null==FL?void 0:FL.sync)||void 0===e||e.call(FL)}))},useMessage:hS,_InternalPanelDoNotUseOrYouWillBeFired:iS},XL=KL;["success","info","warning","error","loading"].forEach((e=>{XL[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return HL.push(o),()=>{r?zL((()=>{r()})):o.skipped=!0}}));return GL(),n}(e,n)}}));const YL=XL;var ZL=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s,footer:l}=e,c=ZL(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=F.useContext(Db),d=u(),f=t||u("modal"),p=Rw(d),[h,m,g]=YO(f,p),v=`${f}-confirm`;let b={};return b=i?{closable:null!=o&&o,title:"",footer:"",children:F.createElement(o$,Object.assign({},e,{prefixCls:f,confirmPrefixCls:v,rootPrefixCls:d,content:s}))}:{closable:null==o||o,title:a,footer:null!==l&&F.createElement(uO,Object.assign({},e)),children:s},h(F.createElement(PE,Object.assign({prefixCls:f,className:xp(m,`${f}-pure-panel`,i&&v,i&&`${v}-${i}`,n,g,p)},c,{closeIcon:cO(f,r),closable:o},b)))}));function JL(e){return d$(f$(e))}const e_=e$;e_.useModal=S$,e_.info=function(e){return d$(p$(e))},e_.success=function(e){return d$(h$(e))},e_.error=function(e){return d$(m$(e))},e_.warning=JL,e_.warn=JL,e_.confirm=function(e){return d$(g$(e))},e_.destroyAll=function(){for(;s$.length;){const e=s$.pop();e&&e()}},e_.config=function(e){let{rootPrefixCls:t}=e;l$=t},e_._InternalPanelDoNotUseOrYouWillBeFired=QL;const t_=e_;var n_=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],r_=F.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-switch":r,i=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,p=e.onChange,h=e.onKeyDown,m=wm(e,n_),g=im(gy(!1,{value:a,defaultValue:s}),2),v=g[0],b=g[1];function y(e,t){var n=v;return l||(b(n=e),null==p||p(n,t)),n}var x=xp(o,i,(Yp(n={},"".concat(o,"-checked"),v),Yp(n,"".concat(o,"-disabled"),l),n));return F.createElement("button",wp({},m,{type:"button",role:"switch","aria-checked":v,disabled:l,className:x,ref:t,onKeyDown:function(e){e.which===Nw.LEFT?y(!1,e):e.which===Nw.RIGHT&&y(!0,e),null==h||h(e)},onClick:function(e){var t=y(!v,e);null==f||f(t,e)}}),c,F.createElement("span",{className:"".concat(o,"-inner")},F.createElement("span",{className:"".concat(o,"-inner-checked")},u),F.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))}));r_.displayName="Switch";const o_=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=Um(l(s).add(l(r).mul(2)).equal()),d=Um(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:Um(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Um(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},i_=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},a_=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Um(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},s_=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=Um(s(a).add(s(r).mul(2)).equal()),u=Um(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},l_=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},by(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${Um(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Ey(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},c_=Ly("Switch",(e=>{const t=$y(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[l_(t),s_(t),a_(t),i_(t),o_(t)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,s=i-4,l=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*s+8,trackMinWidthSM:2*l+4,trackPadding:2,handleBg:o,handleSize:s,handleSizeSM:l,handleShadow:`0 2px 4px 0 ${new nb("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:l/2,innerMaxMarginSM:l+2+4}}));var u_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l,checked:c,value:u,defaultChecked:d,defaultValue:f,onChange:p}=e,h=u_(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,g]=gy(!1,{value:null!=c?c:u,defaultValue:null!=d?d:f}),{getPrefixCls:v,direction:b,switch:y}=F.useContext(Db),x=F.useContext(Vb),w=(null!=o?o:x)||i,S=v("switch",n),C=F.createElement("div",{className:`${S}-handle`},i&&F.createElement(Gw,{className:`${S}-loading-icon`})),[E,k,O]=c_(S),$=GS(r),P=xp(null==y?void 0:y.className,{[`${S}-small`]:"small"===$,[`${S}-loading`]:i,[`${S}-rtl`]:"rtl"===b},a,s,k,O),T=Object.assign(Object.assign({},null==y?void 0:y.style),l);return E(F.createElement(qS,{component:"Switch"},F.createElement(r_,Object.assign({},h,{checked:m,onChange:function(){g(arguments.length<=0?void 0:arguments[0]),null==p||p.apply(void 0,arguments)},prefixCls:S,className:P,style:T,disabled:w,ref:t,loadingIcon:C}))))})),f_=d_;f_.__ANT_SWITCH=!0;const p_=f_,h_=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return $y(e,{tagFontSize:o,tagLineHeight:Um(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},m_=e=>({defaultBg:new nb(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),g_=Ly("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},by(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Um(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(h_(e))),m_);var v_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:s}=e,l=v_(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=F.useContext(Db),d=c("tag",n),[f,p,h]=g_(d),m=xp(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},null==u?void 0:u.className,o,p,h);return f(F.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),null==u?void 0:u.style),className:m,onClick:e=>{null==a||a(!i),null==s||s(e)}})))})),y_=b_,x_=Ny(["Tag","preset"],(e=>(e=>_y(e,((t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(h_(e))),m_);const w_=(e,t,n)=>{const r="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},S_=Ny(["Tag","status"],(e=>{const t=h_(e);return[w_(t,"success","Success"),w_(t,"processing","Info"),w_(t,"error","Error"),w_(t,"warning","Warning")]}),m_);var C_=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,bordered:u=!0,visible:d}=e,f=C_(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:h,tag:m}=F.useContext(Db),[g,v]=F.useState(!0),b=qh(f,["closeIcon","closable"]);F.useEffect((()=>{void 0!==d&&v(d)}),[d]);const y=PT(l),x=function(e){return $T.includes(e)}(l),w=y||x,S=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},null==m?void 0:m.style),i),C=p("tag",n),[E,k,O]=g_(C),$=xp(C,null==m?void 0:m.className,{[`${C}-${l}`]:w,[`${C}-has-color`]:l&&!w,[`${C}-hidden`]:!g,[`${C}-rtl`]:"rtl"===h,[`${C}-borderless`]:!u},r,o,k,O),P=e=>{e.stopPropagation(),null==c||c(e),e.defaultPrevented||v(!1)},[,T]=_E(RE(e),RE(m),{closable:!1,closeIconRender:e=>Iw(e,F.createElement("span",{className:`${C}-close-icon`,onClick:P},e),(e=>({onClick:t=>{var n;null===(n=null==e?void 0:e.onClick)||void 0===n||n.call(e,t),P(t)},className:xp(null==e?void 0:e.className,`${C}-close-icon`)})))}),M="function"==typeof f.onClick||a&&"a"===a.type,I=s||null,j=I?F.createElement(F.Fragment,null,I,a&&F.createElement("span",null,a)):a,R=F.createElement("span",Object.assign({},b,{ref:t,className:$,style:S}),j,T,y&&F.createElement(x_,{key:"preset",prefixCls:C}),x&&F.createElement(S_,{key:"status",prefixCls:C}));return E(M?F.createElement(qS,{component:"Tag"},R):R)})),k_=E_;k_.CheckableTag=y_;const O_=k_,$_=e=>{const t=(null==e?void 0:e.algorithm)?_m(e.algorithm):_m(Rb),n=Object.assign(Object.assign({},Cb),null==e?void 0:e.token);return sg(n,{override:null==e?void 0:e.token},t,Qb)};const P_=(e,t)=>{const n=null!=t?t:Rb(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}(null!=t?t:e)),Pb(r)),{controlHeight:o}),Ob(Object.assign(Object.assign({},n),{controlHeight:o})))},T_=(e,t)=>new nb(e).setAlpha(t).toRgbString(),M_=(e,t)=>new nb(e).lighten(t).toHexString(),I_=e=>{const t=gb(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},j_=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:T_(r,.85),colorTextSecondary:T_(r,.65),colorTextTertiary:T_(r,.45),colorTextQuaternary:T_(r,.25),colorFill:T_(r,.18),colorFillSecondary:T_(r,.12),colorFillTertiary:T_(r,.08),colorFillQuaternary:T_(r,.04),colorBgElevated:M_(n,12),colorBgContainer:M_(n,8),colorBgLayout:M_(n,0),colorBgSpotlight:M_(n,26),colorBgBlur:T_(r,.04),colorBorder:M_(n,26),colorBorderSecondary:M_(n,19)}},R_=(e,t)=>{const n=Object.keys(Sb).map((t=>{const n=gb(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:Rb(e);return Object.assign(Object.assign(Object.assign({},r),n),Eb(e,{generateColorPalettes:I_,generateNeutralColorPalettes:j_}))};const N_={defaultConfig:Ab,defaultSeed:Ab.token,useToken:function(){const[e,t,n]=oy();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Rb,darkAlgorithm:R_,compactAlgorithm:P_,getDesignToken:$_},A_={},L_=function(e,t,n){if(!t||0===t.length)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map((e=>{if((e=function(e){return"/admin/"+e}(e))in A_)return;A_[e]=!0;const t=e.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(!!n)for(let n=r.length-1;n>=0;n--){const o=r[n];if(o.href===e&&(!t||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${e}"]${o}`))return;const i=document.createElement("link");return i.rel=t?"stylesheet":"modulepreload",t||(i.as="script",i.crossOrigin=""),i.href=e,document.head.appendChild(i),t?new Promise(((t,n)=>{i.addEventListener("load",t),i.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))}; +/** + * @remix-run/router v1.16.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */ +function __(){return __=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.removeEventListener(B_,d),l=null}},createHref:e=>t(o,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go:e=>a.go(e)};return m}((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return U_("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:W_(t)}),null,e)}function z_(e,t){if(!1===e||null==e)throw new Error(t)}function H_(e,t){if(!e)try{throw new Error(t)}catch(s7){}}function V_(e,t){return{usr:e.state,key:e.key,idx:t}}function U_(e,t,n,r){return void 0===n&&(n=null),__({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?q_(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function W_(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function q_(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var G_;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(G_||(G_={}));const K_=new Set(["lazy","caseSensitive","path","id","index","children"]);function X_(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map(((e,o)=>{let i=[...n,o],a="string"==typeof e.id?e.id:i.join("-");if(z_(!0!==e.index||!e.children,"Cannot specify children on an index route"),z_(!r[a],'Found a route id collision on id "'+a+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=__({},e,t(e),{id:a});return r[a]=n,n}{let n=__({},e,t(e),{id:a,children:void 0});return r[a]=n,e.children&&(n.children=X_(e.children,t,i,r)),n}}))}function Y_(e,t,n){void 0===n&&(n="/");let r=dD(("string"==typeof t?q_(t):t).pathname||"/",n);if(null==r)return null;let o=Q_(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let i=null;for(let a=0;null==i&&a{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(z_(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=gD([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(z_(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),Q_(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:sD(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of J_(e.path))o(e,t,r);else o(e,t)})),t}function J_(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=J_(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const eD=/^:[\w-]+$/,tD=3,nD=2,rD=1,oD=10,iD=-2,aD=e=>"*"===e;function sD(e,t){let n=e.split("/"),r=n.length;return n.some(aD)&&(r+=iD),t&&(r+=nD),n.filter((e=>!aD(e))).reduce(((e,t)=>e+(eD.test(t)?tD:""===t?rD:oD)),r)}function lD(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function uD(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return H_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function dD(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function fD(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function pD(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function hD(e,t){let n=pD(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function mD(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=q_(e):(o=__({},e),z_(!o.pathname||!o.pathname.includes("?"),fD("?","pathname","search",o)),z_(!o.pathname||!o.pathname.includes("#"),fD("#","pathname","hash",o)),z_(!o.search||!o.search.includes("#"),fD("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?q_(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:bD(r),hash:yD(o)}}(o,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const gD=e=>e.join("/").replace(/\/\/+/g,"/"),vD=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bD=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",yD=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class xD{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function wD(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const SD=["post","put","patch","delete"],CD=new Set(SD),ED=["get",...SD],kD=new Set(ED),OD=new Set([301,302,303,307,308]),$D=new Set([307,308]),PD={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},TD={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},MD={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ID=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jD=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),RD="remix-router-transitions";function ND(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,r=!n;let o;if(z_(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;o=e=>({hasErrorBoundary:t(e)})}else o=jD;let i,a,s={},l=X_(e.routes,o,void 0,s),c=e.basename||"/",u=e.unstable_dataStrategy||zD,d=__({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),f=null,p=new Set,h=null,m=null,g=null,v=null!=e.hydrationData,b=Y_(l,e.history.location,c),y=null;if(null==b){let t=QD(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=ZD(l);b=n,y={[r.id]:t}}let x,w=b.some((e=>e.route.lazy)),S=b.some((e=>e.route.loader));if(w)a=!1;else if(S)if(d.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||n&&void 0!==n[e.route.id]);if(n){let e=b.findIndex((e=>void 0!==n[e.route.id]));a=b.slice(0,e+1).every(r)}else a=b.every(r)}else a=null!=e.hydrationData;else a=!0;let C,E={historyAction:e.history.action,location:e.history.location,matches:b,initialized:a,navigation:PD,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||y,fetchers:new Map,blockers:new Map},k=D_.Pop,O=!1,$=!1,P=new Map,T=null,M=!1,I=!1,j=[],R=[],N=new Map,A=0,L=-1,_=new Map,D=new Set,B=new Map,F=new Map,z=new Set,H=new Map,V=new Map,U=!1;function W(e,t){void 0===t&&(t={}),E=__({},E,e);let n=[],r=[];d.v7_fetcherPersist&&E.fetchers.forEach(((e,t)=>{"idle"===e.state&&(z.has(t)?r.push(t):n.push(t))})),[...p].forEach((e=>e(E,{deletedFetchers:r,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),d.v7_fetcherPersist&&(n.forEach((e=>E.fetchers.delete(e))),r.forEach((e=>te(e))))}function q(t,n,r){var o,a;let s,{flushSync:c}=void 0===r?{}:r,u=null!=E.actionData&&null!=E.navigation.formMethod&&iB(E.navigation.formMethod)&&"loading"===E.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);s=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:u?E.actionData:null;let d=n.loaderData?KD(E.loaderData,n.loaderData,n.matches||[],n.errors):E.loaderData,f=E.blockers;f.size>0&&(f=new Map(f),f.forEach(((e,t)=>f.set(t,MD))));let p,h=!0===O||null!=E.navigation.formMethod&&iB(E.navigation.formMethod)&&!0!==(null==(a=t.state)?void 0:a._isRedirect);if(i&&(l=i,i=void 0),M||k===D_.Pop||(k===D_.Push?e.history.push(t,t.state):k===D_.Replace&&e.history.replace(t,t.state)),k===D_.Pop){let e=P.get(E.location.pathname);e&&e.has(t.pathname)?p={currentLocation:E.location,nextLocation:t}:P.has(t.pathname)&&(p={currentLocation:t,nextLocation:E.location})}else if($){let e=P.get(E.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),P.set(E.location.pathname,e)),p={currentLocation:E.location,nextLocation:t}}W(__({},n,{actionData:s,loaderData:d,historyAction:k,location:t,initialized:!0,navigation:PD,revalidation:"idle",restoreScrollPosition:de(t,n.matches||E.matches),preventScrollReset:h,blockers:f}),{viewTransitionOpts:p,flushSync:!0===c}),k=D_.Pop,O=!1,$=!1,M=!1,I=!1,j=[],R=[]}async function G(t,n,r){C&&C.abort(),C=null,k=t,M=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(h&&g){let n=ue(e,t);h[n]=g()}}(E.location,E.matches),O=!0===(r&&r.preventScrollReset),$=!0===(r&&r.enableViewTransition);let o=i||l,a=r&&r.overrideNavigation,s=Y_(o,n,c),u=!0===(r&&r.flushSync);if(!s){let e=QD(404,{pathname:n.pathname}),{matches:t,route:r}=ZD(o);return ce(),void q(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:u})}if(E.initialized&&!I&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(E.location,n)&&!(r&&r.submission&&iB(r.submission.formMethod)))return void q(n,{matches:s},{flushSync:u});C=new AbortController;let f,p=UD(e.history,n,C.signal,r&&r.submission);if(r&&r.pendingError)f=[YD(s).route.id,{type:G_.error,error:r.pendingError}];else if(r&&r.submission&&iB(r.submission.formMethod)){let t=await async function(e,t,n,r,o){void 0===o&&(o={});Z();let i,a=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(t,n);W({navigation:a},{flushSync:!0===o.flushSync});let s=cB(r,t);if(s.route.action||s.route.lazy){if(i=(await X("action",e,[s],r))[0],e.signal.aborted)return{shortCircuited:!0}}else i={type:G_.error,error:QD(405,{method:e.method,pathname:t.pathname,routeId:s.route.id})};if(rB(i)){let t;if(o&&null!=o.replace)t=o.replace;else{t=VD(i.response.headers.get("Location"),new URL(e.url),c)===E.location.pathname+E.location.search}return await K(e,i,{submission:n,replace:t}),{shortCircuited:!0}}if(tB(i))throw QD(400,{type:"defer-action"});if(nB(i)){let e=YD(r,s.route.id);return!0!==(o&&o.replace)&&(k=D_.Push),{pendingActionResult:[e.route.id,i]}}return{pendingActionResult:[s.route.id,i]}}(p,n,r.submission,s,{replace:r.replace,flushSync:u});if(t.shortCircuited)return;f=t.pendingActionResult,a=dB(n,r.submission),u=!1,p=UD(e.history,p.url,p.signal)}let{shortCircuited:m,loaderData:v,errors:b}=await async function(t,n,r,o,a,s,u,f,p,h){let m=o||dB(n,a),g=a||s||uB(m),v=i||l,[b,y]=_D(e.history,E,r,g,n,d.v7_partialHydration&&!0===f,d.unstable_skipActionErrorRevalidation,I,j,R,z,B,D,v,c,h);if(ce((e=>!(r&&r.some((t=>t.route.id===e)))||b&&b.some((t=>t.route.id===e)))),L=++A,0===b.length&&0===y.length){let e=oe();return q(n,__({matches:r,loaderData:{},errors:h&&nB(h[1])?{[h[0]]:h[1].error}:null},XD(h),e?{fetchers:new Map(E.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(!(M||d.v7_partialHydration&&f)){let e;y.forEach((e=>{let t=E.fetchers.get(e.key),n=fB(void 0,t?t.data:void 0);E.fetchers.set(e.key,n)})),h&&!nB(h[1])?e={[h[0]]:h[1].data}:E.actionData&&(e=0===Object.keys(E.actionData).length?null:E.actionData),W(__({navigation:m},void 0!==e?{actionData:e}:{},y.length>0?{fetchers:new Map(E.fetchers)}:{}),{flushSync:p})}y.forEach((e=>{N.has(e.key)&&ne(e.key),e.controller&&N.set(e.key,e.controller)}));let x=()=>y.forEach((e=>ne(e.key)));C&&C.signal.addEventListener("abort",x);let{loaderResults:w,fetcherResults:S}=await Y(E.matches,r,b,y,t);if(t.signal.aborted)return{shortCircuited:!0};C&&C.signal.removeEventListener("abort",x);y.forEach((e=>N.delete(e.key)));let k=JD([...w,...S]);if(k){if(k.idx>=b.length){let e=y[k.idx-b.length].key;D.add(e)}return await K(t,k.result,{replace:u}),{shortCircuited:!0}}let{loaderData:O,errors:$}=GD(E,r,b,w,h,y,S,H);H.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&H.delete(t)}))})),d.v7_partialHydration&&f&&E.errors&&Object.entries(E.errors).filter((e=>{let[t]=e;return!b.some((e=>e.route.id===t))})).forEach((e=>{let[t,n]=e;$=Object.assign($||{},{[t]:n})}));let P=oe(),T=ie(L),_=P||T||y.length>0;return __({loaderData:O,errors:$},_?{fetchers:new Map(E.fetchers)}:{})}(p,n,s,a,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&!0===r.initialHydration,u,f);m||(C=null,q(n,__({matches:s},XD(f),{loaderData:v,errors:b})))}async function K(r,o,i){let{submission:a,fetcherSubmission:s,replace:l}=void 0===i?{}:i;o.response.headers.has("X-Remix-Revalidate")&&(I=!0);let u=o.response.headers.get("Location");z_(u,"Expected a Location header on the redirect Response"),u=VD(u,new URL(r.url),c);let d=U_(E.location,u,{_isRedirect:!0});if(n){let n=!1;if(o.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(ID.test(u)){const r=e.history.createURL(u);n=r.origin!==t.location.origin||null==dD(r.pathname,c)}if(n)return void(l?t.location.replace(u):t.location.assign(u))}C=null;let f=!0===l?D_.Replace:D_.Push,{formMethod:p,formAction:h,formEncType:m}=E.navigation;!a&&!s&&p&&h&&m&&(a=uB(E.navigation));let g=a||s;if($D.has(o.response.status)&&g&&iB(g.formMethod))await G(f,d,{submission:__({},g,{formAction:u}),preventScrollReset:O});else{let e=dB(d,a);await G(f,d,{overrideNavigation:e,fetcherSubmission:s,preventScrollReset:O})}}async function X(e,t,n,r){try{let i=await async function(e,t,n,r,o,i,a,s){let l=r.reduce(((e,t)=>e.add(t.route.id)),new Set),c=new Set,u=await e({matches:o.map((e=>{let r=l.has(e.route.id),o=o=>(c.add(e.route.id),r?async function(e,t,n,r,o,i,a){let s,l,c=r=>{let o,s=new Promise(((e,t)=>o=t));l=()=>o(),t.signal.addEventListener("abort",l);let c,u=o=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:a},...void 0!==o?[o]:[]);return c=i?i((e=>u(e))):(async()=>{try{return{type:"data",result:await u()}}catch(s7){return{type:"error",result:s7}}})(),Promise.race([c,s])};try{let i=n.route[e];if(n.route.lazy)if(i){let e,[t]=await Promise.all([c(i).catch((t=>{e=t})),FD(n.route,o,r)]);if(void 0!==e)throw e;s=t}else{if(await FD(n.route,o,r),i=n.route[e],!i){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw QD(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:G_.data,result:void 0}}s=await c(i)}else{if(!i){let e=new URL(t.url);throw QD(404,{pathname:e.pathname+e.search})}s=await c(i)}z_(void 0!==s.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(s7){return{type:G_.error,result:s7}}finally{l&&t.signal.removeEventListener("abort",l)}return s}(t,n,e,i,a,o,s):Promise.resolve({type:G_.data,result:void 0}));return __({},e,{shouldLoad:r,resolve:o})})),request:n,params:o[0].params,context:s});return o.forEach((e=>z_(c.has(e.route.id),'`match.resolve()` was not called for route id "'+e.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.'))),u.filter(((e,t)=>l.has(o[t].route.id)))}(u,e,t,n,r,s,o);return await Promise.all(i.map(((e,o)=>{if(function(e){return oB(e.result)&&OD.has(e.result.status)}(e)){let i=e.result;return{type:G_.redirect,response:HD(i,t,n[o].route.id,r,c,d.v7_relativeSplatPath)}}return async function(e){let{result:t,type:n,status:r}=e;if(oB(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(s7){return{type:G_.error,error:s7}}return n===G_.error?{type:G_.error,error:new xD(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:G_.data,data:e,statusCode:t.status,headers:t.headers}}if(n===G_.error)return{type:G_.error,error:t,statusCode:wD(t)?t.status:r};var o,i;return function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:G_.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(i=t.init)?void 0:i.headers)&&new Headers(t.init.headers)}:{type:G_.data,data:t,statusCode:r}}(e)})))}catch(s7){return n.map((()=>({type:G_.error,error:s7})))}}async function Y(t,n,r,o,i){let[a,...s]=await Promise.all([r.length?X("loader",i,r,n):[],...o.map((t=>{if(t.matches&&t.match&&t.controller){return X("loader",UD(e.history,t.path,t.controller.signal),[t.match],t.matches).then((e=>e[0]))}return Promise.resolve({type:G_.error,error:QD(404,{pathname:t.path})})}))]);return await Promise.all([aB(t,r,a,a.map((()=>i.signal)),!1,E.loaderData),aB(t,o.map((e=>e.match)),s,o.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:a,fetcherResults:s}}function Z(){I=!0,j.push(...ce()),B.forEach(((e,t)=>{N.has(t)&&(R.push(t),ne(t))}))}function Q(e,t,n){void 0===n&&(n={}),E.fetchers.set(e,t),W({fetchers:new Map(E.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function J(e,t,n,r){void 0===r&&(r={});let o=YD(E.matches,t);te(e),W({errors:{[o.route.id]:n},fetchers:new Map(E.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function ee(e){return d.v7_fetcherPersist&&(F.set(e,(F.get(e)||0)+1),z.has(e)&&z.delete(e)),E.fetchers.get(e)||TD}function te(e){let t=E.fetchers.get(e);!N.has(e)||t&&"loading"===t.state&&_.has(e)||ne(e),B.delete(e),_.delete(e),D.delete(e),z.delete(e),E.fetchers.delete(e)}function ne(e){let t=N.get(e);z_(t,"Expected fetch controller: "+e),t.abort(),N.delete(e)}function re(e){for(let t of e){let e=pB(ee(t).data);E.fetchers.set(t,e)}}function oe(){let e=[],t=!1;for(let n of D){let r=E.fetchers.get(n);z_(r,"Expected fetcher: "+n),"loading"===r.state&&(D.delete(n),e.push(n),t=!0)}return re(e),t}function ie(e){let t=[];for(let[n,r]of _)if(r0}function ae(e){E.blockers.delete(e),V.delete(e)}function se(e,t){let n=E.blockers.get(e)||MD;z_("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(E.blockers);r.set(e,t),W({blockers:r})}function le(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===V.size)return;V.size>1&&H_(!1,"A router only supports one blocker at a time");let o=Array.from(V.entries()),[i,a]=o[o.length-1],s=E.blockers.get(i);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function ce(e){let t=[];return H.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),H.delete(r))})),t}function ue(e,t){if(m){let n=m(e,t.map((e=>Z_(e,E.loaderData))));return n||e.key}return e.key}function de(e,t){if(h){let n=ue(e,t),r=h[n];if("number"==typeof r)return r}return null}return x={get basename(){return c},get future(){return d},get state(){return E},get routes(){return l},get window(){return t},initialize:function(){if(f=e.history.listen((t=>{let{action:n,location:r,delta:o}=t;if(U)return void(U=!1);H_(0===V.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=le({currentLocation:E.location,nextLocation:r,historyAction:n});return i&&null!=o?(U=!0,e.history.go(-1*o),void se(i,{state:"blocked",location:r,proceed(){se(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(o)},reset(){let e=new Map(E.blockers);e.set(i,MD),W({blockers:e})}})):G(n,r)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(RD);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(s7){}}(t,P);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(RD,JSON.stringify(r))}catch(n){H_(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}} +/** + * React Router v6.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */(t,P);t.addEventListener("pagehide",e),T=()=>t.removeEventListener("pagehide",e)}return E.initialized||G(D_.Pop,E.location,{initialHydration:!0}),x},subscribe:function(e){return p.add(e),()=>p.delete(e)},enableScrollRestoration:function(e,t,n){if(h=e,g=t,m=n||null,!v&&E.navigation===PD){v=!0;let e=de(E.location,E.matches);null!=e&&W({restoreScrollPosition:e})}return()=>{h=null,g=null,m=null}},navigate:async function t(n,r){if("number"==typeof n)return void e.history.go(n);let o=AD(E.location,E.matches,c,d.v7_prependBasename,n,d.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:i,submission:a,error:s}=LD(d.v7_normalizeFormMethod,!1,o,r),l=E.location,u=U_(E.location,i,r&&r.state);u=__({},u,e.history.encodeLocation(u));let f=r&&null!=r.replace?r.replace:void 0,p=D_.Push;!0===f?p=D_.Replace:!1===f||null!=a&&iB(a.formMethod)&&a.formAction===E.location.pathname+E.location.search&&(p=D_.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.unstable_flushSync),g=le({currentLocation:l,nextLocation:u,historyAction:p});if(!g)return await G(p,u,{submission:a,pendingError:s,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:m});se(g,{state:"blocked",location:u,proceed(){se(g,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(n,r)},reset(){let e=new Map(E.blockers);e.set(g,MD),W({blockers:e})}})},fetch:function(t,n,o,a){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");N.has(t)&&ne(t);let s=!0===(a&&a.unstable_flushSync),u=i||l,f=AD(E.location,E.matches,c,d.v7_prependBasename,o,d.v7_relativeSplatPath,n,null==a?void 0:a.relative),p=Y_(u,f,c);if(!p)return void J(t,n,QD(404,{pathname:f}),{flushSync:s});let{path:h,submission:m,error:g}=LD(d.v7_normalizeFormMethod,!0,f,a);if(g)return void J(t,n,g,{flushSync:s});let v=cB(p,h);O=!0===(a&&a.preventScrollReset),m&&iB(m.formMethod)?async function(t,n,r,o,a,s,u){if(Z(),B.delete(t),!o.route.action&&!o.route.lazy){let e=QD(405,{method:u.formMethod,pathname:r,routeId:n});return void J(t,n,e,{flushSync:s})}let f=E.fetchers.get(t);Q(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(u,f),{flushSync:s});let p=new AbortController,h=UD(e.history,r,p.signal,u);N.set(t,p);let m=A,g=await X("action",h,[o],a),v=g[0];if(h.signal.aborted)return void(N.get(t)===p&&N.delete(t));if(d.v7_fetcherPersist&&z.has(t)){if(rB(v)||nB(v))return void Q(t,pB(void 0))}else{if(rB(v))return N.delete(t),L>m?void Q(t,pB(void 0)):(D.add(t),Q(t,fB(u)),K(h,v,{fetcherSubmission:u}));if(nB(v))return void J(t,n,v.error)}if(tB(v))throw QD(400,{type:"defer-action"});let b=E.navigation.location||E.location,y=UD(e.history,b,p.signal),x=i||l,w="idle"!==E.navigation.state?Y_(x,E.navigation.location,c):E.matches;z_(w,"Didn't find any matches after fetcher action");let S=++A;_.set(t,S);let O=fB(u,v.data);E.fetchers.set(t,O);let[$,P]=_D(e.history,E,w,u,b,!1,d.unstable_skipActionErrorRevalidation,I,j,R,z,B,D,x,c,[o.route.id,v]);P.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=E.fetchers.get(t),r=fB(void 0,n?n.data:void 0);E.fetchers.set(t,r),N.has(t)&&ne(t),e.controller&&N.set(t,e.controller)})),W({fetchers:new Map(E.fetchers)});let T=()=>P.forEach((e=>ne(e.key)));p.signal.addEventListener("abort",T);let{loaderResults:M,fetcherResults:F}=await Y(E.matches,w,$,P,y);if(p.signal.aborted)return;p.signal.removeEventListener("abort",T),_.delete(t),N.delete(t),P.forEach((e=>N.delete(e.key)));let V=JD([...M,...F]);if(V){if(V.idx>=$.length){let e=P[V.idx-$.length].key;D.add(e)}return K(y,V.result)}let{loaderData:U,errors:G}=GD(E,E.matches,$,M,void 0,P,F,H);if(E.fetchers.has(t)){let e=pB(v.data);E.fetchers.set(t,e)}ie(S),"loading"===E.navigation.state&&S>L?(z_(k,"Expected pending action"),C&&C.abort(),q(E.navigation.location,{matches:w,loaderData:U,errors:G,fetchers:new Map(E.fetchers)})):(W({errors:G,loaderData:KD(E.loaderData,U,w,G),fetchers:new Map(E.fetchers)}),I=!1)}(t,n,h,v,p,s,m):(B.set(t,{routeId:n,path:h}),async function(t,n,r,o,i,a,s){let l=E.fetchers.get(t);Q(t,fB(s,l?l.data:void 0),{flushSync:a});let c=new AbortController,u=UD(e.history,r,c.signal);N.set(t,c);let d=A,f=await X("loader",u,[o],i),p=f[0];tB(p)&&(p=await sB(p,u.signal,!0)||p);N.get(t)===c&&N.delete(t);if(u.signal.aborted)return;if(z.has(t))return void Q(t,pB(void 0));if(rB(p))return L>d?void Q(t,pB(void 0)):(D.add(t),void(await K(u,p)));if(nB(p))return void J(t,n,p.error);z_(!tB(p),"Unhandled fetcher deferred data"),Q(t,pB(p.data))}(t,n,h,v,p,s,m))},revalidate:function(){Z(),W({revalidation:"loading"}),"submitting"!==E.navigation.state&&("idle"!==E.navigation.state?G(k||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation}):G(E.historyAction,E.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ee,deleteFetcher:function(e){if(d.v7_fetcherPersist){let t=(F.get(e)||0)-1;t<=0?(F.delete(e),z.add(e)):F.set(e,t)}else te(e);W({fetchers:new Map(E.fetchers)})},dispose:function(){f&&f(),T&&T(),p.clear(),C&&C.abort(),E.fetchers.forEach(((e,t)=>te(t))),E.blockers.forEach(((e,t)=>ae(t)))},getBlocker:function(e,t){let n=E.blockers.get(e)||MD;return V.get(e)!==t&&V.set(e,t),n},deleteBlocker:ae,_internalFetchControllers:N,_internalActiveDeferreds:H,_internalSetRoutes:function(e){s={},i=X_(e,o,void 0,s)}},x}function AD(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let e of t)if(l.push(e),e.route.id===a){c=e;break}}else l=t,c=t[t.length-1];let u=mD(o||".",hD(l,i),dD(e.pathname,n)||e.pathname,"path"===s);return null==o&&(u.search=e.search,u.hash=e.hash),null!=o&&""!==o&&"."!==o||!c||!c.route.index||lB(u.search)||(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(u.pathname="/"===u.pathname?n:gD([n,u.pathname])),W_(u)}function LD(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&!function(e){return kD.has(e.toLowerCase())}(r.formMethod))return{path:n,error:QD(405,{method:r.formMethod})};let o,i,a=()=>({path:n,error:QD(400,{type:"invalid-body"})}),s=r.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),c=eB(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!iB(l))return a();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!iB(l))return a();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:c,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(s7){return a()}}}if(z_("function"==typeof FormData,"FormData is not available in this environment"),r.formData)o=WD(r.formData),i=r.formData;else if(r.body instanceof FormData)o=WD(r.body),i=r.body;else if(r.body instanceof URLSearchParams)o=r.body,i=qD(o);else if(null==r.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(r.body),i=qD(o)}catch(s7){return a()}let u={formMethod:l,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(iB(u.formMethod))return{path:n,submission:u};let d=q_(n);return t&&d.search&&lB(d.search)&&o.append("index",""),d.search="?"+o,{path:W_(d),submission:u}}function _D(e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,m){let g=m?nB(m[1])?m[1].error:m[1].data:void 0,v=e.createURL(t.location),b=e.createURL(o),y=m&&nB(m[1])?m[0]:void 0,x=y?function(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}(n,y):n,w=m?m[1].statusCode:void 0,S=a&&w&&w>=400,C=x.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(i)return!("function"==typeof o.loader&&!o.loader.hydrate)||void 0===t.loaderData[o.id]&&(!t.errors||void 0===t.errors[o.id]);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=void 0===e[n.route.id];return r||o}(t.loaderData,t.matches[n],e)||l.some((t=>t===e.route.id)))return!0;let a=t.matches[n],c=e;return BD(e,__({currentUrl:v,currentParams:a.params,nextUrl:b,nextParams:c.params},r,{actionResult:g,unstable_actionStatus:w,defaultShouldRevalidate:!S&&(s||v.pathname+v.search===b.pathname+b.search||v.search!==b.search||DD(a,c))}))})),E=[];return d.forEach(((e,o)=>{if(i||!n.some((t=>t.route.id===e.routeId))||u.has(o))return;let a=Y_(p,e.path,h);if(!a)return void E.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(o),d=cB(a,e.path),m=!1;m=!f.has(o)&&(!!c.includes(o)||(l&&"idle"!==l.state&&void 0===l.data?s:BD(d,__({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:g,unstable_actionStatus:w,defaultShouldRevalidate:!S&&s})))),m&&E.push({key:o,routeId:e.routeId,path:e.path,matches:a,match:d,controller:new AbortController})})),[C,E]}function DD(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function BD(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function FD(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];z_(o,"No route found in manifest");let i={};for(let a in r){let e=void 0!==o[a]&&"hasErrorBoundary"!==a;H_(!e,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+a+'" will be ignored.'),e||K_.has(a)||(i[a]=r[a])}Object.assign(o,i),Object.assign(o,__({},t(o),{lazy:void 0}))}function zD(e){return Promise.all(e.matches.map((e=>e.resolve())))}function HD(e,t,n,r,o,i){let a=e.headers.get("Location");if(z_(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ID.test(a)){let s=r.slice(0,r.findIndex((e=>e.route.id===n))+1);a=AD(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function VD(e,t,n){if(ID.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=null!=dD(o.pathname,n);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function UD(e,t,n,r){let o=e.createURL(eB(t)).toString(),i={signal:n};if(r&&iB(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=WD(r.formData):i.body=r.formData}return new Request(o,i)}function WD(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function qD(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function GD(e,t,n,r,o,i,a,s){let{loaderData:l,errors:c}=function(e,t,n,r,o,i){let a,s={},l=null,c=!1,u={},d=r&&nB(r[1])?r[1].error:void 0;return n.forEach(((n,r)=>{let f=t[r].route.id;if(z_(!rB(n),"Cannot handle redirect results in processLoaderData"),nB(n)){let t=n.error;if(void 0!==d&&(t=d,d=void 0),l=l||{},i)l[f]=t;else{let n=YD(e,f);null==l[n.route.id]&&(l[n.route.id]=t)}s[f]=void 0,c||(c=!0,a=wD(n.error)?n.error.status:500),n.headers&&(u[f]=n.headers)}else tB(n)?(o.set(f,n.deferredData),s[f]=n.deferredData.data,null==n.statusCode||200===n.statusCode||c||(a=n.statusCode),n.headers&&(u[f]=n.headers)):(s[f]=n.data,n.statusCode&&200!==n.statusCode&&!c&&(a=n.statusCode),n.headers&&(u[f]=n.headers))})),void 0!==d&&r&&(l={[r[0]]:d},s[r[0]]=void 0),{loaderData:s,errors:l,statusCode:a||200,loaderHeaders:u}}(t,n,r,o,s,!1);for(let u=0;ue.route.id===t))+1):[...e];return n.reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function ZD(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function QD(e,t){let{pathname:n,routeId:r,method:o,type:i}=void 0===t?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i?s="defer() is not supported in actions":"invalid-body"===i&&(s="Unable to encode submission body")):403===e?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):404===e?(a="Not Found",s='No route matches URL "'+n+'"'):405===e&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new xD(e||500,a,new Error(s),!0)}function JD(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(rB(n))return{result:n,idx:t}}}function eB(e){return W_(__({},"string"==typeof e?q_(e):e,{hash:""}))}function tB(e){return e.type===G_.deferred}function nB(e){return e.type===G_.error}function rB(e){return(e&&e.type)===G_.redirect}function oB(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function iB(e){return CD.has(e.toLowerCase())}async function aB(e,t,n,r,o,i){for(let a=0;ae.route.id===l.route.id)),u=null!=c&&!DD(c,l)&&void 0!==(i&&i[l.route.id]);if(tB(s)&&(o||u)){let e=r[a];z_(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await sB(s,e,o).then((e=>{e&&(n[a]=e||n[a])}))}}}async function sB(e,t,n){if(void 0===n&&(n=!1),!(await e.deferredData.resolveData(t))){if(n)try{return{type:G_.data,data:e.deferredData.unwrappedData}}catch(s7){return{type:G_.error,error:s7}}return{type:G_.data,data:e.deferredData.data}}}function lB(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function cB(e,t){let n="string"==typeof t?q_(t).search:t.search;if(e[e.length-1].route.index&&lB(n||""))return e[e.length-1];let r=pD(e);return r[r.length-1]}function uB(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function dB(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function fB(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function pB(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function hB(){return hB=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0}));let r=F.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,hB({fromRouteId:t},o)))}),[e,t]);return r}():function(){wB()||z_(!1);let e=F.useContext(mB),{basename:t,future:n,navigator:r}=F.useContext(vB),{matches:o}=F.useContext(yB),{pathname:i}=SB(),a=JSON.stringify(hD(o,n.v7_relativeSplatPath)),s=F.useRef(!1);CB((()=>{s.current=!0}));let l=F.useCallback((function(n,o){if(void 0===o&&(o={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=mD(n,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:gD([t,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)}),[t,r,a,i,e]);return l}()}const kB=F.createContext(null);function OB(e){let t=F.useContext(yB).outlet;return t?F.createElement(kB.Provider,{value:e},t):t}function $B(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=F.useContext(vB),{matches:o}=F.useContext(yB),{pathname:i}=SB(),a=JSON.stringify(hD(o,r.v7_relativeSplatPath));return F.useMemo((()=>mD(e,JSON.parse(a),i,"path"===n)),[e,a,i,n])}function PB(e,t,n,r){wB()||z_(!1);let{navigator:o}=F.useContext(vB),{matches:i}=F.useContext(yB),a=i[i.length-1],s=a?a.params:{};!a||a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c,u=SB();if(t){var d;let e="string"==typeof t?q_(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||z_(!1),c=e}else c=u;let f=c.pathname||"/",p=f;if("/"!==l){let e=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=Y_(e,{pathname:p}),m=function(e,t,n,r){var o,i;void 0===t&&(t=[]);void 0===n&&(n=null);void 0===r&&(r=null);if(null==e){if(null==(i=n)||!i.errors)return null;e=n.matches}let a=e,s=null==(o=n)?void 0:o.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||z_(!1),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight(((e,r,o)=>{let i,u=!1,d=null,f=null;var p;n&&(i=s&&r.route.id?s[r.route.id]:void 0,d=r.route.errorElement||MB,l&&(c<0&&0===o?(p="route-fallback",!1||DB[p]||(DB[p]=!0),u=!0,f=null):c===o&&(u=!0,f=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,o+1)),m=()=>{let t;return t=i?d:u?f:r.route.Component?F.createElement(r.route.Component,null):r.route.element?r.route.element:e,F.createElement(jB,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?F.createElement(IB,{location:n.location,revalidation:n.revalidation,component:d,error:i,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()}),null)}(h&&h.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:gD([l,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:gD([l,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,r);return t&&m?F.createElement(bB.Provider,{value:{location:hB({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:D_.Pop}},m):m}function TB(){let e=function(){var e;let t=F.useContext(xB),n=AB(NB.UseRouteError),r=LB(NB.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=wD(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},t),n?F.createElement("pre",{style:r},n):null,null)}const MB=F.createElement(TB,null);class IB extends F.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){}render(){return void 0!==this.state.error?F.createElement(yB.Provider,{value:this.props.routeContext},F.createElement(xB.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jB(e){let{routeContext:t,match:n,children:r}=e,o=F.useContext(mB);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),F.createElement(yB.Provider,{value:t},r)}var RB=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(RB||{}),NB=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(NB||{});function AB(e){let t=F.useContext(gB);return t||z_(!1),t}function LB(e){let t=function(e){let t=F.useContext(yB);return t||z_(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||z_(!1),n.route.id}function _B(){let{matches:e,loaderData:t}=AB(NB.UseMatches);return F.useMemo((()=>e.map((e=>Z_(e,t)))),[e,t])}const DB={};function BB(e){let{to:t,replace:n,state:r,relative:o}=e;wB()||z_(!1);let{future:i,static:a}=F.useContext(vB),{matches:s}=F.useContext(yB),{pathname:l}=SB(),c=EB(),u=mD(t,hD(s,i.v7_relativeSplatPath),l,"path"===o),d=JSON.stringify(u);return F.useEffect((()=>c(JSON.parse(d),{replace:n,state:r,relative:o})),[c,d,o,n,r]),null}function FB(e){return OB(e.context)}function zB(e){let{basename:t="/",children:n=null,location:r,navigationType:o=D_.Pop,navigator:i,static:a=!1,future:s}=e;wB()&&z_(!1);let l=t.replace(/^\/*/,"/"),c=F.useMemo((()=>({basename:l,navigator:i,static:a,future:hB({v7_relativeSplatPath:!1},s)})),[l,s,i,a]);"string"==typeof r&&(r=q_(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,m=F.useMemo((()=>{let e=dD(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:p,key:h},navigationType:o}}),[l,u,d,f,p,h,o]);return null==m?null:F.createElement(vB.Provider,{value:c},F.createElement(bB.Provider,{children:n,value:m}))}function HB(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:F.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:F.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:F.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t} +/** + * React Router DOM v6.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function VB(){return VB=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function WB(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Promise((()=>{}));const qB=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],GB=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(s7){}function KB(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=VB({},t,{errors:XB(t.errors)})),t}function XB(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&"RouteErrorResponse"===o.__type)n[r]=new xD(o.status,o.statusText,o.data,!0===o.internal);else if(o&&"Error"===o.__type){if(o.__subType){let e=window[o.__subType];if("function"==typeof e)try{let t=new e(o.message);t.stack="",n[r]=t}catch(s7){}}if(null==n[r]){let e=new Error(o.message);e.stack="",n[r]=e}}else n[r]=o;return n}const YB=F.createContext({isTransitioning:!1}),ZB=F.createContext(new Map),QB=H.startTransition,JB=Ud.flushSync;function eF(e){JB?JB(e):e()}class tF{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function nF(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=F.useState(n.state),[a,s]=F.useState(),[l,c]=F.useState({isTransitioning:!1}),[u,d]=F.useState(),[f,p]=F.useState(),[h,m]=F.useState(),g=F.useRef(new Map),{v7_startTransition:v}=r||{},b=F.useCallback((e=>{v?function(e){QB?QB(e):e()}(e):e()}),[v]),y=F.useCallback(((e,t)=>{let{deletedFetchers:r,unstable_flushSync:o,unstable_viewTransitionOpts:a}=t;r.forEach((e=>g.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}));let l=null==n.window||"function"!=typeof n.window.document.startViewTransition;if(a&&!l){if(o){eF((()=>{f&&(u&&u.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:a.currentLocation,nextLocation:a.nextLocation})}));let t=n.window.document.startViewTransition((()=>{eF((()=>i(e)))}));return t.finished.finally((()=>{eF((()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}))})),void eF((()=>p(t)))}f?(u&&u.resolve(),f.skipTransition(),m({state:e,currentLocation:a.currentLocation,nextLocation:a.nextLocation})):(s(e),c({isTransitioning:!0,flushSync:!1,currentLocation:a.currentLocation,nextLocation:a.nextLocation}))}else o?eF((()=>i(e))):b((()=>i(e)))}),[n.window,f,u,g,b]);F.useLayoutEffect((()=>n.subscribe(y)),[n,y]),F.useEffect((()=>{l.isTransitioning&&!l.flushSync&&d(new tF)}),[l]),F.useEffect((()=>{if(u&&a&&n.window){let e=a,t=u.promise,r=n.window.document.startViewTransition((async()=>{b((()=>i(e))),await t}));r.finished.finally((()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})),p(r)}}),[b,a,u,n.window]),F.useEffect((()=>{u&&a&&o.location.key===a.location.key&&u.resolve()}),[u,f,o.location,a]),F.useEffect((()=>{!l.isTransitioning&&h&&(s(h.state),c({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}),m(void 0))}),[l.isTransitioning,h]),F.useEffect((()=>{}),[]);let x=F.useMemo((()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[n]),w=n.basename||"/",S=F.useMemo((()=>({router:n,navigator:x,static:!1,basename:w})),[n,x,w]);return F.createElement(F.Fragment,null,F.createElement(mB.Provider,{value:S},F.createElement(gB.Provider,{value:o},F.createElement(ZB.Provider,{value:g.current},F.createElement(YB.Provider,{value:l},F.createElement(zB,{basename:w,location:o.location,navigationType:o.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?F.createElement(rF,{routes:n.routes,future:n.future,state:o}):t))))),null)}function rF(e){let{routes:t,future:n,state:r}=e;return PB(t,void 0,r,n)}const oF="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,iF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,aF=F.forwardRef((function(e,t){let n,{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,unstable_viewTransition:d}=e,f=UB(e,qB),{basename:p}=F.useContext(vB),h=!1;if("string"==typeof c&&iF.test(c)&&(n=c,oF))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=dD(t.pathname,p);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:h=!0}catch(s7){}let m=function(e,t){let{relative:n}=void 0===t?{}:t;wB()||z_(!1);let{basename:r,navigator:o}=F.useContext(vB),{hash:i,pathname:a,search:s}=$B(e,{relative:n}),l=a;return"/"!==r&&(l="/"===a?r:gD([r,a])),o.createHref({pathname:l,search:s,hash:i})}(c,{relative:o}),g=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s}=void 0===t?{}:t,l=EB(),c=SB(),u=$B(e,{relative:a});return F.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:W_(c)===W_(u);l(e,{replace:n,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:s})}}),[c,l,u,r,o,n,e,i,a,s])}(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,unstable_viewTransition:d});return F.createElement("a",VB({},f,{href:n||m,onClick:h||i?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:l}))})),sF=F.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:o="",end:i=!1,style:a,to:s,unstable_viewTransition:l,children:c}=e,u=UB(e,GB),d=$B(s,{relative:u.relative}),f=SB(),p=F.useContext(gB),{navigator:h,basename:m}=F.useContext(vB),g=null!=p&&function(e,t){void 0===t&&(t={});let n=F.useContext(YB);null==n&&z_(!1);let{basename:r}=function(e){let t=F.useContext(mB);return t||z_(!1),t}(lF.useViewTransitionState),o=$B(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=dD(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=dD(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=cD(o.pathname,a)||null!=cD(o.pathname,i)}(d)&&!0===l,v=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,b=f.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;r||(b=b.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&m&&(y=dD(y,m)||y);const x="/"!==v&&v.endsWith("/")?v.length-1:v.length;let w,S=b===v||!i&&b.startsWith(v)&&"/"===b.charAt(x),C=null!=y&&(y===v||!i&&y.startsWith(v)&&"/"===y.charAt(v.length)),E={isActive:S,isPending:C,isTransitioning:g},k=S?n:void 0;w="function"==typeof o?o(E):[o,S?"active":null,C?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let O="function"==typeof a?a(E):a;return F.createElement(aF,VB({},u,{"aria-current":k,className:w,ref:t,style:O,to:s,unstable_viewTransition:l}),"function"==typeof c?c(E):c)}));var lF,cF;function uF(e){let t=F.useRef(WB(e)),n=F.useRef(!1),r=SB(),o=F.useMemo((()=>function(e,t){let n=WB(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),i=EB(),a=F.useCallback(((e,t)=>{const r=WB("function"==typeof e?e(o):e);n.current=!0,i("?"+r,t)}),[i,o]);return[o,a]}!function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(lF||(lF={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(cF||(cF={}));const dF=F.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),fF=F.createContext({}),pF=F.createContext(null),hF="undefined"!=typeof document,mF=hF?F.useLayoutEffect:F.useEffect,gF=F.createContext({strict:!1}),vF=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),bF="data-"+vF("framerAppearId");function yF(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function xF(e){return"string"==typeof e||Array.isArray(e)}function wF(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const SF=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],CF=["initial",...SF];function EF(e){return wF(e.animate)||CF.some((t=>xF(e[t])))}function kF(e){return Boolean(EF(e)||e.variants)}function OF(e){const{initial:t,animate:n}=function(e,t){if(EF(e)){const{initial:t,animate:n}=e;return{initial:!1===t||xF(t)?t:void 0,animate:xF(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,F.useContext(fF));return F.useMemo((()=>({initial:t,animate:n})),[$F(t),$F(n)])}function $F(e){return Array.isArray(e)?e.join(" "):e}const PF={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},TF={};for(const zie in PF)TF[zie]={isEnabled:e=>PF[zie].some((t=>!!e[t]))};function MF(e){for(const t in e)TF[t]={...TF[t],...e[t]}}const IF=F.createContext({}),jF=F.createContext({}),RF=Symbol.for("motionComponentSymbol");function NF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&MF(e);const i=F.forwardRef((function(i,a){let s;const l={...F.useContext(dF),...i,layoutId:AF(i)},{isStatic:c}=l,u=OF(i),d=r(i,c);if(!c&&hF){u.visualElement=function(e,t,n,r){const{visualElement:o}=F.useContext(fF),i=F.useContext(gF),a=F.useContext(pF),s=F.useContext(dF).reducedMotion,l=F.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const c=l.current;F.useInsertionEffect((()=>{c&&c.update(n,a)}));const u=F.useRef(Boolean(n[bF]&&!window.HandoffComplete));return mF((()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())})),F.useEffect((()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))})),c}(o,d,l,t);const n=F.useContext(jF),r=F.useContext(gF).strict;u.visualElement&&(s=u.visualElement.loadFeatures(l,r,e,n))}return F.createElement(fF.Provider,{value:u},s&&u.visualElement?F.createElement(s,{visualElement:u.visualElement,...l}):null,n(o,i,function(e,t,n){return F.useCallback((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):yF(n)&&(n.current=r))}),[t])}(d,u.visualElement,a),d,c,u.visualElement))}));return i[RF]=o,i}function AF({layoutId:e}){const t=F.useContext(IF).id;return t&&void 0!==e?t+"-"+e:e}const LF=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _F(e){return"string"==typeof e&&!e.includes("-")&&!!(LF.indexOf(e)>-1||/[A-Z]/.test(e))}const DF={};const BF=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],FF=new Set(BF);function zF(e,{layout:t,layoutId:n}){return FF.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!DF[e]||"opacity"===e)}const HF=e=>Boolean(e&&e.getVelocity),VF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UF=BF.length;const WF=e=>t=>"string"==typeof t&&t.startsWith(e),qF=WF("--"),GF=WF("var(--"),KF=(e,t)=>t&&"number"==typeof e?t.transform(e):e,XF=(e,t,n)=>Math.min(Math.max(n,e),t),YF={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ZF={...YF,transform:e=>XF(0,1,e)},QF={...YF,default:1},JF=e=>Math.round(1e5*e)/1e5,ez=/(-)?([\d]*\.?[\d])+/g,tz=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,nz=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function rz(e){return"string"==typeof e}const oz=e=>({test:t=>rz(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),iz=oz("deg"),az=oz("%"),sz=oz("px"),lz=oz("vh"),cz=oz("vw"),uz={...az,parse:e=>az.parse(e)/100,transform:e=>az.transform(100*e)},dz={...YF,transform:Math.round},fz={borderWidth:sz,borderTopWidth:sz,borderRightWidth:sz,borderBottomWidth:sz,borderLeftWidth:sz,borderRadius:sz,radius:sz,borderTopLeftRadius:sz,borderTopRightRadius:sz,borderBottomRightRadius:sz,borderBottomLeftRadius:sz,width:sz,maxWidth:sz,height:sz,maxHeight:sz,size:sz,top:sz,right:sz,bottom:sz,left:sz,padding:sz,paddingTop:sz,paddingRight:sz,paddingBottom:sz,paddingLeft:sz,margin:sz,marginTop:sz,marginRight:sz,marginBottom:sz,marginLeft:sz,rotate:iz,rotateX:iz,rotateY:iz,rotateZ:iz,scale:QF,scaleX:QF,scaleY:QF,scaleZ:QF,skew:iz,skewX:iz,skewY:iz,distance:sz,translateX:sz,translateY:sz,translateZ:sz,x:sz,y:sz,z:sz,perspective:sz,transformPerspective:sz,opacity:ZF,originX:uz,originY:uz,originZ:sz,zIndex:dz,fillOpacity:ZF,strokeOpacity:ZF,numOctaves:dz};function pz(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const d in t){const e=t[d];if(qF(d)){i[d]=e;continue}const n=fz[d],r=KF(e,n);if(FF.has(d)){if(l=!0,a[d]=r,!u)continue;e!==(n.default||0)&&(u=!1)}else d.startsWith("origin")?(c=!0,s[d]=r):o[d]=r}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function mz(e,t,n){for(const r in t)HF(t[r])||zF(r,n)||(e[r]=t[r])}function gz(e,t,n){const r={};return mz(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return F.useMemo((()=>{const r=hz();return pz(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function vz(e,t,n){const r={},o=gz(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const bz=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function yz(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bz.has(e)}let xz=e=>!yz(e);try{(wz=require("@emotion/is-prop-valid").default)&&(xz=e=>e.startsWith("on")?!yz(e):wz(e))}catch(Tie){}var wz;function Sz(e,t,n){return"string"==typeof e?e:sz.transform(t+n*e)}const Cz={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ez={offset:"strokeDashoffset",array:"strokeDasharray"};function kz(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d,f){if(pz(e,c,u,f),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:h,dimensions:m}=e;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==o||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){return`${Sz(t,e.x,e.width)} ${Sz(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Cz:Ez;e[i.offset]=sz.transform(-r);const a=sz.transform(t),s=sz.transform(n);e[i.array]=`${a} ${s}`}(p,a,s,l,!1)}const Oz=()=>({...hz(),attrs:{}}),$z=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Pz(e,t,n,r){const o=F.useMemo((()=>{const n=Oz();return kz(n,t,{enableHardwareAcceleration:!1},$z(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};mz(t,e.style,e),o.style={...t,...o.style}}return o}function Tz(e=!1){return(t,n,r,{latestValues:o},i)=>{const a=(_F(t)?Pz:vz)(n,o,i,t),s=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(xz(o)||!0===n&&yz(o)||!t&&!yz(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l={...s,...a,ref:r},{children:c}=n,u=F.useMemo((()=>HF(c)?c.get():c),[c]);return F.createElement(t,{...l,children:u})}}function Mz(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Iz=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function jz(e,t,n,r){Mz(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Iz.has(o)?o:vF(o),t.attrs[o])}function Rz(e,t){const{style:n}=e,r={};for(const o in n)(HF(n[o])||t.style&&HF(t.style[o])||zF(o,e))&&(r[o]=n[o]);return r}function Nz(e,t){const n=Rz(e,t);for(const r in e)if(HF(e[r])||HF(t[r])){n[-1!==BF.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function Az(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}function Lz(e){const t=F.useRef(null);return null===t.current&&(t.current=e()),t.current}const _z=e=>Array.isArray(e),Dz=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Bz=e=>_z(e)?e[e.length-1]||0:e;function Fz(e){const t=HF(e)?e.get():e;return Dz(t)?t.toValue():t}const zz=e=>(t,n)=>{const r=F.useContext(fF),o=F.useContext(pF),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Hz(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():Lz(i)};function Hz(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Fz(i[f]);let{initial:a,animate:s}=e;const l=EF(e),c=kF(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!wF(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=Az(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const Vz=e=>e;class Uz{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const Wz=["prepare","read","update","preRender","render","postRender"];const{schedule:qz,cancel:Gz,state:Kz,steps:Xz}=function(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=Wz.reduce(((e,t)=>(e[t]=function(e){let t=new Uz,n=new Uz,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),c.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;nn=!0)),e)),{}),a=e=>i[e].process(o),s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,Wz.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=Wz.reduce(((t,a)=>{const l=i[a];return t[a]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(s)),l.schedule(t,i,a)),t}),{});return{schedule:l,cancel:e=>Wz.forEach((t=>i[t].cancel(e))),state:o,steps:i}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Vz,!0),Yz={useVisualState:zz({scrapeMotionValuesFromProps:Nz,createRenderState:Oz,onMount:(e,t,{renderState:n,latestValues:r})=>{qz.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(s7){n.dimensions={x:0,y:0,width:0,height:0}}})),qz.render((()=>{kz(n,r,{enableHardwareAcceleration:!1},$z(t.tagName),e.transformTemplate),jz(t,n)}))}})},Zz={useVisualState:zz({scrapeMotionValuesFromProps:Rz,createRenderState:hz})};function Qz(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Jz=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eH(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const tH=e=>t=>Jz(t)&&e(t,eH(t));function nH(e,t,n,r){return Qz(e,t,tH(n),r)}const rH=(e,t)=>n=>t(e(n)),oH=(...e)=>e.reduce(rH);function iH(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const aH=iH("dragHorizontal"),sH=iH("dragVertical");function lH(e){let t=!1;if("y"===e)t=sH();else if("x"===e)t=aH();else{const e=aH(),n=sH();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function cH(){const e=lH(!0);return!e||(e(),!1)}class uH{constructor(e){this.isMounted=!1,this.node=e}update(){}}function dH(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return nH(e.current,n,((n,o)=>{if("touch"===n.pointerType||cH())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&qz.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const fH=(e,t)=>!!t&&(e===t||fH(e,t.parentElement));function pH(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,eH(n))}const hH=new WeakMap,mH=new WeakMap,gH=e=>{const t=hH.get(e.target);t&&t(e)},vH=e=>{e.forEach(gH)};function bH(e,t,n){const r=function({root:e,...t}){const n=e||document;mH.has(n)||mH.set(n,{});const r=mH.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(vH,{root:e,...t})),r[o]}(t);return hH.set(e,n),r.observe(e),()=>{hH.delete(e),r.unobserve(e)}}const yH={some:0,all:1};const xH={inView:{Feature:class extends uH{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:yH[r]};return bH(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends uH{constructor(){super(...arguments),this.removeStartListeners=Vz,this.removeEndListeners=Vz,this.removeAccessibleListeners=Vz,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=nH(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps();qz.update((()=>{o||fH(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=nH(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=oH(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Qz(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Qz(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&pH("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&qz.update((()=>n(e,t)))}))})),pH("down",((e,t)=>{this.startPress(e,t)}))})),t=Qz(this.node.current,"blur",(()=>{this.isPressing&&pH("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=oH(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&qz.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!cH()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&qz.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=nH(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Qz(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=oH(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends uH{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(s7){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=oH(Qz(this.node.current,"focus",(()=>this.onFocus())),Qz(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends uH{mount(){this.unmount=oH(dH(this.node,!0),dH(this.node,!1))}unmount(){}}}};function wH(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}let CH=Vz,EH=Vz;const kH=e=>1e3*e,OH=e=>e/1e3,$H=!1,PH=e=>Array.isArray(e)&&"number"==typeof e[0];function TH(e){return Boolean(!e||"string"==typeof e&&IH[e]||PH(e)||Array.isArray(e)&&e.every(TH))}const MH=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,IH={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:MH([0,.65,.55,1]),circOut:MH([.55,0,1,.45]),backIn:MH([.31,.01,.66,-.59]),backOut:MH([.33,1.53,.69,.99])};function jH(e){if(e)return PH(e)?MH(e):Array.isArray(e)?e.map(jH):IH[e]}const RH=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,NH=1e-7,AH=12;function LH(e,t,n,r){if(e===t&&n===r)return Vz;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=RH(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>NH&&++s0===e||1===e?e:RH(o(e),t,r)}const _H=LH(.42,0,1,1),DH=LH(0,0,.58,1),BH=LH(.42,0,.58,1),FH=e=>Array.isArray(e)&&"number"!=typeof e[0],zH=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,HH=e=>t=>1-e(1-t),VH=e=>1-Math.sin(Math.acos(e)),UH=HH(VH),WH=zH(VH),qH=LH(.33,1.53,.69,.99),GH=HH(qH),KH=zH(GH),XH={linear:Vz,easeIn:_H,easeInOut:BH,easeOut:DH,circIn:VH,circInOut:WH,circOut:UH,backIn:GH,backInOut:KH,backOut:qH,anticipate:e=>(e*=2)<1?.5*GH(e):.5*(2-Math.pow(2,-10*(e-1)))},YH=e=>{if(Array.isArray(e)){EH(4===e.length);const[t,n,r,o]=e;return LH(t,n,r,o)}return"string"==typeof e?XH[e]:e},ZH=(e,t)=>n=>Boolean(rz(n)&&nz.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),QH=(e,t,n)=>r=>{if(!rz(r))return r;const[o,i,a,s]=r.match(ez);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},JH={...YF,transform:e=>Math.round((e=>XF(0,255,e))(e))},eV={test:ZH("rgb","red"),parse:QH("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+JH.transform(e)+", "+JH.transform(t)+", "+JH.transform(n)+", "+JF(ZF.transform(r))+")"};const tV={test:ZH("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:eV.transform},nV={test:ZH("hsl","hue"),parse:QH("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+az.transform(JF(t))+", "+az.transform(JF(n))+", "+JF(ZF.transform(r))+")"},rV={test:e=>eV.test(e)||tV.test(e)||nV.test(e),parse:e=>eV.test(e)?eV.parse(e):nV.test(e)?nV.parse(e):tV.parse(e),transform:e=>rz(e)?e:e.hasOwnProperty("red")?eV.transform(e):nV.transform(e)},oV=(e,t,n)=>-n*e+n*t+e;function iV(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const aV=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},sV=[tV,eV,nV];function lV(e){const t=(e=>sV.find((t=>t.test(e))))(e);let n=t.parse(e);return t===nV&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=iV(s,r,e+1/3),i=iV(s,r,e),a=iV(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const cV=(e,t)=>{const n=lV(e),r=lV(t),o={...n};return e=>(o.red=aV(n.red,r.red,e),o.green=aV(n.green,r.green,e),o.blue=aV(n.blue,r.blue,e),o.alpha=oV(n.alpha,r.alpha,e),eV.transform(o))};const uV={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:Vz},dV={regex:tz,countKey:"Colors",token:"${c}",parse:rV.parse},fV={regex:ez,countKey:"Numbers",token:"${n}",parse:YF.parse};function pV(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function hV(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&pV(n,uV),pV(n,dV),pV(n,fV),n}function mV(e){return hV(e).values}function gV(e){const{values:t,numColors:n,numVars:r,tokenised:o}=hV(e),i=t.length;return e=>{let t=o;for(let o=0;o"number"==typeof e?0:e;const bV={test:function(e){var t,n;return isNaN(e)&&rz(e)&&((null===(t=e.match(ez))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(tz))||void 0===n?void 0:n.length)||0)>0},parse:mV,createTransformer:gV,getAnimatableNone:function(e){const t=mV(e);return gV(e)(t.map(vV))}},yV=(e,t)=>n=>`${n>0?t:e}`;function xV(e,t){return"number"==typeof e?n=>oV(e,t,n):rV.test(e)?cV(e,t):e.startsWith("var(")?yV(e,t):CV(e,t)}const wV=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>xV(e,t[n])));return e=>{for(let t=0;t{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=xV(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},CV=(e,t)=>{const n=bV.createTransformer(t),r=hV(e),o=hV(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?oH(wV(r.values,o.values),n):yV(e,t)},EV=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},kV=(e,t)=>n=>oV(e,t,n);function OV(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?kV:"string"==typeof e?rV.test(e)?cV:CV:Array.isArray(e)?wV:"object"==typeof e?SV:kV}(e[0]),i=e.length-1;for(let a=0;at[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=OV(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;nl(XF(e[0],e[i-1],t)):l}function PV(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=EV(0,t,r);e.push(oV(n,1,o))}}(t,e.length-1),t}function TV(e,t){return e.map((()=>t||BH)).splice(0,e.length-1)}function MV({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=FH(r)?r.map(YH):YH(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:PV(t),e),s=$V(a,t,{ease:Array.isArray(o)?o:TV(t,o)});return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function IV(e,t){return t?e*(1e3/t):0}const jV=5;function RV(e,t,n){const r=Math.max(t-jV,0);return IV(n-e(r),t-r)}const NV=.001,AV=.01,LV=10,_V=.05,DV=1;function BV({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;CH(e<=kH(LV));let a=1-t;a=XF(_V,DV,a),e=XF(AV,LV,OH(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=zV(t,a),l=Math.exp(-o);return NV-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=zV(Math.pow(t,2),a);return(-o(t)+NV>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-NV,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let o=1;ovoid 0!==e[t]))}function WV({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!UV(e,VV)&&UV(e,HV)){const n=BV(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...r,velocity:-OH(r.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(s*c)),m=i-o,g=OH(Math.sqrt(s/c)),v=Math.abs(m)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),h<1){const e=zV(g,h);b=t=>{const n=Math.exp(-h*g*t);return i-n*((p+h*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===h)b=e=>i-Math.exp(-g*e)*(m+(p+g*m)*e);else{const e=g*Math.sqrt(h*h-1);b=t=>{const n=Math.exp(-h*g*t),r=Math.min(e*t,300);return i-n*((p+h*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:f&&u||null,next:e=>{const r=b(e);if(f)a.done=e>=u;else{let o=p;0!==e&&(o=h<1?RV(b,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function qV({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)-h*Math.exp(-e/r),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let x,w;const S=e=>{(e=>void 0!==s&&el)(f.value)&&(x=e,w=WV({keyframes:[f.value,p(f.value)],velocity:RV(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,y(e),S(e)),void 0!==x&&e>x?w.next(e-x):(!t&&y(e),f)}}}const GV=e=>{const t=({timestamp:t})=>e(t);return{start:()=>qz.update(t,!0),stop:()=>Gz(t),now:()=>Kz.isProcessing?Kz.timestamp:performance.now()}},KV=2e4;function XV(e){let t=0;let n=e.next(t);for(;!n.done&&t=KV?1/0:t}const YV={decay:qV,inertia:qV,tween:MV,keyframes:MV,spring:WV};function ZV({autoplay:e=!0,delay:t=0,driver:n=GV,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let p,h,m=1,g=!1;const v=()=>{h=new Promise((e=>{p=e}))};let b;v();const y=YV[o]||MV;let x;y!==MV&&"number"!=typeof r[0]&&(x=$V([0,100],r,{clamp:!1}),r=[0,100]);const w=y({...f,keyframes:r});let S;"mirror"===s&&(S=y({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let C="idle",E=null,k=null,O=null;null===w.calculatedDuration&&i&&(w.calculatedDuration=XV(w));const{calculatedDuration:$}=w;let P=1/0,T=1/0;null!==$&&(P=$+a,T=P*(i+1)-a);let M=0;const I=e=>{if(null===k)return;m>0&&(k=Math.min(k,e)),m<0&&(k=Math.min(e-T/m,k)),M=null!==E?E:Math.round(e-k)*m;const n=M-t*(m>=0?1:-1),o=m>=0?n<0:n>T;M=Math.max(n,0),"finished"===C&&null===E&&(M=T);let l=M,c=w;if(i){const e=Math.min(M,T)/P;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);Boolean(t%2)&&("reverse"===s?(n=1-n,a&&(n-=a/P)):"mirror"===s&&(c=S)),l=XF(0,1,n)*P}const u=o?{done:!1,value:r[0]}:c.next(l);x&&(u.value=x(u.value));let{done:f}=u;o||null===$||(f=m>=0?M>=T:M<=0);const p=null===E&&("finished"===C||"running"===C&&f);return d&&d(u.value),p&&N(),u},j=()=>{b&&b.stop(),b=void 0},R=()=>{C="idle",j(),p(),v(),k=O=null},N=()=>{C="finished",u&&u(),j(),p()},A=()=>{if(g)return;b||(b=n(I));const e=b.now();l&&l(),null!==E?k=e-E:k&&"finished"!==C||(k=e),"finished"===C&&v(),O=k,E=null,C="running",b.start()};e&&A();const L={then:(e,t)=>h.then(e,t),get time(){return OH(M)},set time(e){e=kH(e),M=e,null===E&&b&&0!==m?k=b.now()-e/m:E=e},get duration(){const e=null===w.calculatedDuration?XV(w):w.calculatedDuration;return OH(e)},get speed(){return m},set speed(e){e!==m&&b&&(m=e,L.time=OH(M))},get state(){return C},play:A,pause:()=>{C="paused",E=M},stop:()=>{g=!0,"idle"!==C&&(C="idle",c&&c(),R())},cancel:()=>{null!==O&&I(O),R()},complete:()=>{C="finished"},sample:e=>(k=0,I(e))};return L}const QV=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),JV=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function eU(e,t,{onUpdate:n,onComplete:r,...o}){if(!(QV()&&JV.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1,l=!1;const c=()=>{a=new Promise((e=>{i=e}))};c();let{keyframes:u,duration:d=300,ease:f,times:p}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!TH(t.ease))(t,o)){const e=ZV({...o,repeat:0,delay:0});let t={done:!1,value:u[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;p=void 0,u=n,d=r-10,f="linear"}const h=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=jH(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,u,{...o,duration:d,ease:f,times:p}),m=()=>{l=!1,h.cancel()},g=()=>{l=!0,qz.update(m),i(),c()};h.onfinish=()=>{l||(e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(u,o)),r&&r(),g())};return{then:(e,t)=>a.then(e,t),attachTimeline:e=>(h.timeline=e,h.onfinish=null,Vz),get time(){return OH(h.currentTime||0)},set time(e){h.currentTime=kH(e)},get speed(){return h.playbackRate},set speed(e){h.playbackRate=e},get duration(){return OH(d)},play:()=>{s||(h.play(),Gz(m))},pause:()=>h.pause(),stop:()=>{if(s=!0,"idle"===h.playState)return;const{currentTime:t}=h;if(t){const n=ZV({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}g()},complete:()=>{l||h.finish()},cancel:g}}const tU={type:"spring",stiffness:500,damping:25,restSpeed:10},nU={type:"keyframes",duration:.8},rU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},oU=(e,{keyframes:t})=>t.length>2?nU:FF.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:tU:rU,iU=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!bV.test(t)&&"0"!==t||t.startsWith("url("))),aU=new Set(["brightness","contrast","saturate","opacity"]);function sU(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ez)||[];if(!r)return e;const o=n.replace(r,"");let i=aU.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const lU=/([a-z-]*)\(.*?\)/g,cU={...bV,getAnimatableNone:e=>{const t=e.match(lU);return t?t.map(sU).join(" "):e}},uU={...fz,color:rV,backgroundColor:rV,outlineColor:rV,fill:rV,stroke:rV,borderColor:rV,borderTopColor:rV,borderRightColor:rV,borderBottomColor:rV,borderLeftColor:rV,filter:cU,WebkitFilter:cU},dU=e=>uU[e];function fU(e,t){let n=dU(e);return n!==cU&&(n=bV),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const pU=e=>/^0[^.\s]+$/.test(e);function hU(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||pU(e):void 0}function mU(e,t){return e[t]||e.default||e}const gU=!1,vU=(e,t,n,r={})=>o=>{const i=mU(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=kH(a);const l=function(e,t,n,r){const o=iU(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const a=void 0!==r.from?r.from:e.get();let s;const l=[];for(let c=0;c{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(p={...p,...oU(e,p)}),p.duration&&(p.duration=kH(p.duration)),p.repeatDelay&&(p.repeatDelay=kH(p.repeatDelay)),!d||!f||$H||!1===i.type||gU)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Vz,pause:Vz,stop:Vz,then:e=>(e(),Promise.resolve()),cancel:Vz,complete:Vz});return t?ZV({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=eU(t,e,p);if(n)return n}return ZV(p)};function bU(e){return Boolean(HF(e)&&e.add)}const yU=e=>/^\-?\d*\.?\d+$/.test(e);function xU(e,t){-1===e.indexOf(t)&&e.push(t)}function wU(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class SU{constructor(){this.subscriptions=[]}add(e){return xU(this.subscriptions,e),()=>wU(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=Kz;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,qz.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>qz.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new SU);const n=this.events[e].add(t);return"change"===e?()=>{n(),qz.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?IV(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function EU(e,t){return new CU(e,t)}const kU=e=>t=>t.test(e),OU=[YF,sz,az,iz,cz,lz,{test:e=>"auto"===e,parse:e=>e}],$U=e=>OU.find(kU(e)),PU=[...OU,rV,bV],TU=e=>PU.find(kU(e));function MU(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,EU(n))}function IU(e,t){if(!t)return;return(t[e]||t.default||t).from}function jU({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function RU(e,t){const n=e.get();if(!Array.isArray(t))return n!==t;for(let r=0;rl.remove(d)))),c.push(f)}return a&&Promise.all(c).then((()=>{a&&function(e,t){const n=SH(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i)MU(e,a,Bz(i[a]))}(e,a)})),c}function AU(e,t,n={}){const r=SH(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(NU(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(LU).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(AU(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function LU(e,t){return e.sortNodePosition(t)}const _U=[...SF].reverse(),DU=SF.length;function BU(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>AU(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=AU(e,t,n);else{const o="function"==typeof t?SH(e,t,n.custom):t;r=Promise.all(NU(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function FU(e){let t=BU(e);const n={animate:HU(!0),whileInView:HU(),whileHover:HU(),whileTap:HU(),whileDrag:HU(),whileFocus:HU(),exit:HU()};let r=!0;const o=(t,n)=>{const r=SH(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;tf&&g,x=!1;const w=Array.isArray(m)?m:[m];let S=w.reduce(o,{});!1===v&&(S={});const{prevResolvedValues:C={}}=h,E={...C,...S},k=e=>{y=!0,u.has(e)&&(x=!0,u.delete(e)),h.needsAnimating[e]=!0};for(const e in E){const t=S[e],n=C[e];if(d.hasOwnProperty(e))continue;let r=!1;r=_z(t)&&_z(n)?!wH(t,n):t!==n,r?void 0!==t?k(e):u.add(e):void 0!==t&&u.has(e)?k(e):h.protectedKeys[e]=!0}h.prevProp=m,h.prevResolvedValues=S,h.isActive&&(d={...d,...S}),r&&e.blockInitialAnimation&&(y=!1),!y||b&&!x||c.push(...w.map((e=>({animation:e,options:{type:p,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let p=Boolean(c.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,p?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function zU(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!wH(t,e)}function HU(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let VU=0;const UU={animation:{Feature:class extends uH{constructor(e){super(e),e.animationState||(e.animationState=FU(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),wF(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends uH{constructor(){super(...arguments),this.id=VU++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},WU=(e,t)=>Math.abs(e-t);class qU{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=XU(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=WU(e.x,t.x),r=WU(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Kz;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=GU(t,this.transformPagePoint),qz.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=XU("pointercancel"===e.type?this.lastMoveEventInfo:GU(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Jz(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=GU(eH(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=Kz;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,XU(i,this.history)),this.removeListeners=oH(nH(this.contextWindow,"pointermove",this.handlePointerMove),nH(this.contextWindow,"pointerup",this.handlePointerUp),nH(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Gz(this.updatePoint)}}function GU(e,t){return t?{point:t(e.point)}:e}function KU(e,t){return{x:e.x-t.x,y:e.y-t.y}}function XU({point:e},t){return{point:e,delta:KU(e,ZU(t)),offset:KU(e,YU(t)),velocity:QU(t,.1)}}function YU(e){return e[0]}function ZU(e){return e[e.length-1]}function QU(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=ZU(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>kH(t)));)n--;if(!r)return{x:0,y:0};const i=OH(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function JU(e){return e.max-e.min}function eW(e,t=0,n=.01){return Math.abs(e-t)<=n}function tW(e,t,n,r=.5){e.origin=r,e.originPoint=oV(t.min,t.max,e.origin),e.scale=JU(n)/JU(t),(eW(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=oV(n.min,n.max,e.origin)-e.originPoint,(eW(e.translate)||isNaN(e.translate))&&(e.translate=0)}function nW(e,t,n,r){tW(e.x,t.x,n.x,r?r.originX:void 0),tW(e.y,t.y,n.y,r?r.originY:void 0)}function rW(e,t,n){e.min=n.min+t.min,e.max=e.min+JU(t)}function oW(e,t,n){e.min=t.min-n.min,e.max=e.min+JU(t)}function iW(e,t,n){oW(e.x,t.x,n.x),oW(e.y,t.y,n.y)}function aW(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function sW(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),fW=()=>({x:{min:0,max:0},y:{min:0,max:0}});function pW(e){return[e("x"),e("y")]}function hW({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function mW(e){return void 0===e||1===e}function gW({scale:e,scaleX:t,scaleY:n}){return!mW(e)||!mW(t)||!mW(n)}function vW(e){return gW(e)||bW(e)||e.z||e.rotate||e.rotateX||e.rotateY}function bW(e){return yW(e.x)||yW(e.y)}function yW(e){return e&&"0%"!==e}function xW(e,t,n){return n+t*(e-n)}function wW(e,t,n,r,o){return void 0!==o&&(e=xW(e,o,r)),xW(e,n,r)+t}function SW(e,t=0,n=1,r,o){e.min=wW(e.min,t,n,r,o),e.max=wW(e.max,t,n,r,o)}function CW(e,{x:t,y:n}){SW(e.x,t.translate,t.scale,t.originPoint),SW(e.y,n.translate,n.scale,n.originPoint)}function EW(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function kW(e,t){e.min=e.min+t,e.max=e.max+t}function OW(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=oV(e.min,e.max,i);SW(e,t[n],t[r],a,t.scale)}const $W=["x","scaleX","originX"],PW=["y","scaleY","originY"];function TW(e,t){OW(e.x,t,$W),OW(e.y,t,PW)}function MW(e,t){return hW(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const IW=({current:e})=>e?e.ownerDocument.defaultView:null,jW=new WeakMap;class RW{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=fW(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new qU(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(eH(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=lH(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pW((e=>{let t=this.getAxisMotionValue(e).get()||0;if(az.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=JU(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&qz.update((()=>o(e,t)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>pW((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:IW(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&qz.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!NW(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?oV(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&yF(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:aW(e.x,n,o),y:aW(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=lW){return!1===e?e=0:!0===e&&(e=lW),{x:cW(e,"left","right"),y:cW(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&pW((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!yF(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=MW(e,n),{scroll:o}=t;return o&&(kW(r.x,o.offset.x),kW(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:sW(e.x,t.x),y:sW(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=hW(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=pW((a=>{if(!NW(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(vU(e,n,0,t))}stopAnimation(){pW((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){pW((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){pW((t=>{const{drag:n}=this.getProps();if(!NW(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-oV(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!yF(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};pW((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=JU(e),o=JU(t);return o>r?n=EV(t.min,t.max-r,e.min):r>o&&(n=EV(e.min,e.max-o,t.min)),XF(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),pW((t=>{if(!NW(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(oV(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;jW.set(this.visualElement,this);const e=nH(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();yF(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=Qz(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(pW((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=lW,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function NW(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const AW=e=>(t,n)=>{e&&qz.update((()=>e(t,n)))};const LW={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function _W(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const DW={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!sz.test(e))return e;e=parseFloat(e)}return`${_W(e,t.target.x)}% ${_W(e,t.target.y)}%`}},BW={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=bV.parse(e);if(o.length>5)return r;const i=bV.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=oV(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class FW extends z.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=HW,Object.assign(DF,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),LW.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||qz.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function zW(e){const[t,n]=function(){const e=F.useContext(pF);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=F.useId();return F.useEffect((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=F.useContext(IF);return z.createElement(FW,{...e,layoutGroup:r,switchLayoutGroup:F.useContext(jF),isPresent:t,safeToRemove:n})}const HW={borderRadius:{...DW,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:DW,borderTopRightRadius:DW,borderBottomLeftRadius:DW,borderBottomRightRadius:DW,boxShadow:BW},VW=["TopLeft","TopRight","BottomLeft","BottomRight"],UW=VW.length,WW=e=>"string"==typeof e?parseFloat(e):e,qW=e=>"number"==typeof e||sz.test(e);function GW(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const KW=YW(0,.5,UH),XW=YW(.5,.95,Vz);function YW(e,t,n){return r=>rt?1:n(EV(e,t,r))}function ZW(e,t){e.min=t.min,e.max=t.max}function QW(e,t){ZW(e.x,t.x),ZW(e.y,t.y)}function JW(e,t,n,r,o){return e=xW(e-=t,1/n,r),void 0!==o&&(e=xW(e,1/o,r)),e}function eq(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){az.test(t)&&(t=parseFloat(t),t=oV(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=oV(i.min,i.max,r);e===i&&(s-=t),e.min=JW(e.min,t,n,s,o),e.max=JW(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const tq=["x","scaleX","originX"],nq=["y","scaleY","originY"];function rq(e,t,n,r){eq(e.x,t,tq,n?n.x:void 0,r?r.x:void 0),eq(e.y,t,nq,n?n.y:void 0,r?r.y:void 0)}function oq(e){return 0===e.translate&&1===e.scale}function iq(e){return oq(e.x)&&oq(e.y)}function aq(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function sq(e){return JU(e.x)/JU(e.y)}class lq{constructor(){this.members=[]}add(e){xU(this.members,e),e.scheduleRender()}remove(e){if(wU(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function cq(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const uq=(e,t)=>e.depth-t.depth;class dq{constructor(){this.children=[],this.isDirty=!1}add(e){xU(this.children,e),this.isDirty=!0}remove(e){wU(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(uq),this.isDirty=!1,this.children.forEach(e)}}const fq=["","X","Y","Z"],pq={visibility:"hidden"};let hq=0;const mq={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function gq({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=hq++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,mq.totalNodes=mq.resolvedTargetDeltas=mq.recalculatedProjection=0,this.nodes.forEach(yq),this.nodes.forEach(Oq),this.nodes.forEach($q),this.nodes.forEach(xq),e=mq,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Gz(r),e(i-t))};return qz.read(r,!0),()=>Gz(r)}(r,250),LW.hasAnimatedSinceResize&&(LW.hasAnimatedSinceResize=!1,this.nodes.forEach(kq))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||Rq,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!aq(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...mU(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||kq(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Gz(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Pq),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;othis.update())))}clearAllSnapshots(){this.nodes.forEach(wq),this.sharedNodes.forEach(Tq)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,qz.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){qz.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n{const n=t/1e3;Mq(i.x,e.x,n),Mq(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(iW(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Iq(e.x,t.x,n.x,r),Iq(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=fW()),QW(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=oV(0,void 0!==n.opacity?n.opacity:1,KW(r)),e.opacityExit=oV(void 0!==t.opacity?t.opacity:1,0,XW(r))):i&&(e.opacity=oV(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let a=0;a{LW.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=HF(e)?e:EU(e);return r.start(vU("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&_q(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||fW();const t=JU(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=JU(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}QW(t,n),TW(t,o),nW(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new lq);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let o=0;o{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Sq),this.root.sharedNodes.clear()}}}function vq(e){e.updateLayout()}function bq(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?pW((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=JU(r);r.min=t[e].min,r.max=r.min+o})):_q(o,n.layoutBox,t)&&pW((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=JU(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=dW();nW(a,t,n.layoutBox);const s=dW();i?nW(s,e.applyTransform(r,!0),n.measuredBox):nW(s,t,n.layoutBox);const l=!iq(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=fW();iW(a,n.layoutBox,o.layoutBox);const s=fW();iW(s,t,i.layoutBox),aq(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function yq(e){mq.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function xq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function wq(e){e.clearSnapshot()}function Sq(e){e.clearMeasurements()}function Cq(e){e.isLayoutDirty=!1}function Eq(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function kq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Oq(e){e.resolveTargetDelta()}function $q(e){e.calcProjection()}function Pq(e){e.resetRotation()}function Tq(e){e.removeLeadSnapshot()}function Mq(e,t,n){e.translate=oV(t.translate,0,n),e.scale=oV(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Iq(e,t,n,r){e.min=oV(t.min,n.min,r),e.max=oV(t.max,n.max,r)}function jq(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Rq={duration:.45,ease:[.4,0,.1,1]},Nq=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),Aq=Nq("applewebkit/")&&!Nq("chrome/")?Math.round:Vz;function Lq(e){e.min=Aq(e.min),e.max=Aq(e.max)}function _q(e,t,n){return"position"===e||"preserve-aspect"===e&&!eW(sq(t),sq(n),.2)}const Dq=gq({attachResizeListener:(e,t)=>Qz(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Bq={current:void 0},Fq=gq({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Bq.current){const e=new Dq({});e.mount(window),e.setOptions({layoutScroll:!0}),Bq.current=e}return Bq.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),zq={pan:{Feature:class extends uH{constructor(){super(...arguments),this.removePointerDownListener=Vz}onPointerDown(e){this.session=new qU(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:IW(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:AW(e),onStart:AW(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&qz.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=nH(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends uH{constructor(e){super(e),this.removeGroupControls=Vz,this.removeListeners=Vz,this.controls=new RW(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Vz}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Fq,MeasureLayout:zW}},Hq=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Vq(e,t,n=1){const[r,o]=function(e){const t=Hq.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return yU(e)?parseFloat(e):e}return GF(o)?Vq(o,t,n+1):o}const Uq=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Wq=e=>Uq.has(e),qq=e=>e===YF||e===sz,Gq=(e,t)=>parseFloat(e.split(", ")[t]),Kq=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Gq(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Gq(t[1],e):0}},Xq=new Set(["x","y","z"]),Yq=BF.filter((e=>!Xq.has(e)));const Zq={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Kq(4,13),y:Kq(5,14)};Zq.translateX=Zq.x,Zq.translateY=Zq.y;const Qq=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Wq);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=$U(c);const d=t[o];let f;if(_z(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=$U(c);for(let n=t;n{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=Zq[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=Zq[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),hF&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Jq(e,t,n,r){return(e=>Object.keys(e).some(Wq))(t)?Qq(e,t,n,r):{target:t,transitionEnd:r}}const eG=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!GF(t))return;const n=Vq(t,r);n&&e.set(n)}));for(const o in t){const e=t[o];if(!GF(e))continue;const i=Vq(e,r);i&&(t[o]=i,n||(n={}),void 0===n[o]&&(n[o]=e))}return{target:t,transitionEnd:n}}(e,t,r);return Jq(e,t=o.target,n,r=o.transitionEnd)},tG={current:null},nG={current:!1};const rG=new WeakMap,oG=Object.keys(TF),iG=oG.length,aG=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],sG=CF.length;class lG{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>qz.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=EF(t),this.isVariantNode=kF(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const u in c){const e=c[u];void 0!==a[u]&&HF(e)&&(e.set(a[u],!1),bU(l)&&l.add(u))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,rG.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),nG.current||function(){if(nG.current=!0,hF)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tG.current=e.matches;e.addListener(t),t()}else tG.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tG.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){rG.delete(this.current),this.projection&&this.projection.unmount(),Gz(this.notifyUpdate),Gz(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=FF.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&qz.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,a;for(let s=0;sthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):fW()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;nt.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=EU(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Az(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||HF(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new SU),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class cG extends lG{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=IU(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){Mz(e,t,n,r)}}class dG extends cG{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(FF.has(t)){const e=dU(t);return e&&e.default||0}return t=Iz.has(t)?t:vF(t),e.getAttribute(t)}measureInstanceViewportBox(){return fW()}scrapeMotionValuesFromProps(e,t){return Nz(e,t)}build(e,t,n,r){kz(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){jz(e,t,0,r)}mount(e){this.isSVGTag=$z(e.tagName),super.mount(e)}}const fG={layout:{ProjectionNode:Fq,MeasureLayout:zW}},pG=function(e){function t(t,n={}){return NF(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((function(e,{forwardMotionProps:t=!1},n,r){return{..._F(e)?Yz:Zz,preloadedFeatures:n,useRender:Tz(t),createVisualElement:r,Component:e}}));function hG({children:e,features:t,strict:n=!1}){const[,r]=F.useState(!mG(t)),o=F.useRef(void 0);if(!mG(t)){const{renderer:e,...n}=t;o.current=e,MF(n)}return F.useEffect((()=>{mG(t)&&t().then((({renderer:e,...t})=>{MF(t),o.current=e,r(!0)}))}),[]),F.createElement(gF.Provider,{value:{renderer:o.current,strict:n}},e)}function mG(e){return"function"==typeof e}const gG={...{renderer:(e,t)=>_F(e)?new dG(t,{enableHardwareAcceleration:!1}):new uG(t,{enableHardwareAcceleration:!0}),...UU,...xH},...zq,...fG};const vG=new WeakMap;let bG;function yG({target:e,contentRect:t,borderBoxSize:n}){var r;null===(r=vG.get(e))||void 0===r||r.forEach((r=>{r({target:e,contentSize:t,get size(){return function(e,t){if(t){const{inlineSize:e,blockSize:n}=t[0];return{width:e,height:n}}return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}(e,n)}})}))}function xG(e){e.forEach(yG)}function wG(e,t){bG||"undefined"!=typeof ResizeObserver&&(bG=new ResizeObserver(xG));const n=function(e,t,n){var r;if("string"==typeof e){let o=document;t&&(EH(Boolean(t.current)),o=t.current),n?(null!==(r=n[e])&&void 0!==r||(n[e]=o.querySelectorAll(e)),e=n[e]):e=o.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}(e);return n.forEach((e=>{let n=vG.get(e);n||(n=new Set,vG.set(e,n)),n.add(t),null==bG||bG.observe(e)})),()=>{n.forEach((e=>{const n=vG.get(e);null==n||n.delete(t),(null==n?void 0:n.size)||null==bG||bG.unobserve(e)}))}}const SG=new Set;let CG;function EG(e){return SG.add(e),CG||(CG=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};SG.forEach((e=>e(t)))},window.addEventListener("resize",CG)),()=>{SG.delete(e),!SG.size&&CG&&(CG=void 0)}}const kG=50,OG=()=>({time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}),$G={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function PG(e,t,n,r){const o=n[t],{length:i,position:a}=$G[t],s=o.current,l=n.time;o.current=e["scroll"+a],o.scrollLength=e["scroll"+i]-e["client"+i],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=EV(0,o.scrollLength,o.current);const c=r-l;o.velocity=c>kG?0:IV(o.current-s,c)}const TG={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},MG={start:0,center:.5,end:1};function IG(e,t,n=0){let r=0;if(void 0!==MG[e]&&(e=MG[e]),"string"==typeof e){const t=parseFloat(e);e.endsWith("px")?r=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?r=t/100*document.documentElement.clientWidth:e.endsWith("vh")?r=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(r=t*e),n+r}const jG=[0,0];function RG(e,t,n,r){let o=Array.isArray(e)?e:jG,i=0,a=0;return"number"==typeof e?o=[e,e]:"string"==typeof e&&(o=(e=e.trim()).includes(" ")?e.split(" "):[e,MG[e]?e:"0"]),i=IG(o[0],n,r),a=IG(o[1],t),i-a}const NG={x:0,y:0};function AG(e,t,n){let{offset:r=TG.All}=n;const{target:o=e,axis:i="y"}=n,a="y"===i?"height":"width",s=o!==e?function(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if("svg"===r.tagName){const e=r.getBoundingClientRect();r=r.parentElement;const t=r.getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else{if(!(r instanceof SVGGraphicsElement))break;{const{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let o=null,i=r.parentNode;for(;!o;)"svg"===i.tagName&&(o=i),i=r.parentNode;r=o}}return n}(o,e):NG,l=o===e?{width:e.scrollWidth,height:e.scrollHeight}:function(e){return"getBBox"in e&&"svg"!==e.tagName?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}(o),c={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let u=!t[i].interpolate;const d=r.length;for(let f=0;ffunction(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}(e,r.target,n),update:t=>{!function(e,t,n){PG(e,"x",t,n),PG(e,"y",t,n),t.time=n}(e,n,t),(r.offset||r.target)&&AG(e,n,r)},notify:()=>t(n)}}const _G=new WeakMap,DG=new WeakMap,BG=new WeakMap,FG=e=>e===document.documentElement?window:e;function zG(e,{container:t=document.documentElement,...n}={}){let r=BG.get(t);r||(r=new Set,BG.set(t,r));const o=OG(),i=LG(t,e,o,n);if(r.add(i),!_G.has(t)){const e=()=>{for(const e of r)e.measure()},n=()=>{for(const e of r)e.update(Kz.timestamp)},o=()=>{for(const e of r)e.notify()},i=()=>{qz.read(e,!1,!0),qz.read(n,!1,!0),qz.update(o,!1,!0)};_G.set(t,i);const a=FG(t);window.addEventListener("resize",i,{passive:!0}),t!==document.documentElement&&DG.set(t,function(e,t){return"function"==typeof e?EG(e):wG(e,t)}(t,i)),a.addEventListener("scroll",i,{passive:!0})}const a=_G.get(t);return qz.read(a,!1,!0),()=>{var e;Gz(a);const n=BG.get(t);if(!n)return;if(n.delete(i),n.size)return;const r=_G.get(t);_G.delete(t),r&&(FG(t).removeEventListener("scroll",r),null===(e=DG.get(t))||void 0===e||e(),window.removeEventListener("resize",r))}}function HG(e,t){CH(Boolean(!t||t.current))}const VG=()=>({scrollX:EU(0),scrollY:EU(0),scrollXProgress:EU(0),scrollYProgress:EU(0)});var UG=function(){return UG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?lK(yK,--vK):0,mK--,10===bK&&(mK=1,hK--),bK}function EK(){return bK=vK2||PK(bK)>3?"":" "}function IK(e,t){for(;--t&&EK()&&!(bK<48||bK>102||bK>57&&bK<65||bK>70&&bK<97););return $K(e,OK()+(t<6&&32==kK()&&32==EK()))}function jK(e){for(;EK();)switch(bK){case e:return vK;case 34:case 39:34!==e&&39!==e&&jK(bK);break;case 40:41===e&&jK(e);break;case 92:EK()}return vK}function RK(e,t){for(;EK()&&e+bK!==57&&(e+bK!==84||47!==kK()););return"/*"+$K(t,vK-1)+"*"+nK(47===e?e:EK())}function NK(e){for(;!PK(kK());)EK();return $K(e,vK)}function AK(e){return function(e){return yK="",e}(LK("",null,null,null,[""],e=function(e){return hK=mK=1,gK=uK(yK=e),vK=0,[]}(e),0,[0],e))}function LK(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,w=i,S=r,C=y;g;)switch(h=b,b=EK()){case 40:if(108!=h&&58==lK(C,d-1)){-1!=sK(C+=aK(TK(b),"&","&\f"),"&\f",tK(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=TK(b);break;case 9:case 10:case 13:case 32:C+=MK(h);break;case 92:C+=IK(OK()-1,7);continue;case 47:switch(kK()){case 42:case 47:fK(DK(RK(EK(),OK()),t,n,l),l);break;default:C+="/"}break;case 123*m:s[c++]=uK(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(C=aK(C,/\f/g,"")),p>0&&uK(C)-d&&fK(p>32?BK(C+";",r,n,d-1,l):BK(aK(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(fK(S=_K(C,t,n,c,u,o,s,y,x=[],w=[],d,i),i),123===b)if(0===u)LK(C,t,S,S,x,i,d,s,w);else switch(99===f&&110===lK(C,3)?100:f){case 100:case 108:case 109:case 115:LK(e,S,S,r&&fK(_K(e,S,S,0,0,o,s,y,o,x=[],d,w),w),o,w,d,s,r?x:w);break;default:LK(C,S,S,S,[""],w,0,s,w)}}c=u=p=0,m=v=1,y=C="",d=a;break;case 58:d=1+uK(C),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==CK())continue;switch(C+=nK(b),b*m){case 38:v=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(uK(C)-1)*v,v=1;break;case 64:45===kK()&&(C+=TK(EK())),f=kK(),u=d=uK(y=C+=NK(OK())),b++;break;case 45:45===h&&2==uK(C)&&(m=0)}}return i}function _K(e,t,n,r,o,i,a,s,l,c,u,d){for(var f=o-1,p=0===o?i:[""],h=dK(p),m=0,g=0,v=0;m0?p[b]+" "+y:aK(y,/&\f/g,p[b])))&&(l[v++]=x);return xK(e,t,n,0===o?YG:s,l,c,u,d)}function DK(e,t,n,r){return xK(e,t,n,XG,nK(bK),cK(e,2,-2),0,r)}function BK(e,t,n,r,o){return xK(e,t,n,ZG,cK(e,0,r),cK(e,r+1,-1),r,o)}function FK(e,t,n){switch(function(e,t){return 45^lK(e,0)?(((t<<2^lK(e,0))<<2^lK(e,1))<<2^lK(e,2))<<2^lK(e,3):0}(e,t)){case 5103:return KG+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return KG+e+e;case 4789:return GG+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return KG+e+GG+e+qG+e+e;case 5936:switch(lK(e,t+11)){case 114:return KG+e+qG+aK(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return KG+e+qG+aK(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return KG+e+qG+aK(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return KG+e+qG+e+e;case 6165:return KG+e+qG+"flex-"+e+e;case 5187:return KG+e+aK(e,/(\w+).+(:[^]+)/,KG+"box-$1$2"+qG+"flex-$1$2")+e;case 5443:return KG+e+qG+"flex-item-"+aK(e,/flex-|-self/g,"")+(iK(e,/flex-|baseline/)?"":qG+"grid-row-"+aK(e,/flex-|-self/g,""))+e;case 4675:return KG+e+qG+"flex-line-pack"+aK(e,/align-content|flex-|-self/g,"")+e;case 5548:return KG+e+qG+aK(e,"shrink","negative")+e;case 5292:return KG+e+qG+aK(e,"basis","preferred-size")+e;case 6060:return KG+"box-"+aK(e,"-grow","")+KG+e+qG+aK(e,"grow","positive")+e;case 4554:return KG+aK(e,/([^-])(transform)/g,"$1"+KG+"$2")+e;case 6187:return aK(aK(aK(e,/(zoom-|grab)/,KG+"$1"),/(image-set)/,KG+"$1"),e,"")+e;case 5495:case 3959:return aK(e,/(image-set\([^]*)/,KG+"$1$`$1");case 4968:return aK(aK(e,/(.+:)(flex-)?(.*)/,KG+"box-pack:$3"+qG+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+KG+e+e;case 4200:if(!iK(e,/flex-|baseline/))return qG+"grid-column-align"+cK(e,t)+e;break;case 2592:case 3360:return qG+aK(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,iK(e.props,/grid-\w+-end/)}))?~sK(e+(n=n[t].value),"span",0)?e:qG+aK(e,"-start","")+e+qG+"grid-row-span:"+(~sK(n,"span",0)?iK(n,/\d+/):+iK(n,/\d+/)-+iK(e,/\d+/))+";":qG+aK(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return iK(e.props,/grid-\w+-start/)}))?e:qG+aK(aK(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return aK(e,/(.+)-inline(.+)/,KG+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(uK(e)-1-t>6)switch(lK(e,t+1)){case 109:if(45!==lK(e,t+4))break;case 102:return aK(e,/(.+:)(.+)-([^]+)/,"$1"+KG+"$2-$3$1"+GG+(108==lK(e,t+3)?"$3":"$2-$3"))+e;case 115:return~sK(e,"stretch",0)?FK(aK(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return aK(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return qG+n+":"+r+s+(o?qG+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===lK(e,t+6))return aK(e,":",":"+KG)+e;break;case 6444:switch(lK(e,45===lK(e,14)?18:11)){case 120:return aK(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+KG+(45===lK(e,14)?"inline-":"")+"box$3$1"+KG+"$2$3$1"+qG+"$2box$3")+e;case 100:return aK(e,":",":"+qG)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return aK(e,"scroll-","scroll-snap-")+e}return e}function zK(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case ZG:return void(e.return=FK(e.value,e.length,n));case JG:return zK([wK(e,{value:aK(e.value,"@","@"+KG)})],r);case YG:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(iK(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":SK(wK(e,{props:[aK(t,/:(read-\w+)/,":"+GG+"$1")]})),SK(wK(e,{props:[t]})),rK(e,{props:pK(n,r)});break;case"::placeholder":SK(wK(e,{props:[aK(t,/:(plac\w+)/,":"+KG+"input-$1")]})),SK(wK(e,{props:[aK(t,/:(plac\w+)/,":"+GG+"$1")]})),SK(wK(e,{props:[aK(t,/:(plac\w+)/,qG+"input-$1")]})),SK(wK(e,{props:[t]})),rK(e,{props:pK(n,r)})}return""}))}}var UK={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},WK="undefined"!=typeof process&&void 0!==process.env&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",qK="active",GK="data-styled-version",KK="6.1.8",XK="/*!sc*/\n",YK="undefined"!=typeof window&&"HTMLElement"in window,ZK=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!=={}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={}.REACT_APP_SC_DISABLE_SPEEDY&&{}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!=={}.SC_DISABLE_SPEEDY&&""!=={}.SC_DISABLE_SPEEDY&&("false"!=={}.SC_DISABLE_SPEEDY&&{}.SC_DISABLE_SPEEDY)),QK=Object.freeze([]),JK=Object.freeze({});var eX=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),tX=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,nX=/(^-|-$)/g;function rX(e){return e.replace(tX,"-").replace(nX,"")}var oX=/(a)(d)/gi,iX=52,aX=function(e){return String.fromCharCode(e+(e>25?39:97))};function sX(e){var t,n="";for(t=Math.abs(e);t>iX;t=t/iX|0)n=aX(t%iX)+n;return(aX(t%iX)+n).replace(oX,"$1-$2")}var lX,cX=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},uX=function(e){return cX(5381,e)};function dX(e){return"string"==typeof e&&!0}var fX="function"==typeof Symbol&&Symbol.for,pX=fX?Symbol.for("react.memo"):60115,hX=fX?Symbol.for("react.forward_ref"):60112,mX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},gX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bX=((lX={})[hX]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lX[pX]=vX,lX);function yX(e){return("type"in(t=e)&&t.type.$$typeof)===pX?vX:"$$typeof"in e?bX[e.$$typeof]:mX;var t}var xX=Object.defineProperty,wX=Object.getOwnPropertyNames,SX=Object.getOwnPropertySymbols,CX=Object.getOwnPropertyDescriptor,EX=Object.getPrototypeOf,kX=Object.prototype;function OX(e,t,n){if("string"!=typeof t){if(kX){var r=EX(t);r&&r!==kX&&OX(e,r,n)}var o=wX(t);SX&&(o=o.concat(SX(t)));for(var i=yX(e),a=yX(t),s=0;s0?" Args: ".concat(t.join(", ")):""))}var AX=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw NX(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(XK)},i=0;i0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===YG&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(QX,n).replace(r,c))})),a.prefix&&u.push(VK),u.push(HK);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(JX,""),c=AK(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=eY(c,a.namespace));var d,f=[];return zK(c,function(e){var t=dK(e);return function(n,r,o,i){for(var a="",s=0;s="A"&&e<="Z"};function sY(e){for(var t="",n=0;n>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=TX(r,i),this.staticRulesId=i}else{for(var s=cX(this.baseHash,n.hash),l="",c=0;c>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=TX(r,f)}}return r},e}(),pY=z.createContext(void 0);pY.Consumer;var hY={};new Set;function mY(e,t,n){var r=PX(e),o=e,i=!dX(e),a=t.attrs,s=void 0===a?QK:a,l=t.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":rX(e);hY[n]=(hY[n]||0)+1;var r="".concat(n,"-").concat(function(e){return sX(uX(e)>>>0)}(KK+n+hY[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,u=t.displayName,d=void 0===u?function(e){return dX(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):u,f=t.displayName&&t.componentId?"".concat(rX(t.displayName),"-").concat(t.componentId):t.componentId||c,p=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var v=new fY(n,f,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,c=z.useContext(pY),u=oY(),d=e.shouldForwardProp||u.shouldForwardProp,f=function(e,t,n){return void 0===n&&(n=JK),e.theme!==n.theme&&e.theme||t||n.theme}(t,c,i)||JK,p=function(e,t,n){for(var r,o=UG(UG({},t),{className:void 0,theme:n}),i=0;i=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))},$Y=Array.prototype.concat,PY=Array.prototype.slice,TY=kY.exports=function(e){for(var t=[],n=0,r=e.length;n=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},LY.to.keyword=function(e){return NY[e.slice(0,3)]};var BY=CY.exports;const FY=EY,zY={};for(const Hie of Object.keys(FY))zY[FY[Hie]]=Hie;const HY={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var VY=HY;for(const Vie of Object.keys(HY)){if(!("channels"in HY[Vie]))throw new Error("missing channels property: "+Vie);if(!("labels"in HY[Vie]))throw new Error("missing channel labels property: "+Vie);if(HY[Vie].labels.length!==HY[Vie].channels)throw new Error("channel and label counts mismatch: "+Vie);const{channels:Uie,labels:Wie}=HY[Vie];delete HY[Vie].channels,delete HY[Vie].labels,Object.defineProperty(HY[Vie],"channels",{value:Uie}),Object.defineProperty(HY[Vie],"labels",{value:Wie})}function UY(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}HY.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let s,l;i===o?s=0:t===i?s=(n-r)/a:n===i?s=2+(r-t)/a:r===i&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(o+i)/2;return l=i===o?0:c<=.5?a/(i+o):a/(2-i-o),[s,100*l,100*c]},HY.rgb.hsv=function(e){let t,n,r,o,i;const a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,i=0):(i=u/c,t=d(a),n=d(s),r=d(l),a===c?o=r-n:s===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},HY.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=HY.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*i,100*r]},HY.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},HY.rgb.keyword=function(e){const t=zY[e];if(t)return t;let n,r=1/0;for(const o of Object.keys(FY)){const t=UY(e,FY[o]);t.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},HY.rgb.lab=function(e){const t=HY.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*r-16,500*(n-r),200*(r-o)]},HY.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,a;if(0===n)return a=255*r,[a,a,a];o=r<.5?r*(1+n):r+n-r*n;const s=2*r-o,l=[0,0,0];for(let c=0;c<3;c++)i=t+1/3*-(c-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,l[c]=255*a;return l},HY.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;return[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},HY.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},HY.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-n)*r;const s=(2-n)*o;return i=n*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,100*i,100*a]},HY.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const a=Math.floor(6*t),s=1-r;i=6*t-a,1&a&&(i=1-i);const l=n+i*(s-n);let c,u,d;switch(a){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l}return[255*c,255*u,255*d]},HY.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},HY.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,a;return o=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},HY.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},HY.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,i=t**3,a=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},HY.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(n*n+r*r),o]},HY.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},HY.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=null===t?HY.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let a=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===i&&(a+=60),a},HY.hsv.ansi16=function(e){return HY.rgb.ansi16(HY.hsv.rgb(e),e[2])},HY.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},HY.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},HY.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},HY.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},HY.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},HY.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;let s,l;return s=a<1?i/(1-a):0,l=a<=0?0:o===t?(n-r)/a%6:o===n?2+(r-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},HY.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},HY.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},HY.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},HY.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},HY.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},HY.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},HY.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},HY.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},HY.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},HY.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},HY.gray.hsl=function(e){return[0,0,e[0]]},HY.gray.hsv=HY.gray.hsl,HY.gray.hwb=function(e){return[0,100,e[0]]},HY.gray.cmyk=function(e){return[0,0,0,e[0]]},HY.gray.lab=function(e){return[e[0],0,0]},HY.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},HY.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const WY=VY;function qY(e){const t=function(){const e={},t=Object.keys(WY);for(let n=t.length,r=0;r{ZY[e]={},Object.defineProperty(ZY[e],"channels",{value:XY[e].channels}),Object.defineProperty(ZY[e],"labels",{value:XY[e].labels});const t=YY(e);Object.keys(t).forEach((n=>{const r=t[n];ZY[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,o=0;o1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));const QY=BY,JY=ZY,eZ=["keyword","gray","hex"],tZ={};for(const qie of Object.keys(JY))tZ[[...JY[qie].labels].sort().join("")]=qie;const nZ={};function rZ(e,t){if(!(this instanceof rZ))return new rZ(e,t);if(t&&t in eZ&&(t=null),t&&!(t in JY))throw new Error("Unknown model: "+t);let n,r;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof rZ)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=QY.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,r=JY[this.model].channels,this.color=t.value.slice(0,r),this.valpha="number"==typeof t.value[r]?t.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=JY[this.model].channels;const n=Array.prototype.slice.call(e,0,r);this.color=sZ(n,r),this.valpha="number"==typeof e[r]?e[r]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in tZ))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=tZ[r];const{labels:o}=JY[this.model],i=[];for(n=0;n(e%360+360)%360)),saturationl:iZ("hsl",1,aZ(100)),lightness:iZ("hsl",2,aZ(100)),saturationv:iZ("hsv",1,aZ(100)),value:iZ("hsv",2,aZ(100)),chroma:iZ("hcg",1,aZ(100)),gray:iZ("hcg",2,aZ(100)),white:iZ("hwb",1,aZ(100)),wblack:iZ("hwb",2,aZ(100)),cyan:iZ("cmyk",0,aZ(100)),magenta:iZ("cmyk",1,aZ(100)),yellow:iZ("cmyk",2,aZ(100)),black:iZ("cmyk",3,aZ(100)),x:iZ("xyz",0,aZ(95.047)),y:iZ("xyz",1,aZ(100)),z:iZ("xyz",2,aZ(108.833)),l:iZ("lab",0,aZ(100)),a:iZ("lab",1),b:iZ("lab",2),keyword(e){return void 0!==e?new rZ(e):JY[this.model].keyword(this.color)},hex(e){return void 0!==e?new rZ(e):QY.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new rZ(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),QY.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return rZ.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),s=((i*a==-1?i:(i+a)/(1+i*a))+1)/2,l=1-s;return rZ.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const Gie of Object.keys(JY)){if(eZ.includes(Gie))continue;const{channels:Kie}=JY[Gie];rZ.prototype[Gie]=function(...e){return this.model===Gie?new rZ(this):e.length>0?new rZ(e,Gie):new rZ([...(t=JY[this.model][Gie].raw(this.color),Array.isArray(t)?t:[t]),this.valpha],Gie);var t},rZ[Gie]=function(...e){let t=e[0];return"number"==typeof t&&(t=sZ(e,Kie)),new rZ(t,Gie)}}function oZ(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function iZ(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(nZ[r]||(nZ[r]=[]))[t]=n;return e=e[0],function(r){let o;return void 0!==r?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function aZ(e){return function(t){return Math.max(0,Math.min(e,t))}}function sZ(e,t){for(let n=0;ne),[e])}const{useBreakpoint:uZ}=LN;function dZ(){const{token:{screenXS:e,screenSM:t,screenMD:n,screenLG:r,screenXL:o,screenXXL:i}}=N_.useToken(),a={xs:e,sm:t,md:n,lg:r,xl:o,xxl:i},s=uZ(),l=["xs","sm","md","lg","xl","xxl"].findLast((e=>!0===s[e]));return{screenEnum:a,screenMap:s,currentScrren:l}}var fZ={exports:{}}; +/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */fZ.exports=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function o(e,t,n){return en?n:e}function i(e){return 100*(-1+e)}function a(e,t,n){var o;return(o="translate3d"===r.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"}).transition="all "+t+"ms "+n,o}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=o(e,r.minimum,1),n.status=1===e?null:e;var i=n.render(!t),c=i.querySelector(r.barSelector),u=r.speed,d=r.easing;return i.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,a(e,u,d)),1===e?(l(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout((function(){l(i,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),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())}),r.trickleSpeed)};return r.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)*o(Math.random()*t,.1,.95)),t=o(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.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):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var o,a=t.querySelector(r.barSelector),s=e?"-100":i(n.status||0),c=document.querySelector(r.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(o=t.querySelector(r.spinnerSelector))&&p(o),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(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 s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}function o(e){return e=n(e),t[e]||(t[e]=r(e))}function i(e,t,n){t=o(t),e.style[t]=n}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&i(e,n,r);else i(e,o[1],o[2])}}();function c(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=f(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=f(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n}();const pZ=n(fZ.exports);function hZ(){const e=EB();return F.useMemo((()=>({back:()=>e(-1),forward:()=>e(1),reload:()=>window.location.reload(),push:t=>e(t),replace:t=>e(t,{replace:!0})})),[e])}const mZ={};function gZ(){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function bZ(e,t,n){e.loadNamespaces(t,vZ(e,n))}function yZ(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,vZ(e,r))}const xZ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,wZ={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},SZ=e=>wZ[e];let CZ,EZ={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(xZ,SZ)};const kZ={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};EZ={...EZ,...e}}(e.options.react),function(e){CZ=e}(e)}},OZ=F.createContext();class $Z{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const PZ=(e,t)=>{const n=F.useRef();return F.useEffect((()=>{n.current=t?n.current:e}),[e,t]),n.current};function TZ(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:o}=F.useContext(OZ)||{},i=n||r||CZ;if(i&&!i.reportNamespaces&&(i.reportNamespaces=new $Z),!i){gZ("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}i.options.react&&void 0!==i.options.react.wait&&gZ("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...EZ,...i.options.react,...t},{useSuspense:s,keyPrefix:l}=a;let c=e||o||i.options&&i.options.defaultNS;c="string"==typeof c?[c]:c||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(c);const u=(i.isInitialized||i.initializedStoreOnce)&&c.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const a=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}(e,t,n):(gZ("i18n.languages were undefined or empty",t.languages),!0)}(e,i,a)));function d(){return i.getFixedT(t.lng||null,"fallback"===a.nsMode?c:c[0],l)}const[f,p]=F.useState(d);let h=c.join();t.lng&&(h=`${t.lng}${h}`);const m=PZ(h),g=F.useRef(!0);F.useEffect((()=>{const{bindI18n:e,bindI18nStore:n}=a;function r(){g.current&&p(d)}return g.current=!0,u||s||(t.lng?yZ(i,t.lng,c,(()=>{g.current&&p(d)})):bZ(i,c,(()=>{g.current&&p(d)}))),u&&m&&m!==h&&g.current&&p(d),e&&i&&i.on(e,r),n&&i&&i.store.on(n,r),()=>{g.current=!1,e&&i&&e.split(" ").forEach((e=>i.off(e,r))),n&&i&&n.split(" ").forEach((e=>i.store.off(e,r)))}}),[i,h]);const v=F.useRef(!0);F.useEffect((()=>{g.current&&!v.current&&p(d),v.current=!1}),[i,l]);const b=[f,i,u];if(b.t=f,b.i18n=i,b.ready=u,u)return b;if(!u&&!s)return b;throw new Promise((e=>{t.lng?yZ(i,t.lng,c,(()=>e())):bZ(i,c,(()=>e()))}))}function MZ({children:e,className:t,style:n,onClick:r}){return Y.jsx("button",{style:n,className:`flex cursor-pointer items-center justify-center rounded-full p-2 hover:bg-hover ${t}`,onClick:r,children:e})}const IZ=/^[a-z0-9]+(-[a-z0-9]+)*$/,jZ=(e,t,n,r="")=>{const o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const e=o.pop(),n=o.pop(),i={provider:o.length>0?o[0]:r,prefix:n,name:e};return t&&!RZ(i)?null:i}const i=o[0],a=i.split("-");if(a.length>1){const e={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!RZ(e)?null:e}if(n&&""===r){const e={provider:r,prefix:"",name:i};return t&&!RZ(e,n)?null:e}return null},RZ=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(IZ)||!(t&&""===e.prefix||e.prefix.match(IZ))||!e.name.match(IZ)),NZ=Object.freeze({left:0,top:0,width:16,height:16}),AZ=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),LZ=Object.freeze({...NZ,...AZ}),_Z=Object.freeze({...LZ,body:"",hidden:!1});function DZ(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(const r in _Z)r in AZ?r in e&&!(r in n)&&(n[r]=AZ[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function BZ(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function a(e){i=DZ(r[e]||o[e],i)}return a(t),n.forEach(a),DZ(e,i)}function FZ(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const r=function(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);return(t||Object.keys(n).concat(Object.keys(r))).forEach((function e(t){if(n[t])return o[t]=[];if(!(t in o)){o[t]=null;const n=r[t]&&r[t].parent,i=n&&e(n);i&&(o[t]=[n].concat(i))}return o[t]})),o}(e);for(const o in r){const i=r[o];i&&(t(o,BZ(e,o,i)),n.push(o))}return n}const zZ={provider:"",aliases:{},not_found:{},...NZ};function HZ(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function VZ(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons)return null;if(!HZ(e,zZ))return null;const n=t.icons;for(const o in n){const e=n[o];if(!o.match(IZ)||"string"!=typeof e.body||!HZ(e,_Z))return null}const r=t.aliases||Object.create(null);for(const o in r){const e=r[o],t=e.parent;if(!o.match(IZ)||"string"!=typeof t||!n[t]&&!r[t]||!HZ(e,_Z))return null}return t}const UZ=Object.create(null);function WZ(e,t){const n=UZ[e]||(UZ[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function qZ(e,t){return VZ(t)?FZ(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let GZ=!1;function KZ(e){return"boolean"==typeof e&&(GZ=e),GZ}function XZ(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),GZ&&!t&&!e.prefix){let t=!1;return VZ(e)&&(e.prefix="",FZ(e,((e,n)=>{n&&function(e,t){const n=jZ(e,!0,GZ);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch(r){}return!1}(WZ(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!RZ({provider:t,prefix:n,name:"a"}))return!1;return!!qZ(WZ(t,n),e)}const YZ=Object.freeze({width:null,height:null}),ZZ=Object.freeze({...YZ,...AZ}),QZ=/(-?[0-9.]*[0-9]+[0-9.]*)/g,JZ=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function eQ(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const r=e.split(QZ);if(null===r||!r.length)return e;const o=[];let i=r.shift(),a=JZ.test(i);for(;;){if(a){const e=parseFloat(i);isNaN(e)?o.push(i):o.push(Math.ceil(e*t*n)/n)}else o.push(i);if(i=r.shift(),void 0===i)return o.join("");a=!a}}const tQ=/\sid="(\S+)"/g,nQ="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let rQ=0;function oQ(e,t=nQ){const n=[];let r;for(;r=tQ.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const r="function"==typeof t?t(n):t+(rQ++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")})),e=e.replace(new RegExp(o,"g"),"")}const iQ=Object.create(null);function aQ(e){return iQ[e]||iQ[""]}function sQ(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const lQ=Object.create(null),cQ=["https://api.simplesvg.com","https://api.unisvg.com"],uQ=[];for(;cQ.length>0;)1===cQ.length||Math.random()>.5?uQ.push(cQ.shift()):uQ.push(cQ.pop());function dQ(e,t){const n=sQ(t);return null!==n&&(lQ[e]=n,!0)}function fQ(e){return lQ[e]}lQ[""]=sQ({resources:["https://api.iconify.design"].concat(uQ)});let pQ=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(t){}})();const hQ={prepare:(e,t,n)=>{const r=[],o=function(e,t){const n=fQ(e);if(!n)return 0;let r;if(n.maxURL){let e=0;n.resources.forEach((t=>{const n=t;e=Math.max(e,n.length)}));const o=t+".json?icons=";r=n.maxURL-e-n.path.length-o.length}else r=0;return r}(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach(((n,l)=>{s+=n.length+1,s>=o&&l>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=n.length),a.icons.push(n)})),r.push(a),r},send:(e,t,n)=>{if(!pQ)return void n("abort",424);let r=function(e){if("string"==typeof e){const t=fQ(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");r+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;r+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let o=503;pQ(e+r).then((e=>{const t=e.status;if(200===t)return o=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",o)}))})).catch((()=>{n("next",o)}))}};function mQ(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let gQ=0;var vQ={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function bQ(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let t=e.resources.slice(0);for(a=[];t.length>1;){const e=Math.floor(Math.random()*t.length);a.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}a=a.concat(t)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l,c="pending",u=0,d=null,f=[],p=[];function h(){d&&(clearTimeout(d),d=null)}function m(){"pending"===c&&(c="aborted"),h(),f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function g(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){c="failed",p.forEach((e=>{e(void 0,l)}))}function b(){f.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),f=[]}function y(){if("pending"!==c)return;h();const r=a.shift();if(void 0===r)return f.length?void(d=setTimeout((()=>{h(),"pending"===c&&(b(),v())}),e.timeout)):void v();const o={status:"pending",resource:r,callback:(t,n)=>{!function(t,n,r){const o="success"!==n;switch(f=f.filter((e=>e!==t)),c){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return l=r,void v();if(o)return l=r,void(f.length||(a.length?y():v()));if(h(),b(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}c="completed",p.forEach((e=>{e(r)}))}(o,t,n)}};f.push(o),u++,d=setTimeout(y,e.rotate),n(r,t,o.callback)}return"function"==typeof r&&p.push(r),setTimeout(y),function(){return{startTime:s,payload:t,status:c,queriesSent:u,queriesPending:f.length,subscribe:g,abort:m}}}function yQ(e){const t={...vQ,...e};let n=[];function r(){n=n.filter((e=>"pending"===e().status))}const o={query:function(e,o,i){const a=bQ(t,e,o,((e,t)=>{r(),i&&i(e,t)}));return n.push(a),a},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r};return o}function xQ(){}const wQ=Object.create(null);function SQ(e,t,n){let r,o;if("string"==typeof e){const t=aQ(e);if(!t)return n(void 0,424),xQ;o=t.send;const i=function(e){if(!wQ[e]){const t=fQ(e);if(!t)return;const n={config:t,redundancy:yQ(t)};wQ[e]=n}return wQ[e]}(e);i&&(r=i.redundancy)}else{const t=sQ(e);if(t){r=yQ(t);const n=aQ(e.resources?e.resources[0]:"");n&&(o=n.send)}}return r&&o?r.query(t,o,n)().abort:(n(void 0,424),xQ)}const CQ="iconify2",EQ="iconify",kQ=EQ+"-count",OQ=EQ+"-version",$Q=36e5,PQ=168;function TQ(e,t){try{return e.getItem(t)}catch(n){}}function MQ(e,t,n){try{return e.setItem(t,n),!0}catch(r){}}function IQ(e,t){try{e.removeItem(t)}catch(n){}}function jQ(e,t){return MQ(e,kQ,t.toString())}function RQ(e){return parseInt(TQ(e,kQ))||0}const NQ={local:!0,session:!0},AQ={local:new Set,session:new Set};let LQ=!1;let _Q="undefined"==typeof window?{}:window;function DQ(e){const t=e+"Storage";try{if(_Q&&_Q[t]&&"number"==typeof _Q[t].length)return _Q[t]}catch(n){}NQ[e]=!1}function BQ(e,t){const n=DQ(e);if(!n)return;const r=TQ(n,OQ);if(r!==CQ){if(r){const e=RQ(n);for(let t=0;t{const r=EQ+e.toString(),i=TQ(n,r);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>o&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch(a){}IQ(n,r)}};let a=RQ(n);for(let s=a-1;s>=0;s--)i(s)||(s===a-1?(a--,jQ(n,a)):AQ[e].add(s))}function FQ(){if(!LQ){LQ=!0;for(const e in NQ)BQ(e,(e=>{const t=e.data,n=WZ(e.provider,t.prefix);if(!qZ(n,t).length)return!1;const r=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,r):r,!0}))}}function zQ(e,t){function n(n){let r;if(!NQ[n]||!(r=DQ(n)))return;const o=AQ[n];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=RQ(r),!jQ(r,i+1))return;const a={cached:Math.floor(Date.now()/$Q),provider:e.provider,data:t};return MQ(r,EQ+i.toString(),JSON.stringify(a))}LQ||FQ(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in NQ)BQ(r,(n=>{const r=n.data;return n.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function HQ(){}function VQ(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach((t=>{const i=t.icons,a=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==o)return!0;const a=t.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:r,prefix:o,name:a})}return!1})),i.pending.length!==a&&(n||mQ([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const UQ=(e,t)=>{const n=function(e,t=!0,n=!1){const r=[];return e.forEach((e=>{const o="string"==typeof e?jZ(e,t,n):e;o&&r.push(o)})),r}(e,!0,KZ()),r=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let r={provider:"",prefix:"",name:""};return e.forEach((e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;const o=e.provider,i=e.prefix,a=e.name,s=n[o]||(n[o]=Object.create(null)),l=s[i]||(s[i]=WZ(o,i));let c;c=a in l.icons?t.loaded:""===i||l.missing.has(a)?t.missing:t.pending;const u={provider:o,prefix:i,name:a};c.push(u)})),t}(n);if(!r.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(r.loaded,r.missing,r.pending,HQ)})),()=>{e=!1}}const o=Object.create(null),i=[];let a,s;return r.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===s&&t===a)return;a=t,s=n,i.push(WZ(t,n));const r=o[t]||(o[t]=Object.create(null));r[n]||(r[n]=[])})),r.pending.forEach((e=>{const{provider:t,prefix:n,name:r}=e,i=WZ(t,n),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(r)||(a.add(r),o[t][n].push(r))})),i.forEach((e=>{const{provider:t,prefix:n}=e;o[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,r=e.iconsToLoad;let o;delete e.iconsToLoad,r&&(o=aQ(t))&&o.prepare(t,n,r).forEach((n=>{SQ(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=qZ(e,t);if(!n.length)return;const r=e.pendingIcons;r&&n.forEach((e=>{r.delete(e)})),zQ(e,t)}catch(r){}VQ(e)}))}))})))}(e,o[t][n])})),t?function(e,t,n){const r=gQ++,o=mQ.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),o}(t,r,i):HQ};const WQ=/[\s,]+/;function qQ(e,t){t.split(WQ).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function GQ(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=t,o%1==0?r(o):0)}}return t}let KQ;function XQ(e){return void 0===KQ&&function(){try{KQ=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){KQ=null}}(),KQ?KQ.createHTML(e):e}const YQ={...ZZ,inline:!1},ZQ={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},QQ={display:"inline-block"},JQ={backgroundColor:"currentColor"},eJ={backgroundColor:"transparent"},tJ={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},nJ={WebkitMask:JQ,mask:JQ,background:eJ};for(const Xie in nJ){const Yie=nJ[Xie];for(const Zie in tJ)Yie[Xie+Zie]=tJ[Zie]}const rJ={...YQ,inline:!0};function oJ(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const iJ=(e,t,n,r)=>{const o=n?rJ:YQ,i=function(e,t){const n={...e};for(const r in t){const e=t[r],o=typeof e;r in YZ?(null===e||e&&("string"===o||"number"===o))&&(n[r]=e):o===typeof n[r]&&(n[r]="rotate"===r?e%4:e)}return n}(o,t),a=t.mode||"svg",s={},l=t.style||{},c={..."svg"===a?ZQ:{},ref:r};for(let b in t){const e=t[b];if(void 0!==e)switch(b){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":i[b]=!0===e||"true"===e||1===e;break;case"flip":"string"==typeof e&&qQ(i,e);break;case"color":s.color=e;break;case"rotate":"string"==typeof e?i[b]=GQ(e):"number"==typeof e&&(i[b]=e);break;case"ariaHidden":case"aria-hidden":!0!==e&&"true"!==e&&delete c["aria-hidden"];break;default:void 0===o[b]&&(c[b]=e)}}const u=function(e,t){const n={...LZ,...e},r={...ZZ,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach((e=>{const t=[],n=e.hFlip,r=e.vFlip;let a,s=e.rotate;switch(n?r?s+=2:(t.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),t.push("scale(-1 1)"),o.top=o.left=0):r&&(t.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),t.push("scale(1 -1)"),o.top=o.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:a=o.height/2+o.top,t.unshift("rotate(90 "+a.toString()+" "+a.toString()+")");break;case 2:t.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:a=o.width/2+o.left,t.unshift("rotate(-90 "+a.toString()+" "+a.toString()+")")}s%2==1&&(o.left!==o.top&&(a=o.left,o.left=o.top,o.top=a),o.width!==o.height&&(a=o.width,o.width=o.height,o.height=a)),t.length&&(i=''+i+"")}));const a=r.width,s=r.height,l=o.width,c=o.height;let u,d;null===a?(d=null===s?"1em":"auto"===s?c:s,u=eQ(d,l/c)):(u="auto"===a?l:a,d=null===s?eQ(u,c/l):"auto"===s?c:s);const f={},p=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(f[e]=t.toString())};return p("width",u),p("height",d),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:f,body:i}}(e,i),d=u.attributes;if(i.inline&&(s.verticalAlign="-0.125em"),"svg"===a){c.style={...s,...l},Object.assign(c,d);let e=0,n=t.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:XQ(oQ(u.body,n?()=>n+"ID"+e++:"iconifyReact"))},z.createElement("svg",c)}const{body:f,width:p,height:h}=e,m="mask"===a||"bg"!==a&&-1!==f.indexOf("currentColor"),g=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}(f,{...d,width:p+"",height:h+""});var v;return c.style={...s,"--svg":(v=g,'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}(e)}(v)+'")'),width:oJ(d.width),height:oJ(d.height),...QQ,...m?JQ:eJ,...l},z.createElement("span",c)};var aJ;if(KZ(!0),aJ=hQ,iQ[""]=aJ,"undefined"!=typeof document&&"undefined"!=typeof window){FQ();const Qie=window;if(void 0!==Qie.IconifyPreload){const Jie=Qie.IconifyPreload;"object"==typeof Jie&&null!==Jie&&(Jie instanceof Array?Jie:[Jie]).forEach((e=>{try{"object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||XZ(e)}catch(s7){}}))}if(void 0!==Qie.IconifyProviders){const eae=Qie.IconifyProviders;if("object"==typeof eae&&null!==eae)for(let tae in eae){try{const nae=eae[tae];if("object"!=typeof nae||!nae||void 0===nae.resources)continue;dQ(tae,nae)}catch(s7){}}}}class sJ extends z.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let r;if("string"!=typeof n||null===(r=jZ(n,!1,!0)))return this._abortLoading(),void this._setData(null);const o=function(e){const t="string"==typeof e?jZ(e,!0,GZ):e;if(t){const e=WZ(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(r);if(o){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==r.prefix&&e.push("iconify--"+r.prefix),""!==r.provider&&e.push("iconify--"+r.provider),this._setData({data:o,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else this._loading&&this._loading.name===n||(this._abortLoading(),this._icon="",this._setData(null),null!==o&&(this._loading={name:n,abort:UQ([r],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,t=this.state.icon;if(null===t)return e.children?e.children:z.createElement("span",{});let n=e;return t.classes&&(n={...e,className:("string"==typeof e.className?e.className+" ":"")+t.classes.join(" ")}),iJ({...LZ,...t.data},n,e._inline,e._ref)}}const lJ=z.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!1};return z.createElement(sJ,n)}));function cJ({icon:e,size:t="1em",className:n="",...r}){return Y.jsx(uJ,{className:"anticon",children:Y.jsx(lJ,{icon:e,width:t,height:t,className:`m-auto ${n}`,...r})})}z.forwardRef((function(e,t){const n={...e,_ref:t,_inline:!0};return z.createElement(sJ,n)}));const uJ=wY.div` + display: inline-flex; + vertical-align: middle; + svg { + display: inline-block; + } +`;function dJ({icon:e,prefix:t="icon",color:n="currentColor",size:r="1em",className:o="",style:i={}}){const a=`#${t}-${e}`,s={verticalAlign:"middle",width:r,height:r,color:n,...i};return Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:`anticon fill-current inline-block h-[1em] w-[1em] overflow-hidden outline-none ${o}`,style:s,children:Y.jsx("use",{xlinkHref:a,fill:"currentColor"})})}const fJ=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},a=t=e(r,o,i);return i};var pJ={exports:{}},hJ={},mJ={exports:{}},gJ={},vJ=F;var bJ="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},yJ=vJ.useState,xJ=vJ.useEffect,wJ=vJ.useLayoutEffect,SJ=vJ.useDebugValue;function CJ(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!bJ(e,n)}catch(l7){return!0}}var EJ="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=yJ({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return wJ((function(){o.value=n,o.getSnapshot=t,CJ(o)&&i({inst:o})}),[e,n,t]),xJ((function(){return CJ(o)&&i({inst:o}),e((function(){CJ(o)&&i({inst:o})}))}),[e]),SJ(n),n};gJ.useSyncExternalStore=void 0!==vJ.useSyncExternalStore?vJ.useSyncExternalStore:EJ,mJ.exports=gJ;var kJ=mJ.exports,OJ=F,$J=kJ; +/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var PJ="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},TJ=$J.useSyncExternalStore,MJ=OJ.useRef,IJ=OJ.useEffect,jJ=OJ.useMemo,RJ=OJ.useDebugValue;hJ.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=MJ(null);if(null===i.current){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=jJ((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==o&&a.hasValue){var t=a.value;if(o(t,e))return s=t}return s=e}if(t=s,PJ(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,s=n)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var s=TJ(e,i[0],i[1]);return IJ((function(){a.hasValue=!0,a.value=s}),[s]),RJ(s),s},pJ.exports=hJ;const NJ=n(pJ.exports),{useDebugValue:AJ}=z,{useSyncExternalStoreWithSelector:LJ}=NJ;const _J=e=>e;const DJ=e=>{const t="function"==typeof e?(e=>e?fJ(e):fJ)(e):e,n=(e,n)=>function(e,t=_J,n){const r=LJ(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return AJ(r),r}(t,e,n);return Object.assign(n,t),n},BJ=e=>e?DJ(e):DJ,FJ=e=>{let t=null;try{const n=window.localStorage.getItem(e);n&&(t=JSON.parse(n))}catch(n){}return t},zJ=(e,t)=>{localStorage.setItem(e,JSON.stringify(t))},HJ=e=>{localStorage.removeItem(e)};var VJ=(e=>(e[e.SUCCESS=0]="SUCCESS",e[e.ERROR=-1]="ERROR",e[e.TIMEOUT=401]="TIMEOUT",e))(VJ||{}),UJ=(e=>(e.User="user",e.Token="token",e.Settings="settings",e.I18N="i18nextLng",e))(UJ||{}),WJ=(e=>(e.Light="light",e.Dark="dark",e))(WJ||{}),qJ=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e.Mini="mini",e))(qJ||{}),GJ=(e=>(e.Default="default",e.Cyan="cyan",e.Purple="purple",e.Blue="blue",e.Orange="orange",e.Red="red",e))(GJ||{}),KJ=(e=>(e.en_US="en_US",e.zh_CN="zh_CN",e))(KJ||{}),XJ=(e=>(e.FULLSCREEN="fullscreen",e.REFRESH="refresh",e.CLOSE="close",e.CLOSEOTHERS="closeOthers",e.CLOSEALL="closeAll",e.CLOSELEFT="closeLeft",e.CLOSERIGHT="closeRight",e))(XJ||{});const YJ=BJ((e=>({settings:FJ(UJ.Settings)||{themeColorPresets:GJ.Default,themeMode:WJ.Light,themeLayout:qJ.Vertical,themeStretch:!1,breadCrumb:!0,multiTab:!0,taskStatus:!1},actions:{setTaskStatus:t=>{e((e=>({settings:{...e.settings,taskStatus:t}})))},setCaptchaSiteKey:t=>{e((e=>({settings:{...e.settings,captchaSiteKey:t}})))},setSettings:t=>{e({settings:t}),zJ(UJ.Settings,t)},clearSettings(){HJ(UJ.Settings)}}}))),ZJ=()=>YJ((e=>e.settings.captchaSiteKey)),QJ=()=>YJ((e=>e.settings)),JJ=()=>YJ((e=>e.actions));function e0(){const{t:e}=TZ(),{themeLayout:t}=QJ(),n=F.useCallback((r=>r.filter((e=>!e.meta?.hideMenu)).map((r=>{const o=[],{meta:i,children:a}=r;if(i){const{key:n,label:r,icon:a,disabled:s,suffix:l}=i;o.key=n,o.disabled=s,o.label=Y.jsxs("div",{className:`inline-flex w-full items-center ${t===qJ.Horizontal?"justify-start":"justify-between"} `,children:[Y.jsx("div",{className:"",children:e(r)}),l]}),a&&("string"==typeof a?a.startsWith("ic")?o.icon=Y.jsx(dJ,{icon:a,size:24,className:"ant-menu-item-icon"}):o.icon=Y.jsx(cJ,{icon:a,size:24,className:"ant-menu-item-icon"}):o.icon=a)}return a&&(o.children=n(a)),o}))),[e,t]);return n}const t0=F.lazy((()=>L_((()=>import("./chatgpt-a53fef8d.js")),["assets/chatgpt-a53fef8d.js","assets/ShareModal-20b6362a.js","assets/index-57131342.js","assets/index-83bdf3a0.js","assets/row-b45105b9.js","assets/accountService-0801bb34.js","assets/AccountModal-0f37a6a5.js","assets/useQuery-e775fa21.js"]))),n0=F.lazy((()=>L_((()=>import("./claude-5cb39f7b.js")),["assets/claude-5cb39f7b.js","assets/ShareModal-20b6362a.js","assets/index-57131342.js","assets/index-83bdf3a0.js","assets/row-b45105b9.js","assets/accountService-0801bb34.js","assets/AccountModal-0f37a6a5.js","assets/useQuery-e775fa21.js"]))),r0={path:"/admin/account",element:Y.jsx(F.Suspense,{fallback:Y.jsx(SY,{}),children:Y.jsx(FB,{})}),meta:{label:"账号管理",icon:Y.jsx(cJ,{icon:"mdi:account",className:"ant-menu-item-icon",size:"24"}),key:"/admin/account"},children:[{path:"chatgpt",element:Y.jsx(t0,{}),meta:{label:"ChatGPT",icon:Y.jsx(cJ,{icon:"simple-icons:openai",className:"ant-menu-item-icon",size:"24"}),key:"/admin/account/chatgpt"}},{path:"claude",element:Y.jsx(n0,{}),meta:{label:"Claude",icon:Y.jsx(cJ,{icon:"simple-icons:anthropic",className:"ant-menu-item-icon",size:"24"}),key:"/admin/account/claude"}}]},o0=Object.freeze(Object.defineProperty({__proto__:null,default:r0},Symbol.toStringTag,{value:"Module"})),i0=F.lazy((()=>L_((()=>import("./index-873b24ad.js")),["assets/index-873b24ad.js","assets/row-b45105b9.js"]))),a0={order:1,path:"/admin/home",element:Y.jsx(i0,{}),meta:{label:"欢迎",icon:Y.jsx(dJ,{icon:"ic-analysis",className:"ant-menu-item-icon",size:"24"}),key:"/admin/home"}},s0=Object.freeze(Object.defineProperty({__proto__:null,default:a0},Symbol.toStringTag,{value:"Module"})),l0=F.lazy((()=>L_((()=>import("./chatgpt-b855ed0a.js")),["assets/chatgpt-b855ed0a.js","assets/ShareModal-20b6362a.js","assets/index-57131342.js","assets/index-83bdf3a0.js","assets/row-b45105b9.js","assets/RobotOutlined-5230b30c.js","assets/useQuery-e775fa21.js"]))),c0=F.lazy((()=>L_((()=>import("./claude-fe98c508.js")),["assets/claude-fe98c508.js","assets/ShareModal-20b6362a.js","assets/index-57131342.js","assets/index-83bdf3a0.js","assets/row-b45105b9.js","assets/RobotOutlined-5230b30c.js","assets/useQuery-e775fa21.js"]))),u0={path:"/admin/share",element:Y.jsx(F.Suspense,{fallback:Y.jsx(SY,{}),children:Y.jsx(FB,{})}),meta:{label:"共享管理",icon:Y.jsx(cJ,{icon:"lucide:share-2",className:"ant-menu-item-icon",size:"24"}),key:"/admin/share"},children:[{path:"chatgpt",element:Y.jsx(l0,{}),meta:{label:"ChatGPT",icon:Y.jsx(cJ,{icon:"simple-icons:openai",className:"ant-menu-item-icon",size:"24"}),key:"/admin/share/chatgpt"}},{path:"claude",element:Y.jsx(c0,{}),meta:{label:"Claude",icon:Y.jsx(cJ,{icon:"simple-icons:anthropic",className:"ant-menu-item-icon",size:"24"}),key:"/admin/share/claude"}}]},d0=Object.freeze(Object.defineProperty({__proto__:null,default:u0},Symbol.toStringTag,{value:"Module"}));function f0(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function p0(e){return function t(n){return 0===arguments.length||f0(n)?t:e.apply(this,arguments)}}function h0(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return f0(n)?t:p0((function(t){return e(n,t)}));default:return f0(n)&&f0(r)?t:f0(n)?p0((function(t){return e(t,r)})):f0(r)?p0((function(t){return e(n,t)})):e(n,r)}}}function m0(e){return function t(n,r,o){switch(arguments.length){case 0:return t;case 1:return f0(n)?t:h0((function(t,r){return e(n,t,r)}));case 2:return f0(n)&&f0(r)?t:f0(n)?h0((function(t,n){return e(t,r,n)})):f0(r)?h0((function(t,r){return e(n,t,r)})):p0((function(t){return e(n,r,t)}));default:return f0(n)&&f0(r)&&f0(o)?t:f0(n)&&f0(r)?h0((function(t,n){return e(t,n,o)})):f0(n)&&f0(o)?h0((function(t,n){return e(t,r,n)})):f0(r)&&f0(o)?h0((function(t,r){return e(n,t,r)})):f0(n)?p0((function(t){return e(t,r,o)})):f0(r)?p0((function(t){return e(n,t,o)})):f0(o)?p0((function(t){return e(n,r,t)})):e(n,r,o)}}}const g0=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function v0(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function b0(e,t,n){for(var r=0,o=n.length;r=0;)y0(t=k0[n],e)&&!$0(r,t)&&(r[r.length]=t),n-=1;return r})):p0((function(e){return Object(e)!==e?[]:Object.keys(e)}));const T0=p0((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function M0(e,t,n,r){var o=v0(e);function i(e,t){return I0(e,t,n.slice(),r.slice())}return!b0((function(e,t){return!b0(i,t,e)}),v0(t),o)}function I0(e,t,n,r){if(x0(e,t))return!0;var o=T0(e);if(o!==T0(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!x0(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!x0(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var i=n.length-1;i>=0;){if(n[i]===e)return r[i]===t;i-=1}switch(o){case"Map":return e.size===t.size&&M0(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&M0(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=P0(e);if(a.length!==P0(t).length)return!1;var s=n.concat([e]),l=r.concat([t]);for(i=a.length-1;i>=0;){var c=a[i];if(!y0(c,t)||!I0(t[c],e[c],s,l))return!1;i-=1}return!0}var j0=h0((function(e,t){return I0(e,t,[],[])}));const R0=j0;function N0(e){return"[object Object]"===Object.prototype.toString.call(e)}var A0=m0((function(e,t,n){var r=e(t),o=e(n);return ro?1:0}));const L0=A0;var _0=p0((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():g0(e)?[]:function(e){return"[object String]"===Object.prototype.toString.call(e)}(e)?"":N0(e)?{}:C0(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const D0=_0;var B0=p0((function(e){return null!=e&&R0(e,D0(e))}));const F0=B0,z0=e=>e.filter((e=>{const t=e.meta?.key;return t&&e.children&&(e.children=z0(e.children)),t})).sort(L0((e=>e.order||1/0)));function H0(e){return e.reduce(((e,t)=>{const{meta:n,children:r}=t;return n&&e.push(n),r&&e.push(...H0(r)),e}),[])}function V0(){return F.useMemo((()=>function(){const e=[],t=Object.assign({"./routes/modules/account.tsx":o0,"./routes/modules/dashboard.tsx":s0,"./routes/modules/share.tsx":d0});return Object.keys(t).forEach((n=>{const r=t[n].default||{},o=Array.isArray(r)?[...r]:[r];e.push(...o)})),e}()),[])}function U0(){const e=F.useCallback(H0,[]),t=V0();return F.useMemo((()=>{const n=z0(t);return e(n)}),[e,t])}const W0=(e,t)=>{let n=e;const r=e.match(/:\w+/g);return r&&r.forEach((e=>{const r=e.slice(1);t[r]&&(n=n.replace(e,t[r]))})),n};function q0(){const e=function(){const{pathname:e}=SB();return F.useMemo((()=>e),[e])}(),{colorPrimary:t}=cZ(),[n,r]=F.useState(!1),[o,i]=F.useState(!1);F.useEffect((()=>{r(!0)}),[]),F.useEffect((()=>(o||(pZ.configure({showSpinner:!1}),pZ.start(),a(),i(!0)),o&&(pZ.done(),i(!1)),!o&&n&&(i(!1),pZ.done()),()=>{pZ.done()})),[e,n]);const a=()=>{const e=document.getElementById("nprogress");if(e){const n=e.querySelector(".bar"),r=e.querySelector(".peg");n.style.background=t,n.style.boxShadow=`0 0 2px ${t}`,r.style.boxShadow=`0 0 10px ${t}, 0 0 5px ${t}`}};return null}var G0={},K0={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(K0);var X0=K0.exports,Y0={};Object.defineProperty(Y0,"__esModule",{value:!0}),Y0.default=void 0;Y0.default={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"};var Z0={},Q0={},J0={};Object.defineProperty(J0,"__esModule",{value:!0}),J0.default=void 0;J0.default={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};var e1={};Object.defineProperty(e1,"__esModule",{value:!0}),e1.default=void 0;e1.default={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var t1=X0.default;Object.defineProperty(Q0,"__esModule",{value:!0}),Q0.default=void 0;var n1=t1(J0),r1=t1(e1);const o1={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},n1.default),timePickerLocale:Object.assign({},r1.default)};Q0.default=o1;var i1=X0.default;Object.defineProperty(Z0,"__esModule",{value:!0}),Z0.default=void 0;var a1=i1(Q0);Z0.default=a1.default;var s1=X0.default;Object.defineProperty(G0,"__esModule",{value:!0}),G0.default=void 0;var l1=s1(Y0),c1=s1(Z0),u1=s1(Q0),d1=s1(e1);const f1="${label} is not a valid ${type}",p1={locale:"en",Pagination:l1.default,DatePicker:u1.default,TimePicker:d1.default,Calendar:c1.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:f1,method:f1,array:f1,object:f1,number:f1,date:f1,boolean:f1,integer:f1,float:f1,regexp:f1,email:f1,url:f1,hex:f1},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};G0.default=p1;const h1=n(G0);var m1={},g1={};Object.defineProperty(g1,"__esModule",{value:!0}),g1.default=void 0;g1.default={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var v1={},b1={},y1={};Object.defineProperty(y1,"__esModule",{value:!0}),y1.default=void 0;y1.default={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};var x1={};Object.defineProperty(x1,"__esModule",{value:!0}),x1.default=void 0;x1.default={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var w1=X0.default;Object.defineProperty(b1,"__esModule",{value:!0}),b1.default=void 0;var S1=w1(y1),C1=w1(x1);const E1={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},S1.default),timePickerLocale:Object.assign({},C1.default)};E1.lang.ok="确定",b1.default=E1;var k1=X0.default;Object.defineProperty(v1,"__esModule",{value:!0}),v1.default=void 0;var O1=k1(b1);v1.default=O1.default;var $1=X0.default;Object.defineProperty(m1,"__esModule",{value:!0}),m1.default=void 0;var P1=$1(g1),T1=$1(v1),M1=$1(b1),I1=$1(x1);const j1="${label}不是一个有效的${type}",R1={locale:"zh-cn",Pagination:P1.default,DatePicker:M1.default,TimePicker:I1.default,Calendar:T1.default,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:j1,method:j1,array:j1,object:j1,number:j1,date:j1,boolean:j1,integer:j1,float:j1,regexp:j1,email:j1,url:j1,hex:j1},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无"}};m1.default=R1;const N1=n(m1),A1={[KJ.zh_CN]:{locale:KJ.zh_CN,label:"Chinese",icon:"ic-locale_zh_CN",antdLocal:N1},[KJ.en_US]:{locale:KJ.en_US,label:"English",icon:"ic-locale_en_US",antdLocal:h1}};function L1(){const{i18n:e}=TZ(),t=e.resolvedLanguage||KJ.zh_CN;return{locale:t,language:A1[t],setLocale:t=>{e.changeLanguage(t)}}}function _1(){const{setLocale:e,locale:t}=L1(),n=Object.values(A1).map((e=>({key:e.locale,label:e.label,icon:Y.jsx(dJ,{icon:e.icon,size:"20",className:"rounded-md"})})));return Y.jsx(vL,{placement:"bottomRight",trigger:["click"],menu:{items:n,onClick:t=>e(t.key)},children:Y.jsx(MZ,{className:"h-10 w-10 hover:scale-105",children:Y.jsx(dJ,{icon:`ic-locale_${t}`,size:"24",className:"rounded-md"})})},t)}function D1({className:e=""}){const{colorPrimary:t}=cZ();return Y.jsx(sF,{to:"/",className:"no-underline",children:Y.jsx("button",{className:`font-semibold ${e}`,style:{color:t},children:"Helper"})})}const B1=F.createContext({loginState:0,setLoginState:()=>{},backToLogin:()=>{}});function F1({children:e}){const[t,n]=F.useState(0);function r(){n(0)}const o=F.useMemo((()=>({loginState:t,setLoginState:n,backToLogin:r})),[t]);return Y.jsx(B1.Provider,{value:o,children:e})}function z1(e,t){return function(){return e.apply(t,arguments)}}const{toString:H1}=Object.prototype,{getPrototypeOf:V1}=Object,U1=(W1=Object.create(null),e=>{const t=H1.call(e);return W1[t]||(W1[t]=t.slice(8,-1).toLowerCase())});var W1;const q1=e=>(e=e.toLowerCase(),t=>U1(t)===e),G1=e=>t=>typeof t===e,{isArray:K1}=Array,X1=G1("undefined");const Y1=q1("ArrayBuffer");const Z1=G1("string"),Q1=G1("function"),J1=G1("number"),e2=e=>null!==e&&"object"==typeof e,t2=e=>{if("object"!==U1(e))return!1;const t=V1(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},n2=q1("Date"),r2=q1("File"),o2=q1("Blob"),i2=q1("FileList"),a2=q1("URLSearchParams");function s2(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),K1(e))for(r=0,o=e.length;r0;)if(r=n[o],t===r.toLowerCase())return r;return null}const c2="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,u2=e=>!X1(e)&&e!==c2;const d2=(f2="undefined"!=typeof Uint8Array&&V1(Uint8Array),e=>f2&&e instanceof f2);var f2;const p2=q1("HTMLFormElement"),h2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),m2=q1("RegExp"),g2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};s2(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},v2="abcdefghijklmnopqrstuvwxyz",b2="0123456789",y2={DIGIT:b2,ALPHA:v2,ALPHA_DIGIT:v2+v2.toUpperCase()+b2};const x2=q1("AsyncFunction"),w2={isArray:K1,isArrayBuffer:Y1,isBuffer:function(e){return null!==e&&!X1(e)&&null!==e.constructor&&!X1(e.constructor)&&Q1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Q1(e.append)&&("formdata"===(t=U1(e))||"object"===t&&Q1(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Y1(e.buffer),t},isString:Z1,isNumber:J1,isBoolean:e=>!0===e||!1===e,isObject:e2,isPlainObject:t2,isUndefined:X1,isDate:n2,isFile:r2,isBlob:o2,isRegExp:m2,isFunction:Q1,isStream:e=>e2(e)&&Q1(e.pipe),isURLSearchParams:a2,isTypedArray:d2,isFileList:i2,forEach:s2,merge:function e(){const{caseless:t}=u2(this)&&this||{},n={},r=(r,o)=>{const i=t&&l2(n,o)||o;t2(n[i])&&t2(r)?n[i]=e(n[i],r):t2(r)?n[i]=e({},r):K1(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o(s2(t,((t,r)=>{n&&Q1(t)?e[r]=z1(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&V1(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:U1,kindOfTest:q1,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(K1(e))return e;let t=e.length;if(!J1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:p2,hasOwnProperty:h2,hasOwnProp:h2,reduceDescriptors:g2,freezeMethods:e=>{g2(e,((t,n)=>{if(Q1(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Q1(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return K1(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:l2,global:c2,isContextDefined:u2,ALPHABET:y2,generateString:(e=16,t=y2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Q1(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(e2(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=K1(e)?[]:{};return s2(e,((e,t)=>{const i=n(e,r+1);!X1(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:x2,isThenable:e=>e&&(e2(e)||Q1(e))&&Q1(e.then)&&Q1(e.catch)};function S2(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}w2.inherits(S2,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w2.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const C2=S2.prototype,E2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{E2[e]={value:e}})),Object.defineProperties(S2,E2),Object.defineProperty(C2,"isAxiosError",{value:!0}),S2.from=(e,t,n,r,o,i)=>{const a=Object.create(C2);return w2.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),S2.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function k2(e){return w2.isPlainObject(e)||w2.isArray(e)}function O2(e){return w2.endsWith(e,"[]")?e.slice(0,-2):e}function $2(e,t,n){return e?e.concat(t).map((function(e,t){return e=O2(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const P2=w2.toFlatObject(w2,{},null,(function(e){return/^is[A-Z]/.test(e)}));function T2(e,t,n){if(!w2.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=w2.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!w2.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&w2.isSpecCompliantForm(t);if(!w2.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(w2.isDate(e))return e.toISOString();if(!s&&w2.isBlob(e))throw new S2("Blob is not supported. Use a Buffer instead.");return w2.isArrayBuffer(e)||w2.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(w2.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(w2.isArray(e)&&function(e){return w2.isArray(e)&&!e.some(k2)}(e)||(w2.isFileList(e)||w2.endsWith(n,"[]"))&&(s=w2.toArray(e)))return n=O2(n),s.forEach((function(e,r){!w2.isUndefined(e)&&null!==e&&t.append(!0===a?$2([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!k2(e)||(t.append($2(o,n,i),l(e)),!1)}const u=[],d=Object.assign(P2,{defaultVisitor:c,convertValue:l,isVisitable:k2});if(!w2.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!w2.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),w2.forEach(n,(function(n,i){!0===(!(w2.isUndefined(n)||null===n)&&o.call(t,n,w2.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function M2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function I2(e,t){this._pairs=[],e&&T2(e,this,t)}const j2=I2.prototype;function R2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function N2(e,t,n){if(!t)return e;const r=n&&n.encode||R2,o=n&&n.serialize;let i;if(i=o?o(t,n):w2.isURLSearchParams(t)?t.toString():new I2(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}j2.append=function(e,t){this._pairs.push([e,t])},j2.toString=function(e){const t=e?function(t){return e.call(this,t,M2)}:M2;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const A2=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w2.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},L2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_2={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:I2,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},D2="undefined"!=typeof window&&"undefined"!=typeof document,B2=(F2="undefined"!=typeof navigator&&navigator.product,D2&&["ReactNative","NativeScript","NS"].indexOf(F2)<0);var F2;const z2="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,H2={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:D2,hasStandardBrowserEnv:B2,hasStandardBrowserWebWorkerEnv:z2},Symbol.toStringTag,{value:"Module"})),..._2};function V2(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&w2.isArray(r)?r.length:i,s)return w2.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&w2.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&w2.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r{t(function(e){return w2.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const U2={transitional:L2,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=w2.isObject(e);o&&w2.isHTMLForm(e)&&(e=new FormData(e));if(w2.isFormData(e))return r?JSON.stringify(V2(e)):e;if(w2.isArrayBuffer(e)||w2.isBuffer(e)||w2.isStream(e)||w2.isFile(e)||w2.isBlob(e))return e;if(w2.isArrayBufferView(e))return e.buffer;if(w2.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return T2(e,new H2.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return H2.isNode&&w2.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=w2.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return T2(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(w2.isString(e))try{return(t||JSON.parse)(e),w2.trim(e)}catch(s7){if("SyntaxError"!==s7.name)throw s7}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||U2.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&w2.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(s7){if(n){if("SyntaxError"===s7.name)throw S2.from(s7,S2.ERR_BAD_RESPONSE,this,null,this.response);throw s7}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:H2.classes.FormData,Blob:H2.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w2.forEach(["delete","get","head","post","put","patch"],(e=>{U2.headers[e]={}}));const W2=U2,q2=w2.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),G2=Symbol("internals");function K2(e){return e&&String(e).trim().toLowerCase()}function X2(e){return!1===e||null==e?e:w2.isArray(e)?e.map(X2):String(e)}function Y2(e,t,n,r,o){return w2.isFunction(r)?r.call(this,t,n):(o&&(t=n),w2.isString(t)?w2.isString(r)?-1!==t.indexOf(r):w2.isRegExp(r)?r.test(t):void 0:void 0)}class Z2{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=K2(t);if(!o)throw new Error("header name must be a non-empty string");const i=w2.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=X2(e))}const i=(e,t)=>w2.forEach(e,((e,n)=>o(e,n,t)));return w2.isPlainObject(e)||e instanceof this.constructor?i(e,t):w2.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&q2[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=K2(e)){const n=w2.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(w2.isFunction(t))return t.call(this,e,n);if(w2.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=K2(e)){const n=w2.findKey(this,e);return!(!n||void 0===this[n]||t&&!Y2(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=K2(e)){const o=w2.findKey(n,e);!o||t&&!Y2(0,n[o],o,t)||(delete n[o],r=!0)}}return w2.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Y2(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return w2.forEach(this,((r,o)=>{const i=w2.findKey(n,o);if(i)return t[i]=X2(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=X2(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return w2.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&w2.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[G2]=this[G2]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=K2(e);t[r]||(!function(e,t){const n=w2.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return w2.isArray(e)?e.forEach(r):r(e),this}}Z2.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w2.reduceDescriptors(Z2.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),w2.freezeMethods(Z2);const Q2=Z2;function J2(e,t){const n=this||W2,r=t||n,o=Q2.from(r.headers);let i=r.data;return w2.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function e5(e){return!(!e||!e.__CANCEL__)}function t5(e,t,n){S2.call(this,null==e?"canceled":e,S2.ERR_CANCELED,t,n),this.name="CanceledError"}w2.inherits(t5,S2,{__CANCEL__:!0});const n5=H2.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];w2.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),w2.isString(r)&&a.push("path="+r),w2.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function r5(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const o5=H2.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=w2.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function i5(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const a5="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=Q2.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(w2.isFormData(r))if(H2.hasStandardBrowserEnv||H2.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=r5(e.baseURL,e.url);function f(){if(!u)return;const r=Q2.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new S2("Request failed with status code "+n.status,[S2.ERR_BAD_REQUEST,S2.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),N2(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(f)},u.onabort=function(){u&&(n(new S2("Request aborted",S2.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new S2("Network Error",S2.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||L2;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new S2(t,r.clarifyTimeoutError?S2.ETIMEDOUT:S2.ECONNABORTED,e,u)),u=null},H2.hasStandardBrowserEnv&&(l&&w2.isFunction(l)&&(l=l(e)),l||!1!==l&&o5(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&n5.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&w2.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),w2.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",i5(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",i5(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new t5(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===H2.protocols.indexOf(p)?n(new S2("Unsupported protocol "+p+":",S2.ERR_BAD_REQUEST,e)):u.send(r||null)}))},s5={http:null,xhr:a5};w2.forEach(s5,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(s7){}Object.defineProperty(e,"adapterName",{value:t})}}));const l5=e=>`- ${e}`,c5=e=>w2.isFunction(e)||null===e||!1===e,u5=e=>{e=w2.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new S2("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(l5).join("\n"):" "+l5(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function d5(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new t5(null,e)}function f5(e){d5(e),e.headers=Q2.from(e.headers),e.data=J2.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return u5(e.adapter||W2.adapter)(e).then((function(t){return d5(e),t.data=J2.call(e,e.transformResponse,t),t.headers=Q2.from(t.headers),t}),(function(t){return e5(t)||(d5(e),t&&t.response&&(t.response.data=J2.call(e,e.transformResponse,t.response),t.response.headers=Q2.from(t.response.headers))),Promise.reject(t)}))}const p5=e=>e instanceof Q2?{...e}:e;function h5(e,t){t=t||{};const n={};function r(e,t,n){return w2.isPlainObject(e)&&w2.isPlainObject(t)?w2.merge.call({caseless:n},e,t):w2.isPlainObject(t)?w2.merge({},t):w2.isArray(t)?t.slice():t}function o(e,t,n){return w2.isUndefined(t)?w2.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!w2.isUndefined(t))return r(void 0,t)}function a(e,t){return w2.isUndefined(t)?w2.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(p5(e),p5(t),!0)};return w2.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);w2.isUndefined(a)&&i!==s||(n[r]=a)})),n}const m5="1.6.8",g5={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{g5[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const v5={};g5.transitional=function(e,t,n){return(r,o,i)=>{if(!1===e)throw new S2(function(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),S2.ERR_DEPRECATED);return t&&!v5[o]&&(v5[o]=!0),!e||e(r,o,i)}};const b5={assertOptions:function(e,t,n){if("object"!=typeof e)throw new S2("options must be an object",S2.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new S2("option "+i+" must be "+n,S2.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new S2("Unknown option "+i,S2.ERR_BAD_OPTION)}},validators:g5},y5=b5.validators;class x5{constructor(e){this.defaults=e,this.interceptors={request:new A2,response:new A2}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=h5(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&b5.assertOptions(n,{silentJSONParsing:y5.transitional(y5.boolean),forcedJSONParsing:y5.transitional(y5.boolean),clarifyTimeoutError:y5.transitional(y5.boolean)},!1),null!=r&&(w2.isFunction(r)?t.paramsSerializer={serialize:r}:b5.assertOptions(r,{encode:y5.function,serialize:y5.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&w2.merge(o.common,o[t.method]);o&&w2.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Q2.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[f5.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new t5(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new S5((function(t){e=t}));return{token:t,cancel:e}}}const C5=S5;const E5={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(E5).forEach((([e,t])=>{E5[t]=e}));const k5=E5;const O5=function e(t){const n=new w5(t),r=z1(w5.prototype.request,n);return w2.extend(r,w5.prototype,n,{allOwnKeys:!0}),w2.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(h5(t,n))},r}(W2);O5.Axios=w5,O5.CanceledError=t5,O5.CancelToken=C5,O5.isCancel=e5,O5.VERSION=m5,O5.toFormData=T2,O5.AxiosError=S2,O5.Cancel=O5.CanceledError,O5.all=function(e){return Promise.all(e)},O5.spread=function(e){return function(t){return e.apply(null,t)}},O5.isAxiosError=function(e){return w2.isObject(e)&&!0===e.isAxiosError},O5.mergeConfig=h5,O5.AxiosHeaders=Q2,O5.formToJSON=e=>V2(w2.isHTMLForm(e)?new FormData(e):e),O5.getAdapter=u5,O5.HttpStatusCode=k5,O5.default=O5;const $5=O5,P5={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]}};class T5{constructor(e){let t=arguments.length>1&&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||P5,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{let[t,r]=e;for(let o=0;o{let[r,o]=t;for(let i=0;i{e=n,t=r}));return n.resolve=e,n.reject=t,n}function R5(e){return null==e?"":""+e}const N5=/###/g;function A5(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(N5,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?t:t.split(".");let a=0;for(;a":">",'"':""","'":"'","/":"/"};function z5(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>F5[e])):e}const H5=[" ",",","?","!",";"],V5=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function U5(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i-1&&a0?e.replace("_","-"):e}class q5 extends I5{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){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"==typeof n&&o?a.push(...n.split(o)):a.push(n)));const s=_5(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),s||!i||"string"!=typeof n?s:U5(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),L5(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=_5(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?D5(s,n,o):s={...s,...n},L5(this.data,a,s),i.silent||this.emit("added",e,t,n)}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){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var G5={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))})),t}};const K5={};class X5 extends I5{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[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=M5.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;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=H5.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const o=V5.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){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)]);const r=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),s=a[a.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:i}const u=this.resolve(e,t);let d=u&&u.res;const f=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof m||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e="[object Array]"===h,n=e?[]:{},r=e?p:f;for(const i in d)if(Object.prototype.hasOwnProperty.call(d,i)){const e=`${r}${o}${i}`;n[i]=this.translate(e,{...t,joinArrays:!1,ns:a}),n[i]===e&&(n[i]=d[i])}d=n}}else if(g&&"string"==typeof m&&"[object Array]"===h)d=d.join(m),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,f=X5.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=g),this.isValidLookup(d)||(a=!0,d=i);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,b=f&&g!==d&&this.options.updateMissing;if(a||r||b){if(this.logger.log(b?"updateKey":"missingKey",l,s,i,b?g:d),o){const 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=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{const o=f&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,o,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,o,b,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{r([e],i+n,t[`defaultValue${n}`]||g)}))})):r(e,i,g))}d=this.extendTranslation(d,e,t,u,n),a&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${i}`:i,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;n=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&"string"!=typeof a.count,d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=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,!K5[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(K5[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" 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((n=>{if(this.isValidLookup(t))return;o=n;const i=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,l,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(l+e),a.ordinal&&0===e.indexOf(r)&&i.push(l+e.replace(r,this.options.pluralSeparator)),d&&i.push(l+t)),f){const n=`${l}${this.options.contextSeparator}${a.context}`;i.push(n),u&&(i.push(n+e),a.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),d&&i.push(n+t))}}let s;for(;s=i.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function Y5(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Z5{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=M5.create("languageUtils")}getScriptPartFromCode(e){if(!(e=W5(e))||e.indexOf("-")<0)return null;const 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=W5(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Y5(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Y5(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Y5(n[2].toLowerCase()))),n.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){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}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 n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.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)),n.forEach((e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))})),r}}let Q5=[{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}],J5={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)}};const e3=["v1","v2","v3"],t3=["v4"],n3={zero:0,one:1,two:2,few:3,many:4,other:5};class r3{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=M5.create("pluralResolver"),this.options.compatibilityJSON&&!t3.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(){const e={};return Q5.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:J5[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(W5("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>n3[e]-n3[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!e3.includes(this.options.compatibilityJSON)}}function o3(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,n){const r=_5(e,n);return void 0!==r?r:_5(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&(i=U5(e,n,r),void 0===i&&(i=U5(t,n,r))),i}class i3{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=M5.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});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:z5,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?B5(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?B5(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?B5(t.nestingPrefix):t.nestingPrefixEscaped||B5("$t("),this.nestingSuffix=t.nestingSuffix?B5(t.nestingSuffix):t.nestingSuffixEscaped||B5(")"),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(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const o=o3(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(o3(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>l(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?l(this.escape(e)):l(e)}].forEach((t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=c(n),void 0===i)if("function"==typeof u){const t=u(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(d){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=R5(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const a=i.match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(s7){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,s7),`${e}${n}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let s=[];o={...i},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,l=!0}if(r=t(a.call(this,n[1].trim(),o),o),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=R5(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=s.reduce(((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function a3(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(W5(r),o),t[i]=a),a(n)}}class s3{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=M5.create("formatter"),this.options=e,this.formats={number:a3(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:a3(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:a3(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:a3(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:a3(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=a3(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...i,...r,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e);return o}}class l3 extends I5{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=M5.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},a={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.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,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:o,k:i}=A5(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)}(n.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=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)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r{this.read.call(this,e,t,n,r+1,2*o,i)}),o):i(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(l){a(l)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,((n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)}))}saveMissing(e,t,n,r,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 "${n}" 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!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const l={...i,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let o;o=5===c.length?c(e,t,n,r,l):c(e,t,n,r),o&&"function"==typeof o.then?o.then((e=>a(null,e))).catch(a):a(null,o)}catch(s){a(s)}else c(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function c3(){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]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function u3(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&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function d3(){}class f3 extends I5{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=u3(e),this.services={},this.logger=M5,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),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]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=c3();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...u3(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.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?M5.init(o(this.modules.logger),this.options):M5.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=s3);const n=new Z5(this.options);this.store=new q5(this.options.resources,this.options);const i=this.services;i.logger=M5,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new r3(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.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 i3(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new l3(o(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=d3),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const 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}}));const i=j5(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(t),n(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]:d3;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=j5();return e||(e=this.languages),t||(t=this.options.ns),n||(n=d3),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"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&&G5.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 t=0;t-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=j5();this.emit("languageChanging",e);const 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,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{i(e,n)}))};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()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l`${i.keyPrefix}${c}${e}`)):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,r.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,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;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=j5();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=j5();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],o=e.filter((e=>r.indexOf(e)<0));return o.length?(this.options.preload=r.concat(o),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(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";const t=this.services&&this.services.languageUtils||new Z5(c3());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(){return new f3(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d3;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new f3(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new q5(this.store.data,r),o.services.resourceStore=o.store),o.translator=new X5(o.services,r),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=function(e,t,n){var r=n||{};r.path=r.path||"/";var o=encodeURIComponent(t),i="".concat(e,"=").concat(o);if(r.maxAge>0){var a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(a))}if(r.domain){if(!v3.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(r.domain)}if(r.path){if(!v3.test(r.path))throw new TypeError("option path is invalid");i+="; Path=".concat(r.path)}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i}(e,encodeURIComponent(t),o)},y3=function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),o=0;o0)r[o].substring(0,i)===e.lookupQuerystring&&(t=r[o].substring(i+1))}}return t}},S3=null,C3=function(){if(null!==S3)return S3;try{S3="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(s7){S3=!1}return S3},E3={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&C3()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&C3()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},k3=null,O3=function(){if(null!==k3)return k3;try{k3="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(s7){k3=!1}return k3},$3={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&O3()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&O3()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},P3={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n0?t:void 0}},T3={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},M3={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},I3={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,n="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}};var j3=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ih(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Rh(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}},this.options=function(e){return m3.call(g3.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(x3),this.addDetector(w3),this.addDetector(E3),this.addDetector($3),this.addDetector(P3),this.addDetector(T3),this.addDetector(M3),this.addDetector(I3)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}})),n=n.map((function(e){return t.options.convertDetectedLanguage(e)})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();j3.type="languageDetector";const R3={...{common:{okText:"OK",closeText:"Close",cancelText:"Cancel",loadingText:"Loading...",saveText:"Save",delText:"Delete",resetText:"Reset",searchText:"Search",queryText:"Search",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",light:"Light",dark:"Dark",refresh:"Refresh",refreshConfirm:"Refresh the Account",deleteConfirm:"Delete the Account",welcomeBack:"Welcome back 👋",desc:"Manage your PandoraNext account and token in 1 place.",goNow:"Go Now",optional:"Optional"},"%namespace%:password":"","%namespace%:shareStatus":""},...{sys:{api:{operationSuccess:"Operation Success",operationFailed:"Operation failed",errorTip:"Error Tip",successTip:"Success Tip",errorMessage:"The operation failed, the system is abnormal!",timeoutMessage:"Login timed out, please log in again!",apiTimeoutMessage:"The interface request timed out, please refresh the page and try again!",apiRequestFailed:"The interface request failed, please try again later!",networkException:"network anomaly",networkExceptionMsg:"Please check if your network connection is normal! The network is abnormal",errMsg401:"The user does not have permission (token, user name, password error)!",errMsg403:"The user is authorized, but access is forbidden!",errMsg404:"Network request error, the resource was not found!",errMsg405:"Network request error, request method not allowed!",errMsg408:"Network request timed out!",errMsg500:"Server error, please contact the administrator!",errMsg501:"The network is not implemented!",errMsg502:"Network Error!",errMsg503:"The service is unavailable, the server is temporarily overloaded or maintained!",errMsg504:"Network timeout!",errMsg505:"The http version does not support the request!"},login:{backSignIn:"Back sign in",mobileSignInFormTitle:"Mobile sign in",qrSignInFormTitle:"Qr code sign in",signInFormTitle:"Sign in",signUpFormTitle:"Sign up",forgetFormTitle:"Reset password",signInPrimaryTitle:"Hi, Welcome Back",signInSecondTitle:"Backstage management system",signInTitle:"",signInDesc:"Enter your personal details and get started!",policy:"I agree to the xxx Privacy Policy",scanSign:"scanning the code to complete the login",forgetFormSecondTitle:"Please enter the email address associated with your account and We will email you a link to reset your password.",loginButton:"Sign in",registerButton:"Sign up",rememberMe:"Remember me",forgetPassword:"Forget Password?",otherSignIn:"Sign in with",sendSmsButton:"Send SMS code",sendSmsText:"Reacquire in {{second}}s",sendEmailButton:"Send Email",loginSuccessTitle:"Login successful",loginSuccessDesc:"Welcome back",accountPlaceholder:"Please input username",passwordPlaceholder:"Please input password",confirmPasswordPlaceholder:"Please input confirm password",emaildPlaceholder:"Please input email",smsPlaceholder:"Please input sms code",mobilePlaceholder:"Please input mobile",policyPlaceholder:"Register after checking",diffPwd:"The two passwords are inconsistent",userName:"Username",password:"Password",confirmPassword:"Confirm Password",email:"Email",smsCode:"SMS code",mobile:"Mobile",registerAndAgree:"By signing up, I agree to",termsOfService:" Terms of service ",privacyPolicy:" Privacy policy ",logout:"Logout"},tab:{fullscreen:"FullScreen",refresh:"Refresh",close:"Close",closeOthers:"Close Others",closeAll:"Close All",closeLeft:"Close Left",closeRight:"Close Right"},menu:{token:"Token",account:"Account",share:"Share",dashboard:"Dashboard",workbench:"Workbench",analysis:"Analysis",management:"Management",user:{index:"User",profile:"Profile",account:"Account"},system:{index:"System",organization:"Organization",permission:"Permission",role:"Role",user:"User"},blog:"Blog",components:"Components",icon:"Icon",animate:"Animate",scroll:"Scroll",markdown:"Markdown",editor:"Editor",i18n:"Multi Language",upload:"Upload",chart:"Chart",functions:"Functions",clipboard:"Clipboard",menulevel:{index:"Menu Level","1a":"Menu Level 1a","1b":{index:"Menu Level 1b","2a":"Menu Level 2a","2b":{index:"Menu Level 2b","3a":"Menu Level 3a","3b":"Menu Level 3b"}}},disabled:"Item Disabled",label:"Item Label",frame:"Item External",external_link:"External Link",iframe:"Iframe",blank:"Blank",calendar:"Calendar",kanban:"Kanban",error:{403:"403",404:"404",500:"500",index:"Error Page"}}}},...{token:{email:"Email",password:"Password",loginStatus:"Login status",shareStatus:"Share Status",updateTime:"Update Time",action:"Action",share:"Share",shareList:"Share List",createNew:"Create New",edit:"Edit",accountList:"Account List",comment:"Comment",tokenType:"Token Type",customToken:"Custom Token",statistic:"Statistic",queryingInfo:"Querying, this will take a long time...",search:"Search",reset:"Reset",deleteConfirm:"Are you sure?",stop:"Stop Auto Refresh",start:"Start Auto Refresh",copySuccess:"Copy Success",refreshCron:"Refresh Limit Everyday"}}},N3={...{common:{okText:"确认",closeText:"关闭",cancelText:"取消",loadingText:"加载中...",saveText:"保存",delText:"删除",resetText:"重置",searchText:"搜索",queryText:"查询",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",light:"亮色主题",dark:"黑暗主题",optional:"可选"}},...{sys:{api:{operationSuccess:"操作成功",operationFailed:"操作失败",errorTip:"错误提示",successTip:"成功提示",errorMessage:"操作失败,系统异常!",timeoutMessage:"登录超时,请重新登录!",apiTimeoutMessage:"接口请求超时,请刷新页面重试!",apiRequestFailed:"请求出错,请稍候重试",networkException:"网络异常",networkExceptionMsg:"网络异常,请检查您的网络连接是否正常!",errMsg401:"用户没有权限(令牌、用户名、密码错误)!",errMsg403:"用户得到授权,但是访问是被禁止的。!",errMsg404:"网络请求错误,未找到该资源!",errMsg405:"网络请求错误,请求方法未允许!",errMsg408:"网络请求超时!",errMsg500:"服务器错误,请联系管理员!",errMsg501:"网络未实现!",errMsg502:"网络错误!",errMsg503:"服务不可用,服务器暂时过载或维护!",errMsg504:"网络超时!",errMsg505:"http版本不支持该请求!"},login:{backSignIn:"返回",signInFormTitle:"登录",mobileSignInFormTitle:"手机登录",qrSignInFormTitle:"二维码登录",signUpFormTitle:"注册",forgetFormTitle:"重置密码",signInPrimaryTitle:"欢迎回来",signInSecondTitle:"开箱即用的中后台管理系统",signInDesc:"输入您的个人详细信息开始使用!",policy:"我同意xxx隐私政策",scanSign:"扫码后点击'确认',即可完成登录",forgetFormSecondTitle:"请输入与您的帐户关联的电子邮件地址,我们将通过电子邮件向您发送重置密码的链接。",loginButton:"登录",registerButton:"注册",rememberMe:"记住我",forgetPassword:"忘记密码?",otherSignIn:"其他登录方式",sendSmsButton:"发送验证码",sendSmsText:"{{second}}秒后重新获取",sendEmailButton:"发送邮件",loginSuccessTitle:"登录成功",loginSuccessDesc:"欢迎回来",accountPlaceholder:"请输入账号",passwordPlaceholder:"请输入密码",confirmPasswordPlaceholder:"请输入确认密码",emaildPlaceholder:"请输入邮箱",smsPlaceholder:"请输入验证码",mobilePlaceholder:"请输入手机号码",policyPlaceholder:"勾选后才能注册",diffPwd:"两次输入密码不一致",userName:"账号",password:"密码",confirmPassword:"确认密码",email:"邮箱",smsCode:"短信验证码",mobile:"手机号码",registerAndAgree:"注册即我同意",termsOfService:" 服务条款 ",privacyPolicy:" 隐私政策 ",logout:"退出"},tab:{fullscreen:"内容全屏",refresh:"刷新",close:"关闭标签页",closeOthers:"关闭其它标签页",closeAll:"关闭所有标签页",closeLeft:"关闭左侧标签页",closeRight:"关闭右侧标签页"},menu:{token:"令牌",account:"账号管理",share:"分享管理",dashboard:"仪表",workbench:"工作台",analysis:"分析",management:"管理",user:{index:"用户",profile:"个人资料",account:"账户"},system:{index:"系统",organization:"组织",permission:"权限",role:"角色",user:"用户"},blog:"博客",components:"组件",icon:"图标",animate:"动画",scroll:"滚动",markdown:"Markdown",editor:"富文本",i18n:"多语言",upload:"上传",chart:"图表",functions:"功能",clipboard:"剪贴板",menulevel:{index:"多级菜单","1a":"多级菜单 1a","1b":{index:"多级菜单 1b","2a":"多级菜单 2a","2b":{index:"多级菜单 2b","3a":"多级菜单 3a","3b":"多级菜单 3b"}}},disabled:"项目禁用",label:"项目标签",frame:"项目外部链接",external_link:"外链",iframe:"内嵌",blank:"空白",calendar:"日历",kanban:"看板",error:{403:"403",404:"404",500:"500",index:"异常页"}}}},...{token:{email:"电子邮件",password:"密码",loginStatus:"登录状态",shareStatus:"共享状态",updateTime:"更新时间",action:"操作",share:"共享",shareList:"共享列表",createNew:"新建",edit:"编辑",accountList:"账号列表",comment:"备注",tokenType:"令牌类型",customToken:"自定义令牌",statistic:"统计",queryingInfo:"查询中,这将需要很长时间......",search:"搜索",reset:"重置",deleteConfirm:"确定删除吗",stop:"停止定时刷新",start:"启动定时刷新",copySuccess:"复制成功",expiresIn:"有效期(秒)",expiresAt:"有效期至",siteLimit:"站点限制",gpt35Limit:"GPT-3.5次数",gpt4Limit:"GPT-4次数",showUserinfo:"显示用户信息",showConversations:"会话隔离",refreshEveryday:"每天重置限额",temporaryChat:"临时聊天"}}},A3=(L3=UJ.I18N,localStorage.getItem(L3)||KJ.en_US);var L3;p3.use(j3).use(kZ).init({debug:!0,lng:A3,fallbackLng:KJ.en_US,interpolation:{escapeValue:!1},resources:{en_US:{translation:R3},zh_CN:{translation:N3}}});const{t:_3}=p3,D3=$5.create({baseURL:"/api",timeout:5e4,headers:{"Content-Type":"application/json;charset=utf-8"}});D3.interceptors.request.use((e=>{const t=FJ(UJ.Token);return e.headers.Authorization=`Bearer ${t?.accessToken}`,e}),(e=>Promise.reject(e))),D3.interceptors.response.use((e=>{if(!e.data&&!e.status)throw new Error(_3("sys_info.api.apiRequestFailed"));let{status:t,data:n,message:r}=e.data;if(n&&Reflect.has(e.data,"status")&&t===VJ.SUCCESS)return n;throw new Error(r||_3("sys_info.api.apiRequestFailed"))}),(e=>{const{response:t,message:n}=e||{};401===t?.status&&(YL.error("登录失效",5),HJ(UJ.Token),window.location.href="/admin/login");let r="";try{r=t?.data?.message||n}catch(o){throw new Error(o)}return F0(r)&&(r=_3("sys_info.api.errorMessage")),YL.error(r,5),Promise.reject(e)}));const B3=new class{get(e){return this.request({...e,method:"GET"})}post(e){return this.request({...e,method:"POST"})}put(e){return this.request({...e,method:"PUT"})}delete(e){return this.request({...e,method:"DELETE"})}request(e){return new Promise(((t,n)=>{D3.request(e).then((e=>{t(e)})).catch((e=>{n(e)}))}))}},F3=e=>B3.post({url:"login",data:e}),{VITE_APP_HOMEPAGE:z3}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1},H3=BJ((e=>({userInfo:FJ(UJ.User)||{},userToken:FJ(UJ.Token)||{},actions:{setUserInfo:t=>{e({userInfo:t}),zJ(UJ.User,t)},setUserToken:t=>{e({userToken:t}),zJ(UJ.Token,t)},clearUserInfoAndToken(){e({userInfo:{},userToken:{}}),HJ(UJ.User),HJ(UJ.Token)}}}))),V3=()=>H3((e=>e.userInfo)),U3=()=>H3((e=>e.userToken)),W3=()=>H3((e=>e.actions)),q3=()=>{const{t:e}=TZ(),t=EB(),{notification:n,message:r}=W$.useApp(),{setUserToken:o,setUserInfo:i}=W3(),a=cf(F3);return F.useCallback((async s=>{try{const r=await a.mutateAsync(s),{user:l,accessToken:c}=r;o({accessToken:c}),i(l),t(z3,{replace:!0}),n.success({message:e("sys.login.loginSuccessTitle"),description:`${e("sys.login.loginSuccessDesc")}`,duration:3})}catch(l){r.warning({content:l.message,duration:3})}}),[])},G3="/admin/assets/qinshihuang-5cdf3ec2.jpg",{VITE_APP_HOMEPAGE:K3}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function X3(){const{replace:e}=hZ(),{username:t,email:n}=V3(),{clearUserInfoAndToken:r}=W3(),{backToLogin:o}=F.useContext(B1),{t:i}=TZ(),{colorBgElevated:a,borderRadiusLG:s,boxShadowSecondary:l}=cZ(),c={backgroundColor:a,borderRadius:s,boxShadow:l},u={boxShadow:"none"},d=[{label:Y.jsx(sF,{to:K3,children:i("sys.menu.dashboard")}),key:"0"},{label:Y.jsx(sF,{to:"/management/user/profile",children:i("sys.menu.user.profile")}),key:"1"},{label:Y.jsx(sF,{to:"/management/user/account",children:i("sys.menu.user.account")}),key:"2"},{type:"divider"},{label:Y.jsx("button",{className:"font-bold text-warning",children:i("sys.login.logout")}),key:"3",onClick:()=>{try{r(),o()}catch(t){}finally{e("/admin/login")}}}];return Y.jsx(sj,{menu:{items:d},trigger:["click"],dropdownRender:e=>Y.jsxs("div",{style:c,children:[Y.jsxs("div",{className:"flex flex-col items-start p-4",children:[Y.jsx("div",{children:t}),Y.jsx("div",{className:"text-gray",children:n})]}),Y.jsx(FN,{style:{margin:0}}),z.cloneElement(e,{style:u})]}),children:Y.jsx(MZ,{className:"h-10 w-10 transform-none px-0 hover:scale-105",children:Y.jsx("img",{className:"h-8 w-8 rounded-full",src:G3,alt:""})})})}function Y3(){const{t:e}=TZ(),t=_B(),[n,r]=F.useState([]),o=U0(),i=V0();return F.useEffect((()=>{const n=z0(i),a=t.filter((e=>"/"!==e.pathname)).map((e=>e.pathname)),s=o.filter((e=>-1!==a.indexOf(e.key)));let l=[...n];const c=s.map((t=>{const{key:n,label:r}=t;l=l.find((e=>e.meta?.key===n))?.children?.filter((e=>!e.meta?.hideMenu));const o={key:n,title:e(r)};return l&&(o.menu={items:l.map((t=>({key:t.meta?.key,label:Y.jsx(aF,{to:t.meta.key,children:e(t.meta.label)})})))}),o}));r(c)}),[t,o,e,i]),Y.jsx(Sj,{items:n,className:"!text-sm"})}var Z3={exports:{}};Z3.exports=(()=>{return e={772:(e,t,n)=>{const r=n(826).remove,o=/[.*+?^${}()|[\]\\]/g,i=/[a-z0-9_]/i,a=/\s+/;e.exports=function(e,t,n){var s,l;l={insideWords:!1,findAllOccurrences:!1,requireMatchAll:!1},s=(s=n)||{},Object.keys(s).forEach((e=>{l[e]=!!s[e]})),n=l;const c=Array.from(e).map((e=>r(e)));let u=c.join("");return(t=r(t)).trim().split(a).filter((e=>e.length>0)).reduce(((e,t)=>{const r=t.length,a=!n.insideWords&&i.test(t[0])?"\\b":"",s=new RegExp(a+t.replace(o,"\\$&"),"i");let l,d;if(l=s.exec(u),n.requireMatchAll&&null===l)return u="",[];for(;l;){d=l.index;const t=r-c.slice(d,d+r).join("").length,o=d-c.slice(0,d).join("").length,i=[d+o,d+r+o+t];if(i[0]!==i[1]&&e.push(i),u=u.slice(0,d)+new Array(r+1).join(" ")+u.slice(d+r),!n.findAllOccurrences)break;l=s.exec(u)}return e}),[]).sort(((e,t)=>e[0]-t[0]))}},826:e=>{var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z"},n=Object.keys(t).join("|"),r=new RegExp(n,"g"),o=new RegExp(n,""),i=function(e){return e.replace(r,(function(e){return t[e]}))};e.exports=i,e.exports.has=function(e){return!!e.match(o)},e.exports.remove=i}},t={},function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(772);var e,t})();const Q3=n(Z3.exports);var J3={exports:{}};J3.exports=(()=>{return e={705:e=>{e.exports=function(e,t){const n=[];return 0===t.length?n.push({text:e,highlight:!1}):t[0][0]>0&&n.push({text:e.slice(0,t[0][0]),highlight:!1}),t.forEach(((r,o)=>{const i=r[0],a=r[1];n.push({text:e.slice(i,a),highlight:!0}),o===t.length-1?a=t||n<0||d&&e-c>=i}function m(){var e=U4();if(h(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?G4(n,i-(e-c)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=U4(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=V4(t)||0,_4(n)&&(u=!!n.leading,i=(d="maxWait"in n)?q4(V4(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(U4())},v}const X4=n(!("undefined"==typeof window||!window.document||!window.document.createElement));var Y4=function(){return Y4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n
';var n=t.firstElementChild,r=null==n?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var o=e.getOffset(n),i=e.getOffset(r);n.scrollLeft=-999;var a=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:o.left!==i.left,isScrollingToNegative:i.left!==a.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:J4()}catch(s7){return J4()}},e.getOffset=function(e){var t=e.getBoundingClientRect(),n=l6(e),r=s6(e);return{top:t.top+(r.pageYOffset||n.documentElement.scrollTop),left:t.left+(r.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){X4&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var e,t;this.wrapperEl=this.el.querySelector(f6(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(f6(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(f6(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(f6(this.classNames.offset)),this.maskEl=this.el.querySelector(f6(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,f6(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(f6(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(f6(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(f6(this.classNames.track)).concat(f6(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(f6(this.classNames.track)).concat(f6(this.classNames.vertical))),this.axis.x.scrollbar.el=(null===(e=this.axis.x.track.el)||void 0===e?void 0:e.querySelector(f6(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=(null===(t=this.axis.y.track.el)||void 0===t?void 0:t.querySelector(f6(this.classNames.scrollbar)))||null,this.options.autoHide||(u6(this.axis.x.scrollbar.el,this.classNames.visible),u6(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var e,t=this,n=s6(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),null===(e=this.contentWrapperEl)||void 0===e||e.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),this.contentEl){if(window.ResizeObserver){var r=!1,o=n.ResizeObserver||ResizeObserver;this.resizeObserver=new o((function(){r&&n.requestAnimationFrame((function(){t.recalculate()}))})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame((function(){r=!0}))}this.mutationObserver=new n.MutationObserver((function(){n.requestAnimationFrame((function(){t.recalculate()}))})),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(this.heightAutoObserverEl&&this.contentEl&&this.contentWrapperEl&&this.wrapperEl&&this.placeholderEl){var e=s6(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;var t=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||t>0,o=this.contentWrapperEl.offsetWidth,i=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var s=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=r?"".concat(t||l,"px"):"auto",this.placeholderEl.style.height="".concat(s,"px");var c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=0!==t&&l>t,this.axis.y.isOverflowing=s>c,this.axis.x.isOverflowing="hidden"!==i&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==a&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>o-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&s>c-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(e){var t,n;if(void 0===e&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var r,o=this.contentEl[this.axis[e].scrollSizeAttr],i=null!==(n=null===(t=this.axis[e].track.el)||void 0===t?void 0:t[this.axis[e].offsetSizeAttr])&&void 0!==n?n:0,a=i/o;return r=Math.max(~~(a*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(r=Math.min(r,this.options.scrollbarMaxSize)),r},e.prototype.positionScrollbar=function(t){var n,r,o;void 0===t&&(t="y");var i=this.axis[t].scrollbar;if(this.axis[t].isOverflowing&&this.contentWrapperEl&&i.el&&this.elStyles){var a=this.contentWrapperEl[this.axis[t].scrollSizeAttr],s=(null===(n=this.axis[t].track.el)||void 0===n?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),c=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];c="x"===t&&this.isRtl&&(null===(r=e.getRtlHelpers())||void 0===r?void 0:r.isScrollOriginAtZero)?-c:c,"x"===t&&this.isRtl&&(c=(null===(o=e.getRtlHelpers())||void 0===o?void 0:o.isScrollingToNegative)?c:-c);var u=c/(a-l),d=~~((s-i.size)*u);d="x"===t&&this.isRtl?-d+(s-i.size):d,i.el.style.transform="x"===t?"translate3d(".concat(d,"px, 0, 0)"):"translate3d(0, ".concat(d,"px, 0)")}},e.prototype.toggleTrackVisibility=function(e){void 0===e&&(e="y");var t=this.axis[e].track.el,n=this.axis[e].scrollbar.el;t&&n&&this.contentWrapperEl&&(this.axis[e].isOverflowing||this.axis[e].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(e){void 0===e&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(u6(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(e){void 0===e&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(d6(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(e){void 0===e&&(e="y");var t=this.axis[e];t.track.el&&t.scrollbar.el&&(t.track.rect=t.track.el.getBoundingClientRect(),t.scrollbar.rect=t.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(t.track.rect)?(this.showScrollbar(e),u6(t.track.el,this.classNames.hover),this.isWithinBounds(t.scrollbar.rect)?u6(t.scrollbar.el,this.classNames.hover):d6(t.scrollbar.el,this.classNames.hover)):(d6(t.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},e.prototype.onMouseLeaveForAxis=function(e){void 0===e&&(e="y"),d6(this.axis[e].track.el,this.classNames.hover),d6(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},e.prototype.onDragStart=function(e,t){var n;void 0===t&&(t="y");var r=l6(this.el),o=s6(this.el),i=this.axis[t].scrollbar,a="y"===t?e.pageY:e.pageX;this.axis[t].dragOffset=a-((null===(n=i.rect)||void 0===n?void 0:n[this.axis[t].offsetAttr])||0),this.draggedAxis=t,u6(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(e,t){var n,r,o,i,a=this;void 0===t&&(t="y");var s=this.axis[t];if(this.options.clickOnTrack&&s.scrollbar.el&&this.contentWrapperEl){e.preventDefault();var l=s6(this.el);this.axis[t].scrollbar.rect=s.scrollbar.el.getBoundingClientRect();var c=null!==(r=null===(n=this.axis[t].scrollbar.rect)||void 0===n?void 0:n[this.axis[t].offsetAttr])&&void 0!==r?r:0,u=parseInt(null!==(i=null===(o=this.elStyles)||void 0===o?void 0:o[this.axis[t].sizeAttr])&&void 0!==i?i:"0px",10),d=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],f=("y"===t?this.mouseY-c:this.mouseX-c)<0?-1:1,p=-1===f?d-u:d+u,h=function(){a.contentWrapperEl&&(-1===f?d>p&&(d-=40,a.contentWrapperEl[a.axis[t].scrollOffsetAttr]=d,l.requestAnimationFrame(h)):d=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},e.prototype.findChild=function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,(function(e){return n.call(e,t)}))[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=c6,e.helpers=a6,e}(),h6=function(){return h6=Object.assign||function(e){for(var t,n=1,r=arguments.length;nY.jsx(m6,{className:"h-full",scrollableNodeProps:{ref:n},clickOnTrack:!1,...t,children:e}))),v6=F.memo(g6);function b6(e){return Y.jsx(y6,{children:Y.jsx(O_,{...e})})}const y6=wY.div` + display: inline-flex; + .ant-tag { + border-radius: 6px; + cursor: default; + height: 24px; + min-width: 24px; + padding: 0 6px; + margin: 0 6px; + font-size: 0.75rem; + font-weight: 700; + border-width: 0; + display: inline-flex; + justify-content: center; + align-items: center; + white-space: nowrap; + text-transform: capitalize; + transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; + } +`;function x6(e,t){var n=F.useRef({});F.useEffect((function(){if(n.current){var e=Object.keys(n4(n4({},n.current),t)),r={};e.forEach((function(e){Object.is(n.current[e],t[e])||(r[e]={from:n.current[e],to:t[e]})})),Object.keys(r).length}n.current=t}))}function w6(){const{t:e}=TZ(),{replace:t}=hZ(),n=F.useRef(null),r=F.useRef(null),[o,i]=l4(!1),a=cZ(),s=U0(),l={border:`1px dashed ${a.colorPrimary}`,backgroundColor:`${lZ(a.colorPrimary).alpha(.2).toString()}`},[c,u]=F.useState(""),[d,f]=F.useState(s),[p,h]=F.useState(0);F.useEffect((()=>{const t=s.filter((t=>-1!==e(t.label).toLowerCase().indexOf(c.toLowerCase())||-1!==t.key.toLowerCase().indexOf(c.toLowerCase())));f(t),h(0)}),[c,e,s]);p4("keydown",(e=>{e.metaKey&&"k"===e.key&&m()})),y4("ArrowUp",(e=>{if(!o)return;e.preventDefault();let t=p-1;t<0&&(t=d.length-1),h(t),v(t)})),y4("ArrowDown",(e=>{if(!o)return;e.preventDefault();let t=p+1;t>d.length-1&&(t=0),h(t),v(t)})),y4("Enter",(e=>{if(!o||0===d.length)return;e.preventDefault();const t=d[p].key;t&&(b(t),i(!1))})),y4("Escape",(()=>{g()}));const m=()=>{i(!0),u(""),h(0)},g=()=>{i(!1)},v=e=>{if(r.current){r.current.children[e].scrollIntoView({behavior:"smooth",block:"center"})}},b=e=>{t(e),g()};return x6(0,{flattenedRoutes:s,t:e,searchQuery:c,searchResult:d,selectedItemIndex:p,themeToken:a,search:o}),Y.jsxs(Y.Fragment,{children:[Y.jsxs("div",{className:"flex items-center justify-center",children:[Y.jsx(MZ,{className:"h-10 w-10",onClick:m,children:Y.jsx(dJ,{icon:"ic-search",size:"20"})}),Y.jsx(MZ,{className:"0 h-6 rounded-md bg-hover text-xs font-bold",children:"⌘K"})]}),Y.jsx(t_,{centered:!0,keyboard:!0,open:o,onCancel:g,closeIcon:!1,afterOpenChange:e=>{e&&n.current?.focus()},bodyStyle:{height:"400px",display:"flex",flexDirection:"column",justifyContent:"center"},title:Y.jsx(LA,{ref:n,value:c,onChange:e=>u(e.target.value),placeholder:"Search...",bordered:!1,autoFocus:!0,prefix:Y.jsx(dJ,{icon:"ic-search",size:"20"}),suffix:Y.jsx(MZ,{className:"h-6 rounded-md bg-hover text-xs",onClick:g,children:"Esc"})}),footer:Y.jsxs("div",{className:"flex flex-wrap",children:[Y.jsxs("div",{className:"flex",children:[Y.jsx(b6,{color:"cyan",children:"↑"}),Y.jsx(b6,{color:"cyan",children:"↓"}),Y.jsx("span",{children:"to navigate"})]}),Y.jsxs("div",{className:"flex",children:[Y.jsx(b6,{color:"cyan",children:"↵"}),Y.jsx("span",{children:"to select"})]}),Y.jsxs("div",{className:"flex",children:[Y.jsx(b6,{color:"cyan",children:"ESC"}),Y.jsx("span",{children:"to close"})]})]}),children:0===d.length?Y.jsx(UP,{}):Y.jsx(v6,{children:Y.jsx("div",{ref:r,className:"py-2",children:d.map((({key:e,label:t},n)=>{const r=e4(t,Q3(t,c)),o=e4(e,Q3(e,c));return Y.jsx(S6,{$themetoken:a,style:n===p?l:{},onClick:()=>b(e),onMouseMove:()=>(e=>{e!==p&&h(e)})(n),children:Y.jsx("div",{className:"flex justify-between",children:Y.jsxs("div",{children:[Y.jsx("div",{className:"font-medium",children:r.map((e=>Y.jsx("span",{style:{color:e.highlight?a.colorPrimary:a.colorText},children:e.text},e.text)))}),Y.jsx("div",{className:"text-xs",children:o.map((e=>Y.jsx("span",{style:{color:e.highlight?a.colorPrimary:a.colorTextDescription},children:e.text},e.text)))})]})})},e)}))})})})]})}const S6=wY.div` + display: flex; + flex-direction: column; + cursor: pointer; + width: 100%; + padding: 8px 16px; + border-radius: 8px; + border-bottom: ${e=>`1px dashed ${e.$themetoken.colorBorder}`}; + color: ${e=>`${e.$themetoken.colorTextSecondary}`}; +`;const C6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};var E6=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:C6}))}; +/**![menu-fold](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQwOCA0NDJoNDgwYzQuNCAwIDgtMy42IDgtOHYtNTZjMC00LjQtMy42LTgtOC04SDQwOGMtNC40IDAtOCAzLjYtOCA4djU2YzAgNC40IDMuNiA4IDggOHptLTggMjA0YzAgNC40IDMuNiA4IDggOGg0ODBjNC40IDAgOC0zLjYgOC04di01NmMwLTQuNC0zLjYtOC04LThINDA4Yy00LjQgMC04IDMuNi04IDh2NTZ6bTUwNC00ODZIMTIwYy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDc4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHptMCA2MzJIMTIwYy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDc4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHpNMTE1LjQgNTE4LjlMMjcxLjcgNjQyYzUuOCA0LjYgMTQuNC41IDE0LjQtNi45VjM4OC45YzAtNy40LTguNS0xMS41LTE0LjQtNi45TDExNS40IDUwNS4xYTguNzQgOC43NCAwIDAwMCAxMy44eiIgLz48L3N2Zz4=) */const k6=F.forwardRef(E6);const O6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};var $6=function(e,t){return F.createElement(uw,wp({},e,{ref:t,icon:O6}))}; +/**![menu-unfold](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQwOCA0NDJoNDgwYzQuNCAwIDgtMy42IDgtOHYtNTZjMC00LjQtMy42LTgtOC04SDQwOGMtNC40IDAtOCAzLjYtOCA4djU2YzAgNC40IDMuNiA4IDggOHptLTggMjA0YzAgNC40IDMuNiA4IDggOGg0ODBjNC40IDAgOC0zLjYgOC04di01NmMwLTQuNC0zLjYtOC04LThINDA4Yy00LjQgMC04IDMuNi04IDh2NTZ6bTUwNC00ODZIMTIwYy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDc4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHptMCA2MzJIMTIwYy00LjQgMC04IDMuNi04IDh2NTZjMCA0LjQgMy42IDggOCA4aDc4NGM0LjQgMCA4LTMuNiA4LTh2LTU2YzAtNC40LTMuNi04LTgtOHpNMTQyLjQgNjQyLjFMMjk4LjcgNTE5YTguODQgOC44NCAwIDAwMC0xMy45TDE0Mi40IDM4MS45Yy01LjgtNC42LTE0LjQtLjUtMTQuNCA2Ljl2MjQ2LjNhOC45IDguOSAwIDAwMTQuNCA3eiIgLz48L3N2Zz4=) */const P6=F.forwardRef($6);var T6={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},M6=z.createContext&&z.createContext(T6),I6=globalThis&&globalThis.__assign||function(){return I6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{if("undefined"==typeof document)return!1;const e=_6[0],t={};for(const n of _6){const r=n?.[1];if(r in document){for(const[r,o]of n.entries())t[e[r]]=o;return t}}return!1})(),B6={change:D6.fullscreenchange,error:D6.fullscreenerror};let F6={request:(e=document.documentElement,t)=>new Promise(((n,r)=>{const o=()=>{F6.off("change",o),n()};F6.on("change",o);const i=e[D6.requestFullscreen](t);i instanceof Promise&&i.then(o).catch(r)})),exit:()=>new Promise(((e,t)=>{if(!F6.isFullscreen)return void e();const n=()=>{F6.off("change",n),e()};F6.on("change",n);const r=document[D6.exitFullscreen]();r instanceof Promise&&r.then(n).catch(t)})),toggle:(e,t)=>F6.isFullscreen?F6.exit():F6.request(e,t),onchange(e){F6.on("change",e)},onerror(e){F6.on("error",e)},on(e,t){const n=B6[e];n&&document.addEventListener(n,t,!1)},off(e,t){const n=B6[e];n&&document.removeEventListener(n,t,!1)},raw:D6};Object.defineProperties(F6,{isFullscreen:{get:()=>Boolean(document[D6.fullscreenElement])},element:{enumerable:!0,get:()=>document[D6.fullscreenElement]??void 0},isEnabled:{enumerable:!0,get:()=>Boolean(document[D6.fullscreenEnabled])}}),D6||(F6={isEnabled:!1});const z6=F6,H6="/admin/assets/cyan-blur-b0a7d652.png",V6="/admin/assets/red-blur-bf4de889.png",U6=(e=1.09,t=.97)=>({hover:{scale:e},tap:{scale:t}}),W6={colorSuccess:"#22c55e",colorWarning:"#ff7849",colorError:"#ff5630",colorInfo:"#00b8d9",wireframe:!1,borderRadiusSM:2,borderRadius:4,borderRadiusLG:8},q6={Breadcrumb:{fontSize:12,separatorMargin:4},Menu:{fontSize:14,colorFillAlter:"transparent",itemColor:"rgb(145, 158, 171)"}},G6={default:"#00a76f",cyan:"#078DEE",purple:"#7635DC",blue:"#2065D1",orange:"#FDA92D",red:"#FF3030"},K6={dark:{token:{colorBgLayout:"#161c24",colorBgContainer:"#212b36",colorBgElevated:"#161c24"},components:{Modal:{headerBg:"#212b36",contentBg:"#212b36",footerBg:"#212b36"},Notification:{}}},light:{}};function X6(){const[e,t]=F.useState(!1),{colorPrimary:n,colorBgBase:r,colorTextSecondary:o,colorTextTertiary:i,colorBgContainer:a}=cZ(),s=QJ(),{themeMode:l,themeColorPresets:c,themeLayout:u,themeStretch:d,breadCrumb:f,multiTab:p}=s,{setSettings:h}=JJ(),m=e=>{h({...s,themeMode:e})},g=e=>{h({...s,themeLayout:e})},v={backdropFilter:"blur(20px)",backgroundImage:`url("${H6}"), url("${V6}")`,backgroundRepeat:"no-repeat, no-repeat",backgroundColor:lZ(a).alpha(.9).toString(),backgroundPosition:"right top, left bottom",backgroundSize:"50, 50%"},[b,y]=F.useState(z6.isFullscreen),x=e=>u===e?`linear-gradient(135deg, ${r} 0%, ${n} 100%)`:"#919eab";return Y.jsxs(Y.Fragment,{children:[Y.jsx("div",{className:"flex items-center justify-center",children:Y.jsx(pG.div,{animate:{rotate:[0,e?0:360]},transition:{duration:12,ease:"linear",repeat:1/0},whileTap:"tap",whileHover:"hover",variants:U6(1.05),onClick:()=>t(!0),children:Y.jsx(MZ,{className:"h-10 w-10",children:Y.jsx(dJ,{icon:"ic-setting",size:"24"})})})}),Y.jsx(rL,{placement:"right",title:"Settings",onClose:()=>t(!1),open:e,closable:!1,width:280,bodyStyle:{padding:0},maskStyle:{backgroundColor:"transparent"},style:v,extra:Y.jsx(MZ,{onClick:()=>t(!1),className:"h-9 w-9 hover:scale-105",children:Y.jsx(bw,{className:"text-gray-400"})}),footer:Y.jsx(eE,{type:"dashed",block:!0,size:"large",onClick:()=>{z6.isEnabled&&(z6.toggle(),y(!b))},children:Y.jsx("div",{className:"flex items-center justify-center",children:b?Y.jsxs(Y.Fragment,{children:[Y.jsx(dJ,{icon:"ic-settings-exit-fullscreen",color:n,className:"!m-0"}),Y.jsx("span",{className:"ml-2",children:"Exit FullScreen"})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(dJ,{icon:"ic-settings-fullscreen",className:"!m-0"}),Y.jsx("span",{className:"ml-2 text-gray",children:"FullScreen"})]})})}),children:Y.jsxs("div",{className:"flex flex-col gap-6 p-6",children:[Y.jsxs("div",{children:[Y.jsx("div",{className:"mb-3 text-base font-semibold",style:{color:o},children:"Mode"}),Y.jsxs("div",{className:"flex flex-row gap-4",children:[Y.jsx(NN,{onClick:()=>m(WJ.Light),className:"flex h-20 w-full cursor-pointer items-center justify-center",children:Y.jsx(dJ,{icon:"ic-settings-mode-sun",size:"24",color:l===WJ.Light?n:""})}),Y.jsx(NN,{onClick:()=>m(WJ.Dark),className:"flex h-20 w-full cursor-pointer items-center justify-center",children:Y.jsx(dJ,{icon:"ic-settings-mode-moon",size:"24",color:l===WJ.Dark?n:""})})]})]}),Y.jsxs("div",{children:[Y.jsx("div",{className:"mb-3 text-base font-semibold",style:{color:o},children:"Layout"}),Y.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[Y.jsxs(NN,{onClick:()=>g(qJ.Vertical),className:"h-14 cursor-pointer",style:{flexGrow:1,flexShrink:0},bodyStyle:{padding:0,display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:[Y.jsxs("div",{className:"flex h-full w-7 flex-shrink-0 flex-col gap-1 p-1",children:[Y.jsx("div",{className:"h-2 w-2 flex-shrink-0 rounded",style:{background:x(qJ.Vertical)}}),Y.jsx("div",{className:"h-1 w-full flex-shrink-0 rounded opacity-50",style:{background:x(qJ.Vertical)}}),Y.jsx("div",{className:"h-1 max-w-[12px] flex-shrink-0 rounded opacity-20",style:{background:x(qJ.Vertical)}})]}),Y.jsx("div",{className:"h-full w-full flex-1 flex-grow p-1",children:Y.jsx("div",{className:"h-full w-full rounded opacity-20",style:{background:x(qJ.Vertical)}})})]}),Y.jsxs(NN,{onClick:()=>g(qJ.Horizontal),className:"h-14 cursor-pointer",style:{flexGrow:1,flexShrink:0},bodyStyle:{padding:0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"},children:[Y.jsxs("div",{className:"flex h-4 w-full items-center gap-1 p-1",children:[Y.jsx("div",{className:"h-2 w-2 flex-shrink-0 rounded",style:{background:x(qJ.Horizontal)}}),Y.jsx("div",{className:"h-1 w-4 flex-shrink-0 rounded opacity-50",style:{background:x(qJ.Horizontal)}}),Y.jsx("div",{className:"h-1 w-3 flex-shrink-0 rounded opacity-20",style:{background:x(qJ.Horizontal)}})]}),Y.jsx("div",{className:"h-full w-full flex-1 flex-grow p-1",children:Y.jsx("div",{className:"h-full w-full rounded opacity-20",style:{background:x(qJ.Horizontal)}})})]}),Y.jsxs(NN,{onClick:()=>g(qJ.Mini),className:"h-14 cursor-pointer",style:{flexGrow:1,flexShrink:0},bodyStyle:{padding:0,display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:[Y.jsxs("div",{className:"flex h-full flex-shrink-0 flex-col gap-1 p-1",children:[Y.jsx("div",{className:"h-2 w-2 flex-shrink-0 rounded",style:{background:x(qJ.Mini)}}),Y.jsx("div",{className:"h-1 w-full flex-shrink-0 rounded opacity-50",style:{background:x(qJ.Mini)}}),Y.jsx("div",{className:"h-1 max-w-[12px] flex-shrink-0 rounded opacity-20",style:{background:x(qJ.Mini)}})]}),Y.jsx("div",{className:"h-full w-full flex-1 flex-grow p-1",children:Y.jsx("div",{className:"h-full w-full rounded opacity-20",style:{background:x(qJ.Mini)}})})]})]})]}),Y.jsxs("div",{children:[Y.jsxs("div",{className:" mb-3 text-base font-semibold",style:{color:o},children:[Y.jsx("span",{className:"mr-2",children:"Stretch"}),Y.jsx(NT,{title:"Only available at large resolutions > 1600px (xl)",children:Y.jsx(xL,{})})]}),Y.jsx(NN,{onClick:()=>{return e=!d,void h({...s,themeStretch:e});var e},className:"flex h-20 w-full cursor-pointer items-center justify-center",bodyStyle:{width:"50%",padding:0,display:"flex",justifyContent:"center",alignItems:"center"},children:d?Y.jsxs("div",{className:"flex w-full items-center justify-between",style:{color:n,transition:"width 300ms 0ms"},children:[Y.jsx(vI,{}),Y.jsx("div",{className:"flex flex-grow border-b border-dashed"}),Y.jsx(_T,{})]}):Y.jsxs("div",{className:"flex w-1/2 items-center justify-between",style:{transition:"width 300ms 0ms"},children:[Y.jsx(_T,{}),Y.jsx("div",{className:"flex-grow border-b border-dashed"}),Y.jsx(vI,{})]})})]}),Y.jsxs("div",{children:[Y.jsx("div",{className:"mb-3 text-base font-semibold",style:{color:o},children:"Presets"}),Y.jsx("div",{className:"grid grid-cols-3 gap-x-4 gap-y-3",children:Object.entries(G6).map((([e,t])=>Y.jsx(NN,{className:"flex h-14 w-full cursor-pointer items-center justify-center",style:{backgroundColor:c===e?`${t}14`:""},onClick:()=>{return t=e,void h({...s,themeColorPresets:t});var t},children:Y.jsx("div",{style:{color:t},children:Y.jsx(L6,{style:{fontSize:c===e?24:12}})})},e)))})]}),Y.jsxs("div",{children:[Y.jsx("div",{className:"mb-3 text-base font-semibold",style:{color:o},children:"Page"}),Y.jsxs("div",{className:"flex flex-col gap-2",children:[Y.jsxs("div",{className:"flex items-center justify-between",style:{color:i},children:[Y.jsx("div",{children:"BreadCrumb"}),Y.jsx(p_,{size:"small",checked:f,onChange:e=>(e=>{h({...s,breadCrumb:e})})(e)})]}),Y.jsxs("div",{className:"flex items-center justify-between",style:{color:i},children:[Y.jsx("div",{children:"Multi Tab"}),Y.jsx(p_,{size:"small",checked:p,onChange:e=>(e=>{h({...s,multiTab:e})})(e)})]})]})]})]})})]})}const Y6=260,Z6=90,Q6=48,J6=80,e8=64;function t8(e){const t=EB(),n=_B(),{pathname:r}=SB(),{colorTextBase:o,colorBgElevated:i,colorBorder:a}=cZ(),s=QJ(),{themeLayout:l}=s,{setSettings:c}=JJ(),u={background:i},d=e0();x6(0,{routeToMenuFn:d});const f=V0(),[p,h]=F.useState(!1),[m,g]=F.useState([]),[v,b]=F.useState([""]),[y,x]=F.useState([]),[w,S]=F.useState("inline");F.useEffect((()=>{if(l===qJ.Vertical){const e=n.filter((e=>"/"!==e.pathname)).map((e=>e.pathname));g(e)}b([r])}),[r,n,p,l]),F.useEffect((()=>{const e=z0(f),t=d(e);x(t)}),[f,d]),F.useEffect((()=>{l===qJ.Vertical&&(h(!1),S("inline")),l===qJ.Mini&&(h(!0),S("inline"))}),[l]);const C=e=>{c({...s,themeLayout:e})};return Y.jsxs("div",{className:"flex h-full flex-col",style:{width:p?Z6:Y6,borderRight:`1px dashed ${lZ(a).alpha(.6).toString()}`},children:[Y.jsxs("div",{className:"relative flex h-20 items-center justify-center py-4",children:[l===qJ.Mini?Y.jsx(D1,{className:"text-lg"}):Y.jsx(D1,{className:"text-4xl"}),Y.jsx("button",{onClick:()=>{C(p?qJ.Vertical:qJ.Mini),h(!p)},className:"absolute right-0 top-7 z-50 hidden h-6 w-6 translate-x-1/2 cursor-pointer select-none rounded-full text-center !text-gray md:block",style:{color:o,borderColor:o,fontSize:16},children:p?Y.jsx(P6,{size:20}):Y.jsx(k6,{size:20})})]}),Y.jsx(v6,{style:{height:"calc(100vh - 70px)"},children:Y.jsx(tj,{mode:w,items:y,className:"h-full !border-none",defaultOpenKeys:m,defaultSelectedKeys:v,selectedKeys:v,openKeys:m,onOpenChange:e=>{const t=e.find((e=>-1===m.indexOf(e)));g(t?e:[])},onClick:({key:n})=>{t(n),e?.closeSideBarDrawer?.()},style:u,inlineCollapsed:p})})]})}function n8({className:e="",offsetTop:t=!1}){const[n,r]=F.useState(!1),{themeLayout:o,breadCrumb:i}=QJ(),{colorBgElevated:a,colorBorder:s}=cZ(),{screenMap:l}=dZ(),c={position:o===qJ.Horizontal?"relative":"fixed",borderBottom:o===qJ.Horizontal?`1px dashed ${lZ(s).alpha(.6).toString()}`:"",backgroundColor:lZ(a).alpha(1).toString()};return o===qJ.Horizontal?c.width="100vw":l.md?(c.right="0px",c.left="auto",c.width=`calc(100% - ${o===qJ.Vertical?Y6:Z6}px)`):c.width="100vw",Y.jsxs(Y.Fragment,{children:[Y.jsx("header",{className:`z-20 w-full ${e}`,style:c,children:Y.jsxs("div",{className:"flex flex-grow items-center justify-between px-4 text-gray backdrop-blur xl:px-6 2xl:px-10",style:{height:t?e8:J6,transition:"height 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},children:[Y.jsxs("div",{className:"flex items-baseline",children:[o!==qJ.Horizontal?Y.jsx(MZ,{onClick:()=>r(!0),className:"h-10 w-10 md:hidden",children:Y.jsx(dJ,{icon:"ic-menu",size:"24"})}):Y.jsx(D1,{className:"mr-2 text-xl"}),Y.jsx("div",{className:"hidden md:block",children:i?Y.jsx(Y3,{}):null})]}),Y.jsxs("div",{className:"flex",children:[Y.jsx(w6,{}),Y.jsx(_1,{}),Y.jsx(MZ,{onClick:()=>window.open("https://linux.do"),children:Y.jsx(cJ,{icon:"ant-design:linux-outlined",size:24,style:{color:"#006eff"}})}),Y.jsx(MZ,{onClick:()=>window.open("https://github.com/nianhua99/PandoraHelper"),children:Y.jsx(cJ,{icon:"mdi:github",size:24})}),Y.jsx(X6,{}),Y.jsx(X3,{})]})]})}),Y.jsx(rL,{placement:"left",onClose:()=>r(!1),open:n,closeIcon:!1,headerStyle:{display:"none"},bodyStyle:{padding:0,overflow:"hidden"},width:"auto",children:Y.jsx(t8,{closeSideBarDrawer:()=>r(!1)})})]})}function r8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nh(e,t)}function o8(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var i8="function"==typeof Symbol&&Symbol.observable||"@@observable",a8=function(){return Math.random().toString(36).substring(7).split("").join(".")},s8={INIT:"@@redux/INIT"+a8(),REPLACE:"@@redux/REPLACE"+a8(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a8()}};function l8(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(o8(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(o8(1));return n(l8)(e,t)}if("function"!=typeof e)throw new Error(o8(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(o8(3));return i}function d(e){if("function"!=typeof e)throw new Error(o8(4));if(l)throw new Error(o8(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(o8(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(o8(7));if(void 0===e.type)throw new Error(o8(8));if(l)throw new Error(o8(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function i9(e,t){return e===t}function a9(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?V7:n,o=t.mapStateToPropsFactories,i=void 0===o?Y7:o,a=t.mapDispatchToPropsFactories,s=void 0===a?X7:a,l=t.mergePropsFactories,c=void 0===l?Q7:l,u=t.selectorFactory,d=void 0===u?n9:u;return function(e,t,n,o){void 0===o&&(o={});var a=o,l=a.pure,u=void 0===l||l,f=a.areStatesEqual,p=void 0===f?i9:f,h=a.areOwnPropsEqual,m=void 0===h?W7:h,g=a.areStatePropsEqual,v=void 0===g?W7:g,b=a.areMergedPropsEqual,y=void 0===b?W7:b,x=xm(a,r9),w=o9(e,i,"mapStateToProps"),S=o9(t,s,"mapDispatchToProps"),C=o9(n,c,"mergeProps");return r(d,wp({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:S,initMergeProps:C,pure:u,areStatesEqual:p,areOwnPropsEqual:m,areStatePropsEqual:v,areMergedPropsEqual:y},x))}}const s9=a9();var l9;function c9(e,t){var n=F.useState((function(){return{inputs:t,result:e()}}))[0],r=F.useRef(!0),o=F.useRef(n),i=r.current||Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}r8(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=T9(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof I9))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(z.Component),N9=function(e){return e+1},A9=function(e,t){var n=e.droppableId===t.droppableId,r=N9(e.index),o=N9(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},L9=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},_9=function(e){return"\n The item has returned to its starting position\n of "+N9(e.index)+"\n"},D9={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n You have lifted an item in position "+N9(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return A9(e.source,t);var n=e.combine;return n?L9(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+_9(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+A9(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+L9(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+_9(e.source)+"\n "}},B9={x:0,y:0},F9=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},z9=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},H9=function(e,t){return e.x===t.x&&e.y===t.y},V9=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},U9=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},W9=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},q9=function(e,t){return Math.min.apply(Math,t.map((function(t){return W9(e,t)})))},G9=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},K9=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},X9=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Y9=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=p9({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):p9(e)},Z9=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?K9(e,t.scroll.diff.displacement):e}(t.marginBox,o),a=function(e,t,n){var r;return n&&n.increasedBy?wp({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:Y9(a,o)}},Q9=function(e,t){e.frame||j9(!1);var n=e.frame,r=z9(t,n.scroll.initial),o=V9(r),i=wp({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return wp({},e,{frame:i,subject:Z9({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i})})};function J9(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function eee(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,s=r.lefte.right;return!(!a||!s)||(a&&i||s&&o)}},vee=function(e){var t=mee(e.top,e.bottom),n=mee(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},bee={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},yee={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},xee=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:B9;return K9(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},wee=function(e){return xee(wp({},e,{isVisibleThroughFrameFn:gee}))},See=function(e){return xee(wp({},e,{isVisibleThroughFrameFn:vee}))},Cee=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate};function Eee(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var s=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return p9(h9(n,r))}(t,r),l=t.descriptor.id;if(e.all.push(l),!wee({target:s,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c={draggableId:l,shouldAnimate:Cee(l,a,i)};return e.visible[l]=c,e}),{all:[],visible:{},invisible:{}})}function kee(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:pee,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Oee(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,c=dee(t,r);if(null==s)return kee({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var u=tee(n,(function(e){return e.descriptor.index===s}));if(!u)return kee({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var d=uee(t,n),f=n.indexOf(u);return{displaced:Eee({afterDragging:d.slice(f),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:s}}}}function $ee(e,t){return Boolean(t.effected[e])}var Pee=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,c=e.afterCritical,u=s.at;if(u||j9(!1),"REORDER"===u.type){var d=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,s=r[0].descriptor.index,l=r[r.length-1].descriptor.index;return a(n?l:l+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==d?null:Oee({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,s=r[a].descriptor.index;return $ee(a,i)?t?s:s-1:t?s+1:s}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==f?null:Oee({draggable:r,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})},Tee=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=cee(n);o||j9(!1);var i=o.draggableId,a=r[i].page.borderBox.center,s=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return $ee(r,n)?i?B9:V9(o.point):i?o.point:B9}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return F9(a,s)},Mee=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},Iee=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},jee=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return U9(t.line,n.marginBox[t.end]+Mee(t,r),Iee(t,n.marginBox,r))},Ree=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return U9(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),Iee(t,n.marginBox,r))},Nee=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=see(o.descriptor.id,r),s=n.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return U9(t.line,n.contentBox[t.start]+Mee(t,r),Iee(t,n.contentBox,r))}({axis:l,moveInto:o.page,isMoving:s});var c=t.displaced,u=t.displacedBy,d=c.all[0];if(d){var f=r[d];if($ee(d,i))return Ree({axis:l,moveRelativeTo:f.page,isMoving:s});var p=y9(f.page,u.point);return Ree({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===n.descriptor.id)return s.borderBox.center;if($ee(h.descriptor.id,i)){var m=y9(h.page,V9(i.displacedBy.point));return jee({axis:l,moveRelativeTo:m,isMoving:s})}return jee({axis:l,moveRelativeTo:h.page,isMoving:s})},Aee=function(e,t){var n=e.frame;return n?F9(t,n.scroll.diff.displacement):t},Lee=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,s=t.at;return r&&s?"REORDER"===s.type?Nee({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):Tee({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Aee(n,t):t},_ee=function(e,t){var n=z9(t,e.scroll.initial),r=V9(n);return{frame:p9({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Dee(e,t){return e.map((function(e){return t[e]}))}var Bee=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return F9(e.scroll.diff.displacement,t)}(e.viewport,t),o=z9(r,n.page.borderBox.center);return F9(n.client.borderBox.center,o)},Fee=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,a=e.onlyOnMainAxis,s=void 0!==a&&a,l=z9(r,t.page.borderBox.center),c={target:K9(t.page.borderBox,l),destination:n,withDroppableDisplacement:i,viewport:o};return s?function(e){return xee(wp({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=mee(e.top,e.bottom),r=mee(e.left,e.right);return function(e){return t===bee?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(c):See(c)},zee=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,a=e.viewport,s=e.previousPageBorderBoxCenter,l=e.previousClientSelection,c=e.afterCritical;if(!r.isEnabled)return null;var u=see(r.descriptor.id,o),d=dee(n,r),f=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!lee(i))return null;function a(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return wp({},i,{at:t})}var s=i.displaced.all,l=s.length?s[0]:null;if(t)return l?a(l):null;var c=uee(n,o);if(!l)return c.length?a(c[c.length-1].descriptor.id):null;var u=eee(c,(function(e){return e.descriptor.id===l}));-1===u&&j9(!1);var d=u-1;return d<0?null:a(c[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:u,previousImpact:i})||Pee({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:u,previousImpact:i,viewport:a,afterCritical:c});if(!f)return null;var p=Lee({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:c});if(Fee({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Bee({pageBorderBoxCenter:p,draggable:n,viewport:a}),impact:f,scrollJumpRequest:null};var h=z9(p,s),m=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,a=_ee(n,F9(n.scroll.current,i)),s=r.frame?Q9(r,F9(r.frame.scroll.current,i)):r,l=t.displaced,c=Eee({afterDragging:Dee(l.all,o),destination:r,displacedBy:t.displacedBy,viewport:a.frame,last:l,forceShouldAnimate:!1}),u=Eee({afterDragging:Dee(l.all,o),destination:s,displacedBy:t.displacedBy,viewport:n.frame,last:l,forceShouldAnimate:!1}),d={},f={},p=[l,c,u];return l.all.forEach((function(e){var t=function(e,t){for(var n=0;n1?u.sort((function(e,t){return Hee(e)[s.start]-Hee(t)[s.start]}))[0]:c.sort((function(e,t){var r=q9(n,X9(Hee(e))),o=q9(n,X9(Hee(t)));return r!==o?r-o:Hee(e)[s.start]-Hee(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:s});if(!c)return null;var u=see(c.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical,a=o.filter((function(e){return See({target:Uee(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=W9(t,Aee(r,Vee(e,i))),a=W9(t,Aee(r,Vee(n,i)));return or.left&&n.topr.top))return!1;if(Qee(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],c=mee(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?sa)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=U9(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:W9(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var ete=function(e,t){return p9(K9(e,t))};function tte(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var nte=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=ete(n.page.borderBox,t),c=Jee({pageBorderBox:l,draggable:n,droppables:o});if(!c)return hee;var u=o[c],d=see(u.descriptor.id,r),f=function(e,t){var n=e.frame;return n?ete(t,n.scroll.diff.value):t}(u,l);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=Wee(o.axis,t.displaceBy),c=l.value,u=n[s.start],d=n[s.end],f=tee(uee(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[s.size]/4,i=$ee(t,a),l=tte({displaced:r.displaced,id:t});return i?l?d>n[s.start]+o&&dn[s.start]-c+o&&un[s.start]+c+o&&dn[s.start]+o&&ut.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:p,inHomeList:dee(n,r)});return Oee({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:h})}({pageBorderBoxWithDroppableScroll:f,draggable:n,destination:u,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},rte=function(e,t){var n;return wp({},e,((n={})[t.descriptor.id]=t,n))},ote=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Xee(t),i=Xee(n);if(!o)return r;if(o===i)return r;var a=r[o];if(!a.subject.withPlaceholder)return r;var s=function(e){var t=e.subject.withPlaceholder;t||j9(!1);var n=e.frame;if(!n)return wp({},e,{subject:Z9({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||j9(!1);var o=qee(n,r);return wp({},e,{subject:Z9({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(a);return rte(r,s)},ite=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,a=e.scrollJumpRequest,s=o||t.viewport,l=r||t.dimensions,c=n||t.current.client.selection,u=z9(c,t.initial.client.selection),d={offset:u,selection:c,borderBoxCenter:F9(t.initial.client.borderBoxCenter,u)},f={selection:F9(d.selection,s.scroll.current),borderBoxCenter:F9(d.borderBoxCenter,s.scroll.current),offset:F9(d.offset,s.scroll.diff.value)},p={client:d,page:f};if("COLLECTING"===t.phase)return wp({phase:"COLLECTING"},t,{dimensions:l,viewport:s,current:p});var h=l.draggables[t.critical.draggable.id],m=i||nte({pageOffset:f.offset,draggable:h,draggables:l.draggables,droppables:l.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),g=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=ote({previousImpact:o,impact:i,droppables:r}),s=Xee(i);if(!s)return a;var l=r[s];if(dee(t,l))return a;if(l.subject.withPlaceholder)return a;var c=Gee(l,t,n);return rte(a,c)}({draggable:h,impact:m,previousImpact:t.impact,draggables:l.draggables,droppables:l.droppables});return wp({},t,{current:p,dimensions:{draggables:l.draggables,droppables:g},impact:m,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var ate=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,a=t.displaced,s=function(e,t){return e.map((function(e){return t[e]}))}(a.all,r);return wp({},t,{displaced:Eee({afterDragging:s,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:a})})},ste=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=Lee({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return Bee({pageBorderBoxCenter:s,draggable:n,viewport:i})},lte=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&j9(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,s=a.draggables,l=a.droppables,c=s[t.critical.draggable.id],u=Xee(o);u||j9(!1);var d=l[u],f=ate({impact:o,viewport:i,destination:d,draggables:s}),p=ste({impact:f,draggable:c,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return ite({impact:f,clientSelection:p,state:t,dimensions:a,viewport:i})},cte=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=Wee(n.axis,t.displaceBy),a=see(n.descriptor.id,r),s=a.indexOf(t);-1===s&&j9(!1);var l,c=a.slice(s+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:Eee({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},ute=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||j9(!1),t}(n[t]),a=i.scroll.diff.value,s=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=y9(t.client,n),i=x9(o,r);return wp({},t,{placeholder:wp({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:F9(o,a),initialWindowScroll:r.scroll.initial});return s}))},dte=function(e){return"SNAP"===e.movementMode},fte=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:rte(e.droppables,t)}}(e.dimensions,t);return!dte(e)||n?ite({state:e,dimensions:r}):lte({state:e,dimensions:r})};function pte(e){return e.isDragging&&"SNAP"===e.movementMode?wp({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var hte={phase:"IDLE",completed:null,shouldFlush:!1},mte=function(e,t){if(void 0===e&&(e=hte),"FLUSH"===t.type)return wp({},hte,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&j9(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,a=n.dimensions,s=n.movementMode,l=a.draggables[r.draggable.id],c=a.droppables[r.droppable.id],u={selection:o,borderBoxCenter:l.client.borderBox.center,offset:B9},d={client:u,page:{selection:F9(u.selection,i.scroll.initial),borderBoxCenter:F9(u.selection,i.scroll.initial),offset:F9(u.selection,i.scroll.diff.value)}},f=iee(a.droppables).every((function(e){return!e.isFixedOnPage})),p=cte({draggable:l,home:c,draggables:a.draggables,viewport:i}),h=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:a,initial:d,current:d,isWindowScrollAllowed:f,impact:h,afterCritical:p.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&j9(!1),wp({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&j9(!1),function(e){var t=e.state,n=e.published,r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Q9(n,e.scroll)})),o=wp({},t.dimensions.droppables,{},ree(r)),i=oee(ute({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),a=wp({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete a[e]}));var s={droppables:o,draggables:a},l=Xee(t.impact),c=l?s.droppables[l]:null,u=s.draggables[t.critical.draggable.id],d=s.droppables[t.critical.droppable.id],f=cte({draggable:u,home:d,draggables:a,viewport:t.viewport}),p=f.impact,h=f.afterCritical,m=c&&c.isCombineEnabled?t.impact:p,g=nte({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:m,viewport:t.viewport,afterCritical:h}),v=wp({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:g,onLiftImpact:p,dimensions:s,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:wp({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Zee(e)||j9(!1);var m=t.payload.client;return H9(m,e.current.client.selection)?e:ite({state:e,clientSelection:m,impact:dte(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return pte(e);if("COLLECTING"===e.phase)return pte(e);Zee(e)||j9(!1);var g=t.payload,v=g.id,b=g.newScroll,y=e.dimensions.droppables[v];if(!y)return e;var x=Q9(y,b);return fte(e,x,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Zee(e)||j9(!1);var w=t.payload,S=w.id,C=w.isEnabled,E=e.dimensions.droppables[S];E||j9(!1),E.isEnabled===C&&j9(!1);var k=wp({},E,{isEnabled:C});return fte(e,k,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Zee(e)||j9(!1);var O=t.payload,$=O.id,P=O.isCombineEnabled,T=e.dimensions.droppables[$];T||j9(!1),T.isCombineEnabled===P&&j9(!1);var M=wp({},T,{isCombineEnabled:P});return fte(e,M,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Zee(e)||j9(!1),e.isWindowScrollAllowed||j9(!1);var I=t.payload.newScroll;if(H9(e.viewport.scroll.current,I))return pte(e);var j=_ee(e.viewport,I);return dte(e)?lte({state:e,viewport:j}):ite({state:e,viewport:j})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Zee(e))return e;var R=t.payload.maxScroll;if(H9(R,e.viewport.scroll.max))return e;var N=wp({},e.viewport,{scroll:wp({},e.viewport.scroll,{max:R})});return wp({phase:"DRAGGING"},e,{viewport:N})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&j9(!1);var A=Yee({state:e,type:t.type});return A?ite({state:e,impact:A.impact,clientSelection:A.clientSelection,scrollJumpRequest:A.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&j9(!1),wp({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var _=t.payload,D=_.completed,B=_.dropDuration,F=_.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&j9(!1),{phase:"DROP_ANIMATING",completed:D,dropDuration:B,newHomeClientOffset:F,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},gte=function(e){return{type:"LIFT",payload:e}},vte=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},bte=function(){return{type:"COLLECTION_STARTING",payload:null}},yte=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},xte=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},wte=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},Ste=function(e){return{type:"MOVE",payload:e}},Cte=function(){return{type:"MOVE_UP",payload:null}},Ete=function(){return{type:"MOVE_DOWN",payload:null}},kte=function(){return{type:"MOVE_RIGHT",payload:null}},Ote=function(){return{type:"MOVE_LEFT",payload:null}},$te=function(){return{type:"FLUSH",payload:null}},Pte=function(e){return{type:"DROP_COMPLETE",payload:e}},Tte=function(e){return{type:"DROP",payload:e}},Mte=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},Ite="cubic-bezier(.2,1,.1,1)",jte={drop:0,combining:.7},Rte={drop:.75},Nte=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Ate={fluid:"opacity "+Nte,snap:"transform "+Nte+", opacity "+Nte,drop:function(e){var t=e+"s "+Ite;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+Nte,placeholder:"height "+Nte+", width "+Nte+", margin "+Nte},Lte=function(e){return H9(e,B9)?null:"translate("+e.x+"px, "+e.y+"px)"},_te={moveTo:Lte,drop:function(e,t){var n=Lte(e);return n?t?n+" scale("+Rte.drop+")":n:null}},Dte=.33,Bte=.55,Fte=Bte-Dte,zte=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&j9(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&j9(!1);var a=o.critical,s=o.dimensions,l=s.draggables[o.critical.draggable.id],c=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,a=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:wp({},r,{displaced:pee}),didDropInsideDroppable:!0}:{impact:ate({draggables:t,impact:a,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),u=c.impact,d=c.didDropInsideDroppable,f=d?lee(u):null,p=d?cee(u):null,h={index:a.draggable.index,droppableId:a.droppable.id},m={draggableId:l.descriptor.id,type:l.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:f,combine:p},g=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,s=r.droppables,l=Xee(t),c=l?s[l]:null,u=s[n.descriptor.droppableId],d=ste({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:c||u,viewport:o});return z9(d,n.client.borderBox.center)}({impact:u,draggable:l,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),v={critical:o.critical,afterCritical:o.afterCritical,result:m,impact:u};if(!H9(o.current.client.offset,g)||Boolean(m.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=W9(t,n);if(o<=0)return Dte;if(o>=1500)return Bte;var i=Dte+Fte*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:g,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:g,dropDuration:b,completed:v}))}else n(Pte({completed:v}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Hte=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Vte(e){var t=e.onWindowScroll;var n=O9((function(){t(Hte())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=P9;function i(){return o!==P9}return{start:function(){i()&&j9(!1),o=T9(window,[r])},stop:function(){i()||j9(!1),n.cancel(),o(),o=P9},isActive:i}}var Ute=function(e){var t=Vte({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Wte=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=eee(e,(function(e){return e.timerId===t}));-1===n&&j9(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},qte=function(e,t){t()},Gte=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Kte=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Xte=function(e,t){var n=function(e,t){var n=Wte(),r=null,o=function(n){r||j9(!1),r=null,qte(0,(function(){return Kte(e().onDragEnd,n,t,D9.onDragEnd)}))};return{beforeCapture:function(t,n){r&&j9(!1),qte(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&j9(!1),qte(0,(function(){var r=e().onBeforeDragStart;r&&r(Gte(t,n))}))},start:function(o,i){r&&j9(!1);var a=Gte(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){qte(0,(function(){return Kte(e().onDragStart,a,t,D9.onDragStart)}))}))},update:function(o,i){var a=lee(i),s=cee(i);r||j9(!1);var l=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);l&&(r.lastCritical=o);var c,u,d=(u=a,!(null==(c=r.lastLocation)&&null==u||null!=c&&null!=u&&c.droppableId===u.droppableId&&c.index===u.index));d&&(r.lastLocation=a);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,s);if(f&&(r.lastCombine=s),l||d||f){var p=wp({},Gte(o,r.mode),{combine:s,destination:a});n.add((function(){qte(0,(function(){return Kte(e().onDragUpdate,p,t,D9.onDragUpdate)}))}))}},flush:function(){r||j9(!1),n.flush()},drop:o,abort:function(){if(r){var e=wp({},Gte(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Yte=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&j9(!1),e.dispatch(Pte({completed:r.completed}))}else t(n)}}},Zte=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=T9(window,[i])}))}}}},Qte=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(Tte({reason:r.reason})))}}}},Jte=d8,ene=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,s=e.autoScroller;return l8(mte,Jte(function(){for(var e=arguments.length,t=new Array(e),n=0;nt.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return mne;if(e===t.startScrollingFrom)return 1;var n=bne({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=mne*gne(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=xne,o=Date.now()-n;if(o>=xne)return e;if(ot.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?H9(u,B9)?null:u:null},kne=G9((function(e){return 0===e?0:e>0?1:-1})),One=(ane=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=F9(t,r),i={x:ane(o.x,n.x),y:ane(o.y,n.y)};return H9(i,B9)?null:i}),$ne=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=kne(r),a=One({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},Pne=function(e,t){return $ne({current:e.scroll.current,max:e.scroll.max,change:t})},Tne=function(e,t){var n=e.frame;return!!n&&$ne({current:n.scroll.current,max:n.scroll.max,change:t})},Mne=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=Ene({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&Pne(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:r});if(l)return void o(l)}var c=fne({center:a,destination:Xee(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=Ene({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return s&&Tne(t,s)?s:null}({dragStartTime:n,droppable:c,subject:s,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},Ine=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!Tne(e,t))return t;var r=function(e,t){var n=e.frame;return n&&Tne(e,t)?One({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=z9(t,r);return n(e.descriptor.id,o),z9(t,o)},i=function(e,t,n){if(!e)return n;if(!Pne(t,n))return n;var o=function(e,t){if(!Pne(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return One({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=z9(n,o);return r(i),z9(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Xee(e.impact);r||j9(!1);var a=o(e.dimensions.droppables[r],n);if(a){var s=e.viewport,l=i(e.isWindowScrollAllowed,s,a);l&&function(e,n){var r=F9(e.current.client.selection,n);t({client:r})}(e,l)}}}},jne=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=O9(t),o=O9(n),i=null,a=function(e){i||j9(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;Mne({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){i&&j9(!1);var t=Date.now(),n=!1,r=function(){n=!0};Mne({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=Ine({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Rne="data-rbd",Nne={base:sne=Rne+"-drag-handle",draggableId:sne+"-draggable-id",contextId:sne+"-context-id"},Ane=function(){var e=Rne+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Lne=function(){var e=Rne+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),_ne={contextId:Rne+"-scroll-container-context-id"},Dne=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Bne=function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(Nne.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n transition: "+Ate.outOfTheWay+";\n ",{selector:o(Ane.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(Lne.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:Dne(a,"always"),resting:Dne(a,"resting"),dragging:Dne(a,"dragging"),dropAnimating:Dne(a,"dropAnimating"),userCancel:Dne(a,"userCancel")}},Fne="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?F.useLayoutEffect:F.useEffect,zne=function(){var e=document.querySelector("head");return e||j9(!1),e},Hne=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Vne=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Une(e){return e instanceof Vne(e).HTMLElement}function Wne(e){var t=F.useRef({}),n=F.useRef(null),r=F.useRef(null),o=F.useRef(!1),i=d9((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),a=d9((function(t){var n=function(e,t){var n="["+Nne.contextId+'="'+e+'"]',r=nee(document.querySelectorAll(n));if(!r.length)return null;var o=tee(r,(function(e){return e.getAttribute(Nne.draggableId)===t}));return o&&Une(o)?o:null}(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=d9((function(e,t){n.current===e&&(n.current=t)}),[]),l=d9((function(){r.current||o.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&a(e)})))}),[a]),c=d9((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Nne.draggableId)===e&&(n.current=e)}),[]);return Fne((function(){return o.current=!0,function(){o.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),u9((function(){return{register:i,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}}),[i,c,l,s])}function qne(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}var o={register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||j9(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return J9(e.draggables).filter((function(e){return e.descriptor.type===t}))}};function i(t){return e.droppables[t]||null}var a={register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=i(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=i(e);return t||j9(!1),t},findById:i,exists:function(e){return Boolean(i(e))},getAllByType:function(t){return J9(e.droppables).filter((function(e){return e.descriptor.type===t}))}};return{draggable:o,droppable:a,subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Gne=z.createContext(null),Kne=function(){var e=document.body;return e||j9(!1),e},Xne={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Yne=function(e){return"rbd-announcement-"+e};var Zne=0,Qne={separator:"::"};function Jne(e,t){return void 0===t&&(t=Qne),u9((function(){return""+e+t.separator+Zne++}),[t.separator,e])}var ere=z.createContext(null);function tre(e){var t=F.useRef(e);return F.useEffect((function(){t.current=e})),t}var nre,rre=27,ore=32,ire=37,are=38,sre=39,lre=40,cre=((nre={})[13]=!0,nre[9]=!0,nre),ure=function(e){cre[e.keyCode]&&e.preventDefault()},dre=function(){var e="visibilitychange";return"undefined"==typeof document?e:tee([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),fre=0,pre=5;var hre,mre={type:"IDLE"};function gre(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(t===fre){var a={x:n,y:i},s=r();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);"PENDING"!==s.type&&j9(!1);var l=s.point;if(c=l,u=a,Math.abs(u.x-c.x)>=pre||Math.abs(u.y-c.y)>=pre){var c,u;e.preventDefault();var d=s.actions.fluidLift(a);o({type:"DRAGGING",actions:d})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return e.keyCode===rre?(e.preventDefault(),void t()):void ure(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&j9(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:dre,fn:t}]}function vre(){}var bre=((hre={})[34]=!0,hre[33]=!0,hre[36]=!0,hre[35]=!0,hre);function yre(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return r.keyCode===rre?(r.preventDefault(),void n()):r.keyCode===ore?(r.preventDefault(),t(),void e.drop()):r.keyCode===lre?(r.preventDefault(),void e.moveDown()):r.keyCode===are?(r.preventDefault(),void e.moveUp()):r.keyCode===sre?(r.preventDefault(),void e.moveRight()):r.keyCode===ire?(r.preventDefault(),void e.moveLeft()):void(bre[r.keyCode]?r.preventDefault():ure(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:dre,fn:n}]}var xre={type:"IDLE"},wre=.15;var Sre={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Cre(e,t){if(null==t)return!1;if(Boolean(Sre[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&Cre(e,t.parentElement)}function Ere(e,t){var n=t.target;return!!Une(n)&&Cre(e,n)}var kre=function(e){return p9(e.getBoundingClientRect()).center};var Ore=function(){var e="matches";if("undefined"==typeof document)return e;var t=tee([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}));return t||e}();function $re(e,t){return null==e?null:e[Ore](t)?e:$re(e.parentElement,t)}function Pre(e,t){return e.closest?e.closest(t):$re(e,t)}function Tre(e,t){var n=t.target;if(!function(e){return e instanceof Vne(e).Element}(n))return null;var r=function(e){return"["+Nne.contextId+'="'+e+'"]'}(e),o=Pre(n,r);return o&&Une(o)?o:null}function Mre(e){e.preventDefault()}function Ire(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!!r()&&t===n}function jre(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!cne(n.getState(),o))}function Rre(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,a=e.forceSensorStop,s=e.sourceEvent;if(!jre({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var l=o.draggable.getById(i),c=function(e,t){var n="["+Ane.contextId+'="'+e+'"]',r=tee(nee(document.querySelectorAll(n)),(function(e){return e.getAttribute(Ane.id)===t}));return r&&Une(r)?r:null}(n,l.descriptor.id);if(!c)return null;if(s&&!l.options.canDragInteractiveElements&&Ere(c,s))return null;var u=t.claim(a||P9),d="PRE_DRAG";function f(){return l.options.shouldRespectForcePress}function p(){return t.isActive(u)}var h=function(e,t){Ire({expected:e,phase:d,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function m(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=T9(window,[{eventName:"click",fn:Mre,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(Tte({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&j9(!1)),r.dispatch(gte(e.liftActionArgs)),d="DRAGGING",wp({isActive:function(){return Ire({expected:"DRAGGING",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}var g={isActive:function(){return Ire({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=O9((function(e){h((function(){return Ste({client:e})}))}));return wp({},m({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return h(Cte)},moveRight:function(){return h(kte)},moveDown:function(){return h(Ete)},moveLeft:function(){return h(Ote)}};return m({liftActionArgs:{id:i,clientSelection:kre(c),movementMode:"SNAP"},cleanup:P9,actions:e})},abort:function(){Ire({expected:"PRE_DRAG",phase:d,isLockActive:p,shouldWarn:!0})&&t.release()}};return g}var Nre=[function(e){var t=F.useRef(mre),n=F.useRef(P9),r=u9((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===fre&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,a,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),c(o,i)}}}}}}),[e]),o=u9((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),i=d9((function(){n.current=T9(window,[o,r],{passive:!1,capture:!0})}),[o,r]),a=d9((function(){"IDLE"!==t.current.type&&(t.current=mre,n.current(),i())}),[i]),s=d9((function(){var e=t.current;a(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[a]),l=d9((function(){var e=gre({cancel:s,completed:a,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=T9(window,e,{capture:!0,passive:!1})}),[s,a]),c=d9((function(e,n){"IDLE"!==t.current.type&&j9(!1),t.current={type:"PENDING",point:n,actions:e},l()}),[l]);Fne((function(){return i(),function(){n.current()}}),[i])},function(e){var t=F.useRef(vre),n=u9((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&n.keyCode===ore){var o=e.findClosestDraggableId(n);if(o){var i=e.tryGetLock(o,l,{sourceEvent:n});if(i){n.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=T9(window,yre(s,l),{capture:!0,passive:!1})}}}function l(){a||j9(!1),a=!1,t.current(),r()}}}}),[e]),r=d9((function(){t.current=T9(window,[n],{passive:!1,capture:!0})}),[n]);Fne((function(){return r(),function(){t.current()}}),[r])},function(e){var t=F.useRef(xre),n=F.useRef(P9),r=d9((function(){return t.current}),[]),o=d9((function(e){t.current=e}),[]),i=u9((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),d(o,a)}}}}}}),[e]),a=d9((function(){n.current=T9(window,[i],{capture:!0,passive:!1})}),[i]),s=d9((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),o(xre),n.current(),a())}),[a,o]),l=d9((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=d9((function(){var e={capture:!0,passive:!1},t={cancel:l,completed:s,getPhase:r},o=T9(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&j9(!1);var o=e.touches[0];if(o&&o.force>=wre){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:dre,fn:t}]}(t),e),i=T9(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(e.keyCode===rre&&e.preventDefault(),t()):t()}},{eventName:dre,fn:t}]}(t),e);n.current=function(){o(),i()}}),[l,r,s]),u=d9((function(){var e=r();"PENDING"!==e.type&&j9(!1);var t=e.actions.fluidLift(e.point);o({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,o]),d=d9((function(e,t){"IDLE"!==r().type&&j9(!1);var n=setTimeout(u,120);o({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,r,o,u]);Fne((function(){return a(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),o(xre))}}),[r,a,o]),Fne((function(){return T9(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Are(e){var t=e.contextId,n=e.store,r=e.registry,o=e.customSensors,i=e.enableDefaultSensors,a=[].concat(i?Nre:[],o||[]),s=F.useState((function(){return function(){var e=null;function t(){e||j9(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&j9(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],l=d9((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);Fne((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();l(e,t),e=t}))}),[s,n,l]),Fne((function(){return s.tryAbandon}),[s.tryAbandon]);for(var c=d9((function(e){return jre({lockAPI:s,registry:r,store:n,draggableId:e})}),[s,r,n]),u=d9((function(e,o,i){return Rre({lockAPI:s,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,r,n]),d=d9((function(e){return function(e,t){var n=Tre(e,t);return n?n.getAttribute(Nne.draggableId):null}(t,e)}),[t]),f=d9((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),p=d9((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch($te()))}),[s,n]),h=d9(s.isClaimed,[s]),m=u9((function(){return{canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}}),[c,u,d,f,p,h]),g=0;g{const t=o.at(-1);if(!t)return;const{pathname:s,params:l}=t,c=i.find((e=>{const t=W0(e.key,l);return t===s||`${t}/`===s}));c?(c.outlet=r,F0(l)||(c.params=l),n({...c})):a(e)}),[o]),t}(),s=F.useCallback(((e=o)=>{const i=[...n];if(1===i.length)return;const a=i.findIndex((t=>t.key===e));t(a>0?i[a-1].key:i[a+1].key),i.splice(a,1),r(i)}),[o]),l=F.useCallback(((e=o)=>{r((t=>t.filter((t=>t.key===e)))),e!==o&&t(e)}),[o,t]),c=F.useCallback((()=>{r([]),t(e)}),[t]),u=F.useCallback((e=>{const o=n.findIndex((t=>t.key===e)),i=n.slice(o);r(i),t(e)}),[t,n]),d=F.useCallback((e=>{const o=n.findIndex((t=>t.key===e)),i=n.slice(0,o+1);r(i),t(e)}),[t,n]),f=F.useCallback(((e=o)=>{r((t=>{const n=t.findIndex((t=>t.key===e));return n>=0&&(t[n].timeStamp=Ooe()),[...t]}))}),[o]);return F.useEffect((()=>{if(r((e=>e.filter((e=>!e.hideTab)))),!a)return;let{key:e}=a;const{outlet:t,params:o={}}=a;F0(o)||(e=W0(e,o));const s=n.find((t=>t.key===e));s||r((n=>[...n,{...a,key:e,children:t,timeStamp:Ooe()}])),i(e)}),[a]),{tabs:n,activeTabRoutePath:o,setTabs:r,closeTab:s,closeOthersTab:l,refreshTab:f,closeAll:c,closeLeft:u,closeRight:d}}function Ooe(){return(new Date).getTime().toString()}function $oe({offsetTop:e=!1}){const{t:t}=TZ(),{push:n}=hZ(),r=F.useRef(null),[o,i]=F.useState(""),[a,s]=F.useState(""),l=cZ(),c=F.useRef(null),[u,d]=l4(!1);g4(c,u,{onClose:()=>d(!1)});const{tabs:f,activeTabRoutePath:p,setTabs:h,closeTab:m,refreshTab:g,closeOthersTab:v,closeAll:b,closeLeft:y,closeRight:x}=koe(),w=F.useMemo((()=>[{label:t(`sys.tab.${XJ.FULLSCREEN}`),key:XJ.FULLSCREEN,icon:Y.jsx(cJ,{icon:"material-symbols:fullscreen",size:18})},{label:t(`sys.tab.${XJ.REFRESH}`),key:XJ.REFRESH,icon:Y.jsx(cJ,{icon:"mdi:reload",size:18})},{label:t(`sys.tab.${XJ.CLOSE}`),key:XJ.CLOSE,icon:Y.jsx(cJ,{icon:"material-symbols:close",size:18}),disabled:1===f.length},{type:"divider"},{label:t(`sys.tab.${XJ.CLOSELEFT}`),key:XJ.CLOSELEFT,icon:Y.jsx(cJ,{icon:"material-symbols:tab-close-right-outline",size:18,className:"rotate-180"}),disabled:0===f.findIndex((e=>e.key===a))},{label:t(`sys.tab.${XJ.CLOSERIGHT}`),key:XJ.CLOSERIGHT,icon:Y.jsx(cJ,{icon:"material-symbols:tab-close-right-outline",size:18}),disabled:f.findIndex((e=>e.key===a))===f.length-1},{type:"divider"},{label:t(`sys.tab.${XJ.CLOSEOTHERS}`),key:XJ.CLOSEOTHERS,icon:Y.jsx(cJ,{icon:"material-symbols:tab-close-outline",size:18}),disabled:1===f.length},{label:t(`sys.tab.${XJ.CLOSEALL}`),key:XJ.CLOSEALL,icon:Y.jsx(cJ,{icon:"mdi:collapse-all-outline",size:18})}]),[a,t,f]),S=F.useCallback(((e,t)=>{const{key:n,domEvent:r}=e;switch(r.stopPropagation(),n){case XJ.REFRESH:g(t.key);break;case XJ.CLOSE:m(t.key);break;case XJ.CLOSEOTHERS:v(t.key);break;case XJ.CLOSELEFT:y(t.key);break;case XJ.CLOSERIGHT:x(t.key);break;case XJ.CLOSEALL:b();break;case XJ.FULLSCREEN:d()}}),[g,m,v,y,x,b,d]),C=F.useCallback((e=>{const t=e.key===p||e.key===o,n={borderRadius:"8px 8px 0 0",borderWidth:"1px",borderStyle:"solid",borderColor:l.colorBorderSecondary,backgroundColor:l.colorBgLayout,transition:"color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, background 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"};return t&&(n.backgroundColor=l.colorBgContainer,n.color=l.colorPrimaryText),n}),[p,o,l]),E=F.useCallback((e=>Y.jsx(vL,{trigger:["contextMenu"],menu:{items:w,onClick:t=>S(t,e)},onOpenChange:t=>((e,t)=>{s(e?t.key:"")})(t,e),children:Y.jsxs("div",{className:"relative mx-px flex select-none items-center px-4 py-1",style:C(e),onMouseEnter:()=>{e.key!==p&&i(e.key)},onMouseLeave:()=>i(""),children:[Y.jsx("div",{children:t(e.label)}),Y.jsx(cJ,{icon:"ion:close-outline",size:18,className:"cursor-pointer opacity-50",onClick:t=>{t.stopPropagation(),m(e.key)},style:{visibility:e.key!==p&&e.key!==o||1===f.length?"hidden":"visible"}})]})})),[t,w,p,o,f.length,S,m,C]),k=F.useMemo((()=>f?.map((e=>({label:E(e),key:e.key,closable:f.length>1,children:Y.jsx("div",{ref:c,children:e.children},e.timeStamp)})))),[f,E]),O=({destination:e,source:t})=>{if(!e)return;if(e.droppableId===t.droppableId&&e.index===t.index)return;const n=Array.from(f),[r]=n.splice(t.index,1);n.splice(e.index,0,r),h(n)},{themeLayout:$}=QJ(),{colorBorder:P,colorBgElevated:T}=cZ(),{screenMap:M}=dZ(),I={position:"fixed",top:e?e8-2:J6,left:0,height:32,backgroundColor:lZ(T).alpha(1).toString(),borderBottom:`1px dashed ${lZ(P).alpha(.6).toString()}`,transition:"top 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"};$===qJ.Horizontal?I.top=J6+Q6-2:M.md?(I.right="0px",I.left="auto",I.width=`calc(100% - ${$===qJ.Vertical?Y6:Z6}px`):I.width="100vw";return F.useEffect((()=>{if(!r||!r.current)return;const e=f.findIndex((e=>e.key===p)),t=r.current.querySelector(`#tab-${e}`);t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})}),[p,f]),F.useEffect((()=>{function e(e){e.preventDefault(),r.current.scrollLeft+=e.deltaY}r.current.addEventListener("mouseenter",(()=>{r.current.addEventListener("wheel",e)})),r.current.addEventListener("mouseleave",(()=>{r.current.removeEventListener("wheel",e)}))}),[]),Y.jsx(Poe,{children:Y.jsx(mN,{size:"small",type:"card",tabBarGutter:4,activeKey:p,items:k,renderTabBar:()=>Y.jsx("div",{style:I,className:"z-20 w-full",children:Y.jsx(Fre,{onDragEnd:O,children:Y.jsx(Eoe,{droppableId:"tabsDroppable",direction:"horizontal",children:e=>Y.jsxs("div",{ref:e.innerRef,...e.droppableProps,className:"flex w-full",children:[Y.jsx("div",{ref:r,className:"hide-scrollbar flex w-full px-2",children:f.map(((e,t)=>Y.jsx("div",{id:`tab-${t}`,className:"flex-shrink-0",onClick:()=>n(e.key),children:Y.jsx(xoe,{draggableId:e.key,index:t,children:t=>Y.jsx("div",{ref:t.innerRef,...t.draggableProps,...t.dragHandleProps,className:"w-auto",children:E(e)})},e.key)},e.key)))}),e.placeholder]})})})})})})}Eoe.defaultProps=Coe;const Poe=wY.div` + height: 100%; + margin-top: 2px; + .anticon { + margin: 0px !important; + } + .ant-tabs { + height: 100%; + .ant-tabs-content { + height: 100%; + } + .ant-tabs-tabpane { + height: 100%; + & > div { + height: 100%; + } + } + } + + /* 隐藏滚动条 */ + .hide-scrollbar { + overflow: scroll; + flex-shrink: 0; + scrollbar-width: none; /* 隐藏滚动条 Firefox */ + -ms-overflow-style: none; /* 隐藏滚动条 IE/Edge */ + } + + .hide-scrollbar::-webkit-scrollbar { + display: none; /* 隐藏滚动条 Chrome/Safari/Opera */ + } +`,Toe=F.forwardRef((({offsetTop:e=!1},t)=>{const{themeStretch:n,themeLayout:r,multiTab:o}=QJ(),{screenMap:i}=dZ(),a={paddingTop:J6+(o?32:0),transition:"padding 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",width:"100%"};return r===qJ.Horizontal?(a.width="100vw",a.paddingTop=o?32:0):i.md?a.width=`calc(100% - ${r===qJ.Vertical?Y6:Z6})`:a.width="100vw",Y.jsx(IL,{ref:t,style:a,className:"flex overflow-auto",children:Y.jsx("div",{className:"m-auto h-full w-full flex-grow sm:p-2 "+(n?"":"xl:max-w-screen-xl"),children:o?Y.jsx($oe,{offsetTop:e}):Y.jsx(FB,{})})})}));function Moe(){const e=EB(),t=_B(),{pathname:n}=SB(),{colorBgElevated:r}=cZ(),o=e0(),i=V0(),[a,s]=F.useState([]),[l,c]=F.useState([""]),[u,d]=F.useState([]);F.useEffect((()=>{c([n])}),[n,t]),F.useEffect((()=>{const e=z0(i),t=o(e);d(t)}),[i,o]);const f={background:r};return Y.jsx("div",{className:"w-screen",style:{height:Q6},children:Y.jsx(tj,{mode:"horizontal",items:u,className:"!z-10 !border-none",defaultOpenKeys:a,defaultSelectedKeys:l,selectedKeys:l,openKeys:a,onOpenChange:e=>{const t=e.find((e=>-1===a.indexOf(e)));s(t?e:[])},onClick:({key:t})=>{e(t)},style:f})})}function Ioe(){F.useEffect((()=>{document.title="Pandora Helper"}),[]);const{colorBgElevated:e,colorTextBase:t}=cZ(),{themeLayout:n,themeMode:r}=QJ(),o=F.useRef(null),{scrollY:i}=function({container:e,target:t,layoutEffect:n=!0,...r}={}){const o=Lz(VG);return(n?mF:F.useEffect)((()=>(HG(0,t),HG(0,e),zG((({x:e,y:t})=>{o.scrollX.set(e.current),o.scrollXProgress.set(e.progress),o.scrollY.set(t.current),o.scrollYProgress.set(t.progress)}),{...r,container:(null==e?void 0:e.current)||void 0,target:(null==t?void 0:t.current)||void 0}))),[e,t,JSON.stringify(r.offset)]),o}({container:o}),[a,s]=F.useState(!1),l=F.useCallback((()=>{i.on("change",(e=>{s(e>0)}))}),[i]);F.useEffect((()=>{l()}),[l]);const c=Y.jsxs(Y.Fragment,{children:[Y.jsx(n8,{offsetTop:a}),Y.jsx("div",{className:"z-50 hidden h-full flex-shrink-0 md:block",children:Y.jsx(t8,{})}),Y.jsx(Toe,{ref:o,offsetTop:a})]}),u=Y.jsxs("div",{className:"relative flex flex-1 flex-col",children:[Y.jsx(n8,{}),Y.jsx(Moe,{}),Y.jsx(Toe,{ref:o,offsetTop:a})]}),d=n!==qJ.Horizontal?c:u;return Y.jsxs(joe,{$themeMode:r,children:[Y.jsx(q0,{}),Y.jsx("div",{className:"flex h-screen overflow-hidden",style:{color:t,background:e,transition:"color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, background 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},children:Y.jsx(F.Suspense,{fallback:Y.jsx(SY,{}),children:d})})]})}const joe=wY.div` + /* 设置滚动条的整体样式 */ + ::-webkit-scrollbar { + width: 8px; /* 设置滚动条宽度 */ + } + + /* 设置滚动条轨道的样式 */ + ::-webkit-scrollbar-track { + border-radius: 8px; + background: ${e=>e.$themeMode===WJ.Dark?"#2c2c2c":"#FAFAFA"}; + } + + /* 设置滚动条滑块的样式 */ + ::-webkit-scrollbar-thumb { + border-radius: 10px; + background: ${e=>e.$themeMode===WJ.Dark?"#6b6b6b":"#C1C1C1"}; + } + + /* 设置鼠标悬停在滚动条上的样式 */ + ::-webkit-scrollbar-thumb:hover { + background: ${e=>e.$themeMode===WJ.Dark?"#939393":"##7D7D7D"}; + } +`;function Roe(){return Y.jsxs("header",{className:"flex h-16 w-full items-center justify-between px-6",children:[Y.jsx(D1,{}),Y.jsx(X6,{})]})}function Noe({children:e}){F.useEffect((()=>{document.title="Pandora Helper"}),[]);const{colorBgElevated:t,colorTextBase:n}=cZ();return Y.jsxs("div",{className:"flex h-screen w-full flex-col",style:{color:n,background:t},children:[Y.jsx(Roe,{}),e]})}function Aoe({children:e}){const t=hZ(),n=SB(),{accessToken:r}=U3(),o=F.useCallback((()=>{r||"/admin/login"===n.pathname||t.replace("/admin/login")}),[t,r]);return F.useEffect((()=>{o()}),[o,t,r,n.pathname]),e}const Loe=F.lazy((()=>L_((()=>import("./Page403-73ef0093.js")),["assets/Page403-73ef0093.js","assets/bounce-e10a9aae.js","assets/index-57131342.js"]))),_oe=F.lazy((()=>L_((()=>import("./Page404-2b9adb22.js")),["assets/Page404-2b9adb22.js","assets/bounce-e10a9aae.js","assets/index-57131342.js"]))),Doe=F.lazy((()=>L_((()=>import("./Page500-0841149d.js")),["assets/Page500-0841149d.js","assets/bounce-e10a9aae.js","assets/index-57131342.js"]))),Boe={element:Y.jsx(Aoe,{children:Y.jsx(Noe,{children:Y.jsx(F.Suspense,{fallback:Y.jsx(SY,{}),children:Y.jsx(FB,{})})})}),children:[{path:"403",element:Y.jsx(Loe,{})},{path:"404",element:Y.jsx(_oe,{})},{path:"500",element:Y.jsx(Doe,{})}]},{VITE_APP_HOMEPAGE:Foe}={VITE_GLOB_APP_TITLE:"Vite React TS Template",VITE_APP_BASE_API:"/api",VITE_APP_HOMEPAGE:"/admin/home",BASE_URL:"/admin",MODE:"production",DEV:!1,PROD:!0,SSR:!1},zoe={path:"/admin/login",Component:F.lazy((()=>L_((()=>import("./Login-23396c5f.js")),["assets/Login-23396c5f.js","assets/index-83bdf3a0.js","assets/row-b45105b9.js","assets/index-ec51f637.js","assets/index-57131342.js"])))},Hoe={path:"/share",Component:F.lazy((()=>L_((()=>import("./index-ea43e5b5.js")),["assets/index-ea43e5b5.js","assets/accountService-0801bb34.js","assets/useQuery-e775fa21.js","assets/index-57131342.js","assets/row-b45105b9.js","assets/index-ec51f637.js","assets/index-a7e2b65e.css"])))};function Voe(){const e=V0(),t={path:"/admin",element:Y.jsx(Aoe,{children:Y.jsx(Ioe,{})}),children:[{index:!0,element:Y.jsx(BB,{to:Foe,replace:!0})},...e]},n=function(e,t){return ND({basename:null==t?void 0:t.basename,future:VB({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:F_({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||KB(),routes:e,mapRouteProperties:HB,unstable_dataStrategy:null==t?void 0:t.unstable_dataStrategy,window:null==t?void 0:t.window}).initialize()}([zoe,t,Hoe,Boe],{basename:"/"});return Y.jsx(nF,{router:n})}function Uoe({children:e}){const{themeMode:t,themeColorPresets:n}=QJ(),{language:r}=L1(),o=t===WJ.Light?N_.defaultAlgorithm:N_.darkAlgorithm,i=G6[n];return Y.jsx(Kx,{locale:r.antdLocal,theme:{token:{colorPrimary:i,...W6,...K6[t].token},components:{...q6,...K6[t].components},algorithm:o},children:Y.jsx(jm,{hashPriority:"high",children:e})})}function Woe({children:e}){return Y.jsx(hG,{strict:!0,features:gG,children:Y.jsxs(pG.div,{style:{height:"100%"},children:[" ",e," "]})})}let qoe=new Set;const Goe=e=>{var t;return"symbol"==typeof(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.$$typeof)},Koe=e=>{var t;return(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.$$typeof)===Symbol.for("react.forward_ref")},Xoe=e=>{if(!e)return;const t=(e=>{const t=Object.keys(e).find((e=>e.startsWith("__reactInternalInstance$")||e.startsWith("__reactFiber$")));if(t)return e[t]})(e);return t||Xoe(e.parentElement)},Yoe=e=>{const t=null==e?void 0:e.type;if(!t)return;const{displayName:n,name:r}=t;return"string"==typeof n?n:"string"==typeof r?r:void 0},Zoe=e=>{var t,n;if(!e)return;const r=null!==(t=e._debugSource)&&void 0!==t?t:null===(n=e._debugOwner)||void 0===n?void 0:n._debugSource;if(!r)return;const{fileName:o,lineNumber:i,columnNumber:a}=r;return o&&i?{lineNumber:String(i),columnNumber:String(null!=a?a:1),absolutePath:o.match(/^<.*>$/)?o.replace(/^<|>$/g,""):o}:void 0},Qoe=e=>{if(!(null==e?void 0:e.pendingProps))return;const{"data-inspector-line":t,"data-inspector-column":n,"data-inspector-relative-path":r}=e.pendingProps;return t&&n&&r?{lineNumber:t,columnNumber:n,relativePath:r}:void 0},Joe=e=>{const t=[Zoe(e),Qoe(e)].filter(Boolean);if(t.length)return Object.assign({},...t)},eie=e=>{if(!e)return;const t=(e=>{let t=e.return;for(;t;){if(!Goe(t))return t;t=t.return}return null})(e);if(!t)return;const n="string"==typeof(null==(r=t)?void 0:r.type);var r;const o=!t.child.sibling;let i=!n&&o?t:e;const a=i;for(;i;){if(Joe(i))return i;i=i.return}return a},tie=e=>{const t=Xoe(e),n=eie(t);return Joe(n)},nie=e=>{const t=Xoe(e),n=eie(t),r=(e=>{var t,n;let r,o=e;for(;o;){let e,i=null!==(t=o.return)&&void 0!==t?t:void 0;for(;Goe(i);)Koe(i)&&(e=i),i=null!==(n=null==i?void 0:i.return)&&void 0!==n?n:void 0;if(e&&(o=e),Yoe(o)&&(r||(r=o),Joe(o)))return o;o=i}return r})(n),o=Yoe(r),i=e.nodeName.toLowerCase();return{fiber:n,name:o,title:o?`${i} in <${o}>`:i}};function rie(e){return e.getBoundingClientRect()}const oie=n("/__open-stack-frame-in-editor"),iie="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function aie(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function sie(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent&&e.detachEvent("on".concat(t),n)}function lie(e,t){const n=t.slice(0,t.length-1);for(let r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}const uie={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":iie?173:189,"=":iie?61:187,";":iie?59:186,"'":222,"[":219,"]":221,"\\":220},die={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},fie={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},pie={16:!1,18:!1,17:!1,91:!1},hie={};for(let rae=1;rae<20;rae++)uie["f".concat(rae)]=111+rae;let mie=[],gie=null,vie="all";const bie=new Map,yie=e=>uie[e.toLowerCase()]||die[e.toLowerCase()]||e.toUpperCase().charCodeAt(0);function xie(e){vie=e||"all"}function wie(){return vie||"all"}function Sie(e){if(void 0===e)Object.keys(hie).forEach((e=>{Array.isArray(hie[e])&&hie[e].forEach((e=>Cie(e))),delete hie[e]})),$ie(null);else if(Array.isArray(e))e.forEach((e=>{e.key&&Cie(e)}));else if("object"==typeof e)e.key&&Cie(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{let{key:t,scope:n,method:r,splitKey:o="+"}=e;cie(t).forEach((e=>{const t=e.split(o),i=t.length,a=t[i-1],s="*"===a?"*":yie(a);if(!hie[s])return;n||(n=wie());const l=i>1?lie(die,t):[],c=[];hie[s]=hie[s].filter((e=>{const t=(!r||e.method===r)&&e.scope===n&&function(e,t){const n=e.length>=t.length?e:t,r=e.length>=t.length?t:e;let o=!0;for(let i=0;i$ie(e)))}))};function Eie(e,t,n,r){if(t.element!==r)return;let o;if(t.scope===n||"all"===t.scope){o=t.mods.length>0;for(const e in pie)Object.prototype.hasOwnProperty.call(pie,e)&&(!pie[e]&&t.mods.indexOf(+e)>-1||pie[e]&&-1===t.mods.indexOf(+e))&&(o=!1);(0!==t.mods.length||pie[16]||pie[18]||pie[17]||pie[91])&&!o&&"*"!==t.shortcut||(t.keys=[],t.keys=t.keys.concat(mie),!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function kie(e,t){const n=hie["*"];let r=e.keyCode||e.which||e.charCode;if(!Oie.filter.call(this,e))return;if(93!==r&&224!==r||(r=91),-1===mie.indexOf(r)&&229!==r&&mie.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((t=>{const n=fie[t];e[t]&&-1===mie.indexOf(n)?mie.push(n):!e[t]&&mie.indexOf(n)>-1?mie.splice(mie.indexOf(n),1):"metaKey"===t&&e[t]&&3===mie.length&&(e.ctrlKey||e.shiftKey||e.altKey||(mie=mie.slice(mie.indexOf(n))))})),r in pie){pie[r]=!0;for(const e in die)die[e]===r&&(Oie[e]=!0);if(!n)return}for(const s in pie)Object.prototype.hasOwnProperty.call(pie,s)&&(pie[s]=e[fie[s]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===mie.indexOf(17)&&mie.push(17),-1===mie.indexOf(18)&&mie.push(18),pie[17]=!0,pie[18]=!0);const o=wie();if(n)for(let s=0;s1&&(o=lie(die,e)),(e="*"===(e=e[e.length-1])?"*":yie(e))in hie||(hie[e]=[]),hie[e].push({keyup:l,keydown:c,scope:i,mods:o,shortcut:r[s],method:n,key:r[s],splitKey:u,element:a});if(void 0!==a&&window){if(!bie.has(a)){const e=function(){return kie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,a)},t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event;kie(e,a),function(e){let t=e.keyCode||e.which||e.charCode;const n=mie.indexOf(t);if(n>=0&&mie.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&mie.splice(0,mie.length),93!==t&&224!==t||(t=91),t in pie){pie[t]=!1;for(const e in die)die[e]===t&&(Oie[e]=!1)}}(e)};bie.set(a,{keydownListener:e,keyupListenr:t,capture:d}),aie(a,"keydown",e,d),aie(a,"keyup",t,d)}if(!gie){const e=()=>{mie=[]};gie={listener:e,capture:d},aie(window,"focus",e,d)}}}function $ie(e){const t=Object.values(hie).flat(),n=t.findIndex((t=>{let{element:n}=t;return n===e}));if(n<0){const{keydownListener:t,keyupListenr:n,capture:r}=bie.get(e)||{};t&&n&&(sie(e,"keyup",n,r),sie(e,"keydown",t,r),bie.delete(e))}if(t.length<=0||bie.size<=0){if(Object.keys(bie).forEach((e=>{const{keydownListener:t,keyupListenr:n,capture:r}=bie.get(e)||{};t&&n&&(sie(e,"keyup",n,r),sie(e,"keydown",t,r),bie.delete(e))})),bie.clear(),Object.keys(hie).forEach((e=>delete hie[e])),gie){const{listener:e,capture:t}=gie;sie(window,"focus",e,t),gie=null}}}const Pie={getPressedKeyString:function(){return mie.map((e=>(e=>Object.keys(uie).find((t=>uie[t]===e)))(e)||(e=>Object.keys(die).find((t=>die[t]===e)))(e)||String.fromCharCode(e)))},setScope:xie,getScope:wie,deleteScope:function(e,t){let n,r;e||(e=wie());for(const o in hie)if(Object.prototype.hasOwnProperty.call(hie,o))for(n=hie[o],r=0;r{let{element:t}=e;return $ie(t)}))}else r++;wie()===e&&xie(t||"all")},getPressedKeyCodes:function(){return mie.slice(0)},getAllKeyCodes:function(){const e=[];return Object.keys(hie).forEach((t=>{hie[t].forEach((t=>{let{key:n,scope:r,mods:o,shortcut:i}=t;e.push({scope:r,shortcut:i,mods:o,keys:n.split("+").map((e=>yie(e)))})}))})),e},isPressed:function(e){return"string"==typeof e&&(e=yie(e)),-1!==mie.indexOf(e)},filter:function(e){const t=e.target||e.srcElement,{tagName:n}=t;let r=!0;const o="INPUT"===n&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||"TEXTAREA"===n||"SELECT"===n)&&!t.readOnly)&&(r=!1),r},trigger:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(hie).forEach((n=>{const r=hie[n].filter((n=>n.scope===t&&n.shortcut===e));r.forEach((e=>{e&&e.method&&e.method()}))}))},unbind:Sie,keyMap:uie,modifier:die,modifierMap:fie};for(const oae in Pie)Object.prototype.hasOwnProperty.call(Pie,oae)&&(Oie[oae]=Pie[oae]);if("undefined"!=typeof window){const iae=window.hotkeys;Oie.noConflict=e=>(e&&window.hotkeys===Oie&&(window.hotkeys=iae),Oie),window.hotkeys=Oie}var Tie;const Mie="undefined"!=typeof window&&(null===(Tie=null===window||void 0===window?void 0:window.document)||void 0===Tie?void 0:Tie.createElement)?F.useLayoutEffect:F.useEffect,Iie=e=>{const t=F.useRef(e);t.current=F.useMemo((()=>e),[e]);const n=F.useRef();return n.current||(n.current=function(...e){var n;return null===(n=t.current)||void 0===n?void 0:n.apply(this,e)}),n.current};class jie{constructor(e,t){Object.defineProperty(this,"node",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"border",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"padding",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.node=e.createElement("div"),this.border=e.createElement("div"),this.padding=e.createElement("div"),this.content=e.createElement("div"),this.border.style.borderColor=Lie.border,this.padding.style.borderColor=Lie.padding,this.content.style.backgroundColor=Lie.background,Object.assign(this.node.style,{borderColor:Lie.margin,pointerEvents:"none",position:"fixed"}),this.node.style.zIndex="10000000",this.node.appendChild(this.border),this.border.appendChild(this.padding),this.padding.appendChild(this.content),t.prepend(this.node)}remove(){this.node.parentNode&&this.node.parentNode.removeChild(this.node)}update(e,t){Aie(t,"margin",this.node),Aie(t,"border",this.border),Aie(t,"padding",this.padding),Object.assign(this.content.style,{height:e.height-t.borderTop-t.borderBottom-t.paddingTop-t.paddingBottom+"px",width:e.width-t.borderLeft-t.borderRight-t.paddingLeft-t.paddingRight+"px"}),Object.assign(this.node.style,{top:e.top-t.marginTop+"px",left:e.left-t.marginLeft+"px"})}}class Rie{constructor(e,t){Object.defineProperty(this,"tip",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nameSpan",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"titleDiv",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"infoDiv",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dimSpan",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.tip=e.createElement("div"),Object.assign(this.tip.style,{display:"flex",flexFlow:"row nowrap",alignItems:"center",backgroundColor:"#333740",borderRadius:"2px",fontFamily:'"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',fontWeight:"bold",padding:"6px 8px",pointerEvents:"none",position:"fixed",fontSize:"12px",whiteSpace:"nowrap"}),this.nameSpan=e.createElement("span"),this.tip.appendChild(this.nameSpan),Object.assign(this.nameSpan.style,{display:"flex",flexDirection:"column",borderRight:"1px solid #aaaaaa",paddingRight:"0.8rem",marginRight:"0.8rem"}),this.titleDiv=e.createElement("div"),this.nameSpan.appendChild(this.titleDiv),Object.assign(this.titleDiv.style,{color:"#ee78e6",fontSize:"16px"}),this.infoDiv=e.createElement("div"),this.nameSpan.appendChild(this.infoDiv),Object.assign(this.infoDiv.style,{color:"#ee78e6",fontSize:"14px"}),this.dimSpan=e.createElement("span"),this.tip.appendChild(this.dimSpan),Object.assign(this.dimSpan.style,{color:"#d7d7d7"}),this.tip.style.zIndex="10000000",t.appendChild(this.tip)}remove(){this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip)}updateText(e,t,n,r){this.titleDiv.textContent=e,this.infoDiv.textContent=null!=t?t:"",this.dimSpan.textContent=`${Math.round(n)}px × ${Math.round(r)}px`}updatePosition(e,t){const n=this.tip.getBoundingClientRect(),r=function(e,t,n){const r=Math.max(n.height,20),o=Math.max(n.width,60),i=5;let a;a=e.top+e.height+r<=t.top+t.height?e.top+e.heightt.left+t.width&&(s=t.left+t.width-o-i);return{style:{top:`${a}px`,left:`${s}px`}}}(e,t,{width:n.width,height:n.height});Object.assign(this.tip.style,r.style)}}class Nie{constructor(){Object.defineProperty(this,"window",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tipBoundsWindow",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tip",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rects",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"removeCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const e=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.window=e;const t=window.__REACT_DEVTOOLS_TARGET_WINDOW__||window;this.tipBoundsWindow=t;const n=e.document;this.container=n.createElement("div"),this.container.style.zIndex="10000000",this.tip=new Rie(n,this.container),this.rects=[],this.removeCallback=()=>{},n.body.appendChild(this.container)}remove(){this.tip.remove(),this.rects.forEach((e=>{e.remove()})),this.rects.length=0,this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.removeCallback()}setRemoveCallback(e){this.removeCallback=e.bind(this)}inspect(e,t,n){var r;const o=e.filter((e=>e.nodeType===Node.ELEMENT_NODE));for(;this.rects.length>o.length;){const e=this.rects.pop();null==e||e.remove()}if(0===o.length)return;for(;this.rects.length{const n=rie(e,this.window),r=function(e){const t=window.getComputedStyle(e);return{borderLeft:Number.parseInt(t.borderLeftWidth,10),borderRight:Number.parseInt(t.borderRightWidth,10),borderTop:Number.parseInt(t.borderTopWidth,10),borderBottom:Number.parseInt(t.borderBottomWidth,10),marginLeft:Number.parseInt(t.marginLeft,10),marginRight:Number.parseInt(t.marginRight,10),marginTop:Number.parseInt(t.marginTop,10),marginBottom:Number.parseInt(t.marginBottom,10),paddingLeft:Number.parseInt(t.paddingLeft,10),paddingRight:Number.parseInt(t.paddingRight,10),paddingTop:Number.parseInt(t.paddingTop,10),paddingBottom:Number.parseInt(t.paddingBottom,10)}}(e);i.top=Math.min(i.top,n.top-r.marginTop),i.right=Math.max(i.right,n.left+n.width+r.marginRight),i.bottom=Math.max(i.bottom,n.top+n.height+r.marginBottom),i.left=Math.min(i.left,n.left-r.marginLeft);this.rects[t].update(n,r)})),!t){t=o[0].nodeName.toLowerCase();const e=o[0],n=null===(r=e.ownerDocument.defaultView)||void 0===r?void 0:r.__REACT_DEVTOOLS_GLOBAL_HOOK__;if(null==n?void 0:n.rendererInterfaces){let r=null;for(const t of n.rendererInterfaces.values()){const n=t.getFiberIDForNative(e,!0);if(null!==n){r=t.getDisplayNameForFiberID(n,!0);break}}r&&(t+=` (in ${r})`)}}this.tip.updateText(t,n,i.right-i.left,i.bottom-i.top);const a=rie(this.tipBoundsWindow.document.documentElement,this.window);this.tip.updatePosition({top:i.top,left:i.left,height:i.bottom-i.top,width:i.right-i.left},{top:a.top+this.tipBoundsWindow.scrollY,left:a.left+this.tipBoundsWindow.scrollX,height:this.tipBoundsWindow.innerHeight,width:this.tipBoundsWindow.innerWidth})}}function Aie(e,t,n){Object.assign(n.style,{borderTopWidth:`${e[`${t}Top`]}px`,borderLeftWidth:`${e[`${t}Left`]}px`,borderRightWidth:`${e[`${t}Right`]}px`,borderBottomWidth:`${e[`${t}Bottom`]}px`,borderStyle:"solid"})}const Lie={background:"rgba(120, 170, 210, 0.7)",padding:"rgba(77, 200, 0, 0.3)",margin:"rgba(255, 155, 0, 0.3)",border:"rgba(255, 200, 50, 0.3)"},_ie=e=>{const{keys:t,onHoverElement:n,onClickElement:r,onInspectElement:o,active:i,onActiveChange:a,disableLaunchEditor:s,disable:l=!0,children:c}=e,[u,d]=F.useState(null!=i&&i);Mie((()=>{void 0!==i&&d(i)}),[i]),F.useEffect((()=>(u?v():b(),b)),[u]);const f=null===t?null:(null!=t?t:[]).join("+"),p=F.useRef(),h=(({disable:e})=>{const t=F.useRef({x:0,y:0}),n=e=>{t.current.x=e.clientX,t.current.y=e.clientY};return F.useEffect((()=>(e||document.addEventListener("mousemove",n,!0),()=>{document.removeEventListener("mousemove",n,!0)})),[e]),t})({disable:l}),m=Iie((()=>{null==a||a(!0),void 0===i&&d(!0)})),g=Iie((()=>{null==a||a(!1),void 0===i&&d(!1)})),v=Iie((()=>{if(p.current||l)return;const e=new Nie;p.current=e,Oie("esc",g);const t=function(e){function t(e){e&&"function"==typeof e.addEventListener&&(e.addEventListener("click",o,!0),e.addEventListener("mousedown",i,!0),e.addEventListener("mouseover",i,!0),e.addEventListener("mouseup",i,!0),e.addEventListener("pointerdown",a,!0),e.addEventListener("pointerover",s,!0),e.addEventListener("pointerup",l,!0))}function n(){r(window),qoe.forEach((e=>{try{r(e.contentWindow)}catch(t){}})),qoe=new Set}function r(e){e&&"function"==typeof e.removeEventListener&&(e.removeEventListener("click",o,!0),e.removeEventListener("mousedown",i,!0),e.removeEventListener("mouseover",i,!0),e.removeEventListener("mouseup",i,!0),e.removeEventListener("pointerdown",a,!0),e.removeEventListener("pointerover",s,!0),e.removeEventListener("pointerup",l,!0))}function o(t){var r;t.preventDefault(),t.stopPropagation(),n(),null===(r=e.onClick)||void 0===r||r.call(e,t.target)}function i(e){e.preventDefault(),e.stopPropagation()}function a(e){e.preventDefault(),e.stopPropagation()}function s(n){var r;n.preventDefault(),n.stopPropagation();const o=n.target;if("IFRAME"===o.tagName){const e=o;try{qoe.has(e)||(t(e.contentWindow),qoe.add(e))}catch(i){}}null===(r=e.onPointerOver)||void 0===r||r.call(e,n.target)}function l(e){e.preventDefault(),e.stopPropagation()}return t(window),n}({onPointerOver:y,onClick:x});e.setRemoveCallback(t);const n=h.current,r=document.elementFromPoint(n.x,n.y);r&&y(r)})),b=Iie((()=>{var e;null===(e=p.current)||void 0===e||e.remove(),p.current=void 0,Oie.unbind("esc",g)})),y=Iie((e=>{var t;const r=p.current,o=tie(e),i=null==o?void 0:o.relativePath,a=null==o?void 0:o.absolutePath,{fiber:s,name:l,title:c}=nie(e);null===(t=null==r?void 0:r.inspect)||void 0===t||t.call(r,[e],c,null!=i?i:a),null==n||n({element:e,fiber:s,codeInfo:o,name:l})})),x=Iie((e=>{g();const t=tie(e),{fiber:n,name:i}=nie(e);null==r||r({element:e,fiber:n,codeInfo:t,name:i}),n&&t&&(null==o||o({element:e,fiber:n,codeInfo:t,name:i}),o||s||(e=>{if(!e)return;const t=(e=>"codeInfo"in e?e.codeInfo:e)(e),{lineNumber:n,columnNumber:r,relativePath:o,absolutePath:i}=t,a=Boolean(o),s=a?o:i;if(!s)return;fetch(`${a?`${oie}/relative`:oie}?${new URLSearchParams({fileName:s,lineNumber:n,colNumber:r})}`)})(t))}));return F.useEffect((()=>{const e=()=>{p.current?g():m()},t=null===f||l?null:f||(()=>{var e;return(null===(e=navigator.platform)||void 0===e?void 0:e.startsWith("Mac"))?["Ctrl","Shift","Command","C"]:["Ctrl","Shift","Alt","C"]})().join("+");if(t)return Oie(t,e),()=>{Oie.unbind(t,e)}}),[f,l]),Y.jsx(Y.Fragment,{children:null!=c?c:null})};function Die(){return Y.jsx(Uoe,{children:Y.jsx(W$,{children:Y.jsxs(Woe,{children:[Y.jsx(_ie,{}),Y.jsx(Voe,{})]})})})}const Bie=new class{constructor(e={}){this.queryCache=e.queryCache||new Ie,this.mutationCache=e.mutationCache||new Ne,this.logger=e.logger||$e,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=ye.subscribe((()=>{ye.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=we.subscribe((()=>{we.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=re(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=ne(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const i=ne(e),a=this.defaultQueryOptions(i);return this.queryCache.build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Pe.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=re(e,t),r=this.queryCache;Pe.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,o]=re(e,t,n),i=this.queryCache,a={type:"active",...r};return Pe.batch((()=>(i.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(a,o))))}cancelQueries(e,t,n){const[r,o={}]=re(e,t,n);void 0===o.revert&&(o.revert=!0);const i=Pe.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(o)))));return Promise.all(i).then(J).catch(J)}invalidateQueries(e,t,n){const[r,o]=re(e,t,n);return Pe.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)}))}refetchQueries(e,t,n){const[r,o]=re(e,t,n),i=Pe.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let a=Promise.all(i).then(J);return null!=o&&o.throwOnError||(a=a.catch(J)),a}fetchQuery(e,t,n){const r=ne(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(J).catch(J)}fetchInfiniteQuery(e,t,n){const r=ne(e,t,n);return r.behavior=Ae(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(J).catch(J)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>se(e)===se(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>le(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>se(e)===se(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>le(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=ae(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{retry:1,cacheTime:3e5,staleTime:101e3,refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1}}});ff.createRoot(document.getElementById("root")).render(Y.jsx(cp,{children:Y.jsxs(sf,{client:Bie,children:[Y.jsx(df,{initialIsOpen:!1}),Y.jsx(F.Suspense,{children:Y.jsx(Die,{})})]})}));export{by as $,uw as A,eE as B,lZ as C,m0 as D,y0 as E,ML as F,N0 as G,TL as H,LA as I,h0 as J,vf as K,F1 as L,wY as M,BB as N,QJ as O,t_ as P,EB as Q,z as R,UJ as S,WJ as T,b6 as U,PR as V,fL as W,NN as X,dv as Y,_y as Z,r8 as _,Dh as a,Jw as a$,Um as a0,PT as a1,jw as a2,Ex as a3,af as a4,cf as a5,YL as a6,xA as a7,NT as a8,p_ as a9,py as aA,Hd as aB,th as aC,sm as aD,zp as aE,UP as aF,OO as aG,PO as aH,$O as aI,TO as aJ,vy as aK,AO as aL,kO as aM,yy as aN,qC as aO,mw as aP,QP as aQ,XP as aR,G$ as aS,oy as aT,eC as aU,qP as aV,Rw as aW,tO as aX,GS as aY,Vb as aZ,NP as a_,B3 as aa,bw as ab,uF as ac,nm as ad,Kp as ae,im as af,Nw as ag,Vp as ah,Qp as ai,rh as aj,Tw as ak,fP as al,Yp as am,wm as an,RP as ao,qp as ap,hv as aq,Yh as ar,K$ as as,oh as at,Ym as au,gy as av,Wh as aw,Rh as ax,Ih as ay,eh as az,ZJ as b,LO as b$,LS as b0,AP as b1,VO as b2,bT as b3,Gb as b4,pT as b5,gT as b6,iT as b7,Gp as b8,Zm as b9,$j as bA,Oj as bB,Ny as bC,oT as bD,kv as bE,_T as bF,vI as bG,Tv as bH,nE as bI,cC as bJ,ww as bK,Sm as bL,ih as bM,mv as bN,nh as bO,dE as bP,fE as bQ,Ah as bR,Fh as bS,Cv as bT,vL as bU,rT as bV,dO as bW,AS as bX,tj as bY,BI as bZ,xy as b_,_S as ba,Cy as bb,qS as bc,FS as bd,nb as be,Ej as bf,Tj as bg,Aj as bh,jj as bi,Cj as bj,Dj as bk,hT as bl,UN as bm,VN as bn,zj as bo,Hj as bp,Ij as bq,_j as br,tC as bs,nO as bt,Kx as bu,Av as bv,$v as bw,Vd as bx,Ey as by,Fj as bz,q3 as c,eO as c0,Nx as c1,Vk as c2,Ev as c3,rO as c4,Hb as c5,qb as c6,Jk as c7,Zk as c8,Yk as c9,pG as cA,sF as cB,xb as cC,NA as cD,xL as ca,fw as cb,Qk as cc,FE as cd,zE as ce,hy as cf,Lk as cg,_k as ch,Xk as ci,Z as cj,de as ck,J as cl,Q as cm,ee as cn,te as co,ye as cp,Ce as cq,be as cr,ke as cs,Pe as ct,lf as cu,tf as cv,ne as cw,nT as cx,JP as cy,vp as cz,U3 as d,cZ as e,_1 as f,FJ as g,xp as h,Ly as i,Y as j,Db as k,oL as l,$y as m,wp as n,qh as o,Gw as p,t as q,F as r,n as s,BL as t,TZ as u,cJ as v,PL as w,IL as x,kI as y,SI as z}; diff --git a/frontend/dist/assets/index-ea43e5b5.js b/frontend/dist/assets/index-ea43e5b5.js new file mode 100644 index 0000000..2ddb550 --- /dev/null +++ b/frontend/dist/assets/index-ea43e5b5.js @@ -0,0 +1,7 @@ +import{h as e,i as t,m as n,R as o,k as a,l as r,o as i,r as s,A as l,n as c,j as u,p as d,q as p,s as w,t as m,B as f,v as h}from"./index-8bf8489d.js";import{a as g}from"./accountService-0801bb34.js";import{u as v}from"./useQuery-e775fa21.js";import{T as b}from"./index-57131342.js";import{R as y,C as x}from"./row-b45105b9.js";import{L as k}from"./index-ec51f637.js";const C=["wrap","nowrap","wrap-reverse"],A=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],E=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];function j(t,n){return e(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n={};return C.forEach((o=>{n[`${e}-wrap-${o}`]=t.wrap===o})),n})(t,n)),((e,t)=>{const n={};return E.forEach((o=>{n[`${e}-align-${o}`]=t.align===o})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(t,n)),((e,t)=>{const n={};return A.forEach((o=>{n[`${e}-justify-${o}`]=t.justify===o})),n})(t,n)))}const P=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},B=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},T=e=>{const{componentCls:t}=e,n={};return C.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},L=e=>{const{componentCls:t}=e,n={};return E.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},S=e=>{const{componentCls:t}=e,n={};return A.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},O=t("Flex",(e=>{const{paddingXS:t,padding:o,paddingLG:a}=e,r=n(e,{flexGapSM:t,flexGap:o,flexGapLG:a});return[P(r),B(r),T(r),L(r),S(r)]}),(()=>({})),{resetStyle:!1});var M=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a{const{prefixCls:s,rootClassName:l,className:c,style:u,flex:d,gap:p,children:w,vertical:m=!1,component:f="div"}=t,h=M(t,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:g,direction:v,getPrefixCls:b}=o.useContext(a),y=b("flex",s),[x,k,C]=O(y),A=null!=m?m:null==g?void 0:g.vertical,E=e(c,l,null==g?void 0:g.className,y,k,C,j(y,t),{[`${y}-rtl`]:"rtl"===v,[`${y}-gap-${p}`]:r(p),[`${y}-vertical`]:A}),P=Object.assign(Object.assign({},null==g?void 0:g.style),u);return d&&(P.flex=d),p&&!r(p)&&(P.gap=p),x(o.createElement(f,Object.assign({ref:n,className:E,style:P},i(h,["justify","wrap","align"])),w))}));const I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};var H=function(e,t){return s.createElement(l,c({},e,{ref:t,icon:I}))}; +/**![arrow-right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg2OSA0ODcuOEw0OTEuMiAxNTkuOWMtMi45LTIuNS02LjYtMy45LTEwLjUtMy45aC04OC41Yy03LjQgMC0xMC44IDkuMi01LjIgMTRsMzUwLjIgMzA0SDE1MmMtNC40IDAtOCAzLjYtOCA4djYwYzAgNC40IDMuNiA4IDggOGg1ODUuMUwzODYuOSA4NTRjLTUuNiA0LjktMi4yIDE0IDUuMiAxNGg5MS41YzEuOSAwIDMuOC0uNyA1LjItMkw4NjkgNTM2LjJhMzIuMDcgMzIuMDcgMCAwMDAtNDguNHoiIC8+PC9zdmc+) */const q=s.forwardRef(H);const D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};var N=function(e,t){return s.createElement(l,c({},e,{ref:t,icon:D}))}; +/**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTY5OSAzNTNoLTQ2LjljLTEwLjIgMC0xOS45IDQuOS0yNS45IDEzLjNMNDY5IDU4NC4zbC03MS4yLTk4LjhjLTYtOC4zLTE1LjYtMTMuMy0yNS45LTEzLjNIMzI1Yy02LjUgMC0xMC4zIDcuNC02LjUgMTIuN2wxMjQuNiAxNzIuOGEzMS44IDMxLjggMCAwMDUxLjcgMGwyMTAuNi0yOTJjMy45LTUuMy4xLTEyLjctNi40LTEyLjd6IiAvPjxwYXRoIGQ9Ik01MTIgNjRDMjY0LjYgNjQgNjQgMjY0LjYgNjQgNTEyczIwMC42IDQ0OCA0NDggNDQ4IDQ0OC0yMDAuNiA0NDgtNDQ4Uzc1OS40IDY0IDUxMiA2NHptMCA4MjBjLTIwNS40IDAtMzcyLTE2Ni42LTM3Mi0zNzJzMTY2LjYtMzcyIDM3Mi0zNzIgMzcyIDE2Ni42IDM3MiAzNzItMTY2LjYgMzcyLTM3MiAzNzJ6IiAvPjwvc3ZnPg==) */const V=s.forwardRef(N),R=({onUnlock:e})=>{const[t,n]=s.useState(!1),[o,a]=s.useState(5),r=s.useRef(null),i=s.useRef(null);s.useEffect((()=>{const t=()=>{if(!i.current||!r.current)return;const t=i.current.offsetWidth-r.current.offsetWidth-5;o>=t?(n(!0),a(t),e&&e()):a(5)};return document.addEventListener("mouseup",t),document.addEventListener("touchend",t),()=>{document.removeEventListener("mouseup",t),document.removeEventListener("touchend",t)}}),[o]);const l=e=>{if(t)return;const n="mousedown"===e.type?e.clientX:e.touches[0].clientX,o=r.current?.offsetLeft||0,s=e=>{const t=("mousemove"===e.type?e.clientX:e.touches[0].clientX)-n+o;if(i.current&&r.current){const e=i.current.offsetWidth-r.current.offsetWidth-5;a(Math.max(5,Math.min(t,e)))}},l=()=>{document.removeEventListener("mousemove",s),document.removeEventListener("touchmove",s)};document.addEventListener("mousemove",s),document.addEventListener("touchmove",s),document.addEventListener("mouseup",l,{once:!0}),document.addEventListener("touchend",l,{once:!0})};return u.jsxs("div",{ref:i,className:"relative w-full h-16 right-1 rounded-full overflow-hidden shadow-inner",style:{boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.2)",backgroundColor:"rgb(127,127,127)",minWidth:200,maxWidth:400},children:[u.jsx("div",{ref:r,className:"absolute top-1 left-2 w-14 h-14 bg-white rounded-full shadow-md flex items-center justify-center cursor-pointer "+(t?"bg-gray-300":"bg-gray-200"),style:{left:`${o}px`,zIndex:1},onMouseDown:l,onTouchStart:l,children:t?u.jsx(d,{className:"text-2xl "+(t?"text-white":"text-gray-600")}):u.jsx(q,{className:"text-2xl "+(t?"text-white":"text-gray-600")})}),u.jsx("div",{className:"absolute top-0 left-0 w-full h-full flex items-center justify-center pointer-events-none",style:{zIndex:0},children:u.jsx("span",{className:"font-semibold",children:t?"请稍后":(c="随机选择",c.split("").map(((e,t)=>u.jsx("span",{className:"wave-text",style:{animationDelay:.15*t+"s"},children:e},t))))})})]});var c};var $={exports:{}}; +/*! +* sweetalert2 v11.12.4 +* Released under the MIT License. +*/$.exports=function(){function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,r=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw r}}}}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=j(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?e:n):a.value}},f.apply(null,arguments)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function b(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function y(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,r,i,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(l=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function E(e,n){return t(e)||y(e,n)||O(e,n)||x()}function j(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function P(e,t,n,o){var a=f(h(e.prototype),t,n);return function(e){return a.apply(n,e)}}function B(e){return n(e)||b(e)||O(e)||k()}function T(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function L(e){var t=T(e,"string");return"symbol"==typeof t?t:t+""}function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function O(t,n){if(t){if("string"==typeof t)return e(t,n);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}}var M=100,z={},I=function(){z.previousActiveElement instanceof HTMLElement?(z.previousActiveElement.focus(),z.previousActiveElement=null):document.body&&document.body.focus()},H=function(e){return new Promise((function(t){if(!e)return t();var n=window.scrollX,o=window.scrollY;z.restoreFocusTimeout=setTimeout((function(){I(),t()}),M),window.scrollTo(n,o)}))},q="swal2-",D=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"],N=D.reduce((function(e,t){return e[t]=q+t,e}),{}),V=["success","warning","info","question","error"].reduce((function(e,t){return e[t]=q+t,e}),{}),R=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},$=function(e){},_=function(e){},F=[],U=function(e){F.includes(e)||(F.push(e),$(e))},W=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;U('"'.concat(e,'" is deprecated and will be removed in the next major release.').concat(t?' Use "'.concat(t,'" instead.'):""))},K=function(e){return"function"==typeof e?e():e},Y=function(e){return e&&"function"==typeof e.toPromise},Z=function(e){return Y(e)?e.toPromise():Promise.resolve(e)},G=function(e){return e&&Promise.resolve(e)===e},X=function(){return document.body.querySelector(".".concat(N.container))},J=function(e){var t=X();return t?t.querySelector(e):null},Q=function(e){return J(".".concat(e))},ee=function(){return Q(N.popup)},te=function(){return Q(N.icon)},ne=function(){return Q(N["icon-content"])},oe=function(){return Q(N.title)},ae=function(){return Q(N["html-container"])},re=function(){return Q(N.image)},ie=function(){return Q(N["progress-steps"])},se=function(){return Q(N["validation-message"])},le=function(){return J(".".concat(N.actions," .").concat(N.confirm))},ce=function(){return J(".".concat(N.actions," .").concat(N.cancel))},ue=function(){return J(".".concat(N.actions," .").concat(N.deny))},de=function(){return Q(N["input-label"])},pe=function(){return J(".".concat(N.loader))},we=function(){return Q(N.actions)},me=function(){return Q(N.footer)},fe=function(){return Q(N["timer-progress-bar"])},he=function(){return Q(N.close)},ge='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',ve=function(){var e=ee();if(!e)return[];var t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),n=Array.from(t).sort((function(e,t){var n=parseInt(e.getAttribute("tabindex")||"0"),o=parseInt(t.getAttribute("tabindex")||"0");return n>o?1:n .").concat(N[t]));case"checkbox":return e.querySelector(".".concat(N.popup," > .").concat(N.checkbox," input"));case"radio":return e.querySelector(".".concat(N.popup," > .").concat(N.radio," input:checked"))||e.querySelector(".".concat(N.popup," > .").concat(N.radio," input:first-child"));case"range":return e.querySelector(".".concat(N.popup," > .").concat(N.range," input"));default:return e.querySelector(".".concat(N.popup," > .").concat(N.input))}},Pe=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},Be=function(e,t,n){e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((function(t){Array.isArray(e)?e.forEach((function(e){n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},Te=function(e,t){Be(e,t,!0)},Le=function(e,t){Be(e,t,!1)},Se=function(e,t){for(var n=Array.from(e.children),o=0;o1&&void 0!==arguments[1]?arguments[1]:"flex";e&&(e.style.display=t)},ze=function(e){e&&(e.style.display="none")},Ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";e&&new MutationObserver((function(){qe(e,e.innerHTML,t)})).observe(e,{childList:!0,subtree:!0})},He=function(e,t,n,o){var a=e.querySelector(t);a&&a.style.setProperty(n,o)},qe=function(e,t){t?Me(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):ze(e)},De=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},Ne=function(){return!De(le())&&!De(ue())&&!De(ce())},Ve=function(e){return!!(e.scrollHeight>e.clientHeight)},Re=function(e){var t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),o=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||o>0},$e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=fe();n&&De(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},_e=function(){var e=fe();if(e){var t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var n=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width="".concat(n,"%")}},Fe=function(){return"undefined"==typeof window||"undefined"==typeof document},Ue='\n
\n \n
    \n
    \n \n

    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n').replace(/(^|\n)\s*/g,""),We=function(){var e=X();return!!e&&(e.remove(),Le([document.documentElement,document.body],[N["no-backdrop"],N["toast-shown"],N["has-column"]]),!0)},Ke=function(){z.currentInstance.resetValidationMessage()},Ye=function(){var e=ee(),t=Se(e,N.input),n=Se(e,N.file),o=e.querySelector(".".concat(N.range," input")),a=e.querySelector(".".concat(N.range," output")),r=Se(e,N.select),i=e.querySelector(".".concat(N.checkbox," input")),s=Se(e,N.textarea);t.oninput=Ke,n.onchange=Ke,r.onchange=Ke,i.onchange=Ke,s.oninput=Ke,o.oninput=function(){Ke(),a.value=o.value},o.onchange=function(){Ke(),a.value=o.value}},Ze=function(e){return"string"==typeof e?document.querySelector(e):e},Ge=function(e){var t=ee();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Xe=function(e){"rtl"===window.getComputedStyle(e).direction&&Te(X(),N.rtl)},Je=function(e){var t=We();if(Fe())_("SweetAlert2 requires document to initialize");else{var n=document.createElement("div");n.className=N.container,t&&Te(n,N["no-transition"]),ke(n,Ue);var o=Ze(e.target);o.appendChild(n),Ge(e),Xe(o),Ye()}},Qe=function(e,t){e instanceof HTMLElement?t.appendChild(e):"object"===S(e)?et(e,t):e&&ke(t,e)},et=function(e,t){e.jquery?tt(t,e):ke(t,e.toString())},tt=function(e,t){if(e.textContent="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},nt=function(){if(Fe())return!1;var e=document.createElement("div");return void 0!==e.style.webkitAnimation?"webkitAnimationEnd":void 0!==e.style.animation&&"animationend"}(),ot=function(e,t){var n=we(),o=pe();n&&o&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?Me(n):ze(n),Ee(n,t,"actions"),at(n,o,t),ke(o,t.loaderHtml||""),Ee(o,t,"loader"))};function at(e,t,n){var o=le(),a=ue(),r=ce();o&&a&&r&&(it(o,"confirm",n),it(a,"deny",n),it(r,"cancel",n),rt(o,a,r,n),n.reverseButtons&&(n.toast?(e.insertBefore(r,o),e.insertBefore(a,o)):(e.insertBefore(r,t),e.insertBefore(a,t),e.insertBefore(o,t))))}function rt(e,t,n,o){o.buttonsStyling?(Te([e,t,n],N.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor,Te(e,N["default-outline"])),o.denyButtonColor&&(t.style.backgroundColor=o.denyButtonColor,Te(t,N["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,Te(n,N["default-outline"]))):Le([e,t,n],N.styled)}function it(e,t,n){var o=R(t);qe(e,n["show".concat(o,"Button")],"inline-block"),ke(e,n["".concat(t,"ButtonText")]||""),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]||""),e.className=N[t],Ee(e,n,"".concat(t,"Button"))}var st=function(e,t){var n=he();n&&(ke(n,t.closeButtonHtml||""),Ee(n,t,"closeButton"),qe(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel||""))},lt=function(e,t){var n=X();n&&(ct(n,t.backdrop),ut(n,t.position),dt(n,t.grow),Ee(n,t,"container"))};function ct(e,t){"string"==typeof t?e.style.background=t:t||Te([document.documentElement,document.body],N["no-backdrop"])}function ut(e,t){t&&(t in N?Te(e,N[t]):($('The "position" parameter is not valid, defaulting to "center"'),Te(e,N.center)))}function dt(e,t){t&&Te(e,N["grow-".concat(t)])}var pt={innerParams:new WeakMap,domCache:new WeakMap},wt=["input","file","range","select","radio","checkbox","textarea"],mt=function(e,t){var n=ee();if(n){var o=pt.innerParams.get(e),a=!o||t.input!==o.input;wt.forEach((function(e){var o=Se(n,N[e]);o&&(gt(e,t.inputAttributes),o.className=N[e],a&&ze(o))})),t.input&&(a&&ft(t),vt(t))}},ft=function(e){if(e.input)if(Ct[e.input]){var t=xt(e.input);if(t){var n=Ct[e.input](t,e);Me(t),e.inputAutoFocus&&setTimeout((function(){Pe(n)}))}}else _("Unexpected type of input! Expected ".concat(Object.keys(Ct).join(" | "),', got "').concat(e.input,'"'))},ht=function(e){for(var t=0;to?ee().style.width="".concat(a,"px"):Oe(ee(),"width",t.width)}})).observe(e,{attributes:!0,attributeFilter:["style"]})}})),e};var At=function(e,t){var n=ae();n&&(Ie(n),Ee(n,t,"htmlContainer"),t.html?(Qe(t.html,n),Me(n,"block")):t.text?(n.textContent=t.text,Me(n,"block")):ze(n),mt(e,t))},Et=function(e,t){var n=me();n&&(Ie(n),qe(n,t.footer,"block"),t.footer&&Qe(t.footer,n),Ee(n,t,"footer"))},jt=function(e,t){var n=pt.innerParams.get(e),o=te();if(o){if(n&&t.icon===n.icon)return St(o,t),void Pt(o,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(V).indexOf(t.icon))return _('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"')),void ze(o);Me(o),St(o,t),Pt(o,t),Te(o,t.showClass&&t.showClass.icon)}else ze(o)}},Pt=function(e,t){for(var n=0,o=Object.entries(V);n\n \n
    \n
    \n',Lt='\n \n \n \n \n',St=function(e,t){if(t.icon||t.iconHtml){var n=e.innerHTML,o="";t.iconHtml?o=Mt(t.iconHtml):"success"===t.icon?(o=Tt,n=n.replace(/ style=".*?"/g,"")):"error"===t.icon?o=Lt:t.icon&&(o=Mt({question:"?",warning:"!",info:"i"}[t.icon])),n.trim()!==o.trim()&&ke(e,o)}},Ot=function(e,t){if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(var n=0,o=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n').concat(e,"")},zt=function(e,t){var n=re();n&&(t.imageUrl?(Me(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt||""),Oe(n,"width",t.imageWidth),Oe(n,"height",t.imageHeight),n.className=N.image,Ee(n,t,"image")):ze(n))},It=function(e,t){var n=X(),o=ee();if(n&&o){if(t.toast){Oe(n,"width",t.width),o.style.width="100%";var a=pe();a&&o.insertBefore(a,te())}else Oe(o,"width",t.width);Oe(o,"padding",t.padding),t.color&&(o.style.color=t.color),t.background&&(o.style.background=t.background),ze(se()),Ht(o,t)}},Ht=function(e,t){var n=t.showClass||{};e.className="".concat(N.popup," ").concat(De(e)?n.popup:""),t.toast?(Te([document.documentElement,document.body],N["toast-shown"]),Te(e,N.toast)):Te(e,N.modal),Ee(e,t,"popup"),"string"==typeof t.customClass&&Te(e,t.customClass),t.icon&&Te(e,N["icon-".concat(t.icon)])},qt=function(e,t){var n=ie();if(n){var o=t.progressSteps,a=t.currentProgressStep;o&&0!==o.length&&void 0!==a?(Me(n),n.textContent="",a>=o.length&&$("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.forEach((function(e,r){var i=Dt(e);if(n.appendChild(i),r===a&&Te(i,N["active-progress-step"]),r!==o.length-1){var s=Nt(t);n.appendChild(s)}}))):ze(n)}},Dt=function(e){var t=document.createElement("li");return Te(t,N["progress-step"]),ke(t,e),t},Nt=function(e){var t=document.createElement("li");return Te(t,N["progress-step-line"]),e.progressStepsDistance&&Oe(t,"width",e.progressStepsDistance),t},Vt=function(e,t){var n=oe();n&&(Ie(n),qe(n,t.title||t.titleText,"block"),t.title&&Qe(t.title,n),t.titleText&&(n.innerText=t.titleText),Ee(n,t,"title"))},Rt=function(e,t){It(e,t),lt(e,t),qt(e,t),jt(e,t),zt(e,t),Vt(e,t),st(e,t),At(e,t),ot(e,t),Et(e,t);var n=ee();"function"==typeof t.didRender&&n&&t.didRender(n)},$t=function(){return De(ee())},_t=function(){var e;return null===(e=le())||void 0===e?void 0:e.click()},Ft=function(){var e;return null===(e=ue())||void 0===e?void 0:e.click()},Ut=function(){var e;return null===(e=ce())||void 0===e?void 0:e.click()},Wt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Kt=function(e){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Yt=function(e,t,n){Kt(e),t.toast||(e.keydownHandler=function(e){return Jt(t,e,n)},e.keydownTarget=t.keydownListenerCapture?window:ee(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Zt=function(e,t){var n,o=ve();if(o.length)return(e+=t)===o.length?e=0:-1===e&&(e=o.length-1),void o[e].focus();null===(n=ee())||void 0===n||n.focus()},Gt=["ArrowRight","ArrowDown"],Xt=["ArrowLeft","ArrowUp"],Jt=function(e,t,n){e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Qt(t,e):"Tab"===t.key?en(t):[].concat(Gt,Xt).includes(t.key)?tn(t.key):"Escape"===t.key&&nn(t,e,n)))},Qt=function(e,t){if(K(t.allowEnterKey)){var n=je(ee(),t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;_t(),e.preventDefault()}}},en=function(e){for(var t=e.target,n=ve(),o=-1,a=0;a1},wn=function(){if(Ce(document.body,N.iosfix)){var e=parseInt(document.body.style.top,10);Le(document.body,N.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},mn=function(){var e=document.createElement("div");e.className=N["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},fn=null,hn=function(e){null===fn&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(fn=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(fn+mn(),"px"))},gn=function(){null!==fn&&(document.body.style.paddingRight="".concat(fn,"px"),fn=null)};function vn(e,t,n,o){ye()?Pn(e,o):(H(n).then((function(){return Pn(e,o)})),Kt(z)),sn?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),be()&&(gn(),wn(),rn()),bn()}function bn(){Le([document.documentElement,document.body],[N.shown,N["height-auto"],N["no-backdrop"],N["toast-shown"]])}function yn(e){e=An(e);var t=on.swalPromiseResolve.get(this),n=xn(this);this.isAwaitingPromise?e.isDismissed||(Cn(this),t(e)):n&&t(e)}var xn=function(e){var t=ee();if(!t)return!1;var n=pt.innerParams.get(e);if(!n||Ce(t,n.hideClass.popup))return!1;Le(t,n.showClass.popup),Te(t,n.hideClass.popup);var o=X();return Le(o,n.showClass.backdrop),Te(o,n.hideClass.backdrop),En(e,t,n),!0};function kn(e){var t=on.swalPromiseReject.get(this);Cn(this),t&&t(e)}var Cn=function(e){e.isAwaitingPromise&&(delete e.isAwaitingPromise,pt.innerParams.get(e)||e._destroy())},An=function(e){return void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e)},En=function(e,t,n){var o=X(),a=nt&&Re(t);"function"==typeof n.willClose&&n.willClose(t),a?jn(e,t,o,n.returnFocus,n.didClose):vn(e,o,n.returnFocus,n.didClose)},jn=function(e,t,n,o,a){nt&&(z.swalCloseEventFinishedCallback=vn.bind(null,e,n,o,a),t.addEventListener(nt,(function(e){e.target===t&&(z.swalCloseEventFinishedCallback(),delete z.swalCloseEventFinishedCallback)})))},Pn=function(e,t){setTimeout((function(){"function"==typeof t&&t.bind(e.params)(),e._destroy&&e._destroy()}))},Bn=function(e){var t=ee();if(t||new Sa,t=ee()){var n=pe();ye()?ze(te()):Tn(t,e),Me(n),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()}},Tn=function(e,t){var n=we(),o=pe();n&&o&&(!t&&De(le())&&(t=le()),Me(n),t&&(ze(t),o.setAttribute("data-button-to-replace",t.className),n.insertBefore(o,t)),Te([e,n],N.loading))},Ln=function(e,t){"select"===t.input||"radio"===t.input?In(e,t):["text","email","number","tel","textarea"].some((function(e){return e===t.input}))&&(Y(t.inputValue)||G(t.inputValue))&&(Bn(le()),Hn(e,t))},Sn=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return On(n);case"radio":return Mn(n);case"file":return zn(n);default:return t.inputAutoTrim?n.value.trim():n.value}},On=function(e){return e.checked?1:0},Mn=function(e){return e.checked?e.value:null},zn=function(e){return e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},In=function(e,t){var n=ee();if(n){var o=function(e){"select"===t.input?qn(n,Nn(e),t):"radio"===t.input&&Dn(n,Nn(e),t)};Y(t.inputOptions)||G(t.inputOptions)?(Bn(le()),Z(t.inputOptions).then((function(t){e.hideLoading(),o(t)}))):"object"===S(t.inputOptions)?o(t.inputOptions):_("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(S(t.inputOptions)))}},Hn=function(e,t){var n=e.getInput();n&&(ze(n),Z(t.inputValue).then((function(o){n.value="number"===t.input?"".concat(parseFloat(o)||0):"".concat(o),Me(n),n.focus(),e.hideLoading()})).catch((function(t){_("Error in inputValue promise: ".concat(t)),n.value="",Me(n),n.focus(),e.hideLoading()})))};function qn(e,t,n){var o=Se(e,N.select);if(o){var a=function(e,t,o){var a=document.createElement("option");a.value=o,ke(a,t),a.selected=Vn(o,n.inputValue),e.appendChild(a)};t.forEach((function(e){var t=e[0],n=e[1];if(Array.isArray(n)){var r=document.createElement("optgroup");r.label=t,r.disabled=!1,o.appendChild(r),n.forEach((function(e){return a(r,e[1],e[0])}))}else a(o,n,t)})),o.focus()}}function Dn(e,t,n){var o=Se(e,N.radio);if(o){t.forEach((function(e){var t=e[0],a=e[1],r=document.createElement("input"),i=document.createElement("label");r.type="radio",r.name=N.radio,r.value=t,Vn(t,n.inputValue)&&(r.checked=!0);var s=document.createElement("span");ke(s,a),s.className=N.label,i.appendChild(r),i.appendChild(s),o.appendChild(i)}));var a=o.querySelectorAll("input");a.length&&a[0].focus()}}var Nn=function(e){var t=[];return e instanceof Map?e.forEach((function(e,n){var o=e;"object"===S(o)&&(o=Nn(o)),t.push([n,o])})):Object.keys(e).forEach((function(n){var o=e[n];"object"===S(o)&&(o=Nn(o)),t.push([n,o])})),t},Vn=function(e,t){return!!t&&t.toString()===e.toString()},Rn=void 0,$n=function(e){var t=pt.innerParams.get(e);e.disableButtons(),t.input?Un(e,"confirm"):Gn(e,!0)},_n=function(e){var t=pt.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Un(e,"deny"):Kn(e,!1)},Fn=function(e,t){e.disableButtons(),t(Wt.cancel)},Un=function(e,t){var n=pt.innerParams.get(e);if(n.input){var o=e.getInput(),a=Sn(e,n);n.inputValidator?Wn(e,a,t):o&&!o.checkValidity()?(e.enableButtons(),e.showValidationMessage(n.validationMessage||o.validationMessage)):"deny"===t?Kn(e,a):Gn(e,a)}else _('The "input" parameter is needed to be set when using returnInputValueOn'.concat(R(t)))},Wn=function(e,t,n){var o=pt.innerParams.get(e);e.disableInput(),Promise.resolve().then((function(){return Z(o.inputValidator(t,o.validationMessage))})).then((function(o){e.enableButtons(),e.enableInput(),o?e.showValidationMessage(o):"deny"===n?Kn(e,t):Gn(e,t)}))},Kn=function(e,t){var n=pt.innerParams.get(e||Rn);n.showLoaderOnDeny&&Bn(ue()),n.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then((function(){return Z(n.preDeny(t,n.validationMessage))})).then((function(n){!1===n?(e.hideLoading(),Cn(e)):e.close({isDenied:!0,value:void 0===n?t:n})})).catch((function(t){return Zn(e||Rn,t)}))):e.close({isDenied:!0,value:t})},Yn=function(e,t){e.close({isConfirmed:!0,value:t})},Zn=function(e,t){e.rejectPromise(t)},Gn=function(e,t){var n=pt.innerParams.get(e||Rn);n.showLoaderOnConfirm&&Bn(),n.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then((function(){return Z(n.preConfirm(t,n.validationMessage))})).then((function(n){De(se())||!1===n?(e.hideLoading(),Cn(e)):Yn(e,void 0===n?t:n)})).catch((function(t){return Zn(e||Rn,t)}))):Yn(e,t)};function Xn(){var e=pt.innerParams.get(this);if(e){var t=pt.domCache.get(this);ze(t.loader),ye()?e.icon&&Me(te()):Jn(t),Le([t.popup,t.actions],N.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}}var Jn=function(e){var t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?Me(t[0],"inline-block"):Ne()&&ze(e.actions)};function Qn(){var e=pt.innerParams.get(this),t=pt.domCache.get(this);return t?je(t.popup,e.input):null}function eo(e,t,n){var o=pt.domCache.get(e);t.forEach((function(e){o[e].disabled=n}))}function to(e,t){var n=ee();if(n&&e)if("radio"===e.type)for(var o=n.querySelectorAll('[name="'.concat(N.radio,'"]')),a=0;a0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Uo||(document.body.addEventListener("click",Zo),Uo=!0)}var Yo,Zo=function(e){for(var t=e.target;t&&t!==document;t=t.parentNode)for(var n in Wo){var o=t.getAttribute(n);if(o)return void Wo[n].fire({template:o})}},Go=Object.freeze({__proto__:null,argsToParams:Ho,bindClickHandler:Ko,clickCancel:Ut,clickConfirm:_t,clickDeny:Ft,enableLoading:Bn,fire:qo,getActions:we,getCancelButton:ce,getCloseButton:he,getConfirmButton:le,getContainer:X,getDenyButton:ue,getFocusableElements:ve,getFooter:me,getHtmlContainer:ae,getIcon:te,getIconContent:ne,getImage:re,getInputLabel:de,getLoader:pe,getPopup:ee,getProgressSteps:ie,getTimerLeft:No,getTimerProgressBar:fe,getTitle:oe,getValidationMessage:se,increaseTimer:_o,isDeprecatedParameter:fo,isLoading:xe,isTimerRunning:Fo,isUpdatableParameter:mo,isValidParameter:wo,isVisible:$t,mixin:Do,resumeTimer:Ro,showLoading:Bn,stopTimer:Vo,toggleTimer:$o}),Xo=function(){function e(t,n){s(this,e),this.callback=t,this.remaining=n,this.running=!1,this.start()}return w(e,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}},{key:"increase",value:function(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}])}(),Jo=["swal-title","swal-html","swal-footer"],Qo=function(e){var t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};var n=t.content;return sa(n),Object.assign(ea(n),ta(n),na(n),oa(n),aa(n),ra(n),ia(n,Jo))},ea=function(e){var t={};return Array.from(e.querySelectorAll("swal-param")).forEach((function(e){la(e,["name","value"]);var n=e.getAttribute("name"),o=e.getAttribute("value");n&&o&&("boolean"==typeof lo[n]?t[n]="false"!==o:"object"===S(lo[n])?t[n]=JSON.parse(o):t[n]=o)})),t},ta=function(e){var t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach((function(e){var n=e.getAttribute("name"),o=e.getAttribute("value");n&&o&&(t[n]=new Function("return ".concat(o))())})),t},na=function(e){var t={};return Array.from(e.querySelectorAll("swal-button")).forEach((function(e){la(e,["type","color","aria-label"]);var n=e.getAttribute("type");n&&["confirm","cancel","deny"].includes(n)&&(t["".concat(n,"ButtonText")]=e.innerHTML,t["show".concat(R(n),"Button")]=!0,e.hasAttribute("color")&&(t["".concat(n,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t["".concat(n,"ButtonAriaLabel")]=e.getAttribute("aria-label")))})),t},oa=function(e){var t={},n=e.querySelector("swal-image");return n&&(la(n,["src","width","height","alt"]),n.hasAttribute("src")&&(t.imageUrl=n.getAttribute("src")||void 0),n.hasAttribute("width")&&(t.imageWidth=n.getAttribute("width")||void 0),n.hasAttribute("height")&&(t.imageHeight=n.getAttribute("height")||void 0),n.hasAttribute("alt")&&(t.imageAlt=n.getAttribute("alt")||void 0)),t},aa=function(e){var t={},n=e.querySelector("swal-icon");return n&&(la(n,["type","color"]),n.hasAttribute("type")&&(t.icon=n.getAttribute("type")),n.hasAttribute("color")&&(t.iconColor=n.getAttribute("color")),t.iconHtml=n.innerHTML),t},ra=function(e){var t={},n=e.querySelector("swal-input");n&&(la(n,["type","label","placeholder","value"]),t.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(t.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(t.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(t.inputValue=n.getAttribute("value")));var o=Array.from(e.querySelectorAll("swal-input-option"));return o.length&&(t.inputOptions={},o.forEach((function(e){la(e,["value"]);var n=e.getAttribute("value");if(n){var o=e.innerHTML;t.inputOptions[n]=o}}))),t},ia=function(e,t){var n={};for(var o in t){var a=t[o],r=e.querySelector(a);r&&(la(r,[]),n[a.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},sa=function(e){var t=Jo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach((function(e){var n=e.tagName.toLowerCase();t.includes(n)||$("Unrecognized element <".concat(n,">"))}))},la=function(e,t){Array.from(e.attributes).forEach((function(n){-1===t.indexOf(n.name)&&$(['Unrecognized attribute "'.concat(n.name,'" on <').concat(e.tagName.toLowerCase(),">."),"".concat(t.length?"Allowed attributes are: ".concat(t.join(", ")):"To set the value, use HTML within the element.")])}))},ca=10,ua=function(e){var t=X(),n=ee();"function"==typeof e.willOpen&&e.willOpen(n);var o=window.getComputedStyle(document.body).overflowY;ma(t,n,e),setTimeout((function(){pa(t,n)}),ca),be()&&(wa(t,e.scrollbarPadding,o),an()),ye()||z.previousActiveElement||(z.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout((function(){return e.didOpen(n)})),Le(t,N["no-transition"])},da=function(e){var t=ee();if(e.target===t&&nt){var n=X();t.removeEventListener(nt,da),n.style.overflowY="auto"}},pa=function(e,t){nt&&Re(t)?(e.style.overflowY="hidden",t.addEventListener(nt,da)):e.style.overflowY="auto"},wa=function(e,t,n){ln(),t&&"hidden"!==n&&hn(n),setTimeout((function(){e.scrollTop=0}))},ma=function(e,t,n){Te(e,n.showClass.backdrop),n.animation?(t.style.setProperty("opacity","0","important"),Me(t,"grid"),setTimeout((function(){Te(t,n.showClass.popup),t.style.removeProperty("opacity")}),ca)):Me(t,"grid"),Te([document.documentElement,document.body],N.shown),n.heightAuto&&n.backdrop&&!n.toast&&Te([document.documentElement,document.body],N["height-auto"])},fa={email:function(e,t){return/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")}};function ha(e){e.inputValidator||("email"===e.input&&(e.inputValidator=fa.email),"url"===e.input&&(e.inputValidator=fa.url))}function ga(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&($('Target parameter is not valid, defaulting to "body"'),e.target="body")}function va(e){ha(e),e.showLoaderOnConfirm&&!e.preConfirm&&$("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),ga(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("
    ")),Je(e)}var ba=new WeakMap,ya=function(){function e(){if(s(this,e),c(this,ba,void 0),"undefined"!=typeof window){Yo=this;for(var t=arguments.length,n=new Array(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};if(bo(Object.assign({},t,e)),z.currentInstance){var n=on.swalPromiseResolve.get(z.currentInstance),o=z.currentInstance.isAwaitingPromise;z.currentInstance._destroy(),o||n({isDismissed:!0}),be()&&rn()}z.currentInstance=Yo;var a=ka(e,t);va(a),Object.freeze(a),z.timeout&&(z.timeout.stop(),delete z.timeout),clearTimeout(z.restoreFocusTimeout);var r=Ca(Yo);return Rt(Yo,a),pt.innerParams.set(Yo,a),xa(Yo,r,a)}},{key:"then",value:function(e){return l(ba,this).then(e)}},{key:"finally",value:function(e){return l(ba,this).finally(e)}}])}(),xa=function(e,t,n){return new Promise((function(o,a){var r=function(t){e.close({isDismissed:!0,dismiss:t})};on.swalPromiseResolve.set(e,o),on.swalPromiseReject.set(e,a),t.confirmButton.onclick=function(){$n(e)},t.denyButton.onclick=function(){_n(e)},t.cancelButton.onclick=function(){Fn(e,r)},t.closeButton.onclick=function(){r(Wt.close)},Po(n,t,r),Yt(z,n,r),Ln(e,n),ua(n),Aa(z,n,r),Ea(t,n),setTimeout((function(){t.container.scrollTop=0}))}))},ka=function(e,t){var n=Qo(e),o=Object.assign({},lo,t,n,e);return o.showClass=Object.assign({},lo.showClass,o.showClass),o.hideClass=Object.assign({},lo.hideClass,o.hideClass),!1===o.animation&&(o.showClass={backdrop:"swal2-noanimation"},o.hideClass={}),o},Ca=function(e){var t={popup:ee(),container:X(),actions:we(),confirmButton:le(),denyButton:ue(),cancelButton:ce(),loader:pe(),closeButton:he(),validationMessage:se(),progressSteps:ie()};return pt.domCache.set(e,t),t},Aa=function(e,t,n){var o=fe();ze(o),t.timer&&(e.timeout=new Xo((function(){n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(Me(o),Ee(o,t,"timerProgressBar"),setTimeout((function(){e.timeout&&e.timeout.running&&$e(t.timer)}))))},Ea=function(e,t){if(!t.toast)return K(t.allowEnterKey)?void(ja(e)||Pa(e,t)||Zt(-1,1)):(W("allowEnterKey"),void Ba())},ja=function(e){var t,n=m(e.popup.querySelectorAll("[autofocus]"));try{for(n.s();!(t=n.n()).done;){var o=t.value;if(o instanceof HTMLElement&&De(o))return o.focus(),!0}}catch(a){n.e(a)}finally{n.f()}return!1},Pa=function(e,t){return t.focusDeny&&De(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&De(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!De(e.confirmButton)||(e.confirmButton.focus(),0))},Ba=function(){document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){var Ta=new Date,La=localStorage.getItem("swal-initiation");La?(Ta.getTime()-Date.parse(La))/864e5>3&&setTimeout((function(){document.body.style.pointerEvents="none";var e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((function(){e.play().catch((function(){}))}),2500)}),500):localStorage.setItem("swal-initiation","".concat(Ta))}ya.prototype.disableButtons=oo,ya.prototype.enableButtons=no,ya.prototype.getInput=Qn,ya.prototype.disableInput=ro,ya.prototype.enableInput=ao,ya.prototype.hideLoading=Xn,ya.prototype.disableLoading=Xn,ya.prototype.showValidationMessage=io,ya.prototype.resetValidationMessage=so,ya.prototype.close=yn,ya.prototype.closePopup=yn,ya.prototype.closeModal=yn,ya.prototype.closeToast=yn,ya.prototype.rejectPromise=kn,ya.prototype.update=yo,ya.prototype._destroy=ko,Object.assign(ya,Go),Object.keys(jo).forEach((function(e){ya[e]=function(){var t;return Yo&&Yo[e]?(t=Yo)[e].apply(t,arguments):null}})),ya.DismissReason=Wt,ya.version="11.12.4";var Sa=ya;return Sa.default=Sa,Sa}(),void 0!==p&&p.Sweetalert2&&(p.swal=p.sweetAlert=p.Swal=p.SweetAlert=p.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}');const _=w($.exports);function F(){s.useEffect((()=>{document.title="Share Account"}),[]);const{data:e,isLoading:t}=v({queryKey:["accounts","share"],refetchInterval:3e5,queryFn:()=>g.getShareAccountList()}),n=e=>{let t={position:"absolute",bottom:"10px",right:"10px",fontSize:"20px",color:"green",opacity:.7};switch(e){case"chatgpt":return t.color="black",u.jsx(h,{icon:"simple-icons:openai",style:t});case"claude":return t.color="rgb(217, 119, 87)",u.jsx(h,{icon:"simple-icons:anthropic",style:t});default:return u.jsx(V,{style:t})}},o=async(e,t,n)=>{window.location=await g.loginFreeAccount({id:e,UniqueName:t,SelectType:n})};return u.jsxs("div",{children:[u.jsxs("div",{style:{maxWidth:1200,margin:"0 auto"},className:"pl-1 pr-1",children:[u.jsxs("div",{children:[u.jsx(b.Title,{level:1,className:"text-center mt-5",children:"本页面中包含一些免费的共享ChatGPT/Claude账号"}),u.jsx(b.Title,{level:3,className:"text-center mt-5",children:"以下链接每个都代表一个ChatGPT账号,点击即可访问。由于是共享的,遇忙可以选择其他的或等待一会。"})]}),t?u.jsx(m,{size:"large",style:{width:"100%",margin:"20px auto"}}):u.jsxs(u.Fragment,{children:[e?.random&&e.accounts.length>0&&u.jsx(z,{justify:"center",className:"mt-10 mb-10",children:u.jsx(R,{onUnlock:()=>{const t=((e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t})(10),n=e?.accounts[Math.floor(Math.random()*e?.accounts?.length)].id;n&&o(n,t,"random")}})}),e?.custom&&u.jsx(y,{gutter:[8,8],className:"mt-10 mb-5",justify:"center",wrap:!0,children:e?.accounts?.map((e=>u.jsx(x,{xs:12,sm:8,md:8,lg:4,xl:4,children:u.jsxs(f,{style:{width:"100%",height:100,fontWeight:700},onClick:()=>(async e=>{await _.fire({title:"设置密码以隔离会话",input:"text",inputLabel:"你的专属密码(6位以上)",showLoaderOnConfirm:!0,showCancelButton:!0,inputValidator:e=>e?e.length<6?"密码长度至少6位":void 0:"你需要输入一个专属的密码",preConfirm:async t=>{await o(e,t,"custom")},allowOutsideClick:()=>!_.isLoading()})})(e.id),children:[e.id,n(e.accountType)]})},e.id)))})]})]}),u.jsx(k.Footer,{children:u.jsx(z,{justify:"center",className:"w-full",children:u.jsx(b.Title,{level:5,children:"Build by PandoraHelper"})})})]})}export{F as default}; diff --git a/frontend/dist/assets/index-ec51f637.js b/frontend/dist/assets/index-ec51f637.js new file mode 100644 index 0000000..6ff7e54 --- /dev/null +++ b/frontend/dist/assets/index-ec51f637.js @@ -0,0 +1 @@ +import{w as e,H as s,F as t,x as a,y as o,z as n}from"./index-8bf8489d.js";const r=e;r.Header=s,r.Footer=t,r.Content=a,r.Sider=o,r._InternalSiderContext=n;const d=r;export{d as L}; diff --git a/frontend/dist/assets/row-b45105b9.js b/frontend/dist/assets/row-b45105b9.js new file mode 100644 index 0000000..2ff4f41 --- /dev/null +++ b/frontend/dist/assets/row-b45105b9.js @@ -0,0 +1 @@ +import{r as e,i as t,m as n,a0 as s,k as r,h as o,cx as l,cy as i}from"./index-8bf8489d.js";const a=e.createContext({}),f=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},c=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:s,gridColumns:r}=e,o={};for(let l=r;l>=0;l--)0===l?(o[`${s}${t}-${l}`]={display:"none"},o[`${s}-push-${l}`]={insetInlineStart:"auto"},o[`${s}-pull-${l}`]={insetInlineEnd:"auto"},o[`${s}${t}-push-${l}`]={insetInlineStart:"auto"},o[`${s}${t}-pull-${l}`]={insetInlineEnd:"auto"},o[`${s}${t}-offset-${l}`]={marginInlineStart:0},o[`${s}${t}-order-${l}`]={order:0}):(o[`${s}${t}-${l}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${l/r*100}%`,maxWidth:l/r*100+"%"}],o[`${s}${t}-push-${l}`]={insetInlineStart:l/r*100+"%"},o[`${s}${t}-pull-${l}`]={insetInlineEnd:l/r*100+"%"},o[`${s}${t}-offset-${l}`]={marginInlineStart:l/r*100+"%"},o[`${s}${t}-order-${l}`]={order:l});return o[`${s}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o})(e,t),p=t("Grid",(e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}}),(()=>({}))),u=t("Grid",(e=>{const t=n(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[f(t),c(t,""),c(t,"-xs"),Object.keys(r).map((e=>((e,t,n)=>({[`@media (min-width: ${s(t)})`]:Object.assign({},c(e,n))}))(t,r[e],e))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{})]}),(()=>({})));var $=globalThis&&globalThis.__rest||function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:s,direction:l}=e.useContext(r),{gutter:i,wrap:f}=e.useContext(a),{prefixCls:c,span:p,order:x,offset:m,push:g,pull:b,className:h,children:j,flex:O,style:v}=t,w=$(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=s("col",c),[S,I,E]=u(C),P={};let M={};y.forEach((e=>{let n={};const s=t[e];"number"==typeof s?n.span=s:"object"==typeof s&&(n=s||{}),delete w[e],M=Object.assign(Object.assign({},M),{[`${C}-${e}-${n.span}`]:void 0!==n.span,[`${C}-${e}-order-${n.order}`]:n.order||0===n.order,[`${C}-${e}-offset-${n.offset}`]:n.offset||0===n.offset,[`${C}-${e}-push-${n.push}`]:n.push||0===n.push,[`${C}-${e}-pull-${n.pull}`]:n.pull||0===n.pull,[`${C}-rtl`]:"rtl"===l}),n.flex&&(M[`${C}-${e}-flex`]=!0,P[`--${C}-${e}-flex`]=d(n.flex))}));const N=o(C,{[`${C}-${p}`]:void 0!==p,[`${C}-order-${x}`]:x,[`${C}-offset-${m}`]:m,[`${C}-push-${g}`]:g,[`${C}-pull-${b}`]:b},h,M,I,E),A={};if(i&&i[0]>0){const e=i[0]/2;A.paddingLeft=e,A.paddingRight=e}return O&&(A.flex=d(O),!1!==f||A.minWidth||(A.minWidth=0)),S(e.createElement("div",Object.assign({},w,{style:Object.assign(Object.assign(Object.assign({},A),v),P),className:N,ref:n}),j))}));var m=globalThis&&globalThis.__rest||function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r{(()=>{if("string"==typeof t&&r(t),"object"==typeof t)for(let e=0;e{const{prefixCls:s,justify:f,align:c,className:u,style:$,children:d,gutter:y=0,wrap:x}=t,b=m(t,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:h,direction:j}=e.useContext(r),[O,v]=e.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[w,C]=e.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=g(c,w),I=g(f,w),E=e.useRef(y),P=l();e.useEffect((()=>{const e=P.subscribe((e=>{C(e);const t=E.current||0;(!Array.isArray(t)&&"object"==typeof t||Array.isArray(t)&&("object"==typeof t[0]||"object"==typeof t[1]))&&v(e)}));return()=>P.unsubscribe(e)}),[]);const M=h("row",s),[N,A,R]=p(M),W=(()=>{const e=[void 0,void 0];return(Array.isArray(y)?y:[y,void 0]).forEach(((t,n)=>{if("object"==typeof t)for(let s=0;s0?W[0]/-2:void 0;G&&(L.marginLeft=G,L.marginRight=G);const[T,_]=W;L.rowGap=_;const X=e.useMemo((()=>({gutter:[T,_],wrap:x})),[T,_,x]);return N(e.createElement(a.Provider,{value:X},e.createElement("div",Object.assign({},b,{className:k,style:Object.assign(Object.assign({},L),$),ref:n}),d)))}));export{x as C,b as R}; diff --git a/frontend/dist/assets/useQuery-e775fa21.js b/frontend/dist/assets/useQuery-e775fa21.js new file mode 100644 index 0000000..4b0d3b8 --- /dev/null +++ b/frontend/dist/assets/useQuery-e775fa21.js @@ -0,0 +1 @@ +import{cj as t,ck as e,cl as s,cm as r,cn as i,co as n,cp as u,cq as o,cr as a,cs as c,ct as l,r as h,cu as d,a4 as p,cv as f,cw as y}from"./index-8bf8489d.js";class R extends t{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),v(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return m(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return m(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,s){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),e(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const n=this.hasListeners();n&&b(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(s),!n||this.currentQuery===i&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.updateStaleTimeout();const u=this.computeRefetchInterval();!n||this.currentQuery===i&&this.options.enabled===r.enabled&&u===this.currentRefetchInterval||this.updateRefetchInterval(u)}getOptimisticResult(t){const s=this.client.getQueryCache().build(this.client,t),r=this.createResult(s,t);return function(t,s,r){if(r.keepPreviousData)return!1;if(void 0!==r.placeholderData)return s.isPlaceholderData;if(!e(t.getCurrentResult(),s))return!0;return!1}(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const e={};return Object.keys(t).forEach((s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),t[s])})})),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){const e=this.client.defaultQueryOptions(t),s=this.client.getQueryCache().build(this.client,e);return s.isFetchingOptimistic=!0,s.fetch().then((()=>this.createResult(s,e)))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(s)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),r||this.currentResult.isStale||!i(this.options.staleTime))return;const t=n(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),t)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!r&&!1!==this.options.enabled&&i(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||u.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){const s=this.currentQuery,r=this.options,i=this.currentResult,n=this.currentResultState,u=this.currentResultOptions,c=t!==s,l=c?t.state:this.currentQueryInitialState,h=c?this.currentResult:this.previousQueryResult,{state:d}=t;let p,{dataUpdatedAt:f,error:y,errorUpdatedAt:R,fetchStatus:m,status:S}=d,g=!1,I=!1;if(e._optimisticResults){const i=this.hasListeners(),n=!i&&v(t,e),u=i&&b(t,s,e,r);(n||u)&&(m=o(t.options.networkMode)?"fetching":"paused",f||(S="loading")),"isRestoring"===e._optimisticResults&&(m="idle")}if(e.keepPreviousData&&!d.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==S)p=h.data,f=h.dataUpdatedAt,S=h.status,g=!0;else if(e.select&&void 0!==d.data)if(i&&d.data===(null==n?void 0:n.data)&&e.select===this.selectFn)p=this.selectResult;else try{this.selectFn=e.select,p=e.select(d.data),p=a(null==i?void 0:i.data,p,e),this.selectResult=p,this.selectError=null}catch(T){this.selectError=T}else p=d.data;if(void 0!==e.placeholderData&&void 0===p&&"loading"===S){let t;if(null!=i&&i.isPlaceholderData&&e.placeholderData===(null==u?void 0:u.placeholderData))t=i.data;else if(t="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.selectError=null}catch(T){this.selectError=T}void 0!==t&&(S="success",p=a(null==i?void 0:i.data,t,e),I=!0)}this.selectError&&(y=this.selectError,p=this.selectResult,R=Date.now(),S="error");const C="fetching"===m,O="loading"===S,E="error"===S;return{status:S,fetchStatus:m,isLoading:O,isSuccess:"success"===S,isError:E,isInitialLoading:O&&C,data:p,dataUpdatedAt:f,error:y,errorUpdatedAt:R,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:C,isRefetching:C&&!O,isLoadingError:E&&0===d.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:I,isPreviousData:g,isRefetchError:E&&0!==d.dataUpdatedAt,isStale:Q(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){const s=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,e(r,s))return;this.currentResult=r;const i={cache:!0};!1!==(null==t?void 0:t.listeners)&&(()=>{if(!s)return!0;const{notifyOnChangeProps:t}=this.options,e="function"==typeof t?t():t;if("all"===e||!e&&!this.trackedProps.size)return!0;const r=new Set(null!=e?e:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((t=>{const e=t;return this.currentResult[e]!==s[e]&&r.has(e)}))})()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||c(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){l.batch((()=>{var e,s,r,i;if(t.onSuccess)null==(e=(s=this.options).onSuccess)||e.call(s,this.currentResult.data),null==(r=(i=this.options).onSettled)||r.call(i,this.currentResult.data,null);else if(t.onError){var n,u,o,a;null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(o=(a=this.options).onSettled)||o.call(a,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach((({listener:t})=>{t(this.currentResult)})),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function v(t,e){return function(t,e){return!(!1===e.enabled||t.state.dataUpdatedAt||"error"===t.state.status&&!1===e.retryOnMount)}(t,e)||t.state.dataUpdatedAt>0&&m(t,e,e.refetchOnMount)}function m(t,e,s){if(!1!==e.enabled){const r="function"==typeof s?s(t):s;return"always"===r||!1!==r&&Q(t,e)}return!1}function b(t,e,s,r){return!1!==s.enabled&&(t!==e||!1===r.enabled)&&(!s.suspense||"error"!==t.state.status)&&Q(t,s)}function Q(t,e){return t.isStaleByTime(e.staleTime)}const S=h.createContext(!1),g=()=>h.useContext(S);S.Provider;const I=h.createContext(function(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}()),C=()=>h.useContext(I),O=(t,e)=>{(t.suspense||t.useErrorBoundary)&&(e.isReset()||(t.retryOnMount=!1))},E=t=>{h.useEffect((()=>{t.clearReset()}),[t])},T=({result:t,errorResetBoundary:e,useErrorBoundary:s,query:r})=>t.isError&&!e.isReset()&&!t.isFetching&&d(s,[t.error,r]),U=t=>{t.suspense&&"number"!=typeof t.staleTime&&(t.staleTime=1e3)},F=(t,e,s)=>(null==t?void 0:t.suspense)&&((t,e)=>t.isLoading&&t.isFetching&&!e)(e,s),P=(t,e,s)=>e.fetchOptimistic(t).then((({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)})).catch((e=>{s.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)}));function w(t,e,s){return function(t,e){const s=p({context:t.context}),r=g(),i=C(),n=s.defaultQueryOptions(t);n._optimisticResults=r?"isRestoring":"optimistic",n.onError&&(n.onError=l.batchCalls(n.onError)),n.onSuccess&&(n.onSuccess=l.batchCalls(n.onSuccess)),n.onSettled&&(n.onSettled=l.batchCalls(n.onSettled)),U(n),O(n,i),E(i);const[u]=h.useState((()=>new e(s,n))),o=u.getOptimisticResult(n);if(f(h.useCallback((t=>{const e=r?()=>{}:u.subscribe(l.batchCalls(t));return u.updateResult(),e}),[u,r]),(()=>u.getCurrentResult()),(()=>u.getCurrentResult())),h.useEffect((()=>{u.setOptions(n,{listeners:!1})}),[n,u]),F(n,o,r))throw P(n,u,i);if(T({result:o,errorResetBoundary:i,useErrorBoundary:n.useErrorBoundary,query:u.getCurrentQuery()}))throw o.error;return n.notifyOnChangeProps?o:u.trackResult(o)}(y(t,e,s),R)}export{w as u}; diff --git a/frontend/dist/index.html b/frontend/dist/index.html index e70a815..91c498d 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -5,7 +5,7 @@ Slash Admin - + diff --git a/frontend/src/api/apiClient.ts b/frontend/src/api/apiClient.ts index 537dc2c..ce3353e 100644 --- a/frontend/src/api/apiClient.ts +++ b/frontend/src/api/apiClient.ts @@ -52,7 +52,7 @@ axiosInstance.interceptors.response.use( // Token失效,移除Token并跳转到登录页 Message.error("登录失效", 5); removeItem(StorageEnum.Token); - window.location.href = '#/login' + window.location.href = '/admin/login'; } let errMsg = ''; try { diff --git a/frontend/src/pages/token/account/chatgpt.tsx b/frontend/src/pages/token/account/chatgpt.tsx index 27d2037..1db8e71 100644 --- a/frontend/src/pages/token/account/chatgpt.tsx +++ b/frontend/src/pages/token/account/chatgpt.tsx @@ -214,7 +214,7 @@ export default function AccountPage() { icon={} onClick={() => navigate({ - pathname: '/token/share/chatgpt', + pathname: '/admin/share/chatgpt', search: `?email=${record.email}`, }) } diff --git a/frontend/src/pages/token/account/claude.tsx b/frontend/src/pages/token/account/claude.tsx index 62e6208..e3cfd64 100644 --- a/frontend/src/pages/token/account/claude.tsx +++ b/frontend/src/pages/token/account/claude.tsx @@ -181,7 +181,7 @@ export default function AccountPage() { icon={} onClick={() => navigate({ - pathname: '/token/share/claude', + pathname: '/admin/share/claude', search: `?email=${record.email}`, }) } diff --git a/frontend/src/router/index.tsx b/frontend/src/router/index.tsx index fa56708..5f1b211 100644 --- a/frontend/src/router/index.tsx +++ b/frontend/src/router/index.tsx @@ -25,8 +25,9 @@ const ExternalShareRoute: AppRouteObject = { export default function Router() { const permissionRoutes = usePermissionRoutes(); + const asyncRoutes: AppRouteObject = { - path: '/', + path: '/admin', element: ( diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 383008c..55c8a82 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -9,7 +9,7 @@ import { inspectorServer } from '@react-dev-inspector/vite-plugin' // https://vitejs.dev/config/ export default defineConfig({ - base: '/admin/', + base: '/admin', esbuild: { // drop: ['console', 'debugger'], }, diff --git a/internal/service/account.go b/internal/service/account.go index e6a3768..3fd0778 100644 --- a/internal/service/account.go +++ b/internal/service/account.go @@ -50,10 +50,14 @@ func (s *accountService) LoginShareAccount(ctx *gin.Context, req *v1.LoginShareA } if account.AccountType == "chatgpt" || account.AccountType == "" { share := &model.Share{ - AccountID: account.ID, - UniqueName: req.UniqueName, - TemporaryChat: req.SelectType == "random", - ShareType: account.AccountType, + AccountID: account.ID, + UniqueName: req.UniqueName, + TemporaryChat: req.SelectType == "random", + ExpiresIn: 60 * 60 * 24, + Gpt35Limit: -1, + Gpt4Limit: -1, + ShareType: account.AccountType, + ShowConversations: true, } token, err := s.coordinator.ShareSvc.GetShareTokenByAccessToken(ctx, account.AccessToken, share, true) if err != nil { @@ -66,7 +70,7 @@ func (s *accountService) LoginShareAccount(ctx *gin.Context, req *v1.LoginShareA url, err := s.coordinator.ShareSvc.GetOauthLoginUrl(ctx, &model.Share{ AccountID: account.ID, UniqueName: req.UniqueName, - ExpiresIn: 1000 * 60 * 60 * 24, + ExpiresIn: 60 * 60 * 24, ShareType: account.AccountType, }) if err != nil {