@scalant/career-hub 4.0.8-alpha.0 → 4.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var Zo=Object.defineProperty,ei=Object.defineProperties;var ti=Object.getOwnPropertyDescriptors;var oo=Object.getOwnPropertySymbols;var ni=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable;var io=(er,tr,C)=>tr in er?Zo(er,tr,{enumerable:!0,configurable:!0,writable:!0,value:C}):er[tr]=C,Hn=(er,tr)=>{for(var C in tr||(tr={}))ni.call(tr,C)&&io(er,C,tr[C]);if(oo)for(var C of oo(tr))ri.call(tr,C)&&io(er,C,tr[C]);return er},br=(er,tr)=>ei(er,ti(tr));var sr=(er,tr,C)=>new Promise(($,V)=>{var F=ee=>{try{J(C.next(ee))}catch(te){V(te)}},K=ee=>{try{J(C.throw(ee))}catch(te){V(te)}},J=ee=>ee.done?$(ee.value):Promise.resolve(ee.value).then(F,K);J((C=C.apply(er,tr)).next())});(function(er,tr){typeof exports=="object"&&typeof module!="undefined"?tr(exports,require("react"),require("react-redux"),require("@reduxjs/toolkit"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-redux","@reduxjs/toolkit","react-dom"],tr):(er=typeof globalThis!="undefined"?globalThis:er||self,tr(er.CareerHub={},er.React,er.ReactRedux,er.ReduxToolkit,er.ReactDOM))})(this,function(exports,React,reactRedux,toolkit,ReactDOM){var er,tr;"use strict";function _interopNamespaceDefault(C){const $=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(C){for(const V in C)if(V!=="default"){const F=Object.getOwnPropertyDescriptor(C,V);Object.defineProperty($,V,F.get?F:{enumerable:!0,get:()=>C[V]})}}return $.default=C,Object.freeze($)}const React__namespace=_interopNamespaceDefault(React),ReactDOM__namespace=_interopNamespaceDefault(ReactDOM);var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(C){return C&&C.__esModule&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C}function getAugmentedNamespace(C){if(C.__esModule)return C;var $=C.default;if(typeof $=="function"){var V=function F(){return this instanceof F?Reflect.construct($,arguments,this.constructor):$.apply(this,arguments)};V.prototype=$.prototype}else V={};return Object.defineProperty(V,"__esModule",{value:!0}),Object.keys(C).forEach(function(F){var K=Object.getOwnPropertyDescriptor(C,F);Object.defineProperty(V,F,K.get?K:{enumerable:!0,get:function(){return C[F]}})}),V}var propTypes={exports:{}},reactIs$1={exports:{}},reactIs_production_min$1={};/** @license React v16.13.1
1
+ var Zo=Object.defineProperty,ei=Object.defineProperties;var ti=Object.getOwnPropertyDescriptors;var oo=Object.getOwnPropertySymbols;var ni=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable;var io=(er,tr,C)=>tr in er?Zo(er,tr,{enumerable:!0,configurable:!0,writable:!0,value:C}):er[tr]=C,zn=(er,tr)=>{for(var C in tr||(tr={}))ni.call(tr,C)&&io(er,C,tr[C]);if(oo)for(var C of oo(tr))ri.call(tr,C)&&io(er,C,tr[C]);return er},gr=(er,tr)=>ei(er,ti(tr));var sr=(er,tr,C)=>new Promise(($,V)=>{var F=ee=>{try{J(C.next(ee))}catch(te){V(te)}},K=ee=>{try{J(C.throw(ee))}catch(te){V(te)}},J=ee=>ee.done?$(ee.value):Promise.resolve(ee.value).then(F,K);J((C=C.apply(er,tr)).next())});(function(er,tr){typeof exports=="object"&&typeof module!="undefined"?tr(exports,require("react"),require("react-redux"),require("@reduxjs/toolkit"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-redux","@reduxjs/toolkit","react-dom"],tr):(er=typeof globalThis!="undefined"?globalThis:er||self,tr(er.CareerHub={},er.React,er.ReactRedux,er.ReduxToolkit,er.ReactDOM))})(this,function(exports,React,reactRedux,toolkit,ReactDOM){var er,tr;"use strict";function _interopNamespaceDefault(C){const $=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(C){for(const V in C)if(V!=="default"){const F=Object.getOwnPropertyDescriptor(C,V);Object.defineProperty($,V,F.get?F:{enumerable:!0,get:()=>C[V]})}}return $.default=C,Object.freeze($)}const React__namespace=_interopNamespaceDefault(React),ReactDOM__namespace=_interopNamespaceDefault(ReactDOM);var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(C){return C&&C.__esModule&&Object.prototype.hasOwnProperty.call(C,"default")?C.default:C}function getAugmentedNamespace(C){if(C.__esModule)return C;var $=C.default;if(typeof $=="function"){var V=function F(){return this instanceof F?Reflect.construct($,arguments,this.constructor):$.apply(this,arguments)};V.prototype=$.prototype}else V={};return Object.defineProperty(V,"__esModule",{value:!0}),Object.keys(C).forEach(function(F){var K=Object.getOwnPropertyDescriptor(C,F);Object.defineProperty(V,F,K.get?K:{enumerable:!0,get:function(){return C[F]}})}),V}var propTypes={exports:{}},reactIs$1={exports:{}},reactIs_production_min$1={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -201,7 +201,7 @@ html body {
201
201
  `]:Object.assign({},genSkeletonColor(C))}}},prepareComponentToken$s=C=>{const{colorFillContent:$,colorFill:V}=C,F=$,K=V;return{color:F,colorGradientEnd:K,gradientFromColor:F,gradientToColor:K,titleHeight:C.controlHeight/2,blockRadius:C.borderRadiusSM,paragraphMarginTop:C.marginLG+C.marginXXS,paragraphLiHeight:C.controlHeight/2}},useStyle$x=genStyleHooks("Skeleton",C=>{const{componentCls:$,calc:V}=C,F=merge(C,{skeletonAvatarCls:`${$}-avatar`,skeletonTitleCls:`${$}-title`,skeletonParagraphCls:`${$}-paragraph`,skeletonButtonCls:`${$}-button`,skeletonInputCls:`${$}-input`,skeletonImageCls:`${$}-image`,imageSizeBase:V(C.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${C.gradientFromColor} 25%, ${C.gradientToColor} 37%, ${C.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[genBaseStyle$9(F)]},prepareComponentToken$s,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),SkeletonAvatar=C=>{const{prefixCls:$,className:V,rootClassName:F,active:K,shape:J="circle",size:ee="default"}=C,{getPrefixCls:te}=React__namespace.useContext(ConfigContext),ne=te("skeleton",$),[re,ae,oe]=useStyle$x(ne),ie=omit(C,["prefixCls","className"]),se=classNames(ne,`${ne}-element`,{[`${ne}-active`]:K},V,F,ae,oe);return re(React__namespace.createElement("div",{className:se},React__namespace.createElement(Element$2,Object.assign({prefixCls:`${ne}-avatar`,shape:J,size:ee},ie))))},SkeletonAvatar$1=SkeletonAvatar,SkeletonButton=C=>{const{prefixCls:$,className:V,rootClassName:F,active:K,block:J=!1,size:ee="default"}=C,{getPrefixCls:te}=React__namespace.useContext(ConfigContext),ne=te("skeleton",$),[re,ae,oe]=useStyle$x(ne),ie=omit(C,["prefixCls"]),se=classNames(ne,`${ne}-element`,{[`${ne}-active`]:K,[`${ne}-block`]:J},V,F,ae,oe);return re(React__namespace.createElement("div",{className:se},React__namespace.createElement(Element$2,Object.assign({prefixCls:`${ne}-button`,size:ee},ie))))},SkeletonButton$1=SkeletonButton,path="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",SkeletonImage=C=>{const{prefixCls:$,className:V,rootClassName:F,style:K,active:J}=C,{getPrefixCls:ee}=React__namespace.useContext(ConfigContext),te=ee("skeleton",$),[ne,re,ae]=useStyle$x(te),oe=classNames(te,`${te}-element`,{[`${te}-active`]:J},V,F,re,ae);return ne(React__namespace.createElement("div",{className:oe},React__namespace.createElement("div",{className:classNames(`${te}-image`,V),style:K},React__namespace.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${te}-image-svg`},React__namespace.createElement("title",null,"Image placeholder"),React__namespace.createElement("path",{d:path,className:`${te}-image-path`})))))},SkeletonImage$1=SkeletonImage,SkeletonInput=C=>{const{prefixCls:$,className:V,rootClassName:F,active:K,block:J,size:ee="default"}=C,{getPrefixCls:te}=React__namespace.useContext(ConfigContext),ne=te("skeleton",$),[re,ae,oe]=useStyle$x(ne),ie=omit(C,["prefixCls"]),se=classNames(ne,`${ne}-element`,{[`${ne}-active`]:K,[`${ne}-block`]:J},V,F,ae,oe);return re(React__namespace.createElement("div",{className:se},React__namespace.createElement(Element$2,Object.assign({prefixCls:`${ne}-input`,size:ee},ie))))},SkeletonInput$1=SkeletonInput,SkeletonNode=C=>{const{prefixCls:$,className:V,rootClassName:F,style:K,active:J,children:ee}=C,{getPrefixCls:te}=React__namespace.useContext(ConfigContext),ne=te("skeleton",$),[re,ae,oe]=useStyle$x(ne),ie=classNames(ne,`${ne}-element`,{[`${ne}-active`]:J},ae,V,F,oe);return re(React__namespace.createElement("div",{className:ie},React__namespace.createElement("div",{className:classNames(`${ne}-image`,V),style:K},ee)))},SkeletonNode$1=SkeletonNode,getWidth$1=(C,$)=>{const{width:V,rows:F=2}=$;if(Array.isArray(V))return V[C];if(F-1===C)return V},Paragraph$2=C=>{const{prefixCls:$,className:V,style:F,rows:K=0}=C,J=Array.from({length:K}).map((ee,te)=>React__namespace.createElement("li",{key:te,style:{width:getWidth$1(te,C)}}));return React__namespace.createElement("ul",{className:classNames($,V),style:F},J)},Paragraph$3=Paragraph$2,Title$4=C=>{let{prefixCls:$,className:V,width:F,style:K}=C;return React__namespace.createElement("h3",{className:classNames($,V),style:Object.assign({width:F},K)})},Title$5=Title$4;function getComponentProps(C){return C&&typeof C=="object"?C:{}}function getAvatarBasicProps(C,$){return C&&!$?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function getTitleBasicProps(C,$){return!C&&$?{width:"38%"}:C&&$?{width:"50%"}:{}}function getParagraphBasicProps(C,$){const V={};return(!C||!$)&&(V.width="61%"),!C&&$?V.rows=3:V.rows=2,V}const Skeleton=C=>{const{prefixCls:$,loading:V,className:F,rootClassName:K,style:J,children:ee,avatar:te=!1,title:ne=!0,paragraph:re=!0,active:ae,round:oe}=C,{getPrefixCls:ie,direction:se,className:ce,style:de}=useComponentConfig("skeleton"),le=ie("skeleton",$),[ve,fe,he]=useStyle$x(le);if(V||!("loading"in C)){const me=!!te,ue=!!ne,pe=!!re;let ye;if(me){const _e=Object.assign(Object.assign({prefixCls:`${le}-avatar`},getAvatarBasicProps(ue,pe)),getComponentProps(te));ye=React__namespace.createElement("div",{className:`${le}-header`},React__namespace.createElement(Element$2,Object.assign({},_e)))}let be;if(ue||pe){let _e;if(ue){const Ee=Object.assign(Object.assign({prefixCls:`${le}-title`},getTitleBasicProps(me,pe)),getComponentProps(ne));_e=React__namespace.createElement(Title$5,Object.assign({},Ee))}let Se;if(pe){const Ee=Object.assign(Object.assign({prefixCls:`${le}-paragraph`},getParagraphBasicProps(me,ue)),getComponentProps(re));Se=React__namespace.createElement(Paragraph$3,Object.assign({},Ee))}be=React__namespace.createElement("div",{className:`${le}-content`},_e,Se)}const ge=classNames(le,{[`${le}-with-avatar`]:me,[`${le}-active`]:ae,[`${le}-rtl`]:se==="rtl",[`${le}-round`]:oe},ce,F,K,fe,he);return ve(React__namespace.createElement("div",{className:ge,style:Object.assign(Object.assign({},de),J)},ye,be))}return ee!=null?ee:null};Skeleton.Button=SkeletonButton$1,Skeleton.Avatar=SkeletonAvatar$1,Skeleton.Input=SkeletonInput$1,Skeleton.Image=SkeletonImage$1,Skeleton.Node=SkeletonNode$1,process.env.NODE_ENV!=="production"&&(Skeleton.displayName="Skeleton");const Skeleton$1=Skeleton;function voidFunc(){}const WatermarkContext=React__namespace.createContext({add:voidFunc,remove:voidFunc});function usePanelRef(C){const $=React__namespace.useContext(WatermarkContext),V=React__namespace.useRef(null);return useEvent(K=>{if(K){const J=C?K.querySelector(C):K;$.add(J),V.current=J}else $.remove(V.current)})}const NormalCancelBtn=()=>{const{cancelButtonProps:C,cancelTextLocale:$,onCancel:V}=React.useContext(ModalContext);return React.createElement(Button$2,Object.assign({onClick:V},C),$)},NormalCancelBtn$1=NormalCancelBtn,NormalOkBtn=()=>{const{confirmLoading:C,okButtonProps:$,okType:V,okTextLocale:F,onOk:K}=React.useContext(ModalContext);return React.createElement(Button$2,Object.assign({},convertLegacyProps(V),{loading:C,onClick:K},$),F)},NormalOkBtn$1=NormalOkBtn;function renderCloseIcon(C,$){return React.createElement("span",{className:`${C}-close-x`},$||React.createElement(CloseOutlined$1,{className:`${C}-close-icon`}))}const Footer$5=C=>{const{okText:$,okType:V="primary",cancelText:F,confirmLoading:K,onOk:J,onCancel:ee,okButtonProps:te,cancelButtonProps:ne,footer:re}=C,[ae]=useLocale$1("Modal",getConfirmLocale()),oe=$||(ae==null?void 0:ae.okText),ie=F||(ae==null?void 0:ae.cancelText),se={confirmLoading:K,okButtonProps:te,cancelButtonProps:ne,okTextLocale:oe,cancelTextLocale:ie,okType:V,onOk:J,onCancel:ee},ce=React.useMemo(()=>se,_toConsumableArray(Object.values(se)));let de;return typeof re=="function"||typeof re=="undefined"?(de=React.createElement(React.Fragment,null,React.createElement(NormalCancelBtn$1,null),React.createElement(NormalOkBtn$1,null)),typeof re=="function"&&(de=re(de,{OkBtn:NormalOkBtn$1,CancelBtn:NormalCancelBtn$1})),de=React.createElement(ModalContextProvider,{value:ce},de)):de=re,React.createElement(DisabledContextProvider,{disabled:!1},de)},genGridRowStyle=C=>{const{componentCls:$}=C;return{[$]:{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"}}}},genGridColStyle=C=>{const{componentCls:$}=C;return{[$]:{position:"relative",maxWidth:"100%",minHeight:1}}},genLoopGridColumnsStyle=(C,$)=>{const{prefixCls:V,componentCls:F,gridColumns:K}=C,J={};for(let ee=K;ee>=0;ee--)ee===0?(J[`${F}${$}-${ee}`]={display:"none"},J[`${F}-push-${ee}`]={insetInlineStart:"auto"},J[`${F}-pull-${ee}`]={insetInlineEnd:"auto"},J[`${F}${$}-push-${ee}`]={insetInlineStart:"auto"},J[`${F}${$}-pull-${ee}`]={insetInlineEnd:"auto"},J[`${F}${$}-offset-${ee}`]={marginInlineStart:0},J[`${F}${$}-order-${ee}`]={order:0}):(J[`${F}${$}-${ee}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${ee/K*100}%`,maxWidth:`${ee/K*100}%`}],J[`${F}${$}-push-${ee}`]={insetInlineStart:`${ee/K*100}%`},J[`${F}${$}-pull-${ee}`]={insetInlineEnd:`${ee/K*100}%`},J[`${F}${$}-offset-${ee}`]={marginInlineStart:`${ee/K*100}%`},J[`${F}${$}-order-${ee}`]={order:ee});return J[`${F}${$}-flex`]={flex:`var(--${V}${$}-flex)`},J},genGridStyle=(C,$)=>genLoopGridColumnsStyle(C,$),genGridMediaStyle=(C,$,V)=>({[`@media (min-width: ${unit$1($)})`]:Object.assign({},genGridStyle(C,V))}),prepareRowComponentToken=()=>({}),prepareColComponentToken=()=>({}),useRowStyle=genStyleHooks("Grid",genGridRowStyle,prepareRowComponentToken),getMediaSize=C=>({xs:C.screenXSMin,sm:C.screenSMMin,md:C.screenMDMin,lg:C.screenLGMin,xl:C.screenXLMin,xxl:C.screenXXLMin}),useColStyle=genStyleHooks("Grid",C=>{const $=merge(C,{gridColumns:24}),V=getMediaSize($);return delete V.xs,[genGridColStyle($),genGridStyle($,""),genGridStyle($,"-xs"),Object.keys(V).map(F=>genGridMediaStyle($,V[F],`-${F}`)).reduce((F,K)=>Object.assign(Object.assign({},F),K),{})]},prepareColComponentToken);function box(C){return{position:C,inset:0}}const genModalMaskStyle=C=>{const{componentCls:$,antCls:V}=C;return[{[`${$}-root`]:{[`${$}${V}-zoom-enter, ${$}${V}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:C.motionDurationSlow,userSelect:"none"},[`${$}${V}-zoom-leave ${$}-content`]:{pointerEvents:"none"},[`${$}-mask`]:Object.assign(Object.assign({},box("fixed")),{zIndex:C.zIndexPopupBase,height:"100%",backgroundColor:C.colorBgMask,pointerEvents:"none",[`${$}-hidden`]:{display:"none"}}),[`${$}-wrap`]:Object.assign(Object.assign({},box("fixed")),{zIndex:C.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${$}-root`]:initFadeMotion(C)}]},genModalStyle=C=>{const{componentCls:$}=C;return[{[`${$}-root`]:{[`${$}-wrap-rtl`]:{direction:"rtl"},[`${$}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[$]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${C.screenSMMax}px)`]:{[$]:{maxWidth:"calc(100vw - 16px)",margin:`${unit$1(C.marginXS)} auto`},[`${$}-centered`]:{[$]:{flex:1}}}}},{[$]:Object.assign(Object.assign({},resetComponent(C)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${unit$1(C.calc(C.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:C.paddingLG,[`${$}-title`]:{margin:0,color:C.titleColor,fontWeight:C.fontWeightStrong,fontSize:C.titleFontSize,lineHeight:C.titleLineHeight,wordWrap:"break-word"},[`${$}-content`]:{position:"relative",backgroundColor:C.contentBg,backgroundClip:"padding-box",border:0,borderRadius:C.borderRadiusLG,boxShadow:C.boxShadow,pointerEvents:"auto",padding:C.contentPadding},[`${$}-close`]:Object.assign({position:"absolute",top:C.calc(C.modalHeaderHeight).sub(C.modalCloseBtnSize).div(2).equal(),insetInlineEnd:C.calc(C.modalHeaderHeight).sub(C.modalCloseBtnSize).div(2).equal(),zIndex:C.calc(C.zIndexPopupBase).add(10).equal(),padding:0,color:C.modalCloseIconColor,fontWeight:C.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:C.borderRadiusSM,width:C.modalCloseBtnSize,height:C.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${C.motionDurationMid}, background-color ${C.motionDurationMid}`,"&-x":{display:"flex",fontSize:C.fontSizeLG,fontStyle:"normal",lineHeight:unit$1(C.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:C.modalCloseIconHoverColor,backgroundColor:C.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:C.colorBgTextActive}},genFocusStyle(C)),[`${$}-header`]:{color:C.colorText,background:C.headerBg,borderRadius:`${unit$1(C.borderRadiusLG)} ${unit$1(C.borderRadiusLG)} 0 0`,marginBottom:C.headerMarginBottom,padding:C.headerPadding,borderBottom:C.headerBorderBottom},[`${$}-body`]:{fontSize:C.fontSize,lineHeight:C.lineHeight,wordWrap:"break-word",padding:C.bodyPadding,[`${$}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${unit$1(C.margin)} auto`}},[`${$}-footer`]:{textAlign:"end",background:C.footerBg,marginTop:C.footerMarginTop,padding:C.footerPadding,borderTop:C.footerBorderTop,borderRadius:C.footerBorderRadius,[`> ${C.antCls}-btn + ${C.antCls}-btn`]:{marginInlineStart:C.marginXS}},[`${$}-open`]:{overflow:"hidden"}})},{[`${$}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${$}-content,
202
202
  ${$}-body,
203
203
  ${$}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${$}-confirm-body`]:{marginBottom:"auto"}}}]},genRTLStyle=C=>{const{componentCls:$}=C;return{[`${$}-root`]:{[`${$}-wrap-rtl`]:{direction:"rtl",[`${$}-confirm-body`]:{direction:"rtl"}}}}},genResponsiveWidthStyle=C=>{const{componentCls:$}=C,V=getMediaSize(C);delete V.xs;const F=Object.keys(V).map(K=>({[`@media (min-width: ${unit$1(V[K])})`]:{width:`var(--${$.replace(".","")}-${K}-width)`}}));return{[`${$}-root`]:{[$]:[{width:`var(--${$.replace(".","")}-xs-width)`}].concat(_toConsumableArray(F))}}},prepareToken$3=C=>{const $=C.padding,V=C.fontSizeHeading5,F=C.lineHeightHeading5;return merge(C,{modalHeaderHeight:C.calc(C.calc(F).mul(V).equal()).add(C.calc($).mul(2).equal()).equal(),modalFooterBorderColorSplit:C.colorSplit,modalFooterBorderStyle:C.lineType,modalFooterBorderWidth:C.lineWidth,modalCloseIconColor:C.colorIcon,modalCloseIconHoverColor:C.colorIconHover,modalCloseBtnSize:C.controlHeight,modalConfirmIconSize:C.fontHeight,modalTitleHeight:C.calc(C.titleFontSize).mul(C.titleLineHeight).equal()})},prepareComponentToken$r=C=>({footerBg:"transparent",headerBg:C.colorBgElevated,titleLineHeight:C.lineHeightHeading5,titleFontSize:C.fontSizeHeading5,contentBg:C.colorBgElevated,titleColor:C.colorTextHeading,contentPadding:C.wireframe?0:`${unit$1(C.paddingMD)} ${unit$1(C.paddingContentHorizontalLG)}`,headerPadding:C.wireframe?`${unit$1(C.padding)} ${unit$1(C.paddingLG)}`:0,headerBorderBottom:C.wireframe?`${unit$1(C.lineWidth)} ${C.lineType} ${C.colorSplit}`:"none",headerMarginBottom:C.wireframe?0:C.marginXS,bodyPadding:C.wireframe?C.paddingLG:0,footerPadding:C.wireframe?`${unit$1(C.paddingXS)} ${unit$1(C.padding)}`:0,footerBorderTop:C.wireframe?`${unit$1(C.lineWidth)} ${C.lineType} ${C.colorSplit}`:"none",footerBorderRadius:C.wireframe?`0 0 ${unit$1(C.borderRadiusLG)} ${unit$1(C.borderRadiusLG)}`:0,footerMarginTop:C.wireframe?0:C.marginSM,confirmBodyPadding:C.wireframe?`${unit$1(C.padding*2)} ${unit$1(C.padding*2)} ${unit$1(C.paddingLG)}`:0,confirmIconMarginInlineEnd:C.wireframe?C.margin:C.marginSM,confirmBtnsMarginTop:C.wireframe?C.marginLG:C.marginSM}),useStyle$w=genStyleHooks("Modal",C=>{const $=prepareToken$3(C);return[genModalStyle($),genRTLStyle($),genModalMaskStyle($),initZoomMotion($,"zoom"),genResponsiveWidthStyle($)]},prepareComponentToken$r,{unitless:{titleLineHeight:!0}});var __rest$Z=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};let mousePosition;const getClickPosition=C=>{mousePosition={x:C.pageX,y:C.pageY},setTimeout(()=>{mousePosition=null},100)};canUseDocElement()&&document.documentElement.addEventListener("click",getClickPosition,!0);const Modal$2=C=>{const{prefixCls:$,className:V,rootClassName:F,open:K,wrapClassName:J,centered:ee,getContainer:te,focusTriggerAfterClose:ne=!0,style:re,visible:ae,width:oe=520,footer:ie,classNames:se,styles:ce,children:de,loading:le,confirmLoading:ve,zIndex:fe,mousePosition:he,onOk:me,onCancel:ue,destroyOnHidden:pe,destroyOnClose:ye}=C,be=__rest$Z(C,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:ge,getPrefixCls:_e,direction:Se,modal:Ee}=React__namespace.useContext(ConfigContext),Ce=Pe=>{ve||ue==null||ue(Pe)},xe=Pe=>{me==null||me(Pe)};if(process.env.NODE_ENV!=="production"){const Pe=devUseWarning("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"],["destroyOnClose","destroyOnHidden"]].forEach(Me=>{let[He,We]=Me;Pe.deprecated(!(He in C),He,We)})}const $e=_e("modal",$),Ie=_e(),Fe=useCSSVarCls$1($e),[Ne,De,Oe]=useStyle$w($e,Fe),we=classNames(J,{[`${$e}-centered`]:ee!=null?ee:Ee==null?void 0:Ee.centered,[`${$e}-wrap-rtl`]:Se==="rtl"}),Ae=ie!==null&&!le?React__namespace.createElement(Footer$5,Object.assign({},C,{onOk:xe,onCancel:Ce})):null,[ke,je,ze,Ve]=useClosable(pickClosable(C),pickClosable(Ee),{closable:!0,closeIcon:React__namespace.createElement(CloseOutlined$1,{className:`${$e}-close-icon`}),closeIconRender:Pe=>renderCloseIcon($e,Pe)}),Xe=usePanelRef(`.${$e}-content`),[Ye,at]=useZIndex("Modal",fe),[Ue,Le]=React__namespace.useMemo(()=>oe&&typeof oe=="object"?[void 0,oe]:[oe,void 0],[oe]),Te=React__namespace.useMemo(()=>{const Pe={};return Le&&Object.keys(Le).forEach(Me=>{const He=Le[Me];He!==void 0&&(Pe[`--${$e}-${Me}-width`]=typeof He=="number"?`${He}px`:He)}),Pe},[Le]);return Ne(React__namespace.createElement(ContextIsolator$1,{form:!0,space:!0},React__namespace.createElement(zIndexContext$1.Provider,{value:at},React__namespace.createElement(DialogWrap,Object.assign({width:Ue},be,{zIndex:Ye,getContainer:te===void 0?ge:te,prefixCls:$e,rootClassName:classNames(De,F,Oe,Fe),footer:Ae,visible:K!=null?K:ae,mousePosition:he!=null?he:mousePosition,onClose:Ce,closable:ke&&Object.assign({disabled:ze,closeIcon:je},Ve),closeIcon:je,focusTriggerAfterClose:ne,transitionName:getTransitionName(Ie,"zoom",C.transitionName),maskTransitionName:getTransitionName(Ie,"fade",C.maskTransitionName),className:classNames(De,V,Ee==null?void 0:Ee.className),style:Object.assign(Object.assign(Object.assign({},Ee==null?void 0:Ee.style),re),Te),classNames:Object.assign(Object.assign(Object.assign({},Ee==null?void 0:Ee.classNames),se),{wrapper:classNames(we,se==null?void 0:se.wrapper)}),styles:Object.assign(Object.assign({},Ee==null?void 0:Ee.styles),ce),panelRef:Xe,destroyOnClose:pe!=null?pe:ye}),le?React__namespace.createElement(Skeleton$1,{active:!0,title:!1,paragraph:{rows:4},className:`${$e}-body-skeleton`}):de))))},OriginModal=Modal$2,genModalConfirmStyle=C=>{const{componentCls:$,titleFontSize:V,titleLineHeight:F,modalConfirmIconSize:K,fontSize:J,lineHeight:ee,modalTitleHeight:te,fontHeight:ne,confirmBodyPadding:re}=C,ae=`${$}-confirm`;return{[ae]:{"&-rtl":{direction:"rtl"},[`${C.antCls}-modal-header`]:{display:"none"},[`${ae}-body-wrapper`]:Object.assign({},clearFix()),[`&${$} ${$}-body`]:{padding:re},[`${ae}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${C.iconCls}`]:{flex:"none",fontSize:K,marginInlineEnd:C.confirmIconMarginInlineEnd,marginTop:C.calc(C.calc(ne).sub(K).equal()).div(2).equal()},[`&-has-title > ${C.iconCls}`]:{marginTop:C.calc(C.calc(te).sub(K).equal()).div(2).equal()}},[`${ae}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:C.marginXS,maxWidth:`calc(100% - ${unit$1(C.marginSM)})`},[`${C.iconCls} + ${ae}-paragraph`]:{maxWidth:`calc(100% - ${unit$1(C.calc(C.modalConfirmIconSize).add(C.marginSM).equal())})`},[`${ae}-title`]:{color:C.colorTextHeading,fontWeight:C.fontWeightStrong,fontSize:V,lineHeight:F},[`${ae}-content`]:{color:C.colorText,fontSize:J,lineHeight:ee},[`${ae}-btns`]:{textAlign:"end",marginTop:C.confirmBtnsMarginTop,[`${C.antCls}-btn + ${C.antCls}-btn`]:{marginBottom:0,marginInlineStart:C.marginXS}}},[`${ae}-error ${ae}-body > ${C.iconCls}`]:{color:C.colorError},[`${ae}-warning ${ae}-body > ${C.iconCls},
204
- ${ae}-confirm ${ae}-body > ${C.iconCls}`]:{color:C.colorWarning},[`${ae}-info ${ae}-body > ${C.iconCls}`]:{color:C.colorInfo},[`${ae}-success ${ae}-body > ${C.iconCls}`]:{color:C.colorSuccess}}},Confirm=genSubStyleComponent(["Modal","confirm"],C=>{const $=prepareToken$3(C);return[genModalConfirmStyle($)]},prepareComponentToken$r,{order:-1e3});var __rest$Y=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};function ConfirmContent(C){const{prefixCls:$,icon:V,okText:F,cancelText:K,confirmPrefixCls:J,type:ee,okCancel:te,footer:ne,locale:re}=C,ae=__rest$Y(C,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(process.env.NODE_ENV!=="production"){const ye=devUseWarning("Modal");process.env.NODE_ENV!=="production"&&ye(!(typeof V=="string"&&V.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${V}\` at https://ant.design/components/icon`)}let oe=V;if(!V&&V!==null)switch(ee){case"info":oe=React__namespace.createElement(InfoCircleFilled$1,null);break;case"success":oe=React__namespace.createElement(CheckCircleFilled$1,null);break;case"error":oe=React__namespace.createElement(CloseCircleFilled$1,null);break;default:oe=React__namespace.createElement(ExclamationCircleFilled$1,null)}const ie=te!=null?te:ee==="confirm",se=C.autoFocusButton===null?!1:C.autoFocusButton||"ok",[ce]=useLocale$1("Modal"),de=re||ce,le=F||(ie?de==null?void 0:de.okText:de==null?void 0:de.justOkText),ve=K||(de==null?void 0:de.cancelText),fe=Object.assign({autoFocusButton:se,cancelTextLocale:ve,okTextLocale:le,mergedOkCancel:ie},ae),he=React__namespace.useMemo(()=>fe,_toConsumableArray(Object.values(fe))),me=React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(CancelBtn,null),React__namespace.createElement(OkBtn,null)),ue=C.title!==void 0&&C.title!==null,pe=`${J}-body`;return React__namespace.createElement("div",{className:`${J}-body-wrapper`},React__namespace.createElement("div",{className:classNames(pe,{[`${pe}-has-title`]:ue})},oe,React__namespace.createElement("div",{className:`${J}-paragraph`},ue&&React__namespace.createElement("span",{className:`${J}-title`},C.title),React__namespace.createElement("div",{className:`${J}-content`},C.content))),ne===void 0||typeof ne=="function"?React__namespace.createElement(ModalContextProvider,{value:he},React__namespace.createElement("div",{className:`${J}-btns`},typeof ne=="function"?ne(me,{OkBtn,CancelBtn}):me)):ne,React__namespace.createElement(Confirm,{prefixCls:$}))}const ConfirmDialog=C=>{const{close:$,zIndex:V,maskStyle:F,direction:K,prefixCls:J,wrapClassName:ee,rootPrefixCls:te,bodyStyle:ne,closable:re=!1,onConfirm:ae,styles:oe}=C;if(process.env.NODE_ENV!=="production"){const me=devUseWarning("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(ue=>{let[pe,ye]=ue;me.deprecated(!(pe in C),pe,ye)})}const ie=`${J}-confirm`,se=C.width||416,ce=C.style||{},de=C.mask===void 0?!0:C.mask,le=C.maskClosable===void 0?!1:C.maskClosable,ve=classNames(ie,`${ie}-${C.type}`,{[`${ie}-rtl`]:K==="rtl"},C.className),[,fe]=useToken(),he=React__namespace.useMemo(()=>V!==void 0?V:fe.zIndexPopupBase+CONTAINER_MAX_OFFSET,[V,fe]);return React__namespace.createElement(OriginModal,Object.assign({},C,{className:ve,wrapClassName:classNames({[`${ie}-centered`]:!!C.centered},ee),onCancel:()=>{$==null||$({triggerCancel:!0}),ae==null||ae(!1)},title:"",footer:null,transitionName:getTransitionName(te||"","zoom",C.transitionName),maskTransitionName:getTransitionName(te||"","fade",C.maskTransitionName),mask:de,maskClosable:le,style:ce,styles:Object.assign({body:ne,mask:F},oe),width:se,zIndex:he,closable:re}),React__namespace.createElement(ConfirmContent,Object.assign({},C,{confirmPrefixCls:ie})))},ConfirmDialogWrapper$1=C=>{const{rootPrefixCls:$,iconPrefixCls:V,direction:F,theme:K}=C;return React__namespace.createElement(ConfigProvider,{prefixCls:$,iconPrefixCls:V,direction:F,theme:K},React__namespace.createElement(ConfirmDialog,Object.assign({},C)))};process.env.NODE_ENV!=="production"&&(ConfirmDialog.displayName="ConfirmDialog",ConfirmDialogWrapper$1.displayName="ConfirmDialogWrapper");const destroyFns=[],destroyFns$1=destroyFns;let defaultRootPrefixCls="";function getRootPrefixCls(){return defaultRootPrefixCls}const ConfirmDialogWrapper=C=>{var $,V;const{prefixCls:F,getContainer:K,direction:J}=C,ee=getConfirmLocale(),te=React.useContext(ConfigContext),ne=getRootPrefixCls()||te.getPrefixCls(),re=F||`${ne}-modal`;let ae=K;return ae===!1&&(ae=void 0,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&warning$5(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),React.createElement(ConfirmDialogWrapper$1,Object.assign({},C,{rootPrefixCls:ne,prefixCls:re,iconPrefixCls:te.iconPrefixCls,theme:te.theme,direction:J!=null?J:te.direction,locale:(V=($=te.locale)===null||$===void 0?void 0:$.Modal)!==null&&V!==void 0?V:ee,getContainer:ae}))};function confirm(C){const $=globalConfig();process.env.NODE_ENV!=="production"&&!$.holderRender&&warnContext("Modal");const V=document.createDocumentFragment();let F=Object.assign(Object.assign({},C),{close:ne,open:!0}),K,J;function ee(){for(var ae,oe=arguments.length,ie=new Array(oe),se=0;se<oe;se++)ie[se]=arguments[se];if(ie.some(le=>le==null?void 0:le.triggerCancel)){var de;(ae=C.onCancel)===null||ae===void 0||(de=ae).call.apply(de,[C,()=>{}].concat(_toConsumableArray(ie.slice(1))))}for(let le=0;le<destroyFns$1.length;le++)if(destroyFns$1[le]===ne){destroyFns$1.splice(le,1);break}J()}function te(ae){clearTimeout(K),K=setTimeout(()=>{const oe=$.getPrefixCls(void 0,getRootPrefixCls()),ie=$.getIconPrefixCls(),se=$.getTheme(),ce=React.createElement(ConfirmDialogWrapper,Object.assign({},ae));J=unstableSetRender()(React.createElement(ConfigProvider,{prefixCls:oe,iconPrefixCls:ie,theme:se},$.holderRender?$.holderRender(ce):ce),V)})}function ne(){for(var ae=arguments.length,oe=new Array(ae),ie=0;ie<ae;ie++)oe[ie]=arguments[ie];F=Object.assign(Object.assign({},F),{open:!1,afterClose:()=>{typeof C.afterClose=="function"&&C.afterClose(),ee.apply(this,oe)}}),F.visible&&delete F.visible,te(F)}function re(ae){typeof ae=="function"?F=ae(F):F=Object.assign(Object.assign({},F),ae),te(F)}return te(F),destroyFns$1.push(ne),{destroy:ne,update:re}}function withWarn(C){return Object.assign(Object.assign({},C),{type:"warning"})}function withInfo(C){return Object.assign(Object.assign({},C),{type:"info"})}function withSuccess(C){return Object.assign(Object.assign({},C),{type:"success"})}function withError(C){return Object.assign(Object.assign({},C),{type:"error"})}function withConfirm(C){return Object.assign(Object.assign({},C),{type:"confirm"})}function modalGlobalConfig(C){let{rootPrefixCls:$}=C;process.env.NODE_ENV!=="production"&&warning$5(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),defaultRootPrefixCls=$}var __rest$X=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const HookModal=(C,$)=>{var V,{afterClose:F,config:K}=C,J=__rest$X(C,["afterClose","config"]);const[ee,te]=React__namespace.useState(!0),[ne,re]=React__namespace.useState(K),{direction:ae,getPrefixCls:oe}=React__namespace.useContext(ConfigContext),ie=oe("modal"),se=oe(),ce=()=>{var fe;F(),(fe=ne.afterClose)===null||fe===void 0||fe.call(ne)},de=function(){var fe;te(!1);for(var he=arguments.length,me=new Array(he),ue=0;ue<he;ue++)me[ue]=arguments[ue];if(me.some(be=>be==null?void 0:be.triggerCancel)){var ye;(fe=ne.onCancel)===null||fe===void 0||(ye=fe).call.apply(ye,[ne,()=>{}].concat(_toConsumableArray(me.slice(1))))}};React__namespace.useImperativeHandle($,()=>({destroy:de,update:fe=>{re(he=>Object.assign(Object.assign({},he),fe))}}));const le=(V=ne.okCancel)!==null&&V!==void 0?V:ne.type==="confirm",[ve]=useLocale$1("Modal",defaultLocale.Modal);return React__namespace.createElement(ConfirmDialogWrapper$1,Object.assign({prefixCls:ie,rootPrefixCls:se},ne,{close:de,open:ee,afterClose:ce,okText:ne.okText||(le?ve==null?void 0:ve.okText:ve==null?void 0:ve.justOkText),direction:ne.direction||ae,cancelText:ne.cancelText||(ve==null?void 0:ve.cancelText)},J))},HookModal$1=React__namespace.forwardRef(HookModal);let uuid$3=0;const ElementsHolder=React__namespace.memo(React__namespace.forwardRef((C,$)=>{const[V,F]=usePatchElement();return React__namespace.useImperativeHandle($,()=>({patchElement:F}),[]),React__namespace.createElement(React__namespace.Fragment,null,V)}));function useModal(){const C=React__namespace.useRef(null),[$,V]=React__namespace.useState([]);React__namespace.useEffect(()=>{$.length&&(_toConsumableArray($).forEach(ee=>{ee()}),V([]))},[$]);const F=React__namespace.useCallback(J=>function(te){var ne;uuid$3+=1;const re=React__namespace.createRef();let ae;const oe=new Promise(le=>{ae=le});let ie=!1,se;const ce=React__namespace.createElement(HookModal$1,{key:`modal-${uuid$3}`,config:J(te),ref:re,afterClose:()=>{se==null||se()},isSilent:()=>ie,onConfirm:le=>{ae(le)}});return se=(ne=C.current)===null||ne===void 0?void 0:ne.patchElement(ce),se&&destroyFns$1.push(se),{destroy:()=>{function le(){var ve;(ve=re.current)===null||ve===void 0||ve.destroy()}re.current?le():V(ve=>[].concat(_toConsumableArray(ve),[le]))},update:le=>{function ve(){var fe;(fe=re.current)===null||fe===void 0||fe.update(le)}re.current?ve():V(fe=>[].concat(_toConsumableArray(fe),[ve]))},then:le=>(ie=!0,oe.then(le))}},[]);return[React__namespace.useMemo(()=>({info:F(withInfo),success:F(withSuccess),error:F(withError),warning:F(withWarn),confirm:F(withConfirm)}),[]),React__namespace.createElement(ElementsHolder,{key:"modal-holder",ref:C})]}const genNotificationPlacementStyle=C=>{const{componentCls:$,notificationMarginEdge:V,animationMaxHeight:F}=C,K=`${$}-notice`,J=new Keyframe("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),ee=new Keyframe("antNotificationTopFadeIn",{"0%":{top:-F,opacity:0},"100%":{top:0,opacity:1}}),te=new Keyframe("antNotificationBottomFadeIn",{"0%":{bottom:C.calc(F).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),ne=new Keyframe("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[$]:{[`&${$}-top, &${$}-bottom`]:{marginInline:0,[K]:{marginInline:"auto auto"}},[`&${$}-top`]:{[`${$}-fade-enter${$}-fade-enter-active, ${$}-fade-appear${$}-fade-appear-active`]:{animationName:ee}},[`&${$}-bottom`]:{[`${$}-fade-enter${$}-fade-enter-active, ${$}-fade-appear${$}-fade-appear-active`]:{animationName:te}},[`&${$}-topRight, &${$}-bottomRight`]:{[`${$}-fade-enter${$}-fade-enter-active, ${$}-fade-appear${$}-fade-appear-active`]:{animationName:J}},[`&${$}-topLeft, &${$}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:V,_skip_check_:!0},[K]:{marginInlineEnd:"auto",marginInlineStart:0},[`${$}-fade-enter${$}-fade-enter-active, ${$}-fade-appear${$}-fade-appear-active`]:{animationName:ne}}}}},genNotificationPlacementStyle$1=genNotificationPlacementStyle,NotificationPlacements=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],placementAlignProperty={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},genPlacementStackStyle=(C,$)=>{const{componentCls:V}=C;return{[`${V}-${$}`]:{[`&${V}-stack > ${V}-notice-wrapper`]:{[$.startsWith("top")?"top":"bottom"]:0,[placementAlignProperty[$]]:{value:0,_skip_check_:!0}}}}},genStackChildrenStyle=C=>{const $={};for(let V=1;V<C.notificationStackLayer;V++)$[`&:nth-last-child(${V+1})`]={overflow:"hidden",[`& > ${C.componentCls}-notice`]:{opacity:0,transition:`opacity ${C.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${C.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},$)},genStackedNoticeStyle=C=>{const $={};for(let V=1;V<C.notificationStackLayer;V++)$[`&:nth-last-child(${V+1})`]={background:C.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},$)},genStackStyle=C=>{const{componentCls:$}=C;return Object.assign({[`${$}-stack`]:{[`& > ${$}-notice-wrapper`]:Object.assign({transition:`transform ${C.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},genStackChildrenStyle(C))},[`${$}-stack:not(${$}-stack-expanded)`]:{[`& > ${$}-notice-wrapper`]:Object.assign({},genStackedNoticeStyle(C))},[`${$}-stack${$}-stack-expanded`]:{[`& > ${$}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${C.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:C.margin,width:"100%",insetInline:0,bottom:C.calc(C.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},NotificationPlacements.map(V=>genPlacementStackStyle(C,V)).reduce((V,F)=>Object.assign(Object.assign({},V),F),{}))},genStackStyle$1=genStackStyle,genNoticeStyle=C=>{const{iconCls:$,componentCls:V,boxShadow:F,fontSizeLG:K,notificationMarginBottom:J,borderRadiusLG:ee,colorSuccess:te,colorInfo:ne,colorWarning:re,colorError:ae,colorTextHeading:oe,notificationBg:ie,notificationPadding:se,notificationMarginEdge:ce,notificationProgressBg:de,notificationProgressHeight:le,fontSize:ve,lineHeight:fe,width:he,notificationIconSize:me,colorText:ue}=C,pe=`${V}-notice`;return{position:"relative",marginBottom:J,marginInlineStart:"auto",background:ie,borderRadius:ee,boxShadow:F,[pe]:{padding:se,width:he,maxWidth:`calc(100vw - ${unit$1(C.calc(ce).mul(2).equal())})`,overflow:"hidden",lineHeight:fe,wordWrap:"break-word"},[`${pe}-message`]:{marginBottom:C.marginXS,color:oe,fontSize:K,lineHeight:C.lineHeightLG},[`${pe}-description`]:{fontSize:ve,color:ue},[`${pe}-closable ${pe}-message`]:{paddingInlineEnd:C.paddingLG},[`${pe}-with-icon ${pe}-message`]:{marginBottom:C.marginXS,marginInlineStart:C.calc(C.marginSM).add(me).equal(),fontSize:K},[`${pe}-with-icon ${pe}-description`]:{marginInlineStart:C.calc(C.marginSM).add(me).equal(),fontSize:ve},[`${pe}-icon`]:{position:"absolute",fontSize:me,lineHeight:1,[`&-success${$}`]:{color:te},[`&-info${$}`]:{color:ne},[`&-warning${$}`]:{color:re},[`&-error${$}`]:{color:ae}},[`${pe}-close`]:Object.assign({position:"absolute",top:C.notificationPaddingVertical,insetInlineEnd:C.notificationPaddingHorizontal,color:C.colorIcon,outline:"none",width:C.notificationCloseButtonSize,height:C.notificationCloseButtonSize,borderRadius:C.borderRadiusSM,transition:`background-color ${C.motionDurationMid}, color ${C.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:C.colorIconHover,backgroundColor:C.colorBgTextHover},"&:active":{backgroundColor:C.colorBgTextActive}},genFocusStyle(C)),[`${pe}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${unit$1(ee)} * 2)`,left:{_skip_check_:!0,value:ee},right:{_skip_check_:!0,value:ee},bottom:0,blockSize:le,border:0,"&, &::-webkit-progress-bar":{borderRadius:ee,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:de},"&::-webkit-progress-value":{borderRadius:ee,background:de}},[`${pe}-actions`]:{float:"right",marginTop:C.marginSM}}},genNotificationStyle=C=>{const{componentCls:$,notificationMarginBottom:V,notificationMarginEdge:F,motionDurationMid:K,motionEaseInOut:J}=C,ee=`${$}-notice`,te=new Keyframe("antNotificationFadeOut",{"0%":{maxHeight:C.animationMaxHeight,marginBottom:V},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[$]:Object.assign(Object.assign({},resetComponent(C)),{position:"fixed",zIndex:C.zIndexPopup,marginRight:{value:F,_skip_check_:!0},[`${$}-hook-holder`]:{position:"relative"},[`${$}-fade-appear-prepare`]:{opacity:"0 !important"},[`${$}-fade-enter, ${$}-fade-appear`]:{animationDuration:C.motionDurationMid,animationTimingFunction:J,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${$}-fade-leave`]:{animationTimingFunction:J,animationFillMode:"both",animationDuration:K,animationPlayState:"paused"},[`${$}-fade-enter${$}-fade-enter-active, ${$}-fade-appear${$}-fade-appear-active`]:{animationPlayState:"running"},[`${$}-fade-leave${$}-fade-leave-active`]:{animationName:te,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${ee}-actions`]:{float:"left"}}})},{[$]:{[`${ee}-wrapper`]:Object.assign({},genNoticeStyle(C))}}]},prepareComponentToken$q=C=>({zIndexPopup:C.zIndexPopupBase+CONTAINER_MAX_OFFSET+50,width:384}),prepareNotificationToken=C=>{const $=C.paddingMD,V=C.paddingLG;return merge(C,{notificationBg:C.colorBgElevated,notificationPaddingVertical:$,notificationPaddingHorizontal:V,notificationIconSize:C.calc(C.fontSizeLG).mul(C.lineHeightLG).equal(),notificationCloseButtonSize:C.calc(C.controlHeightLG).mul(.55).equal(),notificationMarginBottom:C.margin,notificationPadding:`${unit$1(C.paddingMD)} ${unit$1(C.paddingContentHorizontalLG)}`,notificationMarginEdge:C.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${C.colorPrimaryBorderHover}, ${C.colorPrimary})`})},useStyle$v=genStyleHooks("Notification",C=>{const $=prepareNotificationToken(C);return[genNotificationStyle($),genNotificationPlacementStyle$1($),genStackStyle$1($)]},prepareComponentToken$q),PurePanelStyle=genSubStyleComponent(["Notification","PurePanel"],C=>{const $=`${C.componentCls}-notice`,V=prepareNotificationToken(C);return{[`${$}-pure-panel`]:Object.assign(Object.assign({},genNoticeStyle(V)),{width:V.width,maxWidth:`calc(100vw - ${unit$1(C.calc(V.notificationMarginEdge).mul(2).equal())})`,margin:0})}},prepareComponentToken$q);var __rest$W=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};function getCloseIcon(C,$){return $===null||$===!1?null:$||React__namespace.createElement(CloseOutlined$1,{className:`${C}-close-icon`})}const typeToIcon={success:CheckCircleFilled$1,info:InfoCircleFilled$1,error:CloseCircleFilled$1,warning:ExclamationCircleFilled$1},PureContent=C=>{const{prefixCls:$,icon:V,type:F,message:K,description:J,actions:ee,role:te="alert"}=C;let ne=null;return V?ne=React__namespace.createElement("span",{className:`${$}-icon`},V):F&&(ne=React__namespace.createElement(typeToIcon[F]||null,{className:classNames(`${$}-icon`,`${$}-icon-${F}`)})),React__namespace.createElement("div",{className:classNames({[`${$}-with-icon`]:ne}),role:te},ne,React__namespace.createElement("div",{className:`${$}-message`},K),React__namespace.createElement("div",{className:`${$}-description`},J),ee&&React__namespace.createElement("div",{className:`${$}-actions`},ee))},PurePanel$8=C=>{const{prefixCls:$,className:V,icon:F,type:K,message:J,description:ee,btn:te,actions:ne,closable:re=!0,closeIcon:ae,className:oe}=C,ie=__rest$W(C,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:se}=React__namespace.useContext(ConfigContext),ce=ne!=null?ne:te;process.env.NODE_ENV!=="production"&&devUseWarning("Notification").deprecated(!te,"btn","actions");const de=$||se("notification"),le=`${de}-notice`,ve=useCSSVarCls$1(de),[fe,he,me]=useStyle$v(de,ve);return fe(React__namespace.createElement("div",{className:classNames(`${le}-pure-panel`,he,V,me,ve)},React__namespace.createElement(PurePanelStyle,{prefixCls:de}),React__namespace.createElement(Notify,Object.assign({},ie,{prefixCls:de,eventKey:"pure",duration:null,closable:re,className:classNames({notificationClassName:oe}),closeIcon:getCloseIcon(de,ae),content:React__namespace.createElement(PureContent,{prefixCls:le,icon:F,type:K,message:J,description:ee,actions:ce})}))))};function getPlacementStyle(C,$,V){let F;switch(C){case"top":F={left:"50%",transform:"translateX(-50%)",right:"auto",top:$,bottom:"auto"};break;case"topLeft":F={left:0,top:$,bottom:"auto"};break;case"topRight":F={right:0,top:$,bottom:"auto"};break;case"bottom":F={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:V};break;case"bottomLeft":F={left:0,top:"auto",bottom:V};break;default:F={right:0,top:"auto",bottom:V};break}return F}function getMotion$2(C){return{motionName:`${C}-fade`}}function getCloseIconConfig(C,$,V){return typeof C!="undefined"?C:typeof($==null?void 0:$.closeIcon)!="undefined"?$.closeIcon:V==null?void 0:V.closeIcon}var __rest$V=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const DEFAULT_OFFSET=24,DEFAULT_DURATION=4.5,DEFAULT_PLACEMENT="topRight",Wrapper=C=>{let{children:$,prefixCls:V}=C;const F=useCSSVarCls$1(V),[K,J,ee]=useStyle$v(V,F);return K(React.createElement(NotificationProvider,{classNames:{list:classNames(J,ee,F)}},$))},renderNotifications=(C,$)=>{let{prefixCls:V,key:F}=$;return React.createElement(Wrapper,{prefixCls:V,key:F},C)},Holder=React.forwardRef((C,$)=>{const{top:V,bottom:F,prefixCls:K,getContainer:J,maxCount:ee,rtl:te,onAllRemoved:ne,stack:re,duration:ae,pauseOnHover:oe=!0,showProgress:ie}=C,{getPrefixCls:se,getPopupContainer:ce,notification:de,direction:le}=React.useContext(ConfigContext),[,ve]=useToken(),fe=K||se("notification"),he=be=>getPlacementStyle(be,V!=null?V:DEFAULT_OFFSET,F!=null?F:DEFAULT_OFFSET),me=()=>classNames({[`${fe}-rtl`]:te!=null?te:le==="rtl"}),ue=()=>getMotion$2(fe),[pe,ye]=useNotification$1({prefixCls:fe,style:he,className:me,motion:ue,closable:!0,closeIcon:getCloseIcon(fe),duration:ae!=null?ae:DEFAULT_DURATION,getContainer:()=>(J==null?void 0:J())||(ce==null?void 0:ce())||document.body,maxCount:ee,pauseOnHover:oe,showProgress:ie,onAllRemoved:ne,renderNotifications,stack:re===!1?!1:{threshold:typeof re=="object"?re==null?void 0:re.threshold:void 0,offset:8,gap:ve.margin}});return React.useImperativeHandle($,()=>Object.assign(Object.assign({},pe),{prefixCls:fe,notification:de})),ye});function useInternalNotification(C){const $=React.useRef(null),V=devUseWarning("Notification");return[React.useMemo(()=>{const K=ne=>{var re;if(!$.current){process.env.NODE_ENV!=="production"&&V(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:ae,prefixCls:oe,notification:ie}=$.current,se=`${oe}-notice`,{message:ce,description:de,icon:le,type:ve,btn:fe,actions:he,className:me,style:ue,role:pe="alert",closeIcon:ye,closable:be}=ne,ge=__rest$V(ne,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]);process.env.NODE_ENV!=="production"&&V.deprecated(!fe,"btn","actions");const _e=he!=null?he:fe,Se=getCloseIcon(se,getCloseIconConfig(ye,C,ie));return ae(Object.assign(Object.assign({placement:(re=C==null?void 0:C.placement)!==null&&re!==void 0?re:DEFAULT_PLACEMENT},ge),{content:React.createElement(PureContent,{prefixCls:se,icon:le,type:ve,message:ce,description:de,actions:_e,role:pe}),className:classNames(ve&&`${se}-${ve}`,me,ie==null?void 0:ie.className),style:Object.assign(Object.assign({},ie==null?void 0:ie.style),ue),closeIcon:Se,closable:be!=null?be:!!Se}))},ee={open:K,destroy:ne=>{var re,ae;ne!==void 0?(re=$.current)===null||re===void 0||re.close(ne):(ae=$.current)===null||ae===void 0||ae.destroy()}};return["success","info","warning","error"].forEach(ne=>{ee[ne]=re=>K(Object.assign(Object.assign({},re),{type:ne}))}),ee},[]),React.createElement(Holder,Object.assign({key:"notification-holder"},C,{ref:$}))]}function useNotification(C){return useInternalNotification(C)}const AppConfigContext=React.createContext({}),AppContext=React.createContext({message:{},notification:{},modal:{}}),AppContext$1=AppContext,genBaseStyle$8=C=>{const{componentCls:$,colorText:V,fontSize:F,lineHeight:K,fontFamily:J}=C;return{[$]:{color:V,fontSize:F,lineHeight:K,fontFamily:J,[`&${$}-rtl`]:{direction:"rtl"}}}},prepareComponentToken$p=()=>({}),useStyle$u=genStyleHooks("App",genBaseStyle$8,prepareComponentToken$p),App$2=C=>{const{prefixCls:$,children:V,className:F,rootClassName:K,message:J,notification:ee,style:te,component:ne="div"}=C,{direction:re,getPrefixCls:ae}=React.useContext(ConfigContext),oe=ae("app",$),[ie,se,ce]=useStyle$u(oe),de=classNames(se,oe,F,K,ce,{[`${oe}-rtl`]:re==="rtl"}),le=React.useContext(AppConfigContext),ve=React.useMemo(()=>({message:Object.assign(Object.assign({},le.message),J),notification:Object.assign(Object.assign({},le.notification),ee)}),[J,ee,le.message,le.notification]),[fe,he]=useMessage(ve.message),[me,ue]=useNotification(ve.notification),[pe,ye]=useModal(),be=React.useMemo(()=>({message:fe,notification:me,modal:pe}),[fe,me,pe]);devUseWarning("App")(!(ce&&ne===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const ge=ne===!1?React.Fragment:ne,_e={className:de,style:te};return ie(React.createElement(AppContext$1.Provider,{value:be},React.createElement(AppConfigContext.Provider,{value:ve},React.createElement(ge,Object.assign({},ne===!1?void 0:_e),ye,he,ue,V))))};process.env.NODE_ENV!=="production"&&(App$2.displayName="App");const App_=App$2,useApp=()=>React.useContext(AppContext$1),useApp$1=useApp,App=App_;App.useApp=useApp$1;const App$1=App;function withPureRenderTheme(C){return $=>React__namespace.createElement(ConfigProvider,{theme:{token:{motion:!1,zIndexPopupBase:0}}},React__namespace.createElement(C,Object.assign({},$)))}const genPurePanel=(C,$,V,F,K)=>withPureRenderTheme(ee=>{const{prefixCls:te,style:ne}=ee,re=React__namespace.useRef(null),[ae,oe]=React__namespace.useState(0),[ie,se]=React__namespace.useState(0),[ce,de]=useMergedState(!1,{value:ee.open}),{getPrefixCls:le}=React__namespace.useContext(ConfigContext),ve=le(F||"select",te);React__namespace.useEffect(()=>{if(de(!0),typeof ResizeObserver!="undefined"){const me=new ResizeObserver(pe=>{const ye=pe[0].target;oe(ye.offsetHeight+8),se(ye.offsetWidth)}),ue=setInterval(()=>{var pe;const ye=K?`.${K(ve)}`:`.${ve}-dropdown`,be=(pe=re.current)===null||pe===void 0?void 0:pe.querySelector(ye);be&&(clearInterval(ue),me.observe(be))},10);return()=>{clearInterval(ue),me.disconnect()}}},[]);let fe=Object.assign(Object.assign({},ee),{style:Object.assign(Object.assign({},ne),{margin:0}),open:ce,visible:ce,getPopupContainer:()=>re.current});V&&(fe=V(fe)),$&&Object.assign(fe,{[$]:{overflow:{adjustX:!1,adjustY:!1}}});const he={paddingBottom:ae,position:"relative",minWidth:ie};return React__namespace.createElement("div",{ref:re,style:he},React__namespace.createElement(C,Object.assign({},fe)))}),genPurePanel$1=genPurePanel,isMobile=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var C=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(C)||/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(C==null?void 0:C.substr(0,4))};var TransBtn=function($){var V=$.className,F=$.customizeIcon,K=$.customizeIconProps,J=$.children,ee=$.onMouseDown,te=$.onClick,ne=typeof F=="function"?F(K):F;return React__namespace.createElement("span",{className:V,onMouseDown:function(ae){ae.preventDefault(),ee==null||ee(ae)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:te,"aria-hidden":!0},ne!==void 0?ne:React__namespace.createElement("span",{className:classNames(V.split(/\s+/).map(function(re){return"".concat(re,"-icon")}))},J))},useAllowClear=function($,V,F,K,J){var ee=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,te=arguments.length>6?arguments[6]:void 0,ne=arguments.length>7?arguments[7]:void 0,re=React.useMemo(function(){if(_typeof(K)==="object")return K.clearIcon;if(J)return J},[K,J]),ae=React.useMemo(function(){return!!(!ee&&K&&(F.length||te)&&!(ne==="combobox"&&te===""))},[K,ee,F.length,te,ne]);return{allowClear:ae,clearIcon:React.createElement(TransBtn,{className:"".concat($,"-clear"),onMouseDown:V,customizeIcon:re},"×")}},BaseSelectContext=React__namespace.createContext(null);function useBaseProps(){return React__namespace.useContext(BaseSelectContext)}function useDelayReset(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,$=React__namespace.useState(!1),V=_slicedToArray($,2),F=V[0],K=V[1],J=React__namespace.useRef(null),ee=function(){window.clearTimeout(J.current)};React__namespace.useEffect(function(){return ee},[]);var te=function(re,ae){ee(),J.current=window.setTimeout(function(){K(re),ae&&ae()},C)};return[F,te,ee]}function useLock(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,$=React__namespace.useRef(null),V=React__namespace.useRef(null);React__namespace.useEffect(function(){return function(){window.clearTimeout(V.current)}},[]);function F(K){(K||$.current===null)&&($.current=K),window.clearTimeout(V.current),V.current=window.setTimeout(function(){$.current=null},C)}return[function(){return $.current},F]}function useSelectTriggerControl(C,$,V,F){var K=React__namespace.useRef(null);K.current={open:$,triggerOpen:V,customizedTrigger:F},React__namespace.useEffect(function(){function J(ee){var te;if(!((te=K.current)!==null&&te!==void 0&&te.customizedTrigger)){var ne=ee.target;ne.shadowRoot&&ee.composed&&(ne=ee.composedPath()[0]||ne),K.current.open&&C().filter(function(re){return re}).every(function(re){return!re.contains(ne)&&re!==ne})&&K.current.triggerOpen(!1)}}return window.addEventListener("mousedown",J),function(){return window.removeEventListener("mousedown",J)}},[])}function isValidateOpenKey(C){return C&&![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(C)}var _excluded$K=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED=void 0;function InternalItem(C,$){var V=C.prefixCls,F=C.invalidate,K=C.item,J=C.renderItem,ee=C.responsive,te=C.responsiveDisabled,ne=C.registerSize,re=C.itemKey,ae=C.className,oe=C.style,ie=C.children,se=C.display,ce=C.order,de=C.component,le=de===void 0?"div":de,ve=_objectWithoutProperties(C,_excluded$K),fe=ee&&!se;function he(be){ne(re,be)}React__namespace.useEffect(function(){return function(){he(null)}},[]);var me=J&&K!==UNDEFINED?J(K,{index:ce}):ie,ue;F||(ue={opacity:fe?0:1,height:fe?0:UNDEFINED,overflowY:fe?"hidden":UNDEFINED,order:ee?ce:UNDEFINED,pointerEvents:fe?"none":UNDEFINED,position:fe?"absolute":UNDEFINED});var pe={};fe&&(pe["aria-hidden"]=!0);var ye=React__namespace.createElement(le,_extends({className:classNames(!F&&V,ae),style:_objectSpread2(_objectSpread2({},ue),oe)},pe,ve,{ref:$}),me);return ee&&(ye=React__namespace.createElement(RefResizeObserver,{onResize:function(ge){var _e=ge.offsetWidth;he(_e)},disabled:te},ye)),ye}var Item$5=React__namespace.forwardRef(InternalItem);Item$5.displayName="Item";function channelUpdate(C){if(typeof MessageChannel=="undefined")wrapperRaf(C);else{var $=new MessageChannel;$.port1.onmessage=function(){return C()},$.port2.postMessage(void 0)}}function useBatcher(){var C=React__namespace.useRef(null),$=function(F){C.current||(C.current=[],channelUpdate(function(){ReactDOM.unstable_batchedUpdates(function(){C.current.forEach(function(K){K()}),C.current=null})})),C.current.push(F)};return $}function useEffectState(C,$){var V=React__namespace.useState($),F=_slicedToArray(V,2),K=F[0],J=F[1],ee=useEvent(function(te){C(function(){J(te)})});return[K,ee]}var OverflowContext=React.createContext(null),_excluded$J=["component"],_excluded2$5=["className"],_excluded3$1=["className"],InternalRawItem=function($,V){var F=React__namespace.useContext(OverflowContext);if(!F){var K=$.component,J=K===void 0?"div":K,ee=_objectWithoutProperties($,_excluded$J);return React__namespace.createElement(J,_extends({},ee,{ref:V}))}var te=F.className,ne=_objectWithoutProperties(F,_excluded2$5),re=$.className,ae=_objectWithoutProperties($,_excluded3$1);return React__namespace.createElement(OverflowContext.Provider,{value:null},React__namespace.createElement(Item$5,_extends({ref:V,className:classNames(te,re)},ne,ae)))},RawItem=React__namespace.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$I=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(C){return"+ ".concat(C.length," ...")}function Overflow(C,$){var V=C.prefixCls,F=V===void 0?"rc-overflow":V,K=C.data,J=K===void 0?[]:K,ee=C.renderItem,te=C.renderRawItem,ne=C.itemKey,re=C.itemWidth,ae=re===void 0?10:re,oe=C.ssr,ie=C.style,se=C.className,ce=C.maxCount,de=C.renderRest,le=C.renderRawRest,ve=C.suffix,fe=C.component,he=fe===void 0?"div":fe,me=C.itemComponent,ue=C.onVisibleChange,pe=_objectWithoutProperties(C,_excluded$I),ye=oe==="full",be=useBatcher(),ge=useEffectState(be,null),_e=_slicedToArray(ge,2),Se=_e[0],Ee=_e[1],Ce=Se||0,xe=useEffectState(be,new Map),$e=_slicedToArray(xe,2),Ie=$e[0],Fe=$e[1],Ne=useEffectState(be,0),De=_slicedToArray(Ne,2),Oe=De[0],we=De[1],Ae=useEffectState(be,0),ke=_slicedToArray(Ae,2),je=ke[0],ze=ke[1],Ve=useEffectState(be,0),Xe=_slicedToArray(Ve,2),Ye=Xe[0],at=Xe[1],Ue=React.useState(null),Le=_slicedToArray(Ue,2),Te=Le[0],Pe=Le[1],Me=React.useState(null),He=_slicedToArray(Me,2),We=He[0],Ke=He[1],rt=React__namespace.useMemo(function(){return We===null&&ye?Number.MAX_SAFE_INTEGER:We||0},[We,Se]),st=React.useState(!1),it=_slicedToArray(st,2),Je=it[0],ct=it[1],dt="".concat(F,"-item"),vt=Math.max(Oe,je),ht=ce===RESPONSIVE,bt=J.length&&ht,Rt=ce===INVALIDATE,wt=bt||typeof ce=="number"&&J.length>ce,lt=React.useMemo(function(){var Tt=J;return bt?Se===null&&ye?Tt=J:Tt=J.slice(0,Math.min(J.length,Ce/ae)):typeof ce=="number"&&(Tt=J.slice(0,ce)),Tt},[J,ae,Se,ce,bt]),ut=React.useMemo(function(){return bt?J.slice(rt+1):J.slice(lt.length)},[J,lt,bt,rt]),Ge=React.useCallback(function(Tt,Ct){var At;return typeof ne=="function"?ne(Tt):(At=ne&&(Tt==null?void 0:Tt[ne]))!==null&&At!==void 0?At:Ct},[ne]),et=React.useCallback(ee||function(Tt){return Tt},[ee]);function Ze(Tt,Ct,At){We===Tt&&(Ct===void 0||Ct===Te)||(Ke(Tt),At||(ct(Tt<J.length-1),ue==null||ue(Tt)),Ct!==void 0&&Pe(Ct))}function nt(Tt,Ct){Ee(Ct.clientWidth)}function tt(Tt,Ct){Fe(function(At){var Ht=new Map(At);return Ct===null?Ht.delete(Tt):Ht.set(Tt,Ct),Ht})}function qe(Tt,Ct){ze(Ct),we(je)}function ot(Tt,Ct){at(Ct)}function ft(Tt){return Ie.get(Ge(lt[Tt],Tt))}useLayoutEffect$1(function(){if(Ce&&typeof vt=="number"&&lt){var Tt=Ye,Ct=lt.length,At=Ct-1;if(!Ct){Ze(0,null);return}for(var Ht=0;Ht<Ct;Ht+=1){var Gt=ft(Ht);if(ye&&(Gt=Gt||0),Gt===void 0){Ze(Ht-1,void 0,!0);break}if(Tt+=Gt,At===0&&Tt<=Ce||Ht===At-1&&Tt+ft(At)<=Ce){Ze(At,null);break}else if(Tt+vt>Ce){Ze(Ht-1,Tt-Gt-Ye+je);break}}ve&&ft(0)+Ye>Ce&&Pe(null)}},[Ce,Ie,je,Ye,Ge,lt]);var yt=Je&&!!ut.length,$t={};Te!==null&&bt&&($t={position:"absolute",left:Te,top:0});var kt={prefixCls:dt,responsive:bt,component:me,invalidate:Rt},Dt=te?function(Tt,Ct){var At=Ge(Tt,Ct);return React__namespace.createElement(OverflowContext.Provider,{key:At,value:_objectSpread2(_objectSpread2({},kt),{},{order:Ct,item:Tt,itemKey:At,registerSize:tt,display:Ct<=rt})},te(Tt,Ct))}:function(Tt,Ct){var At=Ge(Tt,Ct);return React__namespace.createElement(Item$5,_extends({},kt,{order:Ct,key:At,item:Tt,renderItem:et,itemKey:At,registerSize:tt,display:Ct<=rt}))},St={order:yt?rt:Number.MAX_SAFE_INTEGER,className:"".concat(dt,"-rest"),registerSize:qe,display:yt},Bt=de||defaultRenderRest,It=le?React__namespace.createElement(OverflowContext.Provider,{value:_objectSpread2(_objectSpread2({},kt),St)},le(ut)):React__namespace.createElement(Item$5,_extends({},kt,St),typeof Bt=="function"?Bt(ut):Bt),Pt=React__namespace.createElement(he,_extends({className:classNames(!Rt&&F,se),style:ie,ref:$},pe),lt.map(Dt),wt?It:null,ve&&React__namespace.createElement(Item$5,_extends({},kt,{responsive:ht,responsiveDisabled:!bt,order:rt,className:"".concat(dt,"-suffix"),registerSize:ot,display:!0,style:$t}),ve));return ht?React__namespace.createElement(RefResizeObserver,{onResize:nt,disabled:!bt},Pt):Pt}var ForwardOverflow=React__namespace.forwardRef(Overflow);ForwardOverflow.displayName="Overflow",ForwardOverflow.Item=RawItem,ForwardOverflow.RESPONSIVE=RESPONSIVE,ForwardOverflow.INVALIDATE=INVALIDATE;function composeProps(C,$,V){var F=_objectSpread2(_objectSpread2({},C),V?$:{});return Object.keys($).forEach(function(K){var J=$[K];typeof J=="function"&&(F[K]=function(){for(var ee,te=arguments.length,ne=new Array(te),re=0;re<te;re++)ne[re]=arguments[re];return J.apply(void 0,ne),(ee=C[K])===null||ee===void 0?void 0:ee.call.apply(ee,[C].concat(ne))})}),F}var _excluded$H=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Input$5=function($,V){var F=$.prefixCls,K=$.id,J=$.inputElement,ee=$.autoFocus,te=$.autoComplete,ne=$.editable,re=$.activeDescendantId,ae=$.value,oe=$.open,ie=$.attrs,se=_objectWithoutProperties($,_excluded$H),ce=J||React__namespace.createElement("input",null),de=ce,le=de.ref,ve=de.props;return warning$6(!("maxLength"in ce.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ce=React__namespace.cloneElement(ce,_objectSpread2(_objectSpread2(_objectSpread2({type:"search"},composeProps(se,ve,!0)),{},{id:K,ref:composeRef(V,le),autoComplete:te||"off",autoFocus:ee,className:classNames("".concat(F,"-selection-search-input"),ve==null?void 0:ve.className),role:"combobox","aria-expanded":oe||!1,"aria-haspopup":"listbox","aria-owns":"".concat(K,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(K,"_list"),"aria-activedescendant":oe?re:void 0},ie),{},{value:ne?ae:"",readOnly:!ne,unselectable:ne?null:"on",style:_objectSpread2(_objectSpread2({},ve.style),{},{opacity:ne?null:0})})),ce},RefInput=React__namespace.forwardRef(Input$5);process.env.NODE_ENV!=="production"&&(RefInput.displayName="Input");function toArray$4(C){return Array.isArray(C)?C:C!==void 0?[C]:[]}var isClient=typeof window!="undefined"&&window.document&&window.document.documentElement,isBrowserClient$2=process.env.NODE_ENV!=="test"&&isClient;function hasValue(C){return C!=null}function isComboNoValue(C){return!C&&C!==0}function isTitleType$1(C){return["string","number"].includes(_typeof(C))}function getTitle(C){var $=void 0;return C&&(isTitleType$1(C.title)?$=C.title.toString():isTitleType$1(C.label)&&($=C.label.toString())),$}function useLayoutEffect(C,$){isBrowserClient$2?React__namespace.useLayoutEffect(C,$):React__namespace.useEffect(C,$)}function itemKey$1(C){var $;return($=C.key)!==null&&$!==void 0?$:C.value}var onPreventMouseDown=function($){$.preventDefault(),$.stopPropagation()},SelectSelector=function($){var V=$.id,F=$.prefixCls,K=$.values,J=$.open,ee=$.searchValue,te=$.autoClearSearchValue,ne=$.inputRef,re=$.placeholder,ae=$.disabled,oe=$.mode,ie=$.showSearch,se=$.autoFocus,ce=$.autoComplete,de=$.activeDescendantId,le=$.tabIndex,ve=$.removeIcon,fe=$.maxTagCount,he=$.maxTagTextLength,me=$.maxTagPlaceholder,ue=me===void 0?function(Me){return"+ ".concat(Me.length," ...")}:me,pe=$.tagRender,ye=$.onToggleOpen,be=$.onRemove,ge=$.onInputChange,_e=$.onInputPaste,Se=$.onInputKeyDown,Ee=$.onInputMouseDown,Ce=$.onInputCompositionStart,xe=$.onInputCompositionEnd,$e=$.onInputBlur,Ie=React__namespace.useRef(null),Fe=React.useState(0),Ne=_slicedToArray(Fe,2),De=Ne[0],Oe=Ne[1],we=React.useState(!1),Ae=_slicedToArray(we,2),ke=Ae[0],je=Ae[1],ze="".concat(F,"-selection"),Ve=J||oe==="multiple"&&te===!1||oe==="tags"?ee:"",Xe=oe==="tags"||oe==="multiple"&&te===!1||ie&&(J||ke);useLayoutEffect(function(){Oe(Ie.current.scrollWidth)},[Ve]);var Ye=function(He,We,Ke,rt,st){return React__namespace.createElement("span",{title:getTitle(He),className:classNames("".concat(ze,"-item"),_defineProperty({},"".concat(ze,"-item-disabled"),Ke))},React__namespace.createElement("span",{className:"".concat(ze,"-item-content")},We),rt&&React__namespace.createElement(TransBtn,{className:"".concat(ze,"-item-remove"),onMouseDown:onPreventMouseDown,onClick:st,customizeIcon:ve},"×"))},at=function(He,We,Ke,rt,st,it){var Je=function(dt){onPreventMouseDown(dt),ye(!J)};return React__namespace.createElement("span",{onMouseDown:Je},pe({label:We,value:He,disabled:Ke,closable:rt,onClose:st,isMaxTag:!!it}))},Ue=function(He){var We=He.disabled,Ke=He.label,rt=He.value,st=!ae&&!We,it=Ke;if(typeof he=="number"&&(typeof Ke=="string"||typeof Ke=="number")){var Je=String(it);Je.length>he&&(it="".concat(Je.slice(0,he),"..."))}var ct=function(vt){vt&&vt.stopPropagation(),be(He)};return typeof pe=="function"?at(rt,it,We,st,ct):Ye(He,it,We,st,ct)},Le=function(He){if(!K.length)return null;var We=typeof ue=="function"?ue(He):ue;return typeof pe=="function"?at(void 0,We,!1,!1,void 0,!0):Ye({title:We},We,!1)},Te=React__namespace.createElement("div",{className:"".concat(ze,"-search"),style:{width:De},onFocus:function(){je(!0)},onBlur:function(){je(!1)}},React__namespace.createElement(RefInput,{ref:ne,open:J,prefixCls:F,id:V,inputElement:null,disabled:ae,autoFocus:se,autoComplete:ce,editable:Xe,activeDescendantId:de,value:Ve,onKeyDown:Se,onMouseDown:Ee,onChange:ge,onPaste:_e,onCompositionStart:Ce,onCompositionEnd:xe,onBlur:$e,tabIndex:le,attrs:pickAttrs($,!0)}),React__namespace.createElement("span",{ref:Ie,className:"".concat(ze,"-search-mirror"),"aria-hidden":!0},Ve," ")),Pe=React__namespace.createElement(ForwardOverflow,{prefixCls:"".concat(ze,"-overflow"),data:K,renderItem:Ue,renderRest:Le,suffix:Te,itemKey:itemKey$1,maxCount:fe});return React__namespace.createElement("span",{className:"".concat(ze,"-wrap")},Pe,!K.length&&!Ve&&React__namespace.createElement("span",{className:"".concat(ze,"-placeholder")},re))},SingleSelector=function($){var V=$.inputElement,F=$.prefixCls,K=$.id,J=$.inputRef,ee=$.disabled,te=$.autoFocus,ne=$.autoComplete,re=$.activeDescendantId,ae=$.mode,oe=$.open,ie=$.values,se=$.placeholder,ce=$.tabIndex,de=$.showSearch,le=$.searchValue,ve=$.activeValue,fe=$.maxLength,he=$.onInputKeyDown,me=$.onInputMouseDown,ue=$.onInputChange,pe=$.onInputPaste,ye=$.onInputCompositionStart,be=$.onInputCompositionEnd,ge=$.onInputBlur,_e=$.title,Se=React__namespace.useState(!1),Ee=_slicedToArray(Se,2),Ce=Ee[0],xe=Ee[1],$e=ae==="combobox",Ie=$e||de,Fe=ie[0],Ne=le||"";$e&&ve&&!Ce&&(Ne=ve),React__namespace.useEffect(function(){$e&&xe(!1)},[$e,ve]);var De=ae!=="combobox"&&!oe&&!de?!1:!!Ne,Oe=_e===void 0?getTitle(Fe):_e,we=React__namespace.useMemo(function(){return Fe?null:React__namespace.createElement("span",{className:"".concat(F,"-selection-placeholder"),style:De?{visibility:"hidden"}:void 0},se)},[Fe,De,se,F]);return React__namespace.createElement("span",{className:"".concat(F,"-selection-wrap")},React__namespace.createElement("span",{className:"".concat(F,"-selection-search")},React__namespace.createElement(RefInput,{ref:J,prefixCls:F,id:K,open:oe,inputElement:V,disabled:ee,autoFocus:te,autoComplete:ne,editable:Ie,activeDescendantId:re,value:Ne,onKeyDown:he,onMouseDown:me,onChange:function(ke){xe(!0),ue(ke)},onPaste:pe,onCompositionStart:ye,onCompositionEnd:be,onBlur:ge,tabIndex:ce,attrs:pickAttrs($,!0),maxLength:$e?fe:void 0})),!$e&&Fe?React__namespace.createElement("span",{className:"".concat(F,"-selection-item"),title:Oe,style:De?{visibility:"hidden"}:void 0},Fe.label):null,we)},Selector=function($,V){var F=React.useRef(null),K=React.useRef(!1),J=$.prefixCls,ee=$.open,te=$.mode,ne=$.showSearch,re=$.tokenWithEnter,ae=$.disabled,oe=$.prefix,ie=$.autoClearSearchValue,se=$.onSearch,ce=$.onSearchSubmit,de=$.onToggleOpen,le=$.onInputKeyDown,ve=$.onInputBlur,fe=$.domRef;React__namespace.useImperativeHandle(V,function(){return{focus:function(Oe){F.current.focus(Oe)},blur:function(){F.current.blur()}}});var he=useLock(0),me=_slicedToArray(he,2),ue=me[0],pe=me[1],ye=function(Oe){var we=Oe.which,Ae=F.current instanceof HTMLTextAreaElement;!Ae&&ee&&(we===KeyCode.UP||we===KeyCode.DOWN)&&Oe.preventDefault(),le&&le(Oe),we===KeyCode.ENTER&&te==="tags"&&!K.current&&!ee&&(ce==null||ce(Oe.target.value)),!(Ae&&!ee&&~[KeyCode.UP,KeyCode.DOWN,KeyCode.LEFT,KeyCode.RIGHT].indexOf(we))&&isValidateOpenKey(we)&&de(!0)},be=function(){pe(!0)},ge=React.useRef(null),_e=function(Oe){se(Oe,!0,K.current)!==!1&&de(!0)},Se=function(){K.current=!0},Ee=function(Oe){K.current=!1,te!=="combobox"&&_e(Oe.target.value)},Ce=function(Oe){var we=Oe.target.value;if(re&&ge.current&&/[\r\n]/.test(ge.current)){var Ae=ge.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");we=we.replace(Ae,ge.current)}ge.current=null,_e(we)},xe=function(Oe){var we=Oe.clipboardData,Ae=we==null?void 0:we.getData("text");ge.current=Ae||""},$e=function(Oe){var we=Oe.target;if(we!==F.current){var Ae=document.body.style.msTouchAction!==void 0;Ae?setTimeout(function(){F.current.focus()}):F.current.focus()}},Ie=function(Oe){var we=ue();Oe.target!==F.current&&!we&&!(te==="combobox"&&ae)&&Oe.preventDefault(),(te!=="combobox"&&(!ne||!we)||!ee)&&(ee&&ie!==!1&&se("",!0,!1),de())},Fe={inputRef:F,onInputKeyDown:ye,onInputMouseDown:be,onInputChange:Ce,onInputPaste:xe,onInputCompositionStart:Se,onInputCompositionEnd:Ee,onInputBlur:ve},Ne=te==="multiple"||te==="tags"?React__namespace.createElement(SelectSelector,_extends({},$,Fe)):React__namespace.createElement(SingleSelector,_extends({},$,Fe));return React__namespace.createElement("div",{ref:fe,className:"".concat(J,"-selector"),onClick:$e,onMouseDown:Ie},oe&&React__namespace.createElement("div",{className:"".concat(J,"-prefix")},oe),Ne)},ForwardSelector=React__namespace.forwardRef(Selector);process.env.NODE_ENV!=="production"&&(ForwardSelector.displayName="Selector");function Arrow(C){var $=C.prefixCls,V=C.align,F=C.arrow,K=C.arrowPos,J=F||{},ee=J.className,te=J.content,ne=K.x,re=ne===void 0?0:ne,ae=K.y,oe=ae===void 0?0:ae,ie=React__namespace.useRef();if(!V||!V.points)return null;var se={position:"absolute"};if(V.autoArrow!==!1){var ce=V.points[0],de=V.points[1],le=ce[0],ve=ce[1],fe=de[0],he=de[1];le===fe||!["t","b"].includes(le)?se.top=oe:le==="t"?se.top=0:se.bottom=0,ve===he||!["l","r"].includes(ve)?se.left=re:ve==="l"?se.left=0:se.right=0}return React__namespace.createElement("div",{ref:ie,className:classNames("".concat($,"-arrow"),ee),style:se},te)}function Mask(C){var $=C.prefixCls,V=C.open,F=C.zIndex,K=C.mask,J=C.motion;return K?React__namespace.createElement(CSSMotion,_extends({},J,{motionAppear:!0,visible:V,removeOnLeave:!0}),function(ee){var te=ee.className;return React__namespace.createElement("div",{style:{zIndex:F},className:classNames("".concat($,"-mask"),te)})}):null}var PopupContent=React__namespace.memo(function(C){var $=C.children;return $},function(C,$){return $.cache});process.env.NODE_ENV!=="production"&&(PopupContent.displayName="PopupContent");var Popup$1=React__namespace.forwardRef(function(C,$){var V=C.popup,F=C.className,K=C.prefixCls,J=C.style,ee=C.target,te=C.onVisibleChanged,ne=C.open,re=C.keepDom,ae=C.fresh,oe=C.onClick,ie=C.mask,se=C.arrow,ce=C.arrowPos,de=C.align,le=C.motion,ve=C.maskMotion,fe=C.forceRender,he=C.getPopupContainer,me=C.autoDestroy,ue=C.portal,pe=C.zIndex,ye=C.onMouseEnter,be=C.onMouseLeave,ge=C.onPointerEnter,_e=C.onPointerDownCapture,Se=C.ready,Ee=C.offsetX,Ce=C.offsetY,xe=C.offsetR,$e=C.offsetB,Ie=C.onAlign,Fe=C.onPrepare,Ne=C.stretch,De=C.targetWidth,Oe=C.targetHeight,we=typeof V=="function"?V():V,Ae=ne||re,ke=(he==null?void 0:he.length)>0,je=React__namespace.useState(!he||!ke),ze=_slicedToArray(je,2),Ve=ze[0],Xe=ze[1];if(useLayoutEffect$1(function(){!Ve&&ke&&ee&&Xe(!0)},[Ve,ke,ee]),!Ve)return null;var Ye="auto",at={left:"-1000vw",top:"-1000vh",right:Ye,bottom:Ye};if(Se||!ne){var Ue,Le=de.points,Te=de.dynamicInset||((Ue=de._experimental)===null||Ue===void 0?void 0:Ue.dynamicInset),Pe=Te&&Le[0][1]==="r",Me=Te&&Le[0][0]==="b";Pe?(at.right=xe,at.left=Ye):(at.left=Ee,at.right=Ye),Me?(at.bottom=$e,at.top=Ye):(at.top=Ce,at.bottom=Ye)}var He={};return Ne&&(Ne.includes("height")&&Oe?He.height=Oe:Ne.includes("minHeight")&&Oe&&(He.minHeight=Oe),Ne.includes("width")&&De?He.width=De:Ne.includes("minWidth")&&De&&(He.minWidth=De)),ne||(He.pointerEvents="none"),React__namespace.createElement(ue,{open:fe||Ae,getContainer:he&&function(){return he(ee)},autoDestroy:me},React__namespace.createElement(Mask,{prefixCls:K,open:ne,zIndex:pe,mask:ie,motion:ve}),React__namespace.createElement(RefResizeObserver,{onResize:Ie,disabled:!ne},function(We){return React__namespace.createElement(CSSMotion,_extends({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:fe,leavedClassName:"".concat(K,"-hidden")},le,{onAppearPrepare:Fe,onEnterPrepare:Fe,visible:ne,onVisibleChanged:function(rt){var st;le==null||(st=le.onVisibleChanged)===null||st===void 0||st.call(le,rt),te(rt)}}),function(Ke,rt){var st=Ke.className,it=Ke.style,Je=classNames(K,st,F);return React__namespace.createElement("div",{ref:composeRef(We,$,rt),className:Je,style:_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({"--arrow-x":"".concat(ce.x||0,"px"),"--arrow-y":"".concat(ce.y||0,"px")},at),He),it),{},{boxSizing:"border-box",zIndex:pe},J),onMouseEnter:ye,onMouseLeave:be,onPointerEnter:ge,onClick:oe,onPointerDownCapture:_e},se&&React__namespace.createElement(Arrow,{prefixCls:K,arrow:se,arrowPos:ce,align:de}),React__namespace.createElement(PopupContent,{cache:!ne&&!ae},we))})}))});process.env.NODE_ENV!=="production"&&(Popup$1.displayName="Popup");var TriggerWrapper=React__namespace.forwardRef(function(C,$){var V=C.children,F=C.getTriggerDOMNode,K=supportRef(V),J=React__namespace.useCallback(function(te){fillRef($,F?F(te):te)},[F]),ee=useComposeRef(J,getNodeRef(V));return K?React__namespace.cloneElement(V,{ref:ee}):V});process.env.NODE_ENV!=="production"&&(TriggerWrapper.displayName="TriggerWrapper");var TriggerContext=React__namespace.createContext(null);function toArray$3(C){return C?Array.isArray(C)?C:[C]:[]}function useAction(C,$,V,F){return React__namespace.useMemo(function(){var K=toArray$3(V!=null?V:$),J=toArray$3(F!=null?F:$),ee=new Set(K),te=new Set(J);return C&&(ee.has("hover")&&(ee.delete("hover"),ee.add("click")),te.has("hover")&&(te.delete("hover"),te.add("click"))),[ee,te]},[C,$,V,F])}function isPointsEq(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],V=arguments.length>2?arguments[2]:void 0;return V?C[0]===$[0]:C[0]===$[0]&&C[1]===$[1]}function getAlignPopupClassName(C,$,V,F){for(var K=V.points,J=Object.keys(C),ee=0;ee<J.length;ee+=1){var te,ne=J[ee];if(isPointsEq((te=C[ne])===null||te===void 0?void 0:te.points,K,F))return"".concat($,"-placement-").concat(ne)}return""}function getMotion$1(C,$,V,F){return $||(V?{motionName:"".concat(C,"-").concat(V)}:F?{motionName:F}:null)}function getWin(C){return C.ownerDocument.defaultView}function collectScroller(C){for(var $=[],V=C==null?void 0:C.parentElement,F=["hidden","scroll","clip","auto"];V;){var K=getWin(V).getComputedStyle(V),J=K.overflowX,ee=K.overflowY,te=K.overflow;[J,ee,te].some(function(ne){return F.includes(ne)})&&$.push(V),V=V.parentElement}return $}function toNum(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(C)?$:C}function getPxValue(C){return toNum(parseFloat(C),0)}function getVisibleArea(C,$){var V=_objectSpread2({},C);return($||[]).forEach(function(F){if(!(F instanceof HTMLBodyElement||F instanceof HTMLHtmlElement)){var K=getWin(F).getComputedStyle(F),J=K.overflow,ee=K.overflowClipMargin,te=K.borderTopWidth,ne=K.borderBottomWidth,re=K.borderLeftWidth,ae=K.borderRightWidth,oe=F.getBoundingClientRect(),ie=F.offsetHeight,se=F.clientHeight,ce=F.offsetWidth,de=F.clientWidth,le=getPxValue(te),ve=getPxValue(ne),fe=getPxValue(re),he=getPxValue(ae),me=toNum(Math.round(oe.width/ce*1e3)/1e3),ue=toNum(Math.round(oe.height/ie*1e3)/1e3),pe=(ce-de-fe-he)*me,ye=(ie-se-le-ve)*ue,be=le*ue,ge=ve*ue,_e=fe*me,Se=he*me,Ee=0,Ce=0;if(J==="clip"){var xe=getPxValue(ee);Ee=xe*me,Ce=xe*ue}var $e=oe.x+_e-Ee,Ie=oe.y+be-Ce,Fe=$e+oe.width+2*Ee-_e-Se-pe,Ne=Ie+oe.height+2*Ce-be-ge-ye;V.left=Math.max(V.left,$e),V.top=Math.max(V.top,Ie),V.right=Math.min(V.right,Fe),V.bottom=Math.min(V.bottom,Ne)}}),V}function getUnitOffset(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,V="".concat($),F=V.match(/^(.*)\%$/);return F?C*(parseFloat(F[1])/100):parseFloat(V)}function getNumberOffset(C,$){var V=$||[],F=_slicedToArray(V,2),K=F[0],J=F[1];return[getUnitOffset(C.width,K),getUnitOffset(C.height,J)]}function splitPoints(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[C[0],C[1]]}function getAlignPoint(C,$){var V=$[0],F=$[1],K,J;return V==="t"?J=C.y:V==="b"?J=C.y+C.height:J=C.y+C.height/2,F==="l"?K=C.x:F==="r"?K=C.x+C.width:K=C.x+C.width/2,{x:K,y:J}}function reversePoints(C,$){var V={t:"b",b:"t",l:"r",r:"l"};return C.map(function(F,K){return K===$?V[F]||"c":F}).join("")}function useAlign(C,$,V,F,K,J,ee){var te=React__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:K[F]||{}}),ne=_slicedToArray(te,2),re=ne[0],ae=ne[1],oe=React__namespace.useRef(0),ie=React__namespace.useMemo(function(){return $?collectScroller($):[]},[$]),se=React__namespace.useRef({}),ce=function(){se.current={}};C||ce();var de=useEvent(function(){if($&&V&&C){let zn=function(fr,Yn){var Jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vt,pr=je.x+fr,gr=je.y+Yn,zr=pr+Pe,Or=gr+Te,Ir=Math.max(pr,Jn.left),fn=Math.max(gr,Jn.top),Rn=Math.min(zr,Jn.right),Wn=Math.min(Or,Jn.bottom);return Math.max(0,(Rn-Ir)*(Wn-fn))},Gn=function(){sn=je.y+At,gn=sn+Te,mt=je.x+Ct,Ot=mt+Pe};var fe,he,me,ue,pe=$,ye=pe.ownerDocument,be=getWin(pe),ge=be.getComputedStyle(pe),_e=ge.width,Se=ge.height,Ee=ge.position,Ce=pe.style.left,xe=pe.style.top,$e=pe.style.right,Ie=pe.style.bottom,Fe=pe.style.overflow,Ne=_objectSpread2(_objectSpread2({},K[F]),J),De=ye.createElement("div");(fe=pe.parentElement)===null||fe===void 0||fe.appendChild(De),De.style.left="".concat(pe.offsetLeft,"px"),De.style.top="".concat(pe.offsetTop,"px"),De.style.position=Ee,De.style.height="".concat(pe.offsetHeight,"px"),De.style.width="".concat(pe.offsetWidth,"px"),pe.style.left="0",pe.style.top="0",pe.style.right="auto",pe.style.bottom="auto",pe.style.overflow="hidden";var Oe;if(Array.isArray(V))Oe={x:V[0],y:V[1],width:0,height:0};else{var we,Ae,ke=V.getBoundingClientRect();ke.x=(we=ke.x)!==null&&we!==void 0?we:ke.left,ke.y=(Ae=ke.y)!==null&&Ae!==void 0?Ae:ke.top,Oe={x:ke.x,y:ke.y,width:ke.width,height:ke.height}}var je=pe.getBoundingClientRect();je.x=(he=je.x)!==null&&he!==void 0?he:je.left,je.y=(me=je.y)!==null&&me!==void 0?me:je.top;var ze=ye.documentElement,Ve=ze.clientWidth,Xe=ze.clientHeight,Ye=ze.scrollWidth,at=ze.scrollHeight,Ue=ze.scrollTop,Le=ze.scrollLeft,Te=je.height,Pe=je.width,Me=Oe.height,He=Oe.width,We={left:0,top:0,right:Ve,bottom:Xe},Ke={left:-Le,top:-Ue,right:Ye-Le,bottom:at-Ue},rt=Ne.htmlRegion,st="visible",it="visibleFirst";rt!=="scroll"&&rt!==it&&(rt=st);var Je=rt===it,ct=getVisibleArea(Ke,ie),dt=getVisibleArea(We,ie),vt=rt===st?dt:ct,ht=Je?dt:vt;pe.style.left="auto",pe.style.top="auto",pe.style.right="0",pe.style.bottom="0";var bt=pe.getBoundingClientRect();pe.style.left=Ce,pe.style.top=xe,pe.style.right=$e,pe.style.bottom=Ie,pe.style.overflow=Fe,(ue=pe.parentElement)===null||ue===void 0||ue.removeChild(De);var Rt=toNum(Math.round(Pe/parseFloat(_e)*1e3)/1e3),wt=toNum(Math.round(Te/parseFloat(Se)*1e3)/1e3);if(Rt===0||wt===0||isDOM(V)&&!isVisible(V))return;var lt=Ne.offset,ut=Ne.targetOffset,Ge=getNumberOffset(je,lt),et=_slicedToArray(Ge,2),Ze=et[0],nt=et[1],tt=getNumberOffset(Oe,ut),qe=_slicedToArray(tt,2),ot=qe[0],ft=qe[1];Oe.x-=ot,Oe.y-=ft;var yt=Ne.points||[],$t=_slicedToArray(yt,2),kt=$t[0],Dt=$t[1],St=splitPoints(Dt),Bt=splitPoints(kt),It=getAlignPoint(Oe,St),Pt=getAlignPoint(je,Bt),Tt=_objectSpread2({},Ne),Ct=It.x-Pt.x+Ze,At=It.y-Pt.y+nt,Ht=zn(Ct,At),Gt=zn(Ct,At,dt),zt=getAlignPoint(Oe,["t","l"]),Ft=getAlignPoint(je,["t","l"]),Vt=getAlignPoint(Oe,["b","r"]),Kt=getAlignPoint(je,["b","r"]),qt=Ne.overflow||{},ln=qt.adjustX,Cn=qt.adjustY,Wt=qt.shiftX,Jt=qt.shiftY,dn=function(Yn){return typeof Yn=="boolean"?Yn:Yn>=0},sn,gn,mt,Ot;Gn();var pt=dn(Cn),_t=Bt[0]===St[0];if(pt&&Bt[0]==="t"&&(gn>ht.bottom||se.current.bt)){var Et=At;_t?Et-=Te-Me:Et=zt.y-Kt.y-nt;var Nt=zn(Ct,Et),Mt=zn(Ct,Et,dt);Nt>Ht||Nt===Ht&&(!Je||Mt>=Gt)?(se.current.bt=!0,At=Et,nt=-nt,Tt.points=[reversePoints(Bt,0),reversePoints(St,0)]):se.current.bt=!1}if(pt&&Bt[0]==="b"&&(sn<ht.top||se.current.tb)){var Lt=At;_t?Lt+=Te-Me:Lt=Vt.y-Ft.y-nt;var Xt=zn(Ct,Lt),vn=zn(Ct,Lt,dt);Xt>Ht||Xt===Ht&&(!Je||vn>=Gt)?(se.current.tb=!0,At=Lt,nt=-nt,Tt.points=[reversePoints(Bt,0),reversePoints(St,0)]):se.current.tb=!1}var bn=dn(ln),_n=Bt[1]===St[1];if(bn&&Bt[1]==="l"&&(Ot>ht.right||se.current.rl)){var Nn=Ct;_n?Nn-=Pe-He:Nn=zt.x-Kt.x-Ze;var Tn=zn(Nn,At),Qt=zn(Nn,At,dt);Tn>Ht||Tn===Ht&&(!Je||Qt>=Gt)?(se.current.rl=!0,Ct=Nn,Ze=-Ze,Tt.points=[reversePoints(Bt,1),reversePoints(St,1)]):se.current.rl=!1}if(bn&&Bt[1]==="r"&&(mt<ht.left||se.current.lr)){var Yt=Ct;_n?Yt+=Pe-He:Yt=Vt.x-Ft.x-Ze;var wn=zn(Yt,At),Fn=zn(Yt,At,dt);wn>Ht||wn===Ht&&(!Je||Fn>=Gt)?(se.current.lr=!0,Ct=Yt,Ze=-Ze,Tt.points=[reversePoints(Bt,1),reversePoints(St,1)]):se.current.lr=!1}Gn();var Ln=Wt===!0?0:Wt;typeof Ln=="number"&&(mt<dt.left&&(Ct-=mt-dt.left-Ze,Oe.x+He<dt.left+Ln&&(Ct+=Oe.x-dt.left+He-Ln)),Ot>dt.right&&(Ct-=Ot-dt.right-Ze,Oe.x>dt.right-Ln&&(Ct+=Oe.x-dt.right+Ln)));var Vn=Jt===!0?0:Jt;typeof Vn=="number"&&(sn<dt.top&&(At-=sn-dt.top-nt,Oe.y+Me<dt.top+Vn&&(At+=Oe.y-dt.top+Me-Vn)),gn>dt.bottom&&(At-=gn-dt.bottom-nt,Oe.y>dt.bottom-Vn&&(At+=Oe.y-dt.bottom+Vn)));var nr=je.x+Ct,Un=nr+Pe,Pn=je.y+At,rr=Pn+Te,lr=Oe.x,En=lr+He,Zt=Oe.y,Sn=Zt+Me,$n=Math.max(nr,lr),On=Math.min(Un,En),An=($n+On)/2,Kn=An-nr,Xn=Math.max(Pn,Zt),or=Math.min(rr,Sn),cr=(Xn+or)/2,ur=cr-Pn;ee==null||ee($,Tt);var hn=bt.right-je.x-(Ct+je.width),yn=bt.bottom-je.y-(At+je.height);Rt===1&&(Ct=Math.round(Ct),hn=Math.round(hn)),wt===1&&(At=Math.round(At),yn=Math.round(yn));var Bn={ready:!0,offsetX:Ct/Rt,offsetY:At/wt,offsetR:hn/Rt,offsetB:yn/wt,arrowX:Kn/Rt,arrowY:ur/wt,scaleX:Rt,scaleY:wt,align:Tt};ae(Bn)}}),le=function(){oe.current+=1;var he=oe.current;Promise.resolve().then(function(){oe.current===he&&de()})},ve=function(){ae(function(he){return _objectSpread2(_objectSpread2({},he),{},{ready:!1})})};return useLayoutEffect$1(ve,[F]),useLayoutEffect$1(function(){C||ve()},[C]),[re.ready,re.offsetX,re.offsetY,re.offsetR,re.offsetB,re.arrowX,re.arrowY,re.scaleX,re.scaleY,re.align,le]}function useWatch(C,$,V,F,K){useLayoutEffect$1(function(){if(C&&$&&V){let oe=function(){F(),K()};var J=$,ee=V,te=collectScroller(J),ne=collectScroller(ee),re=getWin(ee),ae=new Set([re].concat(_toConsumableArray(te),_toConsumableArray(ne)));return ae.forEach(function(ie){ie.addEventListener("scroll",oe,{passive:!0})}),re.addEventListener("resize",oe,{passive:!0}),F(),function(){ae.forEach(function(ie){ie.removeEventListener("scroll",oe),re.removeEventListener("resize",oe)})}}},[C,$,V])}function useWinClick(C,$,V,F,K,J,ee,te){var ne=React__namespace.useRef(C);ne.current=C;var re=React__namespace.useRef(!1);React__namespace.useEffect(function(){if($&&F&&(!K||J)){var oe=function(){re.current=!1},ie=function(me){var ue;ne.current&&!ee(((ue=me.composedPath)===null||ue===void 0||(ue=ue.call(me))===null||ue===void 0?void 0:ue[0])||me.target)&&!re.current&&te(!1)},se=getWin(F);se.addEventListener("pointerdown",oe,!0),se.addEventListener("mousedown",ie,!0),se.addEventListener("contextmenu",ie,!0);var ce=getShadowRoot(V);if(ce&&(ce.addEventListener("mousedown",ie,!0),ce.addEventListener("contextmenu",ie,!0)),process.env.NODE_ENV!=="production"){var de,le,ve=V==null||(de=V.getRootNode)===null||de===void 0?void 0:de.call(V),fe=(le=F.getRootNode)===null||le===void 0?void 0:le.call(F);warning$6(ve===fe,"trigger element and popup element should in same shadow root.")}return function(){se.removeEventListener("pointerdown",oe,!0),se.removeEventListener("mousedown",ie,!0),se.removeEventListener("contextmenu",ie,!0),ce&&(ce.removeEventListener("mousedown",ie,!0),ce.removeEventListener("contextmenu",ie,!0))}}},[$,V,F,K,J]);function ae(){re.current=!0}return ae}var _excluded$G=["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"];function generateTrigger(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Portal,$=React__namespace.forwardRef(function(V,F){var K=V.prefixCls,J=K===void 0?"rc-trigger-popup":K,ee=V.children,te=V.action,ne=te===void 0?"hover":te,re=V.showAction,ae=V.hideAction,oe=V.popupVisible,ie=V.defaultPopupVisible,se=V.onPopupVisibleChange,ce=V.afterPopupVisibleChange,de=V.mouseEnterDelay,le=V.mouseLeaveDelay,ve=le===void 0?.1:le,fe=V.focusDelay,he=V.blurDelay,me=V.mask,ue=V.maskClosable,pe=ue===void 0?!0:ue,ye=V.getPopupContainer,be=V.forceRender,ge=V.autoDestroy,_e=V.destroyPopupOnHide,Se=V.popup,Ee=V.popupClassName,Ce=V.popupStyle,xe=V.popupPlacement,$e=V.builtinPlacements,Ie=$e===void 0?{}:$e,Fe=V.popupAlign,Ne=V.zIndex,De=V.stretch,Oe=V.getPopupClassNameFromAlign,we=V.fresh,Ae=V.alignPoint,ke=V.onPopupClick,je=V.onPopupAlign,ze=V.arrow,Ve=V.popupMotion,Xe=V.maskMotion,Ye=V.popupTransitionName,at=V.popupAnimation,Ue=V.maskTransitionName,Le=V.maskAnimation,Te=V.className,Pe=V.getTriggerDOMNode,Me=_objectWithoutProperties(V,_excluded$G),He=ge||_e||!1,We=React__namespace.useState(!1),Ke=_slicedToArray(We,2),rt=Ke[0],st=Ke[1];useLayoutEffect$1(function(){st(isMobile())},[]);var it=React__namespace.useRef({}),Je=React__namespace.useContext(TriggerContext),ct=React__namespace.useMemo(function(){return{registerSubPopup:function(Rn,Wn){it.current[Rn]=Wn,Je==null||Je.registerSubPopup(Rn,Wn)}}},[Je]),dt=useId$2(),vt=React__namespace.useState(null),ht=_slicedToArray(vt,2),bt=ht[0],Rt=ht[1],wt=React__namespace.useRef(null),lt=useEvent(function(fn){wt.current=fn,isDOM(fn)&&bt!==fn&&Rt(fn),Je==null||Je.registerSubPopup(dt,fn)}),ut=React__namespace.useState(null),Ge=_slicedToArray(ut,2),et=Ge[0],Ze=Ge[1],nt=React__namespace.useRef(null),tt=useEvent(function(fn){isDOM(fn)&&et!==fn&&(Ze(fn),nt.current=fn)}),qe=React__namespace.Children.only(ee),ot=(qe==null?void 0:qe.props)||{},ft={},yt=useEvent(function(fn){var Rn,Wn,ar=et;return(ar==null?void 0:ar.contains(fn))||((Rn=getShadowRoot(ar))===null||Rn===void 0?void 0:Rn.host)===fn||fn===ar||(bt==null?void 0:bt.contains(fn))||((Wn=getShadowRoot(bt))===null||Wn===void 0?void 0:Wn.host)===fn||fn===bt||Object.values(it.current).some(function(qn){return(qn==null?void 0:qn.contains(fn))||fn===qn})}),$t=getMotion$1(J,Ve,at,Ye),kt=getMotion$1(J,Xe,Le,Ue),Dt=React__namespace.useState(ie||!1),St=_slicedToArray(Dt,2),Bt=St[0],It=St[1],Pt=oe!=null?oe:Bt,Tt=useEvent(function(fn){oe===void 0&&It(fn)});useLayoutEffect$1(function(){It(oe||!1)},[oe]);var Ct=React__namespace.useRef(Pt);Ct.current=Pt;var At=React__namespace.useRef([]);At.current=[];var Ht=useEvent(function(fn){var Rn;Tt(fn),((Rn=At.current[At.current.length-1])!==null&&Rn!==void 0?Rn:Pt)!==fn&&(At.current.push(fn),se==null||se(fn))}),Gt=React__namespace.useRef(),zt=function(){clearTimeout(Gt.current)},Ft=function(Rn){var Wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;zt(),Wn===0?Ht(Rn):Gt.current=setTimeout(function(){Ht(Rn)},Wn*1e3)};React__namespace.useEffect(function(){return zt},[]);var Vt=React__namespace.useState(!1),Kt=_slicedToArray(Vt,2),qt=Kt[0],ln=Kt[1];useLayoutEffect$1(function(fn){(!fn||Pt)&&ln(!0)},[Pt]);var Cn=React__namespace.useState(null),Wt=_slicedToArray(Cn,2),Jt=Wt[0],dn=Wt[1],sn=React__namespace.useState(null),gn=_slicedToArray(sn,2),mt=gn[0],Ot=gn[1],pt=function(Rn){Ot([Rn.clientX,Rn.clientY])},_t=useAlign(Pt,bt,Ae&&mt!==null?mt:et,xe,Ie,Fe,je),Et=_slicedToArray(_t,11),Nt=Et[0],Mt=Et[1],Lt=Et[2],Xt=Et[3],vn=Et[4],bn=Et[5],_n=Et[6],Nn=Et[7],Tn=Et[8],Qt=Et[9],Yt=Et[10],wn=useAction(rt,ne,re,ae),Fn=_slicedToArray(wn,2),Ln=Fn[0],Vn=Fn[1],nr=Ln.has("click"),Un=Vn.has("click")||Vn.has("contextMenu"),Pn=useEvent(function(){qt||Yt()}),rr=function(){Ct.current&&Ae&&Un&&Ft(!1)};useWatch(Pt,et,bt,Pn,rr),useLayoutEffect$1(function(){Pn()},[mt,xe]),useLayoutEffect$1(function(){Pt&&!(Ie!=null&&Ie[xe])&&Pn()},[JSON.stringify(Fe)]);var lr=React__namespace.useMemo(function(){var fn=getAlignPopupClassName(Ie,J,Qt,Ae);return classNames(fn,Oe==null?void 0:Oe(Qt))},[Qt,Oe,Ie,J,Ae]);React__namespace.useImperativeHandle(F,function(){return{nativeElement:nt.current,popupElement:wt.current,forceAlign:Pn}});var En=React__namespace.useState(0),Zt=_slicedToArray(En,2),Sn=Zt[0],$n=Zt[1],On=React__namespace.useState(0),An=_slicedToArray(On,2),Kn=An[0],Xn=An[1],or=function(){if(De&&et){var Rn=et.getBoundingClientRect();$n(Rn.width),Xn(Rn.height)}},cr=function(){or(),Pn()},ur=function(Rn){ln(!1),Yt(),ce==null||ce(Rn)},hn=function(){return new Promise(function(Rn){or(),dn(function(){return Rn})})};useLayoutEffect$1(function(){Jt&&(Yt(),Jt(),dn(null))},[Jt]);function yn(fn,Rn,Wn,ar){ft[fn]=function(qn){var mr;ar==null||ar(qn),Ft(Rn,Wn);for(var Hr=arguments.length,Yr=new Array(Hr>1?Hr-1:0),Mr=1;Mr<Hr;Mr++)Yr[Mr-1]=arguments[Mr];(mr=ot[fn])===null||mr===void 0||mr.call.apply(mr,[ot,qn].concat(Yr))}}(nr||Un)&&(ft.onClick=function(fn){var Rn;Ct.current&&Un?Ft(!1):!Ct.current&&nr&&(pt(fn),Ft(!0));for(var Wn=arguments.length,ar=new Array(Wn>1?Wn-1:0),qn=1;qn<Wn;qn++)ar[qn-1]=arguments[qn];(Rn=ot.onClick)===null||Rn===void 0||Rn.call.apply(Rn,[ot,fn].concat(ar))});var Bn=useWinClick(Pt,Un,et,bt,me,pe,yt,Ft),zn=Ln.has("hover"),Gn=Vn.has("hover"),fr,Yn;zn&&(yn("onMouseEnter",!0,de,function(fn){pt(fn)}),yn("onPointerEnter",!0,de,function(fn){pt(fn)}),fr=function(Rn){(Pt||qt)&&bt!==null&&bt!==void 0&&bt.contains(Rn.target)&&Ft(!0,de)},Ae&&(ft.onMouseMove=function(fn){var Rn;(Rn=ot.onMouseMove)===null||Rn===void 0||Rn.call(ot,fn)})),Gn&&(yn("onMouseLeave",!1,ve),yn("onPointerLeave",!1,ve),Yn=function(){Ft(!1,ve)}),Ln.has("focus")&&yn("onFocus",!0,fe),Vn.has("focus")&&yn("onBlur",!1,he),Ln.has("contextMenu")&&(ft.onContextMenu=function(fn){var Rn;Ct.current&&Vn.has("contextMenu")?Ft(!1):(pt(fn),Ft(!0)),fn.preventDefault();for(var Wn=arguments.length,ar=new Array(Wn>1?Wn-1:0),qn=1;qn<Wn;qn++)ar[qn-1]=arguments[qn];(Rn=ot.onContextMenu)===null||Rn===void 0||Rn.call.apply(Rn,[ot,fn].concat(ar))}),Te&&(ft.className=classNames(ot.className,Te));var Jn=_objectSpread2(_objectSpread2({},ot),ft),pr={},gr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];gr.forEach(function(fn){Me[fn]&&(pr[fn]=function(){for(var Rn,Wn=arguments.length,ar=new Array(Wn),qn=0;qn<Wn;qn++)ar[qn]=arguments[qn];(Rn=Jn[fn])===null||Rn===void 0||Rn.call.apply(Rn,[Jn].concat(ar)),Me[fn].apply(Me,ar)})});var zr=React__namespace.cloneElement(qe,_objectSpread2(_objectSpread2({},Jn),pr)),Or={x:bn,y:_n},Ir=ze?_objectSpread2({},ze!==!0?ze:{}):null;return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(RefResizeObserver,{disabled:!Pt,ref:tt,onResize:cr},React__namespace.createElement(TriggerWrapper,{getTriggerDOMNode:Pe},zr)),React__namespace.createElement(TriggerContext.Provider,{value:ct},React__namespace.createElement(Popup$1,{portal:C,ref:lt,prefixCls:J,popup:Se,className:classNames(Ee,lr),style:Ce,target:et,onMouseEnter:fr,onMouseLeave:Yn,onPointerEnter:fr,zIndex:Ne,open:Pt,keepDom:qt,fresh:we,onClick:ke,onPointerDownCapture:Bn,mask:me,motion:$t,maskMotion:kt,onVisibleChanged:ur,onPrepare:hn,forceRender:be,autoDestroy:He,getPopupContainer:ye,align:Qt,arrow:Ir,arrowPos:Or,ready:Nt,offsetX:Mt,offsetY:Lt,offsetR:Xt,offsetB:vn,onAlign:Pn,stretch:De,targetWidth:Sn/Nn,targetHeight:Kn/Tn})))});return process.env.NODE_ENV!=="production"&&($.displayName="Trigger"),$}const Trigger=generateTrigger(Portal);var _excluded$F=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements$1=function($){var V=$===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:V,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:V,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:V,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:V,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger=function($,V){var F=$.prefixCls;$.disabled;var K=$.visible,J=$.children,ee=$.popupElement,te=$.animation,ne=$.transitionName,re=$.dropdownStyle,ae=$.dropdownClassName,oe=$.direction,ie=oe===void 0?"ltr":oe,se=$.placement,ce=$.builtinPlacements,de=$.dropdownMatchSelectWidth,le=$.dropdownRender,ve=$.dropdownAlign,fe=$.getPopupContainer,he=$.empty,me=$.getTriggerDOMNode,ue=$.onPopupVisibleChange,pe=$.onPopupMouseEnter,ye=_objectWithoutProperties($,_excluded$F),be="".concat(F,"-dropdown"),ge=ee;le&&(ge=le(ee));var _e=React__namespace.useMemo(function(){return ce||getBuiltInPlacements$1(de)},[ce,de]),Se=te?"".concat(be,"-").concat(te):ne,Ee=typeof de=="number",Ce=React__namespace.useMemo(function(){return Ee?null:de===!1?"minWidth":"width"},[de,Ee]),xe=re;Ee&&(xe=_objectSpread2(_objectSpread2({},xe),{},{width:de}));var $e=React__namespace.useRef(null);return React__namespace.useImperativeHandle(V,function(){return{getPopupElement:function(){var Fe;return(Fe=$e.current)===null||Fe===void 0?void 0:Fe.popupElement}}}),React__namespace.createElement(Trigger,_extends({},ye,{showAction:ue?["click"]:[],hideAction:ue?["click"]:[],popupPlacement:se||(ie==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_e,prefixCls:be,popupTransitionName:Se,popup:React__namespace.createElement("div",{onMouseEnter:pe},ge),ref:$e,stretch:Ce,popupAlign:ve,popupVisible:K,getPopupContainer:fe,popupClassName:classNames(ae,_defineProperty({},"".concat(be,"-empty"),he)),popupStyle:xe,getTriggerDOMNode:me,onPopupVisibleChange:ue}),J)},RefSelectTrigger=React__namespace.forwardRef(SelectTrigger);process.env.NODE_ENV!=="production"&&(RefSelectTrigger.displayName="SelectTrigger");function getKey$2(C,$){var V=C.key,F;return"value"in C&&(F=C.value),V!=null?V:F!==void 0?F:"rc-index-key-".concat($)}function isValidCount(C){return typeof C!="undefined"&&!Number.isNaN(C)}function fillFieldNames$1(C,$){var V=C||{},F=V.label,K=V.value,J=V.options,ee=V.groupLabel,te=F||($?"children":"label");return{label:te,value:K||"value",options:J||"options",groupLabel:ee||te}}function flattenOptions(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=$.fieldNames,F=$.childrenAsData,K=[],J=fillFieldNames$1(V,!1),ee=J.label,te=J.value,ne=J.options,re=J.groupLabel;function ae(oe,ie){Array.isArray(oe)&&oe.forEach(function(se){if(ie||!(ne in se)){var ce=se[te];K.push({key:getKey$2(se,K.length),groupOption:ie,data:se,label:se[ee],value:ce})}else{var de=se[re];de===void 0&&F&&(de=se.label),K.push({key:getKey$2(se,K.length),group:!0,data:se,label:de}),ae(se[ne],!0)}})}return ae(C,!1),K}function injectPropsWithOption(C){var $=_objectSpread2({},C);return"props"in $||Object.defineProperty($,"props",{get:function(){return warningOnce(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),$}}),$}var getSeparatedContent=function($,V,F){if(!V||!V.length)return null;var K=!1,J=function te(ne,re){var ae=_toArray(re),oe=ae[0],ie=ae.slice(1);if(!oe)return[ne];var se=ne.split(oe);return K=K||se.length>1,se.reduce(function(ce,de){return[].concat(_toConsumableArray(ce),_toConsumableArray(te(de,ie)))},[]).filter(Boolean)},ee=J($,V);return K?typeof F!="undefined"?ee.slice(0,F):ee:null},SelectContext=React__namespace.createContext(null);function Polite(C){var $=C.visible,V=C.values;if(!$)return null;var F=50;return React__namespace.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(V.slice(0,F).map(function(K){var J=K.label,ee=K.value;return["number","string"].includes(_typeof(J))?J:ee}).join(", ")),V.length>F?", ...":null)}var _excluded$E=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DEFAULT_OMIT_PROPS=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple=function($){return $==="tags"||$==="multiple"},BaseSelect=React__namespace.forwardRef(function(C,$){var V,F=C.id,K=C.prefixCls,J=C.className,ee=C.showSearch,te=C.tagRender,ne=C.direction,re=C.omitDomProps,ae=C.displayValues,oe=C.onDisplayValuesChange,ie=C.emptyOptions,se=C.notFoundContent,ce=se===void 0?"Not Found":se,de=C.onClear,le=C.mode,ve=C.disabled,fe=C.loading,he=C.getInputElement,me=C.getRawInputElement,ue=C.open,pe=C.defaultOpen,ye=C.onDropdownVisibleChange,be=C.activeValue,ge=C.onActiveValueChange,_e=C.activeDescendantId,Se=C.searchValue,Ee=C.autoClearSearchValue,Ce=C.onSearch,xe=C.onSearchSplit,$e=C.tokenSeparators,Ie=C.allowClear,Fe=C.prefix,Ne=C.suffixIcon,De=C.clearIcon,Oe=C.OptionList,we=C.animation,Ae=C.transitionName,ke=C.dropdownStyle,je=C.dropdownClassName,ze=C.dropdownMatchSelectWidth,Ve=C.dropdownRender,Xe=C.dropdownAlign,Ye=C.placement,at=C.builtinPlacements,Ue=C.getPopupContainer,Le=C.showAction,Te=Le===void 0?[]:Le,Pe=C.onFocus,Me=C.onBlur,He=C.onKeyUp,We=C.onKeyDown,Ke=C.onMouseDown,rt=_objectWithoutProperties(C,_excluded$E),st=isMultiple(le),it=(ee!==void 0?ee:st)||le==="combobox",Je=_objectSpread2({},rt);DEFAULT_OMIT_PROPS.forEach(function(En){delete Je[En]}),re==null||re.forEach(function(En){delete Je[En]});var ct=React__namespace.useState(!1),dt=_slicedToArray(ct,2),vt=dt[0],ht=dt[1];React__namespace.useEffect(function(){ht(isMobile())},[]);var bt=React__namespace.useRef(null),Rt=React__namespace.useRef(null),wt=React__namespace.useRef(null),lt=React__namespace.useRef(null),ut=React__namespace.useRef(null),Ge=React__namespace.useRef(!1),et=useDelayReset(),Ze=_slicedToArray(et,3),nt=Ze[0],tt=Ze[1],qe=Ze[2];React__namespace.useImperativeHandle($,function(){var En,Zt;return{focus:(En=lt.current)===null||En===void 0?void 0:En.focus,blur:(Zt=lt.current)===null||Zt===void 0?void 0:Zt.blur,scrollTo:function($n){var On;return(On=ut.current)===null||On===void 0?void 0:On.scrollTo($n)},nativeElement:bt.current||Rt.current}});var ot=React__namespace.useMemo(function(){var En;if(le!=="combobox")return Se;var Zt=(En=ae[0])===null||En===void 0?void 0:En.value;return typeof Zt=="string"||typeof Zt=="number"?String(Zt):""},[Se,le,ae]),ft=le==="combobox"&&typeof he=="function"&&he()||null,yt=typeof me=="function"&&me(),$t=useComposeRef(Rt,yt==null||(V=yt.props)===null||V===void 0?void 0:V.ref),kt=React__namespace.useState(!1),Dt=_slicedToArray(kt,2),St=Dt[0],Bt=Dt[1];useLayoutEffect$1(function(){Bt(!0)},[]);var It=useMergedState(!1,{defaultValue:pe,value:ue}),Pt=_slicedToArray(It,2),Tt=Pt[0],Ct=Pt[1],At=St?Tt:!1,Ht=!ce&&ie;(ve||Ht&&At&&le==="combobox")&&(At=!1);var Gt=Ht?!1:At,zt=React__namespace.useCallback(function(En){var Zt=En!==void 0?En:!At;ve||(Ct(Zt),At!==Zt&&(ye==null||ye(Zt)))},[ve,At,Ct,ye]),Ft=React__namespace.useMemo(function(){return($e||[]).some(function(En){return[`
204
+ ${ae}-confirm ${ae}-body > ${C.iconCls}`]:{color:C.colorWarning},[`${ae}-info ${ae}-body > ${C.iconCls}`]:{color:C.colorInfo},[`${ae}-success ${ae}-body > ${C.iconCls}`]:{color:C.colorSuccess}}},Confirm=genSubStyleComponent(["Modal","confirm"],C=>{const $=prepareToken$3(C);return[genModalConfirmStyle($)]},prepareComponentToken$r,{order:-1e3});var __rest$Y=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};function ConfirmContent(C){const{prefixCls:$,icon:V,okText:F,cancelText:K,confirmPrefixCls:J,type:ee,okCancel:te,footer:ne,locale:re}=C,ae=__rest$Y(C,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(process.env.NODE_ENV!=="production"){const ye=devUseWarning("Modal");process.env.NODE_ENV!=="production"&&ye(!(typeof V=="string"&&V.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${V}\` at https://ant.design/components/icon`)}let oe=V;if(!V&&V!==null)switch(ee){case"info":oe=React__namespace.createElement(InfoCircleFilled$1,null);break;case"success":oe=React__namespace.createElement(CheckCircleFilled$1,null);break;case"error":oe=React__namespace.createElement(CloseCircleFilled$1,null);break;default:oe=React__namespace.createElement(ExclamationCircleFilled$1,null)}const ie=te!=null?te:ee==="confirm",se=C.autoFocusButton===null?!1:C.autoFocusButton||"ok",[ce]=useLocale$1("Modal"),de=re||ce,le=F||(ie?de==null?void 0:de.okText:de==null?void 0:de.justOkText),ve=K||(de==null?void 0:de.cancelText),fe=Object.assign({autoFocusButton:se,cancelTextLocale:ve,okTextLocale:le,mergedOkCancel:ie},ae),he=React__namespace.useMemo(()=>fe,_toConsumableArray(Object.values(fe))),me=React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(CancelBtn,null),React__namespace.createElement(OkBtn,null)),ue=C.title!==void 0&&C.title!==null,pe=`${J}-body`;return React__namespace.createElement("div",{className:`${J}-body-wrapper`},React__namespace.createElement("div",{className:classNames(pe,{[`${pe}-has-title`]:ue})},oe,React__namespace.createElement("div",{className:`${J}-paragraph`},ue&&React__namespace.createElement("span",{className:`${J}-title`},C.title),React__namespace.createElement("div",{className:`${J}-content`},C.content))),ne===void 0||typeof ne=="function"?React__namespace.createElement(ModalContextProvider,{value:he},React__namespace.createElement("div",{className:`${J}-btns`},typeof ne=="function"?ne(me,{OkBtn,CancelBtn}):me)):ne,React__namespace.createElement(Confirm,{prefixCls:$}))}const ConfirmDialog=C=>{const{close:$,zIndex:V,maskStyle:F,direction:K,prefixCls:J,wrapClassName:ee,rootPrefixCls:te,bodyStyle:ne,closable:re=!1,onConfirm:ae,styles:oe}=C;if(process.env.NODE_ENV!=="production"){const me=devUseWarning("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(ue=>{let[pe,ye]=ue;me.deprecated(!(pe in C),pe,ye)})}const ie=`${J}-confirm`,se=C.width||416,ce=C.style||{},de=C.mask===void 0?!0:C.mask,le=C.maskClosable===void 0?!1:C.maskClosable,ve=classNames(ie,`${ie}-${C.type}`,{[`${ie}-rtl`]:K==="rtl"},C.className),[,fe]=useToken(),he=React__namespace.useMemo(()=>V!==void 0?V:fe.zIndexPopupBase+CONTAINER_MAX_OFFSET,[V,fe]);return React__namespace.createElement(OriginModal,Object.assign({},C,{className:ve,wrapClassName:classNames({[`${ie}-centered`]:!!C.centered},ee),onCancel:()=>{$==null||$({triggerCancel:!0}),ae==null||ae(!1)},title:"",footer:null,transitionName:getTransitionName(te||"","zoom",C.transitionName),maskTransitionName:getTransitionName(te||"","fade",C.maskTransitionName),mask:de,maskClosable:le,style:ce,styles:Object.assign({body:ne,mask:F},oe),width:se,zIndex:he,closable:re}),React__namespace.createElement(ConfirmContent,Object.assign({},C,{confirmPrefixCls:ie})))},ConfirmDialogWrapper$1=C=>{const{rootPrefixCls:$,iconPrefixCls:V,direction:F,theme:K}=C;return React__namespace.createElement(ConfigProvider,{prefixCls:$,iconPrefixCls:V,direction:F,theme:K},React__namespace.createElement(ConfirmDialog,Object.assign({},C)))};process.env.NODE_ENV!=="production"&&(ConfirmDialog.displayName="ConfirmDialog",ConfirmDialogWrapper$1.displayName="ConfirmDialogWrapper");const destroyFns=[],destroyFns$1=destroyFns;let defaultRootPrefixCls="";function getRootPrefixCls(){return defaultRootPrefixCls}const ConfirmDialogWrapper=C=>{var $,V;const{prefixCls:F,getContainer:K,direction:J}=C,ee=getConfirmLocale(),te=React.useContext(ConfigContext),ne=getRootPrefixCls()||te.getPrefixCls(),re=F||`${ne}-modal`;let ae=K;return ae===!1&&(ae=void 0,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&warning$5(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),React.createElement(ConfirmDialogWrapper$1,Object.assign({},C,{rootPrefixCls:ne,prefixCls:re,iconPrefixCls:te.iconPrefixCls,theme:te.theme,direction:J!=null?J:te.direction,locale:(V=($=te.locale)===null||$===void 0?void 0:$.Modal)!==null&&V!==void 0?V:ee,getContainer:ae}))};function confirm(C){const $=globalConfig();process.env.NODE_ENV!=="production"&&!$.holderRender&&warnContext("Modal");const V=document.createDocumentFragment();let F=Object.assign(Object.assign({},C),{close:ne,open:!0}),K,J;function ee(){for(var ae,oe=arguments.length,ie=new Array(oe),se=0;se<oe;se++)ie[se]=arguments[se];if(ie.some(le=>le==null?void 0:le.triggerCancel)){var de;(ae=C.onCancel)===null||ae===void 0||(de=ae).call.apply(de,[C,()=>{}].concat(_toConsumableArray(ie.slice(1))))}for(let le=0;le<destroyFns$1.length;le++)if(destroyFns$1[le]===ne){destroyFns$1.splice(le,1);break}J()}function te(ae){clearTimeout(K),K=setTimeout(()=>{const oe=$.getPrefixCls(void 0,getRootPrefixCls()),ie=$.getIconPrefixCls(),se=$.getTheme(),ce=React.createElement(ConfirmDialogWrapper,Object.assign({},ae));J=unstableSetRender()(React.createElement(ConfigProvider,{prefixCls:oe,iconPrefixCls:ie,theme:se},$.holderRender?$.holderRender(ce):ce),V)})}function ne(){for(var ae=arguments.length,oe=new Array(ae),ie=0;ie<ae;ie++)oe[ie]=arguments[ie];F=Object.assign(Object.assign({},F),{open:!1,afterClose:()=>{typeof C.afterClose=="function"&&C.afterClose(),ee.apply(this,oe)}}),F.visible&&delete F.visible,te(F)}function re(ae){typeof ae=="function"?F=ae(F):F=Object.assign(Object.assign({},F),ae),te(F)}return te(F),destroyFns$1.push(ne),{destroy:ne,update:re}}function withWarn(C){return Object.assign(Object.assign({},C),{type:"warning"})}function withInfo(C){return Object.assign(Object.assign({},C),{type:"info"})}function withSuccess(C){return Object.assign(Object.assign({},C),{type:"success"})}function withError(C){return Object.assign(Object.assign({},C),{type:"error"})}function withConfirm(C){return Object.assign(Object.assign({},C),{type:"confirm"})}function modalGlobalConfig(C){let{rootPrefixCls:$}=C;process.env.NODE_ENV!=="production"&&warning$5(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),defaultRootPrefixCls=$}var __rest$X=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const HookModal=(C,$)=>{var V,{afterClose:F,config:K}=C,J=__rest$X(C,["afterClose","config"]);const[ee,te]=React__namespace.useState(!0),[ne,re]=React__namespace.useState(K),{direction:ae,getPrefixCls:oe}=React__namespace.useContext(ConfigContext),ie=oe("modal"),se=oe(),ce=()=>{var fe;F(),(fe=ne.afterClose)===null||fe===void 0||fe.call(ne)},de=function(){var fe;te(!1);for(var he=arguments.length,me=new Array(he),ue=0;ue<he;ue++)me[ue]=arguments[ue];if(me.some(be=>be==null?void 0:be.triggerCancel)){var ye;(fe=ne.onCancel)===null||fe===void 0||(ye=fe).call.apply(ye,[ne,()=>{}].concat(_toConsumableArray(me.slice(1))))}};React__namespace.useImperativeHandle($,()=>({destroy:de,update:fe=>{re(he=>Object.assign(Object.assign({},he),fe))}}));const le=(V=ne.okCancel)!==null&&V!==void 0?V:ne.type==="confirm",[ve]=useLocale$1("Modal",defaultLocale.Modal);return React__namespace.createElement(ConfirmDialogWrapper$1,Object.assign({prefixCls:ie,rootPrefixCls:se},ne,{close:de,open:ee,afterClose:ce,okText:ne.okText||(le?ve==null?void 0:ve.okText:ve==null?void 0:ve.justOkText),direction:ne.direction||ae,cancelText:ne.cancelText||(ve==null?void 0:ve.cancelText)},J))},HookModal$1=React__namespace.forwardRef(HookModal);let uuid$3=0;const ElementsHolder=React__namespace.memo(React__namespace.forwardRef((C,$)=>{const[V,F]=usePatchElement();return React__namespace.useImperativeHandle($,()=>({patchElement:F}),[]),React__namespace.createElement(React__namespace.Fragment,null,V)}));function useModal(){const C=React__namespace.useRef(null),[$,V]=React__namespace.useState([]);React__namespace.useEffect(()=>{$.length&&(_toConsumableArray($).forEach(ee=>{ee()}),V([]))},[$]);const F=React__namespace.useCallback(J=>function(te){var ne;uuid$3+=1;const re=React__namespace.createRef();let ae;const oe=new Promise(le=>{ae=le});let ie=!1,se;const ce=React__namespace.createElement(HookModal$1,{key:`modal-${uuid$3}`,config:J(te),ref:re,afterClose:()=>{se==null||se()},isSilent:()=>ie,onConfirm:le=>{ae(le)}});return se=(ne=C.current)===null||ne===void 0?void 0:ne.patchElement(ce),se&&destroyFns$1.push(se),{destroy:()=>{function le(){var ve;(ve=re.current)===null||ve===void 0||ve.destroy()}re.current?le():V(ve=>[].concat(_toConsumableArray(ve),[le]))},update:le=>{function ve(){var fe;(fe=re.current)===null||fe===void 0||fe.update(le)}re.current?ve():V(fe=>[].concat(_toConsumableArray(fe),[ve]))},then:le=>(ie=!0,oe.then(le))}},[]);return[React__namespace.useMemo(()=>({info:F(withInfo),success:F(withSuccess),error:F(withError),warning:F(withWarn),confirm:F(withConfirm)}),[]),React__namespace.createElement(ElementsHolder,{key:"modal-holder",ref:C})]}const genNotificationPlacementStyle=C=>{const{componentCls:$,notificationMarginEdge:V,animationMaxHeight:F}=C,K=`${$}-notice`,J=new Keyframe("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),ee=new Keyframe("antNotificationTopFadeIn",{"0%":{top:-F,opacity:0},"100%":{top:0,opacity:1}}),te=new Keyframe("antNotificationBottomFadeIn",{"0%":{bottom:C.calc(F).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),ne=new Keyframe("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[$]:{[`&${$}-top, &${$}-bottom`]:{marginInline:0,[K]:{marginInline:"auto auto"}},[`&${$}-top`]:{[`${$}-fade-enter${$}-fade-enter-active, ${$}-fade-appear${$}-fade-appear-active`]:{animationName:ee}},[`&${$}-bottom`]:{[`${$}-fade-enter${$}-fade-enter-active, ${$}-fade-appear${$}-fade-appear-active`]:{animationName:te}},[`&${$}-topRight, &${$}-bottomRight`]:{[`${$}-fade-enter${$}-fade-enter-active, ${$}-fade-appear${$}-fade-appear-active`]:{animationName:J}},[`&${$}-topLeft, &${$}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:V,_skip_check_:!0},[K]:{marginInlineEnd:"auto",marginInlineStart:0},[`${$}-fade-enter${$}-fade-enter-active, ${$}-fade-appear${$}-fade-appear-active`]:{animationName:ne}}}}},genNotificationPlacementStyle$1=genNotificationPlacementStyle,NotificationPlacements=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],placementAlignProperty={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},genPlacementStackStyle=(C,$)=>{const{componentCls:V}=C;return{[`${V}-${$}`]:{[`&${V}-stack > ${V}-notice-wrapper`]:{[$.startsWith("top")?"top":"bottom"]:0,[placementAlignProperty[$]]:{value:0,_skip_check_:!0}}}}},genStackChildrenStyle=C=>{const $={};for(let V=1;V<C.notificationStackLayer;V++)$[`&:nth-last-child(${V+1})`]={overflow:"hidden",[`& > ${C.componentCls}-notice`]:{opacity:0,transition:`opacity ${C.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${C.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},$)},genStackedNoticeStyle=C=>{const $={};for(let V=1;V<C.notificationStackLayer;V++)$[`&:nth-last-child(${V+1})`]={background:C.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},$)},genStackStyle=C=>{const{componentCls:$}=C;return Object.assign({[`${$}-stack`]:{[`& > ${$}-notice-wrapper`]:Object.assign({transition:`transform ${C.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},genStackChildrenStyle(C))},[`${$}-stack:not(${$}-stack-expanded)`]:{[`& > ${$}-notice-wrapper`]:Object.assign({},genStackedNoticeStyle(C))},[`${$}-stack${$}-stack-expanded`]:{[`& > ${$}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${C.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:C.margin,width:"100%",insetInline:0,bottom:C.calc(C.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},NotificationPlacements.map(V=>genPlacementStackStyle(C,V)).reduce((V,F)=>Object.assign(Object.assign({},V),F),{}))},genStackStyle$1=genStackStyle,genNoticeStyle=C=>{const{iconCls:$,componentCls:V,boxShadow:F,fontSizeLG:K,notificationMarginBottom:J,borderRadiusLG:ee,colorSuccess:te,colorInfo:ne,colorWarning:re,colorError:ae,colorTextHeading:oe,notificationBg:ie,notificationPadding:se,notificationMarginEdge:ce,notificationProgressBg:de,notificationProgressHeight:le,fontSize:ve,lineHeight:fe,width:he,notificationIconSize:me,colorText:ue}=C,pe=`${V}-notice`;return{position:"relative",marginBottom:J,marginInlineStart:"auto",background:ie,borderRadius:ee,boxShadow:F,[pe]:{padding:se,width:he,maxWidth:`calc(100vw - ${unit$1(C.calc(ce).mul(2).equal())})`,overflow:"hidden",lineHeight:fe,wordWrap:"break-word"},[`${pe}-message`]:{marginBottom:C.marginXS,color:oe,fontSize:K,lineHeight:C.lineHeightLG},[`${pe}-description`]:{fontSize:ve,color:ue},[`${pe}-closable ${pe}-message`]:{paddingInlineEnd:C.paddingLG},[`${pe}-with-icon ${pe}-message`]:{marginBottom:C.marginXS,marginInlineStart:C.calc(C.marginSM).add(me).equal(),fontSize:K},[`${pe}-with-icon ${pe}-description`]:{marginInlineStart:C.calc(C.marginSM).add(me).equal(),fontSize:ve},[`${pe}-icon`]:{position:"absolute",fontSize:me,lineHeight:1,[`&-success${$}`]:{color:te},[`&-info${$}`]:{color:ne},[`&-warning${$}`]:{color:re},[`&-error${$}`]:{color:ae}},[`${pe}-close`]:Object.assign({position:"absolute",top:C.notificationPaddingVertical,insetInlineEnd:C.notificationPaddingHorizontal,color:C.colorIcon,outline:"none",width:C.notificationCloseButtonSize,height:C.notificationCloseButtonSize,borderRadius:C.borderRadiusSM,transition:`background-color ${C.motionDurationMid}, color ${C.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:C.colorIconHover,backgroundColor:C.colorBgTextHover},"&:active":{backgroundColor:C.colorBgTextActive}},genFocusStyle(C)),[`${pe}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${unit$1(ee)} * 2)`,left:{_skip_check_:!0,value:ee},right:{_skip_check_:!0,value:ee},bottom:0,blockSize:le,border:0,"&, &::-webkit-progress-bar":{borderRadius:ee,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:de},"&::-webkit-progress-value":{borderRadius:ee,background:de}},[`${pe}-actions`]:{float:"right",marginTop:C.marginSM}}},genNotificationStyle=C=>{const{componentCls:$,notificationMarginBottom:V,notificationMarginEdge:F,motionDurationMid:K,motionEaseInOut:J}=C,ee=`${$}-notice`,te=new Keyframe("antNotificationFadeOut",{"0%":{maxHeight:C.animationMaxHeight,marginBottom:V},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[$]:Object.assign(Object.assign({},resetComponent(C)),{position:"fixed",zIndex:C.zIndexPopup,marginRight:{value:F,_skip_check_:!0},[`${$}-hook-holder`]:{position:"relative"},[`${$}-fade-appear-prepare`]:{opacity:"0 !important"},[`${$}-fade-enter, ${$}-fade-appear`]:{animationDuration:C.motionDurationMid,animationTimingFunction:J,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${$}-fade-leave`]:{animationTimingFunction:J,animationFillMode:"both",animationDuration:K,animationPlayState:"paused"},[`${$}-fade-enter${$}-fade-enter-active, ${$}-fade-appear${$}-fade-appear-active`]:{animationPlayState:"running"},[`${$}-fade-leave${$}-fade-leave-active`]:{animationName:te,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${ee}-actions`]:{float:"left"}}})},{[$]:{[`${ee}-wrapper`]:Object.assign({},genNoticeStyle(C))}}]},prepareComponentToken$q=C=>({zIndexPopup:C.zIndexPopupBase+CONTAINER_MAX_OFFSET+50,width:384}),prepareNotificationToken=C=>{const $=C.paddingMD,V=C.paddingLG;return merge(C,{notificationBg:C.colorBgElevated,notificationPaddingVertical:$,notificationPaddingHorizontal:V,notificationIconSize:C.calc(C.fontSizeLG).mul(C.lineHeightLG).equal(),notificationCloseButtonSize:C.calc(C.controlHeightLG).mul(.55).equal(),notificationMarginBottom:C.margin,notificationPadding:`${unit$1(C.paddingMD)} ${unit$1(C.paddingContentHorizontalLG)}`,notificationMarginEdge:C.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${C.colorPrimaryBorderHover}, ${C.colorPrimary})`})},useStyle$v=genStyleHooks("Notification",C=>{const $=prepareNotificationToken(C);return[genNotificationStyle($),genNotificationPlacementStyle$1($),genStackStyle$1($)]},prepareComponentToken$q),PurePanelStyle=genSubStyleComponent(["Notification","PurePanel"],C=>{const $=`${C.componentCls}-notice`,V=prepareNotificationToken(C);return{[`${$}-pure-panel`]:Object.assign(Object.assign({},genNoticeStyle(V)),{width:V.width,maxWidth:`calc(100vw - ${unit$1(C.calc(V.notificationMarginEdge).mul(2).equal())})`,margin:0})}},prepareComponentToken$q);var __rest$W=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};function getCloseIcon(C,$){return $===null||$===!1?null:$||React__namespace.createElement(CloseOutlined$1,{className:`${C}-close-icon`})}const typeToIcon={success:CheckCircleFilled$1,info:InfoCircleFilled$1,error:CloseCircleFilled$1,warning:ExclamationCircleFilled$1},PureContent=C=>{const{prefixCls:$,icon:V,type:F,message:K,description:J,actions:ee,role:te="alert"}=C;let ne=null;return V?ne=React__namespace.createElement("span",{className:`${$}-icon`},V):F&&(ne=React__namespace.createElement(typeToIcon[F]||null,{className:classNames(`${$}-icon`,`${$}-icon-${F}`)})),React__namespace.createElement("div",{className:classNames({[`${$}-with-icon`]:ne}),role:te},ne,React__namespace.createElement("div",{className:`${$}-message`},K),React__namespace.createElement("div",{className:`${$}-description`},J),ee&&React__namespace.createElement("div",{className:`${$}-actions`},ee))},PurePanel$8=C=>{const{prefixCls:$,className:V,icon:F,type:K,message:J,description:ee,btn:te,actions:ne,closable:re=!0,closeIcon:ae,className:oe}=C,ie=__rest$W(C,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:se}=React__namespace.useContext(ConfigContext),ce=ne!=null?ne:te;process.env.NODE_ENV!=="production"&&devUseWarning("Notification").deprecated(!te,"btn","actions");const de=$||se("notification"),le=`${de}-notice`,ve=useCSSVarCls$1(de),[fe,he,me]=useStyle$v(de,ve);return fe(React__namespace.createElement("div",{className:classNames(`${le}-pure-panel`,he,V,me,ve)},React__namespace.createElement(PurePanelStyle,{prefixCls:de}),React__namespace.createElement(Notify,Object.assign({},ie,{prefixCls:de,eventKey:"pure",duration:null,closable:re,className:classNames({notificationClassName:oe}),closeIcon:getCloseIcon(de,ae),content:React__namespace.createElement(PureContent,{prefixCls:le,icon:F,type:K,message:J,description:ee,actions:ce})}))))};function getPlacementStyle(C,$,V){let F;switch(C){case"top":F={left:"50%",transform:"translateX(-50%)",right:"auto",top:$,bottom:"auto"};break;case"topLeft":F={left:0,top:$,bottom:"auto"};break;case"topRight":F={right:0,top:$,bottom:"auto"};break;case"bottom":F={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:V};break;case"bottomLeft":F={left:0,top:"auto",bottom:V};break;default:F={right:0,top:"auto",bottom:V};break}return F}function getMotion$2(C){return{motionName:`${C}-fade`}}function getCloseIconConfig(C,$,V){return typeof C!="undefined"?C:typeof($==null?void 0:$.closeIcon)!="undefined"?$.closeIcon:V==null?void 0:V.closeIcon}var __rest$V=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const DEFAULT_OFFSET=24,DEFAULT_DURATION=4.5,DEFAULT_PLACEMENT="topRight",Wrapper=C=>{let{children:$,prefixCls:V}=C;const F=useCSSVarCls$1(V),[K,J,ee]=useStyle$v(V,F);return K(React.createElement(NotificationProvider,{classNames:{list:classNames(J,ee,F)}},$))},renderNotifications=(C,$)=>{let{prefixCls:V,key:F}=$;return React.createElement(Wrapper,{prefixCls:V,key:F},C)},Holder=React.forwardRef((C,$)=>{const{top:V,bottom:F,prefixCls:K,getContainer:J,maxCount:ee,rtl:te,onAllRemoved:ne,stack:re,duration:ae,pauseOnHover:oe=!0,showProgress:ie}=C,{getPrefixCls:se,getPopupContainer:ce,notification:de,direction:le}=React.useContext(ConfigContext),[,ve]=useToken(),fe=K||se("notification"),he=be=>getPlacementStyle(be,V!=null?V:DEFAULT_OFFSET,F!=null?F:DEFAULT_OFFSET),me=()=>classNames({[`${fe}-rtl`]:te!=null?te:le==="rtl"}),ue=()=>getMotion$2(fe),[pe,ye]=useNotification$1({prefixCls:fe,style:he,className:me,motion:ue,closable:!0,closeIcon:getCloseIcon(fe),duration:ae!=null?ae:DEFAULT_DURATION,getContainer:()=>(J==null?void 0:J())||(ce==null?void 0:ce())||document.body,maxCount:ee,pauseOnHover:oe,showProgress:ie,onAllRemoved:ne,renderNotifications,stack:re===!1?!1:{threshold:typeof re=="object"?re==null?void 0:re.threshold:void 0,offset:8,gap:ve.margin}});return React.useImperativeHandle($,()=>Object.assign(Object.assign({},pe),{prefixCls:fe,notification:de})),ye});function useInternalNotification(C){const $=React.useRef(null),V=devUseWarning("Notification");return[React.useMemo(()=>{const K=ne=>{var re;if(!$.current){process.env.NODE_ENV!=="production"&&V(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:ae,prefixCls:oe,notification:ie}=$.current,se=`${oe}-notice`,{message:ce,description:de,icon:le,type:ve,btn:fe,actions:he,className:me,style:ue,role:pe="alert",closeIcon:ye,closable:be}=ne,ge=__rest$V(ne,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]);process.env.NODE_ENV!=="production"&&V.deprecated(!fe,"btn","actions");const _e=he!=null?he:fe,Se=getCloseIcon(se,getCloseIconConfig(ye,C,ie));return ae(Object.assign(Object.assign({placement:(re=C==null?void 0:C.placement)!==null&&re!==void 0?re:DEFAULT_PLACEMENT},ge),{content:React.createElement(PureContent,{prefixCls:se,icon:le,type:ve,message:ce,description:de,actions:_e,role:pe}),className:classNames(ve&&`${se}-${ve}`,me,ie==null?void 0:ie.className),style:Object.assign(Object.assign({},ie==null?void 0:ie.style),ue),closeIcon:Se,closable:be!=null?be:!!Se}))},ee={open:K,destroy:ne=>{var re,ae;ne!==void 0?(re=$.current)===null||re===void 0||re.close(ne):(ae=$.current)===null||ae===void 0||ae.destroy()}};return["success","info","warning","error"].forEach(ne=>{ee[ne]=re=>K(Object.assign(Object.assign({},re),{type:ne}))}),ee},[]),React.createElement(Holder,Object.assign({key:"notification-holder"},C,{ref:$}))]}function useNotification(C){return useInternalNotification(C)}const AppConfigContext=React.createContext({}),AppContext=React.createContext({message:{},notification:{},modal:{}}),AppContext$1=AppContext,genBaseStyle$8=C=>{const{componentCls:$,colorText:V,fontSize:F,lineHeight:K,fontFamily:J}=C;return{[$]:{color:V,fontSize:F,lineHeight:K,fontFamily:J,[`&${$}-rtl`]:{direction:"rtl"}}}},prepareComponentToken$p=()=>({}),useStyle$u=genStyleHooks("App",genBaseStyle$8,prepareComponentToken$p),App$2=C=>{const{prefixCls:$,children:V,className:F,rootClassName:K,message:J,notification:ee,style:te,component:ne="div"}=C,{direction:re,getPrefixCls:ae}=React.useContext(ConfigContext),oe=ae("app",$),[ie,se,ce]=useStyle$u(oe),de=classNames(se,oe,F,K,ce,{[`${oe}-rtl`]:re==="rtl"}),le=React.useContext(AppConfigContext),ve=React.useMemo(()=>({message:Object.assign(Object.assign({},le.message),J),notification:Object.assign(Object.assign({},le.notification),ee)}),[J,ee,le.message,le.notification]),[fe,he]=useMessage(ve.message),[me,ue]=useNotification(ve.notification),[pe,ye]=useModal(),be=React.useMemo(()=>({message:fe,notification:me,modal:pe}),[fe,me,pe]);devUseWarning("App")(!(ce&&ne===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const ge=ne===!1?React.Fragment:ne,_e={className:de,style:te};return ie(React.createElement(AppContext$1.Provider,{value:be},React.createElement(AppConfigContext.Provider,{value:ve},React.createElement(ge,Object.assign({},ne===!1?void 0:_e),ye,he,ue,V))))};process.env.NODE_ENV!=="production"&&(App$2.displayName="App");const App_=App$2,useApp=()=>React.useContext(AppContext$1),useApp$1=useApp,App=App_;App.useApp=useApp$1;const App$1=App;function withPureRenderTheme(C){return $=>React__namespace.createElement(ConfigProvider,{theme:{token:{motion:!1,zIndexPopupBase:0}}},React__namespace.createElement(C,Object.assign({},$)))}const genPurePanel=(C,$,V,F,K)=>withPureRenderTheme(ee=>{const{prefixCls:te,style:ne}=ee,re=React__namespace.useRef(null),[ae,oe]=React__namespace.useState(0),[ie,se]=React__namespace.useState(0),[ce,de]=useMergedState(!1,{value:ee.open}),{getPrefixCls:le}=React__namespace.useContext(ConfigContext),ve=le(F||"select",te);React__namespace.useEffect(()=>{if(de(!0),typeof ResizeObserver!="undefined"){const me=new ResizeObserver(pe=>{const ye=pe[0].target;oe(ye.offsetHeight+8),se(ye.offsetWidth)}),ue=setInterval(()=>{var pe;const ye=K?`.${K(ve)}`:`.${ve}-dropdown`,be=(pe=re.current)===null||pe===void 0?void 0:pe.querySelector(ye);be&&(clearInterval(ue),me.observe(be))},10);return()=>{clearInterval(ue),me.disconnect()}}},[]);let fe=Object.assign(Object.assign({},ee),{style:Object.assign(Object.assign({},ne),{margin:0}),open:ce,visible:ce,getPopupContainer:()=>re.current});V&&(fe=V(fe)),$&&Object.assign(fe,{[$]:{overflow:{adjustX:!1,adjustY:!1}}});const he={paddingBottom:ae,position:"relative",minWidth:ie};return React__namespace.createElement("div",{ref:re,style:he},React__namespace.createElement(C,Object.assign({},fe)))}),genPurePanel$1=genPurePanel,isMobile=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var C=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(C)||/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(C==null?void 0:C.substr(0,4))};var TransBtn=function($){var V=$.className,F=$.customizeIcon,K=$.customizeIconProps,J=$.children,ee=$.onMouseDown,te=$.onClick,ne=typeof F=="function"?F(K):F;return React__namespace.createElement("span",{className:V,onMouseDown:function(ae){ae.preventDefault(),ee==null||ee(ae)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:te,"aria-hidden":!0},ne!==void 0?ne:React__namespace.createElement("span",{className:classNames(V.split(/\s+/).map(function(re){return"".concat(re,"-icon")}))},J))},useAllowClear=function($,V,F,K,J){var ee=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,te=arguments.length>6?arguments[6]:void 0,ne=arguments.length>7?arguments[7]:void 0,re=React.useMemo(function(){if(_typeof(K)==="object")return K.clearIcon;if(J)return J},[K,J]),ae=React.useMemo(function(){return!!(!ee&&K&&(F.length||te)&&!(ne==="combobox"&&te===""))},[K,ee,F.length,te,ne]);return{allowClear:ae,clearIcon:React.createElement(TransBtn,{className:"".concat($,"-clear"),onMouseDown:V,customizeIcon:re},"×")}},BaseSelectContext=React__namespace.createContext(null);function useBaseProps(){return React__namespace.useContext(BaseSelectContext)}function useDelayReset(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,$=React__namespace.useState(!1),V=_slicedToArray($,2),F=V[0],K=V[1],J=React__namespace.useRef(null),ee=function(){window.clearTimeout(J.current)};React__namespace.useEffect(function(){return ee},[]);var te=function(re,ae){ee(),J.current=window.setTimeout(function(){K(re),ae&&ae()},C)};return[F,te,ee]}function useLock(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,$=React__namespace.useRef(null),V=React__namespace.useRef(null);React__namespace.useEffect(function(){return function(){window.clearTimeout(V.current)}},[]);function F(K){(K||$.current===null)&&($.current=K),window.clearTimeout(V.current),V.current=window.setTimeout(function(){$.current=null},C)}return[function(){return $.current},F]}function useSelectTriggerControl(C,$,V,F){var K=React__namespace.useRef(null);K.current={open:$,triggerOpen:V,customizedTrigger:F},React__namespace.useEffect(function(){function J(ee){var te;if(!((te=K.current)!==null&&te!==void 0&&te.customizedTrigger)){var ne=ee.target;ne.shadowRoot&&ee.composed&&(ne=ee.composedPath()[0]||ne),K.current.open&&C().filter(function(re){return re}).every(function(re){return!re.contains(ne)&&re!==ne})&&K.current.triggerOpen(!1)}}return window.addEventListener("mousedown",J),function(){return window.removeEventListener("mousedown",J)}},[])}function isValidateOpenKey(C){return C&&![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(C)}var _excluded$K=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED=void 0;function InternalItem(C,$){var V=C.prefixCls,F=C.invalidate,K=C.item,J=C.renderItem,ee=C.responsive,te=C.responsiveDisabled,ne=C.registerSize,re=C.itemKey,ae=C.className,oe=C.style,ie=C.children,se=C.display,ce=C.order,de=C.component,le=de===void 0?"div":de,ve=_objectWithoutProperties(C,_excluded$K),fe=ee&&!se;function he(be){ne(re,be)}React__namespace.useEffect(function(){return function(){he(null)}},[]);var me=J&&K!==UNDEFINED?J(K,{index:ce}):ie,ue;F||(ue={opacity:fe?0:1,height:fe?0:UNDEFINED,overflowY:fe?"hidden":UNDEFINED,order:ee?ce:UNDEFINED,pointerEvents:fe?"none":UNDEFINED,position:fe?"absolute":UNDEFINED});var pe={};fe&&(pe["aria-hidden"]=!0);var ye=React__namespace.createElement(le,_extends({className:classNames(!F&&V,ae),style:_objectSpread2(_objectSpread2({},ue),oe)},pe,ve,{ref:$}),me);return ee&&(ye=React__namespace.createElement(RefResizeObserver,{onResize:function(ge){var _e=ge.offsetWidth;he(_e)},disabled:te},ye)),ye}var Item$5=React__namespace.forwardRef(InternalItem);Item$5.displayName="Item";function channelUpdate(C){if(typeof MessageChannel=="undefined")wrapperRaf(C);else{var $=new MessageChannel;$.port1.onmessage=function(){return C()},$.port2.postMessage(void 0)}}function useBatcher(){var C=React__namespace.useRef(null),$=function(F){C.current||(C.current=[],channelUpdate(function(){ReactDOM.unstable_batchedUpdates(function(){C.current.forEach(function(K){K()}),C.current=null})})),C.current.push(F)};return $}function useEffectState(C,$){var V=React__namespace.useState($),F=_slicedToArray(V,2),K=F[0],J=F[1],ee=useEvent(function(te){C(function(){J(te)})});return[K,ee]}var OverflowContext=React.createContext(null),_excluded$J=["component"],_excluded2$5=["className"],_excluded3$1=["className"],InternalRawItem=function($,V){var F=React__namespace.useContext(OverflowContext);if(!F){var K=$.component,J=K===void 0?"div":K,ee=_objectWithoutProperties($,_excluded$J);return React__namespace.createElement(J,_extends({},ee,{ref:V}))}var te=F.className,ne=_objectWithoutProperties(F,_excluded2$5),re=$.className,ae=_objectWithoutProperties($,_excluded3$1);return React__namespace.createElement(OverflowContext.Provider,{value:null},React__namespace.createElement(Item$5,_extends({ref:V,className:classNames(te,re)},ne,ae)))},RawItem=React__namespace.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$I=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(C){return"+ ".concat(C.length," ...")}function Overflow(C,$){var V=C.prefixCls,F=V===void 0?"rc-overflow":V,K=C.data,J=K===void 0?[]:K,ee=C.renderItem,te=C.renderRawItem,ne=C.itemKey,re=C.itemWidth,ae=re===void 0?10:re,oe=C.ssr,ie=C.style,se=C.className,ce=C.maxCount,de=C.renderRest,le=C.renderRawRest,ve=C.suffix,fe=C.component,he=fe===void 0?"div":fe,me=C.itemComponent,ue=C.onVisibleChange,pe=_objectWithoutProperties(C,_excluded$I),ye=oe==="full",be=useBatcher(),ge=useEffectState(be,null),_e=_slicedToArray(ge,2),Se=_e[0],Ee=_e[1],Ce=Se||0,xe=useEffectState(be,new Map),$e=_slicedToArray(xe,2),Ie=$e[0],Fe=$e[1],Ne=useEffectState(be,0),De=_slicedToArray(Ne,2),Oe=De[0],we=De[1],Ae=useEffectState(be,0),ke=_slicedToArray(Ae,2),je=ke[0],ze=ke[1],Ve=useEffectState(be,0),Xe=_slicedToArray(Ve,2),Ye=Xe[0],at=Xe[1],Ue=React.useState(null),Le=_slicedToArray(Ue,2),Te=Le[0],Pe=Le[1],Me=React.useState(null),He=_slicedToArray(Me,2),We=He[0],Ke=He[1],rt=React__namespace.useMemo(function(){return We===null&&ye?Number.MAX_SAFE_INTEGER:We||0},[We,Se]),st=React.useState(!1),it=_slicedToArray(st,2),Je=it[0],ct=it[1],dt="".concat(F,"-item"),vt=Math.max(Oe,je),ht=ce===RESPONSIVE,bt=J.length&&ht,Rt=ce===INVALIDATE,wt=bt||typeof ce=="number"&&J.length>ce,lt=React.useMemo(function(){var Tt=J;return bt?Se===null&&ye?Tt=J:Tt=J.slice(0,Math.min(J.length,Ce/ae)):typeof ce=="number"&&(Tt=J.slice(0,ce)),Tt},[J,ae,Se,ce,bt]),ut=React.useMemo(function(){return bt?J.slice(rt+1):J.slice(lt.length)},[J,lt,bt,rt]),Ge=React.useCallback(function(Tt,Ct){var At;return typeof ne=="function"?ne(Tt):(At=ne&&(Tt==null?void 0:Tt[ne]))!==null&&At!==void 0?At:Ct},[ne]),et=React.useCallback(ee||function(Tt){return Tt},[ee]);function Ze(Tt,Ct,At){We===Tt&&(Ct===void 0||Ct===Te)||(Ke(Tt),At||(ct(Tt<J.length-1),ue==null||ue(Tt)),Ct!==void 0&&Pe(Ct))}function nt(Tt,Ct){Ee(Ct.clientWidth)}function tt(Tt,Ct){Fe(function(At){var Ht=new Map(At);return Ct===null?Ht.delete(Tt):Ht.set(Tt,Ct),Ht})}function qe(Tt,Ct){ze(Ct),we(je)}function ot(Tt,Ct){at(Ct)}function ft(Tt){return Ie.get(Ge(lt[Tt],Tt))}useLayoutEffect$1(function(){if(Ce&&typeof vt=="number"&&lt){var Tt=Ye,Ct=lt.length,At=Ct-1;if(!Ct){Ze(0,null);return}for(var Ht=0;Ht<Ct;Ht+=1){var Gt=ft(Ht);if(ye&&(Gt=Gt||0),Gt===void 0){Ze(Ht-1,void 0,!0);break}if(Tt+=Gt,At===0&&Tt<=Ce||Ht===At-1&&Tt+ft(At)<=Ce){Ze(At,null);break}else if(Tt+vt>Ce){Ze(Ht-1,Tt-Gt-Ye+je);break}}ve&&ft(0)+Ye>Ce&&Pe(null)}},[Ce,Ie,je,Ye,Ge,lt]);var yt=Je&&!!ut.length,$t={};Te!==null&&bt&&($t={position:"absolute",left:Te,top:0});var kt={prefixCls:dt,responsive:bt,component:me,invalidate:Rt},Dt=te?function(Tt,Ct){var At=Ge(Tt,Ct);return React__namespace.createElement(OverflowContext.Provider,{key:At,value:_objectSpread2(_objectSpread2({},kt),{},{order:Ct,item:Tt,itemKey:At,registerSize:tt,display:Ct<=rt})},te(Tt,Ct))}:function(Tt,Ct){var At=Ge(Tt,Ct);return React__namespace.createElement(Item$5,_extends({},kt,{order:Ct,key:At,item:Tt,renderItem:et,itemKey:At,registerSize:tt,display:Ct<=rt}))},St={order:yt?rt:Number.MAX_SAFE_INTEGER,className:"".concat(dt,"-rest"),registerSize:qe,display:yt},Bt=de||defaultRenderRest,It=le?React__namespace.createElement(OverflowContext.Provider,{value:_objectSpread2(_objectSpread2({},kt),St)},le(ut)):React__namespace.createElement(Item$5,_extends({},kt,St),typeof Bt=="function"?Bt(ut):Bt),Pt=React__namespace.createElement(he,_extends({className:classNames(!Rt&&F,se),style:ie,ref:$},pe),lt.map(Dt),wt?It:null,ve&&React__namespace.createElement(Item$5,_extends({},kt,{responsive:ht,responsiveDisabled:!bt,order:rt,className:"".concat(dt,"-suffix"),registerSize:ot,display:!0,style:$t}),ve));return ht?React__namespace.createElement(RefResizeObserver,{onResize:nt,disabled:!bt},Pt):Pt}var ForwardOverflow=React__namespace.forwardRef(Overflow);ForwardOverflow.displayName="Overflow",ForwardOverflow.Item=RawItem,ForwardOverflow.RESPONSIVE=RESPONSIVE,ForwardOverflow.INVALIDATE=INVALIDATE;function composeProps(C,$,V){var F=_objectSpread2(_objectSpread2({},C),V?$:{});return Object.keys($).forEach(function(K){var J=$[K];typeof J=="function"&&(F[K]=function(){for(var ee,te=arguments.length,ne=new Array(te),re=0;re<te;re++)ne[re]=arguments[re];return J.apply(void 0,ne),(ee=C[K])===null||ee===void 0?void 0:ee.call.apply(ee,[C].concat(ne))})}),F}var _excluded$H=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Input$5=function($,V){var F=$.prefixCls,K=$.id,J=$.inputElement,ee=$.autoFocus,te=$.autoComplete,ne=$.editable,re=$.activeDescendantId,ae=$.value,oe=$.open,ie=$.attrs,se=_objectWithoutProperties($,_excluded$H),ce=J||React__namespace.createElement("input",null),de=ce,le=de.ref,ve=de.props;return warning$6(!("maxLength"in ce.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ce=React__namespace.cloneElement(ce,_objectSpread2(_objectSpread2(_objectSpread2({type:"search"},composeProps(se,ve,!0)),{},{id:K,ref:composeRef(V,le),autoComplete:te||"off",autoFocus:ee,className:classNames("".concat(F,"-selection-search-input"),ve==null?void 0:ve.className),role:"combobox","aria-expanded":oe||!1,"aria-haspopup":"listbox","aria-owns":"".concat(K,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(K,"_list"),"aria-activedescendant":oe?re:void 0},ie),{},{value:ne?ae:"",readOnly:!ne,unselectable:ne?null:"on",style:_objectSpread2(_objectSpread2({},ve.style),{},{opacity:ne?null:0})})),ce},RefInput=React__namespace.forwardRef(Input$5);process.env.NODE_ENV!=="production"&&(RefInput.displayName="Input");function toArray$4(C){return Array.isArray(C)?C:C!==void 0?[C]:[]}var isClient=typeof window!="undefined"&&window.document&&window.document.documentElement,isBrowserClient$2=process.env.NODE_ENV!=="test"&&isClient;function hasValue(C){return C!=null}function isComboNoValue(C){return!C&&C!==0}function isTitleType$1(C){return["string","number"].includes(_typeof(C))}function getTitle(C){var $=void 0;return C&&(isTitleType$1(C.title)?$=C.title.toString():isTitleType$1(C.label)&&($=C.label.toString())),$}function useLayoutEffect(C,$){isBrowserClient$2?React__namespace.useLayoutEffect(C,$):React__namespace.useEffect(C,$)}function itemKey$1(C){var $;return($=C.key)!==null&&$!==void 0?$:C.value}var onPreventMouseDown=function($){$.preventDefault(),$.stopPropagation()},SelectSelector=function($){var V=$.id,F=$.prefixCls,K=$.values,J=$.open,ee=$.searchValue,te=$.autoClearSearchValue,ne=$.inputRef,re=$.placeholder,ae=$.disabled,oe=$.mode,ie=$.showSearch,se=$.autoFocus,ce=$.autoComplete,de=$.activeDescendantId,le=$.tabIndex,ve=$.removeIcon,fe=$.maxTagCount,he=$.maxTagTextLength,me=$.maxTagPlaceholder,ue=me===void 0?function(Me){return"+ ".concat(Me.length," ...")}:me,pe=$.tagRender,ye=$.onToggleOpen,be=$.onRemove,ge=$.onInputChange,_e=$.onInputPaste,Se=$.onInputKeyDown,Ee=$.onInputMouseDown,Ce=$.onInputCompositionStart,xe=$.onInputCompositionEnd,$e=$.onInputBlur,Ie=React__namespace.useRef(null),Fe=React.useState(0),Ne=_slicedToArray(Fe,2),De=Ne[0],Oe=Ne[1],we=React.useState(!1),Ae=_slicedToArray(we,2),ke=Ae[0],je=Ae[1],ze="".concat(F,"-selection"),Ve=J||oe==="multiple"&&te===!1||oe==="tags"?ee:"",Xe=oe==="tags"||oe==="multiple"&&te===!1||ie&&(J||ke);useLayoutEffect(function(){Oe(Ie.current.scrollWidth)},[Ve]);var Ye=function(He,We,Ke,rt,st){return React__namespace.createElement("span",{title:getTitle(He),className:classNames("".concat(ze,"-item"),_defineProperty({},"".concat(ze,"-item-disabled"),Ke))},React__namespace.createElement("span",{className:"".concat(ze,"-item-content")},We),rt&&React__namespace.createElement(TransBtn,{className:"".concat(ze,"-item-remove"),onMouseDown:onPreventMouseDown,onClick:st,customizeIcon:ve},"×"))},at=function(He,We,Ke,rt,st,it){var Je=function(dt){onPreventMouseDown(dt),ye(!J)};return React__namespace.createElement("span",{onMouseDown:Je},pe({label:We,value:He,disabled:Ke,closable:rt,onClose:st,isMaxTag:!!it}))},Ue=function(He){var We=He.disabled,Ke=He.label,rt=He.value,st=!ae&&!We,it=Ke;if(typeof he=="number"&&(typeof Ke=="string"||typeof Ke=="number")){var Je=String(it);Je.length>he&&(it="".concat(Je.slice(0,he),"..."))}var ct=function(vt){vt&&vt.stopPropagation(),be(He)};return typeof pe=="function"?at(rt,it,We,st,ct):Ye(He,it,We,st,ct)},Le=function(He){if(!K.length)return null;var We=typeof ue=="function"?ue(He):ue;return typeof pe=="function"?at(void 0,We,!1,!1,void 0,!0):Ye({title:We},We,!1)},Te=React__namespace.createElement("div",{className:"".concat(ze,"-search"),style:{width:De},onFocus:function(){je(!0)},onBlur:function(){je(!1)}},React__namespace.createElement(RefInput,{ref:ne,open:J,prefixCls:F,id:V,inputElement:null,disabled:ae,autoFocus:se,autoComplete:ce,editable:Xe,activeDescendantId:de,value:Ve,onKeyDown:Se,onMouseDown:Ee,onChange:ge,onPaste:_e,onCompositionStart:Ce,onCompositionEnd:xe,onBlur:$e,tabIndex:le,attrs:pickAttrs($,!0)}),React__namespace.createElement("span",{ref:Ie,className:"".concat(ze,"-search-mirror"),"aria-hidden":!0},Ve," ")),Pe=React__namespace.createElement(ForwardOverflow,{prefixCls:"".concat(ze,"-overflow"),data:K,renderItem:Ue,renderRest:Le,suffix:Te,itemKey:itemKey$1,maxCount:fe});return React__namespace.createElement("span",{className:"".concat(ze,"-wrap")},Pe,!K.length&&!Ve&&React__namespace.createElement("span",{className:"".concat(ze,"-placeholder")},re))},SingleSelector=function($){var V=$.inputElement,F=$.prefixCls,K=$.id,J=$.inputRef,ee=$.disabled,te=$.autoFocus,ne=$.autoComplete,re=$.activeDescendantId,ae=$.mode,oe=$.open,ie=$.values,se=$.placeholder,ce=$.tabIndex,de=$.showSearch,le=$.searchValue,ve=$.activeValue,fe=$.maxLength,he=$.onInputKeyDown,me=$.onInputMouseDown,ue=$.onInputChange,pe=$.onInputPaste,ye=$.onInputCompositionStart,be=$.onInputCompositionEnd,ge=$.onInputBlur,_e=$.title,Se=React__namespace.useState(!1),Ee=_slicedToArray(Se,2),Ce=Ee[0],xe=Ee[1],$e=ae==="combobox",Ie=$e||de,Fe=ie[0],Ne=le||"";$e&&ve&&!Ce&&(Ne=ve),React__namespace.useEffect(function(){$e&&xe(!1)},[$e,ve]);var De=ae!=="combobox"&&!oe&&!de?!1:!!Ne,Oe=_e===void 0?getTitle(Fe):_e,we=React__namespace.useMemo(function(){return Fe?null:React__namespace.createElement("span",{className:"".concat(F,"-selection-placeholder"),style:De?{visibility:"hidden"}:void 0},se)},[Fe,De,se,F]);return React__namespace.createElement("span",{className:"".concat(F,"-selection-wrap")},React__namespace.createElement("span",{className:"".concat(F,"-selection-search")},React__namespace.createElement(RefInput,{ref:J,prefixCls:F,id:K,open:oe,inputElement:V,disabled:ee,autoFocus:te,autoComplete:ne,editable:Ie,activeDescendantId:re,value:Ne,onKeyDown:he,onMouseDown:me,onChange:function(ke){xe(!0),ue(ke)},onPaste:pe,onCompositionStart:ye,onCompositionEnd:be,onBlur:ge,tabIndex:ce,attrs:pickAttrs($,!0),maxLength:$e?fe:void 0})),!$e&&Fe?React__namespace.createElement("span",{className:"".concat(F,"-selection-item"),title:Oe,style:De?{visibility:"hidden"}:void 0},Fe.label):null,we)},Selector=function($,V){var F=React.useRef(null),K=React.useRef(!1),J=$.prefixCls,ee=$.open,te=$.mode,ne=$.showSearch,re=$.tokenWithEnter,ae=$.disabled,oe=$.prefix,ie=$.autoClearSearchValue,se=$.onSearch,ce=$.onSearchSubmit,de=$.onToggleOpen,le=$.onInputKeyDown,ve=$.onInputBlur,fe=$.domRef;React__namespace.useImperativeHandle(V,function(){return{focus:function(Oe){F.current.focus(Oe)},blur:function(){F.current.blur()}}});var he=useLock(0),me=_slicedToArray(he,2),ue=me[0],pe=me[1],ye=function(Oe){var we=Oe.which,Ae=F.current instanceof HTMLTextAreaElement;!Ae&&ee&&(we===KeyCode.UP||we===KeyCode.DOWN)&&Oe.preventDefault(),le&&le(Oe),we===KeyCode.ENTER&&te==="tags"&&!K.current&&!ee&&(ce==null||ce(Oe.target.value)),!(Ae&&!ee&&~[KeyCode.UP,KeyCode.DOWN,KeyCode.LEFT,KeyCode.RIGHT].indexOf(we))&&isValidateOpenKey(we)&&de(!0)},be=function(){pe(!0)},ge=React.useRef(null),_e=function(Oe){se(Oe,!0,K.current)!==!1&&de(!0)},Se=function(){K.current=!0},Ee=function(Oe){K.current=!1,te!=="combobox"&&_e(Oe.target.value)},Ce=function(Oe){var we=Oe.target.value;if(re&&ge.current&&/[\r\n]/.test(ge.current)){var Ae=ge.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");we=we.replace(Ae,ge.current)}ge.current=null,_e(we)},xe=function(Oe){var we=Oe.clipboardData,Ae=we==null?void 0:we.getData("text");ge.current=Ae||""},$e=function(Oe){var we=Oe.target;if(we!==F.current){var Ae=document.body.style.msTouchAction!==void 0;Ae?setTimeout(function(){F.current.focus()}):F.current.focus()}},Ie=function(Oe){var we=ue();Oe.target!==F.current&&!we&&!(te==="combobox"&&ae)&&Oe.preventDefault(),(te!=="combobox"&&(!ne||!we)||!ee)&&(ee&&ie!==!1&&se("",!0,!1),de())},Fe={inputRef:F,onInputKeyDown:ye,onInputMouseDown:be,onInputChange:Ce,onInputPaste:xe,onInputCompositionStart:Se,onInputCompositionEnd:Ee,onInputBlur:ve},Ne=te==="multiple"||te==="tags"?React__namespace.createElement(SelectSelector,_extends({},$,Fe)):React__namespace.createElement(SingleSelector,_extends({},$,Fe));return React__namespace.createElement("div",{ref:fe,className:"".concat(J,"-selector"),onClick:$e,onMouseDown:Ie},oe&&React__namespace.createElement("div",{className:"".concat(J,"-prefix")},oe),Ne)},ForwardSelector=React__namespace.forwardRef(Selector);process.env.NODE_ENV!=="production"&&(ForwardSelector.displayName="Selector");function Arrow(C){var $=C.prefixCls,V=C.align,F=C.arrow,K=C.arrowPos,J=F||{},ee=J.className,te=J.content,ne=K.x,re=ne===void 0?0:ne,ae=K.y,oe=ae===void 0?0:ae,ie=React__namespace.useRef();if(!V||!V.points)return null;var se={position:"absolute"};if(V.autoArrow!==!1){var ce=V.points[0],de=V.points[1],le=ce[0],ve=ce[1],fe=de[0],he=de[1];le===fe||!["t","b"].includes(le)?se.top=oe:le==="t"?se.top=0:se.bottom=0,ve===he||!["l","r"].includes(ve)?se.left=re:ve==="l"?se.left=0:se.right=0}return React__namespace.createElement("div",{ref:ie,className:classNames("".concat($,"-arrow"),ee),style:se},te)}function Mask(C){var $=C.prefixCls,V=C.open,F=C.zIndex,K=C.mask,J=C.motion;return K?React__namespace.createElement(CSSMotion,_extends({},J,{motionAppear:!0,visible:V,removeOnLeave:!0}),function(ee){var te=ee.className;return React__namespace.createElement("div",{style:{zIndex:F},className:classNames("".concat($,"-mask"),te)})}):null}var PopupContent=React__namespace.memo(function(C){var $=C.children;return $},function(C,$){return $.cache});process.env.NODE_ENV!=="production"&&(PopupContent.displayName="PopupContent");var Popup$1=React__namespace.forwardRef(function(C,$){var V=C.popup,F=C.className,K=C.prefixCls,J=C.style,ee=C.target,te=C.onVisibleChanged,ne=C.open,re=C.keepDom,ae=C.fresh,oe=C.onClick,ie=C.mask,se=C.arrow,ce=C.arrowPos,de=C.align,le=C.motion,ve=C.maskMotion,fe=C.forceRender,he=C.getPopupContainer,me=C.autoDestroy,ue=C.portal,pe=C.zIndex,ye=C.onMouseEnter,be=C.onMouseLeave,ge=C.onPointerEnter,_e=C.onPointerDownCapture,Se=C.ready,Ee=C.offsetX,Ce=C.offsetY,xe=C.offsetR,$e=C.offsetB,Ie=C.onAlign,Fe=C.onPrepare,Ne=C.stretch,De=C.targetWidth,Oe=C.targetHeight,we=typeof V=="function"?V():V,Ae=ne||re,ke=(he==null?void 0:he.length)>0,je=React__namespace.useState(!he||!ke),ze=_slicedToArray(je,2),Ve=ze[0],Xe=ze[1];if(useLayoutEffect$1(function(){!Ve&&ke&&ee&&Xe(!0)},[Ve,ke,ee]),!Ve)return null;var Ye="auto",at={left:"-1000vw",top:"-1000vh",right:Ye,bottom:Ye};if(Se||!ne){var Ue,Le=de.points,Te=de.dynamicInset||((Ue=de._experimental)===null||Ue===void 0?void 0:Ue.dynamicInset),Pe=Te&&Le[0][1]==="r",Me=Te&&Le[0][0]==="b";Pe?(at.right=xe,at.left=Ye):(at.left=Ee,at.right=Ye),Me?(at.bottom=$e,at.top=Ye):(at.top=Ce,at.bottom=Ye)}var He={};return Ne&&(Ne.includes("height")&&Oe?He.height=Oe:Ne.includes("minHeight")&&Oe&&(He.minHeight=Oe),Ne.includes("width")&&De?He.width=De:Ne.includes("minWidth")&&De&&(He.minWidth=De)),ne||(He.pointerEvents="none"),React__namespace.createElement(ue,{open:fe||Ae,getContainer:he&&function(){return he(ee)},autoDestroy:me},React__namespace.createElement(Mask,{prefixCls:K,open:ne,zIndex:pe,mask:ie,motion:ve}),React__namespace.createElement(RefResizeObserver,{onResize:Ie,disabled:!ne},function(We){return React__namespace.createElement(CSSMotion,_extends({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:fe,leavedClassName:"".concat(K,"-hidden")},le,{onAppearPrepare:Fe,onEnterPrepare:Fe,visible:ne,onVisibleChanged:function(rt){var st;le==null||(st=le.onVisibleChanged)===null||st===void 0||st.call(le,rt),te(rt)}}),function(Ke,rt){var st=Ke.className,it=Ke.style,Je=classNames(K,st,F);return React__namespace.createElement("div",{ref:composeRef(We,$,rt),className:Je,style:_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({"--arrow-x":"".concat(ce.x||0,"px"),"--arrow-y":"".concat(ce.y||0,"px")},at),He),it),{},{boxSizing:"border-box",zIndex:pe},J),onMouseEnter:ye,onMouseLeave:be,onPointerEnter:ge,onClick:oe,onPointerDownCapture:_e},se&&React__namespace.createElement(Arrow,{prefixCls:K,arrow:se,arrowPos:ce,align:de}),React__namespace.createElement(PopupContent,{cache:!ne&&!ae},we))})}))});process.env.NODE_ENV!=="production"&&(Popup$1.displayName="Popup");var TriggerWrapper=React__namespace.forwardRef(function(C,$){var V=C.children,F=C.getTriggerDOMNode,K=supportRef(V),J=React__namespace.useCallback(function(te){fillRef($,F?F(te):te)},[F]),ee=useComposeRef(J,getNodeRef(V));return K?React__namespace.cloneElement(V,{ref:ee}):V});process.env.NODE_ENV!=="production"&&(TriggerWrapper.displayName="TriggerWrapper");var TriggerContext=React__namespace.createContext(null);function toArray$3(C){return C?Array.isArray(C)?C:[C]:[]}function useAction(C,$,V,F){return React__namespace.useMemo(function(){var K=toArray$3(V!=null?V:$),J=toArray$3(F!=null?F:$),ee=new Set(K),te=new Set(J);return C&&(ee.has("hover")&&(ee.delete("hover"),ee.add("click")),te.has("hover")&&(te.delete("hover"),te.add("click"))),[ee,te]},[C,$,V,F])}function isPointsEq(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],V=arguments.length>2?arguments[2]:void 0;return V?C[0]===$[0]:C[0]===$[0]&&C[1]===$[1]}function getAlignPopupClassName(C,$,V,F){for(var K=V.points,J=Object.keys(C),ee=0;ee<J.length;ee+=1){var te,ne=J[ee];if(isPointsEq((te=C[ne])===null||te===void 0?void 0:te.points,K,F))return"".concat($,"-placement-").concat(ne)}return""}function getMotion$1(C,$,V,F){return $||(V?{motionName:"".concat(C,"-").concat(V)}:F?{motionName:F}:null)}function getWin(C){return C.ownerDocument.defaultView}function collectScroller(C){for(var $=[],V=C==null?void 0:C.parentElement,F=["hidden","scroll","clip","auto"];V;){var K=getWin(V).getComputedStyle(V),J=K.overflowX,ee=K.overflowY,te=K.overflow;[J,ee,te].some(function(ne){return F.includes(ne)})&&$.push(V),V=V.parentElement}return $}function toNum(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(C)?$:C}function getPxValue(C){return toNum(parseFloat(C),0)}function getVisibleArea(C,$){var V=_objectSpread2({},C);return($||[]).forEach(function(F){if(!(F instanceof HTMLBodyElement||F instanceof HTMLHtmlElement)){var K=getWin(F).getComputedStyle(F),J=K.overflow,ee=K.overflowClipMargin,te=K.borderTopWidth,ne=K.borderBottomWidth,re=K.borderLeftWidth,ae=K.borderRightWidth,oe=F.getBoundingClientRect(),ie=F.offsetHeight,se=F.clientHeight,ce=F.offsetWidth,de=F.clientWidth,le=getPxValue(te),ve=getPxValue(ne),fe=getPxValue(re),he=getPxValue(ae),me=toNum(Math.round(oe.width/ce*1e3)/1e3),ue=toNum(Math.round(oe.height/ie*1e3)/1e3),pe=(ce-de-fe-he)*me,ye=(ie-se-le-ve)*ue,be=le*ue,ge=ve*ue,_e=fe*me,Se=he*me,Ee=0,Ce=0;if(J==="clip"){var xe=getPxValue(ee);Ee=xe*me,Ce=xe*ue}var $e=oe.x+_e-Ee,Ie=oe.y+be-Ce,Fe=$e+oe.width+2*Ee-_e-Se-pe,Ne=Ie+oe.height+2*Ce-be-ge-ye;V.left=Math.max(V.left,$e),V.top=Math.max(V.top,Ie),V.right=Math.min(V.right,Fe),V.bottom=Math.min(V.bottom,Ne)}}),V}function getUnitOffset(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,V="".concat($),F=V.match(/^(.*)\%$/);return F?C*(parseFloat(F[1])/100):parseFloat(V)}function getNumberOffset(C,$){var V=$||[],F=_slicedToArray(V,2),K=F[0],J=F[1];return[getUnitOffset(C.width,K),getUnitOffset(C.height,J)]}function splitPoints(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[C[0],C[1]]}function getAlignPoint(C,$){var V=$[0],F=$[1],K,J;return V==="t"?J=C.y:V==="b"?J=C.y+C.height:J=C.y+C.height/2,F==="l"?K=C.x:F==="r"?K=C.x+C.width:K=C.x+C.width/2,{x:K,y:J}}function reversePoints(C,$){var V={t:"b",b:"t",l:"r",r:"l"};return C.map(function(F,K){return K===$?V[F]||"c":F}).join("")}function useAlign(C,$,V,F,K,J,ee){var te=React__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:K[F]||{}}),ne=_slicedToArray(te,2),re=ne[0],ae=ne[1],oe=React__namespace.useRef(0),ie=React__namespace.useMemo(function(){return $?collectScroller($):[]},[$]),se=React__namespace.useRef({}),ce=function(){se.current={}};C||ce();var de=useEvent(function(){if($&&V&&C){let Hn=function(fr,Yn){var Jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vt,pr=je.x+fr,hr=je.y+Yn,zr=pr+Pe,Or=hr+Te,Ir=Math.max(pr,Jn.left),fn=Math.max(hr,Jn.top),Rn=Math.min(zr,Jn.right),Wn=Math.min(Or,Jn.bottom);return Math.max(0,(Rn-Ir)*(Wn-fn))},Gn=function(){sn=je.y+At,gn=sn+Te,mt=je.x+Ct,Ot=mt+Pe};var fe,he,me,ue,pe=$,ye=pe.ownerDocument,be=getWin(pe),ge=be.getComputedStyle(pe),_e=ge.width,Se=ge.height,Ee=ge.position,Ce=pe.style.left,xe=pe.style.top,$e=pe.style.right,Ie=pe.style.bottom,Fe=pe.style.overflow,Ne=_objectSpread2(_objectSpread2({},K[F]),J),De=ye.createElement("div");(fe=pe.parentElement)===null||fe===void 0||fe.appendChild(De),De.style.left="".concat(pe.offsetLeft,"px"),De.style.top="".concat(pe.offsetTop,"px"),De.style.position=Ee,De.style.height="".concat(pe.offsetHeight,"px"),De.style.width="".concat(pe.offsetWidth,"px"),pe.style.left="0",pe.style.top="0",pe.style.right="auto",pe.style.bottom="auto",pe.style.overflow="hidden";var Oe;if(Array.isArray(V))Oe={x:V[0],y:V[1],width:0,height:0};else{var we,Ae,ke=V.getBoundingClientRect();ke.x=(we=ke.x)!==null&&we!==void 0?we:ke.left,ke.y=(Ae=ke.y)!==null&&Ae!==void 0?Ae:ke.top,Oe={x:ke.x,y:ke.y,width:ke.width,height:ke.height}}var je=pe.getBoundingClientRect();je.x=(he=je.x)!==null&&he!==void 0?he:je.left,je.y=(me=je.y)!==null&&me!==void 0?me:je.top;var ze=ye.documentElement,Ve=ze.clientWidth,Xe=ze.clientHeight,Ye=ze.scrollWidth,at=ze.scrollHeight,Ue=ze.scrollTop,Le=ze.scrollLeft,Te=je.height,Pe=je.width,Me=Oe.height,He=Oe.width,We={left:0,top:0,right:Ve,bottom:Xe},Ke={left:-Le,top:-Ue,right:Ye-Le,bottom:at-Ue},rt=Ne.htmlRegion,st="visible",it="visibleFirst";rt!=="scroll"&&rt!==it&&(rt=st);var Je=rt===it,ct=getVisibleArea(Ke,ie),dt=getVisibleArea(We,ie),vt=rt===st?dt:ct,ht=Je?dt:vt;pe.style.left="auto",pe.style.top="auto",pe.style.right="0",pe.style.bottom="0";var bt=pe.getBoundingClientRect();pe.style.left=Ce,pe.style.top=xe,pe.style.right=$e,pe.style.bottom=Ie,pe.style.overflow=Fe,(ue=pe.parentElement)===null||ue===void 0||ue.removeChild(De);var Rt=toNum(Math.round(Pe/parseFloat(_e)*1e3)/1e3),wt=toNum(Math.round(Te/parseFloat(Se)*1e3)/1e3);if(Rt===0||wt===0||isDOM(V)&&!isVisible(V))return;var lt=Ne.offset,ut=Ne.targetOffset,Ge=getNumberOffset(je,lt),et=_slicedToArray(Ge,2),Ze=et[0],nt=et[1],tt=getNumberOffset(Oe,ut),qe=_slicedToArray(tt,2),ot=qe[0],ft=qe[1];Oe.x-=ot,Oe.y-=ft;var yt=Ne.points||[],$t=_slicedToArray(yt,2),kt=$t[0],Dt=$t[1],St=splitPoints(Dt),Bt=splitPoints(kt),It=getAlignPoint(Oe,St),Pt=getAlignPoint(je,Bt),Tt=_objectSpread2({},Ne),Ct=It.x-Pt.x+Ze,At=It.y-Pt.y+nt,Ht=Hn(Ct,At),Gt=Hn(Ct,At,dt),zt=getAlignPoint(Oe,["t","l"]),Ft=getAlignPoint(je,["t","l"]),Vt=getAlignPoint(Oe,["b","r"]),Kt=getAlignPoint(je,["b","r"]),qt=Ne.overflow||{},ln=qt.adjustX,Cn=qt.adjustY,Wt=qt.shiftX,Jt=qt.shiftY,dn=function(Yn){return typeof Yn=="boolean"?Yn:Yn>=0},sn,gn,mt,Ot;Gn();var pt=dn(Cn),_t=Bt[0]===St[0];if(pt&&Bt[0]==="t"&&(gn>ht.bottom||se.current.bt)){var Et=At;_t?Et-=Te-Me:Et=zt.y-Kt.y-nt;var Nt=Hn(Ct,Et),Mt=Hn(Ct,Et,dt);Nt>Ht||Nt===Ht&&(!Je||Mt>=Gt)?(se.current.bt=!0,At=Et,nt=-nt,Tt.points=[reversePoints(Bt,0),reversePoints(St,0)]):se.current.bt=!1}if(pt&&Bt[0]==="b"&&(sn<ht.top||se.current.tb)){var Lt=At;_t?Lt+=Te-Me:Lt=Vt.y-Ft.y-nt;var Xt=Hn(Ct,Lt),vn=Hn(Ct,Lt,dt);Xt>Ht||Xt===Ht&&(!Je||vn>=Gt)?(se.current.tb=!0,At=Lt,nt=-nt,Tt.points=[reversePoints(Bt,0),reversePoints(St,0)]):se.current.tb=!1}var bn=dn(ln),_n=Bt[1]===St[1];if(bn&&Bt[1]==="l"&&(Ot>ht.right||se.current.rl)){var Nn=Ct;_n?Nn-=Pe-He:Nn=zt.x-Kt.x-Ze;var Tn=Hn(Nn,At),Qt=Hn(Nn,At,dt);Tn>Ht||Tn===Ht&&(!Je||Qt>=Gt)?(se.current.rl=!0,Ct=Nn,Ze=-Ze,Tt.points=[reversePoints(Bt,1),reversePoints(St,1)]):se.current.rl=!1}if(bn&&Bt[1]==="r"&&(mt<ht.left||se.current.lr)){var Yt=Ct;_n?Yt+=Pe-He:Yt=Vt.x-Ft.x-Ze;var wn=Hn(Yt,At),Fn=Hn(Yt,At,dt);wn>Ht||wn===Ht&&(!Je||Fn>=Gt)?(se.current.lr=!0,Ct=Yt,Ze=-Ze,Tt.points=[reversePoints(Bt,1),reversePoints(St,1)]):se.current.lr=!1}Gn();var Ln=Wt===!0?0:Wt;typeof Ln=="number"&&(mt<dt.left&&(Ct-=mt-dt.left-Ze,Oe.x+He<dt.left+Ln&&(Ct+=Oe.x-dt.left+He-Ln)),Ot>dt.right&&(Ct-=Ot-dt.right-Ze,Oe.x>dt.right-Ln&&(Ct+=Oe.x-dt.right+Ln)));var Vn=Jt===!0?0:Jt;typeof Vn=="number"&&(sn<dt.top&&(At-=sn-dt.top-nt,Oe.y+Me<dt.top+Vn&&(At+=Oe.y-dt.top+Me-Vn)),gn>dt.bottom&&(At-=gn-dt.bottom-nt,Oe.y>dt.bottom-Vn&&(At+=Oe.y-dt.bottom+Vn)));var nr=je.x+Ct,Un=nr+Pe,Pn=je.y+At,rr=Pn+Te,lr=Oe.x,En=lr+He,Zt=Oe.y,Sn=Zt+Me,$n=Math.max(nr,lr),On=Math.min(Un,En),An=($n+On)/2,Kn=An-nr,Xn=Math.max(Pn,Zt),or=Math.min(rr,Sn),cr=(Xn+or)/2,ur=cr-Pn;ee==null||ee($,Tt);var hn=bt.right-je.x-(Ct+je.width),yn=bt.bottom-je.y-(At+je.height);Rt===1&&(Ct=Math.round(Ct),hn=Math.round(hn)),wt===1&&(At=Math.round(At),yn=Math.round(yn));var Bn={ready:!0,offsetX:Ct/Rt,offsetY:At/wt,offsetR:hn/Rt,offsetB:yn/wt,arrowX:Kn/Rt,arrowY:ur/wt,scaleX:Rt,scaleY:wt,align:Tt};ae(Bn)}}),le=function(){oe.current+=1;var he=oe.current;Promise.resolve().then(function(){oe.current===he&&de()})},ve=function(){ae(function(he){return _objectSpread2(_objectSpread2({},he),{},{ready:!1})})};return useLayoutEffect$1(ve,[F]),useLayoutEffect$1(function(){C||ve()},[C]),[re.ready,re.offsetX,re.offsetY,re.offsetR,re.offsetB,re.arrowX,re.arrowY,re.scaleX,re.scaleY,re.align,le]}function useWatch(C,$,V,F,K){useLayoutEffect$1(function(){if(C&&$&&V){let oe=function(){F(),K()};var J=$,ee=V,te=collectScroller(J),ne=collectScroller(ee),re=getWin(ee),ae=new Set([re].concat(_toConsumableArray(te),_toConsumableArray(ne)));return ae.forEach(function(ie){ie.addEventListener("scroll",oe,{passive:!0})}),re.addEventListener("resize",oe,{passive:!0}),F(),function(){ae.forEach(function(ie){ie.removeEventListener("scroll",oe),re.removeEventListener("resize",oe)})}}},[C,$,V])}function useWinClick(C,$,V,F,K,J,ee,te){var ne=React__namespace.useRef(C);ne.current=C;var re=React__namespace.useRef(!1);React__namespace.useEffect(function(){if($&&F&&(!K||J)){var oe=function(){re.current=!1},ie=function(me){var ue;ne.current&&!ee(((ue=me.composedPath)===null||ue===void 0||(ue=ue.call(me))===null||ue===void 0?void 0:ue[0])||me.target)&&!re.current&&te(!1)},se=getWin(F);se.addEventListener("pointerdown",oe,!0),se.addEventListener("mousedown",ie,!0),se.addEventListener("contextmenu",ie,!0);var ce=getShadowRoot(V);if(ce&&(ce.addEventListener("mousedown",ie,!0),ce.addEventListener("contextmenu",ie,!0)),process.env.NODE_ENV!=="production"){var de,le,ve=V==null||(de=V.getRootNode)===null||de===void 0?void 0:de.call(V),fe=(le=F.getRootNode)===null||le===void 0?void 0:le.call(F);warning$6(ve===fe,"trigger element and popup element should in same shadow root.")}return function(){se.removeEventListener("pointerdown",oe,!0),se.removeEventListener("mousedown",ie,!0),se.removeEventListener("contextmenu",ie,!0),ce&&(ce.removeEventListener("mousedown",ie,!0),ce.removeEventListener("contextmenu",ie,!0))}}},[$,V,F,K,J]);function ae(){re.current=!0}return ae}var _excluded$G=["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"];function generateTrigger(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Portal,$=React__namespace.forwardRef(function(V,F){var K=V.prefixCls,J=K===void 0?"rc-trigger-popup":K,ee=V.children,te=V.action,ne=te===void 0?"hover":te,re=V.showAction,ae=V.hideAction,oe=V.popupVisible,ie=V.defaultPopupVisible,se=V.onPopupVisibleChange,ce=V.afterPopupVisibleChange,de=V.mouseEnterDelay,le=V.mouseLeaveDelay,ve=le===void 0?.1:le,fe=V.focusDelay,he=V.blurDelay,me=V.mask,ue=V.maskClosable,pe=ue===void 0?!0:ue,ye=V.getPopupContainer,be=V.forceRender,ge=V.autoDestroy,_e=V.destroyPopupOnHide,Se=V.popup,Ee=V.popupClassName,Ce=V.popupStyle,xe=V.popupPlacement,$e=V.builtinPlacements,Ie=$e===void 0?{}:$e,Fe=V.popupAlign,Ne=V.zIndex,De=V.stretch,Oe=V.getPopupClassNameFromAlign,we=V.fresh,Ae=V.alignPoint,ke=V.onPopupClick,je=V.onPopupAlign,ze=V.arrow,Ve=V.popupMotion,Xe=V.maskMotion,Ye=V.popupTransitionName,at=V.popupAnimation,Ue=V.maskTransitionName,Le=V.maskAnimation,Te=V.className,Pe=V.getTriggerDOMNode,Me=_objectWithoutProperties(V,_excluded$G),He=ge||_e||!1,We=React__namespace.useState(!1),Ke=_slicedToArray(We,2),rt=Ke[0],st=Ke[1];useLayoutEffect$1(function(){st(isMobile())},[]);var it=React__namespace.useRef({}),Je=React__namespace.useContext(TriggerContext),ct=React__namespace.useMemo(function(){return{registerSubPopup:function(Rn,Wn){it.current[Rn]=Wn,Je==null||Je.registerSubPopup(Rn,Wn)}}},[Je]),dt=useId$2(),vt=React__namespace.useState(null),ht=_slicedToArray(vt,2),bt=ht[0],Rt=ht[1],wt=React__namespace.useRef(null),lt=useEvent(function(fn){wt.current=fn,isDOM(fn)&&bt!==fn&&Rt(fn),Je==null||Je.registerSubPopup(dt,fn)}),ut=React__namespace.useState(null),Ge=_slicedToArray(ut,2),et=Ge[0],Ze=Ge[1],nt=React__namespace.useRef(null),tt=useEvent(function(fn){isDOM(fn)&&et!==fn&&(Ze(fn),nt.current=fn)}),qe=React__namespace.Children.only(ee),ot=(qe==null?void 0:qe.props)||{},ft={},yt=useEvent(function(fn){var Rn,Wn,ar=et;return(ar==null?void 0:ar.contains(fn))||((Rn=getShadowRoot(ar))===null||Rn===void 0?void 0:Rn.host)===fn||fn===ar||(bt==null?void 0:bt.contains(fn))||((Wn=getShadowRoot(bt))===null||Wn===void 0?void 0:Wn.host)===fn||fn===bt||Object.values(it.current).some(function(qn){return(qn==null?void 0:qn.contains(fn))||fn===qn})}),$t=getMotion$1(J,Ve,at,Ye),kt=getMotion$1(J,Xe,Le,Ue),Dt=React__namespace.useState(ie||!1),St=_slicedToArray(Dt,2),Bt=St[0],It=St[1],Pt=oe!=null?oe:Bt,Tt=useEvent(function(fn){oe===void 0&&It(fn)});useLayoutEffect$1(function(){It(oe||!1)},[oe]);var Ct=React__namespace.useRef(Pt);Ct.current=Pt;var At=React__namespace.useRef([]);At.current=[];var Ht=useEvent(function(fn){var Rn;Tt(fn),((Rn=At.current[At.current.length-1])!==null&&Rn!==void 0?Rn:Pt)!==fn&&(At.current.push(fn),se==null||se(fn))}),Gt=React__namespace.useRef(),zt=function(){clearTimeout(Gt.current)},Ft=function(Rn){var Wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;zt(),Wn===0?Ht(Rn):Gt.current=setTimeout(function(){Ht(Rn)},Wn*1e3)};React__namespace.useEffect(function(){return zt},[]);var Vt=React__namespace.useState(!1),Kt=_slicedToArray(Vt,2),qt=Kt[0],ln=Kt[1];useLayoutEffect$1(function(fn){(!fn||Pt)&&ln(!0)},[Pt]);var Cn=React__namespace.useState(null),Wt=_slicedToArray(Cn,2),Jt=Wt[0],dn=Wt[1],sn=React__namespace.useState(null),gn=_slicedToArray(sn,2),mt=gn[0],Ot=gn[1],pt=function(Rn){Ot([Rn.clientX,Rn.clientY])},_t=useAlign(Pt,bt,Ae&&mt!==null?mt:et,xe,Ie,Fe,je),Et=_slicedToArray(_t,11),Nt=Et[0],Mt=Et[1],Lt=Et[2],Xt=Et[3],vn=Et[4],bn=Et[5],_n=Et[6],Nn=Et[7],Tn=Et[8],Qt=Et[9],Yt=Et[10],wn=useAction(rt,ne,re,ae),Fn=_slicedToArray(wn,2),Ln=Fn[0],Vn=Fn[1],nr=Ln.has("click"),Un=Vn.has("click")||Vn.has("contextMenu"),Pn=useEvent(function(){qt||Yt()}),rr=function(){Ct.current&&Ae&&Un&&Ft(!1)};useWatch(Pt,et,bt,Pn,rr),useLayoutEffect$1(function(){Pn()},[mt,xe]),useLayoutEffect$1(function(){Pt&&!(Ie!=null&&Ie[xe])&&Pn()},[JSON.stringify(Fe)]);var lr=React__namespace.useMemo(function(){var fn=getAlignPopupClassName(Ie,J,Qt,Ae);return classNames(fn,Oe==null?void 0:Oe(Qt))},[Qt,Oe,Ie,J,Ae]);React__namespace.useImperativeHandle(F,function(){return{nativeElement:nt.current,popupElement:wt.current,forceAlign:Pn}});var En=React__namespace.useState(0),Zt=_slicedToArray(En,2),Sn=Zt[0],$n=Zt[1],On=React__namespace.useState(0),An=_slicedToArray(On,2),Kn=An[0],Xn=An[1],or=function(){if(De&&et){var Rn=et.getBoundingClientRect();$n(Rn.width),Xn(Rn.height)}},cr=function(){or(),Pn()},ur=function(Rn){ln(!1),Yt(),ce==null||ce(Rn)},hn=function(){return new Promise(function(Rn){or(),dn(function(){return Rn})})};useLayoutEffect$1(function(){Jt&&(Yt(),Jt(),dn(null))},[Jt]);function yn(fn,Rn,Wn,ar){ft[fn]=function(qn){var mr;ar==null||ar(qn),Ft(Rn,Wn);for(var Hr=arguments.length,Yr=new Array(Hr>1?Hr-1:0),Mr=1;Mr<Hr;Mr++)Yr[Mr-1]=arguments[Mr];(mr=ot[fn])===null||mr===void 0||mr.call.apply(mr,[ot,qn].concat(Yr))}}(nr||Un)&&(ft.onClick=function(fn){var Rn;Ct.current&&Un?Ft(!1):!Ct.current&&nr&&(pt(fn),Ft(!0));for(var Wn=arguments.length,ar=new Array(Wn>1?Wn-1:0),qn=1;qn<Wn;qn++)ar[qn-1]=arguments[qn];(Rn=ot.onClick)===null||Rn===void 0||Rn.call.apply(Rn,[ot,fn].concat(ar))});var Bn=useWinClick(Pt,Un,et,bt,me,pe,yt,Ft),Hn=Ln.has("hover"),Gn=Vn.has("hover"),fr,Yn;Hn&&(yn("onMouseEnter",!0,de,function(fn){pt(fn)}),yn("onPointerEnter",!0,de,function(fn){pt(fn)}),fr=function(Rn){(Pt||qt)&&bt!==null&&bt!==void 0&&bt.contains(Rn.target)&&Ft(!0,de)},Ae&&(ft.onMouseMove=function(fn){var Rn;(Rn=ot.onMouseMove)===null||Rn===void 0||Rn.call(ot,fn)})),Gn&&(yn("onMouseLeave",!1,ve),yn("onPointerLeave",!1,ve),Yn=function(){Ft(!1,ve)}),Ln.has("focus")&&yn("onFocus",!0,fe),Vn.has("focus")&&yn("onBlur",!1,he),Ln.has("contextMenu")&&(ft.onContextMenu=function(fn){var Rn;Ct.current&&Vn.has("contextMenu")?Ft(!1):(pt(fn),Ft(!0)),fn.preventDefault();for(var Wn=arguments.length,ar=new Array(Wn>1?Wn-1:0),qn=1;qn<Wn;qn++)ar[qn-1]=arguments[qn];(Rn=ot.onContextMenu)===null||Rn===void 0||Rn.call.apply(Rn,[ot,fn].concat(ar))}),Te&&(ft.className=classNames(ot.className,Te));var Jn=_objectSpread2(_objectSpread2({},ot),ft),pr={},hr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];hr.forEach(function(fn){Me[fn]&&(pr[fn]=function(){for(var Rn,Wn=arguments.length,ar=new Array(Wn),qn=0;qn<Wn;qn++)ar[qn]=arguments[qn];(Rn=Jn[fn])===null||Rn===void 0||Rn.call.apply(Rn,[Jn].concat(ar)),Me[fn].apply(Me,ar)})});var zr=React__namespace.cloneElement(qe,_objectSpread2(_objectSpread2({},Jn),pr)),Or={x:bn,y:_n},Ir=ze?_objectSpread2({},ze!==!0?ze:{}):null;return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(RefResizeObserver,{disabled:!Pt,ref:tt,onResize:cr},React__namespace.createElement(TriggerWrapper,{getTriggerDOMNode:Pe},zr)),React__namespace.createElement(TriggerContext.Provider,{value:ct},React__namespace.createElement(Popup$1,{portal:C,ref:lt,prefixCls:J,popup:Se,className:classNames(Ee,lr),style:Ce,target:et,onMouseEnter:fr,onMouseLeave:Yn,onPointerEnter:fr,zIndex:Ne,open:Pt,keepDom:qt,fresh:we,onClick:ke,onPointerDownCapture:Bn,mask:me,motion:$t,maskMotion:kt,onVisibleChanged:ur,onPrepare:hn,forceRender:be,autoDestroy:He,getPopupContainer:ye,align:Qt,arrow:Ir,arrowPos:Or,ready:Nt,offsetX:Mt,offsetY:Lt,offsetR:Xt,offsetB:vn,onAlign:Pn,stretch:De,targetWidth:Sn/Nn,targetHeight:Kn/Tn})))});return process.env.NODE_ENV!=="production"&&($.displayName="Trigger"),$}const Trigger=generateTrigger(Portal);var _excluded$F=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements$1=function($){var V=$===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:V,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:V,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:V,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:V,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger=function($,V){var F=$.prefixCls;$.disabled;var K=$.visible,J=$.children,ee=$.popupElement,te=$.animation,ne=$.transitionName,re=$.dropdownStyle,ae=$.dropdownClassName,oe=$.direction,ie=oe===void 0?"ltr":oe,se=$.placement,ce=$.builtinPlacements,de=$.dropdownMatchSelectWidth,le=$.dropdownRender,ve=$.dropdownAlign,fe=$.getPopupContainer,he=$.empty,me=$.getTriggerDOMNode,ue=$.onPopupVisibleChange,pe=$.onPopupMouseEnter,ye=_objectWithoutProperties($,_excluded$F),be="".concat(F,"-dropdown"),ge=ee;le&&(ge=le(ee));var _e=React__namespace.useMemo(function(){return ce||getBuiltInPlacements$1(de)},[ce,de]),Se=te?"".concat(be,"-").concat(te):ne,Ee=typeof de=="number",Ce=React__namespace.useMemo(function(){return Ee?null:de===!1?"minWidth":"width"},[de,Ee]),xe=re;Ee&&(xe=_objectSpread2(_objectSpread2({},xe),{},{width:de}));var $e=React__namespace.useRef(null);return React__namespace.useImperativeHandle(V,function(){return{getPopupElement:function(){var Fe;return(Fe=$e.current)===null||Fe===void 0?void 0:Fe.popupElement}}}),React__namespace.createElement(Trigger,_extends({},ye,{showAction:ue?["click"]:[],hideAction:ue?["click"]:[],popupPlacement:se||(ie==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_e,prefixCls:be,popupTransitionName:Se,popup:React__namespace.createElement("div",{onMouseEnter:pe},ge),ref:$e,stretch:Ce,popupAlign:ve,popupVisible:K,getPopupContainer:fe,popupClassName:classNames(ae,_defineProperty({},"".concat(be,"-empty"),he)),popupStyle:xe,getTriggerDOMNode:me,onPopupVisibleChange:ue}),J)},RefSelectTrigger=React__namespace.forwardRef(SelectTrigger);process.env.NODE_ENV!=="production"&&(RefSelectTrigger.displayName="SelectTrigger");function getKey$2(C,$){var V=C.key,F;return"value"in C&&(F=C.value),V!=null?V:F!==void 0?F:"rc-index-key-".concat($)}function isValidCount(C){return typeof C!="undefined"&&!Number.isNaN(C)}function fillFieldNames$1(C,$){var V=C||{},F=V.label,K=V.value,J=V.options,ee=V.groupLabel,te=F||($?"children":"label");return{label:te,value:K||"value",options:J||"options",groupLabel:ee||te}}function flattenOptions(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=$.fieldNames,F=$.childrenAsData,K=[],J=fillFieldNames$1(V,!1),ee=J.label,te=J.value,ne=J.options,re=J.groupLabel;function ae(oe,ie){Array.isArray(oe)&&oe.forEach(function(se){if(ie||!(ne in se)){var ce=se[te];K.push({key:getKey$2(se,K.length),groupOption:ie,data:se,label:se[ee],value:ce})}else{var de=se[re];de===void 0&&F&&(de=se.label),K.push({key:getKey$2(se,K.length),group:!0,data:se,label:de}),ae(se[ne],!0)}})}return ae(C,!1),K}function injectPropsWithOption(C){var $=_objectSpread2({},C);return"props"in $||Object.defineProperty($,"props",{get:function(){return warningOnce(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),$}}),$}var getSeparatedContent=function($,V,F){if(!V||!V.length)return null;var K=!1,J=function te(ne,re){var ae=_toArray(re),oe=ae[0],ie=ae.slice(1);if(!oe)return[ne];var se=ne.split(oe);return K=K||se.length>1,se.reduce(function(ce,de){return[].concat(_toConsumableArray(ce),_toConsumableArray(te(de,ie)))},[]).filter(Boolean)},ee=J($,V);return K?typeof F!="undefined"?ee.slice(0,F):ee:null},SelectContext=React__namespace.createContext(null);function Polite(C){var $=C.visible,V=C.values;if(!$)return null;var F=50;return React__namespace.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(V.slice(0,F).map(function(K){var J=K.label,ee=K.value;return["number","string"].includes(_typeof(J))?J:ee}).join(", ")),V.length>F?", ...":null)}var _excluded$E=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],DEFAULT_OMIT_PROPS=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple=function($){return $==="tags"||$==="multiple"},BaseSelect=React__namespace.forwardRef(function(C,$){var V,F=C.id,K=C.prefixCls,J=C.className,ee=C.showSearch,te=C.tagRender,ne=C.direction,re=C.omitDomProps,ae=C.displayValues,oe=C.onDisplayValuesChange,ie=C.emptyOptions,se=C.notFoundContent,ce=se===void 0?"Not Found":se,de=C.onClear,le=C.mode,ve=C.disabled,fe=C.loading,he=C.getInputElement,me=C.getRawInputElement,ue=C.open,pe=C.defaultOpen,ye=C.onDropdownVisibleChange,be=C.activeValue,ge=C.onActiveValueChange,_e=C.activeDescendantId,Se=C.searchValue,Ee=C.autoClearSearchValue,Ce=C.onSearch,xe=C.onSearchSplit,$e=C.tokenSeparators,Ie=C.allowClear,Fe=C.prefix,Ne=C.suffixIcon,De=C.clearIcon,Oe=C.OptionList,we=C.animation,Ae=C.transitionName,ke=C.dropdownStyle,je=C.dropdownClassName,ze=C.dropdownMatchSelectWidth,Ve=C.dropdownRender,Xe=C.dropdownAlign,Ye=C.placement,at=C.builtinPlacements,Ue=C.getPopupContainer,Le=C.showAction,Te=Le===void 0?[]:Le,Pe=C.onFocus,Me=C.onBlur,He=C.onKeyUp,We=C.onKeyDown,Ke=C.onMouseDown,rt=_objectWithoutProperties(C,_excluded$E),st=isMultiple(le),it=(ee!==void 0?ee:st)||le==="combobox",Je=_objectSpread2({},rt);DEFAULT_OMIT_PROPS.forEach(function(En){delete Je[En]}),re==null||re.forEach(function(En){delete Je[En]});var ct=React__namespace.useState(!1),dt=_slicedToArray(ct,2),vt=dt[0],ht=dt[1];React__namespace.useEffect(function(){ht(isMobile())},[]);var bt=React__namespace.useRef(null),Rt=React__namespace.useRef(null),wt=React__namespace.useRef(null),lt=React__namespace.useRef(null),ut=React__namespace.useRef(null),Ge=React__namespace.useRef(!1),et=useDelayReset(),Ze=_slicedToArray(et,3),nt=Ze[0],tt=Ze[1],qe=Ze[2];React__namespace.useImperativeHandle($,function(){var En,Zt;return{focus:(En=lt.current)===null||En===void 0?void 0:En.focus,blur:(Zt=lt.current)===null||Zt===void 0?void 0:Zt.blur,scrollTo:function($n){var On;return(On=ut.current)===null||On===void 0?void 0:On.scrollTo($n)},nativeElement:bt.current||Rt.current}});var ot=React__namespace.useMemo(function(){var En;if(le!=="combobox")return Se;var Zt=(En=ae[0])===null||En===void 0?void 0:En.value;return typeof Zt=="string"||typeof Zt=="number"?String(Zt):""},[Se,le,ae]),ft=le==="combobox"&&typeof he=="function"&&he()||null,yt=typeof me=="function"&&me(),$t=useComposeRef(Rt,yt==null||(V=yt.props)===null||V===void 0?void 0:V.ref),kt=React__namespace.useState(!1),Dt=_slicedToArray(kt,2),St=Dt[0],Bt=Dt[1];useLayoutEffect$1(function(){Bt(!0)},[]);var It=useMergedState(!1,{defaultValue:pe,value:ue}),Pt=_slicedToArray(It,2),Tt=Pt[0],Ct=Pt[1],At=St?Tt:!1,Ht=!ce&&ie;(ve||Ht&&At&&le==="combobox")&&(At=!1);var Gt=Ht?!1:At,zt=React__namespace.useCallback(function(En){var Zt=En!==void 0?En:!At;ve||(Ct(Zt),At!==Zt&&(ye==null||ye(Zt)))},[ve,At,Ct,ye]),Ft=React__namespace.useMemo(function(){return($e||[]).some(function(En){return[`
205
205
  `,`\r
206
206
  `].includes(En)})},[$e]),Vt=React__namespace.useContext(SelectContext)||{},Kt=Vt.maxCount,qt=Vt.rawValues,ln=function(Zt,Sn,$n){if(!(st&&isValidCount(Kt)&&(qt==null?void 0:qt.size)>=Kt)){var On=!0,An=Zt;ge==null||ge(null);var Kn=getSeparatedContent(Zt,$e,isValidCount(Kt)?Kt-qt.size:void 0),Xn=$n?null:Kn;return le!=="combobox"&&Xn&&(An="",xe==null||xe(Xn),zt(!1),On=!1),Ce&&ot!==An&&Ce(An,{source:Sn?"typing":"effect"}),On}},Cn=function(Zt){!Zt||!Zt.trim()||Ce(Zt,{source:"submit"})};React__namespace.useEffect(function(){!At&&!st&&le!=="combobox"&&ln("",!1,!1)},[At]),React__namespace.useEffect(function(){Tt&&ve&&Ct(!1),ve&&!Ge.current&&tt(!1)},[ve]);var Wt=useLock(),Jt=_slicedToArray(Wt,2),dn=Jt[0],sn=Jt[1],gn=React__namespace.useRef(!1),mt=function(Zt){var Sn=dn(),$n=Zt.key,On=$n==="Enter";if(On&&(le!=="combobox"&&Zt.preventDefault(),At||zt(!0)),sn(!!ot),$n==="Backspace"&&!Sn&&st&&!ot&&ae.length){for(var An=_toConsumableArray(ae),Kn=null,Xn=An.length-1;Xn>=0;Xn-=1){var or=An[Xn];if(!or.disabled){An.splice(Xn,1),Kn=or;break}}Kn&&oe(An,{type:"remove",values:[Kn]})}for(var cr=arguments.length,ur=new Array(cr>1?cr-1:0),hn=1;hn<cr;hn++)ur[hn-1]=arguments[hn];if(At&&(!On||!gn.current)){var yn;On&&(gn.current=!0),(yn=ut.current)===null||yn===void 0||yn.onKeyDown.apply(yn,[Zt].concat(ur))}We==null||We.apply(void 0,[Zt].concat(ur))},Ot=function(Zt){for(var Sn=arguments.length,$n=new Array(Sn>1?Sn-1:0),On=1;On<Sn;On++)$n[On-1]=arguments[On];if(At){var An;(An=ut.current)===null||An===void 0||An.onKeyUp.apply(An,[Zt].concat($n))}Zt.key==="Enter"&&(gn.current=!1),He==null||He.apply(void 0,[Zt].concat($n))},pt=function(Zt){var Sn=ae.filter(function($n){return $n!==Zt});oe(Sn,{type:"remove",values:[Zt]})},_t=function(){gn.current=!1},Et=React__namespace.useRef(!1),Nt=function(){tt(!0),ve||(Pe&&!Et.current&&Pe.apply(void 0,arguments),Te.includes("focus")&&zt(!0)),Et.current=!0},Mt=function(){Ge.current=!0,tt(!1,function(){Et.current=!1,Ge.current=!1,zt(!1)}),!ve&&(ot&&(le==="tags"?Ce(ot,{source:"submit"}):le==="multiple"&&Ce("",{source:"blur"})),Me&&Me.apply(void 0,arguments))},Lt=[];React__namespace.useEffect(function(){return function(){Lt.forEach(function(En){return clearTimeout(En)}),Lt.splice(0,Lt.length)}},[]);var Xt=function(Zt){var Sn,$n=Zt.target,On=(Sn=wt.current)===null||Sn===void 0?void 0:Sn.getPopupElement();if(On&&On.contains($n)){var An=setTimeout(function(){var cr=Lt.indexOf(An);if(cr!==-1&&Lt.splice(cr,1),qe(),!vt&&!On.contains(document.activeElement)){var ur;(ur=lt.current)===null||ur===void 0||ur.focus()}});Lt.push(An)}for(var Kn=arguments.length,Xn=new Array(Kn>1?Kn-1:0),or=1;or<Kn;or++)Xn[or-1]=arguments[or];Ke==null||Ke.apply(void 0,[Zt].concat(Xn))},vn=React__namespace.useState({}),bn=_slicedToArray(vn,2),_n=bn[1];function Nn(){_n({})}var Tn;yt&&(Tn=function(Zt){zt(Zt)}),useSelectTriggerControl(function(){var En;return[bt.current,(En=wt.current)===null||En===void 0?void 0:En.getPopupElement()]},Gt,zt,!!yt);var Qt=React__namespace.useMemo(function(){return _objectSpread2(_objectSpread2({},C),{},{notFoundContent:ce,open:At,triggerOpen:Gt,id:F,showSearch:it,multiple:st,toggleOpen:zt})},[C,ce,Gt,At,F,it,st,zt]),Yt=!!Ne||fe,wn;Yt&&(wn=React__namespace.createElement(TransBtn,{className:classNames("".concat(K,"-arrow"),_defineProperty({},"".concat(K,"-arrow-loading"),fe)),customizeIcon:Ne,customizeIconProps:{loading:fe,searchValue:ot,open:At,focused:nt,showSearch:it}}));var Fn=function(){var Zt;de==null||de(),(Zt=lt.current)===null||Zt===void 0||Zt.focus(),oe([],{type:"clear",values:ae}),ln("",!1,!1)},Ln=useAllowClear(K,Fn,ae,Ie,De,ve,ot,le),Vn=Ln.allowClear,nr=Ln.clearIcon,Un=React__namespace.createElement(Oe,{ref:ut}),Pn=classNames(K,J,_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(K,"-focused"),nt),"".concat(K,"-multiple"),st),"".concat(K,"-single"),!st),"".concat(K,"-allow-clear"),Ie),"".concat(K,"-show-arrow"),Yt),"".concat(K,"-disabled"),ve),"".concat(K,"-loading"),fe),"".concat(K,"-open"),At),"".concat(K,"-customize-input"),ft),"".concat(K,"-show-search"),it)),rr=React__namespace.createElement(RefSelectTrigger,{ref:wt,disabled:ve,prefixCls:K,visible:Gt,popupElement:Un,animation:we,transitionName:Ae,dropdownStyle:ke,dropdownClassName:je,direction:ne,dropdownMatchSelectWidth:ze,dropdownRender:Ve,dropdownAlign:Xe,placement:Ye,builtinPlacements:at,getPopupContainer:Ue,empty:ie,getTriggerDOMNode:function(Zt){return Rt.current||Zt},onPopupVisibleChange:Tn,onPopupMouseEnter:Nn},yt?React__namespace.cloneElement(yt,{ref:$t}):React__namespace.createElement(ForwardSelector,_extends({},C,{domRef:Rt,prefixCls:K,inputElement:ft,ref:lt,id:F,prefix:Fe,showSearch:it,autoClearSearchValue:Ee,mode:le,activeDescendantId:_e,tagRender:te,values:ae,open:At,onToggleOpen:zt,activeValue:be,searchValue:ot,onSearch:ln,onSearchSubmit:Cn,onRemove:pt,tokenWithEnter:Ft,onInputBlur:_t}))),lr;return yt?lr=rr:lr=React__namespace.createElement("div",_extends({className:Pn},Je,{ref:bt,onMouseDown:Xt,onKeyDown:mt,onKeyUp:Ot,onFocus:Nt,onBlur:Mt}),React__namespace.createElement(Polite,{visible:nt&&!At,values:ae}),rr,wn,Vn&&nr),React__namespace.createElement(BaseSelectContext.Provider,{value:Qt},lr)});process.env.NODE_ENV!=="production"&&(BaseSelect.displayName="BaseSelect");var OptGroup=function(){return null};OptGroup.isSelectOptGroup=!0;var Option$2=function(){return null};Option$2.isSelectOption=!0;var Filler=React__namespace.forwardRef(function(C,$){var V=C.height,F=C.offsetY,K=C.offsetX,J=C.children,ee=C.prefixCls,te=C.onInnerResize,ne=C.innerProps,re=C.rtl,ae=C.extra,oe={},ie={display:"flex",flexDirection:"column"};return F!==void 0&&(oe={height:V,position:"relative",overflow:"hidden"},ie=_objectSpread2(_objectSpread2({},ie),{},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({transform:"translateY(".concat(F,"px)")},re?"marginRight":"marginLeft",-K),"position","absolute"),"left",0),"right",0),"top",0))),React__namespace.createElement("div",{style:oe},React__namespace.createElement(RefResizeObserver,{onResize:function(ce){var de=ce.offsetHeight;de&&te&&te()}},React__namespace.createElement("div",_extends({style:ie,className:classNames(_defineProperty({},"".concat(ee,"-holder-inner"),ee)),ref:$},ne),J,ae)))});Filler.displayName="Filler";function Item$4(C){var $=C.children,V=C.setRef,F=React__namespace.useCallback(function(K){V(K)},[]);return React__namespace.cloneElement($,{ref:F})}function useChildren$1(C,$,V,F,K,J,ee,te){var ne=te.getKey;return C.slice($,V+1).map(function(re,ae){var oe=$+ae,ie=ee(re,oe,{style:{width:F},offsetX:K}),se=ne(re);return React__namespace.createElement(Item$4,{key:se,setRef:function(de){return J(re,de)}},ie)})}function findListDiffIndex(C,$,V){var F=C.length,K=$.length,J,ee;if(F===0&&K===0)return null;F<K?(J=C,ee=$):(J=$,ee=C);var te={__EMPTY_ITEM__:!0};function ne(ce){return ce!==void 0?V(ce):te}for(var re=null,ae=Math.abs(F-K)!==1,oe=0;oe<ee.length;oe+=1){var ie=ne(J[oe]),se=ne(ee[oe]);if(ie!==se){re=oe,ae=ae||ie!==ne(ee[oe+1]);break}}return re===null?null:{index:re,multiple:ae}}function useDiffItem(C,$,V){var F=React__namespace.useState(C),K=_slicedToArray(F,2),J=K[0],ee=K[1],te=React__namespace.useState(null),ne=_slicedToArray(te,2),re=ne[0],ae=ne[1];return React__namespace.useEffect(function(){var oe=findListDiffIndex(J||[],C||[],$);(oe==null?void 0:oe.index)!==void 0&&(V==null||V(oe.index),ae(C[oe.index])),ee(C)},[C]),[re]}var isFF=(typeof navigator=="undefined"?"undefined":_typeof(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const useOriginScroll=function(C,$,V,F){var K=React.useRef(!1),J=React.useRef(null);function ee(){clearTimeout(J.current),K.current=!0,J.current=setTimeout(function(){K.current=!1},50)}var te=React.useRef({top:C,bottom:$,left:V,right:F});return te.current.top=C,te.current.bottom=$,te.current.left=V,te.current.right=F,function(ne,re){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=ne?re<0&&te.current.left||re>0&&te.current.right:re<0&&te.current.top||re>0&&te.current.bottom;return ae&&oe?(clearTimeout(J.current),K.current=!1):(!oe||K.current)&&ee(),!K.current&&oe}};function useFrameWheel(C,$,V,F,K,J,ee){var te=React.useRef(0),ne=React.useRef(null),re=React.useRef(null),ae=React.useRef(!1),oe=useOriginScroll($,V,F,K);function ie(fe,he){if(wrapperRaf.cancel(ne.current),!oe(!1,he)){var me=fe;if(!me._virtualHandled)me._virtualHandled=!0;else return;te.current+=he,re.current=he,isFF||me.preventDefault(),ne.current=wrapperRaf(function(){var ue=ae.current?10:1;ee(te.current*ue,!1),te.current=0})}}function se(fe,he){ee(he,!0),isFF||fe.preventDefault()}var ce=React.useRef(null),de=React.useRef(null);function le(fe){if(C){wrapperRaf.cancel(de.current),de.current=wrapperRaf(function(){ce.current=null},2);var he=fe.deltaX,me=fe.deltaY,ue=fe.shiftKey,pe=he,ye=me;(ce.current==="sx"||!ce.current&&ue&&me&&!he)&&(pe=me,ye=0,ce.current="sx");var be=Math.abs(pe),ge=Math.abs(ye);ce.current===null&&(ce.current=J&&be>ge?"x":"y"),ce.current==="y"?ie(fe,ye):se(fe,pe)}}function ve(fe){C&&(ae.current=fe.detail===re.current)}return[le,ve]}function useGetSize(C,$,V,F){var K=React__namespace.useMemo(function(){return[new Map,[]]},[C,V.id,F]),J=_slicedToArray(K,2),ee=J[0],te=J[1],ne=function(ae){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ae,ie=ee.get(ae),se=ee.get(oe);if(ie===void 0||se===void 0)for(var ce=C.length,de=te.length;de<ce;de+=1){var le,ve=C[de],fe=$(ve);ee.set(fe,de);var he=(le=V.get(fe))!==null&&le!==void 0?le:F;if(te[de]=(te[de-1]||0)+he,fe===ae&&(ie=de),fe===oe&&(se=de),ie!==void 0&&se!==void 0)break}return{top:te[ie-1]||0,bottom:te[se]}};return ne}var CacheMap=function(){function C(){_classCallCheck(this,C),_defineProperty(this,"maps",void 0),_defineProperty(this,"id",0),_defineProperty(this,"diffRecords",new Map),this.maps=Object.create(null)}return _createClass(C,[{key:"set",value:function(V,F){this.diffRecords.set(V,this.maps[V]),this.maps[V]=F,this.id+=1}},{key:"get",value:function(V){return this.maps[V]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),C}();function parseNumber(C){var $=parseFloat(C);return isNaN($)?0:$}function useHeights(C,$,V){var F=React__namespace.useState(0),K=_slicedToArray(F,2),J=K[0],ee=K[1],te=React.useRef(new Map),ne=React.useRef(new CacheMap),re=React.useRef(0);function ae(){re.current+=1}function oe(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ae();var ce=function(){var ve=!1;te.current.forEach(function(fe,he){if(fe&&fe.offsetParent){var me=fe.offsetHeight,ue=getComputedStyle(fe),pe=ue.marginTop,ye=ue.marginBottom,be=parseNumber(pe),ge=parseNumber(ye),_e=me+be+ge;ne.current.get(he)!==_e&&(ne.current.set(he,_e),ve=!0)}}),ve&&ee(function(fe){return fe+1})};if(se)ce();else{re.current+=1;var de=re.current;Promise.resolve().then(function(){de===re.current&&ce()})}}function ie(se,ce){var de=C(se),le=te.current.get(de);ce?(te.current.set(de,ce),oe()):te.current.delete(de),!le!=!ce&&(ce?$==null||$(se):V==null||V(se))}return React.useEffect(function(){return ae},[]),[ie,oe,ne.current,J]}var SMOOTH_PTG=14/15;function useMobileTouchMove(C,$,V){var F=React.useRef(!1),K=React.useRef(0),J=React.useRef(0),ee=React.useRef(null),te=React.useRef(null),ne,re=function(se){if(F.current){var ce=Math.ceil(se.touches[0].pageX),de=Math.ceil(se.touches[0].pageY),le=K.current-ce,ve=J.current-de,fe=Math.abs(le)>Math.abs(ve);fe?K.current=ce:J.current=de;var he=V(fe,fe?le:ve,!1,se);he&&se.preventDefault(),clearInterval(te.current),he&&(te.current=setInterval(function(){fe?le*=SMOOTH_PTG:ve*=SMOOTH_PTG;var me=Math.floor(fe?le:ve);(!V(fe,me,!0)||Math.abs(me)<=.1)&&clearInterval(te.current)},16))}},ae=function(){F.current=!1,ne()},oe=function(se){ne(),se.touches.length===1&&!F.current&&(F.current=!0,K.current=Math.ceil(se.touches[0].pageX),J.current=Math.ceil(se.touches[0].pageY),ee.current=se.target,ee.current.addEventListener("touchmove",re,{passive:!1}),ee.current.addEventListener("touchend",ae,{passive:!0}))};ne=function(){ee.current&&(ee.current.removeEventListener("touchmove",re),ee.current.removeEventListener("touchend",ae))},useLayoutEffect$1(function(){return C&&$.current.addEventListener("touchstart",oe,{passive:!0}),function(){var ie;(ie=$.current)===null||ie===void 0||ie.removeEventListener("touchstart",oe),ne(),clearInterval(te.current)}},[C])}function smoothScrollOffset(C){return Math.floor(Math.pow(C,.5))}function getPageXY(C,$){var V="touches"in C?C.touches[0]:C;return V[$?"pageX":"pageY"]-window[$?"scrollX":"scrollY"]}function useScrollDrag(C,$,V){React__namespace.useEffect(function(){var F=$.current;if(C&&F){var K=!1,J,ee,te=function(){wrapperRaf.cancel(J)},ne=function ie(){te(),J=wrapperRaf(function(){V(ee),ie()})},re=function(se){if(!(se.target.draggable||se.button!==0)){var ce=se;ce._virtualHandled||(ce._virtualHandled=!0,K=!0)}},ae=function(){K=!1,te()},oe=function(se){if(K){var ce=getPageXY(se,!1),de=F.getBoundingClientRect(),le=de.top,ve=de.bottom;if(ce<=le){var fe=le-ce;ee=-smoothScrollOffset(fe),ne()}else if(ce>=ve){var he=ce-ve;ee=smoothScrollOffset(he),ne()}else te()}};return F.addEventListener("mousedown",re),F.ownerDocument.addEventListener("mouseup",ae),F.ownerDocument.addEventListener("mousemove",oe),function(){F.removeEventListener("mousedown",re),F.ownerDocument.removeEventListener("mouseup",ae),F.ownerDocument.removeEventListener("mousemove",oe),te()}}},[C])}var MAX_TIMES=10;function useScrollTo(C,$,V,F,K,J,ee,te){var ne=React__namespace.useRef(),re=React__namespace.useState(null),ae=_slicedToArray(re,2),oe=ae[0],ie=ae[1];return useLayoutEffect$1(function(){if(oe&&oe.times<MAX_TIMES){if(!C.current){ie(function(De){return _objectSpread2({},De)});return}J();var se=oe.targetAlign,ce=oe.originAlign,de=oe.index,le=oe.offset,ve=C.current.clientHeight,fe=!1,he=se,me=null;if(ve){for(var ue=se||ce,pe=0,ye=0,be=0,ge=Math.min($.length-1,de),_e=0;_e<=ge;_e+=1){var Se=K($[_e]);ye=pe;var Ee=V.get(Se);be=ye+(Ee===void 0?F:Ee),pe=be}for(var Ce=ue==="top"?le:ve-le,xe=ge;xe>=0;xe-=1){var $e=K($[xe]),Ie=V.get($e);if(Ie===void 0){fe=!0;break}if(Ce-=Ie,Ce<=0)break}switch(ue){case"top":me=ye-le;break;case"bottom":me=be-ve+le;break;default:{var Fe=C.current.scrollTop,Ne=Fe+ve;ye<Fe?he="top":be>Ne&&(he="bottom")}}me!==null&&ee(me),me!==oe.lastTop&&(fe=!0)}fe&&ie(_objectSpread2(_objectSpread2({},oe),{},{times:oe.times+1,targetAlign:he,lastTop:me}))}else process.env.NODE_ENV!=="production"&&(oe==null?void 0:oe.times)===MAX_TIMES&&warningOnce(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[oe,C.current]),function(se){if(se==null){te();return}if(wrapperRaf.cancel(ne.current),typeof se=="number")ee(se);else if(se&&_typeof(se)==="object"){var ce,de=se.align;"index"in se?ce=se.index:ce=$.findIndex(function(fe){return K(fe)===se.key});var le=se.offset,ve=le===void 0?0:le;ie({times:0,index:ce,offset:ve,originAlign:de})}}}var ScrollBar=React__namespace.forwardRef(function(C,$){var V=C.prefixCls,F=C.rtl,K=C.scrollOffset,J=C.scrollRange,ee=C.onStartMove,te=C.onStopMove,ne=C.onScroll,re=C.horizontal,ae=C.spinSize,oe=C.containerSize,ie=C.style,se=C.thumbStyle,ce=C.showScrollBar,de=React__namespace.useState(!1),le=_slicedToArray(de,2),ve=le[0],fe=le[1],he=React__namespace.useState(null),me=_slicedToArray(he,2),ue=me[0],pe=me[1],ye=React__namespace.useState(null),be=_slicedToArray(ye,2),ge=be[0],_e=be[1],Se=!F,Ee=React__namespace.useRef(),Ce=React__namespace.useRef(),xe=React__namespace.useState(ce),$e=_slicedToArray(xe,2),Ie=$e[0],Fe=$e[1],Ne=React__namespace.useRef(),De=function(){ce===!0||ce===!1||(clearTimeout(Ne.current),Fe(!0),Ne.current=setTimeout(function(){Fe(!1)},3e3))},Oe=J-oe||0,we=oe-ae||0,Ae=React__namespace.useMemo(function(){if(K===0||Oe===0)return 0;var Le=K/Oe;return Le*we},[K,Oe,we]),ke=function(Te){Te.stopPropagation(),Te.preventDefault()},je=React__namespace.useRef({top:Ae,dragging:ve,pageY:ue,startTop:ge});je.current={top:Ae,dragging:ve,pageY:ue,startTop:ge};var ze=function(Te){fe(!0),pe(getPageXY(Te,re)),_e(je.current.top),ee(),Te.stopPropagation(),Te.preventDefault()};React__namespace.useEffect(function(){var Le=function(He){He.preventDefault()},Te=Ee.current,Pe=Ce.current;return Te.addEventListener("touchstart",Le,{passive:!1}),Pe.addEventListener("touchstart",ze,{passive:!1}),function(){Te.removeEventListener("touchstart",Le),Pe.removeEventListener("touchstart",ze)}},[]);var Ve=React__namespace.useRef();Ve.current=Oe;var Xe=React__namespace.useRef();Xe.current=we,React__namespace.useEffect(function(){if(ve){var Le,Te=function(He){var We=je.current,Ke=We.dragging,rt=We.pageY,st=We.startTop;wrapperRaf.cancel(Le);var it=Ee.current.getBoundingClientRect(),Je=oe/(re?it.width:it.height);if(Ke){var ct=(getPageXY(He,re)-rt)*Je,dt=st;!Se&&re?dt-=ct:dt+=ct;var vt=Ve.current,ht=Xe.current,bt=ht?dt/ht:0,Rt=Math.ceil(bt*vt);Rt=Math.max(Rt,0),Rt=Math.min(Rt,vt),Le=wrapperRaf(function(){ne(Rt,re)})}},Pe=function(){fe(!1),te()};return window.addEventListener("mousemove",Te,{passive:!0}),window.addEventListener("touchmove",Te,{passive:!0}),window.addEventListener("mouseup",Pe,{passive:!0}),window.addEventListener("touchend",Pe,{passive:!0}),function(){window.removeEventListener("mousemove",Te),window.removeEventListener("touchmove",Te),window.removeEventListener("mouseup",Pe),window.removeEventListener("touchend",Pe),wrapperRaf.cancel(Le)}}},[ve]),React__namespace.useEffect(function(){return De(),function(){clearTimeout(Ne.current)}},[K]),React__namespace.useImperativeHandle($,function(){return{delayHidden:De}});var Ye="".concat(V,"-scrollbar"),at={position:"absolute",visibility:Ie?null:"hidden"},Ue={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return re?(at.height=8,at.left=0,at.right=0,at.bottom=0,Ue.height="100%",Ue.width=ae,Se?Ue.left=Ae:Ue.right=Ae):(at.width=8,at.top=0,at.bottom=0,Se?at.right=0:at.left=0,Ue.width="100%",Ue.height=ae,Ue.top=Ae),React__namespace.createElement("div",{ref:Ee,className:classNames(Ye,_defineProperty(_defineProperty(_defineProperty({},"".concat(Ye,"-horizontal"),re),"".concat(Ye,"-vertical"),!re),"".concat(Ye,"-visible"),Ie)),style:_objectSpread2(_objectSpread2({},at),ie),onMouseDown:ke,onMouseMove:De},React__namespace.createElement("div",{ref:Ce,className:classNames("".concat(Ye,"-thumb"),_defineProperty({},"".concat(Ye,"-thumb-moving"),ve)),style:_objectSpread2(_objectSpread2({},Ue),se),onMouseDown:ze}))});process.env.NODE_ENV!=="production"&&(ScrollBar.displayName="ScrollBar");var MIN_SIZE=20;function getSpinSize(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,V=C/$*C;return isNaN(V)&&(V=0),V=Math.max(V,MIN_SIZE),Math.floor(V)}var _excluded$D=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],EMPTY_DATA$1=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(C,$){var V=C.prefixCls,F=V===void 0?"rc-virtual-list":V,K=C.className,J=C.height,ee=C.itemHeight,te=C.fullHeight,ne=te===void 0?!0:te,re=C.style,ae=C.data,oe=C.children,ie=C.itemKey,se=C.virtual,ce=C.direction,de=C.scrollWidth,le=C.component,ve=le===void 0?"div":le,fe=C.onScroll,he=C.onVirtualScroll,me=C.onVisibleChange,ue=C.innerProps,pe=C.extraRender,ye=C.styles,be=C.showScrollBar,ge=be===void 0?"optional":be,_e=_objectWithoutProperties(C,_excluded$D),Se=React__namespace.useCallback(function(Et){return typeof ie=="function"?ie(Et):Et==null?void 0:Et[ie]},[ie]),Ee=useHeights(Se,null,null),Ce=_slicedToArray(Ee,4),xe=Ce[0],$e=Ce[1],Ie=Ce[2],Fe=Ce[3],Ne=!!(se!==!1&&J&&ee),De=React__namespace.useMemo(function(){return Object.values(Ie.maps).reduce(function(Et,Nt){return Et+Nt},0)},[Ie.id,Ie.maps]),Oe=Ne&&ae&&(Math.max(ee*ae.length,De)>J||!!de),we=ce==="rtl",Ae=classNames(F,_defineProperty({},"".concat(F,"-rtl"),we),K),ke=ae||EMPTY_DATA$1,je=React.useRef(),ze=React.useRef(),Ve=React.useRef(),Xe=React.useState(0),Ye=_slicedToArray(Xe,2),at=Ye[0],Ue=Ye[1],Le=React.useState(0),Te=_slicedToArray(Le,2),Pe=Te[0],Me=Te[1],He=React.useState(!1),We=_slicedToArray(He,2),Ke=We[0],rt=We[1],st=function(){rt(!0)},it=function(){rt(!1)},Je={getKey:Se};function ct(Et){Ue(function(Nt){var Mt;typeof Et=="function"?Mt=Et(Nt):Mt=Et;var Lt=Bt(Mt);return je.current.scrollTop=Lt,Lt})}var dt=React.useRef({start:0,end:ke.length}),vt=React.useRef(),ht=useDiffItem(ke,Se),bt=_slicedToArray(ht,1),Rt=bt[0];vt.current=Rt;var wt=React__namespace.useMemo(function(){if(!Ne)return{scrollHeight:void 0,start:0,end:ke.length-1,offset:void 0};if(!Oe){var Et;return{scrollHeight:((Et=ze.current)===null||Et===void 0?void 0:Et.offsetHeight)||0,start:0,end:ke.length-1,offset:void 0}}for(var Nt=0,Mt,Lt,Xt,vn=ke.length,bn=0;bn<vn;bn+=1){var _n=ke[bn],Nn=Se(_n),Tn=Ie.get(Nn),Qt=Nt+(Tn===void 0?ee:Tn);Qt>=at&&Mt===void 0&&(Mt=bn,Lt=Nt),Qt>at+J&&Xt===void 0&&(Xt=bn),Nt=Qt}return Mt===void 0&&(Mt=0,Lt=0,Xt=Math.ceil(J/ee)),Xt===void 0&&(Xt=ke.length-1),Xt=Math.min(Xt+1,ke.length-1),{scrollHeight:Nt,start:Mt,end:Xt,offset:Lt}},[Oe,Ne,at,ke,Fe,J]),lt=wt.scrollHeight,ut=wt.start,Ge=wt.end,et=wt.offset;dt.current.start=ut,dt.current.end=Ge,React__namespace.useLayoutEffect(function(){var Et=Ie.getRecord();if(Et.size===1){var Nt=Array.from(Et.keys())[0],Mt=Et.get(Nt),Lt=ke[ut];if(Lt&&Mt===void 0){var Xt=Se(Lt);if(Xt===Nt){var vn=Ie.get(Nt),bn=vn-ee;ct(function(_n){return _n+bn})}}}Ie.resetRecord()},[lt]);var Ze=React__namespace.useState({width:0,height:J}),nt=_slicedToArray(Ze,2),tt=nt[0],qe=nt[1],ot=function(Nt){qe({width:Nt.offsetWidth,height:Nt.offsetHeight})},ft=React.useRef(),yt=React.useRef(),$t=React__namespace.useMemo(function(){return getSpinSize(tt.width,de)},[tt.width,de]),kt=React__namespace.useMemo(function(){return getSpinSize(tt.height,lt)},[tt.height,lt]),Dt=lt-J,St=React.useRef(Dt);St.current=Dt;function Bt(Et){var Nt=Et;return Number.isNaN(St.current)||(Nt=Math.min(Nt,St.current)),Nt=Math.max(Nt,0),Nt}var It=at<=0,Pt=at>=Dt,Tt=Pe<=0,Ct=Pe>=de,At=useOriginScroll(It,Pt,Tt,Ct),Ht=function(){return{x:we?-Pe:Pe,y:at}},Gt=React.useRef(Ht()),zt=useEvent(function(Et){if(he){var Nt=_objectSpread2(_objectSpread2({},Ht()),Et);(Gt.current.x!==Nt.x||Gt.current.y!==Nt.y)&&(he(Nt),Gt.current=Nt)}});function Ft(Et,Nt){var Mt=Et;Nt?(ReactDOM.flushSync(function(){Me(Mt)}),zt()):ct(Mt)}function Vt(Et){var Nt=Et.currentTarget.scrollTop;Nt!==at&&ct(Nt),fe==null||fe(Et),zt()}var Kt=function(Nt){var Mt=Nt,Lt=de?de-tt.width:0;return Mt=Math.max(Mt,0),Mt=Math.min(Mt,Lt),Mt},qt=useEvent(function(Et,Nt){Nt?(ReactDOM.flushSync(function(){Me(function(Mt){var Lt=Mt+(we?-Et:Et);return Kt(Lt)})}),zt()):ct(function(Mt){var Lt=Mt+Et;return Lt})}),ln=useFrameWheel(Ne,It,Pt,Tt,Ct,!!de,qt),Cn=_slicedToArray(ln,2),Wt=Cn[0],Jt=Cn[1];useMobileTouchMove(Ne,je,function(Et,Nt,Mt,Lt){var Xt=Lt;return At(Et,Nt,Mt)?!1:!Xt||!Xt._virtualHandled?(Xt&&(Xt._virtualHandled=!0),Wt({preventDefault:function(){},deltaX:Et?Nt:0,deltaY:Et?0:Nt}),!0):!1}),useScrollDrag(Oe,je,function(Et){ct(function(Nt){return Nt+Et})}),useLayoutEffect$1(function(){function Et(Mt){var Lt=It&&Mt.detail<0,Xt=Pt&&Mt.detail>0;Ne&&!Lt&&!Xt&&Mt.preventDefault()}var Nt=je.current;return Nt.addEventListener("wheel",Wt,{passive:!1}),Nt.addEventListener("DOMMouseScroll",Jt,{passive:!0}),Nt.addEventListener("MozMousePixelScroll",Et,{passive:!1}),function(){Nt.removeEventListener("wheel",Wt),Nt.removeEventListener("DOMMouseScroll",Jt),Nt.removeEventListener("MozMousePixelScroll",Et)}},[Ne,It,Pt]),useLayoutEffect$1(function(){if(de){var Et=Kt(Pe);Me(Et),zt({x:Et})}},[tt.width,de]);var dn=function(){var Nt,Mt;(Nt=ft.current)===null||Nt===void 0||Nt.delayHidden(),(Mt=yt.current)===null||Mt===void 0||Mt.delayHidden()},sn=useScrollTo(je,ke,Ie,ee,Se,function(){return $e(!0)},ct,dn);React__namespace.useImperativeHandle($,function(){return{nativeElement:Ve.current,getScrollInfo:Ht,scrollTo:function(Nt){function Mt(Lt){return Lt&&_typeof(Lt)==="object"&&("left"in Lt||"top"in Lt)}Mt(Nt)?(Nt.left!==void 0&&Me(Kt(Nt.left)),sn(Nt.top)):sn(Nt)}}}),useLayoutEffect$1(function(){if(me){var Et=ke.slice(ut,Ge+1);me(Et,ke)}},[ut,Ge,ke]);var gn=useGetSize(ke,Se,Ie,ee),mt=pe==null?void 0:pe({start:ut,end:Ge,virtual:Oe,offsetX:Pe,offsetY:et,rtl:we,getSize:gn}),Ot=useChildren$1(ke,ut,Ge,de,Pe,xe,oe,Je),pt=null;J&&(pt=_objectSpread2(_defineProperty({},ne?"height":"maxHeight",J),ScrollStyle),Ne&&(pt.overflowY="hidden",de&&(pt.overflowX="hidden"),Ke&&(pt.pointerEvents="none")));var _t={};return we&&(_t.dir="rtl"),React__namespace.createElement("div",_extends({ref:Ve,style:_objectSpread2(_objectSpread2({},re),{},{position:"relative"}),className:Ae},_t,_e),React__namespace.createElement(RefResizeObserver,{onResize:ot},React__namespace.createElement(ve,{className:"".concat(F,"-holder"),style:pt,ref:je,onScroll:Vt,onMouseEnter:dn},React__namespace.createElement(Filler,{prefixCls:F,height:lt,offsetX:Pe,offsetY:et,scrollWidth:de,onInnerResize:$e,ref:ze,innerProps:ue,rtl:we,extra:mt},Ot))),Oe&&lt>J&&React__namespace.createElement(ScrollBar,{ref:ft,prefixCls:F,scrollOffset:at,scrollRange:lt,rtl:we,onScroll:Ft,onStartMove:st,onStopMove:it,spinSize:kt,containerSize:tt.height,style:ye==null?void 0:ye.verticalScrollBar,thumbStyle:ye==null?void 0:ye.verticalScrollBarThumb,showScrollBar:ge}),Oe&&de>tt.width&&React__namespace.createElement(ScrollBar,{ref:yt,prefixCls:F,scrollOffset:Pe,scrollRange:de,rtl:we,onScroll:Ft,onStartMove:st,onStopMove:it,spinSize:$t,containerSize:tt.width,horizontal:!0,style:ye==null?void 0:ye.horizontalScrollBar,thumbStyle:ye==null?void 0:ye.horizontalScrollBarThumb,showScrollBar:ge}))}var List$1=React__namespace.forwardRef(RawList);List$1.displayName="List";function isPlatformMac(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _excluded$C=["disabled","title","children","style","className"];function isTitleType(C){return typeof C=="string"||typeof C=="number"}var OptionList=function($,V){var F=useBaseProps(),K=F.prefixCls,J=F.id,ee=F.open,te=F.multiple,ne=F.mode,re=F.searchValue,ae=F.toggleOpen,oe=F.notFoundContent,ie=F.onPopupScroll,se=React__namespace.useContext(SelectContext),ce=se.maxCount,de=se.flattenOptions,le=se.onActiveValue,ve=se.defaultActiveFirstOption,fe=se.onSelect,he=se.menuItemSelectedIcon,me=se.rawValues,ue=se.fieldNames,pe=se.virtual,ye=se.direction,be=se.listHeight,ge=se.listItemHeight,_e=se.optionRender,Se="".concat(K,"-item"),Ee=useMemo(function(){return de},[ee,de],function(Le,Te){return Te[0]&&Le[1]!==Te[1]}),Ce=React__namespace.useRef(null),xe=React__namespace.useMemo(function(){return te&&isValidCount(ce)&&(me==null?void 0:me.size)>=ce},[te,ce,me==null?void 0:me.size]),$e=function(Te){Te.preventDefault()},Ie=function(Te){var Pe;(Pe=Ce.current)===null||Pe===void 0||Pe.scrollTo(typeof Te=="number"?{index:Te}:Te)},Fe=React__namespace.useCallback(function(Le){return ne==="combobox"?!1:me.has(Le)},[ne,_toConsumableArray(me).toString(),me.size]),Ne=function(Te){for(var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Me=Ee.length,He=0;He<Me;He+=1){var We=(Te+He*Pe+Me)%Me,Ke=Ee[We]||{},rt=Ke.group,st=Ke.data;if(!rt&&!(st!=null&&st.disabled)&&(Fe(st.value)||!xe))return We}return-1},De=React__namespace.useState(function(){return Ne(0)}),Oe=_slicedToArray(De,2),we=Oe[0],Ae=Oe[1],ke=function(Te){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ae(Te);var Me={source:Pe?"keyboard":"mouse"},He=Ee[Te];if(!He){le(null,-1,Me);return}le(He.value,Te,Me)};React.useEffect(function(){ke(ve!==!1?Ne(0):-1)},[Ee.length,re]);var je=React__namespace.useCallback(function(Le){return ne==="combobox"?String(Le).toLowerCase()===re.toLowerCase():me.has(Le)},[ne,re,_toConsumableArray(me).toString(),me.size]);React.useEffect(function(){var Le=setTimeout(function(){if(!te&&ee&&me.size===1){var Pe=Array.from(me)[0],Me=Ee.findIndex(function(He){var We=He.data;return re?String(We.value).startsWith(re):We.value===Pe});Me!==-1&&(ke(Me),Ie(Me))}});if(ee){var Te;(Te=Ce.current)===null||Te===void 0||Te.scrollTo(void 0)}return function(){return clearTimeout(Le)}},[ee,re]);var ze=function(Te){Te!==void 0&&fe(Te,{selected:!me.has(Te)}),te||ae(!1)};if(React__namespace.useImperativeHandle(V,function(){return{onKeyDown:function(Te){var Pe=Te.which,Me=Te.ctrlKey;switch(Pe){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var He=0;if(Pe===KeyCode.UP?He=-1:Pe===KeyCode.DOWN?He=1:isPlatformMac()&&Me&&(Pe===KeyCode.N?He=1:Pe===KeyCode.P&&(He=-1)),He!==0){var We=Ne(we+He,He);Ie(We),ke(We,!0)}break}case KeyCode.TAB:case KeyCode.ENTER:{var Ke,rt=Ee[we];rt&&!(rt!=null&&(Ke=rt.data)!==null&&Ke!==void 0&&Ke.disabled)&&!xe?ze(rt.value):ze(void 0),ee&&Te.preventDefault();break}case KeyCode.ESC:ae(!1),ee&&Te.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Te){Ie(Te)}}}),Ee.length===0)return React__namespace.createElement("div",{role:"listbox",id:"".concat(J,"_list"),className:"".concat(Se,"-empty"),onMouseDown:$e},oe);var Ve=Object.keys(ue).map(function(Le){return ue[Le]}),Xe=function(Te){return Te.label};function Ye(Le,Te){var Pe=Le.group;return{role:Pe?"presentation":"option",id:"".concat(J,"_list_").concat(Te)}}var at=function(Te){var Pe=Ee[Te];if(!Pe)return null;var Me=Pe.data||{},He=Me.value,We=Pe.group,Ke=pickAttrs(Me,!0),rt=Xe(Pe);return Pe?React__namespace.createElement("div",_extends({"aria-label":typeof rt=="string"&&!We?rt:null},Ke,{key:Te},Ye(Pe,Te),{"aria-selected":je(He)}),He):null},Ue={role:"listbox",id:"".concat(J,"_list")};return React__namespace.createElement(React__namespace.Fragment,null,pe&&React__namespace.createElement("div",_extends({},Ue,{style:{height:0,width:0,overflow:"hidden"}}),at(we-1),at(we),at(we+1)),React__namespace.createElement(List$1,{itemKey:"key",ref:Ce,data:Ee,height:be,itemHeight:ge,fullHeight:!1,onMouseDown:$e,onScroll:ie,virtual:pe,direction:ye,innerProps:pe?null:Ue},function(Le,Te){var Pe=Le.group,Me=Le.groupOption,He=Le.data,We=Le.label,Ke=Le.value,rt=He.key;if(Pe){var st,it=(st=He.title)!==null&&st!==void 0?st:isTitleType(We)?We.toString():void 0;return React__namespace.createElement("div",{className:classNames(Se,"".concat(Se,"-group"),He.className),title:it},We!==void 0?We:rt)}var Je=He.disabled,ct=He.title;He.children;var dt=He.style,vt=He.className,ht=_objectWithoutProperties(He,_excluded$C),bt=omit(ht,Ve),Rt=Fe(Ke),wt=Je||!Rt&&xe,lt="".concat(Se,"-option"),ut=classNames(Se,lt,vt,_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(lt,"-grouped"),Me),"".concat(lt,"-active"),we===Te&&!wt),"".concat(lt,"-disabled"),wt),"".concat(lt,"-selected"),Rt)),Ge=Xe(Le),et=!he||typeof he=="function"||Rt,Ze=typeof Ge=="number"?Ge:Ge||Ke,nt=isTitleType(Ze)?Ze.toString():void 0;return ct!==void 0&&(nt=ct),React__namespace.createElement("div",_extends({},pickAttrs(bt),pe?{}:Ye(Le,Te),{"aria-selected":je(Ke),className:ut,title:nt,onMouseMove:function(){we===Te||wt||ke(Te)},onClick:function(){wt||ze(Ke)},style:dt}),React__namespace.createElement("div",{className:"".concat(lt,"-content")},typeof _e=="function"?_e(Le,{index:Te}):Ze),React__namespace.isValidElement(he)||Rt,et&&React__namespace.createElement(TransBtn,{className:"".concat(Se,"-option-state"),customizeIcon:he,customizeIconProps:{value:Ke,disabled:wt,isSelected:Rt}},Rt?"✓":null))}))},RefOptionList=React__namespace.forwardRef(OptionList);process.env.NODE_ENV!=="production"&&(RefOptionList.displayName="OptionList");const useCache=function(C,$){var V=React__namespace.useRef({values:new Map,options:new Map}),F=React__namespace.useMemo(function(){var J=V.current,ee=J.values,te=J.options,ne=C.map(function(oe){if(oe.label===void 0){var ie;return _objectSpread2(_objectSpread2({},oe),{},{label:(ie=ee.get(oe.value))===null||ie===void 0?void 0:ie.label})}return oe}),re=new Map,ae=new Map;return ne.forEach(function(oe){re.set(oe.value,oe),ae.set(oe.value,$.get(oe.value)||te.get(oe.value))}),V.current.values=re,V.current.options=ae,ne},[C,$]),K=React__namespace.useCallback(function(J){return $.get(J)||V.current.options.get(J)},[$]);return[F,K]};function includes(C,$){return toArray$4(C).join("").toUpperCase().includes($)}const useFilterOptions=function(C,$,V,F,K){return React__namespace.useMemo(function(){if(!V||F===!1)return C;var J=$.options,ee=$.label,te=$.value,ne=[],re=typeof F=="function",ae=V.toUpperCase(),oe=re?F:function(se,ce){return K?includes(ce[K],ae):ce[J]?includes(ce[ee!=="children"?ee:"label"],ae):includes(ce[te],ae)},ie=re?function(se){return injectPropsWithOption(se)}:function(se){return se};return C.forEach(function(se){if(se[J]){var ce=oe(V,ie(se));if(ce)ne.push(se);else{var de=se[J].filter(function(le){return oe(V,ie(le))});de.length&&ne.push(_objectSpread2(_objectSpread2({},se),{},_defineProperty({},J,de)))}return}oe(V,ie(se))&&ne.push(se)}),ne},[C,F,K,V,$])};var uuid$2=0,isBrowserClient$1=process.env.NODE_ENV!=="test"&&canUseDom();function getUUID$1(){var C;return isBrowserClient$1?(C=uuid$2,uuid$2+=1):C="TEST_OR_SSR",C}function useId$1(C){var $=React__namespace.useState(),V=_slicedToArray($,2),F=V[0],K=V[1];return React__namespace.useEffect(function(){K("rc_select_".concat(getUUID$1()))},[]),C||F}var _excluded$B=["children","value"],_excluded2$4=["children"];function convertNodeToOption(C){var $=C,V=$.key,F=$.props,K=F.children,J=F.value,ee=_objectWithoutProperties(F,_excluded$B);return _objectSpread2({key:V,value:J!==void 0?J:V,children:K},ee)}function convertChildrenToData(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$6(C).map(function(V,F){if(!React__namespace.isValidElement(V)||!V.type)return null;var K=V,J=K.type.isSelectOptGroup,ee=K.key,te=K.props,ne=te.children,re=_objectWithoutProperties(te,_excluded2$4);return $||!J?convertNodeToOption(V):_objectSpread2(_objectSpread2({key:"__RC_SELECT_GRP__".concat(ee===null?F:ee,"__"),label:ee},re),{},{options:convertChildrenToData(ne)})}).filter(function(V){return V})}var useOptions=function($,V,F,K,J){return React__namespace.useMemo(function(){var ee=$,te=!$;te&&(ee=convertChildrenToData(V));var ne=new Map,re=new Map,ae=function(se,ce,de){de&&typeof de=="string"&&se.set(ce[de],ce)},oe=function ie(se){for(var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,de=0;de<se.length;de+=1){var le=se[de];!le[F.options]||ce?(ne.set(le[F.value],le),ae(re,le,F.label),ae(re,le,K),ae(re,le,J)):ie(le[F.options],!0)}};return oe(ee),{options:ee,valueOptions:ne,labelOptions:re}},[$,V,F,K,J])};function useRefFunc(C){var $=React__namespace.useRef();$.current=C;var V=React__namespace.useCallback(function(){return $.current.apply($,arguments)},[]);return V}function warningProps(C){var $=C.mode,V=C.options,F=C.children,K=C.backfill,J=C.allowClear,ee=C.placeholder,te=C.getInputElement,ne=C.showSearch,re=C.onSearch,ae=C.defaultOpen,oe=C.autoFocus,ie=C.labelInValue,se=C.value,ce=C.inputValue,de=C.optionLabelProp,le=isMultiple($),ve=ne!==void 0?ne:le||$==="combobox",fe=V||convertChildrenToData(F);if(warningOnce($!=="tags"||fe.every(function(pe){return!pe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),$==="tags"||$==="combobox"){var he=fe.some(function(pe){return pe.options?pe.options.some(function(ye){return typeof("value"in ye?ye.value:ye.key)=="number"}):typeof("value"in pe?pe.value:pe.key)=="number"});warningOnce(!he,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warningOnce($!=="combobox"||!de,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warningOnce($==="combobox"||!K,"`backfill` only works with `combobox` mode."),warningOnce($==="combobox"||!te,"`getInputElement` only work with `combobox` mode."),noteOnce($!=="combobox"||!te||!J||!ee,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),re&&!ve&&$!=="combobox"&&$!=="tags"&&warningOnce(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!ae||oe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),se!=null){var me=toArray$4(se);warningOnce(!ie||me.every(function(pe){return _typeof(pe)==="object"&&("key"in pe||"value"in pe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warningOnce(!le||Array.isArray(se),"`value` should be array when `mode` is `multiple` or `tags`")}if(F){var ue=null;toArray$6(F).some(function(pe){if(!React__namespace.isValidElement(pe)||!pe.type)return!1;var ye=pe,be=ye.type;if(be.isSelectOption)return!1;if(be.isSelectOptGroup){var ge=toArray$6(pe.props.children).every(function(_e){return!React__namespace.isValidElement(_e)||!pe.type||_e.type.isSelectOption?!0:(ue=_e.type,!1)});return!ge}return ue=be,!0}),ue&&warningOnce(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ue.displayName||ue.name||ue,"`.")),warningOnce(ce===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function warningNullOptions(C,$){if(C){var V=function F(K){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ee=0;ee<K.length;ee++){var te=K[ee];if(te[$==null?void 0:$.value]===null)return warningOnce(!1,"`value` in Select options should not be `null`."),!0;if(!J&&Array.isArray(te[$==null?void 0:$.options])&&F(te[$==null?void 0:$.options],!0))break}};V(C)}}var _excluded$A=["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"],OMIT_DOM_PROPS=["inputValue"];function isRawValue(C){return!C||_typeof(C)!=="object"}var Select$2=React__namespace.forwardRef(function(C,$){var V=C.id,F=C.mode,K=C.prefixCls,J=K===void 0?"rc-select":K,ee=C.backfill,te=C.fieldNames,ne=C.inputValue,re=C.searchValue,ae=C.onSearch,oe=C.autoClearSearchValue,ie=oe===void 0?!0:oe,se=C.onSelect,ce=C.onDeselect,de=C.dropdownMatchSelectWidth,le=de===void 0?!0:de,ve=C.filterOption,fe=C.filterSort,he=C.optionFilterProp,me=C.optionLabelProp,ue=C.options,pe=C.optionRender,ye=C.children,be=C.defaultActiveFirstOption,ge=C.menuItemSelectedIcon,_e=C.virtual,Se=C.direction,Ee=C.listHeight,Ce=Ee===void 0?200:Ee,xe=C.listItemHeight,$e=xe===void 0?20:xe,Ie=C.labelRender,Fe=C.value,Ne=C.defaultValue,De=C.labelInValue,Oe=C.onChange,we=C.maxCount,Ae=_objectWithoutProperties(C,_excluded$A),ke=useId$1(V),je=isMultiple(F),ze=!!(!ue&&ye),Ve=React__namespace.useMemo(function(){return ve===void 0&&F==="combobox"?!1:ve},[ve,F]),Xe=React__namespace.useMemo(function(){return fillFieldNames$1(te,ze)},[JSON.stringify(te),ze]),Ye=useMergedState("",{value:re!==void 0?re:ne,postState:function(Ft){return Ft||""}}),at=_slicedToArray(Ye,2),Ue=at[0],Le=at[1],Te=useOptions(ue,ye,Xe,he,me),Pe=Te.valueOptions,Me=Te.labelOptions,He=Te.options,We=React__namespace.useCallback(function(zt){var Ft=toArray$4(zt);return Ft.map(function(Vt){var Kt,qt,ln,Cn,Wt;if(isRawValue(Vt))Kt=Vt;else{var Jt;ln=Vt.key,qt=Vt.label,Kt=(Jt=Vt.value)!==null&&Jt!==void 0?Jt:ln}var dn=Pe.get(Kt);if(dn){var sn;if(qt===void 0&&(qt=dn==null?void 0:dn[me||Xe.label]),ln===void 0&&(ln=(sn=dn==null?void 0:dn.key)!==null&&sn!==void 0?sn:Kt),Cn=dn==null?void 0:dn.disabled,Wt=dn==null?void 0:dn.title,process.env.NODE_ENV!=="production"&&!me){var gn=dn==null?void 0:dn[Xe.label];gn!==void 0&&!React__namespace.isValidElement(gn)&&!React__namespace.isValidElement(qt)&&gn!==qt&&warningOnce(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:qt,value:Kt,key:ln,disabled:Cn,title:Wt}})},[Xe,me,Pe]),Ke=useMergedState(Ne,{value:Fe}),rt=_slicedToArray(Ke,2),st=rt[0],it=rt[1],Je=React__namespace.useMemo(function(){var zt,Ft=je&&st===null?[]:st,Vt=We(Ft);return F==="combobox"&&isComboNoValue((zt=Vt[0])===null||zt===void 0?void 0:zt.value)?[]:Vt},[st,We,F,je]),ct=useCache(Je,Pe),dt=_slicedToArray(ct,2),vt=dt[0],ht=dt[1],bt=React__namespace.useMemo(function(){if(!F&&vt.length===1){var zt=vt[0];if(zt.value===null&&(zt.label===null||zt.label===void 0))return[]}return vt.map(function(Ft){var Vt;return _objectSpread2(_objectSpread2({},Ft),{},{label:(Vt=typeof Ie=="function"?Ie(Ft):Ft.label)!==null&&Vt!==void 0?Vt:Ft.value})})},[F,vt,Ie]),Rt=React__namespace.useMemo(function(){return new Set(vt.map(function(zt){return zt.value}))},[vt]);React__namespace.useEffect(function(){if(F==="combobox"){var zt,Ft=(zt=vt[0])===null||zt===void 0?void 0:zt.value;Le(hasValue(Ft)?String(Ft):"")}},[vt]);var wt=useRefFunc(function(zt,Ft){var Vt=Ft!=null?Ft:zt;return _defineProperty(_defineProperty({},Xe.value,zt),Xe.label,Vt)}),lt=React__namespace.useMemo(function(){if(F!=="tags")return He;var zt=_toConsumableArray(He),Ft=function(Kt){return Pe.has(Kt)};return _toConsumableArray(vt).sort(function(Vt,Kt){return Vt.value<Kt.value?-1:1}).forEach(function(Vt){var Kt=Vt.value;Ft(Kt)||zt.push(wt(Kt,Vt.label))}),zt},[wt,He,Pe,vt,F]),ut=useFilterOptions(lt,Xe,Ue,Ve,he),Ge=React__namespace.useMemo(function(){return F!=="tags"||!Ue||ut.some(function(zt){return zt[he||"value"]===Ue})||ut.some(function(zt){return zt[Xe.value]===Ue})?ut:[wt(Ue)].concat(_toConsumableArray(ut))},[wt,he,F,ut,Ue,Xe]),et=function zt(Ft){var Vt=_toConsumableArray(Ft).sort(function(Kt,qt){return fe(Kt,qt,{searchValue:Ue})});return Vt.map(function(Kt){return Array.isArray(Kt.options)?_objectSpread2(_objectSpread2({},Kt),{},{options:Kt.options.length>0?zt(Kt.options):Kt.options}):Kt})},Ze=React__namespace.useMemo(function(){return fe?et(Ge):Ge},[Ge,fe,Ue]),nt=React__namespace.useMemo(function(){return flattenOptions(Ze,{fieldNames:Xe,childrenAsData:ze})},[Ze,Xe,ze]),tt=function(Ft){var Vt=We(Ft);if(it(Vt),Oe&&(Vt.length!==vt.length||Vt.some(function(ln,Cn){var Wt;return((Wt=vt[Cn])===null||Wt===void 0?void 0:Wt.value)!==(ln==null?void 0:ln.value)}))){var Kt=De?Vt:Vt.map(function(ln){return ln.value}),qt=Vt.map(function(ln){return injectPropsWithOption(ht(ln.value))});Oe(je?Kt:Kt[0],je?qt:qt[0])}},qe=React__namespace.useState(null),ot=_slicedToArray(qe,2),ft=ot[0],yt=ot[1],$t=React__namespace.useState(0),kt=_slicedToArray($t,2),Dt=kt[0],St=kt[1],Bt=be!==void 0?be:F!=="combobox",It=React__namespace.useCallback(function(zt,Ft){var Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Kt=Vt.source,qt=Kt===void 0?"keyboard":Kt;St(Ft),ee&&F==="combobox"&&zt!==null&&qt==="keyboard"&&yt(String(zt))},[ee,F]),Pt=function(Ft,Vt,Kt){var qt=function(){var pt,_t=ht(Ft);return[De?{label:_t==null?void 0:_t[Xe.label],value:Ft,key:(pt=_t==null?void 0:_t.key)!==null&&pt!==void 0?pt:Ft}:Ft,injectPropsWithOption(_t)]};if(Vt&&se){var ln=qt(),Cn=_slicedToArray(ln,2),Wt=Cn[0],Jt=Cn[1];se(Wt,Jt)}else if(!Vt&&ce&&Kt!=="clear"){var dn=qt(),sn=_slicedToArray(dn,2),gn=sn[0],mt=sn[1];ce(gn,mt)}},Tt=useRefFunc(function(zt,Ft){var Vt,Kt=je?Ft.selected:!0;Kt?Vt=je?[].concat(_toConsumableArray(vt),[zt]):[zt]:Vt=vt.filter(function(qt){return qt.value!==zt}),tt(Vt),Pt(zt,Kt),F==="combobox"?yt(""):(!isMultiple||ie)&&(Le(""),yt(""))}),Ct=function(Ft,Vt){tt(Ft);var Kt=Vt.type,qt=Vt.values;(Kt==="remove"||Kt==="clear")&&qt.forEach(function(ln){Pt(ln.value,!1,Kt)})},At=function(Ft,Vt){if(Le(Ft),yt(null),Vt.source==="submit"){var Kt=(Ft||"").trim();if(Kt){var qt=Array.from(new Set([].concat(_toConsumableArray(Rt),[Kt])));tt(qt),Pt(Kt,!0),Le("")}return}Vt.source!=="blur"&&(F==="combobox"&&tt(Ft),ae==null||ae(Ft))},Ht=function(Ft){var Vt=Ft;F!=="tags"&&(Vt=Ft.map(function(qt){var ln=Me.get(qt);return ln==null?void 0:ln.value}).filter(function(qt){return qt!==void 0}));var Kt=Array.from(new Set([].concat(_toConsumableArray(Rt),_toConsumableArray(Vt))));tt(Kt),Kt.forEach(function(qt){Pt(qt,!0)})},Gt=React__namespace.useMemo(function(){var zt=_e!==!1&&le!==!1;return _objectSpread2(_objectSpread2({},Te),{},{flattenOptions:nt,onActiveValue:It,defaultActiveFirstOption:Bt,onSelect:Tt,menuItemSelectedIcon:ge,rawValues:Rt,fieldNames:Xe,virtual:zt,direction:Se,listHeight:Ce,listItemHeight:$e,childrenAsData:ze,maxCount:we,optionRender:pe})},[we,Te,nt,It,Bt,Tt,ge,Rt,Xe,_e,le,Se,Ce,$e,ze,pe]);return process.env.NODE_ENV!=="production"&&(warningProps(C),warningNullOptions(He,Xe)),React__namespace.createElement(SelectContext.Provider,{value:Gt},React__namespace.createElement(BaseSelect,_extends({},Ae,{id:ke,prefixCls:J,ref:$,omitDomProps:OMIT_DOM_PROPS,mode:F,displayValues:bt,onDisplayValuesChange:Ct,direction:Se,searchValue:Ue,onSearch:At,autoClearSearchValue:ie,onSearchSplit:Ht,dropdownMatchSelectWidth:le,OptionList:RefOptionList,emptyOptions:!nt.length,activeValue:ft,activeDescendantId:"".concat(ke,"_list_").concat(Dt)})))});process.env.NODE_ENV!=="production"&&(Select$2.displayName="Select");var TypedSelect=Select$2;TypedSelect.Option=Option$2,TypedSelect.OptGroup=OptGroup;function getStatusClassNames(C,$,V){return classNames({[`${C}-status-success`]:$==="success",[`${C}-status-warning`]:$==="warning",[`${C}-status-error`]:$==="error",[`${C}-status-validating`]:$==="validating",[`${C}-has-feedback`]:V})}const getMergedStatus=(C,$)=>$||C,Empty$2=()=>{const[,C]=useToken(),[$]=useLocale$1("Empty"),F=new FastColor(C.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return React__namespace.createElement("svg",{style:F,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},React__namespace.createElement("title",null,($==null?void 0:$.description)||"Empty"),React__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},React__namespace.createElement("g",{transform:"translate(24 31.67)"},React__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),React__namespace.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"}),React__namespace.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)"}),React__namespace.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"}),React__namespace.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"})),React__namespace.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"}),React__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},React__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),React__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(Empty$2.displayName="EmptyImage");const DefaultEmptyImg=Empty$2,Simple=()=>{const[,C]=useToken(),[$]=useLocale$1("Empty"),{colorFill:V,colorFillTertiary:F,colorFillQuaternary:K,colorBgContainer:J}=C,{borderColor:ee,shadowColor:te,contentColor:ne}=React.useMemo(()=>({borderColor:new FastColor(V).onBackground(J).toHexString(),shadowColor:new FastColor(F).onBackground(J).toHexString(),contentColor:new FastColor(K).onBackground(J).toHexString()}),[V,F,K,J]);return React__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},React__namespace.createElement("title",null,($==null?void 0:$.description)||"Empty"),React__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},React__namespace.createElement("ellipse",{fill:te,cx:"32",cy:"33",rx:"32",ry:"7"}),React__namespace.createElement("g",{fillRule:"nonzero",stroke:ee},React__namespace.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"}),React__namespace.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:ne}))))};process.env.NODE_ENV!=="production"&&(Simple.displayName="SimpleImage");const SimpleEmptyImg=Simple,genSharedEmptyStyle=C=>{const{componentCls:$,margin:V,marginXS:F,marginXL:K,fontSize:J,lineHeight:ee}=C;return{[$]:{marginInline:F,fontSize:J,lineHeight:ee,textAlign:"center",[`${$}-image`]:{height:C.emptyImgHeight,marginBottom:F,opacity:C.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${$}-description`]:{color:C.colorTextDescription},[`${$}-footer`]:{marginTop:V},"&-normal":{marginBlock:K,color:C.colorTextDescription,[`${$}-description`]:{color:C.colorTextDescription},[`${$}-image`]:{height:C.emptyImgHeightMD}},"&-small":{marginBlock:F,color:C.colorTextDescription,[`${$}-image`]:{height:C.emptyImgHeightSM}}}}},useStyle$t=genStyleHooks("Empty",C=>{const{componentCls:$,controlHeightLG:V,calc:F}=C,K=merge(C,{emptyImgCls:`${$}-img`,emptyImgHeight:F(V).mul(2.5).equal(),emptyImgHeightMD:V,emptyImgHeightSM:F(V).mul(.875).equal()});return[genSharedEmptyStyle(K)]});var __rest$U=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const defaultEmptyImg=React__namespace.createElement(DefaultEmptyImg,null),simpleEmptyImg=React__namespace.createElement(SimpleEmptyImg,null),Empty=C=>{const{className:$,rootClassName:V,prefixCls:F,image:K=defaultEmptyImg,description:J,children:ee,imageStyle:te,style:ne,classNames:re,styles:ae}=C,oe=__rest$U(C,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:ie,direction:se,className:ce,style:de,classNames:le,styles:ve}=useComponentConfig("empty"),fe=ie("empty",F),[he,me,ue]=useStyle$t(fe),[pe]=useLocale$1("Empty"),ye=typeof J!="undefined"?J:pe==null?void 0:pe.description,be=typeof ye=="string"?ye:"empty";let ge=null;if(typeof K=="string"?ge=React__namespace.createElement("img",{alt:be,src:K}):ge=K,process.env.NODE_ENV!=="production"){const _e=devUseWarning("Empty");[["imageStyle","styles: { image: {} }"]].forEach(Se=>{let[Ee,Ce]=Se;_e.deprecated(!(Ee in C),Ee,Ce)})}return he(React__namespace.createElement("div",Object.assign({className:classNames(me,ue,fe,ce,{[`${fe}-normal`]:K===simpleEmptyImg,[`${fe}-rtl`]:se==="rtl"},$,V,le.root,re==null?void 0:re.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ve.root),de),ae==null?void 0:ae.root),ne)},oe),React__namespace.createElement("div",{className:classNames(`${fe}-image`,le.image,re==null?void 0:re.image),style:Object.assign(Object.assign(Object.assign({},te),ve.image),ae==null?void 0:ae.image)},ge),ye&&React__namespace.createElement("div",{className:classNames(`${fe}-description`,le.description,re==null?void 0:re.description),style:Object.assign(Object.assign({},ve.description),ae==null?void 0:ae.description)},ye),ee&&React__namespace.createElement("div",{className:classNames(`${fe}-footer`,le.footer,re==null?void 0:re.footer),style:Object.assign(Object.assign({},ve.footer),ae==null?void 0:ae.footer)},ee)))};Empty.PRESENTED_IMAGE_DEFAULT=defaultEmptyImg,Empty.PRESENTED_IMAGE_SIMPLE=simpleEmptyImg,process.env.NODE_ENV!=="production"&&(Empty.displayName="Empty");const Empty$1=Empty,DefaultRenderEmpty=C=>{const{componentName:$}=C,{getPrefixCls:V}=React.useContext(ConfigContext),F=V("empty");switch($){case"Table":case"List":return React.createElement(Empty$1,{image:Empty$1.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return React.createElement(Empty$1,{image:Empty$1.PRESENTED_IMAGE_SIMPLE,className:`${F}-small`});case"Table.filter":return null;default:return React.createElement(Empty$1,null)}},DefaultRenderEmpty$1=DefaultRenderEmpty,useVariant=function(C,$){let V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var F,K;const{variant:J,[C]:ee}=React__namespace.useContext(ConfigContext),te=React__namespace.useContext(VariantContext),ne=ee==null?void 0:ee.variant;let re;typeof $!="undefined"?re=$:V===!1?re="borderless":re=(K=(F=te!=null?te:ne)!==null&&F!==void 0?F:J)!==null&&K!==void 0?K:"outlined";const ae=Variants.includes(re);return[re,ae]},useVariant$1=useVariant,getBuiltInPlacements=C=>{const V={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:C==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},V),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},V),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},V),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},V),{points:["br","tr"],offset:[0,-4]})}};function mergedBuiltinPlacements(C,$){return C||getBuiltInPlacements($)}const genItemStyle=C=>{const{optionHeight:$,optionFontSize:V,optionLineHeight:F,optionPadding:K}=C;return{position:"relative",display:"block",minHeight:$,padding:K,color:C.colorText,fontWeight:"normal",fontSize:V,lineHeight:F,boxSizing:"border-box"}},genSingleStyle$1=C=>{const{antCls:$,componentCls:V}=C,F=`${V}-item`,K=`&${$}-slide-up-enter${$}-slide-up-enter-active`,J=`&${$}-slide-up-appear${$}-slide-up-appear-active`,ee=`&${$}-slide-up-leave${$}-slide-up-leave-active`,te=`${V}-dropdown-placement-`,ne=`${F}-option-selected`;return[{[`${V}-dropdown`]:Object.assign(Object.assign({},resetComponent(C)),{position:"absolute",top:-9999,zIndex:C.zIndexPopup,boxSizing:"border-box",padding:C.paddingXXS,overflow:"hidden",fontSize:C.fontSize,fontVariant:"initial",backgroundColor:C.colorBgElevated,borderRadius:C.borderRadiusLG,outline:"none",boxShadow:C.boxShadowSecondary,[`
207
207
  ${K}${te}bottomLeft,
@@ -325,7 +325,7 @@ html body {
325
325
  ${$}-next,
326
326
  ${$}-jump-prev,
327
327
  ${$}-jump-next
328
- `]:{display:"inline-block",minWidth:C.itemSize,height:C.itemSize,color:C.colorText,fontFamily:C.fontFamily,lineHeight:unit$1(C.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:C.borderRadius,cursor:"pointer",transition:`all ${C.motionDurationMid}`},[`${$}-prev, ${$}-next`]:{outline:0,button:{color:C.colorText,cursor:"pointer",userSelect:"none"},[`${$}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:C.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${unit$1(C.lineWidth)} ${C.lineType} transparent`,borderRadius:C.borderRadius,outline:"none",transition:`all ${C.motionDurationMid}`},[`&:hover ${$}-item-link`]:{backgroundColor:C.colorBgTextHover},[`&:active ${$}-item-link`]:{backgroundColor:C.colorBgTextActive},[`&${$}-disabled:hover`]:{[`${$}-item-link`]:{backgroundColor:"transparent"}}},[`${$}-slash`]:{marginInlineEnd:C.paginationSlashMarginInlineEnd,marginInlineStart:C.paginationSlashMarginInlineStart},[`${$}-options`]:{display:"inline-block",marginInlineStart:C.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:C.controlHeight,marginInlineStart:C.marginXS,lineHeight:unit$1(C.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},genBasicInputStyle(C)),genBaseOutlinedStyle(C,{borderColor:C.colorBorder,hoverBorderColor:C.colorPrimaryHover,activeBorderColor:C.colorPrimary,activeShadow:C.activeShadow})),{"&[disabled]":Object.assign({},genDisabledStyle(C)),width:C.calc(C.controlHeightLG).mul(1.25).equal(),height:C.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:C.marginXS,marginInlineEnd:C.marginXS})}}}},genPaginationItemStyle=C=>{const{componentCls:$}=C;return{[`${$}-item`]:{display:"inline-block",minWidth:C.itemSize,height:C.itemSize,marginInlineEnd:C.marginXS,fontFamily:C.fontFamily,lineHeight:unit$1(C.calc(C.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:C.itemBg,border:`${unit$1(C.lineWidth)} ${C.lineType} transparent`,borderRadius:C.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${unit$1(C.paginationItemPaddingInline)}`,color:C.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${$}-item-active)`]:{"&:hover":{transition:`all ${C.motionDurationMid}`,backgroundColor:C.colorBgTextHover},"&:active":{backgroundColor:C.colorBgTextActive}},"&-active":{fontWeight:C.fontWeightStrong,backgroundColor:C.itemActiveBg,borderColor:C.colorPrimary,a:{color:C.colorPrimary},"&:hover":{borderColor:C.colorPrimaryHover},"&:hover a":{color:C.colorPrimaryHover}}}}},genPaginationStyle$2=C=>{const{componentCls:$}=C;return{[$]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(C)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${$}-total-text`]:{display:"inline-block",height:C.itemSize,marginInlineEnd:C.marginXS,lineHeight:unit$1(C.calc(C.itemSize).sub(2).equal()),verticalAlign:"middle"}}),genPaginationItemStyle(C)),genPaginationJumpStyle(C)),genPaginationSimpleStyle(C)),genPaginationMiniStyle(C)),genPaginationDisabledStyle(C)),{[`@media only screen and (max-width: ${C.screenLG}px)`]:{[`${$}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${C.screenSM}px)`]:{[`${$}-options`]:{display:"none"}}}),[`&${C.componentCls}-rtl`]:{direction:"rtl"}}},genPaginationFocusStyle=C=>{const{componentCls:$}=C;return{[`${$}:not(${$}-disabled)`]:{[`${$}-item`]:Object.assign({},genFocusStyle(C)),[`${$}-jump-prev, ${$}-jump-next`]:{"&:focus-visible":Object.assign({[`${$}-item-link-icon`]:{opacity:1},[`${$}-item-ellipsis`]:{opacity:0}},genFocusOutline(C))},[`${$}-prev, ${$}-next`]:{[`&:focus-visible ${$}-item-link`]:Object.assign({},genFocusOutline(C))}}}},prepareComponentToken$9=C=>Object.assign({itemBg:C.colorBgContainer,itemSize:C.controlHeight,itemSizeSM:C.controlHeightSM,itemActiveBg:C.colorBgContainer,itemLinkBg:C.colorBgContainer,itemActiveColorDisabled:C.colorTextDisabled,itemActiveBgDisabled:C.controlItemBgActiveDisabled,itemInputBg:C.colorBgContainer,miniOptionsSizeChangerTop:0},initComponentToken$1(C)),prepareToken$1=C=>merge(C,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:C.calc(C.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:C.calc(C.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:C.calc(C.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:C.calc(C.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:C.marginSM,paginationSlashMarginInlineEnd:C.marginSM,paginationEllipsisTextIndent:"0.13em"},initInputToken(C)),useStyle$9=genStyleHooks("Pagination",C=>{const $=prepareToken$1(C);return[genPaginationStyle$2($),genPaginationFocusStyle($)]},prepareComponentToken$9),genBorderedStyle$2=C=>{const{componentCls:$}=C;return{[`${$}${$}-bordered${$}-disabled:not(${$}-mini)`]:{"&, &:hover":{[`${$}-item-link`]:{borderColor:C.colorBorder}},"&:focus-visible":{[`${$}-item-link`]:{borderColor:C.colorBorder}},[`${$}-item, ${$}-item-link`]:{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,[`&:hover:not(${$}-item-active)`]:{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,a:{color:C.colorTextDisabled}},[`&${$}-item-active`]:{backgroundColor:C.itemActiveBgDisabled}},[`${$}-prev, ${$}-next`]:{"&:hover button":{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,color:C.colorTextDisabled},[`${$}-item-link`]:{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder}}},[`${$}${$}-bordered:not(${$}-mini)`]:{[`${$}-prev, ${$}-next`]:{"&:hover button":{borderColor:C.colorPrimaryHover,backgroundColor:C.itemBg},[`${$}-item-link`]:{backgroundColor:C.itemLinkBg,borderColor:C.colorBorder},[`&:hover ${$}-item-link`]:{borderColor:C.colorPrimary,backgroundColor:C.itemBg,color:C.colorPrimary},[`&${$}-disabled`]:{[`${$}-item-link`]:{borderColor:C.colorBorder,color:C.colorTextDisabled}}},[`${$}-item`]:{backgroundColor:C.itemBg,border:`${unit$1(C.lineWidth)} ${C.lineType} ${C.colorBorder}`,[`&:hover:not(${$}-item-active)`]:{borderColor:C.colorPrimary,backgroundColor:C.itemBg,a:{color:C.colorPrimary}},"&-active":{borderColor:C.colorPrimary}}}}},BorderedStyle=genSubStyleComponent(["Pagination","bordered"],C=>{const $=prepareToken$1(C);return[genBorderedStyle$2($)]},prepareComponentToken$9);function useShowSizeChanger(C){return React.useMemo(()=>typeof C=="boolean"?[C,{}]:C&&typeof C=="object"?[!0,C]:[void 0,void 0],[C])}var __rest$g=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const Pagination=C=>{const{align:$,prefixCls:V,selectPrefixCls:F,className:K,rootClassName:J,style:ee,size:te,locale:ne,responsive:re,showSizeChanger:ae,selectComponentClass:oe,pageSizeOptions:ie}=C,se=__rest$g(C,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:ce}=useBreakpoint(re),[,de]=useToken(),{getPrefixCls:le,direction:ve,showSizeChanger:fe,className:he,style:me}=useComponentConfig("pagination"),ue=le("pagination",V),[pe,ye,be]=useStyle$9(ue),ge=useSize$1(te),_e=ge==="small"||!!(ce&&!ge&&re),[Se]=useLocale$1("Pagination",locale$4),Ee=Object.assign(Object.assign({},Se),ne),[Ce,xe]=useShowSizeChanger(ae),[$e,Ie]=useShowSizeChanger(fe),Fe=Ce!=null?Ce:$e,Ne=xe!=null?xe:Ie,De=oe||Select$1,Oe=React__namespace.useMemo(()=>ie?ie.map(Ve=>Number(Ve)):void 0,[ie]),we=Ve=>{var Xe;const{disabled:Ye,size:at,onSizeChange:Ue,"aria-label":Le,className:Te,options:Pe}=Ve,{className:Me,onChange:He}=Ne||{},We=(Xe=Pe.find(Ke=>String(Ke.value)===String(at)))===null||Xe===void 0?void 0:Xe.value;return React__namespace.createElement(De,Object.assign({disabled:Ye,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Ke=>Ke.parentNode,"aria-label":Le,options:Pe},Ne,{value:We,onChange:(Ke,rt)=>{Ue==null||Ue(Ke),He==null||He(Ke,rt)},size:_e?"small":"middle",className:classNames(Te,Me)}))};if(process.env.NODE_ENV!=="production"){const Ve=devUseWarning("Pagination");process.env.NODE_ENV!=="production"&&Ve(!oe,"usage","`selectComponentClass` is not official api which will be removed.")}const Ae=React__namespace.useMemo(()=>{const Ve=React__namespace.createElement("span",{className:`${ue}-item-ellipsis`},"•••"),Xe=React__namespace.createElement("button",{className:`${ue}-item-link`,type:"button",tabIndex:-1},ve==="rtl"?React__namespace.createElement(RightOutlined$1,null):React__namespace.createElement(LeftOutlined$1,null)),Ye=React__namespace.createElement("button",{className:`${ue}-item-link`,type:"button",tabIndex:-1},ve==="rtl"?React__namespace.createElement(LeftOutlined$1,null):React__namespace.createElement(RightOutlined$1,null)),at=React__namespace.createElement("a",{className:`${ue}-item-link`},React__namespace.createElement("div",{className:`${ue}-item-container`},ve==="rtl"?React__namespace.createElement(DoubleRightOutlined$1,{className:`${ue}-item-link-icon`}):React__namespace.createElement(DoubleLeftOutlined$1,{className:`${ue}-item-link-icon`}),Ve)),Ue=React__namespace.createElement("a",{className:`${ue}-item-link`},React__namespace.createElement("div",{className:`${ue}-item-container`},ve==="rtl"?React__namespace.createElement(DoubleLeftOutlined$1,{className:`${ue}-item-link-icon`}):React__namespace.createElement(DoubleRightOutlined$1,{className:`${ue}-item-link-icon`}),Ve));return{prevIcon:Xe,nextIcon:Ye,jumpPrevIcon:at,jumpNextIcon:Ue}},[ve,ue]),ke=le("select",F),je=classNames({[`${ue}-${$}`]:!!$,[`${ue}-mini`]:_e,[`${ue}-rtl`]:ve==="rtl",[`${ue}-bordered`]:de.wireframe},he,K,J,ye,be),ze=Object.assign(Object.assign({},me),ee);return pe(React__namespace.createElement(React__namespace.Fragment,null,de.wireframe&&React__namespace.createElement(BorderedStyle,{prefixCls:ue}),React__namespace.createElement(Pagination$2,Object.assign({},Ae,se,{style:ze,prefixCls:ue,selectPrefixCls:ke,className:je,locale:Ee,pageSizeOptions:Oe,showSizeChanger:Fe,sizeChangerRender:we}))))};process.env.NODE_ENV!=="production"&&(Pagination.displayName="Pagination");const Pagination$1=Pagination,viewSize=100,borderWidth=viewSize/5,radius=viewSize/2-borderWidth/2,circumference=radius*2*Math.PI,position=50,CustomCircle=C=>{const{dotClassName:$,style:V,hasCircleCls:F}=C;return React__namespace.createElement("circle",{className:classNames(`${$}-circle`,{[`${$}-circle-bg`]:F}),r:radius,cx:position,cy:position,strokeWidth:borderWidth,style:V})},Progress$2=C=>{let{percent:$,prefixCls:V}=C;const F=`${V}-dot`,K=`${F}-holder`,J=`${K}-hidden`,[ee,te]=React__namespace.useState(!1);useLayoutEffect$1(()=>{$!==0&&te(!0)},[$!==0]);const ne=Math.max(Math.min($,100),0);if(!ee)return null;const re={strokeDashoffset:`${circumference/4}`,strokeDasharray:`${circumference*ne/100} ${circumference*(100-ne)/100}`};return React__namespace.createElement("span",{className:classNames(K,`${F}-progress`,ne<=0&&J)},React__namespace.createElement("svg",{viewBox:`0 0 ${viewSize} ${viewSize}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":ne},React__namespace.createElement(CustomCircle,{dotClassName:F,hasCircleCls:!0}),React__namespace.createElement(CustomCircle,{dotClassName:F,style:re})))},Progress$3=Progress$2;function Looper(C){const{prefixCls:$,percent:V=0}=C,F=`${$}-dot`,K=`${F}-holder`,J=`${K}-hidden`;return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("span",{className:classNames(K,V>0&&J)},React__namespace.createElement("span",{className:classNames(F,`${$}-dot-spin`)},[1,2,3,4].map(ee=>React__namespace.createElement("i",{className:`${$}-dot-item`,key:ee})))),React__namespace.createElement(Progress$3,{prefixCls:$,percent:V}))}function Indicator$1(C){const{prefixCls:$,indicator:V,percent:F}=C,K=`${$}-dot`;return V&&React__namespace.isValidElement(V)?cloneElement(V,{className:classNames(V.props.className,K),percent:F}):React__namespace.createElement(Looper,{prefixCls:$,percent:F})}const antSpinMove=new Keyframe("antSpinMove",{to:{opacity:1}}),antRotate=new Keyframe("antRotate",{to:{transform:"rotate(405deg)"}}),genSpinStyle=C=>{const{componentCls:$,calc:V}=C;return{[$]:Object.assign(Object.assign({},resetComponent(C)),{position:"absolute",display:"none",color:C.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${C.motionDurationSlow} ${C.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${$}-text`]:{fontSize:C.fontSize,paddingTop:V(V(C.dotSize).sub(C.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:C.colorBgMask,zIndex:C.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${C.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[$]:{[`${$}-dot-holder`]:{color:C.colorWhite},[`${$}-text`]:{color:C.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${$}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:C.contentHeight,[`${$}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:V(C.dotSize).mul(-1).div(2).equal()},[`${$}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${C.colorBgContainer}`},[`&${$}-show-text ${$}-dot`]:{marginTop:V(C.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${$}-dot`]:{margin:V(C.dotSizeSM).mul(-1).div(2).equal()},[`${$}-text`]:{paddingTop:V(V(C.dotSizeSM).sub(C.fontSize)).div(2).add(2).equal()},[`&${$}-show-text ${$}-dot`]:{marginTop:V(C.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${$}-dot`]:{margin:V(C.dotSizeLG).mul(-1).div(2).equal()},[`${$}-text`]:{paddingTop:V(V(C.dotSizeLG).sub(C.fontSize)).div(2).add(2).equal()},[`&${$}-show-text ${$}-dot`]:{marginTop:V(C.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${$}-container`]:{position:"relative",transition:`opacity ${C.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:C.colorBgContainer,opacity:0,transition:`all ${C.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${$}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:C.spinDotDefault},[`${$}-dot-holder`]:{width:"1em",height:"1em",fontSize:C.dotSize,display:"inline-block",transition:`transform ${C.motionDurationSlow} ease, opacity ${C.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:C.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${$}-dot-progress`]:{position:"absolute",inset:0},[`${$}-dot`]:{position:"relative",display:"inline-block",fontSize:C.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:V(C.dotSize).sub(V(C.marginXXS).div(2)).div(2).equal(),height:V(C.dotSize).sub(V(C.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:antSpinMove,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:antRotate,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(F=>`${F} ${C.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:C.colorFillSecondary}},[`&-sm ${$}-dot`]:{"&, &-holder":{fontSize:C.dotSizeSM}},[`&-sm ${$}-dot-holder`]:{i:{width:V(V(C.dotSizeSM).sub(V(C.marginXXS).div(2))).div(2).equal(),height:V(V(C.dotSizeSM).sub(V(C.marginXXS).div(2))).div(2).equal()}},[`&-lg ${$}-dot`]:{"&, &-holder":{fontSize:C.dotSizeLG}},[`&-lg ${$}-dot-holder`]:{i:{width:V(V(C.dotSizeLG).sub(C.marginXXS)).div(2).equal(),height:V(V(C.dotSizeLG).sub(C.marginXXS)).div(2).equal()}},[`&${$}-show-text ${$}-text`]:{display:"block"}})}},prepareComponentToken$8=C=>{const{controlHeightLG:$,controlHeight:V}=C;return{contentHeight:400,dotSize:$/2,dotSizeSM:$*.35,dotSizeLG:V}},useStyle$8=genStyleHooks("Spin",C=>{const $=merge(C,{spinDotDefault:C.colorTextDescription});return[genSpinStyle($)]},prepareComponentToken$8),AUTO_INTERVAL=200,STEP_BUCKETS=[[30,.05],[70,.03],[96,.01]];function usePercent(C,$){const[V,F]=React__namespace.useState(0),K=React__namespace.useRef(null),J=$==="auto";return React__namespace.useEffect(()=>(J&&C&&(F(0),K.current=setInterval(()=>{F(ee=>{const te=100-ee;for(let ne=0;ne<STEP_BUCKETS.length;ne+=1){const[re,ae]=STEP_BUCKETS[ne];if(ee<=re)return ee+te*ae}return ee})},AUTO_INTERVAL)),()=>{clearInterval(K.current)}),[J,C]),J?V:$}var __rest$f=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};let defaultIndicator;function shouldDelay(C,$){return!!C&&!!$&&!Number.isNaN(Number($))}const Spin=C=>{var $;const{prefixCls:V,spinning:F=!0,delay:K=0,className:J,rootClassName:ee,size:te="default",tip:ne,wrapperClassName:re,style:ae,children:oe,fullscreen:ie=!1,indicator:se,percent:ce}=C,de=__rest$f(C,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:le,direction:ve,className:fe,style:he,indicator:me}=useComponentConfig("spin"),ue=le("spin",V),[pe,ye,be]=useStyle$8(ue),[ge,_e]=React__namespace.useState(()=>F&&!shouldDelay(F,K)),Se=usePercent(ge,ce);React__namespace.useEffect(()=>{if(F){const Ne=debounce(K,()=>{_e(!0)});return Ne(),()=>{var De;(De=Ne==null?void 0:Ne.cancel)===null||De===void 0||De.call(Ne)}}_e(!1)},[K,F]);const Ee=React__namespace.useMemo(()=>typeof oe!="undefined"&&!ie,[oe,ie]);if(process.env.NODE_ENV!=="production"){const Ne=devUseWarning("Spin");process.env.NODE_ENV!=="production"&&Ne(!ne||Ee||ie,"usage","`tip` only work in nest or fullscreen pattern.")}const Ce=classNames(ue,fe,{[`${ue}-sm`]:te==="small",[`${ue}-lg`]:te==="large",[`${ue}-spinning`]:ge,[`${ue}-show-text`]:!!ne,[`${ue}-rtl`]:ve==="rtl"},J,!ie&&ee,ye,be),xe=classNames(`${ue}-container`,{[`${ue}-blur`]:ge}),$e=($=se!=null?se:me)!==null&&$!==void 0?$:defaultIndicator,Ie=Object.assign(Object.assign({},he),ae),Fe=React__namespace.createElement("div",Object.assign({},de,{style:Ie,className:Ce,"aria-live":"polite","aria-busy":ge}),React__namespace.createElement(Indicator$1,{prefixCls:ue,indicator:$e,percent:Se}),ne&&(Ee||ie)?React__namespace.createElement("div",{className:`${ue}-text`},ne):null);return pe(Ee?React__namespace.createElement("div",Object.assign({},de,{className:classNames(`${ue}-nested-loading`,re,ye,be)}),ge&&React__namespace.createElement("div",{key:"loading"},Fe),React__namespace.createElement("div",{className:xe,key:"container"},oe)):ie?React__namespace.createElement("div",{className:classNames(`${ue}-fullscreen`,{[`${ue}-fullscreen-show`]:ge},ee,ye,be)},Fe):Fe)};Spin.setDefaultIndicator=C=>{defaultIndicator=C},process.env.NODE_ENV!=="production"&&(Spin.displayName="Spin");const Spin$1=Spin,toList$1=function(C){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&C==null?[]:Array.isArray(C)?C:[C]},toList$2=toList$1;let message=null,act$1=C=>C(),taskQueue$1=[],defaultGlobalConfig$1={};function getGlobalContext$1(){const{getContainer:C,duration:$,rtl:V,maxCount:F,top:K}=defaultGlobalConfig$1,J=(C==null?void 0:C())||document.body;return{getContainer:()=>J,duration:$,rtl:V,maxCount:F,top:K}}const GlobalHolder$1=React.forwardRef((C,$)=>{const{messageConfig:V,sync:F}=C,{getPrefixCls:K}=React.useContext(ConfigContext),J=defaultGlobalConfig$1.prefixCls||K("message"),ee=React.useContext(AppConfigContext),[te,ne]=useInternalMessage(Object.assign(Object.assign(Object.assign({},V),{prefixCls:J}),ee.message));return React.useImperativeHandle($,()=>{const re=Object.assign({},te);return Object.keys(re).forEach(ae=>{re[ae]=function(){return F(),te[ae].apply(te,arguments)}}),{instance:re,sync:F}}),ne}),GlobalHolderWrapper$1=React.forwardRef((C,$)=>{const[V,F]=React.useState(getGlobalContext$1),K=()=>{F(getGlobalContext$1)};React.useEffect(K,[]);const J=globalConfig(),ee=J.getRootPrefixCls(),te=J.getIconPrefixCls(),ne=J.getTheme(),re=React.createElement(GlobalHolder$1,{ref:$,sync:K,messageConfig:V});return React.createElement(ConfigProvider,{prefixCls:ee,iconPrefixCls:te,theme:ne},J.holderRender?J.holderRender(re):re)});function flushNotice$1(){if(!message){const C=document.createDocumentFragment(),$={fragment:C};message=$,act$1(()=>{unstableSetRender()(React.createElement(GlobalHolderWrapper$1,{ref:F=>{const{instance:K,sync:J}=F||{};Promise.resolve().then(()=>{!$.instance&&K&&($.instance=K,$.sync=J,flushNotice$1())})}}),C)});return}message.instance&&(taskQueue$1.forEach(C=>{const{type:$,skipped:V}=C;if(!V)switch($){case"open":{act$1(()=>{const F=message.instance.open(Object.assign(Object.assign({},defaultGlobalConfig$1),C.config));F==null||F.then(C.resolve),C.setCloseFn(F)});break}case"destroy":act$1(()=>{message==null||message.instance.destroy(C.key)});break;default:act$1(()=>{var F;const K=(F=message.instance)[$].apply(F,_toConsumableArray(C.args));K==null||K.then(C.resolve),C.setCloseFn(K)})}}),taskQueue$1=[])}function setMessageGlobalConfig(C){defaultGlobalConfig$1=Object.assign(Object.assign({},defaultGlobalConfig$1),C),act$1(()=>{var $;($=message==null?void 0:message.sync)===null||$===void 0||$.call(message)})}function open$1(C){const $=wrapPromiseFn(V=>{let F;const K={type:"open",config:C,resolve:V,setCloseFn:J=>{F=J}};return taskQueue$1.push(K),()=>{F?act$1(()=>{F()}):K.skipped=!0}});return flushNotice$1(),$}function typeOpen(C,$){const V=globalConfig();process.env.NODE_ENV!=="production"&&!V.holderRender&&warnContext("message");const F=wrapPromiseFn(K=>{let J;const ee={type:C,args:$,resolve:K,setCloseFn:te=>{J=te}};return taskQueue$1.push(ee),()=>{J?act$1(()=>{J()}):ee.skipped=!0}});return flushNotice$1(),F}const destroy$1=C=>{taskQueue$1.push({type:"destroy",key:C}),flushNotice$1()},methods$1=["success","info","warning","error","loading"],baseStaticMethods$1={open:open$1,destroy:destroy$1,config:setMessageGlobalConfig,useMessage,_InternalPanelDoNotUseOrYouWillBeFired:PurePanel$a},staticMethods$1=baseStaticMethods$1;methods$1.forEach(C=>{staticMethods$1[C]=function(){for(var $=arguments.length,V=new Array($),F=0;F<$;F++)V[F]=arguments[F];return typeOpen(C,V)}}),process.env.NODE_ENV,process.env.NODE_ENV;const message$1=staticMethods$1;var __rest$e=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const PurePanel=C=>{const{prefixCls:$,className:V,closeIcon:F,closable:K,type:J,title:ee,children:te,footer:ne}=C,re=__rest$e(C,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:ae}=React__namespace.useContext(ConfigContext),oe=ae(),ie=$||ae("modal"),se=useCSSVarCls$1(oe),[ce,de,le]=useStyle$w(ie,se),ve=`${ie}-confirm`;let fe={};return J?fe={closable:K!=null?K:!1,title:"",footer:"",children:React__namespace.createElement(ConfirmContent,Object.assign({},C,{prefixCls:ie,confirmPrefixCls:ve,rootPrefixCls:oe,content:te}))}:fe={closable:K!=null?K:!0,title:ee,footer:ne!==null&&React__namespace.createElement(Footer$5,Object.assign({},C)),children:te},ce(React__namespace.createElement(Panel$1,Object.assign({prefixCls:ie,className:classNames(de,`${ie}-pure-panel`,J&&ve,J&&`${ve}-${J}`,V,le,se)},re,{closeIcon:renderCloseIcon(ie,F),closable:K},fe)))},PurePanel$1=withPureRenderTheme(PurePanel);function modalWarn(C){return confirm(withWarn(C))}const Modal=OriginModal;Modal.useModal=useModal,Modal.info=function($){return confirm(withInfo($))},Modal.success=function($){return confirm(withSuccess($))},Modal.error=function($){return confirm(withError($))},Modal.warning=modalWarn,Modal.warn=modalWarn,Modal.confirm=function($){return confirm(withConfirm($))},Modal.destroyAll=function(){for(;destroyFns$1.length;){const $=destroyFns$1.pop();$&&$()}},Modal.config=modalGlobalConfig,Modal._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$1,process.env.NODE_ENV!=="production"&&(Modal.displayName="Modal");const Modal$1=Modal;let notification=null,act=C=>C(),taskQueue=[],defaultGlobalConfig={};function getGlobalContext(){const{getContainer:C,rtl:$,maxCount:V,top:F,bottom:K,showProgress:J,pauseOnHover:ee}=defaultGlobalConfig,te=(C==null?void 0:C())||document.body;return{getContainer:()=>te,rtl:$,maxCount:V,top:F,bottom:K,showProgress:J,pauseOnHover:ee}}const GlobalHolder=React.forwardRef((C,$)=>{const{notificationConfig:V,sync:F}=C,{getPrefixCls:K}=React.useContext(ConfigContext),J=defaultGlobalConfig.prefixCls||K("notification"),ee=React.useContext(AppConfigContext),[te,ne]=useInternalNotification(Object.assign(Object.assign(Object.assign({},V),{prefixCls:J}),ee.notification));return React.useEffect(F,[]),React.useImperativeHandle($,()=>{const re=Object.assign({},te);return Object.keys(re).forEach(ae=>{re[ae]=function(){return F(),te[ae].apply(te,arguments)}}),{instance:re,sync:F}}),ne}),GlobalHolderWrapper=React.forwardRef((C,$)=>{const[V,F]=React.useState(getGlobalContext),K=()=>{F(getGlobalContext)};React.useEffect(K,[]);const J=globalConfig(),ee=J.getRootPrefixCls(),te=J.getIconPrefixCls(),ne=J.getTheme(),re=React.createElement(GlobalHolder,{ref:$,sync:K,notificationConfig:V});return React.createElement(ConfigProvider,{prefixCls:ee,iconPrefixCls:te,theme:ne},J.holderRender?J.holderRender(re):re)});function flushNotice(){if(!notification){const C=document.createDocumentFragment(),$={fragment:C};notification=$,act(()=>{unstableSetRender()(React.createElement(GlobalHolderWrapper,{ref:F=>{const{instance:K,sync:J}=F||{};Promise.resolve().then(()=>{!$.instance&&K&&($.instance=K,$.sync=J,flushNotice())})}}),C)});return}notification.instance&&(taskQueue.forEach(C=>{switch(C.type){case"open":{act(()=>{notification.instance.open(Object.assign(Object.assign({},defaultGlobalConfig),C.config))});break}case"destroy":act(()=>{notification==null||notification.instance.destroy(C.key)});break}}),taskQueue=[])}function setNotificationGlobalConfig(C){defaultGlobalConfig=Object.assign(Object.assign({},defaultGlobalConfig),C),act(()=>{var $;($=notification==null?void 0:notification.sync)===null||$===void 0||$.call(notification)})}function open(C){const $=globalConfig();process.env.NODE_ENV!=="production"&&!$.holderRender&&warnContext("notification"),taskQueue.push({type:"open",config:C}),flushNotice()}const destroy=C=>{taskQueue.push({type:"destroy",key:C}),flushNotice()},methods=["success","info","warning","error"],baseStaticMethods={open,destroy,config:setNotificationGlobalConfig,useNotification,_InternalPanelDoNotUseOrYouWillBeFired:PurePanel$8},staticMethods=baseStaticMethods;methods.forEach(C=>{staticMethods[C]=$=>open(Object.assign(Object.assign({},$),{type:C}))}),process.env.NODE_ENV,process.env.NODE_ENV;const notification$1=staticMethods;var defaultProps={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},useTransitionDuration=function(){var $=React.useRef([]),V=React.useRef(null);return React.useEffect(function(){var F=Date.now(),K=!1;$.current.forEach(function(J){if(J){K=!0;var ee=J.style;ee.transitionDuration=".3s, .3s, .3s, .06s",V.current&&F-V.current<100&&(ee.transitionDuration="0s, 0s")}}),K&&(V.current=Date.now())}),$.current};process.env.NODE_ENV;var uuid=0,isBrowserClient=process.env.NODE_ENV!=="test"&&canUseDom();function getUUID(){var C;return isBrowserClient?(C=uuid,uuid+=1):C="TEST_OR_SSR",C}const useId=function(C){var $=React__namespace.useState(),V=_slicedToArray($,2),F=V[0],K=V[1];return React__namespace.useEffect(function(){K("rc_progress_".concat(getUUID()))},[]),C||F};var Block=function($){var V=$.bg,F=$.children;return React__namespace.createElement("div",{style:{width:"100%",height:"100%",background:V}},F)};function getPtgColors(C,$){return Object.keys(C).map(function(V){var F=parseFloat(V),K="".concat(Math.floor(F*$),"%");return"".concat(C[V]," ").concat(K)})}var PtgCircle=React__namespace.forwardRef(function(C,$){var V=C.prefixCls,F=C.color,K=C.gradientId,J=C.radius,ee=C.style,te=C.ptg,ne=C.strokeLinecap,re=C.strokeWidth,ae=C.size,oe=C.gapDegree,ie=F&&_typeof(F)==="object",se=ie?"#FFF":void 0,ce=ae/2,de=React__namespace.createElement("circle",{className:"".concat(V,"-circle-path"),r:J,cx:ce,cy:ce,stroke:se,strokeLinecap:ne,strokeWidth:re,opacity:te===0?0:1,style:ee,ref:$});if(!ie)return de;var le="".concat(K,"-conic"),ve=oe?"".concat(180+oe/2,"deg"):"0deg",fe=getPtgColors(F,(360-oe)/360),he=getPtgColors(F,1),me="conic-gradient(from ".concat(ve,", ").concat(fe.join(", "),")"),ue="linear-gradient(to ".concat(oe?"bottom":"top",", ").concat(he.join(", "),")");return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("mask",{id:le},de),React__namespace.createElement("foreignObject",{x:0,y:0,width:ae,height:ae,mask:"url(#".concat(le,")")},React__namespace.createElement(Block,{bg:ue},React__namespace.createElement(Block,{bg:me}))))});process.env.NODE_ENV!=="production"&&(PtgCircle.displayName="PtgCircle");var VIEW_BOX_SIZE=100,getCircleStyle=function($,V,F,K,J,ee,te,ne,re,ae){var oe=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ie=F/100*360*((360-ee)/360),se=ee===0?0:{bottom:0,top:180,left:90,right:-90}[te],ce=(100-K)/100*V;re==="round"&&K!==100&&(ce+=ae/2,ce>=V&&(ce=V-.01));var de=VIEW_BOX_SIZE/2;return{stroke:typeof ne=="string"?ne:void 0,strokeDasharray:"".concat(V,"px ").concat($),strokeDashoffset:ce+oe,transform:"rotate(".concat(J+ie+se,"deg)"),transformOrigin:"".concat(de,"px ").concat(de,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},_excluded$e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function toArray$1(C){var $=C!=null?C:[];return Array.isArray($)?$:[$]}var Circle$2=function($){var V=_objectSpread2(_objectSpread2({},defaultProps),$),F=V.id,K=V.prefixCls,J=V.steps,ee=V.strokeWidth,te=V.trailWidth,ne=V.gapDegree,re=ne===void 0?0:ne,ae=V.gapPosition,oe=V.trailColor,ie=V.strokeLinecap,se=V.style,ce=V.className,de=V.strokeColor,le=V.percent,ve=_objectWithoutProperties(V,_excluded$e),fe=VIEW_BOX_SIZE/2,he=useId(F),me="".concat(he,"-gradient"),ue=fe-ee/2,pe=Math.PI*2*ue,ye=re>0?90+re/2:-90,be=pe*((360-re)/360),ge=_typeof(J)==="object"?J:{count:J,gap:2},_e=ge.count,Se=ge.gap,Ee=toArray$1(le),Ce=toArray$1(de),xe=Ce.find(function(we){return we&&_typeof(we)==="object"}),$e=xe&&_typeof(xe)==="object",Ie=$e?"butt":ie,Fe=getCircleStyle(pe,be,0,100,ye,re,ae,oe,Ie,ee),Ne=useTransitionDuration(),De=function(){var Ae=0;return Ee.map(function(ke,je){var ze=Ce[je]||Ce[Ce.length-1],Ve=getCircleStyle(pe,be,Ae,ke,ye,re,ae,ze,Ie,ee);return Ae+=ke,React__namespace.createElement(PtgCircle,{key:je,color:ze,ptg:ke,radius:ue,prefixCls:K,gradientId:me,style:Ve,strokeLinecap:Ie,strokeWidth:ee,gapDegree:re,ref:function(Ye){Ne[je]=Ye},size:VIEW_BOX_SIZE})}).reverse()},Oe=function(){var Ae=Math.round(_e*(Ee[0]/100)),ke=100/_e,je=0;return new Array(_e).fill(null).map(function(ze,Ve){var Xe=Ve<=Ae-1?Ce[0]:oe,Ye=Xe&&_typeof(Xe)==="object"?"url(#".concat(me,")"):void 0,at=getCircleStyle(pe,be,je,ke,ye,re,ae,Xe,"butt",ee,Se);return je+=(be-at.strokeDashoffset+Se)*100/be,React__namespace.createElement("circle",{key:Ve,className:"".concat(K,"-circle-path"),r:ue,cx:fe,cy:fe,stroke:Ye,strokeWidth:ee,opacity:1,style:at,ref:function(Le){Ne[Ve]=Le}})})};return React__namespace.createElement("svg",_extends({className:classNames("".concat(K,"-circle"),ce),viewBox:"0 0 ".concat(VIEW_BOX_SIZE," ").concat(VIEW_BOX_SIZE),style:se,id:F,role:"presentation"},ve),!_e&&React__namespace.createElement("circle",{className:"".concat(K,"-circle-trail"),r:ue,cx:fe,cy:fe,stroke:oe,strokeLinecap:Ie,strokeWidth:te||ee,style:Fe}),_e?Oe():De())};process.env.NODE_ENV!=="production"&&(Circle$2.displayName="Circle");function validProgress(C){return!C||C<0?0:C>100?100:C}function getSuccessPercent(C){let{success:$,successPercent:V}=C,F=V;return $&&"progress"in $&&(F=$.progress),$&&"percent"in $&&(F=$.percent),F}const getPercentage=C=>{let{percent:$,success:V,successPercent:F}=C;const K=validProgress(getSuccessPercent({success:V,successPercent:F}));return[K,validProgress(validProgress($)-K)]},getStrokeColor=C=>{let{success:$={},strokeColor:V}=C;const{strokeColor:F}=$;return[F||presetPrimaryColors.green,V||null]},getSize=(C,$,V)=>{var F,K,J,ee;let te=-1,ne=-1;if($==="step"){const re=V.steps,ae=V.strokeWidth;typeof C=="string"||typeof C=="undefined"?(te=C==="small"?2:14,ne=ae!=null?ae:8):typeof C=="number"?[te,ne]=[C,C]:[te=14,ne=8]=Array.isArray(C)?C:[C.width,C.height],te*=re}else if($==="line"){const re=V==null?void 0:V.strokeWidth;typeof C=="string"||typeof C=="undefined"?ne=re||(C==="small"?6:8):typeof C=="number"?[te,ne]=[C,C]:[te=-1,ne=8]=Array.isArray(C)?C:[C.width,C.height]}else($==="circle"||$==="dashboard")&&(typeof C=="string"||typeof C=="undefined"?[te,ne]=C==="small"?[60,60]:[120,120]:typeof C=="number"?[te,ne]=[C,C]:Array.isArray(C)&&(te=(K=(F=C[0])!==null&&F!==void 0?F:C[1])!==null&&K!==void 0?K:120,ne=(ee=(J=C[0])!==null&&J!==void 0?J:C[1])!==null&&ee!==void 0?ee:120));return[te,ne]},CIRCLE_MIN_STROKE_WIDTH=3,getMinPercent=C=>CIRCLE_MIN_STROKE_WIDTH/C*100,Circle=C=>{const{prefixCls:$,trailColor:V=null,strokeLinecap:F="round",gapPosition:K,gapDegree:J,width:ee=120,type:te,children:ne,success:re,size:ae=ee,steps:oe}=C,[ie,se]=getSize(ae,"circle");let{strokeWidth:ce}=C;ce===void 0&&(ce=Math.max(getMinPercent(ie),6));const de={width:ie,height:se,fontSize:ie*.15+6},le=React__namespace.useMemo(()=>{if(J||J===0)return J;if(te==="dashboard")return 75},[J,te]),ve=getPercentage(C),fe=K||te==="dashboard"&&"bottom"||void 0,he=Object.prototype.toString.call(C.strokeColor)==="[object Object]",me=getStrokeColor({success:re,strokeColor:C.strokeColor}),ue=classNames(`${$}-inner`,{[`${$}-circle-gradient`]:he}),pe=React__namespace.createElement(Circle$2,{steps:oe,percent:oe?ve[1]:ve,strokeWidth:ce,trailWidth:ce,strokeColor:oe?me[1]:me,strokeLinecap:F,trailColor:V,prefixCls:$,gapDegree:le,gapPosition:fe}),ye=ie<=20,be=React__namespace.createElement("div",{className:ue,style:de},pe,!ye&&ne);return ye?React__namespace.createElement(Tooltip$1,{title:ne},be):be},Circle$1=Circle,LineStrokeColorVar="--progress-line-stroke-color",Percent="--progress-percent",genAntProgressActive=C=>{const $=C?"100%":"-100%";return new Keyframe(`antProgress${C?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${$}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${$}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},genBaseStyle$3=C=>{const{componentCls:$,iconCls:V}=C;return{[$]:Object.assign(Object.assign({},resetComponent(C)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:C.fontSize},[`${$}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${$}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:C.remainingColor,borderRadius:C.lineBorderRadius},[`${$}-inner:not(${$}-circle-gradient)`]:{[`${$}-circle-path`]:{stroke:C.defaultColor}},[`${$}-success-bg, ${$}-bg`]:{position:"relative",background:C.defaultColor,borderRadius:C.lineBorderRadius,transition:`all ${C.motionDurationSlow} ${C.motionEaseInOutCirc}`},[`${$}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${$}-text`]:{width:"max-content",marginInlineStart:0,marginTop:C.marginXXS}},[`${$}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${LineStrokeColorVar})`]},height:"100%",width:`calc(1 / var(${Percent}) * 100%)`,display:"block"},[`&${$}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${$}-text-inner`]:{color:C.colorWhite,[`&${$}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${$}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:C.colorSuccess},[`${$}-text`]:{display:"inline-block",marginInlineStart:C.marginXS,color:C.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[V]:{fontSize:C.fontSize},[`&${$}-text-outer`]:{width:"max-content"},[`&${$}-text-outer${$}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:C.marginXS}},[`${$}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${unit$1(C.paddingXXS)}`,[`&${$}-text-start`]:{justifyContent:"start"},[`&${$}-text-end`]:{justifyContent:"end"}},[`&${$}-status-active`]:{[`${$}-bg::before`]:{position:"absolute",inset:0,backgroundColor:C.colorBgContainer,borderRadius:C.lineBorderRadius,opacity:0,animationName:genAntProgressActive(),animationDuration:C.progressActiveMotionDuration,animationTimingFunction:C.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${$}-rtl${$}-status-active`]:{[`${$}-bg::before`]:{animationName:genAntProgressActive(!0)}},[`&${$}-status-exception`]:{[`${$}-bg`]:{backgroundColor:C.colorError},[`${$}-text`]:{color:C.colorError}},[`&${$}-status-exception ${$}-inner:not(${$}-circle-gradient)`]:{[`${$}-circle-path`]:{stroke:C.colorError}},[`&${$}-status-success`]:{[`${$}-bg`]:{backgroundColor:C.colorSuccess},[`${$}-text`]:{color:C.colorSuccess}},[`&${$}-status-success ${$}-inner:not(${$}-circle-gradient)`]:{[`${$}-circle-path`]:{stroke:C.colorSuccess}}})}},genCircleStyle=C=>{const{componentCls:$,iconCls:V}=C;return{[$]:{[`${$}-circle-trail`]:{stroke:C.remainingColor},[`&${$}-circle ${$}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${$}-circle ${$}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:C.circleTextColor,fontSize:C.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[V]:{fontSize:C.circleIconFontSize}},[`${$}-circle&-status-exception`]:{[`${$}-text`]:{color:C.colorError}},[`${$}-circle&-status-success`]:{[`${$}-text`]:{color:C.colorSuccess}}},[`${$}-inline-circle`]:{lineHeight:1,[`${$}-inner`]:{verticalAlign:"bottom"}}}},genStepStyle=C=>{const{componentCls:$}=C;return{[$]:{[`${$}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:C.progressStepMinWidth,marginInlineEnd:C.progressStepMarginInlineEnd,backgroundColor:C.remainingColor,transition:`all ${C.motionDurationSlow}`,"&-active":{backgroundColor:C.defaultColor}}}}}},genSmallLine=C=>{const{componentCls:$,iconCls:V}=C;return{[$]:{[`${$}-small&-line, ${$}-small&-line ${$}-text ${V}`]:{fontSize:C.fontSizeSM}}}},prepareComponentToken$7=C=>({circleTextColor:C.colorText,defaultColor:C.colorInfo,remainingColor:C.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${C.fontSize/C.fontSizeSM}em`}),useStyle$7=genStyleHooks("Progress",C=>{const $=C.calc(C.marginXXS).div(2).equal(),V=merge(C,{progressStepMarginInlineEnd:$,progressStepMinWidth:$,progressActiveMotionDuration:"2.4s"});return[genBaseStyle$3(V),genCircleStyle(V),genStepStyle(V),genSmallLine(V)]},prepareComponentToken$7);var __rest$d=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const sortGradient=C=>{let $=[];return Object.keys(C).forEach(V=>{const F=parseFloat(V.replace(/%/g,""));Number.isNaN(F)||$.push({key:F,value:C[V]})}),$=$.sort((V,F)=>V.key-F.key),$.map(V=>{let{key:F,value:K}=V;return`${K} ${F}%`}).join(", ")},handleGradient=(C,$)=>{const{from:V=presetPrimaryColors.blue,to:F=presetPrimaryColors.blue,direction:K=$==="rtl"?"to left":"to right"}=C,J=__rest$d(C,["from","to","direction"]);if(Object.keys(J).length!==0){const te=sortGradient(J),ne=`linear-gradient(${K}, ${te})`;return{background:ne,[LineStrokeColorVar]:ne}}const ee=`linear-gradient(${K}, ${V}, ${F})`;return{background:ee,[LineStrokeColorVar]:ee}},Line=C=>{const{prefixCls:$,direction:V,percent:F,size:K,strokeWidth:J,strokeColor:ee,strokeLinecap:te="round",children:ne,trailColor:re=null,percentPosition:ae,success:oe}=C,{align:ie,type:se}=ae,ce=ee&&typeof ee!="string"?handleGradient(ee,V):{[LineStrokeColorVar]:ee,background:ee},de=te==="square"||te==="butt"?0:void 0,le=K!=null?K:[-1,J||(K==="small"?6:8)],[ve,fe]=getSize(le,"line",{strokeWidth:J});process.env.NODE_ENV!=="production"&&devUseWarning("Progress").deprecated(!("strokeWidth"in C),"strokeWidth","size");const he={backgroundColor:re||void 0,borderRadius:de},me=Object.assign(Object.assign({width:`${validProgress(F)}%`,height:fe,borderRadius:de},ce),{[Percent]:validProgress(F)/100}),ue=getSuccessPercent(C),pe={width:`${validProgress(ue)}%`,height:fe,borderRadius:de,backgroundColor:oe==null?void 0:oe.strokeColor},ye={width:ve<0?"100%":ve},be=React__namespace.createElement("div",{className:`${$}-inner`,style:he},React__namespace.createElement("div",{className:classNames(`${$}-bg`,`${$}-bg-${se}`),style:me},se==="inner"&&ne),ue!==void 0&&React__namespace.createElement("div",{className:`${$}-success-bg`,style:pe})),ge=se==="outer"&&ie==="start",_e=se==="outer"&&ie==="end";return se==="outer"&&ie==="center"?React__namespace.createElement("div",{className:`${$}-layout-bottom`},be,ne):React__namespace.createElement("div",{className:`${$}-outer`,style:ye},ge&&ne,be,_e&&ne)},Line$1=Line,Steps$3=C=>{const{size:$,steps:V,rounding:F=Math.round,percent:K=0,strokeWidth:J=8,strokeColor:ee,trailColor:te=null,prefixCls:ne,children:re}=C,ae=F(V*(K/100)),oe=$==="small"?2:14,ie=$!=null?$:[oe,J],[se,ce]=getSize(ie,"step",{steps:V,strokeWidth:J}),de=se/V,le=Array.from({length:V});for(let ve=0;ve<V;ve++){const fe=Array.isArray(ee)?ee[ve]:ee;le[ve]=React__namespace.createElement("div",{key:ve,className:classNames(`${ne}-steps-item`,{[`${ne}-steps-item-active`]:ve<=ae-1}),style:{backgroundColor:ve<=ae-1?fe:te,width:de,height:ce}})}return React__namespace.createElement("div",{className:`${ne}-steps-outer`},le,re)},Steps$4=Steps$3;var __rest$c=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const ProgressStatuses=["normal","exception","active","success"],Progress=React__namespace.forwardRef((C,$)=>{const{prefixCls:V,className:F,rootClassName:K,steps:J,strokeColor:ee,percent:te=0,size:ne="default",showInfo:re=!0,type:ae="line",status:oe,format:ie,style:se,percentPosition:ce={}}=C,de=__rest$c(C,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:le="end",type:ve="outer"}=ce,fe=Array.isArray(ee)?ee[0]:ee,he=typeof ee=="string"||Array.isArray(ee)?ee:void 0,me=React__namespace.useMemo(()=>{if(fe){const De=typeof fe=="string"?fe:Object.values(fe)[0];return new FastColor(De).isLight()}return!1},[ee]),ue=React__namespace.useMemo(()=>{var De,Oe;const we=getSuccessPercent(C);return parseInt(we!==void 0?(De=we!=null?we:0)===null||De===void 0?void 0:De.toString():(Oe=te!=null?te:0)===null||Oe===void 0?void 0:Oe.toString(),10)},[te,C.success,C.successPercent]),pe=React__namespace.useMemo(()=>!ProgressStatuses.includes(oe)&&ue>=100?"success":oe||"normal",[oe,ue]),{getPrefixCls:ye,direction:be,progress:ge}=React__namespace.useContext(ConfigContext),_e=ye("progress",V),[Se,Ee,Ce]=useStyle$7(_e),xe=ae==="line",$e=xe&&!J,Ie=React__namespace.useMemo(()=>{if(!re)return null;const De=getSuccessPercent(C);let Oe;const we=ie||(ke=>`${ke}%`),Ae=xe&&me&&ve==="inner";return ve==="inner"||ie||pe!=="exception"&&pe!=="success"?Oe=we(validProgress(te),validProgress(De)):pe==="exception"?Oe=xe?React__namespace.createElement(CloseCircleFilled$1,null):React__namespace.createElement(CloseOutlined$1,null):pe==="success"&&(Oe=xe?React__namespace.createElement(CheckCircleFilled$1,null):React__namespace.createElement(CheckOutlined$1,null)),React__namespace.createElement("span",{className:classNames(`${_e}-text`,{[`${_e}-text-bright`]:Ae,[`${_e}-text-${le}`]:$e,[`${_e}-text-${ve}`]:$e}),title:typeof Oe=="string"?Oe:void 0},Oe)},[re,te,ue,pe,ae,_e,ie]);if(process.env.NODE_ENV!=="production"){const De=devUseWarning("Progress");De.deprecated(!("successPercent"in C),"successPercent","success.percent"),De.deprecated(!("width"in C),"width","size"),(ae==="circle"||ae==="dashboard")&&(Array.isArray(ne)?process.env.NODE_ENV!=="production"&&De(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof ne=="object"&&process.env.NODE_ENV!=="production"&&De(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),C.success&&"progress"in C.success&&De.deprecated(!1,"success.progress","success.percent")}let Fe;ae==="line"?Fe=J?React__namespace.createElement(Steps$4,Object.assign({},C,{strokeColor:he,prefixCls:_e,steps:typeof J=="object"?J.count:J}),Ie):React__namespace.createElement(Line$1,Object.assign({},C,{strokeColor:fe,prefixCls:_e,direction:be,percentPosition:{align:le,type:ve}}),Ie):(ae==="circle"||ae==="dashboard")&&(Fe=React__namespace.createElement(Circle$1,Object.assign({},C,{strokeColor:fe,prefixCls:_e,progressStatus:pe}),Ie));const Ne=classNames(_e,`${_e}-status-${pe}`,{[`${_e}-${ae==="dashboard"&&"circle"||ae}`]:ae!=="line",[`${_e}-inline-circle`]:ae==="circle"&&getSize(ne,"circle")[0]<=20,[`${_e}-line`]:$e,[`${_e}-line-align-${le}`]:$e,[`${_e}-line-position-${ve}`]:$e,[`${_e}-steps`]:J,[`${_e}-show-info`]:re,[`${_e}-${ne}`]:typeof ne=="string",[`${_e}-rtl`]:be==="rtl"},ge==null?void 0:ge.className,F,K,Ee,Ce);return Se(React__namespace.createElement("div",Object.assign({ref:$,style:Object.assign(Object.assign({},ge==null?void 0:ge.style),se),className:Ne,role:"progressbar","aria-valuenow":ue,"aria-valuemin":0,"aria-valuemax":100},omit(de,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Fe))});process.env.NODE_ENV!=="production"&&(Progress.displayName="Progress");const Progress$1=Progress;var AlertFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"};const AlertFilledSvg=AlertFilled$2;var AlertFilled=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:AlertFilledSvg}))},RefIcon$G=React__namespace.forwardRef(AlertFilled);process.env.NODE_ENV!=="production"&&(RefIcon$G.displayName="AlertFilled");const AlertFilled$1=RefIcon$G;var BellOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};const BellOutlinedSvg=BellOutlined$2;var BellOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:BellOutlinedSvg}))},RefIcon$F=React__namespace.forwardRef(BellOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$F.displayName="BellOutlined");const BellOutlined$1=RefIcon$F;var BulbTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 136c-141.4 0-256 114.6-256 256 0 92.5 49.4 176.3 128.1 221.8l35.9 20.8V752h184V634.6l35.9-20.8C718.6 568.3 768 484.5 768 392c0-141.4-114.6-256-256-256z",fill:V}},{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z",fill:$}}]}},name:"bulb",theme:"twotone"};const BulbTwoToneSvg=BulbTwoTone$2;var BulbTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:BulbTwoToneSvg}))},RefIcon$E=React__namespace.forwardRef(BulbTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$E.displayName="BulbTwoTone");const BulbTwoTone$1=RefIcon$E;var CaretDownFilled$2={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"};const CaretDownFilledSvg=CaretDownFilled$2;var CaretDownFilled=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CaretDownFilledSvg}))},RefIcon$D=React__namespace.forwardRef(CaretDownFilled);process.env.NODE_ENV!=="production"&&(RefIcon$D.displayName="CaretDownFilled");const CaretDownFilled$1=RefIcon$D;var CaretDownOutlined$2={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:"outlined"};const CaretDownOutlinedSvg=CaretDownOutlined$2;var CaretDownOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CaretDownOutlinedSvg}))},RefIcon$C=React__namespace.forwardRef(CaretDownOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$C.displayName="CaretDownOutlined");const CaretDownOutlined$1=RefIcon$C;var CaretUpOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const CaretUpOutlinedSvg=CaretUpOutlined$2;var CaretUpOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CaretUpOutlinedSvg}))},RefIcon$B=React__namespace.forwardRef(CaretUpOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$B.displayName="CaretUpOutlined");const CaretUpOutlined$1=RefIcon$B;var CheckCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const CheckCircleOutlinedSvg=CheckCircleOutlined$2;var CheckCircleOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CheckCircleOutlinedSvg}))},RefIcon$A=React__namespace.forwardRef(CheckCircleOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$A.displayName="CheckCircleOutlined");const CheckCircleOutlined$1=RefIcon$A;var CheckCircleTwoTone$2={icon:function($,V){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:$}},{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:V}},{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:$}}]}},name:"check-circle",theme:"twotone"};const CheckCircleTwoToneSvg=CheckCircleTwoTone$2;var CheckCircleTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CheckCircleTwoToneSvg}))},RefIcon$z=React__namespace.forwardRef(CheckCircleTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$z.displayName="CheckCircleTwoTone");const CheckCircleTwoTone$1=RefIcon$z;var ClockCircleTwoTone$2={icon:function($,V){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:$}},{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-372zm176.5 509.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z",fill:V}},{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.3c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.6-3.6 1.8-8.6-1.8-11.1z",fill:$}}]}},name:"clock-circle",theme:"twotone"};const ClockCircleTwoToneSvg=ClockCircleTwoTone$2;var ClockCircleTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:ClockCircleTwoToneSvg}))},RefIcon$y=React__namespace.forwardRef(ClockCircleTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$y.displayName="ClockCircleTwoTone");const ClockCircleTwoTone$1=RefIcon$y;var CloseCircleOutlined$2={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};const CloseCircleOutlinedSvg=CloseCircleOutlined$2;var CloseCircleOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CloseCircleOutlinedSvg}))},RefIcon$x=React__namespace.forwardRef(CloseCircleOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$x.displayName="CloseCircleOutlined");const CloseCircleOutlined$1=RefIcon$x;var CopyOutlined$2={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"};const CopyOutlinedSvg=CopyOutlined$2;var CopyOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CopyOutlinedSvg}))},RefIcon$w=React__namespace.forwardRef(CopyOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$w.displayName="CopyOutlined");const CopyOutlined$1=RefIcon$w;var DeleteOutlined$2={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"};const DeleteOutlinedSvg=DeleteOutlined$2;var DeleteOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:DeleteOutlinedSvg}))},RefIcon$v=React__namespace.forwardRef(DeleteOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$v.displayName="DeleteOutlined");const DeleteOutlined$1=RefIcon$v;var DownloadOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const DownloadOutlinedSvg=DownloadOutlined$2;var DownloadOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:DownloadOutlinedSvg}))},RefIcon$u=React__namespace.forwardRef(DownloadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$u.displayName="DownloadOutlined");const DownloadOutlined$1=RefIcon$u;var EditOutlined$2={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"};const EditOutlinedSvg=EditOutlined$2;var EditOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:EditOutlinedSvg}))},RefIcon$t=React__namespace.forwardRef(EditOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$t.displayName="EditOutlined");const EditOutlined$1=RefIcon$t;var EditTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:V}},{tag:"path",attrs:{d:"M880 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-32zm-622.3-84c2 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-89z",fill:$}}]}},name:"edit",theme:"twotone"};const EditTwoToneSvg=EditTwoTone$2;var EditTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:EditTwoToneSvg}))},RefIcon$s=React__namespace.forwardRef(EditTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$s.displayName="EditTwoTone");const EditTwoTone$1=RefIcon$s;var EnterOutlined$2={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"};const EnterOutlinedSvg=EnterOutlined$2;var EnterOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:EnterOutlinedSvg}))},RefIcon$r=React__namespace.forwardRef(EnterOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$r.displayName="EnterOutlined");const EnterOutlined$1=RefIcon$r;var ExclamationCircleOutlined$2={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 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.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 8z"}}]},name:"exclamation-circle",theme:"outlined"};const ExclamationCircleOutlinedSvg=ExclamationCircleOutlined$2;var ExclamationCircleOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:ExclamationCircleOutlinedSvg}))},RefIcon$q=React__namespace.forwardRef(ExclamationCircleOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$q.displayName="ExclamationCircleOutlined");const ExclamationCircleOutlined$1=RefIcon$q;var ExclamationCircleTwoTone$2={icon:function($,V){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:$}},{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:V}},{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:$}}]}},name:"exclamation-circle",theme:"twotone"};const ExclamationCircleTwoToneSvg=ExclamationCircleTwoTone$2;var ExclamationCircleTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:ExclamationCircleTwoToneSvg}))},RefIcon$p=React__namespace.forwardRef(ExclamationCircleTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$p.displayName="ExclamationCircleTwoTone");const ExclamationCircleTwoTone$1=RefIcon$p;var FileOutlined$2={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"};const FileOutlinedSvg=FileOutlined$2;var FileOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FileOutlinedSvg}))},RefIcon$o=React__namespace.forwardRef(FileOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$o.displayName="FileOutlined");const FileOutlined$1=RefIcon$o;var FileTextTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm-22 322c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm200-184v48c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8z",fill:V}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:$}},{tag:"path",attrs:{d:"M312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8zm192 128H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z",fill:$}}]}},name:"file-text",theme:"twotone"};const FileTextTwoToneSvg=FileTextTwoTone$2;var FileTextTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FileTextTwoToneSvg}))},RefIcon$n=React__namespace.forwardRef(FileTextTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$n.displayName="FileTextTwoTone");const FileTextTwoTone$1=RefIcon$n;var FileTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:V}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:$}}]}},name:"file",theme:"twotone"};const FileTwoToneSvg=FileTwoTone$2;var FileTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FileTwoToneSvg}))},RefIcon$m=React__namespace.forwardRef(FileTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$m.displayName="FileTwoTone");const FileTwoTone$1=RefIcon$m;var FilterFilled$2={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"};const FilterFilledSvg=FilterFilled$2;var FilterFilled=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FilterFilledSvg}))},RefIcon$l=React__namespace.forwardRef(FilterFilled);process.env.NODE_ENV!=="production"&&(RefIcon$l.displayName="FilterFilled");const FilterFilled$1=RefIcon$l;var FilterOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};const FilterOutlinedSvg=FilterOutlined$2;var FilterOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FilterOutlinedSvg}))},RefIcon$k=React__namespace.forwardRef(FilterOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$k.displayName="FilterOutlined");const FilterOutlined$1=RefIcon$k;var FolderOpenOutlined$2={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"};const FolderOpenOutlinedSvg=FolderOpenOutlined$2;var FolderOpenOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FolderOpenOutlinedSvg}))},RefIcon$j=React__namespace.forwardRef(FolderOpenOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$j.displayName="FolderOpenOutlined");const FolderOpenOutlined$1=RefIcon$j;var FolderOutlined$2={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"};const FolderOutlinedSvg=FolderOutlined$2;var FolderOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FolderOutlinedSvg}))},RefIcon$i=React__namespace.forwardRef(FolderOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$i.displayName="FolderOutlined");const FolderOutlined$1=RefIcon$i;var HolderOutlined$2={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"};const HolderOutlinedSvg=HolderOutlined$2;var HolderOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:HolderOutlinedSvg}))},RefIcon$h=React__namespace.forwardRef(HolderOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$h.displayName="HolderOutlined");const HolderOutlined$1=RefIcon$h;var InfoCircleTwoTone$2={icon:function($,V){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:$}},{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-372zm32 588c0 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",fill:V}},{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",fill:$}}]}},name:"info-circle",theme:"twotone"};const InfoCircleTwoToneSvg=InfoCircleTwoTone$2;var InfoCircleTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:InfoCircleTwoToneSvg}))},RefIcon$g=React__namespace.forwardRef(InfoCircleTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$g.displayName="InfoCircleTwoTone");const InfoCircleTwoTone$1=RefIcon$g;var LinkOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};const LinkOutlinedSvg=LinkOutlined$2;var LinkOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:LinkOutlinedSvg}))},RefIcon$f=React__namespace.forwardRef(LinkOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$f.displayName="LinkOutlined");const LinkOutlined$1=RefIcon$f;var MailTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M477.5 536.3L135.9 270.7l-27.5-21.4 27.6 21.5V792h752V270.8L546.2 536.3a55.99 55.99 0 01-68.7 0z",fill:V}},{tag:"path",attrs:{d:"M876.3 198.8l39.3 50.5-27.6 21.5 27.7-21.5-39.3-50.5z",fill:V}},{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-94.5 72.1L512 482 190.5 232.1h643zm54.5 38.7V792H136V270.8l-27.6-21.5 27.5 21.4 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5h.1l39.3 50.5-27.7 21.5z",fill:$}}]}},name:"mail",theme:"twotone"};const MailTwoToneSvg=MailTwoTone$2;var MailTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:MailTwoToneSvg}))},RefIcon$e=React__namespace.forwardRef(MailTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$e.displayName="MailTwoTone");const MailTwoTone$1=RefIcon$e;var MinusSquareOutlined$2={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"};const MinusSquareOutlinedSvg=MinusSquareOutlined$2;var MinusSquareOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:MinusSquareOutlinedSvg}))},RefIcon$d=React__namespace.forwardRef(MinusSquareOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$d.displayName="MinusSquareOutlined");const MinusSquareOutlined$1=RefIcon$d;var PaperClipOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const PaperClipOutlinedSvg=PaperClipOutlined$2;var PaperClipOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:PaperClipOutlinedSvg}))},RefIcon$c=React__namespace.forwardRef(PaperClipOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$c.displayName="PaperClipOutlined");const PaperClipOutlined$1=RefIcon$c;var PhoneOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z"}}]},name:"phone",theme:"outlined"};const PhoneOutlinedSvg=PhoneOutlined$2;var PhoneOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:PhoneOutlinedSvg}))},RefIcon$b=React__namespace.forwardRef(PhoneOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$b.displayName="PhoneOutlined");const PhoneOutlined$1=RefIcon$b;var PictureTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:$}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:V}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:V}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:V}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:$}}]}},name:"picture",theme:"twotone"};const PictureTwoToneSvg=PictureTwoTone$2;var PictureTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:PictureTwoToneSvg}))},RefIcon$a=React__namespace.forwardRef(PictureTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$a.displayName="PictureTwoTone");const PictureTwoTone$1=RefIcon$a;var PlusSquareOutlined$2={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"};const PlusSquareOutlinedSvg=PlusSquareOutlined$2;var PlusSquareOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:PlusSquareOutlinedSvg}))},RefIcon$9=React__namespace.forwardRef(PlusSquareOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$9.displayName="PlusSquareOutlined");const PlusSquareOutlined$1=RefIcon$9;var RiseOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z"}}]},name:"rise",theme:"outlined"};const RiseOutlinedSvg=RiseOutlined$2;var RiseOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:RiseOutlinedSvg}))},RefIcon$8=React__namespace.forwardRef(RiseOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$8.displayName="RiseOutlined");const RiseOutlined$1=RefIcon$8;var RocketOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};const RocketOutlinedSvg=RocketOutlined$2;var RocketOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:RocketOutlinedSvg}))},RefIcon$7=React__namespace.forwardRef(RocketOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$7.displayName="RocketOutlined");const RocketOutlined$1=RefIcon$7;var SaveOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const SaveOutlinedSvg=SaveOutlined$2;var SaveOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:SaveOutlinedSvg}))},RefIcon$6=React__namespace.forwardRef(SaveOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$6.displayName="SaveOutlined");const SaveOutlined$1=RefIcon$6;var SaveTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z",fill:V}},{tag:"path",attrs:{d:"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z",fill:$}},{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 00-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z",fill:$}}]}},name:"save",theme:"twotone"};const SaveTwoToneSvg=SaveTwoTone$2;var SaveTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:SaveTwoToneSvg}))},RefIcon$5=React__namespace.forwardRef(SaveTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$5.displayName="SaveTwoTone");const SaveTwoTone$1=RefIcon$5;var StarOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"};const StarOutlinedSvg=StarOutlined$2;var StarOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:StarOutlinedSvg}))},RefIcon$4=React__namespace.forwardRef(StarOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$4.displayName="StarOutlined");const StarOutlined$1=RefIcon$4;var StarTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:V}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:$}}]}},name:"star",theme:"twotone"};const StarTwoToneSvg=StarTwoTone$2;var StarTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:StarTwoToneSvg}))},RefIcon$3=React__namespace.forwardRef(StarTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$3.displayName="StarTwoTone");const StarTwoTone$1=RefIcon$3;var UnlockOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"};const UnlockOutlinedSvg=UnlockOutlined$2;var UnlockOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:UnlockOutlinedSvg}))},RefIcon$2=React__namespace.forwardRef(UnlockOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$2.displayName="UnlockOutlined");const UnlockOutlined$1=RefIcon$2;var UserOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const UserOutlinedSvg=UserOutlined$2;var UserOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:UserOutlinedSvg}))},RefIcon$1=React__namespace.forwardRef(UserOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$1.displayName="UserOutlined");const UserOutlined$1=RefIcon$1;var WarningFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const WarningFilledSvg=WarningFilled$2;var WarningFilled=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:WarningFilledSvg}))},RefIcon=React__namespace.forwardRef(WarningFilled);process.env.NODE_ENV!=="production"&&(RefIcon.displayName="WarningFilled");const WarningFilled$1=RefIcon;var _excluded$d=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function isString$1(C){return typeof C=="string"}function Step(C){var $,V=C.className,F=C.prefixCls,K=C.style,J=C.active,ee=C.status,te=C.iconPrefix,ne=C.icon;C.wrapperStyle;var re=C.stepNumber,ae=C.disabled,oe=C.description,ie=C.title,se=C.subTitle,ce=C.progressDot,de=C.stepIcon,le=C.tailContent,ve=C.icons,fe=C.stepIndex,he=C.onStepClick,me=C.onClick,ue=C.render,pe=_objectWithoutProperties(C,_excluded$d),ye=!!he&&!ae,be={};ye&&(be.role="button",be.tabIndex=0,be.onClick=function(xe){me==null||me(xe),he(fe)},be.onKeyDown=function(xe){var $e=xe.which;($e===KeyCode.ENTER||$e===KeyCode.SPACE)&&he(fe)});var ge=function(){var $e,Ie,Fe=classNames("".concat(F,"-icon"),"".concat(te,"icon"),($e={},_defineProperty($e,"".concat(te,"icon-").concat(ne),ne&&isString$1(ne)),_defineProperty($e,"".concat(te,"icon-check"),!ne&&ee==="finish"&&(ve&&!ve.finish||!ve)),_defineProperty($e,"".concat(te,"icon-cross"),!ne&&ee==="error"&&(ve&&!ve.error||!ve)),$e)),Ne=React__namespace.createElement("span",{className:"".concat(F,"-icon-dot")});return ce?typeof ce=="function"?Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},ce(Ne,{index:re-1,status:ee,title:ie,description:oe})):Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},Ne):ne&&!isString$1(ne)?Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},ne):ve&&ve.finish&&ee==="finish"?Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},ve.finish):ve&&ve.error&&ee==="error"?Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},ve.error):ne||ee==="finish"||ee==="error"?Ie=React__namespace.createElement("span",{className:Fe}):Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},re),de&&(Ie=de({index:re-1,status:ee,title:ie,description:oe,node:Ie})),Ie},_e=ee||"wait",Se=classNames("".concat(F,"-item"),"".concat(F,"-item-").concat(_e),V,($={},_defineProperty($,"".concat(F,"-item-custom"),ne),_defineProperty($,"".concat(F,"-item-active"),J),_defineProperty($,"".concat(F,"-item-disabled"),ae===!0),$)),Ee=_objectSpread2({},K),Ce=React__namespace.createElement("div",_extends({},pe,{className:Se,style:Ee}),React__namespace.createElement("div",_extends({onClick:me},be,{className:"".concat(F,"-item-container")}),React__namespace.createElement("div",{className:"".concat(F,"-item-tail")},le),React__namespace.createElement("div",{className:"".concat(F,"-item-icon")},ge()),React__namespace.createElement("div",{className:"".concat(F,"-item-content")},React__namespace.createElement("div",{className:"".concat(F,"-item-title")},ie,se&&React__namespace.createElement("div",{title:typeof se=="string"?se:void 0,className:"".concat(F,"-item-subtitle")},se)),oe&&React__namespace.createElement("div",{className:"".concat(F,"-item-description")},oe))));return ue&&(Ce=ue(Ce)||null),Ce}var _excluded$c=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function Steps$2(C){var $,V=C.prefixCls,F=V===void 0?"rc-steps":V,K=C.style,J=K===void 0?{}:K,ee=C.className;C.children;var te=C.direction,ne=te===void 0?"horizontal":te,re=C.type,ae=re===void 0?"default":re,oe=C.labelPlacement,ie=oe===void 0?"horizontal":oe,se=C.iconPrefix,ce=se===void 0?"rc":se,de=C.status,le=de===void 0?"process":de,ve=C.size,fe=C.current,he=fe===void 0?0:fe,me=C.progressDot,ue=me===void 0?!1:me,pe=C.stepIcon,ye=C.initial,be=ye===void 0?0:ye,ge=C.icons,_e=C.onChange,Se=C.itemRender,Ee=C.items,Ce=Ee===void 0?[]:Ee,xe=_objectWithoutProperties(C,_excluded$c),$e=ae==="navigation",Ie=ae==="inline",Fe=Ie||ue,Ne=Ie?"horizontal":ne,De=Ie?void 0:ve,Oe=Fe?"vertical":ie,we=classNames(F,"".concat(F,"-").concat(Ne),ee,($={},_defineProperty($,"".concat(F,"-").concat(De),De),_defineProperty($,"".concat(F,"-label-").concat(Oe),Ne==="horizontal"),_defineProperty($,"".concat(F,"-dot"),!!Fe),_defineProperty($,"".concat(F,"-navigation"),$e),_defineProperty($,"".concat(F,"-inline"),Ie),$)),Ae=function(ze){_e&&he!==ze&&_e(ze)},ke=function(ze,Ve){var Xe=_objectSpread2({},ze),Ye=be+Ve;return le==="error"&&Ve===he-1&&(Xe.className="".concat(F,"-next-error")),Xe.status||(Ye===he?Xe.status=le:Ye<he?Xe.status="finish":Xe.status="wait"),Ie&&(Xe.icon=void 0,Xe.subTitle=void 0),!Xe.render&&Se&&(Xe.render=function(at){return Se(Xe,at)}),React.createElement(Step,_extends({},Xe,{active:Ye===he,stepNumber:Ye+1,stepIndex:Ye,key:Ye,prefixCls:F,iconPrefix:ce,wrapperStyle:J,progressDot:Fe,stepIcon:pe,icons:ge,onStepClick:_e&&Ae}))};return React.createElement("div",_extends({className:we,style:J},xe),Ce.filter(function(je){return je}).map(ke))}Steps$2.Step=Step;const genStepsCustomIconStyle=C=>{const{componentCls:$,customIconTop:V,customIconSize:F,customIconFontSize:K}=C;return{[`${$}-item-custom`]:{[`> ${$}-item-container > ${$}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${$}-icon`]:{top:V,width:F,height:F,fontSize:K,lineHeight:unit$1(F)}}},[`&:not(${$}-vertical)`]:{[`${$}-item-custom`]:{[`${$}-item-icon`]:{width:"auto",background:"none"}}}}},genStepsCustomIconStyle$1=genStepsCustomIconStyle,genHorizontalStyle=C=>{const{componentCls:$}=C,V=`${$}-item`;return{[`${$}-horizontal`]:{[`${V}-tail`]:{transform:"translateY(-50%)"}}}},genStepsHorizontalStyle=genHorizontalStyle,genStepsInlineStyle=C=>{const{componentCls:$,inlineDotSize:V,inlineTitleColor:F,inlineTailColor:K}=C,J=C.calc(C.paddingXS).add(C.lineWidth).equal(),ee={[`${$}-item-container ${$}-item-content ${$}-item-title`]:{color:F}};return{[`&${$}-inline`]:{width:"auto",display:"inline-flex",[`${$}-item`]:{flex:"none","&-container":{padding:`${unit$1(J)} ${unit$1(C.paddingXXS)} 0`,margin:`0 ${unit$1(C.calc(C.marginXXS).div(2).equal())}`,borderRadius:C.borderRadiusSM,cursor:"pointer",transition:`background-color ${C.motionDurationMid}`,"&:hover":{background:C.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:V,height:V,marginInlineStart:`calc(50% - ${unit$1(C.calc(V).div(2).equal())})`,[`> ${$}-icon`]:{top:0},[`${$}-icon-dot`]:{borderRadius:C.calc(C.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:C.calc(C.marginXS).sub(C.lineWidth).equal()},"&-title":{color:F,fontSize:C.fontSizeSM,lineHeight:C.lineHeightSM,fontWeight:"normal",marginBottom:C.calc(C.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:C.calc(V).div(2).add(J).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:C.lineWidth,borderRadius:0,marginInlineStart:0,background:K}},[`&:first-child ${$}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${$}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${$}-item-icon ${$}-icon ${$}-icon-dot`]:{backgroundColor:C.colorBorderBg,border:`${unit$1(C.lineWidth)} ${C.lineType} ${K}`}},ee),"&-finish":Object.assign({[`${$}-item-tail::after`]:{backgroundColor:K},[`${$}-item-icon ${$}-icon ${$}-icon-dot`]:{backgroundColor:K,border:`${unit$1(C.lineWidth)} ${C.lineType} ${K}`}},ee),"&-error":ee,"&-active, &-process":Object.assign({[`${$}-item-icon`]:{width:V,height:V,marginInlineStart:`calc(50% - ${unit$1(C.calc(V).div(2).equal())})`,top:0}},ee),[`&:not(${$}-item-active) > ${$}-item-container[role='button']:hover`]:{[`${$}-item-title`]:{color:F}}}}}},genStepsInlineStyle$1=genStepsInlineStyle,genStepsLabelPlacementStyle=C=>{const{componentCls:$,iconSize:V,lineHeight:F,iconSizeSM:K}=C;return{[`&${$}-label-vertical`]:{[`${$}-item`]:{overflow:"visible","&-tail":{marginInlineStart:C.calc(V).div(2).add(C.controlHeightLG).equal(),padding:`0 ${unit$1(C.paddingLG)}`},"&-content":{display:"block",width:C.calc(V).div(2).add(C.controlHeightLG).mul(2).equal(),marginTop:C.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:C.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:C.marginXXS,marginInlineStart:0,lineHeight:F}},[`&${$}-small:not(${$}-dot)`]:{[`${$}-item`]:{"&-icon":{marginInlineStart:C.calc(V).sub(K).div(2).add(C.controlHeightLG).equal()}}}}}},genStepsLabelPlacementStyle$1=genStepsLabelPlacementStyle,genStepsNavStyle=C=>{const{componentCls:$,navContentMaxWidth:V,navArrowColor:F,stepsNavActiveColor:K,motionDurationSlow:J}=C;return{[`&${$}-navigation`]:{paddingTop:C.paddingSM,[`&${$}-small`]:{[`${$}-item`]:{"&-container":{marginInlineStart:C.calc(C.marginSM).mul(-1).equal()}}},[`${$}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:C.calc(C.margin).mul(-1).equal(),paddingBottom:C.paddingSM,textAlign:"start",transition:`opacity ${J}`,[`${$}-item-content`]:{maxWidth:V},[`${$}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},textEllipsis),{"&::after":{display:"none"}})},[`&:not(${$}-item-active)`]:{[`${$}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${unit$1(C.calc(C.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:C.fontSizeIcon,height:C.fontSizeIcon,borderTop:`${unit$1(C.lineWidth)} ${C.lineType} ${F}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${unit$1(C.lineWidth)} ${C.lineType} ${F}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:C.lineWidthBold,backgroundColor:K,transition:`width ${J}, inset-inline-start ${J}`,transitionTimingFunction:"ease-out",content:'""'}},[`${$}-item${$}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${$}-navigation${$}-vertical`]:{[`> ${$}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${$}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:C.calc(C.lineWidth).mul(3).equal(),height:`calc(100% - ${unit$1(C.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:C.calc(C.controlHeight).mul(.25).equal(),height:C.calc(C.controlHeight).mul(.25).equal(),marginBottom:C.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${$}-item-container > ${$}-item-tail`]:{visibility:"hidden"}}},[`&${$}-navigation${$}-horizontal`]:{[`> ${$}-item > ${$}-item-container > ${$}-item-tail`]:{visibility:"hidden"}}}},genStepsNavStyle$1=genStepsNavStyle,genStepsProgressStyle=C=>{const{antCls:$,componentCls:V,iconSize:F,iconSizeSM:K,processIconColor:J,marginXXS:ee,lineWidthBold:te,lineWidth:ne,paddingXXS:re}=C,ae=C.calc(F).add(C.calc(te).mul(4).equal()).equal(),oe=C.calc(K).add(C.calc(C.lineWidth).mul(4).equal()).equal();return{[`&${V}-with-progress`]:{[`${V}-item`]:{paddingTop:re,[`&-process ${V}-item-container ${V}-item-icon ${V}-icon`]:{color:J}},[`&${V}-vertical > ${V}-item `]:{paddingInlineStart:re,[`> ${V}-item-container > ${V}-item-tail`]:{top:ee,insetInlineStart:C.calc(F).div(2).sub(ne).add(re).equal()}},[`&, &${V}-small`]:{[`&${V}-horizontal ${V}-item:first-child`]:{paddingBottom:re,paddingInlineStart:re}},[`&${V}-small${V}-vertical > ${V}-item > ${V}-item-container > ${V}-item-tail`]:{insetInlineStart:C.calc(K).div(2).sub(ne).add(re).equal()},[`&${V}-label-vertical ${V}-item ${V}-item-tail`]:{top:C.calc(F).div(2).add(re).equal()},[`${V}-item-icon`]:{position:"relative",[`${$}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${unit$1(ae)} !important`,height:`${unit$1(ae)} !important`}}},[`&${V}-small`]:{[`&${V}-label-vertical ${V}-item ${V}-item-tail`]:{top:C.calc(K).div(2).add(re).equal()},[`${V}-item-icon ${$}-progress-inner`]:{width:`${unit$1(oe)} !important`,height:`${unit$1(oe)} !important`}}}}},genStepsProgressStyle$1=genStepsProgressStyle,genStepsProgressDotStyle=C=>{const{componentCls:$,descriptionMaxWidth:V,lineHeight:F,dotCurrentSize:K,dotSize:J,motionDurationSlow:ee}=C;return{[`&${$}-dot, &${$}-dot${$}-small`]:{[`${$}-item`]:{"&-title":{lineHeight:F},"&-tail":{top:C.calc(C.dotSize).sub(C.calc(C.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${unit$1(C.calc(V).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${unit$1(C.calc(C.marginSM).mul(2).equal())})`,height:C.calc(C.lineWidth).mul(3).equal(),marginInlineStart:C.marginSM}},"&-icon":{width:J,height:J,marginInlineStart:C.calc(C.descriptionMaxWidth).sub(J).div(2).equal(),paddingInlineEnd:0,lineHeight:unit$1(J),background:"transparent",border:0,[`${$}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${ee}`,"&::after":{position:"absolute",top:C.calc(C.marginSM).mul(-1).equal(),insetInlineStart:C.calc(J).sub(C.calc(C.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:C.calc(C.controlHeightLG).mul(1.5).equal(),height:C.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:V},[`&-process ${$}-item-icon`]:{position:"relative",top:C.calc(J).sub(K).div(2).equal(),width:K,height:K,lineHeight:unit$1(K),background:"none",marginInlineStart:C.calc(C.descriptionMaxWidth).sub(K).div(2).equal()},[`&-process ${$}-icon`]:{[`&:first-child ${$}-icon-dot`]:{insetInlineStart:0}}}},[`&${$}-vertical${$}-dot`]:{[`${$}-item-icon`]:{marginTop:C.calc(C.controlHeight).sub(J).div(2).equal(),marginInlineStart:0,background:"none"},[`${$}-item-process ${$}-item-icon`]:{marginTop:C.calc(C.controlHeight).sub(K).div(2).equal(),top:0,insetInlineStart:C.calc(J).sub(K).div(2).equal(),marginInlineStart:0},[`${$}-item > ${$}-item-container > ${$}-item-tail`]:{top:C.calc(C.controlHeight).sub(J).div(2).equal(),insetInlineStart:0,margin:0,padding:`${unit$1(C.calc(J).add(C.paddingXS).equal())} 0 ${unit$1(C.paddingXS)}`,"&::after":{marginInlineStart:C.calc(J).sub(C.lineWidth).div(2).equal()}},[`&${$}-small`]:{[`${$}-item-icon`]:{marginTop:C.calc(C.controlHeightSM).sub(J).div(2).equal()},[`${$}-item-process ${$}-item-icon`]:{marginTop:C.calc(C.controlHeightSM).sub(K).div(2).equal()},[`${$}-item > ${$}-item-container > ${$}-item-tail`]:{top:C.calc(C.controlHeightSM).sub(J).div(2).equal()}},[`${$}-item:first-child ${$}-icon-dot`]:{insetInlineStart:0},[`${$}-item-content`]:{width:"inherit"}}}},genStepsProgressDotStyle$1=genStepsProgressDotStyle,genStepsRTLStyle=C=>{const{componentCls:$}=C;return{[`&${$}-rtl`]:{direction:"rtl",[`${$}-item`]:{"&-subtitle":{float:"left"}},[`&${$}-navigation`]:{[`${$}-item::after`]:{transform:"rotate(-45deg)"}},[`&${$}-vertical`]:{[`> ${$}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${$}-item-icon`]:{float:"right"}}},[`&${$}-dot`]:{[`${$}-item-icon ${$}-icon-dot, &${$}-small ${$}-item-icon ${$}-icon-dot`]:{float:"right"}}}}},genStepsRTLStyle$1=genStepsRTLStyle,genStepsSmallStyle=C=>{const{componentCls:$,iconSizeSM:V,fontSizeSM:F,fontSize:K,colorTextDescription:J}=C;return{[`&${$}-small`]:{[`&${$}-horizontal:not(${$}-label-vertical) ${$}-item`]:{paddingInlineStart:C.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${$}-item-icon`]:{width:V,height:V,marginTop:0,marginBottom:0,marginInline:`0 ${unit$1(C.marginXS)}`,fontSize:F,lineHeight:unit$1(V),textAlign:"center",borderRadius:V},[`${$}-item-title`]:{paddingInlineEnd:C.paddingSM,fontSize:K,lineHeight:unit$1(V),"&::after":{top:C.calc(V).div(2).equal()}},[`${$}-item-description`]:{color:J,fontSize:K},[`${$}-item-tail`]:{top:C.calc(V).div(2).sub(C.paddingXXS).equal()},[`${$}-item-custom ${$}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${$}-icon`]:{fontSize:V,lineHeight:unit$1(V),transform:"none"}}}}},genStepsSmallStyle$1=genStepsSmallStyle,genStepsVerticalStyle=C=>{const{componentCls:$,iconSizeSM:V,iconSize:F}=C;return{[`&${$}-vertical`]:{display:"flex",flexDirection:"column",[`> ${$}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${$}-item-icon`]:{float:"left",marginInlineEnd:C.margin},[`${$}-item-content`]:{display:"block",minHeight:C.calc(C.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${$}-item-title`]:{lineHeight:unit$1(F)},[`${$}-item-description`]:{paddingBottom:C.paddingSM}},[`> ${$}-item > ${$}-item-container > ${$}-item-tail`]:{position:"absolute",top:0,insetInlineStart:C.calc(F).div(2).sub(C.lineWidth).equal(),width:C.lineWidth,height:"100%",padding:`${unit$1(C.calc(C.marginXXS).mul(1.5).add(F).equal())} 0 ${unit$1(C.calc(C.marginXXS).mul(1.5).equal())}`,"&::after":{width:C.lineWidth,height:"100%"}},[`> ${$}-item:not(:last-child) > ${$}-item-container > ${$}-item-tail`]:{display:"block"},[` > ${$}-item > ${$}-item-container > ${$}-item-content > ${$}-item-title`]:{"&::after":{display:"none"}},[`&${$}-small ${$}-item-container`]:{[`${$}-item-tail`]:{position:"absolute",top:0,insetInlineStart:C.calc(V).div(2).sub(C.lineWidth).equal(),padding:`${unit$1(C.calc(C.marginXXS).mul(1.5).add(V).equal())} 0 ${unit$1(C.calc(C.marginXXS).mul(1.5).equal())}`},[`${$}-item-title`]:{lineHeight:unit$1(V)}}}}},genStepsVerticalStyle$1=genStepsVerticalStyle,STEP_ITEM_STATUS_WAIT="wait",STEP_ITEM_STATUS_PROCESS="process",STEP_ITEM_STATUS_FINISH="finish",STEP_ITEM_STATUS_ERROR="error",genStepsItemStatusStyle=(C,$)=>{const V=`${$.componentCls}-item`,F=`${C}IconColor`,K=`${C}TitleColor`,J=`${C}DescriptionColor`,ee=`${C}TailColor`,te=`${C}IconBgColor`,ne=`${C}IconBorderColor`,re=`${C}DotColor`;return{[`${V}-${C} ${V}-icon`]:{backgroundColor:$[te],borderColor:$[ne],[`> ${$.componentCls}-icon`]:{color:$[F],[`${$.componentCls}-icon-dot`]:{background:$[re]}}},[`${V}-${C}${V}-custom ${V}-icon`]:{[`> ${$.componentCls}-icon`]:{color:$[re]}},[`${V}-${C} > ${V}-container > ${V}-content > ${V}-title`]:{color:$[K],"&::after":{backgroundColor:$[ee]}},[`${V}-${C} > ${V}-container > ${V}-content > ${V}-description`]:{color:$[J]},[`${V}-${C} > ${V}-container > ${V}-tail::after`]:{backgroundColor:$[ee]}}},genStepsItemStyle=C=>{const{componentCls:$,motionDurationSlow:V}=C,F=`${$}-item`,K=`${F}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[F]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${F}-container > ${F}-tail, > ${F}-container > ${F}-content > ${F}-title::after`]:{display:"none"}}},[`${F}-container`]:{outline:"none","&:focus-visible":{[K]:Object.assign({},genFocusOutline(C))}},[`${K}, ${F}-content`]:{display:"inline-block",verticalAlign:"top"},[K]:{width:C.iconSize,height:C.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:C.marginXS,fontSize:C.iconFontSize,fontFamily:C.fontFamily,lineHeight:unit$1(C.iconSize),textAlign:"center",borderRadius:C.iconSize,border:`${unit$1(C.lineWidth)} ${C.lineType} transparent`,transition:`background-color ${V}, border-color ${V}`,[`${$}-icon`]:{position:"relative",top:C.iconTop,color:C.colorPrimary,lineHeight:1}},[`${F}-tail`]:{position:"absolute",top:C.calc(C.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:C.lineWidth,background:C.colorSplit,borderRadius:C.lineWidth,transition:`background ${V}`,content:'""'}},[`${F}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:C.padding,color:C.colorText,fontSize:C.fontSizeLG,lineHeight:unit$1(C.titleLineHeight),"&::after":{position:"absolute",top:C.calc(C.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:C.lineWidth,background:C.processTailColor,content:'""'}},[`${F}-subtitle`]:{display:"inline",marginInlineStart:C.marginXS,color:C.colorTextDescription,fontWeight:"normal",fontSize:C.fontSize},[`${F}-description`]:{color:C.colorTextDescription,fontSize:C.fontSize}},genStepsItemStatusStyle(STEP_ITEM_STATUS_WAIT,C)),genStepsItemStatusStyle(STEP_ITEM_STATUS_PROCESS,C)),{[`${F}-process > ${F}-container > ${F}-title`]:{fontWeight:C.fontWeightStrong}}),genStepsItemStatusStyle(STEP_ITEM_STATUS_FINISH,C)),genStepsItemStatusStyle(STEP_ITEM_STATUS_ERROR,C)),{[`${F}${$}-next-error > ${$}-item-title::after`]:{background:C.colorError},[`${F}-disabled`]:{cursor:"not-allowed"}})},genStepsClickableStyle=C=>{const{componentCls:$,motionDurationSlow:V}=C;return{[`& ${$}-item`]:{[`&:not(${$}-item-active)`]:{[`& > ${$}-item-container[role='button']`]:{cursor:"pointer",[`${$}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${$}-icon`]:{transition:`color ${V}`}},"&:hover":{[`${$}-item`]:{"&-title, &-subtitle, &-description":{color:C.colorPrimary}}}},[`&:not(${$}-item-process)`]:{[`& > ${$}-item-container[role='button']:hover`]:{[`${$}-item`]:{"&-icon":{borderColor:C.colorPrimary,[`${$}-icon`]:{color:C.colorPrimary}}}}}}},[`&${$}-horizontal:not(${$}-label-vertical)`]:{[`${$}-item`]:{paddingInlineStart:C.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${$}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:C.descriptionMaxWidth,whiteSpace:"normal"}}}}},genStepsStyle=C=>{const{componentCls:$}=C;return{[$]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(C)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),genStepsItemStyle(C)),genStepsClickableStyle(C)),genStepsCustomIconStyle$1(C)),genStepsSmallStyle$1(C)),genStepsVerticalStyle$1(C)),genStepsHorizontalStyle(C)),genStepsLabelPlacementStyle$1(C)),genStepsProgressDotStyle$1(C)),genStepsNavStyle$1(C)),genStepsRTLStyle$1(C)),genStepsProgressStyle$1(C)),genStepsInlineStyle$1(C))}},prepareComponentToken$6=C=>({titleLineHeight:C.controlHeight,customIconSize:C.controlHeight,customIconTop:0,customIconFontSize:C.controlHeightSM,iconSize:C.controlHeight,iconTop:-.5,iconFontSize:C.fontSize,iconSizeSM:C.fontSizeHeading3,dotSize:C.controlHeight/4,dotCurrentSize:C.controlHeightLG/4,navArrowColor:C.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:C.wireframe?C.colorTextDisabled:C.colorTextLabel,waitIconBgColor:C.wireframe?C.colorBgContainer:C.colorFillContent,waitIconBorderColor:C.wireframe?C.colorTextDisabled:"transparent",finishIconBgColor:C.wireframe?C.colorBgContainer:C.controlItemBgActive,finishIconBorderColor:C.wireframe?C.colorPrimary:C.controlItemBgActive}),useStyle$6=genStyleHooks("Steps",C=>{const{colorTextDisabled:$,controlHeightLG:V,colorTextLightSolid:F,colorText:K,colorPrimary:J,colorTextDescription:ee,colorTextQuaternary:te,colorError:ne,colorBorderSecondary:re,colorSplit:ae}=C,oe=merge(C,{processIconColor:F,processTitleColor:K,processDescriptionColor:K,processIconBgColor:J,processIconBorderColor:J,processDotColor:J,processTailColor:ae,waitTitleColor:ee,waitDescriptionColor:ee,waitTailColor:ae,waitDotColor:$,finishIconColor:J,finishTitleColor:K,finishDescriptionColor:ee,finishTailColor:J,finishDotColor:J,errorIconColor:F,errorTitleColor:ne,errorDescriptionColor:ne,errorTailColor:ae,errorIconBgColor:ne,errorIconBorderColor:ne,errorDotColor:ne,stepsNavActiveColor:J,stepsProgressSize:V,inlineDotSize:6,inlineTitleColor:te,inlineTailColor:re});return[genStepsStyle(oe)]},prepareComponentToken$6);function filter(C){return C.filter($=>$)}function useLegacyItems(C,$){if(process.env.NODE_ENV==="test"&&devUseWarning("Menu").deprecated(!$,"Step","items"),C)return C;const V=toArray$6($).map(F=>{if(React__namespace.isValidElement(F)){const{props:K}=F;return Object.assign({},K)}return null});return filter(V)}var __rest$b=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const Steps=C=>{const{percent:$,size:V,className:F,rootClassName:K,direction:J,items:ee,responsive:te=!0,current:ne=0,children:re,style:ae}=C,oe=__rest$b(C,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:ie}=useBreakpoint(te),{getPrefixCls:se,direction:ce,className:de,style:le}=useComponentConfig("steps"),ve=React__namespace.useMemo(()=>te&&ie?"vertical":J,[ie,J]),fe=useSize$1(V),he=se("steps",C.prefixCls),[me,ue,pe]=useStyle$6(he),ye=C.type==="inline",be=se("",C.iconPrefix),ge=useLegacyItems(ee,re),_e=ye?void 0:$,Se=Object.assign(Object.assign({},le),ae),Ee=classNames(de,{[`${he}-rtl`]:ce==="rtl",[`${he}-with-progress`]:_e!==void 0},F,K,ue,pe),Ce={finish:React__namespace.createElement(CheckOutlined$1,{className:`${he}-finish-icon`}),error:React__namespace.createElement(CloseOutlined$1,{className:`${he}-error-icon`})},xe=Ie=>{let{node:Fe,status:Ne}=Ie;if(Ne==="process"&&_e!==void 0){const De=fe==="small"?32:40;return React__namespace.createElement("div",{className:`${he}-progress-icon`},React__namespace.createElement(Progress$1,{type:"circle",percent:_e,size:De,strokeWidth:4,format:()=>null}),Fe)}return Fe},$e=(Ie,Fe)=>Ie.description?React__namespace.createElement(Tooltip$1,{title:Ie.description},Fe):Fe;return me(React__namespace.createElement(Steps$2,Object.assign({icons:Ce},oe,{style:Se,current:ne,size:fe,items:ge,itemRender:ye?$e:void 0,stepIcon:xe,direction:ve,prefixCls:he,iconPrefix:be,className:Ee})))};Steps.Step=Steps$2.Step,process.env.NODE_ENV!=="production"&&(Steps.displayName="Steps");const Steps$1=Steps;var _excluded$b=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Switch$2=React__namespace.forwardRef(function(C,$){var V,F=C.prefixCls,K=F===void 0?"rc-switch":F,J=C.className,ee=C.checked,te=C.defaultChecked,ne=C.disabled,re=C.loadingIcon,ae=C.checkedChildren,oe=C.unCheckedChildren,ie=C.onClick,se=C.onChange,ce=C.onKeyDown,de=_objectWithoutProperties(C,_excluded$b),le=useMergedState(!1,{value:ee,defaultValue:te}),ve=_slicedToArray(le,2),fe=ve[0],he=ve[1];function me(be,ge){var _e=fe;return ne||(_e=be,he(_e),se==null||se(_e,ge)),_e}function ue(be){be.which===KeyCode.LEFT?me(!1,be):be.which===KeyCode.RIGHT&&me(!0,be),ce==null||ce(be)}function pe(be){var ge=me(!fe,be);ie==null||ie(ge,be)}var ye=classNames(K,J,(V={},_defineProperty(V,"".concat(K,"-checked"),fe),_defineProperty(V,"".concat(K,"-disabled"),ne),V));return React__namespace.createElement("button",_extends({},de,{type:"button",role:"switch","aria-checked":fe,disabled:ne,className:ye,ref:$,onKeyDown:ue,onClick:pe}),re,React__namespace.createElement("span",{className:"".concat(K,"-inner")},React__namespace.createElement("span",{className:"".concat(K,"-inner-checked")},ae),React__namespace.createElement("span",{className:"".concat(K,"-inner-unchecked")},oe)))});Switch$2.displayName="Switch";const genSwitchSmallStyle=C=>{const{componentCls:$,trackHeightSM:V,trackPadding:F,trackMinWidthSM:K,innerMinMarginSM:J,innerMaxMarginSM:ee,handleSizeSM:te,calc:ne}=C,re=`${$}-inner`,ae=unit$1(ne(te).add(ne(F).mul(2)).equal()),oe=unit$1(ne(ee).mul(2).equal());return{[$]:{[`&${$}-small`]:{minWidth:K,height:V,lineHeight:unit$1(V),[`${$}-inner`]:{paddingInlineStart:ee,paddingInlineEnd:J,[`${re}-checked, ${re}-unchecked`]:{minHeight:V},[`${re}-checked`]:{marginInlineStart:`calc(-100% + ${ae} - ${oe})`,marginInlineEnd:`calc(100% - ${ae} + ${oe})`},[`${re}-unchecked`]:{marginTop:ne(V).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${$}-handle`]:{width:te,height:te},[`${$}-loading-icon`]:{top:ne(ne(te).sub(C.switchLoadingIconSize)).div(2).equal(),fontSize:C.switchLoadingIconSize},[`&${$}-checked`]:{[`${$}-inner`]:{paddingInlineStart:J,paddingInlineEnd:ee,[`${re}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${re}-unchecked`]:{marginInlineStart:`calc(100% - ${ae} + ${oe})`,marginInlineEnd:`calc(-100% + ${ae} - ${oe})`}},[`${$}-handle`]:{insetInlineStart:`calc(100% - ${unit$1(ne(te).add(F).equal())})`}},[`&:not(${$}-disabled):active`]:{[`&:not(${$}-checked) ${re}`]:{[`${re}-unchecked`]:{marginInlineStart:ne(C.marginXXS).div(2).equal(),marginInlineEnd:ne(C.marginXXS).mul(-1).div(2).equal()}},[`&${$}-checked ${re}`]:{[`${re}-checked`]:{marginInlineStart:ne(C.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ne(C.marginXXS).div(2).equal()}}}}}}},genSwitchLoadingStyle=C=>{const{componentCls:$,handleSize:V,calc:F}=C;return{[$]:{[`${$}-loading-icon${C.iconCls}`]:{position:"relative",top:F(F(V).sub(C.fontSize)).div(2).equal(),color:C.switchLoadingIconColor,verticalAlign:"top"},[`&${$}-checked ${$}-loading-icon`]:{color:C.switchColor}}}},genSwitchHandleStyle=C=>{const{componentCls:$,trackPadding:V,handleBg:F,handleShadow:K,handleSize:J,calc:ee}=C,te=`${$}-handle`;return{[$]:{[te]:{position:"absolute",top:V,insetInlineStart:V,width:J,height:J,transition:`all ${C.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:F,borderRadius:ee(J).div(2).equal(),boxShadow:K,transition:`all ${C.switchDuration} ease-in-out`,content:'""'}},[`&${$}-checked ${te}`]:{insetInlineStart:`calc(100% - ${unit$1(ee(J).add(V).equal())})`},[`&:not(${$}-disabled):active`]:{[`${te}::before`]:{insetInlineEnd:C.switchHandleActiveInset,insetInlineStart:0},[`&${$}-checked ${te}::before`]:{insetInlineEnd:0,insetInlineStart:C.switchHandleActiveInset}}}}},genSwitchInnerStyle=C=>{const{componentCls:$,trackHeight:V,trackPadding:F,innerMinMargin:K,innerMaxMargin:J,handleSize:ee,calc:te}=C,ne=`${$}-inner`,re=unit$1(te(ee).add(te(F).mul(2)).equal()),ae=unit$1(te(J).mul(2).equal());return{[$]:{[ne]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:J,paddingInlineEnd:K,transition:`padding-inline-start ${C.switchDuration} ease-in-out, padding-inline-end ${C.switchDuration} ease-in-out`,[`${ne}-checked, ${ne}-unchecked`]:{display:"block",color:C.colorTextLightSolid,fontSize:C.fontSizeSM,transition:`margin-inline-start ${C.switchDuration} ease-in-out, margin-inline-end ${C.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:V},[`${ne}-checked`]:{marginInlineStart:`calc(-100% + ${re} - ${ae})`,marginInlineEnd:`calc(100% - ${re} + ${ae})`},[`${ne}-unchecked`]:{marginTop:te(V).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${$}-checked ${ne}`]:{paddingInlineStart:K,paddingInlineEnd:J,[`${ne}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ne}-unchecked`]:{marginInlineStart:`calc(100% - ${re} + ${ae})`,marginInlineEnd:`calc(-100% + ${re} - ${ae})`}},[`&:not(${$}-disabled):active`]:{[`&:not(${$}-checked) ${ne}`]:{[`${ne}-unchecked`]:{marginInlineStart:te(F).mul(2).equal(),marginInlineEnd:te(F).mul(-1).mul(2).equal()}},[`&${$}-checked ${ne}`]:{[`${ne}-checked`]:{marginInlineStart:te(F).mul(-1).mul(2).equal(),marginInlineEnd:te(F).mul(2).equal()}}}}}},genSwitchStyle=C=>{const{componentCls:$,trackHeight:V,trackMinWidth:F}=C;return{[$]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(C)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:F,height:V,lineHeight:unit$1(V),verticalAlign:"middle",background:C.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${C.motionDurationMid}`,userSelect:"none",[`&:hover:not(${$}-disabled)`]:{background:C.colorTextTertiary}}),genFocusStyle(C)),{[`&${$}-checked`]:{background:C.switchColor,[`&:hover:not(${$}-disabled)`]:{background:C.colorPrimaryHover}},[`&${$}-loading, &${$}-disabled`]:{cursor:"not-allowed",opacity:C.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${$}-rtl`]:{direction:"rtl"}})}},prepareComponentToken$5=C=>{const{fontSize:$,lineHeight:V,controlHeight:F,colorWhite:K}=C,J=$*V,ee=F/2,te=2,ne=J-te*2,re=ee-te*2;return{trackHeight:J,trackHeightSM:ee,trackMinWidth:ne*2+te*4,trackMinWidthSM:re*2+te*2,trackPadding:te,handleBg:K,handleSize:ne,handleSizeSM:re,handleShadow:`0 2px 4px 0 ${new FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ne/2,innerMaxMargin:ne+te+te*2,innerMinMarginSM:re/2,innerMaxMarginSM:re+te+te*2}},useStyle$5=genStyleHooks("Switch",C=>{const $=merge(C,{switchDuration:C.motionDurationMid,switchColor:C.colorPrimary,switchDisabledOpacity:C.opacityLoading,switchLoadingIconSize:C.calc(C.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${C.opacityLoading})`,switchHandleActiveInset:"-30%"});return[genSwitchStyle($),genSwitchInnerStyle($),genSwitchHandleStyle($),genSwitchLoadingStyle($),genSwitchSmallStyle($)]},prepareComponentToken$5);var __rest$a=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const InternalSwitch=React__namespace.forwardRef((C,$)=>{const{prefixCls:V,size:F,disabled:K,loading:J,className:ee,rootClassName:te,style:ne,checked:re,value:ae,defaultChecked:oe,defaultValue:ie,onChange:se}=C,ce=__rest$a(C,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[de,le]=useMergedState(!1,{value:re!=null?re:ae,defaultValue:oe!=null?oe:ie}),{getPrefixCls:ve,direction:fe,switch:he}=React__namespace.useContext(ConfigContext),me=React__namespace.useContext(DisabledContext$1),ue=(K!=null?K:me)||J,pe=ve("switch",V),ye=React__namespace.createElement("div",{className:`${pe}-handle`},J&&React__namespace.createElement(LoadingOutlined$1,{className:`${pe}-loading-icon`})),[be,ge,_e]=useStyle$5(pe),Se=useSize$1(F),Ee=classNames(he==null?void 0:he.className,{[`${pe}-small`]:Se==="small",[`${pe}-loading`]:J,[`${pe}-rtl`]:fe==="rtl"},ee,te,ge,_e),Ce=Object.assign(Object.assign({},he==null?void 0:he.style),ne),xe=function(){le(arguments.length<=0?void 0:arguments[0]),se==null||se.apply(void 0,arguments)};return be(React__namespace.createElement(Wave$1,{component:"Switch"},React__namespace.createElement(Switch$2,Object.assign({},ce,{checked:de,onChange:xe,prefixCls:pe,className:Ee,style:Ce,disabled:ue,ref:$,loadingIcon:ye}))))}),Switch=InternalSwitch;Switch.__ANT_SWITCH=!0,process.env.NODE_ENV!=="production"&&(Switch.displayName="Switch");const Switch$1=Switch;var EXPAND_COLUMN={},INTERNAL_HOOKS="rc-table-internal-hook";function createContext(C){var $=React__namespace.createContext(void 0),V=function(K){var J=K.value,ee=K.children,te=React__namespace.useRef(J);te.current=J;var ne=React__namespace.useState(function(){return{getValue:function(){return te.current},listeners:new Set}}),re=_slicedToArray(ne,1),ae=re[0];return useLayoutEffect$1(function(){ReactDOM.unstable_batchedUpdates(function(){ae.listeners.forEach(function(oe){oe(J)})})},[J]),React__namespace.createElement($.Provider,{value:ae},ee)};return{Context:$,Provider:V,defaultValue:C}}function useContext(C,$){var V=useEvent(typeof $=="function"?$:function(oe){if($===void 0)return oe;if(!Array.isArray($))return oe[$];var ie={};return $.forEach(function(se){ie[se]=oe[se]}),ie}),F=React__namespace.useContext(C==null?void 0:C.Context),K=F||{},J=K.listeners,ee=K.getValue,te=React__namespace.useRef();te.current=V(F?ee():C==null?void 0:C.defaultValue);var ne=React__namespace.useState({}),re=_slicedToArray(ne,2),ae=re[1];return useLayoutEffect$1(function(){if(!F)return;function oe(ie){var se=V(ie);isEqual(te.current,se,!0)||ae({})}return J.add(oe),function(){J.delete(oe)}},[F]),te.current}function createImmutable(){var C=React__namespace.createContext(null);function $(){return React__namespace.useContext(C)}function V(K,J){var ee=supportRef(K),te=function(re,ae){var oe=ee?{ref:ae}:{},ie=React__namespace.useRef(0),se=React__namespace.useRef(re),ce=$();return ce!==null?React__namespace.createElement(K,_extends({},re,oe)):((!J||J(se.current,re))&&(ie.current+=1),se.current=re,React__namespace.createElement(C.Provider,{value:ie.current},React__namespace.createElement(K,_extends({},re,oe))))};return process.env.NODE_ENV!=="production"&&(te.displayName="ImmutableRoot(".concat(K.displayName||K.name,")")),ee?React__namespace.forwardRef(te):te}function F(K,J){var ee=supportRef(K),te=function(re,ae){var oe=ee?{ref:ae}:{};return $(),React__namespace.createElement(K,_extends({},re,oe))};return process.env.NODE_ENV!=="production"&&(te.displayName="ImmutableResponse(".concat(K.displayName||K.name,")")),ee?React__namespace.memo(React__namespace.forwardRef(te),J):React__namespace.memo(te,J)}return{makeImmutable:V,responseImmutable:F,useImmutableMark:$}}var _createImmutable=createImmutable(),makeImmutable=_createImmutable.makeImmutable,responseImmutable=_createImmutable.responseImmutable,useImmutableMark=_createImmutable.useImmutableMark,TableContext=createContext();function useRenderTimes(C,$){var V=React__namespace.useRef(0);V.current+=1;var F=React__namespace.useRef(C),K=[];Object.keys(C||{}).map(function(ee){var te;(C==null?void 0:C[ee])!==((te=F.current)===null||te===void 0?void 0:te[ee])&&K.push(ee)}),F.current=C;var J=React__namespace.useRef([]);return K.length&&(J.current=K),React__namespace.useDebugValue(V.current),React__namespace.useDebugValue(J.current.join(", ")),$&&console.log("".concat($,":"),V.current,J.current),V.current}const devRenderTimes=process.env.NODE_ENV!=="production"?useRenderTimes:function(){};var RenderBlock=React__namespace.memo(function(){var C=useRenderTimes();return React__namespace.createElement("h1",null,"Render Times: ",C)});process.env.NODE_ENV!=="production"&&(RenderBlock.displayName="RenderBlock");var PerfContext=React__namespace.createContext({renderWithProps:!1}),INTERNAL_KEY_PREFIX="RC_TABLE_KEY";function toArray(C){return C==null?[]:Array.isArray(C)?C:[C]}function getColumnsKey(C){var $=[],V={};return C.forEach(function(F){for(var K=F||{},J=K.key,ee=K.dataIndex,te=J||toArray(ee).join("-")||INTERNAL_KEY_PREFIX;V[te];)te="".concat(te,"_next");V[te]=!0,$.push(te)}),$}function validateValue(C){return C!=null}function validNumberValue(C){return typeof C=="number"&&!Number.isNaN(C)}function isRenderCell(C){return C&&_typeof(C)==="object"&&!Array.isArray(C)&&!React__namespace.isValidElement(C)}function useCellRender(C,$,V,F,K,J){var ee=React__namespace.useContext(PerfContext),te=useImmutableMark(),ne=useMemo(function(){if(validateValue(F))return[F];var re=$==null||$===""?[]:Array.isArray($)?$:[$],ae=get(C,re),oe=ae,ie=void 0;if(K){var se=K(ae,C,V);isRenderCell(se)?(process.env.NODE_ENV!=="production"&&warningOnce(!1,"`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."),oe=se.children,ie=se.props,ee.renderWithProps=!0):oe=se}return[oe,ie]},[te,C,F,$,K,V],function(re,ae){if(J){var oe=_slicedToArray(re,2),ie=oe[1],se=_slicedToArray(ae,2),ce=se[1];return J(ce,ie)}return ee.renderWithProps?!0:!isEqual(re,ae,!0)});return ne}function inHoverRange(C,$,V,F){var K=C+$-1;return C<=F&&K>=V}function useHoverState(C,$){return useContext(TableContext,function(V){var F=inHoverRange(C,$||1,V.hoverStartRow,V.hoverEndRow);return[F,V.onHover]})}var getTitleFromCellRenderChildren=function($){var V=$.ellipsis,F=$.rowType,K=$.children,J,ee=V===!0?{showTitle:!0}:V;return ee&&(ee.showTitle||F==="header")&&(typeof K=="string"||typeof K=="number"?J=K.toString():React__namespace.isValidElement(K)&&typeof K.props.children=="string"&&(J=K.props.children)),J};function Cell(C){var $,V,F,K,J,ee,te,ne;process.env.NODE_ENV!=="production"&&devRenderTimes(C);var re=C.component,ae=C.children,oe=C.ellipsis,ie=C.scope,se=C.prefixCls,ce=C.className,de=C.align,le=C.record,ve=C.render,fe=C.dataIndex,he=C.renderIndex,me=C.shouldCellUpdate,ue=C.index,pe=C.rowType,ye=C.colSpan,be=C.rowSpan,ge=C.fixLeft,_e=C.fixRight,Se=C.firstFixLeft,Ee=C.lastFixLeft,Ce=C.firstFixRight,xe=C.lastFixRight,$e=C.appendNode,Ie=C.additionalProps,Fe=Ie===void 0?{}:Ie,Ne=C.isSticky,De="".concat(se,"-cell"),Oe=useContext(TableContext,["supportSticky","allColumnsFixedLeft","rowHoverable"]),we=Oe.supportSticky,Ae=Oe.allColumnsFixedLeft,ke=Oe.rowHoverable,je=useCellRender(le,fe,he,ae,ve,me),ze=_slicedToArray(je,2),Ve=ze[0],Xe=ze[1],Ye={},at=typeof ge=="number"&&we,Ue=typeof _e=="number"&&we;at&&(Ye.position="sticky",Ye.left=ge),Ue&&(Ye.position="sticky",Ye.right=_e);var Le=($=(V=(F=Xe==null?void 0:Xe.colSpan)!==null&&F!==void 0?F:Fe.colSpan)!==null&&V!==void 0?V:ye)!==null&&$!==void 0?$:1,Te=(K=(J=(ee=Xe==null?void 0:Xe.rowSpan)!==null&&ee!==void 0?ee:Fe.rowSpan)!==null&&J!==void 0?J:be)!==null&&K!==void 0?K:1,Pe=useHoverState(ue,Te),Me=_slicedToArray(Pe,2),He=Me[0],We=Me[1],Ke=useEvent(function(vt){var ht;le&&We(ue,ue+Te-1),Fe==null||(ht=Fe.onMouseEnter)===null||ht===void 0||ht.call(Fe,vt)}),rt=useEvent(function(vt){var ht;le&&We(-1,-1),Fe==null||(ht=Fe.onMouseLeave)===null||ht===void 0||ht.call(Fe,vt)});if(Le===0||Te===0)return null;var st=(te=Fe.title)!==null&&te!==void 0?te:getTitleFromCellRenderChildren({rowType:pe,ellipsis:oe,children:Ve}),it=classNames(De,ce,(ne={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ne,"".concat(De,"-fix-left"),at&&we),"".concat(De,"-fix-left-first"),Se&&we),"".concat(De,"-fix-left-last"),Ee&&we),"".concat(De,"-fix-left-all"),Ee&&Ae&&we),"".concat(De,"-fix-right"),Ue&&we),"".concat(De,"-fix-right-first"),Ce&&we),"".concat(De,"-fix-right-last"),xe&&we),"".concat(De,"-ellipsis"),oe),"".concat(De,"-with-append"),$e),"".concat(De,"-fix-sticky"),(at||Ue)&&Ne&&we),_defineProperty(ne,"".concat(De,"-row-hover"),!Xe&&He)),Fe.className,Xe==null?void 0:Xe.className),Je={};de&&(Je.textAlign=de);var ct=_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},Xe==null?void 0:Xe.style),Ye),Je),Fe.style),dt=Ve;return _typeof(dt)==="object"&&!Array.isArray(dt)&&!React__namespace.isValidElement(dt)&&(dt=null),oe&&(Ee||Ce)&&(dt=React__namespace.createElement("span",{className:"".concat(De,"-content")},dt)),React__namespace.createElement(re,_extends({},Xe,Fe,{className:it,style:ct,title:st,scope:ie,onMouseEnter:ke?Ke:void 0,onMouseLeave:ke?rt:void 0,colSpan:Le!==1?Le:null,rowSpan:Te!==1?Te:null}),$e,dt)}const Cell$1=React__namespace.memo(Cell);function getCellFixedInfo(C,$,V,F,K){var J=V[C]||{},ee=V[$]||{},te,ne;J.fixed==="left"?te=F.left[K==="rtl"?$:C]:ee.fixed==="right"&&(ne=F.right[K==="rtl"?C:$]);var re=!1,ae=!1,oe=!1,ie=!1,se=V[$+1],ce=V[C-1],de=se&&!se.fixed||ce&&!ce.fixed||V.every(function(me){return me.fixed==="left"});if(K==="rtl"){if(te!==void 0){var le=ce&&ce.fixed==="left";ie=!le&&de}else if(ne!==void 0){var ve=se&&se.fixed==="right";oe=!ve&&de}}else if(te!==void 0){var fe=se&&se.fixed==="left";re=!fe&&de}else if(ne!==void 0){var he=ce&&ce.fixed==="right";ae=!he&&de}return{fixLeft:te,fixRight:ne,lastFixLeft:re,firstFixRight:ae,lastFixRight:oe,firstFixLeft:ie,isSticky:F.isSticky}}var SummaryContext=React__namespace.createContext({});function SummaryCell(C){var $=C.className,V=C.index,F=C.children,K=C.colSpan,J=K===void 0?1:K,ee=C.rowSpan,te=C.align,ne=useContext(TableContext,["prefixCls","direction"]),re=ne.prefixCls,ae=ne.direction,oe=React__namespace.useContext(SummaryContext),ie=oe.scrollColumnIndex,se=oe.stickyOffsets,ce=oe.flattenColumns,de=V+J-1,le=de+1===ie?J+1:J,ve=getCellFixedInfo(V,V+le-1,ce,se,ae);return React__namespace.createElement(Cell$1,_extends({className:$,index:V,component:"td",prefixCls:re,record:null,dataIndex:null,align:te,colSpan:le,rowSpan:ee,render:function(){return F}},ve))}var _excluded$a=["children"];function FooterRow(C){var $=C.children,V=_objectWithoutProperties(C,_excluded$a);return React__namespace.createElement("tr",V,$)}function Summary(C){var $=C.children;return $}Summary.Row=FooterRow,Summary.Cell=SummaryCell;function Footer$2(C){process.env.NODE_ENV!=="production"&&devRenderTimes(C);var $=C.children,V=C.stickyOffsets,F=C.flattenColumns,K=useContext(TableContext,"prefixCls"),J=F.length-1,ee=F[J],te=React__namespace.useMemo(function(){return{stickyOffsets:V,flattenColumns:F,scrollColumnIndex:ee!=null&&ee.scrollbar?J:null}},[ee,F,J,V]);return React__namespace.createElement(SummaryContext.Provider,{value:te},React__namespace.createElement("tfoot",{className:"".concat(K,"-summary")},$))}const Footer$3=responseImmutable(Footer$2);var FooterComponents=Summary;function Column$2(C){return null}function ColumnGroup$2(C){return null}function fillRecords(C,$,V,F,K,J,ee){C.push({record:$,indent:V,index:ee});var te=J($),ne=K==null?void 0:K.has(te);if($&&Array.isArray($[F])&&ne)for(var re=0;re<$[F].length;re+=1)fillRecords(C,$[F][re],V+1,F,K,J,re)}function useFlattenRecords(C,$,V,F){var K=React__namespace.useMemo(function(){if(V!=null&&V.size){for(var J=[],ee=0;ee<(C==null?void 0:C.length);ee+=1){var te=C[ee];fillRecords(J,te,0,$,V,F,ee)}return J}return C==null?void 0:C.map(function(ne,re){return{record:ne,indent:0,index:re}})},[C,$,V,F]);return K}function useRowInfo(C,$,V,F){var K=useContext(TableContext,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),J=K.flattenColumns,ee=K.expandableType,te=K.expandedKeys,ne=K.childrenColumnName,re=K.onTriggerExpand,ae=K.rowExpandable,oe=K.onRow,ie=K.expandRowByClick,se=K.rowClassName,ce=ee==="nest",de=ee==="row"&&(!ae||ae(C)),le=de||ce,ve=te&&te.has($),fe=ne&&C&&C[ne],he=useEvent(re),me=oe==null?void 0:oe(C,V),ue=me==null?void 0:me.onClick,pe=function(_e){ie&&le&&re(C,_e);for(var Se=arguments.length,Ee=new Array(Se>1?Se-1:0),Ce=1;Ce<Se;Ce++)Ee[Ce-1]=arguments[Ce];ue==null||ue.apply(void 0,[_e].concat(Ee))},ye;typeof se=="string"?ye=se:typeof se=="function"&&(ye=se(C,V,F));var be=getColumnsKey(J);return _objectSpread2(_objectSpread2({},K),{},{columnsKey:be,nestExpandable:ce,expanded:ve,hasNestChildren:fe,record:C,onTriggerExpand:he,rowSupportExpand:de,expandable:le,rowProps:_objectSpread2(_objectSpread2({},me),{},{className:classNames(ye,me==null?void 0:me.className),onClick:pe})})}function ExpandedRow(C){process.env.NODE_ENV!=="production"&&devRenderTimes(C);var $=C.prefixCls,V=C.children,F=C.component,K=C.cellComponent,J=C.className,ee=C.expanded,te=C.colSpan,ne=C.isEmpty,re=useContext(TableContext,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ae=re.scrollbarSize,oe=re.fixHeader,ie=re.fixColumn,se=re.componentWidth,ce=re.horizonScroll,de=V;return(ne?ce&&se:ie)&&(de=React__namespace.createElement("div",{style:{width:se-(oe&&!ne?ae:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat($,"-expanded-row-fixed")},de)),React__namespace.createElement(F,{className:J,style:{display:ee?null:"none"}},React__namespace.createElement(Cell$1,{component:K,prefixCls:$,colSpan:te},de))}function renderExpandIcon$1(C){var $=C.prefixCls,V=C.record,F=C.onExpand,K=C.expanded,J=C.expandable,ee="".concat($,"-row-expand-icon");if(!J)return React__namespace.createElement("span",{className:classNames(ee,"".concat($,"-row-spaced"))});var te=function(re){F(V,re),re.stopPropagation()};return React__namespace.createElement("span",{className:classNames(ee,_defineProperty(_defineProperty({},"".concat($,"-row-expanded"),K),"".concat($,"-row-collapsed"),!K)),onClick:te})}function findAllChildrenKeys(C,$,V){var F=[];function K(J){(J||[]).forEach(function(ee,te){F.push($(ee,te)),K(ee[V])})}return K(C),F}function computedExpandedClassName(C,$,V,F){return typeof C=="string"?C:typeof C=="function"?C($,V,F):""}function getCellProps(C,$,V,F,K){var J=C.record,ee=C.prefixCls,te=C.columnsKey,ne=C.fixedInfoList,re=C.expandIconColumnIndex,ae=C.nestExpandable,oe=C.indentSize,ie=C.expandIcon,se=C.expanded,ce=C.hasNestChildren,de=C.onTriggerExpand,le=te[V],ve=ne[V],fe;V===(re||0)&&ae&&(fe=React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("span",{style:{paddingLeft:"".concat(oe*F,"px")},className:"".concat(ee,"-row-indent indent-level-").concat(F)}),ie({prefixCls:ee,expanded:se,expandable:ce,record:J,onExpand:de})));var he;return $.onCell&&(he=$.onCell(J,K)),{key:le,fixedInfo:ve,appendCellNode:fe,additionalCellProps:he||{}}}function BodyRow(C){process.env.NODE_ENV!=="production"&&devRenderTimes(C);var $=C.className,V=C.style,F=C.record,K=C.index,J=C.renderIndex,ee=C.rowKey,te=C.indent,ne=te===void 0?0:te,re=C.rowComponent,ae=C.cellComponent,oe=C.scopeCellComponent,ie=useRowInfo(F,ee,K,ne),se=ie.prefixCls,ce=ie.flattenColumns,de=ie.expandedRowClassName,le=ie.expandedRowRender,ve=ie.rowProps,fe=ie.expanded,he=ie.rowSupportExpand,me=React__namespace.useRef(!1);me.current||(me.current=fe),process.env.NODE_ENV!=="production"&&devRenderTimes(C);var ue=computedExpandedClassName(de,F,K,ne),pe=React__namespace.createElement(re,_extends({},ve,{"data-row-key":ee,className:classNames($,"".concat(se,"-row"),"".concat(se,"-row-level-").concat(ne),ve==null?void 0:ve.className,_defineProperty({},ue,ne>=1)),style:_objectSpread2(_objectSpread2({},V),ve==null?void 0:ve.style)}),ce.map(function(ge,_e){var Se=ge.render,Ee=ge.dataIndex,Ce=ge.className,xe=getCellProps(ie,ge,_e,ne,K),$e=xe.key,Ie=xe.fixedInfo,Fe=xe.appendCellNode,Ne=xe.additionalCellProps;return React__namespace.createElement(Cell$1,_extends({className:Ce,ellipsis:ge.ellipsis,align:ge.align,scope:ge.rowScope,component:ge.rowScope?oe:ae,prefixCls:se,key:$e,record:F,index:K,renderIndex:J,dataIndex:Ee,render:Se,shouldCellUpdate:ge.shouldCellUpdate},Ie,{appendNode:Fe,additionalProps:Ne}))})),ye;if(he&&(me.current||fe)){var be=le(F,K,ne+1,fe);ye=React__namespace.createElement(ExpandedRow,{expanded:fe,className:classNames("".concat(se,"-expanded-row"),"".concat(se,"-expanded-row-level-").concat(ne+1),ue),prefixCls:se,component:re,cellComponent:ae,colSpan:ce.length,isEmpty:!1},be)}return React__namespace.createElement(React__namespace.Fragment,null,pe,ye)}process.env.NODE_ENV!=="production"&&(BodyRow.displayName="BodyRow");const BodyRow$1=responseImmutable(BodyRow);function MeasureCell(C){var $=C.columnKey,V=C.onColumnResize,F=React__namespace.useRef();return useLayoutEffect$1(function(){F.current&&V($,F.current.offsetWidth)},[]),React__namespace.createElement(RefResizeObserver,{data:$},React__namespace.createElement("td",{ref:F,style:{padding:0,border:0,height:0}},React__namespace.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function MeasureRow(C){var $=C.prefixCls,V=C.columnsKey,F=C.onColumnResize,K=React__namespace.useRef(null);return React__namespace.createElement("tr",{"aria-hidden":"true",className:"".concat($,"-measure-row"),style:{height:0,fontSize:0},ref:K},React__namespace.createElement(RefResizeObserver.Collection,{onBatchResize:function(ee){isVisible(K.current)&&ee.forEach(function(te){var ne=te.data,re=te.size;F(ne,re.offsetWidth)})}},V.map(function(J){return React__namespace.createElement(MeasureCell,{key:J,columnKey:J,onColumnResize:F})})))}function Body(C){process.env.NODE_ENV!=="production"&&devRenderTimes(C);var $=C.data,V=C.measureColumnWidth,F=useContext(TableContext,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),K=F.prefixCls,J=F.getComponent,ee=F.onColumnResize,te=F.flattenColumns,ne=F.getRowKey,re=F.expandedKeys,ae=F.childrenColumnName,oe=F.emptyNode,ie=useFlattenRecords($,ae,re,ne),se=React__namespace.useRef({renderWithProps:!1}),ce=J(["body","wrapper"],"tbody"),de=J(["body","row"],"tr"),le=J(["body","cell"],"td"),ve=J(["body","cell"],"th"),fe;$.length?fe=ie.map(function(me,ue){var pe=me.record,ye=me.indent,be=me.index,ge=ne(pe,ue);return React__namespace.createElement(BodyRow$1,{key:ge,rowKey:ge,record:pe,index:ue,renderIndex:be,rowComponent:de,cellComponent:le,scopeCellComponent:ve,indent:ye})}):fe=React__namespace.createElement(ExpandedRow,{expanded:!0,className:"".concat(K,"-placeholder"),prefixCls:K,component:de,cellComponent:le,colSpan:te.length,isEmpty:!0},oe);var he=getColumnsKey(te);return React__namespace.createElement(PerfContext.Provider,{value:se.current},React__namespace.createElement(ce,{className:"".concat(K,"-tbody")},V&&React__namespace.createElement(MeasureRow,{prefixCls:K,columnsKey:he,onColumnResize:ee}),fe))}process.env.NODE_ENV!=="production"&&(Body.displayName="Body");const Body$1=responseImmutable(Body);var _excluded$9=["expandable"],INTERNAL_COL_DEFINE="RC_TABLE_INTERNAL_COL_DEFINE";function getExpandableProps(C){var $=C.expandable,V=_objectWithoutProperties(C,_excluded$9),F;return"expandable"in C?F=_objectSpread2(_objectSpread2({},V),$):(process.env.NODE_ENV!=="production"&&["indentSize","expandedRowKeys","defaultExpandedRowKeys","defaultExpandAllRows","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","expandedRowClassName","expandIconColumnIndex","showExpandColumn","title"].some(function(K){return K in C})&&warningOnce(!1,"expanded related props have been moved into `expandable`."),F=V),F.showExpandColumn===!1&&(F.expandIconColumnIndex=-1),F}var _excluded$8=["columnType"];function ColGroup(C){for(var $=C.colWidths,V=C.columns,F=C.columCount,K=useContext(TableContext,["tableLayout"]),J=K.tableLayout,ee=[],te=F||V.length,ne=!1,re=te-1;re>=0;re-=1){var ae=$[re],oe=V&&V[re],ie=void 0,se=void 0;if(oe&&(ie=oe[INTERNAL_COL_DEFINE],J==="auto"&&(se=oe.minWidth)),ae||se||ie||ne){var ce=ie||{};ce.columnType;var de=_objectWithoutProperties(ce,_excluded$8);ee.unshift(React__namespace.createElement("col",_extends({key:re,style:{width:ae,minWidth:se}},de))),ne=!0}}return React__namespace.createElement("colgroup",null,ee)}var _excluded$7=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function useColumnWidth(C,$){return React.useMemo(function(){for(var V=[],F=0;F<$;F+=1){var K=C[F];if(K!==void 0)V[F]=K;else return null}return V},[C.join("_"),$])}var FixedHolder=React__namespace.forwardRef(function(C,$){process.env.NODE_ENV!=="production"&&devRenderTimes(C);var V=C.className,F=C.noData,K=C.columns,J=C.flattenColumns,ee=C.colWidths,te=C.columCount,ne=C.stickyOffsets,re=C.direction,ae=C.fixHeader,oe=C.stickyTopOffset,ie=C.stickyBottomOffset,se=C.stickyClassName,ce=C.onScroll,de=C.maxContentScroll,le=C.children,ve=_objectWithoutProperties(C,_excluded$7),fe=useContext(TableContext,["prefixCls","scrollbarSize","isSticky","getComponent"]),he=fe.prefixCls,me=fe.scrollbarSize,ue=fe.isSticky,pe=fe.getComponent,ye=pe(["header","table"],"table"),be=ue&&!ae?0:me,ge=React__namespace.useRef(null),_e=React__namespace.useCallback(function(Ne){fillRef($,Ne),fillRef(ge,Ne)},[]);React__namespace.useEffect(function(){var Ne;function De(Oe){var we=Oe,Ae=we.currentTarget,ke=we.deltaX;ke&&(ce({currentTarget:Ae,scrollLeft:Ae.scrollLeft+ke}),Oe.preventDefault())}return(Ne=ge.current)===null||Ne===void 0||Ne.addEventListener("wheel",De,{passive:!1}),function(){var Oe;(Oe=ge.current)===null||Oe===void 0||Oe.removeEventListener("wheel",De)}},[]);var Se=React__namespace.useMemo(function(){return J.every(function(Ne){return Ne.width})},[J]),Ee=J[J.length-1],Ce={fixed:Ee?Ee.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(he,"-cell-scrollbar")}}},xe=React.useMemo(function(){return be?[].concat(_toConsumableArray(K),[Ce]):K},[be,K]),$e=React.useMemo(function(){return be?[].concat(_toConsumableArray(J),[Ce]):J},[be,J]),Ie=React.useMemo(function(){var Ne=ne.right,De=ne.left;return _objectSpread2(_objectSpread2({},ne),{},{left:re==="rtl"?[].concat(_toConsumableArray(De.map(function(Oe){return Oe+be})),[0]):De,right:re==="rtl"?Ne:[].concat(_toConsumableArray(Ne.map(function(Oe){return Oe+be})),[0]),isSticky:ue})},[be,ne,ue]),Fe=useColumnWidth(ee,te);return React__namespace.createElement("div",{style:_objectSpread2({overflow:"hidden"},ue?{top:oe,bottom:ie}:{}),ref:_e,className:classNames(V,_defineProperty({},se,!!se))},React__namespace.createElement(ye,{style:{tableLayout:"fixed",visibility:F||Fe?null:"hidden"}},(!F||!de||Se)&&React__namespace.createElement(ColGroup,{colWidths:Fe?[].concat(_toConsumableArray(Fe),[be]):[],columCount:te+1,columns:$e}),le(_objectSpread2(_objectSpread2({},ve),{},{stickyOffsets:Ie,columns:xe,flattenColumns:$e}))))});process.env.NODE_ENV!=="production"&&(FixedHolder.displayName="FixedHolder");const FixedHolder$1=React__namespace.memo(FixedHolder);var HeaderRow=function($){var V=$.cells,F=$.stickyOffsets,K=$.flattenColumns,J=$.rowComponent,ee=$.cellComponent,te=$.onHeaderRow,ne=$.index,re=useContext(TableContext,["prefixCls","direction"]),ae=re.prefixCls,oe=re.direction,ie;te&&(ie=te(V.map(function(ce){return ce.column}),ne));var se=getColumnsKey(V.map(function(ce){return ce.column}));return React__namespace.createElement(J,ie,V.map(function(ce,de){var le=ce.column,ve=getCellFixedInfo(ce.colStart,ce.colEnd,K,F,oe),fe;return le&&le.onHeaderCell&&(fe=ce.column.onHeaderCell(le)),React__namespace.createElement(Cell$1,_extends({},ce,{scope:le.title?ce.colSpan>1?"colgroup":"col":null,ellipsis:le.ellipsis,align:le.align,component:ee,prefixCls:ae,key:se[de]},ve,{additionalProps:fe,rowType:"header"}))}))};process.env.NODE_ENV!=="production"&&(HeaderRow.displayName="HeaderRow");function parseHeaderRows(C){var $=[];function V(ee,te){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;$[ne]=$[ne]||[];var re=te,ae=ee.filter(Boolean).map(function(oe){var ie={key:oe.key,className:oe.className||"",children:oe.title,column:oe,colStart:re},se=1,ce=oe.children;return ce&&ce.length>0&&(se=V(ce,re,ne+1).reduce(function(de,le){return de+le},0),ie.hasSubColumns=!0),"colSpan"in oe&&(se=oe.colSpan),"rowSpan"in oe&&(ie.rowSpan=oe.rowSpan),ie.colSpan=se,ie.colEnd=ie.colStart+se-1,$[ne].push(ie),re+=se,se});return ae}V(C,0);for(var F=$.length,K=function(te){$[te].forEach(function(ne){!("rowSpan"in ne)&&!ne.hasSubColumns&&(ne.rowSpan=F-te)})},J=0;J<F;J+=1)K(J);return $}var Header$1=function($){process.env.NODE_ENV!=="production"&&devRenderTimes($);var V=$.stickyOffsets,F=$.columns,K=$.flattenColumns,J=$.onHeaderRow,ee=useContext(TableContext,["prefixCls","getComponent"]),te=ee.prefixCls,ne=ee.getComponent,re=React__namespace.useMemo(function(){return parseHeaderRows(F)},[F]),ae=ne(["header","wrapper"],"thead"),oe=ne(["header","row"],"tr"),ie=ne(["header","cell"],"th");return React__namespace.createElement(ae,{className:"".concat(te,"-thead")},re.map(function(se,ce){var de=React__namespace.createElement(HeaderRow,{key:ce,flattenColumns:K,cells:se,stickyOffsets:V,rowComponent:oe,cellComponent:ie,onHeaderRow:J,index:ce});return de}))};const Header$2=responseImmutable(Header$1);function parseColWidth(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof $=="number"?$:$.endsWith("%")?C*parseFloat($)/100:null}function useWidthColumns(C,$,V){return React__namespace.useMemo(function(){if($&&$>0){var F=0,K=0;C.forEach(function(ie){var se=parseColWidth($,ie.width);se?F+=se:K+=1});var J=Math.max($,V),ee=Math.max(J-F,K),te=K,ne=ee/K,re=0,ae=C.map(function(ie){var se=_objectSpread2({},ie),ce=parseColWidth($,se.width);if(ce)se.width=ce;else{var de=Math.floor(ne);se.width=te===1?ee:de,ee-=de,te-=1}return re+=se.width,se});if(re<J){var oe=J/re;ee=J,ae.forEach(function(ie,se){var ce=Math.floor(ie.width*oe);ie.width=se===ae.length-1?ee:ce,ee-=ce})}return[ae,Math.max(re,J)]}return[C,$]},[C,$,V])}var _excluded$6=["children"],_excluded2=["fixed"];function convertChildrenToColumns(C){return toArray$6(C).filter(function($){return React__namespace.isValidElement($)}).map(function($){var V=$.key,F=$.props,K=F.children,J=_objectWithoutProperties(F,_excluded$6),ee=_objectSpread2({key:V},J);return K&&(ee.children=convertChildrenToColumns(K)),ee})}function filterHiddenColumns(C){return C.filter(function($){return $&&_typeof($)==="object"&&!$.hidden}).map(function($){var V=$.children;return V&&V.length>0?_objectSpread2(_objectSpread2({},$),{},{children:filterHiddenColumns(V)}):$})}function flatColumns(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return C.filter(function(V){return V&&_typeof(V)==="object"}).reduce(function(V,F,K){var J=F.fixed,ee=J===!0?"left":J,te="".concat($,"-").concat(K),ne=F.children;return ne&&ne.length>0?[].concat(_toConsumableArray(V),_toConsumableArray(flatColumns(ne,te).map(function(re){return _objectSpread2({fixed:ee},re)}))):[].concat(_toConsumableArray(V),[_objectSpread2(_objectSpread2({key:te},F),{},{fixed:ee})])},[])}function revertForRtl(C){return C.map(function($){var V=$.fixed,F=_objectWithoutProperties($,_excluded2),K=V;return V==="left"?K="right":V==="right"&&(K="left"),_objectSpread2({fixed:K},F)})}function useColumns(C,$){var V=C.prefixCls,F=C.columns,K=C.children,J=C.expandable,ee=C.expandedKeys,te=C.columnTitle,ne=C.getRowKey,re=C.onTriggerExpand,ae=C.expandIcon,oe=C.rowExpandable,ie=C.expandIconColumnIndex,se=C.direction,ce=C.expandRowByClick,de=C.columnWidth,le=C.fixed,ve=C.scrollWidth,fe=C.clientWidth,he=React__namespace.useMemo(function(){var Ee=F||convertChildrenToColumns(K)||[];return filterHiddenColumns(Ee.slice())},[F,K]),me=React__namespace.useMemo(function(){if(J){var Ee=he.slice();if(process.env.NODE_ENV!=="production"&&ie>=0&&warningOnce(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!Ee.includes(EXPAND_COLUMN)){var Ce=ie||0;Ce>=0&&(Ce||le==="left"||!le)&&Ee.splice(Ce,0,EXPAND_COLUMN),le==="right"&&Ee.splice(he.length,0,EXPAND_COLUMN)}process.env.NODE_ENV!=="production"&&Ee.filter(function(Ne){return Ne===EXPAND_COLUMN}).length>1&&warningOnce(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");var xe=Ee.indexOf(EXPAND_COLUMN);Ee=Ee.filter(function(Ne,De){return Ne!==EXPAND_COLUMN||De===xe});var $e=he[xe],Ie;le?Ie=le:Ie=$e?$e.fixed:null;var Fe=_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},INTERNAL_COL_DEFINE,{className:"".concat(V,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",te),"fixed",Ie),"className","".concat(V,"-row-expand-icon-cell")),"width",de),"render",function(De,Oe,we){var Ae=ne(Oe,we),ke=ee.has(Ae),je=oe?oe(Oe):!0,ze=ae({prefixCls:V,expanded:ke,expandable:je,record:Oe,onExpand:re});return ce?React__namespace.createElement("span",{onClick:function(Xe){return Xe.stopPropagation()}},ze):ze});return Ee.map(function(Ne){return Ne===EXPAND_COLUMN?Fe:Ne})}return process.env.NODE_ENV!=="production"&&he.includes(EXPAND_COLUMN)&&warningOnce(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),he.filter(function(Ne){return Ne!==EXPAND_COLUMN})},[J,he,ne,ee,ae,se]),ue=React__namespace.useMemo(function(){var Ee=me;return $&&(Ee=$(Ee)),Ee.length||(Ee=[{render:function(){return null}}]),Ee},[$,me,se]),pe=React__namespace.useMemo(function(){return se==="rtl"?revertForRtl(flatColumns(ue)):flatColumns(ue)},[ue,se,ve]),ye=React__namespace.useMemo(function(){for(var Ee=-1,Ce=pe.length-1;Ce>=0;Ce-=1){var xe=pe[Ce].fixed;if(xe==="left"||xe===!0){Ee=Ce;break}}if(Ee>=0)for(var $e=0;$e<=Ee;$e+=1){var Ie=pe[$e].fixed;if(Ie!=="left"&&Ie!==!0)return!0}var Fe=pe.findIndex(function(Oe){var we=Oe.fixed;return we==="right"});if(Fe>=0)for(var Ne=Fe;Ne<pe.length;Ne+=1){var De=pe[Ne].fixed;if(De!=="right")return!0}return!1},[pe]),be=useWidthColumns(pe,ve,fe),ge=_slicedToArray(be,2),_e=ge[0],Se=ge[1];return[ue,_e,Se,ye]}function useExpand(C,$,V){var F=getExpandableProps(C),K=F.expandIcon,J=F.expandedRowKeys,ee=F.defaultExpandedRowKeys,te=F.defaultExpandAllRows,ne=F.expandedRowRender,re=F.onExpand,ae=F.onExpandedRowsChange,oe=F.childrenColumnName,ie=K||renderExpandIcon$1,se=oe||"children",ce=React__namespace.useMemo(function(){return ne?"row":C.expandable&&C.internalHooks===INTERNAL_HOOKS&&C.expandable.__PARENT_RENDER_ICON__||$.some(function(ue){return ue&&_typeof(ue)==="object"&&ue[se]})?"nest":!1},[!!ne,$]),de=React__namespace.useState(function(){return ee||(te?findAllChildrenKeys($,V,se):[])}),le=_slicedToArray(de,2),ve=le[0],fe=le[1],he=React__namespace.useMemo(function(){return new Set(J||ve||[])},[J,ve]),me=React__namespace.useCallback(function(ue){var pe=V(ue,$.indexOf(ue)),ye,be=he.has(pe);be?(he.delete(pe),ye=_toConsumableArray(he)):ye=[].concat(_toConsumableArray(he),[pe]),fe(ye),re&&re(!be,ue),ae&&ae(ye)},[V,he,$,re,ae]);return process.env.NODE_ENV!=="production"&&ne&&$.some(function(ue){return Array.isArray(ue==null?void 0:ue[se])})&&warningOnce(!1,"`expandedRowRender` should not use with nested Table"),[F,ce,he,ie,se,me]}function useFixedInfo(C,$,V){var F=C.map(function(K,J){return getCellFixedInfo(J,J,C,$,V)});return useMemo(function(){return F},[F],function(K,J){return!isEqual(K,J)})}function useLayoutState(C){var $=React.useRef(C),V=React.useState({}),F=_slicedToArray(V,2),K=F[1],J=React.useRef(null),ee=React.useRef([]);function te(ne){ee.current.push(ne);var re=Promise.resolve();J.current=re,re.then(function(){if(J.current===re){var ae=ee.current,oe=$.current;ee.current=[],ae.forEach(function(ie){$.current=ie($.current)}),J.current=null,oe!==$.current&&K({})}})}return React.useEffect(function(){return function(){J.current=null}},[]),[$.current,te]}function useTimeoutLock(C){var $=React.useRef(C||null),V=React.useRef();function F(){window.clearTimeout(V.current)}function K(ee){$.current=ee,F(),V.current=window.setTimeout(function(){$.current=null,V.current=void 0},100)}function J(){return $.current}return React.useEffect(function(){return F},[]),[K,J]}function useHover(){var C=React__namespace.useState(-1),$=_slicedToArray(C,2),V=$[0],F=$[1],K=React__namespace.useState(-1),J=_slicedToArray(K,2),ee=J[0],te=J[1],ne=React__namespace.useCallback(function(re,ae){F(re),te(ae)},[]);return[V,ee,ne]}var defaultContainer=canUseDom()?window:null;function useSticky(C,$){var V=_typeof(C)==="object"?C:{},F=V.offsetHeader,K=F===void 0?0:F,J=V.offsetSummary,ee=J===void 0?0:J,te=V.offsetScroll,ne=te===void 0?0:te,re=V.getContainer,ae=re===void 0?function(){return defaultContainer}:re,oe=ae()||defaultContainer,ie=!!C;return React__namespace.useMemo(function(){return{isSticky:ie,stickyClassName:ie?"".concat($,"-sticky-holder"):"",offsetHeader:K,offsetSummary:ee,offsetScroll:ne,container:oe}},[ie,ne,K,ee,$,oe])}function useStickyOffsets(C,$,V){var F=React.useMemo(function(){var K=$.length,J=function(re,ae,oe){for(var ie=[],se=0,ce=re;ce!==ae;ce+=oe)ie.push(se),$[ce].fixed&&(se+=C[ce]||0);return ie},ee=J(0,K,1),te=J(K-1,-1,-1).reverse();return V==="rtl"?{left:te,right:ee}:{left:ee,right:te}},[C,$,V]);return F}function Panel(C){var $=C.className,V=C.children;return React__namespace.createElement("div",{className:$},V)}function getOffset(C){var $=getDOM(C),V=$.getBoundingClientRect(),F=document.documentElement;return{left:V.left+(window.pageXOffset||F.scrollLeft)-(F.clientLeft||document.body.clientLeft||0),top:V.top+(window.pageYOffset||F.scrollTop)-(F.clientTop||document.body.clientTop||0)}}var StickyScrollBar=function($,V){var F,K,J=$.scrollBodyRef,ee=$.onScroll,te=$.offsetScroll,ne=$.container,re=$.direction,ae=useContext(TableContext,"prefixCls"),oe=((F=J.current)===null||F===void 0?void 0:F.scrollWidth)||0,ie=((K=J.current)===null||K===void 0?void 0:K.clientWidth)||0,se=oe&&ie*(ie/oe),ce=React__namespace.useRef(),de=useLayoutState({scrollLeft:0,isHiddenScrollBar:!0}),le=_slicedToArray(de,2),ve=le[0],fe=le[1],he=React__namespace.useRef({delta:0,x:0}),me=React__namespace.useState(!1),ue=_slicedToArray(me,2),pe=ue[0],ye=ue[1],be=React__namespace.useRef(null);React__namespace.useEffect(function(){return function(){wrapperRaf.cancel(be.current)}},[]);var ge=function(){ye(!1)},_e=function($e){$e.persist(),he.current.delta=$e.pageX-ve.scrollLeft,he.current.x=0,ye(!0),$e.preventDefault()},Se=function($e){var Ie,Fe=$e||((Ie=window)===null||Ie===void 0?void 0:Ie.event),Ne=Fe.buttons;if(!pe||Ne===0){pe&&ye(!1);return}var De=he.current.x+$e.pageX-he.current.x-he.current.delta,Oe=re==="rtl";De=Math.max(Oe?se-ie:0,Math.min(Oe?0:ie-se,De));var we=!Oe||Math.abs(De)+Math.abs(se)<ie;we&&(ee({scrollLeft:De/ie*(oe+2)}),he.current.x=$e.pageX)},Ee=function(){wrapperRaf.cancel(be.current),be.current=wrapperRaf(function(){if(J.current){var $e=getOffset(J.current).top,Ie=$e+J.current.offsetHeight,Fe=ne===window?document.documentElement.scrollTop+window.innerHeight:getOffset(ne).top+ne.clientHeight;Ie-getScrollBarSize()<=Fe||$e>=Fe-te?fe(function(Ne){return _objectSpread2(_objectSpread2({},Ne),{},{isHiddenScrollBar:!0})}):fe(function(Ne){return _objectSpread2(_objectSpread2({},Ne),{},{isHiddenScrollBar:!1})})}})},Ce=function($e){fe(function(Ie){return _objectSpread2(_objectSpread2({},Ie),{},{scrollLeft:$e/oe*ie||0})})};return React__namespace.useImperativeHandle(V,function(){return{setScrollLeft:Ce,checkScrollBarVisible:Ee}}),React__namespace.useEffect(function(){var xe=addEventListenerWrap(document.body,"mouseup",ge,!1),$e=addEventListenerWrap(document.body,"mousemove",Se,!1);return Ee(),function(){xe.remove(),$e.remove()}},[se,pe]),React__namespace.useEffect(function(){if(J.current){for(var xe=[],$e=getDOM(J.current);$e;)xe.push($e),$e=$e.parentElement;return xe.forEach(function(Ie){return Ie.addEventListener("scroll",Ee,!1)}),window.addEventListener("resize",Ee,!1),window.addEventListener("scroll",Ee,!1),ne.addEventListener("scroll",Ee,!1),function(){xe.forEach(function(Ie){return Ie.removeEventListener("scroll",Ee)}),window.removeEventListener("resize",Ee),window.removeEventListener("scroll",Ee),ne.removeEventListener("scroll",Ee)}}},[ne]),React__namespace.useEffect(function(){ve.isHiddenScrollBar||fe(function(xe){var $e=J.current;return $e?_objectSpread2(_objectSpread2({},xe),{},{scrollLeft:$e.scrollLeft/$e.scrollWidth*$e.clientWidth}):xe})},[ve.isHiddenScrollBar]),oe<=ie||!se||ve.isHiddenScrollBar?null:React__namespace.createElement("div",{style:{height:getScrollBarSize(),width:ie,bottom:te},className:"".concat(ae,"-sticky-scroll")},React__namespace.createElement("div",{onMouseDown:_e,ref:ce,className:classNames("".concat(ae,"-sticky-scroll-bar"),_defineProperty({},"".concat(ae,"-sticky-scroll-bar-active"),pe)),style:{width:"".concat(se,"px"),transform:"translate3d(".concat(ve.scrollLeft,"px, 0, 0)")}}))};const StickyScrollBar$1=React__namespace.forwardRef(StickyScrollBar);var DEFAULT_PREFIX="rc-table",EMPTY_DATA=[],EMPTY_SCROLL_TARGET={};function defaultEmpty(){return"No Data"}function Table$2(C,$){var V=_objectSpread2({rowKey:"key",prefixCls:DEFAULT_PREFIX,emptyText:defaultEmpty},C),F=V.prefixCls,K=V.className,J=V.rowClassName,ee=V.style,te=V.data,ne=V.rowKey,re=V.scroll,ae=V.tableLayout,oe=V.direction,ie=V.title,se=V.footer,ce=V.summary,de=V.caption,le=V.id,ve=V.showHeader,fe=V.components,he=V.emptyText,me=V.onRow,ue=V.onHeaderRow,pe=V.onScroll,ye=V.internalHooks,be=V.transformColumns,ge=V.internalRefs,_e=V.tailor,Se=V.getContainerWidth,Ee=V.sticky,Ce=V.rowHoverable,xe=Ce===void 0?!0:Ce,$e=te||EMPTY_DATA,Ie=!!$e.length,Fe=ye===INTERNAL_HOOKS;process.env.NODE_ENV!=="production"&&(["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach(function(hn){warningOnce(V[hn]===void 0,"`".concat(hn,"` is removed, please use `onRow` instead."))}),warningOnce(!("getBodyWrapper"in V),"`getBodyWrapper` is deprecated, please use custom `components` instead."));var Ne=React__namespace.useCallback(function(hn,yn){return get(fe,hn)||yn},[fe]),De=React__namespace.useMemo(function(){return typeof ne=="function"?ne:function(hn){var yn=hn&&hn[ne];return process.env.NODE_ENV!=="production"&&warningOnce(yn!==void 0,"Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."),yn}},[ne]),Oe=Ne(["body"]),we=useHover(),Ae=_slicedToArray(we,3),ke=Ae[0],je=Ae[1],ze=Ae[2],Ve=useExpand(V,$e,De),Xe=_slicedToArray(Ve,6),Ye=Xe[0],at=Xe[1],Ue=Xe[2],Le=Xe[3],Te=Xe[4],Pe=Xe[5],Me=re==null?void 0:re.x,He=React__namespace.useState(0),We=_slicedToArray(He,2),Ke=We[0],rt=We[1],st=useColumns(_objectSpread2(_objectSpread2(_objectSpread2({},V),Ye),{},{expandable:!!Ye.expandedRowRender,columnTitle:Ye.columnTitle,expandedKeys:Ue,getRowKey:De,onTriggerExpand:Pe,expandIcon:Le,expandIconColumnIndex:Ye.expandIconColumnIndex,direction:oe,scrollWidth:Fe&&_e&&typeof Me=="number"?Me:null,clientWidth:Ke}),Fe?be:null),it=_slicedToArray(st,4),Je=it[0],ct=it[1],dt=it[2],vt=it[3],ht=dt!=null?dt:Me,bt=React__namespace.useMemo(function(){return{columns:Je,flattenColumns:ct}},[Je,ct]),Rt=React__namespace.useRef(),wt=React__namespace.useRef(),lt=React__namespace.useRef(),ut=React__namespace.useRef();React__namespace.useImperativeHandle($,function(){return{nativeElement:Rt.current,scrollTo:function(yn){var Bn;if(lt.current instanceof HTMLElement){var zn=yn.index,Gn=yn.top,fr=yn.key;if(validNumberValue(Gn)){var Yn;(Yn=lt.current)===null||Yn===void 0||Yn.scrollTo({top:Gn})}else{var Jn,pr=fr!=null?fr:De($e[zn]);(Jn=lt.current.querySelector('[data-row-key="'.concat(pr,'"]')))===null||Jn===void 0||Jn.scrollIntoView()}}else(Bn=lt.current)!==null&&Bn!==void 0&&Bn.scrollTo&&lt.current.scrollTo(yn)}}});var Ge=React__namespace.useRef(),et=React__namespace.useState(!1),Ze=_slicedToArray(et,2),nt=Ze[0],tt=Ze[1],qe=React__namespace.useState(!1),ot=_slicedToArray(qe,2),ft=ot[0],yt=ot[1],$t=React__namespace.useState(new Map),kt=_slicedToArray($t,2),Dt=kt[0],St=kt[1],Bt=getColumnsKey(ct),It=Bt.map(function(hn){return Dt.get(hn)}),Pt=React__namespace.useMemo(function(){return It},[It.join("_")]),Tt=useStickyOffsets(Pt,ct,oe),Ct=re&&validateValue(re.y),At=re&&validateValue(ht)||!!Ye.fixed,Ht=At&&ct.some(function(hn){var yn=hn.fixed;return yn}),Gt=React__namespace.useRef(),zt=useSticky(Ee,F),Ft=zt.isSticky,Vt=zt.offsetHeader,Kt=zt.offsetSummary,qt=zt.offsetScroll,ln=zt.stickyClassName,Cn=zt.container,Wt=React__namespace.useMemo(function(){return ce==null?void 0:ce($e)},[ce,$e]),Jt=(Ct||Ft)&&React__namespace.isValidElement(Wt)&&Wt.type===Summary&&Wt.props.fixed,dn,sn,gn;Ct&&(sn={overflowY:Ie?"scroll":"auto",maxHeight:re.y}),At&&(dn={overflowX:"auto"},Ct||(sn={overflowY:"hidden"}),gn={width:ht===!0?"auto":ht,minWidth:"100%"});var mt=React__namespace.useCallback(function(hn,yn){St(function(Bn){if(Bn.get(hn)!==yn){var zn=new Map(Bn);return zn.set(hn,yn),zn}return Bn})},[]),Ot=useTimeoutLock(null),pt=_slicedToArray(Ot,2),_t=pt[0],Et=pt[1];function Nt(hn,yn){yn&&(typeof yn=="function"?yn(hn):yn.scrollLeft!==hn&&(yn.scrollLeft=hn,yn.scrollLeft!==hn&&setTimeout(function(){yn.scrollLeft=hn},0)))}var Mt=useEvent(function(hn){var yn=hn.currentTarget,Bn=hn.scrollLeft,zn=oe==="rtl",Gn=typeof Bn=="number"?Bn:yn.scrollLeft,fr=yn||EMPTY_SCROLL_TARGET;if(!Et()||Et()===fr){var Yn;_t(fr),Nt(Gn,wt.current),Nt(Gn,lt.current),Nt(Gn,Ge.current),Nt(Gn,(Yn=Gt.current)===null||Yn===void 0?void 0:Yn.setScrollLeft)}var Jn=yn||wt.current;if(Jn){var pr=Fe&&_e&&typeof ht=="number"?ht:Jn.scrollWidth,gr=Jn.clientWidth;if(pr===gr){tt(!1),yt(!1);return}zn?(tt(-Gn<pr-gr),yt(-Gn>0)):(tt(Gn>0),yt(Gn<pr-gr))}}),Lt=useEvent(function(hn){Mt(hn),pe==null||pe(hn)}),Xt=function(){if(At&&lt.current){var yn;Mt({currentTarget:getDOM(lt.current),scrollLeft:(yn=lt.current)===null||yn===void 0?void 0:yn.scrollLeft})}else tt(!1),yt(!1)},vn=function(yn){var Bn,zn=yn.width;(Bn=Gt.current)===null||Bn===void 0||Bn.checkScrollBarVisible();var Gn=Rt.current?Rt.current.offsetWidth:zn;Fe&&Se&&Rt.current&&(Gn=Se(Rt.current,Gn)||Gn),Gn!==Ke&&(Xt(),rt(Gn))},bn=React__namespace.useRef(!1);React__namespace.useEffect(function(){bn.current&&Xt()},[At,te,Je.length]),React__namespace.useEffect(function(){bn.current=!0},[]);var _n=React__namespace.useState(0),Nn=_slicedToArray(_n,2),Tn=Nn[0],Qt=Nn[1],Yt=React__namespace.useState(!0),wn=_slicedToArray(Yt,2),Fn=wn[0],Ln=wn[1];useLayoutEffect$1(function(){(!_e||!Fe)&&(lt.current instanceof Element?Qt(getTargetScrollBarSize(lt.current).width):Qt(getTargetScrollBarSize(ut.current).width)),Ln(isStyleSupport("position","sticky"))},[]),React__namespace.useEffect(function(){Fe&&ge&&(ge.body.current=lt.current)});var Vn=React__namespace.useCallback(function(hn){return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(Header$2,hn),Jt==="top"&&React__namespace.createElement(Footer$3,hn,Wt))},[Jt,Wt]),nr=React__namespace.useCallback(function(hn){return React__namespace.createElement(Footer$3,hn,Wt)},[Wt]),Un=Ne(["table"],"table"),Pn=React__namespace.useMemo(function(){return ae||(Ht?ht==="max-content"?"auto":"fixed":Ct||Ft||ct.some(function(hn){var yn=hn.ellipsis;return yn})?"fixed":"auto")},[Ct,Ht,ct,ae,Ft]),rr,lr={colWidths:Pt,columCount:ct.length,stickyOffsets:Tt,onHeaderRow:ue,fixHeader:Ct,scroll:re},En=React__namespace.useMemo(function(){return Ie?null:typeof he=="function"?he():he},[Ie,he]),Zt=React__namespace.createElement(Body$1,{data:$e,measureColumnWidth:Ct||At||Ft}),Sn=React__namespace.createElement(ColGroup,{colWidths:ct.map(function(hn){var yn=hn.width;return yn}),columns:ct}),$n=de!=null?React__namespace.createElement("caption",{className:"".concat(F,"-caption")},de):void 0,On=pickAttrs(V,{data:!0}),An=pickAttrs(V,{aria:!0});if(Ct||Ft){var Kn;typeof Oe=="function"?(Kn=Oe($e,{scrollbarSize:Tn,ref:lt,onScroll:Mt}),lr.colWidths=ct.map(function(hn,yn){var Bn=hn.width,zn=yn===ct.length-1?Bn-Tn:Bn;return typeof zn=="number"&&!Number.isNaN(zn)?zn:(process.env.NODE_ENV!=="production"&&warningOnce(V.columns.length===0,"When use `components.body` with render props. Each column should have a fixed `width` value."),0)})):Kn=React__namespace.createElement("div",{style:_objectSpread2(_objectSpread2({},dn),sn),onScroll:Lt,ref:lt,className:classNames("".concat(F,"-body"))},React__namespace.createElement(Un,_extends({style:_objectSpread2(_objectSpread2({},gn),{},{tableLayout:Pn})},An),$n,Sn,Zt,!Jt&&Wt&&React__namespace.createElement(Footer$3,{stickyOffsets:Tt,flattenColumns:ct},Wt)));var Xn=_objectSpread2(_objectSpread2(_objectSpread2({noData:!$e.length,maxContentScroll:At&&ht==="max-content"},lr),bt),{},{direction:oe,stickyClassName:ln,onScroll:Mt});rr=React__namespace.createElement(React__namespace.Fragment,null,ve!==!1&&React__namespace.createElement(FixedHolder$1,_extends({},Xn,{stickyTopOffset:Vt,className:"".concat(F,"-header"),ref:wt}),Vn),Kn,Jt&&Jt!=="top"&&React__namespace.createElement(FixedHolder$1,_extends({},Xn,{stickyBottomOffset:Kt,className:"".concat(F,"-summary"),ref:Ge}),nr),Ft&&lt.current&&lt.current instanceof Element&&React__namespace.createElement(StickyScrollBar$1,{ref:Gt,offsetScroll:qt,scrollBodyRef:lt,onScroll:Mt,container:Cn,direction:oe}))}else rr=React__namespace.createElement("div",{style:_objectSpread2(_objectSpread2({},dn),sn),className:classNames("".concat(F,"-content")),onScroll:Mt,ref:lt},React__namespace.createElement(Un,_extends({style:_objectSpread2(_objectSpread2({},gn),{},{tableLayout:Pn})},An),$n,Sn,ve!==!1&&React__namespace.createElement(Header$2,_extends({},lr,bt)),Zt,Wt&&React__namespace.createElement(Footer$3,{stickyOffsets:Tt,flattenColumns:ct},Wt)));var or=React__namespace.createElement("div",_extends({className:classNames(F,K,_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(F,"-rtl"),oe==="rtl"),"".concat(F,"-ping-left"),nt),"".concat(F,"-ping-right"),ft),"".concat(F,"-layout-fixed"),ae==="fixed"),"".concat(F,"-fixed-header"),Ct),"".concat(F,"-fixed-column"),Ht),"".concat(F,"-fixed-column-gapped"),Ht&&vt),"".concat(F,"-scroll-horizontal"),At),"".concat(F,"-has-fix-left"),ct[0]&&ct[0].fixed),"".concat(F,"-has-fix-right"),ct[ct.length-1]&&ct[ct.length-1].fixed==="right")),style:ee,id:le,ref:Rt},On),ie&&React__namespace.createElement(Panel,{className:"".concat(F,"-title")},ie($e)),React__namespace.createElement("div",{ref:ut,className:"".concat(F,"-container")},rr),se&&React__namespace.createElement(Panel,{className:"".concat(F,"-footer")},se($e)));At&&(or=React__namespace.createElement(RefResizeObserver,{onResize:vn},or));var cr=useFixedInfo(ct,Tt,oe),ur=React__namespace.useMemo(function(){return{scrollX:ht,prefixCls:F,getComponent:Ne,scrollbarSize:Tn,direction:oe,fixedInfoList:cr,isSticky:Ft,supportSticky:Fn,componentWidth:Ke,fixHeader:Ct,fixColumn:Ht,horizonScroll:At,tableLayout:Pn,rowClassName:J,expandedRowClassName:Ye.expandedRowClassName,expandIcon:Le,expandableType:at,expandRowByClick:Ye.expandRowByClick,expandedRowRender:Ye.expandedRowRender,onTriggerExpand:Pe,expandIconColumnIndex:Ye.expandIconColumnIndex,indentSize:Ye.indentSize,allColumnsFixedLeft:ct.every(function(hn){return hn.fixed==="left"}),emptyNode:En,columns:Je,flattenColumns:ct,onColumnResize:mt,hoverStartRow:ke,hoverEndRow:je,onHover:ze,rowExpandable:Ye.rowExpandable,onRow:me,getRowKey:De,expandedKeys:Ue,childrenColumnName:Te,rowHoverable:xe}},[ht,F,Ne,Tn,oe,cr,Ft,Fn,Ke,Ct,Ht,At,Pn,J,Ye.expandedRowClassName,Le,at,Ye.expandRowByClick,Ye.expandedRowRender,Pe,Ye.expandIconColumnIndex,Ye.indentSize,En,Je,ct,mt,ke,je,ze,Ye.rowExpandable,me,De,Ue,Te,xe]);return React__namespace.createElement(TableContext.Provider,{value:ur},or)}var RefTable=React__namespace.forwardRef(Table$2);process.env.NODE_ENV!=="production"&&(RefTable.displayName="Table");function genTable(C){return makeImmutable(RefTable,C)}var ImmutableTable=genTable();ImmutableTable.EXPAND_COLUMN=EXPAND_COLUMN,ImmutableTable.INTERNAL_HOOKS=INTERNAL_HOOKS,ImmutableTable.Column=Column$2,ImmutableTable.ColumnGroup=ColumnGroup$2,ImmutableTable.Summary=FooterComponents;var StaticContext=createContext(null),GridContext=createContext(null);function getColumnWidth(C,$,V){var F=$||1;return V[C+F]-(V[C]||0)}function VirtualCell(C){var $=C.rowInfo,V=C.column,F=C.colIndex,K=C.indent,J=C.index,ee=C.component,te=C.renderIndex,ne=C.record,re=C.style,ae=C.className,oe=C.inverse,ie=C.getHeight,se=V.render,ce=V.dataIndex,de=V.className,le=V.width,ve=useContext(GridContext,["columnsOffset"]),fe=ve.columnsOffset,he=getCellProps($,V,F,K,J),me=he.key,ue=he.fixedInfo,pe=he.appendCellNode,ye=he.additionalCellProps,be=ye.style,ge=ye.colSpan,_e=ge===void 0?1:ge,Se=ye.rowSpan,Ee=Se===void 0?1:Se,Ce=F-1,xe=getColumnWidth(Ce,_e,fe),$e=_e>1?le-xe:0,Ie=_objectSpread2(_objectSpread2(_objectSpread2({},be),re),{},{flex:"0 0 ".concat(xe,"px"),width:"".concat(xe,"px"),marginRight:$e,pointerEvents:"auto"}),Fe=React__namespace.useMemo(function(){return oe?Ee<=1:_e===0||Ee===0||Ee>1},[Ee,_e,oe]);Fe?Ie.visibility="hidden":oe&&(Ie.height=ie==null?void 0:ie(Ee));var Ne=Fe?function(){return null}:se,De={};return(Ee===0||_e===0)&&(De.rowSpan=1,De.colSpan=1),React__namespace.createElement(Cell$1,_extends({className:classNames(de,ae),ellipsis:V.ellipsis,align:V.align,scope:V.rowScope,component:ee,prefixCls:$.prefixCls,key:me,record:ne,index:J,renderIndex:te,dataIndex:ce,render:Ne,shouldCellUpdate:V.shouldCellUpdate},ue,{appendNode:pe,additionalProps:_objectSpread2(_objectSpread2({},ye),{},{style:Ie},De)}))}var _excluded$5=["data","index","className","rowKey","style","extra","getHeight"],BodyLine=React__namespace.forwardRef(function(C,$){var V=C.data,F=C.index,K=C.className,J=C.rowKey,ee=C.style,te=C.extra,ne=C.getHeight,re=_objectWithoutProperties(C,_excluded$5),ae=V.record,oe=V.indent,ie=V.index,se=useContext(TableContext,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ce=se.scrollX,de=se.flattenColumns,le=se.prefixCls,ve=se.fixColumn,fe=se.componentWidth,he=useContext(StaticContext,["getComponent"]),me=he.getComponent,ue=useRowInfo(ae,J,F,oe),pe=me(["body","row"],"div"),ye=me(["body","cell"],"div"),be=ue.rowSupportExpand,ge=ue.expanded,_e=ue.rowProps,Se=ue.expandedRowRender,Ee=ue.expandedRowClassName,Ce;if(be&&ge){var xe=Se(ae,F,oe+1,ge),$e=computedExpandedClassName(Ee,ae,F,oe),Ie={};ve&&(Ie={style:_defineProperty({},"--virtual-width","".concat(fe,"px"))});var Fe="".concat(le,"-expanded-row-cell");Ce=React__namespace.createElement(pe,{className:classNames("".concat(le,"-expanded-row"),"".concat(le,"-expanded-row-level-").concat(oe+1),$e)},React__namespace.createElement(Cell$1,{component:ye,prefixCls:le,className:classNames(Fe,_defineProperty({},"".concat(Fe,"-fixed"),ve)),additionalProps:Ie},xe))}var Ne=_objectSpread2(_objectSpread2({},ee),{},{width:ce});te&&(Ne.position="absolute",Ne.pointerEvents="none");var De=React__namespace.createElement(pe,_extends({},_e,re,{"data-row-key":J,ref:be?null:$,className:classNames(K,"".concat(le,"-row"),_e==null?void 0:_e.className,_defineProperty({},"".concat(le,"-row-extra"),te)),style:_objectSpread2(_objectSpread2({},Ne),_e==null?void 0:_e.style)}),de.map(function(Oe,we){return React__namespace.createElement(VirtualCell,{key:we,component:ye,rowInfo:ue,column:Oe,colIndex:we,indent:oe,index:F,renderIndex:ie,record:ae,inverse:te,getHeight:ne})}));return be?React__namespace.createElement("div",{ref:$},De,Ce):De}),ResponseBodyLine=responseImmutable(BodyLine);process.env.NODE_ENV!=="production"&&(ResponseBodyLine.displayName="BodyLine");var Grid=React__namespace.forwardRef(function(C,$){var V=C.data,F=C.onScroll,K=useContext(TableContext,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),J=K.flattenColumns,ee=K.onColumnResize,te=K.getRowKey,ne=K.expandedKeys,re=K.prefixCls,ae=K.childrenColumnName,oe=K.scrollX,ie=K.direction,se=useContext(StaticContext),ce=se.sticky,de=se.scrollY,le=se.listItemHeight,ve=se.getComponent,fe=se.onScroll,he=React__namespace.useRef(),me=useFlattenRecords(V,ae,ne,te),ue=React__namespace.useMemo(function(){var Ce=0;return J.map(function(xe){var $e=xe.width,Ie=xe.key;return Ce+=$e,[Ie,$e,Ce]})},[J]),pe=React__namespace.useMemo(function(){return ue.map(function(Ce){return Ce[2]})},[ue]);React__namespace.useEffect(function(){ue.forEach(function(Ce){var xe=_slicedToArray(Ce,2),$e=xe[0],Ie=xe[1];ee($e,Ie)})},[ue]),React__namespace.useImperativeHandle($,function(){var Ce,xe={scrollTo:function(Ie){var Fe;(Fe=he.current)===null||Fe===void 0||Fe.scrollTo(Ie)},nativeElement:(Ce=he.current)===null||Ce===void 0?void 0:Ce.nativeElement};return Object.defineProperty(xe,"scrollLeft",{get:function(){var Ie;return((Ie=he.current)===null||Ie===void 0?void 0:Ie.getScrollInfo().x)||0},set:function(Ie){var Fe;(Fe=he.current)===null||Fe===void 0||Fe.scrollTo({left:Ie})}}),xe});var ye=function(xe,$e){var Ie,Fe=(Ie=me[$e])===null||Ie===void 0?void 0:Ie.record,Ne=xe.onCell;if(Ne){var De,Oe=Ne(Fe,$e);return(De=Oe==null?void 0:Oe.rowSpan)!==null&&De!==void 0?De:1}return 1},be=function(xe){var $e=xe.start,Ie=xe.end,Fe=xe.getSize,Ne=xe.offsetY;if(Ie<0)return null;for(var De=J.filter(function(Le){return ye(Le,$e)===0}),Oe=$e,we=function(Te){if(De=De.filter(function(Pe){return ye(Pe,Te)===0}),!De.length)return Oe=Te,1},Ae=$e;Ae>=0&&!we(Ae);Ae-=1);for(var ke=J.filter(function(Le){return ye(Le,Ie)!==1}),je=Ie,ze=function(Te){if(ke=ke.filter(function(Pe){return ye(Pe,Te)!==1}),!ke.length)return je=Math.max(Te-1,Ie),1},Ve=Ie;Ve<me.length&&!ze(Ve);Ve+=1);for(var Xe=[],Ye=function(Te){var Pe=me[Te];if(!Pe)return 1;J.some(function(Me){return ye(Me,Te)>1})&&Xe.push(Te)},at=Oe;at<=je;at+=1)Ye(at);var Ue=Xe.map(function(Le){var Te=me[Le],Pe=te(Te.record,Le),Me=function(Ke){var rt=Le+Ke-1,st=te(me[rt].record,rt),it=Fe(Pe,st);return it.bottom-it.top},He=Fe(Pe);return React__namespace.createElement(ResponseBodyLine,{key:Le,data:Te,rowKey:Pe,index:Le,style:{top:-Ne+He.top},extra:!0,getHeight:Me})});return Ue},ge=React__namespace.useMemo(function(){return{columnsOffset:pe}},[pe]),_e="".concat(re,"-tbody"),Se=ve(["body","wrapper"]),Ee={};return ce&&(Ee.position="sticky",Ee.bottom=0,_typeof(ce)==="object"&&ce.offsetScroll&&(Ee.bottom=ce.offsetScroll)),React__namespace.createElement(GridContext.Provider,{value:ge},React__namespace.createElement(List$1,{fullHeight:!1,ref:he,prefixCls:"".concat(_e,"-virtual"),styles:{horizontalScrollBar:Ee},className:_e,height:de,itemHeight:le||24,data:me,itemKey:function(xe){return te(xe.record)},component:Se,scrollWidth:oe,direction:ie,onVirtualScroll:function(xe){var $e,Ie=xe.x;F({currentTarget:($e=he.current)===null||$e===void 0?void 0:$e.nativeElement,scrollLeft:Ie})},onScroll:fe,extraRender:be},function(Ce,xe,$e){var Ie=te(Ce.record,xe);return React__namespace.createElement(ResponseBodyLine,{data:Ce,rowKey:Ie,index:xe,style:$e.style})}))}),ResponseGrid=responseImmutable(Grid);process.env.NODE_ENV!=="production"&&(ResponseGrid.displayName="ResponseGrid");var renderBody=function($,V){var F=V.ref,K=V.onScroll;return React__namespace.createElement(ResponseGrid,{ref:F,data:$,onScroll:K})};function VirtualTable(C,$){var V=C.data,F=C.columns,K=C.scroll,J=C.sticky,ee=C.prefixCls,te=ee===void 0?DEFAULT_PREFIX:ee,ne=C.className,re=C.listItemHeight,ae=C.components,oe=C.onScroll,ie=K||{},se=ie.x,ce=ie.y;typeof se!="number"&&(process.env.NODE_ENV!=="production"&&warningOnce(!se,"`scroll.x` in virtual table must be number."),se=1),typeof ce!="number"&&(ce=500,process.env.NODE_ENV!=="production"&&warningOnce(!1,"`scroll.y` in virtual table must be number."));var de=useEvent(function(fe,he){return get(ae,fe)||he}),le=useEvent(oe),ve=React__namespace.useMemo(function(){return{sticky:J,scrollY:ce,listItemHeight:re,getComponent:de,onScroll:le}},[J,ce,re,de,le]);return React__namespace.createElement(StaticContext.Provider,{value:ve},React__namespace.createElement(ImmutableTable,_extends({},C,{className:classNames(ne,"".concat(te,"-virtual")),scroll:_objectSpread2(_objectSpread2({},K),{},{x:se}),components:_objectSpread2(_objectSpread2({},ae),{},{body:V!=null&&V.length?renderBody:void 0}),columns:F,internalHooks:INTERNAL_HOOKS,tailor:!0,ref:$})))}var RefVirtualTable=React__namespace.forwardRef(VirtualTable);process.env.NODE_ENV!=="production"&&(RefVirtualTable.displayName="VirtualTable");function genVirtualTable(C){return makeImmutable(RefVirtualTable,C)}genVirtualTable();const Column=C=>null,Column$1=Column,ColumnGroup=C=>null,ColumnGroup$1=ColumnGroup;var TreeContext=React__namespace.createContext(null),UnstableContext=React__namespace.createContext({}),Indent=function($){for(var V=$.prefixCls,F=$.level,K=$.isStart,J=$.isEnd,ee="".concat(V,"-indent-unit"),te=[],ne=0;ne<F;ne+=1)te.push(React__namespace.createElement("span",{key:ne,className:classNames(ee,_defineProperty(_defineProperty({},"".concat(ee,"-start"),K[ne]),"".concat(ee,"-end"),J[ne]))}));return React__namespace.createElement("span",{"aria-hidden":"true",className:"".concat(V,"-indent")},te)};const Indent$1=React__namespace.memo(Indent);var _excluded$4=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ICON_OPEN="open",ICON_CLOSE="close",defaultTitle="---",TreeNode=function($){var V,F,K,J=$.eventKey,ee=$.className,te=$.style,ne=$.dragOver,re=$.dragOverGapTop,ae=$.dragOverGapBottom,oe=$.isLeaf,ie=$.isStart,se=$.isEnd,ce=$.expanded,de=$.selected,le=$.checked,ve=$.halfChecked,fe=$.loading,he=$.domRef,me=$.active,ue=$.data,pe=$.onMouseMove,ye=$.selectable,be=_objectWithoutProperties($,_excluded$4),ge=React.useContext(TreeContext),_e=React.useContext(UnstableContext),Se=React.useRef(null),Ee=React.useState(!1),Ce=_slicedToArray(Ee,2),xe=Ce[0],$e=Ce[1],Ie=!!(ge.disabled||$.disabled||(V=_e.nodeDisabled)!==null&&V!==void 0&&V.call(_e,ue)),Fe=React.useMemo(function(){return!ge.checkable||$.checkable===!1?!1:ge.checkable},[ge.checkable,$.checkable]),Ne=function(et){Ie||ge.onNodeSelect(et,convertNodePropsToEventData($))},De=function(et){Ie||!Fe||$.disableCheckbox||ge.onNodeCheck(et,convertNodePropsToEventData($),!le)},Oe=React.useMemo(function(){return typeof ye=="boolean"?ye:ge.selectable},[ye,ge.selectable]),we=function(et){ge.onNodeClick(et,convertNodePropsToEventData($)),Oe?Ne(et):De(et)},Ae=function(et){ge.onNodeDoubleClick(et,convertNodePropsToEventData($))},ke=function(et){ge.onNodeMouseEnter(et,convertNodePropsToEventData($))},je=function(et){ge.onNodeMouseLeave(et,convertNodePropsToEventData($))},ze=function(et){ge.onNodeContextMenu(et,convertNodePropsToEventData($))},Ve=React.useMemo(function(){return!!(ge.draggable&&(!ge.draggable.nodeDraggable||ge.draggable.nodeDraggable(ue)))},[ge.draggable,ue]),Xe=function(et){et.stopPropagation(),$e(!0),ge.onNodeDragStart(et,$);try{et.dataTransfer.setData("text/plain","")}catch(Ze){}},Ye=function(et){et.preventDefault(),et.stopPropagation(),ge.onNodeDragEnter(et,$)},at=function(et){et.preventDefault(),et.stopPropagation(),ge.onNodeDragOver(et,$)},Ue=function(et){et.stopPropagation(),ge.onNodeDragLeave(et,$)},Le=function(et){et.stopPropagation(),$e(!1),ge.onNodeDragEnd(et,$)},Te=function(et){et.preventDefault(),et.stopPropagation(),$e(!1),ge.onNodeDrop(et,$)},Pe=function(et){fe||ge.onNodeExpand(et,convertNodePropsToEventData($))},Me=React.useMemo(function(){var Ge=getEntity(ge.keyEntities,J)||{},et=Ge.children;return!!(et||[]).length},[ge.keyEntities,J]),He=React.useMemo(function(){return oe===!1?!1:oe||!ge.loadData&&!Me||ge.loadData&&$.loaded&&!Me},[oe,ge.loadData,Me,$.loaded]);React.useEffect(function(){fe||typeof ge.loadData=="function"&&ce&&!He&&!$.loaded&&ge.onNodeLoad(convertNodePropsToEventData($))},[fe,ge.loadData,ge.onNodeLoad,ce,He,$]);var We=React.useMemo(function(){var Ge;return(Ge=ge.draggable)!==null&&Ge!==void 0&&Ge.icon?React.createElement("span",{className:"".concat(ge.prefixCls,"-draggable-icon")},ge.draggable.icon):null},[ge.draggable]),Ke=function(et){var Ze=$.switcherIcon||ge.switcherIcon;return typeof Ze=="function"?Ze(_objectSpread2(_objectSpread2({},$),{},{isLeaf:et})):Ze},rt=function(){if(He){var et=Ke(!0);return et!==!1?React.createElement("span",{className:classNames("".concat(ge.prefixCls,"-switcher"),"".concat(ge.prefixCls,"-switcher-noop"))},et):null}var Ze=Ke(!1);return Ze!==!1?React.createElement("span",{onClick:Pe,className:classNames("".concat(ge.prefixCls,"-switcher"),"".concat(ge.prefixCls,"-switcher_").concat(ce?ICON_OPEN:ICON_CLOSE))},Ze):null},st=React.useMemo(function(){if(!Fe)return null;var Ge=typeof Fe!="boolean"?Fe:null;return React.createElement("span",{className:classNames("".concat(ge.prefixCls,"-checkbox"),_defineProperty(_defineProperty(_defineProperty({},"".concat(ge.prefixCls,"-checkbox-checked"),le),"".concat(ge.prefixCls,"-checkbox-indeterminate"),!le&&ve),"".concat(ge.prefixCls,"-checkbox-disabled"),Ie||$.disableCheckbox)),onClick:De,role:"checkbox","aria-checked":ve?"mixed":le,"aria-disabled":Ie||$.disableCheckbox,"aria-label":"Select ".concat(typeof $.title=="string"?$.title:"tree node")},Ge)},[Fe,le,ve,Ie,$.disableCheckbox,$.title]),it=React.useMemo(function(){return He?null:ce?ICON_OPEN:ICON_CLOSE},[He,ce]),Je=React.useMemo(function(){return React.createElement("span",{className:classNames("".concat(ge.prefixCls,"-iconEle"),"".concat(ge.prefixCls,"-icon__").concat(it||"docu"),_defineProperty({},"".concat(ge.prefixCls,"-icon_loading"),fe))})},[ge.prefixCls,it,fe]),ct=React.useMemo(function(){var Ge=!!ge.draggable,et=!$.disabled&&Ge&&ge.dragOverNodeKey===J;return et?ge.dropIndicatorRender({dropPosition:ge.dropPosition,dropLevelOffset:ge.dropLevelOffset,indent:ge.indent,prefixCls:ge.prefixCls,direction:ge.direction}):null},[ge.dropPosition,ge.dropLevelOffset,ge.indent,ge.prefixCls,ge.direction,ge.draggable,ge.dragOverNodeKey,ge.dropIndicatorRender]),dt=React.useMemo(function(){var Ge=$.title,et=Ge===void 0?defaultTitle:Ge,Ze="".concat(ge.prefixCls,"-node-content-wrapper"),nt;if(ge.showIcon){var tt=$.icon||ge.icon;nt=tt?React.createElement("span",{className:classNames("".concat(ge.prefixCls,"-iconEle"),"".concat(ge.prefixCls,"-icon__customize"))},typeof tt=="function"?tt($):tt):Je}else ge.loadData&&fe&&(nt=Je);var qe;return typeof et=="function"?qe=et(ue):ge.titleRender?qe=ge.titleRender(ue):qe=et,React.createElement("span",{ref:Se,title:typeof et=="string"?et:"",className:classNames(Ze,"".concat(Ze,"-").concat(it||"normal"),_defineProperty({},"".concat(ge.prefixCls,"-node-selected"),!Ie&&(de||xe))),onMouseEnter:ke,onMouseLeave:je,onContextMenu:ze,onClick:we,onDoubleClick:Ae},nt,React.createElement("span",{className:"".concat(ge.prefixCls,"-title")},qe),ct)},[ge.prefixCls,ge.showIcon,$,ge.icon,Je,ge.titleRender,ue,it,ke,je,ze,we,Ae]),vt=pickAttrs(be,{aria:!0,data:!0}),ht=getEntity(ge.keyEntities,J)||{},bt=ht.level,Rt=se[se.length-1],wt=!Ie&&Ve,lt=ge.draggingNodeKey===J,ut=ye!==void 0?{"aria-selected":!!ye}:void 0;return React.createElement("div",_extends({ref:he,role:"treeitem","aria-expanded":oe?void 0:ce,className:classNames(ee,"".concat(ge.prefixCls,"-treenode"),(K={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(K,"".concat(ge.prefixCls,"-treenode-disabled"),Ie),"".concat(ge.prefixCls,"-treenode-switcher-").concat(ce?"open":"close"),!oe),"".concat(ge.prefixCls,"-treenode-checkbox-checked"),le),"".concat(ge.prefixCls,"-treenode-checkbox-indeterminate"),ve),"".concat(ge.prefixCls,"-treenode-selected"),de),"".concat(ge.prefixCls,"-treenode-loading"),fe),"".concat(ge.prefixCls,"-treenode-active"),me),"".concat(ge.prefixCls,"-treenode-leaf-last"),Rt),"".concat(ge.prefixCls,"-treenode-draggable"),Ve),"dragging",lt),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(K,"drop-target",ge.dropTargetKey===J),"drop-container",ge.dropContainerKey===J),"drag-over",!Ie&&ne),"drag-over-gap-top",!Ie&&re),"drag-over-gap-bottom",!Ie&&ae),"filter-node",(F=ge.filterTreeNode)===null||F===void 0?void 0:F.call(ge,convertNodePropsToEventData($))),"".concat(ge.prefixCls,"-treenode-leaf"),He))),style:te,draggable:wt,onDragStart:wt?Xe:void 0,onDragEnter:Ve?Ye:void 0,onDragOver:Ve?at:void 0,onDragLeave:Ve?Ue:void 0,onDrop:Ve?Te:void 0,onDragEnd:Ve?Le:void 0,onMouseMove:pe},ut,vt),React.createElement(Indent$1,{prefixCls:ge.prefixCls,level:bt,isStart:ie,isEnd:se}),We,rt(),st,dt)};TreeNode.isTreeNode=1,process.env.NODE_ENV!=="production"&&(TreeNode.displayName="TreeNode");function arrDel(C,$){if(!C)return[];var V=C.slice(),F=V.indexOf($);return F>=0&&V.splice(F,1),V}function arrAdd(C,$){var V=(C||[]).slice();return V.indexOf($)===-1&&V.push($),V}function posToArr(C){return C.split("-")}function getDragChildrenKeys(C,$){var V=[],F=getEntity($,C);function K(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];J.forEach(function(ee){var te=ee.key,ne=ee.children;V.push(te),K(ne)})}return K(F.children),V}function isLastChild(C){if(C.parent){var $=posToArr(C.pos);return Number($[$.length-1])===C.parent.children.length-1}return!1}function isFirstChild(C){var $=posToArr(C.pos);return Number($[$.length-1])===0}function calcDropPosition(C,$,V,F,K,J,ee,te,ne,re){var ae,oe=C.clientX,ie=C.clientY,se=C.target.getBoundingClientRect(),ce=se.top,de=se.height,le=(re==="rtl"?-1:1)*(((K==null?void 0:K.x)||0)-oe),ve=(le-12)/F,fe=ne.filter(function(Ie){var Fe;return(Fe=te[Ie])===null||Fe===void 0||(Fe=Fe.children)===null||Fe===void 0?void 0:Fe.length}),he=getEntity(te,V.eventKey);if(ie<ce+de/2){var me=ee.findIndex(function(Ie){return Ie.key===he.key}),ue=me<=0?0:me-1,pe=ee[ue].key;he=getEntity(te,pe)}var ye=he.key,be=he,ge=he.key,_e=0,Se=0;if(!fe.includes(ye))for(var Ee=0;Ee<ve&&isLastChild(he);Ee+=1)he=he.parent,Se+=1;var Ce=$.data,xe=he.node,$e=!0;return isFirstChild(he)&&he.level===0&&ie<ce+de/2&&J({dragNode:Ce,dropNode:xe,dropPosition:-1})&&he.key===V.eventKey?_e=-1:(be.children||[]).length&&fe.includes(ge)?J({dragNode:Ce,dropNode:xe,dropPosition:0})?_e=0:$e=!1:Se===0?ve>-1.5?J({dragNode:Ce,dropNode:xe,dropPosition:1})?_e=1:$e=!1:J({dragNode:Ce,dropNode:xe,dropPosition:0})?_e=0:J({dragNode:Ce,dropNode:xe,dropPosition:1})?_e=1:$e=!1:J({dragNode:Ce,dropNode:xe,dropPosition:1})?_e=1:$e=!1,{dropPosition:_e,dropLevelOffset:Se,dropTargetKey:he.key,dropTargetPos:he.pos,dragOverNodeKey:ge,dropContainerKey:_e===0?null:((ae=he.parent)===null||ae===void 0?void 0:ae.key)||null,dropAllowed:$e}}function calcSelectedKeys(C,$){if(C){var V=$.multiple;return V?C.slice():C.length?[C[0]]:C}}function parseCheckedKeys(C){if(!C)return null;var $;if(Array.isArray(C))$={checkedKeys:C,halfCheckedKeys:void 0};else if(_typeof(C)==="object")$={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return warningOnce(!1,"`checkedKeys` is not an array or an object"),null;return $}function conductExpandParent(C,$){var V=new Set;function F(K){if(!V.has(K)){var J=getEntity($,K);if(J){V.add(K);var ee=J.parent,te=J.node;te.disabled||ee&&F(ee.key)}}}return(C||[]).forEach(function(K){F(K)}),_toConsumableArray(V)}function useMultipleSelect(C){const[$,V]=React.useState(null);return[React.useCallback((J,ee,te)=>{const ne=$!=null?$:J,re=Math.min(ne||0,J),ae=Math.max(ne||0,J),oe=ee.slice(re,ae+1).map(ce=>C(ce)),ie=oe.some(ce=>!te.has(ce)),se=[];return oe.forEach(ce=>{ie?(te.has(ce)||se.push(ce),te.add(ce)):(te.delete(ce),se.push(ce))}),V(ie?ae:null),se},[$]),J=>{V(J)}]}const SELECTION_COLUMN={},SELECTION_ALL="SELECT_ALL",SELECTION_INVERT="SELECT_INVERT",SELECTION_NONE="SELECT_NONE",EMPTY_LIST$1=[],flattenData=(C,$)=>{let V=[];return($||[]).forEach(F=>{V.push(F),F&&typeof F=="object"&&C in F&&(V=[].concat(_toConsumableArray(V),_toConsumableArray(flattenData(C,F[C]))))}),V},useSelection=(C,$)=>{const{preserveSelectedRowKeys:V,selectedRowKeys:F,defaultSelectedRowKeys:K,getCheckboxProps:J,onChange:ee,onSelect:te,onSelectAll:ne,onSelectInvert:re,onSelectNone:ae,onSelectMultiple:oe,columnWidth:ie,type:se,selections:ce,fixed:de,renderCell:le,hideSelectAll:ve,checkStrictly:fe=!0}=$||{},{prefixCls:he,data:me,pageData:ue,getRecordByKey:pe,getRowKey:ye,expandType:be,childrenColumnName:ge,locale:_e,getPopupContainer:Se}=C,Ee=devUseWarning("Table"),[Ce,xe]=useMultipleSelect(Le=>Le),[$e,Ie]=useMergedState(F||K||EMPTY_LIST$1,{value:F}),Fe=React__namespace.useRef(new Map),Ne=React.useCallback(Le=>{if(V){const Te=new Map;Le.forEach(Pe=>{let Me=pe(Pe);!Me&&Fe.current.has(Pe)&&(Me=Fe.current.get(Pe)),Te.set(Pe,Me)}),Fe.current=Te}},[pe,V]);React__namespace.useEffect(()=>{Ne($e)},[$e]);const De=React.useMemo(()=>flattenData(ge,ue),[ge,ue]),{keyEntities:Oe}=React.useMemo(()=>{if(fe)return{keyEntities:null};let Le=me;if(V){const Te=new Set(De.map((Me,He)=>ye(Me,He))),Pe=Array.from(Fe.current).reduce((Me,He)=>{let[We,Ke]=He;return Te.has(We)?Me:Me.concat(Ke)},[]);Le=[].concat(_toConsumableArray(Le),_toConsumableArray(Pe))}return convertDataToEntities(Le,{externalGetKey:ye,childrenPropName:ge})},[me,ye,fe,ge,V,De]),we=React.useMemo(()=>{const Le=new Map;return De.forEach((Te,Pe)=>{const Me=ye(Te,Pe),He=(J?J(Te):null)||{};Le.set(Me,He),process.env.NODE_ENV!=="production"&&Ee(!("checked"in He||"defaultChecked"in He),"usage","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")}),Le},[De,ye,J]),Ae=React.useCallback(Le=>{const Te=ye(Le);let Pe;return we.has(Te)?Pe=we.get(ye(Le)):Pe=J?J(Le):void 0,!!(Pe!=null&&Pe.disabled)},[we,ye]),[ke,je]=React.useMemo(()=>{if(fe)return[$e||[],[]];const{checkedKeys:Le,halfCheckedKeys:Te}=conductCheck($e,!0,Oe,Ae);return[Le||[],Te]},[$e,fe,Oe,Ae]),ze=React.useMemo(()=>{const Le=se==="radio"?ke.slice(0,1):ke;return new Set(Le)},[ke,se]),Ve=React.useMemo(()=>se==="radio"?new Set:new Set(je),[je,se]);React__namespace.useEffect(()=>{$||Ie(EMPTY_LIST$1)},[!!$]);const Xe=React.useCallback((Le,Te)=>{let Pe,Me;Ne(Le),V?(Pe=Le,Me=Le.map(He=>Fe.current.get(He))):(Pe=[],Me=[],Le.forEach(He=>{const We=pe(He);We!==void 0&&(Pe.push(He),Me.push(We))})),Ie(Pe),ee==null||ee(Pe,Me,{type:Te})},[Ie,pe,ee,V]),Ye=React.useCallback((Le,Te,Pe,Me)=>{if(te){const He=Pe.map(We=>pe(We));te(pe(Le),Te,He,Me)}Xe(Pe,"single")},[te,pe,Xe]),at=React.useMemo(()=>!ce||ve?null:(ce===!0?[SELECTION_ALL,SELECTION_INVERT,SELECTION_NONE]:ce).map(Te=>Te===SELECTION_ALL?{key:"all",text:_e.selectionAll,onSelect(){Xe(me.map((Pe,Me)=>ye(Pe,Me)).filter(Pe=>{const Me=we.get(Pe);return!(Me!=null&&Me.disabled)||ze.has(Pe)}),"all")}}:Te===SELECTION_INVERT?{key:"invert",text:_e.selectInvert,onSelect(){const Pe=new Set(ze);ue.forEach((He,We)=>{const Ke=ye(He,We),rt=we.get(Ke);rt!=null&&rt.disabled||(Pe.has(Ke)?Pe.delete(Ke):Pe.add(Ke))});const Me=Array.from(Pe);re&&(Ee.deprecated(!1,"onSelectInvert","onChange"),re(Me)),Xe(Me,"invert")}}:Te===SELECTION_NONE?{key:"none",text:_e.selectNone,onSelect(){ae==null||ae(),Xe(Array.from(ze).filter(Pe=>{const Me=we.get(Pe);return Me==null?void 0:Me.disabled}),"none")}}:Te).map(Te=>Object.assign(Object.assign({},Te),{onSelect:function(){for(var Pe,Me,He=arguments.length,We=new Array(He),Ke=0;Ke<He;Ke++)We[Ke]=arguments[Ke];(Me=Te.onSelect)===null||Me===void 0||(Pe=Me).call.apply(Pe,[Te].concat(We)),xe(null)}})),[ce,ze,ue,ye,re,Xe]);return[React.useCallback(Le=>{var Te;if(!$)return process.env.NODE_ENV!=="production"&&Ee(!Le.includes(SELECTION_COLUMN),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),Le.filter(ut=>ut!==SELECTION_COLUMN);let Pe=_toConsumableArray(Le);const Me=new Set(ze),He=De.map(ye).filter(ut=>!we.get(ut).disabled),We=He.every(ut=>Me.has(ut)),Ke=He.some(ut=>Me.has(ut)),rt=()=>{const ut=[];We?He.forEach(et=>{Me.delete(et),ut.push(et)}):He.forEach(et=>{Me.has(et)||(Me.add(et),ut.push(et))});const Ge=Array.from(Me);ne==null||ne(!We,Ge.map(et=>pe(et)),ut.map(et=>pe(et))),Xe(Ge,"all"),xe(null)};let st,it;if(se!=="radio"){let ut;if(at){const tt={getPopupContainer:Se,items:at.map((qe,ot)=>{const{key:ft,text:yt,onSelect:$t}=qe;return{key:ft!=null?ft:ot,onClick:()=>{$t==null||$t(He)},label:yt}})};ut=React__namespace.createElement("div",{className:`${he}-selection-extra`},React__namespace.createElement(Dropdown$1,{menu:tt,getPopupContainer:Se},React__namespace.createElement("span",null,React__namespace.createElement(DownOutlined$1,null))))}const Ge=De.map((tt,qe)=>{const ot=ye(tt,qe),ft=we.get(ot)||{};return Object.assign({checked:Me.has(ot)},ft)}).filter(tt=>{let{disabled:qe}=tt;return qe}),et=!!Ge.length&&Ge.length===De.length,Ze=et&&Ge.every(tt=>{let{checked:qe}=tt;return qe}),nt=et&&Ge.some(tt=>{let{checked:qe}=tt;return qe});it=React__namespace.createElement(Checkbox$1,{checked:et?Ze:!!De.length&&We,indeterminate:et?!Ze&&nt:!We&&Ke,onChange:rt,disabled:De.length===0||et,"aria-label":ut?"Custom selection":"Select all",skipGroup:!0}),st=!ve&&React__namespace.createElement("div",{className:`${he}-selection`},it,ut)}let Je;se==="radio"?Je=(ut,Ge,et)=>{const Ze=ye(Ge,et),nt=Me.has(Ze),tt=we.get(Ze);return{node:React__namespace.createElement(Radio$1,Object.assign({},tt,{checked:nt,onClick:qe=>{var ot;qe.stopPropagation(),(ot=tt==null?void 0:tt.onClick)===null||ot===void 0||ot.call(tt,qe)},onChange:qe=>{var ot;Me.has(Ze)||Ye(Ze,!0,[Ze],qe.nativeEvent),(ot=tt==null?void 0:tt.onChange)===null||ot===void 0||ot.call(tt,qe)}})),checked:nt}}:Je=(ut,Ge,et)=>{var Ze;const nt=ye(Ge,et),tt=Me.has(nt),qe=Ve.has(nt),ot=we.get(nt);let ft;return be==="nest"?(ft=qe,process.env.NODE_ENV!=="production"&&Ee(typeof(ot==null?void 0:ot.indeterminate)!="boolean","usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ft=(Ze=ot==null?void 0:ot.indeterminate)!==null&&Ze!==void 0?Ze:qe,{node:React__namespace.createElement(Checkbox$1,Object.assign({},ot,{indeterminate:ft,checked:tt,skipGroup:!0,onClick:yt=>{var $t;yt.stopPropagation(),($t=ot==null?void 0:ot.onClick)===null||$t===void 0||$t.call(ot,yt)},onChange:yt=>{var $t;const{nativeEvent:kt}=yt,{shiftKey:Dt}=kt,St=He.findIndex(It=>It===nt),Bt=ke.some(It=>He.includes(It));if(Dt&&fe&&Bt){const It=Ce(St,He,Me),Pt=Array.from(Me);oe==null||oe(!tt,Pt.map(Tt=>pe(Tt)),It.map(Tt=>pe(Tt))),Xe(Pt,"multiple")}else{const It=ke;if(fe){const Pt=tt?arrDel(It,nt):arrAdd(It,nt);Ye(nt,!tt,Pt,kt)}else{const Pt=conductCheck([].concat(_toConsumableArray(It),[nt]),!0,Oe,Ae),{checkedKeys:Tt,halfCheckedKeys:Ct}=Pt;let At=Tt;if(tt){const Ht=new Set(Tt);Ht.delete(nt),At=conductCheck(Array.from(Ht),{checked:!1,halfCheckedKeys:Ct},Oe,Ae).checkedKeys}Ye(nt,!tt,At,kt)}}xe(tt?null:St),($t=ot==null?void 0:ot.onChange)===null||$t===void 0||$t.call(ot,yt)}})),checked:tt}};const ct=(ut,Ge,et)=>{const{node:Ze,checked:nt}=Je(ut,Ge,et);return le?le(nt,Ge,et,Ze):Ze};if(!Pe.includes(SELECTION_COLUMN))if(Pe.findIndex(ut=>{var Ge;return((Ge=ut[INTERNAL_COL_DEFINE])===null||Ge===void 0?void 0:Ge.columnType)==="EXPAND_COLUMN"})===0){const[ut,...Ge]=Pe;Pe=[ut,SELECTION_COLUMN].concat(_toConsumableArray(Ge))}else Pe=[SELECTION_COLUMN].concat(_toConsumableArray(Pe));const dt=Pe.indexOf(SELECTION_COLUMN);process.env.NODE_ENV!=="production"&&Ee(Pe.filter(ut=>ut===SELECTION_COLUMN).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),Pe=Pe.filter((ut,Ge)=>ut!==SELECTION_COLUMN||Ge===dt);const vt=Pe[dt-1],ht=Pe[dt+1];let bt=de;bt===void 0&&((ht==null?void 0:ht.fixed)!==void 0?bt=ht.fixed:(vt==null?void 0:vt.fixed)!==void 0&&(bt=vt.fixed)),bt&&vt&&((Te=vt[INTERNAL_COL_DEFINE])===null||Te===void 0?void 0:Te.columnType)==="EXPAND_COLUMN"&&vt.fixed===void 0&&(vt.fixed=bt);const Rt=classNames(`${he}-selection-col`,{[`${he}-selection-col-with-dropdown`]:ce&&se==="checkbox"}),wt=()=>$!=null&&$.columnTitle?typeof $.columnTitle=="function"?$.columnTitle(it):$.columnTitle:st,lt={fixed:bt,width:ie,className:`${he}-selection-column`,title:wt(),render:ct,onCell:$.onCell,align:$.align,[INTERNAL_COL_DEFINE]:{className:Rt}};return Pe.map(ut=>ut===SELECTION_COLUMN?lt:ut)},[ye,De,$,ke,ze,Ve,ie,at,be,we,oe,Ye,Ae]),ze]};function fillProxy(C,$){return C._antProxy=C._antProxy||{},Object.keys($).forEach(V=>{if(!(V in C._antProxy)){const F=C[V];C._antProxy[V]=F,C[V]=$[V]}}),C}function useProxyImperativeHandle(C,$){return React.useImperativeHandle(C,()=>{const V=$(),{nativeElement:F}=V;return typeof Proxy!="undefined"?new Proxy(F,{get(K,J){return V[J]?V[J]:Reflect.get(K,J)}}):fillProxy(F,V)})}function renderExpandIcon(C){return $=>{const{prefixCls:V,onExpand:F,record:K,expanded:J,expandable:ee}=$,te=`${V}-row-expand-icon`;return React__namespace.createElement("button",{type:"button",onClick:ne=>{F(K,ne),ne.stopPropagation()},className:classNames(te,{[`${te}-spaced`]:!ee,[`${te}-expanded`]:ee&&J,[`${te}-collapsed`]:ee&&!J}),"aria-label":J?C.collapse:C.expand,"aria-expanded":J})}}function useContainerWidth(C){return(V,F)=>{const K=V.querySelector(`.${C}-container`);let J=F;if(K){const ee=getComputedStyle(K),te=parseInt(ee.borderLeftWidth,10),ne=parseInt(ee.borderRightWidth,10);J=F-te-ne}return J}}const getColumnKey=(C,$)=>"key"in C&&C.key!==void 0&&C.key!==null?C.key:C.dataIndex?Array.isArray(C.dataIndex)?C.dataIndex.join("."):C.dataIndex:$;function getColumnPos(C,$){return $?`${$}-${C}`:`${C}`}const renderColumnTitle=(C,$)=>typeof C=="function"?C($):C,safeColumnTitle=(C,$)=>{const V=renderColumnTitle(C,$);return Object.prototype.toString.call(V)==="[object Object]"?"":V};function useSyncState(C){const $=React__namespace.useRef(C),V=useForceUpdate();return[()=>$.current,F=>{$.current=F,V()}]}var DropIndicator=function($){var V=$.dropPosition,F=$.dropLevelOffset,K=$.indent,J={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(V){case-1:J.top=0,J.left=-F*K;break;case 1:J.bottom=0,J.left=-F*K;break;case 0:J.bottom=0,J.left=K;break}return React.createElement("div",{style:J})};process.env.NODE_ENV!=="production"&&(DropIndicator.displayName="DropIndicator");function _objectDestructuringEmpty(C){if(C==null)throw new TypeError("Cannot destructure "+C)}function useUnmount(C,$){var V=React__namespace.useState(!1),F=_slicedToArray(V,2),K=F[0],J=F[1];useLayoutEffect$1(function(){if(K)return C(),function(){$()}},[K]),useLayoutEffect$1(function(){return J(!0),function(){J(!1)}},[])}var _excluded$3=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],MotionTreeNode=React__namespace.forwardRef(function(C,$){var V=C.className,F=C.style,K=C.motion,J=C.motionNodes,ee=C.motionType,te=C.onMotionStart,ne=C.onMotionEnd,re=C.active,ae=C.treeNodeRequiredProps,oe=_objectWithoutProperties(C,_excluded$3),ie=React__namespace.useState(!0),se=_slicedToArray(ie,2),ce=se[0],de=se[1],le=React__namespace.useContext(TreeContext),ve=le.prefixCls,fe=J&&ee!=="hide";useLayoutEffect$1(function(){J&&fe!==ce&&de(fe)},[J]);var he=function(){J&&te()},me=React__namespace.useRef(!1),ue=function(){J&&!me.current&&(me.current=!0,ne())};useUnmount(he,ue);var pe=function(be){fe===be&&ue()};return J?React__namespace.createElement(CSSMotion,_extends({ref:$,visible:ce},K,{motionAppear:ee==="show",onVisibleChanged:pe}),function(ye,be){var ge=ye.className,_e=ye.style;return React__namespace.createElement("div",{ref:be,className:classNames("".concat(ve,"-treenode-motion"),ge),style:_e},J.map(function(Se){var Ee=Object.assign({},(_objectDestructuringEmpty(Se.data),Se.data)),Ce=Se.title,xe=Se.key,$e=Se.isStart,Ie=Se.isEnd;delete Ee.children;var Fe=getTreeNodeProps(xe,ae);return React__namespace.createElement(TreeNode,_extends({},Ee,Fe,{title:Ce,active:re,data:Se.data,key:xe,isStart:$e,isEnd:Ie}))}))}):React__namespace.createElement(TreeNode,_extends({domRef:$,className:V,style:F},oe,{active:re}))});process.env.NODE_ENV!=="production"&&(MotionTreeNode.displayName="MotionTreeNode");function findExpandedKeys(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],V=C.length,F=$.length;if(Math.abs(V-F)!==1)return{add:!1,key:null};function K(J,ee){var te=new Map;J.forEach(function(re){te.set(re,!0)});var ne=ee.filter(function(re){return!te.has(re)});return ne.length===1?ne[0]:null}return V<F?{add:!0,key:K(C,$)}:{add:!1,key:K($,C)}}function getExpandRange(C,$,V){var F=C.findIndex(function(te){return te.key===V}),K=C[F+1],J=$.findIndex(function(te){return te.key===V});if(K){var ee=$.findIndex(function(te){return te.key===K.key});return $.slice(J+1,ee)}return $.slice(J+1)}var _excluded$2=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},noop=function(){},MOTION_KEY="RC_TREE_MOTION_".concat(Math.random()),MotionNode={key:MOTION_KEY},MotionEntity={key:MOTION_KEY,level:0,index:0,pos:"0",node:MotionNode,nodes:[MotionNode]},MotionFlattenData={parent:null,children:[],pos:MotionEntity.pos,data:MotionNode,title:null,key:MOTION_KEY,isStart:[],isEnd:[]};function getMinimumRangeTransitionRange(C,$,V,F){return $===!1||!V?C:C.slice(0,Math.ceil(V/F)+1)}function itemKey(C){var $=C.key,V=C.pos;return getKey($,V)}function getAccessibilityPath(C){for(var $=String(C.data.key),V=C;V.parent;)V=V.parent,$="".concat(V.data.key," > ").concat($);return $}var NodeList=React__namespace.forwardRef(function(C,$){var V=C.prefixCls,F=C.data;C.selectable,C.checkable;var K=C.expandedKeys,J=C.selectedKeys,ee=C.checkedKeys,te=C.loadedKeys,ne=C.loadingKeys,re=C.halfCheckedKeys,ae=C.keyEntities,oe=C.disabled,ie=C.dragging,se=C.dragOverNodeKey,ce=C.dropPosition,de=C.motion,le=C.height,ve=C.itemHeight,fe=C.virtual,he=C.scrollWidth,me=C.focusable,ue=C.activeItem,pe=C.focused,ye=C.tabIndex,be=C.onKeyDown,ge=C.onFocus,_e=C.onBlur,Se=C.onActiveChange,Ee=C.onListChangeStart,Ce=C.onListChangeEnd,xe=_objectWithoutProperties(C,_excluded$2),$e=React__namespace.useRef(null),Ie=React__namespace.useRef(null);React__namespace.useImperativeHandle($,function(){return{scrollTo:function(ct){$e.current.scrollTo(ct)},getIndentWidth:function(){return Ie.current.offsetWidth}}});var Fe=React__namespace.useState(K),Ne=_slicedToArray(Fe,2),De=Ne[0],Oe=Ne[1],we=React__namespace.useState(F),Ae=_slicedToArray(we,2),ke=Ae[0],je=Ae[1],ze=React__namespace.useState(F),Ve=_slicedToArray(ze,2),Xe=Ve[0],Ye=Ve[1],at=React__namespace.useState([]),Ue=_slicedToArray(at,2),Le=Ue[0],Te=Ue[1],Pe=React__namespace.useState(null),Me=_slicedToArray(Pe,2),He=Me[0],We=Me[1],Ke=React__namespace.useRef(F);Ke.current=F;function rt(){var Je=Ke.current;je(Je),Ye(Je),Te([]),We(null),Ce()}useLayoutEffect$1(function(){Oe(K);var Je=findExpandedKeys(De,K);if(Je.key!==null)if(Je.add){var ct=ke.findIndex(function(wt){var lt=wt.key;return lt===Je.key}),dt=getMinimumRangeTransitionRange(getExpandRange(ke,F,Je.key),fe,le,ve),vt=ke.slice();vt.splice(ct+1,0,MotionFlattenData),Ye(vt),Te(dt),We("show")}else{var ht=F.findIndex(function(wt){var lt=wt.key;return lt===Je.key}),bt=getMinimumRangeTransitionRange(getExpandRange(F,ke,Je.key),fe,le,ve),Rt=F.slice();Rt.splice(ht+1,0,MotionFlattenData),Ye(Rt),Te(bt),We("hide")}else ke!==F&&(je(F),Ye(F))},[K,F]),React__namespace.useEffect(function(){ie||rt()},[ie]);var st=de?Xe:F,it={expandedKeys:K,selectedKeys:J,loadedKeys:te,loadingKeys:ne,checkedKeys:ee,halfCheckedKeys:re,dragOverNodeKey:se,dropPosition:ce,keyEntities:ae};return React__namespace.createElement(React__namespace.Fragment,null,pe&&ue&&React__namespace.createElement("span",{style:HIDDEN_STYLE,"aria-live":"assertive"},getAccessibilityPath(ue)),React__namespace.createElement("div",null,React__namespace.createElement("input",{style:HIDDEN_STYLE,disabled:me===!1||oe,tabIndex:me!==!1?ye:null,onKeyDown:be,onFocus:ge,onBlur:_e,value:"",onChange:noop,"aria-label":"for screen reader"})),React__namespace.createElement("div",{className:"".concat(V,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},React__namespace.createElement("div",{className:"".concat(V,"-indent")},React__namespace.createElement("div",{ref:Ie,className:"".concat(V,"-indent-unit")}))),React__namespace.createElement(List$1,_extends({},xe,{data:st,itemKey,height:le,fullHeight:!1,virtual:fe,itemHeight:ve,scrollWidth:he,prefixCls:"".concat(V,"-list"),ref:$e,role:"tree",onVisibleChange:function(ct){ct.every(function(dt){return itemKey(dt)!==MOTION_KEY})&&rt()}}),function(Je){var ct=Je.pos,dt=Object.assign({},(_objectDestructuringEmpty(Je.data),Je.data)),vt=Je.title,ht=Je.key,bt=Je.isStart,Rt=Je.isEnd,wt=getKey(ht,ct);delete dt.key,delete dt.children;var lt=getTreeNodeProps(wt,it);return React__namespace.createElement(MotionTreeNode,_extends({},dt,lt,{title:vt,active:!!ue&&ht===ue.key,pos:ct,data:Je.data,isStart:bt,isEnd:Rt,motion:de,motionNodes:ht===MOTION_KEY?Le:null,motionType:He,onMotionStart:Ee,onMotionEnd:rt,treeNodeRequiredProps:it,onMouseMove:function(){Se(null)}}))}))});process.env.NODE_ENV!=="production"&&(NodeList.displayName="NodeList");var MAX_RETRY_TIMES=10,Tree$3=function(C){_inherits(V,C);var $=_createSuper$7(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"destroyed",!1),_defineProperty(_assertThisInitialized(F),"delayedDragEnterLogic",void 0),_defineProperty(_assertThisInitialized(F),"loadingRetryTimes",{}),_defineProperty(_assertThisInitialized(F),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:fillFieldNames()}),_defineProperty(_assertThisInitialized(F),"dragStartMousePosition",null),_defineProperty(_assertThisInitialized(F),"dragNodeProps",null),_defineProperty(_assertThisInitialized(F),"currentMouseOverDroppableNodeKey",null),_defineProperty(_assertThisInitialized(F),"listRef",React__namespace.createRef()),_defineProperty(_assertThisInitialized(F),"onNodeDragStart",function(te,ne){var re=F.state,ae=re.expandedKeys,oe=re.keyEntities,ie=F.props.onDragStart,se=ne.eventKey;F.dragNodeProps=ne,F.dragStartMousePosition={x:te.clientX,y:te.clientY};var ce=arrDel(ae,se);F.setState({draggingNodeKey:se,dragChildrenKeys:getDragChildrenKeys(se,oe),indent:F.listRef.current.getIndentWidth()}),F.setExpandedKeys(ce),window.addEventListener("dragend",F.onWindowDragEnd),ie==null||ie({event:te,node:convertNodePropsToEventData(ne)})}),_defineProperty(_assertThisInitialized(F),"onNodeDragEnter",function(te,ne){var re=F.state,ae=re.expandedKeys,oe=re.keyEntities,ie=re.dragChildrenKeys,se=re.flattenNodes,ce=re.indent,de=F.props,le=de.onDragEnter,ve=de.onExpand,fe=de.allowDrop,he=de.direction,me=ne.pos,ue=ne.eventKey;if(F.currentMouseOverDroppableNodeKey!==ue&&(F.currentMouseOverDroppableNodeKey=ue),!F.dragNodeProps){F.resetDragState();return}var pe=calcDropPosition(te,F.dragNodeProps,ne,ce,F.dragStartMousePosition,fe,se,oe,ae,he),ye=pe.dropPosition,be=pe.dropLevelOffset,ge=pe.dropTargetKey,_e=pe.dropContainerKey,Se=pe.dropTargetPos,Ee=pe.dropAllowed,Ce=pe.dragOverNodeKey;if(ie.includes(ge)||!Ee){F.resetDragState();return}if(F.delayedDragEnterLogic||(F.delayedDragEnterLogic={}),Object.keys(F.delayedDragEnterLogic).forEach(function(xe){clearTimeout(F.delayedDragEnterLogic[xe])}),F.dragNodeProps.eventKey!==ne.eventKey&&(te.persist(),F.delayedDragEnterLogic[me]=window.setTimeout(function(){if(F.state.draggingNodeKey!==null){var xe=_toConsumableArray(ae),$e=getEntity(oe,ne.eventKey);$e&&($e.children||[]).length&&(xe=arrAdd(ae,ne.eventKey)),F.props.hasOwnProperty("expandedKeys")||F.setExpandedKeys(xe),ve==null||ve(xe,{node:convertNodePropsToEventData(ne),expanded:!0,nativeEvent:te.nativeEvent})}},800)),F.dragNodeProps.eventKey===ge&&be===0){F.resetDragState();return}F.setState({dragOverNodeKey:Ce,dropPosition:ye,dropLevelOffset:be,dropTargetKey:ge,dropContainerKey:_e,dropTargetPos:Se,dropAllowed:Ee}),le==null||le({event:te,node:convertNodePropsToEventData(ne),expandedKeys:ae})}),_defineProperty(_assertThisInitialized(F),"onNodeDragOver",function(te,ne){var re=F.state,ae=re.dragChildrenKeys,oe=re.flattenNodes,ie=re.keyEntities,se=re.expandedKeys,ce=re.indent,de=F.props,le=de.onDragOver,ve=de.allowDrop,fe=de.direction;if(F.dragNodeProps){var he=calcDropPosition(te,F.dragNodeProps,ne,ce,F.dragStartMousePosition,ve,oe,ie,se,fe),me=he.dropPosition,ue=he.dropLevelOffset,pe=he.dropTargetKey,ye=he.dropContainerKey,be=he.dropTargetPos,ge=he.dropAllowed,_e=he.dragOverNodeKey;ae.includes(pe)||!ge||(F.dragNodeProps.eventKey===pe&&ue===0?F.state.dropPosition===null&&F.state.dropLevelOffset===null&&F.state.dropTargetKey===null&&F.state.dropContainerKey===null&&F.state.dropTargetPos===null&&F.state.dropAllowed===!1&&F.state.dragOverNodeKey===null||F.resetDragState():me===F.state.dropPosition&&ue===F.state.dropLevelOffset&&pe===F.state.dropTargetKey&&ye===F.state.dropContainerKey&&be===F.state.dropTargetPos&&ge===F.state.dropAllowed&&_e===F.state.dragOverNodeKey||F.setState({dropPosition:me,dropLevelOffset:ue,dropTargetKey:pe,dropContainerKey:ye,dropTargetPos:be,dropAllowed:ge,dragOverNodeKey:_e}),le==null||le({event:te,node:convertNodePropsToEventData(ne)}))}}),_defineProperty(_assertThisInitialized(F),"onNodeDragLeave",function(te,ne){F.currentMouseOverDroppableNodeKey===ne.eventKey&&!te.currentTarget.contains(te.relatedTarget)&&(F.resetDragState(),F.currentMouseOverDroppableNodeKey=null);var re=F.props.onDragLeave;re==null||re({event:te,node:convertNodePropsToEventData(ne)})}),_defineProperty(_assertThisInitialized(F),"onWindowDragEnd",function(te){F.onNodeDragEnd(te,null,!0),window.removeEventListener("dragend",F.onWindowDragEnd)}),_defineProperty(_assertThisInitialized(F),"onNodeDragEnd",function(te,ne){var re=F.props.onDragEnd;F.setState({dragOverNodeKey:null}),F.cleanDragState(),re==null||re({event:te,node:convertNodePropsToEventData(ne)}),F.dragNodeProps=null,window.removeEventListener("dragend",F.onWindowDragEnd)}),_defineProperty(_assertThisInitialized(F),"onNodeDrop",function(te,ne){var re,ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=F.state,ie=oe.dragChildrenKeys,se=oe.dropPosition,ce=oe.dropTargetKey,de=oe.dropTargetPos,le=oe.dropAllowed;if(le){var ve=F.props.onDrop;if(F.setState({dragOverNodeKey:null}),F.cleanDragState(),ce!==null){var fe=_objectSpread2(_objectSpread2({},getTreeNodeProps(ce,F.getTreeNodeRequiredProps())),{},{active:((re=F.getActiveItem())===null||re===void 0?void 0:re.key)===ce,data:getEntity(F.state.keyEntities,ce).node}),he=ie.includes(ce);warningOnce(!he,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var me=posToArr(de),ue={event:te,node:convertNodePropsToEventData(fe),dragNode:F.dragNodeProps?convertNodePropsToEventData(F.dragNodeProps):null,dragNodesKeys:[F.dragNodeProps.eventKey].concat(ie),dropToGap:se!==0,dropPosition:se+Number(me[me.length-1])};ae||ve==null||ve(ue),F.dragNodeProps=null}}}),_defineProperty(_assertThisInitialized(F),"cleanDragState",function(){var te=F.state.draggingNodeKey;te!==null&&F.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),F.dragStartMousePosition=null,F.currentMouseOverDroppableNodeKey=null}),_defineProperty(_assertThisInitialized(F),"triggerExpandActionExpand",function(te,ne){var re=F.state,ae=re.expandedKeys,oe=re.flattenNodes,ie=ne.expanded,se=ne.key,ce=ne.isLeaf;if(!(ce||te.shiftKey||te.metaKey||te.ctrlKey)){var de=oe.filter(function(ve){return ve.key===se})[0],le=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(se,F.getTreeNodeRequiredProps())),{},{data:de.data}));F.setExpandedKeys(ie?arrDel(ae,se):arrAdd(ae,se)),F.onNodeExpand(te,le)}}),_defineProperty(_assertThisInitialized(F),"onNodeClick",function(te,ne){var re=F.props,ae=re.onClick,oe=re.expandAction;oe==="click"&&F.triggerExpandActionExpand(te,ne),ae==null||ae(te,ne)}),_defineProperty(_assertThisInitialized(F),"onNodeDoubleClick",function(te,ne){var re=F.props,ae=re.onDoubleClick,oe=re.expandAction;oe==="doubleClick"&&F.triggerExpandActionExpand(te,ne),ae==null||ae(te,ne)}),_defineProperty(_assertThisInitialized(F),"onNodeSelect",function(te,ne){var re=F.state.selectedKeys,ae=F.state,oe=ae.keyEntities,ie=ae.fieldNames,se=F.props,ce=se.onSelect,de=se.multiple,le=ne.selected,ve=ne[ie.key],fe=!le;fe?de?re=arrAdd(re,ve):re=[ve]:re=arrDel(re,ve);var he=re.map(function(me){var ue=getEntity(oe,me);return ue?ue.node:null}).filter(Boolean);F.setUncontrolledState({selectedKeys:re}),ce==null||ce(re,{event:"select",selected:fe,node:ne,selectedNodes:he,nativeEvent:te.nativeEvent})}),_defineProperty(_assertThisInitialized(F),"onNodeCheck",function(te,ne,re){var ae=F.state,oe=ae.keyEntities,ie=ae.checkedKeys,se=ae.halfCheckedKeys,ce=F.props,de=ce.checkStrictly,le=ce.onCheck,ve=ne.key,fe,he={event:"check",node:ne,checked:re,nativeEvent:te.nativeEvent};if(de){var me=re?arrAdd(ie,ve):arrDel(ie,ve),ue=arrDel(se,ve);fe={checked:me,halfChecked:ue},he.checkedNodes=me.map(function(Se){return getEntity(oe,Se)}).filter(Boolean).map(function(Se){return Se.node}),F.setUncontrolledState({checkedKeys:me})}else{var pe=conductCheck([].concat(_toConsumableArray(ie),[ve]),!0,oe),ye=pe.checkedKeys,be=pe.halfCheckedKeys;if(!re){var ge=new Set(ye);ge.delete(ve);var _e=conductCheck(Array.from(ge),{checked:!1,halfCheckedKeys:be},oe);ye=_e.checkedKeys,be=_e.halfCheckedKeys}fe=ye,he.checkedNodes=[],he.checkedNodesPositions=[],he.halfCheckedKeys=be,ye.forEach(function(Se){var Ee=getEntity(oe,Se);if(Ee){var Ce=Ee.node,xe=Ee.pos;he.checkedNodes.push(Ce),he.checkedNodesPositions.push({node:Ce,pos:xe})}}),F.setUncontrolledState({checkedKeys:ye},!1,{halfCheckedKeys:be})}le==null||le(fe,he)}),_defineProperty(_assertThisInitialized(F),"onNodeLoad",function(te){var ne,re=te.key,ae=F.state.keyEntities,oe=getEntity(ae,re);if(!(oe!=null&&(ne=oe.children)!==null&&ne!==void 0&&ne.length)){var ie=new Promise(function(se,ce){F.setState(function(de){var le=de.loadedKeys,ve=le===void 0?[]:le,fe=de.loadingKeys,he=fe===void 0?[]:fe,me=F.props,ue=me.loadData,pe=me.onLoad;if(!ue||ve.includes(re)||he.includes(re))return null;var ye=ue(te);return ye.then(function(){var be=F.state.loadedKeys,ge=arrAdd(be,re);pe==null||pe(ge,{event:"load",node:te}),F.setUncontrolledState({loadedKeys:ge}),F.setState(function(_e){return{loadingKeys:arrDel(_e.loadingKeys,re)}}),se()}).catch(function(be){if(F.setState(function(_e){return{loadingKeys:arrDel(_e.loadingKeys,re)}}),F.loadingRetryTimes[re]=(F.loadingRetryTimes[re]||0)+1,F.loadingRetryTimes[re]>=MAX_RETRY_TIMES){var ge=F.state.loadedKeys;warningOnce(!1,"Retry for `loadData` many times but still failed. No more retry."),F.setUncontrolledState({loadedKeys:arrAdd(ge,re)}),se()}ce(be)}),{loadingKeys:arrAdd(he,re)}})});return ie.catch(function(){}),ie}}),_defineProperty(_assertThisInitialized(F),"onNodeMouseEnter",function(te,ne){var re=F.props.onMouseEnter;re==null||re({event:te,node:ne})}),_defineProperty(_assertThisInitialized(F),"onNodeMouseLeave",function(te,ne){var re=F.props.onMouseLeave;re==null||re({event:te,node:ne})}),_defineProperty(_assertThisInitialized(F),"onNodeContextMenu",function(te,ne){var re=F.props.onRightClick;re&&(te.preventDefault(),re({event:te,node:ne}))}),_defineProperty(_assertThisInitialized(F),"onFocus",function(){var te=F.props.onFocus;F.setState({focused:!0});for(var ne=arguments.length,re=new Array(ne),ae=0;ae<ne;ae++)re[ae]=arguments[ae];te==null||te.apply(void 0,re)}),_defineProperty(_assertThisInitialized(F),"onBlur",function(){var te=F.props.onBlur;F.setState({focused:!1}),F.onActiveChange(null);for(var ne=arguments.length,re=new Array(ne),ae=0;ae<ne;ae++)re[ae]=arguments[ae];te==null||te.apply(void 0,re)}),_defineProperty(_assertThisInitialized(F),"getTreeNodeRequiredProps",function(){var te=F.state,ne=te.expandedKeys,re=te.selectedKeys,ae=te.loadedKeys,oe=te.loadingKeys,ie=te.checkedKeys,se=te.halfCheckedKeys,ce=te.dragOverNodeKey,de=te.dropPosition,le=te.keyEntities;return{expandedKeys:ne||[],selectedKeys:re||[],loadedKeys:ae||[],loadingKeys:oe||[],checkedKeys:ie||[],halfCheckedKeys:se||[],dragOverNodeKey:ce,dropPosition:de,keyEntities:le}}),_defineProperty(_assertThisInitialized(F),"setExpandedKeys",function(te){var ne=F.state,re=ne.treeData,ae=ne.fieldNames,oe=flattenTreeData(re,te,ae);F.setUncontrolledState({expandedKeys:te,flattenNodes:oe},!0)}),_defineProperty(_assertThisInitialized(F),"onNodeExpand",function(te,ne){var re=F.state.expandedKeys,ae=F.state,oe=ae.listChanging,ie=ae.fieldNames,se=F.props,ce=se.onExpand,de=se.loadData,le=ne.expanded,ve=ne[ie.key];if(!oe){var fe=re.includes(ve),he=!le;if(warningOnce(le&&fe||!le&&!fe,"Expand state not sync with index check"),re=he?arrAdd(re,ve):arrDel(re,ve),F.setExpandedKeys(re),ce==null||ce(re,{node:ne,expanded:he,nativeEvent:te.nativeEvent}),he&&de){var me=F.onNodeLoad(ne);me&&me.then(function(){var ue=flattenTreeData(F.state.treeData,re,ie);F.setUncontrolledState({flattenNodes:ue})}).catch(function(){var ue=F.state.expandedKeys,pe=arrDel(ue,ve);F.setExpandedKeys(pe)})}}}),_defineProperty(_assertThisInitialized(F),"onListChangeStart",function(){F.setUncontrolledState({listChanging:!0})}),_defineProperty(_assertThisInitialized(F),"onListChangeEnd",function(){setTimeout(function(){F.setUncontrolledState({listChanging:!1})})}),_defineProperty(_assertThisInitialized(F),"onActiveChange",function(te){var ne=F.state.activeKey,re=F.props,ae=re.onActiveChange,oe=re.itemScrollOffset,ie=oe===void 0?0:oe;ne!==te&&(F.setState({activeKey:te}),te!==null&&F.scrollTo({key:te,offset:ie}),ae==null||ae(te))}),_defineProperty(_assertThisInitialized(F),"getActiveItem",function(){var te=F.state,ne=te.activeKey,re=te.flattenNodes;return ne===null?null:re.find(function(ae){var oe=ae.key;return oe===ne})||null}),_defineProperty(_assertThisInitialized(F),"offsetActiveKey",function(te){var ne=F.state,re=ne.flattenNodes,ae=ne.activeKey,oe=re.findIndex(function(ce){var de=ce.key;return de===ae});oe===-1&&te<0&&(oe=re.length),oe=(oe+te+re.length)%re.length;var ie=re[oe];if(ie){var se=ie.key;F.onActiveChange(se)}else F.onActiveChange(null)}),_defineProperty(_assertThisInitialized(F),"onKeyDown",function(te){var ne=F.state,re=ne.activeKey,ae=ne.expandedKeys,oe=ne.checkedKeys,ie=ne.fieldNames,se=F.props,ce=se.onKeyDown,de=se.checkable,le=se.selectable;switch(te.which){case KeyCode.UP:{F.offsetActiveKey(-1),te.preventDefault();break}case KeyCode.DOWN:{F.offsetActiveKey(1),te.preventDefault();break}}var ve=F.getActiveItem();if(ve&&ve.data){var fe=F.getTreeNodeRequiredProps(),he=ve.data.isLeaf===!1||!!(ve.data[ie.children]||[]).length,me=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(re,fe)),{},{data:ve.data,active:!0}));switch(te.which){case KeyCode.LEFT:{he&&ae.includes(re)?F.onNodeExpand({},me):ve.parent&&F.onActiveChange(ve.parent.key),te.preventDefault();break}case KeyCode.RIGHT:{he&&!ae.includes(re)?F.onNodeExpand({},me):ve.children&&ve.children.length&&F.onActiveChange(ve.children[0].key),te.preventDefault();break}case KeyCode.ENTER:case KeyCode.SPACE:{de&&!me.disabled&&me.checkable!==!1&&!me.disableCheckbox?F.onNodeCheck({},me,!oe.includes(re)):!de&&le&&!me.disabled&&me.selectable!==!1&&F.onNodeSelect({},me);break}}}ce==null||ce(te)}),_defineProperty(_assertThisInitialized(F),"setUncontrolledState",function(te){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!F.destroyed){var ae=!1,oe=!0,ie={};Object.keys(te).forEach(function(se){if(F.props.hasOwnProperty(se)){oe=!1;return}ae=!0,ie[se]=te[se]}),ae&&(!ne||oe)&&F.setState(_objectSpread2(_objectSpread2({},ie),re))}}),_defineProperty(_assertThisInitialized(F),"scrollTo",function(te){F.listRef.current.scrollTo(te)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var K=this.props,J=K.activeKey,ee=K.itemScrollOffset,te=ee===void 0?0:ee;J!==void 0&&J!==this.state.activeKey&&(this.setState({activeKey:J}),J!==null&&this.scrollTo({key:J,offset:te}))}},{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 K=this.state,J=K.focused,ee=K.flattenNodes,te=K.keyEntities,ne=K.draggingNodeKey,re=K.activeKey,ae=K.dropLevelOffset,oe=K.dropContainerKey,ie=K.dropTargetKey,se=K.dropPosition,ce=K.dragOverNodeKey,de=K.indent,le=this.props,ve=le.prefixCls,fe=le.className,he=le.style,me=le.showLine,ue=le.focusable,pe=le.tabIndex,ye=pe===void 0?0:pe,be=le.selectable,ge=le.showIcon,_e=le.icon,Se=le.switcherIcon,Ee=le.draggable,Ce=le.checkable,xe=le.checkStrictly,$e=le.disabled,Ie=le.motion,Fe=le.loadData,Ne=le.filterTreeNode,De=le.height,Oe=le.itemHeight,we=le.scrollWidth,Ae=le.virtual,ke=le.titleRender,je=le.dropIndicatorRender,ze=le.onContextMenu,Ve=le.onScroll,Xe=le.direction,Ye=le.rootClassName,at=le.rootStyle,Ue=pickAttrs(this.props,{aria:!0,data:!0}),Le;Ee&&(_typeof(Ee)==="object"?Le=Ee:typeof Ee=="function"?Le={nodeDraggable:Ee}:Le={});var Te={prefixCls:ve,selectable:be,showIcon:ge,icon:_e,switcherIcon:Se,draggable:Le,draggingNodeKey:ne,checkable:Ce,checkStrictly:xe,disabled:$e,keyEntities:te,dropLevelOffset:ae,dropContainerKey:oe,dropTargetKey:ie,dropPosition:se,dragOverNodeKey:ce,indent:de,direction:Xe,dropIndicatorRender:je,loadData:Fe,filterTreeNode:Ne,titleRender:ke,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};return React__namespace.createElement(TreeContext.Provider,{value:Te},React__namespace.createElement("div",{className:classNames(ve,fe,Ye,_defineProperty(_defineProperty(_defineProperty({},"".concat(ve,"-show-line"),me),"".concat(ve,"-focused"),J),"".concat(ve,"-active-focused"),re!==null)),style:at},React__namespace.createElement(NodeList,_extends({ref:this.listRef,prefixCls:ve,style:he,data:ee,disabled:$e,selectable:be,checkable:!!Ce,motion:Ie,dragging:ne!==null,height:De,itemHeight:Oe,virtual:Ae,focusable:ue,focused:J,tabIndex:ye,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ze,onScroll:Ve,scrollWidth:we},this.getTreeNodeRequiredProps(),Ue))))}}],[{key:"getDerivedStateFromProps",value:function(K,J){var ee=J.prevProps,te={prevProps:K};function ne(ye){return!ee&&K.hasOwnProperty(ye)||ee&&ee[ye]!==K[ye]}var re,ae=J.fieldNames;if(ne("fieldNames")&&(ae=fillFieldNames(K.fieldNames),te.fieldNames=ae),ne("treeData")?re=K.treeData:ne("children")&&(warningOnce(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),re=convertTreeToData(K.children)),re){te.treeData=re;var oe=convertDataToEntities(re,{fieldNames:ae});te.keyEntities=_objectSpread2(_defineProperty({},MOTION_KEY,MotionEntity),oe.keyEntities),process.env.NODE_ENV!=="production"&&warningWithoutKey(re,ae)}var ie=te.keyEntities||J.keyEntities;if(ne("expandedKeys")||ee&&ne("autoExpandParent"))te.expandedKeys=K.autoExpandParent||!ee&&K.defaultExpandParent?conductExpandParent(K.expandedKeys,ie):K.expandedKeys;else if(!ee&&K.defaultExpandAll){var se=_objectSpread2({},ie);delete se[MOTION_KEY];var ce=[];Object.keys(se).forEach(function(ye){var be=se[ye];be.children&&be.children.length&&ce.push(be.key)}),te.expandedKeys=ce}else!ee&&K.defaultExpandedKeys&&(te.expandedKeys=K.autoExpandParent||K.defaultExpandParent?conductExpandParent(K.defaultExpandedKeys,ie):K.defaultExpandedKeys);if(te.expandedKeys||delete te.expandedKeys,re||te.expandedKeys){var de=flattenTreeData(re||J.treeData,te.expandedKeys||J.expandedKeys,ae);te.flattenNodes=de}if(K.selectable&&(ne("selectedKeys")?te.selectedKeys=calcSelectedKeys(K.selectedKeys,K):!ee&&K.defaultSelectedKeys&&(te.selectedKeys=calcSelectedKeys(K.defaultSelectedKeys,K))),K.checkable){var le;if(ne("checkedKeys")?le=parseCheckedKeys(K.checkedKeys)||{}:!ee&&K.defaultCheckedKeys?le=parseCheckedKeys(K.defaultCheckedKeys)||{}:re&&(le=parseCheckedKeys(K.checkedKeys)||{checkedKeys:J.checkedKeys,halfCheckedKeys:J.halfCheckedKeys}),le){var ve=le,fe=ve.checkedKeys,he=fe===void 0?[]:fe,me=ve.halfCheckedKeys,ue=me===void 0?[]:me;if(!K.checkStrictly){var pe=conductCheck(he,!0,ie);he=pe.checkedKeys,ue=pe.halfCheckedKeys}te.checkedKeys=he,te.halfCheckedKeys=ue}}return ne("loadedKeys")&&(te.loadedKeys=K.loadedKeys),te}}]),V}(React__namespace.Component);_defineProperty(Tree$3,"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:DropIndicator,allowDrop:function(){return!0},expandAction:!1}),_defineProperty(Tree$3,"TreeNode",TreeNode);const genDirectoryStyle=C=>{let{treeCls:$,treeNodeCls:V,directoryNodeSelectedBg:F,directoryNodeSelectedColor:K,motionDurationMid:J,borderRadius:ee,controlItemBgHover:te}=C;return{[`${$}${$}-directory ${V}`]:{[`${$}-node-content-wrapper`]:{position:"static",[`> *:not(${$}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${J}`,content:'""',borderRadius:ee},"&:hover:before":{background:te}},[`${$}-switcher, ${$}-checkbox, ${$}-draggable-icon`]:{zIndex:1},"&-selected":{[`${$}-switcher, ${$}-draggable-icon`]:{color:K},[`${$}-node-content-wrapper`]:{color:K,background:"transparent","&:before, &:hover:before":{background:F}}}}}},treeNodeFX=new Keyframe("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),getSwitchStyle=(C,$)=>({[`.${C}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${$.motionDurationSlow}`}}}),getDropIndicatorStyle=(C,$)=>({[`.${C}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:$.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit$1($.lineWidthBold)} solid ${$.colorPrimary}`,borderRadius:"50%",content:'""'}}}),genBaseStyle$2=(C,$)=>{const{treeCls:V,treeNodeCls:F,treeNodePadding:K,titleHeight:J,indentSize:ee,nodeSelectedBg:te,nodeHoverBg:ne,colorTextQuaternary:re,controlItemBgActiveDisabled:ae}=$;return{[V]:Object.assign(Object.assign({},resetComponent($)),{background:$.colorBgContainer,borderRadius:$.borderRadius,transition:`background-color ${$.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${V}-rtl ${V}-switcher_close ${V}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${V}-active-focused)`]:Object.assign({},genFocusOutline($)),[`${V}-list-holder-inner`]:{alignItems:"flex-start"},[`&${V}-block-node`]:{[`${V}-list-holder-inner`]:{alignItems:"stretch",[`${V}-node-content-wrapper`]:{flex:"auto"},[`${F}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${$.colorPrimary}`,opacity:0,animationName:treeNodeFX,animationDuration:$.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:$.borderRadius}}},[F]:{display:"flex",alignItems:"flex-start",marginBottom:K,lineHeight:unit$1(J),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:K},[`&-disabled ${V}-node-content-wrapper`]:{color:$.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${V}-checkbox-disabled + ${V}-node-selected,&${F}-disabled${F}-selected ${V}-node-content-wrapper`]:{backgroundColor:ae},[`${V}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${F}-disabled)`]:{[`${V}-node-content-wrapper`]:{"&:hover":{color:$.nodeHoverColor}}},[`&-active ${V}-node-content-wrapper`]:{background:$.controlItemBgHover},[`&:not(${F}-disabled).filter-node ${V}-title`]:{color:$.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${V}-draggable-icon`]:{flexShrink:0,width:J,textAlign:"center",visibility:"visible",color:re},[`&${F}-disabled ${V}-draggable-icon`]:{visibility:"hidden"}}},[`${V}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ee}},[`${V}-draggable-icon`]:{visibility:"hidden"},[`${V}-switcher, ${V}-checkbox`]:{marginInlineEnd:$.calc($.calc(J).sub($.controlInteractiveSize)).div(2).equal()},[`${V}-switcher`]:Object.assign(Object.assign({},getSwitchStyle(C,$)),{position:"relative",flex:"none",alignSelf:"stretch",width:J,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${$.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:J,height:J,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:$.borderRadius,transition:`all ${$.motionDurationSlow}`},[`&:not(${V}-switcher-noop):hover:before`]:{backgroundColor:$.colorBgTextHover},[`&_close ${V}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:$.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:$.calc(J).div(2).equal(),bottom:$.calc(K).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${$.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:$.calc($.calc(J).div(2).equal()).mul(.8).equal(),height:$.calc(J).div(2).equal(),borderBottom:`1px solid ${$.colorBorder}`,content:'""'}}}),[`${V}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:J,paddingBlock:0,paddingInline:$.paddingXS,background:"transparent",borderRadius:$.borderRadius,cursor:"pointer",transition:`all ${$.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},getDropIndicatorStyle(C,$)),{"&:hover":{backgroundColor:ne},[`&${V}-node-selected`]:{color:$.nodeSelectedColor,backgroundColor:te},[`${V}-iconEle`]:{display:"inline-block",width:J,height:J,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${V}-unselectable ${V}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${F}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${$.colorPrimary}`},"&-show-line":{[`${V}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:$.calc(J).div(2).equal(),bottom:$.calc(K).mul(-1).equal(),borderInlineEnd:`1px solid ${$.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${V}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${F}-leaf-last ${V}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${unit$1($.calc(J).div(2).equal())} !important`}})}},genTreeStyle=function(C,$){let V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const F=`.${C}`,K=`${F}-treenode`,J=$.calc($.paddingXS).div(2).equal(),ee=merge($,{treeCls:F,treeNodeCls:K,treeNodePadding:J});return[genBaseStyle$2(C,ee),V&&genDirectoryStyle(ee)].filter(Boolean)},initComponentToken=C=>{const{controlHeightSM:$,controlItemBgHover:V,controlItemBgActive:F}=C,K=$;return{titleHeight:K,indentSize:K,nodeHoverBg:V,nodeHoverColor:C.colorText,nodeSelectedBg:F,nodeSelectedColor:C.colorText}},prepareComponentToken$4=C=>{const{colorTextLightSolid:$,colorPrimary:V}=C;return Object.assign(Object.assign({},initComponentToken(C)),{directoryNodeSelectedColor:$,directoryNodeSelectedBg:V})},useStyle$4=genStyleHooks("Tree",(C,$)=>{let{prefixCls:V}=$;return[{[C.componentCls]:getStyle(`${V}-checkbox`,C)},genTreeStyle(V,C),genCollapseMotion$1(C)]},prepareComponentToken$4),offset=4;function dropIndicatorRender(C){const{dropPosition:$,dropLevelOffset:V,prefixCls:F,indent:K,direction:J="ltr"}=C,ee=J==="ltr"?"left":"right",te=J==="ltr"?"right":"left",ne={[ee]:-V*K+offset,[te]:0};switch($){case-1:ne.top=-3;break;case 1:ne.bottom=-3;break;default:ne.bottom=-3,ne[ee]=K+offset;break}return React.createElement("div",{style:ne,className:`${F}-drop-indicator`})}const SwitcherIconCom=C=>{const{prefixCls:$,switcherIcon:V,treeNodeProps:F,showLine:K,switcherLoadingIcon:J}=C,{isLeaf:ee,expanded:te,loading:ne}=F;if(ne)return React__namespace.isValidElement(J)?J:React__namespace.createElement(LoadingOutlined$1,{className:`${$}-switcher-loading-icon`});let re;if(K&&typeof K=="object"&&(re=K.showLeafIcon),ee){if(!K)return null;if(typeof re!="boolean"&&re){const ie=typeof re=="function"?re(F):re,se=`${$}-switcher-line-custom-icon`;return React__namespace.isValidElement(ie)?cloneElement(ie,{className:classNames(ie.props.className||"",se)}):ie}return re?React__namespace.createElement(FileOutlined$1,{className:`${$}-switcher-line-icon`}):React__namespace.createElement("span",{className:`${$}-switcher-leaf-line`})}const ae=`${$}-switcher-icon`,oe=typeof V=="function"?V(F):V;return React__namespace.isValidElement(oe)?cloneElement(oe,{className:classNames(oe.props.className||"",ae)}):oe!==void 0?oe:K?te?React__namespace.createElement(MinusSquareOutlined$1,{className:`${$}-switcher-line-icon`}):React__namespace.createElement(PlusSquareOutlined$1,{className:`${$}-switcher-line-icon`}):React__namespace.createElement(CaretDownFilled$1,{className:ae})},SwitcherIconCom$1=SwitcherIconCom,Tree$2=React.forwardRef((C,$)=>{var V;const{getPrefixCls:F,direction:K,virtual:J,tree:ee}=React.useContext(ConfigContext),{prefixCls:te,className:ne,showIcon:re=!1,showLine:ae,switcherIcon:oe,switcherLoadingIcon:ie,blockNode:se=!1,children:ce,checkable:de=!1,selectable:le=!0,draggable:ve,motion:fe,style:he}=C,me=F("tree",te),ue=F(),pe=fe!=null?fe:Object.assign(Object.assign({},initCollapseMotion$1(ue)),{motionAppear:!1}),ye=Object.assign(Object.assign({},C),{checkable:de,selectable:le,showIcon:re,motion:pe,blockNode:se,showLine:!!ae,dropIndicatorRender}),[be,ge,_e]=useStyle$4(me),[,Se]=useToken(),Ee=Se.paddingXS/2+(((V=Se.Tree)===null||V===void 0?void 0:V.titleHeight)||Se.controlHeightSM),Ce=React.useMemo(()=>{if(!ve)return!1;let $e={};switch(typeof ve){case"function":$e.nodeDraggable=ve;break;case"object":$e=Object.assign({},ve);break}return $e.icon!==!1&&($e.icon=$e.icon||React.createElement(HolderOutlined$1,null)),$e},[ve]),xe=$e=>React.createElement(SwitcherIconCom$1,{prefixCls:me,switcherIcon:oe,switcherLoadingIcon:ie,treeNodeProps:$e,showLine:ae});return be(React.createElement(Tree$3,Object.assign({itemHeight:Ee,ref:$,virtual:J},ye,{style:Object.assign(Object.assign({},ee==null?void 0:ee.style),he),prefixCls:me,className:classNames({[`${me}-icon-hide`]:!re,[`${me}-block-node`]:se,[`${me}-unselectable`]:!le,[`${me}-rtl`]:K==="rtl"},ee==null?void 0:ee.className,ne,ge,_e),direction:K,checkable:de&&React.createElement("span",{className:`${me}-checkbox-inner`}),selectable:le,switcherIcon:xe,draggable:Ce}),ce))});process.env.NODE_ENV!=="production"&&(Tree$2.displayName="Tree");const TreePure=Tree$2,RECORD_NONE=0,RECORD_START=1,RECORD_END=2;function traverseNodesKey(C,$,V){const{key:F,children:K}=V;function J(ee){const te=ee[F],ne=ee[K];$(te,ee)!==!1&&traverseNodesKey(ne||[],$,V)}C.forEach(J)}function calcRangeKeys(C){let{treeData:$,expandedKeys:V,startKey:F,endKey:K,fieldNames:J}=C;const ee=[];let te=RECORD_NONE;if(F&&F===K)return[F];if(!F||!K)return[];function ne(re){return re===F||re===K}return traverseNodesKey($,re=>{if(te===RECORD_END)return!1;if(ne(re)){if(ee.push(re),te===RECORD_NONE)te=RECORD_START;else if(te===RECORD_START)return te=RECORD_END,!1}else te===RECORD_START&&ee.push(re);return V.includes(re)},fillFieldNames(J)),ee}function convertDirectoryKeysToNodes(C,$,V){const F=_toConsumableArray($),K=[];return traverseNodesKey(C,(J,ee)=>{const te=F.indexOf(J);return te!==-1&&(K.push(ee),F.splice(te,1)),!!F.length},fillFieldNames(V)),K}var __rest$9=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};function getIcon(C){const{isLeaf:$,expanded:V}=C;return $?React__namespace.createElement(FileOutlined$1,null):V?React__namespace.createElement(FolderOpenOutlined$1,null):React__namespace.createElement(FolderOutlined$1,null)}function getTreeData(C){let{treeData:$,children:V}=C;return $||convertTreeToData(V)}const DirectoryTree=(C,$)=>{var{defaultExpandAll:V,defaultExpandParent:F,defaultExpandedKeys:K}=C,J=__rest$9(C,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ee=React__namespace.useRef(null),te=React__namespace.useRef(null),ne=()=>{const{keyEntities:be}=convertDataToEntities(getTreeData(J));let ge;return V?ge=Object.keys(be):F?ge=conductExpandParent(J.expandedKeys||K||[],be):ge=J.expandedKeys||K||[],ge},[re,ae]=React__namespace.useState(J.selectedKeys||J.defaultSelectedKeys||[]),[oe,ie]=React__namespace.useState(()=>ne());React__namespace.useEffect(()=>{"selectedKeys"in J&&ae(J.selectedKeys)},[J.selectedKeys]),React__namespace.useEffect(()=>{"expandedKeys"in J&&ie(J.expandedKeys)},[J.expandedKeys]);const se=(be,ge)=>{var _e;return"expandedKeys"in J||ie(be),(_e=J.onExpand)===null||_e===void 0?void 0:_e.call(J,be,ge)},ce=(be,ge)=>{var _e;const{multiple:Se,fieldNames:Ee}=J,{node:Ce,nativeEvent:xe}=ge,{key:$e=""}=Ce,Ie=getTreeData(J),Fe=Object.assign(Object.assign({},ge),{selected:!0}),Ne=(xe==null?void 0:xe.ctrlKey)||(xe==null?void 0:xe.metaKey),De=xe==null?void 0:xe.shiftKey;let Oe;Se&&Ne?(Oe=be,ee.current=$e,te.current=Oe,Fe.selectedNodes=convertDirectoryKeysToNodes(Ie,Oe,Ee)):Se&&De?(Oe=Array.from(new Set([].concat(_toConsumableArray(te.current||[]),_toConsumableArray(calcRangeKeys({treeData:Ie,expandedKeys:oe,startKey:$e,endKey:ee.current,fieldNames:Ee}))))),Fe.selectedNodes=convertDirectoryKeysToNodes(Ie,Oe,Ee)):(Oe=[$e],ee.current=$e,te.current=Oe,Fe.selectedNodes=convertDirectoryKeysToNodes(Ie,Oe,Ee)),(_e=J.onSelect)===null||_e===void 0||_e.call(J,Oe,Fe),"selectedKeys"in J||ae(Oe)},{getPrefixCls:de,direction:le}=React__namespace.useContext(ConfigContext),{prefixCls:ve,className:fe,showIcon:he=!0,expandAction:me="click"}=J,ue=__rest$9(J,["prefixCls","className","showIcon","expandAction"]),pe=de("tree",ve),ye=classNames(`${pe}-directory`,{[`${pe}-directory-rtl`]:le==="rtl"},fe);return React__namespace.createElement(TreePure,Object.assign({icon:getIcon,ref:$,blockNode:!0},ue,{showIcon:he,expandAction:me,prefixCls:pe,className:ye,expandedKeys:oe,selectedKeys:re,onSelect:ce,onExpand:se}))},ForwardDirectoryTree=React__namespace.forwardRef(DirectoryTree);process.env.NODE_ENV!=="production"&&(ForwardDirectoryTree.displayName="DirectoryTree");const DirectoryTree$1=ForwardDirectoryTree,Tree=TreePure;Tree.DirectoryTree=DirectoryTree$1,Tree.TreeNode=TreeNode;const Tree$1=Tree,FilterSearch=C=>{const{value:$,filterSearch:V,tablePrefixCls:F,locale:K,onChange:J}=C;return V?React__namespace.createElement("div",{className:`${F}-filter-dropdown-search`},React__namespace.createElement(Input$3,{prefix:React__namespace.createElement(SearchOutlined$1,null),placeholder:K.filterSearchPlaceholder,onChange:J,value:$,htmlSize:1,className:`${F}-filter-dropdown-search-input`})):null},FilterSearch$1=FilterSearch,onKeyDown=C=>{const{keyCode:$}=C;$===KeyCode.ENTER&&C.stopPropagation()},FilterDropdownMenuWrapper=React__namespace.forwardRef((C,$)=>React__namespace.createElement("div",{className:C.className,onClick:V=>V.stopPropagation(),onKeyDown,ref:$},C.children));process.env.NODE_ENV!=="production"&&(FilterDropdownMenuWrapper.displayName="FilterDropdownMenuWrapper");const FilterDropdownMenuWrapper$1=FilterDropdownMenuWrapper;function flattenKeys(C){let $=[];return(C||[]).forEach(V=>{let{value:F,children:K}=V;$.push(F),K&&($=[].concat(_toConsumableArray($),_toConsumableArray(flattenKeys(K))))}),$}function hasSubMenu(C){return C.some($=>{let{children:V}=$;return V})}function searchValueMatched(C,$){return typeof $=="string"||typeof $=="number"?$==null?void 0:$.toString().toLowerCase().includes(C.trim().toLowerCase()):!1}function renderFilterItems(C){let{filters:$,prefixCls:V,filteredKeys:F,filterMultiple:K,searchValue:J,filterSearch:ee}=C;return $.map((te,ne)=>{const re=String(te.value);if(te.children)return{key:re||ne,label:te.text,popupClassName:`${V}-dropdown-submenu`,children:renderFilterItems({filters:te.children,prefixCls:V,filteredKeys:F,filterMultiple:K,searchValue:J,filterSearch:ee})};const ae=K?Checkbox$1:Radio$1,oe={key:te.value!==void 0?re:ne,label:React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(ae,{checked:F.includes(re)}),React__namespace.createElement("span",null,te.text))};return J.trim()?typeof ee=="function"?ee(J,te)?oe:null:searchValueMatched(J,te.text)?oe:null:oe})}function wrapStringListType(C){return C||[]}const FilterDropdown=C=>{var $,V,F,K;const{tablePrefixCls:J,prefixCls:ee,column:te,dropdownPrefixCls:ne,columnKey:re,filterOnClose:ae,filterMultiple:oe,filterMode:ie="menu",filterSearch:se=!1,filterState:ce,triggerFilter:de,locale:le,children:ve,getPopupContainer:fe,rootClassName:he}=C,{filterResetToDefaultFilteredValue:me,defaultFilteredValue:ue,filterDropdownProps:pe={},filterDropdownOpen:ye,filterDropdownVisible:be,onFilterDropdownVisibleChange:ge,onFilterDropdownOpenChange:_e}=te,[Se,Ee]=React__namespace.useState(!1),Ce=!!(ce&&(!(($=ce.filteredKeys)===null||$===void 0)&&$.length||ce.forceFiltered)),xe=Je=>{var ct;Ee(Je),(ct=pe.onOpenChange)===null||ct===void 0||ct.call(pe,Je),_e==null||_e(Je),ge==null||ge(Je)};if(process.env.NODE_ENV!=="production"){const Je=devUseWarning("Table");[["filterDropdownOpen","filterDropdownProps.open"],["filterDropdownVisible","filterDropdownProps.open"],["onFilterDropdownOpenChange","filterDropdownProps.onOpenChange"],["onFilterDropdownVisibleChange","filterDropdownProps.onOpenChange"]].forEach(dt=>{let[vt,ht]=dt;Je.deprecated(!(vt in te),vt,ht)}),Je.deprecated(!("filterCheckall"in le),"filterCheckall","locale.filterCheckAll")}const $e=(K=(F=(V=pe.open)!==null&&V!==void 0?V:ye)!==null&&F!==void 0?F:be)!==null&&K!==void 0?K:Se,Ie=ce==null?void 0:ce.filteredKeys,[Fe,Ne]=useSyncState(wrapStringListType(Ie)),De=Je=>{let{selectedKeys:ct}=Je;Ne(ct)},Oe=(Je,ct)=>{let{node:dt,checked:vt}=ct;De(oe?{selectedKeys:Je}:{selectedKeys:vt&&dt.key?[dt.key]:[]})};React__namespace.useEffect(()=>{Se&&De({selectedKeys:wrapStringListType(Ie)})},[Ie]);const[we,Ae]=React__namespace.useState([]),ke=Je=>{Ae(Je)},[je,ze]=React__namespace.useState(""),Ve=Je=>{const{value:ct}=Je.target;ze(ct)};React__namespace.useEffect(()=>{Se||ze("")},[Se]);const Xe=Je=>{const ct=Je!=null&&Je.length?Je:null;if(ct===null&&(!ce||!ce.filteredKeys)||isEqual(ct,ce==null?void 0:ce.filteredKeys,!0))return null;de({column:te,key:re,filteredKeys:ct})},Ye=()=>{xe(!1),Xe(Fe())},at=function(){let{confirm:Je,closeDropdown:ct}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Je&&Xe([]),ct&&xe(!1),ze(""),Ne(me?(ue||[]).map(dt=>String(dt)):[])},Ue=function(){let{closeDropdown:Je}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Je&&xe(!1),Xe(Fe())},Le=(Je,ct)=>{ct.source==="trigger"&&(Je&&Ie!==void 0&&Ne(wrapStringListType(Ie)),xe(Je),!Je&&!te.filterDropdown&&ae&&Ye())},Te=classNames({[`${ne}-menu-without-submenu`]:!hasSubMenu(te.filters||[])}),Pe=Je=>{if(Je.target.checked){const ct=flattenKeys(te==null?void 0:te.filters).map(dt=>String(dt));Ne(ct)}else Ne([])},Me=Je=>{let{filters:ct}=Je;return(ct||[]).map((dt,vt)=>{const ht=String(dt.value),bt={title:dt.text,key:dt.value!==void 0?ht:String(vt)};return dt.children&&(bt.children=Me({filters:dt.children})),bt})},He=Je=>{var ct;return Object.assign(Object.assign({},Je),{text:Je.title,value:Je.key,children:((ct=Je.children)===null||ct===void 0?void 0:ct.map(dt=>He(dt)))||[]})};let We;const{direction:Ke,renderEmpty:rt}=React__namespace.useContext(ConfigContext);if(typeof te.filterDropdown=="function")We=te.filterDropdown({prefixCls:`${ne}-custom`,setSelectedKeys:Je=>De({selectedKeys:Je}),selectedKeys:Fe(),confirm:Ue,clearFilters:at,filters:te.filters,visible:$e,close:()=>{xe(!1)}});else if(te.filterDropdown)We=te.filterDropdown;else{const Je=Fe()||[],ct=()=>{var vt,ht;const bt=(vt=rt==null?void 0:rt("Table.filter"))!==null&&vt!==void 0?vt:React__namespace.createElement(Empty$1,{image:Empty$1.PRESENTED_IMAGE_SIMPLE,description:le.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((te.filters||[]).length===0)return bt;if(ie==="tree")return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(FilterSearch$1,{filterSearch:se,value:je,onChange:Ve,tablePrefixCls:J,locale:le}),React__namespace.createElement("div",{className:`${J}-filter-dropdown-tree`},oe?React__namespace.createElement(Checkbox$1,{checked:Je.length===flattenKeys(te.filters).length,indeterminate:Je.length>0&&Je.length<flattenKeys(te.filters).length,className:`${J}-filter-dropdown-checkall`,onChange:Pe},(ht=le==null?void 0:le.filterCheckall)!==null&&ht!==void 0?ht:le==null?void 0:le.filterCheckAll):null,React__namespace.createElement(Tree$1,{checkable:!0,selectable:!1,blockNode:!0,multiple:oe,checkStrictly:!oe,className:`${ne}-menu`,onCheck:Oe,checkedKeys:Je,selectedKeys:Je,showIcon:!1,treeData:Me({filters:te.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:je.trim()?lt=>typeof se=="function"?se(je,He(lt)):searchValueMatched(je,lt.title):void 0})));const Rt=renderFilterItems({filters:te.filters||[],filterSearch:se,prefixCls:ee,filteredKeys:Fe(),filterMultiple:oe,searchValue:je}),wt=Rt.every(lt=>lt===null);return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(FilterSearch$1,{filterSearch:se,value:je,onChange:Ve,tablePrefixCls:J,locale:le}),wt?bt:React__namespace.createElement(Menu$1,{selectable:!0,multiple:oe,prefixCls:`${ne}-menu`,className:Te,onSelect:De,onDeselect:De,selectedKeys:Je,getPopupContainer:fe,openKeys:we,onOpenChange:ke,items:Rt}))},dt=()=>me?isEqual((ue||[]).map(vt=>String(vt)),Je,!0):Je.length===0;We=React__namespace.createElement(React__namespace.Fragment,null,ct(),React__namespace.createElement("div",{className:`${ee}-dropdown-btns`},React__namespace.createElement(Button$2,{type:"link",size:"small",disabled:dt(),onClick:()=>at()},le.filterReset),React__namespace.createElement(Button$2,{type:"primary",size:"small",onClick:Ye},le.filterConfirm)))}te.filterDropdown&&(We=React__namespace.createElement(OverrideProvider,{selectable:void 0},We)),We=React__namespace.createElement(FilterDropdownMenuWrapper$1,{className:`${ee}-dropdown`},We);const it=mergeProps$1({trigger:["click"],placement:Ke==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let Je;return typeof te.filterIcon=="function"?Je=te.filterIcon(Ce):te.filterIcon?Je=te.filterIcon:Je=React__namespace.createElement(FilterFilled$1,null),React__namespace.createElement("span",{role:"button",tabIndex:-1,className:classNames(`${ee}-trigger`,{active:Ce}),onClick:ct=>{ct.stopPropagation()}},Je)})(),getPopupContainer:fe},Object.assign(Object.assign({},pe),{rootClassName:classNames(he,pe.rootClassName),open:$e,onOpenChange:Le,popupRender:()=>typeof(pe==null?void 0:pe.dropdownRender)=="function"?pe.dropdownRender(We):We}));return React__namespace.createElement("div",{className:`${ee}-column`},React__namespace.createElement("span",{className:`${J}-column-title`},ve),React__namespace.createElement(Dropdown$1,Object.assign({},it)))},collectFilterStates=(C,$,V)=>{let F=[];return(C||[]).forEach((K,J)=>{var ee;const te=getColumnPos(J,V),ne=K.filterDropdown!==void 0;if(K.filters||ne||"onFilter"in K)if("filteredValue"in K){let re=K.filteredValue;ne||(re=(ee=re==null?void 0:re.map(String))!==null&&ee!==void 0?ee:re),F.push({column:K,key:getColumnKey(K,te),filteredKeys:re,forceFiltered:K.filtered})}else F.push({column:K,key:getColumnKey(K,te),filteredKeys:$&&K.defaultFilteredValue?K.defaultFilteredValue:void 0,forceFiltered:K.filtered});"children"in K&&(F=[].concat(_toConsumableArray(F),_toConsumableArray(collectFilterStates(K.children,$,te))))}),F};function injectFilter(C,$,V,F,K,J,ee,te,ne){return V.map((re,ae)=>{const oe=getColumnPos(ae,te),{filterOnClose:ie=!0,filterMultiple:se=!0,filterMode:ce,filterSearch:de}=re;let le=re;if(le.filters||le.filterDropdown){const ve=getColumnKey(le,oe),fe=F.find(he=>{let{key:me}=he;return ve===me});le=Object.assign(Object.assign({},le),{title:he=>React__namespace.createElement(FilterDropdown,{tablePrefixCls:C,prefixCls:`${C}-filter`,dropdownPrefixCls:$,column:le,columnKey:ve,filterState:fe,filterOnClose:ie,filterMultiple:se,filterMode:ce,filterSearch:de,triggerFilter:J,locale:K,getPopupContainer:ee,rootClassName:ne},renderColumnTitle(re.title,he))})}return"children"in le&&(le=Object.assign(Object.assign({},le),{children:injectFilter(C,$,le.children,F,K,J,ee,oe,ne)})),le})}const generateFilterInfo=C=>{const $={};return C.forEach(V=>{let{key:F,filteredKeys:K,column:J}=V;const ee=F,{filters:te,filterDropdown:ne}=J;if(ne)$[ee]=K||null;else if(Array.isArray(K)){const re=flattenKeys(te);$[ee]=re.filter(ae=>K.includes(String(ae)))}else $[ee]=null}),$},getFilterData=(C,$,V)=>$.reduce((K,J)=>{const{column:{onFilter:ee,filters:te},filteredKeys:ne}=J;return ee&&ne&&ne.length?K.map(re=>Object.assign({},re)).filter(re=>ne.some(ae=>{const oe=flattenKeys(te),ie=oe.findIndex(ce=>String(ce)===String(ae)),se=ie!==-1?oe[ie]:ae;return re[V]&&(re[V]=getFilterData(re[V],$,V)),ee(se,re)})):K},C),getMergedColumns=C=>C.flatMap($=>"children"in $?[$].concat(_toConsumableArray(getMergedColumns($.children||[]))):[$]),useFilter=C=>{const{prefixCls:$,dropdownPrefixCls:V,mergedColumns:F,onFilterChange:K,getPopupContainer:J,locale:ee,rootClassName:te}=C,ne=devUseWarning("Table"),re=React__namespace.useMemo(()=>getMergedColumns(F||[]),[F]),[ae,oe]=React__namespace.useState(()=>collectFilterStates(re,!0)),ie=React__namespace.useMemo(()=>{const le=collectFilterStates(re,!1);if(le.length===0)return le;let ve=!0,fe=!0;if(le.forEach(he=>{let{filteredKeys:me}=he;me!==void 0?ve=!1:fe=!1}),ve){const he=(re||[]).map((me,ue)=>getColumnKey(me,getColumnPos(ue)));return ae.filter(me=>{let{key:ue}=me;return he.includes(ue)}).map(me=>{const ue=re[he.findIndex(pe=>pe===me.key)];return Object.assign(Object.assign({},me),{column:Object.assign(Object.assign({},me.column),ue),forceFiltered:ue.filtered})})}return process.env.NODE_ENV!=="production"&&ne(fe,"usage","Columns should all contain `filteredValue` or not contain `filteredValue`."),le},[re,ae]),se=React__namespace.useMemo(()=>generateFilterInfo(ie),[ie]),ce=le=>{const ve=ie.filter(fe=>{let{key:he}=fe;return he!==le.key});ve.push(le),oe(ve),K(generateFilterInfo(ve),ve)};return[le=>injectFilter($,V,le,ie,ee,ce,J,void 0,te),ie,se]},useFilter$1=useFilter,useLazyKVMap=(C,$,V)=>{const F=React__namespace.useRef({});function K(J){var ee;if(!F.current||F.current.data!==C||F.current.childrenColumnName!==$||F.current.getRowKey!==V){let ne=function(re){re.forEach((ae,oe)=>{const ie=V(ae,oe);te.set(ie,ae),ae&&typeof ae=="object"&&$ in ae&&ne(ae[$]||[])})};const te=new Map;ne(C),F.current={data:C,childrenColumnName:$,kvMap:te,getRowKey:V}}return(ee=F.current.kvMap)===null||ee===void 0?void 0:ee.get(J)}return[K]},useLazyKVMap$1=useLazyKVMap;var __rest$8=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const DEFAULT_PAGE_SIZE=10;function getPaginationParam(C,$){const V={current:C.current,pageSize:C.pageSize};return Object.keys($&&typeof $=="object"?$:{}).forEach(K=>{const J=C[K];typeof J!="function"&&(V[K]=J)}),V}function usePagination(C,$,V){const F=V&&typeof V=="object"?V:{},{total:K=0}=F,J=__rest$8(F,["total"]),[ee,te]=React.useState(()=>({current:"defaultCurrent"in J?J.defaultCurrent:1,pageSize:"defaultPageSize"in J?J.defaultPageSize:DEFAULT_PAGE_SIZE})),ne=mergeProps$1(ee,J,{total:K>0?K:C}),re=Math.ceil((K||C)/ne.pageSize);ne.current>re&&(ne.current=re||1);const ae=(ie,se)=>{te({current:ie!=null?ie:1,pageSize:se||ne.pageSize})},oe=(ie,se)=>{var ce;V&&((ce=V.onChange)===null||ce===void 0||ce.call(V,ie,se)),ae(ie,se),$(ie,se||(ne==null?void 0:ne.pageSize))};return V===!1?[{},()=>{}]:[Object.assign(Object.assign({},ne),{onChange:oe}),ae]}const ASCEND="ascend",DESCEND="descend",getMultiplePriority=C=>typeof C.sorter=="object"&&typeof C.sorter.multiple=="number"?C.sorter.multiple:!1,getSortFunction=C=>typeof C=="function"?C:C&&typeof C=="object"&&C.compare?C.compare:!1,nextSortDirection=(C,$)=>$?C[C.indexOf($)+1]:C[0],collectSortStates=(C,$,V)=>{let F=[];const K=(J,ee)=>{F.push({column:J,key:getColumnKey(J,ee),multiplePriority:getMultiplePriority(J),sortOrder:J.sortOrder})};return(C||[]).forEach((J,ee)=>{const te=getColumnPos(ee,V);J.children?("sortOrder"in J&&K(J,te),F=[].concat(_toConsumableArray(F),_toConsumableArray(collectSortStates(J.children,$,te)))):J.sorter&&("sortOrder"in J?K(J,te):$&&J.defaultSortOrder&&F.push({column:J,key:getColumnKey(J,te),multiplePriority:getMultiplePriority(J),sortOrder:J.defaultSortOrder}))}),F},injectSorter=(C,$,V,F,K,J,ee,te)=>($||[]).map((re,ae)=>{const oe=getColumnPos(ae,te);let ie=re;if(ie.sorter){const se=ie.sortDirections||K,ce=ie.showSorterTooltip===void 0?ee:ie.showSorterTooltip,de=getColumnKey(ie,oe),le=V.find(ge=>{let{key:_e}=ge;return _e===de}),ve=le?le.sortOrder:null,fe=nextSortDirection(se,ve);let he;if(re.sortIcon)he=re.sortIcon({sortOrder:ve});else{const ge=se.includes(ASCEND)&&React__namespace.createElement(CaretUpOutlined$1,{className:classNames(`${C}-column-sorter-up`,{active:ve===ASCEND})}),_e=se.includes(DESCEND)&&React__namespace.createElement(CaretDownOutlined$1,{className:classNames(`${C}-column-sorter-down`,{active:ve===DESCEND})});he=React__namespace.createElement("span",{className:classNames(`${C}-column-sorter`,{[`${C}-column-sorter-full`]:!!(ge&&_e)})},React__namespace.createElement("span",{className:`${C}-column-sorter-inner`,"aria-hidden":"true"},ge,_e))}const{cancelSort:me,triggerAsc:ue,triggerDesc:pe}=J||{};let ye=me;fe===DESCEND?ye=pe:fe===ASCEND&&(ye=ue);const be=typeof ce=="object"?Object.assign({title:ye},ce):{title:ye};ie=Object.assign(Object.assign({},ie),{className:classNames(ie.className,{[`${C}-column-sort`]:ve}),title:ge=>{const _e=`${C}-column-sorters`,Se=React__namespace.createElement("span",{className:`${C}-column-title`},renderColumnTitle(re.title,ge)),Ee=React__namespace.createElement("div",{className:_e},Se,he);return ce?typeof ce!="boolean"&&(ce==null?void 0:ce.target)==="sorter-icon"?React__namespace.createElement("div",{className:`${_e} ${C}-column-sorters-tooltip-target-sorter`},Se,React__namespace.createElement(Tooltip$1,Object.assign({},be),he)):React__namespace.createElement(Tooltip$1,Object.assign({},be),Ee):Ee},onHeaderCell:ge=>{var _e;const Se=((_e=re.onHeaderCell)===null||_e===void 0?void 0:_e.call(re,ge))||{},Ee=Se.onClick,Ce=Se.onKeyDown;Se.onClick=Ie=>{F({column:re,key:de,sortOrder:fe,multiplePriority:getMultiplePriority(re)}),Ee==null||Ee(Ie)},Se.onKeyDown=Ie=>{Ie.keyCode===KeyCode.ENTER&&(F({column:re,key:de,sortOrder:fe,multiplePriority:getMultiplePriority(re)}),Ce==null||Ce(Ie))};const xe=safeColumnTitle(re.title,{}),$e=xe==null?void 0:xe.toString();return ve&&(Se["aria-sort"]=ve==="ascend"?"ascending":"descending"),Se["aria-label"]=$e||"",Se.className=classNames(Se.className,`${C}-column-has-sorters`),Se.tabIndex=0,re.ellipsis&&(Se.title=(xe!=null?xe:"").toString()),Se}})}return"children"in ie&&(ie=Object.assign(Object.assign({},ie),{children:injectSorter(C,ie.children,V,F,K,J,ee,oe)})),ie}),stateToInfo=C=>{const{column:$,sortOrder:V}=C;return{column:$,order:V,field:$.dataIndex,columnKey:$.key}},generateSorterInfo=C=>{const $=C.filter(V=>{let{sortOrder:F}=V;return F}).map(stateToInfo);if($.length===0&&C.length){const V=C.length-1;return Object.assign(Object.assign({},stateToInfo(C[V])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return $.length<=1?$[0]||{}:$},getSortData=(C,$,V)=>{const F=$.slice().sort((ee,te)=>te.multiplePriority-ee.multiplePriority),K=C.slice(),J=F.filter(ee=>{let{column:{sorter:te},sortOrder:ne}=ee;return getSortFunction(te)&&ne});return J.length?K.sort((ee,te)=>{for(let ne=0;ne<J.length;ne+=1){const re=J[ne],{column:{sorter:ae},sortOrder:oe}=re,ie=getSortFunction(ae);if(ie&&oe){const se=ie(ee,te,oe);if(se!==0)return oe===ASCEND?se:-se}}return 0}).map(ee=>{const te=ee[V];return te?Object.assign(Object.assign({},ee),{[V]:getSortData(te,$,V)}):ee}):K},useFilterSorter=C=>{const{prefixCls:$,mergedColumns:V,sortDirections:F,tableLocale:K,showSorterTooltip:J,onSorterChange:ee}=C,[te,ne]=React__namespace.useState(()=>collectSortStates(V,!0)),re=(de,le)=>{const ve=[];return de.forEach((fe,he)=>{const me=getColumnPos(he,le);if(ve.push(getColumnKey(fe,me)),Array.isArray(fe.children)){const ue=re(fe.children,me);ve.push.apply(ve,_toConsumableArray(ue))}}),ve},ae=React__namespace.useMemo(()=>{let de=!0;const le=collectSortStates(V,!1);if(!le.length){const me=re(V);return te.filter(ue=>{let{key:pe}=ue;return me.includes(pe)})}const ve=[];function fe(me){de?ve.push(me):ve.push(Object.assign(Object.assign({},me),{sortOrder:null}))}let he=null;return le.forEach(me=>{he===null?(fe(me),me.sortOrder&&(me.multiplePriority===!1?de=!1:he=!0)):(he&&me.multiplePriority!==!1||(de=!1),fe(me))}),ve},[V,te]),oe=React__namespace.useMemo(()=>{var de,le;const ve=ae.map(fe=>{let{column:he,sortOrder:me}=fe;return{column:he,order:me}});return{sortColumns:ve,sortColumn:(de=ve[0])===null||de===void 0?void 0:de.column,sortOrder:(le=ve[0])===null||le===void 0?void 0:le.order}},[ae]),ie=de=>{let le;de.multiplePriority===!1||!ae.length||ae[0].multiplePriority===!1?le=[de]:le=[].concat(_toConsumableArray(ae.filter(ve=>{let{key:fe}=ve;return fe!==de.key})),[de]),ne(le),ee(generateSorterInfo(le),le)};return[de=>injectSorter($,de,ae,ie,F,K,J),ae,oe,()=>generateSorterInfo(ae)]},useSorter=useFilterSorter,fillTitle=(C,$)=>C.map(F=>{const K=Object.assign({},F);return K.title=renderColumnTitle(F.title,$),"children"in K&&(K.children=fillTitle(K.children,$)),K}),useTitleColumns=C=>[React__namespace.useCallback(V=>fillTitle(V,C),[C])],useTitleColumns$1=useTitleColumns,RcTable=genTable((C,$)=>{const{_renderTimes:V}=C,{_renderTimes:F}=$;return V!==F}),RcTable$1=RcTable,RcVirtualTable=genVirtualTable((C,$)=>{const{_renderTimes:V}=C,{_renderTimes:F}=$;return V!==F}),RcVirtualTable$1=RcVirtualTable,genBorderedStyle=C=>{const{componentCls:$,lineWidth:V,lineType:F,tableBorderColor:K,tableHeaderBg:J,tablePaddingVertical:ee,tablePaddingHorizontal:te,calc:ne}=C,re=`${unit$1(V)} ${F} ${K}`,ae=(oe,ie,se)=>({[`&${$}-${oe}`]:{[`> ${$}-container`]:{[`> ${$}-content, > ${$}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${$}-expanded-row-fixed`]:{margin:`${unit$1(ne(ie).mul(-1).equal())}
328
+ `]:{display:"inline-block",minWidth:C.itemSize,height:C.itemSize,color:C.colorText,fontFamily:C.fontFamily,lineHeight:unit$1(C.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:C.borderRadius,cursor:"pointer",transition:`all ${C.motionDurationMid}`},[`${$}-prev, ${$}-next`]:{outline:0,button:{color:C.colorText,cursor:"pointer",userSelect:"none"},[`${$}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:C.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${unit$1(C.lineWidth)} ${C.lineType} transparent`,borderRadius:C.borderRadius,outline:"none",transition:`all ${C.motionDurationMid}`},[`&:hover ${$}-item-link`]:{backgroundColor:C.colorBgTextHover},[`&:active ${$}-item-link`]:{backgroundColor:C.colorBgTextActive},[`&${$}-disabled:hover`]:{[`${$}-item-link`]:{backgroundColor:"transparent"}}},[`${$}-slash`]:{marginInlineEnd:C.paginationSlashMarginInlineEnd,marginInlineStart:C.paginationSlashMarginInlineStart},[`${$}-options`]:{display:"inline-block",marginInlineStart:C.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:C.controlHeight,marginInlineStart:C.marginXS,lineHeight:unit$1(C.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},genBasicInputStyle(C)),genBaseOutlinedStyle(C,{borderColor:C.colorBorder,hoverBorderColor:C.colorPrimaryHover,activeBorderColor:C.colorPrimary,activeShadow:C.activeShadow})),{"&[disabled]":Object.assign({},genDisabledStyle(C)),width:C.calc(C.controlHeightLG).mul(1.25).equal(),height:C.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:C.marginXS,marginInlineEnd:C.marginXS})}}}},genPaginationItemStyle=C=>{const{componentCls:$}=C;return{[`${$}-item`]:{display:"inline-block",minWidth:C.itemSize,height:C.itemSize,marginInlineEnd:C.marginXS,fontFamily:C.fontFamily,lineHeight:unit$1(C.calc(C.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:C.itemBg,border:`${unit$1(C.lineWidth)} ${C.lineType} transparent`,borderRadius:C.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${unit$1(C.paginationItemPaddingInline)}`,color:C.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${$}-item-active)`]:{"&:hover":{transition:`all ${C.motionDurationMid}`,backgroundColor:C.colorBgTextHover},"&:active":{backgroundColor:C.colorBgTextActive}},"&-active":{fontWeight:C.fontWeightStrong,backgroundColor:C.itemActiveBg,borderColor:C.colorPrimary,a:{color:C.colorPrimary},"&:hover":{borderColor:C.colorPrimaryHover},"&:hover a":{color:C.colorPrimaryHover}}}}},genPaginationStyle$2=C=>{const{componentCls:$}=C;return{[$]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(C)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${$}-total-text`]:{display:"inline-block",height:C.itemSize,marginInlineEnd:C.marginXS,lineHeight:unit$1(C.calc(C.itemSize).sub(2).equal()),verticalAlign:"middle"}}),genPaginationItemStyle(C)),genPaginationJumpStyle(C)),genPaginationSimpleStyle(C)),genPaginationMiniStyle(C)),genPaginationDisabledStyle(C)),{[`@media only screen and (max-width: ${C.screenLG}px)`]:{[`${$}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${C.screenSM}px)`]:{[`${$}-options`]:{display:"none"}}}),[`&${C.componentCls}-rtl`]:{direction:"rtl"}}},genPaginationFocusStyle=C=>{const{componentCls:$}=C;return{[`${$}:not(${$}-disabled)`]:{[`${$}-item`]:Object.assign({},genFocusStyle(C)),[`${$}-jump-prev, ${$}-jump-next`]:{"&:focus-visible":Object.assign({[`${$}-item-link-icon`]:{opacity:1},[`${$}-item-ellipsis`]:{opacity:0}},genFocusOutline(C))},[`${$}-prev, ${$}-next`]:{[`&:focus-visible ${$}-item-link`]:Object.assign({},genFocusOutline(C))}}}},prepareComponentToken$9=C=>Object.assign({itemBg:C.colorBgContainer,itemSize:C.controlHeight,itemSizeSM:C.controlHeightSM,itemActiveBg:C.colorBgContainer,itemLinkBg:C.colorBgContainer,itemActiveColorDisabled:C.colorTextDisabled,itemActiveBgDisabled:C.controlItemBgActiveDisabled,itemInputBg:C.colorBgContainer,miniOptionsSizeChangerTop:0},initComponentToken$1(C)),prepareToken$1=C=>merge(C,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:C.calc(C.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:C.calc(C.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:C.calc(C.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:C.calc(C.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:C.marginSM,paginationSlashMarginInlineEnd:C.marginSM,paginationEllipsisTextIndent:"0.13em"},initInputToken(C)),useStyle$9=genStyleHooks("Pagination",C=>{const $=prepareToken$1(C);return[genPaginationStyle$2($),genPaginationFocusStyle($)]},prepareComponentToken$9),genBorderedStyle$2=C=>{const{componentCls:$}=C;return{[`${$}${$}-bordered${$}-disabled:not(${$}-mini)`]:{"&, &:hover":{[`${$}-item-link`]:{borderColor:C.colorBorder}},"&:focus-visible":{[`${$}-item-link`]:{borderColor:C.colorBorder}},[`${$}-item, ${$}-item-link`]:{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,[`&:hover:not(${$}-item-active)`]:{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,a:{color:C.colorTextDisabled}},[`&${$}-item-active`]:{backgroundColor:C.itemActiveBgDisabled}},[`${$}-prev, ${$}-next`]:{"&:hover button":{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,color:C.colorTextDisabled},[`${$}-item-link`]:{backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder}}},[`${$}${$}-bordered:not(${$}-mini)`]:{[`${$}-prev, ${$}-next`]:{"&:hover button":{borderColor:C.colorPrimaryHover,backgroundColor:C.itemBg},[`${$}-item-link`]:{backgroundColor:C.itemLinkBg,borderColor:C.colorBorder},[`&:hover ${$}-item-link`]:{borderColor:C.colorPrimary,backgroundColor:C.itemBg,color:C.colorPrimary},[`&${$}-disabled`]:{[`${$}-item-link`]:{borderColor:C.colorBorder,color:C.colorTextDisabled}}},[`${$}-item`]:{backgroundColor:C.itemBg,border:`${unit$1(C.lineWidth)} ${C.lineType} ${C.colorBorder}`,[`&:hover:not(${$}-item-active)`]:{borderColor:C.colorPrimary,backgroundColor:C.itemBg,a:{color:C.colorPrimary}},"&-active":{borderColor:C.colorPrimary}}}}},BorderedStyle=genSubStyleComponent(["Pagination","bordered"],C=>{const $=prepareToken$1(C);return[genBorderedStyle$2($)]},prepareComponentToken$9);function useShowSizeChanger(C){return React.useMemo(()=>typeof C=="boolean"?[C,{}]:C&&typeof C=="object"?[!0,C]:[void 0,void 0],[C])}var __rest$g=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const Pagination=C=>{const{align:$,prefixCls:V,selectPrefixCls:F,className:K,rootClassName:J,style:ee,size:te,locale:ne,responsive:re,showSizeChanger:ae,selectComponentClass:oe,pageSizeOptions:ie}=C,se=__rest$g(C,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:ce}=useBreakpoint(re),[,de]=useToken(),{getPrefixCls:le,direction:ve,showSizeChanger:fe,className:he,style:me}=useComponentConfig("pagination"),ue=le("pagination",V),[pe,ye,be]=useStyle$9(ue),ge=useSize$1(te),_e=ge==="small"||!!(ce&&!ge&&re),[Se]=useLocale$1("Pagination",locale$4),Ee=Object.assign(Object.assign({},Se),ne),[Ce,xe]=useShowSizeChanger(ae),[$e,Ie]=useShowSizeChanger(fe),Fe=Ce!=null?Ce:$e,Ne=xe!=null?xe:Ie,De=oe||Select$1,Oe=React__namespace.useMemo(()=>ie?ie.map(Ve=>Number(Ve)):void 0,[ie]),we=Ve=>{var Xe;const{disabled:Ye,size:at,onSizeChange:Ue,"aria-label":Le,className:Te,options:Pe}=Ve,{className:Me,onChange:He}=Ne||{},We=(Xe=Pe.find(Ke=>String(Ke.value)===String(at)))===null||Xe===void 0?void 0:Xe.value;return React__namespace.createElement(De,Object.assign({disabled:Ye,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Ke=>Ke.parentNode,"aria-label":Le,options:Pe},Ne,{value:We,onChange:(Ke,rt)=>{Ue==null||Ue(Ke),He==null||He(Ke,rt)},size:_e?"small":"middle",className:classNames(Te,Me)}))};if(process.env.NODE_ENV!=="production"){const Ve=devUseWarning("Pagination");process.env.NODE_ENV!=="production"&&Ve(!oe,"usage","`selectComponentClass` is not official api which will be removed.")}const Ae=React__namespace.useMemo(()=>{const Ve=React__namespace.createElement("span",{className:`${ue}-item-ellipsis`},"•••"),Xe=React__namespace.createElement("button",{className:`${ue}-item-link`,type:"button",tabIndex:-1},ve==="rtl"?React__namespace.createElement(RightOutlined$1,null):React__namespace.createElement(LeftOutlined$1,null)),Ye=React__namespace.createElement("button",{className:`${ue}-item-link`,type:"button",tabIndex:-1},ve==="rtl"?React__namespace.createElement(LeftOutlined$1,null):React__namespace.createElement(RightOutlined$1,null)),at=React__namespace.createElement("a",{className:`${ue}-item-link`},React__namespace.createElement("div",{className:`${ue}-item-container`},ve==="rtl"?React__namespace.createElement(DoubleRightOutlined$1,{className:`${ue}-item-link-icon`}):React__namespace.createElement(DoubleLeftOutlined$1,{className:`${ue}-item-link-icon`}),Ve)),Ue=React__namespace.createElement("a",{className:`${ue}-item-link`},React__namespace.createElement("div",{className:`${ue}-item-container`},ve==="rtl"?React__namespace.createElement(DoubleLeftOutlined$1,{className:`${ue}-item-link-icon`}):React__namespace.createElement(DoubleRightOutlined$1,{className:`${ue}-item-link-icon`}),Ve));return{prevIcon:Xe,nextIcon:Ye,jumpPrevIcon:at,jumpNextIcon:Ue}},[ve,ue]),ke=le("select",F),je=classNames({[`${ue}-${$}`]:!!$,[`${ue}-mini`]:_e,[`${ue}-rtl`]:ve==="rtl",[`${ue}-bordered`]:de.wireframe},he,K,J,ye,be),ze=Object.assign(Object.assign({},me),ee);return pe(React__namespace.createElement(React__namespace.Fragment,null,de.wireframe&&React__namespace.createElement(BorderedStyle,{prefixCls:ue}),React__namespace.createElement(Pagination$2,Object.assign({},Ae,se,{style:ze,prefixCls:ue,selectPrefixCls:ke,className:je,locale:Ee,pageSizeOptions:Oe,showSizeChanger:Fe,sizeChangerRender:we}))))};process.env.NODE_ENV!=="production"&&(Pagination.displayName="Pagination");const Pagination$1=Pagination,viewSize=100,borderWidth=viewSize/5,radius=viewSize/2-borderWidth/2,circumference=radius*2*Math.PI,position=50,CustomCircle=C=>{const{dotClassName:$,style:V,hasCircleCls:F}=C;return React__namespace.createElement("circle",{className:classNames(`${$}-circle`,{[`${$}-circle-bg`]:F}),r:radius,cx:position,cy:position,strokeWidth:borderWidth,style:V})},Progress$2=C=>{let{percent:$,prefixCls:V}=C;const F=`${V}-dot`,K=`${F}-holder`,J=`${K}-hidden`,[ee,te]=React__namespace.useState(!1);useLayoutEffect$1(()=>{$!==0&&te(!0)},[$!==0]);const ne=Math.max(Math.min($,100),0);if(!ee)return null;const re={strokeDashoffset:`${circumference/4}`,strokeDasharray:`${circumference*ne/100} ${circumference*(100-ne)/100}`};return React__namespace.createElement("span",{className:classNames(K,`${F}-progress`,ne<=0&&J)},React__namespace.createElement("svg",{viewBox:`0 0 ${viewSize} ${viewSize}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":ne},React__namespace.createElement(CustomCircle,{dotClassName:F,hasCircleCls:!0}),React__namespace.createElement(CustomCircle,{dotClassName:F,style:re})))},Progress$3=Progress$2;function Looper(C){const{prefixCls:$,percent:V=0}=C,F=`${$}-dot`,K=`${F}-holder`,J=`${K}-hidden`;return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("span",{className:classNames(K,V>0&&J)},React__namespace.createElement("span",{className:classNames(F,`${$}-dot-spin`)},[1,2,3,4].map(ee=>React__namespace.createElement("i",{className:`${$}-dot-item`,key:ee})))),React__namespace.createElement(Progress$3,{prefixCls:$,percent:V}))}function Indicator$1(C){const{prefixCls:$,indicator:V,percent:F}=C,K=`${$}-dot`;return V&&React__namespace.isValidElement(V)?cloneElement(V,{className:classNames(V.props.className,K),percent:F}):React__namespace.createElement(Looper,{prefixCls:$,percent:F})}const antSpinMove=new Keyframe("antSpinMove",{to:{opacity:1}}),antRotate=new Keyframe("antRotate",{to:{transform:"rotate(405deg)"}}),genSpinStyle=C=>{const{componentCls:$,calc:V}=C;return{[$]:Object.assign(Object.assign({},resetComponent(C)),{position:"absolute",display:"none",color:C.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${C.motionDurationSlow} ${C.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${$}-text`]:{fontSize:C.fontSize,paddingTop:V(V(C.dotSize).sub(C.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:C.colorBgMask,zIndex:C.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${C.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[$]:{[`${$}-dot-holder`]:{color:C.colorWhite},[`${$}-text`]:{color:C.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${$}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:C.contentHeight,[`${$}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:V(C.dotSize).mul(-1).div(2).equal()},[`${$}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${C.colorBgContainer}`},[`&${$}-show-text ${$}-dot`]:{marginTop:V(C.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${$}-dot`]:{margin:V(C.dotSizeSM).mul(-1).div(2).equal()},[`${$}-text`]:{paddingTop:V(V(C.dotSizeSM).sub(C.fontSize)).div(2).add(2).equal()},[`&${$}-show-text ${$}-dot`]:{marginTop:V(C.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${$}-dot`]:{margin:V(C.dotSizeLG).mul(-1).div(2).equal()},[`${$}-text`]:{paddingTop:V(V(C.dotSizeLG).sub(C.fontSize)).div(2).add(2).equal()},[`&${$}-show-text ${$}-dot`]:{marginTop:V(C.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${$}-container`]:{position:"relative",transition:`opacity ${C.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:C.colorBgContainer,opacity:0,transition:`all ${C.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${$}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:C.spinDotDefault},[`${$}-dot-holder`]:{width:"1em",height:"1em",fontSize:C.dotSize,display:"inline-block",transition:`transform ${C.motionDurationSlow} ease, opacity ${C.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:C.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${$}-dot-progress`]:{position:"absolute",inset:0},[`${$}-dot`]:{position:"relative",display:"inline-block",fontSize:C.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:V(C.dotSize).sub(V(C.marginXXS).div(2)).div(2).equal(),height:V(C.dotSize).sub(V(C.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:antSpinMove,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:antRotate,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(F=>`${F} ${C.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:C.colorFillSecondary}},[`&-sm ${$}-dot`]:{"&, &-holder":{fontSize:C.dotSizeSM}},[`&-sm ${$}-dot-holder`]:{i:{width:V(V(C.dotSizeSM).sub(V(C.marginXXS).div(2))).div(2).equal(),height:V(V(C.dotSizeSM).sub(V(C.marginXXS).div(2))).div(2).equal()}},[`&-lg ${$}-dot`]:{"&, &-holder":{fontSize:C.dotSizeLG}},[`&-lg ${$}-dot-holder`]:{i:{width:V(V(C.dotSizeLG).sub(C.marginXXS)).div(2).equal(),height:V(V(C.dotSizeLG).sub(C.marginXXS)).div(2).equal()}},[`&${$}-show-text ${$}-text`]:{display:"block"}})}},prepareComponentToken$8=C=>{const{controlHeightLG:$,controlHeight:V}=C;return{contentHeight:400,dotSize:$/2,dotSizeSM:$*.35,dotSizeLG:V}},useStyle$8=genStyleHooks("Spin",C=>{const $=merge(C,{spinDotDefault:C.colorTextDescription});return[genSpinStyle($)]},prepareComponentToken$8),AUTO_INTERVAL=200,STEP_BUCKETS=[[30,.05],[70,.03],[96,.01]];function usePercent(C,$){const[V,F]=React__namespace.useState(0),K=React__namespace.useRef(null),J=$==="auto";return React__namespace.useEffect(()=>(J&&C&&(F(0),K.current=setInterval(()=>{F(ee=>{const te=100-ee;for(let ne=0;ne<STEP_BUCKETS.length;ne+=1){const[re,ae]=STEP_BUCKETS[ne];if(ee<=re)return ee+te*ae}return ee})},AUTO_INTERVAL)),()=>{clearInterval(K.current)}),[J,C]),J?V:$}var __rest$f=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};let defaultIndicator;function shouldDelay(C,$){return!!C&&!!$&&!Number.isNaN(Number($))}const Spin=C=>{var $;const{prefixCls:V,spinning:F=!0,delay:K=0,className:J,rootClassName:ee,size:te="default",tip:ne,wrapperClassName:re,style:ae,children:oe,fullscreen:ie=!1,indicator:se,percent:ce}=C,de=__rest$f(C,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:le,direction:ve,className:fe,style:he,indicator:me}=useComponentConfig("spin"),ue=le("spin",V),[pe,ye,be]=useStyle$8(ue),[ge,_e]=React__namespace.useState(()=>F&&!shouldDelay(F,K)),Se=usePercent(ge,ce);React__namespace.useEffect(()=>{if(F){const Ne=debounce(K,()=>{_e(!0)});return Ne(),()=>{var De;(De=Ne==null?void 0:Ne.cancel)===null||De===void 0||De.call(Ne)}}_e(!1)},[K,F]);const Ee=React__namespace.useMemo(()=>typeof oe!="undefined"&&!ie,[oe,ie]);if(process.env.NODE_ENV!=="production"){const Ne=devUseWarning("Spin");process.env.NODE_ENV!=="production"&&Ne(!ne||Ee||ie,"usage","`tip` only work in nest or fullscreen pattern.")}const Ce=classNames(ue,fe,{[`${ue}-sm`]:te==="small",[`${ue}-lg`]:te==="large",[`${ue}-spinning`]:ge,[`${ue}-show-text`]:!!ne,[`${ue}-rtl`]:ve==="rtl"},J,!ie&&ee,ye,be),xe=classNames(`${ue}-container`,{[`${ue}-blur`]:ge}),$e=($=se!=null?se:me)!==null&&$!==void 0?$:defaultIndicator,Ie=Object.assign(Object.assign({},he),ae),Fe=React__namespace.createElement("div",Object.assign({},de,{style:Ie,className:Ce,"aria-live":"polite","aria-busy":ge}),React__namespace.createElement(Indicator$1,{prefixCls:ue,indicator:$e,percent:Se}),ne&&(Ee||ie)?React__namespace.createElement("div",{className:`${ue}-text`},ne):null);return pe(Ee?React__namespace.createElement("div",Object.assign({},de,{className:classNames(`${ue}-nested-loading`,re,ye,be)}),ge&&React__namespace.createElement("div",{key:"loading"},Fe),React__namespace.createElement("div",{className:xe,key:"container"},oe)):ie?React__namespace.createElement("div",{className:classNames(`${ue}-fullscreen`,{[`${ue}-fullscreen-show`]:ge},ee,ye,be)},Fe):Fe)};Spin.setDefaultIndicator=C=>{defaultIndicator=C},process.env.NODE_ENV!=="production"&&(Spin.displayName="Spin");const Spin$1=Spin,toList$1=function(C){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&C==null?[]:Array.isArray(C)?C:[C]},toList$2=toList$1;let message=null,act$1=C=>C(),taskQueue$1=[],defaultGlobalConfig$1={};function getGlobalContext$1(){const{getContainer:C,duration:$,rtl:V,maxCount:F,top:K}=defaultGlobalConfig$1,J=(C==null?void 0:C())||document.body;return{getContainer:()=>J,duration:$,rtl:V,maxCount:F,top:K}}const GlobalHolder$1=React.forwardRef((C,$)=>{const{messageConfig:V,sync:F}=C,{getPrefixCls:K}=React.useContext(ConfigContext),J=defaultGlobalConfig$1.prefixCls||K("message"),ee=React.useContext(AppConfigContext),[te,ne]=useInternalMessage(Object.assign(Object.assign(Object.assign({},V),{prefixCls:J}),ee.message));return React.useImperativeHandle($,()=>{const re=Object.assign({},te);return Object.keys(re).forEach(ae=>{re[ae]=function(){return F(),te[ae].apply(te,arguments)}}),{instance:re,sync:F}}),ne}),GlobalHolderWrapper$1=React.forwardRef((C,$)=>{const[V,F]=React.useState(getGlobalContext$1),K=()=>{F(getGlobalContext$1)};React.useEffect(K,[]);const J=globalConfig(),ee=J.getRootPrefixCls(),te=J.getIconPrefixCls(),ne=J.getTheme(),re=React.createElement(GlobalHolder$1,{ref:$,sync:K,messageConfig:V});return React.createElement(ConfigProvider,{prefixCls:ee,iconPrefixCls:te,theme:ne},J.holderRender?J.holderRender(re):re)});function flushNotice$1(){if(!message){const C=document.createDocumentFragment(),$={fragment:C};message=$,act$1(()=>{unstableSetRender()(React.createElement(GlobalHolderWrapper$1,{ref:F=>{const{instance:K,sync:J}=F||{};Promise.resolve().then(()=>{!$.instance&&K&&($.instance=K,$.sync=J,flushNotice$1())})}}),C)});return}message.instance&&(taskQueue$1.forEach(C=>{const{type:$,skipped:V}=C;if(!V)switch($){case"open":{act$1(()=>{const F=message.instance.open(Object.assign(Object.assign({},defaultGlobalConfig$1),C.config));F==null||F.then(C.resolve),C.setCloseFn(F)});break}case"destroy":act$1(()=>{message==null||message.instance.destroy(C.key)});break;default:act$1(()=>{var F;const K=(F=message.instance)[$].apply(F,_toConsumableArray(C.args));K==null||K.then(C.resolve),C.setCloseFn(K)})}}),taskQueue$1=[])}function setMessageGlobalConfig(C){defaultGlobalConfig$1=Object.assign(Object.assign({},defaultGlobalConfig$1),C),act$1(()=>{var $;($=message==null?void 0:message.sync)===null||$===void 0||$.call(message)})}function open$1(C){const $=wrapPromiseFn(V=>{let F;const K={type:"open",config:C,resolve:V,setCloseFn:J=>{F=J}};return taskQueue$1.push(K),()=>{F?act$1(()=>{F()}):K.skipped=!0}});return flushNotice$1(),$}function typeOpen(C,$){const V=globalConfig();process.env.NODE_ENV!=="production"&&!V.holderRender&&warnContext("message");const F=wrapPromiseFn(K=>{let J;const ee={type:C,args:$,resolve:K,setCloseFn:te=>{J=te}};return taskQueue$1.push(ee),()=>{J?act$1(()=>{J()}):ee.skipped=!0}});return flushNotice$1(),F}const destroy$1=C=>{taskQueue$1.push({type:"destroy",key:C}),flushNotice$1()},methods$1=["success","info","warning","error","loading"],baseStaticMethods$1={open:open$1,destroy:destroy$1,config:setMessageGlobalConfig,useMessage,_InternalPanelDoNotUseOrYouWillBeFired:PurePanel$a},staticMethods$1=baseStaticMethods$1;methods$1.forEach(C=>{staticMethods$1[C]=function(){for(var $=arguments.length,V=new Array($),F=0;F<$;F++)V[F]=arguments[F];return typeOpen(C,V)}}),process.env.NODE_ENV,process.env.NODE_ENV;const message$1=staticMethods$1;var __rest$e=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const PurePanel=C=>{const{prefixCls:$,className:V,closeIcon:F,closable:K,type:J,title:ee,children:te,footer:ne}=C,re=__rest$e(C,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:ae}=React__namespace.useContext(ConfigContext),oe=ae(),ie=$||ae("modal"),se=useCSSVarCls$1(oe),[ce,de,le]=useStyle$w(ie,se),ve=`${ie}-confirm`;let fe={};return J?fe={closable:K!=null?K:!1,title:"",footer:"",children:React__namespace.createElement(ConfirmContent,Object.assign({},C,{prefixCls:ie,confirmPrefixCls:ve,rootPrefixCls:oe,content:te}))}:fe={closable:K!=null?K:!0,title:ee,footer:ne!==null&&React__namespace.createElement(Footer$5,Object.assign({},C)),children:te},ce(React__namespace.createElement(Panel$1,Object.assign({prefixCls:ie,className:classNames(de,`${ie}-pure-panel`,J&&ve,J&&`${ve}-${J}`,V,le,se)},re,{closeIcon:renderCloseIcon(ie,F),closable:K},fe)))},PurePanel$1=withPureRenderTheme(PurePanel);function modalWarn(C){return confirm(withWarn(C))}const Modal=OriginModal;Modal.useModal=useModal,Modal.info=function($){return confirm(withInfo($))},Modal.success=function($){return confirm(withSuccess($))},Modal.error=function($){return confirm(withError($))},Modal.warning=modalWarn,Modal.warn=modalWarn,Modal.confirm=function($){return confirm(withConfirm($))},Modal.destroyAll=function(){for(;destroyFns$1.length;){const $=destroyFns$1.pop();$&&$()}},Modal.config=modalGlobalConfig,Modal._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$1,process.env.NODE_ENV!=="production"&&(Modal.displayName="Modal");const Modal$1=Modal;let notification=null,act=C=>C(),taskQueue=[],defaultGlobalConfig={};function getGlobalContext(){const{getContainer:C,rtl:$,maxCount:V,top:F,bottom:K,showProgress:J,pauseOnHover:ee}=defaultGlobalConfig,te=(C==null?void 0:C())||document.body;return{getContainer:()=>te,rtl:$,maxCount:V,top:F,bottom:K,showProgress:J,pauseOnHover:ee}}const GlobalHolder=React.forwardRef((C,$)=>{const{notificationConfig:V,sync:F}=C,{getPrefixCls:K}=React.useContext(ConfigContext),J=defaultGlobalConfig.prefixCls||K("notification"),ee=React.useContext(AppConfigContext),[te,ne]=useInternalNotification(Object.assign(Object.assign(Object.assign({},V),{prefixCls:J}),ee.notification));return React.useEffect(F,[]),React.useImperativeHandle($,()=>{const re=Object.assign({},te);return Object.keys(re).forEach(ae=>{re[ae]=function(){return F(),te[ae].apply(te,arguments)}}),{instance:re,sync:F}}),ne}),GlobalHolderWrapper=React.forwardRef((C,$)=>{const[V,F]=React.useState(getGlobalContext),K=()=>{F(getGlobalContext)};React.useEffect(K,[]);const J=globalConfig(),ee=J.getRootPrefixCls(),te=J.getIconPrefixCls(),ne=J.getTheme(),re=React.createElement(GlobalHolder,{ref:$,sync:K,notificationConfig:V});return React.createElement(ConfigProvider,{prefixCls:ee,iconPrefixCls:te,theme:ne},J.holderRender?J.holderRender(re):re)});function flushNotice(){if(!notification){const C=document.createDocumentFragment(),$={fragment:C};notification=$,act(()=>{unstableSetRender()(React.createElement(GlobalHolderWrapper,{ref:F=>{const{instance:K,sync:J}=F||{};Promise.resolve().then(()=>{!$.instance&&K&&($.instance=K,$.sync=J,flushNotice())})}}),C)});return}notification.instance&&(taskQueue.forEach(C=>{switch(C.type){case"open":{act(()=>{notification.instance.open(Object.assign(Object.assign({},defaultGlobalConfig),C.config))});break}case"destroy":act(()=>{notification==null||notification.instance.destroy(C.key)});break}}),taskQueue=[])}function setNotificationGlobalConfig(C){defaultGlobalConfig=Object.assign(Object.assign({},defaultGlobalConfig),C),act(()=>{var $;($=notification==null?void 0:notification.sync)===null||$===void 0||$.call(notification)})}function open(C){const $=globalConfig();process.env.NODE_ENV!=="production"&&!$.holderRender&&warnContext("notification"),taskQueue.push({type:"open",config:C}),flushNotice()}const destroy=C=>{taskQueue.push({type:"destroy",key:C}),flushNotice()},methods=["success","info","warning","error"],baseStaticMethods={open,destroy,config:setNotificationGlobalConfig,useNotification,_InternalPanelDoNotUseOrYouWillBeFired:PurePanel$8},staticMethods=baseStaticMethods;methods.forEach(C=>{staticMethods[C]=$=>open(Object.assign(Object.assign({},$),{type:C}))}),process.env.NODE_ENV,process.env.NODE_ENV;const notification$1=staticMethods;var defaultProps={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},useTransitionDuration=function(){var $=React.useRef([]),V=React.useRef(null);return React.useEffect(function(){var F=Date.now(),K=!1;$.current.forEach(function(J){if(J){K=!0;var ee=J.style;ee.transitionDuration=".3s, .3s, .3s, .06s",V.current&&F-V.current<100&&(ee.transitionDuration="0s, 0s")}}),K&&(V.current=Date.now())}),$.current};process.env.NODE_ENV;var uuid=0,isBrowserClient=process.env.NODE_ENV!=="test"&&canUseDom();function getUUID(){var C;return isBrowserClient?(C=uuid,uuid+=1):C="TEST_OR_SSR",C}const useId=function(C){var $=React__namespace.useState(),V=_slicedToArray($,2),F=V[0],K=V[1];return React__namespace.useEffect(function(){K("rc_progress_".concat(getUUID()))},[]),C||F};var Block=function($){var V=$.bg,F=$.children;return React__namespace.createElement("div",{style:{width:"100%",height:"100%",background:V}},F)};function getPtgColors(C,$){return Object.keys(C).map(function(V){var F=parseFloat(V),K="".concat(Math.floor(F*$),"%");return"".concat(C[V]," ").concat(K)})}var PtgCircle=React__namespace.forwardRef(function(C,$){var V=C.prefixCls,F=C.color,K=C.gradientId,J=C.radius,ee=C.style,te=C.ptg,ne=C.strokeLinecap,re=C.strokeWidth,ae=C.size,oe=C.gapDegree,ie=F&&_typeof(F)==="object",se=ie?"#FFF":void 0,ce=ae/2,de=React__namespace.createElement("circle",{className:"".concat(V,"-circle-path"),r:J,cx:ce,cy:ce,stroke:se,strokeLinecap:ne,strokeWidth:re,opacity:te===0?0:1,style:ee,ref:$});if(!ie)return de;var le="".concat(K,"-conic"),ve=oe?"".concat(180+oe/2,"deg"):"0deg",fe=getPtgColors(F,(360-oe)/360),he=getPtgColors(F,1),me="conic-gradient(from ".concat(ve,", ").concat(fe.join(", "),")"),ue="linear-gradient(to ".concat(oe?"bottom":"top",", ").concat(he.join(", "),")");return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("mask",{id:le},de),React__namespace.createElement("foreignObject",{x:0,y:0,width:ae,height:ae,mask:"url(#".concat(le,")")},React__namespace.createElement(Block,{bg:ue},React__namespace.createElement(Block,{bg:me}))))});process.env.NODE_ENV!=="production"&&(PtgCircle.displayName="PtgCircle");var VIEW_BOX_SIZE=100,getCircleStyle=function($,V,F,K,J,ee,te,ne,re,ae){var oe=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ie=F/100*360*((360-ee)/360),se=ee===0?0:{bottom:0,top:180,left:90,right:-90}[te],ce=(100-K)/100*V;re==="round"&&K!==100&&(ce+=ae/2,ce>=V&&(ce=V-.01));var de=VIEW_BOX_SIZE/2;return{stroke:typeof ne=="string"?ne:void 0,strokeDasharray:"".concat(V,"px ").concat($),strokeDashoffset:ce+oe,transform:"rotate(".concat(J+ie+se,"deg)"),transformOrigin:"".concat(de,"px ").concat(de,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},_excluded$e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function toArray$1(C){var $=C!=null?C:[];return Array.isArray($)?$:[$]}var Circle$2=function($){var V=_objectSpread2(_objectSpread2({},defaultProps),$),F=V.id,K=V.prefixCls,J=V.steps,ee=V.strokeWidth,te=V.trailWidth,ne=V.gapDegree,re=ne===void 0?0:ne,ae=V.gapPosition,oe=V.trailColor,ie=V.strokeLinecap,se=V.style,ce=V.className,de=V.strokeColor,le=V.percent,ve=_objectWithoutProperties(V,_excluded$e),fe=VIEW_BOX_SIZE/2,he=useId(F),me="".concat(he,"-gradient"),ue=fe-ee/2,pe=Math.PI*2*ue,ye=re>0?90+re/2:-90,be=pe*((360-re)/360),ge=_typeof(J)==="object"?J:{count:J,gap:2},_e=ge.count,Se=ge.gap,Ee=toArray$1(le),Ce=toArray$1(de),xe=Ce.find(function(we){return we&&_typeof(we)==="object"}),$e=xe&&_typeof(xe)==="object",Ie=$e?"butt":ie,Fe=getCircleStyle(pe,be,0,100,ye,re,ae,oe,Ie,ee),Ne=useTransitionDuration(),De=function(){var Ae=0;return Ee.map(function(ke,je){var ze=Ce[je]||Ce[Ce.length-1],Ve=getCircleStyle(pe,be,Ae,ke,ye,re,ae,ze,Ie,ee);return Ae+=ke,React__namespace.createElement(PtgCircle,{key:je,color:ze,ptg:ke,radius:ue,prefixCls:K,gradientId:me,style:Ve,strokeLinecap:Ie,strokeWidth:ee,gapDegree:re,ref:function(Ye){Ne[je]=Ye},size:VIEW_BOX_SIZE})}).reverse()},Oe=function(){var Ae=Math.round(_e*(Ee[0]/100)),ke=100/_e,je=0;return new Array(_e).fill(null).map(function(ze,Ve){var Xe=Ve<=Ae-1?Ce[0]:oe,Ye=Xe&&_typeof(Xe)==="object"?"url(#".concat(me,")"):void 0,at=getCircleStyle(pe,be,je,ke,ye,re,ae,Xe,"butt",ee,Se);return je+=(be-at.strokeDashoffset+Se)*100/be,React__namespace.createElement("circle",{key:Ve,className:"".concat(K,"-circle-path"),r:ue,cx:fe,cy:fe,stroke:Ye,strokeWidth:ee,opacity:1,style:at,ref:function(Le){Ne[Ve]=Le}})})};return React__namespace.createElement("svg",_extends({className:classNames("".concat(K,"-circle"),ce),viewBox:"0 0 ".concat(VIEW_BOX_SIZE," ").concat(VIEW_BOX_SIZE),style:se,id:F,role:"presentation"},ve),!_e&&React__namespace.createElement("circle",{className:"".concat(K,"-circle-trail"),r:ue,cx:fe,cy:fe,stroke:oe,strokeLinecap:Ie,strokeWidth:te||ee,style:Fe}),_e?Oe():De())};process.env.NODE_ENV!=="production"&&(Circle$2.displayName="Circle");function validProgress(C){return!C||C<0?0:C>100?100:C}function getSuccessPercent(C){let{success:$,successPercent:V}=C,F=V;return $&&"progress"in $&&(F=$.progress),$&&"percent"in $&&(F=$.percent),F}const getPercentage=C=>{let{percent:$,success:V,successPercent:F}=C;const K=validProgress(getSuccessPercent({success:V,successPercent:F}));return[K,validProgress(validProgress($)-K)]},getStrokeColor=C=>{let{success:$={},strokeColor:V}=C;const{strokeColor:F}=$;return[F||presetPrimaryColors.green,V||null]},getSize=(C,$,V)=>{var F,K,J,ee;let te=-1,ne=-1;if($==="step"){const re=V.steps,ae=V.strokeWidth;typeof C=="string"||typeof C=="undefined"?(te=C==="small"?2:14,ne=ae!=null?ae:8):typeof C=="number"?[te,ne]=[C,C]:[te=14,ne=8]=Array.isArray(C)?C:[C.width,C.height],te*=re}else if($==="line"){const re=V==null?void 0:V.strokeWidth;typeof C=="string"||typeof C=="undefined"?ne=re||(C==="small"?6:8):typeof C=="number"?[te,ne]=[C,C]:[te=-1,ne=8]=Array.isArray(C)?C:[C.width,C.height]}else($==="circle"||$==="dashboard")&&(typeof C=="string"||typeof C=="undefined"?[te,ne]=C==="small"?[60,60]:[120,120]:typeof C=="number"?[te,ne]=[C,C]:Array.isArray(C)&&(te=(K=(F=C[0])!==null&&F!==void 0?F:C[1])!==null&&K!==void 0?K:120,ne=(ee=(J=C[0])!==null&&J!==void 0?J:C[1])!==null&&ee!==void 0?ee:120));return[te,ne]},CIRCLE_MIN_STROKE_WIDTH=3,getMinPercent=C=>CIRCLE_MIN_STROKE_WIDTH/C*100,Circle=C=>{const{prefixCls:$,trailColor:V=null,strokeLinecap:F="round",gapPosition:K,gapDegree:J,width:ee=120,type:te,children:ne,success:re,size:ae=ee,steps:oe}=C,[ie,se]=getSize(ae,"circle");let{strokeWidth:ce}=C;ce===void 0&&(ce=Math.max(getMinPercent(ie),6));const de={width:ie,height:se,fontSize:ie*.15+6},le=React__namespace.useMemo(()=>{if(J||J===0)return J;if(te==="dashboard")return 75},[J,te]),ve=getPercentage(C),fe=K||te==="dashboard"&&"bottom"||void 0,he=Object.prototype.toString.call(C.strokeColor)==="[object Object]",me=getStrokeColor({success:re,strokeColor:C.strokeColor}),ue=classNames(`${$}-inner`,{[`${$}-circle-gradient`]:he}),pe=React__namespace.createElement(Circle$2,{steps:oe,percent:oe?ve[1]:ve,strokeWidth:ce,trailWidth:ce,strokeColor:oe?me[1]:me,strokeLinecap:F,trailColor:V,prefixCls:$,gapDegree:le,gapPosition:fe}),ye=ie<=20,be=React__namespace.createElement("div",{className:ue,style:de},pe,!ye&&ne);return ye?React__namespace.createElement(Tooltip$1,{title:ne},be):be},Circle$1=Circle,LineStrokeColorVar="--progress-line-stroke-color",Percent="--progress-percent",genAntProgressActive=C=>{const $=C?"100%":"-100%";return new Keyframe(`antProgress${C?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${$}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${$}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},genBaseStyle$3=C=>{const{componentCls:$,iconCls:V}=C;return{[$]:Object.assign(Object.assign({},resetComponent(C)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:C.fontSize},[`${$}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${$}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:C.remainingColor,borderRadius:C.lineBorderRadius},[`${$}-inner:not(${$}-circle-gradient)`]:{[`${$}-circle-path`]:{stroke:C.defaultColor}},[`${$}-success-bg, ${$}-bg`]:{position:"relative",background:C.defaultColor,borderRadius:C.lineBorderRadius,transition:`all ${C.motionDurationSlow} ${C.motionEaseInOutCirc}`},[`${$}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${$}-text`]:{width:"max-content",marginInlineStart:0,marginTop:C.marginXXS}},[`${$}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${LineStrokeColorVar})`]},height:"100%",width:`calc(1 / var(${Percent}) * 100%)`,display:"block"},[`&${$}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${$}-text-inner`]:{color:C.colorWhite,[`&${$}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${$}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:C.colorSuccess},[`${$}-text`]:{display:"inline-block",marginInlineStart:C.marginXS,color:C.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[V]:{fontSize:C.fontSize},[`&${$}-text-outer`]:{width:"max-content"},[`&${$}-text-outer${$}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:C.marginXS}},[`${$}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${unit$1(C.paddingXXS)}`,[`&${$}-text-start`]:{justifyContent:"start"},[`&${$}-text-end`]:{justifyContent:"end"}},[`&${$}-status-active`]:{[`${$}-bg::before`]:{position:"absolute",inset:0,backgroundColor:C.colorBgContainer,borderRadius:C.lineBorderRadius,opacity:0,animationName:genAntProgressActive(),animationDuration:C.progressActiveMotionDuration,animationTimingFunction:C.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${$}-rtl${$}-status-active`]:{[`${$}-bg::before`]:{animationName:genAntProgressActive(!0)}},[`&${$}-status-exception`]:{[`${$}-bg`]:{backgroundColor:C.colorError},[`${$}-text`]:{color:C.colorError}},[`&${$}-status-exception ${$}-inner:not(${$}-circle-gradient)`]:{[`${$}-circle-path`]:{stroke:C.colorError}},[`&${$}-status-success`]:{[`${$}-bg`]:{backgroundColor:C.colorSuccess},[`${$}-text`]:{color:C.colorSuccess}},[`&${$}-status-success ${$}-inner:not(${$}-circle-gradient)`]:{[`${$}-circle-path`]:{stroke:C.colorSuccess}}})}},genCircleStyle=C=>{const{componentCls:$,iconCls:V}=C;return{[$]:{[`${$}-circle-trail`]:{stroke:C.remainingColor},[`&${$}-circle ${$}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${$}-circle ${$}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:C.circleTextColor,fontSize:C.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[V]:{fontSize:C.circleIconFontSize}},[`${$}-circle&-status-exception`]:{[`${$}-text`]:{color:C.colorError}},[`${$}-circle&-status-success`]:{[`${$}-text`]:{color:C.colorSuccess}}},[`${$}-inline-circle`]:{lineHeight:1,[`${$}-inner`]:{verticalAlign:"bottom"}}}},genStepStyle=C=>{const{componentCls:$}=C;return{[$]:{[`${$}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:C.progressStepMinWidth,marginInlineEnd:C.progressStepMarginInlineEnd,backgroundColor:C.remainingColor,transition:`all ${C.motionDurationSlow}`,"&-active":{backgroundColor:C.defaultColor}}}}}},genSmallLine=C=>{const{componentCls:$,iconCls:V}=C;return{[$]:{[`${$}-small&-line, ${$}-small&-line ${$}-text ${V}`]:{fontSize:C.fontSizeSM}}}},prepareComponentToken$7=C=>({circleTextColor:C.colorText,defaultColor:C.colorInfo,remainingColor:C.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${C.fontSize/C.fontSizeSM}em`}),useStyle$7=genStyleHooks("Progress",C=>{const $=C.calc(C.marginXXS).div(2).equal(),V=merge(C,{progressStepMarginInlineEnd:$,progressStepMinWidth:$,progressActiveMotionDuration:"2.4s"});return[genBaseStyle$3(V),genCircleStyle(V),genStepStyle(V),genSmallLine(V)]},prepareComponentToken$7);var __rest$d=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const sortGradient=C=>{let $=[];return Object.keys(C).forEach(V=>{const F=parseFloat(V.replace(/%/g,""));Number.isNaN(F)||$.push({key:F,value:C[V]})}),$=$.sort((V,F)=>V.key-F.key),$.map(V=>{let{key:F,value:K}=V;return`${K} ${F}%`}).join(", ")},handleGradient=(C,$)=>{const{from:V=presetPrimaryColors.blue,to:F=presetPrimaryColors.blue,direction:K=$==="rtl"?"to left":"to right"}=C,J=__rest$d(C,["from","to","direction"]);if(Object.keys(J).length!==0){const te=sortGradient(J),ne=`linear-gradient(${K}, ${te})`;return{background:ne,[LineStrokeColorVar]:ne}}const ee=`linear-gradient(${K}, ${V}, ${F})`;return{background:ee,[LineStrokeColorVar]:ee}},Line=C=>{const{prefixCls:$,direction:V,percent:F,size:K,strokeWidth:J,strokeColor:ee,strokeLinecap:te="round",children:ne,trailColor:re=null,percentPosition:ae,success:oe}=C,{align:ie,type:se}=ae,ce=ee&&typeof ee!="string"?handleGradient(ee,V):{[LineStrokeColorVar]:ee,background:ee},de=te==="square"||te==="butt"?0:void 0,le=K!=null?K:[-1,J||(K==="small"?6:8)],[ve,fe]=getSize(le,"line",{strokeWidth:J});process.env.NODE_ENV!=="production"&&devUseWarning("Progress").deprecated(!("strokeWidth"in C),"strokeWidth","size");const he={backgroundColor:re||void 0,borderRadius:de},me=Object.assign(Object.assign({width:`${validProgress(F)}%`,height:fe,borderRadius:de},ce),{[Percent]:validProgress(F)/100}),ue=getSuccessPercent(C),pe={width:`${validProgress(ue)}%`,height:fe,borderRadius:de,backgroundColor:oe==null?void 0:oe.strokeColor},ye={width:ve<0?"100%":ve},be=React__namespace.createElement("div",{className:`${$}-inner`,style:he},React__namespace.createElement("div",{className:classNames(`${$}-bg`,`${$}-bg-${se}`),style:me},se==="inner"&&ne),ue!==void 0&&React__namespace.createElement("div",{className:`${$}-success-bg`,style:pe})),ge=se==="outer"&&ie==="start",_e=se==="outer"&&ie==="end";return se==="outer"&&ie==="center"?React__namespace.createElement("div",{className:`${$}-layout-bottom`},be,ne):React__namespace.createElement("div",{className:`${$}-outer`,style:ye},ge&&ne,be,_e&&ne)},Line$1=Line,Steps$3=C=>{const{size:$,steps:V,rounding:F=Math.round,percent:K=0,strokeWidth:J=8,strokeColor:ee,trailColor:te=null,prefixCls:ne,children:re}=C,ae=F(V*(K/100)),oe=$==="small"?2:14,ie=$!=null?$:[oe,J],[se,ce]=getSize(ie,"step",{steps:V,strokeWidth:J}),de=se/V,le=Array.from({length:V});for(let ve=0;ve<V;ve++){const fe=Array.isArray(ee)?ee[ve]:ee;le[ve]=React__namespace.createElement("div",{key:ve,className:classNames(`${ne}-steps-item`,{[`${ne}-steps-item-active`]:ve<=ae-1}),style:{backgroundColor:ve<=ae-1?fe:te,width:de,height:ce}})}return React__namespace.createElement("div",{className:`${ne}-steps-outer`},le,re)},Steps$4=Steps$3;var __rest$c=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const ProgressStatuses=["normal","exception","active","success"],Progress=React__namespace.forwardRef((C,$)=>{const{prefixCls:V,className:F,rootClassName:K,steps:J,strokeColor:ee,percent:te=0,size:ne="default",showInfo:re=!0,type:ae="line",status:oe,format:ie,style:se,percentPosition:ce={}}=C,de=__rest$c(C,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:le="end",type:ve="outer"}=ce,fe=Array.isArray(ee)?ee[0]:ee,he=typeof ee=="string"||Array.isArray(ee)?ee:void 0,me=React__namespace.useMemo(()=>{if(fe){const De=typeof fe=="string"?fe:Object.values(fe)[0];return new FastColor(De).isLight()}return!1},[ee]),ue=React__namespace.useMemo(()=>{var De,Oe;const we=getSuccessPercent(C);return parseInt(we!==void 0?(De=we!=null?we:0)===null||De===void 0?void 0:De.toString():(Oe=te!=null?te:0)===null||Oe===void 0?void 0:Oe.toString(),10)},[te,C.success,C.successPercent]),pe=React__namespace.useMemo(()=>!ProgressStatuses.includes(oe)&&ue>=100?"success":oe||"normal",[oe,ue]),{getPrefixCls:ye,direction:be,progress:ge}=React__namespace.useContext(ConfigContext),_e=ye("progress",V),[Se,Ee,Ce]=useStyle$7(_e),xe=ae==="line",$e=xe&&!J,Ie=React__namespace.useMemo(()=>{if(!re)return null;const De=getSuccessPercent(C);let Oe;const we=ie||(ke=>`${ke}%`),Ae=xe&&me&&ve==="inner";return ve==="inner"||ie||pe!=="exception"&&pe!=="success"?Oe=we(validProgress(te),validProgress(De)):pe==="exception"?Oe=xe?React__namespace.createElement(CloseCircleFilled$1,null):React__namespace.createElement(CloseOutlined$1,null):pe==="success"&&(Oe=xe?React__namespace.createElement(CheckCircleFilled$1,null):React__namespace.createElement(CheckOutlined$1,null)),React__namespace.createElement("span",{className:classNames(`${_e}-text`,{[`${_e}-text-bright`]:Ae,[`${_e}-text-${le}`]:$e,[`${_e}-text-${ve}`]:$e}),title:typeof Oe=="string"?Oe:void 0},Oe)},[re,te,ue,pe,ae,_e,ie]);if(process.env.NODE_ENV!=="production"){const De=devUseWarning("Progress");De.deprecated(!("successPercent"in C),"successPercent","success.percent"),De.deprecated(!("width"in C),"width","size"),(ae==="circle"||ae==="dashboard")&&(Array.isArray(ne)?process.env.NODE_ENV!=="production"&&De(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof ne=="object"&&process.env.NODE_ENV!=="production"&&De(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),C.success&&"progress"in C.success&&De.deprecated(!1,"success.progress","success.percent")}let Fe;ae==="line"?Fe=J?React__namespace.createElement(Steps$4,Object.assign({},C,{strokeColor:he,prefixCls:_e,steps:typeof J=="object"?J.count:J}),Ie):React__namespace.createElement(Line$1,Object.assign({},C,{strokeColor:fe,prefixCls:_e,direction:be,percentPosition:{align:le,type:ve}}),Ie):(ae==="circle"||ae==="dashboard")&&(Fe=React__namespace.createElement(Circle$1,Object.assign({},C,{strokeColor:fe,prefixCls:_e,progressStatus:pe}),Ie));const Ne=classNames(_e,`${_e}-status-${pe}`,{[`${_e}-${ae==="dashboard"&&"circle"||ae}`]:ae!=="line",[`${_e}-inline-circle`]:ae==="circle"&&getSize(ne,"circle")[0]<=20,[`${_e}-line`]:$e,[`${_e}-line-align-${le}`]:$e,[`${_e}-line-position-${ve}`]:$e,[`${_e}-steps`]:J,[`${_e}-show-info`]:re,[`${_e}-${ne}`]:typeof ne=="string",[`${_e}-rtl`]:be==="rtl"},ge==null?void 0:ge.className,F,K,Ee,Ce);return Se(React__namespace.createElement("div",Object.assign({ref:$,style:Object.assign(Object.assign({},ge==null?void 0:ge.style),se),className:Ne,role:"progressbar","aria-valuenow":ue,"aria-valuemin":0,"aria-valuemax":100},omit(de,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Fe))});process.env.NODE_ENV!=="production"&&(Progress.displayName="Progress");const Progress$1=Progress;var AlertFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"};const AlertFilledSvg=AlertFilled$2;var AlertFilled=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:AlertFilledSvg}))},RefIcon$G=React__namespace.forwardRef(AlertFilled);process.env.NODE_ENV!=="production"&&(RefIcon$G.displayName="AlertFilled");const AlertFilled$1=RefIcon$G;var BellOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};const BellOutlinedSvg=BellOutlined$2;var BellOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:BellOutlinedSvg}))},RefIcon$F=React__namespace.forwardRef(BellOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$F.displayName="BellOutlined");const BellOutlined$1=RefIcon$F;var BulbTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 136c-141.4 0-256 114.6-256 256 0 92.5 49.4 176.3 128.1 221.8l35.9 20.8V752h184V634.6l35.9-20.8C718.6 568.3 768 484.5 768 392c0-141.4-114.6-256-256-256z",fill:V}},{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z",fill:$}}]}},name:"bulb",theme:"twotone"};const BulbTwoToneSvg=BulbTwoTone$2;var BulbTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:BulbTwoToneSvg}))},RefIcon$E=React__namespace.forwardRef(BulbTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$E.displayName="BulbTwoTone");const BulbTwoTone$1=RefIcon$E;var CaretDownFilled$2={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"};const CaretDownFilledSvg=CaretDownFilled$2;var CaretDownFilled=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CaretDownFilledSvg}))},RefIcon$D=React__namespace.forwardRef(CaretDownFilled);process.env.NODE_ENV!=="production"&&(RefIcon$D.displayName="CaretDownFilled");const CaretDownFilled$1=RefIcon$D;var CaretDownOutlined$2={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:"outlined"};const CaretDownOutlinedSvg=CaretDownOutlined$2;var CaretDownOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CaretDownOutlinedSvg}))},RefIcon$C=React__namespace.forwardRef(CaretDownOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$C.displayName="CaretDownOutlined");const CaretDownOutlined$1=RefIcon$C;var CaretUpOutlined$2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const CaretUpOutlinedSvg=CaretUpOutlined$2;var CaretUpOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CaretUpOutlinedSvg}))},RefIcon$B=React__namespace.forwardRef(CaretUpOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$B.displayName="CaretUpOutlined");const CaretUpOutlined$1=RefIcon$B;var CheckCircleOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const CheckCircleOutlinedSvg=CheckCircleOutlined$2;var CheckCircleOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CheckCircleOutlinedSvg}))},RefIcon$A=React__namespace.forwardRef(CheckCircleOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$A.displayName="CheckCircleOutlined");const CheckCircleOutlined$1=RefIcon$A;var CheckCircleTwoTone$2={icon:function($,V){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:$}},{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:V}},{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:$}}]}},name:"check-circle",theme:"twotone"};const CheckCircleTwoToneSvg=CheckCircleTwoTone$2;var CheckCircleTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CheckCircleTwoToneSvg}))},RefIcon$z=React__namespace.forwardRef(CheckCircleTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$z.displayName="CheckCircleTwoTone");const CheckCircleTwoTone$1=RefIcon$z;var ClockCircleTwoTone$2={icon:function($,V){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:$}},{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-372zm176.5 509.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z",fill:V}},{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.3c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.6-3.6 1.8-8.6-1.8-11.1z",fill:$}}]}},name:"clock-circle",theme:"twotone"};const ClockCircleTwoToneSvg=ClockCircleTwoTone$2;var ClockCircleTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:ClockCircleTwoToneSvg}))},RefIcon$y=React__namespace.forwardRef(ClockCircleTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$y.displayName="ClockCircleTwoTone");const ClockCircleTwoTone$1=RefIcon$y;var CloseCircleOutlined$2={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};const CloseCircleOutlinedSvg=CloseCircleOutlined$2;var CloseCircleOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CloseCircleOutlinedSvg}))},RefIcon$x=React__namespace.forwardRef(CloseCircleOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$x.displayName="CloseCircleOutlined");const CloseCircleOutlined$1=RefIcon$x;var CopyOutlined$2={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"};const CopyOutlinedSvg=CopyOutlined$2;var CopyOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:CopyOutlinedSvg}))},RefIcon$w=React__namespace.forwardRef(CopyOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$w.displayName="CopyOutlined");const CopyOutlined$1=RefIcon$w;var DeleteOutlined$2={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"};const DeleteOutlinedSvg=DeleteOutlined$2;var DeleteOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:DeleteOutlinedSvg}))},RefIcon$v=React__namespace.forwardRef(DeleteOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$v.displayName="DeleteOutlined");const DeleteOutlined$1=RefIcon$v;var DownloadOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const DownloadOutlinedSvg=DownloadOutlined$2;var DownloadOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:DownloadOutlinedSvg}))},RefIcon$u=React__namespace.forwardRef(DownloadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$u.displayName="DownloadOutlined");const DownloadOutlined$1=RefIcon$u;var EditOutlined$2={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"};const EditOutlinedSvg=EditOutlined$2;var EditOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:EditOutlinedSvg}))},RefIcon$t=React__namespace.forwardRef(EditOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$t.displayName="EditOutlined");const EditOutlined$1=RefIcon$t;var EditTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:V}},{tag:"path",attrs:{d:"M880 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-32zm-622.3-84c2 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-89z",fill:$}}]}},name:"edit",theme:"twotone"};const EditTwoToneSvg=EditTwoTone$2;var EditTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:EditTwoToneSvg}))},RefIcon$s=React__namespace.forwardRef(EditTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$s.displayName="EditTwoTone");const EditTwoTone$1=RefIcon$s;var EnterOutlined$2={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"};const EnterOutlinedSvg=EnterOutlined$2;var EnterOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:EnterOutlinedSvg}))},RefIcon$r=React__namespace.forwardRef(EnterOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$r.displayName="EnterOutlined");const EnterOutlined$1=RefIcon$r;var ExclamationCircleOutlined$2={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 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.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 8z"}}]},name:"exclamation-circle",theme:"outlined"};const ExclamationCircleOutlinedSvg=ExclamationCircleOutlined$2;var ExclamationCircleOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:ExclamationCircleOutlinedSvg}))},RefIcon$q=React__namespace.forwardRef(ExclamationCircleOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$q.displayName="ExclamationCircleOutlined");const ExclamationCircleOutlined$1=RefIcon$q;var ExclamationCircleTwoTone$2={icon:function($,V){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:$}},{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:V}},{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:$}}]}},name:"exclamation-circle",theme:"twotone"};const ExclamationCircleTwoToneSvg=ExclamationCircleTwoTone$2;var ExclamationCircleTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:ExclamationCircleTwoToneSvg}))},RefIcon$p=React__namespace.forwardRef(ExclamationCircleTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$p.displayName="ExclamationCircleTwoTone");const ExclamationCircleTwoTone$1=RefIcon$p;var FileOutlined$2={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"};const FileOutlinedSvg=FileOutlined$2;var FileOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FileOutlinedSvg}))},RefIcon$o=React__namespace.forwardRef(FileOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$o.displayName="FileOutlined");const FileOutlined$1=RefIcon$o;var FileTextTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm-22 322c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm200-184v48c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8z",fill:V}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:$}},{tag:"path",attrs:{d:"M312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8zm192 128H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z",fill:$}}]}},name:"file-text",theme:"twotone"};const FileTextTwoToneSvg=FileTextTwoTone$2;var FileTextTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FileTextTwoToneSvg}))},RefIcon$n=React__namespace.forwardRef(FileTextTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$n.displayName="FileTextTwoTone");const FileTextTwoTone$1=RefIcon$n;var FileTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:V}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:$}}]}},name:"file",theme:"twotone"};const FileTwoToneSvg=FileTwoTone$2;var FileTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FileTwoToneSvg}))},RefIcon$m=React__namespace.forwardRef(FileTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$m.displayName="FileTwoTone");const FileTwoTone$1=RefIcon$m;var FilterFilled$2={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"};const FilterFilledSvg=FilterFilled$2;var FilterFilled=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FilterFilledSvg}))},RefIcon$l=React__namespace.forwardRef(FilterFilled);process.env.NODE_ENV!=="production"&&(RefIcon$l.displayName="FilterFilled");const FilterFilled$1=RefIcon$l;var FilterOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};const FilterOutlinedSvg=FilterOutlined$2;var FilterOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FilterOutlinedSvg}))},RefIcon$k=React__namespace.forwardRef(FilterOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$k.displayName="FilterOutlined");const FilterOutlined$1=RefIcon$k;var FolderOpenOutlined$2={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"};const FolderOpenOutlinedSvg=FolderOpenOutlined$2;var FolderOpenOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FolderOpenOutlinedSvg}))},RefIcon$j=React__namespace.forwardRef(FolderOpenOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$j.displayName="FolderOpenOutlined");const FolderOpenOutlined$1=RefIcon$j;var FolderOutlined$2={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"};const FolderOutlinedSvg=FolderOutlined$2;var FolderOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:FolderOutlinedSvg}))},RefIcon$i=React__namespace.forwardRef(FolderOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$i.displayName="FolderOutlined");const FolderOutlined$1=RefIcon$i;var HolderOutlined$2={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"};const HolderOutlinedSvg=HolderOutlined$2;var HolderOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:HolderOutlinedSvg}))},RefIcon$h=React__namespace.forwardRef(HolderOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$h.displayName="HolderOutlined");const HolderOutlined$1=RefIcon$h;var InfoCircleTwoTone$2={icon:function($,V){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:$}},{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-372zm32 588c0 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",fill:V}},{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",fill:$}}]}},name:"info-circle",theme:"twotone"};const InfoCircleTwoToneSvg=InfoCircleTwoTone$2;var InfoCircleTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:InfoCircleTwoToneSvg}))},RefIcon$g=React__namespace.forwardRef(InfoCircleTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$g.displayName="InfoCircleTwoTone");const InfoCircleTwoTone$1=RefIcon$g;var LinkOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};const LinkOutlinedSvg=LinkOutlined$2;var LinkOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:LinkOutlinedSvg}))},RefIcon$f=React__namespace.forwardRef(LinkOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$f.displayName="LinkOutlined");const LinkOutlined$1=RefIcon$f;var MailTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M477.5 536.3L135.9 270.7l-27.5-21.4 27.6 21.5V792h752V270.8L546.2 536.3a55.99 55.99 0 01-68.7 0z",fill:V}},{tag:"path",attrs:{d:"M876.3 198.8l39.3 50.5-27.6 21.5 27.7-21.5-39.3-50.5z",fill:V}},{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-94.5 72.1L512 482 190.5 232.1h643zm54.5 38.7V792H136V270.8l-27.6-21.5 27.5 21.4 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5h.1l39.3 50.5-27.7 21.5z",fill:$}}]}},name:"mail",theme:"twotone"};const MailTwoToneSvg=MailTwoTone$2;var MailTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:MailTwoToneSvg}))},RefIcon$e=React__namespace.forwardRef(MailTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$e.displayName="MailTwoTone");const MailTwoTone$1=RefIcon$e;var MinusSquareOutlined$2={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"};const MinusSquareOutlinedSvg=MinusSquareOutlined$2;var MinusSquareOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:MinusSquareOutlinedSvg}))},RefIcon$d=React__namespace.forwardRef(MinusSquareOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$d.displayName="MinusSquareOutlined");const MinusSquareOutlined$1=RefIcon$d;var PaperClipOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const PaperClipOutlinedSvg=PaperClipOutlined$2;var PaperClipOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:PaperClipOutlinedSvg}))},RefIcon$c=React__namespace.forwardRef(PaperClipOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$c.displayName="PaperClipOutlined");const PaperClipOutlined$1=RefIcon$c;var PhoneOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z"}}]},name:"phone",theme:"outlined"};const PhoneOutlinedSvg=PhoneOutlined$2;var PhoneOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:PhoneOutlinedSvg}))},RefIcon$b=React__namespace.forwardRef(PhoneOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$b.displayName="PhoneOutlined");const PhoneOutlined$1=RefIcon$b;var PictureTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:$}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:V}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:V}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:V}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:$}}]}},name:"picture",theme:"twotone"};const PictureTwoToneSvg=PictureTwoTone$2;var PictureTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:PictureTwoToneSvg}))},RefIcon$a=React__namespace.forwardRef(PictureTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$a.displayName="PictureTwoTone");const PictureTwoTone$1=RefIcon$a;var PlusSquareOutlined$2={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"};const PlusSquareOutlinedSvg=PlusSquareOutlined$2;var PlusSquareOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:PlusSquareOutlinedSvg}))},RefIcon$9=React__namespace.forwardRef(PlusSquareOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$9.displayName="PlusSquareOutlined");const PlusSquareOutlined$1=RefIcon$9;var RiseOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z"}}]},name:"rise",theme:"outlined"};const RiseOutlinedSvg=RiseOutlined$2;var RiseOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:RiseOutlinedSvg}))},RefIcon$8=React__namespace.forwardRef(RiseOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$8.displayName="RiseOutlined");const RiseOutlined$1=RefIcon$8;var RocketOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};const RocketOutlinedSvg=RocketOutlined$2;var RocketOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:RocketOutlinedSvg}))},RefIcon$7=React__namespace.forwardRef(RocketOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$7.displayName="RocketOutlined");const RocketOutlined$1=RefIcon$7;var SaveOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const SaveOutlinedSvg=SaveOutlined$2;var SaveOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:SaveOutlinedSvg}))},RefIcon$6=React__namespace.forwardRef(SaveOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$6.displayName="SaveOutlined");const SaveOutlined$1=RefIcon$6;var SaveTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z",fill:V}},{tag:"path",attrs:{d:"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z",fill:$}},{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 00-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z",fill:$}}]}},name:"save",theme:"twotone"};const SaveTwoToneSvg=SaveTwoTone$2;var SaveTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:SaveTwoToneSvg}))},RefIcon$5=React__namespace.forwardRef(SaveTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$5.displayName="SaveTwoTone");const SaveTwoTone$1=RefIcon$5;var StarOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"};const StarOutlinedSvg=StarOutlined$2;var StarOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:StarOutlinedSvg}))},RefIcon$4=React__namespace.forwardRef(StarOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$4.displayName="StarOutlined");const StarOutlined$1=RefIcon$4;var StarTwoTone$2={icon:function($,V){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:V}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:$}}]}},name:"star",theme:"twotone"};const StarTwoToneSvg=StarTwoTone$2;var StarTwoTone=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:StarTwoToneSvg}))},RefIcon$3=React__namespace.forwardRef(StarTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$3.displayName="StarTwoTone");const StarTwoTone$1=RefIcon$3;var UnlockOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"};const UnlockOutlinedSvg=UnlockOutlined$2;var UnlockOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:UnlockOutlinedSvg}))},RefIcon$2=React__namespace.forwardRef(UnlockOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$2.displayName="UnlockOutlined");const UnlockOutlined$1=RefIcon$2;var UserOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const UserOutlinedSvg=UserOutlined$2;var UserOutlined=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:UserOutlinedSvg}))},RefIcon$1=React__namespace.forwardRef(UserOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$1.displayName="UserOutlined");const UserOutlined$1=RefIcon$1;var WarningFilled$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const WarningFilledSvg=WarningFilled$2;var WarningFilled=function($,V){return React__namespace.createElement(AntdIcon,_extends({},$,{ref:V,icon:WarningFilledSvg}))},RefIcon=React__namespace.forwardRef(WarningFilled);process.env.NODE_ENV!=="production"&&(RefIcon.displayName="WarningFilled");const WarningFilled$1=RefIcon;var _excluded$d=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function isString$1(C){return typeof C=="string"}function Step(C){var $,V=C.className,F=C.prefixCls,K=C.style,J=C.active,ee=C.status,te=C.iconPrefix,ne=C.icon;C.wrapperStyle;var re=C.stepNumber,ae=C.disabled,oe=C.description,ie=C.title,se=C.subTitle,ce=C.progressDot,de=C.stepIcon,le=C.tailContent,ve=C.icons,fe=C.stepIndex,he=C.onStepClick,me=C.onClick,ue=C.render,pe=_objectWithoutProperties(C,_excluded$d),ye=!!he&&!ae,be={};ye&&(be.role="button",be.tabIndex=0,be.onClick=function(xe){me==null||me(xe),he(fe)},be.onKeyDown=function(xe){var $e=xe.which;($e===KeyCode.ENTER||$e===KeyCode.SPACE)&&he(fe)});var ge=function(){var $e,Ie,Fe=classNames("".concat(F,"-icon"),"".concat(te,"icon"),($e={},_defineProperty($e,"".concat(te,"icon-").concat(ne),ne&&isString$1(ne)),_defineProperty($e,"".concat(te,"icon-check"),!ne&&ee==="finish"&&(ve&&!ve.finish||!ve)),_defineProperty($e,"".concat(te,"icon-cross"),!ne&&ee==="error"&&(ve&&!ve.error||!ve)),$e)),Ne=React__namespace.createElement("span",{className:"".concat(F,"-icon-dot")});return ce?typeof ce=="function"?Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},ce(Ne,{index:re-1,status:ee,title:ie,description:oe})):Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},Ne):ne&&!isString$1(ne)?Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},ne):ve&&ve.finish&&ee==="finish"?Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},ve.finish):ve&&ve.error&&ee==="error"?Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},ve.error):ne||ee==="finish"||ee==="error"?Ie=React__namespace.createElement("span",{className:Fe}):Ie=React__namespace.createElement("span",{className:"".concat(F,"-icon")},re),de&&(Ie=de({index:re-1,status:ee,title:ie,description:oe,node:Ie})),Ie},_e=ee||"wait",Se=classNames("".concat(F,"-item"),"".concat(F,"-item-").concat(_e),V,($={},_defineProperty($,"".concat(F,"-item-custom"),ne),_defineProperty($,"".concat(F,"-item-active"),J),_defineProperty($,"".concat(F,"-item-disabled"),ae===!0),$)),Ee=_objectSpread2({},K),Ce=React__namespace.createElement("div",_extends({},pe,{className:Se,style:Ee}),React__namespace.createElement("div",_extends({onClick:me},be,{className:"".concat(F,"-item-container")}),React__namespace.createElement("div",{className:"".concat(F,"-item-tail")},le),React__namespace.createElement("div",{className:"".concat(F,"-item-icon")},ge()),React__namespace.createElement("div",{className:"".concat(F,"-item-content")},React__namespace.createElement("div",{className:"".concat(F,"-item-title")},ie,se&&React__namespace.createElement("div",{title:typeof se=="string"?se:void 0,className:"".concat(F,"-item-subtitle")},se)),oe&&React__namespace.createElement("div",{className:"".concat(F,"-item-description")},oe))));return ue&&(Ce=ue(Ce)||null),Ce}var _excluded$c=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function Steps$2(C){var $,V=C.prefixCls,F=V===void 0?"rc-steps":V,K=C.style,J=K===void 0?{}:K,ee=C.className;C.children;var te=C.direction,ne=te===void 0?"horizontal":te,re=C.type,ae=re===void 0?"default":re,oe=C.labelPlacement,ie=oe===void 0?"horizontal":oe,se=C.iconPrefix,ce=se===void 0?"rc":se,de=C.status,le=de===void 0?"process":de,ve=C.size,fe=C.current,he=fe===void 0?0:fe,me=C.progressDot,ue=me===void 0?!1:me,pe=C.stepIcon,ye=C.initial,be=ye===void 0?0:ye,ge=C.icons,_e=C.onChange,Se=C.itemRender,Ee=C.items,Ce=Ee===void 0?[]:Ee,xe=_objectWithoutProperties(C,_excluded$c),$e=ae==="navigation",Ie=ae==="inline",Fe=Ie||ue,Ne=Ie?"horizontal":ne,De=Ie?void 0:ve,Oe=Fe?"vertical":ie,we=classNames(F,"".concat(F,"-").concat(Ne),ee,($={},_defineProperty($,"".concat(F,"-").concat(De),De),_defineProperty($,"".concat(F,"-label-").concat(Oe),Ne==="horizontal"),_defineProperty($,"".concat(F,"-dot"),!!Fe),_defineProperty($,"".concat(F,"-navigation"),$e),_defineProperty($,"".concat(F,"-inline"),Ie),$)),Ae=function(ze){_e&&he!==ze&&_e(ze)},ke=function(ze,Ve){var Xe=_objectSpread2({},ze),Ye=be+Ve;return le==="error"&&Ve===he-1&&(Xe.className="".concat(F,"-next-error")),Xe.status||(Ye===he?Xe.status=le:Ye<he?Xe.status="finish":Xe.status="wait"),Ie&&(Xe.icon=void 0,Xe.subTitle=void 0),!Xe.render&&Se&&(Xe.render=function(at){return Se(Xe,at)}),React.createElement(Step,_extends({},Xe,{active:Ye===he,stepNumber:Ye+1,stepIndex:Ye,key:Ye,prefixCls:F,iconPrefix:ce,wrapperStyle:J,progressDot:Fe,stepIcon:pe,icons:ge,onStepClick:_e&&Ae}))};return React.createElement("div",_extends({className:we,style:J},xe),Ce.filter(function(je){return je}).map(ke))}Steps$2.Step=Step;const genStepsCustomIconStyle=C=>{const{componentCls:$,customIconTop:V,customIconSize:F,customIconFontSize:K}=C;return{[`${$}-item-custom`]:{[`> ${$}-item-container > ${$}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${$}-icon`]:{top:V,width:F,height:F,fontSize:K,lineHeight:unit$1(F)}}},[`&:not(${$}-vertical)`]:{[`${$}-item-custom`]:{[`${$}-item-icon`]:{width:"auto",background:"none"}}}}},genStepsCustomIconStyle$1=genStepsCustomIconStyle,genHorizontalStyle=C=>{const{componentCls:$}=C,V=`${$}-item`;return{[`${$}-horizontal`]:{[`${V}-tail`]:{transform:"translateY(-50%)"}}}},genStepsHorizontalStyle=genHorizontalStyle,genStepsInlineStyle=C=>{const{componentCls:$,inlineDotSize:V,inlineTitleColor:F,inlineTailColor:K}=C,J=C.calc(C.paddingXS).add(C.lineWidth).equal(),ee={[`${$}-item-container ${$}-item-content ${$}-item-title`]:{color:F}};return{[`&${$}-inline`]:{width:"auto",display:"inline-flex",[`${$}-item`]:{flex:"none","&-container":{padding:`${unit$1(J)} ${unit$1(C.paddingXXS)} 0`,margin:`0 ${unit$1(C.calc(C.marginXXS).div(2).equal())}`,borderRadius:C.borderRadiusSM,cursor:"pointer",transition:`background-color ${C.motionDurationMid}`,"&:hover":{background:C.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:V,height:V,marginInlineStart:`calc(50% - ${unit$1(C.calc(V).div(2).equal())})`,[`> ${$}-icon`]:{top:0},[`${$}-icon-dot`]:{borderRadius:C.calc(C.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:C.calc(C.marginXS).sub(C.lineWidth).equal()},"&-title":{color:F,fontSize:C.fontSizeSM,lineHeight:C.lineHeightSM,fontWeight:"normal",marginBottom:C.calc(C.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:C.calc(V).div(2).add(J).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:C.lineWidth,borderRadius:0,marginInlineStart:0,background:K}},[`&:first-child ${$}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${$}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${$}-item-icon ${$}-icon ${$}-icon-dot`]:{backgroundColor:C.colorBorderBg,border:`${unit$1(C.lineWidth)} ${C.lineType} ${K}`}},ee),"&-finish":Object.assign({[`${$}-item-tail::after`]:{backgroundColor:K},[`${$}-item-icon ${$}-icon ${$}-icon-dot`]:{backgroundColor:K,border:`${unit$1(C.lineWidth)} ${C.lineType} ${K}`}},ee),"&-error":ee,"&-active, &-process":Object.assign({[`${$}-item-icon`]:{width:V,height:V,marginInlineStart:`calc(50% - ${unit$1(C.calc(V).div(2).equal())})`,top:0}},ee),[`&:not(${$}-item-active) > ${$}-item-container[role='button']:hover`]:{[`${$}-item-title`]:{color:F}}}}}},genStepsInlineStyle$1=genStepsInlineStyle,genStepsLabelPlacementStyle=C=>{const{componentCls:$,iconSize:V,lineHeight:F,iconSizeSM:K}=C;return{[`&${$}-label-vertical`]:{[`${$}-item`]:{overflow:"visible","&-tail":{marginInlineStart:C.calc(V).div(2).add(C.controlHeightLG).equal(),padding:`0 ${unit$1(C.paddingLG)}`},"&-content":{display:"block",width:C.calc(V).div(2).add(C.controlHeightLG).mul(2).equal(),marginTop:C.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:C.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:C.marginXXS,marginInlineStart:0,lineHeight:F}},[`&${$}-small:not(${$}-dot)`]:{[`${$}-item`]:{"&-icon":{marginInlineStart:C.calc(V).sub(K).div(2).add(C.controlHeightLG).equal()}}}}}},genStepsLabelPlacementStyle$1=genStepsLabelPlacementStyle,genStepsNavStyle=C=>{const{componentCls:$,navContentMaxWidth:V,navArrowColor:F,stepsNavActiveColor:K,motionDurationSlow:J}=C;return{[`&${$}-navigation`]:{paddingTop:C.paddingSM,[`&${$}-small`]:{[`${$}-item`]:{"&-container":{marginInlineStart:C.calc(C.marginSM).mul(-1).equal()}}},[`${$}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:C.calc(C.margin).mul(-1).equal(),paddingBottom:C.paddingSM,textAlign:"start",transition:`opacity ${J}`,[`${$}-item-content`]:{maxWidth:V},[`${$}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},textEllipsis),{"&::after":{display:"none"}})},[`&:not(${$}-item-active)`]:{[`${$}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${unit$1(C.calc(C.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:C.fontSizeIcon,height:C.fontSizeIcon,borderTop:`${unit$1(C.lineWidth)} ${C.lineType} ${F}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${unit$1(C.lineWidth)} ${C.lineType} ${F}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:C.lineWidthBold,backgroundColor:K,transition:`width ${J}, inset-inline-start ${J}`,transitionTimingFunction:"ease-out",content:'""'}},[`${$}-item${$}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${$}-navigation${$}-vertical`]:{[`> ${$}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${$}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:C.calc(C.lineWidth).mul(3).equal(),height:`calc(100% - ${unit$1(C.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:C.calc(C.controlHeight).mul(.25).equal(),height:C.calc(C.controlHeight).mul(.25).equal(),marginBottom:C.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${$}-item-container > ${$}-item-tail`]:{visibility:"hidden"}}},[`&${$}-navigation${$}-horizontal`]:{[`> ${$}-item > ${$}-item-container > ${$}-item-tail`]:{visibility:"hidden"}}}},genStepsNavStyle$1=genStepsNavStyle,genStepsProgressStyle=C=>{const{antCls:$,componentCls:V,iconSize:F,iconSizeSM:K,processIconColor:J,marginXXS:ee,lineWidthBold:te,lineWidth:ne,paddingXXS:re}=C,ae=C.calc(F).add(C.calc(te).mul(4).equal()).equal(),oe=C.calc(K).add(C.calc(C.lineWidth).mul(4).equal()).equal();return{[`&${V}-with-progress`]:{[`${V}-item`]:{paddingTop:re,[`&-process ${V}-item-container ${V}-item-icon ${V}-icon`]:{color:J}},[`&${V}-vertical > ${V}-item `]:{paddingInlineStart:re,[`> ${V}-item-container > ${V}-item-tail`]:{top:ee,insetInlineStart:C.calc(F).div(2).sub(ne).add(re).equal()}},[`&, &${V}-small`]:{[`&${V}-horizontal ${V}-item:first-child`]:{paddingBottom:re,paddingInlineStart:re}},[`&${V}-small${V}-vertical > ${V}-item > ${V}-item-container > ${V}-item-tail`]:{insetInlineStart:C.calc(K).div(2).sub(ne).add(re).equal()},[`&${V}-label-vertical ${V}-item ${V}-item-tail`]:{top:C.calc(F).div(2).add(re).equal()},[`${V}-item-icon`]:{position:"relative",[`${$}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${unit$1(ae)} !important`,height:`${unit$1(ae)} !important`}}},[`&${V}-small`]:{[`&${V}-label-vertical ${V}-item ${V}-item-tail`]:{top:C.calc(K).div(2).add(re).equal()},[`${V}-item-icon ${$}-progress-inner`]:{width:`${unit$1(oe)} !important`,height:`${unit$1(oe)} !important`}}}}},genStepsProgressStyle$1=genStepsProgressStyle,genStepsProgressDotStyle=C=>{const{componentCls:$,descriptionMaxWidth:V,lineHeight:F,dotCurrentSize:K,dotSize:J,motionDurationSlow:ee}=C;return{[`&${$}-dot, &${$}-dot${$}-small`]:{[`${$}-item`]:{"&-title":{lineHeight:F},"&-tail":{top:C.calc(C.dotSize).sub(C.calc(C.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${unit$1(C.calc(V).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${unit$1(C.calc(C.marginSM).mul(2).equal())})`,height:C.calc(C.lineWidth).mul(3).equal(),marginInlineStart:C.marginSM}},"&-icon":{width:J,height:J,marginInlineStart:C.calc(C.descriptionMaxWidth).sub(J).div(2).equal(),paddingInlineEnd:0,lineHeight:unit$1(J),background:"transparent",border:0,[`${$}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${ee}`,"&::after":{position:"absolute",top:C.calc(C.marginSM).mul(-1).equal(),insetInlineStart:C.calc(J).sub(C.calc(C.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:C.calc(C.controlHeightLG).mul(1.5).equal(),height:C.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:V},[`&-process ${$}-item-icon`]:{position:"relative",top:C.calc(J).sub(K).div(2).equal(),width:K,height:K,lineHeight:unit$1(K),background:"none",marginInlineStart:C.calc(C.descriptionMaxWidth).sub(K).div(2).equal()},[`&-process ${$}-icon`]:{[`&:first-child ${$}-icon-dot`]:{insetInlineStart:0}}}},[`&${$}-vertical${$}-dot`]:{[`${$}-item-icon`]:{marginTop:C.calc(C.controlHeight).sub(J).div(2).equal(),marginInlineStart:0,background:"none"},[`${$}-item-process ${$}-item-icon`]:{marginTop:C.calc(C.controlHeight).sub(K).div(2).equal(),top:0,insetInlineStart:C.calc(J).sub(K).div(2).equal(),marginInlineStart:0},[`${$}-item > ${$}-item-container > ${$}-item-tail`]:{top:C.calc(C.controlHeight).sub(J).div(2).equal(),insetInlineStart:0,margin:0,padding:`${unit$1(C.calc(J).add(C.paddingXS).equal())} 0 ${unit$1(C.paddingXS)}`,"&::after":{marginInlineStart:C.calc(J).sub(C.lineWidth).div(2).equal()}},[`&${$}-small`]:{[`${$}-item-icon`]:{marginTop:C.calc(C.controlHeightSM).sub(J).div(2).equal()},[`${$}-item-process ${$}-item-icon`]:{marginTop:C.calc(C.controlHeightSM).sub(K).div(2).equal()},[`${$}-item > ${$}-item-container > ${$}-item-tail`]:{top:C.calc(C.controlHeightSM).sub(J).div(2).equal()}},[`${$}-item:first-child ${$}-icon-dot`]:{insetInlineStart:0},[`${$}-item-content`]:{width:"inherit"}}}},genStepsProgressDotStyle$1=genStepsProgressDotStyle,genStepsRTLStyle=C=>{const{componentCls:$}=C;return{[`&${$}-rtl`]:{direction:"rtl",[`${$}-item`]:{"&-subtitle":{float:"left"}},[`&${$}-navigation`]:{[`${$}-item::after`]:{transform:"rotate(-45deg)"}},[`&${$}-vertical`]:{[`> ${$}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${$}-item-icon`]:{float:"right"}}},[`&${$}-dot`]:{[`${$}-item-icon ${$}-icon-dot, &${$}-small ${$}-item-icon ${$}-icon-dot`]:{float:"right"}}}}},genStepsRTLStyle$1=genStepsRTLStyle,genStepsSmallStyle=C=>{const{componentCls:$,iconSizeSM:V,fontSizeSM:F,fontSize:K,colorTextDescription:J}=C;return{[`&${$}-small`]:{[`&${$}-horizontal:not(${$}-label-vertical) ${$}-item`]:{paddingInlineStart:C.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${$}-item-icon`]:{width:V,height:V,marginTop:0,marginBottom:0,marginInline:`0 ${unit$1(C.marginXS)}`,fontSize:F,lineHeight:unit$1(V),textAlign:"center",borderRadius:V},[`${$}-item-title`]:{paddingInlineEnd:C.paddingSM,fontSize:K,lineHeight:unit$1(V),"&::after":{top:C.calc(V).div(2).equal()}},[`${$}-item-description`]:{color:J,fontSize:K},[`${$}-item-tail`]:{top:C.calc(V).div(2).sub(C.paddingXXS).equal()},[`${$}-item-custom ${$}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${$}-icon`]:{fontSize:V,lineHeight:unit$1(V),transform:"none"}}}}},genStepsSmallStyle$1=genStepsSmallStyle,genStepsVerticalStyle=C=>{const{componentCls:$,iconSizeSM:V,iconSize:F}=C;return{[`&${$}-vertical`]:{display:"flex",flexDirection:"column",[`> ${$}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${$}-item-icon`]:{float:"left",marginInlineEnd:C.margin},[`${$}-item-content`]:{display:"block",minHeight:C.calc(C.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${$}-item-title`]:{lineHeight:unit$1(F)},[`${$}-item-description`]:{paddingBottom:C.paddingSM}},[`> ${$}-item > ${$}-item-container > ${$}-item-tail`]:{position:"absolute",top:0,insetInlineStart:C.calc(F).div(2).sub(C.lineWidth).equal(),width:C.lineWidth,height:"100%",padding:`${unit$1(C.calc(C.marginXXS).mul(1.5).add(F).equal())} 0 ${unit$1(C.calc(C.marginXXS).mul(1.5).equal())}`,"&::after":{width:C.lineWidth,height:"100%"}},[`> ${$}-item:not(:last-child) > ${$}-item-container > ${$}-item-tail`]:{display:"block"},[` > ${$}-item > ${$}-item-container > ${$}-item-content > ${$}-item-title`]:{"&::after":{display:"none"}},[`&${$}-small ${$}-item-container`]:{[`${$}-item-tail`]:{position:"absolute",top:0,insetInlineStart:C.calc(V).div(2).sub(C.lineWidth).equal(),padding:`${unit$1(C.calc(C.marginXXS).mul(1.5).add(V).equal())} 0 ${unit$1(C.calc(C.marginXXS).mul(1.5).equal())}`},[`${$}-item-title`]:{lineHeight:unit$1(V)}}}}},genStepsVerticalStyle$1=genStepsVerticalStyle,STEP_ITEM_STATUS_WAIT="wait",STEP_ITEM_STATUS_PROCESS="process",STEP_ITEM_STATUS_FINISH="finish",STEP_ITEM_STATUS_ERROR="error",genStepsItemStatusStyle=(C,$)=>{const V=`${$.componentCls}-item`,F=`${C}IconColor`,K=`${C}TitleColor`,J=`${C}DescriptionColor`,ee=`${C}TailColor`,te=`${C}IconBgColor`,ne=`${C}IconBorderColor`,re=`${C}DotColor`;return{[`${V}-${C} ${V}-icon`]:{backgroundColor:$[te],borderColor:$[ne],[`> ${$.componentCls}-icon`]:{color:$[F],[`${$.componentCls}-icon-dot`]:{background:$[re]}}},[`${V}-${C}${V}-custom ${V}-icon`]:{[`> ${$.componentCls}-icon`]:{color:$[re]}},[`${V}-${C} > ${V}-container > ${V}-content > ${V}-title`]:{color:$[K],"&::after":{backgroundColor:$[ee]}},[`${V}-${C} > ${V}-container > ${V}-content > ${V}-description`]:{color:$[J]},[`${V}-${C} > ${V}-container > ${V}-tail::after`]:{backgroundColor:$[ee]}}},genStepsItemStyle=C=>{const{componentCls:$,motionDurationSlow:V}=C,F=`${$}-item`,K=`${F}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[F]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${F}-container > ${F}-tail, > ${F}-container > ${F}-content > ${F}-title::after`]:{display:"none"}}},[`${F}-container`]:{outline:"none","&:focus-visible":{[K]:Object.assign({},genFocusOutline(C))}},[`${K}, ${F}-content`]:{display:"inline-block",verticalAlign:"top"},[K]:{width:C.iconSize,height:C.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:C.marginXS,fontSize:C.iconFontSize,fontFamily:C.fontFamily,lineHeight:unit$1(C.iconSize),textAlign:"center",borderRadius:C.iconSize,border:`${unit$1(C.lineWidth)} ${C.lineType} transparent`,transition:`background-color ${V}, border-color ${V}`,[`${$}-icon`]:{position:"relative",top:C.iconTop,color:C.colorPrimary,lineHeight:1}},[`${F}-tail`]:{position:"absolute",top:C.calc(C.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:C.lineWidth,background:C.colorSplit,borderRadius:C.lineWidth,transition:`background ${V}`,content:'""'}},[`${F}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:C.padding,color:C.colorText,fontSize:C.fontSizeLG,lineHeight:unit$1(C.titleLineHeight),"&::after":{position:"absolute",top:C.calc(C.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:C.lineWidth,background:C.processTailColor,content:'""'}},[`${F}-subtitle`]:{display:"inline",marginInlineStart:C.marginXS,color:C.colorTextDescription,fontWeight:"normal",fontSize:C.fontSize},[`${F}-description`]:{color:C.colorTextDescription,fontSize:C.fontSize}},genStepsItemStatusStyle(STEP_ITEM_STATUS_WAIT,C)),genStepsItemStatusStyle(STEP_ITEM_STATUS_PROCESS,C)),{[`${F}-process > ${F}-container > ${F}-title`]:{fontWeight:C.fontWeightStrong}}),genStepsItemStatusStyle(STEP_ITEM_STATUS_FINISH,C)),genStepsItemStatusStyle(STEP_ITEM_STATUS_ERROR,C)),{[`${F}${$}-next-error > ${$}-item-title::after`]:{background:C.colorError},[`${F}-disabled`]:{cursor:"not-allowed"}})},genStepsClickableStyle=C=>{const{componentCls:$,motionDurationSlow:V}=C;return{[`& ${$}-item`]:{[`&:not(${$}-item-active)`]:{[`& > ${$}-item-container[role='button']`]:{cursor:"pointer",[`${$}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${$}-icon`]:{transition:`color ${V}`}},"&:hover":{[`${$}-item`]:{"&-title, &-subtitle, &-description":{color:C.colorPrimary}}}},[`&:not(${$}-item-process)`]:{[`& > ${$}-item-container[role='button']:hover`]:{[`${$}-item`]:{"&-icon":{borderColor:C.colorPrimary,[`${$}-icon`]:{color:C.colorPrimary}}}}}}},[`&${$}-horizontal:not(${$}-label-vertical)`]:{[`${$}-item`]:{paddingInlineStart:C.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${$}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:C.descriptionMaxWidth,whiteSpace:"normal"}}}}},genStepsStyle=C=>{const{componentCls:$}=C;return{[$]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(C)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),genStepsItemStyle(C)),genStepsClickableStyle(C)),genStepsCustomIconStyle$1(C)),genStepsSmallStyle$1(C)),genStepsVerticalStyle$1(C)),genStepsHorizontalStyle(C)),genStepsLabelPlacementStyle$1(C)),genStepsProgressDotStyle$1(C)),genStepsNavStyle$1(C)),genStepsRTLStyle$1(C)),genStepsProgressStyle$1(C)),genStepsInlineStyle$1(C))}},prepareComponentToken$6=C=>({titleLineHeight:C.controlHeight,customIconSize:C.controlHeight,customIconTop:0,customIconFontSize:C.controlHeightSM,iconSize:C.controlHeight,iconTop:-.5,iconFontSize:C.fontSize,iconSizeSM:C.fontSizeHeading3,dotSize:C.controlHeight/4,dotCurrentSize:C.controlHeightLG/4,navArrowColor:C.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:C.wireframe?C.colorTextDisabled:C.colorTextLabel,waitIconBgColor:C.wireframe?C.colorBgContainer:C.colorFillContent,waitIconBorderColor:C.wireframe?C.colorTextDisabled:"transparent",finishIconBgColor:C.wireframe?C.colorBgContainer:C.controlItemBgActive,finishIconBorderColor:C.wireframe?C.colorPrimary:C.controlItemBgActive}),useStyle$6=genStyleHooks("Steps",C=>{const{colorTextDisabled:$,controlHeightLG:V,colorTextLightSolid:F,colorText:K,colorPrimary:J,colorTextDescription:ee,colorTextQuaternary:te,colorError:ne,colorBorderSecondary:re,colorSplit:ae}=C,oe=merge(C,{processIconColor:F,processTitleColor:K,processDescriptionColor:K,processIconBgColor:J,processIconBorderColor:J,processDotColor:J,processTailColor:ae,waitTitleColor:ee,waitDescriptionColor:ee,waitTailColor:ae,waitDotColor:$,finishIconColor:J,finishTitleColor:K,finishDescriptionColor:ee,finishTailColor:J,finishDotColor:J,errorIconColor:F,errorTitleColor:ne,errorDescriptionColor:ne,errorTailColor:ae,errorIconBgColor:ne,errorIconBorderColor:ne,errorDotColor:ne,stepsNavActiveColor:J,stepsProgressSize:V,inlineDotSize:6,inlineTitleColor:te,inlineTailColor:re});return[genStepsStyle(oe)]},prepareComponentToken$6);function filter(C){return C.filter($=>$)}function useLegacyItems(C,$){if(process.env.NODE_ENV==="test"&&devUseWarning("Menu").deprecated(!$,"Step","items"),C)return C;const V=toArray$6($).map(F=>{if(React__namespace.isValidElement(F)){const{props:K}=F;return Object.assign({},K)}return null});return filter(V)}var __rest$b=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const Steps=C=>{const{percent:$,size:V,className:F,rootClassName:K,direction:J,items:ee,responsive:te=!0,current:ne=0,children:re,style:ae}=C,oe=__rest$b(C,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:ie}=useBreakpoint(te),{getPrefixCls:se,direction:ce,className:de,style:le}=useComponentConfig("steps"),ve=React__namespace.useMemo(()=>te&&ie?"vertical":J,[ie,J]),fe=useSize$1(V),he=se("steps",C.prefixCls),[me,ue,pe]=useStyle$6(he),ye=C.type==="inline",be=se("",C.iconPrefix),ge=useLegacyItems(ee,re),_e=ye?void 0:$,Se=Object.assign(Object.assign({},le),ae),Ee=classNames(de,{[`${he}-rtl`]:ce==="rtl",[`${he}-with-progress`]:_e!==void 0},F,K,ue,pe),Ce={finish:React__namespace.createElement(CheckOutlined$1,{className:`${he}-finish-icon`}),error:React__namespace.createElement(CloseOutlined$1,{className:`${he}-error-icon`})},xe=Ie=>{let{node:Fe,status:Ne}=Ie;if(Ne==="process"&&_e!==void 0){const De=fe==="small"?32:40;return React__namespace.createElement("div",{className:`${he}-progress-icon`},React__namespace.createElement(Progress$1,{type:"circle",percent:_e,size:De,strokeWidth:4,format:()=>null}),Fe)}return Fe},$e=(Ie,Fe)=>Ie.description?React__namespace.createElement(Tooltip$1,{title:Ie.description},Fe):Fe;return me(React__namespace.createElement(Steps$2,Object.assign({icons:Ce},oe,{style:Se,current:ne,size:fe,items:ge,itemRender:ye?$e:void 0,stepIcon:xe,direction:ve,prefixCls:he,iconPrefix:be,className:Ee})))};Steps.Step=Steps$2.Step,process.env.NODE_ENV!=="production"&&(Steps.displayName="Steps");const Steps$1=Steps;var _excluded$b=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Switch$2=React__namespace.forwardRef(function(C,$){var V,F=C.prefixCls,K=F===void 0?"rc-switch":F,J=C.className,ee=C.checked,te=C.defaultChecked,ne=C.disabled,re=C.loadingIcon,ae=C.checkedChildren,oe=C.unCheckedChildren,ie=C.onClick,se=C.onChange,ce=C.onKeyDown,de=_objectWithoutProperties(C,_excluded$b),le=useMergedState(!1,{value:ee,defaultValue:te}),ve=_slicedToArray(le,2),fe=ve[0],he=ve[1];function me(be,ge){var _e=fe;return ne||(_e=be,he(_e),se==null||se(_e,ge)),_e}function ue(be){be.which===KeyCode.LEFT?me(!1,be):be.which===KeyCode.RIGHT&&me(!0,be),ce==null||ce(be)}function pe(be){var ge=me(!fe,be);ie==null||ie(ge,be)}var ye=classNames(K,J,(V={},_defineProperty(V,"".concat(K,"-checked"),fe),_defineProperty(V,"".concat(K,"-disabled"),ne),V));return React__namespace.createElement("button",_extends({},de,{type:"button",role:"switch","aria-checked":fe,disabled:ne,className:ye,ref:$,onKeyDown:ue,onClick:pe}),re,React__namespace.createElement("span",{className:"".concat(K,"-inner")},React__namespace.createElement("span",{className:"".concat(K,"-inner-checked")},ae),React__namespace.createElement("span",{className:"".concat(K,"-inner-unchecked")},oe)))});Switch$2.displayName="Switch";const genSwitchSmallStyle=C=>{const{componentCls:$,trackHeightSM:V,trackPadding:F,trackMinWidthSM:K,innerMinMarginSM:J,innerMaxMarginSM:ee,handleSizeSM:te,calc:ne}=C,re=`${$}-inner`,ae=unit$1(ne(te).add(ne(F).mul(2)).equal()),oe=unit$1(ne(ee).mul(2).equal());return{[$]:{[`&${$}-small`]:{minWidth:K,height:V,lineHeight:unit$1(V),[`${$}-inner`]:{paddingInlineStart:ee,paddingInlineEnd:J,[`${re}-checked, ${re}-unchecked`]:{minHeight:V},[`${re}-checked`]:{marginInlineStart:`calc(-100% + ${ae} - ${oe})`,marginInlineEnd:`calc(100% - ${ae} + ${oe})`},[`${re}-unchecked`]:{marginTop:ne(V).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${$}-handle`]:{width:te,height:te},[`${$}-loading-icon`]:{top:ne(ne(te).sub(C.switchLoadingIconSize)).div(2).equal(),fontSize:C.switchLoadingIconSize},[`&${$}-checked`]:{[`${$}-inner`]:{paddingInlineStart:J,paddingInlineEnd:ee,[`${re}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${re}-unchecked`]:{marginInlineStart:`calc(100% - ${ae} + ${oe})`,marginInlineEnd:`calc(-100% + ${ae} - ${oe})`}},[`${$}-handle`]:{insetInlineStart:`calc(100% - ${unit$1(ne(te).add(F).equal())})`}},[`&:not(${$}-disabled):active`]:{[`&:not(${$}-checked) ${re}`]:{[`${re}-unchecked`]:{marginInlineStart:ne(C.marginXXS).div(2).equal(),marginInlineEnd:ne(C.marginXXS).mul(-1).div(2).equal()}},[`&${$}-checked ${re}`]:{[`${re}-checked`]:{marginInlineStart:ne(C.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ne(C.marginXXS).div(2).equal()}}}}}}},genSwitchLoadingStyle=C=>{const{componentCls:$,handleSize:V,calc:F}=C;return{[$]:{[`${$}-loading-icon${C.iconCls}`]:{position:"relative",top:F(F(V).sub(C.fontSize)).div(2).equal(),color:C.switchLoadingIconColor,verticalAlign:"top"},[`&${$}-checked ${$}-loading-icon`]:{color:C.switchColor}}}},genSwitchHandleStyle=C=>{const{componentCls:$,trackPadding:V,handleBg:F,handleShadow:K,handleSize:J,calc:ee}=C,te=`${$}-handle`;return{[$]:{[te]:{position:"absolute",top:V,insetInlineStart:V,width:J,height:J,transition:`all ${C.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:F,borderRadius:ee(J).div(2).equal(),boxShadow:K,transition:`all ${C.switchDuration} ease-in-out`,content:'""'}},[`&${$}-checked ${te}`]:{insetInlineStart:`calc(100% - ${unit$1(ee(J).add(V).equal())})`},[`&:not(${$}-disabled):active`]:{[`${te}::before`]:{insetInlineEnd:C.switchHandleActiveInset,insetInlineStart:0},[`&${$}-checked ${te}::before`]:{insetInlineEnd:0,insetInlineStart:C.switchHandleActiveInset}}}}},genSwitchInnerStyle=C=>{const{componentCls:$,trackHeight:V,trackPadding:F,innerMinMargin:K,innerMaxMargin:J,handleSize:ee,calc:te}=C,ne=`${$}-inner`,re=unit$1(te(ee).add(te(F).mul(2)).equal()),ae=unit$1(te(J).mul(2).equal());return{[$]:{[ne]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:J,paddingInlineEnd:K,transition:`padding-inline-start ${C.switchDuration} ease-in-out, padding-inline-end ${C.switchDuration} ease-in-out`,[`${ne}-checked, ${ne}-unchecked`]:{display:"block",color:C.colorTextLightSolid,fontSize:C.fontSizeSM,transition:`margin-inline-start ${C.switchDuration} ease-in-out, margin-inline-end ${C.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:V},[`${ne}-checked`]:{marginInlineStart:`calc(-100% + ${re} - ${ae})`,marginInlineEnd:`calc(100% - ${re} + ${ae})`},[`${ne}-unchecked`]:{marginTop:te(V).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${$}-checked ${ne}`]:{paddingInlineStart:K,paddingInlineEnd:J,[`${ne}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ne}-unchecked`]:{marginInlineStart:`calc(100% - ${re} + ${ae})`,marginInlineEnd:`calc(-100% + ${re} - ${ae})`}},[`&:not(${$}-disabled):active`]:{[`&:not(${$}-checked) ${ne}`]:{[`${ne}-unchecked`]:{marginInlineStart:te(F).mul(2).equal(),marginInlineEnd:te(F).mul(-1).mul(2).equal()}},[`&${$}-checked ${ne}`]:{[`${ne}-checked`]:{marginInlineStart:te(F).mul(-1).mul(2).equal(),marginInlineEnd:te(F).mul(2).equal()}}}}}},genSwitchStyle=C=>{const{componentCls:$,trackHeight:V,trackMinWidth:F}=C;return{[$]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(C)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:F,height:V,lineHeight:unit$1(V),verticalAlign:"middle",background:C.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${C.motionDurationMid}`,userSelect:"none",[`&:hover:not(${$}-disabled)`]:{background:C.colorTextTertiary}}),genFocusStyle(C)),{[`&${$}-checked`]:{background:C.switchColor,[`&:hover:not(${$}-disabled)`]:{background:C.colorPrimaryHover}},[`&${$}-loading, &${$}-disabled`]:{cursor:"not-allowed",opacity:C.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${$}-rtl`]:{direction:"rtl"}})}},prepareComponentToken$5=C=>{const{fontSize:$,lineHeight:V,controlHeight:F,colorWhite:K}=C,J=$*V,ee=F/2,te=2,ne=J-te*2,re=ee-te*2;return{trackHeight:J,trackHeightSM:ee,trackMinWidth:ne*2+te*4,trackMinWidthSM:re*2+te*2,trackPadding:te,handleBg:K,handleSize:ne,handleSizeSM:re,handleShadow:`0 2px 4px 0 ${new FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ne/2,innerMaxMargin:ne+te+te*2,innerMinMarginSM:re/2,innerMaxMarginSM:re+te+te*2}},useStyle$5=genStyleHooks("Switch",C=>{const $=merge(C,{switchDuration:C.motionDurationMid,switchColor:C.colorPrimary,switchDisabledOpacity:C.opacityLoading,switchLoadingIconSize:C.calc(C.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${C.opacityLoading})`,switchHandleActiveInset:"-30%"});return[genSwitchStyle($),genSwitchInnerStyle($),genSwitchHandleStyle($),genSwitchLoadingStyle($),genSwitchSmallStyle($)]},prepareComponentToken$5);var __rest$a=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const InternalSwitch=React__namespace.forwardRef((C,$)=>{const{prefixCls:V,size:F,disabled:K,loading:J,className:ee,rootClassName:te,style:ne,checked:re,value:ae,defaultChecked:oe,defaultValue:ie,onChange:se}=C,ce=__rest$a(C,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[de,le]=useMergedState(!1,{value:re!=null?re:ae,defaultValue:oe!=null?oe:ie}),{getPrefixCls:ve,direction:fe,switch:he}=React__namespace.useContext(ConfigContext),me=React__namespace.useContext(DisabledContext$1),ue=(K!=null?K:me)||J,pe=ve("switch",V),ye=React__namespace.createElement("div",{className:`${pe}-handle`},J&&React__namespace.createElement(LoadingOutlined$1,{className:`${pe}-loading-icon`})),[be,ge,_e]=useStyle$5(pe),Se=useSize$1(F),Ee=classNames(he==null?void 0:he.className,{[`${pe}-small`]:Se==="small",[`${pe}-loading`]:J,[`${pe}-rtl`]:fe==="rtl"},ee,te,ge,_e),Ce=Object.assign(Object.assign({},he==null?void 0:he.style),ne),xe=function(){le(arguments.length<=0?void 0:arguments[0]),se==null||se.apply(void 0,arguments)};return be(React__namespace.createElement(Wave$1,{component:"Switch"},React__namespace.createElement(Switch$2,Object.assign({},ce,{checked:de,onChange:xe,prefixCls:pe,className:Ee,style:Ce,disabled:ue,ref:$,loadingIcon:ye}))))}),Switch=InternalSwitch;Switch.__ANT_SWITCH=!0,process.env.NODE_ENV!=="production"&&(Switch.displayName="Switch");const Switch$1=Switch;var EXPAND_COLUMN={},INTERNAL_HOOKS="rc-table-internal-hook";function createContext(C){var $=React__namespace.createContext(void 0),V=function(K){var J=K.value,ee=K.children,te=React__namespace.useRef(J);te.current=J;var ne=React__namespace.useState(function(){return{getValue:function(){return te.current},listeners:new Set}}),re=_slicedToArray(ne,1),ae=re[0];return useLayoutEffect$1(function(){ReactDOM.unstable_batchedUpdates(function(){ae.listeners.forEach(function(oe){oe(J)})})},[J]),React__namespace.createElement($.Provider,{value:ae},ee)};return{Context:$,Provider:V,defaultValue:C}}function useContext(C,$){var V=useEvent(typeof $=="function"?$:function(oe){if($===void 0)return oe;if(!Array.isArray($))return oe[$];var ie={};return $.forEach(function(se){ie[se]=oe[se]}),ie}),F=React__namespace.useContext(C==null?void 0:C.Context),K=F||{},J=K.listeners,ee=K.getValue,te=React__namespace.useRef();te.current=V(F?ee():C==null?void 0:C.defaultValue);var ne=React__namespace.useState({}),re=_slicedToArray(ne,2),ae=re[1];return useLayoutEffect$1(function(){if(!F)return;function oe(ie){var se=V(ie);isEqual(te.current,se,!0)||ae({})}return J.add(oe),function(){J.delete(oe)}},[F]),te.current}function createImmutable(){var C=React__namespace.createContext(null);function $(){return React__namespace.useContext(C)}function V(K,J){var ee=supportRef(K),te=function(re,ae){var oe=ee?{ref:ae}:{},ie=React__namespace.useRef(0),se=React__namespace.useRef(re),ce=$();return ce!==null?React__namespace.createElement(K,_extends({},re,oe)):((!J||J(se.current,re))&&(ie.current+=1),se.current=re,React__namespace.createElement(C.Provider,{value:ie.current},React__namespace.createElement(K,_extends({},re,oe))))};return process.env.NODE_ENV!=="production"&&(te.displayName="ImmutableRoot(".concat(K.displayName||K.name,")")),ee?React__namespace.forwardRef(te):te}function F(K,J){var ee=supportRef(K),te=function(re,ae){var oe=ee?{ref:ae}:{};return $(),React__namespace.createElement(K,_extends({},re,oe))};return process.env.NODE_ENV!=="production"&&(te.displayName="ImmutableResponse(".concat(K.displayName||K.name,")")),ee?React__namespace.memo(React__namespace.forwardRef(te),J):React__namespace.memo(te,J)}return{makeImmutable:V,responseImmutable:F,useImmutableMark:$}}var _createImmutable=createImmutable(),makeImmutable=_createImmutable.makeImmutable,responseImmutable=_createImmutable.responseImmutable,useImmutableMark=_createImmutable.useImmutableMark,TableContext=createContext();function useRenderTimes(C,$){var V=React__namespace.useRef(0);V.current+=1;var F=React__namespace.useRef(C),K=[];Object.keys(C||{}).map(function(ee){var te;(C==null?void 0:C[ee])!==((te=F.current)===null||te===void 0?void 0:te[ee])&&K.push(ee)}),F.current=C;var J=React__namespace.useRef([]);return K.length&&(J.current=K),React__namespace.useDebugValue(V.current),React__namespace.useDebugValue(J.current.join(", ")),$&&console.log("".concat($,":"),V.current,J.current),V.current}const devRenderTimes=process.env.NODE_ENV!=="production"?useRenderTimes:function(){};var RenderBlock=React__namespace.memo(function(){var C=useRenderTimes();return React__namespace.createElement("h1",null,"Render Times: ",C)});process.env.NODE_ENV!=="production"&&(RenderBlock.displayName="RenderBlock");var PerfContext=React__namespace.createContext({renderWithProps:!1}),INTERNAL_KEY_PREFIX="RC_TABLE_KEY";function toArray(C){return C==null?[]:Array.isArray(C)?C:[C]}function getColumnsKey(C){var $=[],V={};return C.forEach(function(F){for(var K=F||{},J=K.key,ee=K.dataIndex,te=J||toArray(ee).join("-")||INTERNAL_KEY_PREFIX;V[te];)te="".concat(te,"_next");V[te]=!0,$.push(te)}),$}function validateValue(C){return C!=null}function validNumberValue(C){return typeof C=="number"&&!Number.isNaN(C)}function isRenderCell(C){return C&&_typeof(C)==="object"&&!Array.isArray(C)&&!React__namespace.isValidElement(C)}function useCellRender(C,$,V,F,K,J){var ee=React__namespace.useContext(PerfContext),te=useImmutableMark(),ne=useMemo(function(){if(validateValue(F))return[F];var re=$==null||$===""?[]:Array.isArray($)?$:[$],ae=get(C,re),oe=ae,ie=void 0;if(K){var se=K(ae,C,V);isRenderCell(se)?(process.env.NODE_ENV!=="production"&&warningOnce(!1,"`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."),oe=se.children,ie=se.props,ee.renderWithProps=!0):oe=se}return[oe,ie]},[te,C,F,$,K,V],function(re,ae){if(J){var oe=_slicedToArray(re,2),ie=oe[1],se=_slicedToArray(ae,2),ce=se[1];return J(ce,ie)}return ee.renderWithProps?!0:!isEqual(re,ae,!0)});return ne}function inHoverRange(C,$,V,F){var K=C+$-1;return C<=F&&K>=V}function useHoverState(C,$){return useContext(TableContext,function(V){var F=inHoverRange(C,$||1,V.hoverStartRow,V.hoverEndRow);return[F,V.onHover]})}var getTitleFromCellRenderChildren=function($){var V=$.ellipsis,F=$.rowType,K=$.children,J,ee=V===!0?{showTitle:!0}:V;return ee&&(ee.showTitle||F==="header")&&(typeof K=="string"||typeof K=="number"?J=K.toString():React__namespace.isValidElement(K)&&typeof K.props.children=="string"&&(J=K.props.children)),J};function Cell(C){var $,V,F,K,J,ee,te,ne;process.env.NODE_ENV!=="production"&&devRenderTimes(C);var re=C.component,ae=C.children,oe=C.ellipsis,ie=C.scope,se=C.prefixCls,ce=C.className,de=C.align,le=C.record,ve=C.render,fe=C.dataIndex,he=C.renderIndex,me=C.shouldCellUpdate,ue=C.index,pe=C.rowType,ye=C.colSpan,be=C.rowSpan,ge=C.fixLeft,_e=C.fixRight,Se=C.firstFixLeft,Ee=C.lastFixLeft,Ce=C.firstFixRight,xe=C.lastFixRight,$e=C.appendNode,Ie=C.additionalProps,Fe=Ie===void 0?{}:Ie,Ne=C.isSticky,De="".concat(se,"-cell"),Oe=useContext(TableContext,["supportSticky","allColumnsFixedLeft","rowHoverable"]),we=Oe.supportSticky,Ae=Oe.allColumnsFixedLeft,ke=Oe.rowHoverable,je=useCellRender(le,fe,he,ae,ve,me),ze=_slicedToArray(je,2),Ve=ze[0],Xe=ze[1],Ye={},at=typeof ge=="number"&&we,Ue=typeof _e=="number"&&we;at&&(Ye.position="sticky",Ye.left=ge),Ue&&(Ye.position="sticky",Ye.right=_e);var Le=($=(V=(F=Xe==null?void 0:Xe.colSpan)!==null&&F!==void 0?F:Fe.colSpan)!==null&&V!==void 0?V:ye)!==null&&$!==void 0?$:1,Te=(K=(J=(ee=Xe==null?void 0:Xe.rowSpan)!==null&&ee!==void 0?ee:Fe.rowSpan)!==null&&J!==void 0?J:be)!==null&&K!==void 0?K:1,Pe=useHoverState(ue,Te),Me=_slicedToArray(Pe,2),He=Me[0],We=Me[1],Ke=useEvent(function(vt){var ht;le&&We(ue,ue+Te-1),Fe==null||(ht=Fe.onMouseEnter)===null||ht===void 0||ht.call(Fe,vt)}),rt=useEvent(function(vt){var ht;le&&We(-1,-1),Fe==null||(ht=Fe.onMouseLeave)===null||ht===void 0||ht.call(Fe,vt)});if(Le===0||Te===0)return null;var st=(te=Fe.title)!==null&&te!==void 0?te:getTitleFromCellRenderChildren({rowType:pe,ellipsis:oe,children:Ve}),it=classNames(De,ce,(ne={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(ne,"".concat(De,"-fix-left"),at&&we),"".concat(De,"-fix-left-first"),Se&&we),"".concat(De,"-fix-left-last"),Ee&&we),"".concat(De,"-fix-left-all"),Ee&&Ae&&we),"".concat(De,"-fix-right"),Ue&&we),"".concat(De,"-fix-right-first"),Ce&&we),"".concat(De,"-fix-right-last"),xe&&we),"".concat(De,"-ellipsis"),oe),"".concat(De,"-with-append"),$e),"".concat(De,"-fix-sticky"),(at||Ue)&&Ne&&we),_defineProperty(ne,"".concat(De,"-row-hover"),!Xe&&He)),Fe.className,Xe==null?void 0:Xe.className),Je={};de&&(Je.textAlign=de);var ct=_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},Xe==null?void 0:Xe.style),Ye),Je),Fe.style),dt=Ve;return _typeof(dt)==="object"&&!Array.isArray(dt)&&!React__namespace.isValidElement(dt)&&(dt=null),oe&&(Ee||Ce)&&(dt=React__namespace.createElement("span",{className:"".concat(De,"-content")},dt)),React__namespace.createElement(re,_extends({},Xe,Fe,{className:it,style:ct,title:st,scope:ie,onMouseEnter:ke?Ke:void 0,onMouseLeave:ke?rt:void 0,colSpan:Le!==1?Le:null,rowSpan:Te!==1?Te:null}),$e,dt)}const Cell$1=React__namespace.memo(Cell);function getCellFixedInfo(C,$,V,F,K){var J=V[C]||{},ee=V[$]||{},te,ne;J.fixed==="left"?te=F.left[K==="rtl"?$:C]:ee.fixed==="right"&&(ne=F.right[K==="rtl"?C:$]);var re=!1,ae=!1,oe=!1,ie=!1,se=V[$+1],ce=V[C-1],de=se&&!se.fixed||ce&&!ce.fixed||V.every(function(me){return me.fixed==="left"});if(K==="rtl"){if(te!==void 0){var le=ce&&ce.fixed==="left";ie=!le&&de}else if(ne!==void 0){var ve=se&&se.fixed==="right";oe=!ve&&de}}else if(te!==void 0){var fe=se&&se.fixed==="left";re=!fe&&de}else if(ne!==void 0){var he=ce&&ce.fixed==="right";ae=!he&&de}return{fixLeft:te,fixRight:ne,lastFixLeft:re,firstFixRight:ae,lastFixRight:oe,firstFixLeft:ie,isSticky:F.isSticky}}var SummaryContext=React__namespace.createContext({});function SummaryCell(C){var $=C.className,V=C.index,F=C.children,K=C.colSpan,J=K===void 0?1:K,ee=C.rowSpan,te=C.align,ne=useContext(TableContext,["prefixCls","direction"]),re=ne.prefixCls,ae=ne.direction,oe=React__namespace.useContext(SummaryContext),ie=oe.scrollColumnIndex,se=oe.stickyOffsets,ce=oe.flattenColumns,de=V+J-1,le=de+1===ie?J+1:J,ve=getCellFixedInfo(V,V+le-1,ce,se,ae);return React__namespace.createElement(Cell$1,_extends({className:$,index:V,component:"td",prefixCls:re,record:null,dataIndex:null,align:te,colSpan:le,rowSpan:ee,render:function(){return F}},ve))}var _excluded$a=["children"];function FooterRow(C){var $=C.children,V=_objectWithoutProperties(C,_excluded$a);return React__namespace.createElement("tr",V,$)}function Summary(C){var $=C.children;return $}Summary.Row=FooterRow,Summary.Cell=SummaryCell;function Footer$2(C){process.env.NODE_ENV!=="production"&&devRenderTimes(C);var $=C.children,V=C.stickyOffsets,F=C.flattenColumns,K=useContext(TableContext,"prefixCls"),J=F.length-1,ee=F[J],te=React__namespace.useMemo(function(){return{stickyOffsets:V,flattenColumns:F,scrollColumnIndex:ee!=null&&ee.scrollbar?J:null}},[ee,F,J,V]);return React__namespace.createElement(SummaryContext.Provider,{value:te},React__namespace.createElement("tfoot",{className:"".concat(K,"-summary")},$))}const Footer$3=responseImmutable(Footer$2);var FooterComponents=Summary;function Column$2(C){return null}function ColumnGroup$2(C){return null}function fillRecords(C,$,V,F,K,J,ee){C.push({record:$,indent:V,index:ee});var te=J($),ne=K==null?void 0:K.has(te);if($&&Array.isArray($[F])&&ne)for(var re=0;re<$[F].length;re+=1)fillRecords(C,$[F][re],V+1,F,K,J,re)}function useFlattenRecords(C,$,V,F){var K=React__namespace.useMemo(function(){if(V!=null&&V.size){for(var J=[],ee=0;ee<(C==null?void 0:C.length);ee+=1){var te=C[ee];fillRecords(J,te,0,$,V,F,ee)}return J}return C==null?void 0:C.map(function(ne,re){return{record:ne,indent:0,index:re}})},[C,$,V,F]);return K}function useRowInfo(C,$,V,F){var K=useContext(TableContext,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),J=K.flattenColumns,ee=K.expandableType,te=K.expandedKeys,ne=K.childrenColumnName,re=K.onTriggerExpand,ae=K.rowExpandable,oe=K.onRow,ie=K.expandRowByClick,se=K.rowClassName,ce=ee==="nest",de=ee==="row"&&(!ae||ae(C)),le=de||ce,ve=te&&te.has($),fe=ne&&C&&C[ne],he=useEvent(re),me=oe==null?void 0:oe(C,V),ue=me==null?void 0:me.onClick,pe=function(_e){ie&&le&&re(C,_e);for(var Se=arguments.length,Ee=new Array(Se>1?Se-1:0),Ce=1;Ce<Se;Ce++)Ee[Ce-1]=arguments[Ce];ue==null||ue.apply(void 0,[_e].concat(Ee))},ye;typeof se=="string"?ye=se:typeof se=="function"&&(ye=se(C,V,F));var be=getColumnsKey(J);return _objectSpread2(_objectSpread2({},K),{},{columnsKey:be,nestExpandable:ce,expanded:ve,hasNestChildren:fe,record:C,onTriggerExpand:he,rowSupportExpand:de,expandable:le,rowProps:_objectSpread2(_objectSpread2({},me),{},{className:classNames(ye,me==null?void 0:me.className),onClick:pe})})}function ExpandedRow(C){process.env.NODE_ENV!=="production"&&devRenderTimes(C);var $=C.prefixCls,V=C.children,F=C.component,K=C.cellComponent,J=C.className,ee=C.expanded,te=C.colSpan,ne=C.isEmpty,re=useContext(TableContext,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ae=re.scrollbarSize,oe=re.fixHeader,ie=re.fixColumn,se=re.componentWidth,ce=re.horizonScroll,de=V;return(ne?ce&&se:ie)&&(de=React__namespace.createElement("div",{style:{width:se-(oe&&!ne?ae:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat($,"-expanded-row-fixed")},de)),React__namespace.createElement(F,{className:J,style:{display:ee?null:"none"}},React__namespace.createElement(Cell$1,{component:K,prefixCls:$,colSpan:te},de))}function renderExpandIcon$1(C){var $=C.prefixCls,V=C.record,F=C.onExpand,K=C.expanded,J=C.expandable,ee="".concat($,"-row-expand-icon");if(!J)return React__namespace.createElement("span",{className:classNames(ee,"".concat($,"-row-spaced"))});var te=function(re){F(V,re),re.stopPropagation()};return React__namespace.createElement("span",{className:classNames(ee,_defineProperty(_defineProperty({},"".concat($,"-row-expanded"),K),"".concat($,"-row-collapsed"),!K)),onClick:te})}function findAllChildrenKeys(C,$,V){var F=[];function K(J){(J||[]).forEach(function(ee,te){F.push($(ee,te)),K(ee[V])})}return K(C),F}function computedExpandedClassName(C,$,V,F){return typeof C=="string"?C:typeof C=="function"?C($,V,F):""}function getCellProps(C,$,V,F,K){var J=C.record,ee=C.prefixCls,te=C.columnsKey,ne=C.fixedInfoList,re=C.expandIconColumnIndex,ae=C.nestExpandable,oe=C.indentSize,ie=C.expandIcon,se=C.expanded,ce=C.hasNestChildren,de=C.onTriggerExpand,le=te[V],ve=ne[V],fe;V===(re||0)&&ae&&(fe=React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("span",{style:{paddingLeft:"".concat(oe*F,"px")},className:"".concat(ee,"-row-indent indent-level-").concat(F)}),ie({prefixCls:ee,expanded:se,expandable:ce,record:J,onExpand:de})));var he;return $.onCell&&(he=$.onCell(J,K)),{key:le,fixedInfo:ve,appendCellNode:fe,additionalCellProps:he||{}}}function BodyRow(C){process.env.NODE_ENV!=="production"&&devRenderTimes(C);var $=C.className,V=C.style,F=C.record,K=C.index,J=C.renderIndex,ee=C.rowKey,te=C.indent,ne=te===void 0?0:te,re=C.rowComponent,ae=C.cellComponent,oe=C.scopeCellComponent,ie=useRowInfo(F,ee,K,ne),se=ie.prefixCls,ce=ie.flattenColumns,de=ie.expandedRowClassName,le=ie.expandedRowRender,ve=ie.rowProps,fe=ie.expanded,he=ie.rowSupportExpand,me=React__namespace.useRef(!1);me.current||(me.current=fe),process.env.NODE_ENV!=="production"&&devRenderTimes(C);var ue=computedExpandedClassName(de,F,K,ne),pe=React__namespace.createElement(re,_extends({},ve,{"data-row-key":ee,className:classNames($,"".concat(se,"-row"),"".concat(se,"-row-level-").concat(ne),ve==null?void 0:ve.className,_defineProperty({},ue,ne>=1)),style:_objectSpread2(_objectSpread2({},V),ve==null?void 0:ve.style)}),ce.map(function(ge,_e){var Se=ge.render,Ee=ge.dataIndex,Ce=ge.className,xe=getCellProps(ie,ge,_e,ne,K),$e=xe.key,Ie=xe.fixedInfo,Fe=xe.appendCellNode,Ne=xe.additionalCellProps;return React__namespace.createElement(Cell$1,_extends({className:Ce,ellipsis:ge.ellipsis,align:ge.align,scope:ge.rowScope,component:ge.rowScope?oe:ae,prefixCls:se,key:$e,record:F,index:K,renderIndex:J,dataIndex:Ee,render:Se,shouldCellUpdate:ge.shouldCellUpdate},Ie,{appendNode:Fe,additionalProps:Ne}))})),ye;if(he&&(me.current||fe)){var be=le(F,K,ne+1,fe);ye=React__namespace.createElement(ExpandedRow,{expanded:fe,className:classNames("".concat(se,"-expanded-row"),"".concat(se,"-expanded-row-level-").concat(ne+1),ue),prefixCls:se,component:re,cellComponent:ae,colSpan:ce.length,isEmpty:!1},be)}return React__namespace.createElement(React__namespace.Fragment,null,pe,ye)}process.env.NODE_ENV!=="production"&&(BodyRow.displayName="BodyRow");const BodyRow$1=responseImmutable(BodyRow);function MeasureCell(C){var $=C.columnKey,V=C.onColumnResize,F=React__namespace.useRef();return useLayoutEffect$1(function(){F.current&&V($,F.current.offsetWidth)},[]),React__namespace.createElement(RefResizeObserver,{data:$},React__namespace.createElement("td",{ref:F,style:{padding:0,border:0,height:0}},React__namespace.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function MeasureRow(C){var $=C.prefixCls,V=C.columnsKey,F=C.onColumnResize,K=React__namespace.useRef(null);return React__namespace.createElement("tr",{"aria-hidden":"true",className:"".concat($,"-measure-row"),style:{height:0,fontSize:0},ref:K},React__namespace.createElement(RefResizeObserver.Collection,{onBatchResize:function(ee){isVisible(K.current)&&ee.forEach(function(te){var ne=te.data,re=te.size;F(ne,re.offsetWidth)})}},V.map(function(J){return React__namespace.createElement(MeasureCell,{key:J,columnKey:J,onColumnResize:F})})))}function Body(C){process.env.NODE_ENV!=="production"&&devRenderTimes(C);var $=C.data,V=C.measureColumnWidth,F=useContext(TableContext,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),K=F.prefixCls,J=F.getComponent,ee=F.onColumnResize,te=F.flattenColumns,ne=F.getRowKey,re=F.expandedKeys,ae=F.childrenColumnName,oe=F.emptyNode,ie=useFlattenRecords($,ae,re,ne),se=React__namespace.useRef({renderWithProps:!1}),ce=J(["body","wrapper"],"tbody"),de=J(["body","row"],"tr"),le=J(["body","cell"],"td"),ve=J(["body","cell"],"th"),fe;$.length?fe=ie.map(function(me,ue){var pe=me.record,ye=me.indent,be=me.index,ge=ne(pe,ue);return React__namespace.createElement(BodyRow$1,{key:ge,rowKey:ge,record:pe,index:ue,renderIndex:be,rowComponent:de,cellComponent:le,scopeCellComponent:ve,indent:ye})}):fe=React__namespace.createElement(ExpandedRow,{expanded:!0,className:"".concat(K,"-placeholder"),prefixCls:K,component:de,cellComponent:le,colSpan:te.length,isEmpty:!0},oe);var he=getColumnsKey(te);return React__namespace.createElement(PerfContext.Provider,{value:se.current},React__namespace.createElement(ce,{className:"".concat(K,"-tbody")},V&&React__namespace.createElement(MeasureRow,{prefixCls:K,columnsKey:he,onColumnResize:ee}),fe))}process.env.NODE_ENV!=="production"&&(Body.displayName="Body");const Body$1=responseImmutable(Body);var _excluded$9=["expandable"],INTERNAL_COL_DEFINE="RC_TABLE_INTERNAL_COL_DEFINE";function getExpandableProps(C){var $=C.expandable,V=_objectWithoutProperties(C,_excluded$9),F;return"expandable"in C?F=_objectSpread2(_objectSpread2({},V),$):(process.env.NODE_ENV!=="production"&&["indentSize","expandedRowKeys","defaultExpandedRowKeys","defaultExpandAllRows","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","expandedRowClassName","expandIconColumnIndex","showExpandColumn","title"].some(function(K){return K in C})&&warningOnce(!1,"expanded related props have been moved into `expandable`."),F=V),F.showExpandColumn===!1&&(F.expandIconColumnIndex=-1),F}var _excluded$8=["columnType"];function ColGroup(C){for(var $=C.colWidths,V=C.columns,F=C.columCount,K=useContext(TableContext,["tableLayout"]),J=K.tableLayout,ee=[],te=F||V.length,ne=!1,re=te-1;re>=0;re-=1){var ae=$[re],oe=V&&V[re],ie=void 0,se=void 0;if(oe&&(ie=oe[INTERNAL_COL_DEFINE],J==="auto"&&(se=oe.minWidth)),ae||se||ie||ne){var ce=ie||{};ce.columnType;var de=_objectWithoutProperties(ce,_excluded$8);ee.unshift(React__namespace.createElement("col",_extends({key:re,style:{width:ae,minWidth:se}},de))),ne=!0}}return React__namespace.createElement("colgroup",null,ee)}var _excluded$7=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function useColumnWidth(C,$){return React.useMemo(function(){for(var V=[],F=0;F<$;F+=1){var K=C[F];if(K!==void 0)V[F]=K;else return null}return V},[C.join("_"),$])}var FixedHolder=React__namespace.forwardRef(function(C,$){process.env.NODE_ENV!=="production"&&devRenderTimes(C);var V=C.className,F=C.noData,K=C.columns,J=C.flattenColumns,ee=C.colWidths,te=C.columCount,ne=C.stickyOffsets,re=C.direction,ae=C.fixHeader,oe=C.stickyTopOffset,ie=C.stickyBottomOffset,se=C.stickyClassName,ce=C.onScroll,de=C.maxContentScroll,le=C.children,ve=_objectWithoutProperties(C,_excluded$7),fe=useContext(TableContext,["prefixCls","scrollbarSize","isSticky","getComponent"]),he=fe.prefixCls,me=fe.scrollbarSize,ue=fe.isSticky,pe=fe.getComponent,ye=pe(["header","table"],"table"),be=ue&&!ae?0:me,ge=React__namespace.useRef(null),_e=React__namespace.useCallback(function(Ne){fillRef($,Ne),fillRef(ge,Ne)},[]);React__namespace.useEffect(function(){var Ne;function De(Oe){var we=Oe,Ae=we.currentTarget,ke=we.deltaX;ke&&(ce({currentTarget:Ae,scrollLeft:Ae.scrollLeft+ke}),Oe.preventDefault())}return(Ne=ge.current)===null||Ne===void 0||Ne.addEventListener("wheel",De,{passive:!1}),function(){var Oe;(Oe=ge.current)===null||Oe===void 0||Oe.removeEventListener("wheel",De)}},[]);var Se=React__namespace.useMemo(function(){return J.every(function(Ne){return Ne.width})},[J]),Ee=J[J.length-1],Ce={fixed:Ee?Ee.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(he,"-cell-scrollbar")}}},xe=React.useMemo(function(){return be?[].concat(_toConsumableArray(K),[Ce]):K},[be,K]),$e=React.useMemo(function(){return be?[].concat(_toConsumableArray(J),[Ce]):J},[be,J]),Ie=React.useMemo(function(){var Ne=ne.right,De=ne.left;return _objectSpread2(_objectSpread2({},ne),{},{left:re==="rtl"?[].concat(_toConsumableArray(De.map(function(Oe){return Oe+be})),[0]):De,right:re==="rtl"?Ne:[].concat(_toConsumableArray(Ne.map(function(Oe){return Oe+be})),[0]),isSticky:ue})},[be,ne,ue]),Fe=useColumnWidth(ee,te);return React__namespace.createElement("div",{style:_objectSpread2({overflow:"hidden"},ue?{top:oe,bottom:ie}:{}),ref:_e,className:classNames(V,_defineProperty({},se,!!se))},React__namespace.createElement(ye,{style:{tableLayout:"fixed",visibility:F||Fe?null:"hidden"}},(!F||!de||Se)&&React__namespace.createElement(ColGroup,{colWidths:Fe?[].concat(_toConsumableArray(Fe),[be]):[],columCount:te+1,columns:$e}),le(_objectSpread2(_objectSpread2({},ve),{},{stickyOffsets:Ie,columns:xe,flattenColumns:$e}))))});process.env.NODE_ENV!=="production"&&(FixedHolder.displayName="FixedHolder");const FixedHolder$1=React__namespace.memo(FixedHolder);var HeaderRow=function($){var V=$.cells,F=$.stickyOffsets,K=$.flattenColumns,J=$.rowComponent,ee=$.cellComponent,te=$.onHeaderRow,ne=$.index,re=useContext(TableContext,["prefixCls","direction"]),ae=re.prefixCls,oe=re.direction,ie;te&&(ie=te(V.map(function(ce){return ce.column}),ne));var se=getColumnsKey(V.map(function(ce){return ce.column}));return React__namespace.createElement(J,ie,V.map(function(ce,de){var le=ce.column,ve=getCellFixedInfo(ce.colStart,ce.colEnd,K,F,oe),fe;return le&&le.onHeaderCell&&(fe=ce.column.onHeaderCell(le)),React__namespace.createElement(Cell$1,_extends({},ce,{scope:le.title?ce.colSpan>1?"colgroup":"col":null,ellipsis:le.ellipsis,align:le.align,component:ee,prefixCls:ae,key:se[de]},ve,{additionalProps:fe,rowType:"header"}))}))};process.env.NODE_ENV!=="production"&&(HeaderRow.displayName="HeaderRow");function parseHeaderRows(C){var $=[];function V(ee,te){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;$[ne]=$[ne]||[];var re=te,ae=ee.filter(Boolean).map(function(oe){var ie={key:oe.key,className:oe.className||"",children:oe.title,column:oe,colStart:re},se=1,ce=oe.children;return ce&&ce.length>0&&(se=V(ce,re,ne+1).reduce(function(de,le){return de+le},0),ie.hasSubColumns=!0),"colSpan"in oe&&(se=oe.colSpan),"rowSpan"in oe&&(ie.rowSpan=oe.rowSpan),ie.colSpan=se,ie.colEnd=ie.colStart+se-1,$[ne].push(ie),re+=se,se});return ae}V(C,0);for(var F=$.length,K=function(te){$[te].forEach(function(ne){!("rowSpan"in ne)&&!ne.hasSubColumns&&(ne.rowSpan=F-te)})},J=0;J<F;J+=1)K(J);return $}var Header$1=function($){process.env.NODE_ENV!=="production"&&devRenderTimes($);var V=$.stickyOffsets,F=$.columns,K=$.flattenColumns,J=$.onHeaderRow,ee=useContext(TableContext,["prefixCls","getComponent"]),te=ee.prefixCls,ne=ee.getComponent,re=React__namespace.useMemo(function(){return parseHeaderRows(F)},[F]),ae=ne(["header","wrapper"],"thead"),oe=ne(["header","row"],"tr"),ie=ne(["header","cell"],"th");return React__namespace.createElement(ae,{className:"".concat(te,"-thead")},re.map(function(se,ce){var de=React__namespace.createElement(HeaderRow,{key:ce,flattenColumns:K,cells:se,stickyOffsets:V,rowComponent:oe,cellComponent:ie,onHeaderRow:J,index:ce});return de}))};const Header$2=responseImmutable(Header$1);function parseColWidth(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof $=="number"?$:$.endsWith("%")?C*parseFloat($)/100:null}function useWidthColumns(C,$,V){return React__namespace.useMemo(function(){if($&&$>0){var F=0,K=0;C.forEach(function(ie){var se=parseColWidth($,ie.width);se?F+=se:K+=1});var J=Math.max($,V),ee=Math.max(J-F,K),te=K,ne=ee/K,re=0,ae=C.map(function(ie){var se=_objectSpread2({},ie),ce=parseColWidth($,se.width);if(ce)se.width=ce;else{var de=Math.floor(ne);se.width=te===1?ee:de,ee-=de,te-=1}return re+=se.width,se});if(re<J){var oe=J/re;ee=J,ae.forEach(function(ie,se){var ce=Math.floor(ie.width*oe);ie.width=se===ae.length-1?ee:ce,ee-=ce})}return[ae,Math.max(re,J)]}return[C,$]},[C,$,V])}var _excluded$6=["children"],_excluded2=["fixed"];function convertChildrenToColumns(C){return toArray$6(C).filter(function($){return React__namespace.isValidElement($)}).map(function($){var V=$.key,F=$.props,K=F.children,J=_objectWithoutProperties(F,_excluded$6),ee=_objectSpread2({key:V},J);return K&&(ee.children=convertChildrenToColumns(K)),ee})}function filterHiddenColumns(C){return C.filter(function($){return $&&_typeof($)==="object"&&!$.hidden}).map(function($){var V=$.children;return V&&V.length>0?_objectSpread2(_objectSpread2({},$),{},{children:filterHiddenColumns(V)}):$})}function flatColumns(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return C.filter(function(V){return V&&_typeof(V)==="object"}).reduce(function(V,F,K){var J=F.fixed,ee=J===!0?"left":J,te="".concat($,"-").concat(K),ne=F.children;return ne&&ne.length>0?[].concat(_toConsumableArray(V),_toConsumableArray(flatColumns(ne,te).map(function(re){return _objectSpread2({fixed:ee},re)}))):[].concat(_toConsumableArray(V),[_objectSpread2(_objectSpread2({key:te},F),{},{fixed:ee})])},[])}function revertForRtl(C){return C.map(function($){var V=$.fixed,F=_objectWithoutProperties($,_excluded2),K=V;return V==="left"?K="right":V==="right"&&(K="left"),_objectSpread2({fixed:K},F)})}function useColumns(C,$){var V=C.prefixCls,F=C.columns,K=C.children,J=C.expandable,ee=C.expandedKeys,te=C.columnTitle,ne=C.getRowKey,re=C.onTriggerExpand,ae=C.expandIcon,oe=C.rowExpandable,ie=C.expandIconColumnIndex,se=C.direction,ce=C.expandRowByClick,de=C.columnWidth,le=C.fixed,ve=C.scrollWidth,fe=C.clientWidth,he=React__namespace.useMemo(function(){var Ee=F||convertChildrenToColumns(K)||[];return filterHiddenColumns(Ee.slice())},[F,K]),me=React__namespace.useMemo(function(){if(J){var Ee=he.slice();if(process.env.NODE_ENV!=="production"&&ie>=0&&warningOnce(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!Ee.includes(EXPAND_COLUMN)){var Ce=ie||0;Ce>=0&&(Ce||le==="left"||!le)&&Ee.splice(Ce,0,EXPAND_COLUMN),le==="right"&&Ee.splice(he.length,0,EXPAND_COLUMN)}process.env.NODE_ENV!=="production"&&Ee.filter(function(Ne){return Ne===EXPAND_COLUMN}).length>1&&warningOnce(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");var xe=Ee.indexOf(EXPAND_COLUMN);Ee=Ee.filter(function(Ne,De){return Ne!==EXPAND_COLUMN||De===xe});var $e=he[xe],Ie;le?Ie=le:Ie=$e?$e.fixed:null;var Fe=_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},INTERNAL_COL_DEFINE,{className:"".concat(V,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",te),"fixed",Ie),"className","".concat(V,"-row-expand-icon-cell")),"width",de),"render",function(De,Oe,we){var Ae=ne(Oe,we),ke=ee.has(Ae),je=oe?oe(Oe):!0,ze=ae({prefixCls:V,expanded:ke,expandable:je,record:Oe,onExpand:re});return ce?React__namespace.createElement("span",{onClick:function(Xe){return Xe.stopPropagation()}},ze):ze});return Ee.map(function(Ne){return Ne===EXPAND_COLUMN?Fe:Ne})}return process.env.NODE_ENV!=="production"&&he.includes(EXPAND_COLUMN)&&warningOnce(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),he.filter(function(Ne){return Ne!==EXPAND_COLUMN})},[J,he,ne,ee,ae,se]),ue=React__namespace.useMemo(function(){var Ee=me;return $&&(Ee=$(Ee)),Ee.length||(Ee=[{render:function(){return null}}]),Ee},[$,me,se]),pe=React__namespace.useMemo(function(){return se==="rtl"?revertForRtl(flatColumns(ue)):flatColumns(ue)},[ue,se,ve]),ye=React__namespace.useMemo(function(){for(var Ee=-1,Ce=pe.length-1;Ce>=0;Ce-=1){var xe=pe[Ce].fixed;if(xe==="left"||xe===!0){Ee=Ce;break}}if(Ee>=0)for(var $e=0;$e<=Ee;$e+=1){var Ie=pe[$e].fixed;if(Ie!=="left"&&Ie!==!0)return!0}var Fe=pe.findIndex(function(Oe){var we=Oe.fixed;return we==="right"});if(Fe>=0)for(var Ne=Fe;Ne<pe.length;Ne+=1){var De=pe[Ne].fixed;if(De!=="right")return!0}return!1},[pe]),be=useWidthColumns(pe,ve,fe),ge=_slicedToArray(be,2),_e=ge[0],Se=ge[1];return[ue,_e,Se,ye]}function useExpand(C,$,V){var F=getExpandableProps(C),K=F.expandIcon,J=F.expandedRowKeys,ee=F.defaultExpandedRowKeys,te=F.defaultExpandAllRows,ne=F.expandedRowRender,re=F.onExpand,ae=F.onExpandedRowsChange,oe=F.childrenColumnName,ie=K||renderExpandIcon$1,se=oe||"children",ce=React__namespace.useMemo(function(){return ne?"row":C.expandable&&C.internalHooks===INTERNAL_HOOKS&&C.expandable.__PARENT_RENDER_ICON__||$.some(function(ue){return ue&&_typeof(ue)==="object"&&ue[se]})?"nest":!1},[!!ne,$]),de=React__namespace.useState(function(){return ee||(te?findAllChildrenKeys($,V,se):[])}),le=_slicedToArray(de,2),ve=le[0],fe=le[1],he=React__namespace.useMemo(function(){return new Set(J||ve||[])},[J,ve]),me=React__namespace.useCallback(function(ue){var pe=V(ue,$.indexOf(ue)),ye,be=he.has(pe);be?(he.delete(pe),ye=_toConsumableArray(he)):ye=[].concat(_toConsumableArray(he),[pe]),fe(ye),re&&re(!be,ue),ae&&ae(ye)},[V,he,$,re,ae]);return process.env.NODE_ENV!=="production"&&ne&&$.some(function(ue){return Array.isArray(ue==null?void 0:ue[se])})&&warningOnce(!1,"`expandedRowRender` should not use with nested Table"),[F,ce,he,ie,se,me]}function useFixedInfo(C,$,V){var F=C.map(function(K,J){return getCellFixedInfo(J,J,C,$,V)});return useMemo(function(){return F},[F],function(K,J){return!isEqual(K,J)})}function useLayoutState(C){var $=React.useRef(C),V=React.useState({}),F=_slicedToArray(V,2),K=F[1],J=React.useRef(null),ee=React.useRef([]);function te(ne){ee.current.push(ne);var re=Promise.resolve();J.current=re,re.then(function(){if(J.current===re){var ae=ee.current,oe=$.current;ee.current=[],ae.forEach(function(ie){$.current=ie($.current)}),J.current=null,oe!==$.current&&K({})}})}return React.useEffect(function(){return function(){J.current=null}},[]),[$.current,te]}function useTimeoutLock(C){var $=React.useRef(C||null),V=React.useRef();function F(){window.clearTimeout(V.current)}function K(ee){$.current=ee,F(),V.current=window.setTimeout(function(){$.current=null,V.current=void 0},100)}function J(){return $.current}return React.useEffect(function(){return F},[]),[K,J]}function useHover(){var C=React__namespace.useState(-1),$=_slicedToArray(C,2),V=$[0],F=$[1],K=React__namespace.useState(-1),J=_slicedToArray(K,2),ee=J[0],te=J[1],ne=React__namespace.useCallback(function(re,ae){F(re),te(ae)},[]);return[V,ee,ne]}var defaultContainer=canUseDom()?window:null;function useSticky(C,$){var V=_typeof(C)==="object"?C:{},F=V.offsetHeader,K=F===void 0?0:F,J=V.offsetSummary,ee=J===void 0?0:J,te=V.offsetScroll,ne=te===void 0?0:te,re=V.getContainer,ae=re===void 0?function(){return defaultContainer}:re,oe=ae()||defaultContainer,ie=!!C;return React__namespace.useMemo(function(){return{isSticky:ie,stickyClassName:ie?"".concat($,"-sticky-holder"):"",offsetHeader:K,offsetSummary:ee,offsetScroll:ne,container:oe}},[ie,ne,K,ee,$,oe])}function useStickyOffsets(C,$,V){var F=React.useMemo(function(){var K=$.length,J=function(re,ae,oe){for(var ie=[],se=0,ce=re;ce!==ae;ce+=oe)ie.push(se),$[ce].fixed&&(se+=C[ce]||0);return ie},ee=J(0,K,1),te=J(K-1,-1,-1).reverse();return V==="rtl"?{left:te,right:ee}:{left:ee,right:te}},[C,$,V]);return F}function Panel(C){var $=C.className,V=C.children;return React__namespace.createElement("div",{className:$},V)}function getOffset(C){var $=getDOM(C),V=$.getBoundingClientRect(),F=document.documentElement;return{left:V.left+(window.pageXOffset||F.scrollLeft)-(F.clientLeft||document.body.clientLeft||0),top:V.top+(window.pageYOffset||F.scrollTop)-(F.clientTop||document.body.clientTop||0)}}var StickyScrollBar=function($,V){var F,K,J=$.scrollBodyRef,ee=$.onScroll,te=$.offsetScroll,ne=$.container,re=$.direction,ae=useContext(TableContext,"prefixCls"),oe=((F=J.current)===null||F===void 0?void 0:F.scrollWidth)||0,ie=((K=J.current)===null||K===void 0?void 0:K.clientWidth)||0,se=oe&&ie*(ie/oe),ce=React__namespace.useRef(),de=useLayoutState({scrollLeft:0,isHiddenScrollBar:!0}),le=_slicedToArray(de,2),ve=le[0],fe=le[1],he=React__namespace.useRef({delta:0,x:0}),me=React__namespace.useState(!1),ue=_slicedToArray(me,2),pe=ue[0],ye=ue[1],be=React__namespace.useRef(null);React__namespace.useEffect(function(){return function(){wrapperRaf.cancel(be.current)}},[]);var ge=function(){ye(!1)},_e=function($e){$e.persist(),he.current.delta=$e.pageX-ve.scrollLeft,he.current.x=0,ye(!0),$e.preventDefault()},Se=function($e){var Ie,Fe=$e||((Ie=window)===null||Ie===void 0?void 0:Ie.event),Ne=Fe.buttons;if(!pe||Ne===0){pe&&ye(!1);return}var De=he.current.x+$e.pageX-he.current.x-he.current.delta,Oe=re==="rtl";De=Math.max(Oe?se-ie:0,Math.min(Oe?0:ie-se,De));var we=!Oe||Math.abs(De)+Math.abs(se)<ie;we&&(ee({scrollLeft:De/ie*(oe+2)}),he.current.x=$e.pageX)},Ee=function(){wrapperRaf.cancel(be.current),be.current=wrapperRaf(function(){if(J.current){var $e=getOffset(J.current).top,Ie=$e+J.current.offsetHeight,Fe=ne===window?document.documentElement.scrollTop+window.innerHeight:getOffset(ne).top+ne.clientHeight;Ie-getScrollBarSize()<=Fe||$e>=Fe-te?fe(function(Ne){return _objectSpread2(_objectSpread2({},Ne),{},{isHiddenScrollBar:!0})}):fe(function(Ne){return _objectSpread2(_objectSpread2({},Ne),{},{isHiddenScrollBar:!1})})}})},Ce=function($e){fe(function(Ie){return _objectSpread2(_objectSpread2({},Ie),{},{scrollLeft:$e/oe*ie||0})})};return React__namespace.useImperativeHandle(V,function(){return{setScrollLeft:Ce,checkScrollBarVisible:Ee}}),React__namespace.useEffect(function(){var xe=addEventListenerWrap(document.body,"mouseup",ge,!1),$e=addEventListenerWrap(document.body,"mousemove",Se,!1);return Ee(),function(){xe.remove(),$e.remove()}},[se,pe]),React__namespace.useEffect(function(){if(J.current){for(var xe=[],$e=getDOM(J.current);$e;)xe.push($e),$e=$e.parentElement;return xe.forEach(function(Ie){return Ie.addEventListener("scroll",Ee,!1)}),window.addEventListener("resize",Ee,!1),window.addEventListener("scroll",Ee,!1),ne.addEventListener("scroll",Ee,!1),function(){xe.forEach(function(Ie){return Ie.removeEventListener("scroll",Ee)}),window.removeEventListener("resize",Ee),window.removeEventListener("scroll",Ee),ne.removeEventListener("scroll",Ee)}}},[ne]),React__namespace.useEffect(function(){ve.isHiddenScrollBar||fe(function(xe){var $e=J.current;return $e?_objectSpread2(_objectSpread2({},xe),{},{scrollLeft:$e.scrollLeft/$e.scrollWidth*$e.clientWidth}):xe})},[ve.isHiddenScrollBar]),oe<=ie||!se||ve.isHiddenScrollBar?null:React__namespace.createElement("div",{style:{height:getScrollBarSize(),width:ie,bottom:te},className:"".concat(ae,"-sticky-scroll")},React__namespace.createElement("div",{onMouseDown:_e,ref:ce,className:classNames("".concat(ae,"-sticky-scroll-bar"),_defineProperty({},"".concat(ae,"-sticky-scroll-bar-active"),pe)),style:{width:"".concat(se,"px"),transform:"translate3d(".concat(ve.scrollLeft,"px, 0, 0)")}}))};const StickyScrollBar$1=React__namespace.forwardRef(StickyScrollBar);var DEFAULT_PREFIX="rc-table",EMPTY_DATA=[],EMPTY_SCROLL_TARGET={};function defaultEmpty(){return"No Data"}function Table$2(C,$){var V=_objectSpread2({rowKey:"key",prefixCls:DEFAULT_PREFIX,emptyText:defaultEmpty},C),F=V.prefixCls,K=V.className,J=V.rowClassName,ee=V.style,te=V.data,ne=V.rowKey,re=V.scroll,ae=V.tableLayout,oe=V.direction,ie=V.title,se=V.footer,ce=V.summary,de=V.caption,le=V.id,ve=V.showHeader,fe=V.components,he=V.emptyText,me=V.onRow,ue=V.onHeaderRow,pe=V.onScroll,ye=V.internalHooks,be=V.transformColumns,ge=V.internalRefs,_e=V.tailor,Se=V.getContainerWidth,Ee=V.sticky,Ce=V.rowHoverable,xe=Ce===void 0?!0:Ce,$e=te||EMPTY_DATA,Ie=!!$e.length,Fe=ye===INTERNAL_HOOKS;process.env.NODE_ENV!=="production"&&(["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach(function(hn){warningOnce(V[hn]===void 0,"`".concat(hn,"` is removed, please use `onRow` instead."))}),warningOnce(!("getBodyWrapper"in V),"`getBodyWrapper` is deprecated, please use custom `components` instead."));var Ne=React__namespace.useCallback(function(hn,yn){return get(fe,hn)||yn},[fe]),De=React__namespace.useMemo(function(){return typeof ne=="function"?ne:function(hn){var yn=hn&&hn[ne];return process.env.NODE_ENV!=="production"&&warningOnce(yn!==void 0,"Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."),yn}},[ne]),Oe=Ne(["body"]),we=useHover(),Ae=_slicedToArray(we,3),ke=Ae[0],je=Ae[1],ze=Ae[2],Ve=useExpand(V,$e,De),Xe=_slicedToArray(Ve,6),Ye=Xe[0],at=Xe[1],Ue=Xe[2],Le=Xe[3],Te=Xe[4],Pe=Xe[5],Me=re==null?void 0:re.x,He=React__namespace.useState(0),We=_slicedToArray(He,2),Ke=We[0],rt=We[1],st=useColumns(_objectSpread2(_objectSpread2(_objectSpread2({},V),Ye),{},{expandable:!!Ye.expandedRowRender,columnTitle:Ye.columnTitle,expandedKeys:Ue,getRowKey:De,onTriggerExpand:Pe,expandIcon:Le,expandIconColumnIndex:Ye.expandIconColumnIndex,direction:oe,scrollWidth:Fe&&_e&&typeof Me=="number"?Me:null,clientWidth:Ke}),Fe?be:null),it=_slicedToArray(st,4),Je=it[0],ct=it[1],dt=it[2],vt=it[3],ht=dt!=null?dt:Me,bt=React__namespace.useMemo(function(){return{columns:Je,flattenColumns:ct}},[Je,ct]),Rt=React__namespace.useRef(),wt=React__namespace.useRef(),lt=React__namespace.useRef(),ut=React__namespace.useRef();React__namespace.useImperativeHandle($,function(){return{nativeElement:Rt.current,scrollTo:function(yn){var Bn;if(lt.current instanceof HTMLElement){var Hn=yn.index,Gn=yn.top,fr=yn.key;if(validNumberValue(Gn)){var Yn;(Yn=lt.current)===null||Yn===void 0||Yn.scrollTo({top:Gn})}else{var Jn,pr=fr!=null?fr:De($e[Hn]);(Jn=lt.current.querySelector('[data-row-key="'.concat(pr,'"]')))===null||Jn===void 0||Jn.scrollIntoView()}}else(Bn=lt.current)!==null&&Bn!==void 0&&Bn.scrollTo&&lt.current.scrollTo(yn)}}});var Ge=React__namespace.useRef(),et=React__namespace.useState(!1),Ze=_slicedToArray(et,2),nt=Ze[0],tt=Ze[1],qe=React__namespace.useState(!1),ot=_slicedToArray(qe,2),ft=ot[0],yt=ot[1],$t=React__namespace.useState(new Map),kt=_slicedToArray($t,2),Dt=kt[0],St=kt[1],Bt=getColumnsKey(ct),It=Bt.map(function(hn){return Dt.get(hn)}),Pt=React__namespace.useMemo(function(){return It},[It.join("_")]),Tt=useStickyOffsets(Pt,ct,oe),Ct=re&&validateValue(re.y),At=re&&validateValue(ht)||!!Ye.fixed,Ht=At&&ct.some(function(hn){var yn=hn.fixed;return yn}),Gt=React__namespace.useRef(),zt=useSticky(Ee,F),Ft=zt.isSticky,Vt=zt.offsetHeader,Kt=zt.offsetSummary,qt=zt.offsetScroll,ln=zt.stickyClassName,Cn=zt.container,Wt=React__namespace.useMemo(function(){return ce==null?void 0:ce($e)},[ce,$e]),Jt=(Ct||Ft)&&React__namespace.isValidElement(Wt)&&Wt.type===Summary&&Wt.props.fixed,dn,sn,gn;Ct&&(sn={overflowY:Ie?"scroll":"auto",maxHeight:re.y}),At&&(dn={overflowX:"auto"},Ct||(sn={overflowY:"hidden"}),gn={width:ht===!0?"auto":ht,minWidth:"100%"});var mt=React__namespace.useCallback(function(hn,yn){St(function(Bn){if(Bn.get(hn)!==yn){var Hn=new Map(Bn);return Hn.set(hn,yn),Hn}return Bn})},[]),Ot=useTimeoutLock(null),pt=_slicedToArray(Ot,2),_t=pt[0],Et=pt[1];function Nt(hn,yn){yn&&(typeof yn=="function"?yn(hn):yn.scrollLeft!==hn&&(yn.scrollLeft=hn,yn.scrollLeft!==hn&&setTimeout(function(){yn.scrollLeft=hn},0)))}var Mt=useEvent(function(hn){var yn=hn.currentTarget,Bn=hn.scrollLeft,Hn=oe==="rtl",Gn=typeof Bn=="number"?Bn:yn.scrollLeft,fr=yn||EMPTY_SCROLL_TARGET;if(!Et()||Et()===fr){var Yn;_t(fr),Nt(Gn,wt.current),Nt(Gn,lt.current),Nt(Gn,Ge.current),Nt(Gn,(Yn=Gt.current)===null||Yn===void 0?void 0:Yn.setScrollLeft)}var Jn=yn||wt.current;if(Jn){var pr=Fe&&_e&&typeof ht=="number"?ht:Jn.scrollWidth,hr=Jn.clientWidth;if(pr===hr){tt(!1),yt(!1);return}Hn?(tt(-Gn<pr-hr),yt(-Gn>0)):(tt(Gn>0),yt(Gn<pr-hr))}}),Lt=useEvent(function(hn){Mt(hn),pe==null||pe(hn)}),Xt=function(){if(At&&lt.current){var yn;Mt({currentTarget:getDOM(lt.current),scrollLeft:(yn=lt.current)===null||yn===void 0?void 0:yn.scrollLeft})}else tt(!1),yt(!1)},vn=function(yn){var Bn,Hn=yn.width;(Bn=Gt.current)===null||Bn===void 0||Bn.checkScrollBarVisible();var Gn=Rt.current?Rt.current.offsetWidth:Hn;Fe&&Se&&Rt.current&&(Gn=Se(Rt.current,Gn)||Gn),Gn!==Ke&&(Xt(),rt(Gn))},bn=React__namespace.useRef(!1);React__namespace.useEffect(function(){bn.current&&Xt()},[At,te,Je.length]),React__namespace.useEffect(function(){bn.current=!0},[]);var _n=React__namespace.useState(0),Nn=_slicedToArray(_n,2),Tn=Nn[0],Qt=Nn[1],Yt=React__namespace.useState(!0),wn=_slicedToArray(Yt,2),Fn=wn[0],Ln=wn[1];useLayoutEffect$1(function(){(!_e||!Fe)&&(lt.current instanceof Element?Qt(getTargetScrollBarSize(lt.current).width):Qt(getTargetScrollBarSize(ut.current).width)),Ln(isStyleSupport("position","sticky"))},[]),React__namespace.useEffect(function(){Fe&&ge&&(ge.body.current=lt.current)});var Vn=React__namespace.useCallback(function(hn){return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(Header$2,hn),Jt==="top"&&React__namespace.createElement(Footer$3,hn,Wt))},[Jt,Wt]),nr=React__namespace.useCallback(function(hn){return React__namespace.createElement(Footer$3,hn,Wt)},[Wt]),Un=Ne(["table"],"table"),Pn=React__namespace.useMemo(function(){return ae||(Ht?ht==="max-content"?"auto":"fixed":Ct||Ft||ct.some(function(hn){var yn=hn.ellipsis;return yn})?"fixed":"auto")},[Ct,Ht,ct,ae,Ft]),rr,lr={colWidths:Pt,columCount:ct.length,stickyOffsets:Tt,onHeaderRow:ue,fixHeader:Ct,scroll:re},En=React__namespace.useMemo(function(){return Ie?null:typeof he=="function"?he():he},[Ie,he]),Zt=React__namespace.createElement(Body$1,{data:$e,measureColumnWidth:Ct||At||Ft}),Sn=React__namespace.createElement(ColGroup,{colWidths:ct.map(function(hn){var yn=hn.width;return yn}),columns:ct}),$n=de!=null?React__namespace.createElement("caption",{className:"".concat(F,"-caption")},de):void 0,On=pickAttrs(V,{data:!0}),An=pickAttrs(V,{aria:!0});if(Ct||Ft){var Kn;typeof Oe=="function"?(Kn=Oe($e,{scrollbarSize:Tn,ref:lt,onScroll:Mt}),lr.colWidths=ct.map(function(hn,yn){var Bn=hn.width,Hn=yn===ct.length-1?Bn-Tn:Bn;return typeof Hn=="number"&&!Number.isNaN(Hn)?Hn:(process.env.NODE_ENV!=="production"&&warningOnce(V.columns.length===0,"When use `components.body` with render props. Each column should have a fixed `width` value."),0)})):Kn=React__namespace.createElement("div",{style:_objectSpread2(_objectSpread2({},dn),sn),onScroll:Lt,ref:lt,className:classNames("".concat(F,"-body"))},React__namespace.createElement(Un,_extends({style:_objectSpread2(_objectSpread2({},gn),{},{tableLayout:Pn})},An),$n,Sn,Zt,!Jt&&Wt&&React__namespace.createElement(Footer$3,{stickyOffsets:Tt,flattenColumns:ct},Wt)));var Xn=_objectSpread2(_objectSpread2(_objectSpread2({noData:!$e.length,maxContentScroll:At&&ht==="max-content"},lr),bt),{},{direction:oe,stickyClassName:ln,onScroll:Mt});rr=React__namespace.createElement(React__namespace.Fragment,null,ve!==!1&&React__namespace.createElement(FixedHolder$1,_extends({},Xn,{stickyTopOffset:Vt,className:"".concat(F,"-header"),ref:wt}),Vn),Kn,Jt&&Jt!=="top"&&React__namespace.createElement(FixedHolder$1,_extends({},Xn,{stickyBottomOffset:Kt,className:"".concat(F,"-summary"),ref:Ge}),nr),Ft&&lt.current&&lt.current instanceof Element&&React__namespace.createElement(StickyScrollBar$1,{ref:Gt,offsetScroll:qt,scrollBodyRef:lt,onScroll:Mt,container:Cn,direction:oe}))}else rr=React__namespace.createElement("div",{style:_objectSpread2(_objectSpread2({},dn),sn),className:classNames("".concat(F,"-content")),onScroll:Mt,ref:lt},React__namespace.createElement(Un,_extends({style:_objectSpread2(_objectSpread2({},gn),{},{tableLayout:Pn})},An),$n,Sn,ve!==!1&&React__namespace.createElement(Header$2,_extends({},lr,bt)),Zt,Wt&&React__namespace.createElement(Footer$3,{stickyOffsets:Tt,flattenColumns:ct},Wt)));var or=React__namespace.createElement("div",_extends({className:classNames(F,K,_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(F,"-rtl"),oe==="rtl"),"".concat(F,"-ping-left"),nt),"".concat(F,"-ping-right"),ft),"".concat(F,"-layout-fixed"),ae==="fixed"),"".concat(F,"-fixed-header"),Ct),"".concat(F,"-fixed-column"),Ht),"".concat(F,"-fixed-column-gapped"),Ht&&vt),"".concat(F,"-scroll-horizontal"),At),"".concat(F,"-has-fix-left"),ct[0]&&ct[0].fixed),"".concat(F,"-has-fix-right"),ct[ct.length-1]&&ct[ct.length-1].fixed==="right")),style:ee,id:le,ref:Rt},On),ie&&React__namespace.createElement(Panel,{className:"".concat(F,"-title")},ie($e)),React__namespace.createElement("div",{ref:ut,className:"".concat(F,"-container")},rr),se&&React__namespace.createElement(Panel,{className:"".concat(F,"-footer")},se($e)));At&&(or=React__namespace.createElement(RefResizeObserver,{onResize:vn},or));var cr=useFixedInfo(ct,Tt,oe),ur=React__namespace.useMemo(function(){return{scrollX:ht,prefixCls:F,getComponent:Ne,scrollbarSize:Tn,direction:oe,fixedInfoList:cr,isSticky:Ft,supportSticky:Fn,componentWidth:Ke,fixHeader:Ct,fixColumn:Ht,horizonScroll:At,tableLayout:Pn,rowClassName:J,expandedRowClassName:Ye.expandedRowClassName,expandIcon:Le,expandableType:at,expandRowByClick:Ye.expandRowByClick,expandedRowRender:Ye.expandedRowRender,onTriggerExpand:Pe,expandIconColumnIndex:Ye.expandIconColumnIndex,indentSize:Ye.indentSize,allColumnsFixedLeft:ct.every(function(hn){return hn.fixed==="left"}),emptyNode:En,columns:Je,flattenColumns:ct,onColumnResize:mt,hoverStartRow:ke,hoverEndRow:je,onHover:ze,rowExpandable:Ye.rowExpandable,onRow:me,getRowKey:De,expandedKeys:Ue,childrenColumnName:Te,rowHoverable:xe}},[ht,F,Ne,Tn,oe,cr,Ft,Fn,Ke,Ct,Ht,At,Pn,J,Ye.expandedRowClassName,Le,at,Ye.expandRowByClick,Ye.expandedRowRender,Pe,Ye.expandIconColumnIndex,Ye.indentSize,En,Je,ct,mt,ke,je,ze,Ye.rowExpandable,me,De,Ue,Te,xe]);return React__namespace.createElement(TableContext.Provider,{value:ur},or)}var RefTable=React__namespace.forwardRef(Table$2);process.env.NODE_ENV!=="production"&&(RefTable.displayName="Table");function genTable(C){return makeImmutable(RefTable,C)}var ImmutableTable=genTable();ImmutableTable.EXPAND_COLUMN=EXPAND_COLUMN,ImmutableTable.INTERNAL_HOOKS=INTERNAL_HOOKS,ImmutableTable.Column=Column$2,ImmutableTable.ColumnGroup=ColumnGroup$2,ImmutableTable.Summary=FooterComponents;var StaticContext=createContext(null),GridContext=createContext(null);function getColumnWidth(C,$,V){var F=$||1;return V[C+F]-(V[C]||0)}function VirtualCell(C){var $=C.rowInfo,V=C.column,F=C.colIndex,K=C.indent,J=C.index,ee=C.component,te=C.renderIndex,ne=C.record,re=C.style,ae=C.className,oe=C.inverse,ie=C.getHeight,se=V.render,ce=V.dataIndex,de=V.className,le=V.width,ve=useContext(GridContext,["columnsOffset"]),fe=ve.columnsOffset,he=getCellProps($,V,F,K,J),me=he.key,ue=he.fixedInfo,pe=he.appendCellNode,ye=he.additionalCellProps,be=ye.style,ge=ye.colSpan,_e=ge===void 0?1:ge,Se=ye.rowSpan,Ee=Se===void 0?1:Se,Ce=F-1,xe=getColumnWidth(Ce,_e,fe),$e=_e>1?le-xe:0,Ie=_objectSpread2(_objectSpread2(_objectSpread2({},be),re),{},{flex:"0 0 ".concat(xe,"px"),width:"".concat(xe,"px"),marginRight:$e,pointerEvents:"auto"}),Fe=React__namespace.useMemo(function(){return oe?Ee<=1:_e===0||Ee===0||Ee>1},[Ee,_e,oe]);Fe?Ie.visibility="hidden":oe&&(Ie.height=ie==null?void 0:ie(Ee));var Ne=Fe?function(){return null}:se,De={};return(Ee===0||_e===0)&&(De.rowSpan=1,De.colSpan=1),React__namespace.createElement(Cell$1,_extends({className:classNames(de,ae),ellipsis:V.ellipsis,align:V.align,scope:V.rowScope,component:ee,prefixCls:$.prefixCls,key:me,record:ne,index:J,renderIndex:te,dataIndex:ce,render:Ne,shouldCellUpdate:V.shouldCellUpdate},ue,{appendNode:pe,additionalProps:_objectSpread2(_objectSpread2({},ye),{},{style:Ie},De)}))}var _excluded$5=["data","index","className","rowKey","style","extra","getHeight"],BodyLine=React__namespace.forwardRef(function(C,$){var V=C.data,F=C.index,K=C.className,J=C.rowKey,ee=C.style,te=C.extra,ne=C.getHeight,re=_objectWithoutProperties(C,_excluded$5),ae=V.record,oe=V.indent,ie=V.index,se=useContext(TableContext,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ce=se.scrollX,de=se.flattenColumns,le=se.prefixCls,ve=se.fixColumn,fe=se.componentWidth,he=useContext(StaticContext,["getComponent"]),me=he.getComponent,ue=useRowInfo(ae,J,F,oe),pe=me(["body","row"],"div"),ye=me(["body","cell"],"div"),be=ue.rowSupportExpand,ge=ue.expanded,_e=ue.rowProps,Se=ue.expandedRowRender,Ee=ue.expandedRowClassName,Ce;if(be&&ge){var xe=Se(ae,F,oe+1,ge),$e=computedExpandedClassName(Ee,ae,F,oe),Ie={};ve&&(Ie={style:_defineProperty({},"--virtual-width","".concat(fe,"px"))});var Fe="".concat(le,"-expanded-row-cell");Ce=React__namespace.createElement(pe,{className:classNames("".concat(le,"-expanded-row"),"".concat(le,"-expanded-row-level-").concat(oe+1),$e)},React__namespace.createElement(Cell$1,{component:ye,prefixCls:le,className:classNames(Fe,_defineProperty({},"".concat(Fe,"-fixed"),ve)),additionalProps:Ie},xe))}var Ne=_objectSpread2(_objectSpread2({},ee),{},{width:ce});te&&(Ne.position="absolute",Ne.pointerEvents="none");var De=React__namespace.createElement(pe,_extends({},_e,re,{"data-row-key":J,ref:be?null:$,className:classNames(K,"".concat(le,"-row"),_e==null?void 0:_e.className,_defineProperty({},"".concat(le,"-row-extra"),te)),style:_objectSpread2(_objectSpread2({},Ne),_e==null?void 0:_e.style)}),de.map(function(Oe,we){return React__namespace.createElement(VirtualCell,{key:we,component:ye,rowInfo:ue,column:Oe,colIndex:we,indent:oe,index:F,renderIndex:ie,record:ae,inverse:te,getHeight:ne})}));return be?React__namespace.createElement("div",{ref:$},De,Ce):De}),ResponseBodyLine=responseImmutable(BodyLine);process.env.NODE_ENV!=="production"&&(ResponseBodyLine.displayName="BodyLine");var Grid=React__namespace.forwardRef(function(C,$){var V=C.data,F=C.onScroll,K=useContext(TableContext,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),J=K.flattenColumns,ee=K.onColumnResize,te=K.getRowKey,ne=K.expandedKeys,re=K.prefixCls,ae=K.childrenColumnName,oe=K.scrollX,ie=K.direction,se=useContext(StaticContext),ce=se.sticky,de=se.scrollY,le=se.listItemHeight,ve=se.getComponent,fe=se.onScroll,he=React__namespace.useRef(),me=useFlattenRecords(V,ae,ne,te),ue=React__namespace.useMemo(function(){var Ce=0;return J.map(function(xe){var $e=xe.width,Ie=xe.key;return Ce+=$e,[Ie,$e,Ce]})},[J]),pe=React__namespace.useMemo(function(){return ue.map(function(Ce){return Ce[2]})},[ue]);React__namespace.useEffect(function(){ue.forEach(function(Ce){var xe=_slicedToArray(Ce,2),$e=xe[0],Ie=xe[1];ee($e,Ie)})},[ue]),React__namespace.useImperativeHandle($,function(){var Ce,xe={scrollTo:function(Ie){var Fe;(Fe=he.current)===null||Fe===void 0||Fe.scrollTo(Ie)},nativeElement:(Ce=he.current)===null||Ce===void 0?void 0:Ce.nativeElement};return Object.defineProperty(xe,"scrollLeft",{get:function(){var Ie;return((Ie=he.current)===null||Ie===void 0?void 0:Ie.getScrollInfo().x)||0},set:function(Ie){var Fe;(Fe=he.current)===null||Fe===void 0||Fe.scrollTo({left:Ie})}}),xe});var ye=function(xe,$e){var Ie,Fe=(Ie=me[$e])===null||Ie===void 0?void 0:Ie.record,Ne=xe.onCell;if(Ne){var De,Oe=Ne(Fe,$e);return(De=Oe==null?void 0:Oe.rowSpan)!==null&&De!==void 0?De:1}return 1},be=function(xe){var $e=xe.start,Ie=xe.end,Fe=xe.getSize,Ne=xe.offsetY;if(Ie<0)return null;for(var De=J.filter(function(Le){return ye(Le,$e)===0}),Oe=$e,we=function(Te){if(De=De.filter(function(Pe){return ye(Pe,Te)===0}),!De.length)return Oe=Te,1},Ae=$e;Ae>=0&&!we(Ae);Ae-=1);for(var ke=J.filter(function(Le){return ye(Le,Ie)!==1}),je=Ie,ze=function(Te){if(ke=ke.filter(function(Pe){return ye(Pe,Te)!==1}),!ke.length)return je=Math.max(Te-1,Ie),1},Ve=Ie;Ve<me.length&&!ze(Ve);Ve+=1);for(var Xe=[],Ye=function(Te){var Pe=me[Te];if(!Pe)return 1;J.some(function(Me){return ye(Me,Te)>1})&&Xe.push(Te)},at=Oe;at<=je;at+=1)Ye(at);var Ue=Xe.map(function(Le){var Te=me[Le],Pe=te(Te.record,Le),Me=function(Ke){var rt=Le+Ke-1,st=te(me[rt].record,rt),it=Fe(Pe,st);return it.bottom-it.top},He=Fe(Pe);return React__namespace.createElement(ResponseBodyLine,{key:Le,data:Te,rowKey:Pe,index:Le,style:{top:-Ne+He.top},extra:!0,getHeight:Me})});return Ue},ge=React__namespace.useMemo(function(){return{columnsOffset:pe}},[pe]),_e="".concat(re,"-tbody"),Se=ve(["body","wrapper"]),Ee={};return ce&&(Ee.position="sticky",Ee.bottom=0,_typeof(ce)==="object"&&ce.offsetScroll&&(Ee.bottom=ce.offsetScroll)),React__namespace.createElement(GridContext.Provider,{value:ge},React__namespace.createElement(List$1,{fullHeight:!1,ref:he,prefixCls:"".concat(_e,"-virtual"),styles:{horizontalScrollBar:Ee},className:_e,height:de,itemHeight:le||24,data:me,itemKey:function(xe){return te(xe.record)},component:Se,scrollWidth:oe,direction:ie,onVirtualScroll:function(xe){var $e,Ie=xe.x;F({currentTarget:($e=he.current)===null||$e===void 0?void 0:$e.nativeElement,scrollLeft:Ie})},onScroll:fe,extraRender:be},function(Ce,xe,$e){var Ie=te(Ce.record,xe);return React__namespace.createElement(ResponseBodyLine,{data:Ce,rowKey:Ie,index:xe,style:$e.style})}))}),ResponseGrid=responseImmutable(Grid);process.env.NODE_ENV!=="production"&&(ResponseGrid.displayName="ResponseGrid");var renderBody=function($,V){var F=V.ref,K=V.onScroll;return React__namespace.createElement(ResponseGrid,{ref:F,data:$,onScroll:K})};function VirtualTable(C,$){var V=C.data,F=C.columns,K=C.scroll,J=C.sticky,ee=C.prefixCls,te=ee===void 0?DEFAULT_PREFIX:ee,ne=C.className,re=C.listItemHeight,ae=C.components,oe=C.onScroll,ie=K||{},se=ie.x,ce=ie.y;typeof se!="number"&&(process.env.NODE_ENV!=="production"&&warningOnce(!se,"`scroll.x` in virtual table must be number."),se=1),typeof ce!="number"&&(ce=500,process.env.NODE_ENV!=="production"&&warningOnce(!1,"`scroll.y` in virtual table must be number."));var de=useEvent(function(fe,he){return get(ae,fe)||he}),le=useEvent(oe),ve=React__namespace.useMemo(function(){return{sticky:J,scrollY:ce,listItemHeight:re,getComponent:de,onScroll:le}},[J,ce,re,de,le]);return React__namespace.createElement(StaticContext.Provider,{value:ve},React__namespace.createElement(ImmutableTable,_extends({},C,{className:classNames(ne,"".concat(te,"-virtual")),scroll:_objectSpread2(_objectSpread2({},K),{},{x:se}),components:_objectSpread2(_objectSpread2({},ae),{},{body:V!=null&&V.length?renderBody:void 0}),columns:F,internalHooks:INTERNAL_HOOKS,tailor:!0,ref:$})))}var RefVirtualTable=React__namespace.forwardRef(VirtualTable);process.env.NODE_ENV!=="production"&&(RefVirtualTable.displayName="VirtualTable");function genVirtualTable(C){return makeImmutable(RefVirtualTable,C)}genVirtualTable();const Column=C=>null,Column$1=Column,ColumnGroup=C=>null,ColumnGroup$1=ColumnGroup;var TreeContext=React__namespace.createContext(null),UnstableContext=React__namespace.createContext({}),Indent=function($){for(var V=$.prefixCls,F=$.level,K=$.isStart,J=$.isEnd,ee="".concat(V,"-indent-unit"),te=[],ne=0;ne<F;ne+=1)te.push(React__namespace.createElement("span",{key:ne,className:classNames(ee,_defineProperty(_defineProperty({},"".concat(ee,"-start"),K[ne]),"".concat(ee,"-end"),J[ne]))}));return React__namespace.createElement("span",{"aria-hidden":"true",className:"".concat(V,"-indent")},te)};const Indent$1=React__namespace.memo(Indent);var _excluded$4=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ICON_OPEN="open",ICON_CLOSE="close",defaultTitle="---",TreeNode=function($){var V,F,K,J=$.eventKey,ee=$.className,te=$.style,ne=$.dragOver,re=$.dragOverGapTop,ae=$.dragOverGapBottom,oe=$.isLeaf,ie=$.isStart,se=$.isEnd,ce=$.expanded,de=$.selected,le=$.checked,ve=$.halfChecked,fe=$.loading,he=$.domRef,me=$.active,ue=$.data,pe=$.onMouseMove,ye=$.selectable,be=_objectWithoutProperties($,_excluded$4),ge=React.useContext(TreeContext),_e=React.useContext(UnstableContext),Se=React.useRef(null),Ee=React.useState(!1),Ce=_slicedToArray(Ee,2),xe=Ce[0],$e=Ce[1],Ie=!!(ge.disabled||$.disabled||(V=_e.nodeDisabled)!==null&&V!==void 0&&V.call(_e,ue)),Fe=React.useMemo(function(){return!ge.checkable||$.checkable===!1?!1:ge.checkable},[ge.checkable,$.checkable]),Ne=function(et){Ie||ge.onNodeSelect(et,convertNodePropsToEventData($))},De=function(et){Ie||!Fe||$.disableCheckbox||ge.onNodeCheck(et,convertNodePropsToEventData($),!le)},Oe=React.useMemo(function(){return typeof ye=="boolean"?ye:ge.selectable},[ye,ge.selectable]),we=function(et){ge.onNodeClick(et,convertNodePropsToEventData($)),Oe?Ne(et):De(et)},Ae=function(et){ge.onNodeDoubleClick(et,convertNodePropsToEventData($))},ke=function(et){ge.onNodeMouseEnter(et,convertNodePropsToEventData($))},je=function(et){ge.onNodeMouseLeave(et,convertNodePropsToEventData($))},ze=function(et){ge.onNodeContextMenu(et,convertNodePropsToEventData($))},Ve=React.useMemo(function(){return!!(ge.draggable&&(!ge.draggable.nodeDraggable||ge.draggable.nodeDraggable(ue)))},[ge.draggable,ue]),Xe=function(et){et.stopPropagation(),$e(!0),ge.onNodeDragStart(et,$);try{et.dataTransfer.setData("text/plain","")}catch(Ze){}},Ye=function(et){et.preventDefault(),et.stopPropagation(),ge.onNodeDragEnter(et,$)},at=function(et){et.preventDefault(),et.stopPropagation(),ge.onNodeDragOver(et,$)},Ue=function(et){et.stopPropagation(),ge.onNodeDragLeave(et,$)},Le=function(et){et.stopPropagation(),$e(!1),ge.onNodeDragEnd(et,$)},Te=function(et){et.preventDefault(),et.stopPropagation(),$e(!1),ge.onNodeDrop(et,$)},Pe=function(et){fe||ge.onNodeExpand(et,convertNodePropsToEventData($))},Me=React.useMemo(function(){var Ge=getEntity(ge.keyEntities,J)||{},et=Ge.children;return!!(et||[]).length},[ge.keyEntities,J]),He=React.useMemo(function(){return oe===!1?!1:oe||!ge.loadData&&!Me||ge.loadData&&$.loaded&&!Me},[oe,ge.loadData,Me,$.loaded]);React.useEffect(function(){fe||typeof ge.loadData=="function"&&ce&&!He&&!$.loaded&&ge.onNodeLoad(convertNodePropsToEventData($))},[fe,ge.loadData,ge.onNodeLoad,ce,He,$]);var We=React.useMemo(function(){var Ge;return(Ge=ge.draggable)!==null&&Ge!==void 0&&Ge.icon?React.createElement("span",{className:"".concat(ge.prefixCls,"-draggable-icon")},ge.draggable.icon):null},[ge.draggable]),Ke=function(et){var Ze=$.switcherIcon||ge.switcherIcon;return typeof Ze=="function"?Ze(_objectSpread2(_objectSpread2({},$),{},{isLeaf:et})):Ze},rt=function(){if(He){var et=Ke(!0);return et!==!1?React.createElement("span",{className:classNames("".concat(ge.prefixCls,"-switcher"),"".concat(ge.prefixCls,"-switcher-noop"))},et):null}var Ze=Ke(!1);return Ze!==!1?React.createElement("span",{onClick:Pe,className:classNames("".concat(ge.prefixCls,"-switcher"),"".concat(ge.prefixCls,"-switcher_").concat(ce?ICON_OPEN:ICON_CLOSE))},Ze):null},st=React.useMemo(function(){if(!Fe)return null;var Ge=typeof Fe!="boolean"?Fe:null;return React.createElement("span",{className:classNames("".concat(ge.prefixCls,"-checkbox"),_defineProperty(_defineProperty(_defineProperty({},"".concat(ge.prefixCls,"-checkbox-checked"),le),"".concat(ge.prefixCls,"-checkbox-indeterminate"),!le&&ve),"".concat(ge.prefixCls,"-checkbox-disabled"),Ie||$.disableCheckbox)),onClick:De,role:"checkbox","aria-checked":ve?"mixed":le,"aria-disabled":Ie||$.disableCheckbox,"aria-label":"Select ".concat(typeof $.title=="string"?$.title:"tree node")},Ge)},[Fe,le,ve,Ie,$.disableCheckbox,$.title]),it=React.useMemo(function(){return He?null:ce?ICON_OPEN:ICON_CLOSE},[He,ce]),Je=React.useMemo(function(){return React.createElement("span",{className:classNames("".concat(ge.prefixCls,"-iconEle"),"".concat(ge.prefixCls,"-icon__").concat(it||"docu"),_defineProperty({},"".concat(ge.prefixCls,"-icon_loading"),fe))})},[ge.prefixCls,it,fe]),ct=React.useMemo(function(){var Ge=!!ge.draggable,et=!$.disabled&&Ge&&ge.dragOverNodeKey===J;return et?ge.dropIndicatorRender({dropPosition:ge.dropPosition,dropLevelOffset:ge.dropLevelOffset,indent:ge.indent,prefixCls:ge.prefixCls,direction:ge.direction}):null},[ge.dropPosition,ge.dropLevelOffset,ge.indent,ge.prefixCls,ge.direction,ge.draggable,ge.dragOverNodeKey,ge.dropIndicatorRender]),dt=React.useMemo(function(){var Ge=$.title,et=Ge===void 0?defaultTitle:Ge,Ze="".concat(ge.prefixCls,"-node-content-wrapper"),nt;if(ge.showIcon){var tt=$.icon||ge.icon;nt=tt?React.createElement("span",{className:classNames("".concat(ge.prefixCls,"-iconEle"),"".concat(ge.prefixCls,"-icon__customize"))},typeof tt=="function"?tt($):tt):Je}else ge.loadData&&fe&&(nt=Je);var qe;return typeof et=="function"?qe=et(ue):ge.titleRender?qe=ge.titleRender(ue):qe=et,React.createElement("span",{ref:Se,title:typeof et=="string"?et:"",className:classNames(Ze,"".concat(Ze,"-").concat(it||"normal"),_defineProperty({},"".concat(ge.prefixCls,"-node-selected"),!Ie&&(de||xe))),onMouseEnter:ke,onMouseLeave:je,onContextMenu:ze,onClick:we,onDoubleClick:Ae},nt,React.createElement("span",{className:"".concat(ge.prefixCls,"-title")},qe),ct)},[ge.prefixCls,ge.showIcon,$,ge.icon,Je,ge.titleRender,ue,it,ke,je,ze,we,Ae]),vt=pickAttrs(be,{aria:!0,data:!0}),ht=getEntity(ge.keyEntities,J)||{},bt=ht.level,Rt=se[se.length-1],wt=!Ie&&Ve,lt=ge.draggingNodeKey===J,ut=ye!==void 0?{"aria-selected":!!ye}:void 0;return React.createElement("div",_extends({ref:he,role:"treeitem","aria-expanded":oe?void 0:ce,className:classNames(ee,"".concat(ge.prefixCls,"-treenode"),(K={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(K,"".concat(ge.prefixCls,"-treenode-disabled"),Ie),"".concat(ge.prefixCls,"-treenode-switcher-").concat(ce?"open":"close"),!oe),"".concat(ge.prefixCls,"-treenode-checkbox-checked"),le),"".concat(ge.prefixCls,"-treenode-checkbox-indeterminate"),ve),"".concat(ge.prefixCls,"-treenode-selected"),de),"".concat(ge.prefixCls,"-treenode-loading"),fe),"".concat(ge.prefixCls,"-treenode-active"),me),"".concat(ge.prefixCls,"-treenode-leaf-last"),Rt),"".concat(ge.prefixCls,"-treenode-draggable"),Ve),"dragging",lt),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(K,"drop-target",ge.dropTargetKey===J),"drop-container",ge.dropContainerKey===J),"drag-over",!Ie&&ne),"drag-over-gap-top",!Ie&&re),"drag-over-gap-bottom",!Ie&&ae),"filter-node",(F=ge.filterTreeNode)===null||F===void 0?void 0:F.call(ge,convertNodePropsToEventData($))),"".concat(ge.prefixCls,"-treenode-leaf"),He))),style:te,draggable:wt,onDragStart:wt?Xe:void 0,onDragEnter:Ve?Ye:void 0,onDragOver:Ve?at:void 0,onDragLeave:Ve?Ue:void 0,onDrop:Ve?Te:void 0,onDragEnd:Ve?Le:void 0,onMouseMove:pe},ut,vt),React.createElement(Indent$1,{prefixCls:ge.prefixCls,level:bt,isStart:ie,isEnd:se}),We,rt(),st,dt)};TreeNode.isTreeNode=1,process.env.NODE_ENV!=="production"&&(TreeNode.displayName="TreeNode");function arrDel(C,$){if(!C)return[];var V=C.slice(),F=V.indexOf($);return F>=0&&V.splice(F,1),V}function arrAdd(C,$){var V=(C||[]).slice();return V.indexOf($)===-1&&V.push($),V}function posToArr(C){return C.split("-")}function getDragChildrenKeys(C,$){var V=[],F=getEntity($,C);function K(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];J.forEach(function(ee){var te=ee.key,ne=ee.children;V.push(te),K(ne)})}return K(F.children),V}function isLastChild(C){if(C.parent){var $=posToArr(C.pos);return Number($[$.length-1])===C.parent.children.length-1}return!1}function isFirstChild(C){var $=posToArr(C.pos);return Number($[$.length-1])===0}function calcDropPosition(C,$,V,F,K,J,ee,te,ne,re){var ae,oe=C.clientX,ie=C.clientY,se=C.target.getBoundingClientRect(),ce=se.top,de=se.height,le=(re==="rtl"?-1:1)*(((K==null?void 0:K.x)||0)-oe),ve=(le-12)/F,fe=ne.filter(function(Ie){var Fe;return(Fe=te[Ie])===null||Fe===void 0||(Fe=Fe.children)===null||Fe===void 0?void 0:Fe.length}),he=getEntity(te,V.eventKey);if(ie<ce+de/2){var me=ee.findIndex(function(Ie){return Ie.key===he.key}),ue=me<=0?0:me-1,pe=ee[ue].key;he=getEntity(te,pe)}var ye=he.key,be=he,ge=he.key,_e=0,Se=0;if(!fe.includes(ye))for(var Ee=0;Ee<ve&&isLastChild(he);Ee+=1)he=he.parent,Se+=1;var Ce=$.data,xe=he.node,$e=!0;return isFirstChild(he)&&he.level===0&&ie<ce+de/2&&J({dragNode:Ce,dropNode:xe,dropPosition:-1})&&he.key===V.eventKey?_e=-1:(be.children||[]).length&&fe.includes(ge)?J({dragNode:Ce,dropNode:xe,dropPosition:0})?_e=0:$e=!1:Se===0?ve>-1.5?J({dragNode:Ce,dropNode:xe,dropPosition:1})?_e=1:$e=!1:J({dragNode:Ce,dropNode:xe,dropPosition:0})?_e=0:J({dragNode:Ce,dropNode:xe,dropPosition:1})?_e=1:$e=!1:J({dragNode:Ce,dropNode:xe,dropPosition:1})?_e=1:$e=!1,{dropPosition:_e,dropLevelOffset:Se,dropTargetKey:he.key,dropTargetPos:he.pos,dragOverNodeKey:ge,dropContainerKey:_e===0?null:((ae=he.parent)===null||ae===void 0?void 0:ae.key)||null,dropAllowed:$e}}function calcSelectedKeys(C,$){if(C){var V=$.multiple;return V?C.slice():C.length?[C[0]]:C}}function parseCheckedKeys(C){if(!C)return null;var $;if(Array.isArray(C))$={checkedKeys:C,halfCheckedKeys:void 0};else if(_typeof(C)==="object")$={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return warningOnce(!1,"`checkedKeys` is not an array or an object"),null;return $}function conductExpandParent(C,$){var V=new Set;function F(K){if(!V.has(K)){var J=getEntity($,K);if(J){V.add(K);var ee=J.parent,te=J.node;te.disabled||ee&&F(ee.key)}}}return(C||[]).forEach(function(K){F(K)}),_toConsumableArray(V)}function useMultipleSelect(C){const[$,V]=React.useState(null);return[React.useCallback((J,ee,te)=>{const ne=$!=null?$:J,re=Math.min(ne||0,J),ae=Math.max(ne||0,J),oe=ee.slice(re,ae+1).map(ce=>C(ce)),ie=oe.some(ce=>!te.has(ce)),se=[];return oe.forEach(ce=>{ie?(te.has(ce)||se.push(ce),te.add(ce)):(te.delete(ce),se.push(ce))}),V(ie?ae:null),se},[$]),J=>{V(J)}]}const SELECTION_COLUMN={},SELECTION_ALL="SELECT_ALL",SELECTION_INVERT="SELECT_INVERT",SELECTION_NONE="SELECT_NONE",EMPTY_LIST$1=[],flattenData=(C,$)=>{let V=[];return($||[]).forEach(F=>{V.push(F),F&&typeof F=="object"&&C in F&&(V=[].concat(_toConsumableArray(V),_toConsumableArray(flattenData(C,F[C]))))}),V},useSelection=(C,$)=>{const{preserveSelectedRowKeys:V,selectedRowKeys:F,defaultSelectedRowKeys:K,getCheckboxProps:J,onChange:ee,onSelect:te,onSelectAll:ne,onSelectInvert:re,onSelectNone:ae,onSelectMultiple:oe,columnWidth:ie,type:se,selections:ce,fixed:de,renderCell:le,hideSelectAll:ve,checkStrictly:fe=!0}=$||{},{prefixCls:he,data:me,pageData:ue,getRecordByKey:pe,getRowKey:ye,expandType:be,childrenColumnName:ge,locale:_e,getPopupContainer:Se}=C,Ee=devUseWarning("Table"),[Ce,xe]=useMultipleSelect(Le=>Le),[$e,Ie]=useMergedState(F||K||EMPTY_LIST$1,{value:F}),Fe=React__namespace.useRef(new Map),Ne=React.useCallback(Le=>{if(V){const Te=new Map;Le.forEach(Pe=>{let Me=pe(Pe);!Me&&Fe.current.has(Pe)&&(Me=Fe.current.get(Pe)),Te.set(Pe,Me)}),Fe.current=Te}},[pe,V]);React__namespace.useEffect(()=>{Ne($e)},[$e]);const De=React.useMemo(()=>flattenData(ge,ue),[ge,ue]),{keyEntities:Oe}=React.useMemo(()=>{if(fe)return{keyEntities:null};let Le=me;if(V){const Te=new Set(De.map((Me,He)=>ye(Me,He))),Pe=Array.from(Fe.current).reduce((Me,He)=>{let[We,Ke]=He;return Te.has(We)?Me:Me.concat(Ke)},[]);Le=[].concat(_toConsumableArray(Le),_toConsumableArray(Pe))}return convertDataToEntities(Le,{externalGetKey:ye,childrenPropName:ge})},[me,ye,fe,ge,V,De]),we=React.useMemo(()=>{const Le=new Map;return De.forEach((Te,Pe)=>{const Me=ye(Te,Pe),He=(J?J(Te):null)||{};Le.set(Me,He),process.env.NODE_ENV!=="production"&&Ee(!("checked"in He||"defaultChecked"in He),"usage","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")}),Le},[De,ye,J]),Ae=React.useCallback(Le=>{const Te=ye(Le);let Pe;return we.has(Te)?Pe=we.get(ye(Le)):Pe=J?J(Le):void 0,!!(Pe!=null&&Pe.disabled)},[we,ye]),[ke,je]=React.useMemo(()=>{if(fe)return[$e||[],[]];const{checkedKeys:Le,halfCheckedKeys:Te}=conductCheck($e,!0,Oe,Ae);return[Le||[],Te]},[$e,fe,Oe,Ae]),ze=React.useMemo(()=>{const Le=se==="radio"?ke.slice(0,1):ke;return new Set(Le)},[ke,se]),Ve=React.useMemo(()=>se==="radio"?new Set:new Set(je),[je,se]);React__namespace.useEffect(()=>{$||Ie(EMPTY_LIST$1)},[!!$]);const Xe=React.useCallback((Le,Te)=>{let Pe,Me;Ne(Le),V?(Pe=Le,Me=Le.map(He=>Fe.current.get(He))):(Pe=[],Me=[],Le.forEach(He=>{const We=pe(He);We!==void 0&&(Pe.push(He),Me.push(We))})),Ie(Pe),ee==null||ee(Pe,Me,{type:Te})},[Ie,pe,ee,V]),Ye=React.useCallback((Le,Te,Pe,Me)=>{if(te){const He=Pe.map(We=>pe(We));te(pe(Le),Te,He,Me)}Xe(Pe,"single")},[te,pe,Xe]),at=React.useMemo(()=>!ce||ve?null:(ce===!0?[SELECTION_ALL,SELECTION_INVERT,SELECTION_NONE]:ce).map(Te=>Te===SELECTION_ALL?{key:"all",text:_e.selectionAll,onSelect(){Xe(me.map((Pe,Me)=>ye(Pe,Me)).filter(Pe=>{const Me=we.get(Pe);return!(Me!=null&&Me.disabled)||ze.has(Pe)}),"all")}}:Te===SELECTION_INVERT?{key:"invert",text:_e.selectInvert,onSelect(){const Pe=new Set(ze);ue.forEach((He,We)=>{const Ke=ye(He,We),rt=we.get(Ke);rt!=null&&rt.disabled||(Pe.has(Ke)?Pe.delete(Ke):Pe.add(Ke))});const Me=Array.from(Pe);re&&(Ee.deprecated(!1,"onSelectInvert","onChange"),re(Me)),Xe(Me,"invert")}}:Te===SELECTION_NONE?{key:"none",text:_e.selectNone,onSelect(){ae==null||ae(),Xe(Array.from(ze).filter(Pe=>{const Me=we.get(Pe);return Me==null?void 0:Me.disabled}),"none")}}:Te).map(Te=>Object.assign(Object.assign({},Te),{onSelect:function(){for(var Pe,Me,He=arguments.length,We=new Array(He),Ke=0;Ke<He;Ke++)We[Ke]=arguments[Ke];(Me=Te.onSelect)===null||Me===void 0||(Pe=Me).call.apply(Pe,[Te].concat(We)),xe(null)}})),[ce,ze,ue,ye,re,Xe]);return[React.useCallback(Le=>{var Te;if(!$)return process.env.NODE_ENV!=="production"&&Ee(!Le.includes(SELECTION_COLUMN),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),Le.filter(ut=>ut!==SELECTION_COLUMN);let Pe=_toConsumableArray(Le);const Me=new Set(ze),He=De.map(ye).filter(ut=>!we.get(ut).disabled),We=He.every(ut=>Me.has(ut)),Ke=He.some(ut=>Me.has(ut)),rt=()=>{const ut=[];We?He.forEach(et=>{Me.delete(et),ut.push(et)}):He.forEach(et=>{Me.has(et)||(Me.add(et),ut.push(et))});const Ge=Array.from(Me);ne==null||ne(!We,Ge.map(et=>pe(et)),ut.map(et=>pe(et))),Xe(Ge,"all"),xe(null)};let st,it;if(se!=="radio"){let ut;if(at){const tt={getPopupContainer:Se,items:at.map((qe,ot)=>{const{key:ft,text:yt,onSelect:$t}=qe;return{key:ft!=null?ft:ot,onClick:()=>{$t==null||$t(He)},label:yt}})};ut=React__namespace.createElement("div",{className:`${he}-selection-extra`},React__namespace.createElement(Dropdown$1,{menu:tt,getPopupContainer:Se},React__namespace.createElement("span",null,React__namespace.createElement(DownOutlined$1,null))))}const Ge=De.map((tt,qe)=>{const ot=ye(tt,qe),ft=we.get(ot)||{};return Object.assign({checked:Me.has(ot)},ft)}).filter(tt=>{let{disabled:qe}=tt;return qe}),et=!!Ge.length&&Ge.length===De.length,Ze=et&&Ge.every(tt=>{let{checked:qe}=tt;return qe}),nt=et&&Ge.some(tt=>{let{checked:qe}=tt;return qe});it=React__namespace.createElement(Checkbox$1,{checked:et?Ze:!!De.length&&We,indeterminate:et?!Ze&&nt:!We&&Ke,onChange:rt,disabled:De.length===0||et,"aria-label":ut?"Custom selection":"Select all",skipGroup:!0}),st=!ve&&React__namespace.createElement("div",{className:`${he}-selection`},it,ut)}let Je;se==="radio"?Je=(ut,Ge,et)=>{const Ze=ye(Ge,et),nt=Me.has(Ze),tt=we.get(Ze);return{node:React__namespace.createElement(Radio$1,Object.assign({},tt,{checked:nt,onClick:qe=>{var ot;qe.stopPropagation(),(ot=tt==null?void 0:tt.onClick)===null||ot===void 0||ot.call(tt,qe)},onChange:qe=>{var ot;Me.has(Ze)||Ye(Ze,!0,[Ze],qe.nativeEvent),(ot=tt==null?void 0:tt.onChange)===null||ot===void 0||ot.call(tt,qe)}})),checked:nt}}:Je=(ut,Ge,et)=>{var Ze;const nt=ye(Ge,et),tt=Me.has(nt),qe=Ve.has(nt),ot=we.get(nt);let ft;return be==="nest"?(ft=qe,process.env.NODE_ENV!=="production"&&Ee(typeof(ot==null?void 0:ot.indeterminate)!="boolean","usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ft=(Ze=ot==null?void 0:ot.indeterminate)!==null&&Ze!==void 0?Ze:qe,{node:React__namespace.createElement(Checkbox$1,Object.assign({},ot,{indeterminate:ft,checked:tt,skipGroup:!0,onClick:yt=>{var $t;yt.stopPropagation(),($t=ot==null?void 0:ot.onClick)===null||$t===void 0||$t.call(ot,yt)},onChange:yt=>{var $t;const{nativeEvent:kt}=yt,{shiftKey:Dt}=kt,St=He.findIndex(It=>It===nt),Bt=ke.some(It=>He.includes(It));if(Dt&&fe&&Bt){const It=Ce(St,He,Me),Pt=Array.from(Me);oe==null||oe(!tt,Pt.map(Tt=>pe(Tt)),It.map(Tt=>pe(Tt))),Xe(Pt,"multiple")}else{const It=ke;if(fe){const Pt=tt?arrDel(It,nt):arrAdd(It,nt);Ye(nt,!tt,Pt,kt)}else{const Pt=conductCheck([].concat(_toConsumableArray(It),[nt]),!0,Oe,Ae),{checkedKeys:Tt,halfCheckedKeys:Ct}=Pt;let At=Tt;if(tt){const Ht=new Set(Tt);Ht.delete(nt),At=conductCheck(Array.from(Ht),{checked:!1,halfCheckedKeys:Ct},Oe,Ae).checkedKeys}Ye(nt,!tt,At,kt)}}xe(tt?null:St),($t=ot==null?void 0:ot.onChange)===null||$t===void 0||$t.call(ot,yt)}})),checked:tt}};const ct=(ut,Ge,et)=>{const{node:Ze,checked:nt}=Je(ut,Ge,et);return le?le(nt,Ge,et,Ze):Ze};if(!Pe.includes(SELECTION_COLUMN))if(Pe.findIndex(ut=>{var Ge;return((Ge=ut[INTERNAL_COL_DEFINE])===null||Ge===void 0?void 0:Ge.columnType)==="EXPAND_COLUMN"})===0){const[ut,...Ge]=Pe;Pe=[ut,SELECTION_COLUMN].concat(_toConsumableArray(Ge))}else Pe=[SELECTION_COLUMN].concat(_toConsumableArray(Pe));const dt=Pe.indexOf(SELECTION_COLUMN);process.env.NODE_ENV!=="production"&&Ee(Pe.filter(ut=>ut===SELECTION_COLUMN).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),Pe=Pe.filter((ut,Ge)=>ut!==SELECTION_COLUMN||Ge===dt);const vt=Pe[dt-1],ht=Pe[dt+1];let bt=de;bt===void 0&&((ht==null?void 0:ht.fixed)!==void 0?bt=ht.fixed:(vt==null?void 0:vt.fixed)!==void 0&&(bt=vt.fixed)),bt&&vt&&((Te=vt[INTERNAL_COL_DEFINE])===null||Te===void 0?void 0:Te.columnType)==="EXPAND_COLUMN"&&vt.fixed===void 0&&(vt.fixed=bt);const Rt=classNames(`${he}-selection-col`,{[`${he}-selection-col-with-dropdown`]:ce&&se==="checkbox"}),wt=()=>$!=null&&$.columnTitle?typeof $.columnTitle=="function"?$.columnTitle(it):$.columnTitle:st,lt={fixed:bt,width:ie,className:`${he}-selection-column`,title:wt(),render:ct,onCell:$.onCell,align:$.align,[INTERNAL_COL_DEFINE]:{className:Rt}};return Pe.map(ut=>ut===SELECTION_COLUMN?lt:ut)},[ye,De,$,ke,ze,Ve,ie,at,be,we,oe,Ye,Ae]),ze]};function fillProxy(C,$){return C._antProxy=C._antProxy||{},Object.keys($).forEach(V=>{if(!(V in C._antProxy)){const F=C[V];C._antProxy[V]=F,C[V]=$[V]}}),C}function useProxyImperativeHandle(C,$){return React.useImperativeHandle(C,()=>{const V=$(),{nativeElement:F}=V;return typeof Proxy!="undefined"?new Proxy(F,{get(K,J){return V[J]?V[J]:Reflect.get(K,J)}}):fillProxy(F,V)})}function renderExpandIcon(C){return $=>{const{prefixCls:V,onExpand:F,record:K,expanded:J,expandable:ee}=$,te=`${V}-row-expand-icon`;return React__namespace.createElement("button",{type:"button",onClick:ne=>{F(K,ne),ne.stopPropagation()},className:classNames(te,{[`${te}-spaced`]:!ee,[`${te}-expanded`]:ee&&J,[`${te}-collapsed`]:ee&&!J}),"aria-label":J?C.collapse:C.expand,"aria-expanded":J})}}function useContainerWidth(C){return(V,F)=>{const K=V.querySelector(`.${C}-container`);let J=F;if(K){const ee=getComputedStyle(K),te=parseInt(ee.borderLeftWidth,10),ne=parseInt(ee.borderRightWidth,10);J=F-te-ne}return J}}const getColumnKey=(C,$)=>"key"in C&&C.key!==void 0&&C.key!==null?C.key:C.dataIndex?Array.isArray(C.dataIndex)?C.dataIndex.join("."):C.dataIndex:$;function getColumnPos(C,$){return $?`${$}-${C}`:`${C}`}const renderColumnTitle=(C,$)=>typeof C=="function"?C($):C,safeColumnTitle=(C,$)=>{const V=renderColumnTitle(C,$);return Object.prototype.toString.call(V)==="[object Object]"?"":V};function useSyncState(C){const $=React__namespace.useRef(C),V=useForceUpdate();return[()=>$.current,F=>{$.current=F,V()}]}var DropIndicator=function($){var V=$.dropPosition,F=$.dropLevelOffset,K=$.indent,J={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(V){case-1:J.top=0,J.left=-F*K;break;case 1:J.bottom=0,J.left=-F*K;break;case 0:J.bottom=0,J.left=K;break}return React.createElement("div",{style:J})};process.env.NODE_ENV!=="production"&&(DropIndicator.displayName="DropIndicator");function _objectDestructuringEmpty(C){if(C==null)throw new TypeError("Cannot destructure "+C)}function useUnmount(C,$){var V=React__namespace.useState(!1),F=_slicedToArray(V,2),K=F[0],J=F[1];useLayoutEffect$1(function(){if(K)return C(),function(){$()}},[K]),useLayoutEffect$1(function(){return J(!0),function(){J(!1)}},[])}var _excluded$3=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],MotionTreeNode=React__namespace.forwardRef(function(C,$){var V=C.className,F=C.style,K=C.motion,J=C.motionNodes,ee=C.motionType,te=C.onMotionStart,ne=C.onMotionEnd,re=C.active,ae=C.treeNodeRequiredProps,oe=_objectWithoutProperties(C,_excluded$3),ie=React__namespace.useState(!0),se=_slicedToArray(ie,2),ce=se[0],de=se[1],le=React__namespace.useContext(TreeContext),ve=le.prefixCls,fe=J&&ee!=="hide";useLayoutEffect$1(function(){J&&fe!==ce&&de(fe)},[J]);var he=function(){J&&te()},me=React__namespace.useRef(!1),ue=function(){J&&!me.current&&(me.current=!0,ne())};useUnmount(he,ue);var pe=function(be){fe===be&&ue()};return J?React__namespace.createElement(CSSMotion,_extends({ref:$,visible:ce},K,{motionAppear:ee==="show",onVisibleChanged:pe}),function(ye,be){var ge=ye.className,_e=ye.style;return React__namespace.createElement("div",{ref:be,className:classNames("".concat(ve,"-treenode-motion"),ge),style:_e},J.map(function(Se){var Ee=Object.assign({},(_objectDestructuringEmpty(Se.data),Se.data)),Ce=Se.title,xe=Se.key,$e=Se.isStart,Ie=Se.isEnd;delete Ee.children;var Fe=getTreeNodeProps(xe,ae);return React__namespace.createElement(TreeNode,_extends({},Ee,Fe,{title:Ce,active:re,data:Se.data,key:xe,isStart:$e,isEnd:Ie}))}))}):React__namespace.createElement(TreeNode,_extends({domRef:$,className:V,style:F},oe,{active:re}))});process.env.NODE_ENV!=="production"&&(MotionTreeNode.displayName="MotionTreeNode");function findExpandedKeys(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],V=C.length,F=$.length;if(Math.abs(V-F)!==1)return{add:!1,key:null};function K(J,ee){var te=new Map;J.forEach(function(re){te.set(re,!0)});var ne=ee.filter(function(re){return!te.has(re)});return ne.length===1?ne[0]:null}return V<F?{add:!0,key:K(C,$)}:{add:!1,key:K($,C)}}function getExpandRange(C,$,V){var F=C.findIndex(function(te){return te.key===V}),K=C[F+1],J=$.findIndex(function(te){return te.key===V});if(K){var ee=$.findIndex(function(te){return te.key===K.key});return $.slice(J+1,ee)}return $.slice(J+1)}var _excluded$2=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},noop=function(){},MOTION_KEY="RC_TREE_MOTION_".concat(Math.random()),MotionNode={key:MOTION_KEY},MotionEntity={key:MOTION_KEY,level:0,index:0,pos:"0",node:MotionNode,nodes:[MotionNode]},MotionFlattenData={parent:null,children:[],pos:MotionEntity.pos,data:MotionNode,title:null,key:MOTION_KEY,isStart:[],isEnd:[]};function getMinimumRangeTransitionRange(C,$,V,F){return $===!1||!V?C:C.slice(0,Math.ceil(V/F)+1)}function itemKey(C){var $=C.key,V=C.pos;return getKey($,V)}function getAccessibilityPath(C){for(var $=String(C.data.key),V=C;V.parent;)V=V.parent,$="".concat(V.data.key," > ").concat($);return $}var NodeList=React__namespace.forwardRef(function(C,$){var V=C.prefixCls,F=C.data;C.selectable,C.checkable;var K=C.expandedKeys,J=C.selectedKeys,ee=C.checkedKeys,te=C.loadedKeys,ne=C.loadingKeys,re=C.halfCheckedKeys,ae=C.keyEntities,oe=C.disabled,ie=C.dragging,se=C.dragOverNodeKey,ce=C.dropPosition,de=C.motion,le=C.height,ve=C.itemHeight,fe=C.virtual,he=C.scrollWidth,me=C.focusable,ue=C.activeItem,pe=C.focused,ye=C.tabIndex,be=C.onKeyDown,ge=C.onFocus,_e=C.onBlur,Se=C.onActiveChange,Ee=C.onListChangeStart,Ce=C.onListChangeEnd,xe=_objectWithoutProperties(C,_excluded$2),$e=React__namespace.useRef(null),Ie=React__namespace.useRef(null);React__namespace.useImperativeHandle($,function(){return{scrollTo:function(ct){$e.current.scrollTo(ct)},getIndentWidth:function(){return Ie.current.offsetWidth}}});var Fe=React__namespace.useState(K),Ne=_slicedToArray(Fe,2),De=Ne[0],Oe=Ne[1],we=React__namespace.useState(F),Ae=_slicedToArray(we,2),ke=Ae[0],je=Ae[1],ze=React__namespace.useState(F),Ve=_slicedToArray(ze,2),Xe=Ve[0],Ye=Ve[1],at=React__namespace.useState([]),Ue=_slicedToArray(at,2),Le=Ue[0],Te=Ue[1],Pe=React__namespace.useState(null),Me=_slicedToArray(Pe,2),He=Me[0],We=Me[1],Ke=React__namespace.useRef(F);Ke.current=F;function rt(){var Je=Ke.current;je(Je),Ye(Je),Te([]),We(null),Ce()}useLayoutEffect$1(function(){Oe(K);var Je=findExpandedKeys(De,K);if(Je.key!==null)if(Je.add){var ct=ke.findIndex(function(wt){var lt=wt.key;return lt===Je.key}),dt=getMinimumRangeTransitionRange(getExpandRange(ke,F,Je.key),fe,le,ve),vt=ke.slice();vt.splice(ct+1,0,MotionFlattenData),Ye(vt),Te(dt),We("show")}else{var ht=F.findIndex(function(wt){var lt=wt.key;return lt===Je.key}),bt=getMinimumRangeTransitionRange(getExpandRange(F,ke,Je.key),fe,le,ve),Rt=F.slice();Rt.splice(ht+1,0,MotionFlattenData),Ye(Rt),Te(bt),We("hide")}else ke!==F&&(je(F),Ye(F))},[K,F]),React__namespace.useEffect(function(){ie||rt()},[ie]);var st=de?Xe:F,it={expandedKeys:K,selectedKeys:J,loadedKeys:te,loadingKeys:ne,checkedKeys:ee,halfCheckedKeys:re,dragOverNodeKey:se,dropPosition:ce,keyEntities:ae};return React__namespace.createElement(React__namespace.Fragment,null,pe&&ue&&React__namespace.createElement("span",{style:HIDDEN_STYLE,"aria-live":"assertive"},getAccessibilityPath(ue)),React__namespace.createElement("div",null,React__namespace.createElement("input",{style:HIDDEN_STYLE,disabled:me===!1||oe,tabIndex:me!==!1?ye:null,onKeyDown:be,onFocus:ge,onBlur:_e,value:"",onChange:noop,"aria-label":"for screen reader"})),React__namespace.createElement("div",{className:"".concat(V,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},React__namespace.createElement("div",{className:"".concat(V,"-indent")},React__namespace.createElement("div",{ref:Ie,className:"".concat(V,"-indent-unit")}))),React__namespace.createElement(List$1,_extends({},xe,{data:st,itemKey,height:le,fullHeight:!1,virtual:fe,itemHeight:ve,scrollWidth:he,prefixCls:"".concat(V,"-list"),ref:$e,role:"tree",onVisibleChange:function(ct){ct.every(function(dt){return itemKey(dt)!==MOTION_KEY})&&rt()}}),function(Je){var ct=Je.pos,dt=Object.assign({},(_objectDestructuringEmpty(Je.data),Je.data)),vt=Je.title,ht=Je.key,bt=Je.isStart,Rt=Je.isEnd,wt=getKey(ht,ct);delete dt.key,delete dt.children;var lt=getTreeNodeProps(wt,it);return React__namespace.createElement(MotionTreeNode,_extends({},dt,lt,{title:vt,active:!!ue&&ht===ue.key,pos:ct,data:Je.data,isStart:bt,isEnd:Rt,motion:de,motionNodes:ht===MOTION_KEY?Le:null,motionType:He,onMotionStart:Ee,onMotionEnd:rt,treeNodeRequiredProps:it,onMouseMove:function(){Se(null)}}))}))});process.env.NODE_ENV!=="production"&&(NodeList.displayName="NodeList");var MAX_RETRY_TIMES=10,Tree$3=function(C){_inherits(V,C);var $=_createSuper$7(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"destroyed",!1),_defineProperty(_assertThisInitialized(F),"delayedDragEnterLogic",void 0),_defineProperty(_assertThisInitialized(F),"loadingRetryTimes",{}),_defineProperty(_assertThisInitialized(F),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:fillFieldNames()}),_defineProperty(_assertThisInitialized(F),"dragStartMousePosition",null),_defineProperty(_assertThisInitialized(F),"dragNodeProps",null),_defineProperty(_assertThisInitialized(F),"currentMouseOverDroppableNodeKey",null),_defineProperty(_assertThisInitialized(F),"listRef",React__namespace.createRef()),_defineProperty(_assertThisInitialized(F),"onNodeDragStart",function(te,ne){var re=F.state,ae=re.expandedKeys,oe=re.keyEntities,ie=F.props.onDragStart,se=ne.eventKey;F.dragNodeProps=ne,F.dragStartMousePosition={x:te.clientX,y:te.clientY};var ce=arrDel(ae,se);F.setState({draggingNodeKey:se,dragChildrenKeys:getDragChildrenKeys(se,oe),indent:F.listRef.current.getIndentWidth()}),F.setExpandedKeys(ce),window.addEventListener("dragend",F.onWindowDragEnd),ie==null||ie({event:te,node:convertNodePropsToEventData(ne)})}),_defineProperty(_assertThisInitialized(F),"onNodeDragEnter",function(te,ne){var re=F.state,ae=re.expandedKeys,oe=re.keyEntities,ie=re.dragChildrenKeys,se=re.flattenNodes,ce=re.indent,de=F.props,le=de.onDragEnter,ve=de.onExpand,fe=de.allowDrop,he=de.direction,me=ne.pos,ue=ne.eventKey;if(F.currentMouseOverDroppableNodeKey!==ue&&(F.currentMouseOverDroppableNodeKey=ue),!F.dragNodeProps){F.resetDragState();return}var pe=calcDropPosition(te,F.dragNodeProps,ne,ce,F.dragStartMousePosition,fe,se,oe,ae,he),ye=pe.dropPosition,be=pe.dropLevelOffset,ge=pe.dropTargetKey,_e=pe.dropContainerKey,Se=pe.dropTargetPos,Ee=pe.dropAllowed,Ce=pe.dragOverNodeKey;if(ie.includes(ge)||!Ee){F.resetDragState();return}if(F.delayedDragEnterLogic||(F.delayedDragEnterLogic={}),Object.keys(F.delayedDragEnterLogic).forEach(function(xe){clearTimeout(F.delayedDragEnterLogic[xe])}),F.dragNodeProps.eventKey!==ne.eventKey&&(te.persist(),F.delayedDragEnterLogic[me]=window.setTimeout(function(){if(F.state.draggingNodeKey!==null){var xe=_toConsumableArray(ae),$e=getEntity(oe,ne.eventKey);$e&&($e.children||[]).length&&(xe=arrAdd(ae,ne.eventKey)),F.props.hasOwnProperty("expandedKeys")||F.setExpandedKeys(xe),ve==null||ve(xe,{node:convertNodePropsToEventData(ne),expanded:!0,nativeEvent:te.nativeEvent})}},800)),F.dragNodeProps.eventKey===ge&&be===0){F.resetDragState();return}F.setState({dragOverNodeKey:Ce,dropPosition:ye,dropLevelOffset:be,dropTargetKey:ge,dropContainerKey:_e,dropTargetPos:Se,dropAllowed:Ee}),le==null||le({event:te,node:convertNodePropsToEventData(ne),expandedKeys:ae})}),_defineProperty(_assertThisInitialized(F),"onNodeDragOver",function(te,ne){var re=F.state,ae=re.dragChildrenKeys,oe=re.flattenNodes,ie=re.keyEntities,se=re.expandedKeys,ce=re.indent,de=F.props,le=de.onDragOver,ve=de.allowDrop,fe=de.direction;if(F.dragNodeProps){var he=calcDropPosition(te,F.dragNodeProps,ne,ce,F.dragStartMousePosition,ve,oe,ie,se,fe),me=he.dropPosition,ue=he.dropLevelOffset,pe=he.dropTargetKey,ye=he.dropContainerKey,be=he.dropTargetPos,ge=he.dropAllowed,_e=he.dragOverNodeKey;ae.includes(pe)||!ge||(F.dragNodeProps.eventKey===pe&&ue===0?F.state.dropPosition===null&&F.state.dropLevelOffset===null&&F.state.dropTargetKey===null&&F.state.dropContainerKey===null&&F.state.dropTargetPos===null&&F.state.dropAllowed===!1&&F.state.dragOverNodeKey===null||F.resetDragState():me===F.state.dropPosition&&ue===F.state.dropLevelOffset&&pe===F.state.dropTargetKey&&ye===F.state.dropContainerKey&&be===F.state.dropTargetPos&&ge===F.state.dropAllowed&&_e===F.state.dragOverNodeKey||F.setState({dropPosition:me,dropLevelOffset:ue,dropTargetKey:pe,dropContainerKey:ye,dropTargetPos:be,dropAllowed:ge,dragOverNodeKey:_e}),le==null||le({event:te,node:convertNodePropsToEventData(ne)}))}}),_defineProperty(_assertThisInitialized(F),"onNodeDragLeave",function(te,ne){F.currentMouseOverDroppableNodeKey===ne.eventKey&&!te.currentTarget.contains(te.relatedTarget)&&(F.resetDragState(),F.currentMouseOverDroppableNodeKey=null);var re=F.props.onDragLeave;re==null||re({event:te,node:convertNodePropsToEventData(ne)})}),_defineProperty(_assertThisInitialized(F),"onWindowDragEnd",function(te){F.onNodeDragEnd(te,null,!0),window.removeEventListener("dragend",F.onWindowDragEnd)}),_defineProperty(_assertThisInitialized(F),"onNodeDragEnd",function(te,ne){var re=F.props.onDragEnd;F.setState({dragOverNodeKey:null}),F.cleanDragState(),re==null||re({event:te,node:convertNodePropsToEventData(ne)}),F.dragNodeProps=null,window.removeEventListener("dragend",F.onWindowDragEnd)}),_defineProperty(_assertThisInitialized(F),"onNodeDrop",function(te,ne){var re,ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=F.state,ie=oe.dragChildrenKeys,se=oe.dropPosition,ce=oe.dropTargetKey,de=oe.dropTargetPos,le=oe.dropAllowed;if(le){var ve=F.props.onDrop;if(F.setState({dragOverNodeKey:null}),F.cleanDragState(),ce!==null){var fe=_objectSpread2(_objectSpread2({},getTreeNodeProps(ce,F.getTreeNodeRequiredProps())),{},{active:((re=F.getActiveItem())===null||re===void 0?void 0:re.key)===ce,data:getEntity(F.state.keyEntities,ce).node}),he=ie.includes(ce);warningOnce(!he,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var me=posToArr(de),ue={event:te,node:convertNodePropsToEventData(fe),dragNode:F.dragNodeProps?convertNodePropsToEventData(F.dragNodeProps):null,dragNodesKeys:[F.dragNodeProps.eventKey].concat(ie),dropToGap:se!==0,dropPosition:se+Number(me[me.length-1])};ae||ve==null||ve(ue),F.dragNodeProps=null}}}),_defineProperty(_assertThisInitialized(F),"cleanDragState",function(){var te=F.state.draggingNodeKey;te!==null&&F.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),F.dragStartMousePosition=null,F.currentMouseOverDroppableNodeKey=null}),_defineProperty(_assertThisInitialized(F),"triggerExpandActionExpand",function(te,ne){var re=F.state,ae=re.expandedKeys,oe=re.flattenNodes,ie=ne.expanded,se=ne.key,ce=ne.isLeaf;if(!(ce||te.shiftKey||te.metaKey||te.ctrlKey)){var de=oe.filter(function(ve){return ve.key===se})[0],le=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(se,F.getTreeNodeRequiredProps())),{},{data:de.data}));F.setExpandedKeys(ie?arrDel(ae,se):arrAdd(ae,se)),F.onNodeExpand(te,le)}}),_defineProperty(_assertThisInitialized(F),"onNodeClick",function(te,ne){var re=F.props,ae=re.onClick,oe=re.expandAction;oe==="click"&&F.triggerExpandActionExpand(te,ne),ae==null||ae(te,ne)}),_defineProperty(_assertThisInitialized(F),"onNodeDoubleClick",function(te,ne){var re=F.props,ae=re.onDoubleClick,oe=re.expandAction;oe==="doubleClick"&&F.triggerExpandActionExpand(te,ne),ae==null||ae(te,ne)}),_defineProperty(_assertThisInitialized(F),"onNodeSelect",function(te,ne){var re=F.state.selectedKeys,ae=F.state,oe=ae.keyEntities,ie=ae.fieldNames,se=F.props,ce=se.onSelect,de=se.multiple,le=ne.selected,ve=ne[ie.key],fe=!le;fe?de?re=arrAdd(re,ve):re=[ve]:re=arrDel(re,ve);var he=re.map(function(me){var ue=getEntity(oe,me);return ue?ue.node:null}).filter(Boolean);F.setUncontrolledState({selectedKeys:re}),ce==null||ce(re,{event:"select",selected:fe,node:ne,selectedNodes:he,nativeEvent:te.nativeEvent})}),_defineProperty(_assertThisInitialized(F),"onNodeCheck",function(te,ne,re){var ae=F.state,oe=ae.keyEntities,ie=ae.checkedKeys,se=ae.halfCheckedKeys,ce=F.props,de=ce.checkStrictly,le=ce.onCheck,ve=ne.key,fe,he={event:"check",node:ne,checked:re,nativeEvent:te.nativeEvent};if(de){var me=re?arrAdd(ie,ve):arrDel(ie,ve),ue=arrDel(se,ve);fe={checked:me,halfChecked:ue},he.checkedNodes=me.map(function(Se){return getEntity(oe,Se)}).filter(Boolean).map(function(Se){return Se.node}),F.setUncontrolledState({checkedKeys:me})}else{var pe=conductCheck([].concat(_toConsumableArray(ie),[ve]),!0,oe),ye=pe.checkedKeys,be=pe.halfCheckedKeys;if(!re){var ge=new Set(ye);ge.delete(ve);var _e=conductCheck(Array.from(ge),{checked:!1,halfCheckedKeys:be},oe);ye=_e.checkedKeys,be=_e.halfCheckedKeys}fe=ye,he.checkedNodes=[],he.checkedNodesPositions=[],he.halfCheckedKeys=be,ye.forEach(function(Se){var Ee=getEntity(oe,Se);if(Ee){var Ce=Ee.node,xe=Ee.pos;he.checkedNodes.push(Ce),he.checkedNodesPositions.push({node:Ce,pos:xe})}}),F.setUncontrolledState({checkedKeys:ye},!1,{halfCheckedKeys:be})}le==null||le(fe,he)}),_defineProperty(_assertThisInitialized(F),"onNodeLoad",function(te){var ne,re=te.key,ae=F.state.keyEntities,oe=getEntity(ae,re);if(!(oe!=null&&(ne=oe.children)!==null&&ne!==void 0&&ne.length)){var ie=new Promise(function(se,ce){F.setState(function(de){var le=de.loadedKeys,ve=le===void 0?[]:le,fe=de.loadingKeys,he=fe===void 0?[]:fe,me=F.props,ue=me.loadData,pe=me.onLoad;if(!ue||ve.includes(re)||he.includes(re))return null;var ye=ue(te);return ye.then(function(){var be=F.state.loadedKeys,ge=arrAdd(be,re);pe==null||pe(ge,{event:"load",node:te}),F.setUncontrolledState({loadedKeys:ge}),F.setState(function(_e){return{loadingKeys:arrDel(_e.loadingKeys,re)}}),se()}).catch(function(be){if(F.setState(function(_e){return{loadingKeys:arrDel(_e.loadingKeys,re)}}),F.loadingRetryTimes[re]=(F.loadingRetryTimes[re]||0)+1,F.loadingRetryTimes[re]>=MAX_RETRY_TIMES){var ge=F.state.loadedKeys;warningOnce(!1,"Retry for `loadData` many times but still failed. No more retry."),F.setUncontrolledState({loadedKeys:arrAdd(ge,re)}),se()}ce(be)}),{loadingKeys:arrAdd(he,re)}})});return ie.catch(function(){}),ie}}),_defineProperty(_assertThisInitialized(F),"onNodeMouseEnter",function(te,ne){var re=F.props.onMouseEnter;re==null||re({event:te,node:ne})}),_defineProperty(_assertThisInitialized(F),"onNodeMouseLeave",function(te,ne){var re=F.props.onMouseLeave;re==null||re({event:te,node:ne})}),_defineProperty(_assertThisInitialized(F),"onNodeContextMenu",function(te,ne){var re=F.props.onRightClick;re&&(te.preventDefault(),re({event:te,node:ne}))}),_defineProperty(_assertThisInitialized(F),"onFocus",function(){var te=F.props.onFocus;F.setState({focused:!0});for(var ne=arguments.length,re=new Array(ne),ae=0;ae<ne;ae++)re[ae]=arguments[ae];te==null||te.apply(void 0,re)}),_defineProperty(_assertThisInitialized(F),"onBlur",function(){var te=F.props.onBlur;F.setState({focused:!1}),F.onActiveChange(null);for(var ne=arguments.length,re=new Array(ne),ae=0;ae<ne;ae++)re[ae]=arguments[ae];te==null||te.apply(void 0,re)}),_defineProperty(_assertThisInitialized(F),"getTreeNodeRequiredProps",function(){var te=F.state,ne=te.expandedKeys,re=te.selectedKeys,ae=te.loadedKeys,oe=te.loadingKeys,ie=te.checkedKeys,se=te.halfCheckedKeys,ce=te.dragOverNodeKey,de=te.dropPosition,le=te.keyEntities;return{expandedKeys:ne||[],selectedKeys:re||[],loadedKeys:ae||[],loadingKeys:oe||[],checkedKeys:ie||[],halfCheckedKeys:se||[],dragOverNodeKey:ce,dropPosition:de,keyEntities:le}}),_defineProperty(_assertThisInitialized(F),"setExpandedKeys",function(te){var ne=F.state,re=ne.treeData,ae=ne.fieldNames,oe=flattenTreeData(re,te,ae);F.setUncontrolledState({expandedKeys:te,flattenNodes:oe},!0)}),_defineProperty(_assertThisInitialized(F),"onNodeExpand",function(te,ne){var re=F.state.expandedKeys,ae=F.state,oe=ae.listChanging,ie=ae.fieldNames,se=F.props,ce=se.onExpand,de=se.loadData,le=ne.expanded,ve=ne[ie.key];if(!oe){var fe=re.includes(ve),he=!le;if(warningOnce(le&&fe||!le&&!fe,"Expand state not sync with index check"),re=he?arrAdd(re,ve):arrDel(re,ve),F.setExpandedKeys(re),ce==null||ce(re,{node:ne,expanded:he,nativeEvent:te.nativeEvent}),he&&de){var me=F.onNodeLoad(ne);me&&me.then(function(){var ue=flattenTreeData(F.state.treeData,re,ie);F.setUncontrolledState({flattenNodes:ue})}).catch(function(){var ue=F.state.expandedKeys,pe=arrDel(ue,ve);F.setExpandedKeys(pe)})}}}),_defineProperty(_assertThisInitialized(F),"onListChangeStart",function(){F.setUncontrolledState({listChanging:!0})}),_defineProperty(_assertThisInitialized(F),"onListChangeEnd",function(){setTimeout(function(){F.setUncontrolledState({listChanging:!1})})}),_defineProperty(_assertThisInitialized(F),"onActiveChange",function(te){var ne=F.state.activeKey,re=F.props,ae=re.onActiveChange,oe=re.itemScrollOffset,ie=oe===void 0?0:oe;ne!==te&&(F.setState({activeKey:te}),te!==null&&F.scrollTo({key:te,offset:ie}),ae==null||ae(te))}),_defineProperty(_assertThisInitialized(F),"getActiveItem",function(){var te=F.state,ne=te.activeKey,re=te.flattenNodes;return ne===null?null:re.find(function(ae){var oe=ae.key;return oe===ne})||null}),_defineProperty(_assertThisInitialized(F),"offsetActiveKey",function(te){var ne=F.state,re=ne.flattenNodes,ae=ne.activeKey,oe=re.findIndex(function(ce){var de=ce.key;return de===ae});oe===-1&&te<0&&(oe=re.length),oe=(oe+te+re.length)%re.length;var ie=re[oe];if(ie){var se=ie.key;F.onActiveChange(se)}else F.onActiveChange(null)}),_defineProperty(_assertThisInitialized(F),"onKeyDown",function(te){var ne=F.state,re=ne.activeKey,ae=ne.expandedKeys,oe=ne.checkedKeys,ie=ne.fieldNames,se=F.props,ce=se.onKeyDown,de=se.checkable,le=se.selectable;switch(te.which){case KeyCode.UP:{F.offsetActiveKey(-1),te.preventDefault();break}case KeyCode.DOWN:{F.offsetActiveKey(1),te.preventDefault();break}}var ve=F.getActiveItem();if(ve&&ve.data){var fe=F.getTreeNodeRequiredProps(),he=ve.data.isLeaf===!1||!!(ve.data[ie.children]||[]).length,me=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(re,fe)),{},{data:ve.data,active:!0}));switch(te.which){case KeyCode.LEFT:{he&&ae.includes(re)?F.onNodeExpand({},me):ve.parent&&F.onActiveChange(ve.parent.key),te.preventDefault();break}case KeyCode.RIGHT:{he&&!ae.includes(re)?F.onNodeExpand({},me):ve.children&&ve.children.length&&F.onActiveChange(ve.children[0].key),te.preventDefault();break}case KeyCode.ENTER:case KeyCode.SPACE:{de&&!me.disabled&&me.checkable!==!1&&!me.disableCheckbox?F.onNodeCheck({},me,!oe.includes(re)):!de&&le&&!me.disabled&&me.selectable!==!1&&F.onNodeSelect({},me);break}}}ce==null||ce(te)}),_defineProperty(_assertThisInitialized(F),"setUncontrolledState",function(te){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!F.destroyed){var ae=!1,oe=!0,ie={};Object.keys(te).forEach(function(se){if(F.props.hasOwnProperty(se)){oe=!1;return}ae=!0,ie[se]=te[se]}),ae&&(!ne||oe)&&F.setState(_objectSpread2(_objectSpread2({},ie),re))}}),_defineProperty(_assertThisInitialized(F),"scrollTo",function(te){F.listRef.current.scrollTo(te)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var K=this.props,J=K.activeKey,ee=K.itemScrollOffset,te=ee===void 0?0:ee;J!==void 0&&J!==this.state.activeKey&&(this.setState({activeKey:J}),J!==null&&this.scrollTo({key:J,offset:te}))}},{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 K=this.state,J=K.focused,ee=K.flattenNodes,te=K.keyEntities,ne=K.draggingNodeKey,re=K.activeKey,ae=K.dropLevelOffset,oe=K.dropContainerKey,ie=K.dropTargetKey,se=K.dropPosition,ce=K.dragOverNodeKey,de=K.indent,le=this.props,ve=le.prefixCls,fe=le.className,he=le.style,me=le.showLine,ue=le.focusable,pe=le.tabIndex,ye=pe===void 0?0:pe,be=le.selectable,ge=le.showIcon,_e=le.icon,Se=le.switcherIcon,Ee=le.draggable,Ce=le.checkable,xe=le.checkStrictly,$e=le.disabled,Ie=le.motion,Fe=le.loadData,Ne=le.filterTreeNode,De=le.height,Oe=le.itemHeight,we=le.scrollWidth,Ae=le.virtual,ke=le.titleRender,je=le.dropIndicatorRender,ze=le.onContextMenu,Ve=le.onScroll,Xe=le.direction,Ye=le.rootClassName,at=le.rootStyle,Ue=pickAttrs(this.props,{aria:!0,data:!0}),Le;Ee&&(_typeof(Ee)==="object"?Le=Ee:typeof Ee=="function"?Le={nodeDraggable:Ee}:Le={});var Te={prefixCls:ve,selectable:be,showIcon:ge,icon:_e,switcherIcon:Se,draggable:Le,draggingNodeKey:ne,checkable:Ce,checkStrictly:xe,disabled:$e,keyEntities:te,dropLevelOffset:ae,dropContainerKey:oe,dropTargetKey:ie,dropPosition:se,dragOverNodeKey:ce,indent:de,direction:Xe,dropIndicatorRender:je,loadData:Fe,filterTreeNode:Ne,titleRender:ke,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};return React__namespace.createElement(TreeContext.Provider,{value:Te},React__namespace.createElement("div",{className:classNames(ve,fe,Ye,_defineProperty(_defineProperty(_defineProperty({},"".concat(ve,"-show-line"),me),"".concat(ve,"-focused"),J),"".concat(ve,"-active-focused"),re!==null)),style:at},React__namespace.createElement(NodeList,_extends({ref:this.listRef,prefixCls:ve,style:he,data:ee,disabled:$e,selectable:be,checkable:!!Ce,motion:Ie,dragging:ne!==null,height:De,itemHeight:Oe,virtual:Ae,focusable:ue,focused:J,tabIndex:ye,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ze,onScroll:Ve,scrollWidth:we},this.getTreeNodeRequiredProps(),Ue))))}}],[{key:"getDerivedStateFromProps",value:function(K,J){var ee=J.prevProps,te={prevProps:K};function ne(ye){return!ee&&K.hasOwnProperty(ye)||ee&&ee[ye]!==K[ye]}var re,ae=J.fieldNames;if(ne("fieldNames")&&(ae=fillFieldNames(K.fieldNames),te.fieldNames=ae),ne("treeData")?re=K.treeData:ne("children")&&(warningOnce(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),re=convertTreeToData(K.children)),re){te.treeData=re;var oe=convertDataToEntities(re,{fieldNames:ae});te.keyEntities=_objectSpread2(_defineProperty({},MOTION_KEY,MotionEntity),oe.keyEntities),process.env.NODE_ENV!=="production"&&warningWithoutKey(re,ae)}var ie=te.keyEntities||J.keyEntities;if(ne("expandedKeys")||ee&&ne("autoExpandParent"))te.expandedKeys=K.autoExpandParent||!ee&&K.defaultExpandParent?conductExpandParent(K.expandedKeys,ie):K.expandedKeys;else if(!ee&&K.defaultExpandAll){var se=_objectSpread2({},ie);delete se[MOTION_KEY];var ce=[];Object.keys(se).forEach(function(ye){var be=se[ye];be.children&&be.children.length&&ce.push(be.key)}),te.expandedKeys=ce}else!ee&&K.defaultExpandedKeys&&(te.expandedKeys=K.autoExpandParent||K.defaultExpandParent?conductExpandParent(K.defaultExpandedKeys,ie):K.defaultExpandedKeys);if(te.expandedKeys||delete te.expandedKeys,re||te.expandedKeys){var de=flattenTreeData(re||J.treeData,te.expandedKeys||J.expandedKeys,ae);te.flattenNodes=de}if(K.selectable&&(ne("selectedKeys")?te.selectedKeys=calcSelectedKeys(K.selectedKeys,K):!ee&&K.defaultSelectedKeys&&(te.selectedKeys=calcSelectedKeys(K.defaultSelectedKeys,K))),K.checkable){var le;if(ne("checkedKeys")?le=parseCheckedKeys(K.checkedKeys)||{}:!ee&&K.defaultCheckedKeys?le=parseCheckedKeys(K.defaultCheckedKeys)||{}:re&&(le=parseCheckedKeys(K.checkedKeys)||{checkedKeys:J.checkedKeys,halfCheckedKeys:J.halfCheckedKeys}),le){var ve=le,fe=ve.checkedKeys,he=fe===void 0?[]:fe,me=ve.halfCheckedKeys,ue=me===void 0?[]:me;if(!K.checkStrictly){var pe=conductCheck(he,!0,ie);he=pe.checkedKeys,ue=pe.halfCheckedKeys}te.checkedKeys=he,te.halfCheckedKeys=ue}}return ne("loadedKeys")&&(te.loadedKeys=K.loadedKeys),te}}]),V}(React__namespace.Component);_defineProperty(Tree$3,"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:DropIndicator,allowDrop:function(){return!0},expandAction:!1}),_defineProperty(Tree$3,"TreeNode",TreeNode);const genDirectoryStyle=C=>{let{treeCls:$,treeNodeCls:V,directoryNodeSelectedBg:F,directoryNodeSelectedColor:K,motionDurationMid:J,borderRadius:ee,controlItemBgHover:te}=C;return{[`${$}${$}-directory ${V}`]:{[`${$}-node-content-wrapper`]:{position:"static",[`> *:not(${$}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${J}`,content:'""',borderRadius:ee},"&:hover:before":{background:te}},[`${$}-switcher, ${$}-checkbox, ${$}-draggable-icon`]:{zIndex:1},"&-selected":{[`${$}-switcher, ${$}-draggable-icon`]:{color:K},[`${$}-node-content-wrapper`]:{color:K,background:"transparent","&:before, &:hover:before":{background:F}}}}}},treeNodeFX=new Keyframe("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),getSwitchStyle=(C,$)=>({[`.${C}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${$.motionDurationSlow}`}}}),getDropIndicatorStyle=(C,$)=>({[`.${C}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:$.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit$1($.lineWidthBold)} solid ${$.colorPrimary}`,borderRadius:"50%",content:'""'}}}),genBaseStyle$2=(C,$)=>{const{treeCls:V,treeNodeCls:F,treeNodePadding:K,titleHeight:J,indentSize:ee,nodeSelectedBg:te,nodeHoverBg:ne,colorTextQuaternary:re,controlItemBgActiveDisabled:ae}=$;return{[V]:Object.assign(Object.assign({},resetComponent($)),{background:$.colorBgContainer,borderRadius:$.borderRadius,transition:`background-color ${$.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${V}-rtl ${V}-switcher_close ${V}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${V}-active-focused)`]:Object.assign({},genFocusOutline($)),[`${V}-list-holder-inner`]:{alignItems:"flex-start"},[`&${V}-block-node`]:{[`${V}-list-holder-inner`]:{alignItems:"stretch",[`${V}-node-content-wrapper`]:{flex:"auto"},[`${F}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${$.colorPrimary}`,opacity:0,animationName:treeNodeFX,animationDuration:$.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:$.borderRadius}}},[F]:{display:"flex",alignItems:"flex-start",marginBottom:K,lineHeight:unit$1(J),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:K},[`&-disabled ${V}-node-content-wrapper`]:{color:$.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${V}-checkbox-disabled + ${V}-node-selected,&${F}-disabled${F}-selected ${V}-node-content-wrapper`]:{backgroundColor:ae},[`${V}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${F}-disabled)`]:{[`${V}-node-content-wrapper`]:{"&:hover":{color:$.nodeHoverColor}}},[`&-active ${V}-node-content-wrapper`]:{background:$.controlItemBgHover},[`&:not(${F}-disabled).filter-node ${V}-title`]:{color:$.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${V}-draggable-icon`]:{flexShrink:0,width:J,textAlign:"center",visibility:"visible",color:re},[`&${F}-disabled ${V}-draggable-icon`]:{visibility:"hidden"}}},[`${V}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ee}},[`${V}-draggable-icon`]:{visibility:"hidden"},[`${V}-switcher, ${V}-checkbox`]:{marginInlineEnd:$.calc($.calc(J).sub($.controlInteractiveSize)).div(2).equal()},[`${V}-switcher`]:Object.assign(Object.assign({},getSwitchStyle(C,$)),{position:"relative",flex:"none",alignSelf:"stretch",width:J,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${$.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:J,height:J,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:$.borderRadius,transition:`all ${$.motionDurationSlow}`},[`&:not(${V}-switcher-noop):hover:before`]:{backgroundColor:$.colorBgTextHover},[`&_close ${V}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:$.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:$.calc(J).div(2).equal(),bottom:$.calc(K).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${$.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:$.calc($.calc(J).div(2).equal()).mul(.8).equal(),height:$.calc(J).div(2).equal(),borderBottom:`1px solid ${$.colorBorder}`,content:'""'}}}),[`${V}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:J,paddingBlock:0,paddingInline:$.paddingXS,background:"transparent",borderRadius:$.borderRadius,cursor:"pointer",transition:`all ${$.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},getDropIndicatorStyle(C,$)),{"&:hover":{backgroundColor:ne},[`&${V}-node-selected`]:{color:$.nodeSelectedColor,backgroundColor:te},[`${V}-iconEle`]:{display:"inline-block",width:J,height:J,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${V}-unselectable ${V}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${F}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${$.colorPrimary}`},"&-show-line":{[`${V}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:$.calc(J).div(2).equal(),bottom:$.calc(K).mul(-1).equal(),borderInlineEnd:`1px solid ${$.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${V}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${F}-leaf-last ${V}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${unit$1($.calc(J).div(2).equal())} !important`}})}},genTreeStyle=function(C,$){let V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const F=`.${C}`,K=`${F}-treenode`,J=$.calc($.paddingXS).div(2).equal(),ee=merge($,{treeCls:F,treeNodeCls:K,treeNodePadding:J});return[genBaseStyle$2(C,ee),V&&genDirectoryStyle(ee)].filter(Boolean)},initComponentToken=C=>{const{controlHeightSM:$,controlItemBgHover:V,controlItemBgActive:F}=C,K=$;return{titleHeight:K,indentSize:K,nodeHoverBg:V,nodeHoverColor:C.colorText,nodeSelectedBg:F,nodeSelectedColor:C.colorText}},prepareComponentToken$4=C=>{const{colorTextLightSolid:$,colorPrimary:V}=C;return Object.assign(Object.assign({},initComponentToken(C)),{directoryNodeSelectedColor:$,directoryNodeSelectedBg:V})},useStyle$4=genStyleHooks("Tree",(C,$)=>{let{prefixCls:V}=$;return[{[C.componentCls]:getStyle(`${V}-checkbox`,C)},genTreeStyle(V,C),genCollapseMotion$1(C)]},prepareComponentToken$4),offset=4;function dropIndicatorRender(C){const{dropPosition:$,dropLevelOffset:V,prefixCls:F,indent:K,direction:J="ltr"}=C,ee=J==="ltr"?"left":"right",te=J==="ltr"?"right":"left",ne={[ee]:-V*K+offset,[te]:0};switch($){case-1:ne.top=-3;break;case 1:ne.bottom=-3;break;default:ne.bottom=-3,ne[ee]=K+offset;break}return React.createElement("div",{style:ne,className:`${F}-drop-indicator`})}const SwitcherIconCom=C=>{const{prefixCls:$,switcherIcon:V,treeNodeProps:F,showLine:K,switcherLoadingIcon:J}=C,{isLeaf:ee,expanded:te,loading:ne}=F;if(ne)return React__namespace.isValidElement(J)?J:React__namespace.createElement(LoadingOutlined$1,{className:`${$}-switcher-loading-icon`});let re;if(K&&typeof K=="object"&&(re=K.showLeafIcon),ee){if(!K)return null;if(typeof re!="boolean"&&re){const ie=typeof re=="function"?re(F):re,se=`${$}-switcher-line-custom-icon`;return React__namespace.isValidElement(ie)?cloneElement(ie,{className:classNames(ie.props.className||"",se)}):ie}return re?React__namespace.createElement(FileOutlined$1,{className:`${$}-switcher-line-icon`}):React__namespace.createElement("span",{className:`${$}-switcher-leaf-line`})}const ae=`${$}-switcher-icon`,oe=typeof V=="function"?V(F):V;return React__namespace.isValidElement(oe)?cloneElement(oe,{className:classNames(oe.props.className||"",ae)}):oe!==void 0?oe:K?te?React__namespace.createElement(MinusSquareOutlined$1,{className:`${$}-switcher-line-icon`}):React__namespace.createElement(PlusSquareOutlined$1,{className:`${$}-switcher-line-icon`}):React__namespace.createElement(CaretDownFilled$1,{className:ae})},SwitcherIconCom$1=SwitcherIconCom,Tree$2=React.forwardRef((C,$)=>{var V;const{getPrefixCls:F,direction:K,virtual:J,tree:ee}=React.useContext(ConfigContext),{prefixCls:te,className:ne,showIcon:re=!1,showLine:ae,switcherIcon:oe,switcherLoadingIcon:ie,blockNode:se=!1,children:ce,checkable:de=!1,selectable:le=!0,draggable:ve,motion:fe,style:he}=C,me=F("tree",te),ue=F(),pe=fe!=null?fe:Object.assign(Object.assign({},initCollapseMotion$1(ue)),{motionAppear:!1}),ye=Object.assign(Object.assign({},C),{checkable:de,selectable:le,showIcon:re,motion:pe,blockNode:se,showLine:!!ae,dropIndicatorRender}),[be,ge,_e]=useStyle$4(me),[,Se]=useToken(),Ee=Se.paddingXS/2+(((V=Se.Tree)===null||V===void 0?void 0:V.titleHeight)||Se.controlHeightSM),Ce=React.useMemo(()=>{if(!ve)return!1;let $e={};switch(typeof ve){case"function":$e.nodeDraggable=ve;break;case"object":$e=Object.assign({},ve);break}return $e.icon!==!1&&($e.icon=$e.icon||React.createElement(HolderOutlined$1,null)),$e},[ve]),xe=$e=>React.createElement(SwitcherIconCom$1,{prefixCls:me,switcherIcon:oe,switcherLoadingIcon:ie,treeNodeProps:$e,showLine:ae});return be(React.createElement(Tree$3,Object.assign({itemHeight:Ee,ref:$,virtual:J},ye,{style:Object.assign(Object.assign({},ee==null?void 0:ee.style),he),prefixCls:me,className:classNames({[`${me}-icon-hide`]:!re,[`${me}-block-node`]:se,[`${me}-unselectable`]:!le,[`${me}-rtl`]:K==="rtl"},ee==null?void 0:ee.className,ne,ge,_e),direction:K,checkable:de&&React.createElement("span",{className:`${me}-checkbox-inner`}),selectable:le,switcherIcon:xe,draggable:Ce}),ce))});process.env.NODE_ENV!=="production"&&(Tree$2.displayName="Tree");const TreePure=Tree$2,RECORD_NONE=0,RECORD_START=1,RECORD_END=2;function traverseNodesKey(C,$,V){const{key:F,children:K}=V;function J(ee){const te=ee[F],ne=ee[K];$(te,ee)!==!1&&traverseNodesKey(ne||[],$,V)}C.forEach(J)}function calcRangeKeys(C){let{treeData:$,expandedKeys:V,startKey:F,endKey:K,fieldNames:J}=C;const ee=[];let te=RECORD_NONE;if(F&&F===K)return[F];if(!F||!K)return[];function ne(re){return re===F||re===K}return traverseNodesKey($,re=>{if(te===RECORD_END)return!1;if(ne(re)){if(ee.push(re),te===RECORD_NONE)te=RECORD_START;else if(te===RECORD_START)return te=RECORD_END,!1}else te===RECORD_START&&ee.push(re);return V.includes(re)},fillFieldNames(J)),ee}function convertDirectoryKeysToNodes(C,$,V){const F=_toConsumableArray($),K=[];return traverseNodesKey(C,(J,ee)=>{const te=F.indexOf(J);return te!==-1&&(K.push(ee),F.splice(te,1)),!!F.length},fillFieldNames(V)),K}var __rest$9=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};function getIcon(C){const{isLeaf:$,expanded:V}=C;return $?React__namespace.createElement(FileOutlined$1,null):V?React__namespace.createElement(FolderOpenOutlined$1,null):React__namespace.createElement(FolderOutlined$1,null)}function getTreeData(C){let{treeData:$,children:V}=C;return $||convertTreeToData(V)}const DirectoryTree=(C,$)=>{var{defaultExpandAll:V,defaultExpandParent:F,defaultExpandedKeys:K}=C,J=__rest$9(C,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ee=React__namespace.useRef(null),te=React__namespace.useRef(null),ne=()=>{const{keyEntities:be}=convertDataToEntities(getTreeData(J));let ge;return V?ge=Object.keys(be):F?ge=conductExpandParent(J.expandedKeys||K||[],be):ge=J.expandedKeys||K||[],ge},[re,ae]=React__namespace.useState(J.selectedKeys||J.defaultSelectedKeys||[]),[oe,ie]=React__namespace.useState(()=>ne());React__namespace.useEffect(()=>{"selectedKeys"in J&&ae(J.selectedKeys)},[J.selectedKeys]),React__namespace.useEffect(()=>{"expandedKeys"in J&&ie(J.expandedKeys)},[J.expandedKeys]);const se=(be,ge)=>{var _e;return"expandedKeys"in J||ie(be),(_e=J.onExpand)===null||_e===void 0?void 0:_e.call(J,be,ge)},ce=(be,ge)=>{var _e;const{multiple:Se,fieldNames:Ee}=J,{node:Ce,nativeEvent:xe}=ge,{key:$e=""}=Ce,Ie=getTreeData(J),Fe=Object.assign(Object.assign({},ge),{selected:!0}),Ne=(xe==null?void 0:xe.ctrlKey)||(xe==null?void 0:xe.metaKey),De=xe==null?void 0:xe.shiftKey;let Oe;Se&&Ne?(Oe=be,ee.current=$e,te.current=Oe,Fe.selectedNodes=convertDirectoryKeysToNodes(Ie,Oe,Ee)):Se&&De?(Oe=Array.from(new Set([].concat(_toConsumableArray(te.current||[]),_toConsumableArray(calcRangeKeys({treeData:Ie,expandedKeys:oe,startKey:$e,endKey:ee.current,fieldNames:Ee}))))),Fe.selectedNodes=convertDirectoryKeysToNodes(Ie,Oe,Ee)):(Oe=[$e],ee.current=$e,te.current=Oe,Fe.selectedNodes=convertDirectoryKeysToNodes(Ie,Oe,Ee)),(_e=J.onSelect)===null||_e===void 0||_e.call(J,Oe,Fe),"selectedKeys"in J||ae(Oe)},{getPrefixCls:de,direction:le}=React__namespace.useContext(ConfigContext),{prefixCls:ve,className:fe,showIcon:he=!0,expandAction:me="click"}=J,ue=__rest$9(J,["prefixCls","className","showIcon","expandAction"]),pe=de("tree",ve),ye=classNames(`${pe}-directory`,{[`${pe}-directory-rtl`]:le==="rtl"},fe);return React__namespace.createElement(TreePure,Object.assign({icon:getIcon,ref:$,blockNode:!0},ue,{showIcon:he,expandAction:me,prefixCls:pe,className:ye,expandedKeys:oe,selectedKeys:re,onSelect:ce,onExpand:se}))},ForwardDirectoryTree=React__namespace.forwardRef(DirectoryTree);process.env.NODE_ENV!=="production"&&(ForwardDirectoryTree.displayName="DirectoryTree");const DirectoryTree$1=ForwardDirectoryTree,Tree=TreePure;Tree.DirectoryTree=DirectoryTree$1,Tree.TreeNode=TreeNode;const Tree$1=Tree,FilterSearch=C=>{const{value:$,filterSearch:V,tablePrefixCls:F,locale:K,onChange:J}=C;return V?React__namespace.createElement("div",{className:`${F}-filter-dropdown-search`},React__namespace.createElement(Input$3,{prefix:React__namespace.createElement(SearchOutlined$1,null),placeholder:K.filterSearchPlaceholder,onChange:J,value:$,htmlSize:1,className:`${F}-filter-dropdown-search-input`})):null},FilterSearch$1=FilterSearch,onKeyDown=C=>{const{keyCode:$}=C;$===KeyCode.ENTER&&C.stopPropagation()},FilterDropdownMenuWrapper=React__namespace.forwardRef((C,$)=>React__namespace.createElement("div",{className:C.className,onClick:V=>V.stopPropagation(),onKeyDown,ref:$},C.children));process.env.NODE_ENV!=="production"&&(FilterDropdownMenuWrapper.displayName="FilterDropdownMenuWrapper");const FilterDropdownMenuWrapper$1=FilterDropdownMenuWrapper;function flattenKeys(C){let $=[];return(C||[]).forEach(V=>{let{value:F,children:K}=V;$.push(F),K&&($=[].concat(_toConsumableArray($),_toConsumableArray(flattenKeys(K))))}),$}function hasSubMenu(C){return C.some($=>{let{children:V}=$;return V})}function searchValueMatched(C,$){return typeof $=="string"||typeof $=="number"?$==null?void 0:$.toString().toLowerCase().includes(C.trim().toLowerCase()):!1}function renderFilterItems(C){let{filters:$,prefixCls:V,filteredKeys:F,filterMultiple:K,searchValue:J,filterSearch:ee}=C;return $.map((te,ne)=>{const re=String(te.value);if(te.children)return{key:re||ne,label:te.text,popupClassName:`${V}-dropdown-submenu`,children:renderFilterItems({filters:te.children,prefixCls:V,filteredKeys:F,filterMultiple:K,searchValue:J,filterSearch:ee})};const ae=K?Checkbox$1:Radio$1,oe={key:te.value!==void 0?re:ne,label:React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(ae,{checked:F.includes(re)}),React__namespace.createElement("span",null,te.text))};return J.trim()?typeof ee=="function"?ee(J,te)?oe:null:searchValueMatched(J,te.text)?oe:null:oe})}function wrapStringListType(C){return C||[]}const FilterDropdown=C=>{var $,V,F,K;const{tablePrefixCls:J,prefixCls:ee,column:te,dropdownPrefixCls:ne,columnKey:re,filterOnClose:ae,filterMultiple:oe,filterMode:ie="menu",filterSearch:se=!1,filterState:ce,triggerFilter:de,locale:le,children:ve,getPopupContainer:fe,rootClassName:he}=C,{filterResetToDefaultFilteredValue:me,defaultFilteredValue:ue,filterDropdownProps:pe={},filterDropdownOpen:ye,filterDropdownVisible:be,onFilterDropdownVisibleChange:ge,onFilterDropdownOpenChange:_e}=te,[Se,Ee]=React__namespace.useState(!1),Ce=!!(ce&&(!(($=ce.filteredKeys)===null||$===void 0)&&$.length||ce.forceFiltered)),xe=Je=>{var ct;Ee(Je),(ct=pe.onOpenChange)===null||ct===void 0||ct.call(pe,Je),_e==null||_e(Je),ge==null||ge(Je)};if(process.env.NODE_ENV!=="production"){const Je=devUseWarning("Table");[["filterDropdownOpen","filterDropdownProps.open"],["filterDropdownVisible","filterDropdownProps.open"],["onFilterDropdownOpenChange","filterDropdownProps.onOpenChange"],["onFilterDropdownVisibleChange","filterDropdownProps.onOpenChange"]].forEach(dt=>{let[vt,ht]=dt;Je.deprecated(!(vt in te),vt,ht)}),Je.deprecated(!("filterCheckall"in le),"filterCheckall","locale.filterCheckAll")}const $e=(K=(F=(V=pe.open)!==null&&V!==void 0?V:ye)!==null&&F!==void 0?F:be)!==null&&K!==void 0?K:Se,Ie=ce==null?void 0:ce.filteredKeys,[Fe,Ne]=useSyncState(wrapStringListType(Ie)),De=Je=>{let{selectedKeys:ct}=Je;Ne(ct)},Oe=(Je,ct)=>{let{node:dt,checked:vt}=ct;De(oe?{selectedKeys:Je}:{selectedKeys:vt&&dt.key?[dt.key]:[]})};React__namespace.useEffect(()=>{Se&&De({selectedKeys:wrapStringListType(Ie)})},[Ie]);const[we,Ae]=React__namespace.useState([]),ke=Je=>{Ae(Je)},[je,ze]=React__namespace.useState(""),Ve=Je=>{const{value:ct}=Je.target;ze(ct)};React__namespace.useEffect(()=>{Se||ze("")},[Se]);const Xe=Je=>{const ct=Je!=null&&Je.length?Je:null;if(ct===null&&(!ce||!ce.filteredKeys)||isEqual(ct,ce==null?void 0:ce.filteredKeys,!0))return null;de({column:te,key:re,filteredKeys:ct})},Ye=()=>{xe(!1),Xe(Fe())},at=function(){let{confirm:Je,closeDropdown:ct}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Je&&Xe([]),ct&&xe(!1),ze(""),Ne(me?(ue||[]).map(dt=>String(dt)):[])},Ue=function(){let{closeDropdown:Je}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Je&&xe(!1),Xe(Fe())},Le=(Je,ct)=>{ct.source==="trigger"&&(Je&&Ie!==void 0&&Ne(wrapStringListType(Ie)),xe(Je),!Je&&!te.filterDropdown&&ae&&Ye())},Te=classNames({[`${ne}-menu-without-submenu`]:!hasSubMenu(te.filters||[])}),Pe=Je=>{if(Je.target.checked){const ct=flattenKeys(te==null?void 0:te.filters).map(dt=>String(dt));Ne(ct)}else Ne([])},Me=Je=>{let{filters:ct}=Je;return(ct||[]).map((dt,vt)=>{const ht=String(dt.value),bt={title:dt.text,key:dt.value!==void 0?ht:String(vt)};return dt.children&&(bt.children=Me({filters:dt.children})),bt})},He=Je=>{var ct;return Object.assign(Object.assign({},Je),{text:Je.title,value:Je.key,children:((ct=Je.children)===null||ct===void 0?void 0:ct.map(dt=>He(dt)))||[]})};let We;const{direction:Ke,renderEmpty:rt}=React__namespace.useContext(ConfigContext);if(typeof te.filterDropdown=="function")We=te.filterDropdown({prefixCls:`${ne}-custom`,setSelectedKeys:Je=>De({selectedKeys:Je}),selectedKeys:Fe(),confirm:Ue,clearFilters:at,filters:te.filters,visible:$e,close:()=>{xe(!1)}});else if(te.filterDropdown)We=te.filterDropdown;else{const Je=Fe()||[],ct=()=>{var vt,ht;const bt=(vt=rt==null?void 0:rt("Table.filter"))!==null&&vt!==void 0?vt:React__namespace.createElement(Empty$1,{image:Empty$1.PRESENTED_IMAGE_SIMPLE,description:le.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((te.filters||[]).length===0)return bt;if(ie==="tree")return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(FilterSearch$1,{filterSearch:se,value:je,onChange:Ve,tablePrefixCls:J,locale:le}),React__namespace.createElement("div",{className:`${J}-filter-dropdown-tree`},oe?React__namespace.createElement(Checkbox$1,{checked:Je.length===flattenKeys(te.filters).length,indeterminate:Je.length>0&&Je.length<flattenKeys(te.filters).length,className:`${J}-filter-dropdown-checkall`,onChange:Pe},(ht=le==null?void 0:le.filterCheckall)!==null&&ht!==void 0?ht:le==null?void 0:le.filterCheckAll):null,React__namespace.createElement(Tree$1,{checkable:!0,selectable:!1,blockNode:!0,multiple:oe,checkStrictly:!oe,className:`${ne}-menu`,onCheck:Oe,checkedKeys:Je,selectedKeys:Je,showIcon:!1,treeData:Me({filters:te.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:je.trim()?lt=>typeof se=="function"?se(je,He(lt)):searchValueMatched(je,lt.title):void 0})));const Rt=renderFilterItems({filters:te.filters||[],filterSearch:se,prefixCls:ee,filteredKeys:Fe(),filterMultiple:oe,searchValue:je}),wt=Rt.every(lt=>lt===null);return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(FilterSearch$1,{filterSearch:se,value:je,onChange:Ve,tablePrefixCls:J,locale:le}),wt?bt:React__namespace.createElement(Menu$1,{selectable:!0,multiple:oe,prefixCls:`${ne}-menu`,className:Te,onSelect:De,onDeselect:De,selectedKeys:Je,getPopupContainer:fe,openKeys:we,onOpenChange:ke,items:Rt}))},dt=()=>me?isEqual((ue||[]).map(vt=>String(vt)),Je,!0):Je.length===0;We=React__namespace.createElement(React__namespace.Fragment,null,ct(),React__namespace.createElement("div",{className:`${ee}-dropdown-btns`},React__namespace.createElement(Button$2,{type:"link",size:"small",disabled:dt(),onClick:()=>at()},le.filterReset),React__namespace.createElement(Button$2,{type:"primary",size:"small",onClick:Ye},le.filterConfirm)))}te.filterDropdown&&(We=React__namespace.createElement(OverrideProvider,{selectable:void 0},We)),We=React__namespace.createElement(FilterDropdownMenuWrapper$1,{className:`${ee}-dropdown`},We);const it=mergeProps$1({trigger:["click"],placement:Ke==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let Je;return typeof te.filterIcon=="function"?Je=te.filterIcon(Ce):te.filterIcon?Je=te.filterIcon:Je=React__namespace.createElement(FilterFilled$1,null),React__namespace.createElement("span",{role:"button",tabIndex:-1,className:classNames(`${ee}-trigger`,{active:Ce}),onClick:ct=>{ct.stopPropagation()}},Je)})(),getPopupContainer:fe},Object.assign(Object.assign({},pe),{rootClassName:classNames(he,pe.rootClassName),open:$e,onOpenChange:Le,popupRender:()=>typeof(pe==null?void 0:pe.dropdownRender)=="function"?pe.dropdownRender(We):We}));return React__namespace.createElement("div",{className:`${ee}-column`},React__namespace.createElement("span",{className:`${J}-column-title`},ve),React__namespace.createElement(Dropdown$1,Object.assign({},it)))},collectFilterStates=(C,$,V)=>{let F=[];return(C||[]).forEach((K,J)=>{var ee;const te=getColumnPos(J,V),ne=K.filterDropdown!==void 0;if(K.filters||ne||"onFilter"in K)if("filteredValue"in K){let re=K.filteredValue;ne||(re=(ee=re==null?void 0:re.map(String))!==null&&ee!==void 0?ee:re),F.push({column:K,key:getColumnKey(K,te),filteredKeys:re,forceFiltered:K.filtered})}else F.push({column:K,key:getColumnKey(K,te),filteredKeys:$&&K.defaultFilteredValue?K.defaultFilteredValue:void 0,forceFiltered:K.filtered});"children"in K&&(F=[].concat(_toConsumableArray(F),_toConsumableArray(collectFilterStates(K.children,$,te))))}),F};function injectFilter(C,$,V,F,K,J,ee,te,ne){return V.map((re,ae)=>{const oe=getColumnPos(ae,te),{filterOnClose:ie=!0,filterMultiple:se=!0,filterMode:ce,filterSearch:de}=re;let le=re;if(le.filters||le.filterDropdown){const ve=getColumnKey(le,oe),fe=F.find(he=>{let{key:me}=he;return ve===me});le=Object.assign(Object.assign({},le),{title:he=>React__namespace.createElement(FilterDropdown,{tablePrefixCls:C,prefixCls:`${C}-filter`,dropdownPrefixCls:$,column:le,columnKey:ve,filterState:fe,filterOnClose:ie,filterMultiple:se,filterMode:ce,filterSearch:de,triggerFilter:J,locale:K,getPopupContainer:ee,rootClassName:ne},renderColumnTitle(re.title,he))})}return"children"in le&&(le=Object.assign(Object.assign({},le),{children:injectFilter(C,$,le.children,F,K,J,ee,oe,ne)})),le})}const generateFilterInfo=C=>{const $={};return C.forEach(V=>{let{key:F,filteredKeys:K,column:J}=V;const ee=F,{filters:te,filterDropdown:ne}=J;if(ne)$[ee]=K||null;else if(Array.isArray(K)){const re=flattenKeys(te);$[ee]=re.filter(ae=>K.includes(String(ae)))}else $[ee]=null}),$},getFilterData=(C,$,V)=>$.reduce((K,J)=>{const{column:{onFilter:ee,filters:te},filteredKeys:ne}=J;return ee&&ne&&ne.length?K.map(re=>Object.assign({},re)).filter(re=>ne.some(ae=>{const oe=flattenKeys(te),ie=oe.findIndex(ce=>String(ce)===String(ae)),se=ie!==-1?oe[ie]:ae;return re[V]&&(re[V]=getFilterData(re[V],$,V)),ee(se,re)})):K},C),getMergedColumns=C=>C.flatMap($=>"children"in $?[$].concat(_toConsumableArray(getMergedColumns($.children||[]))):[$]),useFilter=C=>{const{prefixCls:$,dropdownPrefixCls:V,mergedColumns:F,onFilterChange:K,getPopupContainer:J,locale:ee,rootClassName:te}=C,ne=devUseWarning("Table"),re=React__namespace.useMemo(()=>getMergedColumns(F||[]),[F]),[ae,oe]=React__namespace.useState(()=>collectFilterStates(re,!0)),ie=React__namespace.useMemo(()=>{const le=collectFilterStates(re,!1);if(le.length===0)return le;let ve=!0,fe=!0;if(le.forEach(he=>{let{filteredKeys:me}=he;me!==void 0?ve=!1:fe=!1}),ve){const he=(re||[]).map((me,ue)=>getColumnKey(me,getColumnPos(ue)));return ae.filter(me=>{let{key:ue}=me;return he.includes(ue)}).map(me=>{const ue=re[he.findIndex(pe=>pe===me.key)];return Object.assign(Object.assign({},me),{column:Object.assign(Object.assign({},me.column),ue),forceFiltered:ue.filtered})})}return process.env.NODE_ENV!=="production"&&ne(fe,"usage","Columns should all contain `filteredValue` or not contain `filteredValue`."),le},[re,ae]),se=React__namespace.useMemo(()=>generateFilterInfo(ie),[ie]),ce=le=>{const ve=ie.filter(fe=>{let{key:he}=fe;return he!==le.key});ve.push(le),oe(ve),K(generateFilterInfo(ve),ve)};return[le=>injectFilter($,V,le,ie,ee,ce,J,void 0,te),ie,se]},useFilter$1=useFilter,useLazyKVMap=(C,$,V)=>{const F=React__namespace.useRef({});function K(J){var ee;if(!F.current||F.current.data!==C||F.current.childrenColumnName!==$||F.current.getRowKey!==V){let ne=function(re){re.forEach((ae,oe)=>{const ie=V(ae,oe);te.set(ie,ae),ae&&typeof ae=="object"&&$ in ae&&ne(ae[$]||[])})};const te=new Map;ne(C),F.current={data:C,childrenColumnName:$,kvMap:te,getRowKey:V}}return(ee=F.current.kvMap)===null||ee===void 0?void 0:ee.get(J)}return[K]},useLazyKVMap$1=useLazyKVMap;var __rest$8=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const DEFAULT_PAGE_SIZE=10;function getPaginationParam(C,$){const V={current:C.current,pageSize:C.pageSize};return Object.keys($&&typeof $=="object"?$:{}).forEach(K=>{const J=C[K];typeof J!="function"&&(V[K]=J)}),V}function usePagination(C,$,V){const F=V&&typeof V=="object"?V:{},{total:K=0}=F,J=__rest$8(F,["total"]),[ee,te]=React.useState(()=>({current:"defaultCurrent"in J?J.defaultCurrent:1,pageSize:"defaultPageSize"in J?J.defaultPageSize:DEFAULT_PAGE_SIZE})),ne=mergeProps$1(ee,J,{total:K>0?K:C}),re=Math.ceil((K||C)/ne.pageSize);ne.current>re&&(ne.current=re||1);const ae=(ie,se)=>{te({current:ie!=null?ie:1,pageSize:se||ne.pageSize})},oe=(ie,se)=>{var ce;V&&((ce=V.onChange)===null||ce===void 0||ce.call(V,ie,se)),ae(ie,se),$(ie,se||(ne==null?void 0:ne.pageSize))};return V===!1?[{},()=>{}]:[Object.assign(Object.assign({},ne),{onChange:oe}),ae]}const ASCEND="ascend",DESCEND="descend",getMultiplePriority=C=>typeof C.sorter=="object"&&typeof C.sorter.multiple=="number"?C.sorter.multiple:!1,getSortFunction=C=>typeof C=="function"?C:C&&typeof C=="object"&&C.compare?C.compare:!1,nextSortDirection=(C,$)=>$?C[C.indexOf($)+1]:C[0],collectSortStates=(C,$,V)=>{let F=[];const K=(J,ee)=>{F.push({column:J,key:getColumnKey(J,ee),multiplePriority:getMultiplePriority(J),sortOrder:J.sortOrder})};return(C||[]).forEach((J,ee)=>{const te=getColumnPos(ee,V);J.children?("sortOrder"in J&&K(J,te),F=[].concat(_toConsumableArray(F),_toConsumableArray(collectSortStates(J.children,$,te)))):J.sorter&&("sortOrder"in J?K(J,te):$&&J.defaultSortOrder&&F.push({column:J,key:getColumnKey(J,te),multiplePriority:getMultiplePriority(J),sortOrder:J.defaultSortOrder}))}),F},injectSorter=(C,$,V,F,K,J,ee,te)=>($||[]).map((re,ae)=>{const oe=getColumnPos(ae,te);let ie=re;if(ie.sorter){const se=ie.sortDirections||K,ce=ie.showSorterTooltip===void 0?ee:ie.showSorterTooltip,de=getColumnKey(ie,oe),le=V.find(ge=>{let{key:_e}=ge;return _e===de}),ve=le?le.sortOrder:null,fe=nextSortDirection(se,ve);let he;if(re.sortIcon)he=re.sortIcon({sortOrder:ve});else{const ge=se.includes(ASCEND)&&React__namespace.createElement(CaretUpOutlined$1,{className:classNames(`${C}-column-sorter-up`,{active:ve===ASCEND})}),_e=se.includes(DESCEND)&&React__namespace.createElement(CaretDownOutlined$1,{className:classNames(`${C}-column-sorter-down`,{active:ve===DESCEND})});he=React__namespace.createElement("span",{className:classNames(`${C}-column-sorter`,{[`${C}-column-sorter-full`]:!!(ge&&_e)})},React__namespace.createElement("span",{className:`${C}-column-sorter-inner`,"aria-hidden":"true"},ge,_e))}const{cancelSort:me,triggerAsc:ue,triggerDesc:pe}=J||{};let ye=me;fe===DESCEND?ye=pe:fe===ASCEND&&(ye=ue);const be=typeof ce=="object"?Object.assign({title:ye},ce):{title:ye};ie=Object.assign(Object.assign({},ie),{className:classNames(ie.className,{[`${C}-column-sort`]:ve}),title:ge=>{const _e=`${C}-column-sorters`,Se=React__namespace.createElement("span",{className:`${C}-column-title`},renderColumnTitle(re.title,ge)),Ee=React__namespace.createElement("div",{className:_e},Se,he);return ce?typeof ce!="boolean"&&(ce==null?void 0:ce.target)==="sorter-icon"?React__namespace.createElement("div",{className:`${_e} ${C}-column-sorters-tooltip-target-sorter`},Se,React__namespace.createElement(Tooltip$1,Object.assign({},be),he)):React__namespace.createElement(Tooltip$1,Object.assign({},be),Ee):Ee},onHeaderCell:ge=>{var _e;const Se=((_e=re.onHeaderCell)===null||_e===void 0?void 0:_e.call(re,ge))||{},Ee=Se.onClick,Ce=Se.onKeyDown;Se.onClick=Ie=>{F({column:re,key:de,sortOrder:fe,multiplePriority:getMultiplePriority(re)}),Ee==null||Ee(Ie)},Se.onKeyDown=Ie=>{Ie.keyCode===KeyCode.ENTER&&(F({column:re,key:de,sortOrder:fe,multiplePriority:getMultiplePriority(re)}),Ce==null||Ce(Ie))};const xe=safeColumnTitle(re.title,{}),$e=xe==null?void 0:xe.toString();return ve&&(Se["aria-sort"]=ve==="ascend"?"ascending":"descending"),Se["aria-label"]=$e||"",Se.className=classNames(Se.className,`${C}-column-has-sorters`),Se.tabIndex=0,re.ellipsis&&(Se.title=(xe!=null?xe:"").toString()),Se}})}return"children"in ie&&(ie=Object.assign(Object.assign({},ie),{children:injectSorter(C,ie.children,V,F,K,J,ee,oe)})),ie}),stateToInfo=C=>{const{column:$,sortOrder:V}=C;return{column:$,order:V,field:$.dataIndex,columnKey:$.key}},generateSorterInfo=C=>{const $=C.filter(V=>{let{sortOrder:F}=V;return F}).map(stateToInfo);if($.length===0&&C.length){const V=C.length-1;return Object.assign(Object.assign({},stateToInfo(C[V])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return $.length<=1?$[0]||{}:$},getSortData=(C,$,V)=>{const F=$.slice().sort((ee,te)=>te.multiplePriority-ee.multiplePriority),K=C.slice(),J=F.filter(ee=>{let{column:{sorter:te},sortOrder:ne}=ee;return getSortFunction(te)&&ne});return J.length?K.sort((ee,te)=>{for(let ne=0;ne<J.length;ne+=1){const re=J[ne],{column:{sorter:ae},sortOrder:oe}=re,ie=getSortFunction(ae);if(ie&&oe){const se=ie(ee,te,oe);if(se!==0)return oe===ASCEND?se:-se}}return 0}).map(ee=>{const te=ee[V];return te?Object.assign(Object.assign({},ee),{[V]:getSortData(te,$,V)}):ee}):K},useFilterSorter=C=>{const{prefixCls:$,mergedColumns:V,sortDirections:F,tableLocale:K,showSorterTooltip:J,onSorterChange:ee}=C,[te,ne]=React__namespace.useState(()=>collectSortStates(V,!0)),re=(de,le)=>{const ve=[];return de.forEach((fe,he)=>{const me=getColumnPos(he,le);if(ve.push(getColumnKey(fe,me)),Array.isArray(fe.children)){const ue=re(fe.children,me);ve.push.apply(ve,_toConsumableArray(ue))}}),ve},ae=React__namespace.useMemo(()=>{let de=!0;const le=collectSortStates(V,!1);if(!le.length){const me=re(V);return te.filter(ue=>{let{key:pe}=ue;return me.includes(pe)})}const ve=[];function fe(me){de?ve.push(me):ve.push(Object.assign(Object.assign({},me),{sortOrder:null}))}let he=null;return le.forEach(me=>{he===null?(fe(me),me.sortOrder&&(me.multiplePriority===!1?de=!1:he=!0)):(he&&me.multiplePriority!==!1||(de=!1),fe(me))}),ve},[V,te]),oe=React__namespace.useMemo(()=>{var de,le;const ve=ae.map(fe=>{let{column:he,sortOrder:me}=fe;return{column:he,order:me}});return{sortColumns:ve,sortColumn:(de=ve[0])===null||de===void 0?void 0:de.column,sortOrder:(le=ve[0])===null||le===void 0?void 0:le.order}},[ae]),ie=de=>{let le;de.multiplePriority===!1||!ae.length||ae[0].multiplePriority===!1?le=[de]:le=[].concat(_toConsumableArray(ae.filter(ve=>{let{key:fe}=ve;return fe!==de.key})),[de]),ne(le),ee(generateSorterInfo(le),le)};return[de=>injectSorter($,de,ae,ie,F,K,J),ae,oe,()=>generateSorterInfo(ae)]},useSorter=useFilterSorter,fillTitle=(C,$)=>C.map(F=>{const K=Object.assign({},F);return K.title=renderColumnTitle(F.title,$),"children"in K&&(K.children=fillTitle(K.children,$)),K}),useTitleColumns=C=>[React__namespace.useCallback(V=>fillTitle(V,C),[C])],useTitleColumns$1=useTitleColumns,RcTable=genTable((C,$)=>{const{_renderTimes:V}=C,{_renderTimes:F}=$;return V!==F}),RcTable$1=RcTable,RcVirtualTable=genVirtualTable((C,$)=>{const{_renderTimes:V}=C,{_renderTimes:F}=$;return V!==F}),RcVirtualTable$1=RcVirtualTable,genBorderedStyle=C=>{const{componentCls:$,lineWidth:V,lineType:F,tableBorderColor:K,tableHeaderBg:J,tablePaddingVertical:ee,tablePaddingHorizontal:te,calc:ne}=C,re=`${unit$1(V)} ${F} ${K}`,ae=(oe,ie,se)=>({[`&${$}-${oe}`]:{[`> ${$}-container`]:{[`> ${$}-content, > ${$}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${$}-expanded-row-fixed`]:{margin:`${unit$1(ne(ie).mul(-1).equal())}
329
329
  ${unit$1(ne(ne(se).add(V)).mul(-1).equal())}`}}}}}});return{[`${$}-wrapper`]:{[`${$}${$}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${$}-title`]:{border:re,borderBottom:0},[`> ${$}-container`]:{borderInlineStart:re,borderTop:re,[`
330
330
  > ${$}-content,
331
331
  > ${$}-header,
@@ -423,7 +423,7 @@ html body {
423
423
  ${V}-eye,
424
424
  ${V}-download,
425
425
  ${V}-delete
426
- `]:{zIndex:10,width:F,margin:`0 ${unit$1(C.marginXXS)}`,fontSize:F,cursor:"pointer",transition:`all ${C.motionDurationSlow}`,color:K,"&:hover":{color:K},svg:{verticalAlign:"baseline"}}},[`${te}-thumbnail, ${te}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${te}-name`]:{display:"none",textAlign:"center"},[`${te}-file + ${te}-name`]:{position:"absolute",bottom:C.margin,display:"block",width:`calc(100% - ${unit$1(J(C.paddingXS).mul(2).equal())})`},[`${te}-uploading`]:{[`&${te}`]:{backgroundColor:C.colorFillAlter},[`&::before, ${V}-eye, ${V}-download, ${V}-delete`]:{display:"none"}},[`${te}-progress`]:{bottom:C.marginXL,width:`calc(100% - ${unit$1(J(C.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${$}-wrapper${$}-picture-circle-wrapper`]:{[`${$}${$}-select`]:{borderRadius:"50%"}}}},genRtlStyle=C=>{const{componentCls:$}=C;return{[`${$}-rtl`]:{direction:"rtl"}}},genRtlStyle$1=genRtlStyle,genBaseStyle=C=>{const{componentCls:$,colorTextDisabled:V}=C;return{[`${$}-wrapper`]:Object.assign(Object.assign({},resetComponent(C)),{[$]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${$}-select`]:{display:"inline-block"},[`${$}-hidden`]:{display:"none"},[`${$}-disabled`]:{color:V,cursor:"not-allowed"}})}},prepareComponentToken=C=>({actionsColor:C.colorIcon}),useStyle=genStyleHooks("Upload",C=>{const{fontSizeHeading3:$,fontHeight:V,lineWidth:F,controlHeightLG:K,calc:J}=C,ee=merge(C,{uploadThumbnailSize:J($).mul(2).equal(),uploadProgressOffset:J(J(V).div(2)).add(F).equal(),uploadPicCardSize:J(K).mul(2.55).equal()});return[genBaseStyle(ee),genDraggerStyle$1(ee),genPictureStyle(ee),genPictureCardStyle(ee),genListStyle$1(ee),genMotionStyle$1(ee),genRtlStyle$1(ee),genCollapseMotion$1(ee)]},prepareComponentToken);function file2Obj(C){return Object.assign(Object.assign({},C),{lastModified:C.lastModified,lastModifiedDate:C.lastModifiedDate,name:C.name,size:C.size,type:C.type,uid:C.uid,percent:0,originFileObj:C})}function updateFileList(C,$){const V=_toConsumableArray($),F=V.findIndex(K=>{let{uid:J}=K;return J===C.uid});return F===-1?V.push(C):V[F]=C,V}function getFileItem(C,$){const V=C.uid!==void 0?"uid":"name";return $.filter(F=>F[V]===C[V])[0]}function removeFileItem(C,$){const V=C.uid!==void 0?"uid":"name",F=$.filter(K=>K[V]!==C[V]);return F.length===$.length?null:F}const extname=function(){const $=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),F=$[$.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(F)||[""])[0]},isImageFileType=C=>C.indexOf("image/")===0,isImageUrl=C=>{if(C.type&&!C.thumbUrl)return isImageFileType(C.type);const $=C.thumbUrl||C.url||"",V=extname($);return/^data:image\//.test($)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(V)?!0:!(/^data:/.test($)||V)},MEASURE_SIZE=200;function previewImage(C){return new Promise($=>{if(!C.type||!isImageFileType(C.type)){$("");return}const V=document.createElement("canvas");V.width=MEASURE_SIZE,V.height=MEASURE_SIZE,V.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(V);const F=V.getContext("2d"),K=new Image;if(K.onload=()=>{const{width:J,height:ee}=K;let te=MEASURE_SIZE,ne=MEASURE_SIZE,re=0,ae=0;J>ee?(ne=ee*(MEASURE_SIZE/J),ae=-(ne-te)/2):(te=J*(MEASURE_SIZE/ee),re=-(te-ne)/2),F.drawImage(K,re,ae,te,ne);const oe=V.toDataURL();document.body.removeChild(V),window.URL.revokeObjectURL(K.src),$(oe)},K.crossOrigin="anonymous",C.type.startsWith("image/svg+xml")){const J=new FileReader;J.onload=()=>{J.result&&typeof J.result=="string"&&(K.src=J.result)},J.readAsDataURL(C)}else if(C.type.startsWith("image/gif")){const J=new FileReader;J.onload=()=>{J.result&&$(J.result)},J.readAsDataURL(C)}else K.src=window.URL.createObjectURL(C)})}const ListItem=React__namespace.forwardRef((C,$)=>{let{prefixCls:V,className:F,style:K,locale:J,listType:ee,file:te,items:ne,progress:re,iconRender:ae,actionIconRender:oe,itemRender:ie,isImgUrl:se,showPreviewIcon:ce,showRemoveIcon:de,showDownloadIcon:le,previewIcon:ve,removeIcon:fe,downloadIcon:he,extra:me,onPreview:ue,onDownload:pe,onClose:ye}=C;var be,ge;const{status:_e}=te,[Se,Ee]=React__namespace.useState(_e);React__namespace.useEffect(()=>{_e!=="removed"&&Ee(_e)},[_e]);const[Ce,xe]=React__namespace.useState(!1);React__namespace.useEffect(()=>{const Pe=setTimeout(()=>{xe(!0)},300);return()=>{clearTimeout(Pe)}},[]);const $e=ae(te);let Ie=React__namespace.createElement("div",{className:`${V}-icon`},$e);if(ee==="picture"||ee==="picture-card"||ee==="picture-circle")if(Se==="uploading"||!te.thumbUrl&&!te.url){const Pe=classNames(`${V}-list-item-thumbnail`,{[`${V}-list-item-file`]:Se!=="uploading"});Ie=React__namespace.createElement("div",{className:Pe},$e)}else{const Pe=se!=null&&se(te)?React__namespace.createElement("img",{src:te.thumbUrl||te.url,alt:te.name,className:`${V}-list-item-image`,crossOrigin:te.crossOrigin}):$e,Me=classNames(`${V}-list-item-thumbnail`,{[`${V}-list-item-file`]:se&&!se(te)});Ie=React__namespace.createElement("a",{className:Me,onClick:He=>ue(te,He),href:te.url||te.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Pe)}const Fe=classNames(`${V}-list-item`,`${V}-list-item-${Se}`),Ne=typeof te.linkProps=="string"?JSON.parse(te.linkProps):te.linkProps,De=(typeof de=="function"?de(te):de)?oe((typeof fe=="function"?fe(te):fe)||React__namespace.createElement(DeleteOutlined$1,null),()=>ye(te),V,J.removeFile,!0):null,Oe=(typeof le=="function"?le(te):le)&&Se==="done"?oe((typeof he=="function"?he(te):he)||React__namespace.createElement(DownloadOutlined$1,null),()=>pe(te),V,J.downloadFile):null,we=ee!=="picture-card"&&ee!=="picture-circle"&&React__namespace.createElement("span",{key:"download-delete",className:classNames(`${V}-list-item-actions`,{picture:ee==="picture"})},Oe,De),Ae=typeof me=="function"?me(te):me,ke=Ae&&React__namespace.createElement("span",{className:`${V}-list-item-extra`},Ae),je=classNames(`${V}-list-item-name`),ze=te.url?React__namespace.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:je,title:te.name},Ne,{href:te.url,onClick:Pe=>ue(te,Pe)}),te.name,ke):React__namespace.createElement("span",{key:"view",className:je,onClick:Pe=>ue(te,Pe),title:te.name},te.name,ke),Ve=(typeof ce=="function"?ce(te):ce)&&(te.url||te.thumbUrl)?React__namespace.createElement("a",{href:te.url||te.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Pe=>ue(te,Pe),title:J.previewFile},typeof ve=="function"?ve(te):ve||React__namespace.createElement(EyeOutlined$1,null)):null,Xe=(ee==="picture-card"||ee==="picture-circle")&&Se!=="uploading"&&React__namespace.createElement("span",{className:`${V}-list-item-actions`},Ve,Se==="done"&&Oe,De),{getPrefixCls:Ye}=React__namespace.useContext(ConfigContext),at=Ye(),Ue=React__namespace.createElement("div",{className:Fe},Ie,ze,we,Xe,Ce&&React__namespace.createElement(CSSMotion,{motionName:`${at}-fade`,visible:Se==="uploading",motionDeadline:2e3},Pe=>{let{className:Me}=Pe;const He="percent"in te?React__namespace.createElement(Progress$1,Object.assign({},re,{type:"line",percent:te.percent,"aria-label":te["aria-label"],"aria-labelledby":te["aria-labelledby"]})):null;return React__namespace.createElement("div",{className:classNames(`${V}-list-item-progress`,Me)},He)})),Le=te.response&&typeof te.response=="string"?te.response:((be=te.error)===null||be===void 0?void 0:be.statusText)||((ge=te.error)===null||ge===void 0?void 0:ge.message)||J.uploadError,Te=Se==="error"?React__namespace.createElement(Tooltip$1,{title:Le,getPopupContainer:Pe=>Pe.parentNode},Ue):Ue;return React__namespace.createElement("div",{className:classNames(`${V}-list-item-container`,F),style:K,ref:$},ie?ie(Te,te,ne,{download:pe.bind(null,te),preview:ue.bind(null,te),remove:ye.bind(null,te)}):Te)}),ListItem$1=ListItem,InternalUploadList=(C,$)=>{const{listType:V="text",previewFile:F=previewImage,onPreview:K,onDownload:J,onRemove:ee,locale:te,iconRender:ne,isImageUrl:re=isImageUrl,prefixCls:ae,items:oe=[],showPreviewIcon:ie=!0,showRemoveIcon:se=!0,showDownloadIcon:ce=!1,removeIcon:de,previewIcon:le,downloadIcon:ve,extra:fe,progress:he={size:[-1,2],showInfo:!1},appendAction:me,appendActionVisible:ue=!0,itemRender:pe,disabled:ye}=C,be=useForceUpdate(),[ge,_e]=React__namespace.useState(!1),Se=["picture-card","picture-circle"].includes(V);React__namespace.useEffect(()=>{V.startsWith("picture")&&(oe||[]).forEach(ke=>{!(ke.originFileObj instanceof File||ke.originFileObj instanceof Blob)||ke.thumbUrl!==void 0||(ke.thumbUrl="",F==null||F(ke.originFileObj).then(je=>{ke.thumbUrl=je||"",be()}))})},[V,oe,F]),React__namespace.useEffect(()=>{_e(!0)},[]);const Ee=(ke,je)=>{if(K)return je==null||je.preventDefault(),K(ke)},Ce=ke=>{typeof J=="function"?J(ke):ke.url&&window.open(ke.url)},xe=ke=>{ee==null||ee(ke)},$e=ke=>{if(ne)return ne(ke,V);const je=ke.status==="uploading";if(V.startsWith("picture")){const ze=V==="picture"?React__namespace.createElement(LoadingOutlined$1,null):te.uploading,Ve=re!=null&&re(ke)?React__namespace.createElement(PictureTwoTone$1,null):React__namespace.createElement(FileTwoTone$1,null);return je?ze:Ve}return je?React__namespace.createElement(LoadingOutlined$1,null):React__namespace.createElement(PaperClipOutlined$1,null)},Ie=(ke,je,ze,Ve,Xe)=>{const Ye={type:"text",size:"small",title:Ve,onClick:at=>{var Ue,Le;je(),React__namespace.isValidElement(ke)&&((Le=(Ue=ke.props).onClick)===null||Le===void 0||Le.call(Ue,at))},className:`${ze}-list-item-action`,disabled:Xe?ye:!1};return React__namespace.isValidElement(ke)?React__namespace.createElement(Button$2,Object.assign({},Ye,{icon:cloneElement(ke,Object.assign(Object.assign({},ke.props),{onClick:()=>{}}))})):React__namespace.createElement(Button$2,Object.assign({},Ye),React__namespace.createElement("span",null,ke))};React__namespace.useImperativeHandle($,()=>({handlePreview:Ee,handleDownload:Ce}));const{getPrefixCls:Fe}=React__namespace.useContext(ConfigContext),Ne=Fe("upload",ae),De=Fe(),Oe=classNames(`${Ne}-list`,`${Ne}-list-${V}`),we=React__namespace.useMemo(()=>omit(initCollapseMotion$1(De),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[De]),Ae=Object.assign(Object.assign({},Se?{}:we),{motionDeadline:2e3,motionName:`${Ne}-${Se?"animate-inline":"animate"}`,keys:_toConsumableArray(oe.map(ke=>({key:ke.uid,file:ke}))),motionAppear:ge});return React__namespace.createElement("div",{className:Oe},React__namespace.createElement(CSSMotionList,Object.assign({},Ae,{component:!1}),ke=>{let{key:je,file:ze,className:Ve,style:Xe}=ke;return React__namespace.createElement(ListItem$1,{key:je,locale:te,prefixCls:Ne,className:Ve,style:Xe,file:ze,items:oe,progress:he,listType:V,isImgUrl:re,showPreviewIcon:ie,showRemoveIcon:se,showDownloadIcon:ce,removeIcon:de,previewIcon:le,downloadIcon:ve,extra:fe,iconRender:$e,actionIconRender:Ie,itemRender:pe,onPreview:Ee,onDownload:Ce,onClose:xe})}),me&&React__namespace.createElement(CSSMotion,Object.assign({},Ae,{visible:ue,forceRender:!0}),ke=>{let{className:je,style:ze}=ke;return cloneElement(me,Ve=>({className:classNames(Ve.className,je),style:Object.assign(Object.assign(Object.assign({},ze),{pointerEvents:je?"none":void 0}),Ve.style)}))}))},UploadList=React__namespace.forwardRef(InternalUploadList);process.env.NODE_ENV!=="production"&&(UploadList.displayName="UploadList");const UploadList$1=UploadList;var __awaiter=globalThis&&globalThis.__awaiter||function(C,$,V,F){function K(J){return J instanceof V?J:new V(function(ee){ee(J)})}return new(V||(V=Promise))(function(J,ee){function te(ae){try{re(F.next(ae))}catch(oe){ee(oe)}}function ne(ae){try{re(F.throw(ae))}catch(oe){ee(oe)}}function re(ae){ae.done?J(ae.value):K(ae.value).then(te,ne)}re((F=F.apply(C,$||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(C,$)=>{const{fileList:V,defaultFileList:F,onRemove:K,showUploadList:J=!0,listType:ee="text",onPreview:te,onDownload:ne,onChange:re,onDrop:ae,previewFile:oe,disabled:ie,locale:se,iconRender:ce,isImageUrl:de,progress:le,prefixCls:ve,className:fe,type:he="select",children:me,style:ue,itemRender:pe,maxCount:ye,data:be={},multiple:ge=!1,hasControlInside:_e=!0,action:Se="",accept:Ee="",supportServerRender:Ce=!0,rootClassName:xe}=C,$e=React__namespace.useContext(DisabledContext$1),Ie=ie!=null?ie:$e,[Fe,Ne]=useMergedState(F||[],{value:V,postState:nt=>nt!=null?nt:[]}),[De,Oe]=React__namespace.useState("drop"),we=React__namespace.useRef(null),Ae=React__namespace.useRef(null);if(process.env.NODE_ENV!=="production"){const nt=devUseWarning("Upload");process.env.NODE_ENV!=="production"&&nt("fileList"in C||!("value"in C),"usage","`value` is not a valid prop, do you mean `fileList`?"),nt.deprecated(!("transformFile"in C),"transformFile","beforeUpload")}React__namespace.useMemo(()=>{const nt=Date.now();(V||[]).forEach((tt,qe)=>{!tt.uid&&!Object.isFrozen(tt)&&(tt.uid=`__AUTO__${nt}_${qe}__`)})},[V]);const ke=(nt,tt,qe)=>{let ot=_toConsumableArray(tt),ft=!1;ye===1?ot=ot.slice(-1):ye&&(ft=ot.length>ye,ot=ot.slice(0,ye)),ReactDOM.flushSync(()=>{Ne(ot)});const yt={file:nt,fileList:ot};qe&&(yt.event=qe),(!ft||nt.status==="removed"||ot.some($t=>$t.uid===nt.uid))&&ReactDOM.flushSync(()=>{re==null||re(yt)})},je=(nt,tt)=>__awaiter(void 0,void 0,void 0,function*(){const{beforeUpload:qe,transformFile:ot}=C;let ft=nt;if(qe){const yt=yield qe(nt,tt);if(yt===!1)return!1;if(delete nt[LIST_IGNORE],yt===LIST_IGNORE)return Object.defineProperty(nt,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof yt=="object"&&yt&&(ft=yt)}return ot&&(ft=yield ot(ft)),ft}),ze=nt=>{const tt=nt.filter(ft=>!ft.file[LIST_IGNORE]);if(!tt.length)return;const qe=tt.map(ft=>file2Obj(ft.file));let ot=_toConsumableArray(Fe);qe.forEach(ft=>{ot=updateFileList(ft,ot)}),qe.forEach((ft,yt)=>{let $t=ft;if(tt[yt].parsedFile)ft.status="uploading";else{const{originFileObj:kt}=ft;let Dt;try{Dt=new File([kt],kt.name,{type:kt.type})}catch(St){Dt=new Blob([kt],{type:kt.type}),Dt.name=kt.name,Dt.lastModifiedDate=new Date,Dt.lastModified=new Date().getTime()}Dt.uid=ft.uid,$t=Dt}ke($t,ot)})},Ve=(nt,tt,qe)=>{try{typeof nt=="string"&&(nt=JSON.parse(nt))}catch(yt){}if(!getFileItem(tt,Fe))return;const ot=file2Obj(tt);ot.status="done",ot.percent=100,ot.response=nt,ot.xhr=qe;const ft=updateFileList(ot,Fe);ke(ot,ft)},Xe=(nt,tt)=>{if(!getFileItem(tt,Fe))return;const qe=file2Obj(tt);qe.status="uploading",qe.percent=nt.percent;const ot=updateFileList(qe,Fe);ke(qe,ot,nt)},Ye=(nt,tt,qe)=>{if(!getFileItem(qe,Fe))return;const ot=file2Obj(qe);ot.error=nt,ot.response=tt,ot.status="error";const ft=updateFileList(ot,Fe);ke(ot,ft)},at=nt=>{let tt;Promise.resolve(typeof K=="function"?K(nt):K).then(qe=>{var ot;if(qe===!1)return;const ft=removeFileItem(nt,Fe);ft&&(tt=Object.assign(Object.assign({},nt),{status:"removed"}),Fe==null||Fe.forEach(yt=>{const $t=tt.uid!==void 0?"uid":"name";yt[$t]===tt[$t]&&!Object.isFrozen(yt)&&(yt.status="removed")}),(ot=we.current)===null||ot===void 0||ot.abort(tt),ke(tt,ft))})},Ue=nt=>{Oe(nt.type),nt.type==="drop"&&(ae==null||ae(nt))};React__namespace.useImperativeHandle($,()=>({onBatchStart:ze,onSuccess:Ve,onProgress:Xe,onError:Ye,fileList:Fe,upload:we.current,nativeElement:Ae.current}));const{getPrefixCls:Le,direction:Te,upload:Pe}=React__namespace.useContext(ConfigContext),Me=Le("upload",ve),He=Object.assign(Object.assign({onBatchStart:ze,onError:Ye,onProgress:Xe,onSuccess:Ve},C),{data:be,multiple:ge,action:Se,accept:Ee,supportServerRender:Ce,prefixCls:Me,disabled:Ie,beforeUpload:je,onChange:void 0,hasControlInside:_e});delete He.className,delete He.style,(!me||Ie)&&delete He.id;const We=`${Me}-wrapper`,[Ke,rt,st]=useStyle(Me,We),[it]=useLocale$1("Upload",defaultLocale.Upload),{showRemoveIcon:Je,showPreviewIcon:ct,showDownloadIcon:dt,removeIcon:vt,previewIcon:ht,downloadIcon:bt,extra:Rt}=typeof J=="boolean"?{}:J,wt=typeof Je=="undefined"?!Ie:Je,lt=(nt,tt)=>J?React__namespace.createElement(UploadList$1,{prefixCls:Me,listType:ee,items:Fe,previewFile:oe,onPreview:te,onDownload:ne,onRemove:at,showRemoveIcon:wt,showPreviewIcon:ct,showDownloadIcon:dt,removeIcon:vt,previewIcon:ht,downloadIcon:bt,iconRender:ce,extra:Rt,locale:Object.assign(Object.assign({},it),se),isImageUrl:de,progress:le,appendAction:nt,appendActionVisible:tt,itemRender:pe,disabled:Ie}):nt,ut=classNames(We,fe,xe,rt,st,Pe==null?void 0:Pe.className,{[`${Me}-rtl`]:Te==="rtl",[`${Me}-picture-card-wrapper`]:ee==="picture-card",[`${Me}-picture-circle-wrapper`]:ee==="picture-circle"}),Ge=Object.assign(Object.assign({},Pe==null?void 0:Pe.style),ue);if(he==="drag"){const nt=classNames(rt,Me,`${Me}-drag`,{[`${Me}-drag-uploading`]:Fe.some(tt=>tt.status==="uploading"),[`${Me}-drag-hover`]:De==="dragover",[`${Me}-disabled`]:Ie,[`${Me}-rtl`]:Te==="rtl"});return Ke(React__namespace.createElement("span",{className:ut,ref:Ae},React__namespace.createElement("div",{className:nt,style:Ge,onDrop:Ue,onDragOver:Ue,onDragLeave:Ue},React__namespace.createElement(Upload$3,Object.assign({},He,{ref:we,className:`${Me}-btn`}),React__namespace.createElement("div",{className:`${Me}-drag-container`},me))),lt()))}const et=classNames(Me,`${Me}-select`,{[`${Me}-disabled`]:Ie,[`${Me}-hidden`]:!me}),Ze=React__namespace.createElement("div",{className:et},React__namespace.createElement(Upload$3,Object.assign({},He,{ref:we})));return Ke(ee==="picture-card"||ee==="picture-circle"?React__namespace.createElement("span",{className:ut,ref:Ae},lt(Ze,!!me)):React__namespace.createElement("span",{className:ut,ref:Ae},Ze,lt()))},Upload$2=React__namespace.forwardRef(InternalUpload);process.env.NODE_ENV!=="production"&&(Upload$2.displayName="Upload");const InternalUpload$1=Upload$2;var __rest=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const Dragger=React__namespace.forwardRef((C,$)=>{var{style:V,height:F,hasControlInside:K=!1}=C,J=__rest(C,["style","height","hasControlInside"]);return React__namespace.createElement(InternalUpload$1,Object.assign({ref:$,hasControlInside:K},J,{type:"drag",style:Object.assign(Object.assign({},V),{height:F})}))});process.env.NODE_ENV!=="production"&&(Dragger.displayName="Dragger");const Dragger$1=Dragger,Upload=InternalUpload$1;Upload.Dragger=Dragger$1,Upload.LIST_IGNORE=LIST_IGNORE;const Upload$1=Upload,APPLICATION_STATUS$1={APPLICATION_FORM:"application_form",RESUME_FITMENT_CHECK:"resume_fitment_check",RESUME_CHOICE_SELECT:"resume_choice_select",SAVED:"Saved",WITHDRAWN:"Application Withdrawn",SUCCESSFULLY_APPLIED:"successfully_applied"},SIDER_WIDTH={PROFILE_DETAILS:"25%",JOB_DETAILS:"60%"},JOB_FILTER_TAGS={relevant:{label:"Preferred Jobs",icon:UnlockOutlined$1},all:{label:"All Jobs",icon:RiseOutlined$1},saved:{label:"Saved",icon:DownloadOutlined$1},applied:{label:"Applied",icon:CheckCircleOutlined$1}},TAG_TO_TAB_MAPPING={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},COUNT_TO_TAB_MAPPING={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},SORTING_OPTIONS={default:{label:"Default",value:"default",mapping:{property:"default",direction:"DESC"}},eligibility:{label:"Eligibility",value:"eligibility",mapping:{property:"eligibility",direction:"DESC"}},popularity:{label:"Popularity",value:"popularity",mapping:{property:"popularity",direction:"DESC"}},leastApplied:{label:"Least Applied",value:"leastApplied",mapping:{property:"popularity",direction:"ASC"}},mostRecent:{label:"Most Recent",value:"mostRecent",mapping:{property:"date_posted_on",direction:"DESC"}}},JOB_BODY_TABS={ABOUT_ROLE:{key:"about-role",label:"About Role"},REQUIREMENTS:{key:"requirements",label:"Requirements"},APPLICATION_TIMELINE:{key:"application-timeline",label:"Application Timeline"}},ALERT_FREQUENCY={REALTIME:0,DAILY:1,ALTERNATE_DAY:2,WEEKLY:7},ALERT_FREQUENCY_LABELS={[ALERT_FREQUENCY.REALTIME]:"Realtime",[ALERT_FREQUENCY.DAILY]:"Daily",[ALERT_FREQUENCY.ALTERNATE_DAY]:"Every alternate day",[ALERT_FREQUENCY.WEEKLY]:"Weekly"},ALERT_NOTIFICATION_TYPE={EMAIL:"email",WHATSAPP:"whatsapp",BOTH:"both"},ALERT_NOTIFICATION_LABELS={[ALERT_NOTIFICATION_TYPE.EMAIL]:"On Email",[ALERT_NOTIFICATION_TYPE.WHATSAPP]:"On Whatsapp",[ALERT_NOTIFICATION_TYPE.BOTH]:"On Email & Whatsapp"},ALERT_STATUS={ACTIVE:"active",INACTIVE:"inactive"},DEFAULT_PROCESS_COUNTS={all:0,relevant:0,draft:0,applications:0,saved:0,archived:0},HYDRATION_KEY="__CAREERS_HUB__",initialState$9={per_page:18,tab:"relevant",filters:{keyword:""},sortings:[SORTING_OPTIONS.default.mapping],page_number:1,skip_expired_jobs:!1},filterSlice=toolkit.createSlice({name:"filter",initialState:initialState$9,reducers:{setTab:(C,$)=>{C.tab=$.payload,C.page_number=1},setKeyword:(C,$)=>{C.filters.keyword=$.payload,C.page_number=1},setPageNumber:(C,$)=>{C.page_number=$.payload},setPerPage:(C,$)=>{C.per_page=$.payload,C.page_number=1},setSortings:(C,$)=>{C.sortings=$.payload},setSkipExpiredJobs:(C,$)=>{C.skip_expired_jobs=$.payload},resetFilters:C=>br(Hn({},initialState$9),{tab:C.tab}),updateFiltersFromForm:(C,$)=>{var F;const V=((F=C.filters)==null?void 0:F.keyword)||"";C.filters=Hn({keyword:V},$.payload),C.page_number=1},updateFormFilters:(C,$)=>{C.filters=Hn(Hn({},C.filters),$.payload)}}}),{setTab,setKeyword,setPageNumber,setPerPage,setSortings,setSkipExpiredJobs,resetFilters,updateFiltersFromForm,updateFormFilters}=filterSlice.actions,filterReducer=filterSlice.reducer;function n(C){for(var $=arguments.length,V=Array($>1?$-1:0),F=1;F<$;F++)V[F-1]=arguments[F];if(process.env.NODE_ENV!=="production"){var K=Y[C],J=K?typeof K=="function"?K.apply(null,V):K:"unknown error nr: "+C;throw Error("[Immer] "+J)}throw Error("[Immer] minified error nr: "+C+(V.length?" "+V.map(function(ee){return"'"+ee+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(C){return!!C&&!!C[Q]}function t(C){var $;return!!C&&(function(V){if(!V||typeof V!="object")return!1;var F=Object.getPrototypeOf(V);if(F===null)return!0;var K=Object.hasOwnProperty.call(F,"constructor")&&F.constructor;return K===Object||typeof K=="function"&&Function.toString.call(K)===Z}(C)||Array.isArray(C)||!!C[L]||!!(!(($=C.constructor)===null||$===void 0)&&$[L])||s(C)||v(C))}function i(C,$,V){V===void 0&&(V=!1),o(C)===0?(V?Object.keys:nn)(C).forEach(function(F){V&&typeof F=="symbol"||$(F,C[F],C)}):C.forEach(function(F,K){return $(K,F,C)})}function o(C){var $=C[Q];return $?$.i>3?$.i-4:$.i:Array.isArray(C)?1:s(C)?2:v(C)?3:0}function u(C,$){return o(C)===2?C.has($):Object.prototype.hasOwnProperty.call(C,$)}function a(C,$){return o(C)===2?C.get($):C[$]}function f(C,$,V){var F=o(C);F===2?C.set($,V):F===3?C.add(V):C[$]=V}function c(C,$){return C===$?C!==0||1/C==1/$:C!=C&&$!=$}function s(C){return X&&C instanceof Map}function v(C){return q&&C instanceof Set}function p(C){return C.o||C.t}function l(C){if(Array.isArray(C))return Array.prototype.slice.call(C);var $=rn(C);delete $[Q];for(var V=nn($),F=0;F<V.length;F++){var K=V[F],J=$[K];J.writable===!1&&(J.writable=!0,J.configurable=!0),(J.get||J.set)&&($[K]={configurable:!0,writable:!0,enumerable:J.enumerable,value:C[K]})}return Object.create(Object.getPrototypeOf(C),$)}function d(C,$){return $===void 0&&($=!1),y(C)||r(C)||!t(C)||(o(C)>1&&(C.set=C.add=C.clear=C.delete=h),Object.freeze(C),$&&i(C,function(V,F){return d(F,!0)},!0)),C}function h(){n(2)}function y(C){return C==null||typeof C!="object"||Object.isFrozen(C)}function b(C){var $=tn[C];return $||n(18,C),$}function m(C,$){tn[C]||(tn[C]=$)}function _(){return process.env.NODE_ENV==="production"||U||n(0),U}function j(C,$){$&&(b("Patches"),C.u=[],C.s=[],C.v=$)}function g(C){O(C),C.p.forEach(S),C.p=null}function O(C){C===U&&(U=C.l)}function w(C){return U={p:[],l:U,h:C,m:!0,_:0}}function S(C){var $=C[Q];$.i===0||$.i===1?$.j():$.g=!0}function P(C,$){$._=$.p.length;var V=$.p[0],F=C!==void 0&&C!==V;return $.h.O||b("ES5").S($,C,F),F?(V[Q].P&&(g($),n(4)),t(C)&&(C=M($,C),$.l||x($,C)),$.u&&b("Patches").M(V[Q].t,C,$.u,$.s)):C=M($,V,[]),g($),$.u&&$.v($.u,$.s),C!==H?C:void 0}function M(C,$,V){if(y($))return $;var F=$[Q];if(!F)return i($,function(te,ne){return A(C,F,$,te,ne,V)},!0),$;if(F.A!==C)return $;if(!F.P)return x(C,F.t,!0),F.t;if(!F.I){F.I=!0,F.A._--;var K=F.i===4||F.i===5?F.o=l(F.k):F.o,J=K,ee=!1;F.i===3&&(J=new Set(K),K.clear(),ee=!0),i(J,function(te,ne){return A(C,F,K,te,ne,V,ee)}),x(C,K,!1),V&&C.u&&b("Patches").N(F,V,C.u,C.s)}return F.o}function A(C,$,V,F,K,J,ee){if(process.env.NODE_ENV!=="production"&&K===V&&n(5),r(K)){var te=M(C,K,J&&$&&$.i!==3&&!u($.R,F)?J.concat(F):void 0);if(f(V,F,te),!r(te))return;C.m=!1}else ee&&V.add(K);if(t(K)&&!y(K)){if(!C.h.D&&C._<1)return;M(C,K),$&&$.A.l||x(C,K)}}function x(C,$,V){V===void 0&&(V=!1),!C.l&&C.h.D&&C.m&&d($,V)}function z(C,$){var V=C[Q];return(V?p(V):C)[$]}function I(C,$){if($ in C)for(var V=Object.getPrototypeOf(C);V;){var F=Object.getOwnPropertyDescriptor(V,$);if(F)return F;V=Object.getPrototypeOf(V)}}function k(C){C.P||(C.P=!0,C.l&&k(C.l))}function E(C){C.o||(C.o=l(C.t))}function N(C,$,V){var F=s($)?b("MapSet").F($,V):v($)?b("MapSet").T($,V):C.O?function(K,J){var ee=Array.isArray(K),te={i:ee?1:0,A:J?J.A:_(),P:!1,I:!1,R:{},l:J,t:K,k:null,o:null,j:null,C:!1},ne=te,re=en;ee&&(ne=[te],re=on);var ae=Proxy.revocable(ne,re),oe=ae.revoke,ie=ae.proxy;return te.k=ie,te.j=oe,ie}($,V):b("ES5").J($,V);return(V?V.A:_()).p.push(F),F}function R(C){return r(C)||n(22,C),function $(V){if(!t(V))return V;var F,K=V[Q],J=o(V);if(K){if(!K.P&&(K.i<4||!b("ES5").K(K)))return K.t;K.I=!0,F=D(V,J),K.I=!1}else F=D(V,J);return i(F,function(ee,te){K&&a(K.t,ee)===te||f(F,ee,$(te))}),J===3?new Set(F):F}(C)}function D(C,$){switch($){case 2:return new Map(C);case 3:return Array.from(C)}return l(C)}function T(){function C(F){if(!t(F))return F;if(Array.isArray(F))return F.map(C);if(s(F))return new Map(Array.from(F.entries()).map(function(ee){return[ee[0],C(ee[1])]}));if(v(F))return new Set(Array.from(F).map(C));var K=Object.create(Object.getPrototypeOf(F));for(var J in F)K[J]=C(F[J]);return u(F,L)&&(K[L]=F[L]),K}function $(F){return r(F)?C(F):F}var V="add";m("Patches",{$:function(F,K){return K.forEach(function(J){for(var ee=J.path,te=J.op,ne=F,re=0;re<ee.length-1;re++){var ae=o(ne),oe=ee[re];typeof oe!="string"&&typeof oe!="number"&&(oe=""+oe),ae!==0&&ae!==1||oe!=="__proto__"&&oe!=="constructor"||n(24),typeof ne=="function"&&oe==="prototype"&&n(24),typeof(ne=a(ne,oe))!="object"&&n(15,ee.join("/"))}var ie=o(ne),se=C(J.value),ce=ee[ee.length-1];switch(te){case"replace":switch(ie){case 2:return ne.set(ce,se);case 3:n(16);default:return ne[ce]=se}case V:switch(ie){case 1:return ce==="-"?ne.push(se):ne.splice(ce,0,se);case 2:return ne.set(ce,se);case 3:return ne.add(se);default:return ne[ce]=se}case"remove":switch(ie){case 1:return ne.splice(ce,1);case 2:return ne.delete(ce);case 3:return ne.delete(J.value);default:return delete ne[ce]}default:n(17,te)}}),F},N:function(F,K,J,ee){switch(F.i){case 0:case 4:case 2:return function(te,ne,re,ae){var oe=te.t,ie=te.o;i(te.R,function(se,ce){var de=a(oe,se),le=a(ie,se),ve=ce?u(oe,se)?"replace":V:"remove";if(de!==le||ve!=="replace"){var fe=ne.concat(se);re.push(ve==="remove"?{op:ve,path:fe}:{op:ve,path:fe,value:le}),ae.push(ve===V?{op:"remove",path:fe}:ve==="remove"?{op:V,path:fe,value:$(de)}:{op:"replace",path:fe,value:$(de)})}})}(F,K,J,ee);case 5:case 1:return function(te,ne,re,ae){var oe=te.t,ie=te.R,se=te.o;if(se.length<oe.length){var ce=[se,oe];oe=ce[0],se=ce[1];var de=[ae,re];re=de[0],ae=de[1]}for(var le=0;le<oe.length;le++)if(ie[le]&&se[le]!==oe[le]){var ve=ne.concat([le]);re.push({op:"replace",path:ve,value:$(se[le])}),ae.push({op:"replace",path:ve,value:$(oe[le])})}for(var fe=oe.length;fe<se.length;fe++){var he=ne.concat([fe]);re.push({op:V,path:he,value:$(se[fe])})}oe.length<se.length&&ae.push({op:"replace",path:ne.concat(["length"]),value:oe.length})}(F,K,J,ee);case 3:return function(te,ne,re,ae){var oe=te.t,ie=te.o,se=0;oe.forEach(function(ce){if(!ie.has(ce)){var de=ne.concat([se]);re.push({op:"remove",path:de,value:ce}),ae.unshift({op:V,path:de,value:ce})}se++}),se=0,ie.forEach(function(ce){if(!oe.has(ce)){var de=ne.concat([se]);re.push({op:V,path:de,value:ce}),ae.unshift({op:"remove",path:de,value:ce})}se++})}(F,K,J,ee)}},M:function(F,K,J,ee){J.push({op:"replace",path:[],value:K===H?void 0:K}),ee.push({op:"replace",path:[],value:F})}})}var G,U,W=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",X=typeof Map!="undefined",q=typeof Set!="undefined",B=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(C){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+C},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(C){return"Cannot apply patch, path doesn't resolve: "+C},16:'Sets cannot have "replace" patches.',17:function(C){return"Unsupported patch operation: "+C},18:function(C){return"The plugin for '"+C+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+C+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(C){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+C+"'"},22:function(C){return"'current' expects a draft, got: "+C},23:function(C){return"'original' expects a draft, got: "+C},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(C){var $={};return nn(C).forEach(function(V){$[V]=Object.getOwnPropertyDescriptor(C,V)}),$},tn={},en={get:function(C,$){if($===Q)return C;var V=p(C);if(!u(V,$))return function(K,J,ee){var te,ne=I(J,ee);return ne?"value"in ne?ne.value:(te=ne.get)===null||te===void 0?void 0:te.call(K.k):void 0}(C,V,$);var F=V[$];return C.I||!t(F)?F:F===z(C.t,$)?(E(C),C.o[$]=N(C.A.h,F,C)):F},has:function(C,$){return $ in p(C)},ownKeys:function(C){return Reflect.ownKeys(p(C))},set:function(C,$,V){var F=I(p(C),$);if(F!=null&&F.set)return F.set.call(C.k,V),!0;if(!C.P){var K=z(p(C),$),J=K==null?void 0:K[Q];if(J&&J.t===V)return C.o[$]=V,C.R[$]=!1,!0;if(c(V,K)&&(V!==void 0||u(C.t,$)))return!0;E(C),k(C)}return C.o[$]===V&&(V!==void 0||$ in C.o)||Number.isNaN(V)&&Number.isNaN(C.o[$])||(C.o[$]=V,C.R[$]=!0),!0},deleteProperty:function(C,$){return z(C.t,$)!==void 0||$ in C.t?(C.R[$]=!1,E(C),k(C)):delete C.R[$],C.o&&delete C.o[$],!0},getOwnPropertyDescriptor:function(C,$){var V=p(C),F=Reflect.getOwnPropertyDescriptor(V,$);return F&&{writable:!0,configurable:C.i!==1||$!=="length",enumerable:F.enumerable,value:V[$]}},defineProperty:function(){n(11)},getPrototypeOf:function(C){return Object.getPrototypeOf(C.t)},setPrototypeOf:function(){n(12)}},on={};i(en,function(C,$){on[C]=function(){return arguments[0]=arguments[0][0],$.apply(this,arguments)}}),on.deleteProperty=function(C,$){return process.env.NODE_ENV!=="production"&&isNaN(parseInt($))&&n(13),on.set.call(this,C,$,void 0)},on.set=function(C,$,V){return process.env.NODE_ENV!=="production"&&$!=="length"&&isNaN(parseInt($))&&n(14),en.set.call(this,C[0],$,V,C[0])};var un=function(){function C(V){var F=this;this.O=B,this.D=!0,this.produce=function(K,J,ee){if(typeof K=="function"&&typeof J!="function"){var te=J;J=K;var ne=F;return function(de){var le=this;de===void 0&&(de=te);for(var ve=arguments.length,fe=Array(ve>1?ve-1:0),he=1;he<ve;he++)fe[he-1]=arguments[he];return ne.produce(de,function(me){var ue;return(ue=J).call.apply(ue,[le,me].concat(fe))})}}var re;if(typeof J!="function"&&n(6),ee!==void 0&&typeof ee!="function"&&n(7),t(K)){var ae=w(F),oe=N(F,K,void 0),ie=!0;try{re=J(oe),ie=!1}finally{ie?g(ae):O(ae)}return typeof Promise!="undefined"&&re instanceof Promise?re.then(function(de){return j(ae,ee),P(de,ae)},function(de){throw g(ae),de}):(j(ae,ee),P(re,ae))}if(!K||typeof K!="object"){if((re=J(K))===void 0&&(re=K),re===H&&(re=void 0),F.D&&d(re,!0),ee){var se=[],ce=[];b("Patches").M(K,re,se,ce),ee(se,ce)}return re}n(21,K)},this.produceWithPatches=function(K,J){if(typeof K=="function")return function(re){for(var ae=arguments.length,oe=Array(ae>1?ae-1:0),ie=1;ie<ae;ie++)oe[ie-1]=arguments[ie];return F.produceWithPatches(re,function(se){return K.apply(void 0,[se].concat(oe))})};var ee,te,ne=F.produce(K,J,function(re,ae){ee=re,te=ae});return typeof Promise!="undefined"&&ne instanceof Promise?ne.then(function(re){return[re,ee,te]}):[ne,ee,te]},typeof(V==null?void 0:V.useProxies)=="boolean"&&this.setUseProxies(V.useProxies),typeof(V==null?void 0:V.autoFreeze)=="boolean"&&this.setAutoFreeze(V.autoFreeze)}var $=C.prototype;return $.createDraft=function(V){t(V)||n(8),r(V)&&(V=R(V));var F=w(this),K=N(this,V,void 0);return K[Q].C=!0,O(F),K},$.finishDraft=function(V,F){var K=V&&V[Q];process.env.NODE_ENV!=="production"&&(K&&K.C||n(9),K.I&&n(10));var J=K.A;return j(J,F),P(void 0,J)},$.setAutoFreeze=function(V){this.D=V},$.setUseProxies=function(V){V&&!B&&n(20),this.O=V},$.applyPatches=function(V,F){var K;for(K=F.length-1;K>=0;K--){var J=F[K];if(J.path.length===0&&J.op==="replace"){V=J.value;break}}K>-1&&(F=F.slice(K+1));var ee=b("Patches").$;return r(V)?ee(V,F):this.produce(V,function(te){return ee(te,F)})},C}(),an=new un;an.produce;var cn=an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an),an.setUseProxies.bind(an);var pn=an.applyPatches.bind(an);an.createDraft.bind(an),an.finishDraft.bind(an);var NOT_FOUND="NOT_FOUND";function createSingletonCache(C){var $;return{get:function(F){return $&&C($.key,F)?$.value:NOT_FOUND},put:function(F,K){$={key:F,value:K}},getEntries:function(){return $?[$]:[]},clear:function(){$=void 0}}}function createLruCache(C,$){var V=[];function F(te){var ne=V.findIndex(function(ae){return $(te,ae.key)});if(ne>-1){var re=V[ne];return ne>0&&(V.splice(ne,1),V.unshift(re)),re.value}return NOT_FOUND}function K(te,ne){F(te)===NOT_FOUND&&(V.unshift({key:te,value:ne}),V.length>C&&V.pop())}function J(){return V}function ee(){V=[]}return{get:F,put:K,getEntries:J,clear:ee}}var defaultEqualityCheck=function($,V){return $===V};function createCacheKeyComparator(C){return function(V,F){if(V===null||F===null||V.length!==F.length)return!1;for(var K=V.length,J=0;J<K;J++)if(!C(V[J],F[J]))return!1;return!0}}function defaultMemoize(C,$){var V=typeof $=="object"?$:{equalityCheck:$},F=V.equalityCheck,K=F===void 0?defaultEqualityCheck:F,J=V.maxSize,ee=J===void 0?1:J,te=V.resultEqualityCheck,ne=createCacheKeyComparator(K),re=ee===1?createSingletonCache(ne):createLruCache(ee,ne);function ae(){var oe=re.get(arguments);if(oe===NOT_FOUND){if(oe=C.apply(null,arguments),te){var ie=re.getEntries(),se=ie.find(function(ce){return te(ce.value,oe)});se&&(oe=se.value)}re.put(arguments,oe)}return oe}return ae.clearCache=function(){return re.clear()},ae}var __generator=globalThis&&globalThis.__generator||function(C,$){var V={label:0,sent:function(){if(J[0]&1)throw J[1];return J[1]},trys:[],ops:[]},F,K,J,ee;return ee={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(ee[Symbol.iterator]=function(){return this}),ee;function te(re){return function(ae){return ne([re,ae])}}function ne(re){if(F)throw new TypeError("Generator is already executing.");for(;V;)try{if(F=1,K&&(J=re[0]&2?K.return:re[0]?K.throw||((J=K.return)&&J.call(K),0):K.next)&&!(J=J.call(K,re[1])).done)return J;switch(K=0,J&&(re=[re[0]&2,J.value]),re[0]){case 0:case 1:J=re;break;case 4:return V.label++,{value:re[1],done:!1};case 5:V.label++,K=re[1],re=[0];continue;case 7:re=V.ops.pop(),V.trys.pop();continue;default:if(J=V.trys,!(J=J.length>0&&J[J.length-1])&&(re[0]===6||re[0]===2)){V=0;continue}if(re[0]===3&&(!J||re[1]>J[0]&&re[1]<J[3])){V.label=re[1];break}if(re[0]===6&&V.label<J[1]){V.label=J[1],J=re;break}if(J&&V.label<J[2]){V.label=J[2],V.ops.push(re);break}J[2]&&V.ops.pop(),V.trys.pop();continue}re=$.call(C,V)}catch(ae){re=[6,ae],K=0}finally{F=J=0}if(re[0]&5)throw re[1];return{value:re[0]?re[1]:void 0,done:!0}}},__spreadArray$2=globalThis&&globalThis.__spreadArray||function(C,$){for(var V=0,F=$.length,K=C.length;V<F;V++,K++)C[K]=$[V];return C},__defProp$1=Object.defineProperty,__defProps$1=Object.defineProperties,__getOwnPropDescs$1=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$1=Object.getOwnPropertySymbols,__hasOwnProp$1=Object.prototype.hasOwnProperty,__propIsEnum$1=Object.prototype.propertyIsEnumerable,__defNormalProp$1=function(C,$,V){return $ in C?__defProp$1(C,$,{enumerable:!0,configurable:!0,writable:!0,value:V}):C[$]=V},__spreadValues$1=function(C,$){for(var V in $||($={}))__hasOwnProp$1.call($,V)&&__defNormalProp$1(C,V,$[V]);if(__getOwnPropSymbols$1)for(var F=0,K=__getOwnPropSymbols$1($);F<K.length;F++){var V=K[F];__propIsEnum$1.call($,V)&&__defNormalProp$1(C,V,$[V])}return C},__spreadProps$1=function(C,$){return __defProps$1(C,__getOwnPropDescs$1($))},__objRest=function(C,$){var V={};for(var F in C)__hasOwnProp$1.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&__getOwnPropSymbols$1)for(var K=0,J=__getOwnPropSymbols$1(C);K<J.length;K++){var F=J[K];$.indexOf(F)<0&&__propIsEnum$1.call(C,F)&&(V[F]=C[F])}return V},__async=function(C,$,V){return new Promise(function(F,K){var J=function(ne){try{te(V.next(ne))}catch(re){K(re)}},ee=function(ne){try{te(V.throw(ne))}catch(re){K(re)}},te=function(ne){return ne.done?F(ne.value):Promise.resolve(ne.value).then(J,ee)};te((V=V.apply(C,$)).next())})},QueryStatus;(function(C){C.uninitialized="uninitialized",C.pending="pending",C.fulfilled="fulfilled",C.rejected="rejected"})(QueryStatus||(QueryStatus={}));function getRequestStatusFlags(C){return{status:C,isUninitialized:C===QueryStatus.uninitialized,isLoading:C===QueryStatus.pending,isSuccess:C===QueryStatus.fulfilled,isError:C===QueryStatus.rejected}}function isAbsoluteUrl(C){return new RegExp("(^|:)//").test(C)}var withoutTrailingSlash=function(C){return C.replace(/\/$/,"")},withoutLeadingSlash=function(C){return C.replace(/^\//,"")};function joinUrls(C,$){if(!C)return $;if(!$)return C;if(isAbsoluteUrl($))return $;var V=C.endsWith("/")||!$.startsWith("?")?"/":"";return C=withoutTrailingSlash(C),$=withoutLeadingSlash($),""+C+V+$}var flatten=function(C){return[].concat.apply([],C)};function isOnline(){return typeof navigator=="undefined"||navigator.onLine===void 0?!0:navigator.onLine}function isDocumentVisible(){return typeof document=="undefined"?!0:document.visibilityState!=="hidden"}var isPlainObject$1=toolkit.isPlainObject;function copyWithStructuralSharing(C,$){if(C===$||!(isPlainObject$1(C)&&isPlainObject$1($)||Array.isArray(C)&&Array.isArray($)))return $;for(var V=Object.keys($),F=Object.keys(C),K=V.length===F.length,J=Array.isArray($)?[]:{},ee=0,te=V;ee<te.length;ee++){var ne=te[ee];J[ne]=copyWithStructuralSharing(C[ne],$[ne]),K&&(K=C[ne]===J[ne])}return K?C:J}var defaultFetchFn=function(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];return fetch.apply(void 0,C)},defaultValidateStatus=function(C){return C.status>=200&&C.status<=299},defaultIsJsonContentType=function(C){return/ion\/(vnd\.api\+)?json/.test(C.get("content-type")||"")};function stripUndefined(C){if(!toolkit.isPlainObject(C))return C;for(var $=__spreadValues$1({},C),V=0,F=Object.entries($);V<F.length;V++){var K=F[V],J=K[0],ee=K[1];ee===void 0&&delete $[J]}return $}function fetchBaseQuery(C){var $=this;C===void 0&&(C={});var V=C,F=V.baseUrl,K=V.prepareHeaders,J=K===void 0?function(fe){return fe}:K,ee=V.fetchFn,te=ee===void 0?defaultFetchFn:ee,ne=V.paramsSerializer,re=V.isJsonContentType,ae=re===void 0?defaultIsJsonContentType:re,oe=V.jsonContentType,ie=oe===void 0?"application/json":oe,se=V.jsonReplacer,ce=V.timeout,de=V.validateStatus,le=__objRest(V,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","validateStatus"]);return typeof fetch=="undefined"&&te===defaultFetchFn&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(fe,he){return __async($,null,function(){var me,ue,pe,ye,be,ge,_e,Se,Ee,Ce,xe,$e,Ie,Fe,Ne,De,Oe,we,Ae,ke,je,ze,Ve,Xe,Ye,at,Ue,Le,Te,Pe,Me,He,We,Ke,rt,st;return __generator(this,function(it){switch(it.label){case 0:return me=he.signal,ue=he.getState,pe=he.extra,ye=he.endpoint,be=he.forced,ge=he.type,Se=typeof fe=="string"?{url:fe}:fe,Ee=Se.url,Ce=Se.headers,xe=Ce===void 0?new Headers(le.headers):Ce,$e=Se.params,Ie=$e===void 0?void 0:$e,Fe=Se.responseHandler,Ne=Fe===void 0?"json":Fe,De=Se.validateStatus,Oe=De===void 0?de!=null?de:defaultValidateStatus:De,we=Se.timeout,Ae=we===void 0?ce:we,ke=__objRest(Se,["url","headers","params","responseHandler","validateStatus","timeout"]),je=__spreadValues$1(__spreadProps$1(__spreadValues$1({},le),{signal:me}),ke),xe=new Headers(stripUndefined(xe)),ze=je,[4,J(xe,{getState:ue,extra:pe,endpoint:ye,forced:be,type:ge})];case 1:ze.headers=it.sent()||xe,Ve=function(Je){return typeof Je=="object"&&(toolkit.isPlainObject(Je)||Array.isArray(Je)||typeof Je.toJSON=="function")},!je.headers.has("content-type")&&Ve(je.body)&&je.headers.set("content-type",ie),Ve(je.body)&&ae(je.headers)&&(je.body=JSON.stringify(je.body,se)),Ie&&(Xe=~Ee.indexOf("?")?"&":"?",Ye=ne?ne(Ie):new URLSearchParams(stripUndefined(Ie)),Ee+=Xe+Ye),Ee=joinUrls(F,Ee),at=new Request(Ee,je),Ue=at.clone(),_e={request:Ue},Te=!1,Pe=Ae&&setTimeout(function(){Te=!0,he.abort()},Ae),it.label=2;case 2:return it.trys.push([2,4,5,6]),[4,te(at)];case 3:return Le=it.sent(),[3,6];case 4:return Me=it.sent(),[2,{error:{status:Te?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Me)},meta:_e}];case 5:return Pe&&clearTimeout(Pe),[7];case 6:He=Le.clone(),_e.response=He,Ke="",it.label=7;case 7:return it.trys.push([7,9,,10]),[4,Promise.all([ve(Le,Ne).then(function(Je){return We=Je},function(Je){return rt=Je}),He.text().then(function(Je){return Ke=Je},function(){})])];case 8:if(it.sent(),rt)throw rt;return[3,10];case 9:return st=it.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:Le.status,data:Ke,error:String(st)},meta:_e}];case 10:return[2,Oe(Le,We)?{data:We,meta:_e}:{error:{status:Le.status,data:We},meta:_e}]}})})};function ve(fe,he){return __async(this,null,function(){var me;return __generator(this,function(ue){switch(ue.label){case 0:return typeof he=="function"?[2,he(fe)]:(he==="content-type"&&(he=ae(fe.headers)?"json":"text"),he!=="json"?[3,2]:[4,fe.text()]);case 1:return me=ue.sent(),[2,me.length?JSON.parse(me):null];case 2:return[2,fe.text()]}})})}}var HandledError=function(){function C($,V){V===void 0&&(V=void 0),this.value=$,this.meta=V}return C}(),onFocus=toolkit.createAction("__rtkq/focused"),onFocusLost=toolkit.createAction("__rtkq/unfocused"),onOnline=toolkit.createAction("__rtkq/online"),onOffline=toolkit.createAction("__rtkq/offline"),DefinitionType$1;(function(C){C.query="query",C.mutation="mutation"})(DefinitionType$1||(DefinitionType$1={}));function isQueryDefinition$1(C){return C.type===DefinitionType$1.query}function isMutationDefinition$1(C){return C.type===DefinitionType$1.mutation}function calculateProvidedBy(C,$,V,F,K,J){return isFunction(C)?C($,V,F,K).map(expandTagDescription).map(J):Array.isArray(C)?C.map(expandTagDescription).map(J):[]}function isFunction(C){return typeof C=="function"}function expandTagDescription(C){return typeof C=="string"?{type:C}:C}function isNotNullish(C){return C!=null}var forceQueryFnSymbol=Symbol("forceQueryFn"),isUpsertQuery=function(C){return typeof C[forceQueryFnSymbol]=="function"};function buildInitiate(C){var $=C.serializeQueryArgs,V=C.queryThunk,F=C.mutationThunk,K=C.api,J=C.context,ee=new Map,te=new Map,ne=K.internalActions,re=ne.unsubscribeQueryResult,ae=ne.removeMutationResult,oe=ne.updateSubscriptionOptions;return{buildInitiateQuery:he,buildInitiateMutation:me,getRunningQueryThunk:ce,getRunningMutationThunk:de,getRunningQueriesThunk:le,getRunningMutationsThunk:ve,getRunningOperationPromises:se,removalWarning:ie};function ie(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
426
+ `]:{zIndex:10,width:F,margin:`0 ${unit$1(C.marginXXS)}`,fontSize:F,cursor:"pointer",transition:`all ${C.motionDurationSlow}`,color:K,"&:hover":{color:K},svg:{verticalAlign:"baseline"}}},[`${te}-thumbnail, ${te}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${te}-name`]:{display:"none",textAlign:"center"},[`${te}-file + ${te}-name`]:{position:"absolute",bottom:C.margin,display:"block",width:`calc(100% - ${unit$1(J(C.paddingXS).mul(2).equal())})`},[`${te}-uploading`]:{[`&${te}`]:{backgroundColor:C.colorFillAlter},[`&::before, ${V}-eye, ${V}-download, ${V}-delete`]:{display:"none"}},[`${te}-progress`]:{bottom:C.marginXL,width:`calc(100% - ${unit$1(J(C.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${$}-wrapper${$}-picture-circle-wrapper`]:{[`${$}${$}-select`]:{borderRadius:"50%"}}}},genRtlStyle=C=>{const{componentCls:$}=C;return{[`${$}-rtl`]:{direction:"rtl"}}},genRtlStyle$1=genRtlStyle,genBaseStyle=C=>{const{componentCls:$,colorTextDisabled:V}=C;return{[`${$}-wrapper`]:Object.assign(Object.assign({},resetComponent(C)),{[$]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${$}-select`]:{display:"inline-block"},[`${$}-hidden`]:{display:"none"},[`${$}-disabled`]:{color:V,cursor:"not-allowed"}})}},prepareComponentToken=C=>({actionsColor:C.colorIcon}),useStyle=genStyleHooks("Upload",C=>{const{fontSizeHeading3:$,fontHeight:V,lineWidth:F,controlHeightLG:K,calc:J}=C,ee=merge(C,{uploadThumbnailSize:J($).mul(2).equal(),uploadProgressOffset:J(J(V).div(2)).add(F).equal(),uploadPicCardSize:J(K).mul(2.55).equal()});return[genBaseStyle(ee),genDraggerStyle$1(ee),genPictureStyle(ee),genPictureCardStyle(ee),genListStyle$1(ee),genMotionStyle$1(ee),genRtlStyle$1(ee),genCollapseMotion$1(ee)]},prepareComponentToken);function file2Obj(C){return Object.assign(Object.assign({},C),{lastModified:C.lastModified,lastModifiedDate:C.lastModifiedDate,name:C.name,size:C.size,type:C.type,uid:C.uid,percent:0,originFileObj:C})}function updateFileList(C,$){const V=_toConsumableArray($),F=V.findIndex(K=>{let{uid:J}=K;return J===C.uid});return F===-1?V.push(C):V[F]=C,V}function getFileItem(C,$){const V=C.uid!==void 0?"uid":"name";return $.filter(F=>F[V]===C[V])[0]}function removeFileItem(C,$){const V=C.uid!==void 0?"uid":"name",F=$.filter(K=>K[V]!==C[V]);return F.length===$.length?null:F}const extname=function(){const $=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),F=$[$.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(F)||[""])[0]},isImageFileType=C=>C.indexOf("image/")===0,isImageUrl=C=>{if(C.type&&!C.thumbUrl)return isImageFileType(C.type);const $=C.thumbUrl||C.url||"",V=extname($);return/^data:image\//.test($)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(V)?!0:!(/^data:/.test($)||V)},MEASURE_SIZE=200;function previewImage(C){return new Promise($=>{if(!C.type||!isImageFileType(C.type)){$("");return}const V=document.createElement("canvas");V.width=MEASURE_SIZE,V.height=MEASURE_SIZE,V.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(V);const F=V.getContext("2d"),K=new Image;if(K.onload=()=>{const{width:J,height:ee}=K;let te=MEASURE_SIZE,ne=MEASURE_SIZE,re=0,ae=0;J>ee?(ne=ee*(MEASURE_SIZE/J),ae=-(ne-te)/2):(te=J*(MEASURE_SIZE/ee),re=-(te-ne)/2),F.drawImage(K,re,ae,te,ne);const oe=V.toDataURL();document.body.removeChild(V),window.URL.revokeObjectURL(K.src),$(oe)},K.crossOrigin="anonymous",C.type.startsWith("image/svg+xml")){const J=new FileReader;J.onload=()=>{J.result&&typeof J.result=="string"&&(K.src=J.result)},J.readAsDataURL(C)}else if(C.type.startsWith("image/gif")){const J=new FileReader;J.onload=()=>{J.result&&$(J.result)},J.readAsDataURL(C)}else K.src=window.URL.createObjectURL(C)})}const ListItem=React__namespace.forwardRef((C,$)=>{let{prefixCls:V,className:F,style:K,locale:J,listType:ee,file:te,items:ne,progress:re,iconRender:ae,actionIconRender:oe,itemRender:ie,isImgUrl:se,showPreviewIcon:ce,showRemoveIcon:de,showDownloadIcon:le,previewIcon:ve,removeIcon:fe,downloadIcon:he,extra:me,onPreview:ue,onDownload:pe,onClose:ye}=C;var be,ge;const{status:_e}=te,[Se,Ee]=React__namespace.useState(_e);React__namespace.useEffect(()=>{_e!=="removed"&&Ee(_e)},[_e]);const[Ce,xe]=React__namespace.useState(!1);React__namespace.useEffect(()=>{const Pe=setTimeout(()=>{xe(!0)},300);return()=>{clearTimeout(Pe)}},[]);const $e=ae(te);let Ie=React__namespace.createElement("div",{className:`${V}-icon`},$e);if(ee==="picture"||ee==="picture-card"||ee==="picture-circle")if(Se==="uploading"||!te.thumbUrl&&!te.url){const Pe=classNames(`${V}-list-item-thumbnail`,{[`${V}-list-item-file`]:Se!=="uploading"});Ie=React__namespace.createElement("div",{className:Pe},$e)}else{const Pe=se!=null&&se(te)?React__namespace.createElement("img",{src:te.thumbUrl||te.url,alt:te.name,className:`${V}-list-item-image`,crossOrigin:te.crossOrigin}):$e,Me=classNames(`${V}-list-item-thumbnail`,{[`${V}-list-item-file`]:se&&!se(te)});Ie=React__namespace.createElement("a",{className:Me,onClick:He=>ue(te,He),href:te.url||te.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Pe)}const Fe=classNames(`${V}-list-item`,`${V}-list-item-${Se}`),Ne=typeof te.linkProps=="string"?JSON.parse(te.linkProps):te.linkProps,De=(typeof de=="function"?de(te):de)?oe((typeof fe=="function"?fe(te):fe)||React__namespace.createElement(DeleteOutlined$1,null),()=>ye(te),V,J.removeFile,!0):null,Oe=(typeof le=="function"?le(te):le)&&Se==="done"?oe((typeof he=="function"?he(te):he)||React__namespace.createElement(DownloadOutlined$1,null),()=>pe(te),V,J.downloadFile):null,we=ee!=="picture-card"&&ee!=="picture-circle"&&React__namespace.createElement("span",{key:"download-delete",className:classNames(`${V}-list-item-actions`,{picture:ee==="picture"})},Oe,De),Ae=typeof me=="function"?me(te):me,ke=Ae&&React__namespace.createElement("span",{className:`${V}-list-item-extra`},Ae),je=classNames(`${V}-list-item-name`),ze=te.url?React__namespace.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:je,title:te.name},Ne,{href:te.url,onClick:Pe=>ue(te,Pe)}),te.name,ke):React__namespace.createElement("span",{key:"view",className:je,onClick:Pe=>ue(te,Pe),title:te.name},te.name,ke),Ve=(typeof ce=="function"?ce(te):ce)&&(te.url||te.thumbUrl)?React__namespace.createElement("a",{href:te.url||te.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Pe=>ue(te,Pe),title:J.previewFile},typeof ve=="function"?ve(te):ve||React__namespace.createElement(EyeOutlined$1,null)):null,Xe=(ee==="picture-card"||ee==="picture-circle")&&Se!=="uploading"&&React__namespace.createElement("span",{className:`${V}-list-item-actions`},Ve,Se==="done"&&Oe,De),{getPrefixCls:Ye}=React__namespace.useContext(ConfigContext),at=Ye(),Ue=React__namespace.createElement("div",{className:Fe},Ie,ze,we,Xe,Ce&&React__namespace.createElement(CSSMotion,{motionName:`${at}-fade`,visible:Se==="uploading",motionDeadline:2e3},Pe=>{let{className:Me}=Pe;const He="percent"in te?React__namespace.createElement(Progress$1,Object.assign({},re,{type:"line",percent:te.percent,"aria-label":te["aria-label"],"aria-labelledby":te["aria-labelledby"]})):null;return React__namespace.createElement("div",{className:classNames(`${V}-list-item-progress`,Me)},He)})),Le=te.response&&typeof te.response=="string"?te.response:((be=te.error)===null||be===void 0?void 0:be.statusText)||((ge=te.error)===null||ge===void 0?void 0:ge.message)||J.uploadError,Te=Se==="error"?React__namespace.createElement(Tooltip$1,{title:Le,getPopupContainer:Pe=>Pe.parentNode},Ue):Ue;return React__namespace.createElement("div",{className:classNames(`${V}-list-item-container`,F),style:K,ref:$},ie?ie(Te,te,ne,{download:pe.bind(null,te),preview:ue.bind(null,te),remove:ye.bind(null,te)}):Te)}),ListItem$1=ListItem,InternalUploadList=(C,$)=>{const{listType:V="text",previewFile:F=previewImage,onPreview:K,onDownload:J,onRemove:ee,locale:te,iconRender:ne,isImageUrl:re=isImageUrl,prefixCls:ae,items:oe=[],showPreviewIcon:ie=!0,showRemoveIcon:se=!0,showDownloadIcon:ce=!1,removeIcon:de,previewIcon:le,downloadIcon:ve,extra:fe,progress:he={size:[-1,2],showInfo:!1},appendAction:me,appendActionVisible:ue=!0,itemRender:pe,disabled:ye}=C,be=useForceUpdate(),[ge,_e]=React__namespace.useState(!1),Se=["picture-card","picture-circle"].includes(V);React__namespace.useEffect(()=>{V.startsWith("picture")&&(oe||[]).forEach(ke=>{!(ke.originFileObj instanceof File||ke.originFileObj instanceof Blob)||ke.thumbUrl!==void 0||(ke.thumbUrl="",F==null||F(ke.originFileObj).then(je=>{ke.thumbUrl=je||"",be()}))})},[V,oe,F]),React__namespace.useEffect(()=>{_e(!0)},[]);const Ee=(ke,je)=>{if(K)return je==null||je.preventDefault(),K(ke)},Ce=ke=>{typeof J=="function"?J(ke):ke.url&&window.open(ke.url)},xe=ke=>{ee==null||ee(ke)},$e=ke=>{if(ne)return ne(ke,V);const je=ke.status==="uploading";if(V.startsWith("picture")){const ze=V==="picture"?React__namespace.createElement(LoadingOutlined$1,null):te.uploading,Ve=re!=null&&re(ke)?React__namespace.createElement(PictureTwoTone$1,null):React__namespace.createElement(FileTwoTone$1,null);return je?ze:Ve}return je?React__namespace.createElement(LoadingOutlined$1,null):React__namespace.createElement(PaperClipOutlined$1,null)},Ie=(ke,je,ze,Ve,Xe)=>{const Ye={type:"text",size:"small",title:Ve,onClick:at=>{var Ue,Le;je(),React__namespace.isValidElement(ke)&&((Le=(Ue=ke.props).onClick)===null||Le===void 0||Le.call(Ue,at))},className:`${ze}-list-item-action`,disabled:Xe?ye:!1};return React__namespace.isValidElement(ke)?React__namespace.createElement(Button$2,Object.assign({},Ye,{icon:cloneElement(ke,Object.assign(Object.assign({},ke.props),{onClick:()=>{}}))})):React__namespace.createElement(Button$2,Object.assign({},Ye),React__namespace.createElement("span",null,ke))};React__namespace.useImperativeHandle($,()=>({handlePreview:Ee,handleDownload:Ce}));const{getPrefixCls:Fe}=React__namespace.useContext(ConfigContext),Ne=Fe("upload",ae),De=Fe(),Oe=classNames(`${Ne}-list`,`${Ne}-list-${V}`),we=React__namespace.useMemo(()=>omit(initCollapseMotion$1(De),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[De]),Ae=Object.assign(Object.assign({},Se?{}:we),{motionDeadline:2e3,motionName:`${Ne}-${Se?"animate-inline":"animate"}`,keys:_toConsumableArray(oe.map(ke=>({key:ke.uid,file:ke}))),motionAppear:ge});return React__namespace.createElement("div",{className:Oe},React__namespace.createElement(CSSMotionList,Object.assign({},Ae,{component:!1}),ke=>{let{key:je,file:ze,className:Ve,style:Xe}=ke;return React__namespace.createElement(ListItem$1,{key:je,locale:te,prefixCls:Ne,className:Ve,style:Xe,file:ze,items:oe,progress:he,listType:V,isImgUrl:re,showPreviewIcon:ie,showRemoveIcon:se,showDownloadIcon:ce,removeIcon:de,previewIcon:le,downloadIcon:ve,extra:fe,iconRender:$e,actionIconRender:Ie,itemRender:pe,onPreview:Ee,onDownload:Ce,onClose:xe})}),me&&React__namespace.createElement(CSSMotion,Object.assign({},Ae,{visible:ue,forceRender:!0}),ke=>{let{className:je,style:ze}=ke;return cloneElement(me,Ve=>({className:classNames(Ve.className,je),style:Object.assign(Object.assign(Object.assign({},ze),{pointerEvents:je?"none":void 0}),Ve.style)}))}))},UploadList=React__namespace.forwardRef(InternalUploadList);process.env.NODE_ENV!=="production"&&(UploadList.displayName="UploadList");const UploadList$1=UploadList;var __awaiter=globalThis&&globalThis.__awaiter||function(C,$,V,F){function K(J){return J instanceof V?J:new V(function(ee){ee(J)})}return new(V||(V=Promise))(function(J,ee){function te(ae){try{re(F.next(ae))}catch(oe){ee(oe)}}function ne(ae){try{re(F.throw(ae))}catch(oe){ee(oe)}}function re(ae){ae.done?J(ae.value):K(ae.value).then(te,ne)}re((F=F.apply(C,$||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(C,$)=>{const{fileList:V,defaultFileList:F,onRemove:K,showUploadList:J=!0,listType:ee="text",onPreview:te,onDownload:ne,onChange:re,onDrop:ae,previewFile:oe,disabled:ie,locale:se,iconRender:ce,isImageUrl:de,progress:le,prefixCls:ve,className:fe,type:he="select",children:me,style:ue,itemRender:pe,maxCount:ye,data:be={},multiple:ge=!1,hasControlInside:_e=!0,action:Se="",accept:Ee="",supportServerRender:Ce=!0,rootClassName:xe}=C,$e=React__namespace.useContext(DisabledContext$1),Ie=ie!=null?ie:$e,[Fe,Ne]=useMergedState(F||[],{value:V,postState:nt=>nt!=null?nt:[]}),[De,Oe]=React__namespace.useState("drop"),we=React__namespace.useRef(null),Ae=React__namespace.useRef(null);if(process.env.NODE_ENV!=="production"){const nt=devUseWarning("Upload");process.env.NODE_ENV!=="production"&&nt("fileList"in C||!("value"in C),"usage","`value` is not a valid prop, do you mean `fileList`?"),nt.deprecated(!("transformFile"in C),"transformFile","beforeUpload")}React__namespace.useMemo(()=>{const nt=Date.now();(V||[]).forEach((tt,qe)=>{!tt.uid&&!Object.isFrozen(tt)&&(tt.uid=`__AUTO__${nt}_${qe}__`)})},[V]);const ke=(nt,tt,qe)=>{let ot=_toConsumableArray(tt),ft=!1;ye===1?ot=ot.slice(-1):ye&&(ft=ot.length>ye,ot=ot.slice(0,ye)),ReactDOM.flushSync(()=>{Ne(ot)});const yt={file:nt,fileList:ot};qe&&(yt.event=qe),(!ft||nt.status==="removed"||ot.some($t=>$t.uid===nt.uid))&&ReactDOM.flushSync(()=>{re==null||re(yt)})},je=(nt,tt)=>__awaiter(void 0,void 0,void 0,function*(){const{beforeUpload:qe,transformFile:ot}=C;let ft=nt;if(qe){const yt=yield qe(nt,tt);if(yt===!1)return!1;if(delete nt[LIST_IGNORE],yt===LIST_IGNORE)return Object.defineProperty(nt,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof yt=="object"&&yt&&(ft=yt)}return ot&&(ft=yield ot(ft)),ft}),ze=nt=>{const tt=nt.filter(ft=>!ft.file[LIST_IGNORE]);if(!tt.length)return;const qe=tt.map(ft=>file2Obj(ft.file));let ot=_toConsumableArray(Fe);qe.forEach(ft=>{ot=updateFileList(ft,ot)}),qe.forEach((ft,yt)=>{let $t=ft;if(tt[yt].parsedFile)ft.status="uploading";else{const{originFileObj:kt}=ft;let Dt;try{Dt=new File([kt],kt.name,{type:kt.type})}catch(St){Dt=new Blob([kt],{type:kt.type}),Dt.name=kt.name,Dt.lastModifiedDate=new Date,Dt.lastModified=new Date().getTime()}Dt.uid=ft.uid,$t=Dt}ke($t,ot)})},Ve=(nt,tt,qe)=>{try{typeof nt=="string"&&(nt=JSON.parse(nt))}catch(yt){}if(!getFileItem(tt,Fe))return;const ot=file2Obj(tt);ot.status="done",ot.percent=100,ot.response=nt,ot.xhr=qe;const ft=updateFileList(ot,Fe);ke(ot,ft)},Xe=(nt,tt)=>{if(!getFileItem(tt,Fe))return;const qe=file2Obj(tt);qe.status="uploading",qe.percent=nt.percent;const ot=updateFileList(qe,Fe);ke(qe,ot,nt)},Ye=(nt,tt,qe)=>{if(!getFileItem(qe,Fe))return;const ot=file2Obj(qe);ot.error=nt,ot.response=tt,ot.status="error";const ft=updateFileList(ot,Fe);ke(ot,ft)},at=nt=>{let tt;Promise.resolve(typeof K=="function"?K(nt):K).then(qe=>{var ot;if(qe===!1)return;const ft=removeFileItem(nt,Fe);ft&&(tt=Object.assign(Object.assign({},nt),{status:"removed"}),Fe==null||Fe.forEach(yt=>{const $t=tt.uid!==void 0?"uid":"name";yt[$t]===tt[$t]&&!Object.isFrozen(yt)&&(yt.status="removed")}),(ot=we.current)===null||ot===void 0||ot.abort(tt),ke(tt,ft))})},Ue=nt=>{Oe(nt.type),nt.type==="drop"&&(ae==null||ae(nt))};React__namespace.useImperativeHandle($,()=>({onBatchStart:ze,onSuccess:Ve,onProgress:Xe,onError:Ye,fileList:Fe,upload:we.current,nativeElement:Ae.current}));const{getPrefixCls:Le,direction:Te,upload:Pe}=React__namespace.useContext(ConfigContext),Me=Le("upload",ve),He=Object.assign(Object.assign({onBatchStart:ze,onError:Ye,onProgress:Xe,onSuccess:Ve},C),{data:be,multiple:ge,action:Se,accept:Ee,supportServerRender:Ce,prefixCls:Me,disabled:Ie,beforeUpload:je,onChange:void 0,hasControlInside:_e});delete He.className,delete He.style,(!me||Ie)&&delete He.id;const We=`${Me}-wrapper`,[Ke,rt,st]=useStyle(Me,We),[it]=useLocale$1("Upload",defaultLocale.Upload),{showRemoveIcon:Je,showPreviewIcon:ct,showDownloadIcon:dt,removeIcon:vt,previewIcon:ht,downloadIcon:bt,extra:Rt}=typeof J=="boolean"?{}:J,wt=typeof Je=="undefined"?!Ie:Je,lt=(nt,tt)=>J?React__namespace.createElement(UploadList$1,{prefixCls:Me,listType:ee,items:Fe,previewFile:oe,onPreview:te,onDownload:ne,onRemove:at,showRemoveIcon:wt,showPreviewIcon:ct,showDownloadIcon:dt,removeIcon:vt,previewIcon:ht,downloadIcon:bt,iconRender:ce,extra:Rt,locale:Object.assign(Object.assign({},it),se),isImageUrl:de,progress:le,appendAction:nt,appendActionVisible:tt,itemRender:pe,disabled:Ie}):nt,ut=classNames(We,fe,xe,rt,st,Pe==null?void 0:Pe.className,{[`${Me}-rtl`]:Te==="rtl",[`${Me}-picture-card-wrapper`]:ee==="picture-card",[`${Me}-picture-circle-wrapper`]:ee==="picture-circle"}),Ge=Object.assign(Object.assign({},Pe==null?void 0:Pe.style),ue);if(he==="drag"){const nt=classNames(rt,Me,`${Me}-drag`,{[`${Me}-drag-uploading`]:Fe.some(tt=>tt.status==="uploading"),[`${Me}-drag-hover`]:De==="dragover",[`${Me}-disabled`]:Ie,[`${Me}-rtl`]:Te==="rtl"});return Ke(React__namespace.createElement("span",{className:ut,ref:Ae},React__namespace.createElement("div",{className:nt,style:Ge,onDrop:Ue,onDragOver:Ue,onDragLeave:Ue},React__namespace.createElement(Upload$3,Object.assign({},He,{ref:we,className:`${Me}-btn`}),React__namespace.createElement("div",{className:`${Me}-drag-container`},me))),lt()))}const et=classNames(Me,`${Me}-select`,{[`${Me}-disabled`]:Ie,[`${Me}-hidden`]:!me}),Ze=React__namespace.createElement("div",{className:et},React__namespace.createElement(Upload$3,Object.assign({},He,{ref:we})));return Ke(ee==="picture-card"||ee==="picture-circle"?React__namespace.createElement("span",{className:ut,ref:Ae},lt(Ze,!!me)):React__namespace.createElement("span",{className:ut,ref:Ae},Ze,lt()))},Upload$2=React__namespace.forwardRef(InternalUpload);process.env.NODE_ENV!=="production"&&(Upload$2.displayName="Upload");const InternalUpload$1=Upload$2;var __rest=globalThis&&globalThis.__rest||function(C,$){var V={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,F=Object.getOwnPropertySymbols(C);K<F.length;K++)$.indexOf(F[K])<0&&Object.prototype.propertyIsEnumerable.call(C,F[K])&&(V[F[K]]=C[F[K]]);return V};const Dragger=React__namespace.forwardRef((C,$)=>{var{style:V,height:F,hasControlInside:K=!1}=C,J=__rest(C,["style","height","hasControlInside"]);return React__namespace.createElement(InternalUpload$1,Object.assign({ref:$,hasControlInside:K},J,{type:"drag",style:Object.assign(Object.assign({},V),{height:F})}))});process.env.NODE_ENV!=="production"&&(Dragger.displayName="Dragger");const Dragger$1=Dragger,Upload=InternalUpload$1;Upload.Dragger=Dragger$1,Upload.LIST_IGNORE=LIST_IGNORE;const Upload$1=Upload,APPLICATION_STATUS$1={APPLICATION_FORM:"application_form",RESUME_FITMENT_CHECK:"resume_fitment_check",RESUME_CHOICE_SELECT:"resume_choice_select",SAVED:"Saved",WITHDRAWN:"Application Withdrawn",SUCCESSFULLY_APPLIED:"successfully_applied"},SIDER_WIDTH={PROFILE_DETAILS:"25%",JOB_DETAILS:"60%"},JOB_FILTER_TAGS={relevant:{label:"Preferred Jobs",icon:UnlockOutlined$1},all:{label:"All Jobs",icon:RiseOutlined$1},saved:{label:"Saved",icon:DownloadOutlined$1},applied:{label:"Applied",icon:CheckCircleOutlined$1}},TAG_TO_TAB_MAPPING={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},COUNT_TO_TAB_MAPPING={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},SORTING_OPTIONS={default:{label:"Default",value:"default",mapping:{property:"default",direction:"DESC"}},eligibility:{label:"Eligibility",value:"eligibility",mapping:{property:"eligibility",direction:"DESC"}},popularity:{label:"Popularity",value:"popularity",mapping:{property:"popularity",direction:"DESC"}},leastApplied:{label:"Least Applied",value:"leastApplied",mapping:{property:"popularity",direction:"ASC"}},mostRecent:{label:"Most Recent",value:"mostRecent",mapping:{property:"date_posted_on",direction:"DESC"}}},JOB_BODY_TABS={ABOUT_ROLE:{key:"about-role",label:"About Role"},REQUIREMENTS:{key:"requirements",label:"Requirements"},APPLICATION_TIMELINE:{key:"application-timeline",label:"Application Timeline"}},ALERT_FREQUENCY={REALTIME:0,DAILY:1,ALTERNATE_DAY:2,WEEKLY:7},ALERT_FREQUENCY_LABELS={[ALERT_FREQUENCY.REALTIME]:"Realtime",[ALERT_FREQUENCY.DAILY]:"Daily",[ALERT_FREQUENCY.ALTERNATE_DAY]:"Every alternate day",[ALERT_FREQUENCY.WEEKLY]:"Weekly"},ALERT_NOTIFICATION_TYPE={EMAIL:"email",WHATSAPP:"whatsapp",BOTH:"both"},ALERT_NOTIFICATION_LABELS={[ALERT_NOTIFICATION_TYPE.EMAIL]:"On Email",[ALERT_NOTIFICATION_TYPE.WHATSAPP]:"On Whatsapp",[ALERT_NOTIFICATION_TYPE.BOTH]:"On Email & Whatsapp"},ALERT_STATUS={ACTIVE:"active",INACTIVE:"inactive"},DEFAULT_PROCESS_COUNTS={all:0,relevant:0,draft:0,applications:0,saved:0,archived:0},HYDRATION_KEY="__CAREERS_HUB__",initialState$9={per_page:18,tab:"relevant",filters:{keyword:""},sortings:[SORTING_OPTIONS.default.mapping],page_number:1,skip_expired_jobs:!1},filterSlice=toolkit.createSlice({name:"filter",initialState:initialState$9,reducers:{setTab:(C,$)=>{C.tab=$.payload,C.page_number=1},setKeyword:(C,$)=>{C.filters.keyword=$.payload,C.page_number=1},setPageNumber:(C,$)=>{C.page_number=$.payload},setPerPage:(C,$)=>{C.per_page=$.payload,C.page_number=1},setSortings:(C,$)=>{C.sortings=$.payload},setSkipExpiredJobs:(C,$)=>{C.skip_expired_jobs=$.payload},resetFilters:C=>gr(zn({},initialState$9),{tab:C.tab}),updateFiltersFromForm:(C,$)=>{var F;const V=((F=C.filters)==null?void 0:F.keyword)||"";C.filters=zn({keyword:V},$.payload),C.page_number=1},updateFormFilters:(C,$)=>{C.filters=zn(zn({},C.filters),$.payload)}}}),{setTab,setKeyword,setPageNumber,setPerPage,setSortings,setSkipExpiredJobs,resetFilters,updateFiltersFromForm,updateFormFilters}=filterSlice.actions,filterReducer=filterSlice.reducer;function n(C){for(var $=arguments.length,V=Array($>1?$-1:0),F=1;F<$;F++)V[F-1]=arguments[F];if(process.env.NODE_ENV!=="production"){var K=Y[C],J=K?typeof K=="function"?K.apply(null,V):K:"unknown error nr: "+C;throw Error("[Immer] "+J)}throw Error("[Immer] minified error nr: "+C+(V.length?" "+V.map(function(ee){return"'"+ee+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(C){return!!C&&!!C[Q]}function t(C){var $;return!!C&&(function(V){if(!V||typeof V!="object")return!1;var F=Object.getPrototypeOf(V);if(F===null)return!0;var K=Object.hasOwnProperty.call(F,"constructor")&&F.constructor;return K===Object||typeof K=="function"&&Function.toString.call(K)===Z}(C)||Array.isArray(C)||!!C[L]||!!(!(($=C.constructor)===null||$===void 0)&&$[L])||s(C)||v(C))}function i(C,$,V){V===void 0&&(V=!1),o(C)===0?(V?Object.keys:nn)(C).forEach(function(F){V&&typeof F=="symbol"||$(F,C[F],C)}):C.forEach(function(F,K){return $(K,F,C)})}function o(C){var $=C[Q];return $?$.i>3?$.i-4:$.i:Array.isArray(C)?1:s(C)?2:v(C)?3:0}function u(C,$){return o(C)===2?C.has($):Object.prototype.hasOwnProperty.call(C,$)}function a(C,$){return o(C)===2?C.get($):C[$]}function f(C,$,V){var F=o(C);F===2?C.set($,V):F===3?C.add(V):C[$]=V}function c(C,$){return C===$?C!==0||1/C==1/$:C!=C&&$!=$}function s(C){return X&&C instanceof Map}function v(C){return q&&C instanceof Set}function p(C){return C.o||C.t}function l(C){if(Array.isArray(C))return Array.prototype.slice.call(C);var $=rn(C);delete $[Q];for(var V=nn($),F=0;F<V.length;F++){var K=V[F],J=$[K];J.writable===!1&&(J.writable=!0,J.configurable=!0),(J.get||J.set)&&($[K]={configurable:!0,writable:!0,enumerable:J.enumerable,value:C[K]})}return Object.create(Object.getPrototypeOf(C),$)}function d(C,$){return $===void 0&&($=!1),y(C)||r(C)||!t(C)||(o(C)>1&&(C.set=C.add=C.clear=C.delete=h),Object.freeze(C),$&&i(C,function(V,F){return d(F,!0)},!0)),C}function h(){n(2)}function y(C){return C==null||typeof C!="object"||Object.isFrozen(C)}function b(C){var $=tn[C];return $||n(18,C),$}function m(C,$){tn[C]||(tn[C]=$)}function _(){return process.env.NODE_ENV==="production"||U||n(0),U}function j(C,$){$&&(b("Patches"),C.u=[],C.s=[],C.v=$)}function g(C){O(C),C.p.forEach(S),C.p=null}function O(C){C===U&&(U=C.l)}function w(C){return U={p:[],l:U,h:C,m:!0,_:0}}function S(C){var $=C[Q];$.i===0||$.i===1?$.j():$.g=!0}function P(C,$){$._=$.p.length;var V=$.p[0],F=C!==void 0&&C!==V;return $.h.O||b("ES5").S($,C,F),F?(V[Q].P&&(g($),n(4)),t(C)&&(C=M($,C),$.l||x($,C)),$.u&&b("Patches").M(V[Q].t,C,$.u,$.s)):C=M($,V,[]),g($),$.u&&$.v($.u,$.s),C!==H?C:void 0}function M(C,$,V){if(y($))return $;var F=$[Q];if(!F)return i($,function(te,ne){return A(C,F,$,te,ne,V)},!0),$;if(F.A!==C)return $;if(!F.P)return x(C,F.t,!0),F.t;if(!F.I){F.I=!0,F.A._--;var K=F.i===4||F.i===5?F.o=l(F.k):F.o,J=K,ee=!1;F.i===3&&(J=new Set(K),K.clear(),ee=!0),i(J,function(te,ne){return A(C,F,K,te,ne,V,ee)}),x(C,K,!1),V&&C.u&&b("Patches").N(F,V,C.u,C.s)}return F.o}function A(C,$,V,F,K,J,ee){if(process.env.NODE_ENV!=="production"&&K===V&&n(5),r(K)){var te=M(C,K,J&&$&&$.i!==3&&!u($.R,F)?J.concat(F):void 0);if(f(V,F,te),!r(te))return;C.m=!1}else ee&&V.add(K);if(t(K)&&!y(K)){if(!C.h.D&&C._<1)return;M(C,K),$&&$.A.l||x(C,K)}}function x(C,$,V){V===void 0&&(V=!1),!C.l&&C.h.D&&C.m&&d($,V)}function z(C,$){var V=C[Q];return(V?p(V):C)[$]}function I(C,$){if($ in C)for(var V=Object.getPrototypeOf(C);V;){var F=Object.getOwnPropertyDescriptor(V,$);if(F)return F;V=Object.getPrototypeOf(V)}}function k(C){C.P||(C.P=!0,C.l&&k(C.l))}function E(C){C.o||(C.o=l(C.t))}function N(C,$,V){var F=s($)?b("MapSet").F($,V):v($)?b("MapSet").T($,V):C.O?function(K,J){var ee=Array.isArray(K),te={i:ee?1:0,A:J?J.A:_(),P:!1,I:!1,R:{},l:J,t:K,k:null,o:null,j:null,C:!1},ne=te,re=en;ee&&(ne=[te],re=on);var ae=Proxy.revocable(ne,re),oe=ae.revoke,ie=ae.proxy;return te.k=ie,te.j=oe,ie}($,V):b("ES5").J($,V);return(V?V.A:_()).p.push(F),F}function R(C){return r(C)||n(22,C),function $(V){if(!t(V))return V;var F,K=V[Q],J=o(V);if(K){if(!K.P&&(K.i<4||!b("ES5").K(K)))return K.t;K.I=!0,F=D(V,J),K.I=!1}else F=D(V,J);return i(F,function(ee,te){K&&a(K.t,ee)===te||f(F,ee,$(te))}),J===3?new Set(F):F}(C)}function D(C,$){switch($){case 2:return new Map(C);case 3:return Array.from(C)}return l(C)}function T(){function C(F){if(!t(F))return F;if(Array.isArray(F))return F.map(C);if(s(F))return new Map(Array.from(F.entries()).map(function(ee){return[ee[0],C(ee[1])]}));if(v(F))return new Set(Array.from(F).map(C));var K=Object.create(Object.getPrototypeOf(F));for(var J in F)K[J]=C(F[J]);return u(F,L)&&(K[L]=F[L]),K}function $(F){return r(F)?C(F):F}var V="add";m("Patches",{$:function(F,K){return K.forEach(function(J){for(var ee=J.path,te=J.op,ne=F,re=0;re<ee.length-1;re++){var ae=o(ne),oe=ee[re];typeof oe!="string"&&typeof oe!="number"&&(oe=""+oe),ae!==0&&ae!==1||oe!=="__proto__"&&oe!=="constructor"||n(24),typeof ne=="function"&&oe==="prototype"&&n(24),typeof(ne=a(ne,oe))!="object"&&n(15,ee.join("/"))}var ie=o(ne),se=C(J.value),ce=ee[ee.length-1];switch(te){case"replace":switch(ie){case 2:return ne.set(ce,se);case 3:n(16);default:return ne[ce]=se}case V:switch(ie){case 1:return ce==="-"?ne.push(se):ne.splice(ce,0,se);case 2:return ne.set(ce,se);case 3:return ne.add(se);default:return ne[ce]=se}case"remove":switch(ie){case 1:return ne.splice(ce,1);case 2:return ne.delete(ce);case 3:return ne.delete(J.value);default:return delete ne[ce]}default:n(17,te)}}),F},N:function(F,K,J,ee){switch(F.i){case 0:case 4:case 2:return function(te,ne,re,ae){var oe=te.t,ie=te.o;i(te.R,function(se,ce){var de=a(oe,se),le=a(ie,se),ve=ce?u(oe,se)?"replace":V:"remove";if(de!==le||ve!=="replace"){var fe=ne.concat(se);re.push(ve==="remove"?{op:ve,path:fe}:{op:ve,path:fe,value:le}),ae.push(ve===V?{op:"remove",path:fe}:ve==="remove"?{op:V,path:fe,value:$(de)}:{op:"replace",path:fe,value:$(de)})}})}(F,K,J,ee);case 5:case 1:return function(te,ne,re,ae){var oe=te.t,ie=te.R,se=te.o;if(se.length<oe.length){var ce=[se,oe];oe=ce[0],se=ce[1];var de=[ae,re];re=de[0],ae=de[1]}for(var le=0;le<oe.length;le++)if(ie[le]&&se[le]!==oe[le]){var ve=ne.concat([le]);re.push({op:"replace",path:ve,value:$(se[le])}),ae.push({op:"replace",path:ve,value:$(oe[le])})}for(var fe=oe.length;fe<se.length;fe++){var he=ne.concat([fe]);re.push({op:V,path:he,value:$(se[fe])})}oe.length<se.length&&ae.push({op:"replace",path:ne.concat(["length"]),value:oe.length})}(F,K,J,ee);case 3:return function(te,ne,re,ae){var oe=te.t,ie=te.o,se=0;oe.forEach(function(ce){if(!ie.has(ce)){var de=ne.concat([se]);re.push({op:"remove",path:de,value:ce}),ae.unshift({op:V,path:de,value:ce})}se++}),se=0,ie.forEach(function(ce){if(!oe.has(ce)){var de=ne.concat([se]);re.push({op:V,path:de,value:ce}),ae.unshift({op:"remove",path:de,value:ce})}se++})}(F,K,J,ee)}},M:function(F,K,J,ee){J.push({op:"replace",path:[],value:K===H?void 0:K}),ee.push({op:"replace",path:[],value:F})}})}var G,U,W=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",X=typeof Map!="undefined",q=typeof Set!="undefined",B=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(C){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+C},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(C){return"Cannot apply patch, path doesn't resolve: "+C},16:'Sets cannot have "replace" patches.',17:function(C){return"Unsupported patch operation: "+C},18:function(C){return"The plugin for '"+C+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+C+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(C){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+C+"'"},22:function(C){return"'current' expects a draft, got: "+C},23:function(C){return"'original' expects a draft, got: "+C},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(C){var $={};return nn(C).forEach(function(V){$[V]=Object.getOwnPropertyDescriptor(C,V)}),$},tn={},en={get:function(C,$){if($===Q)return C;var V=p(C);if(!u(V,$))return function(K,J,ee){var te,ne=I(J,ee);return ne?"value"in ne?ne.value:(te=ne.get)===null||te===void 0?void 0:te.call(K.k):void 0}(C,V,$);var F=V[$];return C.I||!t(F)?F:F===z(C.t,$)?(E(C),C.o[$]=N(C.A.h,F,C)):F},has:function(C,$){return $ in p(C)},ownKeys:function(C){return Reflect.ownKeys(p(C))},set:function(C,$,V){var F=I(p(C),$);if(F!=null&&F.set)return F.set.call(C.k,V),!0;if(!C.P){var K=z(p(C),$),J=K==null?void 0:K[Q];if(J&&J.t===V)return C.o[$]=V,C.R[$]=!1,!0;if(c(V,K)&&(V!==void 0||u(C.t,$)))return!0;E(C),k(C)}return C.o[$]===V&&(V!==void 0||$ in C.o)||Number.isNaN(V)&&Number.isNaN(C.o[$])||(C.o[$]=V,C.R[$]=!0),!0},deleteProperty:function(C,$){return z(C.t,$)!==void 0||$ in C.t?(C.R[$]=!1,E(C),k(C)):delete C.R[$],C.o&&delete C.o[$],!0},getOwnPropertyDescriptor:function(C,$){var V=p(C),F=Reflect.getOwnPropertyDescriptor(V,$);return F&&{writable:!0,configurable:C.i!==1||$!=="length",enumerable:F.enumerable,value:V[$]}},defineProperty:function(){n(11)},getPrototypeOf:function(C){return Object.getPrototypeOf(C.t)},setPrototypeOf:function(){n(12)}},on={};i(en,function(C,$){on[C]=function(){return arguments[0]=arguments[0][0],$.apply(this,arguments)}}),on.deleteProperty=function(C,$){return process.env.NODE_ENV!=="production"&&isNaN(parseInt($))&&n(13),on.set.call(this,C,$,void 0)},on.set=function(C,$,V){return process.env.NODE_ENV!=="production"&&$!=="length"&&isNaN(parseInt($))&&n(14),en.set.call(this,C[0],$,V,C[0])};var un=function(){function C(V){var F=this;this.O=B,this.D=!0,this.produce=function(K,J,ee){if(typeof K=="function"&&typeof J!="function"){var te=J;J=K;var ne=F;return function(de){var le=this;de===void 0&&(de=te);for(var ve=arguments.length,fe=Array(ve>1?ve-1:0),he=1;he<ve;he++)fe[he-1]=arguments[he];return ne.produce(de,function(me){var ue;return(ue=J).call.apply(ue,[le,me].concat(fe))})}}var re;if(typeof J!="function"&&n(6),ee!==void 0&&typeof ee!="function"&&n(7),t(K)){var ae=w(F),oe=N(F,K,void 0),ie=!0;try{re=J(oe),ie=!1}finally{ie?g(ae):O(ae)}return typeof Promise!="undefined"&&re instanceof Promise?re.then(function(de){return j(ae,ee),P(de,ae)},function(de){throw g(ae),de}):(j(ae,ee),P(re,ae))}if(!K||typeof K!="object"){if((re=J(K))===void 0&&(re=K),re===H&&(re=void 0),F.D&&d(re,!0),ee){var se=[],ce=[];b("Patches").M(K,re,se,ce),ee(se,ce)}return re}n(21,K)},this.produceWithPatches=function(K,J){if(typeof K=="function")return function(re){for(var ae=arguments.length,oe=Array(ae>1?ae-1:0),ie=1;ie<ae;ie++)oe[ie-1]=arguments[ie];return F.produceWithPatches(re,function(se){return K.apply(void 0,[se].concat(oe))})};var ee,te,ne=F.produce(K,J,function(re,ae){ee=re,te=ae});return typeof Promise!="undefined"&&ne instanceof Promise?ne.then(function(re){return[re,ee,te]}):[ne,ee,te]},typeof(V==null?void 0:V.useProxies)=="boolean"&&this.setUseProxies(V.useProxies),typeof(V==null?void 0:V.autoFreeze)=="boolean"&&this.setAutoFreeze(V.autoFreeze)}var $=C.prototype;return $.createDraft=function(V){t(V)||n(8),r(V)&&(V=R(V));var F=w(this),K=N(this,V,void 0);return K[Q].C=!0,O(F),K},$.finishDraft=function(V,F){var K=V&&V[Q];process.env.NODE_ENV!=="production"&&(K&&K.C||n(9),K.I&&n(10));var J=K.A;return j(J,F),P(void 0,J)},$.setAutoFreeze=function(V){this.D=V},$.setUseProxies=function(V){V&&!B&&n(20),this.O=V},$.applyPatches=function(V,F){var K;for(K=F.length-1;K>=0;K--){var J=F[K];if(J.path.length===0&&J.op==="replace"){V=J.value;break}}K>-1&&(F=F.slice(K+1));var ee=b("Patches").$;return r(V)?ee(V,F):this.produce(V,function(te){return ee(te,F)})},C}(),an=new un;an.produce;var cn=an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an),an.setUseProxies.bind(an);var pn=an.applyPatches.bind(an);an.createDraft.bind(an),an.finishDraft.bind(an);var NOT_FOUND="NOT_FOUND";function createSingletonCache(C){var $;return{get:function(F){return $&&C($.key,F)?$.value:NOT_FOUND},put:function(F,K){$={key:F,value:K}},getEntries:function(){return $?[$]:[]},clear:function(){$=void 0}}}function createLruCache(C,$){var V=[];function F(te){var ne=V.findIndex(function(ae){return $(te,ae.key)});if(ne>-1){var re=V[ne];return ne>0&&(V.splice(ne,1),V.unshift(re)),re.value}return NOT_FOUND}function K(te,ne){F(te)===NOT_FOUND&&(V.unshift({key:te,value:ne}),V.length>C&&V.pop())}function J(){return V}function ee(){V=[]}return{get:F,put:K,getEntries:J,clear:ee}}var defaultEqualityCheck=function($,V){return $===V};function createCacheKeyComparator(C){return function(V,F){if(V===null||F===null||V.length!==F.length)return!1;for(var K=V.length,J=0;J<K;J++)if(!C(V[J],F[J]))return!1;return!0}}function defaultMemoize(C,$){var V=typeof $=="object"?$:{equalityCheck:$},F=V.equalityCheck,K=F===void 0?defaultEqualityCheck:F,J=V.maxSize,ee=J===void 0?1:J,te=V.resultEqualityCheck,ne=createCacheKeyComparator(K),re=ee===1?createSingletonCache(ne):createLruCache(ee,ne);function ae(){var oe=re.get(arguments);if(oe===NOT_FOUND){if(oe=C.apply(null,arguments),te){var ie=re.getEntries(),se=ie.find(function(ce){return te(ce.value,oe)});se&&(oe=se.value)}re.put(arguments,oe)}return oe}return ae.clearCache=function(){return re.clear()},ae}var __generator=globalThis&&globalThis.__generator||function(C,$){var V={label:0,sent:function(){if(J[0]&1)throw J[1];return J[1]},trys:[],ops:[]},F,K,J,ee;return ee={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(ee[Symbol.iterator]=function(){return this}),ee;function te(re){return function(ae){return ne([re,ae])}}function ne(re){if(F)throw new TypeError("Generator is already executing.");for(;V;)try{if(F=1,K&&(J=re[0]&2?K.return:re[0]?K.throw||((J=K.return)&&J.call(K),0):K.next)&&!(J=J.call(K,re[1])).done)return J;switch(K=0,J&&(re=[re[0]&2,J.value]),re[0]){case 0:case 1:J=re;break;case 4:return V.label++,{value:re[1],done:!1};case 5:V.label++,K=re[1],re=[0];continue;case 7:re=V.ops.pop(),V.trys.pop();continue;default:if(J=V.trys,!(J=J.length>0&&J[J.length-1])&&(re[0]===6||re[0]===2)){V=0;continue}if(re[0]===3&&(!J||re[1]>J[0]&&re[1]<J[3])){V.label=re[1];break}if(re[0]===6&&V.label<J[1]){V.label=J[1],J=re;break}if(J&&V.label<J[2]){V.label=J[2],V.ops.push(re);break}J[2]&&V.ops.pop(),V.trys.pop();continue}re=$.call(C,V)}catch(ae){re=[6,ae],K=0}finally{F=J=0}if(re[0]&5)throw re[1];return{value:re[0]?re[1]:void 0,done:!0}}},__spreadArray$2=globalThis&&globalThis.__spreadArray||function(C,$){for(var V=0,F=$.length,K=C.length;V<F;V++,K++)C[K]=$[V];return C},__defProp$1=Object.defineProperty,__defProps$1=Object.defineProperties,__getOwnPropDescs$1=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$1=Object.getOwnPropertySymbols,__hasOwnProp$1=Object.prototype.hasOwnProperty,__propIsEnum$1=Object.prototype.propertyIsEnumerable,__defNormalProp$1=function(C,$,V){return $ in C?__defProp$1(C,$,{enumerable:!0,configurable:!0,writable:!0,value:V}):C[$]=V},__spreadValues$1=function(C,$){for(var V in $||($={}))__hasOwnProp$1.call($,V)&&__defNormalProp$1(C,V,$[V]);if(__getOwnPropSymbols$1)for(var F=0,K=__getOwnPropSymbols$1($);F<K.length;F++){var V=K[F];__propIsEnum$1.call($,V)&&__defNormalProp$1(C,V,$[V])}return C},__spreadProps$1=function(C,$){return __defProps$1(C,__getOwnPropDescs$1($))},__objRest=function(C,$){var V={};for(var F in C)__hasOwnProp$1.call(C,F)&&$.indexOf(F)<0&&(V[F]=C[F]);if(C!=null&&__getOwnPropSymbols$1)for(var K=0,J=__getOwnPropSymbols$1(C);K<J.length;K++){var F=J[K];$.indexOf(F)<0&&__propIsEnum$1.call(C,F)&&(V[F]=C[F])}return V},__async=function(C,$,V){return new Promise(function(F,K){var J=function(ne){try{te(V.next(ne))}catch(re){K(re)}},ee=function(ne){try{te(V.throw(ne))}catch(re){K(re)}},te=function(ne){return ne.done?F(ne.value):Promise.resolve(ne.value).then(J,ee)};te((V=V.apply(C,$)).next())})},QueryStatus;(function(C){C.uninitialized="uninitialized",C.pending="pending",C.fulfilled="fulfilled",C.rejected="rejected"})(QueryStatus||(QueryStatus={}));function getRequestStatusFlags(C){return{status:C,isUninitialized:C===QueryStatus.uninitialized,isLoading:C===QueryStatus.pending,isSuccess:C===QueryStatus.fulfilled,isError:C===QueryStatus.rejected}}function isAbsoluteUrl(C){return new RegExp("(^|:)//").test(C)}var withoutTrailingSlash=function(C){return C.replace(/\/$/,"")},withoutLeadingSlash=function(C){return C.replace(/^\//,"")};function joinUrls(C,$){if(!C)return $;if(!$)return C;if(isAbsoluteUrl($))return $;var V=C.endsWith("/")||!$.startsWith("?")?"/":"";return C=withoutTrailingSlash(C),$=withoutLeadingSlash($),""+C+V+$}var flatten=function(C){return[].concat.apply([],C)};function isOnline(){return typeof navigator=="undefined"||navigator.onLine===void 0?!0:navigator.onLine}function isDocumentVisible(){return typeof document=="undefined"?!0:document.visibilityState!=="hidden"}var isPlainObject$1=toolkit.isPlainObject;function copyWithStructuralSharing(C,$){if(C===$||!(isPlainObject$1(C)&&isPlainObject$1($)||Array.isArray(C)&&Array.isArray($)))return $;for(var V=Object.keys($),F=Object.keys(C),K=V.length===F.length,J=Array.isArray($)?[]:{},ee=0,te=V;ee<te.length;ee++){var ne=te[ee];J[ne]=copyWithStructuralSharing(C[ne],$[ne]),K&&(K=C[ne]===J[ne])}return K?C:J}var defaultFetchFn=function(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];return fetch.apply(void 0,C)},defaultValidateStatus=function(C){return C.status>=200&&C.status<=299},defaultIsJsonContentType=function(C){return/ion\/(vnd\.api\+)?json/.test(C.get("content-type")||"")};function stripUndefined(C){if(!toolkit.isPlainObject(C))return C;for(var $=__spreadValues$1({},C),V=0,F=Object.entries($);V<F.length;V++){var K=F[V],J=K[0],ee=K[1];ee===void 0&&delete $[J]}return $}function fetchBaseQuery(C){var $=this;C===void 0&&(C={});var V=C,F=V.baseUrl,K=V.prepareHeaders,J=K===void 0?function(fe){return fe}:K,ee=V.fetchFn,te=ee===void 0?defaultFetchFn:ee,ne=V.paramsSerializer,re=V.isJsonContentType,ae=re===void 0?defaultIsJsonContentType:re,oe=V.jsonContentType,ie=oe===void 0?"application/json":oe,se=V.jsonReplacer,ce=V.timeout,de=V.validateStatus,le=__objRest(V,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","validateStatus"]);return typeof fetch=="undefined"&&te===defaultFetchFn&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(fe,he){return __async($,null,function(){var me,ue,pe,ye,be,ge,_e,Se,Ee,Ce,xe,$e,Ie,Fe,Ne,De,Oe,we,Ae,ke,je,ze,Ve,Xe,Ye,at,Ue,Le,Te,Pe,Me,He,We,Ke,rt,st;return __generator(this,function(it){switch(it.label){case 0:return me=he.signal,ue=he.getState,pe=he.extra,ye=he.endpoint,be=he.forced,ge=he.type,Se=typeof fe=="string"?{url:fe}:fe,Ee=Se.url,Ce=Se.headers,xe=Ce===void 0?new Headers(le.headers):Ce,$e=Se.params,Ie=$e===void 0?void 0:$e,Fe=Se.responseHandler,Ne=Fe===void 0?"json":Fe,De=Se.validateStatus,Oe=De===void 0?de!=null?de:defaultValidateStatus:De,we=Se.timeout,Ae=we===void 0?ce:we,ke=__objRest(Se,["url","headers","params","responseHandler","validateStatus","timeout"]),je=__spreadValues$1(__spreadProps$1(__spreadValues$1({},le),{signal:me}),ke),xe=new Headers(stripUndefined(xe)),ze=je,[4,J(xe,{getState:ue,extra:pe,endpoint:ye,forced:be,type:ge})];case 1:ze.headers=it.sent()||xe,Ve=function(Je){return typeof Je=="object"&&(toolkit.isPlainObject(Je)||Array.isArray(Je)||typeof Je.toJSON=="function")},!je.headers.has("content-type")&&Ve(je.body)&&je.headers.set("content-type",ie),Ve(je.body)&&ae(je.headers)&&(je.body=JSON.stringify(je.body,se)),Ie&&(Xe=~Ee.indexOf("?")?"&":"?",Ye=ne?ne(Ie):new URLSearchParams(stripUndefined(Ie)),Ee+=Xe+Ye),Ee=joinUrls(F,Ee),at=new Request(Ee,je),Ue=at.clone(),_e={request:Ue},Te=!1,Pe=Ae&&setTimeout(function(){Te=!0,he.abort()},Ae),it.label=2;case 2:return it.trys.push([2,4,5,6]),[4,te(at)];case 3:return Le=it.sent(),[3,6];case 4:return Me=it.sent(),[2,{error:{status:Te?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Me)},meta:_e}];case 5:return Pe&&clearTimeout(Pe),[7];case 6:He=Le.clone(),_e.response=He,Ke="",it.label=7;case 7:return it.trys.push([7,9,,10]),[4,Promise.all([ve(Le,Ne).then(function(Je){return We=Je},function(Je){return rt=Je}),He.text().then(function(Je){return Ke=Je},function(){})])];case 8:if(it.sent(),rt)throw rt;return[3,10];case 9:return st=it.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:Le.status,data:Ke,error:String(st)},meta:_e}];case 10:return[2,Oe(Le,We)?{data:We,meta:_e}:{error:{status:Le.status,data:We},meta:_e}]}})})};function ve(fe,he){return __async(this,null,function(){var me;return __generator(this,function(ue){switch(ue.label){case 0:return typeof he=="function"?[2,he(fe)]:(he==="content-type"&&(he=ae(fe.headers)?"json":"text"),he!=="json"?[3,2]:[4,fe.text()]);case 1:return me=ue.sent(),[2,me.length?JSON.parse(me):null];case 2:return[2,fe.text()]}})})}}var HandledError=function(){function C($,V){V===void 0&&(V=void 0),this.value=$,this.meta=V}return C}(),onFocus=toolkit.createAction("__rtkq/focused"),onFocusLost=toolkit.createAction("__rtkq/unfocused"),onOnline=toolkit.createAction("__rtkq/online"),onOffline=toolkit.createAction("__rtkq/offline"),DefinitionType$1;(function(C){C.query="query",C.mutation="mutation"})(DefinitionType$1||(DefinitionType$1={}));function isQueryDefinition$1(C){return C.type===DefinitionType$1.query}function isMutationDefinition$1(C){return C.type===DefinitionType$1.mutation}function calculateProvidedBy(C,$,V,F,K,J){return isFunction(C)?C($,V,F,K).map(expandTagDescription).map(J):Array.isArray(C)?C.map(expandTagDescription).map(J):[]}function isFunction(C){return typeof C=="function"}function expandTagDescription(C){return typeof C=="string"?{type:C}:C}function isNotNullish(C){return C!=null}var forceQueryFnSymbol=Symbol("forceQueryFn"),isUpsertQuery=function(C){return typeof C[forceQueryFnSymbol]=="function"};function buildInitiate(C){var $=C.serializeQueryArgs,V=C.queryThunk,F=C.mutationThunk,K=C.api,J=C.context,ee=new Map,te=new Map,ne=K.internalActions,re=ne.unsubscribeQueryResult,ae=ne.removeMutationResult,oe=ne.updateSubscriptionOptions;return{buildInitiateQuery:he,buildInitiateMutation:me,getRunningQueryThunk:ce,getRunningMutationThunk:de,getRunningQueriesThunk:le,getRunningMutationsThunk:ve,getRunningOperationPromises:se,removalWarning:ie};function ie(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
427
427
  Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
428
428
  See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function se(){if(typeof process!="undefined"&&process.env.NODE_ENV==="development")ie();else{var ue=function(pe){return Array.from(pe.values()).flatMap(function(ye){return ye?Object.values(ye):[]})};return __spreadArray$2(__spreadArray$2([],ue(ee)),ue(te)).filter(isNotNullish)}}function ce(ue,pe){return function(ye){var be,ge=J.endpointDefinitions[ue],_e=$({queryArgs:pe,endpointDefinition:ge,endpointName:ue});return(be=ee.get(ye))==null?void 0:be[_e]}}function de(ue,pe){return function(ye){var be;return(be=te.get(ye))==null?void 0:be[pe]}}function le(){return function(ue){return Object.values(ee.get(ue)||{}).filter(isNotNullish)}}function ve(){return function(ue){return Object.values(te.get(ue)||{}).filter(isNotNullish)}}function fe(ue){if(process.env.NODE_ENV!=="production"){if(fe.triggered)return;var pe=ue(K.internalActions.internal_probeSubscription({queryCacheKey:"DOES_NOT_EXIST",requestId:"DUMMY_REQUEST_ID"}));if(fe.triggered=!0,typeof pe!="boolean")throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+K.reducerPath+`" has not been added to the store.
429
429
  You must add the middleware for RTK-Query to function correctly!`)}}function he(ue,pe){var ye=function(be,ge){var _e=ge===void 0?{}:ge,Se=_e.subscribe,Ee=Se===void 0?!0:Se,Ce=_e.forceRefetch,xe=_e.subscriptionOptions,$e=forceQueryFnSymbol,Ie=_e[$e];return function(Fe,Ne){var De,Oe,we=$({queryArgs:be,endpointDefinition:pe,endpointName:ue}),Ae=V((De={type:"query",subscribe:Ee,forceRefetch:Ce,subscriptionOptions:xe,endpointName:ue,originalArgs:be,queryCacheKey:we},De[forceQueryFnSymbol]=Ie,De)),ke=K.endpoints[ue].select(be),je=Fe(Ae),ze=ke(Ne());fe(Fe);var Ve=je.requestId,Xe=je.abort,Ye=ze.requestId!==Ve,at=(Oe=ee.get(Fe))==null?void 0:Oe[we],Ue=function(){return ke(Ne())},Le=Object.assign(Ie?je.then(Ue):Ye&&!at?Promise.resolve(ze):Promise.all([at,je]).then(Ue),{arg:be,requestId:Ve,subscriptionOptions:xe,queryCacheKey:we,abort:Xe,unwrap:function(){return __async(this,null,function(){var Pe;return __generator(this,function(Me){switch(Me.label){case 0:return[4,Le];case 1:if(Pe=Me.sent(),Pe.isError)throw Pe.error;return[2,Pe.data]}})})},refetch:function(){return Fe(ye(be,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){Ee&&Fe(re({queryCacheKey:we,requestId:Ve}))},updateSubscriptionOptions:function(Pe){Le.subscriptionOptions=Pe,Fe(oe({endpointName:ue,requestId:Ve,queryCacheKey:we,options:Pe}))}});if(!at&&!Ye&&!Ie){var Te=ee.get(Fe)||{};Te[we]=Le,ee.set(Fe,Te),Le.then(function(){delete Te[we],Object.keys(Te).length||ee.delete(Fe)})}return Le}};return ye}function me(ue){return function(pe,ye){var be=ye===void 0?{}:ye,ge=be.track,_e=ge===void 0?!0:ge,Se=be.fixedCacheKey;return function(Ee,Ce){var xe=F({type:"mutation",endpointName:ue,originalArgs:pe,track:_e,fixedCacheKey:Se}),$e=Ee(xe);fe(Ee);var Ie=$e.requestId,Fe=$e.abort,Ne=$e.unwrap,De=$e.unwrap().then(function(ke){return{data:ke}}).catch(function(ke){return{error:ke}}),Oe=function(){Ee(ae({requestId:Ie,fixedCacheKey:Se}))},we=Object.assign(De,{arg:$e.arg,requestId:Ie,abort:Fe,unwrap:Ne,unsubscribe:Oe,reset:Oe}),Ae=te.get(Ee)||{};return te.set(Ee,Ae),Ae[Ie]=we,we.then(function(){delete Ae[Ie],Object.keys(Ae).length||te.delete(Ee)}),Se&&(Ae[Se]=we,we.then(function(){Ae[Se]===we&&(delete Ae[Se],Object.keys(Ae).length||te.delete(Ee))})),we}}}}function defaultTransformResponse(C){return C}function buildThunks(C){var $=this,V=C.reducerPath,F=C.baseQuery,K=C.context.endpointDefinitions,J=C.serializeQueryArgs,ee=C.api,te=function(he,me,ue){return function(pe){var ye=K[he];pe(ee.internalActions.queryResultPatched({queryCacheKey:J({queryArgs:me,endpointDefinition:ye,endpointName:he}),patches:ue}))}},ne=function(he,me,ue){return function(pe,ye){var be,ge,_e=ee.endpoints[he].select(me)(ye()),Se={patches:[],inversePatches:[],undo:function(){return pe(ee.util.patchQueryData(he,me,Se.inversePatches))}};if(_e.status===QueryStatus.uninitialized)return Se;if("data"in _e)if(t(_e.data)){var Ee=cn(_e.data,ue),Ce=Ee[1],xe=Ee[2];(be=Se.patches).push.apply(be,Ce),(ge=Se.inversePatches).push.apply(ge,xe)}else{var $e=ue(_e.data);Se.patches.push({op:"replace",path:[],value:$e}),Se.inversePatches.push({op:"replace",path:[],value:_e.data})}return pe(ee.util.patchQueryData(he,me,Se.patches)),Se}},re=function(he,me,ue){return function(pe){var ye;return pe(ee.endpoints[he].initiate(me,(ye={subscribe:!1,forceRefetch:!0},ye[forceQueryFnSymbol]=function(){return{data:ue}},ye)))}},ae=function(he,me){return __async($,[he,me],function(ue,pe){var ye,be,ge,_e,Se,Ee,Ce,xe,$e,Ie,Fe,Ne,De,Oe,we,Ae,ke,je,ze=pe.signal,Ve=pe.abort,Xe=pe.rejectWithValue,Ye=pe.fulfillWithValue,at=pe.dispatch,Ue=pe.getState,Le=pe.extra;return __generator(this,function(Te){switch(Te.label){case 0:ye=K[ue.endpointName],Te.label=1;case 1:return Te.trys.push([1,8,,13]),be=defaultTransformResponse,ge=void 0,_e={signal:ze,abort:Ve,dispatch:at,getState:Ue,extra:Le,endpoint:ue.endpointName,type:ue.type,forced:ue.type==="query"?oe(ue,Ue()):void 0},Se=ue.type==="query"?ue[forceQueryFnSymbol]:void 0,Se?(ge=Se(),[3,6]):[3,2];case 2:return ye.query?[4,F(ye.query(ue.originalArgs),_e,ye.extraOptions)]:[3,4];case 3:return ge=Te.sent(),ye.transformResponse&&(be=ye.transformResponse),[3,6];case 4:return[4,ye.queryFn(ue.originalArgs,_e,ye.extraOptions,function(Pe){return F(Pe,_e,ye.extraOptions)})];case 5:ge=Te.sent(),Te.label=6;case 6:if(typeof process!="undefined"&&process.env.NODE_ENV==="development"){if(Ee=ye.query?"`baseQuery`":"`queryFn`",Ce=void 0,!ge)Ce=Ee+" did not return anything.";else if(typeof ge!="object")Ce=Ee+" did not return an object.";else if(ge.error&&ge.data)Ce=Ee+" returned an object containing both `error` and `result`.";else if(ge.error===void 0&&ge.data===void 0)Ce=Ee+" returned an object containing neither a valid `error` and `result`. At least one of them should not be `undefined`";else for(xe=0,$e=Object.keys(ge);xe<$e.length;xe++)if(Ie=$e[xe],Ie!=="error"&&Ie!=="data"&&Ie!=="meta"){Ce="The object returned by "+Ee+" has the unknown property "+Ie+".";break}Ce&&console.error("Error encountered handling the endpoint "+ue.endpointName+`.
@@ -431,7 +431,7 @@ You must add the middleware for RTK-Query to function correctly!`)}}function he(
431
431
  In the case of an unhandled error, no tags will be "provided" or "invalidated".`,De):console.error(De),De;case 13:return[2]}})})};function oe(he,me){var ue,pe,ye,be,ge=(pe=(ue=me[V])==null?void 0:ue.queries)==null?void 0:pe[he.queryCacheKey],_e=(ye=me[V])==null?void 0:ye.config.refetchOnMountOrArgChange,Se=ge==null?void 0:ge.fulfilledTimeStamp,Ee=(be=he.forceRefetch)!=null?be:he.subscribe&&_e;return Ee?Ee===!0||(Number(new Date)-Number(Se))/1e3>=Ee:!1}var ie=toolkit.createAsyncThunk(V+"/executeQuery",ae,{getPendingMeta:function(){var he;return he={startedTimeStamp:Date.now()},he[toolkit.SHOULD_AUTOBATCH]=!0,he},condition:function(he,me){var ue=me.getState,pe,ye,be,ge=ue(),_e=(ye=(pe=ge[V])==null?void 0:pe.queries)==null?void 0:ye[he.queryCacheKey],Se=_e==null?void 0:_e.fulfilledTimeStamp,Ee=he.originalArgs,Ce=_e==null?void 0:_e.originalArgs,xe=K[he.endpointName];return isUpsertQuery(he)?!0:(_e==null?void 0:_e.status)==="pending"?!1:oe(he,ge)||isQueryDefinition$1(xe)&&((be=xe==null?void 0:xe.forceRefetch)!=null&&be.call(xe,{currentArg:Ee,previousArg:Ce,endpointState:_e,state:ge}))?!0:!Se},dispatchConditionRejection:!0}),se=toolkit.createAsyncThunk(V+"/executeMutation",ae,{getPendingMeta:function(){var he;return he={startedTimeStamp:Date.now()},he[toolkit.SHOULD_AUTOBATCH]=!0,he}}),ce=function(he){return"force"in he},de=function(he){return"ifOlderThan"in he},le=function(he,me,ue){return function(pe,ye){var be=ce(ue)&&ue.force,ge=de(ue)&&ue.ifOlderThan,_e=function(xe){return xe===void 0&&(xe=!0),ee.endpoints[he].initiate(me,{forceRefetch:xe})},Se=ee.endpoints[he].select(me)(ye());if(be)pe(_e());else if(ge){var Ee=Se==null?void 0:Se.fulfilledTimeStamp;if(!Ee){pe(_e());return}var Ce=(Number(new Date)-Number(new Date(Ee)))/1e3>=ge;Ce&&pe(_e())}else pe(_e(!1))}};function ve(he){return function(me){var ue,pe;return((pe=(ue=me==null?void 0:me.meta)==null?void 0:ue.arg)==null?void 0:pe.endpointName)===he}}function fe(he,me){return{matchPending:toolkit.isAllOf(toolkit.isPending(he),ve(me)),matchFulfilled:toolkit.isAllOf(toolkit.isFulfilled(he),ve(me)),matchRejected:toolkit.isAllOf(toolkit.isRejected(he),ve(me))}}return{queryThunk:ie,mutationThunk:se,prefetch:le,updateQueryData:ne,upsertQueryData:re,patchQueryData:te,buildMatchThunkActions:fe}}function calculateProvidedByThunk(C,$,V,F){return calculateProvidedBy(V[C.meta.arg.endpointName][$],toolkit.isFulfilled(C)?C.payload:void 0,toolkit.isRejectedWithValue(C)?C.payload:void 0,C.meta.arg.originalArgs,"baseQueryMeta"in C.meta?C.meta.baseQueryMeta:void 0,F)}function updateQuerySubstateIfExists(C,$,V){var F=C[$];F&&V(F)}function getMutationCacheKey(C){var $;return($="arg"in C?C.arg.fixedCacheKey:C.fixedCacheKey)!=null?$:C.requestId}function updateMutationSubstateIfExists(C,$,V){var F=C[getMutationCacheKey($)];F&&V(F)}var initialState$8={};function buildSlice(C){var $=C.reducerPath,V=C.queryThunk,F=C.mutationThunk,K=C.context,J=K.endpointDefinitions,ee=K.apiUid,te=K.extractRehydrationInfo,ne=K.hasRehydrationInfo,re=C.assertTagType,ae=C.config,oe=toolkit.createAction($+"/resetApiState"),ie=toolkit.createSlice({name:$+"/queries",initialState:initialState$8,reducers:{removeQueryResult:{reducer:function(ue,pe){var ye=pe.payload.queryCacheKey;delete ue[ye]},prepare:toolkit.prepareAutoBatched()},queryResultPatched:function(ue,pe){var ye=pe.payload,be=ye.queryCacheKey,ge=ye.patches;updateQuerySubstateIfExists(ue,be,function(_e){_e.data=pn(_e.data,ge.concat())})}},extraReducers:function(ue){ue.addCase(V.pending,function(pe,ye){var be=ye.meta,ge=ye.meta.arg,_e,Se,Ee=isUpsertQuery(ge);(ge.subscribe||Ee)&&((Se=pe[_e=ge.queryCacheKey])!=null||(pe[_e]={status:QueryStatus.uninitialized,endpointName:ge.endpointName})),updateQuerySubstateIfExists(pe,ge.queryCacheKey,function(Ce){Ce.status=QueryStatus.pending,Ce.requestId=Ee&&Ce.requestId?Ce.requestId:be.requestId,ge.originalArgs!==void 0&&(Ce.originalArgs=ge.originalArgs),Ce.startedTimeStamp=be.startedTimeStamp})}).addCase(V.fulfilled,function(pe,ye){var be=ye.meta,ge=ye.payload;updateQuerySubstateIfExists(pe,be.arg.queryCacheKey,function(_e){var Se;if(!(_e.requestId!==be.requestId&&!isUpsertQuery(be.arg))){var Ee=J[be.arg.endpointName].merge;if(_e.status=QueryStatus.fulfilled,Ee)if(_e.data!==void 0){var Ce=be.fulfilledTimeStamp,xe=be.arg,$e=be.baseQueryMeta,Ie=be.requestId,Fe=toolkit.createNextState(_e.data,function(Ne){return Ee(Ne,ge,{arg:xe.originalArgs,baseQueryMeta:$e,fulfilledTimeStamp:Ce,requestId:Ie})});_e.data=Fe}else _e.data=ge;else _e.data=(Se=J[be.arg.endpointName].structuralSharing)==null||Se?copyWithStructuralSharing(_e.data,ge):ge;delete _e.error,_e.fulfilledTimeStamp=be.fulfilledTimeStamp}})}).addCase(V.rejected,function(pe,ye){var be=ye.meta,ge=be.condition,_e=be.arg,Se=be.requestId,Ee=ye.error,Ce=ye.payload;updateQuerySubstateIfExists(pe,_e.queryCacheKey,function(xe){if(!ge){if(xe.requestId!==Se)return;xe.status=QueryStatus.rejected,xe.error=Ce!=null?Ce:Ee}})}).addMatcher(ne,function(pe,ye){for(var be=te(ye).queries,ge=0,_e=Object.entries(be);ge<_e.length;ge++){var Se=_e[ge],Ee=Se[0],Ce=Se[1];((Ce==null?void 0:Ce.status)===QueryStatus.fulfilled||(Ce==null?void 0:Ce.status)===QueryStatus.rejected)&&(pe[Ee]=Ce)}})}}),se=toolkit.createSlice({name:$+"/mutations",initialState:initialState$8,reducers:{removeMutationResult:{reducer:function(ue,pe){var ye=pe.payload,be=getMutationCacheKey(ye);be in ue&&delete ue[be]},prepare:toolkit.prepareAutoBatched()}},extraReducers:function(ue){ue.addCase(F.pending,function(pe,ye){var be=ye.meta,ge=ye.meta,_e=ge.requestId,Se=ge.arg,Ee=ge.startedTimeStamp;Se.track&&(pe[getMutationCacheKey(be)]={requestId:_e,status:QueryStatus.pending,endpointName:Se.endpointName,startedTimeStamp:Ee})}).addCase(F.fulfilled,function(pe,ye){var be=ye.payload,ge=ye.meta;ge.arg.track&&updateMutationSubstateIfExists(pe,ge,function(_e){_e.requestId===ge.requestId&&(_e.status=QueryStatus.fulfilled,_e.data=be,_e.fulfilledTimeStamp=ge.fulfilledTimeStamp)})}).addCase(F.rejected,function(pe,ye){var be=ye.payload,ge=ye.error,_e=ye.meta;_e.arg.track&&updateMutationSubstateIfExists(pe,_e,function(Se){Se.requestId===_e.requestId&&(Se.status=QueryStatus.rejected,Se.error=be!=null?be:ge)})}).addMatcher(ne,function(pe,ye){for(var be=te(ye).mutations,ge=0,_e=Object.entries(be);ge<_e.length;ge++){var Se=_e[ge],Ee=Se[0],Ce=Se[1];((Ce==null?void 0:Ce.status)===QueryStatus.fulfilled||(Ce==null?void 0:Ce.status)===QueryStatus.rejected)&&Ee!==(Ce==null?void 0:Ce.requestId)&&(pe[Ee]=Ce)}})}}),ce=toolkit.createSlice({name:$+"/invalidation",initialState:initialState$8,reducers:{},extraReducers:function(ue){ue.addCase(ie.actions.removeQueryResult,function(pe,ye){for(var be=ye.payload.queryCacheKey,ge=0,_e=Object.values(pe);ge<_e.length;ge++)for(var Se=_e[ge],Ee=0,Ce=Object.values(Se);Ee<Ce.length;Ee++){var xe=Ce[Ee],$e=xe.indexOf(be);$e!==-1&&xe.splice($e,1)}}).addMatcher(ne,function(pe,ye){for(var be,ge,_e,Se,Ee=te(ye).provided,Ce=0,xe=Object.entries(Ee);Ce<xe.length;Ce++)for(var $e=xe[Ce],Ie=$e[0],Fe=$e[1],Ne=0,De=Object.entries(Fe);Ne<De.length;Ne++)for(var Oe=De[Ne],we=Oe[0],Ae=Oe[1],ke=(Se=(ge=(be=pe[Ie])!=null?be:pe[Ie]={})[_e=we||"__internal_without_id"])!=null?Se:ge[_e]=[],je=0,ze=Ae;je<ze.length;je++){var Ve=ze[je],Xe=ke.includes(Ve);Xe||ke.push(Ve)}}).addMatcher(toolkit.isAnyOf(toolkit.isFulfilled(V),toolkit.isRejectedWithValue(V)),function(pe,ye){for(var be,ge,_e,Se,Ee=calculateProvidedByThunk(ye,"providesTags",J,re),Ce=ye.meta.arg.queryCacheKey,xe=0,$e=Object.values(pe);xe<$e.length;xe++)for(var Ie=$e[xe],Fe=0,Ne=Object.values(Ie);Fe<Ne.length;Fe++){var De=Ne[Fe],Oe=De.indexOf(Ce);Oe!==-1&&De.splice(Oe,1)}for(var we=0,Ae=Ee;we<Ae.length;we++){var ke=Ae[we],je=ke.type,ze=ke.id,Ve=(Se=(ge=(be=pe[je])!=null?be:pe[je]={})[_e=ze||"__internal_without_id"])!=null?Se:ge[_e]=[],Xe=Ve.includes(Ce);Xe||Ve.push(Ce)}})}}),de=toolkit.createSlice({name:$+"/subscriptions",initialState:initialState$8,reducers:{updateSubscriptionOptions:function(ue,pe){},unsubscribeQueryResult:function(ue,pe){},internal_probeSubscription:function(ue,pe){}}}),le=toolkit.createSlice({name:$+"/internalSubscriptions",initialState:initialState$8,reducers:{subscriptionsUpdated:function(ue,pe){return pn(ue,pe.payload)}}}),ve=toolkit.createSlice({name:$+"/config",initialState:__spreadValues$1({online:isOnline(),focused:isDocumentVisible(),middlewareRegistered:!1},ae),reducers:{middlewareRegistered:function(ue,pe){var ye=pe.payload;ue.middlewareRegistered=ue.middlewareRegistered==="conflict"||ee!==ye?"conflict":!0}},extraReducers:function(ue){ue.addCase(onOnline,function(pe){pe.online=!0}).addCase(onOffline,function(pe){pe.online=!1}).addCase(onFocus,function(pe){pe.focused=!0}).addCase(onFocusLost,function(pe){pe.focused=!1}).addMatcher(ne,function(pe){return __spreadValues$1({},pe)})}}),fe=toolkit.combineReducers({queries:ie.reducer,mutations:se.reducer,provided:ce.reducer,subscriptions:le.reducer,config:ve.reducer}),he=function(ue,pe){return fe(oe.match(pe)?void 0:ue,pe)},me=__spreadProps$1(__spreadValues$1(__spreadValues$1(__spreadValues$1(__spreadValues$1(__spreadValues$1({},ve.actions),ie.actions),de.actions),le.actions),se.actions),{unsubscribeMutationResult:se.actions.removeMutationResult,resetApiState:oe});return{reducer:he,actions:me}}var skipToken=Symbol.for("RTKQ/skipToken"),initialSubState={status:QueryStatus.uninitialized},defaultQuerySubState=toolkit.createNextState(initialSubState,function(){}),defaultMutationSubState=toolkit.createNextState(initialSubState,function(){});function buildSelectors(C){var $=C.serializeQueryArgs,V=C.reducerPath,F=function(ae){return defaultQuerySubState},K=function(ae){return defaultMutationSubState};return{buildQuerySelector:te,buildMutationSelector:ne,selectInvalidatedBy:re};function J(ae){return __spreadValues$1(__spreadValues$1({},ae),getRequestStatusFlags(ae.status))}function ee(ae){var oe=ae[V];if(process.env.NODE_ENV!=="production"&&!oe){if(ee.triggered)return oe;ee.triggered=!0,console.error("Error: No data found at `state."+V+"`. Did you forget to add the reducer to the store?")}return oe}function te(ae,oe){return function(ie){var se=$({queryArgs:ie,endpointDefinition:oe,endpointName:ae}),ce=function(le){var ve,fe,he;return(he=(fe=(ve=ee(le))==null?void 0:ve.queries)==null?void 0:fe[se])!=null?he:defaultQuerySubState},de=ie===skipToken?F:ce;return toolkit.createSelector(de,J)}}function ne(){return function(ae){var oe,ie;typeof ae=="object"?ie=(oe=getMutationCacheKey(ae))!=null?oe:skipToken:ie=ae;var se=function(de){var le,ve,fe;return(fe=(ve=(le=ee(de))==null?void 0:le.mutations)==null?void 0:ve[ie])!=null?fe:defaultMutationSubState},ce=ie===skipToken?K:se;return toolkit.createSelector(ce,J)}}function re(ae,oe){for(var ie,se=ae[V],ce=new Set,de=0,le=oe.map(expandTagDescription);de<le.length;de++){var ve=le[de],fe=se.provided[ve.type];if(fe)for(var he=(ie=ve.id!==void 0?fe[ve.id]:flatten(Object.values(fe)))!=null?ie:[],me=0,ue=he;me<ue.length;me++){var pe=ue[me];ce.add(pe)}}return flatten(Array.from(ce.values()).map(function(ye){var be=se.queries[ye];return be?[{queryCacheKey:ye,endpointName:be.endpointName,originalArgs:be.originalArgs}]:[]}))}}var cache$1=WeakMap?new WeakMap:void 0,defaultSerializeQueryArgs$1=function(C){var $=C.endpointName,V=C.queryArgs,F="",K=cache$1==null?void 0:cache$1.get(V);if(typeof K=="string")F=K;else{var J=JSON.stringify(V,function(ee,te){return toolkit.isPlainObject(te)?Object.keys(te).sort().reduce(function(ne,re){return ne[re]=te[re],ne},{}):te});toolkit.isPlainObject(V)&&(cache$1==null||cache$1.set(V,J)),F=J}return $+"("+F+")"};function buildCreateApi(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];return function(F){var K=defaultMemoize(function(ae){var oe,ie;return(ie=F.extractRehydrationInfo)==null?void 0:ie.call(F,ae,{reducerPath:(oe=F.reducerPath)!=null?oe:"api"})}),J=__spreadProps$1(__spreadValues$1({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},F),{extractRehydrationInfo:K,serializeQueryArgs:function(ae){var oe=defaultSerializeQueryArgs$1;if("serializeQueryArgs"in ae.endpointDefinition){var ie=ae.endpointDefinition.serializeQueryArgs;oe=function(se){var ce=ie(se);return typeof ce=="string"?ce:defaultSerializeQueryArgs$1(__spreadProps$1(__spreadValues$1({},se),{queryArgs:ce}))}}else F.serializeQueryArgs&&(oe=F.serializeQueryArgs);return oe(ae)},tagTypes:__spreadArray$2([],F.tagTypes||[])}),ee={endpointDefinitions:{},batch:function(ae){ae()},apiUid:toolkit.nanoid(),extractRehydrationInfo:K,hasRehydrationInfo:defaultMemoize(function(ae){return K(ae)!=null})},te={injectEndpoints:re,enhanceEndpoints:function(ae){var oe=ae.addTagTypes,ie=ae.endpoints;if(oe)for(var se=0,ce=oe;se<ce.length;se++){var de=ce[se];J.tagTypes.includes(de)||J.tagTypes.push(de)}if(ie)for(var le=0,ve=Object.entries(ie);le<ve.length;le++){var fe=ve[le],he=fe[0],me=fe[1];typeof me=="function"?me(ee.endpointDefinitions[he]):Object.assign(ee.endpointDefinitions[he]||{},me)}return te}},ne=C.map(function(ae){return ae.init(te,J,ee)});function re(ae){for(var oe=ae.endpoints({query:function(me){return __spreadProps$1(__spreadValues$1({},me),{type:DefinitionType$1.query})},mutation:function(me){return __spreadProps$1(__spreadValues$1({},me),{type:DefinitionType$1.mutation})}}),ie=0,se=Object.entries(oe);ie<se.length;ie++){var ce=se[ie],de=ce[0],le=ce[1];if(!ae.overrideExisting&&de in ee.endpointDefinitions){typeof process!="undefined"&&process.env.NODE_ENV==="development"&&console.error("called `injectEndpoints` to override already-existing endpointName "+de+" without specifying `overrideExisting: true`");continue}ee.endpointDefinitions[de]=le;for(var ve=0,fe=ne;ve<fe.length;ve++){var he=fe[ve];he.injectEndpoint(de,le)}}return te}return te.injectEndpoints({endpoints:F.endpoints})}}function isObjectEmpty(C){for(var $ in C)return!1;return!0}var THIRTY_TWO_BIT_MAX_TIMER_SECONDS=2147483647/1e3-1,buildCacheCollectionHandler=function(C){var $=C.reducerPath,V=C.api,F=C.context,K=C.internalState,J=V.internalActions,ee=J.removeQueryResult,te=J.unsubscribeQueryResult;function ne(ie){var se=K.currentSubscriptions[ie];return!!se&&!isObjectEmpty(se)}var re={},ae=function(ie,se,ce){var de;if(te.match(ie)){var le=se.getState()[$],ve=ie.payload.queryCacheKey;oe(ve,(de=le.queries[ve])==null?void 0:de.endpointName,se,le.config)}if(V.util.resetApiState.match(ie))for(var fe=0,he=Object.entries(re);fe<he.length;fe++){var me=he[fe],ue=me[0],pe=me[1];pe&&clearTimeout(pe),delete re[ue]}if(F.hasRehydrationInfo(ie))for(var le=se.getState()[$],ye=F.extractRehydrationInfo(ie).queries,be=0,ge=Object.entries(ye);be<ge.length;be++){var _e=ge[be],ve=_e[0],Se=_e[1];oe(ve,Se==null?void 0:Se.endpointName,se,le.config)}};function oe(ie,se,ce,de){var le,ve=F.endpointDefinitions[se],fe=(le=ve==null?void 0:ve.keepUnusedDataFor)!=null?le:de.keepUnusedDataFor;if(fe!==1/0){var he=Math.max(0,Math.min(fe,THIRTY_TWO_BIT_MAX_TIMER_SECONDS));if(!ne(ie)){var me=re[ie];me&&clearTimeout(me),re[ie]=setTimeout(function(){ne(ie)||ce.dispatch(ee({queryCacheKey:ie})),delete re[ie]},he*1e3)}}}return ae},buildInvalidationByTagsHandler=function(C){var $=C.reducerPath,V=C.context,F=C.context.endpointDefinitions,K=C.mutationThunk,J=C.api,ee=C.assertTagType,te=C.refetchQuery,ne=J.internalActions.removeQueryResult,re=toolkit.isAnyOf(toolkit.isFulfilled(K),toolkit.isRejectedWithValue(K)),ae=function(ie,se){re(ie)&&oe(calculateProvidedByThunk(ie,"invalidatesTags",F,ee),se),J.util.invalidateTags.match(ie)&&oe(calculateProvidedBy(ie.payload,void 0,void 0,void 0,void 0,ee),se)};function oe(ie,se){var ce=se.getState(),de=ce[$],le=J.util.selectInvalidatedBy(ce,ie);V.batch(function(){for(var ve,fe=Array.from(le.values()),he=0,me=fe;he<me.length;he++){var ue=me[he].queryCacheKey,pe=de.queries[ue],ye=(ve=de.subscriptions[ue])!=null?ve:{};pe&&(Object.keys(ye).length===0?se.dispatch(ne({queryCacheKey:ue})):pe.status!==QueryStatus.uninitialized&&se.dispatch(te(pe,ue)))}})}return ae},buildPollingHandler=function(C){var $=C.reducerPath,V=C.queryThunk,F=C.api,K=C.refetchQuery,J=C.internalState,ee={},te=function(se,ce){(F.internalActions.updateSubscriptionOptions.match(se)||F.internalActions.unsubscribeQueryResult.match(se))&&re(se.payload,ce),(V.pending.match(se)||V.rejected.match(se)&&se.meta.condition)&&re(se.meta.arg,ce),(V.fulfilled.match(se)||V.rejected.match(se)&&!se.meta.condition)&&ne(se.meta.arg,ce),F.util.resetApiState.match(se)&&oe()};function ne(se,ce){var de=se.queryCacheKey,le=ce.getState()[$],ve=le.queries[de],fe=J.currentSubscriptions[de];if(!(!ve||ve.status===QueryStatus.uninitialized)){var he=ie(fe);if(Number.isFinite(he)){var me=ee[de];me!=null&&me.timeout&&(clearTimeout(me.timeout),me.timeout=void 0);var ue=Date.now()+he,pe=ee[de]={nextPollTimestamp:ue,pollingInterval:he,timeout:setTimeout(function(){pe.timeout=void 0,ce.dispatch(K(ve,de))},he)}}}}function re(se,ce){var de=se.queryCacheKey,le=ce.getState()[$],ve=le.queries[de],fe=J.currentSubscriptions[de];if(!(!ve||ve.status===QueryStatus.uninitialized)){var he=ie(fe);if(!Number.isFinite(he)){ae(de);return}var me=ee[de],ue=Date.now()+he;(!me||ue<me.nextPollTimestamp)&&ne({queryCacheKey:de},ce)}}function ae(se){var ce=ee[se];ce!=null&&ce.timeout&&clearTimeout(ce.timeout),delete ee[se]}function oe(){for(var se=0,ce=Object.keys(ee);se<ce.length;se++){var de=ce[se];ae(de)}}function ie(se){se===void 0&&(se={});var ce=Number.POSITIVE_INFINITY;for(var de in se)se[de].pollingInterval&&(ce=Math.min(se[de].pollingInterval,ce));return ce}return te},buildWindowEventHandler=function(C){var $=C.reducerPath,V=C.context,F=C.api,K=C.refetchQuery,J=C.internalState,ee=F.internalActions.removeQueryResult,te=function(re,ae){onFocus.match(re)&&ne(ae,"refetchOnFocus"),onOnline.match(re)&&ne(ae,"refetchOnReconnect")};function ne(re,ae){var oe=re.getState()[$],ie=oe.queries,se=J.currentSubscriptions;V.batch(function(){for(var ce=0,de=Object.keys(se);ce<de.length;ce++){var le=de[ce],ve=ie[le],fe=se[le];if(!(!fe||!ve)){var he=Object.values(fe).some(function(me){return me[ae]===!0})||Object.values(fe).every(function(me){return me[ae]===void 0})&&oe.config[ae];he&&(Object.keys(fe).length===0?re.dispatch(ee({queryCacheKey:le})):ve.status!==QueryStatus.uninitialized&&re.dispatch(K(ve,le)))}}})}return te},neverResolvedError=new Error("Promise never resolved before cacheEntryRemoved."),buildCacheLifecycleHandler=function(C){var $=C.api,V=C.reducerPath,F=C.context,K=C.queryThunk,J=C.mutationThunk;C.internalState;var ee=toolkit.isAsyncThunkAction(K),te=toolkit.isAsyncThunkAction(J),ne=toolkit.isFulfilled(K,J),re={},ae=function(se,ce,de){var le=oe(se);if(K.pending.match(se)){var ve=de[V].queries[le],fe=ce.getState()[V].queries[le];!ve&&fe&&ie(se.meta.arg.endpointName,se.meta.arg.originalArgs,le,ce,se.meta.requestId)}else if(J.pending.match(se)){var fe=ce.getState()[V].mutations[le];fe&&ie(se.meta.arg.endpointName,se.meta.arg.originalArgs,le,ce,se.meta.requestId)}else if(ne(se)){var he=re[le];he!=null&&he.valueResolved&&(he.valueResolved({data:se.payload,meta:se.meta.baseQueryMeta}),delete he.valueResolved)}else if($.internalActions.removeQueryResult.match(se)||$.internalActions.removeMutationResult.match(se)){var he=re[le];he&&(delete re[le],he.cacheEntryRemoved())}else if($.util.resetApiState.match(se))for(var me=0,ue=Object.entries(re);me<ue.length;me++){var pe=ue[me],ye=pe[0],he=pe[1];delete re[ye],he.cacheEntryRemoved()}};function oe(se){return ee(se)?se.meta.arg.queryCacheKey:te(se)?se.meta.requestId:$.internalActions.removeQueryResult.match(se)?se.payload.queryCacheKey:$.internalActions.removeMutationResult.match(se)?getMutationCacheKey(se.payload):""}function ie(se,ce,de,le,ve){var fe=F.endpointDefinitions[se],he=fe==null?void 0:fe.onCacheEntryAdded;if(he){var me={},ue=new Promise(function(Se){me.cacheEntryRemoved=Se}),pe=Promise.race([new Promise(function(Se){me.valueResolved=Se}),ue.then(function(){throw neverResolvedError})]);pe.catch(function(){}),re[de]=me;var ye=$.endpoints[se].select(fe.type===DefinitionType$1.query?ce:de),be=le.dispatch(function(Se,Ee,Ce){return Ce}),ge=__spreadProps$1(__spreadValues$1({},le),{getCacheEntry:function(){return ye(le.getState())},requestId:ve,extra:be,updateCachedData:fe.type===DefinitionType$1.query?function(Se){return le.dispatch($.util.updateQueryData(se,ce,Se))}:void 0,cacheDataLoaded:pe,cacheEntryRemoved:ue}),_e=he(ce,ge);Promise.resolve(_e).catch(function(Se){if(Se!==neverResolvedError)throw Se})}}return ae},buildQueryLifecycleHandler=function(C){var $=C.api,V=C.context,F=C.queryThunk,K=C.mutationThunk,J=toolkit.isPending(F,K),ee=toolkit.isRejected(F,K),te=toolkit.isFulfilled(F,K),ne={},re=function(ae,oe){var ie,se,ce;if(J(ae)){var de=ae.meta,le=de.requestId,ve=de.arg,fe=ve.endpointName,he=ve.originalArgs,me=V.endpointDefinitions[fe],ue=me==null?void 0:me.onQueryStarted;if(ue){var pe={},ye=new Promise(function($e,Ie){pe.resolve=$e,pe.reject=Ie});ye.catch(function(){}),ne[le]=pe;var be=$.endpoints[fe].select(me.type===DefinitionType$1.query?he:le),ge=oe.dispatch(function($e,Ie,Fe){return Fe}),_e=__spreadProps$1(__spreadValues$1({},oe),{getCacheEntry:function(){return be(oe.getState())},requestId:le,extra:ge,updateCachedData:me.type===DefinitionType$1.query?function($e){return oe.dispatch($.util.updateQueryData(fe,he,$e))}:void 0,queryFulfilled:ye});ue(he,_e)}}else if(te(ae)){var Se=ae.meta,le=Se.requestId,Ee=Se.baseQueryMeta;(ie=ne[le])==null||ie.resolve({data:ae.payload,meta:Ee}),delete ne[le]}else if(ee(ae)){var Ce=ae.meta,le=Ce.requestId,xe=Ce.rejectedWithValue,Ee=Ce.baseQueryMeta;(ce=ne[le])==null||ce.reject({error:(se=ae.payload)!=null?se:ae.error,isUnhandledError:!xe,meta:Ee}),delete ne[le]}};return re},buildDevCheckHandler=function(C){var $=C.api,V=C.context.apiUid,F=C.reducerPath;return function(K,J){var ee,te;$.util.resetApiState.match(K)&&J.dispatch($.internalActions.middlewareRegistered(V)),typeof process!="undefined"&&process.env.NODE_ENV==="development"&&$.internalActions.middlewareRegistered.match(K)&&K.payload===V&&((te=(ee=J.getState()[F])==null?void 0:ee.config)==null?void 0:te.middlewareRegistered)==="conflict"&&console.warn('There is a mismatch between slice and middleware for the reducerPath "'+F+`".
432
432
  You can only have one api per reducer path, this will lead to crashes in various situations!`+(F==="api"?`
433
433
  If you have multiple apis, you *have* to specify the reducerPath option when using createApi!`:""))}},promise,queueMicrotaskShim=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:typeof global!="undefined"?global:globalThis):function(C){return(promise||(promise=Promise.resolve())).then(C).catch(function($){return setTimeout(function(){throw $},0)})},buildBatchedActionsHandler=function(C){var $=C.api,V=C.queryThunk,F=C.internalState,K=$.reducerPath+"/subscriptions",J=null,ee=!1,te=$.internalActions,ne=te.updateSubscriptionOptions,re=te.unsubscribeQueryResult,ae=function(oe,ie){var se,ce,de,le,ve,fe,he,me,ue;if(ne.match(ie)){var pe=ie.payload,ye=pe.queryCacheKey,be=pe.requestId,ge=pe.options;return(se=oe==null?void 0:oe[ye])!=null&&se[be]&&(oe[ye][be]=ge),!0}if(re.match(ie)){var _e=ie.payload,ye=_e.queryCacheKey,be=_e.requestId;return oe[ye]&&delete oe[ye][be],!0}if($.internalActions.removeQueryResult.match(ie))return delete oe[ie.payload.queryCacheKey],!0;if(V.pending.match(ie)){var Se=ie.meta,Ee=Se.arg,be=Se.requestId;if(Ee.subscribe){var Ce=(de=oe[ce=Ee.queryCacheKey])!=null?de:oe[ce]={};return Ce[be]=(ve=(le=Ee.subscriptionOptions)!=null?le:Ce[be])!=null?ve:{},!0}}if(V.rejected.match(ie)){var xe=ie.meta,$e=xe.condition,Ee=xe.arg,be=xe.requestId;if($e&&Ee.subscribe){var Ce=(he=oe[fe=Ee.queryCacheKey])!=null?he:oe[fe]={};return Ce[be]=(ue=(me=Ee.subscriptionOptions)!=null?me:Ce[be])!=null?ue:{},!0}}return!1};return function(oe,ie){var se,ce;if(J||(J=JSON.parse(JSON.stringify(F.currentSubscriptions))),$.internalActions.internal_probeSubscription.match(oe)){var de=oe.payload,le=de.queryCacheKey,ve=de.requestId,fe=!!((se=F.currentSubscriptions[le])!=null&&se[ve]);return[!1,fe]}var he=ae(F.currentSubscriptions,oe);if(he){ee||(queueMicrotaskShim(function(){var ye=JSON.parse(JSON.stringify(F.currentSubscriptions)),be=cn(J,function(){return ye}),ge=be[1];ie.next($.internalActions.subscriptionsUpdated(ge)),J=ye,ee=!1}),ee=!0);var me=!!((ce=oe.type)!=null&&ce.startsWith(K)),ue=V.rejected.match(oe)&&oe.meta.condition&&!!oe.meta.arg.subscribe,pe=!me&&!ue;return[pe,!1]}return[!0,!1]}};function buildMiddleware(C){var $=C.reducerPath,V=C.queryThunk,F=C.api,K=C.context,J=K.apiUid,ee={invalidateTags:toolkit.createAction($+"/invalidateTags")},te=function(oe){return!!oe&&typeof oe.type=="string"&&oe.type.startsWith($+"/")},ne=[buildDevCheckHandler,buildCacheCollectionHandler,buildInvalidationByTagsHandler,buildPollingHandler,buildCacheLifecycleHandler,buildQueryLifecycleHandler],re=function(oe){var ie=!1,se={currentSubscriptions:{}},ce=__spreadProps$1(__spreadValues$1({},C),{internalState:se,refetchQuery:ae}),de=ne.map(function(fe){return fe(ce)}),le=buildBatchedActionsHandler(ce),ve=buildWindowEventHandler(ce);return function(fe){return function(he){ie||(ie=!0,oe.dispatch(F.internalActions.middlewareRegistered(J)));var me=__spreadProps$1(__spreadValues$1({},oe),{next:fe}),ue=oe.getState(),pe=le(he,me,ue),ye=pe[0],be=pe[1],ge;if(ye?ge=fe(he):ge=be,oe.getState()[$]&&(ve(he,me,ue),te(he)||K.hasRehydrationInfo(he)))for(var _e=0,Se=de;_e<Se.length;_e++){var Ee=Se[_e];Ee(he,me,ue)}return ge}}};return{middleware:re,actions:ee};function ae(oe,ie,se){return se===void 0&&(se={}),V(__spreadValues$1({type:"query",endpointName:oe.endpointName,originalArgs:oe.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:ie},se))}}function safeAssign$1(C){for(var $=[],V=1;V<arguments.length;V++)$[V-1]=arguments[V];Object.assign.apply(Object,__spreadArray$2([C],$))}var coreModuleName=Symbol(),coreModule=function(){return{name:coreModuleName,init:function(C,$,V){var F=$.baseQuery,K=$.tagTypes,J=$.reducerPath,ee=$.serializeQueryArgs,te=$.keepUnusedDataFor,ne=$.refetchOnMountOrArgChange,re=$.refetchOnFocus,ae=$.refetchOnReconnect;T();var oe=function(ke){return typeof process!="undefined"&&process.env.NODE_ENV==="development"&&(K.includes(ke.type)||console.error("Tag type '"+ke.type+"' was used, but not specified in `tagTypes`!")),ke};Object.assign(C,{reducerPath:J,endpoints:{},internalActions:{onOnline,onOffline,onFocus,onFocusLost},util:{}});var ie=buildThunks({baseQuery:F,reducerPath:J,context:V,api:C,serializeQueryArgs:ee}),se=ie.queryThunk,ce=ie.mutationThunk,de=ie.patchQueryData,le=ie.updateQueryData,ve=ie.upsertQueryData,fe=ie.prefetch,he=ie.buildMatchThunkActions,me=buildSlice({context:V,queryThunk:se,mutationThunk:ce,reducerPath:J,assertTagType:oe,config:{refetchOnFocus:re,refetchOnReconnect:ae,refetchOnMountOrArgChange:ne,keepUnusedDataFor:te,reducerPath:J}}),ue=me.reducer,pe=me.actions;safeAssign$1(C.util,{patchQueryData:de,updateQueryData:le,upsertQueryData:ve,prefetch:fe,resetApiState:pe.resetApiState}),safeAssign$1(C.internalActions,pe);var ye=buildMiddleware({reducerPath:J,context:V,queryThunk:se,mutationThunk:ce,api:C,assertTagType:oe}),be=ye.middleware,ge=ye.actions;safeAssign$1(C.util,ge),safeAssign$1(C,{reducer:ue,middleware:be});var _e=buildSelectors({serializeQueryArgs:ee,reducerPath:J}),Se=_e.buildQuerySelector,Ee=_e.buildMutationSelector,Ce=_e.selectInvalidatedBy;safeAssign$1(C.util,{selectInvalidatedBy:Ce});var xe=buildInitiate({queryThunk:se,mutationThunk:ce,api:C,serializeQueryArgs:ee,context:V}),$e=xe.buildInitiateQuery,Ie=xe.buildInitiateMutation,Fe=xe.getRunningMutationThunk,Ne=xe.getRunningMutationsThunk,De=xe.getRunningQueriesThunk,Oe=xe.getRunningQueryThunk,we=xe.getRunningOperationPromises,Ae=xe.removalWarning;return safeAssign$1(C.util,{getRunningOperationPromises:we,getRunningOperationPromise:Ae,getRunningMutationThunk:Fe,getRunningMutationsThunk:Ne,getRunningQueryThunk:Oe,getRunningQueriesThunk:De}),{name:coreModuleName,injectEndpoint:function(ke,je){var ze,Ve,Xe=C;(Ve=(ze=Xe.endpoints)[ke])!=null||(ze[ke]={}),isQueryDefinition$1(je)?safeAssign$1(Xe.endpoints[ke],{name:ke,select:Se(ke,je),initiate:$e(ke,je)},he(se,ke)):isMutationDefinition$1(je)&&safeAssign$1(Xe.endpoints[ke],{name:ke,select:Ee(),initiate:Ie(ke)},he(ce,ke))}}}}},__spreadArray$1=globalThis&&globalThis.__spreadArray||function(C,$){for(var V=0,F=$.length,K=C.length;V<F;V++,K++)C[K]=$[V];return C},__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=function(C,$,V){return $ in C?__defProp(C,$,{enumerable:!0,configurable:!0,writable:!0,value:V}):C[$]=V},__spreadValues=function(C,$){for(var V in $||($={}))__hasOwnProp.call($,V)&&__defNormalProp(C,V,$[V]);if(__getOwnPropSymbols)for(var F=0,K=__getOwnPropSymbols($);F<K.length;F++){var V=K[F];__propIsEnum.call($,V)&&__defNormalProp(C,V,$[V])}return C},__spreadProps=function(C,$){return __defProps(C,__getOwnPropDescs($))};function useStableQueryArgs(C,$,V,F){var K=React.useMemo(function(){return{queryArgs:C,serialized:typeof C=="object"?$({queryArgs:C,endpointDefinition:V,endpointName:F}):C}},[C,$,V,F]),J=React.useRef(K);return React.useEffect(function(){J.current.serialized!==K.serialized&&(J.current=K)},[K]),J.current.serialized===K.serialized?J.current.queryArgs:C}var UNINITIALIZED_VALUE=Symbol();function useShallowStableValue(C){var $=React.useRef(C);return React.useEffect(function(){reactRedux.shallowEqual($.current,C)||($.current=C)},[C]),reactRedux.shallowEqual($.current,C)?$.current:C}var cache=WeakMap?new WeakMap:void 0,defaultSerializeQueryArgs=function(C){var $=C.endpointName,V=C.queryArgs,F="",K=cache==null?void 0:cache.get(V);if(typeof K=="string")F=K;else{var J=JSON.stringify(V,function(ee,te){return toolkit.isPlainObject(te)?Object.keys(te).sort().reduce(function(ne,re){return ne[re]=te[re],ne},{}):te});toolkit.isPlainObject(V)&&(cache==null||cache.set(V,J)),F=J}return $+"("+F+")"},useIsomorphicLayoutEffect=typeof window!="undefined"&&window.document&&window.document.createElement?React.useLayoutEffect:React.useEffect,defaultMutationStateSelector=function(C){return C},noPendingQueryStateSelector=function(C){return C.isUninitialized?__spreadProps(__spreadValues({},C),{isUninitialized:!1,isFetching:!0,isLoading:C.data===void 0,status:QueryStatus.pending}):C};function buildHooks(C){var $=C.api,V=C.moduleOptions,F=V.batch,K=V.useDispatch,J=V.useSelector,ee=V.useStore,te=V.unstable__sideEffectsInRender,ne=C.serializeQueryArgs,re=C.context,ae=te?function(de){return de()}:React.useEffect;return{buildQueryHooks:se,buildMutationHook:ce,usePrefetch:ie};function oe(de,le,ve){if(le!=null&&le.endpointName&&de.isUninitialized){var fe=le.endpointName,he=re.endpointDefinitions[fe];ne({queryArgs:le.originalArgs,endpointDefinition:he,endpointName:fe})===ne({queryArgs:ve,endpointDefinition:he,endpointName:fe})&&(le=void 0)}var me=de.isSuccess?de.data:le==null?void 0:le.data;me===void 0&&(me=de.data);var ue=me!==void 0,pe=de.isLoading,ye=!ue&&pe,be=de.isSuccess||pe&&ue;return __spreadProps(__spreadValues({},de),{data:me,currentData:de.data,isFetching:pe,isLoading:ye,isSuccess:be})}function ie(de,le){var ve=K(),fe=useShallowStableValue(le);return React.useCallback(function(he,me){return ve($.util.prefetch(de,he,__spreadValues(__spreadValues({},fe),me)))},[de,ve,fe])}function se(de){var le=function(he,me){var ue=me===void 0?{}:me,pe=ue.refetchOnReconnect,ye=ue.refetchOnFocus,be=ue.refetchOnMountOrArgChange,ge=ue.skip,_e=ge===void 0?!1:ge,Se=ue.pollingInterval,Ee=Se===void 0?0:Se,Ce=$.endpoints[de].initiate,xe=K(),$e=useStableQueryArgs(_e?skipToken:he,defaultSerializeQueryArgs,re.endpointDefinitions[de],de),Ie=useShallowStableValue({refetchOnReconnect:pe,refetchOnFocus:ye,pollingInterval:Ee}),Fe=React.useRef(!1),Ne=React.useRef(),De=Ne.current||{},Oe=De.queryCacheKey,we=De.requestId,Ae=!1;if(Oe&&we){var ke=xe($.internalActions.internal_probeSubscription({queryCacheKey:Oe,requestId:we}));if(process.env.NODE_ENV!=="production"&&typeof ke!="boolean")throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+$.reducerPath+`" has not been added to the store.
434
- You must add the middleware for RTK-Query to function correctly!`);Ae=!!ke}var je=!Ae&&Fe.current;return ae(function(){Fe.current=Ae}),ae(function(){je&&(Ne.current=void 0)},[je]),ae(function(){var ze,Ve=Ne.current;if(typeof process!="undefined"&&process.env.NODE_ENV==="removeMeOnCompilation"&&console.log(je),$e===skipToken){Ve==null||Ve.unsubscribe(),Ne.current=void 0;return}var Xe=(ze=Ne.current)==null?void 0:ze.subscriptionOptions;if(!Ve||Ve.arg!==$e){Ve==null||Ve.unsubscribe();var Ye=xe(Ce($e,{subscriptionOptions:Ie,forceRefetch:be}));Ne.current=Ye}else Ie!==Xe&&Ve.updateSubscriptionOptions(Ie)},[xe,Ce,be,$e,Ie,je]),React.useEffect(function(){return function(){var ze;(ze=Ne.current)==null||ze.unsubscribe(),Ne.current=void 0}},[]),React.useMemo(function(){return{refetch:function(){var ze;if(!Ne.current)throw new Error("Cannot refetch a query that has not been started yet.");return(ze=Ne.current)==null?void 0:ze.refetch()}}},[])},ve=function(he){var me=he===void 0?{}:he,ue=me.refetchOnReconnect,pe=me.refetchOnFocus,ye=me.pollingInterval,be=ye===void 0?0:ye,ge=$.endpoints[de].initiate,_e=K(),Se=React.useState(UNINITIALIZED_VALUE),Ee=Se[0],Ce=Se[1],xe=React.useRef(),$e=useShallowStableValue({refetchOnReconnect:ue,refetchOnFocus:pe,pollingInterval:be});ae(function(){var Ne,De,Oe=(Ne=xe.current)==null?void 0:Ne.subscriptionOptions;$e!==Oe&&((De=xe.current)==null||De.updateSubscriptionOptions($e))},[$e]);var Ie=React.useRef($e);ae(function(){Ie.current=$e},[$e]);var Fe=React.useCallback(function(Ne,De){De===void 0&&(De=!1);var Oe;return F(function(){var we;(we=xe.current)==null||we.unsubscribe(),xe.current=Oe=_e(ge(Ne,{subscriptionOptions:Ie.current,forceRefetch:!De})),Ce(Ne)}),Oe},[_e,ge]);return React.useEffect(function(){return function(){var Ne;(Ne=xe==null?void 0:xe.current)==null||Ne.unsubscribe()}},[]),React.useEffect(function(){Ee!==UNINITIALIZED_VALUE&&!xe.current&&Fe(Ee,!0)},[Ee,Fe]),React.useMemo(function(){return[Fe,Ee]},[Fe,Ee])},fe=function(he,me){var ue=me===void 0?{}:me,pe=ue.skip,ye=pe===void 0?!1:pe,be=ue.selectFromResult,ge=$.endpoints[de].select,_e=useStableQueryArgs(ye?skipToken:he,ne,re.endpointDefinitions[de],de),Se=React.useRef(),Ee=React.useMemo(function(){return toolkit.createSelector([ge(_e),function(Fe,Ne){return Ne},function(Fe){return _e}],oe)},[ge,_e]),Ce=React.useMemo(function(){return be?toolkit.createSelector([Ee],be):Ee},[Ee,be]),xe=J(function(Fe){return Ce(Fe,Se.current)},reactRedux.shallowEqual),$e=ee(),Ie=Ee($e.getState(),Se.current);return useIsomorphicLayoutEffect(function(){Se.current=Ie},[Ie]),xe};return{useQueryState:fe,useQuerySubscription:le,useLazyQuerySubscription:ve,useLazyQuery:function(he){var me=ve(he),ue=me[0],pe=me[1],ye=fe(pe,__spreadProps(__spreadValues({},he),{skip:pe===UNINITIALIZED_VALUE})),be=React.useMemo(function(){return{lastArg:pe}},[pe]);return React.useMemo(function(){return[ue,ye,be]},[ue,ye,be])},useQuery:function(he,me){var ue=le(he,me),pe=fe(he,__spreadValues({selectFromResult:he===skipToken||me!=null&&me.skip?void 0:noPendingQueryStateSelector},me)),ye=pe.data,be=pe.status,ge=pe.isLoading,_e=pe.isSuccess,Se=pe.isError,Ee=pe.error;return React.useDebugValue({data:ye,status:be,isLoading:ge,isSuccess:_e,isError:Se,error:Ee}),React.useMemo(function(){return __spreadValues(__spreadValues({},pe),ue)},[pe,ue])}}}function ce(de){return function(le){var ve=le===void 0?{}:le,fe=ve.selectFromResult,he=fe===void 0?defaultMutationStateSelector:fe,me=ve.fixedCacheKey,ue=$.endpoints[de],pe=ue.select,ye=ue.initiate,be=K(),ge=React.useState(),_e=ge[0],Se=ge[1];React.useEffect(function(){return function(){_e!=null&&_e.arg.fixedCacheKey||_e==null||_e.reset()}},[_e]);var Ee=React.useCallback(function(Ve){var Xe=be(ye(Ve,{fixedCacheKey:me}));return Se(Xe),Xe},[be,ye,me]),Ce=(_e||{}).requestId,xe=React.useMemo(function(){return toolkit.createSelector([pe({fixedCacheKey:me,requestId:_e==null?void 0:_e.requestId})],he)},[pe,_e,he,me]),$e=J(xe,reactRedux.shallowEqual),Ie=me==null?_e==null?void 0:_e.arg.originalArgs:void 0,Fe=React.useCallback(function(){F(function(){_e&&Se(void 0),me&&be($.internalActions.removeMutationResult({requestId:Ce,fixedCacheKey:me}))})},[be,me,_e,Ce]),Ne=$e.endpointName,De=$e.data,Oe=$e.status,we=$e.isLoading,Ae=$e.isSuccess,ke=$e.isError,je=$e.error;React.useDebugValue({endpointName:Ne,data:De,status:Oe,isLoading:we,isSuccess:Ae,isError:ke,error:je});var ze=React.useMemo(function(){return __spreadProps(__spreadValues({},$e),{originalArgs:Ie,reset:Fe})},[$e,Ie,Fe]);return React.useMemo(function(){return[Ee,ze]},[Ee,ze])}}}var DefinitionType;(function(C){C.query="query",C.mutation="mutation"})(DefinitionType||(DefinitionType={}));function isQueryDefinition(C){return C.type===DefinitionType.query}function isMutationDefinition(C){return C.type===DefinitionType.mutation}function capitalize$1(C){return C.replace(C[0],C[0].toUpperCase())}function safeAssign(C){for(var $=[],V=1;V<arguments.length;V++)$[V-1]=arguments[V];Object.assign.apply(Object,__spreadArray$1([C],$))}var reactHooksModuleName=Symbol(),reactHooksModule=function(C){var $=C===void 0?{}:C,V=$.batch,F=V===void 0?reactRedux.batch:V,K=$.useDispatch,J=K===void 0?reactRedux.useDispatch:K,ee=$.useSelector,te=ee===void 0?reactRedux.useSelector:ee,ne=$.useStore,re=ne===void 0?reactRedux.useStore:ne,ae=$.unstable__sideEffectsInRender,oe=ae===void 0?!1:ae;return{name:reactHooksModuleName,init:function(ie,se,ce){var de=se.serializeQueryArgs,le=ie,ve=buildHooks({api:ie,moduleOptions:{batch:F,useDispatch:J,useSelector:te,useStore:re,unstable__sideEffectsInRender:oe},serializeQueryArgs:de,context:ce}),fe=ve.buildQueryHooks,he=ve.buildMutationHook,me=ve.usePrefetch;return safeAssign(le,{usePrefetch:me}),safeAssign(ce,{batch:F}),{injectEndpoint:function(ue,pe){if(isQueryDefinition(pe)){var ye=fe(ue),be=ye.useQuery,ge=ye.useLazyQuery,_e=ye.useLazyQuerySubscription,Se=ye.useQueryState,Ee=ye.useQuerySubscription;safeAssign(le.endpoints[ue],{useQuery:be,useLazyQuery:ge,useLazyQuerySubscription:_e,useQueryState:Se,useQuerySubscription:Ee}),ie["use"+capitalize$1(ue)+"Query"]=be,ie["useLazy"+capitalize$1(ue)+"Query"]=ge}else if(isMutationDefinition(pe)){var Ce=he(ue);safeAssign(le.endpoints[ue],{useMutation:Ce}),ie["use"+capitalize$1(ue)+"Mutation"]=Ce}}}}}},createApi=buildCreateApi(coreModule(),reactHooksModule());let baseUrl="http://localhost:8000";const dynamicBaseQuery=(C,$,V)=>sr(this,null,function*(){return fetchBaseQuery({baseUrl,prepareHeaders:K=>{if(K.set("Content-Type","application/json"),typeof window!="undefined"){const J=document.querySelector('meta[name="csrf-token"]');J&&K.set("X-CSRF-Token",J.content)}return K}})(C,$,V)}),careerHubApi=createApi({reducerPath:"careerHubApi",baseQuery:dynamicBaseQuery,tagTypes:["CareerHub","Jobs","PipelineJobs","RelevantJobs","FilterOptions","JobPreview","JobAlerts"],endpoints:()=>({})}),setBaseUrl=C=>{C!==baseUrl&&(baseUrl=C)},BASE_URL="/api/v3/careers-hub/applications",createApplicationService=careerHubApi.injectEndpoints({endpoints:C=>({createApplication:C.mutation({query:({jobProfileId:$,utmMedium:V,utmSource:F,currentTab:K,utmId:J})=>({url:BASE_URL,method:"POST",body:{job_profile_id:$,medium:V!=null?V:"ch",origin:F!=null?F:"direct",tab_name:K,action_type:J!=null?J:"apply"}}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]}),getApplication:C.query({query:({applicationId:$,jobProfileId:V,status:F})=>({url:`${BASE_URL}/${$}`,params:{job_profile_id:V,step_name:F}})}),updateApplication:C.mutation({query:({applicationId:$,payload:V})=>({url:`${BASE_URL}/${$}`,method:"PATCH",body:V}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]})})}),{useCreateApplicationMutation,useGetApplicationQuery,useUpdateApplicationMutation}=createApplicationService,useCreateApplication=({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K})=>{const[J,ee]=React.useState(null),[te,ne]=React.useState(null),[re,{isLoading:ae,isError:oe,error:ie,isSuccess:se}]=useCreateApplicationMutation(),ce=React.useCallback(()=>sr(this,null,function*(){var le,ve,fe,he;const de=yield re({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K});ee((ve=(le=de==null?void 0:de.data)==null?void 0:le.user_company)==null?void 0:ve.id),ne((he=(fe=de==null?void 0:de.data)==null?void 0:fe.user_company)==null?void 0:he.status)}),[re,C,$,V,F,K]);return React.useEffect(()=>{ce()},[ce]),{retry:ce,data:{status:te,applicationId:J},isLoading:ae,isError:oe,error:ie,isSuccess:se}},useApplicationForm=({jobProfileId:C,applicationId:$,status:V})=>{var re;const{data:F,isLoading:K,isError:J,error:ee,isSuccess:te,refetch:ne}=useGetApplicationQuery({applicationId:$,jobProfileId:C,status:V},{skip:!$||!V});return{retry:ne,data:(re=F==null?void 0:F.details)==null?void 0:re.data,isLoading:K,isError:J,error:ee,isSuccess:te}};function convertArraySingletonsToObject(C){return C.map($=>({label:$,value:$}))}const JOB_CARD_CONFIG={home:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},all:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},eligible:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},saved:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},applications:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!0,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!0},archived:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!1}},APPLICATION_STATUS={NOT_APPLIED:"Not Applied",SAVED:"Saved",APPLIED:"Applied",IN_PIPELINE:"In Pipeline",ARCHIVED:"Archived"},JOB_PROFILE_STATUS={ACTIVE:"active",PAUSED:"paused",INACTIVE:"inactive"},TABS={HOME:"home",ALL:"all",ELIGIBLE:"eligible",SAVED:"saved",APPLICATIONS:"applications",ARCHIVED:"archived"},WITHDRAW_REASONS=convertArraySingletonsToObject(["Got another offer","Company didn't match expectations","Need more prep time","Applied by mistake","Other"]),useJobCardState=({currentTab:C,isActive:$,jobData:V})=>{const F=React.useMemo(()=>JOB_CARD_CONFIG[C]||JOB_CARD_CONFIG.all,[C]),K=React.useMemo(()=>!0,[]),J=React.useMemo(()=>V.expiry?new Date(V.expiry)<new Date||V.jobProfileStatus!=="active":!1,[V.expiry,V.jobProfileStatus]);return{cardConfig:F,shouldShowBody:K,isExpired:J}},useJobFilters=()=>{const C=reactRedux.useSelector(V=>{var F;return((F=V.scalantCareerHub)==null?void 0:F.filter)||{}});return React.useMemo(()=>{const{filters:V,per_page:F,tab:K,page_number:J,sortings:ee,skip_expired_jobs:te}=C;return{per_page:F,tab:K,filters:V||{keyword:""},sortings:ee,page_number:J,skip_expired_jobs:te}},[C])},useInfiniteScroll=({hasMore:C=!0,isLoading:$=!1,isFetchingMore:V=!1,rootMargin:F="100px",threshold:K=.1}={})=>{const J=reactRedux.useDispatch(),ee=reactRedux.useSelector(oe=>{var ie,se;return((se=(ie=oe.scalantCareerHub)==null?void 0:ie.filter)==null?void 0:se.page_number)||1}),te=React.useRef(null),ne=React.useRef(null),re=React.useCallback(()=>{!$&&!V&&C&&J(setPageNumber(ee+1))},[J,ee,$,V,C]);return React.useEffect(()=>{const oe=te.current;if(ne.current&&(oe&&ne.current.unobserve(oe),ne.current=null),!oe||!C||$||V)return;const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});return ie.observe(oe),ne.current=ie,()=>{ne.current&&oe&&(ne.current.unobserve(oe),ne.current=null)}},[re,C,$,V,F,K]),{sentinelRef:React.useCallback(oe=>{if(te.current&&ne.current&&(ne.current.unobserve(te.current),ne.current=null),te.current=oe,oe&&C&&!$&&!V){const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});ie.observe(oe),ne.current=ie}},[re,C,$,V,F,K])}},getCurrentSortingValue=(C=[])=>{if(!C||C.length===0)return"eligibility";const $=C[0];for(const V of Object.values(SORTING_OPTIONS))if(V.mapping.property===$.property&&V.mapping.direction===$.direction)return V.value;return"eligibility"},accumulateJobs=(C=[],$=[])=>{if(!$||$.length===0)return C;const V=new Set(C.map(K=>K.id)),F=$.filter(K=>!V.has(K.id));return[...C,...F]},accumulateCompaniesMap=(C={},$={})=>Hn(Hn({},C),$),useAccumulatedJobs=(C,$=!1,V=!1,F=null)=>{const K=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.filter)==null?void 0:fe.page_number)||1}),J=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.dashboard)==null?void 0:fe.processCounts)||{}}),[ee,te]=React.useState([]),[ne,re]=React.useState({}),ae=React.useMemo(()=>(C==null?void 0:C.jobs)||(C==null?void 0:C.results)||[],[C==null?void 0:C.jobs,C==null?void 0:C.results]),oe=React.useMemo(()=>(C==null?void 0:C.companiesMap)||{},[C==null?void 0:C.companiesMap]),ie=React.useMemo(()=>F||null,[F]),se=React.useMemo(()=>typeof(C==null?void 0:C.totalEntries)=="number"?C.totalEntries:ie?J[ie]||0:null,[ie,J,C==null?void 0:C.totalEntries]);React.useEffect(()=>{K===1?(te(ae),re(oe)):ae.length>0&&(te(le=>accumulateJobs(le,ae)),re(le=>accumulateCompaniesMap(le,oe)))},[ae,oe,K]);const ce=React.useMemo(()=>se===null?ae.length>0:ee.length<se,[se,ee.length,ae.length]),de=$&&K>1;return{accumulatedJobs:ee,accumulatedCompaniesMap:ne,hasMore:ce,isFetchingMore:de,isLoading:(V||$)&&K===1}},filterService=careerHubApi.injectEndpoints({endpoints:C=>({getCompanies:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"companies",q:$}}),transformResponse:$=>($.data||[]).map(F=>({id:F.id,value:F.attributes.name})),providesTags:["FilterOptions"]}),getTitles:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"title",q:$}}),transformResponse:$=>{const V=($.data||[]).map(K=>({id:K.id,value:K.attributes.title||K.attributes.name}));let F={};return V.forEach(K=>{F[K.value]=K.value}),Object.keys(F).map(K=>({key:K,value:F[K]}))},providesTags:["FilterOptions"]}),getExperienceSkills:C.query({query:$=>({url:"/user/skills/all",params:{prefix_q:$}}),transformResponse:$=>($.all_skills||[]).map(F=>({skill_id:F.skill_id,key:F.key,skill_type:F.skill_type})).filter(F=>F.key&&F.skill_id&&F.skill_type).map(F=>({key:F.skill_id,value:F.key,type:F.skill_type})),providesTags:["FilterOptions"]})})}),{useGetCompaniesQuery,useGetTitlesQuery,useGetExperienceSkillsQuery}=filterService,convertToSelectOption=(C,$,V=$)=>!C||!Array.isArray(C)?[]:C.map(F=>({key:F[$],value:F[V]})),minCtcOptions=new Array(5).fill(1).map((C,$)=>({value:(C+$)*5,label:`>= ${(C+$)*5} Lakhs`})),minCtcUSOptions=[{value:20,label:">= 20K"},{value:30,label:">= 30K"},{value:50,label:">= 50K"},{value:75,label:">= 75K"},{value:100,label:">= 100K"}],mockInterviewSkillOptions=[{value:0,label:"Must to Have"},{value:1,label:"Good to Have"},{value:2,label:"Bar Raiser"},{value:3,label:"Must to Have (Eligibility)"}],datePostedOnOptions=[{value:1,label:"Last 24 hours"},{value:3,label:"Last 3 days"},{value:7,label:"Last 7 days"},{value:30,label:"Last 30 days"}],seniorityLevelOptions=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],stipendOptions=[{value:1e4,label:">= 10K"},{value:2e4,label:">= 20K"},{value:3e4,label:">= 30K"},{value:4e4,label:">= 40K"},{value:5e4,label:">= 50K"},{value:6e4,label:">= 60K"}],internshipDurationOptions=[{value:3,label:">= 3 months"},{value:6,label:">= 6 months"},{value:9,label:">= 9 months"},{value:12,label:">= 12 months"}],jobTypeOptions=[{value:"Full time roles",key:"full_time"},{value:"Internship roles",key:"internship"}],MONTH_OPTIONS$1=new Array(3).fill(1).map((C,$)=>({value:((C+$+1)*30).toString(),label:`greater than ${C+$+1} Months`})),NOTICE_PERIOD_OPTIONS$1=[{value:"not filled",label:"Not Available"},{value:"0",label:"0 Days"},{value:"15",label:"greater than 15 Days"},{value:"30",label:"greater than 30 Days"},{value:"45",label:"greater than 45 Days"},...MONTH_OPTIONS$1],getMinCtcOptions=C=>C?minCtcUSOptions:minCtcOptions,getProficiencyOptions=C=>C?Object.entries(C).map(([$,V])=>({value:V,label:$})):mockInterviewSkillOptions,getMeritBasedSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.id,label:$.title})),getExperienceSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.subtopic_id,label:$.subtopic,type:$.eligible_class||"SubTopic"})),filterOptions={minCtcOptions,minCtcUSOptions,getMinCtcOptions,mockInterviewSkillOptions,datePostedOnOptions,seniorityLevelOptions,stipendOptions,internshipDurationOptions,jobTypeOptions,NOTICE_PERIOD_OPTIONS:NOTICE_PERIOD_OPTIONS$1,convertToSelectOption,getProficiencyOptions,getMeritBasedSkillOptions,getExperienceSkillOptions},initialState$7={companyOptions:[],titleOptions:[],experienceSkillOptions:[]},filterOptionsSlice=toolkit.createSlice({name:"filterOptions",initialState:initialState$7,reducers:{setCompanyOptions:(C,$)=>{C.companyOptions=convertToSelectOption($.payload,"id","value")},setTitleOptions:(C,$)=>{C.titleOptions=$.payload},setExperienceSkillOptions:(C,$)=>{C.experienceSkillOptions=$.payload},clearCompanyOptions:C=>{C.companyOptions=[]},clearTitleOptions:C=>{C.titleOptions=[]},clearExperienceSkillOptions:()=>{},clearAllOptions:C=>{C.companyOptions=[],C.titleOptions=[],C.experienceSkillOptions=[]}},extraReducers:C=>{C.addMatcher(filterService.endpoints.getCompanies.matchFulfilled,($,V)=>{$.companyOptions=convertToSelectOption(V.payload,"id","value")}),C.addMatcher(filterService.endpoints.getTitles.matchFulfilled,($,V)=>{$.titleOptions=V.payload}),C.addMatcher(filterService.endpoints.getExperienceSkills.matchFulfilled,($,V)=>{const F=V.payload||[],K=$.experienceSkillOptions||[],J=new Map(K.map(ee=>[ee.key,ee]));F.forEach(ee=>{J.set(ee.key,ee)}),$.experienceSkillOptions=Array.from(J.values())})}}),{setCompanyOptions,setTitleOptions,setExperienceSkillOptions,clearCompanyOptions,clearTitleOptions,clearExperienceSkillOptions,clearAllOptions}=filterOptionsSlice.actions,filterOptionsReducer=filterOptionsSlice.reducer,useDebounce=(C,$)=>{const V=React.useRef(null);return React.useCallback((...F)=>{V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{C(...F)},$)},[C,$])},useAsyncFilterOptions=()=>{const C=reactRedux.useDispatch(),[$,V]=React.useState(""),[F,K]=React.useState(""),[J,ee]=React.useState(""),{isLoading:te,isFetching:ne}=useGetCompaniesQuery($,{skip:!$||$.length<3}),{isLoading:re,isFetching:ae}=useGetTitlesQuery(F,{skip:!F||F.length<3}),{isLoading:oe,isFetching:ie}=useGetExperienceSkillsQuery(J,{skip:!J||J.length<2});React.useEffect(()=>{(!$||$.length<3)&&C(clearCompanyOptions())},[$,C]),React.useEffect(()=>{(!F||F.length<3)&&C(clearTitleOptions())},[F,C]),React.useEffect(()=>{(!J||J.length<2)&&C(clearExperienceSkillOptions())},[J,C]);const se=React.useCallback(me=>{V(me)},[]),ce=useDebounce(se,300),de=React.useCallback(me=>{K(me)},[]),le=useDebounce(de,300),ve=React.useCallback(me=>{ee(me)},[]),fe=useDebounce(ve,300),he=React.useCallback((me,ue)=>me.map(pe=>{const ye=ue==null?void 0:ue.find(be=>be.key===pe);return{experience_skill_id:pe,skill_type:(ye==null?void 0:ye.type)||"SubTopic"}}),[]);return{handleCompanySearch:ce,handleTitleSearch:le,handleExperienceSkillSearch:fe,handleExperienceSkillChange:he,loadingCompanies:te||ne,loadingTitles:re||ae,loadingExperienceSkills:oe||ie}},useFilterMetaOptions=()=>{const C=reactRedux.useSelector(se=>{var ce;return((ce=se.scalantCareerHub.metaData)==null?void 0:ce.meta)||{}}),$=React.useMemo(()=>filterOptions.jobTypeOptions,[]),V=React.useMemo(()=>convertToSelectOption(C.jobCategories||[],"value","label"),[C.jobCategories]),F=React.useMemo(()=>convertToSelectOption(C.seniorityLevels||[],"value","label"),[C.seniorityLevels]),K=React.useMemo(()=>convertToSelectOption(C.companyCategories||[],"value","label"),[C.companyCategories]),J=React.useMemo(()=>convertToSelectOption(C.jobLocations||[],"label"),[C.jobLocations]),ee=React.useMemo(()=>convertToSelectOption(C.meritBasedSkills||[],"id","title"),[C.meritBasedSkills]),te=React.useMemo(()=>filterOptions.getMinCtcOptions(!1),[]),ne=React.useMemo(()=>filterOptions.stipendOptions,[]),re=React.useMemo(()=>filterOptions.internshipDurationOptions,[]),ae=React.useMemo(()=>filterOptions.NOTICE_PERIOD_OPTIONS,[]),oe=React.useMemo(()=>filterOptions.datePostedOnOptions,[]),ie=React.useMemo(()=>filterOptions.mockInterviewSkillOptions,[]);return{jobTypes:$,functions:V,seniorityLevels:F,companyCategories:K,locations:J,mbeSkills:ee,ctcRanges:te,stipendRanges:ne,durationRanges:re,noticePeriods:ae,datePostedOptions:oe,skillRatings:ie}},initialState$6={selectedJobId:null},layoutSlice=toolkit.createSlice({name:"layout",initialState:initialState$6,reducers:{setSelectedJobId:(C,$)=>{C.selectedJobId=$.payload},clearSelectedJobId:C=>{C.selectedJobId=null}}}),{setSelectedJobId,clearSelectedJobId}=layoutSlice.actions,layoutReducer=layoutSlice.reducer,serializeFiltersToQueryParams=C=>{const $=new URLSearchParams;return!C||typeof C!="object"||Object.keys(C).forEach(V=>{const F=C[V];if(!(F==null||F===""))if(Array.isArray(F))F.length>0&&$.append(V,F.join(","));else if(typeof F=="object")try{$.append(V,JSON.stringify(F))}catch(K){}else $.append(V,String(F))}),$},deserializeQueryParamsToFilters=C=>{const $={};return(typeof C=="string"?new URLSearchParams(C):C).forEach((F,K)=>{try{const J=JSON.parse(F);if(typeof J=="object"){$[K]=J;return}}catch(J){}if(F.includes(","))$[K]=F.split(",").filter(J=>J.trim()!=="");else if(!isNaN(F)&&F!==""){const J=Number(F);isNaN(J)?$[K]=F:$[K]=J}else $[K]=F}),$},updateURLWithFilters=C=>{if(typeof window=="undefined")return;const $=serializeFiltersToQueryParams(C),V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getFiltersFromURL=()=>typeof window=="undefined"?{}:deserializeQueryParamsToFilters(window.location.search),updateURLWithJobId=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("job_ids",String(C)):$.delete("job_ids");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getJobIdFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("job_ids")||null,updateURLWithTab=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("tab",String(C)):$.delete("tab");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getTabFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("tab")||null;function useJobQueryParams({syncToURL:C=!0,syncFromURL:$=!0}={}){const V=reactRedux.useDispatch(),F=reactRedux.useSelector(ae=>ae.scalantCareerHub.layout.selectedJobId),K=reactRedux.useSelector(ae=>{var oe,ie;return((ie=(oe=ae.scalantCareerHub)==null?void 0:oe.filter)==null?void 0:ie.tab)||TAG_TO_TAB_MAPPING.relevant}),J=React.useRef(!1),ee=React.useRef(!1);React.useEffect(()=>{if(!$||J.current)return;ee.current=!0;const ae=getTabFromURL(),oe=getJobIdFromURL();if(ae&&Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&V(setTab(ae)),oe){const ie=Number(oe);isNaN(ie)||V(setSelectedJobId(ie))}J.current=!0,ee.current=!1},[V,$]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithTab(K)},[K,C]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithJobId(F||null)},[F,C]);const te=ae=>{V(ae?setSelectedJobId(ae):clearSelectedJobId()),C&&updateURLWithJobId(ae)},ne=ae=>{Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&(V(setTab(ae)),C&&updateURLWithTab(ae))};return{currentTab:K,selectedJobId:F,updateJobId:te,updateTab:ne,updateTabAndJobId:(ae,oe)=>{ne(ae),te(oe)}}}const PRODUCT_NAME="Jobs Page V2",container$a="_container_lsttj_1",tag$2="_tag_lsttj_6",styles$K={container:container$a,tag:tag$2};function FilterTags({analytics:C}){const $=reactRedux.useDispatch(),{selectedJobId:V,updateJobId:F}=useJobQueryParams({syncFromURL:!1}),K=()=>{C==null||C.click("Filter Tags - Remove Job Filter",PRODUCT_NAME),F(null),$(updateFormFilters({job_ids:null}))};return V?React.createElement(Flex$1,{className:styles$K.container},React.createElement(Typography$1.Text,{className:styles$K.title},"Job Selected:"),React.createElement(Tag$1,{color:"blue",className:styles$K.tag,onClick:K},`ID#${V}`,React.createElement(CloseOutlined$1,{className:styles$K.closeIcon}))):React.createElement("div",{className:styles$K.container})}const content="_content_rx5qt_1",header$2="_header_rx5qt_10",sider="_sider_rx5qt_18",layout="_layout_rx5qt_22",styles$J={content,header:header$2,sider,layout},{Header,Sider,Content}=Layout$1;function JobsLayout({analytics:C,header:$,children:V,className:F,sider:K,siderWidth:J}){return React.createElement(Layout$1,{className:F},React.createElement(Header,{className:styles$J.header},$||"Header"),React.createElement(FilterTags,{analytics:C}),React.createElement(Layout$1,{className:styles$J.layout},React.createElement(Content,{className:styles$J.content},V),K&&React.createElement(Sider,{className:styles$J.sider,width:J||"25%"},K)))}JobsLayout.propTypes={analytics:PropTypes.object,children:PropTypes.node.isRequired,className:PropTypes.string,sider:PropTypes.node,siderWidth:PropTypes.oneOfType([PropTypes.string,PropTypes.number])},JobsLayout.defaultProps={className:"",sider:null,siderWidth:"25%"};const toCamelCase=C=>C&&C.replace(/_([a-z])/g,$=>$[1].toUpperCase()),toTitleCase=C=>!C||typeof C!="string"?C:C.toLowerCase().split(/[\s_]+/).map($=>$.charAt(0).toUpperCase()+$.slice(1)).join(" "),toCase=(C,$)=>{if(!$||typeof $!="string")return $;switch(C){case"camelCase":return toCamelCase($);case"titleCase":return toTitleCase($);default:return $}},toCamelCaseObject=C=>{if(C==null)return C;if(Array.isArray(C))return C.map(toCamelCaseObject);if(typeof C=="object"){const $={};return Object.keys(C).forEach(V=>{const F=toCamelCase(V);$[F]=toCamelCaseObject(C[V])}),$}return C},countPendingSteps=(C,$)=>{let V=0;return C!=null&&C.data&&Object.values(C.data).forEach(F=>{F.contests&&F.contests.cleared===!1&&(V+=1),F.skills&&F.skills.cleared===!1&&(V+=1)}),$!=null&&$.data&&Object.values($.data).forEach(F=>{F.data&&F.data.cleared===!1&&(V+=1)}),V},checkAllOtherRequirementsMet=(C,$)=>["experience","notice_period"].every(F=>{if(F===$)return!0;const K=C[F];return!K||K.isEligible}),ELIGIBILITY_TYPES={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},NON_WITHDRAW_STATUSES=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received"],determineJobTag=(C,$)=>{const{isRelevant:V,expiry:F,jobProfileStatus:K}=toCamelCaseObject(C),{isEligible:J,reasons:ee=[]}=toCamelCaseObject($)||{};if(F&&(new Date(F)<new Date||K!=="active"))return{tag:"expired",text:"Job Expired",icon:"ClockCircleOutlined",color:"#FF9C6E",antdColor:"volcano"};const ne=ee.reduce((ce,de)=>(ce[de.label]=de,ce),{}),re=ne.experience,ae=ne.notice_period,oe=ne.skills,ie=ne.tech_stacks;if(J&&V)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(J)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(re&&!re.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(ae&&!ae.isEligible&&checkAllOtherRequirementsMet(ne,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const se=countPendingSteps(oe,ie);return se>0&&checkAllOtherRequirementsMet(ne,"skills")?{tag:"steps_to_apply",text:`${se} ${se===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#2F54EB",antdColor:"geekblue",count:se}:{tag:ELIGIBILITY_TYPES.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},formatExperience$1=(C,$)=>{if(C===0&&$===0)return"Fresher";const V=Math.floor(C/12),F=Math.floor($/12);return V===F?`${V}y Experience`:F===0?"Fresher":V===0?`${F}y Experience`:`${V}y - ${F}y Experience`},formatCtc=({minCtc:C,maxCtc:$,openForDiscussionCtc:V,isInternship:F,stipend:K,userCountry:J="IN"})=>{if(F)return K?`₹${K}/month`:"Unpaid Internship";const ee=J==="US"?"$":"₹",te=J==="US"?"K":"L";if(C===null||$===null||C===void 0||$===void 0)return`${ee} (Flexible)`;let ne=`${ee}${C}${te} - ${ee}${$}${te} CTC`;return C===$&&(ne=`${ee}${C}${te} CTC`),V?`${ne} (Negotiable)`:ne},formatNoticePeriod=C=>!C||C===0?"Immediate":`${C} days Notice Period`,formatDate=C=>{if(!C)return"";const $=new Date(C),V=String($.getDate()).padStart(2,"0"),F=String($.getMonth()+1).padStart(2,"0"),K=$.getFullYear();return`${V}/${F}/${K}`},formatLocation=C=>{if(!C)return null;const $=C.split(",").map(V=>V.trim()).filter(Boolean);return $.length===0?null:$.length===1?$[0]:`${$[0]} +${$.length-1} more`};function formatProdErrorMessage(C){return"Minified Redux error #"+C+"; visit https://redux.js.org/Errors?code="+C+" for the full message or use the non-minified dev environment for full errors. "}var randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(C){if(typeof C!="object"||C===null)return!1;for(var $=C;Object.getPrototypeOf($)!==null;)$=Object.getPrototypeOf($);return Object.getPrototypeOf(C)===$}function miniKindOf(C){if(C===void 0)return"undefined";if(C===null)return"null";var $=typeof C;switch($){case"boolean":case"string":case"number":case"symbol":case"function":return $}if(Array.isArray(C))return"array";if(isDate(C))return"date";if(isError(C))return"error";var V=ctorName(C);switch(V){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return V}return $.slice(8,-1).toLowerCase().replace(/\s/g,"")}function ctorName(C){return typeof C.constructor=="function"?C.constructor.name:null}function isError(C){return C instanceof Error||typeof C.message=="string"&&C.constructor&&typeof C.constructor.stackTraceLimit=="number"}function isDate(C){return C instanceof Date?!0:typeof C.toDateString=="function"&&typeof C.getDate=="function"&&typeof C.setDate=="function"}function kindOf(C){var $=typeof C;return process.env.NODE_ENV!=="production"&&($=miniKindOf(C)),$}function warning$1(C){typeof console!="undefined"&&typeof console.error=="function"&&console.error(C);try{throw new Error(C)}catch($){}}function getUnexpectedStateShapeWarningMessage(C,$,V,F){var K=Object.keys($),J=V&&V.type===ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(K.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!isPlainObject(C))return"The "+J+' has unexpected type of "'+kindOf(C)+'". Expected argument to be an object with the following '+('keys: "'+K.join('", "')+'"');var ee=Object.keys(C).filter(function(te){return!$.hasOwnProperty(te)&&!F[te]});if(ee.forEach(function(te){F[te]=!0}),!(V&&V.type===ActionTypes.REPLACE)&&ee.length>0)return"Unexpected "+(ee.length>1?"keys":"key")+" "+('"'+ee.join('", "')+'" found in '+J+". ")+"Expected to find one of the known reducer keys instead: "+('"'+K.join('", "')+'". Unexpected keys will be ignored.')}function assertReducerShape(C){Object.keys(C).forEach(function($){var V=C[$],F=V(void 0,{type:ActionTypes.INIT});if(typeof F=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(12):'The slice reducer for key "'+$+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof V(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(13):'The slice reducer for key "'+$+'" returned undefined when probed with a random type. '+("Don't try to handle '"+ActionTypes.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function combineReducers(C){for(var $=Object.keys(C),V={},F=0;F<$.length;F++){var K=$[F];process.env.NODE_ENV!=="production"&&typeof C[K]=="undefined"&&warning$1('No reducer provided for key "'+K+'"'),typeof C[K]=="function"&&(V[K]=C[K])}var J=Object.keys(V),ee;process.env.NODE_ENV!=="production"&&(ee={});var te;try{assertReducerShape(V)}catch(ne){te=ne}return function(re,ae){if(re===void 0&&(re={}),te)throw te;if(process.env.NODE_ENV!=="production"){var oe=getUnexpectedStateShapeWarningMessage(re,V,ae,ee);oe&&warning$1(oe)}for(var ie=!1,se={},ce=0;ce<J.length;ce++){var de=J[ce],le=V[de],ve=re[de],fe=le(ve,ae);if(typeof fe=="undefined"){var he=ae&&ae.type;throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(14):"When called with an action of type "+(he?'"'+String(he)+'"':"(unknown type)")+', the slice reducer for key "'+de+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}se[de]=fe,ie=ie||fe!==ve}return ie=ie||J.length!==Object.keys(re).length,ie?se:re}}const initialState$5={processCounts:DEFAULT_PROCESS_COUNTS,userProfileData:null,filterModalOpen:!1,jobAlertModalOpen:!1},dashboardSlice=toolkit.createSlice({name:"dashboard",initialState:initialState$5,reducers:{setProcessCounts:(C,$)=>{C.processCounts=$.payload},setUserProfileData:(C,$)=>{C.userProfileData=$.payload},openFilterModal:C=>{C.filterModalOpen=!0},closeFilterModal:C=>{C.filterModalOpen=!1},openJobAlertModal:C=>{C.jobAlertModalOpen=!0},closeJobAlertModal:C=>{C.jobAlertModalOpen=!1}}}),{setProcessCounts,setUserProfileData,openFilterModal,closeFilterModal,openJobAlertModal,closeJobAlertModal}=dashboardSlice.actions,dashboardReducer=dashboardSlice.reducer,initialState$4={role_type:void 0,company_ids:[],job_title:[],job_category:[],seniority_level:[],company_categories:[],location:[],min_ctc:void 0,min_stipend:void 0,min_duration:void 0,notice_period:void 0,date_posted_on:void 0,mbe_skill_ids:{},experience_skill_ids:[],min_experience:void 0,max_experience:void 0},filterFormSlice=toolkit.createSlice({name:"filterForm",initialState:initialState$4,reducers:{updateFormField:(C,$)=>{const{field:V,value:F}=$.payload;C[V]=F},resetForm:()=>initialState$4,setFormData:(C,$)=>Hn(Hn({},C),$.payload),addRatingFilterInput:C=>{(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const $=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;C.mbe_skill_ids[$]={subject:null,rating:null}},deleteRatingFilterInput:(C,$)=>{const{inputFieldKey:V}=$.payload;C.mbe_skill_ids&&C.mbe_skill_ids[V]&&delete C.mbe_skill_ids[V]},updateRatingFilterInput:(C,$)=>{const{inputFilterSubKey:V,value:F}=$.payload;(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const K=V.split("_").slice(-1)[0],J=V.replace(`_${K}`,"");C.mbe_skill_ids[J]||(C.mbe_skill_ids[J]={subject:null,rating:null}),K==="subject"?C.mbe_skill_ids[J].subject=F:K==="rating"&&(C.mbe_skill_ids[J].rating=F)}}}),{updateFormField,resetForm,setFormData,addRatingFilterInput,deleteRatingFilterInput,updateRatingFilterInput}=filterFormSlice.actions,filterFormReducer=filterFormSlice.reducer,company_categories=[{value:5,label:"large_enterprise"},{value:6,label:"large_startups"},{value:7,label:"early_startups"}],job_categories=[{value:56529,label:"Backend Engineer"},{value:56530,label:"FullStack Engineer"},{value:56531,label:"Frontend Engineer"},{value:56569,label:"Android Engineer"},{value:56570,label:"iOS Engineer"},{value:179985,label:"Testing Engineer"},{value:189726,label:"Data Scientist"},{value:189727,label:"Data Analyst"},{value:189728,label:"Business Analyst"},{value:202365,label:"Data Engineer"},{value:221192,label:"DevOps Engineer"}],job_locations=[{value:"Bangalore",label:"Bangalore"},{value:"Pune",label:"Pune"},{value:"Hyderabad",label:"Hyderabad"},{value:"Gurgaon",label:"Gurgaon"},{value:"Noida",label:"Noida"},{value:"Chennai",label:"Chennai"},{value:"Delhi",label:"Delhi"},{value:"Chandigarh",label:"Chandigarh"},{value:"Kolkata",label:"Kolkata"},{value:"Mumbai",label:"Mumbai"},{value:"Jaipur",label:"Jaipur"},{value:"Vadodara",label:"Vadodara"},{value:"Nagpur",label:"Nagpur"},{value:"Ahmedabad",label:"Ahmedabad"},{value:"Kochi",label:"Kochi"},{value:"Mysore",label:"Mysore"},{value:"Coimbatore",label:"Coimbatore"},{value:"Bangkok",label:"Bangkok"},{value:"Mauritius",label:"Mauritius"},{value:"Udaipur",label:"Udaipur"},{value:"Cochin",label:"Cochin"},{value:"Remote",label:"Remote"},{value:"Hubballi",label:"Hubballi"},{value:"Goa",label:"Goa"},{value:"Trivandrum",label:"Trivandrum"},{value:"Indore",label:"Indore"},{value:"London",label:"London"},{value:"Bhubaneswar",label:"Bhubaneswar"},{value:"Menlo Park",label:"Menlo Park"},{value:"Dehradun",label:"Dehradun"},{value:"Hosur",label:"Hosur"},{value:"Delaware",label:"Delaware"},{value:"Amsterdam",label:"Amsterdam"},{value:"California",label:"California"},{value:"Mohali",label:"Mohali"},{value:"New Jersey",label:"New Jersey"},{value:"Arizona",label:"Arizona"},{value:"North Carolina",label:"North Carolina"},{value:"Agra",label:"Agra"},{value:"Saudi Arabia",label:"Saudi Arabia"},{value:"Pondicherry",label:"Pondicherry"},{value:"Vizag",label:"Vizag"}],role_types=[{value:198018,label:"internship"},{value:198019,label:"full_time"}],seniority_levels=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],proficiency_mapping={"Must to Have":0,"Good to Have":1,"Bar Raiser":2,"Must to Have (Eligibility)":3},onboarding_modal_clicked=!0,pipeline_stages=[{value:"draft",label:"Draft"},{value:"in_review",label:"In Review"},{value:"resume_sent",label:"Resume Sent"},{value:"resume_shortlisted",label:"Resume Shortlisted"},{value:"interviewing",label:"Interviewing"},{value:"to_be_offered",label:"To Be Offered"},{value:"rejected",label:"Rejected"},{value:"offer_received",label:"Offer Received"},{value:"offer_withdrawn",label:"Offer Withdrawn"},{value:"offer_accepted",label:"Offer Accepted"},{value:"offer_declined",label:"Offer Declined"},{value:"on_hold",label:"On Hold"},{value:"joined",label:"Joined"},{value:"saved",label:"Saved"},{value:"not_interested",label:"Not Interested"},{value:"application_withdrawn",label:"Application Withdrawn"},{value:"application_archived",label:"Application Archived"}],merit_based_skills=[{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:3053255},{id:37188,title:"High Level Design",mentee_module_id:3053256},{id:37189,title:"Frontend (React)",mentee_module_id:3053258},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:3053258},{id:37216,title:"Django",mentee_module_id:3053258},{id:37244,title:"Angular",mentee_module_id:3053258},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37193,title:"Data Analytics - Tools",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37197,title:"Computer Vision",mentee_module_id:7522793},{id:37198,title:"Natural Language Processing",mentee_module_id:7522794},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37201,title:"DA tools",mentee_module_id:null},{id:37202,title:"Intermediate DSA",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:7532826},{id:37186,title:"Javascript",mentee_module_id:7532826},{id:37187,title:"Low Level Design",mentee_module_id:7532828},{id:37189,title:"Frontend (React)",mentee_module_id:7532828},{id:37244,title:"Angular",mentee_module_id:7532828},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:7522864},{id:37184,title:"Python",mentee_module_id:5696347},{id:37185,title:"Java",mentee_module_id:5696347},{id:37186,title:"Javascript",mentee_module_id:5696347},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:5910715},{id:37189,title:"Frontend (React)",mentee_module_id:null},{id:37244,title:"Angular",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37226,title:"Data Structures & Algorithms Advanced",mentee_module_id:7522524},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37247,title:"Shell Scripting and CS Fundamentals",mentee_module_id:7522518},{id:37194,title:"EDA Fundamentals",mentee_module_id:null}],v1_onboarding_enabled=!0,v0_onboarding_completed=!0,initial_user_application_stage=4,is_discussion_hub_enabled=!1,resume_issues={total_issues:2},default_resume_details={id:17407,user_id:674153,name:"AswanthDefaultResume",default:!0,status:"active",meta:{social_profiles:{codechef:"",codeforces:"",geeksforgeeks:"",github:"",hackerearth:"",hackerrank:"",leetcode:"",portfolio:""},job_title:"Fullstack developer 1",interactions:{relevancy_alert_modal_displayed:!0}},modified_at:"2025-05-11T15:27:35.000Z",created_at:"2024-02-13T19:39:17.000Z",updated_at:"2025-05-11T15:27:35.000Z"},resume_builder_skills={language:[1167,1150,1148,1136,1128,1276,1270,1218,1217,1215,1213,1211,1210,1209],framework:[1206,1203,1200,1198,1197,1196,1195,1158,1157,1156,1145,1133],tools:[2431,2430,2435,1234,1231,1229,1228,1176,1175,2432,46262,58475]},skill_data=[{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1128,subtopic:"Javascript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1133,subtopic:"Angular",eligible_topic_id:7580,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1136,subtopic:"CSS",eligible_topic_id:7586,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1145,subtopic:"Flutter",eligible_topic_id:8760,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1148,subtopic:"HTML",eligible_topic_id:7589,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1150,subtopic:"JavaScript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1156,subtopic:"React",eligible_topic_id:7597,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1157,subtopic:"React Native",eligible_topic_id:8763,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1158,subtopic:"Redux",eligible_topic_id:8764,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1167,subtopic:"TypeScript",eligible_topic_id:8768,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1175,subtopic:"Android Development",eligible_topic_id:8753,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1176,subtopic:"iOS Development",eligible_topic_id:8770,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1195,subtopic:".NET",eligible_topic_id:7579,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1196,subtopic:"Django",eligible_topic_id:7587,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1197,subtopic:"Express.js",eligible_topic_id:8758,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1198,subtopic:"Flask",eligible_topic_id:8759,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1200,subtopic:"Node.js",eligible_topic_id:7594,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1203,subtopic:"Ruby on Rails",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1206,subtopic:"Spring Boot",eligible_topic_id:7600,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1209,subtopic:"C",eligible_topic_id:8755,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1210,subtopic:"Go",eligible_topic_id:8761,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1211,subtopic:"Java",eligible_topic_id:7590,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1213,subtopic:"Python",eligible_topic_id:7596,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1215,subtopic:"Ruby",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1217,subtopic:"Scala",eligible_topic_id:8765,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1218,subtopic:"Swift",eligible_topic_id:8766,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1228,subtopic:"MongoDB",eligible_topic_id:8769,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1229,subtopic:"MySQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1231,subtopic:"PostgreSQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1234,subtopic:"SQL Server",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1270,subtopic:"C#",eligible_topic_id:7584,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1276,subtopic:"C++",eligible_topic_id:7585,eligible_class:"Topic"},{id:null,topic:"Cloud Computing",topic_id:564,subtopic_id:2430,subtopic:"AWS",eligible_topic_id:7581,eligible_class:"Topic"},{id:null,topic:"CloudComputing",topic_id:564,subtopic_id:2431,subtopic:"Azure",eligible_topic_id:8754,eligible_class:"Topic"},{id:null,topic:"System Design",topic_id:563,subtopic_id:2432,subtopic:"Microservices",eligible_topic_id:7593,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:2435,subtopic:"SQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Machine Learning",topic_id:405,subtopic_id:46262,subtopic:"Tableau",eligible_topic_id:7604,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:58475,subtopic:"Power BI",eligible_topic_id:null,eligible_class:"Topic"}],commonData={company_categories,job_categories,job_locations,role_types,seniority_levels,proficiency_mapping,onboarding_modal_clicked,pipeline_stages,merit_based_skills,v1_onboarding_enabled,v0_onboarding_completed,initial_user_application_stage,is_discussion_hub_enabled,resume_issues,default_resume_details,resume_builder_skills,skill_data},capitalize=C=>!C||typeof C!="string"?C:C.charAt(0).toUpperCase()+C.slice(1).toLowerCase(),formatExperience=(C,$)=>{const V=C!=null?C:0,F=$!=null?$:0,K=[];return V>0&&K.push(`${V} ${V===1?"yr":"yrs"}`),K.push(`${F} ${F===1?"month":"months"}`),`${K.join(" ")} Experience`},transformCompanyCategories=C=>!C||!Array.isArray(C)?C:C.map($=>br(Hn({},$),{label:capitalize($.label||"").replace(/_/g," ")})),transformRoleTypes=C=>!C||!Array.isArray(C)?C:C.map($=>br(Hn({},$),{label:toCase("titleCase",$.label||"")})),transformMetaData=C=>{if(!C||typeof C!="object")return C;const $=toCamelCaseObject(C);return $.companyCategories&&($.companyCategories=transformCompanyCategories($.companyCategories)),$.roleTypes&&($.roleTypes=transformRoleTypes($.roleTypes)),$},rawMetaData=window.__CAREERS_HUB__||commonData,transformedMetaData=transformMetaData(rawMetaData),initialState$3={meta:transformedMetaData},metaDataSlice=toolkit.createSlice({name:"metaData",initialState:initialState$3,reducers:{setMetaData:(C,$)=>{C.meta=transformMetaData($.payload)}}});metaDataSlice.actions;const metaDataReducer=metaDataSlice.reducer,initialState$2={alerts:[],loading:!1,error:null},alertSlice=toolkit.createSlice({name:"alerts",initialState:initialState$2,reducers:{setAlerts:(C,$)=>{C.alerts=$.payload},addAlert:(C,$)=>{C.alerts.push($.payload)},setLoading:(C,$)=>{C.loading=$.payload},setError:(C,$)=>{C.error=$.payload}}}),{setAlerts,addAlert,setLoading,setError}=alertSlice.actions,alertReducer=alertSlice.reducer,initialState$1={savedJobs:{}},savedJobsSlice=toolkit.createSlice({name:"savedJobs",initialState:initialState$1,reducers:{setJobSavedStatus:(C,$)=>{const{jobId:V,status:F,lastUpdatedAt:K}=$.payload;F==="Saved"?C.savedJobs[V]={status:"Saved",lastUpdatedAt:K||new Date().toISOString()}:delete C.savedJobs[V]},initializeSavedJobs:(C,$)=>{($.payload||[]).forEach(F=>{F.applicationStatus==="Saved"&&(C.savedJobs[F.id]={status:"Saved",lastUpdatedAt:F.applicationLastUpdatedAt||new Date().toISOString()})})},clearSavedJobs:C=>{C.savedJobs={}}}}),{setJobSavedStatus,initializeSavedJobs,clearSavedJobs}=savedJobsSlice.actions,savedJobsReducer=savedJobsSlice.reducer;function isNullOrUndefined(C){return C==null}function getBlockerPointsChecklist(C){const{overall_resume_score:$,section_feedback:V,section_scores:F}=(C==null?void 0:C.resume_evaluation_result)||{};if(isNullOrUndefined($)||isNullOrUndefined(V)||$>2)return[];const K=[];return Object.keys(V).forEach(J=>{F[J]<2&&K.push(V[J][0])}),K}const initialState={fitmentScore:{},activeResumeId:null,activeResumeName:null,activeJobProfileId:null,activeResumeChecklist:[],isChecklistOpen:!1,resumeReviewData:{}},resumeFitmentSlice=toolkit.createSlice({name:"resumeFitment",initialState,reducers:{setFitmentScore:(C,$)=>{var ee,te,ne,re;const V=(ee=$.payload)==null?void 0:ee.job_profile_id,F=(te=$.payload)==null?void 0:te.user_resume_id,K=(ne=$.payload)==null?void 0:ne.score,J=(re=$.payload)==null?void 0:re.remarks;V&&F&&!isNullOrUndefined(K)&&(C.fitmentScore[V]=br(Hn({},C.fitmentScore[V]),{[F]:{score:K,remarks:J}}))},setResumeReviewData:(C,$)=>{const V=$.payload.resume_id;V&&(C.resumeReviewData[V]=$.payload)},setActiveResume:(C,$)=>{var J,ee,te;const V=(J=$.payload)==null?void 0:J.jobProfileId,F=(ee=$.payload)==null?void 0:ee.resumeId,K=(te=$.payload)==null?void 0:te.resumeName;V&&F&&(C.activeResumeId=F,C.activeJobProfileId=V,C.activeResumeName=K,C.activeResumeChecklist=getBlockerPointsChecklist(C.resumeReviewData[F]))},setChecklistOpen:(C,$)=>{var V,F,K;(V=$.payload)!=null&&V.syncWithBlockerPoints?C.isChecklistOpen=((F=C.activeResumeChecklist)==null?void 0:F.length)>0:C.isChecklistOpen=(K=$.payload)==null?void 0:K.isOpen}}}),{setFitmentScore,setActiveResume,setChecklistOpen,setResumeReviewData}=resumeFitmentSlice.actions,resumeFitmentReducer=resumeFitmentSlice.reducer,rootReducer=combineReducers({[careerHubApi.reducerPath]:careerHubApi.reducer,layout:layoutReducer,filter:filterReducer,dashboard:dashboardReducer,filterForm:filterFormReducer,metaData:metaDataReducer,filterOptions:filterOptionsReducer,alerts:alertReducer,savedJobs:savedJobsReducer,resumeFitment:resumeFitmentReducer}),HelloWorld=()=>React.createElement("div",{style:{padding:"20px",textAlign:"center"}},React.createElement("h1",null,"Hello World - Career Hub"),React.createElement("p",null,"This is a dummy component.")),tagsSection="_tagsSection_gf6im_1",tag$1="_tag_gf6im_1",activeTag="_activeTag_gf6im_22",icon="_icon_gf6im_29",styles$I={tagsSection,tag:tag$1,activeTag,icon};function TagsSection({analytics:C}){const{currentTab:$,updateTabAndJobId:V}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),F=$||TAG_TO_TAB_MAPPING.relevant,K=reactRedux.useSelector(ne=>{var re,ae;return((ae=(re=ne.scalantCareerHub)==null?void 0:re.dashboard)==null?void 0:ae.processCounts)||{}}),J=ne=>{var ae;C==null||C.click(`Tags Section - ${((ae=JOB_FILTER_TAGS[ne])==null?void 0:ae.label)||ne}`,PRODUCT_NAME);const re=TAG_TO_TAB_MAPPING[ne];re&&V(re)},ee=ne=>{const re=TAG_TO_TAB_MAPPING[ne];return F===re},te=ne=>{const re=COUNT_TO_TAB_MAPPING[ne];return K[re]||0};return React.createElement("div",{className:styles$I.tagsSection},Object.keys(JOB_FILTER_TAGS).map(ne=>React.createElement(Tag$1,{className:classNames(styles$I.tag,{[styles$I.activeTag]:ee(ne)}),key:ne,onClick:()=>J(ne)},React.createElement(JOB_FILTER_TAGS[ne].icon,{className:styles$I.icon}),JOB_FILTER_TAGS[ne].label," ",React.createElement("span",{className:styles$I.count},"(",te(ne),")"))))}const jobAlert="_jobAlert_kiep6_1",styles$H={jobAlert};function JobAlert({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Job Alert - Open Modal",PRODUCT_NAME),$(openJobAlertModal())};return React.createElement("div",{className:styles$H.jobAlert,onClick:V},React.createElement(AlertFilled$1,{className:styles$H.icon}),"Job Alerts")}const styles$G={};function Sorting(){const C=reactRedux.useDispatch(),$=reactRedux.useSelector(ee=>{var te,ne;return((ne=(te=ee.scalantCareerHub)==null?void 0:te.filter)==null?void 0:ne.sortings)||[]}),V=React.useMemo(()=>getCurrentSortingValue($),[$]),F=ee=>{const te=SORTING_OPTIONS[ee];te&&C(setSortings([te.mapping]))},K=Object.values(SORTING_OPTIONS).map(ee=>({value:ee.value,label:ee.value===V?`Sorted By: ${ee.label}`:ee.label})),J=ee=>{const te=SORTING_OPTIONS[ee.value];return te?te.label:ee.label};return React.createElement(Select$1,{className:styles$G.sorting,value:V,onChange:F,suffixIcon:React.createElement(DownOutlined$1,null),options:K,optionRender:J})}const styles$F={};function Filter({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Filter - Open Drawer",PRODUCT_NAME),$(openFilterModal())};return React.createElement(Button$2,{type:"primary",className:styles$F.filter,onClick:V},"Filters ",React.createElement(DownOutlined$1,null))}const search="_search_hhvxj_1",iconContainer$1="_iconContainer_hhvxj_7",input="_input_hhvxj_20",slideIn="_slideIn_hhvxj_1",styles$E={search,iconContainer:iconContainer$1,input,slideIn};function Search({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(ie=>{var se,ce,de;return((de=(ce=(se=ie.scalantCareerHub)==null?void 0:se.filter)==null?void 0:ce.filters)==null?void 0:de.keyword)||""}),[F,K]=React.useState(!1),[J,ee]=React.useState(V),te=React.useRef(null),ne=React.useRef(null);React.useEffect(()=>{ee(V)},[V]),React.useEffect(()=>{F&&te.current&&te.current.focus()},[F]);const re=()=>{C==null||C.click("Search - Icon Click",PRODUCT_NAME),K(!0)},ae=ie=>{const se=ie.target.value;ee(se),ne.current&&clearTimeout(ne.current),ne.current=setTimeout(()=>{$(setKeyword(se))},300)},oe=()=>{J.trim()||K(!1)};return React.useEffect(()=>()=>{ne.current&&clearTimeout(ne.current)},[]),React.createElement("div",{className:styles$E.search},F||J?React.createElement(Input$1,{ref:te,className:styles$E.input,placeholder:"Search for job or Company Name",value:J,onChange:ae,onBlur:oe,suffix:React.createElement(SearchOutlined$1,null)}):React.createElement("div",{className:styles$E.iconContainer,onClick:re},React.createElement(SearchOutlined$1,null)))}const actions$1="_actions_nxp1u_1",styles$D={actions:actions$1};function Actions$1({analytics:C}){return React.createElement("div",{className:styles$D.actions},React.createElement(JobAlert,{analytics:C}),React.createElement(Sorting,null),React.createElement(Filter,{analytics:C}),React.createElement(Search,{analytics:C}))}Actions$1.propTypes={analytics:PropTypes.object};const jobsHeaderContainer="_jobsHeaderContainer_1un8f_1",styles$C={jobsHeaderContainer};function JobsHeader({analytics:C,className:$}){return React.createElement("div",{className:classNames($,styles$C.jobsHeaderContainer)},React.createElement(TagsSection,{analytics:C}),React.createElement(Actions$1,{analytics:C}))}JobsHeader.propTypes={analytics:PropTypes.object,className:PropTypes.string},JobsHeader.defaultProps={className:""};const parsePreferredLocations=C=>!C||typeof C!="string"?[]:C.toLowerCase()==="anywhere_in_india"?["Anywhere In India"]:C.split("/").map($=>$.trim()).filter($=>$.length>0).map($=>toTitleCase($)),parsePreferredJobRoles=C=>!C||typeof C!="string"?[]:C.split("/").map($=>$.trim()).filter($=>$.length>0),dashboardService=careerHubApi.injectEndpoints({endpoints:C=>({fetchProcessCounts:C.query({query:()=>({url:"/job-tracker/fetch-process-counts/",method:"POST"}),transformResponse:$=>$.process_counts||{},providesTags:["ProcessCounts"]}),updateJobStatus:C.mutation({query:$=>({url:"/academy/mentee/jobs-mapping/update-status",method:"POST",body:$}),transformResponse:$=>$})})}),{useUpdateJobStatusMutation}=dashboardService,profileName="_profileName_1vhkf_1",profileDetails="_profileDetails_1vhkf_5",profileDetailsItems="_profileDetailsItems_1vhkf_13",preferencesTitle="_preferencesTitle_1vhkf_18",preferencesDivider="_preferencesDivider_1vhkf_22",preferencesContent="_preferencesContent_1vhkf_27",preferenceLabel="_preferenceLabel_1vhkf_31",preferenceValue="_preferenceValue_1vhkf_37",preferenceTag="_preferenceTag_1vhkf_42",jobIntentContainer="_jobIntentContainer_1vhkf_51",preferencesContainer="_preferencesContainer_1vhkf_55",styles$B={profileName,profileDetails,profileDetailsItems,preferencesTitle,preferencesDivider,preferencesContent,preferenceLabel,preferenceValue,preferenceTag,jobIntentContainer,preferencesContainer},DISPLAY_LABEL_TO_STATUS={"Looking for a job":"active","Not looking for a job":"inactive","Need time to prepare":"need_time"},STATUS_TO_PLACEMENT_INTENT={active:"Interested",inactive:"Not Interested",need_time:"Need Time to Prepare"},PLACEMENT_INTENT_TO_DISPLAY_LABEL={Interested:"Looking for a job","Need Time to Prepare":"Need time to prepare","Not Interested":"Not looking for a job"},JOB_INTENT_OPTIONS=[{label:"Looking for a job",value:"Looking for a job"},{label:"Need time to prepare",value:"Need time to prepare"},{label:"Not looking for a job",value:"Not looking for a job"}];function ProfileDetails({analytics:C,className:$,onViewResume:V,onEditPreferences:F}){var se,ce,de,le,ve,fe,he,me;const K=reactRedux.useSelector(ue=>ue.scalantCareerHub.dashboard.userProfileData),[J,{isLoading:ee}]=useUpdateJobStatusMutation(),[te,ne]=React.useState((K==null?void 0:K.placementIntent)||null);React.useEffect(()=>{K!=null&&K.placementIntent&&ne(K.placementIntent)},[K==null?void 0:K.placementIntent]);const re=()=>{C==null||C.click("Profile Details - View Resume",PRODUCT_NAME),V==null||V()},ae=()=>{C==null||C.click("Profile Details - Edit Preferences",PRODUCT_NAME),F==null||F()},oe=ue=>sr(this,null,function*(){try{const pe=DISPLAY_LABEL_TO_STATUS[ue];pe&&(yield J({source:"careers_hub",status:pe}).unwrap(),ne(STATUS_TO_PLACEMENT_INTENT[pe]))}catch(pe){console.error("Failed to update job status:",pe)}}),ie=ue=>PLACEMENT_INTENT_TO_DISPLAY_LABEL[ue]||null;return React.createElement("div",{className:classNames(styles$B.profileDetails,$)},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Avatar$1,{shape:"square",size:48,src:K==null?void 0:K.avatar}),React.createElement(Flex$1,{justify:"center",vertical:!0,gap:4},React.createElement(Typography$1.Title,{level:5,className:styles$B.profileName},K==null?void 0:K.name),React.createElement(Typography$1.Text,{type:"secondary"},toTitleCase((se=K==null?void 0:K.mentee)==null?void 0:se.careersHubProduct)))),React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$B.profileDetailsItems},React.createElement(Flex$1,{align:"center",gap:10},React.createElement(UserOutlined$1,null),React.createElement(Typography$1.Text,null,K==null?void 0:K.jobTitle)),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(StarOutlined$1,null),React.createElement(Typography$1.Text,null,formatExperience((ce=K==null?void 0:K.experienceYears)!=null?ce:K==null?void 0:K.experienceInYears,(de=K==null?void 0:K.experienceMonths)!=null?de:K==null?void 0:K.experienceInMonths))),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(FileTextTwoTone$1,null),React.createElement(Typography$1.Link,{onClick:re},"View Resume")),React.createElement(Flex$1,{vertical:!0,className:styles$B.jobIntentContainer,gap:8},React.createElement(Typography$1.Text,{type:"secondary"},"Select your intent in Career's Hub"),React.createElement(Select$1,{placeholder:"Select your intent",value:ie(te),onChange:oe,disabled:ee,loading:ee,style:{width:"100%"},options:JOB_INTENT_OPTIONS}))),React.createElement(Flex$1,{vertical:!0,className:styles$B.preferencesContainer},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Typography$1.Title,{level:5,className:styles$B.preferencesTitle},"Your Preferences"),React.createElement(EditTwoTone$1,{onClick:ae})),React.createElement(Divider$1,{className:styles$B.preferencesDivider}),React.createElement(Flex$1,{vertical:!0,gap:16,className:styles$B.preferencesContent},React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Location"),React.createElement(Flex$1,{gap:.4,wrap:!0},parsePreferredLocations((le=K==null?void 0:K.userCompanyProfile)==null?void 0:le.preferredLocation).map((ue,pe)=>React.createElement(Tag$1,{key:pe,bordered:!1,className:styles$B.preferenceTag},ue)))),React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Job roles"),React.createElement(Flex$1,{gap:.4,wrap:!0},parsePreferredJobRoles((ve=K==null?void 0:K.userCompanyProfile)==null?void 0:ve.preferredRole).map((ue,pe)=>React.createElement(Tag$1,{key:pe,className:styles$B.preferenceTag},ue)))),React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Expected CTC (LPA):"),React.createElement(Typography$1.Text,{className:styles$B.preferenceValue},(fe=K==null?void 0:K.userCompanyProfile)==null?void 0:fe.expectedCtc)),React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Notice period (In days):"),React.createElement(Typography$1.Text,{className:styles$B.preferenceValue},(he=K==null?void 0:K.userCompanyProfile)==null?void 0:he.noticePeriod)),React.createElement(Flex$1,{align:"center"},((me=K==null?void 0:K.userCompanyProfile)==null?void 0:me.buyoutNotice)&&React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"*Buyout available:")))))}ProfileDetails.propTypes={analytics:PropTypes.object,className:PropTypes.string},ProfileDetails.defaultProps={className:""};const jobPreviewApi=careerHubApi.injectEndpoints({endpoints:C=>({getJobPreview:C.query({query:$=>`/job-tracker/job_profile/${$}/`,providesTags:($,V,F)=>[{type:"JobPreview",id:F},{type:"JobPreview",id:"LIST"}],transformResponse:$=>{var ee,te,ne;const V=toCamelCaseObject($),F=((ee=V==null?void 0:V.data)==null?void 0:ee.attributes)||{},K=((ne=(te=V==null?void 0:V.included)==null?void 0:te.find(re=>re.type==="company"))==null?void 0:ne.attributes)||{},J=F.contestSkills||[];return{jobData:br(Hn({},F),{contestSkills:J,name:F.name||(K==null?void 0:K.name)||"Company"}),companyData:K,highlights:F.highlights,eligibilityCriteria:F.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery}=jobPreviewApi,JobPreviewContext=React.createContext(null),JobPreviewProvider=({analytics:C,country:$="IN",jobId:V,currentTab:F,openMockInterviewModal:K=(re,ae)=>{console.log("Method not implemented. We should get it from MIT"),console.log(re,ae)},openResume:J=()=>{console.log("Method not implemented. We should get it from MIT")},skip:ee=!1,onCloseResumeBuilder:te,children:ne})=>{const{data:re,isLoading:ae,error:oe,refetch:ie}=useGetJobPreviewQuery(V,{skip:!V||ee}),[se,ce]=React.useState(),[de,le]=React.useState(null),fe={analytics:C,activeApplicationId:de,setActiveApplicationId:le,activeTab:se,setActiveTab:he=>{ce(he),C==null||C.click("Job Preview - Active Tab Changed","Jobs Page V2",{tab:he,jobId:V})},country:$,jobId:V,data:re,isLoading:ae,error:oe,refetch:ie,openMockInterviewModal:K,openResume:J,jobData:re==null?void 0:re.jobData,companyData:re==null?void 0:re.companyData,highlights:re==null?void 0:re.highlights,eligibilityCriteria:re==null?void 0:re.eligibilityCriteria,currentTab:F,onCloseResumeBuilder:te};return React.createElement(JobPreviewContext.Provider,{value:fe},ne)},useJobPreview=()=>{const C=React.useContext(JobPreviewContext);if(!C)throw new Error("useJobPreview must be used within a JobPreviewProvider");return C},ApplicationFormContext=React.createContext();function ApplicationFormProvider({children:C,onUploadFile:$=()=>(console.log("Method not implemented. We should get it from MIT"),""),onEditResume:V=()=>(console.log("Method not implemented. We should get it from MIT"),""),onAddResume:F=()=>(console.log("Method not implemented. We should get it from MIT"),""),stepName:K,jobProfileId:J,applicationId:ee}){const[te,ne]=React.useState(null),[re,ae]=React.useState(K),[oe,ie]=React.useState(null);return React.useEffect(()=>{K===APPLICATION_STATUS$1.RESUME_CHOICE_SELECT?ae(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK):ae(K)},[K]),React.createElement(ApplicationFormContext.Provider,{value:{onUploadFile:$,formInstance:te,setFormInstance:ne,stepName:re,setStepName:ae,jobProfileId:J,applicationId:ee,selectedResume:oe,setSelectedResume:ie,onEditResume:V,onAddResume:F}},C)}const useApplicationFormContext=()=>{const C=React.useContext(ApplicationFormContext);if(!C)throw new Error("useApplicationForm must be used within a ApplicationFormProvider");return C},descriptionContainer$1="_descriptionContainer_sd7fu_1",container$9="_container_sd7fu_6",recruiterAvatar="_recruiterAvatar_sd7fu_10",recruiterCardContent="_recruiterCardContent_sd7fu_14",recruiterName="_recruiterName_sd7fu_18",recruiterEmail="_recruiterEmail_sd7fu_24",styles$A={descriptionContainer:descriptionContainer$1,container:container$9,recruiterAvatar,recruiterCardContent,recruiterName,recruiterEmail},RecruiterCard=({recruiter:C})=>{const{name:$,avatar:V,email:F}=C||{},{analytics:K}=useJobPreview(),J=()=>{K==null||K.click("Recruiter - Send Email",PRODUCT_NAME,{recruiterName:$,recruiterEmail:F})};return React.createElement(Card$1,{size:"small"},React.createElement(Space$1,{direction:"horizontal"},React.createElement(Avatar$1,{size:48,src:V,className:styles$A.recruiterAvatar}),React.createElement(Space$1,{direction:"vertical",className:styles$A.recruiterCardContent},React.createElement(Typography$1.Text,{className:styles$A.recruiterName},$),React.createElement(Typography$1.Link,{className:styles$A.recruiterEmail,href:`mailto:${F}`,onClick:J},React.createElement(MailTwoTone$1,null),"Send Email To Recruiter"))))},Recruiters=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return React.createElement(Space$1,null,$.map((V,F)=>React.createElement(RecruiterCard,{key:F,recruiter:V})))},TimelineSteps=()=>{const{jobData:C}=useJobPreview(),{applicationTimeline:$}=C||{},{timeline:V}=$||{},F=V.map(J=>({title:J.stageName,description:J.stageComments})),K=V.findIndex(J=>J.stageStatus==="ongoing");return React.createElement(Steps$1,{current:K,items:F,direction:"vertical"})},Timeline=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Your Application Status"),React.createElement(TimelineSteps,null)),RecruiterDetails=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return!$||$.length===0?null:React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Recruiter Details"),React.createElement(Recruiters,null))},ApplicationTimelineTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.container},React.createElement(Timeline,null),React.createElement(RecruiterDetails,null)),ICONS={bookmark:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/276/original/BookmarkSimple.svg?1765444708",exit:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/344/original/ExportOutlined.svg?1765460782",airplay:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/451/original/Vector.svg?1765523747",monitor:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/455/original/Vector_%281%29.svg?1765526679",likeBadge:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/171/516/original/Like-badge-_remix__1.svg?1766402587"},actionBanner="_actionBanner_13z26_1",actionBannerIcon="_actionBannerIcon_13z26_12",actionBannerContent="_actionBannerContent_13z26_17",actionBannerTitle="_actionBannerTitle_13z26_23",actionBannerDescription="_actionBannerDescription_13z26_29",actionBannerButton="_actionBannerButton_13z26_33",styles$z={actionBanner,actionBannerIcon,actionBannerContent,actionBannerTitle,actionBannerDescription,actionBannerButton},ActionBanner=({icon:C,title:$,description:V,buttonText:F,buttonIcon:K,className:J,onClick:ee,isLoading:te})=>React.createElement("div",{className:classNames(styles$z.actionBanner,J)},C,React.createElement("div",{className:styles$z.actionBannerContent},React.createElement("span",{className:styles$z.actionBannerTitle},$),React.createElement("span",{className:styles$z.actionBannerDescription},V)),React.createElement(Button$2,{icon:K,type:"primary",className:styles$z.actionBannerButton,onClick:ee,loading:te},F)),monitorBanner="_monitorBanner_gxbq6_1",monitorIcon="_monitorIcon_gxbq6_7",styles$y={monitorBanner,monitorIcon},INTERVIEW_QUESTIONS_URL="https://companion.scaler.com/interview-experiences",InterviewExperiencesBanner=()=>{var oe;const C=reactRedux.useSelector(ie=>ie.scalantCareerHub.dashboard.userProfileData),$=(oe=C==null?void 0:C.hasCompletedScreeningCall)!=null?oe:!1,{analytics:V,jobData:F,companyData:K,currentTab:J}=useJobPreview(),{title:ee,applicationStatus:te}=F||{},ne=te===APPLICATION_STATUS$1.WITHDRAWN,{name:re}=K||{},ae=React.useCallback(()=>{globalThis.open(`${INTERVIEW_QUESTIONS_URL}?company=${encodeURIComponent(re)}&role=${encodeURIComponent(ee)}`,"_blank"),V==null||V.click("Interview Experiences - Explore",PRODUCT_NAME)},[V,re,ee]);return!$||J!==TAG_TO_TAB_MAPPING.applied||ne?null:React.createElement(ActionBanner,{icon:React.createElement("img",{src:ICONS.monitor,className:styles$y.monitorIcon}),title:"We've got the resources you need for this role",description:"Explore Interview Experiences from Scaler learners who have attempted this before",buttonText:"Explore",buttonIcon:React.createElement(DoubleRightOutlined$1,null),className:styles$y.monitorBanner,onClick:ae})},jobDescriptionTab="_jobDescriptionTab_1g78n_1",contentContainer="_contentContainer_1g78n_5",descriptionTitle="_descriptionTitle_1g78n_10",descriptionText="_descriptionText_1g78n_19",stepText$1="_stepText_1g78n_19",descriptionLink="_descriptionLink_1g78n_33",list="_list_1g78n_37",steps="_steps_1g78n_41",stepTitle="_stepTitle_1g78n_48",descriptionContainer="_descriptionContainer_1g78n_59",container$8="_container_1g78n_64",indicatorContainer="_indicatorContainer_1g78n_69",indicatorLine="_indicatorLine_1g78n_74",indicatorDot="_indicatorDot_1g78n_82",extraIndicatorDot="_extraIndicatorDot_1g78n_82",styles$x={jobDescriptionTab,contentContainer,descriptionTitle,descriptionText,stepText:stepText$1,descriptionLink,list,steps,stepTitle,descriptionContainer,container:container$8,indicatorContainer,indicatorLine,indicatorDot,extraIndicatorDot},Company$1=()=>{const{companyData:C,analytics:$}=useJobPreview(),{name:V,employeeCount:F,companyVision:K,location:J,category:ee,companyWebsite:te}=C||{},ne=()=>{$==null||$.click("Company - Website Link",PRODUCT_NAME,{companyName:V})};return React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Link,{className:styles$x.descriptionTitle,href:te,target:"_blank",onClick:ne},"About ",V),K&&React.createElement(Typography$1.Paragraph,{className:styles$x.descriptionText},React.createElement("div",{dangerouslySetInnerHTML:{__html:K}})),J&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Office Location:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},J)),ee&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Company Category:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},toTitleCase(ee))),F&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"No. of Employees:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},F)))},collapsableContainer$1="_collapsableContainer_1s2ds_1",collapsed$1="_collapsed_1s2ds_5",viewMore$1="_viewMore_1s2ds_21",styles$w={collapsableContainer:collapsableContainer$1,collapsed:collapsed$1,viewMore:viewMore$1},CollapsableHTML=({analytics:C,html:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable HTML - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$w.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$w.collapsed]:!F}),dangerouslySetInnerHTML:{__html:$}}),React.createElement(Typography$1.Link,{className:styles$w.viewMore,onClick:J},F?"View Less":"View More"))},Description$1=()=>{const{jobData:C,analytics:$}=useJobPreview(),{jobDescText:V,jobDesc:F}=C||{},K=()=>{$==null||$.click("Job Description - Know More",PRODUCT_NAME)};return React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"About the Role"),V&&React.createElement(CollapsableHTML,{analytics:$,html:V,contentClassName:styles$x.descriptionText}),F&&React.createElement(Typography$1.Link,{className:styles$x.descriptionLink,href:F,target:"_blank",onClick:K},React.createElement(Space$1,null,React.createElement(LinkOutlined$1,null),"Know More")))},collapsableContainer="_collapsableContainer_1bjjt_1",collapsed="_collapsed_1bjjt_5",viewMore="_viewMore_1bjjt_21",styles$v={collapsableContainer,collapsed,viewMore},CollapsableContainer=({analytics:C,children:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable Container - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$v.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$v.collapsed]:!F})},$),React.createElement(Typography$1.Link,{className:styles$v.viewMore,onClick:J},F?"View Less":"View More"))},Benefits=()=>{const{jobData:C,country:$}=useJobPreview(),{benefits:V,visaSponsorship:F}=C||{},K=F==="yes";return!V&&!K||$!=="US"?null:React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Benefits"),React.createElement(CollapsableContainer,{contentClassName:styles$x.descriptionText},React.createElement("ul",{className:styles$x.list},V==null?void 0:V.map(J=>React.createElement("li",{key:J},J)),K&&React.createElement("li",null,"Visa sponsorship available"))))},STEPS=[{title:"In Progress",description:"Once you apply, our team checks if it’s a right match"},{title:"Resume Forwarded",description:"We send your resume to the company"},{title:"Feedback Stage",description:"The company reviews and shares feedback"},{title:"Interview Process",description:"If selected, your interview rounds begin"}],Indicator=()=>React.createElement(Flex$1,{vertical:!0,className:styles$x.indicatorContainer},React.createElement("div",{className:styles$x.indicatorLine}),React.createElement(Flex$1,{flex:1,gap:12},STEPS.map((C,$)=>React.createElement(Flex$1,{key:$,flex:1},React.createElement("div",{className:styles$x.indicatorDot}))),React.createElement("div",{className:styles$x.extraIndicatorDot}))),HiringSteps=()=>{const C=STEPS.map($=>({title:React.createElement("span",{className:styles$x.stepTitle},$.title),description:React.createElement("span",{className:styles$x.stepText},$.description)}));return React.createElement(Flex$1,{vertical:!0,gap:12},React.createElement(Indicator,null),React.createElement(Flex$1,{className:styles$x.steps,gap:12},C.map(($,V)=>React.createElement(Flex$1,{vertical:!0,flex:1,key:V},$.title,$.description))))},container$7="_container_all86_1",styles$u={container:container$7},PlacementProcessDisclaimerBanner=()=>React.createElement(Flex$1,{className:styles$u.container},React.createElement(InfoCircleTwoTone$1,{twoToneColor:"#913ECE"}),React.createElement(Typography$1.Text,null,"Our placement team has access to the same application status and updates that are visible to you")),BasicInfo$1=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Job Description"),React.createElement(Company$1,null),React.createElement(Description$1,null),React.createElement(Benefits,null)),PostApplicationProcess=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Post Application Process"),React.createElement(HiringSteps,null)),JobDescriptionTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.container},React.createElement(BasicInfo$1,null),React.createElement(PostApplicationProcess,null),React.createElement(PlacementProcessDisclaimerBanner,null),React.createElement(InterviewExperiencesBanner,null)),container$6="_container_tfeme_1",dot="_dot_tfeme_5",successDot="_successDot_tfeme_11",errorDot="_errorDot_tfeme_15",tableTitle="_tableTitle_tfeme_19",styles$t={container:container$6,dot,successDot,errorDot,tableTitle},STATUS_MAP$2={completed:"Completed",pending:"Pending",notRequired:"Not Required"},columns$2=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],StatusColumnContent$2=({status:C})=>React.createElement(Tag$1,{color:C===STATUS_MAP$2.completed?"success":"warning"},C),ContestColumnContent=({contestDetails:C})=>{const{analytics:$}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:V,joinLink:F}=C,K=()=>{$==null||$.click("Certification - Attempt Contest",PRODUCT_NAME)};return V?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,styles$t.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{href:F,onClick:K,underline:!0},"Attempt Contest")},MockInterviewColumnContent=({mockInterviewDetails:C,skillId:$,skillName:V})=>{const{openMockInterviewModal:F,analytics:K}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:J}=C,ee=()=>{K==null||K.click("Certification - Schedule Interview",PRODUCT_NAME),F($,V)};return J?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,styles$t.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{onClick:ee,underline:!0},"Schedule Interview")},Certification=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="skills");if(!F)return null;const K=Object.entries(F.data).map(([J,ee])=>{const te=ee.contests,ne=te?ee.contests.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,re=ee.skills,ae=re?ee.skills.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,oe=[ne,ae].every(ie=>ie!==STATUS_MAP$2.pending)?STATUS_MAP$2.completed:STATUS_MAP$2.pending;return{skillType:J,status:React.createElement(StatusColumnContent$2,{status:oe}),contests:React.createElement(ContestColumnContent,{contestDetails:te}),mockInterview:React.createElement(MockInterviewColumnContent,{mockInterviewDetails:re,skillId:ee.skillId,skillName:ee.skillName})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Scaler certifications you need to apply"),columns:columns$2,dataSource:K,pagination:!1})},STATUS_MAP$1={added:"Added",missing:"Missing"},columns$1=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],StatusColumnContent$1=({status:C})=>React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,{[styles$t.successDot]:C===STATUS_MAP$1.added,[styles$t.errorDot]:C===STATUS_MAP$1.missing})}),React.createElement(Typography$1.Text,null,C)),ActionColumnContent=({status:C})=>{const{openResume:$,analytics:V}=useJobPreview(),F=()=>{V==null||V.click("Resume Skills - Add Skill",PRODUCT_NAME),$()};return C===STATUS_MAP$1.added?null:React.createElement(Typography$1.Link,{onClick:F,underline:!0},"Add Skill")},ResumeSkills=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="tech_stacks");if(!(F!=null&&F.data))return null;const K=Object.entries(F.data).map(([J,ee])=>{var ne;const te=(ne=ee.data)!=null&&ne.cleared?STATUS_MAP$1.added:STATUS_MAP$1.missing;return{stackType:J,experience:`${Math.floor(ee.proficiencyPeriod/12)}+`,status:React.createElement(StatusColumnContent$1,{status:te}),action:React.createElement(ActionColumnContent,{status:te})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns:columns$1,dataSource:K,pagination:!1})},getExperienceText=(C,$)=>{const V=`${Math.floor(C/12)}y`,F=C%12===0?"":` ${C%12}m`,K=`${V}${F}`;if(!$)return`${K}+ Experience`;const J=`${Math.floor($/12)}y`,ee=$%12===0?"":`${$%12}m`;return`${K} - ${J} ${ee} Experience`},getNoticePeriodText=C=>C===0?"Immediate":C==null?"NA":`${C} days`,ADDITIONAL_ELIGIBILITY_MAPPING={placed_mentee:()=>"CTC greater than 1.6x of current offer",diversity:()=>"Female Candidates Only",experience:({minExperience:C,maxExperience:$})=>getExperienceText(C,$),notice_period:({preferredNoticePeriod:C})=>`${getNoticePeriodText(C)} Notice Period`},STATUS_MAP={eligible:"Eligible",ineligible:"Ineligible"},columns=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],StatusColumnContent=({status:C})=>C===STATUS_MAP.eligible?React.createElement(Tag$1,{color:"success"},"Eligible"):React.createElement(Tag$1,{color:"error"},"Ineligible"),OtherRequirements=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.filter(J=>J.label!=="skills"&&J.showText);if(!F)return null;const K=F.map(J=>{const ee=J.isEligible?STATUS_MAP.eligible:STATUS_MAP.ineligible;return{requirement:toTitleCase(J.label),details:ADDITIONAL_ELIGIBILITY_MAPPING[J.label](C),status:React.createElement(StatusColumnContent,{status:ee})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns,dataSource:K,pagination:!1})},SkillsRequiredTab=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{};return $?React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$t.container},React.createElement(Typography$1.Title,{level:3},"Job Check-list"),React.createElement(Certification,null),React.createElement(ResumeSkills,null),React.createElement(OtherRequirements,null)):null},bodyContainer="_bodyContainer_1nalq_1",tabs="_tabs_1nalq_5",styles$s={bodyContainer,tabs},ExpandedJobViewBody=()=>{var te;const{activeTab:C,setActiveTab:$,jobData:V,currentTab:F}=useJobPreview(),{applicationTimeline:K}=V||{},ee=[((te=K==null?void 0:K.timeline)==null?void 0:te.length)>0&&F===TAG_TO_TAB_MAPPING.applied&&{key:JOB_BODY_TABS.APPLICATION_TIMELINE.key,label:JOB_BODY_TABS.APPLICATION_TIMELINE.label,children:React.createElement(ApplicationTimelineTab,null)},{key:JOB_BODY_TABS.ABOUT_ROLE.key,label:JOB_BODY_TABS.ABOUT_ROLE.label,children:React.createElement(JobDescriptionTab,null)},{key:JOB_BODY_TABS.REQUIREMENTS.key,label:JOB_BODY_TABS.REQUIREMENTS.label,children:React.createElement(SkillsRequiredTab,null)}].filter(Boolean);return React.createElement("div",{className:styles$s.bodyContainer},React.createElement(Tabs$1,{activeKey:C,className:styles$s.tabs,items:ee,onChange:$}))},useUpdateApplicationStatusService=careerHubApi.injectEndpoints({endpoints:C=>({updateApplicationStatus:C.mutation({query:$=>({url:"/job-tracker/update-application/",method:"PATCH",body:$}),invalidatesTags:($,V,{job_profile_id:F})=>[{type:"JobPreview",id:F}]})})}),{useUpdateApplicationStatusMutation}=useUpdateApplicationStatusService,appliedButton="_appliedButton_1f028_1",saveButton$1="_saveButton_1f028_9",savedButton$1="_savedButton_1f028_9",jobActions="_jobActions_1f028_30",withdrawalReasonForm="_withdrawalReasonForm_1f028_36",warningIcon="_warningIcon_1f028_41",withdrawalReasonRadioGroup="_withdrawalReasonRadioGroup_1f028_45",withdrawnText="_withdrawnText_1f028_52",styles$r={appliedButton,saveButton:saveButton$1,savedButton:savedButton$1,jobActions,withdrawalReasonForm,warningIcon,withdrawalReasonRadioGroup,withdrawnText},ModalContent=({withdrawalReason:C,setWithdrawalReason:$,withdrawalMessage:V,setWithdrawalMessage:F})=>{const K=ee=>{const te=ee.target.value;$(te),te!=="Other"&&F("")},J=ee=>{F(ee.target.value)};return React.createElement(React.Fragment,null,React.createElement(Typography$1.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),React.createElement(Form$1,{className:styles$r.withdrawalReasonForm},React.createElement(Form$1.Item,{layout:"vertical",label:"Select reason"},React.createElement(Radio$1.Group,{className:styles$r.withdrawalReasonRadioGroup,onChange:K,value:C},WITHDRAW_REASONS.map(ee=>React.createElement(Radio$1,{key:ee.value,value:ee.value},ee.label))),C==="Other"&&React.createElement(Form$1.Item,null,React.createElement(Input$1.TextArea,{value:V,onChange:J,placeholder:"Please specify your reason"})))))},Withdrawal=()=>{var ve;const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),{applicationStatus:J}=V||{},[ee,te]=React.useState(!1),[ne,re]=React.useState((ve=WITHDRAW_REASONS[0])==null?void 0:ve.value),[ae,oe]=React.useState(""),[ie]=useUpdateApplicationStatusMutation(),{message:se}=App$1.useApp(),ce=()=>sr(this,null,function*(){var he,me;const fe=yield ie({job_profile_id:$,update_action:"withdraw",message:ae||ne});(he=fe==null?void 0:fe.data)!=null&&he.success?(se.success("Application withdrawn successfully"),te(!1),re((me=WITHDRAW_REASONS[0])==null?void 0:me.value),oe(""),F()):se.error("Failed to withdraw application"),C==null||C.click("Withdraw Application Ok",PRODUCT_NAME,{currentTab:K,jobId:$})}),de=()=>{var fe;te(!1),re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe("")},le=()=>{var fe;re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe(""),te(!0),C==null||C.click("Expanded View - Withdraw Application",PRODUCT_NAME,{currentTab:K,jobId:$})};return J===APPLICATION_STATUS$1.WITHDRAWN?React.createElement("div",{className:styles$r.withdrawnText},React.createElement(CheckCircleFilled$1,null),"Your Application has been Withdrawn"):K===TAG_TO_TAB_MAPPING.applied&&!NON_WITHDRAW_STATUSES.includes(J)?React.createElement(React.Fragment,null,React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.exit,alt:"exit"}),onClick:le,className:styles$r.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),React.createElement(Modal$1,{title:React.createElement(Space$1,null,React.createElement(WarningFilled$1,{className:styles$r.warningIcon}),React.createElement(Typography$1.Text,null,"Withdraw My Application")),open:ee,onOk:ce,onCancel:de},React.createElement(ModalContent,{withdrawalReason:ne,setWithdrawalReason:re,withdrawalMessage:ae,setWithdrawalMessage:oe}))):null},SaveButton$1=()=>{const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),[J,{isLoading:ee}]=useUpdateApplicationStatusMutation(),{applicationStatus:te}=V||{},ne=te===APPLICATION_STATUS$1.SAVED,re=()=>sr(this,null,function*(){var oe;const ae=yield J({job_profile_id:$,update_action:"save"});(oe=ae==null?void 0:ae.data)!=null&&oe.success?(message$1.success("Application saved successfully"),F()):message$1.error("Failed to save application"),C==null||C.click("Expanded View - Save","Jobs Page V2",{currentTab:K,jobId:$})});return K===TAG_TO_TAB_MAPPING.applied?null:ne?React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):React.createElement(Button$2,{icon:React.createElement(SaveTwoTone$1,null),type:"primary",ghost:!0,size:"large",onClick:re,loading:ee},"Save")},ApplyButton=()=>{const{jobData:C,eligibilityCriteria:$,setActiveApplicationId:V,jobId:F,currentTab:K,analytics:J}=useJobPreview(),{applicationStatus:ee}=C||{},{isEligible:te}=$||{},ne=ee===APPLICATION_STATUS$1.WITHDRAWN,re=()=>{V(F),J==null||J.click("Expanded View - Apply Now","Jobs Page V2",{currentTab:K,jobId:F})};return React.useEffect(()=>()=>{V(null)},[V]),ne?null:K===TAG_TO_TAB_MAPPING.applied?React.createElement(Button$2,{icon:React.createElement(CheckCircleFilled$1,null),className:styles$r.appliedButton,type:"text",size:"large"},"Applied"):React.createElement(Button$2,{icon:React.createElement(RiseOutlined$1,null),onClick:re,className:styles$r.applyButton,type:"primary",size:"large",disabled:!te},"Apply Now")},Actions=()=>React.createElement("div",{className:styles$r.jobActions},React.createElement(ApplyButton,null),React.createElement(SaveButton$1,null),React.createElement(Withdrawal,null)),missingLogo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",CompanyLogo=({logo:C,company:$,companiesList:V,companyName:F,size:K=48})=>{const[J,ee]=React.useState(()=>{var ne;return C||($&&$[0]&&((ne=V[$[0]])!=null&&ne.logo)?V[$[0]].logo:missingLogo)}),te=()=>{ee(missingLogo)};return React.createElement(Avatar$1,{size:K,src:J,alt:F,onError:te,shape:"square"})};CompanyLogo.propTypes={logo:PropTypes.string,company:PropTypes.arrayOf(PropTypes.number),companiesList:PropTypes.object,companyName:PropTypes.string,size:PropTypes.number},CompanyLogo.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const basicInfo="_basicInfo_2vzae_1",companyInfo="_companyInfo_2vzae_12",companyName$1="_companyName_2vzae_18",container$5="_container_2vzae_25",extraDetails="_extraDetails_2vzae_33",extraDetailsDivider="_extraDetailsDivider_2vzae_44",jobTitle$1="_jobTitle_2vzae_51",jobLocation="_jobLocation_2vzae_58",styles$q={basicInfo,companyInfo,companyName:companyName$1,container:container$5,extraDetails,extraDetailsDivider,jobTitle:jobTitle$1,jobLocation},CompanyInfo=()=>{const{companyData:C}=useJobPreview(),{logo:$,name:V}=C||{};return React.createElement("div",{className:styles$q.companyInfo},React.createElement(CompanyLogo,{logo:$,companyName:V,size:50}),React.createElement("div",{className:styles$q.companyName},V))},JobTitle=()=>{const{jobData:C}=useJobPreview(),{title:$}=C||{};return React.createElement(Typography$1.Text,{ellipsis:!0,className:styles$q.jobTitle},$)},JobLocation=()=>{const{jobData:C}=useJobPreview(),{preferredCities:$}=C||{},V=formatLocation($);return React.createElement("div",{className:styles$q.jobLocation},V)},BasicInfo=()=>React.createElement("div",{className:styles$q.basicInfo},React.createElement(CompanyInfo,null),React.createElement(JobTitle,null),React.createElement(JobLocation,null)),ExtraDetails=()=>{const{jobData:C}=useJobPreview(),{minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J,preferredNoticePeriod:ee,minExperience:te,maxExperience:ne}=C||{},re=formatCtc({minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J}),ae=formatExperience$1(te,ne),oe=formatNoticePeriod(ee);return React.createElement("div",{className:styles$q.extraDetails},[re,ae,oe].filter(Boolean).map((ie,se)=>React.createElement(React.Fragment,{key:se},React.createElement("div",{className:styles$q.detail},ie),React.createElement(Divider$1,{size:"large",type:"vertical",className:styles$q.extraDetailsDivider}))))},ExpandedJobViewHeader=()=>React.createElement("div",{className:styles$q.container},React.createElement(BasicInfo,null),React.createElement(ExtraDetails,null),React.createElement(Actions,null)),field="_field_t90m2_1",checkboxAdjacentField="_checkboxAdjacentField_t90m2_7",fieldGroup="_fieldGroup_t90m2_11",checkboxFieldGroup="_checkboxFieldGroup_t90m2_17",fieldGroupLabel="_fieldGroupLabel_t90m2_21",styles$p={field,checkboxAdjacentField,fieldGroup,checkboxFieldGroup,fieldGroupLabel};function CTC({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:`${V} is required`}],layout:"vertical",className:styles$p.field,extra:"Enter amount in lakhs. For eg, if amount is 50 LPA, enter 50."},React.createElement(Input$1,Hn({},$)))}function Linkedin({fieldName:C,label:$,fieldProps:V}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please enter your LinkedIn profile URL",type:"url"}],layout:"vertical",className:styles$p.field},React.createElement(Input$1,Hn({},V)))}const selectOptionsService=careerHubApi.injectEndpoints({endpoints:C=>({getSelectOptions:C.query({query:({fieldType:$,query:V})=>({url:"/job-tracker/v1/custom-data",params:{field_type:$,query:V}}),transformResponse:($,V,F)=>{const K=($==null?void 0:$[F==null?void 0:F.fieldType])||[];return(K==null?void 0:K.map(J=>({text:J,value:J})))||[]}})})}),{useLazyGetSelectOptionsQuery}=selectOptionsService;function Company({fieldName:C,label:$}){const[V]=useLazyGetSelectOptionsQuery(),[F,K]=React.useState([]),J=ee=>sr(this,null,function*(){const te=yield V({fieldType:"companies",query:ee});K((te==null?void 0:te.data)||[])});return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select a company"}],layout:"vertical",className:styles$p.field},React.createElement(Select$1,{options:F,showSearch:!0,filterOption:!1,onSearch:J}))}function Top5Skills({fieldName:C,label:$}){const V=reactRedux.useSelector(J=>J.scalantCareerHub.dashboard.userProfileData),F=(V==null?void 0:V.experienceBasedSkills)||[],K=getSkillOptions(F);return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select upto 5 primary skills"}],className:styles$p.field},React.createElement(Select$1,{options:K,mode:"multiple",showSearch:!1})))}function GradYear({fieldName:C,label:$}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select graduation year"}],className:styles$p.field},React.createElement(Select$1,{showSearch:!0,options:[...Array(71)].map((V,F)=>{const K=new Date().getFullYear()-60+F;return{label:K,value:`${K}-01-01`}}).reverse()}))}function CurrentLocation({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:"Please select current location"}],className:styles$p.field},React.createElement(Select$1,Hn({},$)))}function NoticePeriod({label:C}){const $=Form$1.useWatch(NOTICE_PERIOD_FIELD_MAP.notice_period)==="-1";return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Space$1,{className:classNames(styles$p.fieldGroup,styles$p.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:C,name:NOTICE_PERIOD_FIELD_MAP.notice_period,rules:[{required:!0,message:"Please select notice period"}],className:classNames(styles$p.field,styles$p.checkboxAdjacentField)},React.createElement(Select$1,{options:NOTICE_PERIOD_OPTIONS})),React.createElement(Form$1.Item,{name:NOTICE_PERIOD_FIELD_MAP.buyout_notice,className:styles$p.field,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Negotiable / Buyout available"))),$&&React.createElement(Form$1.Item,{label:"Last Date of Job",name:NOTICE_PERIOD_FIELD_MAP.available_joining_date,rules:[{required:!0,message:"Please enter last date"}],className:styles$p.field},React.createElement(Input$1,{type:"date"})))}function PreferredLocation({fieldName:C,label:$,fieldProps:V}){const F=Form$1.useWatch(CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india);return React.createElement(Space$1,{className:classNames(styles$p.fieldGroup,styles$p.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:$,name:C,className:classNames(styles$p.field,styles$p.checkboxAdjacentField)},React.createElement(Select$1,br(Hn({},V),{disabled:F}))),React.createElement(Form$1.Item,{name:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Anywhere in India")))}function TotalYearsOfExperience(){return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Form$1.Item,{label:"Experience Years",name:EXPERIENCE_FIELD_MAP.years_of_experience,rules:[{required:!0,message:"Please select years of experience"}],className:styles$p.field},React.createElement(Select$1,{options:YEAR_OPTIONS,showSearch:!0})),React.createElement(Form$1.Item,{label:"Experience Months",name:EXPERIENCE_FIELD_MAP.months_of_experience,rules:[{required:!0,message:"Please select months of experience"}],className:styles$p.field},React.createElement(Select$1,{options:MONTH_OPTIONS,showSearch:!0})))}const NON_CUSTOM_FIELD_MAP={expected_ctc:"expected_ctc",current_ctc:"current_ctc",orgyear:"orgyear",linkedin:"linkedin",current_company:"current_company",current_location:"current_location",preferred_location:"preferred_location",notice_period:"notice_period",experience:"experience",skills:"skills"},CHECKBOX_FIELD_MAP={preferred_location_anywhere_in_india:"preferred_location_anywhere_in_india"},EXPERIENCE_FIELD_MAP={years_of_experience:"years_of_experience",months_of_experience:"months_of_experience"},NOTICE_PERIOD_FIELD_MAP={notice_period:"notice_period",serving_notice:"serving_notice",available_joining_date:"available_joining_date",buyout_notice:"buyout_notice"},LOCATION_FIELD_MAP={current_location:"current_location",preferred_location:"preferred_location"},NON_CUSTOM_FIELDS=Object.values(NON_CUSTOM_FIELD_MAP),NON_CUSTOM_FIELD_COMPONENT_MAPPING={[NON_CUSTOM_FIELD_MAP.expected_ctc]:{component:CTC,props:{fieldName:"expected_ctc",label:"Expected CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_ctc]:{component:CTC,props:{fieldName:"current_ctc",label:"Current CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_location]:{component:CurrentLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_location,label:"Current Locations",fieldProps:{options:((er=window==null?void 0:window[HYDRATION_KEY])==null?void 0:er.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.preferred_location]:{component:PreferredLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.preferred_location,label:"Preferred Locations",fieldProps:{options:((tr=window==null?void 0:window[HYDRATION_KEY])==null?void 0:tr.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.orgyear]:{component:GradYear,props:{fieldName:NON_CUSTOM_FIELD_MAP.orgyear,label:"Graduation Year"}},[NON_CUSTOM_FIELD_MAP.linkedin]:{component:Linkedin,props:{fieldName:NON_CUSTOM_FIELD_MAP.linkedin,label:"LinkedIn profile",fieldProps:{type:"url"}}},[NON_CUSTOM_FIELD_MAP.current_company]:{component:Company,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_company,label:"Company"}},[NON_CUSTOM_FIELD_MAP.notice_period]:{component:NoticePeriod,props:{fieldName:NON_CUSTOM_FIELD_MAP.notice_period,label:"Notice Period"}},[NON_CUSTOM_FIELD_MAP.experience]:{component:TotalYearsOfExperience,props:{fieldName:NON_CUSTOM_FIELD_MAP.experience,label:"Total Years of Experience"}},[NON_CUSTOM_FIELD_MAP.skills]:{component:Top5Skills,props:{fieldName:NON_CUSTOM_FIELD_MAP.skills,label:"Select upto 5 primary skills that you want to share to recruiters"}}},YEAR_OPTIONS=new Array(50).fill(0).map((C,$)=>({label:`${$} Years`,value:`${$}`})),MONTH_OPTIONS=new Array(12).fill(0).map((C,$)=>({label:`${$} Months`,value:`${$}`})),NOTICE_PERIOD_OPTIONS=[{value:"-1",label:"Currently Serving"},{value:"0",label:"Immediately Available"},{value:"15",label:"15 Days"},{value:"30",label:"30 Days"},{value:"45",label:"45 Days"},{value:"60",label:"60 Days"},{value:"90",label:"90 Days"}],ANYWHERE_IN_INDIA="anywhere_in_india",getSkillOptions=C=>(C==null?void 0:C.map($=>{var K,J,ee,te;const V=((K=$.proficiency_period)==null?void 0:K.years)||((J=$.proficiencyPeriod)==null?void 0:J.years),F=((ee=$.proficiency_period)==null?void 0:ee.months)||((te=$.proficiencyPeriod)==null?void 0:te.months);return{label:`${$.name} (${V}Y ${F}M)`,value:`${$.skillId}`}}))||[],CUSTOM_FIELD_TYPE_MAP={text:"text",date_time:"date_time",upload:"upload",number:"number"},getInitialFormData=C=>{const $=Object.fromEntries(Object.entries(C).map(([J,ee])=>{switch(J){case NON_CUSTOM_FIELD_MAP.current_location:return[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.preferred_location:return ee===ANYWHERE_IN_INDIA?[J,null]:[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.skills:return[J,ee==null?void 0:ee.map(te=>te.skill_id)];default:return[J,ee]}})),V=C[NON_CUSTOM_FIELD_MAP.notice_period]||{},F=C[NON_CUSTOM_FIELD_MAP.experience]||{},K=C[NON_CUSTOM_FIELD_MAP.preferred_location];return Object.entries(V).forEach(([J,ee])=>{J===NOTICE_PERIOD_FIELD_MAP.buyout_notice?$[J]=ee==="true":$[J]=ee}),Object.entries(F).forEach(([J,ee])=>{$[J]=ee}),$[CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india]=K===ANYWHERE_IN_INDIA,$},getInitialCustomFormData=C=>C.reduce((V,F)=>br(Hn({},V),{[F.id]:F.response}),{}),createNoticePeriodFieldPayload=C=>br(Hn({},C),{[NOTICE_PERIOD_FIELD_MAP.serving_notice]:C[NOTICE_PERIOD_FIELD_MAP.notice_period]==="-1"}),createExperienceFieldPayload=C=>{let $=0;return $+=(Number(C[EXPERIENCE_FIELD_MAP.years_of_experience])||0)*12,$+=Number(C[EXPERIENCE_FIELD_MAP.months_of_experience])||0,$},createSkillsFieldPayload=(C,$)=>$.map(V=>br(Hn({},V),{is_top_5:C.includes(String(V.skillId))})),createCustomFieldsPayload=C=>{const $=Object.keys(NON_CUSTOM_FIELD_MAP)+Object.keys(CHECKBOX_FIELD_MAP)+Object.keys(EXPERIENCE_FIELD_MAP)+Object.keys(NOTICE_PERIOD_FIELD_MAP);return Object.entries(C).filter(([V])=>!$.includes(V)).map(([V,F])=>({id:V,response:F}))},createDefaultFieldsPayload=(C,$)=>{const V={};Object.entries(C).forEach(([J,ee])=>{NON_CUSTOM_FIELDS.includes(J)&&(LOCATION_FIELD_MAP[J]?V[J]=ee==null?void 0:ee.join("/"):V[J]=ee)});const F={},K={};return Object.entries(C).forEach(([J,ee])=>{NOTICE_PERIOD_FIELD_MAP[J]?F[J]=ee:EXPERIENCE_FIELD_MAP[J]?K[J]=ee:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india===J&&ee&&(V[NON_CUSTOM_FIELD_MAP.preferred_location]=ANYWHERE_IN_INDIA)}),V[NON_CUSTOM_FIELD_MAP.notice_period]=createNoticePeriodFieldPayload(F),V[NON_CUSTOM_FIELD_MAP.experience]=createExperienceFieldPayload(K),V[NON_CUSTOM_FIELD_MAP.skills]=createSkillsFieldPayload(C[NON_CUSTOM_FIELD_MAP.skills],$),V},createApplicationFormPayload=(C,$)=>({default_fields:createDefaultFieldsPayload(C,$),custom_fields:createCustomFieldsPayload(C)}),form="_form_1ip4j_1",styles$o={form};function GenericField({formType:C,field:$}){return React.createElement(Form$1.Item,{label:$.attributes.title,name:$.id,rules:[{required:!0,message:`${$.attributes.title} is required`}],layout:"vertical",className:styles$p.field},React.createElement(Input$1,{type:C}))}function UploadField({field:C}){const{onUploadFile:$}=useApplicationFormContext(),[V,F]=React.useState(!1),K=Form$1.useFormInstance(),J=Form$1.useWatch(C.id)||{},ee=te=>sr(this,null,function*(){var re,ae;const ne=(ae=(re=te==null?void 0:te.target)==null?void 0:re.files)==null?void 0:ae[0];if(ne){F(!0),K.setFieldValue(C.id,{file_name:ne.name});try{if($){const oe=yield $(ne);K.setFieldValue(C.id,{file_name:ne.name,file_url:oe}),message$1.success("File uploaded successfully")}else throw new Error("Upload file function not provided")}catch(oe){message$1.error("Failed to upload file")}finally{F(!1)}}});return React.createElement(Form$1.Item,{label:C.attributes.title,name:C.id,rules:[{required:!0,message:`${C.attributes.title} is required`}],layout:"vertical",className:styles$p.field},React.createElement(Upload$1,{multiple:!1,accept:".pdf,.doc,.docx,.txt,.md",showUploadList:!1,beforeUpload:()=>!1,onChange:({file:te})=>{if(te){const ne={target:{files:[te.originFileObj||te]}};ee(ne)}},disabled:V},React.createElement(Button$2,{className:styles$p.field,loading:V,icon:!!J.file_name&&React.createElement(CheckCircleFilled$1,null)},!!J.file_name&&J.file_name,!J.file_name&&!V&&"Upload File")))}function CustomField({field:C}){switch(C.attributes.form_type){case CUSTOM_FIELD_TYPE_MAP.upload:return React.createElement(UploadField,{field:C});case CUSTOM_FIELD_TYPE_MAP.date_time:return React.createElement(GenericField,{formType:"date",field:C});default:return React.createElement(GenericField,{formType:C.attributes.form_type,field:C})}}function NonCustomField({field:C}){var K;if(!NON_CUSTOM_FIELD_COMPONENT_MAPPING[(K=C==null?void 0:C.attributes)==null?void 0:K.title])return null;const{title:$}=C.attributes,{component:V,props:F}=NON_CUSTOM_FIELD_COMPONENT_MAPPING[$];return React.createElement(V,Hn({},F))}function ApplicationForm(){const{applicationId:C,stepName:$,jobProfileId:V}=useApplicationFormContext(),{data:F,isLoading:K}=useApplicationForm({jobProfileId:V,applicationId:C,status:$}),[J]=Form$1.useForm(),{setFormInstance:ee}=useApplicationFormContext(),te=React.useMemo(()=>F==null?void 0:F.reduce((re,ae)=>(ae.attributes.custom||(re[ae.attributes.title]=ae),re),{}),[F]),ne=React.useMemo(()=>F==null?void 0:F.filter(re=>re.attributes.custom),[F]);return React.useEffect(()=>{if(!te||!ne)return;const re=Object.fromEntries(Object.entries(te).map(([oe,ie])=>[oe,ie.attributes.response])),ae=ne.map(oe=>({id:oe.id,response:oe.attributes.response}));J.setFieldsValue(Hn(Hn({},getInitialFormData(re)),getInitialCustomFormData(ae)))},[te,ne,J]),React.useEffect(()=>{ee(J)},[J,ee]),K||!te||!ne?React.createElement(Skeleton$1,{active:!0}):React.createElement(Form$1,{layout:"vertical",className:styles$o.form,form:J},NON_CUSTOM_FIELDS.map(re=>React.createElement(NonCustomField,{key:re,field:te[re]})),Object.entries(ne).map(([re,ae])=>React.createElement(CustomField,{key:re,field:ae})))}const applicationFormFooterContainer="_applicationFormFooterContainer_x88g1_1",resumeChoiceSelectFooterContainer="_resumeChoiceSelectFooterContainer_x88g1_7",styles$n={applicationFormFooterContainer,resumeChoiceSelectFooterContainer},ApplicationFormFooter=({onCancel:C})=>{const $=reactRedux.useSelector(se=>se.scalantCareerHub.dashboard.userProfileData),V=($==null?void 0:$.experienceBasedSkills)||[],{applicationId:F,formInstance:K,jobProfileId:J,stepName:ee,setStepName:te}=useApplicationFormContext(),{analytics:ne}=useJobPreview(),[re,{isLoading:ae}]=useUpdateApplicationMutation(),oe=()=>sr(this,null,function*(){var se;ne==null||ne.click("Application Form - Next",PRODUCT_NAME);try{const ce={job_profile_id:J,step_name:ee,form_data:createApplicationFormPayload(K.getFieldsValue(),V)},de=yield re({applicationId:F,payload:ce});(se=de==null?void 0:de.data)!=null&&se.success?te(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK):message$1.error("Failed to update application")}catch(ce){message$1.error("Failed to update application")}}),ie=()=>{ne==null||ne.click("Application Form - Cancel",PRODUCT_NAME),C()};return React.createElement(Space$1,{className:styles$n.applicationFormFooterContainer},React.createElement(Button$2,{onClick:ie},"Cancel"),React.createElement(Button$2,{loading:ae,type:"primary",onClick:oe},"Next"))},ResumeChoiceSelectFooter=()=>{const{applicationId:C,selectedResume:$,jobProfileId:V,stepName:F,setStepName:K}=useApplicationFormContext(),{analytics:J}=useJobPreview(),[ee,{isLoading:te}]=useUpdateApplicationMutation(),ne=()=>{J==null||J.click("Resume Choice - Go Back",PRODUCT_NAME),K(APPLICATION_STATUS$1.APPLICATION_FORM)},re=()=>sr(this,null,function*(){var ae;J==null||J.click("Resume Choice - Proceed to Apply",PRODUCT_NAME);try{const ie=yield ee({applicationId:C,payload:{job_profile_id:V,step_name:F,resume_id:$}});(ae=ie==null?void 0:ie.data)!=null&&ae.success?K(APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED):message$1.error("Failed to update application")}catch(oe){message$1.error("Failed to update application")}});return React.createElement(Space$1,{className:styles$n.resumeChoiceSelectFooterContainer},React.createElement(Space$1,null,React.createElement(BulbTwoTone$1,null),React.createElement(Typography$1.Text,{strong:!0},"Quick Tip: "),React.createElement(Typography$1.Text,null,"Complete the improvements to boost your hiring chances")),React.createElement(Space$1,null,React.createElement(Button$2,{onClick:ne},"Go Back"),React.createElement(Button$2,{type:"primary",onClick:re,loading:te,disabled:!$},"Proceed to Apply")))};function Footer$1({onCancel:C}){const{stepName:$}=useApplicationFormContext();switch($){case APPLICATION_STATUS$1.APPLICATION_FORM:return React.createElement(ApplicationFormFooter,{onCancel:C});case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:return React.createElement(ResumeChoiceSelectFooter,null);default:return null}}const stepText="_stepText_14qm3_1",titleContainer$1="_titleContainer_14qm3_5",titleIcon="_titleIcon_14qm3_9",titleText="_titleText_14qm3_14",styles$m={stepText,titleContainer:titleContainer$1,titleIcon,titleText},{Text:Text$3}=Typography$1,STEP_MAP={[APPLICATION_STATUS$1.APPLICATION_FORM]:{currentStep:1,icon:InfoCircleFilled$1,title:"Required Details",totalSteps:2},[APPLICATION_STATUS$1.RESUME_FITMENT_CHECK]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.RESUME_CHOICE_SELECT]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2}};function FormHeader({onClose:C}){const{stepName:$,jobProfileId:V}=useApplicationFormContext(),{analytics:F}=useJobPreview(),{updateTab:K}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),{refetch:J}=useGetJobPreviewQuery(V,{skip:!V});if(!STEP_MAP[$])return null;const{currentStep:ee,icon:te,title:ne,totalSteps:re}=STEP_MAP[$]||{},ae=()=>{F==null||F.click("Application Form - Close",PRODUCT_NAME),$===APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED&&(K(TAG_TO_TAB_MAPPING.applied),J()),C==null||C()};return React.createElement(Flex$1,{justify:"space-between"},React.createElement(Space$1,{className:styles$m.container,direction:"vertical"},React.createElement(Text$3,{className:styles$m.stepText},"Step ",ee,"/",re),React.createElement(Space$1,{className:styles$m.titleContainer},React.createElement(te,{className:styles$m.titleIcon}),React.createElement(Text$3,{className:styles$m.titleText},ne))),React.createElement(Button$2,{icon:React.createElement(CloseOutlined$1,null),type:"text",onClick:ae}))}function commonjsRequire(C){throw new Error('Could not dynamically require "'+C+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function($,V){module.exports=V()})(commonjsGlobal,function(){return(()=>{var __webpack_modules__=[,(C,$,V)=>{function F(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(Pe){return typeof Pe}:F=function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},F(Le)}Object.defineProperty($,"__esModule",{value:!0}),$.StatTimer=$.RenderingCancelledException=$.PixelsPerInch=$.PageViewport=$.PDFDateString=$.LinkTarget=$.DOMStandardFontDataFactory=$.DOMSVGFactory=$.DOMCanvasFactory=$.DOMCMapReaderFactory=void 0,$.addLinkAttributes=De,$.deprecated=Xe,$.getFilenameFromUrl=Ae,$.getPdfFilenameFromUrl=ke,$.getXfaPageViewport=Ue,$.isDataScheme=Oe,$.isPdfFile=we,$.isValidFetchUrl=ze,$.loadScript=Ve;var K=te(V(2)),J=V(4),ee=V(135);function te(Le){return Le&&Le.__esModule?Le:{default:Le}}function ne(Le,Te){var Pe=typeof Symbol!="undefined"&&Le[Symbol.iterator]||Le["@@iterator"];if(!Pe){if(Array.isArray(Le)||(Pe=re(Le))||Te&&Le&&typeof Le.length=="number"){Pe&&(Le=Pe);var Me=0,He=function(){};return{s:He,n:function(){return Me>=Le.length?{done:!0}:{done:!1,value:Le[Me++]}},e:function(it){throw it},f:He}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
434
+ You must add the middleware for RTK-Query to function correctly!`);Ae=!!ke}var je=!Ae&&Fe.current;return ae(function(){Fe.current=Ae}),ae(function(){je&&(Ne.current=void 0)},[je]),ae(function(){var ze,Ve=Ne.current;if(typeof process!="undefined"&&process.env.NODE_ENV==="removeMeOnCompilation"&&console.log(je),$e===skipToken){Ve==null||Ve.unsubscribe(),Ne.current=void 0;return}var Xe=(ze=Ne.current)==null?void 0:ze.subscriptionOptions;if(!Ve||Ve.arg!==$e){Ve==null||Ve.unsubscribe();var Ye=xe(Ce($e,{subscriptionOptions:Ie,forceRefetch:be}));Ne.current=Ye}else Ie!==Xe&&Ve.updateSubscriptionOptions(Ie)},[xe,Ce,be,$e,Ie,je]),React.useEffect(function(){return function(){var ze;(ze=Ne.current)==null||ze.unsubscribe(),Ne.current=void 0}},[]),React.useMemo(function(){return{refetch:function(){var ze;if(!Ne.current)throw new Error("Cannot refetch a query that has not been started yet.");return(ze=Ne.current)==null?void 0:ze.refetch()}}},[])},ve=function(he){var me=he===void 0?{}:he,ue=me.refetchOnReconnect,pe=me.refetchOnFocus,ye=me.pollingInterval,be=ye===void 0?0:ye,ge=$.endpoints[de].initiate,_e=K(),Se=React.useState(UNINITIALIZED_VALUE),Ee=Se[0],Ce=Se[1],xe=React.useRef(),$e=useShallowStableValue({refetchOnReconnect:ue,refetchOnFocus:pe,pollingInterval:be});ae(function(){var Ne,De,Oe=(Ne=xe.current)==null?void 0:Ne.subscriptionOptions;$e!==Oe&&((De=xe.current)==null||De.updateSubscriptionOptions($e))},[$e]);var Ie=React.useRef($e);ae(function(){Ie.current=$e},[$e]);var Fe=React.useCallback(function(Ne,De){De===void 0&&(De=!1);var Oe;return F(function(){var we;(we=xe.current)==null||we.unsubscribe(),xe.current=Oe=_e(ge(Ne,{subscriptionOptions:Ie.current,forceRefetch:!De})),Ce(Ne)}),Oe},[_e,ge]);return React.useEffect(function(){return function(){var Ne;(Ne=xe==null?void 0:xe.current)==null||Ne.unsubscribe()}},[]),React.useEffect(function(){Ee!==UNINITIALIZED_VALUE&&!xe.current&&Fe(Ee,!0)},[Ee,Fe]),React.useMemo(function(){return[Fe,Ee]},[Fe,Ee])},fe=function(he,me){var ue=me===void 0?{}:me,pe=ue.skip,ye=pe===void 0?!1:pe,be=ue.selectFromResult,ge=$.endpoints[de].select,_e=useStableQueryArgs(ye?skipToken:he,ne,re.endpointDefinitions[de],de),Se=React.useRef(),Ee=React.useMemo(function(){return toolkit.createSelector([ge(_e),function(Fe,Ne){return Ne},function(Fe){return _e}],oe)},[ge,_e]),Ce=React.useMemo(function(){return be?toolkit.createSelector([Ee],be):Ee},[Ee,be]),xe=J(function(Fe){return Ce(Fe,Se.current)},reactRedux.shallowEqual),$e=ee(),Ie=Ee($e.getState(),Se.current);return useIsomorphicLayoutEffect(function(){Se.current=Ie},[Ie]),xe};return{useQueryState:fe,useQuerySubscription:le,useLazyQuerySubscription:ve,useLazyQuery:function(he){var me=ve(he),ue=me[0],pe=me[1],ye=fe(pe,__spreadProps(__spreadValues({},he),{skip:pe===UNINITIALIZED_VALUE})),be=React.useMemo(function(){return{lastArg:pe}},[pe]);return React.useMemo(function(){return[ue,ye,be]},[ue,ye,be])},useQuery:function(he,me){var ue=le(he,me),pe=fe(he,__spreadValues({selectFromResult:he===skipToken||me!=null&&me.skip?void 0:noPendingQueryStateSelector},me)),ye=pe.data,be=pe.status,ge=pe.isLoading,_e=pe.isSuccess,Se=pe.isError,Ee=pe.error;return React.useDebugValue({data:ye,status:be,isLoading:ge,isSuccess:_e,isError:Se,error:Ee}),React.useMemo(function(){return __spreadValues(__spreadValues({},pe),ue)},[pe,ue])}}}function ce(de){return function(le){var ve=le===void 0?{}:le,fe=ve.selectFromResult,he=fe===void 0?defaultMutationStateSelector:fe,me=ve.fixedCacheKey,ue=$.endpoints[de],pe=ue.select,ye=ue.initiate,be=K(),ge=React.useState(),_e=ge[0],Se=ge[1];React.useEffect(function(){return function(){_e!=null&&_e.arg.fixedCacheKey||_e==null||_e.reset()}},[_e]);var Ee=React.useCallback(function(Ve){var Xe=be(ye(Ve,{fixedCacheKey:me}));return Se(Xe),Xe},[be,ye,me]),Ce=(_e||{}).requestId,xe=React.useMemo(function(){return toolkit.createSelector([pe({fixedCacheKey:me,requestId:_e==null?void 0:_e.requestId})],he)},[pe,_e,he,me]),$e=J(xe,reactRedux.shallowEqual),Ie=me==null?_e==null?void 0:_e.arg.originalArgs:void 0,Fe=React.useCallback(function(){F(function(){_e&&Se(void 0),me&&be($.internalActions.removeMutationResult({requestId:Ce,fixedCacheKey:me}))})},[be,me,_e,Ce]),Ne=$e.endpointName,De=$e.data,Oe=$e.status,we=$e.isLoading,Ae=$e.isSuccess,ke=$e.isError,je=$e.error;React.useDebugValue({endpointName:Ne,data:De,status:Oe,isLoading:we,isSuccess:Ae,isError:ke,error:je});var ze=React.useMemo(function(){return __spreadProps(__spreadValues({},$e),{originalArgs:Ie,reset:Fe})},[$e,Ie,Fe]);return React.useMemo(function(){return[Ee,ze]},[Ee,ze])}}}var DefinitionType;(function(C){C.query="query",C.mutation="mutation"})(DefinitionType||(DefinitionType={}));function isQueryDefinition(C){return C.type===DefinitionType.query}function isMutationDefinition(C){return C.type===DefinitionType.mutation}function capitalize$1(C){return C.replace(C[0],C[0].toUpperCase())}function safeAssign(C){for(var $=[],V=1;V<arguments.length;V++)$[V-1]=arguments[V];Object.assign.apply(Object,__spreadArray$1([C],$))}var reactHooksModuleName=Symbol(),reactHooksModule=function(C){var $=C===void 0?{}:C,V=$.batch,F=V===void 0?reactRedux.batch:V,K=$.useDispatch,J=K===void 0?reactRedux.useDispatch:K,ee=$.useSelector,te=ee===void 0?reactRedux.useSelector:ee,ne=$.useStore,re=ne===void 0?reactRedux.useStore:ne,ae=$.unstable__sideEffectsInRender,oe=ae===void 0?!1:ae;return{name:reactHooksModuleName,init:function(ie,se,ce){var de=se.serializeQueryArgs,le=ie,ve=buildHooks({api:ie,moduleOptions:{batch:F,useDispatch:J,useSelector:te,useStore:re,unstable__sideEffectsInRender:oe},serializeQueryArgs:de,context:ce}),fe=ve.buildQueryHooks,he=ve.buildMutationHook,me=ve.usePrefetch;return safeAssign(le,{usePrefetch:me}),safeAssign(ce,{batch:F}),{injectEndpoint:function(ue,pe){if(isQueryDefinition(pe)){var ye=fe(ue),be=ye.useQuery,ge=ye.useLazyQuery,_e=ye.useLazyQuerySubscription,Se=ye.useQueryState,Ee=ye.useQuerySubscription;safeAssign(le.endpoints[ue],{useQuery:be,useLazyQuery:ge,useLazyQuerySubscription:_e,useQueryState:Se,useQuerySubscription:Ee}),ie["use"+capitalize$1(ue)+"Query"]=be,ie["useLazy"+capitalize$1(ue)+"Query"]=ge}else if(isMutationDefinition(pe)){var Ce=he(ue);safeAssign(le.endpoints[ue],{useMutation:Ce}),ie["use"+capitalize$1(ue)+"Mutation"]=Ce}}}}}},createApi=buildCreateApi(coreModule(),reactHooksModule());let baseUrl="http://localhost:8000";const dynamicBaseQuery=(C,$,V)=>sr(this,null,function*(){return fetchBaseQuery({baseUrl,prepareHeaders:K=>{if(K.set("Content-Type","application/json"),typeof window!="undefined"){const J=document.querySelector('meta[name="csrf-token"]');J&&K.set("X-CSRF-Token",J.content)}return K}})(C,$,V)}),careerHubApi=createApi({reducerPath:"careerHubApi",baseQuery:dynamicBaseQuery,tagTypes:["CareerHub","Jobs","PipelineJobs","RelevantJobs","FilterOptions","JobPreview","JobAlerts"],endpoints:()=>({})}),setBaseUrl=C=>{C!==baseUrl&&(baseUrl=C)},BASE_URL="/api/v3/careers-hub/applications",createApplicationService=careerHubApi.injectEndpoints({endpoints:C=>({createApplication:C.mutation({query:({jobProfileId:$,utmMedium:V,utmSource:F,currentTab:K,utmId:J})=>({url:BASE_URL,method:"POST",body:{job_profile_id:$,medium:V!=null?V:"ch",origin:F!=null?F:"direct",tab_name:K,action_type:J!=null?J:"apply"}}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]}),getApplication:C.query({query:({applicationId:$,jobProfileId:V,status:F})=>({url:`${BASE_URL}/${$}`,params:{job_profile_id:V,step_name:F}})}),updateApplication:C.mutation({query:({applicationId:$,payload:V})=>({url:`${BASE_URL}/${$}`,method:"PATCH",body:V}),invalidatesTags:["Jobs","PipelineJobs","RelevantJobs"]})})}),{useCreateApplicationMutation,useGetApplicationQuery,useUpdateApplicationMutation}=createApplicationService,useCreateApplication=({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K})=>{const[J,ee]=React.useState(null),[te,ne]=React.useState(null),[re,{isLoading:ae,isError:oe,error:ie,isSuccess:se}]=useCreateApplicationMutation(),ce=React.useCallback(()=>sr(this,null,function*(){var le,ve,fe,he;const de=yield re({jobProfileId:C,utmMedium:$,utmSource:V,currentTab:F,utmId:K});ee((ve=(le=de==null?void 0:de.data)==null?void 0:le.user_company)==null?void 0:ve.id),ne((he=(fe=de==null?void 0:de.data)==null?void 0:fe.user_company)==null?void 0:he.status)}),[re,C,$,V,F,K]);return React.useEffect(()=>{ce()},[ce]),{retry:ce,data:{status:te,applicationId:J},isLoading:ae,isError:oe,error:ie,isSuccess:se}},useApplicationForm=({jobProfileId:C,applicationId:$,status:V})=>{var re;const{data:F,isLoading:K,isError:J,error:ee,isSuccess:te,refetch:ne}=useGetApplicationQuery({applicationId:$,jobProfileId:C,status:V},{skip:!$||!V});return{retry:ne,data:(re=F==null?void 0:F.details)==null?void 0:re.data,isLoading:K,isError:J,error:ee,isSuccess:te}};function convertArraySingletonsToObject(C){return C.map($=>({label:$,value:$}))}const JOB_CARD_CONFIG={home:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},all:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},eligible:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},saved:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},applications:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!0,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!0},archived:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!1}},APPLICATION_STATUS={NOT_APPLIED:"Not Applied",SAVED:"Saved",APPLIED:"Applied",IN_PIPELINE:"In Pipeline",ARCHIVED:"Archived"},JOB_PROFILE_STATUS={ACTIVE:"active",PAUSED:"paused",INACTIVE:"inactive"},TABS={HOME:"home",ALL:"all",ELIGIBLE:"eligible",SAVED:"saved",APPLICATIONS:"applications",ARCHIVED:"archived"},WITHDRAW_REASONS=convertArraySingletonsToObject(["Got another offer","Company didn't match expectations","Need more prep time","Applied by mistake","Other"]),useJobCardState=({currentTab:C,isActive:$,jobData:V})=>{const F=React.useMemo(()=>JOB_CARD_CONFIG[C]||JOB_CARD_CONFIG.all,[C]),K=React.useMemo(()=>!0,[]),J=React.useMemo(()=>V.expiry?new Date(V.expiry)<new Date||V.jobProfileStatus!=="active":!1,[V.expiry,V.jobProfileStatus]);return{cardConfig:F,shouldShowBody:K,isExpired:J}},useJobFilters=()=>{const C=reactRedux.useSelector(V=>{var F;return((F=V.scalantCareerHub)==null?void 0:F.filter)||{}});return React.useMemo(()=>{const{filters:V,per_page:F,tab:K,page_number:J,sortings:ee,skip_expired_jobs:te}=C;return{per_page:F,tab:K,filters:V||{keyword:""},sortings:ee,page_number:J,skip_expired_jobs:te}},[C])},useInfiniteScroll=({hasMore:C=!0,isLoading:$=!1,isFetchingMore:V=!1,rootMargin:F="100px",threshold:K=.1}={})=>{const J=reactRedux.useDispatch(),ee=reactRedux.useSelector(oe=>{var ie,se;return((se=(ie=oe.scalantCareerHub)==null?void 0:ie.filter)==null?void 0:se.page_number)||1}),te=React.useRef(null),ne=React.useRef(null),re=React.useCallback(()=>{!$&&!V&&C&&J(setPageNumber(ee+1))},[J,ee,$,V,C]);return React.useEffect(()=>{const oe=te.current;if(ne.current&&(oe&&ne.current.unobserve(oe),ne.current=null),!oe||!C||$||V)return;const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});return ie.observe(oe),ne.current=ie,()=>{ne.current&&oe&&(ne.current.unobserve(oe),ne.current=null)}},[re,C,$,V,F,K]),{sentinelRef:React.useCallback(oe=>{if(te.current&&ne.current&&(ne.current.unobserve(te.current),ne.current=null),te.current=oe,oe&&C&&!$&&!V){const ie=new IntersectionObserver(se=>{const[ce]=se;ce.isIntersecting&&re()},{root:null,rootMargin:F,threshold:K});ie.observe(oe),ne.current=ie}},[re,C,$,V,F,K])}},getCurrentSortingValue=(C=[])=>{if(!C||C.length===0)return"eligibility";const $=C[0];for(const V of Object.values(SORTING_OPTIONS))if(V.mapping.property===$.property&&V.mapping.direction===$.direction)return V.value;return"eligibility"},accumulateJobs=(C=[],$=[])=>{if(!$||$.length===0)return C;const V=new Set(C.map(K=>K.id)),F=$.filter(K=>!V.has(K.id));return[...C,...F]},accumulateCompaniesMap=(C={},$={})=>zn(zn({},C),$),useAccumulatedJobs=(C,$=!1,V=!1,F=null)=>{const K=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.filter)==null?void 0:fe.page_number)||1}),J=reactRedux.useSelector(le=>{var ve,fe;return((fe=(ve=le.scalantCareerHub)==null?void 0:ve.dashboard)==null?void 0:fe.processCounts)||{}}),[ee,te]=React.useState([]),[ne,re]=React.useState({}),ae=React.useMemo(()=>(C==null?void 0:C.jobs)||(C==null?void 0:C.results)||[],[C==null?void 0:C.jobs,C==null?void 0:C.results]),oe=React.useMemo(()=>(C==null?void 0:C.companiesMap)||{},[C==null?void 0:C.companiesMap]),ie=React.useMemo(()=>F||null,[F]),se=React.useMemo(()=>typeof(C==null?void 0:C.totalEntries)=="number"?C.totalEntries:ie?J[ie]||0:null,[ie,J,C==null?void 0:C.totalEntries]);React.useEffect(()=>{K===1?(te(ae),re(oe)):ae.length>0&&(te(le=>accumulateJobs(le,ae)),re(le=>accumulateCompaniesMap(le,oe)))},[ae,oe,K]);const ce=React.useMemo(()=>se===null?ae.length>0:ee.length<se,[se,ee.length,ae.length]),de=$&&K>1;return{accumulatedJobs:ee,accumulatedCompaniesMap:ne,hasMore:ce,isFetchingMore:de,isLoading:(V||$)&&K===1}},filterService=careerHubApi.injectEndpoints({endpoints:C=>({getCompanies:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"companies",q:$}}),transformResponse:$=>($.data||[]).map(F=>({id:F.id,value:F.attributes.name})),providesTags:["FilterOptions"]}),getTitles:C.query({query:$=>({url:"/job-tracker/filters/",params:{query_type:"title",q:$}}),transformResponse:$=>{const V=($.data||[]).map(K=>({id:K.id,value:K.attributes.title||K.attributes.name}));let F={};return V.forEach(K=>{F[K.value]=K.value}),Object.keys(F).map(K=>({key:K,value:F[K]}))},providesTags:["FilterOptions"]}),getExperienceSkills:C.query({query:$=>({url:"/user/skills/all",params:{prefix_q:$}}),transformResponse:$=>($.all_skills||[]).map(F=>({skill_id:F.skill_id,key:F.key,skill_type:F.skill_type})).filter(F=>F.key&&F.skill_id&&F.skill_type).map(F=>({key:F.skill_id,value:F.key,type:F.skill_type})),providesTags:["FilterOptions"]})})}),{useGetCompaniesQuery,useGetTitlesQuery,useGetExperienceSkillsQuery}=filterService,convertToSelectOption=(C,$,V=$)=>!C||!Array.isArray(C)?[]:C.map(F=>({key:F[$],value:F[V]})),minCtcOptions=new Array(5).fill(1).map((C,$)=>({value:(C+$)*5,label:`>= ${(C+$)*5} Lakhs`})),minCtcUSOptions=[{value:20,label:">= 20K"},{value:30,label:">= 30K"},{value:50,label:">= 50K"},{value:75,label:">= 75K"},{value:100,label:">= 100K"}],mockInterviewSkillOptions=[{value:0,label:"Must to Have"},{value:1,label:"Good to Have"},{value:2,label:"Bar Raiser"},{value:3,label:"Must to Have (Eligibility)"}],datePostedOnOptions=[{value:1,label:"Last 24 hours"},{value:3,label:"Last 3 days"},{value:7,label:"Last 7 days"},{value:30,label:"Last 30 days"}],seniorityLevelOptions=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],stipendOptions=[{value:1e4,label:">= 10K"},{value:2e4,label:">= 20K"},{value:3e4,label:">= 30K"},{value:4e4,label:">= 40K"},{value:5e4,label:">= 50K"},{value:6e4,label:">= 60K"}],internshipDurationOptions=[{value:3,label:">= 3 months"},{value:6,label:">= 6 months"},{value:9,label:">= 9 months"},{value:12,label:">= 12 months"}],jobTypeOptions=[{value:"Full time roles",key:"full_time"},{value:"Internship roles",key:"internship"}],MONTH_OPTIONS$1=new Array(3).fill(1).map((C,$)=>({value:((C+$+1)*30).toString(),label:`greater than ${C+$+1} Months`})),NOTICE_PERIOD_OPTIONS$1=[{value:"not filled",label:"Not Available"},{value:"0",label:"0 Days"},{value:"15",label:"greater than 15 Days"},{value:"30",label:"greater than 30 Days"},{value:"45",label:"greater than 45 Days"},...MONTH_OPTIONS$1],getMinCtcOptions=C=>C?minCtcUSOptions:minCtcOptions,getProficiencyOptions=C=>C?Object.entries(C).map(([$,V])=>({value:V,label:$})):mockInterviewSkillOptions,getMeritBasedSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.id,label:$.title})),getExperienceSkillOptions=C=>!C||!Array.isArray(C)?[]:C.map($=>({value:$.subtopic_id,label:$.subtopic,type:$.eligible_class||"SubTopic"})),filterOptions={minCtcOptions,minCtcUSOptions,getMinCtcOptions,mockInterviewSkillOptions,datePostedOnOptions,seniorityLevelOptions,stipendOptions,internshipDurationOptions,jobTypeOptions,NOTICE_PERIOD_OPTIONS:NOTICE_PERIOD_OPTIONS$1,convertToSelectOption,getProficiencyOptions,getMeritBasedSkillOptions,getExperienceSkillOptions},initialState$7={companyOptions:[],titleOptions:[],experienceSkillOptions:[]},filterOptionsSlice=toolkit.createSlice({name:"filterOptions",initialState:initialState$7,reducers:{setCompanyOptions:(C,$)=>{C.companyOptions=convertToSelectOption($.payload,"id","value")},setTitleOptions:(C,$)=>{C.titleOptions=$.payload},setExperienceSkillOptions:(C,$)=>{C.experienceSkillOptions=$.payload},clearCompanyOptions:C=>{C.companyOptions=[]},clearTitleOptions:C=>{C.titleOptions=[]},clearExperienceSkillOptions:()=>{},clearAllOptions:C=>{C.companyOptions=[],C.titleOptions=[],C.experienceSkillOptions=[]}},extraReducers:C=>{C.addMatcher(filterService.endpoints.getCompanies.matchFulfilled,($,V)=>{$.companyOptions=convertToSelectOption(V.payload,"id","value")}),C.addMatcher(filterService.endpoints.getTitles.matchFulfilled,($,V)=>{$.titleOptions=V.payload}),C.addMatcher(filterService.endpoints.getExperienceSkills.matchFulfilled,($,V)=>{const F=V.payload||[],K=$.experienceSkillOptions||[],J=new Map(K.map(ee=>[ee.key,ee]));F.forEach(ee=>{J.set(ee.key,ee)}),$.experienceSkillOptions=Array.from(J.values())})}}),{setCompanyOptions,setTitleOptions,setExperienceSkillOptions,clearCompanyOptions,clearTitleOptions,clearExperienceSkillOptions,clearAllOptions}=filterOptionsSlice.actions,filterOptionsReducer=filterOptionsSlice.reducer,useDebounce=(C,$)=>{const V=React.useRef(null);return React.useCallback((...F)=>{V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{C(...F)},$)},[C,$])},useAsyncFilterOptions=()=>{const C=reactRedux.useDispatch(),[$,V]=React.useState(""),[F,K]=React.useState(""),[J,ee]=React.useState(""),{isLoading:te,isFetching:ne}=useGetCompaniesQuery($,{skip:!$||$.length<3}),{isLoading:re,isFetching:ae}=useGetTitlesQuery(F,{skip:!F||F.length<3}),{isLoading:oe,isFetching:ie}=useGetExperienceSkillsQuery(J,{skip:!J||J.length<2});React.useEffect(()=>{(!$||$.length<3)&&C(clearCompanyOptions())},[$,C]),React.useEffect(()=>{(!F||F.length<3)&&C(clearTitleOptions())},[F,C]),React.useEffect(()=>{(!J||J.length<2)&&C(clearExperienceSkillOptions())},[J,C]);const se=React.useCallback(me=>{V(me)},[]),ce=useDebounce(se,300),de=React.useCallback(me=>{K(me)},[]),le=useDebounce(de,300),ve=React.useCallback(me=>{ee(me)},[]),fe=useDebounce(ve,300),he=React.useCallback((me,ue)=>me.map(pe=>{const ye=ue==null?void 0:ue.find(be=>be.key===pe);return{experience_skill_id:pe,skill_type:(ye==null?void 0:ye.type)||"SubTopic"}}),[]);return{handleCompanySearch:ce,handleTitleSearch:le,handleExperienceSkillSearch:fe,handleExperienceSkillChange:he,loadingCompanies:te||ne,loadingTitles:re||ae,loadingExperienceSkills:oe||ie}},useFilterMetaOptions=()=>{const C=reactRedux.useSelector(se=>{var ce;return((ce=se.scalantCareerHub.metaData)==null?void 0:ce.meta)||{}}),$=React.useMemo(()=>filterOptions.jobTypeOptions,[]),V=React.useMemo(()=>convertToSelectOption(C.jobCategories||[],"value","label"),[C.jobCategories]),F=React.useMemo(()=>convertToSelectOption(C.seniorityLevels||[],"value","label"),[C.seniorityLevels]),K=React.useMemo(()=>convertToSelectOption(C.companyCategories||[],"value","label"),[C.companyCategories]),J=React.useMemo(()=>convertToSelectOption(C.jobLocations||[],"label"),[C.jobLocations]),ee=React.useMemo(()=>convertToSelectOption(C.meritBasedSkills||[],"id","title"),[C.meritBasedSkills]),te=React.useMemo(()=>filterOptions.getMinCtcOptions(!1),[]),ne=React.useMemo(()=>filterOptions.stipendOptions,[]),re=React.useMemo(()=>filterOptions.internshipDurationOptions,[]),ae=React.useMemo(()=>filterOptions.NOTICE_PERIOD_OPTIONS,[]),oe=React.useMemo(()=>filterOptions.datePostedOnOptions,[]),ie=React.useMemo(()=>filterOptions.mockInterviewSkillOptions,[]);return{jobTypes:$,functions:V,seniorityLevels:F,companyCategories:K,locations:J,mbeSkills:ee,ctcRanges:te,stipendRanges:ne,durationRanges:re,noticePeriods:ae,datePostedOptions:oe,skillRatings:ie}},initialState$6={selectedJobId:null},layoutSlice=toolkit.createSlice({name:"layout",initialState:initialState$6,reducers:{setSelectedJobId:(C,$)=>{C.selectedJobId=$.payload},clearSelectedJobId:C=>{C.selectedJobId=null}}}),{setSelectedJobId,clearSelectedJobId}=layoutSlice.actions,layoutReducer=layoutSlice.reducer,serializeFiltersToQueryParams=C=>{const $=new URLSearchParams;return!C||typeof C!="object"||Object.keys(C).forEach(V=>{const F=C[V];if(!(F==null||F===""))if(Array.isArray(F))F.length>0&&$.append(V,F.join(","));else if(typeof F=="object")try{$.append(V,JSON.stringify(F))}catch(K){}else $.append(V,String(F))}),$},deserializeQueryParamsToFilters=C=>{const $={};return(typeof C=="string"?new URLSearchParams(C):C).forEach((F,K)=>{try{const J=JSON.parse(F);if(typeof J=="object"){$[K]=J;return}}catch(J){}if(F.includes(","))$[K]=F.split(",").filter(J=>J.trim()!=="");else if(!isNaN(F)&&F!==""){const J=Number(F);isNaN(J)?$[K]=F:$[K]=J}else $[K]=F}),$},updateURLWithFilters=C=>{if(typeof window=="undefined")return;const $=serializeFiltersToQueryParams(C),V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getFiltersFromURL=()=>typeof window=="undefined"?{}:deserializeQueryParamsToFilters(window.location.search),updateURLWithJobId=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("job_ids",String(C)):$.delete("job_ids");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getJobIdFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("job_ids")||null,updateURLWithTab=C=>{if(typeof window=="undefined")return;const $=new URLSearchParams(window.location.search);C?$.set("tab",String(C)):$.delete("tab");const V=$.toString()?`${window.location.pathname}?${$.toString()}`:window.location.pathname;window.history.replaceState({},"",V)},getTabFromURL=()=>typeof window=="undefined"?null:new URLSearchParams(window.location.search).get("tab")||null;function useJobQueryParams({syncToURL:C=!0,syncFromURL:$=!0}={}){const V=reactRedux.useDispatch(),F=reactRedux.useSelector(ae=>ae.scalantCareerHub.layout.selectedJobId),K=reactRedux.useSelector(ae=>{var oe,ie;return((ie=(oe=ae.scalantCareerHub)==null?void 0:oe.filter)==null?void 0:ie.tab)||TAG_TO_TAB_MAPPING.relevant}),J=React.useRef(!1),ee=React.useRef(!1);React.useEffect(()=>{if(!$||J.current)return;ee.current=!0;const ae=getTabFromURL(),oe=getJobIdFromURL();if(ae&&Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&V(setTab(ae)),oe){const ie=Number(oe);isNaN(ie)||V(setSelectedJobId(ie))}J.current=!0,ee.current=!1},[V,$]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithTab(K)},[K,C]),React.useEffect(()=>{!C||ee.current||!J.current||updateURLWithJobId(F||null)},[F,C]);const te=ae=>{V(ae?setSelectedJobId(ae):clearSelectedJobId()),C&&updateURLWithJobId(ae)},ne=ae=>{Object.values(TAG_TO_TAB_MAPPING).includes(ae)&&(V(setTab(ae)),C&&updateURLWithTab(ae))};return{currentTab:K,selectedJobId:F,updateJobId:te,updateTab:ne,updateTabAndJobId:(ae,oe)=>{ne(ae),te(oe)}}}const PRODUCT_NAME="Jobs Page V2",container$a="_container_lsttj_1",tag$2="_tag_lsttj_6",styles$K={container:container$a,tag:tag$2};function FilterTags({analytics:C}){const $=reactRedux.useDispatch(),{selectedJobId:V,updateJobId:F}=useJobQueryParams({syncFromURL:!1}),K=()=>{C==null||C.click("Filter Tags - Remove Job Filter",PRODUCT_NAME),F(null),$(updateFormFilters({job_ids:null}))};return V?React.createElement(Flex$1,{className:styles$K.container},React.createElement(Typography$1.Text,{className:styles$K.title},"Job Selected:"),React.createElement(Tag$1,{color:"blue",className:styles$K.tag,onClick:K},`ID#${V}`,React.createElement(CloseOutlined$1,{className:styles$K.closeIcon}))):React.createElement("div",{className:styles$K.container})}const content="_content_rx5qt_1",header$2="_header_rx5qt_10",sider="_sider_rx5qt_18",layout="_layout_rx5qt_22",styles$J={content,header:header$2,sider,layout},{Header,Sider,Content}=Layout$1;function JobsLayout({analytics:C,header:$,children:V,className:F,sider:K,siderWidth:J}){return React.createElement(Layout$1,{className:F},React.createElement(Header,{className:styles$J.header},$||"Header"),React.createElement(FilterTags,{analytics:C}),React.createElement(Layout$1,{className:styles$J.layout},React.createElement(Content,{className:styles$J.content},V),K&&React.createElement(Sider,{className:styles$J.sider,width:J||"25%"},K)))}JobsLayout.propTypes={analytics:PropTypes.object,children:PropTypes.node.isRequired,className:PropTypes.string,sider:PropTypes.node,siderWidth:PropTypes.oneOfType([PropTypes.string,PropTypes.number])},JobsLayout.defaultProps={className:"",sider:null,siderWidth:"25%"};const toCamelCase=C=>C&&C.replace(/_([a-z])/g,$=>$[1].toUpperCase()),toTitleCase=C=>!C||typeof C!="string"?C:C.toLowerCase().split(/[\s_]+/).map($=>$.charAt(0).toUpperCase()+$.slice(1)).join(" "),toCase=(C,$)=>{if(!$||typeof $!="string")return $;switch(C){case"camelCase":return toCamelCase($);case"titleCase":return toTitleCase($);default:return $}},toCamelCaseObject=C=>{if(C==null)return C;if(Array.isArray(C))return C.map(toCamelCaseObject);if(typeof C=="object"){const $={};return Object.keys(C).forEach(V=>{const F=toCamelCase(V);$[F]=toCamelCaseObject(C[V])}),$}return C},countPendingSteps=(C,$)=>{let V=0;return C!=null&&C.data&&Object.values(C.data).forEach(F=>{F.contests&&F.contests.cleared===!1&&(V+=1),F.skills&&F.skills.cleared===!1&&(V+=1)}),$!=null&&$.data&&Object.values($.data).forEach(F=>{F.data&&F.data.cleared===!1&&(V+=1)}),V},checkAllOtherRequirementsMet=(C,$)=>["experience","notice_period"].every(F=>{if(F===$)return!0;const K=C[F];return!K||K.isEligible}),ELIGIBILITY_TYPES={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},NON_WITHDRAW_STATUSES=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received"],determineJobTag=(C,$)=>{const{isRelevant:V,expiry:F,jobProfileStatus:K}=toCamelCaseObject(C),{isEligible:J,reasons:ee=[]}=toCamelCaseObject($)||{};if(F&&(new Date(F)<new Date||K!=="active"))return{tag:"expired",text:"Job Expired",icon:"ClockCircleOutlined",color:"#FF9C6E",antdColor:"volcano"};const ne=ee.reduce((ce,de)=>(ce[de.label]=de,ce),{}),re=ne.experience,ae=ne.notice_period,oe=ne.skills,ie=ne.tech_stacks;if(J&&V)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(J)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#1A8452",antdColor:"green"};if(re&&!re.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(ae&&!ae.isEligible&&checkAllOtherRequirementsMet(ne,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const se=countPendingSteps(oe,ie);return se>0&&checkAllOtherRequirementsMet(ne,"skills")?{tag:"steps_to_apply",text:`${se} ${se===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#2F54EB",antdColor:"geekblue",count:se}:{tag:ELIGIBILITY_TYPES.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},formatExperience$1=(C,$)=>{if(C===0&&$===0)return"Fresher";const V=Math.floor(C/12),F=Math.floor($/12);return V===F?`${V}y Experience`:F===0?"Fresher":V===0?`${F}y Experience`:`${V}y - ${F}y Experience`},formatCtc=({minCtc:C,maxCtc:$,openForDiscussionCtc:V,isInternship:F,stipend:K,userCountry:J="IN"})=>{if(F)return K?`₹${K}/month`:"Unpaid Internship";const ee=J==="US"?"$":"₹",te=J==="US"?"K":"L";if(C===null||$===null||C===void 0||$===void 0)return`${ee} (Flexible)`;let ne=`${ee}${C}${te} - ${ee}${$}${te} CTC`;return C===$&&(ne=`${ee}${C}${te} CTC`),V?`${ne} (Negotiable)`:ne},formatNoticePeriod=C=>!C||C===0?"Immediate":`${C} days Notice Period`,formatDate=C=>{if(!C)return"";const $=new Date(C),V=String($.getDate()).padStart(2,"0"),F=String($.getMonth()+1).padStart(2,"0"),K=$.getFullYear();return`${V}/${F}/${K}`},formatLocation=C=>{if(!C)return null;const $=C.split(",").map(V=>V.trim()).filter(Boolean);return $.length===0?null:$.length===1?$[0]:`${$[0]} +${$.length-1} more`};function formatProdErrorMessage(C){return"Minified Redux error #"+C+"; visit https://redux.js.org/Errors?code="+C+" for the full message or use the non-minified dev environment for full errors. "}var randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(C){if(typeof C!="object"||C===null)return!1;for(var $=C;Object.getPrototypeOf($)!==null;)$=Object.getPrototypeOf($);return Object.getPrototypeOf(C)===$}function miniKindOf(C){if(C===void 0)return"undefined";if(C===null)return"null";var $=typeof C;switch($){case"boolean":case"string":case"number":case"symbol":case"function":return $}if(Array.isArray(C))return"array";if(isDate(C))return"date";if(isError(C))return"error";var V=ctorName(C);switch(V){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return V}return $.slice(8,-1).toLowerCase().replace(/\s/g,"")}function ctorName(C){return typeof C.constructor=="function"?C.constructor.name:null}function isError(C){return C instanceof Error||typeof C.message=="string"&&C.constructor&&typeof C.constructor.stackTraceLimit=="number"}function isDate(C){return C instanceof Date?!0:typeof C.toDateString=="function"&&typeof C.getDate=="function"&&typeof C.setDate=="function"}function kindOf(C){var $=typeof C;return process.env.NODE_ENV!=="production"&&($=miniKindOf(C)),$}function warning$1(C){typeof console!="undefined"&&typeof console.error=="function"&&console.error(C);try{throw new Error(C)}catch($){}}function getUnexpectedStateShapeWarningMessage(C,$,V,F){var K=Object.keys($),J=V&&V.type===ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(K.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!isPlainObject(C))return"The "+J+' has unexpected type of "'+kindOf(C)+'". Expected argument to be an object with the following '+('keys: "'+K.join('", "')+'"');var ee=Object.keys(C).filter(function(te){return!$.hasOwnProperty(te)&&!F[te]});if(ee.forEach(function(te){F[te]=!0}),!(V&&V.type===ActionTypes.REPLACE)&&ee.length>0)return"Unexpected "+(ee.length>1?"keys":"key")+" "+('"'+ee.join('", "')+'" found in '+J+". ")+"Expected to find one of the known reducer keys instead: "+('"'+K.join('", "')+'". Unexpected keys will be ignored.')}function assertReducerShape(C){Object.keys(C).forEach(function($){var V=C[$],F=V(void 0,{type:ActionTypes.INIT});if(typeof F=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(12):'The slice reducer for key "'+$+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof V(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(13):'The slice reducer for key "'+$+'" returned undefined when probed with a random type. '+("Don't try to handle '"+ActionTypes.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function combineReducers(C){for(var $=Object.keys(C),V={},F=0;F<$.length;F++){var K=$[F];process.env.NODE_ENV!=="production"&&typeof C[K]=="undefined"&&warning$1('No reducer provided for key "'+K+'"'),typeof C[K]=="function"&&(V[K]=C[K])}var J=Object.keys(V),ee;process.env.NODE_ENV!=="production"&&(ee={});var te;try{assertReducerShape(V)}catch(ne){te=ne}return function(re,ae){if(re===void 0&&(re={}),te)throw te;if(process.env.NODE_ENV!=="production"){var oe=getUnexpectedStateShapeWarningMessage(re,V,ae,ee);oe&&warning$1(oe)}for(var ie=!1,se={},ce=0;ce<J.length;ce++){var de=J[ce],le=V[de],ve=re[de],fe=le(ve,ae);if(typeof fe=="undefined"){var he=ae&&ae.type;throw new Error(process.env.NODE_ENV==="production"?formatProdErrorMessage(14):"When called with an action of type "+(he?'"'+String(he)+'"':"(unknown type)")+', the slice reducer for key "'+de+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}se[de]=fe,ie=ie||fe!==ve}return ie=ie||J.length!==Object.keys(re).length,ie?se:re}}const initialState$5={processCounts:DEFAULT_PROCESS_COUNTS,userProfileData:null,filterModalOpen:!1,jobAlertModalOpen:!1},dashboardSlice=toolkit.createSlice({name:"dashboard",initialState:initialState$5,reducers:{setProcessCounts:(C,$)=>{C.processCounts=$.payload},setUserProfileData:(C,$)=>{C.userProfileData=$.payload},openFilterModal:C=>{C.filterModalOpen=!0},closeFilterModal:C=>{C.filterModalOpen=!1},openJobAlertModal:C=>{C.jobAlertModalOpen=!0},closeJobAlertModal:C=>{C.jobAlertModalOpen=!1}}}),{setProcessCounts,setUserProfileData,openFilterModal,closeFilterModal,openJobAlertModal,closeJobAlertModal}=dashboardSlice.actions,dashboardReducer=dashboardSlice.reducer,initialState$4={role_type:void 0,company_ids:[],job_title:[],job_category:[],seniority_level:[],company_categories:[],location:[],min_ctc:void 0,min_stipend:void 0,min_duration:void 0,notice_period:void 0,date_posted_on:void 0,mbe_skill_ids:{},experience_skill_ids:[],min_experience:void 0,max_experience:void 0},filterFormSlice=toolkit.createSlice({name:"filterForm",initialState:initialState$4,reducers:{updateFormField:(C,$)=>{const{field:V,value:F}=$.payload;C[V]=F},resetForm:()=>initialState$4,setFormData:(C,$)=>zn(zn({},C),$.payload),addRatingFilterInput:C=>{(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const $=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;C.mbe_skill_ids[$]={subject:null,rating:null}},deleteRatingFilterInput:(C,$)=>{const{inputFieldKey:V}=$.payload;C.mbe_skill_ids&&C.mbe_skill_ids[V]&&delete C.mbe_skill_ids[V]},updateRatingFilterInput:(C,$)=>{const{inputFilterSubKey:V,value:F}=$.payload;(!C.mbe_skill_ids||typeof C.mbe_skill_ids!="object")&&(C.mbe_skill_ids={});const K=V.split("_").slice(-1)[0],J=V.replace(`_${K}`,"");C.mbe_skill_ids[J]||(C.mbe_skill_ids[J]={subject:null,rating:null}),K==="subject"?C.mbe_skill_ids[J].subject=F:K==="rating"&&(C.mbe_skill_ids[J].rating=F)}}}),{updateFormField,resetForm,setFormData,addRatingFilterInput,deleteRatingFilterInput,updateRatingFilterInput}=filterFormSlice.actions,filterFormReducer=filterFormSlice.reducer,company_categories=[{value:5,label:"large_enterprise"},{value:6,label:"large_startups"},{value:7,label:"early_startups"}],job_categories=[{value:56529,label:"Backend Engineer"},{value:56530,label:"FullStack Engineer"},{value:56531,label:"Frontend Engineer"},{value:56569,label:"Android Engineer"},{value:56570,label:"iOS Engineer"},{value:179985,label:"Testing Engineer"},{value:189726,label:"Data Scientist"},{value:189727,label:"Data Analyst"},{value:189728,label:"Business Analyst"},{value:202365,label:"Data Engineer"},{value:221192,label:"DevOps Engineer"}],job_locations=[{value:"Bangalore",label:"Bangalore"},{value:"Pune",label:"Pune"},{value:"Hyderabad",label:"Hyderabad"},{value:"Gurgaon",label:"Gurgaon"},{value:"Noida",label:"Noida"},{value:"Chennai",label:"Chennai"},{value:"Delhi",label:"Delhi"},{value:"Chandigarh",label:"Chandigarh"},{value:"Kolkata",label:"Kolkata"},{value:"Mumbai",label:"Mumbai"},{value:"Jaipur",label:"Jaipur"},{value:"Vadodara",label:"Vadodara"},{value:"Nagpur",label:"Nagpur"},{value:"Ahmedabad",label:"Ahmedabad"},{value:"Kochi",label:"Kochi"},{value:"Mysore",label:"Mysore"},{value:"Coimbatore",label:"Coimbatore"},{value:"Bangkok",label:"Bangkok"},{value:"Mauritius",label:"Mauritius"},{value:"Udaipur",label:"Udaipur"},{value:"Cochin",label:"Cochin"},{value:"Remote",label:"Remote"},{value:"Hubballi",label:"Hubballi"},{value:"Goa",label:"Goa"},{value:"Trivandrum",label:"Trivandrum"},{value:"Indore",label:"Indore"},{value:"London",label:"London"},{value:"Bhubaneswar",label:"Bhubaneswar"},{value:"Menlo Park",label:"Menlo Park"},{value:"Dehradun",label:"Dehradun"},{value:"Hosur",label:"Hosur"},{value:"Delaware",label:"Delaware"},{value:"Amsterdam",label:"Amsterdam"},{value:"California",label:"California"},{value:"Mohali",label:"Mohali"},{value:"New Jersey",label:"New Jersey"},{value:"Arizona",label:"Arizona"},{value:"North Carolina",label:"North Carolina"},{value:"Agra",label:"Agra"},{value:"Saudi Arabia",label:"Saudi Arabia"},{value:"Pondicherry",label:"Pondicherry"},{value:"Vizag",label:"Vizag"}],role_types=[{value:198018,label:"internship"},{value:198019,label:"full_time"}],seniority_levels=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],proficiency_mapping={"Must to Have":0,"Good to Have":1,"Bar Raiser":2,"Must to Have (Eligibility)":3},onboarding_modal_clicked=!0,pipeline_stages=[{value:"draft",label:"Draft"},{value:"in_review",label:"In Review"},{value:"resume_sent",label:"Resume Sent"},{value:"resume_shortlisted",label:"Resume Shortlisted"},{value:"interviewing",label:"Interviewing"},{value:"to_be_offered",label:"To Be Offered"},{value:"rejected",label:"Rejected"},{value:"offer_received",label:"Offer Received"},{value:"offer_withdrawn",label:"Offer Withdrawn"},{value:"offer_accepted",label:"Offer Accepted"},{value:"offer_declined",label:"Offer Declined"},{value:"on_hold",label:"On Hold"},{value:"joined",label:"Joined"},{value:"saved",label:"Saved"},{value:"not_interested",label:"Not Interested"},{value:"application_withdrawn",label:"Application Withdrawn"},{value:"application_archived",label:"Application Archived"}],merit_based_skills=[{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:3053255},{id:37188,title:"High Level Design",mentee_module_id:3053256},{id:37189,title:"Frontend (React)",mentee_module_id:3053258},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:3053258},{id:37216,title:"Django",mentee_module_id:3053258},{id:37244,title:"Angular",mentee_module_id:3053258},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37193,title:"Data Analytics - Tools",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37197,title:"Computer Vision",mentee_module_id:7522793},{id:37198,title:"Natural Language Processing",mentee_module_id:7522794},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37201,title:"DA tools",mentee_module_id:null},{id:37202,title:"Intermediate DSA",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:7532826},{id:37186,title:"Javascript",mentee_module_id:7532826},{id:37187,title:"Low Level Design",mentee_module_id:7532828},{id:37189,title:"Frontend (React)",mentee_module_id:7532828},{id:37244,title:"Angular",mentee_module_id:7532828},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:7522864},{id:37184,title:"Python",mentee_module_id:5696347},{id:37185,title:"Java",mentee_module_id:5696347},{id:37186,title:"Javascript",mentee_module_id:5696347},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:5910715},{id:37189,title:"Frontend (React)",mentee_module_id:null},{id:37244,title:"Angular",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37226,title:"Data Structures & Algorithms Advanced",mentee_module_id:7522524},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37247,title:"Shell Scripting and CS Fundamentals",mentee_module_id:7522518},{id:37194,title:"EDA Fundamentals",mentee_module_id:null}],v1_onboarding_enabled=!0,v0_onboarding_completed=!0,initial_user_application_stage=4,is_discussion_hub_enabled=!1,resume_issues={total_issues:2},default_resume_details={id:17407,user_id:674153,name:"AswanthDefaultResume",default:!0,status:"active",meta:{social_profiles:{codechef:"",codeforces:"",geeksforgeeks:"",github:"",hackerearth:"",hackerrank:"",leetcode:"",portfolio:""},job_title:"Fullstack developer 1",interactions:{relevancy_alert_modal_displayed:!0}},modified_at:"2025-05-11T15:27:35.000Z",created_at:"2024-02-13T19:39:17.000Z",updated_at:"2025-05-11T15:27:35.000Z"},resume_builder_skills={language:[1167,1150,1148,1136,1128,1276,1270,1218,1217,1215,1213,1211,1210,1209],framework:[1206,1203,1200,1198,1197,1196,1195,1158,1157,1156,1145,1133],tools:[2431,2430,2435,1234,1231,1229,1228,1176,1175,2432,46262,58475]},skill_data=[{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1128,subtopic:"Javascript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1133,subtopic:"Angular",eligible_topic_id:7580,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1136,subtopic:"CSS",eligible_topic_id:7586,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1145,subtopic:"Flutter",eligible_topic_id:8760,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1148,subtopic:"HTML",eligible_topic_id:7589,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1150,subtopic:"JavaScript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1156,subtopic:"React",eligible_topic_id:7597,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1157,subtopic:"React Native",eligible_topic_id:8763,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1158,subtopic:"Redux",eligible_topic_id:8764,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1167,subtopic:"TypeScript",eligible_topic_id:8768,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1175,subtopic:"Android Development",eligible_topic_id:8753,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1176,subtopic:"iOS Development",eligible_topic_id:8770,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1195,subtopic:".NET",eligible_topic_id:7579,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1196,subtopic:"Django",eligible_topic_id:7587,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1197,subtopic:"Express.js",eligible_topic_id:8758,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1198,subtopic:"Flask",eligible_topic_id:8759,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1200,subtopic:"Node.js",eligible_topic_id:7594,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1203,subtopic:"Ruby on Rails",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1206,subtopic:"Spring Boot",eligible_topic_id:7600,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1209,subtopic:"C",eligible_topic_id:8755,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1210,subtopic:"Go",eligible_topic_id:8761,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1211,subtopic:"Java",eligible_topic_id:7590,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1213,subtopic:"Python",eligible_topic_id:7596,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1215,subtopic:"Ruby",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1217,subtopic:"Scala",eligible_topic_id:8765,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1218,subtopic:"Swift",eligible_topic_id:8766,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1228,subtopic:"MongoDB",eligible_topic_id:8769,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1229,subtopic:"MySQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1231,subtopic:"PostgreSQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1234,subtopic:"SQL Server",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1270,subtopic:"C#",eligible_topic_id:7584,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1276,subtopic:"C++",eligible_topic_id:7585,eligible_class:"Topic"},{id:null,topic:"Cloud Computing",topic_id:564,subtopic_id:2430,subtopic:"AWS",eligible_topic_id:7581,eligible_class:"Topic"},{id:null,topic:"CloudComputing",topic_id:564,subtopic_id:2431,subtopic:"Azure",eligible_topic_id:8754,eligible_class:"Topic"},{id:null,topic:"System Design",topic_id:563,subtopic_id:2432,subtopic:"Microservices",eligible_topic_id:7593,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:2435,subtopic:"SQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Machine Learning",topic_id:405,subtopic_id:46262,subtopic:"Tableau",eligible_topic_id:7604,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:58475,subtopic:"Power BI",eligible_topic_id:null,eligible_class:"Topic"}],commonData={company_categories,job_categories,job_locations,role_types,seniority_levels,proficiency_mapping,onboarding_modal_clicked,pipeline_stages,merit_based_skills,v1_onboarding_enabled,v0_onboarding_completed,initial_user_application_stage,is_discussion_hub_enabled,resume_issues,default_resume_details,resume_builder_skills,skill_data},capitalize=C=>!C||typeof C!="string"?C:C.charAt(0).toUpperCase()+C.slice(1).toLowerCase(),formatExperience=(C,$)=>{const V=C!=null?C:0,F=$!=null?$:0,K=[];return V>0&&K.push(`${V} ${V===1?"yr":"yrs"}`),K.push(`${F} ${F===1?"month":"months"}`),`${K.join(" ")} Experience`},transformCompanyCategories=C=>!C||!Array.isArray(C)?C:C.map($=>gr(zn({},$),{label:capitalize($.label||"").replace(/_/g," ")})),transformRoleTypes=C=>!C||!Array.isArray(C)?C:C.map($=>gr(zn({},$),{label:toCase("titleCase",$.label||"")})),transformMetaData=C=>{if(!C||typeof C!="object")return C;const $=toCamelCaseObject(C);return $.companyCategories&&($.companyCategories=transformCompanyCategories($.companyCategories)),$.roleTypes&&($.roleTypes=transformRoleTypes($.roleTypes)),$},rawMetaData=window.__CAREERS_HUB__||commonData,transformedMetaData=transformMetaData(rawMetaData),initialState$3={meta:transformedMetaData},metaDataSlice=toolkit.createSlice({name:"metaData",initialState:initialState$3,reducers:{setMetaData:(C,$)=>{C.meta=transformMetaData($.payload)}}});metaDataSlice.actions;const metaDataReducer=metaDataSlice.reducer,initialState$2={alerts:[],loading:!1,error:null},alertSlice=toolkit.createSlice({name:"alerts",initialState:initialState$2,reducers:{setAlerts:(C,$)=>{C.alerts=$.payload},addAlert:(C,$)=>{C.alerts.push($.payload)},setLoading:(C,$)=>{C.loading=$.payload},setError:(C,$)=>{C.error=$.payload}}}),{setAlerts,addAlert,setLoading,setError}=alertSlice.actions,alertReducer=alertSlice.reducer,initialState$1={savedJobs:{}},savedJobsSlice=toolkit.createSlice({name:"savedJobs",initialState:initialState$1,reducers:{setJobSavedStatus:(C,$)=>{const{jobId:V,status:F,lastUpdatedAt:K}=$.payload;F==="Saved"?C.savedJobs[V]={status:"Saved",lastUpdatedAt:K||new Date().toISOString()}:delete C.savedJobs[V]},initializeSavedJobs:(C,$)=>{($.payload||[]).forEach(F=>{F.applicationStatus==="Saved"&&(C.savedJobs[F.id]={status:"Saved",lastUpdatedAt:F.applicationLastUpdatedAt||new Date().toISOString()})})},clearSavedJobs:C=>{C.savedJobs={}}}}),{setJobSavedStatus,initializeSavedJobs,clearSavedJobs}=savedJobsSlice.actions,savedJobsReducer=savedJobsSlice.reducer;function isNullOrUndefined(C){return C==null}function getBlockerPointsChecklist(C){const{overall_resume_score:$,section_feedback:V,section_scores:F}=(C==null?void 0:C.resume_evaluation_result)||{};if(isNullOrUndefined($)||isNullOrUndefined(V)||$>2)return[];const K=[];return Object.keys(V).forEach(J=>{F[J]<2&&K.push(V[J][0])}),K}const initialState={fitmentScore:{},activeResumeId:null,activeResumeName:null,activeJobProfileId:null,activeResumeChecklist:[],isChecklistOpen:!1,resumeReviewData:{}},resumeFitmentSlice=toolkit.createSlice({name:"resumeFitment",initialState,reducers:{setFitmentScore:(C,$)=>{var ee,te,ne,re;const V=(ee=$.payload)==null?void 0:ee.job_profile_id,F=(te=$.payload)==null?void 0:te.user_resume_id,K=(ne=$.payload)==null?void 0:ne.score,J=(re=$.payload)==null?void 0:re.remarks;V&&F&&!isNullOrUndefined(K)&&(C.fitmentScore[V]=gr(zn({},C.fitmentScore[V]),{[F]:{score:K,remarks:J}}))},setResumeReviewData:(C,$)=>{const V=$.payload.resume_id;V&&(C.resumeReviewData[V]=$.payload)},setActiveResume:(C,$)=>{var J,ee,te;const V=(J=$.payload)==null?void 0:J.jobProfileId,F=(ee=$.payload)==null?void 0:ee.resumeId,K=(te=$.payload)==null?void 0:te.resumeName;V&&F&&(C.activeResumeId=F,C.activeJobProfileId=V,C.activeResumeName=K,C.activeResumeChecklist=getBlockerPointsChecklist(C.resumeReviewData[F]))},setChecklistOpen:(C,$)=>{var V,F,K;(V=$.payload)!=null&&V.syncWithBlockerPoints?C.isChecklistOpen=((F=C.activeResumeChecklist)==null?void 0:F.length)>0:C.isChecklistOpen=(K=$.payload)==null?void 0:K.isOpen}}}),{setFitmentScore,setActiveResume,setChecklistOpen,setResumeReviewData}=resumeFitmentSlice.actions,resumeFitmentReducer=resumeFitmentSlice.reducer,rootReducer=combineReducers({[careerHubApi.reducerPath]:careerHubApi.reducer,layout:layoutReducer,filter:filterReducer,dashboard:dashboardReducer,filterForm:filterFormReducer,metaData:metaDataReducer,filterOptions:filterOptionsReducer,alerts:alertReducer,savedJobs:savedJobsReducer,resumeFitment:resumeFitmentReducer}),HelloWorld=()=>React.createElement("div",{style:{padding:"20px",textAlign:"center"}},React.createElement("h1",null,"Hello World - Career Hub"),React.createElement("p",null,"This is a dummy component.")),tagsSection="_tagsSection_gf6im_1",tag$1="_tag_gf6im_1",activeTag="_activeTag_gf6im_22",icon="_icon_gf6im_29",styles$I={tagsSection,tag:tag$1,activeTag,icon};function TagsSection({analytics:C}){const{currentTab:$,updateTabAndJobId:V}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),F=$||TAG_TO_TAB_MAPPING.relevant,K=reactRedux.useSelector(ne=>{var re,ae;return((ae=(re=ne.scalantCareerHub)==null?void 0:re.dashboard)==null?void 0:ae.processCounts)||{}}),J=ne=>{var ae;C==null||C.click(`Tags Section - ${((ae=JOB_FILTER_TAGS[ne])==null?void 0:ae.label)||ne}`,PRODUCT_NAME);const re=TAG_TO_TAB_MAPPING[ne];re&&V(re)},ee=ne=>{const re=TAG_TO_TAB_MAPPING[ne];return F===re},te=ne=>{const re=COUNT_TO_TAB_MAPPING[ne];return K[re]||0};return React.createElement("div",{className:styles$I.tagsSection},Object.keys(JOB_FILTER_TAGS).map(ne=>React.createElement(Tag$1,{className:classNames(styles$I.tag,{[styles$I.activeTag]:ee(ne)}),key:ne,onClick:()=>J(ne)},React.createElement(JOB_FILTER_TAGS[ne].icon,{className:styles$I.icon}),JOB_FILTER_TAGS[ne].label," ",React.createElement("span",{className:styles$I.count},"(",te(ne),")"))))}const jobAlert="_jobAlert_kiep6_1",styles$H={jobAlert};function JobAlert({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Job Alert - Open Modal",PRODUCT_NAME),$(openJobAlertModal())};return React.createElement("div",{className:styles$H.jobAlert,onClick:V},React.createElement(AlertFilled$1,{className:styles$H.icon}),"Job Alerts")}const styles$G={};function Sorting(){const C=reactRedux.useDispatch(),$=reactRedux.useSelector(ee=>{var te,ne;return((ne=(te=ee.scalantCareerHub)==null?void 0:te.filter)==null?void 0:ne.sortings)||[]}),V=React.useMemo(()=>getCurrentSortingValue($),[$]),F=ee=>{const te=SORTING_OPTIONS[ee];te&&C(setSortings([te.mapping]))},K=Object.values(SORTING_OPTIONS).map(ee=>({value:ee.value,label:ee.value===V?`Sorted By: ${ee.label}`:ee.label})),J=ee=>{const te=SORTING_OPTIONS[ee.value];return te?te.label:ee.label};return React.createElement(Select$1,{className:styles$G.sorting,value:V,onChange:F,suffixIcon:React.createElement(DownOutlined$1,null),options:K,optionRender:J})}const styles$F={};function Filter({analytics:C}){const $=reactRedux.useDispatch(),V=()=>{C==null||C.click("Filter - Open Drawer",PRODUCT_NAME),$(openFilterModal())};return React.createElement(Button$2,{type:"primary",className:styles$F.filter,onClick:V},"Filters ",React.createElement(DownOutlined$1,null))}const search="_search_hhvxj_1",iconContainer$1="_iconContainer_hhvxj_7",input="_input_hhvxj_20",slideIn="_slideIn_hhvxj_1",styles$E={search,iconContainer:iconContainer$1,input,slideIn};function Search({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(ie=>{var se,ce,de;return((de=(ce=(se=ie.scalantCareerHub)==null?void 0:se.filter)==null?void 0:ce.filters)==null?void 0:de.keyword)||""}),[F,K]=React.useState(!1),[J,ee]=React.useState(V),te=React.useRef(null),ne=React.useRef(null);React.useEffect(()=>{ee(V)},[V]),React.useEffect(()=>{F&&te.current&&te.current.focus()},[F]);const re=()=>{C==null||C.click("Search - Icon Click",PRODUCT_NAME),K(!0)},ae=ie=>{const se=ie.target.value;ee(se),ne.current&&clearTimeout(ne.current),ne.current=setTimeout(()=>{$(setKeyword(se))},300)},oe=()=>{J.trim()||K(!1)};return React.useEffect(()=>()=>{ne.current&&clearTimeout(ne.current)},[]),React.createElement("div",{className:styles$E.search},F||J?React.createElement(Input$1,{ref:te,className:styles$E.input,placeholder:"Search for job or Company Name",value:J,onChange:ae,onBlur:oe,suffix:React.createElement(SearchOutlined$1,null)}):React.createElement("div",{className:styles$E.iconContainer,onClick:re},React.createElement(SearchOutlined$1,null)))}const actions$1="_actions_nxp1u_1",styles$D={actions:actions$1};function Actions$1({analytics:C}){return React.createElement("div",{className:styles$D.actions},React.createElement(JobAlert,{analytics:C}),React.createElement(Sorting,null),React.createElement(Filter,{analytics:C}),React.createElement(Search,{analytics:C}))}Actions$1.propTypes={analytics:PropTypes.object};const jobsHeaderContainer="_jobsHeaderContainer_1un8f_1",styles$C={jobsHeaderContainer};function JobsHeader({analytics:C,className:$}){return React.createElement("div",{className:classNames($,styles$C.jobsHeaderContainer)},React.createElement(TagsSection,{analytics:C}),React.createElement(Actions$1,{analytics:C}))}JobsHeader.propTypes={analytics:PropTypes.object,className:PropTypes.string},JobsHeader.defaultProps={className:""};const parsePreferredLocations=C=>!C||typeof C!="string"?[]:C.toLowerCase()==="anywhere_in_india"?["Anywhere In India"]:C.split("/").map($=>$.trim()).filter($=>$.length>0).map($=>toTitleCase($)),parsePreferredJobRoles=C=>!C||typeof C!="string"?[]:C.split("/").map($=>$.trim()).filter($=>$.length>0),dashboardService=careerHubApi.injectEndpoints({endpoints:C=>({fetchProcessCounts:C.query({query:()=>({url:"/job-tracker/fetch-process-counts/",method:"POST"}),transformResponse:$=>$.process_counts||{},providesTags:["ProcessCounts"]}),updateJobStatus:C.mutation({query:$=>({url:"/academy/mentee/jobs-mapping/update-status",method:"POST",body:$}),transformResponse:$=>$})})}),{useUpdateJobStatusMutation}=dashboardService,profileName="_profileName_1vhkf_1",profileDetails="_profileDetails_1vhkf_5",profileDetailsItems="_profileDetailsItems_1vhkf_13",preferencesTitle="_preferencesTitle_1vhkf_18",preferencesDivider="_preferencesDivider_1vhkf_22",preferencesContent="_preferencesContent_1vhkf_27",preferenceLabel="_preferenceLabel_1vhkf_31",preferenceValue="_preferenceValue_1vhkf_37",preferenceTag="_preferenceTag_1vhkf_42",jobIntentContainer="_jobIntentContainer_1vhkf_51",preferencesContainer="_preferencesContainer_1vhkf_55",styles$B={profileName,profileDetails,profileDetailsItems,preferencesTitle,preferencesDivider,preferencesContent,preferenceLabel,preferenceValue,preferenceTag,jobIntentContainer,preferencesContainer},DISPLAY_LABEL_TO_STATUS={"Looking for a job":"active","Not looking for a job":"inactive","Need time to prepare":"need_time"},STATUS_TO_PLACEMENT_INTENT={active:"Interested",inactive:"Not Interested",need_time:"Need Time to Prepare"},PLACEMENT_INTENT_TO_DISPLAY_LABEL={Interested:"Looking for a job","Need Time to Prepare":"Need time to prepare","Not Interested":"Not looking for a job"},JOB_INTENT_OPTIONS=[{label:"Looking for a job",value:"Looking for a job"},{label:"Need time to prepare",value:"Need time to prepare"},{label:"Not looking for a job",value:"Not looking for a job"}];function ProfileDetails({analytics:C,className:$,onViewResume:V,onEditPreferences:F}){var se,ce,de,le,ve,fe,he,me;const K=reactRedux.useSelector(ue=>ue.scalantCareerHub.dashboard.userProfileData),[J,{isLoading:ee}]=useUpdateJobStatusMutation(),[te,ne]=React.useState((K==null?void 0:K.placementIntent)||null);React.useEffect(()=>{K!=null&&K.placementIntent&&ne(K.placementIntent)},[K==null?void 0:K.placementIntent]);const re=()=>{C==null||C.click("Profile Details - View Resume",PRODUCT_NAME),V==null||V()},ae=()=>{C==null||C.click("Profile Details - Edit Preferences",PRODUCT_NAME),F==null||F()},oe=ue=>sr(this,null,function*(){try{const pe=DISPLAY_LABEL_TO_STATUS[ue];pe&&(yield J({source:"careers_hub",status:pe}).unwrap(),ne(STATUS_TO_PLACEMENT_INTENT[pe]))}catch(pe){console.error("Failed to update job status:",pe)}}),ie=ue=>PLACEMENT_INTENT_TO_DISPLAY_LABEL[ue]||null;return React.createElement("div",{className:classNames(styles$B.profileDetails,$)},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Avatar$1,{shape:"square",size:48,src:K==null?void 0:K.avatar}),React.createElement(Flex$1,{justify:"center",vertical:!0,gap:4},React.createElement(Typography$1.Title,{level:5,className:styles$B.profileName},K==null?void 0:K.name),React.createElement(Typography$1.Text,{type:"secondary"},toTitleCase((se=K==null?void 0:K.mentee)==null?void 0:se.careersHubProduct)))),React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$B.profileDetailsItems},React.createElement(Flex$1,{align:"center",gap:10},React.createElement(UserOutlined$1,null),React.createElement(Typography$1.Text,null,K==null?void 0:K.jobTitle)),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(StarOutlined$1,null),React.createElement(Typography$1.Text,null,formatExperience((ce=K==null?void 0:K.experienceYears)!=null?ce:K==null?void 0:K.experienceInYears,(de=K==null?void 0:K.experienceMonths)!=null?de:K==null?void 0:K.experienceInMonths))),React.createElement(Flex$1,{align:"center",gap:10},React.createElement(FileTextTwoTone$1,null),React.createElement(Typography$1.Link,{onClick:re},"View Resume")),React.createElement(Flex$1,{vertical:!0,className:styles$B.jobIntentContainer,gap:8},React.createElement(Typography$1.Text,{type:"secondary"},"Select your intent in Career's Hub"),React.createElement(Select$1,{placeholder:"Select your intent",value:ie(te),onChange:oe,disabled:ee,loading:ee,style:{width:"100%"},options:JOB_INTENT_OPTIONS}))),React.createElement(Flex$1,{vertical:!0,className:styles$B.preferencesContainer},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Typography$1.Title,{level:5,className:styles$B.preferencesTitle},"Your Preferences"),React.createElement(EditTwoTone$1,{onClick:ae})),React.createElement(Divider$1,{className:styles$B.preferencesDivider}),React.createElement(Flex$1,{vertical:!0,gap:16,className:styles$B.preferencesContent},React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Location"),React.createElement(Flex$1,{gap:.4,wrap:!0},parsePreferredLocations((le=K==null?void 0:K.userCompanyProfile)==null?void 0:le.preferredLocation).map((ue,pe)=>React.createElement(Tag$1,{key:pe,bordered:!1,className:styles$B.preferenceTag},ue)))),React.createElement(Flex$1,{vertical:!0,gap:.4},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Job roles"),React.createElement(Flex$1,{gap:.4,wrap:!0},parsePreferredJobRoles((ve=K==null?void 0:K.userCompanyProfile)==null?void 0:ve.preferredRole).map((ue,pe)=>React.createElement(Tag$1,{key:pe,className:styles$B.preferenceTag},ue)))),React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Expected CTC (LPA):"),React.createElement(Typography$1.Text,{className:styles$B.preferenceValue},(fe=K==null?void 0:K.userCompanyProfile)==null?void 0:fe.expectedCtc)),React.createElement(Flex$1,{align:"center"},React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"Notice period (In days):"),React.createElement(Typography$1.Text,{className:styles$B.preferenceValue},(he=K==null?void 0:K.userCompanyProfile)==null?void 0:he.noticePeriod)),React.createElement(Flex$1,{align:"center"},((me=K==null?void 0:K.userCompanyProfile)==null?void 0:me.buyoutNotice)&&React.createElement(Typography$1.Text,{className:styles$B.preferenceLabel},"*Buyout available:")))))}ProfileDetails.propTypes={analytics:PropTypes.object,className:PropTypes.string},ProfileDetails.defaultProps={className:""};const jobPreviewApi=careerHubApi.injectEndpoints({endpoints:C=>({getJobPreview:C.query({query:$=>`/job-tracker/job_profile/${$}/`,providesTags:($,V,F)=>[{type:"JobPreview",id:F},{type:"JobPreview",id:"LIST"}],transformResponse:$=>{var ee,te,ne;const V=toCamelCaseObject($),F=((ee=V==null?void 0:V.data)==null?void 0:ee.attributes)||{},K=((ne=(te=V==null?void 0:V.included)==null?void 0:te.find(re=>re.type==="company"))==null?void 0:ne.attributes)||{},J=F.contestSkills||[];return{jobData:gr(zn({},F),{contestSkills:J,name:F.name||(K==null?void 0:K.name)||"Company"}),companyData:K,highlights:F.highlights,eligibilityCriteria:F.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery}=jobPreviewApi,JobPreviewContext=React.createContext(null),JobPreviewProvider=({analytics:C,country:$="IN",jobId:V,currentTab:F,openMockInterviewModal:K=(re,ae)=>{console.log("Method not implemented. We should get it from MIT"),console.log(re,ae)},openResume:J=()=>{console.log("Method not implemented. We should get it from MIT")},skip:ee=!1,onCloseResumeBuilder:te,children:ne})=>{const{data:re,isLoading:ae,error:oe,refetch:ie}=useGetJobPreviewQuery(V,{skip:!V||ee}),[se,ce]=React.useState(),[de,le]=React.useState(null),fe={analytics:C,activeApplicationId:de,setActiveApplicationId:le,activeTab:se,setActiveTab:he=>{ce(he),C==null||C.click("Job Preview - Active Tab Changed","Jobs Page V2",{tab:he,jobId:V})},country:$,jobId:V,data:re,isLoading:ae,error:oe,refetch:ie,openMockInterviewModal:K,openResume:J,jobData:re==null?void 0:re.jobData,companyData:re==null?void 0:re.companyData,highlights:re==null?void 0:re.highlights,eligibilityCriteria:re==null?void 0:re.eligibilityCriteria,currentTab:F,onCloseResumeBuilder:te};return React.createElement(JobPreviewContext.Provider,{value:fe},ne)},useJobPreview=()=>{const C=React.useContext(JobPreviewContext);if(!C)throw new Error("useJobPreview must be used within a JobPreviewProvider");return C},ApplicationFormContext=React.createContext();function ApplicationFormProvider({children:C,onUploadFile:$=()=>(console.log("Method not implemented. We should get it from MIT"),""),onEditResume:V=()=>(console.log("Method not implemented. We should get it from MIT"),""),onAddResume:F=()=>(console.log("Method not implemented. We should get it from MIT"),""),stepName:K,jobProfileId:J,applicationId:ee}){const[te,ne]=React.useState(null),[re,ae]=React.useState(K),[oe,ie]=React.useState(null);return React.useEffect(()=>{K===APPLICATION_STATUS$1.RESUME_CHOICE_SELECT?ae(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK):ae(K)},[K]),React.createElement(ApplicationFormContext.Provider,{value:{onUploadFile:$,formInstance:te,setFormInstance:ne,stepName:re,setStepName:ae,jobProfileId:J,applicationId:ee,selectedResume:oe,setSelectedResume:ie,onEditResume:V,onAddResume:F}},C)}const useApplicationFormContext=()=>{const C=React.useContext(ApplicationFormContext);if(!C)throw new Error("useApplicationForm must be used within a ApplicationFormProvider");return C},descriptionContainer$1="_descriptionContainer_sd7fu_1",container$9="_container_sd7fu_6",recruiterAvatar="_recruiterAvatar_sd7fu_10",recruiterCardContent="_recruiterCardContent_sd7fu_14",recruiterName="_recruiterName_sd7fu_18",recruiterEmail="_recruiterEmail_sd7fu_24",styles$A={descriptionContainer:descriptionContainer$1,container:container$9,recruiterAvatar,recruiterCardContent,recruiterName,recruiterEmail},RecruiterCard=({recruiter:C})=>{const{name:$,avatar:V,email:F}=C||{},{analytics:K}=useJobPreview(),J=()=>{K==null||K.click("Recruiter - Send Email",PRODUCT_NAME,{recruiterName:$,recruiterEmail:F})};return React.createElement(Card$1,{size:"small"},React.createElement(Space$1,{direction:"horizontal"},React.createElement(Avatar$1,{size:48,src:V,className:styles$A.recruiterAvatar}),React.createElement(Space$1,{direction:"vertical",className:styles$A.recruiterCardContent},React.createElement(Typography$1.Text,{className:styles$A.recruiterName},$),React.createElement(Typography$1.Link,{className:styles$A.recruiterEmail,href:`mailto:${F}`,onClick:J},React.createElement(MailTwoTone$1,null),"Send Email To Recruiter"))))},Recruiters=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return React.createElement(Space$1,null,$.map((V,F)=>React.createElement(RecruiterCard,{key:F,recruiter:V})))},TimelineSteps=()=>{const{jobData:C}=useJobPreview(),{applicationTimeline:$}=C||{},{timeline:V}=$||{},F=V.map(J=>({title:J.stageName,description:J.stageComments})),K=V.findIndex(J=>J.stageStatus==="ongoing");return React.createElement(Steps$1,{current:K,items:F,direction:"vertical"})},Timeline=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Your Application Status"),React.createElement(TimelineSteps,null)),RecruiterDetails=()=>{const{jobData:C}=useJobPreview(),{recruiters:$}=C||{};return!$||$.length===0?null:React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Recruiter Details"),React.createElement(Recruiters,null))},ApplicationTimelineTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$A.container},React.createElement(Timeline,null),React.createElement(RecruiterDetails,null)),ICONS={bookmark:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/276/original/BookmarkSimple.svg?1765444708",exit:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/344/original/ExportOutlined.svg?1765460782",airplay:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/451/original/Vector.svg?1765523747",monitor:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/455/original/Vector_%281%29.svg?1765526679",likeBadge:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/171/516/original/Like-badge-_remix__1.svg?1766402587"},actionBanner="_actionBanner_13z26_1",actionBannerIcon="_actionBannerIcon_13z26_12",actionBannerContent="_actionBannerContent_13z26_17",actionBannerTitle="_actionBannerTitle_13z26_23",actionBannerDescription="_actionBannerDescription_13z26_29",actionBannerButton="_actionBannerButton_13z26_33",styles$z={actionBanner,actionBannerIcon,actionBannerContent,actionBannerTitle,actionBannerDescription,actionBannerButton},ActionBanner=({icon:C,title:$,description:V,buttonText:F,buttonIcon:K,className:J,onClick:ee,isLoading:te})=>React.createElement("div",{className:classNames(styles$z.actionBanner,J)},C,React.createElement("div",{className:styles$z.actionBannerContent},React.createElement("span",{className:styles$z.actionBannerTitle},$),React.createElement("span",{className:styles$z.actionBannerDescription},V)),React.createElement(Button$2,{icon:K,type:"primary",className:styles$z.actionBannerButton,onClick:ee,loading:te},F)),monitorBanner="_monitorBanner_gxbq6_1",monitorIcon="_monitorIcon_gxbq6_7",styles$y={monitorBanner,monitorIcon},INTERVIEW_QUESTIONS_URL="https://companion.scaler.com/interview-experiences",InterviewExperiencesBanner=()=>{var oe;const C=reactRedux.useSelector(ie=>ie.scalantCareerHub.dashboard.userProfileData),$=(oe=C==null?void 0:C.hasCompletedScreeningCall)!=null?oe:!1,{analytics:V,jobData:F,companyData:K,currentTab:J}=useJobPreview(),{title:ee,applicationStatus:te}=F||{},ne=te===APPLICATION_STATUS$1.WITHDRAWN,{name:re}=K||{},ae=React.useCallback(()=>{globalThis.open(`${INTERVIEW_QUESTIONS_URL}?company=${encodeURIComponent(re)}&role=${encodeURIComponent(ee)}`,"_blank"),V==null||V.click("Interview Experiences - Explore",PRODUCT_NAME)},[V,re,ee]);return!$||J!==TAG_TO_TAB_MAPPING.applied||ne?null:React.createElement(ActionBanner,{icon:React.createElement("img",{src:ICONS.monitor,className:styles$y.monitorIcon}),title:"We've got the resources you need for this role",description:"Explore Interview Experiences from Scaler learners who have attempted this before",buttonText:"Explore",buttonIcon:React.createElement(DoubleRightOutlined$1,null),className:styles$y.monitorBanner,onClick:ae})},jobDescriptionTab="_jobDescriptionTab_1g78n_1",contentContainer="_contentContainer_1g78n_5",descriptionTitle="_descriptionTitle_1g78n_10",descriptionText="_descriptionText_1g78n_19",stepText$1="_stepText_1g78n_19",descriptionLink="_descriptionLink_1g78n_33",list="_list_1g78n_37",steps="_steps_1g78n_41",stepTitle="_stepTitle_1g78n_48",descriptionContainer="_descriptionContainer_1g78n_59",container$8="_container_1g78n_64",indicatorContainer="_indicatorContainer_1g78n_69",indicatorLine="_indicatorLine_1g78n_74",indicatorDot="_indicatorDot_1g78n_82",extraIndicatorDot="_extraIndicatorDot_1g78n_82",styles$x={jobDescriptionTab,contentContainer,descriptionTitle,descriptionText,stepText:stepText$1,descriptionLink,list,steps,stepTitle,descriptionContainer,container:container$8,indicatorContainer,indicatorLine,indicatorDot,extraIndicatorDot},Company$1=()=>{const{companyData:C,analytics:$}=useJobPreview(),{name:V,employeeCount:F,companyVision:K,location:J,category:ee,companyWebsite:te}=C||{},ne=()=>{$==null||$.click("Company - Website Link",PRODUCT_NAME,{companyName:V})};return React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Link,{className:styles$x.descriptionTitle,href:te,target:"_blank",onClick:ne},"About ",V),K&&React.createElement(Typography$1.Paragraph,{className:styles$x.descriptionText},React.createElement("div",{dangerouslySetInnerHTML:{__html:K}})),J&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Office Location:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},J)),ee&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Company Category:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},toTitleCase(ee))),F&&React.createElement(Space$1,null,React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"No. of Employees:"),React.createElement(Typography$1.Text,{className:styles$x.descriptionText},F)))},collapsableContainer$1="_collapsableContainer_1s2ds_1",collapsed$1="_collapsed_1s2ds_5",viewMore$1="_viewMore_1s2ds_21",styles$w={collapsableContainer:collapsableContainer$1,collapsed:collapsed$1,viewMore:viewMore$1},CollapsableHTML=({analytics:C,html:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable HTML - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$w.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$w.collapsed]:!F}),dangerouslySetInnerHTML:{__html:$}}),React.createElement(Typography$1.Link,{className:styles$w.viewMore,onClick:J},F?"View Less":"View More"))},Description$1=()=>{const{jobData:C,analytics:$}=useJobPreview(),{jobDescText:V,jobDesc:F}=C||{},K=()=>{$==null||$.click("Job Description - Know More",PRODUCT_NAME)};return React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"About the Role"),V&&React.createElement(CollapsableHTML,{analytics:$,html:V,contentClassName:styles$x.descriptionText}),F&&React.createElement(Typography$1.Link,{className:styles$x.descriptionLink,href:F,target:"_blank",onClick:K},React.createElement(Space$1,null,React.createElement(LinkOutlined$1,null),"Know More")))},collapsableContainer="_collapsableContainer_1bjjt_1",collapsed="_collapsed_1bjjt_5",viewMore="_viewMore_1bjjt_21",styles$v={collapsableContainer,collapsed,viewMore},CollapsableContainer=({analytics:C,children:$,contentClassName:V})=>{const[F,K]=React.useState(!1),J=()=>{C==null||C.click(`Collapsable Container - ${F?"View Less":"View More"}`,PRODUCT_NAME),K(!F)};return React.createElement("div",{className:styles$v.collapsableContainer},React.createElement("div",{className:classNames(V,{[styles$v.collapsed]:!F})},$),React.createElement(Typography$1.Link,{className:styles$v.viewMore,onClick:J},F?"View Less":"View More"))},Benefits=()=>{const{jobData:C,country:$}=useJobPreview(),{benefits:V,visaSponsorship:F}=C||{},K=F==="yes";return!V&&!K||$!=="US"?null:React.createElement(Space$1,{className:styles$x.contentContainer,direction:"vertical",size:"large"},React.createElement(Typography$1.Text,{className:styles$x.descriptionTitle},"Benefits"),React.createElement(CollapsableContainer,{contentClassName:styles$x.descriptionText},React.createElement("ul",{className:styles$x.list},V==null?void 0:V.map(J=>React.createElement("li",{key:J},J)),K&&React.createElement("li",null,"Visa sponsorship available"))))},STEPS=[{title:"In Progress",description:"Once you apply, our team checks if it’s a right match"},{title:"Resume Forwarded",description:"We send your resume to the company"},{title:"Feedback Stage",description:"The company reviews and shares feedback"},{title:"Interview Process",description:"If selected, your interview rounds begin"}],Indicator=()=>React.createElement(Flex$1,{vertical:!0,className:styles$x.indicatorContainer},React.createElement("div",{className:styles$x.indicatorLine}),React.createElement(Flex$1,{flex:1,gap:12},STEPS.map((C,$)=>React.createElement(Flex$1,{key:$,flex:1},React.createElement("div",{className:styles$x.indicatorDot}))),React.createElement("div",{className:styles$x.extraIndicatorDot}))),HiringSteps=()=>{const C=STEPS.map($=>({title:React.createElement("span",{className:styles$x.stepTitle},$.title),description:React.createElement("span",{className:styles$x.stepText},$.description)}));return React.createElement(Flex$1,{vertical:!0,gap:12},React.createElement(Indicator,null),React.createElement(Flex$1,{className:styles$x.steps,gap:12},C.map(($,V)=>React.createElement(Flex$1,{vertical:!0,flex:1,key:V},$.title,$.description))))},container$7="_container_all86_1",styles$u={container:container$7},PlacementProcessDisclaimerBanner=()=>React.createElement(Flex$1,{className:styles$u.container},React.createElement(InfoCircleTwoTone$1,{twoToneColor:"#913ECE"}),React.createElement(Typography$1.Text,null,"Our placement team has access to the same application status and updates that are visible to you")),BasicInfo$1=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Job Description"),React.createElement(Company$1,null),React.createElement(Description$1,null),React.createElement(Benefits,null)),PostApplicationProcess=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.descriptionContainer},React.createElement(Typography$1.Title,{level:3},"Post Application Process"),React.createElement(HiringSteps,null)),JobDescriptionTab=()=>React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$x.container},React.createElement(BasicInfo$1,null),React.createElement(PostApplicationProcess,null),React.createElement(PlacementProcessDisclaimerBanner,null),React.createElement(InterviewExperiencesBanner,null)),container$6="_container_tfeme_1",dot="_dot_tfeme_5",successDot="_successDot_tfeme_11",errorDot="_errorDot_tfeme_15",tableTitle="_tableTitle_tfeme_19",styles$t={container:container$6,dot,successDot,errorDot,tableTitle},STATUS_MAP$2={completed:"Completed",pending:"Pending",notRequired:"Not Required"},columns$2=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],StatusColumnContent$2=({status:C})=>React.createElement(Tag$1,{color:C===STATUS_MAP$2.completed?"success":"warning"},C),ContestColumnContent=({contestDetails:C})=>{const{analytics:$}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:V,joinLink:F}=C,K=()=>{$==null||$.click("Certification - Attempt Contest",PRODUCT_NAME)};return V?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,styles$t.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{href:F,onClick:K,underline:!0},"Attempt Contest")},MockInterviewColumnContent=({mockInterviewDetails:C,skillId:$,skillName:V})=>{const{openMockInterviewModal:F,analytics:K}=useJobPreview();if(!C)return STATUS_MAP$2.notRequired;const{cleared:J}=C,ee=()=>{K==null||K.click("Certification - Schedule Interview",PRODUCT_NAME),F($,V)};return J?React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,styles$t.successDot)}),React.createElement(Typography$1.Text,null,"Success")):React.createElement(Typography$1.Link,{onClick:ee,underline:!0},"Schedule Interview")},Certification=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="skills");if(!F)return null;const K=Object.entries(F.data).map(([J,ee])=>{const te=ee.contests,ne=te?ee.contests.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,re=ee.skills,ae=re?ee.skills.cleared?STATUS_MAP$2.completed:STATUS_MAP$2.pending:STATUS_MAP$2.notRequired,oe=[ne,ae].every(ie=>ie!==STATUS_MAP$2.pending)?STATUS_MAP$2.completed:STATUS_MAP$2.pending;return{skillType:J,status:React.createElement(StatusColumnContent$2,{status:oe}),contests:React.createElement(ContestColumnContent,{contestDetails:te}),mockInterview:React.createElement(MockInterviewColumnContent,{mockInterviewDetails:re,skillId:ee.skillId,skillName:ee.skillName})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Scaler certifications you need to apply"),columns:columns$2,dataSource:K,pagination:!1})},STATUS_MAP$1={added:"Added",missing:"Missing"},columns$1=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],StatusColumnContent$1=({status:C})=>React.createElement(Space$1,null,React.createElement("div",{className:classNames(styles$t.dot,{[styles$t.successDot]:C===STATUS_MAP$1.added,[styles$t.errorDot]:C===STATUS_MAP$1.missing})}),React.createElement(Typography$1.Text,null,C)),ActionColumnContent=({status:C})=>{const{openResume:$,analytics:V}=useJobPreview(),F=()=>{V==null||V.click("Resume Skills - Add Skill",PRODUCT_NAME),$()};return C===STATUS_MAP$1.added?null:React.createElement(Typography$1.Link,{onClick:F,underline:!0},"Add Skill")},ResumeSkills=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.find(J=>J.label==="tech_stacks");if(!(F!=null&&F.data))return null;const K=Object.entries(F.data).map(([J,ee])=>{var ne;const te=(ne=ee.data)!=null&&ne.cleared?STATUS_MAP$1.added:STATUS_MAP$1.missing;return{stackType:J,experience:`${Math.floor(ee.proficiencyPeriod/12)}+`,status:React.createElement(StatusColumnContent$1,{status:te}),action:React.createElement(ActionColumnContent,{status:te})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns:columns$1,dataSource:K,pagination:!1})},getExperienceText=(C,$)=>{const V=`${Math.floor(C/12)}y`,F=C%12===0?"":` ${C%12}m`,K=`${V}${F}`;if(!$)return`${K}+ Experience`;const J=`${Math.floor($/12)}y`,ee=$%12===0?"":`${$%12}m`;return`${K} - ${J} ${ee} Experience`},getNoticePeriodText=C=>C===0?"Immediate":C==null?"NA":`${C} days`,ADDITIONAL_ELIGIBILITY_MAPPING={placed_mentee:()=>"CTC greater than 1.6x of current offer",diversity:()=>"Female Candidates Only",experience:({minExperience:C,maxExperience:$})=>getExperienceText(C,$),notice_period:({preferredNoticePeriod:C})=>`${getNoticePeriodText(C)} Notice Period`},STATUS_MAP={eligible:"Eligible",ineligible:"Ineligible"},columns=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],StatusColumnContent=({status:C})=>C===STATUS_MAP.eligible?React.createElement(Tag$1,{color:"success"},"Eligible"):React.createElement(Tag$1,{color:"error"},"Ineligible"),OtherRequirements=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{},{reasons:V}=$||{},F=V==null?void 0:V.filter(J=>J.label!=="skills"&&J.showText);if(!F)return null;const K=F.map(J=>{const ee=J.isEligible?STATUS_MAP.eligible:STATUS_MAP.ineligible;return{requirement:toTitleCase(J.label),details:ADDITIONAL_ELIGIBILITY_MAPPING[J.label](C),status:React.createElement(StatusColumnContent,{status:ee})}});return React.createElement(Table$1,{title:()=>React.createElement(Typography$1.Text,{className:styles$t.tableTitle,strong:!0},"Skills and Toolsets in your Resume"),columns,dataSource:K,pagination:!1})},SkillsRequiredTab=()=>{const{jobData:C}=useJobPreview(),{eligibilityCriteria:$}=C||{};return $?React.createElement(Space$1,{direction:"vertical",size:"large",className:styles$t.container},React.createElement(Typography$1.Title,{level:3},"Job Check-list"),React.createElement(Certification,null),React.createElement(ResumeSkills,null),React.createElement(OtherRequirements,null)):null},bodyContainer="_bodyContainer_1nalq_1",tabs="_tabs_1nalq_5",styles$s={bodyContainer,tabs},ExpandedJobViewBody=()=>{var te;const{activeTab:C,setActiveTab:$,jobData:V,currentTab:F}=useJobPreview(),{applicationTimeline:K}=V||{},ee=[((te=K==null?void 0:K.timeline)==null?void 0:te.length)>0&&F===TAG_TO_TAB_MAPPING.applied&&{key:JOB_BODY_TABS.APPLICATION_TIMELINE.key,label:JOB_BODY_TABS.APPLICATION_TIMELINE.label,children:React.createElement(ApplicationTimelineTab,null)},{key:JOB_BODY_TABS.ABOUT_ROLE.key,label:JOB_BODY_TABS.ABOUT_ROLE.label,children:React.createElement(JobDescriptionTab,null)},{key:JOB_BODY_TABS.REQUIREMENTS.key,label:JOB_BODY_TABS.REQUIREMENTS.label,children:React.createElement(SkillsRequiredTab,null)}].filter(Boolean);return React.createElement("div",{className:styles$s.bodyContainer},React.createElement(Tabs$1,{activeKey:C,className:styles$s.tabs,items:ee,onChange:$}))},useUpdateApplicationStatusService=careerHubApi.injectEndpoints({endpoints:C=>({updateApplicationStatus:C.mutation({query:$=>({url:"/job-tracker/update-application/",method:"PATCH",body:$}),invalidatesTags:($,V,{job_profile_id:F})=>[{type:"JobPreview",id:F}]})})}),{useUpdateApplicationStatusMutation}=useUpdateApplicationStatusService,appliedButton="_appliedButton_1f028_1",saveButton$1="_saveButton_1f028_9",savedButton$1="_savedButton_1f028_9",jobActions="_jobActions_1f028_30",withdrawalReasonForm="_withdrawalReasonForm_1f028_36",warningIcon="_warningIcon_1f028_41",withdrawalReasonRadioGroup="_withdrawalReasonRadioGroup_1f028_45",withdrawnText="_withdrawnText_1f028_52",styles$r={appliedButton,saveButton:saveButton$1,savedButton:savedButton$1,jobActions,withdrawalReasonForm,warningIcon,withdrawalReasonRadioGroup,withdrawnText},ModalContent=({withdrawalReason:C,setWithdrawalReason:$,withdrawalMessage:V,setWithdrawalMessage:F})=>{const K=ee=>{const te=ee.target.value;$(te),te!=="Other"&&F("")},J=ee=>{F(ee.target.value)};return React.createElement(React.Fragment,null,React.createElement(Typography$1.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),React.createElement(Form$1,{className:styles$r.withdrawalReasonForm},React.createElement(Form$1.Item,{layout:"vertical",label:"Select reason"},React.createElement(Radio$1.Group,{className:styles$r.withdrawalReasonRadioGroup,onChange:K,value:C},WITHDRAW_REASONS.map(ee=>React.createElement(Radio$1,{key:ee.value,value:ee.value},ee.label))),C==="Other"&&React.createElement(Form$1.Item,null,React.createElement(Input$1.TextArea,{value:V,onChange:J,placeholder:"Please specify your reason"})))))},Withdrawal=()=>{var ve;const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),{applicationStatus:J}=V||{},[ee,te]=React.useState(!1),[ne,re]=React.useState((ve=WITHDRAW_REASONS[0])==null?void 0:ve.value),[ae,oe]=React.useState(""),[ie]=useUpdateApplicationStatusMutation(),{message:se}=App$1.useApp(),ce=()=>sr(this,null,function*(){var he,me;const fe=yield ie({job_profile_id:$,update_action:"withdraw",message:ae||ne});(he=fe==null?void 0:fe.data)!=null&&he.success?(se.success("Application withdrawn successfully"),te(!1),re((me=WITHDRAW_REASONS[0])==null?void 0:me.value),oe(""),F()):se.error("Failed to withdraw application"),C==null||C.click("Withdraw Application Ok",PRODUCT_NAME,{currentTab:K,jobId:$})}),de=()=>{var fe;te(!1),re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe("")},le=()=>{var fe;re((fe=WITHDRAW_REASONS[0])==null?void 0:fe.value),oe(""),te(!0),C==null||C.click("Expanded View - Withdraw Application",PRODUCT_NAME,{currentTab:K,jobId:$})};return J===APPLICATION_STATUS$1.WITHDRAWN?React.createElement("div",{className:styles$r.withdrawnText},React.createElement(CheckCircleFilled$1,null),"Your Application has been Withdrawn"):K===TAG_TO_TAB_MAPPING.applied&&!NON_WITHDRAW_STATUSES.includes(J)?React.createElement(React.Fragment,null,React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.exit,alt:"exit"}),onClick:le,className:styles$r.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),React.createElement(Modal$1,{title:React.createElement(Space$1,null,React.createElement(WarningFilled$1,{className:styles$r.warningIcon}),React.createElement(Typography$1.Text,null,"Withdraw My Application")),open:ee,onOk:ce,onCancel:de},React.createElement(ModalContent,{withdrawalReason:ne,setWithdrawalReason:re,withdrawalMessage:ae,setWithdrawalMessage:oe}))):null},SaveButton$1=()=>{const{analytics:C,jobId:$,jobData:V,refetch:F,currentTab:K}=useJobPreview(),[J,{isLoading:ee}]=useUpdateApplicationStatusMutation(),{applicationStatus:te}=V||{},ne=te===APPLICATION_STATUS$1.SAVED,re=()=>sr(this,null,function*(){var oe;const ae=yield J({job_profile_id:$,update_action:"save"});(oe=ae==null?void 0:ae.data)!=null&&oe.success?(message$1.success("Application saved successfully"),F()):message$1.error("Failed to save application"),C==null||C.click("Expanded View - Save","Jobs Page V2",{currentTab:K,jobId:$})});return K===TAG_TO_TAB_MAPPING.applied?null:ne?React.createElement(Button$2,{icon:React.createElement("img",{src:ICONS.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):React.createElement(Button$2,{icon:React.createElement(SaveTwoTone$1,null),type:"primary",ghost:!0,size:"large",onClick:re,loading:ee},"Save")},ApplyButton=()=>{const{jobData:C,eligibilityCriteria:$,setActiveApplicationId:V,jobId:F,currentTab:K,analytics:J}=useJobPreview(),{applicationStatus:ee}=C||{},{isEligible:te}=$||{},ne=ee===APPLICATION_STATUS$1.WITHDRAWN,re=()=>{V(F),J==null||J.click("Expanded View - Apply Now","Jobs Page V2",{currentTab:K,jobId:F})};return React.useEffect(()=>()=>{V(null)},[V]),ne?null:K===TAG_TO_TAB_MAPPING.applied?React.createElement(Button$2,{icon:React.createElement(CheckCircleFilled$1,null),className:styles$r.appliedButton,type:"text",size:"large"},"Applied"):React.createElement(Button$2,{icon:React.createElement(RiseOutlined$1,null),onClick:re,className:styles$r.applyButton,type:"primary",size:"large",disabled:!te},"Apply Now")},Actions=()=>React.createElement("div",{className:styles$r.jobActions},React.createElement(ApplyButton,null),React.createElement(SaveButton$1,null),React.createElement(Withdrawal,null)),missingLogo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",CompanyLogo=({logo:C,company:$,companiesList:V,companyName:F,size:K=48})=>{const[J,ee]=React.useState(()=>{var ne;return C||($&&$[0]&&((ne=V[$[0]])!=null&&ne.logo)?V[$[0]].logo:missingLogo)}),te=()=>{ee(missingLogo)};return React.createElement(Avatar$1,{size:K,src:J,alt:F,onError:te,shape:"square"})};CompanyLogo.propTypes={logo:PropTypes.string,company:PropTypes.arrayOf(PropTypes.number),companiesList:PropTypes.object,companyName:PropTypes.string,size:PropTypes.number},CompanyLogo.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const basicInfo="_basicInfo_2vzae_1",companyInfo="_companyInfo_2vzae_12",companyName$1="_companyName_2vzae_18",container$5="_container_2vzae_25",extraDetails="_extraDetails_2vzae_33",extraDetailsDivider="_extraDetailsDivider_2vzae_44",jobTitle$1="_jobTitle_2vzae_51",jobLocation="_jobLocation_2vzae_58",styles$q={basicInfo,companyInfo,companyName:companyName$1,container:container$5,extraDetails,extraDetailsDivider,jobTitle:jobTitle$1,jobLocation},CompanyInfo=()=>{const{companyData:C}=useJobPreview(),{logo:$,name:V}=C||{};return React.createElement("div",{className:styles$q.companyInfo},React.createElement(CompanyLogo,{logo:$,companyName:V,size:50}),React.createElement("div",{className:styles$q.companyName},V))},JobTitle=()=>{const{jobData:C}=useJobPreview(),{title:$}=C||{};return React.createElement(Typography$1.Text,{ellipsis:!0,className:styles$q.jobTitle},$)},JobLocation=()=>{const{jobData:C}=useJobPreview(),{preferredCities:$}=C||{},V=formatLocation($);return React.createElement("div",{className:styles$q.jobLocation},V)},BasicInfo=()=>React.createElement("div",{className:styles$q.basicInfo},React.createElement(CompanyInfo,null),React.createElement(JobTitle,null),React.createElement(JobLocation,null)),ExtraDetails=()=>{const{jobData:C}=useJobPreview(),{minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J,preferredNoticePeriod:ee,minExperience:te,maxExperience:ne}=C||{},re=formatCtc({minCtc:$,maxCtc:V,openForDiscussionCtc:F,isInternship:K,stipend:J}),ae=formatExperience$1(te,ne),oe=formatNoticePeriod(ee);return React.createElement("div",{className:styles$q.extraDetails},[re,ae,oe].filter(Boolean).map((ie,se)=>React.createElement(React.Fragment,{key:se},React.createElement("div",{className:styles$q.detail},ie),React.createElement(Divider$1,{size:"large",type:"vertical",className:styles$q.extraDetailsDivider}))))},ExpandedJobViewHeader=()=>React.createElement("div",{className:styles$q.container},React.createElement(BasicInfo,null),React.createElement(ExtraDetails,null),React.createElement(Actions,null)),field="_field_t90m2_1",checkboxAdjacentField="_checkboxAdjacentField_t90m2_7",fieldGroup="_fieldGroup_t90m2_11",checkboxFieldGroup="_checkboxFieldGroup_t90m2_17",fieldGroupLabel="_fieldGroupLabel_t90m2_21",styles$p={field,checkboxAdjacentField,fieldGroup,checkboxFieldGroup,fieldGroupLabel};function CTC({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:`${V} is required`}],layout:"vertical",className:styles$p.field,extra:"Enter amount in lakhs. For eg, if amount is 50 LPA, enter 50."},React.createElement(Input$1,zn({},$)))}function Linkedin({fieldName:C,label:$,fieldProps:V}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please enter your LinkedIn profile URL",type:"url"}],layout:"vertical",className:styles$p.field},React.createElement(Input$1,zn({},V)))}const selectOptionsService=careerHubApi.injectEndpoints({endpoints:C=>({getSelectOptions:C.query({query:({fieldType:$,query:V})=>({url:"/job-tracker/v1/custom-data",params:{field_type:$,query:V}}),transformResponse:($,V,F)=>{const K=($==null?void 0:$[F==null?void 0:F.fieldType])||[];return(K==null?void 0:K.map(J=>({text:J,value:J})))||[]}})})}),{useLazyGetSelectOptionsQuery}=selectOptionsService;function Company({fieldName:C,label:$}){const[V]=useLazyGetSelectOptionsQuery(),[F,K]=React.useState([]),J=ee=>sr(this,null,function*(){const te=yield V({fieldType:"companies",query:ee});K((te==null?void 0:te.data)||[])});return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select a company"}],layout:"vertical",className:styles$p.field},React.createElement(Select$1,{options:F,showSearch:!0,filterOption:!1,onSearch:J}))}function Top5Skills({fieldName:C,label:$}){const V=reactRedux.useSelector(J=>J.scalantCareerHub.dashboard.userProfileData),F=(V==null?void 0:V.experienceBasedSkills)||[],K=getSkillOptions(F);return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select upto 5 primary skills"}],className:styles$p.field},React.createElement(Select$1,{options:K,mode:"multiple",showSearch:!1})))}function GradYear({fieldName:C,label:$}){return React.createElement(Form$1.Item,{label:$,name:C,rules:[{required:!0,message:"Please select graduation year"}],className:styles$p.field},React.createElement(Select$1,{showSearch:!0,options:[...Array(71)].map((V,F)=>{const K=new Date().getFullYear()-60+F;return{label:K,value:`${K}-01-01`}}).reverse()}))}function CurrentLocation({fieldName:C,fieldProps:$,label:V}){return React.createElement(Form$1.Item,{label:V,name:C,rules:[{required:!0,message:"Please select current location"}],className:styles$p.field},React.createElement(Select$1,zn({},$)))}function NoticePeriod({label:C}){const $=Form$1.useWatch(NOTICE_PERIOD_FIELD_MAP.notice_period)==="-1";return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Space$1,{className:classNames(styles$p.fieldGroup,styles$p.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:C,name:NOTICE_PERIOD_FIELD_MAP.notice_period,rules:[{required:!0,message:"Please select notice period"}],className:classNames(styles$p.field,styles$p.checkboxAdjacentField)},React.createElement(Select$1,{options:NOTICE_PERIOD_OPTIONS})),React.createElement(Form$1.Item,{name:NOTICE_PERIOD_FIELD_MAP.buyout_notice,className:styles$p.field,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Negotiable / Buyout available"))),$&&React.createElement(Form$1.Item,{label:"Last Date of Job",name:NOTICE_PERIOD_FIELD_MAP.available_joining_date,rules:[{required:!0,message:"Please enter last date"}],className:styles$p.field},React.createElement(Input$1,{type:"date"})))}function PreferredLocation({fieldName:C,label:$,fieldProps:V}){const F=Form$1.useWatch(CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india);return React.createElement(Space$1,{className:classNames(styles$p.fieldGroup,styles$p.checkboxFieldGroup)},React.createElement(Form$1.Item,{label:$,name:C,className:classNames(styles$p.field,styles$p.checkboxAdjacentField)},React.createElement(Select$1,gr(zn({},V),{disabled:F}))),React.createElement(Form$1.Item,{name:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india,valuePropName:"checked"},React.createElement(Checkbox$1,null,"Anywhere in India")))}function TotalYearsOfExperience(){return React.createElement(Space$1,{className:styles$p.fieldGroup},React.createElement(Form$1.Item,{label:"Experience Years",name:EXPERIENCE_FIELD_MAP.years_of_experience,rules:[{required:!0,message:"Please select years of experience"}],className:styles$p.field},React.createElement(Select$1,{options:YEAR_OPTIONS,showSearch:!0})),React.createElement(Form$1.Item,{label:"Experience Months",name:EXPERIENCE_FIELD_MAP.months_of_experience,rules:[{required:!0,message:"Please select months of experience"}],className:styles$p.field},React.createElement(Select$1,{options:MONTH_OPTIONS,showSearch:!0})))}const NON_CUSTOM_FIELD_MAP={expected_ctc:"expected_ctc",current_ctc:"current_ctc",orgyear:"orgyear",linkedin:"linkedin",current_company:"current_company",current_location:"current_location",preferred_location:"preferred_location",notice_period:"notice_period",experience:"experience",skills:"skills"},CHECKBOX_FIELD_MAP={preferred_location_anywhere_in_india:"preferred_location_anywhere_in_india"},EXPERIENCE_FIELD_MAP={years_of_experience:"years_of_experience",months_of_experience:"months_of_experience"},NOTICE_PERIOD_FIELD_MAP={notice_period:"notice_period",serving_notice:"serving_notice",available_joining_date:"available_joining_date",buyout_notice:"buyout_notice"},LOCATION_FIELD_MAP={current_location:"current_location",preferred_location:"preferred_location"},NON_CUSTOM_FIELDS=Object.values(NON_CUSTOM_FIELD_MAP),NON_CUSTOM_FIELD_COMPONENT_MAPPING={[NON_CUSTOM_FIELD_MAP.expected_ctc]:{component:CTC,props:{fieldName:"expected_ctc",label:"Expected CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_ctc]:{component:CTC,props:{fieldName:"current_ctc",label:"Current CTC",fieldProps:{type:"number",min:0}}},[NON_CUSTOM_FIELD_MAP.current_location]:{component:CurrentLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_location,label:"Current Locations",fieldProps:{options:((er=window==null?void 0:window[HYDRATION_KEY])==null?void 0:er.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.preferred_location]:{component:PreferredLocation,props:{fieldName:NON_CUSTOM_FIELD_MAP.preferred_location,label:"Preferred Locations",fieldProps:{options:((tr=window==null?void 0:window[HYDRATION_KEY])==null?void 0:tr.job_locations)||[],mode:"multiple"}}},[NON_CUSTOM_FIELD_MAP.orgyear]:{component:GradYear,props:{fieldName:NON_CUSTOM_FIELD_MAP.orgyear,label:"Graduation Year"}},[NON_CUSTOM_FIELD_MAP.linkedin]:{component:Linkedin,props:{fieldName:NON_CUSTOM_FIELD_MAP.linkedin,label:"LinkedIn profile",fieldProps:{type:"url"}}},[NON_CUSTOM_FIELD_MAP.current_company]:{component:Company,props:{fieldName:NON_CUSTOM_FIELD_MAP.current_company,label:"Company"}},[NON_CUSTOM_FIELD_MAP.notice_period]:{component:NoticePeriod,props:{fieldName:NON_CUSTOM_FIELD_MAP.notice_period,label:"Notice Period"}},[NON_CUSTOM_FIELD_MAP.experience]:{component:TotalYearsOfExperience,props:{fieldName:NON_CUSTOM_FIELD_MAP.experience,label:"Total Years of Experience"}},[NON_CUSTOM_FIELD_MAP.skills]:{component:Top5Skills,props:{fieldName:NON_CUSTOM_FIELD_MAP.skills,label:"Select upto 5 primary skills that you want to share to recruiters"}}},YEAR_OPTIONS=new Array(50).fill(0).map((C,$)=>({label:`${$} Years`,value:`${$}`})),MONTH_OPTIONS=new Array(12).fill(0).map((C,$)=>({label:`${$} Months`,value:`${$}`})),NOTICE_PERIOD_OPTIONS=[{value:"-1",label:"Currently Serving"},{value:"0",label:"Immediately Available"},{value:"15",label:"15 Days"},{value:"30",label:"30 Days"},{value:"45",label:"45 Days"},{value:"60",label:"60 Days"},{value:"90",label:"90 Days"}],ANYWHERE_IN_INDIA="anywhere_in_india",getSkillOptions=C=>(C==null?void 0:C.map($=>{var K,J,ee,te;const V=((K=$.proficiency_period)==null?void 0:K.years)||((J=$.proficiencyPeriod)==null?void 0:J.years),F=((ee=$.proficiency_period)==null?void 0:ee.months)||((te=$.proficiencyPeriod)==null?void 0:te.months);return{label:`${$.name} (${V}Y ${F}M)`,value:`${$.skillId}`}}))||[],CUSTOM_FIELD_TYPE_MAP={text:"text",date_time:"date_time",upload:"upload",number:"number"},getInitialFormData=C=>{const $=Object.fromEntries(Object.entries(C).map(([J,ee])=>{switch(J){case NON_CUSTOM_FIELD_MAP.current_location:return[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.preferred_location:return ee===ANYWHERE_IN_INDIA?[J,null]:[J,ee==null?void 0:ee.split("/")];case NON_CUSTOM_FIELD_MAP.skills:return[J,ee==null?void 0:ee.map(te=>te.skill_id)];default:return[J,ee]}})),V=C[NON_CUSTOM_FIELD_MAP.notice_period]||{},F=C[NON_CUSTOM_FIELD_MAP.experience]||{},K=C[NON_CUSTOM_FIELD_MAP.preferred_location];return Object.entries(V).forEach(([J,ee])=>{J===NOTICE_PERIOD_FIELD_MAP.buyout_notice?$[J]=ee==="true":$[J]=ee}),Object.entries(F).forEach(([J,ee])=>{$[J]=ee}),$[CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india]=K===ANYWHERE_IN_INDIA,$},getInitialCustomFormData=C=>C.reduce((V,F)=>gr(zn({},V),{[F.id]:F.response}),{}),createNoticePeriodFieldPayload=C=>gr(zn({},C),{[NOTICE_PERIOD_FIELD_MAP.serving_notice]:C[NOTICE_PERIOD_FIELD_MAP.notice_period]==="-1"}),createExperienceFieldPayload=C=>{let $=0;return $+=(Number(C[EXPERIENCE_FIELD_MAP.years_of_experience])||0)*12,$+=Number(C[EXPERIENCE_FIELD_MAP.months_of_experience])||0,$},createSkillsFieldPayload=(C,$)=>$.map(V=>gr(zn({},V),{is_top_5:C.includes(String(V.skillId))})),createCustomFieldsPayload=C=>{const $=Object.keys(NON_CUSTOM_FIELD_MAP)+Object.keys(CHECKBOX_FIELD_MAP)+Object.keys(EXPERIENCE_FIELD_MAP)+Object.keys(NOTICE_PERIOD_FIELD_MAP);return Object.entries(C).filter(([V])=>!$.includes(V)).map(([V,F])=>({id:V,response:F}))},createDefaultFieldsPayload=(C,$)=>{const V={};Object.entries(C).forEach(([J,ee])=>{NON_CUSTOM_FIELDS.includes(J)&&(LOCATION_FIELD_MAP[J]?V[J]=ee==null?void 0:ee.join("/"):V[J]=ee)});const F={},K={};return Object.entries(C).forEach(([J,ee])=>{NOTICE_PERIOD_FIELD_MAP[J]?F[J]=ee:EXPERIENCE_FIELD_MAP[J]?K[J]=ee:CHECKBOX_FIELD_MAP.preferred_location_anywhere_in_india===J&&ee&&(V[NON_CUSTOM_FIELD_MAP.preferred_location]=ANYWHERE_IN_INDIA)}),V[NON_CUSTOM_FIELD_MAP.notice_period]=createNoticePeriodFieldPayload(F),V[NON_CUSTOM_FIELD_MAP.experience]=createExperienceFieldPayload(K),V[NON_CUSTOM_FIELD_MAP.skills]=createSkillsFieldPayload(C[NON_CUSTOM_FIELD_MAP.skills],$),V},createApplicationFormPayload=(C,$)=>({default_fields:createDefaultFieldsPayload(C,$),custom_fields:createCustomFieldsPayload(C)}),form="_form_1ip4j_1",styles$o={form};function GenericField({formType:C,field:$}){return React.createElement(Form$1.Item,{label:$.attributes.title,name:$.id,rules:[{required:!0,message:`${$.attributes.title} is required`}],layout:"vertical",className:styles$p.field},React.createElement(Input$1,{type:C}))}function UploadField({field:C}){const{onUploadFile:$}=useApplicationFormContext(),[V,F]=React.useState(!1),K=Form$1.useFormInstance(),J=Form$1.useWatch(C.id)||{},ee=te=>sr(this,null,function*(){var re,ae;const ne=(ae=(re=te==null?void 0:te.target)==null?void 0:re.files)==null?void 0:ae[0];if(ne){F(!0),K.setFieldValue(C.id,{file_name:ne.name});try{if($){const oe=yield $(ne);K.setFieldValue(C.id,{file_name:ne.name,file_url:oe}),message$1.success("File uploaded successfully")}else throw new Error("Upload file function not provided")}catch(oe){message$1.error("Failed to upload file")}finally{F(!1)}}});return React.createElement(Form$1.Item,{label:C.attributes.title,name:C.id,rules:[{required:!0,message:`${C.attributes.title} is required`}],layout:"vertical",className:styles$p.field},React.createElement(Upload$1,{multiple:!1,accept:".pdf,.doc,.docx,.txt,.md",showUploadList:!1,beforeUpload:()=>!1,onChange:({file:te})=>{if(te){const ne={target:{files:[te.originFileObj||te]}};ee(ne)}},disabled:V},React.createElement(Button$2,{className:styles$p.field,loading:V,icon:!!J.file_name&&React.createElement(CheckCircleFilled$1,null)},!!J.file_name&&J.file_name,!J.file_name&&!V&&"Upload File")))}function CustomField({field:C}){switch(C.attributes.form_type){case CUSTOM_FIELD_TYPE_MAP.upload:return React.createElement(UploadField,{field:C});case CUSTOM_FIELD_TYPE_MAP.date_time:return React.createElement(GenericField,{formType:"date",field:C});default:return React.createElement(GenericField,{formType:C.attributes.form_type,field:C})}}function NonCustomField({field:C}){var K;if(!NON_CUSTOM_FIELD_COMPONENT_MAPPING[(K=C==null?void 0:C.attributes)==null?void 0:K.title])return null;const{title:$}=C.attributes,{component:V,props:F}=NON_CUSTOM_FIELD_COMPONENT_MAPPING[$];return React.createElement(V,zn({},F))}function ApplicationForm(){const{applicationId:C,stepName:$,jobProfileId:V}=useApplicationFormContext(),{data:F,isLoading:K}=useApplicationForm({jobProfileId:V,applicationId:C,status:$}),[J]=Form$1.useForm(),{setFormInstance:ee}=useApplicationFormContext(),te=React.useMemo(()=>F==null?void 0:F.reduce((re,ae)=>(ae.attributes.custom||(re[ae.attributes.title]=ae),re),{}),[F]),ne=React.useMemo(()=>F==null?void 0:F.filter(re=>re.attributes.custom),[F]);return React.useEffect(()=>{if(!te||!ne)return;const re=Object.fromEntries(Object.entries(te).map(([oe,ie])=>[oe,ie.attributes.response])),ae=ne.map(oe=>({id:oe.id,response:oe.attributes.response}));J.setFieldsValue(zn(zn({},getInitialFormData(re)),getInitialCustomFormData(ae)))},[te,ne,J]),React.useEffect(()=>{ee(J)},[J,ee]),K||!te||!ne?React.createElement(Skeleton$1,{active:!0}):React.createElement(Form$1,{layout:"vertical",className:styles$o.form,form:J},NON_CUSTOM_FIELDS.map(re=>React.createElement(NonCustomField,{key:re,field:te[re]})),Object.entries(ne).map(([re,ae])=>React.createElement(CustomField,{key:re,field:ae})))}const applicationFormFooterContainer="_applicationFormFooterContainer_x88g1_1",resumeChoiceSelectFooterContainer="_resumeChoiceSelectFooterContainer_x88g1_7",styles$n={applicationFormFooterContainer,resumeChoiceSelectFooterContainer},ApplicationFormFooter=({onCancel:C})=>{const $=reactRedux.useSelector(se=>se.scalantCareerHub.dashboard.userProfileData),V=($==null?void 0:$.experienceBasedSkills)||[],{applicationId:F,formInstance:K,jobProfileId:J,stepName:ee,setStepName:te}=useApplicationFormContext(),{analytics:ne}=useJobPreview(),[re,{isLoading:ae}]=useUpdateApplicationMutation(),oe=()=>sr(this,null,function*(){var se;ne==null||ne.click("Application Form - Next",PRODUCT_NAME);try{const ce={job_profile_id:J,step_name:ee,form_data:createApplicationFormPayload(K.getFieldsValue(),V)},de=yield re({applicationId:F,payload:ce});(se=de==null?void 0:de.data)!=null&&se.success?te(APPLICATION_STATUS$1.RESUME_FITMENT_CHECK):message$1.error("Failed to update application")}catch(ce){message$1.error("Failed to update application")}}),ie=()=>{ne==null||ne.click("Application Form - Cancel",PRODUCT_NAME),C()};return React.createElement(Space$1,{className:styles$n.applicationFormFooterContainer},React.createElement(Button$2,{onClick:ie},"Cancel"),React.createElement(Button$2,{loading:ae,type:"primary",onClick:oe},"Next"))},ResumeChoiceSelectFooter=()=>{const{applicationId:C,selectedResume:$,jobProfileId:V,stepName:F,setStepName:K}=useApplicationFormContext(),{analytics:J}=useJobPreview(),[ee,{isLoading:te}]=useUpdateApplicationMutation(),ne=()=>{J==null||J.click("Resume Choice - Go Back",PRODUCT_NAME),K(APPLICATION_STATUS$1.APPLICATION_FORM)},re=()=>sr(this,null,function*(){var ae;J==null||J.click("Resume Choice - Proceed to Apply",PRODUCT_NAME);try{const ie=yield ee({applicationId:C,payload:{job_profile_id:V,step_name:F,resume_id:$}});(ae=ie==null?void 0:ie.data)!=null&&ae.success?K(APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED):message$1.error("Failed to update application")}catch(oe){message$1.error("Failed to update application")}});return React.createElement(Space$1,{className:styles$n.resumeChoiceSelectFooterContainer},React.createElement(Space$1,null,React.createElement(BulbTwoTone$1,null),React.createElement(Typography$1.Text,{strong:!0},"Quick Tip: "),React.createElement(Typography$1.Text,null,"Complete the improvements to boost your hiring chances")),React.createElement(Space$1,null,React.createElement(Button$2,{onClick:ne},"Go Back"),React.createElement(Button$2,{type:"primary",onClick:re,loading:te,disabled:!$},"Proceed to Apply")))};function Footer$1({onCancel:C}){const{stepName:$}=useApplicationFormContext();switch($){case APPLICATION_STATUS$1.APPLICATION_FORM:return React.createElement(ApplicationFormFooter,{onCancel:C});case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:return React.createElement(ResumeChoiceSelectFooter,null);default:return null}}const stepText="_stepText_14qm3_1",titleContainer$1="_titleContainer_14qm3_5",titleIcon="_titleIcon_14qm3_9",titleText="_titleText_14qm3_14",styles$m={stepText,titleContainer:titleContainer$1,titleIcon,titleText},{Text:Text$3}=Typography$1,STEP_MAP={[APPLICATION_STATUS$1.APPLICATION_FORM]:{currentStep:1,icon:InfoCircleFilled$1,title:"Required Details",totalSteps:2},[APPLICATION_STATUS$1.RESUME_FITMENT_CHECK]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.RESUME_CHOICE_SELECT]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2},[APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED]:{currentStep:2,icon:FileTextTwoTone$1,title:"Select which Resume to share for this job application",totalSteps:2}};function FormHeader({onClose:C}){const{stepName:$,jobProfileId:V}=useApplicationFormContext(),{analytics:F}=useJobPreview(),{updateTab:K}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),{refetch:J}=useGetJobPreviewQuery(V,{skip:!V});if(!STEP_MAP[$])return null;const{currentStep:ee,icon:te,title:ne,totalSteps:re}=STEP_MAP[$]||{},ae=()=>{F==null||F.click("Application Form - Close",PRODUCT_NAME),$===APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED&&(K(TAG_TO_TAB_MAPPING.applied),J()),C==null||C()};return React.createElement(Flex$1,{justify:"space-between"},React.createElement(Space$1,{className:styles$m.container,direction:"vertical"},React.createElement(Text$3,{className:styles$m.stepText},"Step ",ee,"/",re),React.createElement(Space$1,{className:styles$m.titleContainer},React.createElement(te,{className:styles$m.titleIcon}),React.createElement(Text$3,{className:styles$m.titleText},ne))),React.createElement(Button$2,{icon:React.createElement(CloseOutlined$1,null),type:"text",onClick:ae}))}function commonjsRequire(C){throw new Error('Could not dynamically require "'+C+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function($,V){module.exports=V()})(commonjsGlobal,function(){return(()=>{var __webpack_modules__=[,(C,$,V)=>{function F(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(Pe){return typeof Pe}:F=function(Pe){return Pe&&typeof Symbol=="function"&&Pe.constructor===Symbol&&Pe!==Symbol.prototype?"symbol":typeof Pe},F(Le)}Object.defineProperty($,"__esModule",{value:!0}),$.StatTimer=$.RenderingCancelledException=$.PixelsPerInch=$.PageViewport=$.PDFDateString=$.LinkTarget=$.DOMStandardFontDataFactory=$.DOMSVGFactory=$.DOMCanvasFactory=$.DOMCMapReaderFactory=void 0,$.addLinkAttributes=De,$.deprecated=Xe,$.getFilenameFromUrl=Ae,$.getPdfFilenameFromUrl=ke,$.getXfaPageViewport=Ue,$.isDataScheme=Oe,$.isPdfFile=we,$.isValidFetchUrl=ze,$.loadScript=Ve;var K=te(V(2)),J=V(4),ee=V(135);function te(Le){return Le&&Le.__esModule?Le:{default:Le}}function ne(Le,Te){var Pe=typeof Symbol!="undefined"&&Le[Symbol.iterator]||Le["@@iterator"];if(!Pe){if(Array.isArray(Le)||(Pe=re(Le))||Te&&Le&&typeof Le.length=="number"){Pe&&(Le=Pe);var Me=0,He=function(){};return{s:He,n:function(){return Me>=Le.length?{done:!0}:{done:!1,value:Le[Me++]}},e:function(it){throw it},f:He}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
435
435
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var We=!0,Ke=!1,rt;return{s:function(){Pe=Pe.call(Le)},n:function(){var it=Pe.next();return We=it.done,it},e:function(it){Ke=!0,rt=it},f:function(){try{!We&&Pe.return!=null&&Pe.return()}finally{if(Ke)throw rt}}}}function re(Le,Te){if(Le){if(typeof Le=="string")return ae(Le,Te);var Pe=Object.prototype.toString.call(Le).slice(8,-1);if(Pe==="Object"&&Le.constructor&&(Pe=Le.constructor.name),Pe==="Map"||Pe==="Set")return Array.from(Le);if(Pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pe))return ae(Le,Te)}}function ae(Le,Te){(Te==null||Te>Le.length)&&(Te=Le.length);for(var Pe=0,Me=new Array(Te);Pe<Te;Pe++)Me[Pe]=Le[Pe];return Me}function oe(Le,Te,Pe,Me,He,We,Ke){try{var rt=Le[We](Ke),st=rt.value}catch(it){Pe(it);return}rt.done?Te(st):Promise.resolve(st).then(Me,He)}function ie(Le){return function(){var Te=this,Pe=arguments;return new Promise(function(Me,He){var We=Le.apply(Te,Pe);function Ke(st){oe(We,Me,He,Ke,rt,"next",st)}function rt(st){oe(We,Me,He,Ke,rt,"throw",st)}Ke(void 0)})}}function se(Le,Te){if(!(Le instanceof Te))throw new TypeError("Cannot call a class as a function")}function ce(Le,Te){for(var Pe=0;Pe<Te.length;Pe++){var Me=Te[Pe];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(Le,Me.key,Me)}}function de(Le,Te,Pe){return Te&&ce(Le.prototype,Te),Pe&&ce(Le,Pe),Le}function le(Le,Te){if(typeof Te!="function"&&Te!==null)throw new TypeError("Super expression must either be null or a function");Le.prototype=Object.create(Te&&Te.prototype,{constructor:{value:Le,writable:!0,configurable:!0}}),Te&&ve(Le,Te)}function ve(Le,Te){return ve=Object.setPrototypeOf||function(Me,He){return Me.__proto__=He,Me},ve(Le,Te)}function fe(Le){var Te=ue();return function(){var Me=pe(Le),He;if(Te){var We=pe(this).constructor;He=Reflect.construct(Me,arguments,We)}else He=Me.apply(this,arguments);return he(this,He)}}function he(Le,Te){if(Te&&(F(Te)==="object"||typeof Te=="function"))return Te;if(Te!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return me(Le)}function me(Le){if(Le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Le}function ue(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(Le){return!1}}function pe(Le){return pe=Object.setPrototypeOf?Object.getPrototypeOf:function(Pe){return Pe.__proto__||Object.getPrototypeOf(Pe)},pe(Le)}var ye="noopener noreferrer nofollow",be="http://www.w3.org/2000/svg",ge={CSS:96,PDF:72,get PDF_TO_CSS_UNITS(){return(0,J.shadow)(this,"PDF_TO_CSS_UNITS",this.CSS/this.PDF)}};$.PixelsPerInch=ge;var _e=function(Le){le(Pe,Le);var Te=fe(Pe);function Pe(){var Me,He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},We=He.ownerDocument,Ke=We===void 0?globalThis.document:We;return se(this,Pe),Me=Te.call(this),Me._document=Ke,Me}return de(Pe,[{key:"_createCanvas",value:function(He,We){var Ke=this._document.createElement("canvas");return Ke.width=He,Ke.height=We,Ke}}]),Pe}(ee.BaseCanvasFactory);$.DOMCanvasFactory=_e;function Se(Le){return Ee.apply(this,arguments)}function Ee(){return Ee=ie(K.default.mark(function Le(Te){var Pe,Me,He=arguments;return K.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(Pe=He.length>1&&He[1]!==void 0?He[1]:!1,!ze(Te,document.baseURI)){Ke.next=21;break}return Ke.next=4,fetch(Te);case 4:if(Me=Ke.sent,Me.ok){Ke.next=7;break}throw new Error(Me.statusText);case 7:if(!Pe){Ke.next=15;break}return Ke.t1=Uint8Array,Ke.next=11,Me.arrayBuffer();case 11:Ke.t2=Ke.sent,Ke.t0=new Ke.t1(Ke.t2),Ke.next=20;break;case 15:return Ke.t3=J.stringToBytes,Ke.next=18,Me.text();case 18:Ke.t4=Ke.sent,Ke.t0=(0,Ke.t3)(Ke.t4);case 20:return Ke.abrupt("return",Ke.t0);case 21:return Ke.abrupt("return",new Promise(function(rt,st){var it=new XMLHttpRequest;it.open("GET",Te,!0),Pe&&(it.responseType="arraybuffer"),it.onreadystatechange=function(){if(it.readyState===XMLHttpRequest.DONE){if(it.status===200||it.status===0){var Je;if(Pe&&it.response?Je=new Uint8Array(it.response):!Pe&&it.responseText&&(Je=(0,J.stringToBytes)(it.responseText)),Je){rt(Je);return}}st(new Error(it.statusText))}},it.send(null)}));case 22:case"end":return Ke.stop()}},Le)})),Ee.apply(this,arguments)}var Ce=function(Le){le(Pe,Le);var Te=fe(Pe);function Pe(){return se(this,Pe),Te.apply(this,arguments)}return de(Pe,[{key:"_fetchData",value:function(He,We){return Se(He,this.isCompressed).then(function(Ke){return{cMapData:Ke,compressionType:We}})}}]),Pe}(ee.BaseCMapReaderFactory);$.DOMCMapReaderFactory=Ce;var xe=function(Le){le(Pe,Le);var Te=fe(Pe);function Pe(){return se(this,Pe),Te.apply(this,arguments)}return de(Pe,[{key:"_fetchData",value:function(He){return Se(He,!0)}}]),Pe}(ee.BaseStandardFontDataFactory);$.DOMStandardFontDataFactory=xe;var $e=function(Le){le(Pe,Le);var Te=fe(Pe);function Pe(){return se(this,Pe),Te.apply(this,arguments)}return de(Pe,[{key:"_createSVG",value:function(He){return document.createElementNS(be,He)}}]),Pe}(ee.BaseSVGFactory);$.DOMSVGFactory=$e;var Ie=function(){function Le(Te){var Pe=Te.viewBox,Me=Te.scale,He=Te.rotation,We=Te.offsetX,Ke=We===void 0?0:We,rt=Te.offsetY,st=rt===void 0?0:rt,it=Te.dontFlip,Je=it===void 0?!1:it;se(this,Le),this.viewBox=Pe,this.scale=Me,this.rotation=He,this.offsetX=Ke,this.offsetY=st;var ct=(Pe[2]+Pe[0])/2,dt=(Pe[3]+Pe[1])/2,vt,ht,bt,Rt;switch(He%=360,He<0&&(He+=360),He){case 180:vt=-1,ht=0,bt=0,Rt=1;break;case 90:vt=0,ht=1,bt=1,Rt=0;break;case 270:vt=0,ht=-1,bt=-1,Rt=0;break;case 0:vt=1,ht=0,bt=0,Rt=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}Je&&(bt=-bt,Rt=-Rt);var wt,lt,ut,Ge;vt===0?(wt=Math.abs(dt-Pe[1])*Me+Ke,lt=Math.abs(ct-Pe[0])*Me+st,ut=Math.abs(Pe[3]-Pe[1])*Me,Ge=Math.abs(Pe[2]-Pe[0])*Me):(wt=Math.abs(ct-Pe[0])*Me+Ke,lt=Math.abs(dt-Pe[1])*Me+st,ut=Math.abs(Pe[2]-Pe[0])*Me,Ge=Math.abs(Pe[3]-Pe[1])*Me),this.transform=[vt*Me,ht*Me,bt*Me,Rt*Me,wt-vt*Me*ct-bt*Me*dt,lt-ht*Me*ct-Rt*Me*dt],this.width=ut,this.height=Ge}return de(Le,[{key:"clone",value:function(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Me=Pe.scale,He=Me===void 0?this.scale:Me,We=Pe.rotation,Ke=We===void 0?this.rotation:We,rt=Pe.offsetX,st=rt===void 0?this.offsetX:rt,it=Pe.offsetY,Je=it===void 0?this.offsetY:it,ct=Pe.dontFlip,dt=ct===void 0?!1:ct;return new Le({viewBox:this.viewBox.slice(),scale:He,rotation:Ke,offsetX:st,offsetY:Je,dontFlip:dt})}},{key:"convertToViewportPoint",value:function(Pe,Me){return J.Util.applyTransform([Pe,Me],this.transform)}},{key:"convertToViewportRectangle",value:function(Pe){var Me=J.Util.applyTransform([Pe[0],Pe[1]],this.transform),He=J.Util.applyTransform([Pe[2],Pe[3]],this.transform);return[Me[0],Me[1],He[0],He[1]]}},{key:"convertToPdfPoint",value:function(Pe,Me){return J.Util.applyInverseTransform([Pe,Me],this.transform)}}]),Le}();$.PageViewport=Ie;var Fe=function(Le){le(Pe,Le);var Te=fe(Pe);function Pe(Me,He){var We;return se(this,Pe),We=Te.call(this,Me,"RenderingCancelledException"),We.type=He,We}return Pe}(J.BaseException);$.RenderingCancelledException=Fe;var Ne={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};$.LinkTarget=Ne;function De(Le){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=Te.url,Me=Te.target,He=Te.rel,We=Te.enabled,Ke=We===void 0?!0:We;(0,J.assert)(Pe&&typeof Pe=="string",'addLinkAttributes: A valid "url" parameter must provided.');var rt=(0,J.removeNullCharacters)(Pe);Ke?Le.href=Le.title=rt:(Le.href="",Le.title="Disabled: ".concat(rt),Le.onclick=function(){return!1});var st="";switch(Me){case Ne.NONE:break;case Ne.SELF:st="_self";break;case Ne.BLANK:st="_blank";break;case Ne.PARENT:st="_parent";break;case Ne.TOP:st="_top";break}Le.target=st,Le.rel=typeof He=="string"?He:ye}function Oe(Le){for(var Te=Le.length,Pe=0;Pe<Te&&Le[Pe].trim()==="";)Pe++;return Le.substring(Pe,Pe+5).toLowerCase()==="data:"}function we(Le){return typeof Le=="string"&&/\.pdf$/i.test(Le)}function Ae(Le){var Te=Le.indexOf("#"),Pe=Le.indexOf("?"),Me=Math.min(Te>0?Te:Le.length,Pe>0?Pe:Le.length);return Le.substring(Le.lastIndexOf("/",Me)+1,Me)}function ke(Le){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof Le!="string")return Te;if(Oe(Le))return(0,J.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),Te;var Pe=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,Me=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,He=Pe.exec(Le),We=Me.exec(He[1])||Me.exec(He[2])||Me.exec(He[3]);if(We&&(We=We[0],We.includes("%")))try{We=Me.exec(decodeURIComponent(We))[0]}catch(Ke){}return We||Te}var je=function(){function Le(){se(this,Le),this.started=Object.create(null),this.times=[]}return de(Le,[{key:"time",value:function(Pe){Pe in this.started&&(0,J.warn)("Timer is already running for ".concat(Pe)),this.started[Pe]=Date.now()}},{key:"timeEnd",value:function(Pe){Pe in this.started||(0,J.warn)("Timer has not been started for ".concat(Pe)),this.times.push({name:Pe,start:this.started[Pe],end:Date.now()}),delete this.started[Pe]}},{key:"toString",value:function(){var Pe=[],Me=0,He=ne(this.times),We;try{for(He.s();!(We=He.n()).done;){var Ke=We.value,rt=Ke.name;rt.length>Me&&(Me=rt.length)}}catch(dt){He.e(dt)}finally{He.f()}var st=ne(this.times),it;try{for(st.s();!(it=st.n()).done;){var Je=it.value,ct=Je.end-Je.start;Pe.push("".concat(Je.name.padEnd(Me)," ").concat(ct,`ms
436
436
  `))}}catch(dt){st.e(dt)}finally{st.f()}return Pe.join("")}}]),Le}();$.StatTimer=je;function ze(Le,Te){try{var Pe=Te?new URL(Le,Te):new URL(Le),Me=Pe.protocol;return Me==="http:"||Me==="https:"}catch(He){return!1}}function Ve(Le){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return new Promise(function(Pe,Me){var He=document.createElement("script");He.src=Le,He.onload=function(We){Te&&He.remove(),Pe(We)},He.onerror=function(){Me(new Error("Cannot load script at: ".concat(He.src)))},(document.head||document.documentElement).appendChild(He)})}function Xe(Le){console.log("Deprecated API usage: "+Le)}var Ye,at=function(){function Le(){se(this,Le)}return de(Le,null,[{key:"toDateObject",value:function(Pe){if(!Pe||!(0,J.isString)(Pe))return null;Ye||(Ye=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var Me=Ye.exec(Pe);if(!Me)return null;var He=parseInt(Me[1],10),We=parseInt(Me[2],10);We=We>=1&&We<=12?We-1:0;var Ke=parseInt(Me[3],10);Ke=Ke>=1&&Ke<=31?Ke:1;var rt=parseInt(Me[4],10);rt=rt>=0&&rt<=23?rt:0;var st=parseInt(Me[5],10);st=st>=0&&st<=59?st:0;var it=parseInt(Me[6],10);it=it>=0&&it<=59?it:0;var Je=Me[7]||"Z",ct=parseInt(Me[8],10);ct=ct>=0&&ct<=23?ct:0;var dt=parseInt(Me[9],10)||0;return dt=dt>=0&&dt<=59?dt:0,Je==="-"?(rt+=ct,st+=dt):Je==="+"&&(rt-=ct,st-=dt),new Date(Date.UTC(He,We,Ke,rt,st,it))}}]),Le}();$.PDFDateString=at;function Ue(Le,Te){var Pe=Te.scale,Me=Pe===void 0?1:Pe,He=Te.rotation,We=He===void 0?0:He,Ke=Le.attributes.style,rt=Ke.width,st=Ke.height,it=[0,0,parseInt(rt),parseInt(st)];return new Ie({viewBox:it,scale:Me,rotation:We})}},(C,$,V)=>{C.exports=V(3)},(C,$,V)=>{C=V.nmd(C);function F(J){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(te){return typeof te}:F=function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},F(J)}var K=function(J){var ee=Object.prototype,te=ee.hasOwnProperty,ne,re=typeof Symbol=="function"?Symbol:{},ae=re.iterator||"@@iterator",oe=re.asyncIterator||"@@asyncIterator",ie=re.toStringTag||"@@toStringTag";function se(we,Ae,ke){return Object.defineProperty(we,Ae,{value:ke,enumerable:!0,configurable:!0,writable:!0}),we[Ae]}try{se({},"")}catch(we){se=function(ke,je,ze){return ke[je]=ze}}function ce(we,Ae,ke,je){var ze=Ae&&Ae.prototype instanceof ue?Ae:ue,Ve=Object.create(ze.prototype),Xe=new Ne(je||[]);return Ve._invoke=xe(we,ke,Xe),Ve}J.wrap=ce;function de(we,Ae,ke){try{return{type:"normal",arg:we.call(Ae,ke)}}catch(je){return{type:"throw",arg:je}}}var le="suspendedStart",ve="suspendedYield",fe="executing",he="completed",me={};function ue(){}function pe(){}function ye(){}var be={};se(be,ae,function(){return this});var ge=Object.getPrototypeOf,_e=ge&&ge(ge(De([])));_e&&_e!==ee&&te.call(_e,ae)&&(be=_e);var Se=ye.prototype=ue.prototype=Object.create(be);pe.prototype=ye,se(Se,"constructor",ye),se(ye,"constructor",pe),pe.displayName=se(ye,ie,"GeneratorFunction");function Ee(we){["next","throw","return"].forEach(function(Ae){se(we,Ae,function(ke){return this._invoke(Ae,ke)})})}J.isGeneratorFunction=function(we){var Ae=typeof we=="function"&&we.constructor;return Ae?Ae===pe||(Ae.displayName||Ae.name)==="GeneratorFunction":!1},J.mark=function(we){return Object.setPrototypeOf?Object.setPrototypeOf(we,ye):(we.__proto__=ye,se(we,ie,"GeneratorFunction")),we.prototype=Object.create(Se),we},J.awrap=function(we){return{__await:we}};function Ce(we,Ae){function ke(Ve,Xe,Ye,at){var Ue=de(we[Ve],we,Xe);if(Ue.type==="throw")at(Ue.arg);else{var Le=Ue.arg,Te=Le.value;return Te&&F(Te)==="object"&&te.call(Te,"__await")?Ae.resolve(Te.__await).then(function(Pe){ke("next",Pe,Ye,at)},function(Pe){ke("throw",Pe,Ye,at)}):Ae.resolve(Te).then(function(Pe){Le.value=Pe,Ye(Le)},function(Pe){return ke("throw",Pe,Ye,at)})}}var je;function ze(Ve,Xe){function Ye(){return new Ae(function(at,Ue){ke(Ve,Xe,at,Ue)})}return je=je?je.then(Ye,Ye):Ye()}this._invoke=ze}Ee(Ce.prototype),se(Ce.prototype,oe,function(){return this}),J.AsyncIterator=Ce,J.async=function(we,Ae,ke,je,ze){ze===void 0&&(ze=Promise);var Ve=new Ce(ce(we,Ae,ke,je),ze);return J.isGeneratorFunction(Ae)?Ve:Ve.next().then(function(Xe){return Xe.done?Xe.value:Ve.next()})};function xe(we,Ae,ke){var je=le;return function(Ve,Xe){if(je===fe)throw new Error("Generator is already running");if(je===he){if(Ve==="throw")throw Xe;return Oe()}for(ke.method=Ve,ke.arg=Xe;;){var Ye=ke.delegate;if(Ye){var at=$e(Ye,ke);if(at){if(at===me)continue;return at}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(je===le)throw je=he,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);je=fe;var Ue=de(we,Ae,ke);if(Ue.type==="normal"){if(je=ke.done?he:ve,Ue.arg===me)continue;return{value:Ue.arg,done:ke.done}}else Ue.type==="throw"&&(je=he,ke.method="throw",ke.arg=Ue.arg)}}}function $e(we,Ae){var ke=we.iterator[Ae.method];if(ke===ne){if(Ae.delegate=null,Ae.method==="throw"){if(we.iterator.return&&(Ae.method="return",Ae.arg=ne,$e(we,Ae),Ae.method==="throw"))return me;Ae.method="throw",Ae.arg=new TypeError("The iterator does not provide a 'throw' method")}return me}var je=de(ke,we.iterator,Ae.arg);if(je.type==="throw")return Ae.method="throw",Ae.arg=je.arg,Ae.delegate=null,me;var ze=je.arg;if(!ze)return Ae.method="throw",Ae.arg=new TypeError("iterator result is not an object"),Ae.delegate=null,me;if(ze.done)Ae[we.resultName]=ze.value,Ae.next=we.nextLoc,Ae.method!=="return"&&(Ae.method="next",Ae.arg=ne);else return ze;return Ae.delegate=null,me}Ee(Se),se(Se,ie,"Generator"),se(Se,ae,function(){return this}),se(Se,"toString",function(){return"[object Generator]"});function Ie(we){var Ae={tryLoc:we[0]};1 in we&&(Ae.catchLoc=we[1]),2 in we&&(Ae.finallyLoc=we[2],Ae.afterLoc=we[3]),this.tryEntries.push(Ae)}function Fe(we){var Ae=we.completion||{};Ae.type="normal",delete Ae.arg,we.completion=Ae}function Ne(we){this.tryEntries=[{tryLoc:"root"}],we.forEach(Ie,this),this.reset(!0)}J.keys=function(we){var Ae=[];for(var ke in we)Ae.push(ke);return Ae.reverse(),function je(){for(;Ae.length;){var ze=Ae.pop();if(ze in we)return je.value=ze,je.done=!1,je}return je.done=!0,je}};function De(we){if(we){var Ae=we[ae];if(Ae)return Ae.call(we);if(typeof we.next=="function")return we;if(!isNaN(we.length)){var ke=-1,je=function ze(){for(;++ke<we.length;)if(te.call(we,ke))return ze.value=we[ke],ze.done=!1,ze;return ze.value=ne,ze.done=!0,ze};return je.next=je}}return{next:Oe}}J.values=De;function Oe(){return{value:ne,done:!0}}return Ne.prototype={constructor:Ne,reset:function(Ae){if(this.prev=0,this.next=0,this.sent=this._sent=ne,this.done=!1,this.delegate=null,this.method="next",this.arg=ne,this.tryEntries.forEach(Fe),!Ae)for(var ke in this)ke.charAt(0)==="t"&&te.call(this,ke)&&!isNaN(+ke.slice(1))&&(this[ke]=ne)},stop:function(){this.done=!0;var Ae=this.tryEntries[0],ke=Ae.completion;if(ke.type==="throw")throw ke.arg;return this.rval},dispatchException:function(Ae){if(this.done)throw Ae;var ke=this;function je(Ue,Le){return Xe.type="throw",Xe.arg=Ae,ke.next=Ue,Le&&(ke.method="next",ke.arg=ne),!!Le}for(var ze=this.tryEntries.length-1;ze>=0;--ze){var Ve=this.tryEntries[ze],Xe=Ve.completion;if(Ve.tryLoc==="root")return je("end");if(Ve.tryLoc<=this.prev){var Ye=te.call(Ve,"catchLoc"),at=te.call(Ve,"finallyLoc");if(Ye&&at){if(this.prev<Ve.catchLoc)return je(Ve.catchLoc,!0);if(this.prev<Ve.finallyLoc)return je(Ve.finallyLoc)}else if(Ye){if(this.prev<Ve.catchLoc)return je(Ve.catchLoc,!0)}else if(at){if(this.prev<Ve.finallyLoc)return je(Ve.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Ae,ke){for(var je=this.tryEntries.length-1;je>=0;--je){var ze=this.tryEntries[je];if(ze.tryLoc<=this.prev&&te.call(ze,"finallyLoc")&&this.prev<ze.finallyLoc){var Ve=ze;break}}Ve&&(Ae==="break"||Ae==="continue")&&Ve.tryLoc<=ke&&ke<=Ve.finallyLoc&&(Ve=null);var Xe=Ve?Ve.completion:{};return Xe.type=Ae,Xe.arg=ke,Ve?(this.method="next",this.next=Ve.finallyLoc,me):this.complete(Xe)},complete:function(Ae,ke){if(Ae.type==="throw")throw Ae.arg;return Ae.type==="break"||Ae.type==="continue"?this.next=Ae.arg:Ae.type==="return"?(this.rval=this.arg=Ae.arg,this.method="return",this.next="end"):Ae.type==="normal"&&ke&&(this.next=ke),me},finish:function(Ae){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var je=this.tryEntries[ke];if(je.finallyLoc===Ae)return this.complete(je.completion,je.afterLoc),Fe(je),me}},catch:function(Ae){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var je=this.tryEntries[ke];if(je.tryLoc===Ae){var ze=je.completion;if(ze.type==="throw"){var Ve=ze.arg;Fe(je)}return Ve}}throw new Error("illegal catch attempt")},delegateYield:function(Ae,ke,je){return this.delegate={iterator:De(Ae),resultName:ke,nextLoc:je},this.method==="next"&&(this.arg=ne),me}},J}(F(C)==="object"?C.exports:{});try{regeneratorRuntime=K}catch(J){(typeof globalThis=="undefined"?"undefined":F(globalThis))==="object"?globalThis.regeneratorRuntime=K:Function("r","regeneratorRuntime = r")(K)}},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.VerbosityLevel=$.Util=$.UnknownErrorException=$.UnexpectedResponseException=$.UNSUPPORTED_FEATURES=$.TextRenderingMode=$.StreamType=$.RenderingIntentFlag=$.PermissionFlag=$.PasswordResponses=$.PasswordException=$.PageActionEventType=$.OPS=$.MissingPDFException=$.IsLittleEndianCached=$.IsEvalSupportedCached=$.InvalidPDFException=$.ImageKind=$.IDENTITY_MATRIX=$.FormatError=$.FontType=$.FONT_IDENTITY_MATRIX=$.DocumentActionEventType=$.CMapCompressionType=$.BaseException=$.AnnotationType=$.AnnotationStateModelType=$.AnnotationReviewState=$.AnnotationReplyType=$.AnnotationMode=$.AnnotationMarkedState=$.AnnotationFlag=$.AnnotationFieldFlag=$.AnnotationBorderStyleType=$.AnnotationActionEventType=$.AbortException=void 0,$.arrayByteLength=ft,$.arraysToBytes=yt,$.assert=it,$.bytesToString=qe,$.createObjectURL=gn,$.createPromiseCapability=sn,$.createValidAbsoluteUrl=dt,$.escapeString=Gt,$.getModificationDate=dn,$.getVerbosityLevel=We,$.info=Ke,$.isArrayBuffer=Wt,$.isArrayEqual=Jt,$.isAscii=zt,$.isBool=qt,$.isNum=ln,$.isSameOrigin=Je,$.isString=Cn,$.objectFromMap=Dt,$.objectSize=kt,$.removeNullCharacters=tt,$.setVerbosityLevel=He,$.shadow=vt,$.string32=$t,$.stringToBytes=ot,$.stringToPDFString=Ht,$.stringToUTF16BEString=Ft,$.stringToUTF8String=Vt,$.unreachable=st,$.utf8StringToString=Kt,$.warn=rt,V(5);function F(mt,Ot){for(var pt=0;pt<Ot.length;pt++){var _t=Ot[pt];_t.enumerable=_t.enumerable||!1,_t.configurable=!0,"value"in _t&&(_t.writable=!0),Object.defineProperty(mt,_t.key,_t)}}function K(mt,Ot,pt){return Ot&&F(mt.prototype,Ot),pt&&F(mt,pt),mt}function J(mt){return ne(mt)||te(mt)||ce(mt)||ee()}function ee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
437
437
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(mt){if(typeof Symbol!="undefined"&&mt[Symbol.iterator]!=null||mt["@@iterator"]!=null)return Array.from(mt)}function ne(mt){if(Array.isArray(mt))return de(mt)}function re(mt,Ot){return ie(mt)||oe(mt,Ot)||ce(mt,Ot)||ae()}function ae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -439,7 +439,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
439
439
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Nt=!0,Mt=!1,Lt;return{s:function(){pt=pt.call(mt)},n:function(){var vn=pt.next();return Nt=vn.done,vn},e:function(vn){Mt=!0,Lt=vn},f:function(){try{!Nt&&pt.return!=null&&pt.return()}finally{if(Mt)throw Lt}}}}function ce(mt,Ot){if(mt){if(typeof mt=="string")return de(mt,Ot);var pt=Object.prototype.toString.call(mt).slice(8,-1);if(pt==="Object"&&mt.constructor&&(pt=mt.constructor.name),pt==="Map"||pt==="Set")return Array.from(mt);if(pt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pt))return de(mt,Ot)}}function de(mt,Ot){(Ot==null||Ot>mt.length)&&(Ot=mt.length);for(var pt=0,_t=new Array(Ot);pt<Ot;pt++)_t[pt]=mt[pt];return _t}function le(mt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?le=function(pt){return typeof pt}:le=function(pt){return pt&&typeof Symbol=="function"&&pt.constructor===Symbol&&pt!==Symbol.prototype?"symbol":typeof pt},le(mt)}function ve(mt,Ot){if(!(mt instanceof Ot))throw new TypeError("Cannot call a class as a function")}function fe(mt,Ot){if(typeof Ot!="function"&&Ot!==null)throw new TypeError("Super expression must either be null or a function");mt.prototype=Object.create(Ot&&Ot.prototype,{constructor:{value:mt,writable:!0,configurable:!0}}),Ot&&he(mt,Ot)}function he(mt,Ot){return he=Object.setPrototypeOf||function(_t,Et){return _t.__proto__=Et,_t},he(mt,Ot)}function me(mt){var Ot=ye();return function(){var _t=be(mt),Et;if(Ot){var Nt=be(this).constructor;Et=Reflect.construct(_t,arguments,Nt)}else Et=_t.apply(this,arguments);return ue(this,Et)}}function ue(mt,Ot){if(Ot&&(le(Ot)==="object"||typeof Ot=="function"))return Ot;if(Ot!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pe(mt)}function pe(mt){if(mt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return mt}function ye(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(mt){return!1}}function be(mt){return be=Object.setPrototypeOf?Object.getPrototypeOf:function(pt){return pt.__proto__||Object.getPrototypeOf(pt)},be(mt)}var ge=[1,0,0,1,0,0];$.IDENTITY_MATRIX=ge;var _e=[.001,0,0,.001,0,0];$.FONT_IDENTITY_MATRIX=_e;var Se={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};$.RenderingIntentFlag=Se;var Ee={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};$.AnnotationMode=Ee;var Ce={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};$.PermissionFlag=Ce;var xe={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};$.TextRenderingMode=xe;var $e={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};$.ImageKind=$e;var Ie={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};$.AnnotationType=Ie;var Fe={MARKED:"Marked",REVIEW:"Review"};$.AnnotationStateModelType=Fe;var Ne={MARKED:"Marked",UNMARKED:"Unmarked"};$.AnnotationMarkedState=Ne;var De={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};$.AnnotationReviewState=De;var Oe={GROUP:"Group",REPLY:"R"};$.AnnotationReplyType=Oe;var we={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};$.AnnotationFlag=we;var Ae={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};$.AnnotationFieldFlag=Ae;var ke={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};$.AnnotationBorderStyleType=ke;var je={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};$.AnnotationActionEventType=je;var ze={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};$.DocumentActionEventType=ze;var Ve={O:"PageOpen",C:"PageClose"};$.PageActionEventType=Ve;var Xe={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};$.StreamType=Xe;var Ye={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};$.FontType=Ye;var at={ERRORS:0,WARNINGS:1,INFOS:5};$.VerbosityLevel=at;var Ue={NONE:0,BINARY:1,STREAM:2};$.CMapCompressionType=Ue;var Le={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};$.OPS=Le;var Te={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};$.UNSUPPORTED_FEATURES=Te;var Pe={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};$.PasswordResponses=Pe;var Me=at.WARNINGS;function He(mt){Number.isInteger(mt)&&(Me=mt)}function We(){return Me}function Ke(mt){Me>=at.INFOS&&console.log("Info: ".concat(mt))}function rt(mt){Me>=at.WARNINGS&&console.log("Warning: ".concat(mt))}function st(mt){throw new Error(mt)}function it(mt,Ot){mt||st(Ot)}function Je(mt,Ot){var pt;try{if(pt=new URL(mt),!pt.origin||pt.origin==="null")return!1}catch(Et){return!1}var _t=new URL(Ot,pt);return pt.origin===_t.origin}function ct(mt){if(!mt)return!1;switch(mt.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function dt(mt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!mt)return null;try{if(pt&&typeof mt=="string"){if(pt.addDefaultProtocol&&mt.startsWith("www.")){var _t=mt.match(/\./g);_t&&_t.length>=2&&(mt="http://".concat(mt))}if(pt.tryConvertEncoding)try{mt=Vt(mt)}catch(Nt){}}var Et=Ot?new URL(mt,Ot):new URL(mt);if(ct(Et))return Et}catch(Nt){}return null}function vt(mt,Ot,pt){return Object.defineProperty(mt,Ot,{value:pt,enumerable:!0,configurable:!0,writable:!1}),pt}var ht=function(){function Ot(pt,_t){this.constructor===Ot&&st("Cannot initialize BaseException."),this.message=pt,this.name=_t}return Ot.prototype=new Error,Ot.constructor=Ot,Ot}();$.BaseException=ht;var bt=function(mt){fe(pt,mt);var Ot=me(pt);function pt(_t,Et){var Nt;return ve(this,pt),Nt=Ot.call(this,_t,"PasswordException"),Nt.code=Et,Nt}return pt}(ht);$.PasswordException=bt;var Rt=function(mt){fe(pt,mt);var Ot=me(pt);function pt(_t,Et){var Nt;return ve(this,pt),Nt=Ot.call(this,_t,"UnknownErrorException"),Nt.details=Et,Nt}return pt}(ht);$.UnknownErrorException=Rt;var wt=function(mt){fe(pt,mt);var Ot=me(pt);function pt(_t){return ve(this,pt),Ot.call(this,_t,"InvalidPDFException")}return pt}(ht);$.InvalidPDFException=wt;var lt=function(mt){fe(pt,mt);var Ot=me(pt);function pt(_t){return ve(this,pt),Ot.call(this,_t,"MissingPDFException")}return pt}(ht);$.MissingPDFException=lt;var ut=function(mt){fe(pt,mt);var Ot=me(pt);function pt(_t,Et){var Nt;return ve(this,pt),Nt=Ot.call(this,_t,"UnexpectedResponseException"),Nt.status=Et,Nt}return pt}(ht);$.UnexpectedResponseException=ut;var Ge=function(mt){fe(pt,mt);var Ot=me(pt);function pt(_t){return ve(this,pt),Ot.call(this,_t,"FormatError")}return pt}(ht);$.FormatError=Ge;var et=function(mt){fe(pt,mt);var Ot=me(pt);function pt(_t){return ve(this,pt),Ot.call(this,_t,"AbortException")}return pt}(ht);$.AbortException=et;var Ze=/\x00+/g,nt=/[\x01-\x1F]/g;function tt(mt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return typeof mt!="string"?(rt("The argument for removeNullCharacters must be a string."),mt):(Ot&&(mt=mt.replace(nt," ")),mt.replace(Ze,""))}function qe(mt){it(mt!==null&&le(mt)==="object"&&mt.length!==void 0,"Invalid argument for bytesToString");var Ot=mt.length,pt=8192;if(Ot<pt)return String.fromCharCode.apply(null,mt);for(var _t=[],Et=0;Et<Ot;Et+=pt){var Nt=Math.min(Et+pt,Ot),Mt=mt.subarray(Et,Nt);_t.push(String.fromCharCode.apply(null,Mt))}return _t.join("")}function ot(mt){it(typeof mt=="string","Invalid argument for stringToBytes");for(var Ot=mt.length,pt=new Uint8Array(Ot),_t=0;_t<Ot;++_t)pt[_t]=mt.charCodeAt(_t)&255;return pt}function ft(mt){return mt.length!==void 0?mt.length:(it(mt.byteLength!==void 0,"arrayByteLength - invalid argument."),mt.byteLength)}function yt(mt){var Ot=mt.length;if(Ot===1&&mt[0]instanceof Uint8Array)return mt[0];for(var pt=0,_t=0;_t<Ot;_t++)pt+=ft(mt[_t]);for(var Et=0,Nt=new Uint8Array(pt),Mt=0;Mt<Ot;Mt++){var Lt=mt[Mt];Lt instanceof Uint8Array||(typeof Lt=="string"?Lt=ot(Lt):Lt=new Uint8Array(Lt));var Xt=Lt.byteLength;Nt.set(Lt,Et),Et+=Xt}return Nt}function $t(mt){return String.fromCharCode(mt>>24&255,mt>>16&255,mt>>8&255,mt&255)}function kt(mt){return Object.keys(mt).length}function Dt(mt){var Ot=Object.create(null),pt=se(mt),_t;try{for(pt.s();!(_t=pt.n()).done;){var Et=re(_t.value,2),Nt=Et[0],Mt=Et[1];Ot[Nt]=Mt}}catch(Lt){pt.e(Lt)}finally{pt.f()}return Ot}function St(){var mt=new Uint8Array(4);mt[0]=1;var Ot=new Uint32Array(mt.buffer,0,1);return Ot[0]===1}var Bt={get value(){return vt(this,"value",St())}};$.IsLittleEndianCached=Bt;function It(){try{return new Function(""),!0}catch(mt){return!1}}var Pt={get value(){return vt(this,"value",It())}};$.IsEvalSupportedCached=Pt;var Tt=J(Array(256).keys()).map(function(mt){return mt.toString(16).padStart(2,"0")}),Ct=function(){function mt(){ve(this,mt)}return K(mt,null,[{key:"makeHexColor",value:function(pt,_t,Et){return"#".concat(Tt[pt]).concat(Tt[_t]).concat(Tt[Et])}},{key:"transform",value:function(pt,_t){return[pt[0]*_t[0]+pt[2]*_t[1],pt[1]*_t[0]+pt[3]*_t[1],pt[0]*_t[2]+pt[2]*_t[3],pt[1]*_t[2]+pt[3]*_t[3],pt[0]*_t[4]+pt[2]*_t[5]+pt[4],pt[1]*_t[4]+pt[3]*_t[5]+pt[5]]}},{key:"applyTransform",value:function(pt,_t){var Et=pt[0]*_t[0]+pt[1]*_t[2]+_t[4],Nt=pt[0]*_t[1]+pt[1]*_t[3]+_t[5];return[Et,Nt]}},{key:"applyInverseTransform",value:function(pt,_t){var Et=_t[0]*_t[3]-_t[1]*_t[2],Nt=(pt[0]*_t[3]-pt[1]*_t[2]+_t[2]*_t[5]-_t[4]*_t[3])/Et,Mt=(-pt[0]*_t[1]+pt[1]*_t[0]+_t[4]*_t[1]-_t[5]*_t[0])/Et;return[Nt,Mt]}},{key:"getAxialAlignedBoundingBox",value:function(pt,_t){var Et=mt.applyTransform(pt,_t),Nt=mt.applyTransform(pt.slice(2,4),_t),Mt=mt.applyTransform([pt[0],pt[3]],_t),Lt=mt.applyTransform([pt[2],pt[1]],_t);return[Math.min(Et[0],Nt[0],Mt[0],Lt[0]),Math.min(Et[1],Nt[1],Mt[1],Lt[1]),Math.max(Et[0],Nt[0],Mt[0],Lt[0]),Math.max(Et[1],Nt[1],Mt[1],Lt[1])]}},{key:"inverseTransform",value:function(pt){var _t=pt[0]*pt[3]-pt[1]*pt[2];return[pt[3]/_t,-pt[1]/_t,-pt[2]/_t,pt[0]/_t,(pt[2]*pt[5]-pt[4]*pt[3])/_t,(pt[4]*pt[1]-pt[5]*pt[0])/_t]}},{key:"apply3dTransform",value:function(pt,_t){return[pt[0]*_t[0]+pt[1]*_t[1]+pt[2]*_t[2],pt[3]*_t[0]+pt[4]*_t[1]+pt[5]*_t[2],pt[6]*_t[0]+pt[7]*_t[1]+pt[8]*_t[2]]}},{key:"singularValueDecompose2dScale",value:function(pt){var _t=[pt[0],pt[2],pt[1],pt[3]],Et=pt[0]*_t[0]+pt[1]*_t[2],Nt=pt[0]*_t[1]+pt[1]*_t[3],Mt=pt[2]*_t[0]+pt[3]*_t[2],Lt=pt[2]*_t[1]+pt[3]*_t[3],Xt=(Et+Lt)/2,vn=Math.sqrt(Math.pow(Et+Lt,2)-4*(Et*Lt-Mt*Nt))/2,bn=Xt+vn||1,_n=Xt-vn||1;return[Math.sqrt(bn),Math.sqrt(_n)]}},{key:"normalizeRect",value:function(pt){var _t=pt.slice(0);return pt[0]>pt[2]&&(_t[0]=pt[2],_t[2]=pt[0]),pt[1]>pt[3]&&(_t[1]=pt[3],_t[3]=pt[1]),_t}},{key:"intersect",value:function(pt,_t){function Et(Xt,vn){return Xt-vn}var Nt=[pt[0],pt[2],_t[0],_t[2]].sort(Et),Mt=[pt[1],pt[3],_t[1],_t[3]].sort(Et),Lt=[];if(pt=mt.normalizeRect(pt),_t=mt.normalizeRect(_t),Nt[0]===pt[0]&&Nt[1]===_t[0]||Nt[0]===_t[0]&&Nt[1]===pt[0])Lt[0]=Nt[1],Lt[2]=Nt[2];else return null;if(Mt[0]===pt[1]&&Mt[1]===_t[1]||Mt[0]===_t[1]&&Mt[1]===pt[1])Lt[1]=Mt[1],Lt[3]=Mt[2];else return null;return Lt}},{key:"bezierBoundingBox",value:function(pt,_t,Et,Nt,Mt,Lt,Xt,vn){for(var bn=[],_n=[[],[]],Nn,Tn,Qt,Yt,wn,Fn,Ln,Vn,nr=0;nr<2;++nr){if(nr===0?(Tn=6*pt-12*Et+6*Mt,Nn=-3*pt+9*Et-9*Mt+3*Xt,Qt=3*Et-3*pt):(Tn=6*_t-12*Nt+6*Lt,Nn=-3*_t+9*Nt-9*Lt+3*vn,Qt=3*Nt-3*_t),Math.abs(Nn)<1e-12){if(Math.abs(Tn)<1e-12)continue;Yt=-Qt/Tn,0<Yt&&Yt<1&&bn.push(Yt);continue}Ln=Tn*Tn-4*Qt*Nn,Vn=Math.sqrt(Ln),!(Ln<0)&&(wn=(-Tn+Vn)/(2*Nn),0<wn&&wn<1&&bn.push(wn),Fn=(-Tn-Vn)/(2*Nn),0<Fn&&Fn<1&&bn.push(Fn))}for(var Un=bn.length,Pn,rr=Un;Un--;)Yt=bn[Un],Pn=1-Yt,_n[0][Un]=Pn*Pn*Pn*pt+3*Pn*Pn*Yt*Et+3*Pn*Yt*Yt*Mt+Yt*Yt*Yt*Xt,_n[1][Un]=Pn*Pn*Pn*_t+3*Pn*Pn*Yt*Nt+3*Pn*Yt*Yt*Lt+Yt*Yt*Yt*vn;return _n[0][rr]=pt,_n[1][rr]=_t,_n[0][rr+1]=Xt,_n[1][rr+1]=vn,_n[0].length=_n[1].length=rr+2,[Math.min.apply(Math,J(_n[0])),Math.min.apply(Math,J(_n[1])),Math.max.apply(Math,J(_n[0])),Math.max.apply(Math,J(_n[1]))]}}]),mt}();$.Util=Ct;var At=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function Ht(mt){var Ot=mt.length,pt=[];if(mt[0]==="þ"&&mt[1]==="ÿ")for(var _t=2;_t<Ot;_t+=2)pt.push(String.fromCharCode(mt.charCodeAt(_t)<<8|mt.charCodeAt(_t+1)));else if(mt[0]==="ÿ"&&mt[1]==="þ")for(var Et=2;Et<Ot;Et+=2)pt.push(String.fromCharCode(mt.charCodeAt(Et+1)<<8|mt.charCodeAt(Et)));else for(var Nt=0;Nt<Ot;++Nt){var Mt=At[mt.charCodeAt(Nt)];pt.push(Mt?String.fromCharCode(Mt):mt.charAt(Nt))}return pt.join("")}function Gt(mt){return mt.replace(/([()\\\n\r])/g,function(Ot){return Ot===`
440
440
  `?"\\n":Ot==="\r"?"\\r":"\\".concat(Ot)})}function zt(mt){return/^[\x00-\x7F]*$/.test(mt)}function Ft(mt){for(var Ot=["þÿ"],pt=0,_t=mt.length;pt<_t;pt++){var Et=mt.charCodeAt(pt);Ot.push(String.fromCharCode(Et>>8&255),String.fromCharCode(Et&255))}return Ot.join("")}function Vt(mt){return decodeURIComponent(escape(mt))}function Kt(mt){return unescape(encodeURIComponent(mt))}function qt(mt){return typeof mt=="boolean"}function ln(mt){return typeof mt=="number"}function Cn(mt){return typeof mt=="string"}function Wt(mt){return le(mt)==="object"&&mt!==null&&mt.byteLength!==void 0}function Jt(mt,Ot){if(mt.length!==Ot.length)return!1;for(var pt=0,_t=mt.length;pt<_t;pt++)if(mt[pt]!==Ot[pt])return!1;return!0}function dn(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Date,Ot=[mt.getUTCFullYear().toString(),(mt.getUTCMonth()+1).toString().padStart(2,"0"),mt.getUTCDate().toString().padStart(2,"0"),mt.getUTCHours().toString().padStart(2,"0"),mt.getUTCMinutes().toString().padStart(2,"0"),mt.getUTCSeconds().toString().padStart(2,"0")];return Ot.join("")}function sn(){var mt=Object.create(null),Ot=!1;return Object.defineProperty(mt,"settled",{get:function(){return Ot}}),mt.promise=new Promise(function(pt,_t){mt.resolve=function(Et){Ot=!0,pt(Et)},mt.reject=function(Et){Ot=!0,_t(Et)}}),mt}function gn(mt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(URL.createObjectURL&&typeof Blob!="undefined"&&!pt)return URL.createObjectURL(new Blob([mt],{type:Ot}));for(var _t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Et="data:".concat(Ot,";base64,"),Nt=0,Mt=mt.length;Nt<Mt;Nt+=3){var Lt=mt[Nt]&255,Xt=mt[Nt+1]&255,vn=mt[Nt+2]&255,bn=Lt>>2,_n=(Lt&3)<<4|Xt>>4,Nn=Nt+1<Mt?(Xt&15)<<2|vn>>6:64,Tn=Nt+2<Mt?vn&63:64;Et+=_t[bn]+_t[_n]+_t[Nn]+_t[Tn]}return Et}},(C,$,V)=>{var F=V(6);(typeof globalThis=="undefined"||!globalThis._pdfjsCompatibilityChecked)&&((typeof globalThis=="undefined"||globalThis.Math!==Math)&&(globalThis=V(7)),globalThis._pdfjsCompatibilityChecked=!0,function(){globalThis.btoa||!F.isNodeJS||(globalThis.btoa=function(J){return Buffer.from(J,"binary").toString("base64")})}(),function(){globalThis.atob||!F.isNodeJS||(globalThis.atob=function(J){return Buffer.from(J,"base64").toString("binary")})}(),function(){globalThis.DOMMatrix||!F.isNodeJS||(globalThis.DOMMatrix=V(69))}(),function(){Object.fromEntries||V(70)}(),function(){globalThis.Promise.allSettled||(globalThis.Promise=V(97))}(),function(){globalThis.ReadableStream||!F.isNodeJS||(globalThis.ReadableStream=V(134).ReadableStream)}())},(C,$)=>{Object.defineProperty($,"__esModule",{value:!0}),$.isNodeJS=void 0;function V(K){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?V=function(ee){return typeof ee}:V=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},V(K)}var F=(typeof process=="undefined"?"undefined":V(process))==="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");$.isNodeJS=F},(C,$,V)=>{V(8),C.exports=V(10)},(C,$,V)=>{var F=V(9),K=V(10);F({global:!0},{globalThis:K})},(C,$,V)=>{var F=V(10),K=V(11).f,J=V(47),ee=V(50),te=V(41),ne=V(57),re=V(68);C.exports=function(ae,oe){var ie=ae.target,se=ae.global,ce=ae.stat,de,le,ve,fe,he,me;if(se?le=F:ce?le=F[ie]||te(ie,{}):le=(F[ie]||{}).prototype,le)for(ve in oe){if(he=oe[ve],ae.noTargetGet?(me=K(le,ve),fe=me&&me.value):fe=le[ve],de=re(se?ve:ie+(ce?".":"#")+ve,ae.forced),!de&&fe!==void 0){if(typeof he==typeof fe)continue;ne(he,fe)}(ae.sham||fe&&fe.sham)&&J(he,"sham",!0),ee(le,ve,he,ae)}}},C=>{var $=function(V){return V&&V.Math==Math&&V};C.exports=$(typeof globalThis=="object"&&globalThis)||$(typeof window=="object"&&window)||$(typeof self=="object"&&self)||$(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")()},(C,$,V)=>{var F=V(12),K=V(14),J=V(15),ee=V(16),te=V(17),ne=V(22),re=V(42),ae=V(45),oe=Object.getOwnPropertyDescriptor;$.f=F?oe:function(se,ce){if(se=te(se),ce=ne(ce),ae)try{return oe(se,ce)}catch(de){}if(re(se,ce))return ee(!K(J.f,se,ce),se[ce])}},(C,$,V)=>{var F=V(13);C.exports=!F(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},C=>{C.exports=function($){try{return!!$()}catch(V){return!0}}},C=>{var $=Function.prototype.call;C.exports=$.bind?$.bind($):function(){return $.apply($,arguments)}},(C,$)=>{var V={}.propertyIsEnumerable,F=Object.getOwnPropertyDescriptor,K=F&&!V.call({1:2},1);$.f=K?function(ee){var te=F(this,ee);return!!te&&te.enumerable}:V},C=>{C.exports=function($,V){return{enumerable:!($&1),configurable:!($&2),writable:!($&4),value:V}}},(C,$,V)=>{var F=V(18),K=V(21);C.exports=function(J){return F(K(J))}},(C,$,V)=>{var F=V(10),K=V(19),J=V(13),ee=V(20),te=F.Object,ne=K("".split);C.exports=J(function(){return!te("z").propertyIsEnumerable(0)})?function(re){return ee(re)=="String"?ne(re,""):te(re)}:te},C=>{var $=Function.prototype,V=$.bind,F=$.call,K=V&&V.bind(F);C.exports=V?function(J){return J&&K(F,J)}:function(J){return J&&function(){return F.apply(J,arguments)}}},(C,$,V)=>{var F=V(19),K=F({}.toString),J=F("".slice);C.exports=function(ee){return J(K(ee),8,-1)}},(C,$,V)=>{var F=V(10),K=F.TypeError;C.exports=function(J){if(J==null)throw K("Can't call method on "+J);return J}},(C,$,V)=>{var F=V(23),K=V(26);C.exports=function(J){var ee=F(J,"string");return K(ee)?ee:ee+""}},(C,$,V)=>{var F=V(10),K=V(14),J=V(24),ee=V(26),te=V(33),ne=V(36),re=V(37),ae=F.TypeError,oe=re("toPrimitive");C.exports=function(ie,se){if(!J(ie)||ee(ie))return ie;var ce=te(ie,oe),de;if(ce){if(se===void 0&&(se="default"),de=K(ce,ie,se),!J(de)||ee(de))return de;throw ae("Can't convert object to primitive value")}return se===void 0&&(se="number"),ne(ie,se)}},(C,$,V)=>{var F=V(25);C.exports=function(K){return typeof K=="object"?K!==null:F(K)}},C=>{C.exports=function($){return typeof $=="function"}},(C,$,V)=>{var F=V(10),K=V(27),J=V(25),ee=V(28),te=V(29),ne=F.Object;C.exports=te?function(re){return typeof re=="symbol"}:function(re){var ae=K("Symbol");return J(ae)&&ee(ae.prototype,ne(re))}},(C,$,V)=>{var F=V(10),K=V(25),J=function(ee){return K(ee)?ee:void 0};C.exports=function(ee,te){return arguments.length<2?J(F[ee]):F[ee]&&F[ee][te]}},(C,$,V)=>{var F=V(19);C.exports=F({}.isPrototypeOf)},(C,$,V)=>{var F=V(30);C.exports=F&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},(C,$,V)=>{var F=V(31),K=V(13);C.exports=!!Object.getOwnPropertySymbols&&!K(function(){var J=Symbol();return!String(J)||!(Object(J)instanceof Symbol)||!Symbol.sham&&F&&F<41})},(C,$,V)=>{var F=V(10),K=V(32),J=F.process,ee=F.Deno,te=J&&J.versions||ee&&ee.version,ne=te&&te.v8,re,ae;ne&&(re=ne.split("."),ae=re[0]>0&&re[0]<4?1:+(re[0]+re[1])),!ae&&K&&(re=K.match(/Edge\/(\d+)/),(!re||re[1]>=74)&&(re=K.match(/Chrome\/(\d+)/),re&&(ae=+re[1]))),C.exports=ae},(C,$,V)=>{var F=V(27);C.exports=F("navigator","userAgent")||""},(C,$,V)=>{var F=V(34);C.exports=function(K,J){var ee=K[J];return ee==null?void 0:F(ee)}},(C,$,V)=>{var F=V(10),K=V(25),J=V(35),ee=F.TypeError;C.exports=function(te){if(K(te))return te;throw ee(J(te)+" is not a function")}},(C,$,V)=>{var F=V(10),K=F.String;C.exports=function(J){try{return K(J)}catch(ee){return"Object"}}},(C,$,V)=>{var F=V(10),K=V(14),J=V(25),ee=V(24),te=F.TypeError;C.exports=function(ne,re){var ae,oe;if(re==="string"&&J(ae=ne.toString)&&!ee(oe=K(ae,ne))||J(ae=ne.valueOf)&&!ee(oe=K(ae,ne))||re!=="string"&&J(ae=ne.toString)&&!ee(oe=K(ae,ne)))return oe;throw te("Can't convert object to primitive value")}},(C,$,V)=>{var F=V(10),K=V(38),J=V(42),ee=V(44),te=V(30),ne=V(29),re=K("wks"),ae=F.Symbol,oe=ae&&ae.for,ie=ne?ae:ae&&ae.withoutSetter||ee;C.exports=function(se){if(!J(re,se)||!(te||typeof re[se]=="string")){var ce="Symbol."+se;te&&J(ae,se)?re[se]=ae[se]:ne&&oe?re[se]=oe(ce):re[se]=ie(ce)}return re[se]}},(C,$,V)=>{var F=V(39),K=V(40);(C.exports=function(J,ee){return K[J]||(K[J]=ee!==void 0?ee:{})})("versions",[]).push({version:"3.19.3",mode:F?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},C=>{C.exports=!1},(C,$,V)=>{var F=V(10),K=V(41),J="__core-js_shared__",ee=F[J]||K(J,{});C.exports=ee},(C,$,V)=>{var F=V(10),K=Object.defineProperty;C.exports=function(J,ee){try{K(F,J,{value:ee,configurable:!0,writable:!0})}catch(te){F[J]=ee}return ee}},(C,$,V)=>{var F=V(19),K=V(43),J=F({}.hasOwnProperty);C.exports=Object.hasOwn||function(te,ne){return J(K(te),ne)}},(C,$,V)=>{var F=V(10),K=V(21),J=F.Object;C.exports=function(ee){return J(K(ee))}},(C,$,V)=>{var F=V(19),K=0,J=Math.random(),ee=F(1 .toString);C.exports=function(te){return"Symbol("+(te===void 0?"":te)+")_"+ee(++K+J,36)}},(C,$,V)=>{var F=V(12),K=V(13),J=V(46);C.exports=!F&&!K(function(){return Object.defineProperty(J("div"),"a",{get:function(){return 7}}).a!=7})},(C,$,V)=>{var F=V(10),K=V(24),J=F.document,ee=K(J)&&K(J.createElement);C.exports=function(te){return ee?J.createElement(te):{}}},(C,$,V)=>{var F=V(12),K=V(48),J=V(16);C.exports=F?function(ee,te,ne){return K.f(ee,te,J(1,ne))}:function(ee,te,ne){return ee[te]=ne,ee}},(C,$,V)=>{var F=V(10),K=V(12),J=V(45),ee=V(49),te=V(22),ne=F.TypeError,re=Object.defineProperty;$.f=K?re:function(oe,ie,se){if(ee(oe),ie=te(ie),ee(se),J)try{return re(oe,ie,se)}catch(ce){}if("get"in se||"set"in se)throw ne("Accessors not supported");return"value"in se&&(oe[ie]=se.value),oe}},(C,$,V)=>{var F=V(10),K=V(24),J=F.String,ee=F.TypeError;C.exports=function(te){if(K(te))return te;throw ee(J(te)+" is not an object")}},(C,$,V)=>{var F=V(10),K=V(25),J=V(42),ee=V(47),te=V(41),ne=V(51),re=V(52),ae=V(56).CONFIGURABLE,oe=re.get,ie=re.enforce,se=String(String).split("String");(C.exports=function(ce,de,le,ve){var fe=ve?!!ve.unsafe:!1,he=ve?!!ve.enumerable:!1,me=ve?!!ve.noTargetGet:!1,ue=ve&&ve.name!==void 0?ve.name:de,pe;if(K(le)&&(String(ue).slice(0,7)==="Symbol("&&(ue="["+String(ue).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!J(le,"name")||ae&&le.name!==ue)&&ee(le,"name",ue),pe=ie(le),pe.source||(pe.source=se.join(typeof ue=="string"?ue:""))),ce===F){he?ce[de]=le:te(de,le);return}else fe?!me&&ce[de]&&(he=!0):delete ce[de];he?ce[de]=le:ee(ce,de,le)})(Function.prototype,"toString",function(){return K(this)&&oe(this).source||ne(this)})},(C,$,V)=>{var F=V(19),K=V(25),J=V(40),ee=F(Function.toString);K(J.inspectSource)||(J.inspectSource=function(te){return ee(te)}),C.exports=J.inspectSource},(C,$,V)=>{var F=V(53),K=V(10),J=V(19),ee=V(24),te=V(47),ne=V(42),re=V(40),ae=V(54),oe=V(55),ie="Object already initialized",se=K.TypeError,ce=K.WeakMap,de,le,ve,fe=function(ge){return ve(ge)?le(ge):de(ge,{})},he=function(ge){return function(_e){var Se;if(!ee(_e)||(Se=le(_e)).type!==ge)throw se("Incompatible receiver, "+ge+" required");return Se}};if(F||re.state){var me=re.state||(re.state=new ce),ue=J(me.get),pe=J(me.has),ye=J(me.set);de=function(ge,_e){if(pe(me,ge))throw new se(ie);return _e.facade=ge,ye(me,ge,_e),_e},le=function(ge){return ue(me,ge)||{}},ve=function(ge){return pe(me,ge)}}else{var be=ae("state");oe[be]=!0,de=function(ge,_e){if(ne(ge,be))throw new se(ie);return _e.facade=ge,te(ge,be,_e),_e},le=function(ge){return ne(ge,be)?ge[be]:{}},ve=function(ge){return ne(ge,be)}}C.exports={set:de,get:le,has:ve,enforce:fe,getterFor:he}},(C,$,V)=>{var F=V(10),K=V(25),J=V(51),ee=F.WeakMap;C.exports=K(ee)&&/native code/.test(J(ee))},(C,$,V)=>{var F=V(38),K=V(44),J=F("keys");C.exports=function(ee){return J[ee]||(J[ee]=K(ee))}},C=>{C.exports={}},(C,$,V)=>{var F=V(12),K=V(42),J=Function.prototype,ee=F&&Object.getOwnPropertyDescriptor,te=K(J,"name"),ne=te&&function(){}.name==="something",re=te&&(!F||F&&ee(J,"name").configurable);C.exports={EXISTS:te,PROPER:ne,CONFIGURABLE:re}},(C,$,V)=>{var F=V(42),K=V(58),J=V(11),ee=V(48);C.exports=function(te,ne){for(var re=K(ne),ae=ee.f,oe=J.f,ie=0;ie<re.length;ie++){var se=re[ie];F(te,se)||ae(te,se,oe(ne,se))}}},(C,$,V)=>{var F=V(27),K=V(19),J=V(59),ee=V(67),te=V(49),ne=K([].concat);C.exports=F("Reflect","ownKeys")||function(ae){var oe=J.f(te(ae)),ie=ee.f;return ie?ne(oe,ie(ae)):oe}},(C,$,V)=>{var F=V(60),K=V(66),J=K.concat("length","prototype");$.f=Object.getOwnPropertyNames||function(te){return F(te,J)}},(C,$,V)=>{var F=V(19),K=V(42),J=V(17),ee=V(61).indexOf,te=V(55),ne=F([].push);C.exports=function(re,ae){var oe=J(re),ie=0,se=[],ce;for(ce in oe)!K(te,ce)&&K(oe,ce)&&ne(se,ce);for(;ae.length>ie;)K(oe,ce=ae[ie++])&&(~ee(se,ce)||ne(se,ce));return se}},(C,$,V)=>{var F=V(17),K=V(62),J=V(64),ee=function(te){return function(ne,re,ae){var oe=F(ne),ie=J(oe),se=K(ae,ie),ce;if(te&&re!=re){for(;ie>se;)if(ce=oe[se++],ce!=ce)return!0}else for(;ie>se;se++)if((te||se in oe)&&oe[se]===re)return te||se||0;return!te&&-1}};C.exports={includes:ee(!0),indexOf:ee(!1)}},(C,$,V)=>{var F=V(63),K=Math.max,J=Math.min;C.exports=function(ee,te){var ne=F(ee);return ne<0?K(ne+te,0):J(ne,te)}},C=>{var $=Math.ceil,V=Math.floor;C.exports=function(F){var K=+F;return K!==K||K===0?0:(K>0?V:$)(K)}},(C,$,V)=>{var F=V(65);C.exports=function(K){return F(K.length)}},(C,$,V)=>{var F=V(63),K=Math.min;C.exports=function(J){return J>0?K(F(J),9007199254740991):0}},C=>{C.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(C,$)=>{$.f=Object.getOwnPropertySymbols},(C,$,V)=>{var F=V(13),K=V(25),J=/#|\.prototype\./,ee=function(oe,ie){var se=ne[te(oe)];return se==ae?!0:se==re?!1:K(ie)?F(ie):!!ie},te=ee.normalize=function(oe){return String(oe).replace(J,".").toLowerCase()},ne=ee.data={},re=ee.NATIVE="N",ae=ee.POLYFILL="P";C.exports=ee},(C,$,V)=>{var F,K;function J(ee){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?J=function(ne){return typeof ne}:J=function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},J(ee)}(function(ee,te){J($)==="object"?C.exports=te():(F=te,K=typeof F=="function"?F.call($,V,$,C):F,K!==void 0&&(C.exports=K))})(void 0,function(){function ee(me){var ue=new le,pe=Array.from(me);if(!pe.every(function(at){return!Number.isNaN(at)}))throw TypeError('CSSMatrix: "'+me+'" must only have numbers.');if(pe.length===16){var ye=pe[0],be=pe[1],ge=pe[2],_e=pe[3],Se=pe[4],Ee=pe[5],Ce=pe[6],xe=pe[7],$e=pe[8],Ie=pe[9],Fe=pe[10],Ne=pe[11],De=pe[12],Oe=pe[13],we=pe[14],Ae=pe[15];ue.m11=ye,ue.a=ye,ue.m21=Se,ue.c=Se,ue.m31=$e,ue.m41=De,ue.e=De,ue.m12=be,ue.b=be,ue.m22=Ee,ue.d=Ee,ue.m32=Ie,ue.m42=Oe,ue.f=Oe,ue.m13=ge,ue.m23=Ce,ue.m33=Fe,ue.m43=we,ue.m14=_e,ue.m24=xe,ue.m34=Ne,ue.m44=Ae}else if(pe.length===6){var ke=pe[0],je=pe[1],ze=pe[2],Ve=pe[3],Xe=pe[4],Ye=pe[5];ue.m11=ke,ue.a=ke,ue.m12=je,ue.b=je,ue.m21=ze,ue.c=ze,ue.m22=Ve,ue.d=Ve,ue.m41=Xe,ue.e=Xe,ue.m42=Ye,ue.f=Ye}else throw new TypeError("CSSMatrix: expecting an Array of 6/16 values.");return ue}function te(me){var ue=Object.keys(new le);if(J(me)==="object"&&ue.every(function(pe){return pe in me}))return ee([me.m11,me.m12,me.m13,me.m14,me.m21,me.m22,me.m23,me.m24,me.m31,me.m32,me.m33,me.m34,me.m41,me.m42,me.m43,me.m44]);throw TypeError('CSSMatrix: "'+me+'" is not a DOMMatrix / CSSMatrix / JSON compatible object.')}function ne(me){if(typeof me!="string")throw TypeError('CSSMatrix: "'+me+'" is not a string.');var ue=String(me).replace(/\s/g,""),pe=new le,ye='CSSMatrix: invalid transform string "'+me+'"';return ue.split(")").filter(function(be){return be}).forEach(function(be){var ge=be.split("("),_e=ge[0],Se=ge[1];if(!Se)throw TypeError(ye);var Ee=Se.split(",").map(function(Ve){return Ve.includes("rad")?parseFloat(Ve)*(180/Math.PI):parseFloat(Ve)}),Ce=Ee[0],xe=Ee[1],$e=Ee[2],Ie=Ee[3],Fe=[Ce,xe,$e],Ne=[Ce,xe,$e,Ie];if(_e==="perspective"&&Ce&&[xe,$e].every(function(Ve){return Ve===void 0}))pe.m34=-1/Ce;else if(_e.includes("matrix")&&[6,16].includes(Ee.length)&&Ee.every(function(Ve){return!Number.isNaN(+Ve)})){var De=Ee.map(function(Ve){return Math.abs(Ve)<1e-6?0:Ve});pe=pe.multiply(ee(De))}else if(_e==="translate3d"&&Fe.every(function(Ve){return!Number.isNaN(+Ve)}))pe=pe.translate(Ce,xe,$e);else if(_e==="translate"&&Ce&&$e===void 0)pe=pe.translate(Ce,xe||0,0);else if(_e==="rotate3d"&&Ne.every(function(Ve){return!Number.isNaN(+Ve)})&&Ie)pe=pe.rotateAxisAngle(Ce,xe,$e,Ie);else if(_e==="rotate"&&Ce&&[xe,$e].every(function(Ve){return Ve===void 0}))pe=pe.rotate(0,0,Ce);else if(_e==="scale3d"&&Fe.every(function(Ve){return!Number.isNaN(+Ve)})&&Fe.some(function(Ve){return Ve!==1}))pe=pe.scale(Ce,xe,$e);else if(_e==="scale"&&!Number.isNaN(Ce)&&Ce!==1&&$e===void 0){var Oe=Number.isNaN(+xe),we=Oe?Ce:xe;pe=pe.scale(Ce,we,1)}else if(_e==="skew"&&Ce&&$e===void 0)pe=pe.skewX(Ce),pe=xe?pe.skewY(xe):pe;else if(/[XYZ]/.test(_e)&&Ce&&[xe,$e].every(function(Ve){return Ve===void 0})&&["translate","rotate","scale","skew"].some(function(Ve){return _e.includes(Ve)}))if(["skewX","skewY"].includes(_e))pe=pe[_e](Ce);else{var Ae=_e.replace(/[XYZ]/,""),ke=_e.replace(Ae,""),je=["X","Y","Z"].indexOf(ke),ze=[je===0?Ce:0,je===1?Ce:0,je===2?Ce:0];pe=pe[Ae].apply(pe,ze)}else throw TypeError(ye)}),pe}function re(me,ue,pe){var ye=new le;return ye.m41=me,ye.e=me,ye.m42=ue,ye.f=ue,ye.m43=pe,ye}function ae(me,ue,pe){var ye=new le,be=Math.PI/180,ge=me*be,_e=ue*be,Se=pe*be,Ee=Math.cos(ge),Ce=-Math.sin(ge),xe=Math.cos(_e),$e=-Math.sin(_e),Ie=Math.cos(Se),Fe=-Math.sin(Se),Ne=xe*Ie,De=-xe*Fe;ye.m11=Ne,ye.a=Ne,ye.m12=De,ye.b=De,ye.m13=$e;var Oe=Ce*$e*Ie+Ee*Fe;ye.m21=Oe,ye.c=Oe;var we=Ee*Ie-Ce*$e*Fe;return ye.m22=we,ye.d=we,ye.m23=-Ce*xe,ye.m31=Ce*Fe-Ee*$e*Ie,ye.m32=Ce*Ie+Ee*$e*Fe,ye.m33=Ee*xe,ye}function oe(me,ue,pe,ye){var be=new le,ge=ye*(Math.PI/360),_e=Math.sin(ge),Se=Math.cos(ge),Ee=_e*_e,Ce=Math.sqrt(me*me+ue*ue+pe*pe),xe=me,$e=ue,Ie=pe;Ce===0?(xe=0,$e=0,Ie=1):(xe/=Ce,$e/=Ce,Ie/=Ce);var Fe=xe*xe,Ne=$e*$e,De=Ie*Ie,Oe=1-2*(Ne+De)*Ee;be.m11=Oe,be.a=Oe;var we=2*(xe*$e*Ee+Ie*_e*Se);be.m12=we,be.b=we,be.m13=2*(xe*Ie*Ee-$e*_e*Se);var Ae=2*($e*xe*Ee-Ie*_e*Se);be.m21=Ae,be.c=Ae;var ke=1-2*(De+Fe)*Ee;return be.m22=ke,be.d=ke,be.m23=2*($e*Ie*Ee+xe*_e*Se),be.m31=2*(Ie*xe*Ee+$e*_e*Se),be.m32=2*(Ie*$e*Ee-xe*_e*Se),be.m33=1-2*(Fe+Ne)*Ee,be}function ie(me,ue,pe){var ye=new le;return ye.m11=me,ye.a=me,ye.m22=ue,ye.d=ue,ye.m33=pe,ye}function se(me){var ue=new le,pe=me*Math.PI/180,ye=Math.tan(pe);return ue.m21=ye,ue.c=ye,ue}function ce(me){var ue=new le,pe=me*Math.PI/180,ye=Math.tan(pe);return ue.m12=ye,ue.b=ye,ue}function de(me,ue){var pe=ue.m11*me.m11+ue.m12*me.m21+ue.m13*me.m31+ue.m14*me.m41,ye=ue.m11*me.m12+ue.m12*me.m22+ue.m13*me.m32+ue.m14*me.m42,be=ue.m11*me.m13+ue.m12*me.m23+ue.m13*me.m33+ue.m14*me.m43,ge=ue.m11*me.m14+ue.m12*me.m24+ue.m13*me.m34+ue.m14*me.m44,_e=ue.m21*me.m11+ue.m22*me.m21+ue.m23*me.m31+ue.m24*me.m41,Se=ue.m21*me.m12+ue.m22*me.m22+ue.m23*me.m32+ue.m24*me.m42,Ee=ue.m21*me.m13+ue.m22*me.m23+ue.m23*me.m33+ue.m24*me.m43,Ce=ue.m21*me.m14+ue.m22*me.m24+ue.m23*me.m34+ue.m24*me.m44,xe=ue.m31*me.m11+ue.m32*me.m21+ue.m33*me.m31+ue.m34*me.m41,$e=ue.m31*me.m12+ue.m32*me.m22+ue.m33*me.m32+ue.m34*me.m42,Ie=ue.m31*me.m13+ue.m32*me.m23+ue.m33*me.m33+ue.m34*me.m43,Fe=ue.m31*me.m14+ue.m32*me.m24+ue.m33*me.m34+ue.m34*me.m44,Ne=ue.m41*me.m11+ue.m42*me.m21+ue.m43*me.m31+ue.m44*me.m41,De=ue.m41*me.m12+ue.m42*me.m22+ue.m43*me.m32+ue.m44*me.m42,Oe=ue.m41*me.m13+ue.m42*me.m23+ue.m43*me.m33+ue.m44*me.m43,we=ue.m41*me.m14+ue.m42*me.m24+ue.m43*me.m34+ue.m44*me.m44;return ee([pe,ye,be,ge,_e,Se,Ee,Ce,xe,$e,Ie,Fe,Ne,De,Oe,we])}var le=function(){for(var ue=[],pe=arguments.length;pe--;)ue[pe]=arguments[pe];var ye=this;if(ye.a=1,ye.b=0,ye.c=0,ye.d=1,ye.e=0,ye.f=0,ye.m11=1,ye.m12=0,ye.m13=0,ye.m14=0,ye.m21=0,ye.m22=1,ye.m23=0,ye.m24=0,ye.m31=0,ye.m32=0,ye.m33=1,ye.m34=0,ye.m41=0,ye.m42=0,ye.m43=0,ye.m44=1,ue&&ue.length){var be=[16,6].some(function(ge){return ge===ue.length})?ue:ue[0];return ye.setMatrixValue(be)}return ye},ve={isIdentity:{configurable:!0},is2D:{configurable:!0}};ve.isIdentity.set=function(me){this.isIdentity=me},ve.isIdentity.get=function(){var me=this;return me.m11===1&&me.m12===0&&me.m13===0&&me.m14===0&&me.m21===0&&me.m22===1&&me.m23===0&&me.m24===0&&me.m31===0&&me.m32===0&&me.m33===1&&me.m34===0&&me.m41===0&&me.m42===0&&me.m43===0&&me.m44===1},ve.is2D.get=function(){var me=this;return me.m31===0&&me.m32===0&&me.m33===1&&me.m34===0&&me.m43===0&&me.m44===1},ve.is2D.set=function(me){this.is2D=me},le.prototype.setMatrixValue=function(ue){var pe=this;return[Array,Float64Array,Float32Array].some(function(ye){return ue instanceof ye})?ee(ue):typeof ue=="string"&&ue.length&&ue!=="none"?ne(ue):J(ue)==="object"?te(ue):pe},le.prototype.toArray=function(){var ue=this,pe=Math.pow(10,6),ye;return ue.is2D?ye=[ue.a,ue.b,ue.c,ue.d,ue.e,ue.f]:ye=[ue.m11,ue.m12,ue.m13,ue.m14,ue.m21,ue.m22,ue.m23,ue.m24,ue.m31,ue.m32,ue.m33,ue.m34,ue.m41,ue.m42,ue.m43,ue.m44],ye.map(function(be){return Math.abs(be)<1e-6?0:(be*pe>>0)/pe})},le.prototype.toString=function(){var ue=this,pe=ue.toArray(),ye=ue.is2D?"matrix":"matrix3d";return ye+"("+pe+")"},le.prototype.toJSON=function(){var ue=this,pe=ue.is2D,ye=ue.isIdentity;return Object.assign({},ue,{is2D:pe,isIdentity:ye})},le.prototype.multiply=function(ue){return de(this,ue)},le.prototype.translate=function(ue,pe,ye){var be=ue,ge=pe,_e=ye;return _e===void 0&&(_e=0),ge===void 0&&(ge=0),de(this,re(be,ge,_e))},le.prototype.scale=function(ue,pe,ye){var be=ue,ge=pe,_e=ye;return ge===void 0&&(ge=ue),_e===void 0&&(_e=1),de(this,ie(be,ge,_e))},le.prototype.rotate=function(ue,pe,ye){var be=ue,ge=pe,_e=ye;return ge===void 0&&(ge=0),_e===void 0&&(_e=be,be=0),de(this,ae(be,ge,_e))},le.prototype.rotateAxisAngle=function(ue,pe,ye,be){if([ue,pe,ye,be].some(function(ge){return Number.isNaN(ge)}))throw new TypeError("CSSMatrix: expecting 4 values");return de(this,oe(ue,pe,ye,be))},le.prototype.skewX=function(ue){return de(this,se(ue))},le.prototype.skewY=function(ue){return de(this,ce(ue))},le.prototype.transformPoint=function(ue){var pe=this,ye=re(ue.x,ue.y,ue.z);return ye.m44=ue.w||1,ye=pe.multiply(ye),{x:ye.m41,y:ye.m42,z:ye.m43,w:ye.m44}},le.prototype.transform=function(ue){var pe=this,ye=pe.m11*ue.x+pe.m12*ue.y+pe.m13*ue.z+pe.m14*ue.w,be=pe.m21*ue.x+pe.m22*ue.y+pe.m23*ue.z+pe.m24*ue.w,ge=pe.m31*ue.x+pe.m32*ue.y+pe.m33*ue.z+pe.m34*ue.w,_e=pe.m41*ue.x+pe.m42*ue.y+pe.m43*ue.z+pe.m44*ue.w;return{x:ye/_e,y:be/_e,z:ge/_e,w:_e}},Object.defineProperties(le.prototype,ve),Object.assign(le,{Translate:re,Rotate:ae,RotateAxisAngle:oe,Scale:ie,SkewX:se,SkewY:ce,Multiply:de,fromArray:ee,fromMatrix:te,fromString:ne});var fe="0.0.24",he=fe;return Object.assign(le,{Version:he}),le})},(C,$,V)=>{V(71),V(86);var F=V(96);C.exports=F.Object.fromEntries},(C,$,V)=>{var F=V(17),K=V(72),J=V(77),ee=V(52),te=V(78),ne="Array Iterator",re=ee.set,ae=ee.getterFor(ne);C.exports=te(Array,"Array",function(oe,ie){re(this,{type:ne,target:F(oe),index:0,kind:ie})},function(){var oe=ae(this),ie=oe.target,se=oe.kind,ce=oe.index++;return!ie||ce>=ie.length?(oe.target=void 0,{value:void 0,done:!0}):se=="keys"?{value:ce,done:!1}:se=="values"?{value:ie[ce],done:!1}:{value:[ce,ie[ce]],done:!1}},"values"),J.Arguments=J.Array,K("keys"),K("values"),K("entries")},(C,$,V)=>{var F=V(37),K=V(73),J=V(48),ee=F("unscopables"),te=Array.prototype;te[ee]==null&&J.f(te,ee,{configurable:!0,value:K(null)}),C.exports=function(ne){te[ee][ne]=!0}},(C,$,V)=>{var F=V(49),K=V(74),J=V(66),ee=V(55),te=V(76),ne=V(46),re=V(54),ae=">",oe="<",ie="prototype",se="script",ce=re("IE_PROTO"),de=function(){},le=function(ue){return oe+se+ae+ue+oe+"/"+se+ae},ve=function(ue){ue.write(le("")),ue.close();var pe=ue.parentWindow.Object;return ue=null,pe},fe=function(){var ue=ne("iframe"),pe="java"+se+":",ye;return ue.style.display="none",te.appendChild(ue),ue.src=String(pe),ye=ue.contentWindow.document,ye.open(),ye.write(le("document.F=Object")),ye.close(),ye.F},he,me=function(){try{he=new ActiveXObject("htmlfile")}catch(pe){}me=typeof document!="undefined"?document.domain&&he?ve(he):fe():ve(he);for(var ue=J.length;ue--;)delete me[ie][J[ue]];return me()};ee[ce]=!0,C.exports=Object.create||function(pe,ye){var be;return pe!==null?(de[ie]=F(pe),be=new de,de[ie]=null,be[ce]=pe):be=me(),ye===void 0?be:K(be,ye)}},(C,$,V)=>{var F=V(12),K=V(48),J=V(49),ee=V(17),te=V(75);C.exports=F?Object.defineProperties:function(re,ae){J(re);for(var oe=ee(ae),ie=te(ae),se=ie.length,ce=0,de;se>ce;)K.f(re,de=ie[ce++],oe[de]);return re}},(C,$,V)=>{var F=V(60),K=V(66);C.exports=Object.keys||function(ee){return F(ee,K)}},(C,$,V)=>{var F=V(27);C.exports=F("document","documentElement")},C=>{C.exports={}},(C,$,V)=>{var F=V(9),K=V(14),J=V(39),ee=V(56),te=V(25),ne=V(79),re=V(81),ae=V(84),oe=V(83),ie=V(47),se=V(50),ce=V(37),de=V(77),le=V(80),ve=ee.PROPER,fe=ee.CONFIGURABLE,he=le.IteratorPrototype,me=le.BUGGY_SAFARI_ITERATORS,ue=ce("iterator"),pe="keys",ye="values",be="entries",ge=function(){return this};C.exports=function(_e,Se,Ee,Ce,xe,$e,Ie){ne(Ee,Se,Ce);var Fe=function(Xe){if(Xe===xe&&Ae)return Ae;if(!me&&Xe in Oe)return Oe[Xe];switch(Xe){case pe:return function(){return new Ee(this,Xe)};case ye:return function(){return new Ee(this,Xe)};case be:return function(){return new Ee(this,Xe)}}return function(){return new Ee(this)}},Ne=Se+" Iterator",De=!1,Oe=_e.prototype,we=Oe[ue]||Oe["@@iterator"]||xe&&Oe[xe],Ae=!me&&we||Fe(xe),ke=Se=="Array"&&Oe.entries||we,je,ze,Ve;if(ke&&(je=re(ke.call(new _e)),je!==Object.prototype&&je.next&&(!J&&re(je)!==he&&(ae?ae(je,he):te(je[ue])||se(je,ue,ge)),oe(je,Ne,!0,!0),J&&(de[Ne]=ge))),ve&&xe==ye&&we&&we.name!==ye&&(!J&&fe?ie(Oe,"name",ye):(De=!0,Ae=function(){return K(we,this)})),xe)if(ze={values:Fe(ye),keys:$e?Ae:Fe(pe),entries:Fe(be)},Ie)for(Ve in ze)(me||De||!(Ve in Oe))&&se(Oe,Ve,ze[Ve]);else F({target:Se,proto:!0,forced:me||De},ze);return(!J||Ie)&&Oe[ue]!==Ae&&se(Oe,ue,Ae,{name:xe}),de[Se]=Ae,ze}},(C,$,V)=>{var F=V(80).IteratorPrototype,K=V(73),J=V(16),ee=V(83),te=V(77),ne=function(){return this};C.exports=function(re,ae,oe,ie){var se=ae+" Iterator";return re.prototype=K(F,{next:J(+!ie,oe)}),ee(re,se,!1,!0),te[se]=ne,re}},(C,$,V)=>{var F=V(13),K=V(25),J=V(73),ee=V(81),te=V(50),ne=V(37),re=V(39),ae=ne("iterator"),oe=!1,ie,se,ce;[].keys&&(ce=[].keys(),"next"in ce?(se=ee(ee(ce)),se!==Object.prototype&&(ie=se)):oe=!0);var de=ie==null||F(function(){var le={};return ie[ae].call(le)!==le});de?ie={}:re&&(ie=J(ie)),K(ie[ae])||te(ie,ae,function(){return this}),C.exports={IteratorPrototype:ie,BUGGY_SAFARI_ITERATORS:oe}},(C,$,V)=>{var F=V(10),K=V(42),J=V(25),ee=V(43),te=V(54),ne=V(82),re=te("IE_PROTO"),ae=F.Object,oe=ae.prototype;C.exports=ne?ae.getPrototypeOf:function(ie){var se=ee(ie);if(K(se,re))return se[re];var ce=se.constructor;return J(ce)&&se instanceof ce?ce.prototype:se instanceof ae?oe:null}},(C,$,V)=>{var F=V(13);C.exports=!F(function(){function K(){}return K.prototype.constructor=null,Object.getPrototypeOf(new K)!==K.prototype})},(C,$,V)=>{var F=V(48).f,K=V(42),J=V(37),ee=J("toStringTag");C.exports=function(te,ne,re){te&&!K(te=re?te:te.prototype,ee)&&F(te,ee,{configurable:!0,value:ne})}},(C,$,V)=>{var F=V(19),K=V(49),J=V(85);C.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ee=!1,te={},ne;try{ne=F(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),ne(te,[]),ee=te instanceof Array}catch(re){}return function(ae,oe){return K(ae),J(oe),ee?ne(ae,oe):ae.__proto__=oe,ae}}():void 0)},(C,$,V)=>{var F=V(10),K=V(25),J=F.String,ee=F.TypeError;C.exports=function(te){if(typeof te=="object"||K(te))return te;throw ee("Can't set "+J(te)+" as a prototype")}},(C,$,V)=>{var F=V(9),K=V(87),J=V(95);F({target:"Object",stat:!0},{fromEntries:function(te){var ne={};return K(te,function(re,ae){J(ne,re,ae)},{AS_ENTRIES:!0}),ne}})},(C,$,V)=>{var F=V(10),K=V(88),J=V(14),ee=V(49),te=V(35),ne=V(89),re=V(64),ae=V(28),oe=V(90),ie=V(91),se=V(94),ce=F.TypeError,de=function(ve,fe){this.stopped=ve,this.result=fe},le=de.prototype;C.exports=function(ve,fe,he){var me=he&&he.that,ue=!!(he&&he.AS_ENTRIES),pe=!!(he&&he.IS_ITERATOR),ye=!!(he&&he.INTERRUPTED),be=K(fe,me),ge,_e,Se,Ee,Ce,xe,$e,Ie=function(Ne){return ge&&se(ge,"normal",Ne),new de(!0,Ne)},Fe=function(Ne){return ue?(ee(Ne),ye?be(Ne[0],Ne[1],Ie):be(Ne[0],Ne[1])):ye?be(Ne,Ie):be(Ne)};if(pe)ge=ve;else{if(_e=ie(ve),!_e)throw ce(te(ve)+" is not iterable");if(ne(_e)){for(Se=0,Ee=re(ve);Ee>Se;Se++)if(Ce=Fe(ve[Se]),Ce&&ae(le,Ce))return Ce;return new de(!1)}ge=oe(ve,_e)}for(xe=ge.next;!($e=J(xe,ge)).done;){try{Ce=Fe($e.value)}catch(Ne){se(ge,"throw",Ne)}if(typeof Ce=="object"&&Ce&&ae(le,Ce))return Ce}return new de(!1)}},(C,$,V)=>{var F=V(19),K=V(34),J=F(F.bind);C.exports=function(ee,te){return K(ee),te===void 0?ee:J?J(ee,te):function(){return ee.apply(te,arguments)}}},(C,$,V)=>{var F=V(37),K=V(77),J=F("iterator"),ee=Array.prototype;C.exports=function(te){return te!==void 0&&(K.Array===te||ee[J]===te)}},(C,$,V)=>{var F=V(10),K=V(14),J=V(34),ee=V(49),te=V(35),ne=V(91),re=F.TypeError;C.exports=function(ae,oe){var ie=arguments.length<2?ne(ae):oe;if(J(ie))return ee(K(ie,ae));throw re(te(ae)+" is not iterable")}},(C,$,V)=>{var F=V(92),K=V(33),J=V(77),ee=V(37),te=ee("iterator");C.exports=function(ne){if(ne!=null)return K(ne,te)||K(ne,"@@iterator")||J[F(ne)]}},(C,$,V)=>{var F=V(10),K=V(93),J=V(25),ee=V(20),te=V(37),ne=te("toStringTag"),re=F.Object,ae=ee(function(){return arguments}())=="Arguments",oe=function(ie,se){try{return ie[se]}catch(ce){}};C.exports=K?ee:function(ie){var se,ce,de;return ie===void 0?"Undefined":ie===null?"Null":typeof(ce=oe(se=re(ie),ne))=="string"?ce:ae?ee(se):(de=ee(se))=="Object"&&J(se.callee)?"Arguments":de}},(C,$,V)=>{var F=V(37),K=F("toStringTag"),J={};J[K]="z",C.exports=String(J)==="[object z]"},(C,$,V)=>{var F=V(14),K=V(49),J=V(33);C.exports=function(ee,te,ne){var re,ae;K(ee);try{if(re=J(ee,"return"),!re){if(te==="throw")throw ne;return ne}re=F(re,ee)}catch(oe){ae=!0,re=oe}if(te==="throw")throw ne;if(ae)throw re;return K(re),ne}},(C,$,V)=>{var F=V(22),K=V(48),J=V(16);C.exports=function(ee,te,ne){var re=F(te);re in ee?K.f(ee,re,J(0,ne)):ee[re]=ne}},(C,$,V)=>{var F=V(10);C.exports=F},(C,$,V)=>{V(98),V(71),V(105),V(107),V(129),V(130),V(131),V(132);var F=V(96);C.exports=F.Promise},(C,$,V)=>{var F=V(9),K=V(10),J=V(28),ee=V(81),te=V(84),ne=V(57),re=V(73),ae=V(47),oe=V(16),ie=V(99),se=V(101),ce=V(87),de=V(102),le=V(37),ve=V(104),fe=le("toStringTag"),he=K.Error,me=[].push,ue=function(be,ge){var _e=arguments.length>2?arguments[2]:void 0,Se=J(pe,this),Ee;te?Ee=te(new he(void 0),Se?ee(this):pe):(Ee=Se?this:re(pe),ae(Ee,fe,"Error")),ae(Ee,"message",de(ge,"")),ve&&ae(Ee,"stack",ie(Ee.stack,1)),se(Ee,_e);var Ce=[];return ce(be,me,{that:Ce}),ae(Ee,"errors",Ce),Ee};te?te(ue,he):ne(ue,he);var pe=ue.prototype=re(he.prototype,{constructor:oe(1,ue),message:oe(1,""),name:oe(1,"AggregateError")});F({global:!0},{AggregateError:ue})},(C,$,V)=>{var F=V(19),K=V(100),J=F("".replace),ee=F("".split),te=F([].join),ne=function(ie){return String(Error(ie).stack)}("zxcasd"),re=/\n\s*at [^:]*:[^\n]*/,ae=re.test(ne),oe=/@[^\n]*\n/.test(ne)&&!/zxcasd/.test(ne);C.exports=function(ie,se){if(typeof ie!="string")return ie;if(ae)for(;se--;)ie=J(ie,re,"");else if(oe)return te(K(ee(ie,`
441
441
  `),se),`
442
- `);return ie}},(C,$,V)=>{var F=V(10),K=V(62),J=V(64),ee=V(95),te=F.Array,ne=Math.max;C.exports=function(re,ae,oe){for(var ie=J(re),se=K(ae,ie),ce=K(oe===void 0?ie:oe,ie),de=te(ne(ce-se,0)),le=0;se<ce;se++,le++)ee(de,le,re[se]);return de.length=le,de}},(C,$,V)=>{var F=V(24),K=V(47);C.exports=function(J,ee){F(ee)&&"cause"in ee&&K(J,"cause",ee.cause)}},(C,$,V)=>{var F=V(103);C.exports=function(K,J){return K===void 0?arguments.length<2?"":J:F(K)}},(C,$,V)=>{var F=V(10),K=V(92),J=F.String;C.exports=function(ee){if(K(ee)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return J(ee)}},(C,$,V)=>{var F=V(13),K=V(16);C.exports=!F(function(){var J=Error("a");return"stack"in J?(Object.defineProperty(J,"stack",K(1,7)),J.stack!==7):!0})},(C,$,V)=>{var F=V(93),K=V(50),J=V(106);F||K(Object.prototype,"toString",J,{unsafe:!0})},(C,$,V)=>{var F=V(93),K=V(92);C.exports=F?{}.toString:function(){return"[object "+K(this)+"]"}},(C,$,V)=>{var F=V(9),K=V(39),J=V(10),ee=V(27),te=V(14),ne=V(108),re=V(50),ae=V(109),oe=V(84),ie=V(83),se=V(110),ce=V(34),de=V(25),le=V(24),ve=V(111),fe=V(51),he=V(87),me=V(112),ue=V(113),pe=V(116).set,ye=V(121),be=V(124),ge=V(126),_e=V(125),Se=V(127),Ee=V(52),Ce=V(68),xe=V(37),$e=V(128),Ie=V(120),Fe=V(31),Ne=xe("species"),De="Promise",Oe=Ee.getterFor(De),we=Ee.set,Ae=Ee.getterFor(De),ke=ne&&ne.prototype,je=ne,ze=ke,Ve=J.TypeError,Xe=J.document,Ye=J.process,at=_e.f,Ue=at,Le=!!(Xe&&Xe.createEvent&&J.dispatchEvent),Te=de(J.PromiseRejectionEvent),Pe="unhandledrejection",Me="rejectionhandled",He=0,We=1,Ke=2,rt=1,st=2,it=!1,Je,ct,dt,vt,ht=Ce(De,function(){var qe=fe(je),ot=qe!==String(je);if(!ot&&Fe===66||K&&!ze.finally)return!0;if(Fe>=51&&/native code/.test(qe))return!1;var ft=new je(function(kt){kt(1)}),yt=function(kt){kt(function(){},function(){})},$t=ft.constructor={};return $t[Ne]=yt,it=ft.then(function(){})instanceof yt,it?!ot&&$e&&!Te:!0}),bt=ht||!me(function(qe){je.all(qe).catch(function(){})}),Rt=function(qe){var ot;return le(qe)&&de(ot=qe.then)?ot:!1},wt=function(qe,ot){if(!qe.notified){qe.notified=!0;var ft=qe.reactions;ye(function(){for(var yt=qe.value,$t=qe.state==We,kt=0;ft.length>kt;){var Dt=ft[kt++],St=$t?Dt.ok:Dt.fail,Bt=Dt.resolve,It=Dt.reject,Pt=Dt.domain,Tt,Ct,At;try{St?($t||(qe.rejection===st&&et(qe),qe.rejection=rt),St===!0?Tt=yt:(Pt&&Pt.enter(),Tt=St(yt),Pt&&(Pt.exit(),At=!0)),Tt===Dt.promise?It(Ve("Promise-chain cycle")):(Ct=Rt(Tt))?te(Ct,Tt,Bt,It):Bt(Tt)):It(yt)}catch(Ht){Pt&&!At&&Pt.exit(),It(Ht)}}qe.reactions=[],qe.notified=!1,ot&&!qe.rejection&&ut(qe)})}},lt=function(qe,ot,ft){var yt,$t;Le?(yt=Xe.createEvent("Event"),yt.promise=ot,yt.reason=ft,yt.initEvent(qe,!1,!0),J.dispatchEvent(yt)):yt={promise:ot,reason:ft},!Te&&($t=J["on"+qe])?$t(yt):qe===Pe&&ge("Unhandled promise rejection",ft)},ut=function(qe){te(pe,J,function(){var ot=qe.facade,ft=qe.value,yt=Ge(qe),$t;if(yt&&($t=Se(function(){Ie?Ye.emit("unhandledRejection",ft,ot):lt(Pe,ot,ft)}),qe.rejection=Ie||Ge(qe)?st:rt,$t.error))throw $t.value})},Ge=function(qe){return qe.rejection!==rt&&!qe.parent},et=function(qe){te(pe,J,function(){var ot=qe.facade;Ie?Ye.emit("rejectionHandled",ot):lt(Me,ot,qe.value)})},Ze=function(qe,ot,ft){return function(yt){qe(ot,yt,ft)}},nt=function(qe,ot,ft){qe.done||(qe.done=!0,ft&&(qe=ft),qe.value=ot,qe.state=Ke,wt(qe,!0))},tt=function(qe,ot,ft){if(!qe.done){qe.done=!0,ft&&(qe=ft);try{if(qe.facade===ot)throw Ve("Promise can't be resolved itself");var yt=Rt(ot);yt?ye(function(){var $t={done:!1};try{te(yt,ot,Ze(tt,$t,qe),Ze(nt,$t,qe))}catch(kt){nt($t,kt,qe)}}):(qe.value=ot,qe.state=We,wt(qe,!1))}catch($t){nt({done:!1},$t,qe)}}};if(ht&&(je=function(ot){ve(this,ze),ce(ot),te(Je,this);var ft=Oe(this);try{ot(Ze(tt,ft),Ze(nt,ft))}catch(yt){nt(ft,yt)}},ze=je.prototype,Je=function(ot){we(this,{type:De,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:He,value:void 0})},Je.prototype=ae(ze,{then:function(ot,ft){var yt=Ae(this),$t=yt.reactions,kt=at(ue(this,je));return kt.ok=de(ot)?ot:!0,kt.fail=de(ft)&&ft,kt.domain=Ie?Ye.domain:void 0,yt.parent=!0,$t[$t.length]=kt,yt.state!=He&&wt(yt,!1),kt.promise},catch:function(qe){return this.then(void 0,qe)}}),ct=function(){var qe=new Je,ot=Oe(qe);this.promise=qe,this.resolve=Ze(tt,ot),this.reject=Ze(nt,ot)},_e.f=at=function(qe){return qe===je||qe===dt?new ct(qe):Ue(qe)},!K&&de(ne)&&ke!==Object.prototype)){vt=ke.then,it||(re(ke,"then",function(ot,ft){var yt=this;return new je(function($t,kt){te(vt,yt,$t,kt)}).then(ot,ft)},{unsafe:!0}),re(ke,"catch",ze.catch,{unsafe:!0}));try{delete ke.constructor}catch(qe){}oe&&oe(ke,ze)}F({global:!0,wrap:!0,forced:ht},{Promise:je}),ie(je,De,!1,!0),se(De),dt=ee(De),F({target:De,stat:!0,forced:ht},{reject:function(ot){var ft=at(this);return te(ft.reject,void 0,ot),ft.promise}}),F({target:De,stat:!0,forced:K||ht},{resolve:function(ot){return be(K&&this===dt?je:this,ot)}}),F({target:De,stat:!0,forced:bt},{all:function(ot){var ft=this,yt=at(ft),$t=yt.resolve,kt=yt.reject,Dt=Se(function(){var St=ce(ft.resolve),Bt=[],It=0,Pt=1;he(ot,function(Tt){var Ct=It++,At=!1;Pt++,te(St,ft,Tt).then(function(Ht){At||(At=!0,Bt[Ct]=Ht,--Pt||$t(Bt))},kt)}),--Pt||$t(Bt)});return Dt.error&&kt(Dt.value),yt.promise},race:function(ot){var ft=this,yt=at(ft),$t=yt.reject,kt=Se(function(){var Dt=ce(ft.resolve);he(ot,function(St){te(Dt,ft,St).then(yt.resolve,$t)})});return kt.error&&$t(kt.value),yt.promise}})},(C,$,V)=>{var F=V(10);C.exports=F.Promise},(C,$,V)=>{var F=V(50);C.exports=function(K,J,ee){for(var te in J)F(K,te,J[te],ee);return K}},(C,$,V)=>{var F=V(27),K=V(48),J=V(37),ee=V(12),te=J("species");C.exports=function(ne){var re=F(ne),ae=K.f;ee&&re&&!re[te]&&ae(re,te,{configurable:!0,get:function(){return this}})}},(C,$,V)=>{var F=V(10),K=V(28),J=F.TypeError;C.exports=function(ee,te){if(K(te,ee))return ee;throw J("Incorrect invocation")}},(C,$,V)=>{var F=V(37),K=F("iterator"),J=!1;try{var ee=0,te={next:function(){return{done:!!ee++}},return:function(){J=!0}};te[K]=function(){return this},Array.from(te,function(){throw 2})}catch(ne){}C.exports=function(ne,re){if(!re&&!J)return!1;var ae=!1;try{var oe={};oe[K]=function(){return{next:function(){return{done:ae=!0}}}},ne(oe)}catch(ie){}return ae}},(C,$,V)=>{var F=V(49),K=V(114),J=V(37),ee=J("species");C.exports=function(te,ne){var re=F(te).constructor,ae;return re===void 0||(ae=F(re)[ee])==null?ne:K(ae)}},(C,$,V)=>{var F=V(10),K=V(115),J=V(35),ee=F.TypeError;C.exports=function(te){if(K(te))return te;throw ee(J(te)+" is not a constructor")}},(C,$,V)=>{var F=V(19),K=V(13),J=V(25),ee=V(92),te=V(27),ne=V(51),re=function(){},ae=[],oe=te("Reflect","construct"),ie=/^\s*(?:class|function)\b/,se=F(ie.exec),ce=!ie.exec(re),de=function(ve){if(!J(ve))return!1;try{return oe(re,ae,ve),!0}catch(fe){return!1}},le=function(ve){if(!J(ve))return!1;switch(ee(ve)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ce||!!se(ie,ne(ve))};C.exports=!oe||K(function(){var ve;return de(de.call)||!de(Object)||!de(function(){ve=!0})||ve})?le:de},(C,$,V)=>{var F=V(10),K=V(117),J=V(88),ee=V(25),te=V(42),ne=V(13),re=V(76),ae=V(118),oe=V(46),ie=V(119),se=V(120),ce=F.setImmediate,de=F.clearImmediate,le=F.process,ve=F.Dispatch,fe=F.Function,he=F.MessageChannel,me=F.String,ue=0,pe={},ye="onreadystatechange",be,ge,_e,Se;try{be=F.location}catch(Ie){}var Ee=function(Ie){if(te(pe,Ie)){var Fe=pe[Ie];delete pe[Ie],Fe()}},Ce=function(Ie){return function(){Ee(Ie)}},xe=function(Ie){Ee(Ie.data)},$e=function(Ie){F.postMessage(me(Ie),be.protocol+"//"+be.host)};(!ce||!de)&&(ce=function(Fe){var Ne=ae(arguments,1);return pe[++ue]=function(){K(ee(Fe)?Fe:fe(Fe),void 0,Ne)},ge(ue),ue},de=function(Fe){delete pe[Fe]},se?ge=function(Ie){le.nextTick(Ce(Ie))}:ve&&ve.now?ge=function(Ie){ve.now(Ce(Ie))}:he&&!ie?(_e=new he,Se=_e.port2,_e.port1.onmessage=xe,ge=J(Se.postMessage,Se)):F.addEventListener&&ee(F.postMessage)&&!F.importScripts&&be&&be.protocol!=="file:"&&!ne($e)?(ge=$e,F.addEventListener("message",xe,!1)):ye in oe("script")?ge=function(Ie){re.appendChild(oe("script"))[ye]=function(){re.removeChild(this),Ee(Ie)}}:ge=function(Ie){setTimeout(Ce(Ie),0)}),C.exports={set:ce,clear:de}},C=>{var $=Function.prototype,V=$.apply,F=$.bind,K=$.call;C.exports=typeof Reflect=="object"&&Reflect.apply||(F?K.bind(V):function(){return K.apply(V,arguments)})},(C,$,V)=>{var F=V(19);C.exports=F([].slice)},(C,$,V)=>{var F=V(32);C.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(F)},(C,$,V)=>{var F=V(20),K=V(10);C.exports=F(K.process)=="process"},(C,$,V)=>{var F=V(10),K=V(88),J=V(11).f,ee=V(116).set,te=V(119),ne=V(122),re=V(123),ae=V(120),oe=F.MutationObserver||F.WebKitMutationObserver,ie=F.document,se=F.process,ce=F.Promise,de=J(F,"queueMicrotask"),le=de&&de.value,ve,fe,he,me,ue,pe,ye,be;le||(ve=function(){var ge,_e;for(ae&&(ge=se.domain)&&ge.exit();fe;){_e=fe.fn,fe=fe.next;try{_e()}catch(Se){throw fe?me():he=void 0,Se}}he=void 0,ge&&ge.enter()},!te&&!ae&&!re&&oe&&ie?(ue=!0,pe=ie.createTextNode(""),new oe(ve).observe(pe,{characterData:!0}),me=function(){pe.data=ue=!ue}):!ne&&ce&&ce.resolve?(ye=ce.resolve(void 0),ye.constructor=ce,be=K(ye.then,ye),me=function(){be(ve)}):ae?me=function(){se.nextTick(ve)}:(ee=K(ee,F),me=function(){ee(ve)})),C.exports=le||function(ge){var _e={fn:ge,next:void 0};he&&(he.next=_e),fe||(fe=_e,me()),he=_e}},(C,$,V)=>{var F=V(32),K=V(10);C.exports=/ipad|iphone|ipod/i.test(F)&&K.Pebble!==void 0},(C,$,V)=>{var F=V(32);C.exports=/web0s(?!.*chrome)/i.test(F)},(C,$,V)=>{var F=V(49),K=V(24),J=V(125);C.exports=function(ee,te){if(F(ee),K(te)&&te.constructor===ee)return te;var ne=J.f(ee),re=ne.resolve;return re(te),ne.promise}},(C,$,V)=>{var F=V(34),K=function(J){var ee,te;this.promise=new J(function(ne,re){if(ee!==void 0||te!==void 0)throw TypeError("Bad Promise constructor");ee=ne,te=re}),this.resolve=F(ee),this.reject=F(te)};C.exports.f=function(J){return new K(J)}},(C,$,V)=>{var F=V(10);C.exports=function(K,J){var ee=F.console;ee&&ee.error&&(arguments.length==1?ee.error(K):ee.error(K,J))}},C=>{C.exports=function($){try{return{error:!1,value:$()}}catch(V){return{error:!0,value:V}}}},C=>{C.exports=typeof window=="object"},(C,$,V)=>{var F=V(9),K=V(14),J=V(34),ee=V(125),te=V(127),ne=V(87);F({target:"Promise",stat:!0},{allSettled:function(ae){var oe=this,ie=ee.f(oe),se=ie.resolve,ce=ie.reject,de=te(function(){var le=J(oe.resolve),ve=[],fe=0,he=1;ne(ae,function(me){var ue=fe++,pe=!1;he++,K(le,oe,me).then(function(ye){pe||(pe=!0,ve[ue]={status:"fulfilled",value:ye},--he||se(ve))},function(ye){pe||(pe=!0,ve[ue]={status:"rejected",reason:ye},--he||se(ve))})}),--he||se(ve)});return de.error&&ce(de.value),ie.promise}})},(C,$,V)=>{var F=V(9),K=V(34),J=V(27),ee=V(14),te=V(125),ne=V(127),re=V(87),ae="No one promise resolved";F({target:"Promise",stat:!0},{any:function(ie){var se=this,ce=J("AggregateError"),de=te.f(se),le=de.resolve,ve=de.reject,fe=ne(function(){var he=K(se.resolve),me=[],ue=0,pe=1,ye=!1;re(ie,function(be){var ge=ue++,_e=!1;pe++,ee(he,se,be).then(function(Se){_e||ye||(ye=!0,le(Se))},function(Se){_e||ye||(_e=!0,me[ge]=Se,--pe||ve(new ce(me,ae)))})}),--pe||ve(new ce(me,ae))});return fe.error&&ve(fe.value),de.promise}})},(C,$,V)=>{var F=V(9),K=V(39),J=V(108),ee=V(13),te=V(27),ne=V(25),re=V(113),ae=V(124),oe=V(50),ie=!!J&&ee(function(){J.prototype.finally.call({then:function(){}},function(){})});if(F({target:"Promise",proto:!0,real:!0,forced:ie},{finally:function(ce){var de=re(this,te("Promise")),le=ne(ce);return this.then(le?function(ve){return ae(de,ce()).then(function(){return ve})}:ce,le?function(ve){return ae(de,ce()).then(function(){throw ve})}:ce)}}),!K&&ne(J)){var se=te("Promise").prototype.finally;J.prototype.finally!==se&&oe(J.prototype,"finally",se,{unsafe:!0})}},(C,$,V)=>{var F=V(133).charAt,K=V(103),J=V(52),ee=V(78),te="String Iterator",ne=J.set,re=J.getterFor(te);ee(String,"String",function(ae){ne(this,{type:te,string:K(ae),index:0})},function(){var oe=re(this),ie=oe.string,se=oe.index,ce;return se>=ie.length?{value:void 0,done:!0}:(ce=F(ie,se),oe.index+=ce.length,{value:ce,done:!1})})},(C,$,V)=>{var F=V(19),K=V(63),J=V(103),ee=V(21),te=F("".charAt),ne=F("".charCodeAt),re=F("".slice),ae=function(oe){return function(ie,se){var ce=J(ee(ie)),de=K(se),le=ce.length,ve,fe;return de<0||de>=le?oe?"":void 0:(ve=ne(ce,de),ve<55296||ve>56319||de+1===le||(fe=ne(ce,de+1))<56320||fe>57343?oe?te(ce,de):ve:oe?re(ce,de,de+2):(ve-55296<<10)+(fe-56320)+65536)}};C.exports={codeAt:ae(!1),charAt:ae(!0)}},function(C,$){(function(V,F){F($)})(this,function(V){var F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(Re){return"Symbol("+Re+")"};function K(){}function J(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof commonjsGlobal!="undefined")return commonjsGlobal}var ee=J();function te(Re){return typeof Re=="object"&&Re!==null||typeof Re=="function"}var ne=K,re=Promise,ae=Promise.prototype.then,oe=Promise.resolve.bind(re),ie=Promise.reject.bind(re);function se(Re){return new re(Re)}function ce(Re){return oe(Re)}function de(Re){return ie(Re)}function le(Re,Be,Qe){return ae.call(Re,Be,Qe)}function ve(Re,Be,Qe){le(le(Re,Be,Qe),void 0,ne)}function fe(Re,Be){ve(Re,Be)}function he(Re,Be){ve(Re,void 0,Be)}function me(Re,Be,Qe){return le(Re,Be,Qe)}function ue(Re){le(Re,void 0,ne)}var pe=function(){var Re=ee&&ee.queueMicrotask;if(typeof Re=="function")return Re;var Be=ce(void 0);return function(Qe){return le(Be,Qe)}}();function ye(Re,Be,Qe){if(typeof Re!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(Re,Be,Qe)}function be(Re,Be,Qe){try{return ce(ye(Re,Be,Qe))}catch(gt){return de(gt)}}var ge=16384,_e=function(){function Re(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(Re.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),Re.prototype.push=function(Be){var Qe=this._back,gt=Qe;Qe._elements.length===ge-1&&(gt={_elements:[],_next:void 0}),Qe._elements.push(Be),gt!==Qe&&(this._back=gt,Qe._next=gt),++this._size},Re.prototype.shift=function(){var Be=this._front,Qe=Be,gt=this._cursor,xt=gt+1,jt=Be._elements,Ut=jt[gt];return xt===ge&&(Qe=Be._next,xt=0),--this._size,this._cursor=xt,Be!==Qe&&(this._front=Qe),jt[gt]=void 0,Ut},Re.prototype.forEach=function(Be){for(var Qe=this._cursor,gt=this._front,xt=gt._elements;(Qe!==xt.length||gt._next!==void 0)&&!(Qe===xt.length&&(gt=gt._next,xt=gt._elements,Qe=0,xt.length===0));)Be(xt[Qe]),++Qe},Re.prototype.peek=function(){var Be=this._front,Qe=this._cursor;return Be._elements[Qe]},Re}();function Se(Re,Be){Re._ownerReadableStream=Be,Be._reader=Re,Be._state==="readable"?$e(Re):Be._state==="closed"?Fe(Re):Ie(Re,Be._storedError)}function Ee(Re,Be){var Qe=Re._ownerReadableStream;return hr(Qe,Be)}function Ce(Re){Re._ownerReadableStream._state==="readable"?Ne(Re,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):De(Re,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),Re._ownerReadableStream._reader=void 0,Re._ownerReadableStream=void 0}function xe(Re){return new TypeError("Cannot "+Re+" a stream using a released reader")}function $e(Re){Re._closedPromise=se(function(Be,Qe){Re._closedPromise_resolve=Be,Re._closedPromise_reject=Qe})}function Ie(Re,Be){$e(Re),Ne(Re,Be)}function Fe(Re){$e(Re),Oe(Re)}function Ne(Re,Be){Re._closedPromise_reject!==void 0&&(ue(Re._closedPromise),Re._closedPromise_reject(Be),Re._closedPromise_resolve=void 0,Re._closedPromise_reject=void 0)}function De(Re,Be){Ie(Re,Be)}function Oe(Re){Re._closedPromise_resolve!==void 0&&(Re._closedPromise_resolve(void 0),Re._closedPromise_resolve=void 0,Re._closedPromise_reject=void 0)}var we=F("[[AbortSteps]]"),Ae=F("[[ErrorSteps]]"),ke=F("[[CancelSteps]]"),je=F("[[PullSteps]]"),ze=Number.isFinite||function(Re){return typeof Re=="number"&&isFinite(Re)},Ve=Math.trunc||function(Re){return Re<0?Math.ceil(Re):Math.floor(Re)};function Xe(Re){return typeof Re=="object"||typeof Re=="function"}function Ye(Re,Be){if(Re!==void 0&&!Xe(Re))throw new TypeError(Be+" is not an object.")}function at(Re,Be){if(typeof Re!="function")throw new TypeError(Be+" is not a function.")}function Ue(Re){return typeof Re=="object"&&Re!==null||typeof Re=="function"}function Le(Re,Be){if(!Ue(Re))throw new TypeError(Be+" is not an object.")}function Te(Re,Be,Qe){if(Re===void 0)throw new TypeError("Parameter "+Be+" is required in '"+Qe+"'.")}function Pe(Re,Be,Qe){if(Re===void 0)throw new TypeError(Be+" is required in '"+Qe+"'.")}function Me(Re){return Number(Re)}function He(Re){return Re===0?0:Re}function We(Re){return He(Ve(Re))}function Ke(Re,Be){var Qe=0,gt=Number.MAX_SAFE_INTEGER,xt=Number(Re);if(xt=He(xt),!ze(xt))throw new TypeError(Be+" is not a finite number");if(xt=We(xt),xt<Qe||xt>gt)throw new TypeError(Be+" is outside the accepted range of "+Qe+" to "+gt+", inclusive");return!ze(xt)||xt===0?0:xt}function rt(Re,Be){if(!xr(Re))throw new TypeError(Be+" is not a ReadableStream.")}function st(Re){return new vt(Re)}function it(Re,Be){Re._reader._readRequests.push(Be)}function Je(Re,Be,Qe){var gt=Re._reader,xt=gt._readRequests.shift();Qe?xt._closeSteps():xt._chunkSteps(Be)}function ct(Re){return Re._reader._readRequests.length}function dt(Re){var Be=Re._reader;return!(Be===void 0||!ht(Be))}var vt=function(){function Re(Be){if(Te(Be,1,"ReadableStreamDefaultReader"),rt(Be,"First parameter"),wr(Be))throw new TypeError("This stream has already been locked for exclusive reading by another reader");Se(this,Be),this._readRequests=new _e}return Object.defineProperty(Re.prototype,"closed",{get:function(){return ht(this)?this._closedPromise:de(Rt("closed"))},enumerable:!1,configurable:!0}),Re.prototype.cancel=function(Be){return Be===void 0&&(Be=void 0),ht(this)?this._ownerReadableStream===void 0?de(xe("cancel")):Ee(this,Be):de(Rt("cancel"))},Re.prototype.read=function(){if(!ht(this))return de(Rt("read"));if(this._ownerReadableStream===void 0)return de(xe("read from"));var Be,Qe,gt=se(function(jt,Ut){Be=jt,Qe=Ut}),xt={_chunkSteps:function(jt){return Be({value:jt,done:!1})},_closeSteps:function(){return Be({value:void 0,done:!0})},_errorSteps:function(jt){return Qe(jt)}};return bt(this,xt),gt},Re.prototype.releaseLock=function(){if(!ht(this))throw Rt("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Ce(this)}},Re}();Object.defineProperties(vt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(vt.prototype,F.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function ht(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_readRequests")?!1:Re instanceof vt}function bt(Re,Be){var Qe=Re._ownerReadableStream;Qe._disturbed=!0,Qe._state==="closed"?Be._closeSteps():Qe._state==="errored"?Be._errorSteps(Qe._storedError):Qe._readableStreamController[je](Be)}function Rt(Re){return new TypeError("ReadableStreamDefaultReader.prototype."+Re+" can only be used on a ReadableStreamDefaultReader")}var wt,lt;typeof F.asyncIterator=="symbol"&&(lt=(wt={},wt[F.asyncIterator]=function(){return this},wt),Object.defineProperty(lt,F.asyncIterator,{enumerable:!1}));var ut=function(){function Re(Be,Qe){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=Be,this._preventCancel=Qe}return Re.prototype.next=function(){var Be=this,Qe=function(){return Be._nextSteps()};return this._ongoingPromise=this._ongoingPromise?me(this._ongoingPromise,Qe,Qe):Qe(),this._ongoingPromise},Re.prototype.return=function(Be){var Qe=this,gt=function(){return Qe._returnSteps(Be)};return this._ongoingPromise?me(this._ongoingPromise,gt,gt):gt()},Re.prototype._nextSteps=function(){var Be=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var Qe=this._reader;if(Qe._ownerReadableStream===void 0)return de(xe("iterate"));var gt,xt,jt=se(function(mn,In){gt=mn,xt=In}),Ut={_chunkSteps:function(mn){Be._ongoingPromise=void 0,pe(function(){return gt({value:mn,done:!1})})},_closeSteps:function(){Be._ongoingPromise=void 0,Be._isFinished=!0,Ce(Qe),gt({value:void 0,done:!0})},_errorSteps:function(mn){Be._ongoingPromise=void 0,Be._isFinished=!0,Ce(Qe),xt(mn)}};return bt(Qe,Ut),jt},Re.prototype._returnSteps=function(Be){if(this._isFinished)return Promise.resolve({value:Be,done:!0});this._isFinished=!0;var Qe=this._reader;if(Qe._ownerReadableStream===void 0)return de(xe("finish iterating"));if(!this._preventCancel){var gt=Ee(Qe,Be);return Ce(Qe),me(gt,function(){return{value:Be,done:!0}})}return Ce(Qe),ce({value:Be,done:!0})},Re}(),Ge={next:function(){return Ze(this)?this._asyncIteratorImpl.next():de(nt("next"))},return:function(Re){return Ze(this)?this._asyncIteratorImpl.return(Re):de(nt("return"))}};lt!==void 0&&Object.setPrototypeOf(Ge,lt);function et(Re,Be){var Qe=st(Re),gt=new ut(Qe,Be),xt=Object.create(Ge);return xt._asyncIteratorImpl=gt,xt}function Ze(Re){if(!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_asyncIteratorImpl"))return!1;try{return Re._asyncIteratorImpl instanceof ut}catch(Be){return!1}}function nt(Re){return new TypeError("ReadableStreamAsyncIterator."+Re+" can only be used on a ReadableSteamAsyncIterator")}var tt=Number.isNaN||function(Re){return Re!==Re};function qe(Re){return Re.slice()}function ot(Re,Be,Qe,gt,xt){new Uint8Array(Re).set(new Uint8Array(Qe,gt,xt),Be)}function ft(Re){return Re}function yt(Re){return!1}function $t(Re,Be,Qe){if(Re.slice)return Re.slice(Be,Qe);var gt=Qe-Be,xt=new ArrayBuffer(gt);return ot(xt,0,Re,Be,gt),xt}function kt(Re){return!(typeof Re!="number"||tt(Re)||Re<0)}function Dt(Re){var Be=$t(Re.buffer,Re.byteOffset,Re.byteOffset+Re.byteLength);return new Uint8Array(Be)}function St(Re){var Be=Re._queue.shift();return Re._queueTotalSize-=Be.size,Re._queueTotalSize<0&&(Re._queueTotalSize=0),Be.value}function Bt(Re,Be,Qe){if(!kt(Qe)||Qe===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");Re._queue.push({value:Be,size:Qe}),Re._queueTotalSize+=Qe}function It(Re){var Be=Re._queue.peek();return Be.value}function Pt(Re){Re._queue=new _e,Re._queueTotalSize=0}var Tt=function(){function Re(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Re.prototype,"view",{get:function(){if(!Ht(this))throw Qt("view");return this._view},enumerable:!1,configurable:!0}),Re.prototype.respond=function(Be){if(!Ht(this))throw Qt("respond");if(Te(Be,1,"respond"),Be=Ke(Be,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");yt(this._view.buffer),vn(this._associatedReadableByteStreamController,Be)},Re.prototype.respondWithNewView=function(Be){if(!Ht(this))throw Qt("respondWithNewView");if(Te(Be,1,"respondWithNewView"),!ArrayBuffer.isView(Be))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");yt(Be.buffer),bn(this._associatedReadableByteStreamController,Be)},Re}();Object.defineProperties(Tt.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Tt.prototype,F.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var Ct=function(){function Re(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Re.prototype,"byobRequest",{get:function(){if(!At(this))throw Yt("byobRequest");return Lt(this)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"desiredSize",{get:function(){if(!At(this))throw Yt("desiredSize");return Xt(this)},enumerable:!1,configurable:!0}),Re.prototype.close=function(){if(!At(this))throw Yt("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var Be=this._controlledReadableByteStream._state;if(Be!=="readable")throw new TypeError("The stream (in "+Be+" state) is not in the readable state and cannot be closed");Et(this)},Re.prototype.enqueue=function(Be){if(!At(this))throw Yt("enqueue");if(Te(Be,1,"enqueue"),!ArrayBuffer.isView(Be))throw new TypeError("chunk must be an array buffer view");if(Be.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(Be.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var Qe=this._controlledReadableByteStream._state;if(Qe!=="readable")throw new TypeError("The stream (in "+Qe+" state) is not in the readable state and cannot be enqueued to");Nt(this,Be)},Re.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!At(this))throw Yt("error");Mt(this,Be)},Re.prototype[ke]=function(Be){zt(this),Pt(this);var Qe=this._cancelAlgorithm(Be);return _t(this),Qe},Re.prototype[je]=function(Be){var Qe=this._controlledReadableByteStream;if(this._queueTotalSize>0){var gt=this._queue.shift();this._queueTotalSize-=gt.byteLength,Cn(this);var xt=new Uint8Array(gt.buffer,gt.byteOffset,gt.byteLength);Be._chunkSteps(xt);return}var jt=this._autoAllocateChunkSize;if(jt!==void 0){var Ut=void 0;try{Ut=new ArrayBuffer(jt)}catch(In){Be._errorSteps(In);return}var mn={buffer:Ut,bufferByteLength:jt,byteOffset:0,byteLength:jt,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(mn)}it(Qe,Be),Gt(this)},Re}();Object.defineProperties(Ct.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Ct.prototype,F.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function At(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_controlledReadableByteStream")?!1:Re instanceof Ct}function Ht(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_associatedReadableByteStreamController")?!1:Re instanceof Tt}function Gt(Re){var Be=pt(Re);if(Be){if(Re._pulling){Re._pullAgain=!0;return}Re._pulling=!0;var Qe=Re._pullAlgorithm();ve(Qe,function(){Re._pulling=!1,Re._pullAgain&&(Re._pullAgain=!1,Gt(Re))},function(gt){Mt(Re,gt)})}}function zt(Re){Wt(Re),Re._pendingPullIntos=new _e}function Ft(Re,Be){var Qe=!1;Re._state==="closed"&&(Qe=!0);var gt=Vt(Be);Be.readerType==="default"?Je(Re,gt,Qe):Ln(Re,gt,Qe)}function Vt(Re){var Be=Re.bytesFilled,Qe=Re.elementSize;return new Re.viewConstructor(Re.buffer,Re.byteOffset,Be/Qe)}function Kt(Re,Be,Qe,gt){Re._queue.push({buffer:Be,byteOffset:Qe,byteLength:gt}),Re._queueTotalSize+=gt}function qt(Re,Be){var Qe=Be.elementSize,gt=Be.bytesFilled-Be.bytesFilled%Qe,xt=Math.min(Re._queueTotalSize,Be.byteLength-Be.bytesFilled),jt=Be.bytesFilled+xt,Ut=jt-jt%Qe,mn=xt,In=!1;Ut>gt&&(mn=Ut-Be.bytesFilled,In=!0);for(var kn=Re._queue;mn>0;){var Mn=kn.peek(),Dn=Math.min(mn,Mn.byteLength),ir=Be.byteOffset+Be.bytesFilled;ot(Be.buffer,ir,Mn.buffer,Mn.byteOffset,Dn),Mn.byteLength===Dn?kn.shift():(Mn.byteOffset+=Dn,Mn.byteLength-=Dn),Re._queueTotalSize-=Dn,ln(Re,Dn,Be),mn-=Dn}return In}function ln(Re,Be,Qe){Qe.bytesFilled+=Be}function Cn(Re){Re._queueTotalSize===0&&Re._closeRequested?(_t(Re),Gr(Re._controlledReadableByteStream)):Gt(Re)}function Wt(Re){Re._byobRequest!==null&&(Re._byobRequest._associatedReadableByteStreamController=void 0,Re._byobRequest._view=null,Re._byobRequest=null)}function Jt(Re){for(;Re._pendingPullIntos.length>0;){if(Re._queueTotalSize===0)return;var Be=Re._pendingPullIntos.peek();qt(Re,Be)&&(Ot(Re),Ft(Re._controlledReadableByteStream,Be))}}function dn(Re,Be,Qe){var gt=Re._controlledReadableByteStream,xt=1;Be.constructor!==DataView&&(xt=Be.constructor.BYTES_PER_ELEMENT);var jt=Be.constructor,Ut=Be.buffer,mn={buffer:Ut,bufferByteLength:Ut.byteLength,byteOffset:Be.byteOffset,byteLength:Be.byteLength,bytesFilled:0,elementSize:xt,viewConstructor:jt,readerType:"byob"};if(Re._pendingPullIntos.length>0){Re._pendingPullIntos.push(mn),Fn(gt,Qe);return}if(gt._state==="closed"){var In=new jt(mn.buffer,mn.byteOffset,0);Qe._closeSteps(In);return}if(Re._queueTotalSize>0){if(qt(Re,mn)){var kn=Vt(mn);Cn(Re),Qe._chunkSteps(kn);return}if(Re._closeRequested){var Mn=new TypeError("Insufficient bytes to fill elements in the given buffer");Mt(Re,Mn),Qe._errorSteps(Mn);return}}Re._pendingPullIntos.push(mn),Fn(gt,Qe),Gt(Re)}function sn(Re,Be){var Qe=Re._controlledReadableByteStream;if(nr(Qe))for(;Vn(Qe)>0;){var gt=Ot(Re);Ft(Qe,gt)}}function gn(Re,Be,Qe){if(ln(Re,Be,Qe),!(Qe.bytesFilled<Qe.elementSize)){Ot(Re);var gt=Qe.bytesFilled%Qe.elementSize;if(gt>0){var xt=Qe.byteOffset+Qe.bytesFilled,jt=$t(Qe.buffer,xt-gt,xt);Kt(Re,jt,0,jt.byteLength)}Qe.bytesFilled-=gt,Ft(Re._controlledReadableByteStream,Qe),Jt(Re)}}function mt(Re,Be){var Qe=Re._pendingPullIntos.peek();Wt(Re);var gt=Re._controlledReadableByteStream._state;gt==="closed"?sn(Re):gn(Re,Be,Qe),Gt(Re)}function Ot(Re){var Be=Re._pendingPullIntos.shift();return Be}function pt(Re){var Be=Re._controlledReadableByteStream;if(Be._state!=="readable"||Re._closeRequested||!Re._started)return!1;if(dt(Be)&&ct(Be)>0||nr(Be)&&Vn(Be)>0)return!0;var Qe=Xt(Re);return Qe>0}function _t(Re){Re._pullAlgorithm=void 0,Re._cancelAlgorithm=void 0}function Et(Re){var Be=Re._controlledReadableByteStream;if(!(Re._closeRequested||Be._state!=="readable")){if(Re._queueTotalSize>0){Re._closeRequested=!0;return}if(Re._pendingPullIntos.length>0){var Qe=Re._pendingPullIntos.peek();if(Qe.bytesFilled>0){var gt=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Mt(Re,gt),gt}}_t(Re),Gr(Be)}}function Nt(Re,Be){var Qe=Re._controlledReadableByteStream;if(!(Re._closeRequested||Qe._state!=="readable")){var gt=Be.buffer,xt=Be.byteOffset,jt=Be.byteLength,Ut=gt;if(Re._pendingPullIntos.length>0){var mn=Re._pendingPullIntos.peek();yt(mn.buffer),mn.buffer=mn.buffer}if(Wt(Re),dt(Qe))if(ct(Qe)===0)Kt(Re,Ut,xt,jt);else{Re._pendingPullIntos.length>0&&Ot(Re);var In=new Uint8Array(Ut,xt,jt);Je(Qe,In,!1)}else nr(Qe)?(Kt(Re,Ut,xt,jt),Jt(Re)):Kt(Re,Ut,xt,jt);Gt(Re)}}function Mt(Re,Be){var Qe=Re._controlledReadableByteStream;Qe._state==="readable"&&(zt(Re),Pt(Re),_t(Re),Ua(Qe,Be))}function Lt(Re){if(Re._byobRequest===null&&Re._pendingPullIntos.length>0){var Be=Re._pendingPullIntos.peek(),Qe=new Uint8Array(Be.buffer,Be.byteOffset+Be.bytesFilled,Be.byteLength-Be.bytesFilled),gt=Object.create(Tt.prototype);Tn(gt,Re,Qe),Re._byobRequest=gt}return Re._byobRequest}function Xt(Re){var Be=Re._controlledReadableByteStream._state;return Be==="errored"?null:Be==="closed"?0:Re._strategyHWM-Re._queueTotalSize}function vn(Re,Be){var Qe=Re._pendingPullIntos.peek(),gt=Re._controlledReadableByteStream._state;if(gt==="closed"){if(Be!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(Be===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(Qe.bytesFilled+Be>Qe.byteLength)throw new RangeError("bytesWritten out of range")}Qe.buffer=Qe.buffer,mt(Re,Be)}function bn(Re,Be){var Qe=Re._pendingPullIntos.peek(),gt=Re._controlledReadableByteStream._state;if(gt==="closed"){if(Be.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(Be.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(Qe.byteOffset+Qe.bytesFilled!==Be.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(Qe.bufferByteLength!==Be.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(Qe.bytesFilled+Be.byteLength>Qe.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");var xt=Be.byteLength;Qe.buffer=Be.buffer,mt(Re,xt)}function _n(Re,Be,Qe,gt,xt,jt,Ut){Be._controlledReadableByteStream=Re,Be._pullAgain=!1,Be._pulling=!1,Be._byobRequest=null,Be._queue=Be._queueTotalSize=void 0,Pt(Be),Be._closeRequested=!1,Be._started=!1,Be._strategyHWM=jt,Be._pullAlgorithm=gt,Be._cancelAlgorithm=xt,Be._autoAllocateChunkSize=Ut,Be._pendingPullIntos=new _e,Re._readableStreamController=Be;var mn=Qe();ve(ce(mn),function(){Be._started=!0,Gt(Be)},function(In){Mt(Be,In)})}function Nn(Re,Be,Qe){var gt=Object.create(Ct.prototype),xt=function(){},jt=function(){return ce(void 0)},Ut=function(){return ce(void 0)};Be.start!==void 0&&(xt=function(){return Be.start(gt)}),Be.pull!==void 0&&(jt=function(){return Be.pull(gt)}),Be.cancel!==void 0&&(Ut=function(In){return Be.cancel(In)});var mn=Be.autoAllocateChunkSize;if(mn===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");_n(Re,gt,xt,jt,Ut,Qe,mn)}function Tn(Re,Be,Qe){Re._associatedReadableByteStreamController=Be,Re._view=Qe}function Qt(Re){return new TypeError("ReadableStreamBYOBRequest.prototype."+Re+" can only be used on a ReadableStreamBYOBRequest")}function Yt(Re){return new TypeError("ReadableByteStreamController.prototype."+Re+" can only be used on a ReadableByteStreamController")}function wn(Re){return new Un(Re)}function Fn(Re,Be){Re._reader._readIntoRequests.push(Be)}function Ln(Re,Be,Qe){var gt=Re._reader,xt=gt._readIntoRequests.shift();Qe?xt._closeSteps(Be):xt._chunkSteps(Be)}function Vn(Re){return Re._reader._readIntoRequests.length}function nr(Re){var Be=Re._reader;return!(Be===void 0||!Pn(Be))}var Un=function(){function Re(Be){if(Te(Be,1,"ReadableStreamBYOBReader"),rt(Be,"First parameter"),wr(Be))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!At(Be._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");Se(this,Be),this._readIntoRequests=new _e}return Object.defineProperty(Re.prototype,"closed",{get:function(){return Pn(this)?this._closedPromise:de(lr("closed"))},enumerable:!1,configurable:!0}),Re.prototype.cancel=function(Be){return Be===void 0&&(Be=void 0),Pn(this)?this._ownerReadableStream===void 0?de(xe("cancel")):Ee(this,Be):de(lr("cancel"))},Re.prototype.read=function(Be){if(!Pn(this))return de(lr("read"));if(!ArrayBuffer.isView(Be))return de(new TypeError("view must be an array buffer view"));if(Be.byteLength===0)return de(new TypeError("view must have non-zero byteLength"));if(Be.buffer.byteLength===0)return de(new TypeError("view's buffer must have non-zero byteLength"));if(yt(Be.buffer),this._ownerReadableStream===void 0)return de(xe("read from"));var Qe,gt,xt=se(function(Ut,mn){Qe=Ut,gt=mn}),jt={_chunkSteps:function(Ut){return Qe({value:Ut,done:!1})},_closeSteps:function(Ut){return Qe({value:Ut,done:!0})},_errorSteps:function(Ut){return gt(Ut)}};return rr(this,Be,jt),xt},Re.prototype.releaseLock=function(){if(!Pn(this))throw lr("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Ce(this)}},Re}();Object.defineProperties(Un.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Un.prototype,F.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function Pn(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_readIntoRequests")?!1:Re instanceof Un}function rr(Re,Be,Qe){var gt=Re._ownerReadableStream;gt._disturbed=!0,gt._state==="errored"?Qe._errorSteps(gt._storedError):dn(gt._readableStreamController,Be,Qe)}function lr(Re){return new TypeError("ReadableStreamBYOBReader.prototype."+Re+" can only be used on a ReadableStreamBYOBReader")}function En(Re,Be){var Qe=Re.highWaterMark;if(Qe===void 0)return Be;if(tt(Qe)||Qe<0)throw new RangeError("Invalid highWaterMark");return Qe}function Zt(Re){var Be=Re.size;return Be||function(){return 1}}function Sn(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.highWaterMark,gt=Re==null?void 0:Re.size;return{highWaterMark:Qe===void 0?void 0:Me(Qe),size:gt===void 0?void 0:$n(gt,Be+" has member 'size' that")}}function $n(Re,Be){return at(Re,Be),function(Qe){return Me(Re(Qe))}}function On(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.abort,gt=Re==null?void 0:Re.close,xt=Re==null?void 0:Re.start,jt=Re==null?void 0:Re.type,Ut=Re==null?void 0:Re.write;return{abort:Qe===void 0?void 0:An(Qe,Re,Be+" has member 'abort' that"),close:gt===void 0?void 0:Kn(gt,Re,Be+" has member 'close' that"),start:xt===void 0?void 0:Xn(xt,Re,Be+" has member 'start' that"),write:Ut===void 0?void 0:or(Ut,Re,Be+" has member 'write' that"),type:jt}}function An(Re,Be,Qe){return at(Re,Qe),function(gt){return be(Re,Be,[gt])}}function Kn(Re,Be,Qe){return at(Re,Qe),function(){return be(Re,Be,[])}}function Xn(Re,Be,Qe){return at(Re,Qe),function(gt){return ye(Re,Be,[gt])}}function or(Re,Be,Qe){return at(Re,Qe),function(gt,xt){return be(Re,Be,[gt,xt])}}function cr(Re,Be){if(!Yn(Re))throw new TypeError(Be+" is not a WritableStream.")}function ur(Re){if(typeof Re!="object"||Re===null)return!1;try{return typeof Re.aborted=="boolean"}catch(Be){return!1}}var hn=typeof AbortController=="function";function yn(){if(hn)return new AbortController}var Bn=function(){function Re(Be,Qe){Be===void 0&&(Be={}),Qe===void 0&&(Qe={}),Be===void 0?Be=null:Le(Be,"First parameter");var gt=Sn(Qe,"Second parameter"),xt=On(Be,"First parameter");fr(this);var jt=xt.type;if(jt!==void 0)throw new RangeError("Invalid type is specified");var Ut=Zt(gt),mn=En(gt,1);fo(this,xt,mn,Ut)}return Object.defineProperty(Re.prototype,"locked",{get:function(){if(!Yn(this))throw ea("locked");return Jn(this)},enumerable:!1,configurable:!0}),Re.prototype.abort=function(Be){return Be===void 0&&(Be=void 0),Yn(this)?Jn(this)?de(new TypeError("Cannot abort a stream that already has a writer")):pr(this,Be):de(ea("abort"))},Re.prototype.close=function(){return Yn(this)?Jn(this)?de(new TypeError("Cannot close a stream that already has a writer")):mr(this)?de(new TypeError("Cannot close an already-closing stream")):gr(this):de(ea("close"))},Re.prototype.getWriter=function(){if(!Yn(this))throw ea("getWriter");return zn(this)},Re}();Object.defineProperties(Bn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Bn.prototype,F.toStringTag,{value:"WritableStream",configurable:!0});function zn(Re){return new Vr(Re)}function Gn(Re,Be,Qe,gt,xt,jt){xt===void 0&&(xt=1),jt===void 0&&(jt=function(){return 1});var Ut=Object.create(Bn.prototype);fr(Ut);var mn=Object.create(Dr.prototype);return Aa(Ut,mn,Re,Be,Qe,gt,xt,jt),Ut}function fr(Re){Re._state="writable",Re._storedError=void 0,Re._writer=void 0,Re._writableStreamController=void 0,Re._writeRequests=new _e,Re._inFlightWriteRequest=void 0,Re._closeRequest=void 0,Re._inFlightCloseRequest=void 0,Re._pendingAbortRequest=void 0,Re._backpressure=!1}function Yn(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_writableStreamController")?!1:Re instanceof Bn}function Jn(Re){return Re._writer!==void 0}function pr(Re,Be){var Qe;if(Re._state==="closed"||Re._state==="errored")return ce(void 0);Re._writableStreamController._abortReason=Be,(Qe=Re._writableStreamController._abortController)===null||Qe===void 0||Qe.abort();var gt=Re._state;if(gt==="closed"||gt==="errored")return ce(void 0);if(Re._pendingAbortRequest!==void 0)return Re._pendingAbortRequest._promise;var xt=!1;gt==="erroring"&&(xt=!0,Be=void 0);var jt=se(function(Ut,mn){Re._pendingAbortRequest={_promise:void 0,_resolve:Ut,_reject:mn,_reason:Be,_wasAlreadyErroring:xt}});return Re._pendingAbortRequest._promise=jt,xt||Ir(Re,Be),jt}function gr(Re){var Be=Re._state;if(Be==="closed"||Be==="errored")return de(new TypeError("The stream (in "+Be+" state) is not in the writable state and cannot be closed"));var Qe=se(function(xt,jt){var Ut={_resolve:xt,_reject:jt};Re._closeRequest=Ut}),gt=Re._writer;return gt!==void 0&&Re._backpressure&&Be==="writable"&&Ca(gt),po(Re._writableStreamController),Qe}function zr(Re){var Be=se(function(Qe,gt){var xt={_resolve:Qe,_reject:gt};Re._writeRequests.push(xt)});return Be}function Or(Re,Be){var Qe=Re._state;if(Qe==="writable"){Ir(Re,Be);return}fn(Re)}function Ir(Re,Be){var Qe=Re._writableStreamController;Re._state="erroring",Re._storedError=Be;var gt=Re._writer;gt!==void 0&&Ta(gt,Be),!Hr(Re)&&Qe._started&&fn(Re)}function fn(Re){Re._state="errored",Re._writableStreamController[Ae]();var Be=Re._storedError;if(Re._writeRequests.forEach(function(xt){xt._reject(Be)}),Re._writeRequests=new _e,Re._pendingAbortRequest===void 0){Jr(Re);return}var Qe=Re._pendingAbortRequest;if(Re._pendingAbortRequest=void 0,Qe._wasAlreadyErroring){Qe._reject(Be),Jr(Re);return}var gt=Re._writableStreamController[we](Qe._reason);ve(gt,function(){Qe._resolve(),Jr(Re)},function(xt){Qe._reject(xt),Jr(Re)})}function Rn(Re){Re._inFlightWriteRequest._resolve(void 0),Re._inFlightWriteRequest=void 0}function Wn(Re,Be){Re._inFlightWriteRequest._reject(Be),Re._inFlightWriteRequest=void 0,Or(Re,Be)}function ar(Re){Re._inFlightCloseRequest._resolve(void 0),Re._inFlightCloseRequest=void 0;var Be=Re._state;Be==="erroring"&&(Re._storedError=void 0,Re._pendingAbortRequest!==void 0&&(Re._pendingAbortRequest._resolve(),Re._pendingAbortRequest=void 0)),Re._state="closed";var Qe=Re._writer;Qe!==void 0&&Da(Qe)}function qn(Re,Be){Re._inFlightCloseRequest._reject(Be),Re._inFlightCloseRequest=void 0,Re._pendingAbortRequest!==void 0&&(Re._pendingAbortRequest._reject(Be),Re._pendingAbortRequest=void 0),Or(Re,Be)}function mr(Re){return!(Re._closeRequest===void 0&&Re._inFlightCloseRequest===void 0)}function Hr(Re){return!(Re._inFlightWriteRequest===void 0&&Re._inFlightCloseRequest===void 0)}function Yr(Re){Re._inFlightCloseRequest=Re._closeRequest,Re._closeRequest=void 0}function Mr(Re){Re._inFlightWriteRequest=Re._writeRequests.shift()}function Jr(Re){Re._closeRequest!==void 0&&(Re._closeRequest._reject(Re._storedError),Re._closeRequest=void 0);var Be=Re._writer;Be!==void 0&&_a(Be,Re._storedError)}function va(Re,Be){var Qe=Re._writer;Qe!==void 0&&Be!==Re._backpressure&&(Be?_o(Qe):Ca(Qe)),Re._backpressure=Be}var Vr=function(){function Re(Be){if(Te(Be,1,"WritableStreamDefaultWriter"),cr(Be,"First parameter"),Jn(Be))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=Be,Be._writer=this;var Qe=Be._state;if(Qe==="writable")!mr(Be)&&Be._backpressure?na(this):Fa(this),ta(this);else if(Qe==="erroring")Sa(this,Be._storedError),ta(this);else if(Qe==="closed")Fa(this),yo(this);else{var gt=Be._storedError;Sa(this,gt),Ma(this,gt)}}return Object.defineProperty(Re.prototype,"closed",{get:function(){return Ar(this)?this._closedPromise:de(Nr("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"desiredSize",{get:function(){if(!Ar(this))throw Nr("desiredSize");if(this._ownerWritableStream===void 0)throw Wr("desiredSize");return uo(this)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"ready",{get:function(){return Ar(this)?this._readyPromise:de(Nr("ready"))},enumerable:!1,configurable:!0}),Re.prototype.abort=function(Be){return Be===void 0&&(Be=void 0),Ar(this)?this._ownerWritableStream===void 0?de(Wr("abort")):so(this,Be):de(Nr("abort"))},Re.prototype.close=function(){if(!Ar(this))return de(Nr("close"));var Be=this._ownerWritableStream;return Be===void 0?de(Wr("close")):mr(Be)?de(new TypeError("Cannot close an already-closing stream")):wa(this)},Re.prototype.releaseLock=function(){if(!Ar(this))throw Nr("releaseLock");var Be=this._ownerWritableStream;Be!==void 0&&Pa(this)},Re.prototype.write=function(Be){return Be===void 0&&(Be=void 0),Ar(this)?this._ownerWritableStream===void 0?de(Wr("write to")):Oa(this,Be):de(Nr("write"))},Re}();Object.defineProperties(Vr.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Vr.prototype,F.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function Ar(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_ownerWritableStream")?!1:Re instanceof Vr}function so(Re,Be){var Qe=Re._ownerWritableStream;return pr(Qe,Be)}function wa(Re){var Be=Re._ownerWritableStream;return gr(Be)}function lo(Re){var Be=Re._ownerWritableStream,Qe=Be._state;return mr(Be)||Qe==="closed"?ce(void 0):Qe==="errored"?de(Be._storedError):wa(Re)}function co(Re,Be){Re._closedPromiseState==="pending"?_a(Re,Be):bo(Re,Be)}function Ta(Re,Be){Re._readyPromiseState==="pending"?La(Re,Be):So(Re,Be)}function uo(Re){var Be=Re._ownerWritableStream,Qe=Be._state;return Qe==="errored"||Qe==="erroring"?null:Qe==="closed"?0:Na(Be._writableStreamController)}function Pa(Re){var Be=Re._ownerWritableStream,Qe=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Ta(Re,Qe),co(Re,Qe),Be._writer=void 0,Re._ownerWritableStream=void 0}function Oa(Re,Be){var Qe=Re._ownerWritableStream,gt=Qe._writableStreamController,xt=mo(gt,Be);if(Qe!==Re._ownerWritableStream)return de(Wr("write to"));var jt=Qe._state;if(jt==="errored")return de(Qe._storedError);if(mr(Qe)||jt==="closed")return de(new TypeError("The stream is closing or closed and cannot be written to"));if(jt==="erroring")return de(Qe._storedError);var Ut=zr(Qe);return vo(gt,Be,xt),Ut}var Ia={},Dr=function(){function Re(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Re.prototype,"abortReason",{get:function(){if(!ga(this))throw ba("abortReason");return this._abortReason},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"signal",{get:function(){if(!ga(this))throw ba("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),Re.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!ga(this))throw ba("error");var Qe=this._controlledWritableStream._state;Qe==="writable"&&ka(this,Be)},Re.prototype[we]=function(Be){var Qe=this._abortAlgorithm(Be);return Qr(this),Qe},Re.prototype[Ae]=function(){Pt(this)},Re}();Object.defineProperties(Dr.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Dr.prototype,F.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function ga(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_controlledWritableStream")?!1:Re instanceof Dr}function Aa(Re,Be,Qe,gt,xt,jt,Ut,mn){Be._controlledWritableStream=Re,Re._writableStreamController=Be,Be._queue=void 0,Be._queueTotalSize=void 0,Pt(Be),Be._abortReason=void 0,Be._abortController=yn(),Be._started=!1,Be._strategySizeAlgorithm=mn,Be._strategyHWM=Ut,Be._writeAlgorithm=gt,Be._closeAlgorithm=xt,Be._abortAlgorithm=jt;var In=ya(Be);va(Re,In);var kn=Qe(),Mn=ce(kn);ve(Mn,function(){Be._started=!0,Zr(Be)},function(Dn){Be._started=!0,Or(Re,Dn)})}function fo(Re,Be,Qe,gt){var xt=Object.create(Dr.prototype),jt=function(){},Ut=function(){return ce(void 0)},mn=function(){return ce(void 0)},In=function(){return ce(void 0)};Be.start!==void 0&&(jt=function(){return Be.start(xt)}),Be.write!==void 0&&(Ut=function(kn){return Be.write(kn,xt)}),Be.close!==void 0&&(mn=function(){return Be.close()}),Be.abort!==void 0&&(In=function(kn){return Be.abort(kn)}),Aa(Re,xt,jt,Ut,mn,In,Qe,gt)}function Qr(Re){Re._writeAlgorithm=void 0,Re._closeAlgorithm=void 0,Re._abortAlgorithm=void 0,Re._strategySizeAlgorithm=void 0}function po(Re){Bt(Re,Ia,0),Zr(Re)}function mo(Re,Be){try{return Re._strategySizeAlgorithm(Be)}catch(Qe){return ha(Re,Qe),1}}function Na(Re){return Re._strategyHWM-Re._queueTotalSize}function vo(Re,Be,Qe){try{Bt(Re,Be,Qe)}catch(jt){ha(Re,jt);return}var gt=Re._controlledWritableStream;if(!mr(gt)&&gt._state==="writable"){var xt=ya(Re);va(gt,xt)}Zr(Re)}function Zr(Re){var Be=Re._controlledWritableStream;if(Re._started&&Be._inFlightWriteRequest===void 0){var Qe=Be._state;if(Qe==="erroring"){fn(Be);return}if(Re._queue.length!==0){var gt=It(Re);gt===Ia?go(Re):ho(Re,gt)}}}function ha(Re,Be){Re._controlledWritableStream._state==="writable"&&ka(Re,Be)}function go(Re){var Be=Re._controlledWritableStream;Yr(Be),St(Re);var Qe=Re._closeAlgorithm();Qr(Re),ve(Qe,function(){ar(Be)},function(gt){qn(Be,gt)})}function ho(Re,Be){var Qe=Re._controlledWritableStream;Mr(Qe);var gt=Re._writeAlgorithm(Be);ve(gt,function(){Rn(Qe);var xt=Qe._state;if(St(Re),!mr(Qe)&&xt==="writable"){var jt=ya(Re);va(Qe,jt)}Zr(Re)},function(xt){Qe._state==="writable"&&Qr(Re),Wn(Qe,xt)})}function ya(Re){var Be=Na(Re);return Be<=0}function ka(Re,Be){var Qe=Re._controlledWritableStream;Qr(Re),Ir(Qe,Be)}function ea(Re){return new TypeError("WritableStream.prototype."+Re+" can only be used on a WritableStream")}function ba(Re){return new TypeError("WritableStreamDefaultController.prototype."+Re+" can only be used on a WritableStreamDefaultController")}function Nr(Re){return new TypeError("WritableStreamDefaultWriter.prototype."+Re+" can only be used on a WritableStreamDefaultWriter")}function Wr(Re){return new TypeError("Cannot "+Re+" a stream using a released writer")}function ta(Re){Re._closedPromise=se(function(Be,Qe){Re._closedPromise_resolve=Be,Re._closedPromise_reject=Qe,Re._closedPromiseState="pending"})}function Ma(Re,Be){ta(Re),_a(Re,Be)}function yo(Re){ta(Re),Da(Re)}function _a(Re,Be){Re._closedPromise_reject!==void 0&&(ue(Re._closedPromise),Re._closedPromise_reject(Be),Re._closedPromise_resolve=void 0,Re._closedPromise_reject=void 0,Re._closedPromiseState="rejected")}function bo(Re,Be){Ma(Re,Be)}function Da(Re){Re._closedPromise_resolve!==void 0&&(Re._closedPromise_resolve(void 0),Re._closedPromise_resolve=void 0,Re._closedPromise_reject=void 0,Re._closedPromiseState="resolved")}function na(Re){Re._readyPromise=se(function(Be,Qe){Re._readyPromise_resolve=Be,Re._readyPromise_reject=Qe}),Re._readyPromiseState="pending"}function Sa(Re,Be){na(Re),La(Re,Be)}function Fa(Re){na(Re),Ca(Re)}function La(Re,Be){Re._readyPromise_reject!==void 0&&(ue(Re._readyPromise),Re._readyPromise_reject(Be),Re._readyPromise_resolve=void 0,Re._readyPromise_reject=void 0,Re._readyPromiseState="rejected")}function _o(Re){na(Re)}function So(Re,Be){Sa(Re,Be)}function Ca(Re){Re._readyPromise_resolve!==void 0&&(Re._readyPromise_resolve(void 0),Re._readyPromise_resolve=void 0,Re._readyPromise_reject=void 0,Re._readyPromiseState="fulfilled")}var ja=typeof DOMException!="undefined"?DOMException:void 0;function Co(Re){if(!(typeof Re=="function"||typeof Re=="object"))return!1;try{return new Re,!0}catch(Be){return!1}}function Ro(){var Re=function(Qe,gt){this.message=Qe||"",this.name=gt||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return Re.prototype=Object.create(Error.prototype),Object.defineProperty(Re.prototype,"constructor",{value:Re,writable:!0,configurable:!0}),Re}var Eo=Co(ja)?ja:Ro();function Ba(Re,Be,Qe,gt,xt,jt){var Ut=st(Re),mn=zn(Be);Re._disturbed=!0;var In=!1,kn=ce(void 0);return se(function(Mn,Dn){var ir;if(jt!==void 0){if(ir=function(){var xn=new Eo("Aborted","AbortError"),jn=[];gt||jn.push(function(){return Be._state==="writable"?pr(Be,xn):ce(void 0)}),xt||jn.push(function(){return Re._state==="readable"?hr(Re,xn):ce(void 0)}),vr(function(){return Promise.all(jn.map(function(Zn){return Zn()}))},!0,xn)},jt.aborted){ir();return}jt.addEventListener("abort",ir)}function yr(){return se(function(xn,jn){function Zn(Cr){Cr?xn():le(jr(),Zn,jn)}Zn(!1)})}function jr(){return In?ce(!0):le(mn._readyPromise,function(){return se(function(xn,jn){bt(Ut,{_chunkSteps:function(Zn){kn=le(Oa(mn,Zn),void 0,K),xn(!1)},_closeSteps:function(){return xn(!0)},_errorSteps:jn})})})}if(dr(Re,Ut._closedPromise,function(xn){gt?Rr(!0,xn):vr(function(){return pr(Be,xn)},!0,xn)}),dr(Be,mn._closedPromise,function(xn){xt?Rr(!0,xn):vr(function(){return hr(Re,xn)},!0,xn)}),Sr(Re,Ut._closedPromise,function(){Qe?Rr():vr(function(){return lo(mn)})}),mr(Be)||Be._state==="closed"){var Tr=new TypeError("the destination writable stream closed before all data could be piped to it");xt?Rr(!0,Tr):vr(function(){return hr(Re,Tr)},!0,Tr)}ue(yr());function _r(){var xn=kn;return le(kn,function(){return xn!==kn?_r():void 0})}function dr(xn,jn,Zn){xn._state==="errored"?Zn(xn._storedError):he(jn,Zn)}function Sr(xn,jn,Zn){xn._state==="closed"?Zn():fe(jn,Zn)}function vr(xn,jn,Zn){if(In)return;In=!0,Be._state==="writable"&&!mr(Be)?fe(_r(),Cr):Cr();function Cr(){ve(xn(),function(){return Qn(jn,Zn)},function(Pr){return Qn(!0,Pr)})}}function Rr(xn,jn){In||(In=!0,Be._state==="writable"&&!mr(Be)?fe(_r(),function(){return Qn(xn,jn)}):Qn(xn,jn))}function Qn(xn,jn){Pa(mn),Ce(Ut),jt!==void 0&&jt.removeEventListener("abort",ir),xn?Dn(jn):Mn(void 0)}})}var Fr=function(){function Re(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Re.prototype,"desiredSize",{get:function(){if(!ra(this))throw ia("desiredSize");return Ra(this)},enumerable:!1,configurable:!0}),Re.prototype.close=function(){if(!ra(this))throw ia("close");if(!Lr(this))throw new TypeError("The stream is not in a state that permits close");Kr(this)},Re.prototype.enqueue=function(Be){if(Be===void 0&&(Be=void 0),!ra(this))throw ia("enqueue");if(!Lr(this))throw new TypeError("The stream is not in a state that permits enqueue");return oa(this,Be)},Re.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!ra(this))throw ia("error");Er(this,Be)},Re.prototype[ke]=function(Be){Pt(this);var Qe=this._cancelAlgorithm(Be);return aa(this),Qe},Re.prototype[je]=function(Be){var Qe=this._controlledReadableStream;if(this._queue.length>0){var gt=St(this);this._closeRequested&&this._queue.length===0?(aa(this),Gr(Qe)):Ur(this),Be._chunkSteps(gt)}else it(Qe,Be),Ur(this)},Re}();Object.defineProperties(Fr.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Fr.prototype,F.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function ra(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_controlledReadableStream")?!1:Re instanceof Fr}function Ur(Re){var Be=za(Re);if(Be){if(Re._pulling){Re._pullAgain=!0;return}Re._pulling=!0;var Qe=Re._pullAlgorithm();ve(Qe,function(){Re._pulling=!1,Re._pullAgain&&(Re._pullAgain=!1,Ur(Re))},function(gt){Er(Re,gt)})}}function za(Re){var Be=Re._controlledReadableStream;if(!Lr(Re)||!Re._started)return!1;if(wr(Be)&&ct(Be)>0)return!0;var Qe=Ra(Re);return Qe>0}function aa(Re){Re._pullAlgorithm=void 0,Re._cancelAlgorithm=void 0,Re._strategySizeAlgorithm=void 0}function Kr(Re){if(Lr(Re)){var Be=Re._controlledReadableStream;Re._closeRequested=!0,Re._queue.length===0&&(aa(Re),Gr(Be))}}function oa(Re,Be){if(Lr(Re)){var Qe=Re._controlledReadableStream;if(wr(Qe)&&ct(Qe)>0)Je(Qe,Be,!1);else{var gt=void 0;try{gt=Re._strategySizeAlgorithm(Be)}catch(xt){throw Er(Re,xt),xt}try{Bt(Re,Be,gt)}catch(xt){throw Er(Re,xt),xt}}Ur(Re)}}function Er(Re,Be){var Qe=Re._controlledReadableStream;Qe._state==="readable"&&(Pt(Re),aa(Re),Ua(Qe,Be))}function Ra(Re){var Be=Re._controlledReadableStream._state;return Be==="errored"?null:Be==="closed"?0:Re._strategyHWM-Re._queueTotalSize}function $o(Re){return!za(Re)}function Lr(Re){var Be=Re._controlledReadableStream._state;return!Re._closeRequested&&Be==="readable"}function Ha(Re,Be,Qe,gt,xt,jt,Ut){Be._controlledReadableStream=Re,Be._queue=void 0,Be._queueTotalSize=void 0,Pt(Be),Be._started=!1,Be._closeRequested=!1,Be._pullAgain=!1,Be._pulling=!1,Be._strategySizeAlgorithm=Ut,Be._strategyHWM=jt,Be._pullAlgorithm=gt,Be._cancelAlgorithm=xt,Re._readableStreamController=Be;var mn=Qe();ve(ce(mn),function(){Be._started=!0,Ur(Be)},function(In){Er(Be,In)})}function xo(Re,Be,Qe,gt){var xt=Object.create(Fr.prototype),jt=function(){},Ut=function(){return ce(void 0)},mn=function(){return ce(void 0)};Be.start!==void 0&&(jt=function(){return Be.start(xt)}),Be.pull!==void 0&&(Ut=function(){return Be.pull(xt)}),Be.cancel!==void 0&&(mn=function(In){return Be.cancel(In)}),Ha(Re,xt,jt,Ut,mn,Qe,gt)}function ia(Re){return new TypeError("ReadableStreamDefaultController.prototype."+Re+" can only be used on a ReadableStreamDefaultController")}function wo(Re,Be){return At(Re._readableStreamController)?Po(Re):To(Re)}function To(Re,Be){var Qe=st(Re),gt=!1,xt=!1,jt=!1,Ut=!1,mn,In,kn,Mn,Dn,ir=se(function(dr){Dn=dr});function yr(){if(gt)return xt=!0,ce(void 0);gt=!0;var dr={_chunkSteps:function(Sr){pe(function(){xt=!1;var vr=Sr,Rr=Sr;jt||oa(kn._readableStreamController,vr),Ut||oa(Mn._readableStreamController,Rr),gt=!1,xt&&yr()})},_closeSteps:function(){gt=!1,jt||Kr(kn._readableStreamController),Ut||Kr(Mn._readableStreamController),(!jt||!Ut)&&Dn(void 0)},_errorSteps:function(){gt=!1}};return bt(Qe,dr),ce(void 0)}function jr(dr){if(jt=!0,mn=dr,Ut){var Sr=qe([mn,In]),vr=hr(Re,Sr);Dn(vr)}return ir}function Tr(dr){if(Ut=!0,In=dr,jt){var Sr=qe([mn,In]),vr=hr(Re,Sr);Dn(vr)}return ir}function _r(){}return kn=Ea(_r,yr,jr),Mn=Ea(_r,yr,Tr),he(Qe._closedPromise,function(dr){Er(kn._readableStreamController,dr),Er(Mn._readableStreamController,dr),(!jt||!Ut)&&Dn(void 0)}),[kn,Mn]}function Po(Re){var Be=st(Re),Qe=!1,gt=!1,xt=!1,jt=!1,Ut=!1,mn,In,kn,Mn,Dn,ir=se(function(Qn){Dn=Qn});function yr(Qn){he(Qn._closedPromise,function(xn){Qn===Be&&(Mt(kn._readableStreamController,xn),Mt(Mn._readableStreamController,xn),(!jt||!Ut)&&Dn(void 0))})}function jr(){Pn(Be)&&(Ce(Be),Be=st(Re),yr(Be));var Qn={_chunkSteps:function(xn){pe(function(){gt=!1,xt=!1;var jn=xn,Zn=xn;if(!jt&&!Ut)try{Zn=Dt(xn)}catch(Cr){Mt(kn._readableStreamController,Cr),Mt(Mn._readableStreamController,Cr),Dn(hr(Re,Cr));return}jt||Nt(kn._readableStreamController,jn),Ut||Nt(Mn._readableStreamController,Zn),Qe=!1,gt?_r():xt&&dr()})},_closeSteps:function(){Qe=!1,jt||Et(kn._readableStreamController),Ut||Et(Mn._readableStreamController),kn._readableStreamController._pendingPullIntos.length>0&&vn(kn._readableStreamController,0),Mn._readableStreamController._pendingPullIntos.length>0&&vn(Mn._readableStreamController,0),(!jt||!Ut)&&Dn(void 0)},_errorSteps:function(){Qe=!1}};bt(Be,Qn)}function Tr(Qn,xn){ht(Be)&&(Ce(Be),Be=wn(Re),yr(Be));var jn=xn?Mn:kn,Zn=xn?kn:Mn,Cr={_chunkSteps:function(Pr){pe(function(){gt=!1,xt=!1;var Br=xn?Ut:jt,Xr=xn?jt:Ut;if(Xr)Br||bn(jn._readableStreamController,Pr);else{var ao=void 0;try{ao=Dt(Pr)}catch(xa){Mt(jn._readableStreamController,xa),Mt(Zn._readableStreamController,xa),Dn(hr(Re,xa));return}Br||bn(jn._readableStreamController,Pr),Nt(Zn._readableStreamController,ao)}Qe=!1,gt?_r():xt&&dr()})},_closeSteps:function(Pr){Qe=!1;var Br=xn?Ut:jt,Xr=xn?jt:Ut;Br||Et(jn._readableStreamController),Xr||Et(Zn._readableStreamController),Pr!==void 0&&(Br||bn(jn._readableStreamController,Pr),!Xr&&Zn._readableStreamController._pendingPullIntos.length>0&&vn(Zn._readableStreamController,0)),(!Br||!Xr)&&Dn(void 0)},_errorSteps:function(){Qe=!1}};rr(Be,Qn,Cr)}function _r(){if(Qe)return gt=!0,ce(void 0);Qe=!0;var Qn=Lt(kn._readableStreamController);return Qn===null?jr():Tr(Qn._view,!1),ce(void 0)}function dr(){if(Qe)return xt=!0,ce(void 0);Qe=!0;var Qn=Lt(Mn._readableStreamController);return Qn===null?jr():Tr(Qn._view,!0),ce(void 0)}function Sr(Qn){if(jt=!0,mn=Qn,Ut){var xn=qe([mn,In]),jn=hr(Re,xn);Dn(jn)}return ir}function vr(Qn){if(Ut=!0,In=Qn,jt){var xn=qe([mn,In]),jn=hr(Re,xn);Dn(jn)}return ir}function Rr(){}return kn=Wa(Rr,_r,Sr),Mn=Wa(Rr,dr,vr),yr(Be),[kn,Mn]}function Oo(Re,Be){Ye(Re,Be);var Qe=Re,gt=Qe==null?void 0:Qe.autoAllocateChunkSize,xt=Qe==null?void 0:Qe.cancel,jt=Qe==null?void 0:Qe.pull,Ut=Qe==null?void 0:Qe.start,mn=Qe==null?void 0:Qe.type;return{autoAllocateChunkSize:gt===void 0?void 0:Ke(gt,Be+" has member 'autoAllocateChunkSize' that"),cancel:xt===void 0?void 0:Io(xt,Qe,Be+" has member 'cancel' that"),pull:jt===void 0?void 0:Ao(jt,Qe,Be+" has member 'pull' that"),start:Ut===void 0?void 0:No(Ut,Qe,Be+" has member 'start' that"),type:mn===void 0?void 0:ko(mn,Be+" has member 'type' that")}}function Io(Re,Be,Qe){return at(Re,Qe),function(gt){return be(Re,Be,[gt])}}function Ao(Re,Be,Qe){return at(Re,Qe),function(gt){return be(Re,Be,[gt])}}function No(Re,Be,Qe){return at(Re,Qe),function(gt){return ye(Re,Be,[gt])}}function ko(Re,Be){if(Re=""+Re,Re!=="bytes")throw new TypeError(Be+" '"+Re+"' is not a valid enumeration value for ReadableStreamType");return Re}function Mo(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.mode;return{mode:Qe===void 0?void 0:Do(Qe,Be+" has member 'mode' that")}}function Do(Re,Be){if(Re=""+Re,Re!=="byob")throw new TypeError(Be+" '"+Re+"' is not a valid enumeration value for ReadableStreamReaderMode");return Re}function Fo(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.preventCancel;return{preventCancel:!!Qe}}function Va(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.preventAbort,gt=Re==null?void 0:Re.preventCancel,xt=Re==null?void 0:Re.preventClose,jt=Re==null?void 0:Re.signal;return jt!==void 0&&Lo(jt,Be+" has member 'signal' that"),{preventAbort:!!Qe,preventCancel:!!gt,preventClose:!!xt,signal:jt}}function Lo(Re,Be){if(!ur(Re))throw new TypeError(Be+" is not an AbortSignal.")}function jo(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.readable;Pe(Qe,"readable","ReadableWritablePair"),rt(Qe,Be+" has member 'readable' that");var gt=Re==null?void 0:Re.writable;return Pe(gt,"writable","ReadableWritablePair"),cr(gt,Be+" has member 'writable' that"),{readable:Qe,writable:gt}}var $r=function(){function Re(Be,Qe){Be===void 0&&(Be={}),Qe===void 0&&(Qe={}),Be===void 0?Be=null:Le(Be,"First parameter");var gt=Sn(Qe,"Second parameter"),xt=Oo(Be,"First parameter");if($a(this),xt.type==="bytes"){if(gt.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");var jt=En(gt,0);Nn(this,xt,jt)}else{var Ut=Zt(gt),jt=En(gt,1);xo(this,xt,jt,Ut)}}return Object.defineProperty(Re.prototype,"locked",{get:function(){if(!xr(this))throw kr("locked");return wr(this)},enumerable:!1,configurable:!0}),Re.prototype.cancel=function(Be){return Be===void 0&&(Be=void 0),xr(this)?wr(this)?de(new TypeError("Cannot cancel a stream that already has a reader")):hr(this,Be):de(kr("cancel"))},Re.prototype.getReader=function(Be){if(Be===void 0&&(Be=void 0),!xr(this))throw kr("getReader");var Qe=Mo(Be,"First parameter");return Qe.mode===void 0?st(this):wn(this)},Re.prototype.pipeThrough=function(Be,Qe){if(Qe===void 0&&(Qe={}),!xr(this))throw kr("pipeThrough");Te(Be,1,"pipeThrough");var gt=jo(Be,"First parameter"),xt=Va(Qe,"Second parameter");if(wr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Jn(gt.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var jt=Ba(this,gt.writable,xt.preventClose,xt.preventAbort,xt.preventCancel,xt.signal);return ue(jt),gt.readable},Re.prototype.pipeTo=function(Be,Qe){if(Qe===void 0&&(Qe={}),!xr(this))return de(kr("pipeTo"));if(Be===void 0)return de("Parameter 1 is required in 'pipeTo'.");if(!Yn(Be))return de(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var gt;try{gt=Va(Qe,"Second parameter")}catch(xt){return de(xt)}return wr(this)?de(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Jn(Be)?de(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ba(this,Be,gt.preventClose,gt.preventAbort,gt.preventCancel,gt.signal)},Re.prototype.tee=function(){if(!xr(this))throw kr("tee");var Be=wo(this);return qe(Be)},Re.prototype.values=function(Be){if(Be===void 0&&(Be=void 0),!xr(this))throw kr("values");var Qe=Fo(Be,"First parameter");return et(this,Qe.preventCancel)},Re}();Object.defineProperties($r.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty($r.prototype,F.toStringTag,{value:"ReadableStream",configurable:!0}),typeof F.asyncIterator=="symbol"&&Object.defineProperty($r.prototype,F.asyncIterator,{value:$r.prototype.values,writable:!0,configurable:!0});function Ea(Re,Be,Qe,gt,xt){gt===void 0&&(gt=1),xt===void 0&&(xt=function(){return 1});var jt=Object.create($r.prototype);$a(jt);var Ut=Object.create(Fr.prototype);return Ha(jt,Ut,Re,Be,Qe,gt,xt),jt}function Wa(Re,Be,Qe){var gt=Object.create($r.prototype);$a(gt);var xt=Object.create(Ct.prototype);return _n(gt,xt,Re,Be,Qe,0,void 0),gt}function $a(Re){Re._state="readable",Re._reader=void 0,Re._storedError=void 0,Re._disturbed=!1}function xr(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_readableStreamController")?!1:Re instanceof $r}function wr(Re){return Re._reader!==void 0}function hr(Re,Be){if(Re._disturbed=!0,Re._state==="closed")return ce(void 0);if(Re._state==="errored")return de(Re._storedError);Gr(Re);var Qe=Re._reader;Qe!==void 0&&Pn(Qe)&&(Qe._readIntoRequests.forEach(function(xt){xt._closeSteps(void 0)}),Qe._readIntoRequests=new _e);var gt=Re._readableStreamController[ke](Be);return me(gt,K)}function Gr(Re){Re._state="closed";var Be=Re._reader;Be!==void 0&&(Oe(Be),ht(Be)&&(Be._readRequests.forEach(function(Qe){Qe._closeSteps()}),Be._readRequests=new _e))}function Ua(Re,Be){Re._state="errored",Re._storedError=Be;var Qe=Re._reader;Qe!==void 0&&(Ne(Qe,Be),ht(Qe)?(Qe._readRequests.forEach(function(gt){gt._errorSteps(Be)}),Qe._readRequests=new _e):(Qe._readIntoRequests.forEach(function(gt){gt._errorSteps(Be)}),Qe._readIntoRequests=new _e))}function kr(Re){return new TypeError("ReadableStream.prototype."+Re+" can only be used on a ReadableStream")}function Ka(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.highWaterMark;return Pe(Qe,"highWaterMark","QueuingStrategyInit"),{highWaterMark:Me(Qe)}}var Ga=function(Re){return Re.byteLength};Object.defineProperty(Ga,"name",{value:"size",configurable:!0});var sa=function(){function Re(Be){Te(Be,1,"ByteLengthQueuingStrategy"),Be=Ka(Be,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=Be.highWaterMark}return Object.defineProperty(Re.prototype,"highWaterMark",{get:function(){if(!Xa(this))throw qa("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"size",{get:function(){if(!Xa(this))throw qa("size");return Ga},enumerable:!1,configurable:!0}),Re}();Object.defineProperties(sa.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(sa.prototype,F.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function qa(Re){return new TypeError("ByteLengthQueuingStrategy.prototype."+Re+" can only be used on a ByteLengthQueuingStrategy")}function Xa(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_byteLengthQueuingStrategyHighWaterMark")?!1:Re instanceof sa}var Ya=function(){return 1};Object.defineProperty(Ya,"name",{value:"size",configurable:!0});var la=function(){function Re(Be){Te(Be,1,"CountQueuingStrategy"),Be=Ka(Be,"First parameter"),this._countQueuingStrategyHighWaterMark=Be.highWaterMark}return Object.defineProperty(Re.prototype,"highWaterMark",{get:function(){if(!Qa(this))throw Ja("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"size",{get:function(){if(!Qa(this))throw Ja("size");return Ya},enumerable:!1,configurable:!0}),Re}();Object.defineProperties(la.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(la.prototype,F.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function Ja(Re){return new TypeError("CountQueuingStrategy.prototype."+Re+" can only be used on a CountQueuingStrategy")}function Qa(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_countQueuingStrategyHighWaterMark")?!1:Re instanceof la}function Bo(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.flush,gt=Re==null?void 0:Re.readableType,xt=Re==null?void 0:Re.start,jt=Re==null?void 0:Re.transform,Ut=Re==null?void 0:Re.writableType;return{flush:Qe===void 0?void 0:zo(Qe,Re,Be+" has member 'flush' that"),readableType:gt,start:xt===void 0?void 0:Ho(xt,Re,Be+" has member 'start' that"),transform:jt===void 0?void 0:Vo(jt,Re,Be+" has member 'transform' that"),writableType:Ut}}function zo(Re,Be,Qe){return at(Re,Qe),function(gt){return be(Re,Be,[gt])}}function Ho(Re,Be,Qe){return at(Re,Qe),function(gt){return ye(Re,Be,[gt])}}function Vo(Re,Be,Qe){return at(Re,Qe),function(gt,xt){return be(Re,Be,[gt,xt])}}var ca=function(){function Re(Be,Qe,gt){Be===void 0&&(Be={}),Qe===void 0&&(Qe={}),gt===void 0&&(gt={}),Be===void 0&&(Be=null);var xt=Sn(Qe,"Second parameter"),jt=Sn(gt,"Third parameter"),Ut=Bo(Be,"First parameter");if(Ut.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(Ut.writableType!==void 0)throw new RangeError("Invalid writableType specified");var mn=En(jt,0),In=Zt(jt),kn=En(xt,1),Mn=Zt(xt),Dn,ir=se(function(yr){Dn=yr});Wo(this,ir,kn,Mn,mn,In),Ko(this,Ut),Ut.start!==void 0?Dn(Ut.start(this._transformStreamController)):Dn(void 0)}return Object.defineProperty(Re.prototype,"readable",{get:function(){if(!Za(this))throw ro("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"writable",{get:function(){if(!Za(this))throw ro("writable");return this._writable},enumerable:!1,configurable:!0}),Re}();Object.defineProperties(ca.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(ca.prototype,F.toStringTag,{value:"TransformStream",configurable:!0});function Wo(Re,Be,Qe,gt,xt,jt){function Ut(){return Be}function mn(ir){return Xo(Re,ir)}function In(ir){return Yo(Re,ir)}function kn(){return Jo(Re)}Re._writable=Gn(Ut,mn,kn,In,Qe,gt);function Mn(){return Qo(Re)}function Dn(ir){return da(Re,ir),ce(void 0)}Re._readable=Ea(Ut,Mn,Dn,xt,jt),Re._backpressure=void 0,Re._backpressureChangePromise=void 0,Re._backpressureChangePromise_resolve=void 0,fa(Re,!0),Re._transformStreamController=void 0}function Za(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_transformStreamController")?!1:Re instanceof ca}function ua(Re,Be){Er(Re._readable._readableStreamController,Be),da(Re,Be)}function da(Re,Be){eo(Re._transformStreamController),ha(Re._writable._writableStreamController,Be),Re._backpressure&&fa(Re,!1)}function fa(Re,Be){Re._backpressureChangePromise!==void 0&&Re._backpressureChangePromise_resolve(),Re._backpressureChangePromise=se(function(Qe){Re._backpressureChangePromise_resolve=Qe}),Re._backpressure=Be}var qr=function(){function Re(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Re.prototype,"desiredSize",{get:function(){if(!pa(this))throw ma("desiredSize");var Be=this._controlledTransformStream._readable._readableStreamController;return Ra(Be)},enumerable:!1,configurable:!0}),Re.prototype.enqueue=function(Be){if(Be===void 0&&(Be=void 0),!pa(this))throw ma("enqueue");to(this,Be)},Re.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!pa(this))throw ma("error");Go(this,Be)},Re.prototype.terminate=function(){if(!pa(this))throw ma("terminate");qo(this)},Re}();Object.defineProperties(qr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(qr.prototype,F.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function pa(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_controlledTransformStream")?!1:Re instanceof qr}function Uo(Re,Be,Qe,gt){Be._controlledTransformStream=Re,Re._transformStreamController=Be,Be._transformAlgorithm=Qe,Be._flushAlgorithm=gt}function Ko(Re,Be){var Qe=Object.create(qr.prototype),gt=function(jt){try{return to(Qe,jt),ce(void 0)}catch(Ut){return de(Ut)}},xt=function(){return ce(void 0)};Be.transform!==void 0&&(gt=function(jt){return Be.transform(jt,Qe)}),Be.flush!==void 0&&(xt=function(){return Be.flush(Qe)}),Uo(Re,Qe,gt,xt)}function eo(Re){Re._transformAlgorithm=void 0,Re._flushAlgorithm=void 0}function to(Re,Be){var Qe=Re._controlledTransformStream,gt=Qe._readable._readableStreamController;if(!Lr(gt))throw new TypeError("Readable side is not in a state that permits enqueue");try{oa(gt,Be)}catch(jt){throw da(Qe,jt),Qe._readable._storedError}var xt=$o(gt);xt!==Qe._backpressure&&fa(Qe,!0)}function Go(Re,Be){ua(Re._controlledTransformStream,Be)}function no(Re,Be){var Qe=Re._transformAlgorithm(Be);return me(Qe,void 0,function(gt){throw ua(Re._controlledTransformStream,gt),gt})}function qo(Re){var Be=Re._controlledTransformStream,Qe=Be._readable._readableStreamController;Kr(Qe);var gt=new TypeError("TransformStream terminated");da(Be,gt)}function Xo(Re,Be){var Qe=Re._transformStreamController;if(Re._backpressure){var gt=Re._backpressureChangePromise;return me(gt,function(){var xt=Re._writable,jt=xt._state;if(jt==="erroring")throw xt._storedError;return no(Qe,Be)})}return no(Qe,Be)}function Yo(Re,Be){return ua(Re,Be),ce(void 0)}function Jo(Re){var Be=Re._readable,Qe=Re._transformStreamController,gt=Qe._flushAlgorithm();return eo(Qe),me(gt,function(){if(Be._state==="errored")throw Be._storedError;Kr(Be._readableStreamController)},function(xt){throw ua(Re,xt),Be._storedError})}function Qo(Re){return fa(Re,!1),Re._backpressureChangePromise}function ma(Re){return new TypeError("TransformStreamDefaultController.prototype."+Re+" can only be used on a TransformStreamDefaultController")}function ro(Re){return new TypeError("TransformStream.prototype."+Re+" can only be used on a TransformStream")}V.ByteLengthQueuingStrategy=sa,V.CountQueuingStrategy=la,V.ReadableByteStreamController=Ct,V.ReadableStream=$r,V.ReadableStreamBYOBReader=Un,V.ReadableStreamBYOBRequest=Tt,V.ReadableStreamDefaultController=Fr,V.ReadableStreamDefaultReader=vt,V.TransformStream=ca,V.TransformStreamDefaultController=qr,V.WritableStream=Bn,V.WritableStreamDefaultController=Dr,V.WritableStreamDefaultWriter=Vr,Object.defineProperty(V,"__esModule",{value:!0})})},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.BaseStandardFontDataFactory=$.BaseSVGFactory=$.BaseCanvasFactory=$.BaseCMapReaderFactory=void 0;var F=J(V(2)),K=V(4);function J(de){return de&&de.__esModule?de:{default:de}}function ee(de,le,ve,fe,he,me,ue){try{var pe=de[me](ue),ye=pe.value}catch(be){ve(be);return}pe.done?le(ye):Promise.resolve(ye).then(fe,he)}function te(de){return function(){var le=this,ve=arguments;return new Promise(function(fe,he){var me=de.apply(le,ve);function ue(ye){ee(me,fe,he,ue,pe,"next",ye)}function pe(ye){ee(me,fe,he,ue,pe,"throw",ye)}ue(void 0)})}}function ne(de,le){if(!(de instanceof le))throw new TypeError("Cannot call a class as a function")}function re(de,le){for(var ve=0;ve<le.length;ve++){var fe=le[ve];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(de,fe.key,fe)}}function ae(de,le,ve){return le&&re(de.prototype,le),ve&&re(de,ve),de}var oe=function(){function de(){ne(this,de),this.constructor===de&&(0,K.unreachable)("Cannot initialize BaseCanvasFactory.")}return ae(de,[{key:"create",value:function(ve,fe){if(ve<=0||fe<=0)throw new Error("Invalid canvas size");var he=this._createCanvas(ve,fe);return{canvas:he,context:he.getContext("2d")}}},{key:"reset",value:function(ve,fe,he){if(!ve.canvas)throw new Error("Canvas is not specified");if(fe<=0||he<=0)throw new Error("Invalid canvas size");ve.canvas.width=fe,ve.canvas.height=he}},{key:"destroy",value:function(ve){if(!ve.canvas)throw new Error("Canvas is not specified");ve.canvas.width=0,ve.canvas.height=0,ve.canvas=null,ve.context=null}},{key:"_createCanvas",value:function(ve,fe){(0,K.unreachable)("Abstract method `_createCanvas` called.")}}]),de}();$.BaseCanvasFactory=oe;var ie=function(){function de(le){var ve=le.baseUrl,fe=ve===void 0?null:ve,he=le.isCompressed,me=he===void 0?!1:he;ne(this,de),this.constructor===de&&(0,K.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=fe,this.isCompressed=me}return ae(de,[{key:"fetch",value:function(){var le=te(F.default.mark(function fe(he){var me=this,ue,pe,ye;return F.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(ue=he.name,this.baseUrl){ge.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(ue){ge.next=5;break}throw new Error("CMap name must be specified.");case 5:return pe=this.baseUrl+ue+(this.isCompressed?".bcmap":""),ye=this.isCompressed?K.CMapCompressionType.BINARY:K.CMapCompressionType.NONE,ge.abrupt("return",this._fetchData(pe,ye).catch(function(_e){throw new Error("Unable to load ".concat(me.isCompressed?"binary ":"","CMap at: ").concat(pe))}));case 8:case"end":return ge.stop()}},fe,this)}));function ve(fe){return le.apply(this,arguments)}return ve}()},{key:"_fetchData",value:function(ve,fe){(0,K.unreachable)("Abstract method `_fetchData` called.")}}]),de}();$.BaseCMapReaderFactory=ie;var se=function(){function de(le){var ve=le.baseUrl,fe=ve===void 0?null:ve;ne(this,de),this.constructor===de&&(0,K.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=fe}return ae(de,[{key:"fetch",value:function(){var le=te(F.default.mark(function fe(he){var me,ue;return F.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(me=he.filename,this.baseUrl){ye.next=3;break}throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');case 3:if(me){ye.next=5;break}throw new Error("Font filename must be specified.");case 5:return ue="".concat(this.baseUrl).concat(me),ye.abrupt("return",this._fetchData(ue).catch(function(be){throw new Error("Unable to load font data at: ".concat(ue))}));case 7:case"end":return ye.stop()}},fe,this)}));function ve(fe){return le.apply(this,arguments)}return ve}()},{key:"_fetchData",value:function(ve){(0,K.unreachable)("Abstract method `_fetchData` called.")}}]),de}();$.BaseStandardFontDataFactory=se;var ce=function(){function de(){ne(this,de),this.constructor===de&&(0,K.unreachable)("Cannot initialize BaseSVGFactory.")}return ae(de,[{key:"create",value:function(ve,fe){if(ve<=0||fe<=0)throw new Error("Invalid SVG dimensions");var he=this._createSVG("svg:svg");return he.setAttribute("version","1.1"),he.setAttribute("width","".concat(ve,"px")),he.setAttribute("height","".concat(fe,"px")),he.setAttribute("preserveAspectRatio","none"),he.setAttribute("viewBox","0 0 ".concat(ve," ").concat(fe)),he}},{key:"createElement",value:function(ve){if(typeof ve!="string")throw new Error("Invalid SVG element type");return this._createSVG(ve)}},{key:"_createSVG",value:function(ve){(0,K.unreachable)("Abstract method `_createSVG` called.")}}]),de}();$.BaseSVGFactory=ce},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(4),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(137),_node_utils=__w_pdfjs_require__(138),_annotation_storage=__w_pdfjs_require__(139),_canvas=__w_pdfjs_require__(140),_worker_options=__w_pdfjs_require__(142),_is_node=__w_pdfjs_require__(6),_message_handler=__w_pdfjs_require__(143),_metadata=__w_pdfjs_require__(144),_optional_content_config=__w_pdfjs_require__(145),_transport_stream=__w_pdfjs_require__(146),_xfa_text=__w_pdfjs_require__(147);function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function _classPrivateFieldInitSpec(C,$,V){_checkPrivateRedeclaration(C,$),$.set(C,V)}function _checkPrivateRedeclaration(C,$){if($.has(C))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldSet(C,$,V){var F=_classExtractFieldDescriptor(C,$,"set");return _classApplyDescriptorSet(C,F,V),V}function _classApplyDescriptorSet(C,$,V){if($.set)$.set.call(C,V);else{if(!$.writable)throw new TypeError("attempted to set read only private field");$.value=V}}function _classPrivateFieldGet(C,$){var V=_classExtractFieldDescriptor(C,$,"get");return _classApplyDescriptorGet(C,V)}function _classExtractFieldDescriptor(C,$,V){if(!$.has(C))throw new TypeError("attempted to "+V+" private field on non-instance");return $.get(C)}function _classApplyDescriptorGet(C,$){return $.get?$.get.call(C):$.value}function _toConsumableArray(C){return _arrayWithoutHoles(C)||_iterableToArray(C)||_unsupportedIterableToArray(C)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
442
+ `);return ie}},(C,$,V)=>{var F=V(10),K=V(62),J=V(64),ee=V(95),te=F.Array,ne=Math.max;C.exports=function(re,ae,oe){for(var ie=J(re),se=K(ae,ie),ce=K(oe===void 0?ie:oe,ie),de=te(ne(ce-se,0)),le=0;se<ce;se++,le++)ee(de,le,re[se]);return de.length=le,de}},(C,$,V)=>{var F=V(24),K=V(47);C.exports=function(J,ee){F(ee)&&"cause"in ee&&K(J,"cause",ee.cause)}},(C,$,V)=>{var F=V(103);C.exports=function(K,J){return K===void 0?arguments.length<2?"":J:F(K)}},(C,$,V)=>{var F=V(10),K=V(92),J=F.String;C.exports=function(ee){if(K(ee)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return J(ee)}},(C,$,V)=>{var F=V(13),K=V(16);C.exports=!F(function(){var J=Error("a");return"stack"in J?(Object.defineProperty(J,"stack",K(1,7)),J.stack!==7):!0})},(C,$,V)=>{var F=V(93),K=V(50),J=V(106);F||K(Object.prototype,"toString",J,{unsafe:!0})},(C,$,V)=>{var F=V(93),K=V(92);C.exports=F?{}.toString:function(){return"[object "+K(this)+"]"}},(C,$,V)=>{var F=V(9),K=V(39),J=V(10),ee=V(27),te=V(14),ne=V(108),re=V(50),ae=V(109),oe=V(84),ie=V(83),se=V(110),ce=V(34),de=V(25),le=V(24),ve=V(111),fe=V(51),he=V(87),me=V(112),ue=V(113),pe=V(116).set,ye=V(121),be=V(124),ge=V(126),_e=V(125),Se=V(127),Ee=V(52),Ce=V(68),xe=V(37),$e=V(128),Ie=V(120),Fe=V(31),Ne=xe("species"),De="Promise",Oe=Ee.getterFor(De),we=Ee.set,Ae=Ee.getterFor(De),ke=ne&&ne.prototype,je=ne,ze=ke,Ve=J.TypeError,Xe=J.document,Ye=J.process,at=_e.f,Ue=at,Le=!!(Xe&&Xe.createEvent&&J.dispatchEvent),Te=de(J.PromiseRejectionEvent),Pe="unhandledrejection",Me="rejectionhandled",He=0,We=1,Ke=2,rt=1,st=2,it=!1,Je,ct,dt,vt,ht=Ce(De,function(){var qe=fe(je),ot=qe!==String(je);if(!ot&&Fe===66||K&&!ze.finally)return!0;if(Fe>=51&&/native code/.test(qe))return!1;var ft=new je(function(kt){kt(1)}),yt=function(kt){kt(function(){},function(){})},$t=ft.constructor={};return $t[Ne]=yt,it=ft.then(function(){})instanceof yt,it?!ot&&$e&&!Te:!0}),bt=ht||!me(function(qe){je.all(qe).catch(function(){})}),Rt=function(qe){var ot;return le(qe)&&de(ot=qe.then)?ot:!1},wt=function(qe,ot){if(!qe.notified){qe.notified=!0;var ft=qe.reactions;ye(function(){for(var yt=qe.value,$t=qe.state==We,kt=0;ft.length>kt;){var Dt=ft[kt++],St=$t?Dt.ok:Dt.fail,Bt=Dt.resolve,It=Dt.reject,Pt=Dt.domain,Tt,Ct,At;try{St?($t||(qe.rejection===st&&et(qe),qe.rejection=rt),St===!0?Tt=yt:(Pt&&Pt.enter(),Tt=St(yt),Pt&&(Pt.exit(),At=!0)),Tt===Dt.promise?It(Ve("Promise-chain cycle")):(Ct=Rt(Tt))?te(Ct,Tt,Bt,It):Bt(Tt)):It(yt)}catch(Ht){Pt&&!At&&Pt.exit(),It(Ht)}}qe.reactions=[],qe.notified=!1,ot&&!qe.rejection&&ut(qe)})}},lt=function(qe,ot,ft){var yt,$t;Le?(yt=Xe.createEvent("Event"),yt.promise=ot,yt.reason=ft,yt.initEvent(qe,!1,!0),J.dispatchEvent(yt)):yt={promise:ot,reason:ft},!Te&&($t=J["on"+qe])?$t(yt):qe===Pe&&ge("Unhandled promise rejection",ft)},ut=function(qe){te(pe,J,function(){var ot=qe.facade,ft=qe.value,yt=Ge(qe),$t;if(yt&&($t=Se(function(){Ie?Ye.emit("unhandledRejection",ft,ot):lt(Pe,ot,ft)}),qe.rejection=Ie||Ge(qe)?st:rt,$t.error))throw $t.value})},Ge=function(qe){return qe.rejection!==rt&&!qe.parent},et=function(qe){te(pe,J,function(){var ot=qe.facade;Ie?Ye.emit("rejectionHandled",ot):lt(Me,ot,qe.value)})},Ze=function(qe,ot,ft){return function(yt){qe(ot,yt,ft)}},nt=function(qe,ot,ft){qe.done||(qe.done=!0,ft&&(qe=ft),qe.value=ot,qe.state=Ke,wt(qe,!0))},tt=function(qe,ot,ft){if(!qe.done){qe.done=!0,ft&&(qe=ft);try{if(qe.facade===ot)throw Ve("Promise can't be resolved itself");var yt=Rt(ot);yt?ye(function(){var $t={done:!1};try{te(yt,ot,Ze(tt,$t,qe),Ze(nt,$t,qe))}catch(kt){nt($t,kt,qe)}}):(qe.value=ot,qe.state=We,wt(qe,!1))}catch($t){nt({done:!1},$t,qe)}}};if(ht&&(je=function(ot){ve(this,ze),ce(ot),te(Je,this);var ft=Oe(this);try{ot(Ze(tt,ft),Ze(nt,ft))}catch(yt){nt(ft,yt)}},ze=je.prototype,Je=function(ot){we(this,{type:De,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:He,value:void 0})},Je.prototype=ae(ze,{then:function(ot,ft){var yt=Ae(this),$t=yt.reactions,kt=at(ue(this,je));return kt.ok=de(ot)?ot:!0,kt.fail=de(ft)&&ft,kt.domain=Ie?Ye.domain:void 0,yt.parent=!0,$t[$t.length]=kt,yt.state!=He&&wt(yt,!1),kt.promise},catch:function(qe){return this.then(void 0,qe)}}),ct=function(){var qe=new Je,ot=Oe(qe);this.promise=qe,this.resolve=Ze(tt,ot),this.reject=Ze(nt,ot)},_e.f=at=function(qe){return qe===je||qe===dt?new ct(qe):Ue(qe)},!K&&de(ne)&&ke!==Object.prototype)){vt=ke.then,it||(re(ke,"then",function(ot,ft){var yt=this;return new je(function($t,kt){te(vt,yt,$t,kt)}).then(ot,ft)},{unsafe:!0}),re(ke,"catch",ze.catch,{unsafe:!0}));try{delete ke.constructor}catch(qe){}oe&&oe(ke,ze)}F({global:!0,wrap:!0,forced:ht},{Promise:je}),ie(je,De,!1,!0),se(De),dt=ee(De),F({target:De,stat:!0,forced:ht},{reject:function(ot){var ft=at(this);return te(ft.reject,void 0,ot),ft.promise}}),F({target:De,stat:!0,forced:K||ht},{resolve:function(ot){return be(K&&this===dt?je:this,ot)}}),F({target:De,stat:!0,forced:bt},{all:function(ot){var ft=this,yt=at(ft),$t=yt.resolve,kt=yt.reject,Dt=Se(function(){var St=ce(ft.resolve),Bt=[],It=0,Pt=1;he(ot,function(Tt){var Ct=It++,At=!1;Pt++,te(St,ft,Tt).then(function(Ht){At||(At=!0,Bt[Ct]=Ht,--Pt||$t(Bt))},kt)}),--Pt||$t(Bt)});return Dt.error&&kt(Dt.value),yt.promise},race:function(ot){var ft=this,yt=at(ft),$t=yt.reject,kt=Se(function(){var Dt=ce(ft.resolve);he(ot,function(St){te(Dt,ft,St).then(yt.resolve,$t)})});return kt.error&&$t(kt.value),yt.promise}})},(C,$,V)=>{var F=V(10);C.exports=F.Promise},(C,$,V)=>{var F=V(50);C.exports=function(K,J,ee){for(var te in J)F(K,te,J[te],ee);return K}},(C,$,V)=>{var F=V(27),K=V(48),J=V(37),ee=V(12),te=J("species");C.exports=function(ne){var re=F(ne),ae=K.f;ee&&re&&!re[te]&&ae(re,te,{configurable:!0,get:function(){return this}})}},(C,$,V)=>{var F=V(10),K=V(28),J=F.TypeError;C.exports=function(ee,te){if(K(te,ee))return ee;throw J("Incorrect invocation")}},(C,$,V)=>{var F=V(37),K=F("iterator"),J=!1;try{var ee=0,te={next:function(){return{done:!!ee++}},return:function(){J=!0}};te[K]=function(){return this},Array.from(te,function(){throw 2})}catch(ne){}C.exports=function(ne,re){if(!re&&!J)return!1;var ae=!1;try{var oe={};oe[K]=function(){return{next:function(){return{done:ae=!0}}}},ne(oe)}catch(ie){}return ae}},(C,$,V)=>{var F=V(49),K=V(114),J=V(37),ee=J("species");C.exports=function(te,ne){var re=F(te).constructor,ae;return re===void 0||(ae=F(re)[ee])==null?ne:K(ae)}},(C,$,V)=>{var F=V(10),K=V(115),J=V(35),ee=F.TypeError;C.exports=function(te){if(K(te))return te;throw ee(J(te)+" is not a constructor")}},(C,$,V)=>{var F=V(19),K=V(13),J=V(25),ee=V(92),te=V(27),ne=V(51),re=function(){},ae=[],oe=te("Reflect","construct"),ie=/^\s*(?:class|function)\b/,se=F(ie.exec),ce=!ie.exec(re),de=function(ve){if(!J(ve))return!1;try{return oe(re,ae,ve),!0}catch(fe){return!1}},le=function(ve){if(!J(ve))return!1;switch(ee(ve)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ce||!!se(ie,ne(ve))};C.exports=!oe||K(function(){var ve;return de(de.call)||!de(Object)||!de(function(){ve=!0})||ve})?le:de},(C,$,V)=>{var F=V(10),K=V(117),J=V(88),ee=V(25),te=V(42),ne=V(13),re=V(76),ae=V(118),oe=V(46),ie=V(119),se=V(120),ce=F.setImmediate,de=F.clearImmediate,le=F.process,ve=F.Dispatch,fe=F.Function,he=F.MessageChannel,me=F.String,ue=0,pe={},ye="onreadystatechange",be,ge,_e,Se;try{be=F.location}catch(Ie){}var Ee=function(Ie){if(te(pe,Ie)){var Fe=pe[Ie];delete pe[Ie],Fe()}},Ce=function(Ie){return function(){Ee(Ie)}},xe=function(Ie){Ee(Ie.data)},$e=function(Ie){F.postMessage(me(Ie),be.protocol+"//"+be.host)};(!ce||!de)&&(ce=function(Fe){var Ne=ae(arguments,1);return pe[++ue]=function(){K(ee(Fe)?Fe:fe(Fe),void 0,Ne)},ge(ue),ue},de=function(Fe){delete pe[Fe]},se?ge=function(Ie){le.nextTick(Ce(Ie))}:ve&&ve.now?ge=function(Ie){ve.now(Ce(Ie))}:he&&!ie?(_e=new he,Se=_e.port2,_e.port1.onmessage=xe,ge=J(Se.postMessage,Se)):F.addEventListener&&ee(F.postMessage)&&!F.importScripts&&be&&be.protocol!=="file:"&&!ne($e)?(ge=$e,F.addEventListener("message",xe,!1)):ye in oe("script")?ge=function(Ie){re.appendChild(oe("script"))[ye]=function(){re.removeChild(this),Ee(Ie)}}:ge=function(Ie){setTimeout(Ce(Ie),0)}),C.exports={set:ce,clear:de}},C=>{var $=Function.prototype,V=$.apply,F=$.bind,K=$.call;C.exports=typeof Reflect=="object"&&Reflect.apply||(F?K.bind(V):function(){return K.apply(V,arguments)})},(C,$,V)=>{var F=V(19);C.exports=F([].slice)},(C,$,V)=>{var F=V(32);C.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(F)},(C,$,V)=>{var F=V(20),K=V(10);C.exports=F(K.process)=="process"},(C,$,V)=>{var F=V(10),K=V(88),J=V(11).f,ee=V(116).set,te=V(119),ne=V(122),re=V(123),ae=V(120),oe=F.MutationObserver||F.WebKitMutationObserver,ie=F.document,se=F.process,ce=F.Promise,de=J(F,"queueMicrotask"),le=de&&de.value,ve,fe,he,me,ue,pe,ye,be;le||(ve=function(){var ge,_e;for(ae&&(ge=se.domain)&&ge.exit();fe;){_e=fe.fn,fe=fe.next;try{_e()}catch(Se){throw fe?me():he=void 0,Se}}he=void 0,ge&&ge.enter()},!te&&!ae&&!re&&oe&&ie?(ue=!0,pe=ie.createTextNode(""),new oe(ve).observe(pe,{characterData:!0}),me=function(){pe.data=ue=!ue}):!ne&&ce&&ce.resolve?(ye=ce.resolve(void 0),ye.constructor=ce,be=K(ye.then,ye),me=function(){be(ve)}):ae?me=function(){se.nextTick(ve)}:(ee=K(ee,F),me=function(){ee(ve)})),C.exports=le||function(ge){var _e={fn:ge,next:void 0};he&&(he.next=_e),fe||(fe=_e,me()),he=_e}},(C,$,V)=>{var F=V(32),K=V(10);C.exports=/ipad|iphone|ipod/i.test(F)&&K.Pebble!==void 0},(C,$,V)=>{var F=V(32);C.exports=/web0s(?!.*chrome)/i.test(F)},(C,$,V)=>{var F=V(49),K=V(24),J=V(125);C.exports=function(ee,te){if(F(ee),K(te)&&te.constructor===ee)return te;var ne=J.f(ee),re=ne.resolve;return re(te),ne.promise}},(C,$,V)=>{var F=V(34),K=function(J){var ee,te;this.promise=new J(function(ne,re){if(ee!==void 0||te!==void 0)throw TypeError("Bad Promise constructor");ee=ne,te=re}),this.resolve=F(ee),this.reject=F(te)};C.exports.f=function(J){return new K(J)}},(C,$,V)=>{var F=V(10);C.exports=function(K,J){var ee=F.console;ee&&ee.error&&(arguments.length==1?ee.error(K):ee.error(K,J))}},C=>{C.exports=function($){try{return{error:!1,value:$()}}catch(V){return{error:!0,value:V}}}},C=>{C.exports=typeof window=="object"},(C,$,V)=>{var F=V(9),K=V(14),J=V(34),ee=V(125),te=V(127),ne=V(87);F({target:"Promise",stat:!0},{allSettled:function(ae){var oe=this,ie=ee.f(oe),se=ie.resolve,ce=ie.reject,de=te(function(){var le=J(oe.resolve),ve=[],fe=0,he=1;ne(ae,function(me){var ue=fe++,pe=!1;he++,K(le,oe,me).then(function(ye){pe||(pe=!0,ve[ue]={status:"fulfilled",value:ye},--he||se(ve))},function(ye){pe||(pe=!0,ve[ue]={status:"rejected",reason:ye},--he||se(ve))})}),--he||se(ve)});return de.error&&ce(de.value),ie.promise}})},(C,$,V)=>{var F=V(9),K=V(34),J=V(27),ee=V(14),te=V(125),ne=V(127),re=V(87),ae="No one promise resolved";F({target:"Promise",stat:!0},{any:function(ie){var se=this,ce=J("AggregateError"),de=te.f(se),le=de.resolve,ve=de.reject,fe=ne(function(){var he=K(se.resolve),me=[],ue=0,pe=1,ye=!1;re(ie,function(be){var ge=ue++,_e=!1;pe++,ee(he,se,be).then(function(Se){_e||ye||(ye=!0,le(Se))},function(Se){_e||ye||(_e=!0,me[ge]=Se,--pe||ve(new ce(me,ae)))})}),--pe||ve(new ce(me,ae))});return fe.error&&ve(fe.value),de.promise}})},(C,$,V)=>{var F=V(9),K=V(39),J=V(108),ee=V(13),te=V(27),ne=V(25),re=V(113),ae=V(124),oe=V(50),ie=!!J&&ee(function(){J.prototype.finally.call({then:function(){}},function(){})});if(F({target:"Promise",proto:!0,real:!0,forced:ie},{finally:function(ce){var de=re(this,te("Promise")),le=ne(ce);return this.then(le?function(ve){return ae(de,ce()).then(function(){return ve})}:ce,le?function(ve){return ae(de,ce()).then(function(){throw ve})}:ce)}}),!K&&ne(J)){var se=te("Promise").prototype.finally;J.prototype.finally!==se&&oe(J.prototype,"finally",se,{unsafe:!0})}},(C,$,V)=>{var F=V(133).charAt,K=V(103),J=V(52),ee=V(78),te="String Iterator",ne=J.set,re=J.getterFor(te);ee(String,"String",function(ae){ne(this,{type:te,string:K(ae),index:0})},function(){var oe=re(this),ie=oe.string,se=oe.index,ce;return se>=ie.length?{value:void 0,done:!0}:(ce=F(ie,se),oe.index+=ce.length,{value:ce,done:!1})})},(C,$,V)=>{var F=V(19),K=V(63),J=V(103),ee=V(21),te=F("".charAt),ne=F("".charCodeAt),re=F("".slice),ae=function(oe){return function(ie,se){var ce=J(ee(ie)),de=K(se),le=ce.length,ve,fe;return de<0||de>=le?oe?"":void 0:(ve=ne(ce,de),ve<55296||ve>56319||de+1===le||(fe=ne(ce,de+1))<56320||fe>57343?oe?te(ce,de):ve:oe?re(ce,de,de+2):(ve-55296<<10)+(fe-56320)+65536)}};C.exports={codeAt:ae(!1),charAt:ae(!0)}},function(C,$){(function(V,F){F($)})(this,function(V){var F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(Re){return"Symbol("+Re+")"};function K(){}function J(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof commonjsGlobal!="undefined")return commonjsGlobal}var ee=J();function te(Re){return typeof Re=="object"&&Re!==null||typeof Re=="function"}var ne=K,re=Promise,ae=Promise.prototype.then,oe=Promise.resolve.bind(re),ie=Promise.reject.bind(re);function se(Re){return new re(Re)}function ce(Re){return oe(Re)}function de(Re){return ie(Re)}function le(Re,Be,Qe){return ae.call(Re,Be,Qe)}function ve(Re,Be,Qe){le(le(Re,Be,Qe),void 0,ne)}function fe(Re,Be){ve(Re,Be)}function he(Re,Be){ve(Re,void 0,Be)}function me(Re,Be,Qe){return le(Re,Be,Qe)}function ue(Re){le(Re,void 0,ne)}var pe=function(){var Re=ee&&ee.queueMicrotask;if(typeof Re=="function")return Re;var Be=ce(void 0);return function(Qe){return le(Be,Qe)}}();function ye(Re,Be,Qe){if(typeof Re!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(Re,Be,Qe)}function be(Re,Be,Qe){try{return ce(ye(Re,Be,Qe))}catch(gt){return de(gt)}}var ge=16384,_e=function(){function Re(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(Re.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),Re.prototype.push=function(Be){var Qe=this._back,gt=Qe;Qe._elements.length===ge-1&&(gt={_elements:[],_next:void 0}),Qe._elements.push(Be),gt!==Qe&&(this._back=gt,Qe._next=gt),++this._size},Re.prototype.shift=function(){var Be=this._front,Qe=Be,gt=this._cursor,xt=gt+1,jt=Be._elements,Ut=jt[gt];return xt===ge&&(Qe=Be._next,xt=0),--this._size,this._cursor=xt,Be!==Qe&&(this._front=Qe),jt[gt]=void 0,Ut},Re.prototype.forEach=function(Be){for(var Qe=this._cursor,gt=this._front,xt=gt._elements;(Qe!==xt.length||gt._next!==void 0)&&!(Qe===xt.length&&(gt=gt._next,xt=gt._elements,Qe=0,xt.length===0));)Be(xt[Qe]),++Qe},Re.prototype.peek=function(){var Be=this._front,Qe=this._cursor;return Be._elements[Qe]},Re}();function Se(Re,Be){Re._ownerReadableStream=Be,Be._reader=Re,Be._state==="readable"?$e(Re):Be._state==="closed"?Fe(Re):Ie(Re,Be._storedError)}function Ee(Re,Be){var Qe=Re._ownerReadableStream;return yr(Qe,Be)}function Ce(Re){Re._ownerReadableStream._state==="readable"?Ne(Re,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):De(Re,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),Re._ownerReadableStream._reader=void 0,Re._ownerReadableStream=void 0}function xe(Re){return new TypeError("Cannot "+Re+" a stream using a released reader")}function $e(Re){Re._closedPromise=se(function(Be,Qe){Re._closedPromise_resolve=Be,Re._closedPromise_reject=Qe})}function Ie(Re,Be){$e(Re),Ne(Re,Be)}function Fe(Re){$e(Re),Oe(Re)}function Ne(Re,Be){Re._closedPromise_reject!==void 0&&(ue(Re._closedPromise),Re._closedPromise_reject(Be),Re._closedPromise_resolve=void 0,Re._closedPromise_reject=void 0)}function De(Re,Be){Ie(Re,Be)}function Oe(Re){Re._closedPromise_resolve!==void 0&&(Re._closedPromise_resolve(void 0),Re._closedPromise_resolve=void 0,Re._closedPromise_reject=void 0)}var we=F("[[AbortSteps]]"),Ae=F("[[ErrorSteps]]"),ke=F("[[CancelSteps]]"),je=F("[[PullSteps]]"),ze=Number.isFinite||function(Re){return typeof Re=="number"&&isFinite(Re)},Ve=Math.trunc||function(Re){return Re<0?Math.ceil(Re):Math.floor(Re)};function Xe(Re){return typeof Re=="object"||typeof Re=="function"}function Ye(Re,Be){if(Re!==void 0&&!Xe(Re))throw new TypeError(Be+" is not an object.")}function at(Re,Be){if(typeof Re!="function")throw new TypeError(Be+" is not a function.")}function Ue(Re){return typeof Re=="object"&&Re!==null||typeof Re=="function"}function Le(Re,Be){if(!Ue(Re))throw new TypeError(Be+" is not an object.")}function Te(Re,Be,Qe){if(Re===void 0)throw new TypeError("Parameter "+Be+" is required in '"+Qe+"'.")}function Pe(Re,Be,Qe){if(Re===void 0)throw new TypeError(Be+" is required in '"+Qe+"'.")}function Me(Re){return Number(Re)}function He(Re){return Re===0?0:Re}function We(Re){return He(Ve(Re))}function Ke(Re,Be){var Qe=0,gt=Number.MAX_SAFE_INTEGER,xt=Number(Re);if(xt=He(xt),!ze(xt))throw new TypeError(Be+" is not a finite number");if(xt=We(xt),xt<Qe||xt>gt)throw new TypeError(Be+" is outside the accepted range of "+Qe+" to "+gt+", inclusive");return!ze(xt)||xt===0?0:xt}function rt(Re,Be){if(!xr(Re))throw new TypeError(Be+" is not a ReadableStream.")}function st(Re){return new vt(Re)}function it(Re,Be){Re._reader._readRequests.push(Be)}function Je(Re,Be,Qe){var gt=Re._reader,xt=gt._readRequests.shift();Qe?xt._closeSteps():xt._chunkSteps(Be)}function ct(Re){return Re._reader._readRequests.length}function dt(Re){var Be=Re._reader;return!(Be===void 0||!ht(Be))}var vt=function(){function Re(Be){if(Te(Be,1,"ReadableStreamDefaultReader"),rt(Be,"First parameter"),wr(Be))throw new TypeError("This stream has already been locked for exclusive reading by another reader");Se(this,Be),this._readRequests=new _e}return Object.defineProperty(Re.prototype,"closed",{get:function(){return ht(this)?this._closedPromise:de(Rt("closed"))},enumerable:!1,configurable:!0}),Re.prototype.cancel=function(Be){return Be===void 0&&(Be=void 0),ht(this)?this._ownerReadableStream===void 0?de(xe("cancel")):Ee(this,Be):de(Rt("cancel"))},Re.prototype.read=function(){if(!ht(this))return de(Rt("read"));if(this._ownerReadableStream===void 0)return de(xe("read from"));var Be,Qe,gt=se(function(jt,Ut){Be=jt,Qe=Ut}),xt={_chunkSteps:function(jt){return Be({value:jt,done:!1})},_closeSteps:function(){return Be({value:void 0,done:!0})},_errorSteps:function(jt){return Qe(jt)}};return bt(this,xt),gt},Re.prototype.releaseLock=function(){if(!ht(this))throw Rt("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Ce(this)}},Re}();Object.defineProperties(vt.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(vt.prototype,F.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function ht(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_readRequests")?!1:Re instanceof vt}function bt(Re,Be){var Qe=Re._ownerReadableStream;Qe._disturbed=!0,Qe._state==="closed"?Be._closeSteps():Qe._state==="errored"?Be._errorSteps(Qe._storedError):Qe._readableStreamController[je](Be)}function Rt(Re){return new TypeError("ReadableStreamDefaultReader.prototype."+Re+" can only be used on a ReadableStreamDefaultReader")}var wt,lt;typeof F.asyncIterator=="symbol"&&(lt=(wt={},wt[F.asyncIterator]=function(){return this},wt),Object.defineProperty(lt,F.asyncIterator,{enumerable:!1}));var ut=function(){function Re(Be,Qe){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=Be,this._preventCancel=Qe}return Re.prototype.next=function(){var Be=this,Qe=function(){return Be._nextSteps()};return this._ongoingPromise=this._ongoingPromise?me(this._ongoingPromise,Qe,Qe):Qe(),this._ongoingPromise},Re.prototype.return=function(Be){var Qe=this,gt=function(){return Qe._returnSteps(Be)};return this._ongoingPromise?me(this._ongoingPromise,gt,gt):gt()},Re.prototype._nextSteps=function(){var Be=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var Qe=this._reader;if(Qe._ownerReadableStream===void 0)return de(xe("iterate"));var gt,xt,jt=se(function(mn,In){gt=mn,xt=In}),Ut={_chunkSteps:function(mn){Be._ongoingPromise=void 0,pe(function(){return gt({value:mn,done:!1})})},_closeSteps:function(){Be._ongoingPromise=void 0,Be._isFinished=!0,Ce(Qe),gt({value:void 0,done:!0})},_errorSteps:function(mn){Be._ongoingPromise=void 0,Be._isFinished=!0,Ce(Qe),xt(mn)}};return bt(Qe,Ut),jt},Re.prototype._returnSteps=function(Be){if(this._isFinished)return Promise.resolve({value:Be,done:!0});this._isFinished=!0;var Qe=this._reader;if(Qe._ownerReadableStream===void 0)return de(xe("finish iterating"));if(!this._preventCancel){var gt=Ee(Qe,Be);return Ce(Qe),me(gt,function(){return{value:Be,done:!0}})}return Ce(Qe),ce({value:Be,done:!0})},Re}(),Ge={next:function(){return Ze(this)?this._asyncIteratorImpl.next():de(nt("next"))},return:function(Re){return Ze(this)?this._asyncIteratorImpl.return(Re):de(nt("return"))}};lt!==void 0&&Object.setPrototypeOf(Ge,lt);function et(Re,Be){var Qe=st(Re),gt=new ut(Qe,Be),xt=Object.create(Ge);return xt._asyncIteratorImpl=gt,xt}function Ze(Re){if(!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_asyncIteratorImpl"))return!1;try{return Re._asyncIteratorImpl instanceof ut}catch(Be){return!1}}function nt(Re){return new TypeError("ReadableStreamAsyncIterator."+Re+" can only be used on a ReadableSteamAsyncIterator")}var tt=Number.isNaN||function(Re){return Re!==Re};function qe(Re){return Re.slice()}function ot(Re,Be,Qe,gt,xt){new Uint8Array(Re).set(new Uint8Array(Qe,gt,xt),Be)}function ft(Re){return Re}function yt(Re){return!1}function $t(Re,Be,Qe){if(Re.slice)return Re.slice(Be,Qe);var gt=Qe-Be,xt=new ArrayBuffer(gt);return ot(xt,0,Re,Be,gt),xt}function kt(Re){return!(typeof Re!="number"||tt(Re)||Re<0)}function Dt(Re){var Be=$t(Re.buffer,Re.byteOffset,Re.byteOffset+Re.byteLength);return new Uint8Array(Be)}function St(Re){var Be=Re._queue.shift();return Re._queueTotalSize-=Be.size,Re._queueTotalSize<0&&(Re._queueTotalSize=0),Be.value}function Bt(Re,Be,Qe){if(!kt(Qe)||Qe===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");Re._queue.push({value:Be,size:Qe}),Re._queueTotalSize+=Qe}function It(Re){var Be=Re._queue.peek();return Be.value}function Pt(Re){Re._queue=new _e,Re._queueTotalSize=0}var Tt=function(){function Re(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Re.prototype,"view",{get:function(){if(!Ht(this))throw Qt("view");return this._view},enumerable:!1,configurable:!0}),Re.prototype.respond=function(Be){if(!Ht(this))throw Qt("respond");if(Te(Be,1,"respond"),Be=Ke(Be,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");yt(this._view.buffer),vn(this._associatedReadableByteStreamController,Be)},Re.prototype.respondWithNewView=function(Be){if(!Ht(this))throw Qt("respondWithNewView");if(Te(Be,1,"respondWithNewView"),!ArrayBuffer.isView(Be))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");yt(Be.buffer),bn(this._associatedReadableByteStreamController,Be)},Re}();Object.defineProperties(Tt.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Tt.prototype,F.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var Ct=function(){function Re(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Re.prototype,"byobRequest",{get:function(){if(!At(this))throw Yt("byobRequest");return Lt(this)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"desiredSize",{get:function(){if(!At(this))throw Yt("desiredSize");return Xt(this)},enumerable:!1,configurable:!0}),Re.prototype.close=function(){if(!At(this))throw Yt("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var Be=this._controlledReadableByteStream._state;if(Be!=="readable")throw new TypeError("The stream (in "+Be+" state) is not in the readable state and cannot be closed");Et(this)},Re.prototype.enqueue=function(Be){if(!At(this))throw Yt("enqueue");if(Te(Be,1,"enqueue"),!ArrayBuffer.isView(Be))throw new TypeError("chunk must be an array buffer view");if(Be.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(Be.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var Qe=this._controlledReadableByteStream._state;if(Qe!=="readable")throw new TypeError("The stream (in "+Qe+" state) is not in the readable state and cannot be enqueued to");Nt(this,Be)},Re.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!At(this))throw Yt("error");Mt(this,Be)},Re.prototype[ke]=function(Be){zt(this),Pt(this);var Qe=this._cancelAlgorithm(Be);return _t(this),Qe},Re.prototype[je]=function(Be){var Qe=this._controlledReadableByteStream;if(this._queueTotalSize>0){var gt=this._queue.shift();this._queueTotalSize-=gt.byteLength,Cn(this);var xt=new Uint8Array(gt.buffer,gt.byteOffset,gt.byteLength);Be._chunkSteps(xt);return}var jt=this._autoAllocateChunkSize;if(jt!==void 0){var Ut=void 0;try{Ut=new ArrayBuffer(jt)}catch(In){Be._errorSteps(In);return}var mn={buffer:Ut,bufferByteLength:jt,byteOffset:0,byteLength:jt,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(mn)}it(Qe,Be),Gt(this)},Re}();Object.defineProperties(Ct.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Ct.prototype,F.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function At(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_controlledReadableByteStream")?!1:Re instanceof Ct}function Ht(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_associatedReadableByteStreamController")?!1:Re instanceof Tt}function Gt(Re){var Be=pt(Re);if(Be){if(Re._pulling){Re._pullAgain=!0;return}Re._pulling=!0;var Qe=Re._pullAlgorithm();ve(Qe,function(){Re._pulling=!1,Re._pullAgain&&(Re._pullAgain=!1,Gt(Re))},function(gt){Mt(Re,gt)})}}function zt(Re){Wt(Re),Re._pendingPullIntos=new _e}function Ft(Re,Be){var Qe=!1;Re._state==="closed"&&(Qe=!0);var gt=Vt(Be);Be.readerType==="default"?Je(Re,gt,Qe):Ln(Re,gt,Qe)}function Vt(Re){var Be=Re.bytesFilled,Qe=Re.elementSize;return new Re.viewConstructor(Re.buffer,Re.byteOffset,Be/Qe)}function Kt(Re,Be,Qe,gt){Re._queue.push({buffer:Be,byteOffset:Qe,byteLength:gt}),Re._queueTotalSize+=gt}function qt(Re,Be){var Qe=Be.elementSize,gt=Be.bytesFilled-Be.bytesFilled%Qe,xt=Math.min(Re._queueTotalSize,Be.byteLength-Be.bytesFilled),jt=Be.bytesFilled+xt,Ut=jt-jt%Qe,mn=xt,In=!1;Ut>gt&&(mn=Ut-Be.bytesFilled,In=!0);for(var kn=Re._queue;mn>0;){var Mn=kn.peek(),Dn=Math.min(mn,Mn.byteLength),ir=Be.byteOffset+Be.bytesFilled;ot(Be.buffer,ir,Mn.buffer,Mn.byteOffset,Dn),Mn.byteLength===Dn?kn.shift():(Mn.byteOffset+=Dn,Mn.byteLength-=Dn),Re._queueTotalSize-=Dn,ln(Re,Dn,Be),mn-=Dn}return In}function ln(Re,Be,Qe){Qe.bytesFilled+=Be}function Cn(Re){Re._queueTotalSize===0&&Re._closeRequested?(_t(Re),Gr(Re._controlledReadableByteStream)):Gt(Re)}function Wt(Re){Re._byobRequest!==null&&(Re._byobRequest._associatedReadableByteStreamController=void 0,Re._byobRequest._view=null,Re._byobRequest=null)}function Jt(Re){for(;Re._pendingPullIntos.length>0;){if(Re._queueTotalSize===0)return;var Be=Re._pendingPullIntos.peek();qt(Re,Be)&&(Ot(Re),Ft(Re._controlledReadableByteStream,Be))}}function dn(Re,Be,Qe){var gt=Re._controlledReadableByteStream,xt=1;Be.constructor!==DataView&&(xt=Be.constructor.BYTES_PER_ELEMENT);var jt=Be.constructor,Ut=Be.buffer,mn={buffer:Ut,bufferByteLength:Ut.byteLength,byteOffset:Be.byteOffset,byteLength:Be.byteLength,bytesFilled:0,elementSize:xt,viewConstructor:jt,readerType:"byob"};if(Re._pendingPullIntos.length>0){Re._pendingPullIntos.push(mn),Fn(gt,Qe);return}if(gt._state==="closed"){var In=new jt(mn.buffer,mn.byteOffset,0);Qe._closeSteps(In);return}if(Re._queueTotalSize>0){if(qt(Re,mn)){var kn=Vt(mn);Cn(Re),Qe._chunkSteps(kn);return}if(Re._closeRequested){var Mn=new TypeError("Insufficient bytes to fill elements in the given buffer");Mt(Re,Mn),Qe._errorSteps(Mn);return}}Re._pendingPullIntos.push(mn),Fn(gt,Qe),Gt(Re)}function sn(Re,Be){var Qe=Re._controlledReadableByteStream;if(nr(Qe))for(;Vn(Qe)>0;){var gt=Ot(Re);Ft(Qe,gt)}}function gn(Re,Be,Qe){if(ln(Re,Be,Qe),!(Qe.bytesFilled<Qe.elementSize)){Ot(Re);var gt=Qe.bytesFilled%Qe.elementSize;if(gt>0){var xt=Qe.byteOffset+Qe.bytesFilled,jt=$t(Qe.buffer,xt-gt,xt);Kt(Re,jt,0,jt.byteLength)}Qe.bytesFilled-=gt,Ft(Re._controlledReadableByteStream,Qe),Jt(Re)}}function mt(Re,Be){var Qe=Re._pendingPullIntos.peek();Wt(Re);var gt=Re._controlledReadableByteStream._state;gt==="closed"?sn(Re):gn(Re,Be,Qe),Gt(Re)}function Ot(Re){var Be=Re._pendingPullIntos.shift();return Be}function pt(Re){var Be=Re._controlledReadableByteStream;if(Be._state!=="readable"||Re._closeRequested||!Re._started)return!1;if(dt(Be)&&ct(Be)>0||nr(Be)&&Vn(Be)>0)return!0;var Qe=Xt(Re);return Qe>0}function _t(Re){Re._pullAlgorithm=void 0,Re._cancelAlgorithm=void 0}function Et(Re){var Be=Re._controlledReadableByteStream;if(!(Re._closeRequested||Be._state!=="readable")){if(Re._queueTotalSize>0){Re._closeRequested=!0;return}if(Re._pendingPullIntos.length>0){var Qe=Re._pendingPullIntos.peek();if(Qe.bytesFilled>0){var gt=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Mt(Re,gt),gt}}_t(Re),Gr(Be)}}function Nt(Re,Be){var Qe=Re._controlledReadableByteStream;if(!(Re._closeRequested||Qe._state!=="readable")){var gt=Be.buffer,xt=Be.byteOffset,jt=Be.byteLength,Ut=gt;if(Re._pendingPullIntos.length>0){var mn=Re._pendingPullIntos.peek();yt(mn.buffer),mn.buffer=mn.buffer}if(Wt(Re),dt(Qe))if(ct(Qe)===0)Kt(Re,Ut,xt,jt);else{Re._pendingPullIntos.length>0&&Ot(Re);var In=new Uint8Array(Ut,xt,jt);Je(Qe,In,!1)}else nr(Qe)?(Kt(Re,Ut,xt,jt),Jt(Re)):Kt(Re,Ut,xt,jt);Gt(Re)}}function Mt(Re,Be){var Qe=Re._controlledReadableByteStream;Qe._state==="readable"&&(zt(Re),Pt(Re),_t(Re),Ua(Qe,Be))}function Lt(Re){if(Re._byobRequest===null&&Re._pendingPullIntos.length>0){var Be=Re._pendingPullIntos.peek(),Qe=new Uint8Array(Be.buffer,Be.byteOffset+Be.bytesFilled,Be.byteLength-Be.bytesFilled),gt=Object.create(Tt.prototype);Tn(gt,Re,Qe),Re._byobRequest=gt}return Re._byobRequest}function Xt(Re){var Be=Re._controlledReadableByteStream._state;return Be==="errored"?null:Be==="closed"?0:Re._strategyHWM-Re._queueTotalSize}function vn(Re,Be){var Qe=Re._pendingPullIntos.peek(),gt=Re._controlledReadableByteStream._state;if(gt==="closed"){if(Be!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(Be===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(Qe.bytesFilled+Be>Qe.byteLength)throw new RangeError("bytesWritten out of range")}Qe.buffer=Qe.buffer,mt(Re,Be)}function bn(Re,Be){var Qe=Re._pendingPullIntos.peek(),gt=Re._controlledReadableByteStream._state;if(gt==="closed"){if(Be.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(Be.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(Qe.byteOffset+Qe.bytesFilled!==Be.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(Qe.bufferByteLength!==Be.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(Qe.bytesFilled+Be.byteLength>Qe.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");var xt=Be.byteLength;Qe.buffer=Be.buffer,mt(Re,xt)}function _n(Re,Be,Qe,gt,xt,jt,Ut){Be._controlledReadableByteStream=Re,Be._pullAgain=!1,Be._pulling=!1,Be._byobRequest=null,Be._queue=Be._queueTotalSize=void 0,Pt(Be),Be._closeRequested=!1,Be._started=!1,Be._strategyHWM=jt,Be._pullAlgorithm=gt,Be._cancelAlgorithm=xt,Be._autoAllocateChunkSize=Ut,Be._pendingPullIntos=new _e,Re._readableStreamController=Be;var mn=Qe();ve(ce(mn),function(){Be._started=!0,Gt(Be)},function(In){Mt(Be,In)})}function Nn(Re,Be,Qe){var gt=Object.create(Ct.prototype),xt=function(){},jt=function(){return ce(void 0)},Ut=function(){return ce(void 0)};Be.start!==void 0&&(xt=function(){return Be.start(gt)}),Be.pull!==void 0&&(jt=function(){return Be.pull(gt)}),Be.cancel!==void 0&&(Ut=function(In){return Be.cancel(In)});var mn=Be.autoAllocateChunkSize;if(mn===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");_n(Re,gt,xt,jt,Ut,Qe,mn)}function Tn(Re,Be,Qe){Re._associatedReadableByteStreamController=Be,Re._view=Qe}function Qt(Re){return new TypeError("ReadableStreamBYOBRequest.prototype."+Re+" can only be used on a ReadableStreamBYOBRequest")}function Yt(Re){return new TypeError("ReadableByteStreamController.prototype."+Re+" can only be used on a ReadableByteStreamController")}function wn(Re){return new Un(Re)}function Fn(Re,Be){Re._reader._readIntoRequests.push(Be)}function Ln(Re,Be,Qe){var gt=Re._reader,xt=gt._readIntoRequests.shift();Qe?xt._closeSteps(Be):xt._chunkSteps(Be)}function Vn(Re){return Re._reader._readIntoRequests.length}function nr(Re){var Be=Re._reader;return!(Be===void 0||!Pn(Be))}var Un=function(){function Re(Be){if(Te(Be,1,"ReadableStreamBYOBReader"),rt(Be,"First parameter"),wr(Be))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!At(Be._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");Se(this,Be),this._readIntoRequests=new _e}return Object.defineProperty(Re.prototype,"closed",{get:function(){return Pn(this)?this._closedPromise:de(lr("closed"))},enumerable:!1,configurable:!0}),Re.prototype.cancel=function(Be){return Be===void 0&&(Be=void 0),Pn(this)?this._ownerReadableStream===void 0?de(xe("cancel")):Ee(this,Be):de(lr("cancel"))},Re.prototype.read=function(Be){if(!Pn(this))return de(lr("read"));if(!ArrayBuffer.isView(Be))return de(new TypeError("view must be an array buffer view"));if(Be.byteLength===0)return de(new TypeError("view must have non-zero byteLength"));if(Be.buffer.byteLength===0)return de(new TypeError("view's buffer must have non-zero byteLength"));if(yt(Be.buffer),this._ownerReadableStream===void 0)return de(xe("read from"));var Qe,gt,xt=se(function(Ut,mn){Qe=Ut,gt=mn}),jt={_chunkSteps:function(Ut){return Qe({value:Ut,done:!1})},_closeSteps:function(Ut){return Qe({value:Ut,done:!0})},_errorSteps:function(Ut){return gt(Ut)}};return rr(this,Be,jt),xt},Re.prototype.releaseLock=function(){if(!Pn(this))throw lr("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Ce(this)}},Re}();Object.defineProperties(Un.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Un.prototype,F.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function Pn(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_readIntoRequests")?!1:Re instanceof Un}function rr(Re,Be,Qe){var gt=Re._ownerReadableStream;gt._disturbed=!0,gt._state==="errored"?Qe._errorSteps(gt._storedError):dn(gt._readableStreamController,Be,Qe)}function lr(Re){return new TypeError("ReadableStreamBYOBReader.prototype."+Re+" can only be used on a ReadableStreamBYOBReader")}function En(Re,Be){var Qe=Re.highWaterMark;if(Qe===void 0)return Be;if(tt(Qe)||Qe<0)throw new RangeError("Invalid highWaterMark");return Qe}function Zt(Re){var Be=Re.size;return Be||function(){return 1}}function Sn(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.highWaterMark,gt=Re==null?void 0:Re.size;return{highWaterMark:Qe===void 0?void 0:Me(Qe),size:gt===void 0?void 0:$n(gt,Be+" has member 'size' that")}}function $n(Re,Be){return at(Re,Be),function(Qe){return Me(Re(Qe))}}function On(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.abort,gt=Re==null?void 0:Re.close,xt=Re==null?void 0:Re.start,jt=Re==null?void 0:Re.type,Ut=Re==null?void 0:Re.write;return{abort:Qe===void 0?void 0:An(Qe,Re,Be+" has member 'abort' that"),close:gt===void 0?void 0:Kn(gt,Re,Be+" has member 'close' that"),start:xt===void 0?void 0:Xn(xt,Re,Be+" has member 'start' that"),write:Ut===void 0?void 0:or(Ut,Re,Be+" has member 'write' that"),type:jt}}function An(Re,Be,Qe){return at(Re,Qe),function(gt){return be(Re,Be,[gt])}}function Kn(Re,Be,Qe){return at(Re,Qe),function(){return be(Re,Be,[])}}function Xn(Re,Be,Qe){return at(Re,Qe),function(gt){return ye(Re,Be,[gt])}}function or(Re,Be,Qe){return at(Re,Qe),function(gt,xt){return be(Re,Be,[gt,xt])}}function cr(Re,Be){if(!Yn(Re))throw new TypeError(Be+" is not a WritableStream.")}function ur(Re){if(typeof Re!="object"||Re===null)return!1;try{return typeof Re.aborted=="boolean"}catch(Be){return!1}}var hn=typeof AbortController=="function";function yn(){if(hn)return new AbortController}var Bn=function(){function Re(Be,Qe){Be===void 0&&(Be={}),Qe===void 0&&(Qe={}),Be===void 0?Be=null:Le(Be,"First parameter");var gt=Sn(Qe,"Second parameter"),xt=On(Be,"First parameter");fr(this);var jt=xt.type;if(jt!==void 0)throw new RangeError("Invalid type is specified");var Ut=Zt(gt),mn=En(gt,1);fo(this,xt,mn,Ut)}return Object.defineProperty(Re.prototype,"locked",{get:function(){if(!Yn(this))throw ea("locked");return Jn(this)},enumerable:!1,configurable:!0}),Re.prototype.abort=function(Be){return Be===void 0&&(Be=void 0),Yn(this)?Jn(this)?de(new TypeError("Cannot abort a stream that already has a writer")):pr(this,Be):de(ea("abort"))},Re.prototype.close=function(){return Yn(this)?Jn(this)?de(new TypeError("Cannot close a stream that already has a writer")):mr(this)?de(new TypeError("Cannot close an already-closing stream")):hr(this):de(ea("close"))},Re.prototype.getWriter=function(){if(!Yn(this))throw ea("getWriter");return Hn(this)},Re}();Object.defineProperties(Bn.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Bn.prototype,F.toStringTag,{value:"WritableStream",configurable:!0});function Hn(Re){return new Vr(Re)}function Gn(Re,Be,Qe,gt,xt,jt){xt===void 0&&(xt=1),jt===void 0&&(jt=function(){return 1});var Ut=Object.create(Bn.prototype);fr(Ut);var mn=Object.create(Dr.prototype);return Aa(Ut,mn,Re,Be,Qe,gt,xt,jt),Ut}function fr(Re){Re._state="writable",Re._storedError=void 0,Re._writer=void 0,Re._writableStreamController=void 0,Re._writeRequests=new _e,Re._inFlightWriteRequest=void 0,Re._closeRequest=void 0,Re._inFlightCloseRequest=void 0,Re._pendingAbortRequest=void 0,Re._backpressure=!1}function Yn(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_writableStreamController")?!1:Re instanceof Bn}function Jn(Re){return Re._writer!==void 0}function pr(Re,Be){var Qe;if(Re._state==="closed"||Re._state==="errored")return ce(void 0);Re._writableStreamController._abortReason=Be,(Qe=Re._writableStreamController._abortController)===null||Qe===void 0||Qe.abort();var gt=Re._state;if(gt==="closed"||gt==="errored")return ce(void 0);if(Re._pendingAbortRequest!==void 0)return Re._pendingAbortRequest._promise;var xt=!1;gt==="erroring"&&(xt=!0,Be=void 0);var jt=se(function(Ut,mn){Re._pendingAbortRequest={_promise:void 0,_resolve:Ut,_reject:mn,_reason:Be,_wasAlreadyErroring:xt}});return Re._pendingAbortRequest._promise=jt,xt||Ir(Re,Be),jt}function hr(Re){var Be=Re._state;if(Be==="closed"||Be==="errored")return de(new TypeError("The stream (in "+Be+" state) is not in the writable state and cannot be closed"));var Qe=se(function(xt,jt){var Ut={_resolve:xt,_reject:jt};Re._closeRequest=Ut}),gt=Re._writer;return gt!==void 0&&Re._backpressure&&Be==="writable"&&Ca(gt),po(Re._writableStreamController),Qe}function zr(Re){var Be=se(function(Qe,gt){var xt={_resolve:Qe,_reject:gt};Re._writeRequests.push(xt)});return Be}function Or(Re,Be){var Qe=Re._state;if(Qe==="writable"){Ir(Re,Be);return}fn(Re)}function Ir(Re,Be){var Qe=Re._writableStreamController;Re._state="erroring",Re._storedError=Be;var gt=Re._writer;gt!==void 0&&Ta(gt,Be),!Hr(Re)&&Qe._started&&fn(Re)}function fn(Re){Re._state="errored",Re._writableStreamController[Ae]();var Be=Re._storedError;if(Re._writeRequests.forEach(function(xt){xt._reject(Be)}),Re._writeRequests=new _e,Re._pendingAbortRequest===void 0){Jr(Re);return}var Qe=Re._pendingAbortRequest;if(Re._pendingAbortRequest=void 0,Qe._wasAlreadyErroring){Qe._reject(Be),Jr(Re);return}var gt=Re._writableStreamController[we](Qe._reason);ve(gt,function(){Qe._resolve(),Jr(Re)},function(xt){Qe._reject(xt),Jr(Re)})}function Rn(Re){Re._inFlightWriteRequest._resolve(void 0),Re._inFlightWriteRequest=void 0}function Wn(Re,Be){Re._inFlightWriteRequest._reject(Be),Re._inFlightWriteRequest=void 0,Or(Re,Be)}function ar(Re){Re._inFlightCloseRequest._resolve(void 0),Re._inFlightCloseRequest=void 0;var Be=Re._state;Be==="erroring"&&(Re._storedError=void 0,Re._pendingAbortRequest!==void 0&&(Re._pendingAbortRequest._resolve(),Re._pendingAbortRequest=void 0)),Re._state="closed";var Qe=Re._writer;Qe!==void 0&&Da(Qe)}function qn(Re,Be){Re._inFlightCloseRequest._reject(Be),Re._inFlightCloseRequest=void 0,Re._pendingAbortRequest!==void 0&&(Re._pendingAbortRequest._reject(Be),Re._pendingAbortRequest=void 0),Or(Re,Be)}function mr(Re){return!(Re._closeRequest===void 0&&Re._inFlightCloseRequest===void 0)}function Hr(Re){return!(Re._inFlightWriteRequest===void 0&&Re._inFlightCloseRequest===void 0)}function Yr(Re){Re._inFlightCloseRequest=Re._closeRequest,Re._closeRequest=void 0}function Mr(Re){Re._inFlightWriteRequest=Re._writeRequests.shift()}function Jr(Re){Re._closeRequest!==void 0&&(Re._closeRequest._reject(Re._storedError),Re._closeRequest=void 0);var Be=Re._writer;Be!==void 0&&_a(Be,Re._storedError)}function va(Re,Be){var Qe=Re._writer;Qe!==void 0&&Be!==Re._backpressure&&(Be?_o(Qe):Ca(Qe)),Re._backpressure=Be}var Vr=function(){function Re(Be){if(Te(Be,1,"WritableStreamDefaultWriter"),cr(Be,"First parameter"),Jn(Be))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=Be,Be._writer=this;var Qe=Be._state;if(Qe==="writable")!mr(Be)&&Be._backpressure?na(this):Fa(this),ta(this);else if(Qe==="erroring")Sa(this,Be._storedError),ta(this);else if(Qe==="closed")Fa(this),yo(this);else{var gt=Be._storedError;Sa(this,gt),Ma(this,gt)}}return Object.defineProperty(Re.prototype,"closed",{get:function(){return Ar(this)?this._closedPromise:de(Nr("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"desiredSize",{get:function(){if(!Ar(this))throw Nr("desiredSize");if(this._ownerWritableStream===void 0)throw Wr("desiredSize");return uo(this)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"ready",{get:function(){return Ar(this)?this._readyPromise:de(Nr("ready"))},enumerable:!1,configurable:!0}),Re.prototype.abort=function(Be){return Be===void 0&&(Be=void 0),Ar(this)?this._ownerWritableStream===void 0?de(Wr("abort")):so(this,Be):de(Nr("abort"))},Re.prototype.close=function(){if(!Ar(this))return de(Nr("close"));var Be=this._ownerWritableStream;return Be===void 0?de(Wr("close")):mr(Be)?de(new TypeError("Cannot close an already-closing stream")):wa(this)},Re.prototype.releaseLock=function(){if(!Ar(this))throw Nr("releaseLock");var Be=this._ownerWritableStream;Be!==void 0&&Pa(this)},Re.prototype.write=function(Be){return Be===void 0&&(Be=void 0),Ar(this)?this._ownerWritableStream===void 0?de(Wr("write to")):Oa(this,Be):de(Nr("write"))},Re}();Object.defineProperties(Vr.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Vr.prototype,F.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function Ar(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_ownerWritableStream")?!1:Re instanceof Vr}function so(Re,Be){var Qe=Re._ownerWritableStream;return pr(Qe,Be)}function wa(Re){var Be=Re._ownerWritableStream;return hr(Be)}function lo(Re){var Be=Re._ownerWritableStream,Qe=Be._state;return mr(Be)||Qe==="closed"?ce(void 0):Qe==="errored"?de(Be._storedError):wa(Re)}function co(Re,Be){Re._closedPromiseState==="pending"?_a(Re,Be):bo(Re,Be)}function Ta(Re,Be){Re._readyPromiseState==="pending"?La(Re,Be):So(Re,Be)}function uo(Re){var Be=Re._ownerWritableStream,Qe=Be._state;return Qe==="errored"||Qe==="erroring"?null:Qe==="closed"?0:Na(Be._writableStreamController)}function Pa(Re){var Be=Re._ownerWritableStream,Qe=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Ta(Re,Qe),co(Re,Qe),Be._writer=void 0,Re._ownerWritableStream=void 0}function Oa(Re,Be){var Qe=Re._ownerWritableStream,gt=Qe._writableStreamController,xt=mo(gt,Be);if(Qe!==Re._ownerWritableStream)return de(Wr("write to"));var jt=Qe._state;if(jt==="errored")return de(Qe._storedError);if(mr(Qe)||jt==="closed")return de(new TypeError("The stream is closing or closed and cannot be written to"));if(jt==="erroring")return de(Qe._storedError);var Ut=zr(Qe);return vo(gt,Be,xt),Ut}var Ia={},Dr=function(){function Re(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Re.prototype,"abortReason",{get:function(){if(!ga(this))throw ba("abortReason");return this._abortReason},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"signal",{get:function(){if(!ga(this))throw ba("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),Re.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!ga(this))throw ba("error");var Qe=this._controlledWritableStream._state;Qe==="writable"&&ka(this,Be)},Re.prototype[we]=function(Be){var Qe=this._abortAlgorithm(Be);return Qr(this),Qe},Re.prototype[Ae]=function(){Pt(this)},Re}();Object.defineProperties(Dr.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Dr.prototype,F.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function ga(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_controlledWritableStream")?!1:Re instanceof Dr}function Aa(Re,Be,Qe,gt,xt,jt,Ut,mn){Be._controlledWritableStream=Re,Re._writableStreamController=Be,Be._queue=void 0,Be._queueTotalSize=void 0,Pt(Be),Be._abortReason=void 0,Be._abortController=yn(),Be._started=!1,Be._strategySizeAlgorithm=mn,Be._strategyHWM=Ut,Be._writeAlgorithm=gt,Be._closeAlgorithm=xt,Be._abortAlgorithm=jt;var In=ya(Be);va(Re,In);var kn=Qe(),Mn=ce(kn);ve(Mn,function(){Be._started=!0,Zr(Be)},function(Dn){Be._started=!0,Or(Re,Dn)})}function fo(Re,Be,Qe,gt){var xt=Object.create(Dr.prototype),jt=function(){},Ut=function(){return ce(void 0)},mn=function(){return ce(void 0)},In=function(){return ce(void 0)};Be.start!==void 0&&(jt=function(){return Be.start(xt)}),Be.write!==void 0&&(Ut=function(kn){return Be.write(kn,xt)}),Be.close!==void 0&&(mn=function(){return Be.close()}),Be.abort!==void 0&&(In=function(kn){return Be.abort(kn)}),Aa(Re,xt,jt,Ut,mn,In,Qe,gt)}function Qr(Re){Re._writeAlgorithm=void 0,Re._closeAlgorithm=void 0,Re._abortAlgorithm=void 0,Re._strategySizeAlgorithm=void 0}function po(Re){Bt(Re,Ia,0),Zr(Re)}function mo(Re,Be){try{return Re._strategySizeAlgorithm(Be)}catch(Qe){return ha(Re,Qe),1}}function Na(Re){return Re._strategyHWM-Re._queueTotalSize}function vo(Re,Be,Qe){try{Bt(Re,Be,Qe)}catch(jt){ha(Re,jt);return}var gt=Re._controlledWritableStream;if(!mr(gt)&&gt._state==="writable"){var xt=ya(Re);va(gt,xt)}Zr(Re)}function Zr(Re){var Be=Re._controlledWritableStream;if(Re._started&&Be._inFlightWriteRequest===void 0){var Qe=Be._state;if(Qe==="erroring"){fn(Be);return}if(Re._queue.length!==0){var gt=It(Re);gt===Ia?go(Re):ho(Re,gt)}}}function ha(Re,Be){Re._controlledWritableStream._state==="writable"&&ka(Re,Be)}function go(Re){var Be=Re._controlledWritableStream;Yr(Be),St(Re);var Qe=Re._closeAlgorithm();Qr(Re),ve(Qe,function(){ar(Be)},function(gt){qn(Be,gt)})}function ho(Re,Be){var Qe=Re._controlledWritableStream;Mr(Qe);var gt=Re._writeAlgorithm(Be);ve(gt,function(){Rn(Qe);var xt=Qe._state;if(St(Re),!mr(Qe)&&xt==="writable"){var jt=ya(Re);va(Qe,jt)}Zr(Re)},function(xt){Qe._state==="writable"&&Qr(Re),Wn(Qe,xt)})}function ya(Re){var Be=Na(Re);return Be<=0}function ka(Re,Be){var Qe=Re._controlledWritableStream;Qr(Re),Ir(Qe,Be)}function ea(Re){return new TypeError("WritableStream.prototype."+Re+" can only be used on a WritableStream")}function ba(Re){return new TypeError("WritableStreamDefaultController.prototype."+Re+" can only be used on a WritableStreamDefaultController")}function Nr(Re){return new TypeError("WritableStreamDefaultWriter.prototype."+Re+" can only be used on a WritableStreamDefaultWriter")}function Wr(Re){return new TypeError("Cannot "+Re+" a stream using a released writer")}function ta(Re){Re._closedPromise=se(function(Be,Qe){Re._closedPromise_resolve=Be,Re._closedPromise_reject=Qe,Re._closedPromiseState="pending"})}function Ma(Re,Be){ta(Re),_a(Re,Be)}function yo(Re){ta(Re),Da(Re)}function _a(Re,Be){Re._closedPromise_reject!==void 0&&(ue(Re._closedPromise),Re._closedPromise_reject(Be),Re._closedPromise_resolve=void 0,Re._closedPromise_reject=void 0,Re._closedPromiseState="rejected")}function bo(Re,Be){Ma(Re,Be)}function Da(Re){Re._closedPromise_resolve!==void 0&&(Re._closedPromise_resolve(void 0),Re._closedPromise_resolve=void 0,Re._closedPromise_reject=void 0,Re._closedPromiseState="resolved")}function na(Re){Re._readyPromise=se(function(Be,Qe){Re._readyPromise_resolve=Be,Re._readyPromise_reject=Qe}),Re._readyPromiseState="pending"}function Sa(Re,Be){na(Re),La(Re,Be)}function Fa(Re){na(Re),Ca(Re)}function La(Re,Be){Re._readyPromise_reject!==void 0&&(ue(Re._readyPromise),Re._readyPromise_reject(Be),Re._readyPromise_resolve=void 0,Re._readyPromise_reject=void 0,Re._readyPromiseState="rejected")}function _o(Re){na(Re)}function So(Re,Be){Sa(Re,Be)}function Ca(Re){Re._readyPromise_resolve!==void 0&&(Re._readyPromise_resolve(void 0),Re._readyPromise_resolve=void 0,Re._readyPromise_reject=void 0,Re._readyPromiseState="fulfilled")}var ja=typeof DOMException!="undefined"?DOMException:void 0;function Co(Re){if(!(typeof Re=="function"||typeof Re=="object"))return!1;try{return new Re,!0}catch(Be){return!1}}function Ro(){var Re=function(Qe,gt){this.message=Qe||"",this.name=gt||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return Re.prototype=Object.create(Error.prototype),Object.defineProperty(Re.prototype,"constructor",{value:Re,writable:!0,configurable:!0}),Re}var Eo=Co(ja)?ja:Ro();function Ba(Re,Be,Qe,gt,xt,jt){var Ut=st(Re),mn=Hn(Be);Re._disturbed=!0;var In=!1,kn=ce(void 0);return se(function(Mn,Dn){var ir;if(jt!==void 0){if(ir=function(){var xn=new Eo("Aborted","AbortError"),jn=[];gt||jn.push(function(){return Be._state==="writable"?pr(Be,xn):ce(void 0)}),xt||jn.push(function(){return Re._state==="readable"?yr(Re,xn):ce(void 0)}),vr(function(){return Promise.all(jn.map(function(Zn){return Zn()}))},!0,xn)},jt.aborted){ir();return}jt.addEventListener("abort",ir)}function br(){return se(function(xn,jn){function Zn(Cr){Cr?xn():le(jr(),Zn,jn)}Zn(!1)})}function jr(){return In?ce(!0):le(mn._readyPromise,function(){return se(function(xn,jn){bt(Ut,{_chunkSteps:function(Zn){kn=le(Oa(mn,Zn),void 0,K),xn(!1)},_closeSteps:function(){return xn(!0)},_errorSteps:jn})})})}if(dr(Re,Ut._closedPromise,function(xn){gt?Rr(!0,xn):vr(function(){return pr(Be,xn)},!0,xn)}),dr(Be,mn._closedPromise,function(xn){xt?Rr(!0,xn):vr(function(){return yr(Re,xn)},!0,xn)}),Sr(Re,Ut._closedPromise,function(){Qe?Rr():vr(function(){return lo(mn)})}),mr(Be)||Be._state==="closed"){var Tr=new TypeError("the destination writable stream closed before all data could be piped to it");xt?Rr(!0,Tr):vr(function(){return yr(Re,Tr)},!0,Tr)}ue(br());function _r(){var xn=kn;return le(kn,function(){return xn!==kn?_r():void 0})}function dr(xn,jn,Zn){xn._state==="errored"?Zn(xn._storedError):he(jn,Zn)}function Sr(xn,jn,Zn){xn._state==="closed"?Zn():fe(jn,Zn)}function vr(xn,jn,Zn){if(In)return;In=!0,Be._state==="writable"&&!mr(Be)?fe(_r(),Cr):Cr();function Cr(){ve(xn(),function(){return Qn(jn,Zn)},function(Pr){return Qn(!0,Pr)})}}function Rr(xn,jn){In||(In=!0,Be._state==="writable"&&!mr(Be)?fe(_r(),function(){return Qn(xn,jn)}):Qn(xn,jn))}function Qn(xn,jn){Pa(mn),Ce(Ut),jt!==void 0&&jt.removeEventListener("abort",ir),xn?Dn(jn):Mn(void 0)}})}var Fr=function(){function Re(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Re.prototype,"desiredSize",{get:function(){if(!ra(this))throw ia("desiredSize");return Ra(this)},enumerable:!1,configurable:!0}),Re.prototype.close=function(){if(!ra(this))throw ia("close");if(!Lr(this))throw new TypeError("The stream is not in a state that permits close");Kr(this)},Re.prototype.enqueue=function(Be){if(Be===void 0&&(Be=void 0),!ra(this))throw ia("enqueue");if(!Lr(this))throw new TypeError("The stream is not in a state that permits enqueue");return oa(this,Be)},Re.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!ra(this))throw ia("error");Er(this,Be)},Re.prototype[ke]=function(Be){Pt(this);var Qe=this._cancelAlgorithm(Be);return aa(this),Qe},Re.prototype[je]=function(Be){var Qe=this._controlledReadableStream;if(this._queue.length>0){var gt=St(this);this._closeRequested&&this._queue.length===0?(aa(this),Gr(Qe)):Ur(this),Be._chunkSteps(gt)}else it(Qe,Be),Ur(this)},Re}();Object.defineProperties(Fr.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(Fr.prototype,F.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function ra(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_controlledReadableStream")?!1:Re instanceof Fr}function Ur(Re){var Be=za(Re);if(Be){if(Re._pulling){Re._pullAgain=!0;return}Re._pulling=!0;var Qe=Re._pullAlgorithm();ve(Qe,function(){Re._pulling=!1,Re._pullAgain&&(Re._pullAgain=!1,Ur(Re))},function(gt){Er(Re,gt)})}}function za(Re){var Be=Re._controlledReadableStream;if(!Lr(Re)||!Re._started)return!1;if(wr(Be)&&ct(Be)>0)return!0;var Qe=Ra(Re);return Qe>0}function aa(Re){Re._pullAlgorithm=void 0,Re._cancelAlgorithm=void 0,Re._strategySizeAlgorithm=void 0}function Kr(Re){if(Lr(Re)){var Be=Re._controlledReadableStream;Re._closeRequested=!0,Re._queue.length===0&&(aa(Re),Gr(Be))}}function oa(Re,Be){if(Lr(Re)){var Qe=Re._controlledReadableStream;if(wr(Qe)&&ct(Qe)>0)Je(Qe,Be,!1);else{var gt=void 0;try{gt=Re._strategySizeAlgorithm(Be)}catch(xt){throw Er(Re,xt),xt}try{Bt(Re,Be,gt)}catch(xt){throw Er(Re,xt),xt}}Ur(Re)}}function Er(Re,Be){var Qe=Re._controlledReadableStream;Qe._state==="readable"&&(Pt(Re),aa(Re),Ua(Qe,Be))}function Ra(Re){var Be=Re._controlledReadableStream._state;return Be==="errored"?null:Be==="closed"?0:Re._strategyHWM-Re._queueTotalSize}function $o(Re){return!za(Re)}function Lr(Re){var Be=Re._controlledReadableStream._state;return!Re._closeRequested&&Be==="readable"}function Ha(Re,Be,Qe,gt,xt,jt,Ut){Be._controlledReadableStream=Re,Be._queue=void 0,Be._queueTotalSize=void 0,Pt(Be),Be._started=!1,Be._closeRequested=!1,Be._pullAgain=!1,Be._pulling=!1,Be._strategySizeAlgorithm=Ut,Be._strategyHWM=jt,Be._pullAlgorithm=gt,Be._cancelAlgorithm=xt,Re._readableStreamController=Be;var mn=Qe();ve(ce(mn),function(){Be._started=!0,Ur(Be)},function(In){Er(Be,In)})}function xo(Re,Be,Qe,gt){var xt=Object.create(Fr.prototype),jt=function(){},Ut=function(){return ce(void 0)},mn=function(){return ce(void 0)};Be.start!==void 0&&(jt=function(){return Be.start(xt)}),Be.pull!==void 0&&(Ut=function(){return Be.pull(xt)}),Be.cancel!==void 0&&(mn=function(In){return Be.cancel(In)}),Ha(Re,xt,jt,Ut,mn,Qe,gt)}function ia(Re){return new TypeError("ReadableStreamDefaultController.prototype."+Re+" can only be used on a ReadableStreamDefaultController")}function wo(Re,Be){return At(Re._readableStreamController)?Po(Re):To(Re)}function To(Re,Be){var Qe=st(Re),gt=!1,xt=!1,jt=!1,Ut=!1,mn,In,kn,Mn,Dn,ir=se(function(dr){Dn=dr});function br(){if(gt)return xt=!0,ce(void 0);gt=!0;var dr={_chunkSteps:function(Sr){pe(function(){xt=!1;var vr=Sr,Rr=Sr;jt||oa(kn._readableStreamController,vr),Ut||oa(Mn._readableStreamController,Rr),gt=!1,xt&&br()})},_closeSteps:function(){gt=!1,jt||Kr(kn._readableStreamController),Ut||Kr(Mn._readableStreamController),(!jt||!Ut)&&Dn(void 0)},_errorSteps:function(){gt=!1}};return bt(Qe,dr),ce(void 0)}function jr(dr){if(jt=!0,mn=dr,Ut){var Sr=qe([mn,In]),vr=yr(Re,Sr);Dn(vr)}return ir}function Tr(dr){if(Ut=!0,In=dr,jt){var Sr=qe([mn,In]),vr=yr(Re,Sr);Dn(vr)}return ir}function _r(){}return kn=Ea(_r,br,jr),Mn=Ea(_r,br,Tr),he(Qe._closedPromise,function(dr){Er(kn._readableStreamController,dr),Er(Mn._readableStreamController,dr),(!jt||!Ut)&&Dn(void 0)}),[kn,Mn]}function Po(Re){var Be=st(Re),Qe=!1,gt=!1,xt=!1,jt=!1,Ut=!1,mn,In,kn,Mn,Dn,ir=se(function(Qn){Dn=Qn});function br(Qn){he(Qn._closedPromise,function(xn){Qn===Be&&(Mt(kn._readableStreamController,xn),Mt(Mn._readableStreamController,xn),(!jt||!Ut)&&Dn(void 0))})}function jr(){Pn(Be)&&(Ce(Be),Be=st(Re),br(Be));var Qn={_chunkSteps:function(xn){pe(function(){gt=!1,xt=!1;var jn=xn,Zn=xn;if(!jt&&!Ut)try{Zn=Dt(xn)}catch(Cr){Mt(kn._readableStreamController,Cr),Mt(Mn._readableStreamController,Cr),Dn(yr(Re,Cr));return}jt||Nt(kn._readableStreamController,jn),Ut||Nt(Mn._readableStreamController,Zn),Qe=!1,gt?_r():xt&&dr()})},_closeSteps:function(){Qe=!1,jt||Et(kn._readableStreamController),Ut||Et(Mn._readableStreamController),kn._readableStreamController._pendingPullIntos.length>0&&vn(kn._readableStreamController,0),Mn._readableStreamController._pendingPullIntos.length>0&&vn(Mn._readableStreamController,0),(!jt||!Ut)&&Dn(void 0)},_errorSteps:function(){Qe=!1}};bt(Be,Qn)}function Tr(Qn,xn){ht(Be)&&(Ce(Be),Be=wn(Re),br(Be));var jn=xn?Mn:kn,Zn=xn?kn:Mn,Cr={_chunkSteps:function(Pr){pe(function(){gt=!1,xt=!1;var Br=xn?Ut:jt,Xr=xn?jt:Ut;if(Xr)Br||bn(jn._readableStreamController,Pr);else{var ao=void 0;try{ao=Dt(Pr)}catch(xa){Mt(jn._readableStreamController,xa),Mt(Zn._readableStreamController,xa),Dn(yr(Re,xa));return}Br||bn(jn._readableStreamController,Pr),Nt(Zn._readableStreamController,ao)}Qe=!1,gt?_r():xt&&dr()})},_closeSteps:function(Pr){Qe=!1;var Br=xn?Ut:jt,Xr=xn?jt:Ut;Br||Et(jn._readableStreamController),Xr||Et(Zn._readableStreamController),Pr!==void 0&&(Br||bn(jn._readableStreamController,Pr),!Xr&&Zn._readableStreamController._pendingPullIntos.length>0&&vn(Zn._readableStreamController,0)),(!Br||!Xr)&&Dn(void 0)},_errorSteps:function(){Qe=!1}};rr(Be,Qn,Cr)}function _r(){if(Qe)return gt=!0,ce(void 0);Qe=!0;var Qn=Lt(kn._readableStreamController);return Qn===null?jr():Tr(Qn._view,!1),ce(void 0)}function dr(){if(Qe)return xt=!0,ce(void 0);Qe=!0;var Qn=Lt(Mn._readableStreamController);return Qn===null?jr():Tr(Qn._view,!0),ce(void 0)}function Sr(Qn){if(jt=!0,mn=Qn,Ut){var xn=qe([mn,In]),jn=yr(Re,xn);Dn(jn)}return ir}function vr(Qn){if(Ut=!0,In=Qn,jt){var xn=qe([mn,In]),jn=yr(Re,xn);Dn(jn)}return ir}function Rr(){}return kn=Wa(Rr,_r,Sr),Mn=Wa(Rr,dr,vr),br(Be),[kn,Mn]}function Oo(Re,Be){Ye(Re,Be);var Qe=Re,gt=Qe==null?void 0:Qe.autoAllocateChunkSize,xt=Qe==null?void 0:Qe.cancel,jt=Qe==null?void 0:Qe.pull,Ut=Qe==null?void 0:Qe.start,mn=Qe==null?void 0:Qe.type;return{autoAllocateChunkSize:gt===void 0?void 0:Ke(gt,Be+" has member 'autoAllocateChunkSize' that"),cancel:xt===void 0?void 0:Io(xt,Qe,Be+" has member 'cancel' that"),pull:jt===void 0?void 0:Ao(jt,Qe,Be+" has member 'pull' that"),start:Ut===void 0?void 0:No(Ut,Qe,Be+" has member 'start' that"),type:mn===void 0?void 0:ko(mn,Be+" has member 'type' that")}}function Io(Re,Be,Qe){return at(Re,Qe),function(gt){return be(Re,Be,[gt])}}function Ao(Re,Be,Qe){return at(Re,Qe),function(gt){return be(Re,Be,[gt])}}function No(Re,Be,Qe){return at(Re,Qe),function(gt){return ye(Re,Be,[gt])}}function ko(Re,Be){if(Re=""+Re,Re!=="bytes")throw new TypeError(Be+" '"+Re+"' is not a valid enumeration value for ReadableStreamType");return Re}function Mo(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.mode;return{mode:Qe===void 0?void 0:Do(Qe,Be+" has member 'mode' that")}}function Do(Re,Be){if(Re=""+Re,Re!=="byob")throw new TypeError(Be+" '"+Re+"' is not a valid enumeration value for ReadableStreamReaderMode");return Re}function Fo(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.preventCancel;return{preventCancel:!!Qe}}function Va(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.preventAbort,gt=Re==null?void 0:Re.preventCancel,xt=Re==null?void 0:Re.preventClose,jt=Re==null?void 0:Re.signal;return jt!==void 0&&Lo(jt,Be+" has member 'signal' that"),{preventAbort:!!Qe,preventCancel:!!gt,preventClose:!!xt,signal:jt}}function Lo(Re,Be){if(!ur(Re))throw new TypeError(Be+" is not an AbortSignal.")}function jo(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.readable;Pe(Qe,"readable","ReadableWritablePair"),rt(Qe,Be+" has member 'readable' that");var gt=Re==null?void 0:Re.writable;return Pe(gt,"writable","ReadableWritablePair"),cr(gt,Be+" has member 'writable' that"),{readable:Qe,writable:gt}}var $r=function(){function Re(Be,Qe){Be===void 0&&(Be={}),Qe===void 0&&(Qe={}),Be===void 0?Be=null:Le(Be,"First parameter");var gt=Sn(Qe,"Second parameter"),xt=Oo(Be,"First parameter");if($a(this),xt.type==="bytes"){if(gt.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");var jt=En(gt,0);Nn(this,xt,jt)}else{var Ut=Zt(gt),jt=En(gt,1);xo(this,xt,jt,Ut)}}return Object.defineProperty(Re.prototype,"locked",{get:function(){if(!xr(this))throw kr("locked");return wr(this)},enumerable:!1,configurable:!0}),Re.prototype.cancel=function(Be){return Be===void 0&&(Be=void 0),xr(this)?wr(this)?de(new TypeError("Cannot cancel a stream that already has a reader")):yr(this,Be):de(kr("cancel"))},Re.prototype.getReader=function(Be){if(Be===void 0&&(Be=void 0),!xr(this))throw kr("getReader");var Qe=Mo(Be,"First parameter");return Qe.mode===void 0?st(this):wn(this)},Re.prototype.pipeThrough=function(Be,Qe){if(Qe===void 0&&(Qe={}),!xr(this))throw kr("pipeThrough");Te(Be,1,"pipeThrough");var gt=jo(Be,"First parameter"),xt=Va(Qe,"Second parameter");if(wr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Jn(gt.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var jt=Ba(this,gt.writable,xt.preventClose,xt.preventAbort,xt.preventCancel,xt.signal);return ue(jt),gt.readable},Re.prototype.pipeTo=function(Be,Qe){if(Qe===void 0&&(Qe={}),!xr(this))return de(kr("pipeTo"));if(Be===void 0)return de("Parameter 1 is required in 'pipeTo'.");if(!Yn(Be))return de(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var gt;try{gt=Va(Qe,"Second parameter")}catch(xt){return de(xt)}return wr(this)?de(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Jn(Be)?de(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ba(this,Be,gt.preventClose,gt.preventAbort,gt.preventCancel,gt.signal)},Re.prototype.tee=function(){if(!xr(this))throw kr("tee");var Be=wo(this);return qe(Be)},Re.prototype.values=function(Be){if(Be===void 0&&(Be=void 0),!xr(this))throw kr("values");var Qe=Fo(Be,"First parameter");return et(this,Qe.preventCancel)},Re}();Object.defineProperties($r.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty($r.prototype,F.toStringTag,{value:"ReadableStream",configurable:!0}),typeof F.asyncIterator=="symbol"&&Object.defineProperty($r.prototype,F.asyncIterator,{value:$r.prototype.values,writable:!0,configurable:!0});function Ea(Re,Be,Qe,gt,xt){gt===void 0&&(gt=1),xt===void 0&&(xt=function(){return 1});var jt=Object.create($r.prototype);$a(jt);var Ut=Object.create(Fr.prototype);return Ha(jt,Ut,Re,Be,Qe,gt,xt),jt}function Wa(Re,Be,Qe){var gt=Object.create($r.prototype);$a(gt);var xt=Object.create(Ct.prototype);return _n(gt,xt,Re,Be,Qe,0,void 0),gt}function $a(Re){Re._state="readable",Re._reader=void 0,Re._storedError=void 0,Re._disturbed=!1}function xr(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_readableStreamController")?!1:Re instanceof $r}function wr(Re){return Re._reader!==void 0}function yr(Re,Be){if(Re._disturbed=!0,Re._state==="closed")return ce(void 0);if(Re._state==="errored")return de(Re._storedError);Gr(Re);var Qe=Re._reader;Qe!==void 0&&Pn(Qe)&&(Qe._readIntoRequests.forEach(function(xt){xt._closeSteps(void 0)}),Qe._readIntoRequests=new _e);var gt=Re._readableStreamController[ke](Be);return me(gt,K)}function Gr(Re){Re._state="closed";var Be=Re._reader;Be!==void 0&&(Oe(Be),ht(Be)&&(Be._readRequests.forEach(function(Qe){Qe._closeSteps()}),Be._readRequests=new _e))}function Ua(Re,Be){Re._state="errored",Re._storedError=Be;var Qe=Re._reader;Qe!==void 0&&(Ne(Qe,Be),ht(Qe)?(Qe._readRequests.forEach(function(gt){gt._errorSteps(Be)}),Qe._readRequests=new _e):(Qe._readIntoRequests.forEach(function(gt){gt._errorSteps(Be)}),Qe._readIntoRequests=new _e))}function kr(Re){return new TypeError("ReadableStream.prototype."+Re+" can only be used on a ReadableStream")}function Ka(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.highWaterMark;return Pe(Qe,"highWaterMark","QueuingStrategyInit"),{highWaterMark:Me(Qe)}}var Ga=function(Re){return Re.byteLength};Object.defineProperty(Ga,"name",{value:"size",configurable:!0});var sa=function(){function Re(Be){Te(Be,1,"ByteLengthQueuingStrategy"),Be=Ka(Be,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=Be.highWaterMark}return Object.defineProperty(Re.prototype,"highWaterMark",{get:function(){if(!Xa(this))throw qa("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"size",{get:function(){if(!Xa(this))throw qa("size");return Ga},enumerable:!1,configurable:!0}),Re}();Object.defineProperties(sa.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(sa.prototype,F.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function qa(Re){return new TypeError("ByteLengthQueuingStrategy.prototype."+Re+" can only be used on a ByteLengthQueuingStrategy")}function Xa(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_byteLengthQueuingStrategyHighWaterMark")?!1:Re instanceof sa}var Ya=function(){return 1};Object.defineProperty(Ya,"name",{value:"size",configurable:!0});var la=function(){function Re(Be){Te(Be,1,"CountQueuingStrategy"),Be=Ka(Be,"First parameter"),this._countQueuingStrategyHighWaterMark=Be.highWaterMark}return Object.defineProperty(Re.prototype,"highWaterMark",{get:function(){if(!Qa(this))throw Ja("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"size",{get:function(){if(!Qa(this))throw Ja("size");return Ya},enumerable:!1,configurable:!0}),Re}();Object.defineProperties(la.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(la.prototype,F.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function Ja(Re){return new TypeError("CountQueuingStrategy.prototype."+Re+" can only be used on a CountQueuingStrategy")}function Qa(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_countQueuingStrategyHighWaterMark")?!1:Re instanceof la}function Bo(Re,Be){Ye(Re,Be);var Qe=Re==null?void 0:Re.flush,gt=Re==null?void 0:Re.readableType,xt=Re==null?void 0:Re.start,jt=Re==null?void 0:Re.transform,Ut=Re==null?void 0:Re.writableType;return{flush:Qe===void 0?void 0:zo(Qe,Re,Be+" has member 'flush' that"),readableType:gt,start:xt===void 0?void 0:Ho(xt,Re,Be+" has member 'start' that"),transform:jt===void 0?void 0:Vo(jt,Re,Be+" has member 'transform' that"),writableType:Ut}}function zo(Re,Be,Qe){return at(Re,Qe),function(gt){return be(Re,Be,[gt])}}function Ho(Re,Be,Qe){return at(Re,Qe),function(gt){return ye(Re,Be,[gt])}}function Vo(Re,Be,Qe){return at(Re,Qe),function(gt,xt){return be(Re,Be,[gt,xt])}}var ca=function(){function Re(Be,Qe,gt){Be===void 0&&(Be={}),Qe===void 0&&(Qe={}),gt===void 0&&(gt={}),Be===void 0&&(Be=null);var xt=Sn(Qe,"Second parameter"),jt=Sn(gt,"Third parameter"),Ut=Bo(Be,"First parameter");if(Ut.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(Ut.writableType!==void 0)throw new RangeError("Invalid writableType specified");var mn=En(jt,0),In=Zt(jt),kn=En(xt,1),Mn=Zt(xt),Dn,ir=se(function(br){Dn=br});Wo(this,ir,kn,Mn,mn,In),Ko(this,Ut),Ut.start!==void 0?Dn(Ut.start(this._transformStreamController)):Dn(void 0)}return Object.defineProperty(Re.prototype,"readable",{get:function(){if(!Za(this))throw ro("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"writable",{get:function(){if(!Za(this))throw ro("writable");return this._writable},enumerable:!1,configurable:!0}),Re}();Object.defineProperties(ca.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(ca.prototype,F.toStringTag,{value:"TransformStream",configurable:!0});function Wo(Re,Be,Qe,gt,xt,jt){function Ut(){return Be}function mn(ir){return Xo(Re,ir)}function In(ir){return Yo(Re,ir)}function kn(){return Jo(Re)}Re._writable=Gn(Ut,mn,kn,In,Qe,gt);function Mn(){return Qo(Re)}function Dn(ir){return da(Re,ir),ce(void 0)}Re._readable=Ea(Ut,Mn,Dn,xt,jt),Re._backpressure=void 0,Re._backpressureChangePromise=void 0,Re._backpressureChangePromise_resolve=void 0,fa(Re,!0),Re._transformStreamController=void 0}function Za(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_transformStreamController")?!1:Re instanceof ca}function ua(Re,Be){Er(Re._readable._readableStreamController,Be),da(Re,Be)}function da(Re,Be){eo(Re._transformStreamController),ha(Re._writable._writableStreamController,Be),Re._backpressure&&fa(Re,!1)}function fa(Re,Be){Re._backpressureChangePromise!==void 0&&Re._backpressureChangePromise_resolve(),Re._backpressureChangePromise=se(function(Qe){Re._backpressureChangePromise_resolve=Qe}),Re._backpressure=Be}var qr=function(){function Re(){throw new TypeError("Illegal constructor")}return Object.defineProperty(Re.prototype,"desiredSize",{get:function(){if(!pa(this))throw ma("desiredSize");var Be=this._controlledTransformStream._readable._readableStreamController;return Ra(Be)},enumerable:!1,configurable:!0}),Re.prototype.enqueue=function(Be){if(Be===void 0&&(Be=void 0),!pa(this))throw ma("enqueue");to(this,Be)},Re.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!pa(this))throw ma("error");Go(this,Be)},Re.prototype.terminate=function(){if(!pa(this))throw ma("terminate");qo(this)},Re}();Object.defineProperties(qr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof F.toStringTag=="symbol"&&Object.defineProperty(qr.prototype,F.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function pa(Re){return!te(Re)||!Object.prototype.hasOwnProperty.call(Re,"_controlledTransformStream")?!1:Re instanceof qr}function Uo(Re,Be,Qe,gt){Be._controlledTransformStream=Re,Re._transformStreamController=Be,Be._transformAlgorithm=Qe,Be._flushAlgorithm=gt}function Ko(Re,Be){var Qe=Object.create(qr.prototype),gt=function(jt){try{return to(Qe,jt),ce(void 0)}catch(Ut){return de(Ut)}},xt=function(){return ce(void 0)};Be.transform!==void 0&&(gt=function(jt){return Be.transform(jt,Qe)}),Be.flush!==void 0&&(xt=function(){return Be.flush(Qe)}),Uo(Re,Qe,gt,xt)}function eo(Re){Re._transformAlgorithm=void 0,Re._flushAlgorithm=void 0}function to(Re,Be){var Qe=Re._controlledTransformStream,gt=Qe._readable._readableStreamController;if(!Lr(gt))throw new TypeError("Readable side is not in a state that permits enqueue");try{oa(gt,Be)}catch(jt){throw da(Qe,jt),Qe._readable._storedError}var xt=$o(gt);xt!==Qe._backpressure&&fa(Qe,!0)}function Go(Re,Be){ua(Re._controlledTransformStream,Be)}function no(Re,Be){var Qe=Re._transformAlgorithm(Be);return me(Qe,void 0,function(gt){throw ua(Re._controlledTransformStream,gt),gt})}function qo(Re){var Be=Re._controlledTransformStream,Qe=Be._readable._readableStreamController;Kr(Qe);var gt=new TypeError("TransformStream terminated");da(Be,gt)}function Xo(Re,Be){var Qe=Re._transformStreamController;if(Re._backpressure){var gt=Re._backpressureChangePromise;return me(gt,function(){var xt=Re._writable,jt=xt._state;if(jt==="erroring")throw xt._storedError;return no(Qe,Be)})}return no(Qe,Be)}function Yo(Re,Be){return ua(Re,Be),ce(void 0)}function Jo(Re){var Be=Re._readable,Qe=Re._transformStreamController,gt=Qe._flushAlgorithm();return eo(Qe),me(gt,function(){if(Be._state==="errored")throw Be._storedError;Kr(Be._readableStreamController)},function(xt){throw ua(Re,xt),Be._storedError})}function Qo(Re){return fa(Re,!1),Re._backpressureChangePromise}function ma(Re){return new TypeError("TransformStreamDefaultController.prototype."+Re+" can only be used on a TransformStreamDefaultController")}function ro(Re){return new TypeError("TransformStream.prototype."+Re+" can only be used on a TransformStream")}V.ByteLengthQueuingStrategy=sa,V.CountQueuingStrategy=la,V.ReadableByteStreamController=Ct,V.ReadableStream=$r,V.ReadableStreamBYOBReader=Un,V.ReadableStreamBYOBRequest=Tt,V.ReadableStreamDefaultController=Fr,V.ReadableStreamDefaultReader=vt,V.TransformStream=ca,V.TransformStreamDefaultController=qr,V.WritableStream=Bn,V.WritableStreamDefaultController=Dr,V.WritableStreamDefaultWriter=Vr,Object.defineProperty(V,"__esModule",{value:!0})})},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.BaseStandardFontDataFactory=$.BaseSVGFactory=$.BaseCanvasFactory=$.BaseCMapReaderFactory=void 0;var F=J(V(2)),K=V(4);function J(de){return de&&de.__esModule?de:{default:de}}function ee(de,le,ve,fe,he,me,ue){try{var pe=de[me](ue),ye=pe.value}catch(be){ve(be);return}pe.done?le(ye):Promise.resolve(ye).then(fe,he)}function te(de){return function(){var le=this,ve=arguments;return new Promise(function(fe,he){var me=de.apply(le,ve);function ue(ye){ee(me,fe,he,ue,pe,"next",ye)}function pe(ye){ee(me,fe,he,ue,pe,"throw",ye)}ue(void 0)})}}function ne(de,le){if(!(de instanceof le))throw new TypeError("Cannot call a class as a function")}function re(de,le){for(var ve=0;ve<le.length;ve++){var fe=le[ve];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(de,fe.key,fe)}}function ae(de,le,ve){return le&&re(de.prototype,le),ve&&re(de,ve),de}var oe=function(){function de(){ne(this,de),this.constructor===de&&(0,K.unreachable)("Cannot initialize BaseCanvasFactory.")}return ae(de,[{key:"create",value:function(ve,fe){if(ve<=0||fe<=0)throw new Error("Invalid canvas size");var he=this._createCanvas(ve,fe);return{canvas:he,context:he.getContext("2d")}}},{key:"reset",value:function(ve,fe,he){if(!ve.canvas)throw new Error("Canvas is not specified");if(fe<=0||he<=0)throw new Error("Invalid canvas size");ve.canvas.width=fe,ve.canvas.height=he}},{key:"destroy",value:function(ve){if(!ve.canvas)throw new Error("Canvas is not specified");ve.canvas.width=0,ve.canvas.height=0,ve.canvas=null,ve.context=null}},{key:"_createCanvas",value:function(ve,fe){(0,K.unreachable)("Abstract method `_createCanvas` called.")}}]),de}();$.BaseCanvasFactory=oe;var ie=function(){function de(le){var ve=le.baseUrl,fe=ve===void 0?null:ve,he=le.isCompressed,me=he===void 0?!1:he;ne(this,de),this.constructor===de&&(0,K.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=fe,this.isCompressed=me}return ae(de,[{key:"fetch",value:function(){var le=te(F.default.mark(function fe(he){var me=this,ue,pe,ye;return F.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(ue=he.name,this.baseUrl){ge.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(ue){ge.next=5;break}throw new Error("CMap name must be specified.");case 5:return pe=this.baseUrl+ue+(this.isCompressed?".bcmap":""),ye=this.isCompressed?K.CMapCompressionType.BINARY:K.CMapCompressionType.NONE,ge.abrupt("return",this._fetchData(pe,ye).catch(function(_e){throw new Error("Unable to load ".concat(me.isCompressed?"binary ":"","CMap at: ").concat(pe))}));case 8:case"end":return ge.stop()}},fe,this)}));function ve(fe){return le.apply(this,arguments)}return ve}()},{key:"_fetchData",value:function(ve,fe){(0,K.unreachable)("Abstract method `_fetchData` called.")}}]),de}();$.BaseCMapReaderFactory=ie;var se=function(){function de(le){var ve=le.baseUrl,fe=ve===void 0?null:ve;ne(this,de),this.constructor===de&&(0,K.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=fe}return ae(de,[{key:"fetch",value:function(){var le=te(F.default.mark(function fe(he){var me,ue;return F.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(me=he.filename,this.baseUrl){ye.next=3;break}throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');case 3:if(me){ye.next=5;break}throw new Error("Font filename must be specified.");case 5:return ue="".concat(this.baseUrl).concat(me),ye.abrupt("return",this._fetchData(ue).catch(function(be){throw new Error("Unable to load font data at: ".concat(ue))}));case 7:case"end":return ye.stop()}},fe,this)}));function ve(fe){return le.apply(this,arguments)}return ve}()},{key:"_fetchData",value:function(ve){(0,K.unreachable)("Abstract method `_fetchData` called.")}}]),de}();$.BaseStandardFontDataFactory=se;var ce=function(){function de(){ne(this,de),this.constructor===de&&(0,K.unreachable)("Cannot initialize BaseSVGFactory.")}return ae(de,[{key:"create",value:function(ve,fe){if(ve<=0||fe<=0)throw new Error("Invalid SVG dimensions");var he=this._createSVG("svg:svg");return he.setAttribute("version","1.1"),he.setAttribute("width","".concat(ve,"px")),he.setAttribute("height","".concat(fe,"px")),he.setAttribute("preserveAspectRatio","none"),he.setAttribute("viewBox","0 0 ".concat(ve," ").concat(fe)),he}},{key:"createElement",value:function(ve){if(typeof ve!="string")throw new Error("Invalid SVG element type");return this._createSVG(ve)}},{key:"_createSVG",value:function(ve){(0,K.unreachable)("Abstract method `_createSVG` called.")}}]),de}();$.BaseSVGFactory=ce},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(4),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(137),_node_utils=__w_pdfjs_require__(138),_annotation_storage=__w_pdfjs_require__(139),_canvas=__w_pdfjs_require__(140),_worker_options=__w_pdfjs_require__(142),_is_node=__w_pdfjs_require__(6),_message_handler=__w_pdfjs_require__(143),_metadata=__w_pdfjs_require__(144),_optional_content_config=__w_pdfjs_require__(145),_transport_stream=__w_pdfjs_require__(146),_xfa_text=__w_pdfjs_require__(147);function _interopRequireDefault(C){return C&&C.__esModule?C:{default:C}}function _classPrivateFieldInitSpec(C,$,V){_checkPrivateRedeclaration(C,$),$.set(C,V)}function _checkPrivateRedeclaration(C,$){if($.has(C))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldSet(C,$,V){var F=_classExtractFieldDescriptor(C,$,"set");return _classApplyDescriptorSet(C,F,V),V}function _classApplyDescriptorSet(C,$,V){if($.set)$.set.call(C,V);else{if(!$.writable)throw new TypeError("attempted to set read only private field");$.value=V}}function _classPrivateFieldGet(C,$){var V=_classExtractFieldDescriptor(C,$,"get");return _classApplyDescriptorGet(C,V)}function _classExtractFieldDescriptor(C,$,V){if(!$.has(C))throw new TypeError("attempted to "+V+" private field on non-instance");return $.get(C)}function _classApplyDescriptorGet(C,$){return $.get?$.get.call(C):$.value}function _toConsumableArray(C){return _arrayWithoutHoles(C)||_iterableToArray(C)||_unsupportedIterableToArray(C)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
443
443
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray(C){if(typeof Symbol!="undefined"&&C[Symbol.iterator]!=null||C["@@iterator"]!=null)return Array.from(C)}function _arrayWithoutHoles(C){if(Array.isArray(C))return _arrayLikeToArray(C)}function _createForOfIteratorHelper(C,$){var V=typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(!V){if(Array.isArray(C)||(V=_unsupportedIterableToArray(C))||$&&C&&typeof C.length=="number"){V&&(C=V);var F=0,K=function(){};return{s:K,n:function(){return F>=C.length?{done:!0}:{done:!1,value:C[F++]}},e:function(re){throw re},f:K}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
444
444
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J=!0,ee=!1,te;return{s:function(){V=V.call(C)},n:function(){var re=V.next();return J=re.done,re},e:function(re){ee=!0,te=re},f:function(){try{!J&&V.return!=null&&V.return()}finally{if(ee)throw te}}}}function _classCallCheck(C,$){if(!(C instanceof $))throw new TypeError("Cannot call a class as a function")}function _defineProperties(C,$){for(var V=0;V<$.length;V++){var F=$[V];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(C,F.key,F)}}function _createClass(C,$,V){return $&&_defineProperties(C.prototype,$),V&&_defineProperties(C,V),C}function asyncGeneratorStep(C,$,V,F,K,J,ee){try{var te=C[J](ee),ne=te.value}catch(re){V(re);return}te.done?$(ne):Promise.resolve(ne).then(F,K)}function _asyncToGenerator(C){return function(){var $=this,V=arguments;return new Promise(function(F,K){var J=C.apply($,V);function ee(ne){asyncGeneratorStep(J,F,K,ee,te,"next",ne)}function te(ne){asyncGeneratorStep(J,F,K,ee,te,"throw",ne)}ee(void 0)})}}function _slicedToArray(C,$){return _arrayWithHoles(C)||_iterableToArrayLimit(C,$)||_unsupportedIterableToArray(C,$)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
445
445
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(C,$){if(C){if(typeof C=="string")return _arrayLikeToArray(C,$);var V=Object.prototype.toString.call(C).slice(8,-1);if(V==="Object"&&C.constructor&&(V=C.constructor.name),V==="Map"||V==="Set")return Array.from(C);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return _arrayLikeToArray(C,$)}}function _arrayLikeToArray(C,$){($==null||$>C.length)&&($=C.length);for(var V=0,F=new Array($);V<$;V++)F[V]=C[V];return F}function _iterableToArrayLimit(C,$){var V=C==null?null:typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(V!=null){var F=[],K=!0,J=!1,ee,te;try{for(V=V.call(C);!(K=(ee=V.next()).done)&&(F.push(ee.value),!($&&F.length===$));K=!0);}catch(ne){J=!0,te=ne}finally{try{!K&&V.return!=null&&V.return()}finally{if(J)throw te}}return F}}function _arrayWithHoles(C){if(Array.isArray(C))return C}function _typeof(C){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(V){return typeof V}:_typeof=function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},_typeof(C)}var DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;var DefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var DefaultStandardFontDataFactory=_is_node.isNodeJS?_node_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;var createPDFNetworkStream;function setPDFNetworkStreamFactory(C){createPDFNetworkStream=C}function getDocument(C){var $=new PDFDocumentLoadingTask,V;if(typeof C=="string"||C instanceof URL)V={url:C};else if((0,_util.isArrayBuffer)(C))V={data:C};else if(C instanceof PDFDataRangeTransport)V={range:C};else{if(_typeof(C)!=="object")throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!C.url&&!C.data&&!C.range)throw new Error("Invalid parameter object: need either .data, .range or .url");V=C}var F=Object.create(null),K=null,J=null;for(var ee in V){var te=V[ee];switch(ee){case"url":if(typeof window!="undefined")try{F[ee]=new URL(te,window.location).href;continue}catch(ae){(0,_util.warn)('Cannot create valid URL: "'.concat(ae,'".'))}else if(typeof te=="string"||te instanceof URL){F[ee]=te.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":K=te;continue;case"worker":J=te;continue;case"data":if(_is_node.isNodeJS&&typeof Buffer!="undefined"&&te instanceof Buffer)F[ee]=new Uint8Array(te);else{if(te instanceof Uint8Array)break;if(typeof te=="string")F[ee]=(0,_util.stringToBytes)(te);else if(_typeof(te)==="object"&&te!==null&&!isNaN(te.length))F[ee]=new Uint8Array(te);else if((0,_util.isArrayBuffer)(te))F[ee]=new Uint8Array(te);else throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.")}continue}F[ee]=te}if(F.rangeChunkSize=F.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,F.CMapReaderFactory=F.CMapReaderFactory||DefaultCMapReaderFactory,F.StandardFontDataFactory=F.StandardFontDataFactory||DefaultStandardFontDataFactory,F.ignoreErrors=F.stopAtErrors!==!0,F.fontExtraProperties=F.fontExtraProperties===!0,F.pdfBug=F.pdfBug===!0,F.enableXfa=F.enableXfa===!0,(typeof F.docBaseUrl!="string"||(0,_display_utils.isDataScheme)(F.docBaseUrl))&&(F.docBaseUrl=null),Number.isInteger(F.maxImageSize)||(F.maxImageSize=-1),typeof F.useWorkerFetch!="boolean"&&(F.useWorkerFetch=F.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&F.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),typeof F.isEvalSupported!="boolean"&&(F.isEvalSupported=!0),typeof F.disableFontFace!="boolean"&&(F.disableFontFace=_is_node.isNodeJS),typeof F.useSystemFonts!="boolean"&&(F.useSystemFonts=!_is_node.isNodeJS&&!F.disableFontFace),typeof F.ownerDocument=="undefined"&&(F.ownerDocument=globalThis.document),typeof F.disableRange!="boolean"&&(F.disableRange=!1),typeof F.disableStream!="boolean"&&(F.disableStream=!1),typeof F.disableAutoFetch!="boolean"&&(F.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(F.verbosity),!J){var ne={verbosity:F.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};J=ne.port?PDFWorker.fromPort(ne):new PDFWorker(ne),$._worker=J}var re=$.docId;return J.promise.then(function(){if($.destroyed)throw new Error("Loading aborted");var ae=_fetchDocument(J,F,K,re),oe=new Promise(function(ie){var se;K?se=new _transport_stream.PDFDataTransportStream({length:F.length,initialData:F.initialData,progressiveDone:F.progressiveDone,contentDispositionFilename:F.contentDispositionFilename,disableRange:F.disableRange,disableStream:F.disableStream},K):F.data||(se=createPDFNetworkStream({url:F.url,length:F.length,httpHeaders:F.httpHeaders,withCredentials:F.withCredentials,rangeChunkSize:F.rangeChunkSize,disableRange:F.disableRange,disableStream:F.disableStream})),ie(se)});return Promise.all([ae,oe]).then(function(ie){var se=_slicedToArray(ie,2),ce=se[0],de=se[1];if($.destroyed)throw new Error("Loading aborted");var le=new _message_handler.MessageHandler(re,ce,J.port),ve=new WorkerTransport(le,$,de,F);$._transport=ve,le.send("Ready",null)})}).catch($._capability.reject),$}function _fetchDocument(C,$,V,F){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return _fetchDocument2=_asyncToGenerator(_regenerator.default.mark(function C($,V,F,K){var J;return _regenerator.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:if(!$.destroyed){te.next=2;break}throw new Error("Worker was destroyed");case 2:return F&&(V.length=F.length,V.initialData=F.initialData,V.progressiveDone=F.progressiveDone,V.contentDispositionFilename=F.contentDispositionFilename),te.next=5,$.messageHandler.sendWithPromise("GetDocRequest",{docId:K,apiVersion:"2.12.313",source:{data:V.data,url:V.url,password:V.password,disableAutoFetch:V.disableAutoFetch,rangeChunkSize:V.rangeChunkSize,length:V.length},maxImageSize:V.maxImageSize,disableFontFace:V.disableFontFace,docBaseUrl:V.docBaseUrl,ignoreErrors:V.ignoreErrors,isEvalSupported:V.isEvalSupported,fontExtraProperties:V.fontExtraProperties,enableXfa:V.enableXfa,useSystemFonts:V.useSystemFonts,cMapUrl:V.useWorkerFetch?V.cMapUrl:null,standardFontDataUrl:V.useWorkerFetch?V.standardFontDataUrl:null});case 5:if(J=te.sent,!$.destroyed){te.next=8;break}throw new Error("Worker was destroyed");case 8:return te.abrupt("return",J);case 9:case"end":return te.stop()}},C)})),_fetchDocument2.apply(this,arguments)}var PDFDocumentLoadingTask=function(){function C(){_classCallCheck(this,C),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d".concat(C.idCounters.doc++),this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(C,[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:function(){var $=_asyncToGenerator(_regenerator.default.mark(function F(){var K;return _regenerator.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return this.destroyed=!0,ee.next=3,(K=this._transport)===null||K===void 0?void 0:K.destroy();case 3:this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null);case 5:case"end":return ee.stop()}},F,this)}));function V(){return $.apply(this,arguments)}return V}()}],[{key:"idCounters",get:function(){return(0,_util.shadow)(this,"idCounters",{doc:0})}}]),C}();exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;var PDFDataRangeTransport=function(){function C($,V){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_classCallCheck(this,C),this.length=$,this.initialData=V,this.progressiveDone=F,this.contentDispositionFilename=K,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(C,[{key:"addRangeListener",value:function(V){this._rangeListeners.push(V)}},{key:"addProgressListener",value:function(V){this._progressListeners.push(V)}},{key:"addProgressiveReadListener",value:function(V){this._progressiveReadListeners.push(V)}},{key:"addProgressiveDoneListener",value:function(V){this._progressiveDoneListeners.push(V)}},{key:"onDataRange",value:function(V,F){var K=_createForOfIteratorHelper(this._rangeListeners),J;try{for(K.s();!(J=K.n()).done;){var ee=J.value;ee(V,F)}}catch(te){K.e(te)}finally{K.f()}}},{key:"onDataProgress",value:function(V,F){var K=this;this._readyCapability.promise.then(function(){var J=_createForOfIteratorHelper(K._progressListeners),ee;try{for(J.s();!(ee=J.n()).done;){var te=ee.value;te(V,F)}}catch(ne){J.e(ne)}finally{J.f()}})}},{key:"onDataProgressiveRead",value:function(V){var F=this;this._readyCapability.promise.then(function(){var K=_createForOfIteratorHelper(F._progressiveReadListeners),J;try{for(K.s();!(J=K.n()).done;){var ee=J.value;ee(V)}}catch(te){K.e(te)}finally{K.f()}})}},{key:"onDataProgressiveDone",value:function(){var V=this;this._readyCapability.promise.then(function(){var F=_createForOfIteratorHelper(V._progressiveDoneListeners),K;try{for(F.s();!(K=F.n()).done;){var J=K.value;J()}}catch(ee){F.e(ee)}finally{F.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(V,F){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),C}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function C($,V){var F=this;_classCallCheck(this,C),this._pdfInfo=$,this._transport=V,Object.defineProperty(this,"fingerprint",{get:function(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:function(){var K=_asyncToGenerator(_regenerator.default.mark(function ee(){return _regenerator.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return(0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),ne.abrupt("return",F.stats||{streamTypes:{},fontTypes:{}});case 2:case"end":return ne.stop()}},ee)}));function J(){return K.apply(this,arguments)}return J}()})}return _createClass(C,[{key:"annotationStorage",get:function(){return this._transport.annotationStorage}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprints",get:function(){return this._pdfInfo.fingerprints}},{key:"stats",get:function(){return this._transport.stats}},{key:"isPureXfa",get:function(){return!!this._transport._htmlForXfa}},{key:"allXfaHtml",get:function(){return this._transport._htmlForXfa}},{key:"getPage",value:function(V){return this._transport.getPage(V)}},{key:"getPageIndex",value:function(V){return this._transport.getPageIndex(V)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(V){return this._transport.getDestination(V)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getJSActions",value:function(){return this._transport.getDocJSActions()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){return this._transport.getOptionalContentConfig()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getMarkInfo",value:function(){return this._transport.getMarkInfo()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"cleanup",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this._transport.startCleanup(V||this.isPureXfa)}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}},{key:"saveDocument",value:function(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}},{key:"getFieldObjects",value:function(){return this._transport.getFieldObjects()}},{key:"hasJSActions",value:function(){return this._transport.hasJSActions()}},{key:"getCalculationOrderIds",value:function(){return this._transport.getCalculationOrderIds()}}]),C}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function C($,V,F,K){var J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;_classCallCheck(this,C),this._pageIndex=$,this._pageInfo=V,this._ownerDocument=K,this._transport=F,this._stats=J?new _display_utils.StatTimer:null,this._pdfBug=J,this.commonObjs=F.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}return _createClass(C,[{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"getViewport",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=V.scale,K=V.rotation,J=K===void 0?this.rotate:K,ee=V.offsetX,te=ee===void 0?0:ee,ne=V.offsetY,re=ne===void 0?0:ne,ae=V.dontFlip,oe=ae===void 0?!1:ae;return new _display_utils.PageViewport({viewBox:this.view,scale:F,rotation:J,offsetX:te,offsetY:re,dontFlip:oe})}},{key:"getAnnotations",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=V.intent,K=F===void 0?"display":F,J=this._transport.getRenderingIntent(K),ee=this._annotationPromises.get(J.cacheKey);return ee||(ee=this._transport.getAnnotations(this._pageIndex,J.renderingIntent),this._annotationPromises.set(J.cacheKey,ee),ee=ee.then(function(te){var ne=_createForOfIteratorHelper(te),re;try{var ae=function(){var ie=re.value;ie.titleObj!==void 0&&Object.defineProperty(ie,"title",{get:function(){return(0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),ie.titleObj.str}}),ie.contentsObj!==void 0&&Object.defineProperty(ie,"contents",{get:function(){return(0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),ie.contentsObj.str}})};for(ne.s();!(re=ne.n()).done;)ae()}catch(oe){ne.e(oe)}finally{ne.f()}return te})),ee}},{key:"getJSActions",value:function(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}},{key:"getXfa",value:function(){var $=_asyncToGenerator(_regenerator.default.mark(function F(){var K;return _regenerator.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.abrupt("return",((K=this._transport._htmlForXfa)===null||K===void 0?void 0:K.children[this._pageIndex])||null);case 1:case"end":return ee.stop()}},F,this)}));function V(){return $.apply(this,arguments)}return V}()},{key:"render",value:function(V){var F,K,J=this,ee,te=V.canvasContext,ne=V.viewport,re=V.intent,ae=re===void 0?"display":re,oe=V.annotationMode,ie=oe===void 0?_util.AnnotationMode.ENABLE:oe,se=V.transform,ce=se===void 0?null:se,de=V.imageLayer,le=de===void 0?null:de,ve=V.canvasFactory,fe=ve===void 0?null:ve,he=V.background,me=he===void 0?null:he,ue=V.optionalContentConfigPromise,pe=ue===void 0?null:ue,ye=V.annotationCanvasMap,be=ye===void 0?null:ye;((F=arguments[0])===null||F===void 0?void 0:F.renderInteractiveForms)!==void 0&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),arguments[0].renderInteractiveForms===!0&&ie===_util.AnnotationMode.ENABLE&&(ie=_util.AnnotationMode.ENABLE_FORMS)),((K=arguments[0])===null||K===void 0?void 0:K.includeAnnotationStorage)!==void 0&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),arguments[0].includeAnnotationStorage===!0&&ie===_util.AnnotationMode.ENABLE&&(ie=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");var ge=this._transport.getRenderingIntent(ae,ie);this.pendingCleanup=!1,pe||(pe=this._transport.getOptionalContentConfig());var _e=this._intentStates.get(ge.cacheKey);_e||(_e=Object.create(null),this._intentStates.set(ge.cacheKey,_e)),_e.streamReaderCancelTimeout&&(clearTimeout(_e.streamReaderCancelTimeout),_e.streamReaderCancelTimeout=null);var Se=fe||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),Ee=!!(ge.renderingIntent&_util.RenderingIntentFlag.PRINT);_e.displayReadyCapability||(_e.displayReadyCapability=(0,_util.createPromiseCapability)(),_e.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(ge));var Ce=function(Fe){_e.renderTasks.delete(xe),(J.cleanupAfterRender||Ee)&&(J.pendingCleanup=!0),J._tryCleanup(),Fe?(xe.capability.reject(Fe),J._abortOperatorList({intentState:_e,reason:Fe instanceof Error?Fe:new Error(Fe)})):xe.capability.resolve(),J._stats&&(J._stats.timeEnd("Rendering"),J._stats.timeEnd("Overall"))},xe=new InternalRenderTask({callback:Ce,params:{canvasContext:te,viewport:ne,transform:ce,imageLayer:le,background:me},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:be,operatorList:_e.operatorList,pageIndex:this._pageIndex,canvasFactory:Se,useRequestAnimationFrame:!Ee,pdfBug:this._pdfBug});((ee=_e).renderTasks||(ee.renderTasks=new Set)).add(xe);var $e=xe.task;return Promise.all([_e.displayReadyCapability.promise,pe]).then(function(Ie){var Fe=_slicedToArray(Ie,2),Ne=Fe[0],De=Fe[1];if(J.pendingCleanup){Ce();return}J._stats&&J._stats.time("Rendering"),xe.initializeGraphics({transparency:Ne,optionalContentConfig:De}),xe.operatorListChanged()}).catch(Ce),$e}},{key:"getOperatorList",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=V.intent,K=F===void 0?"display":F,J=V.annotationMode,ee=J===void 0?_util.AnnotationMode.ENABLE:J;function te(){re.operatorList.lastChunk&&(re.opListReadCapability.resolve(re.operatorList),re.renderTasks.delete(ae))}var ne=this._transport.getRenderingIntent(K,ee,!0),re=this._intentStates.get(ne.cacheKey);re||(re=Object.create(null),this._intentStates.set(ne.cacheKey,re));var ae;if(!re.opListReadCapability){var oe;ae=Object.create(null),ae.operatorListChanged=te,re.opListReadCapability=(0,_util.createPromiseCapability)(),((oe=re).renderTasks||(oe.renderTasks=new Set)).add(ae),re.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(ne)}return re.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F=V.normalizeWhitespace,K=F===void 0?!1:F,J=V.disableCombineTextItems,ee=J===void 0?!1:J,te=V.includeMarkedContent,ne=te===void 0?!1:te,re=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:K===!0,combineTextItems:ee!==!0,includeMarkedContent:ne===!0},{highWaterMark:re,size:function(oe){return oe.items.length}})}},{key:"getTextContent",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then(function(K){return _xfa_text.XfaText.textContent(K)});var F=this.streamTextContent(V);return new Promise(function(K,J){function ee(){te.read().then(function(re){var ae,oe=re.value,ie=re.done;if(ie){K(ne);return}Object.assign(ne.styles,oe.styles),(ae=ne.items).push.apply(ae,_toConsumableArray(oe.items)),ee()},J)}var te=F.getReader(),ne={items:[],styles:Object.create(null)};ee()})}},{key:"getStructTree",value:function(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}},{key:"_destroy",value:function(){this.destroyed=!0;var V=[],F=_createForOfIteratorHelper(this._intentStates.values()),K;try{for(F.s();!(K=F.n()).done;){var J=K.value;if(this._abortOperatorList({intentState:J,reason:new Error("Page was destroyed."),force:!0}),!J.opListReadCapability){var ee=_createForOfIteratorHelper(J.renderTasks),te;try{for(ee.s();!(te=ee.n()).done;){var ne=te.value;V.push(ne.completed),ne.cancel()}}catch(re){ee.e(re)}finally{ee.f()}}}}catch(re){F.e(re)}finally{F.f()}return this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(V)}},{key:"cleanup",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.pendingCleanup=!0,this._tryCleanup(V)}},{key:"_tryCleanup",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.pendingCleanup)return!1;var F=_createForOfIteratorHelper(this._intentStates.values()),K;try{for(F.s();!(K=F.n()).done;){var J=K.value,ee=J.renderTasks,te=J.operatorList;if(ee.size>0||!te.lastChunk)return!1}}catch(ne){F.e(ne)}finally{F.f()}return this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,V&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}},{key:"_startRenderPage",value:function(V,F){var K=this._intentStates.get(F);K&&(this._stats&&this._stats.timeEnd("Page Request"),K.displayReadyCapability&&K.displayReadyCapability.resolve(V))}},{key:"_renderPageChunk",value:function(V,F){for(var K=0,J=V.length;K<J;K++)F.operatorList.fnArray.push(V.fnArray[K]),F.operatorList.argsArray.push(V.argsArray[K]);F.operatorList.lastChunk=V.lastChunk;var ee=_createForOfIteratorHelper(F.renderTasks),te;try{for(ee.s();!(te=ee.n()).done;){var ne=te.value;ne.operatorListChanged()}}catch(re){ee.e(re)}finally{ee.f()}V.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(V){var F=this,K=V.renderingIntent,J=V.cacheKey,ee=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:K,cacheKey:J,annotationStorage:K&_util.RenderingIntentFlag.ANNOTATIONS_STORAGE?this._transport.annotationStorage.serializable:null}),te=ee.getReader(),ne=this._intentStates.get(J);ne.streamReader=te;var re=function ae(){te.read().then(function(oe){var ie=oe.value,se=oe.done;if(se){ne.streamReader=null;return}F._transport.destroyed||(F._renderPageChunk(ie,ne),ae())},function(oe){if(ne.streamReader=null,!F._transport.destroyed){if(ne.operatorList){ne.operatorList.lastChunk=!0;var ie=_createForOfIteratorHelper(ne.renderTasks),se;try{for(ie.s();!(se=ie.n()).done;){var ce=se.value;ce.operatorListChanged()}}catch(de){ie.e(de)}finally{ie.f()}F._tryCleanup()}if(ne.displayReadyCapability)ne.displayReadyCapability.reject(oe);else if(ne.opListReadCapability)ne.opListReadCapability.reject(oe);else throw oe}})};re()}},{key:"_abortOperatorList",value:function(V){var F=this,K=V.intentState,J=V.reason,ee=V.force,te=ee===void 0?!1:ee;if(K.streamReader){if(!te){if(K.renderTasks.size>0)return;if(J instanceof _display_utils.RenderingCancelledException){K.streamReaderCancelTimeout=setTimeout(function(){F._abortOperatorList({intentState:K,reason:J,force:!0}),K.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT);return}}if(K.streamReader.cancel(new _util.AbortException(J.message)).catch(function(){}),K.streamReader=null,!this._transport.destroyed){var ne=_createForOfIteratorHelper(this._intentStates),re;try{for(ne.s();!(re=ne.n()).done;){var ae=_slicedToArray(re.value,2),oe=ae[0],ie=ae[1];if(ie===K){this._intentStates.delete(oe);break}}}catch(se){ne.e(se)}finally{ne.f()}this.cleanup()}}}},{key:"stats",get:function(){return this._stats}}]),C}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function C(){_classCallCheck(this,C),this._listeners=[],this._deferred=Promise.resolve()}return _createClass(C,[{key:"postMessage",value:function(V,F){var K=this;function J(te){if(globalThis.structuredClone)return globalThis.structuredClone(te,F);function ne(ae){if(typeof ae=="function"||_typeof(ae)==="symbol"||ae instanceof URL)throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(ae==null?void 0:ae.toString()));if(_typeof(ae)!=="object"||ae===null)return ae;if(re.has(ae))return re.get(ae);var oe,ie;if((oe=ae.buffer)&&(0,_util.isArrayBuffer)(oe))return F!=null&&F.includes(oe)?ie=new ae.constructor(oe,ae.byteOffset,ae.byteLength):ie=new ae.constructor(ae),re.set(ae,ie),ie;if(ae instanceof Map){ie=new Map,re.set(ae,ie);var se=_createForOfIteratorHelper(ae),ce;try{for(se.s();!(ce=se.n()).done;){var de=_slicedToArray(ce.value,2),le=de[0],ve=de[1];ie.set(le,ne(ve))}}catch(ge){se.e(ge)}finally{se.f()}return ie}if(ae instanceof Set){ie=new Set,re.set(ae,ie);var fe=_createForOfIteratorHelper(ae),he;try{for(fe.s();!(he=fe.n()).done;){var me=he.value;ie.add(ne(me))}}catch(ge){fe.e(ge)}finally{fe.f()}return ie}ie=Array.isArray(ae)?[]:Object.create(null),re.set(ae,ie);for(var ue in ae){for(var pe,ye=void 0,be=ae;!(ye=Object.getOwnPropertyDescriptor(be,ue));)be=Object.getPrototypeOf(be);typeof ye.value!="undefined"&&(typeof ye.value=="function"&&!((pe=ae.hasOwnProperty)!==null&&pe!==void 0&&pe.call(ae,ue))||(ie[ue]=ne(ye.value)))}return ie}var re=new WeakMap;return ne(te)}var ee={data:J(V)};this._deferred.then(function(){var te=_createForOfIteratorHelper(K._listeners),ne;try{for(te.s();!(ne=te.n()).done;){var re=ne.value;re.call(K,ee)}}catch(ae){te.e(ae)}finally{te.f()}})}},{key:"addEventListener",value:function(V,F){this._listeners.push(F)}},{key:"removeEventListener",value:function(V,F){var K=this._listeners.indexOf(F);this._listeners.splice(K,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),C}();exports.LoopbackPort=LoopbackPort;var PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};{if(_is_node.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if((typeof document=="undefined"?"undefined":_typeof(document))==="object"){var _document,_document$currentScri,pdfjsFilePath=(_document=document)===null||_document===void 0||(_document$currentScri=_document.currentScript)===null||_document$currentScri===void 0?void 0:_document$currentScri.src;pdfjsFilePath&&(PDFWorkerUtil.fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.createCDNWrapper=function(C){var $='importScripts("'.concat(C,'");');return URL.createObjectURL(new Blob([$]))}}var PDFWorker=function(){function PDFWorker(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=C.name,V=$===void 0?null:$,F=C.port,K=F===void 0?null:F,J=C.verbosity,ee=J===void 0?(0,_util.getVerbosityLevel)():J;if(_classCallCheck(this,PDFWorker),K&&PDFWorker._workerPorts.has(K))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=V,this.destroyed=!1,this.verbosity=ee,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,K){PDFWorker._workerPorts.set(K,this),this._initializeFromPort(K);return}this._initialize()}return _createClass(PDFWorker,[{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function($){this._port=$,this._messageHandler=new _message_handler.MessageHandler("main","worker",$),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var $=this;if(typeof Worker!="undefined"&&!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){var V=PDFWorker.workerSrc;try{(0,_util.isSameOrigin)(window.location.href,V)||(V=PDFWorkerUtil.createCDNWrapper(new URL(V,window.location).href));var F=new Worker(V),K=new _message_handler.MessageHandler("main","worker",F),J=function(){F.removeEventListener("error",ee),K.destroy(),F.terminate(),$.destroyed?$._readyCapability.reject(new Error("Worker was destroyed")):$._setupFakeWorker()},ee=function(){$._webWorker||J()};F.addEventListener("error",ee),K.on("test",function(ne){if(F.removeEventListener("error",ee),$.destroyed){J();return}ne?($._messageHandler=K,$._port=F,$._webWorker=F,$._readyCapability.resolve(),K.send("configure",{verbosity:$.verbosity})):($._setupFakeWorker(),K.destroy(),F.terminate())}),K.on("ready",function(ne){if(F.removeEventListener("error",ee),$.destroyed){J();return}try{te()}catch(re){$._setupFakeWorker()}});var te=function(){var re=new Uint8Array([255]);try{K.send("test",re,[re.buffer])}catch(ae){(0,_util.warn)("Cannot use postMessage transfers."),re[0]=0,K.send("test",re)}};te();return}catch(ne){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var $=this;PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(function(V){if($.destroyed){$._readyCapability.reject(new Error("Worker was destroyed"));return}var F=new LoopbackPort;$._port=F;var K="fake".concat(PDFWorkerUtil.fakeWorkerId++),J=new _message_handler.MessageHandler(K+"_worker",K,F);V.setup(J,F);var ee=new _message_handler.MessageHandler(K,K+"_worker",F);$._messageHandler=ee,$._readyCapability.resolve(),ee.send("configure",{verbosity:$.verbosity})}).catch(function(V){$._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(V.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker._workerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"_workerPorts",get:function(){return(0,_util.shadow)(this,"_workerPorts",new WeakMap)}},{key:"fromPort",value:function($){if(!($!=null&&$.port))throw new Error("PDFWorker.fromPort - invalid method signature.");return this._workerPorts.has($.port)?this._workerPorts.get($.port):new PDFWorker($)}},{key:"workerSrc",get:function(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}},{key:"_mainThreadWorkerMessageHandler",get:function(){try{var $;return(($=globalThis.pdfjsWorker)===null||$===void 0?void 0:$.WorkerMessageHandler)||null}catch(V){return null}}},{key:"_setupFakeWorkerGlobal",get:function get(){var _this11=this,loader=function(){var _ref15=_asyncToGenerator(_regenerator.default.mark(function _callee4(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee4$(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:if(mainWorkerMessageHandler=_this11._mainThreadWorkerMessageHandler,!mainWorkerMessageHandler){_context4.next=3;break}return _context4.abrupt("return",mainWorkerMessageHandler);case 3:if(!(_is_node.isNodeJS&&typeof commonjsRequire=="function")){_context4.next=6;break}return worker=eval("require")(_this11.workerSrc),_context4.abrupt("return",worker.WorkerMessageHandler);case 6:return _context4.next=8,(0,_display_utils.loadScript)(_this11.workerSrc);case 8:return _context4.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context4.stop()}},_callee4)}));return function C(){return _ref15.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}]),PDFWorker}();exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};var _docStats=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_metadataPromise=new WeakMap,WorkerTransport=function(){function C($,V,F,K){_classCallCheck(this,C),_classPrivateFieldInitSpec(this,_docStats,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_pageCache,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pagePromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_metadataPromise,{writable:!0,value:null}),this.messageHandler=$,this.loadingTask=V,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:V.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:K.ownerDocument,styleElement:K.styleElement}),this._params=K,K.useWorkerFetch||(this.CMapReaderFactory=new K.CMapReaderFactory({baseUrl:K.cMapUrl,isCompressed:K.cMapPacked}),this.StandardFontDataFactory=new K.StandardFontDataFactory({baseUrl:K.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=F,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(C,[{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"stats",get:function(){return _classPrivateFieldGet(this,_docStats)}},{key:"getRenderingIntent",value:function(V){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_util.AnnotationMode.ENABLE,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,J=_util.RenderingIntentFlag.DISPLAY,ee="";switch(V){case"any":J=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":J=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(V))}switch(F){case _util.AnnotationMode.DISABLE:J+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:J+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:J+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,ee=this.annotationStorage.lastModified;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(F))}return K&&(J+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:J,cacheKey:"".concat(J,"_").concat(ee)}}},{key:"destroy",value:function(){var V=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var F=[],K=_createForOfIteratorHelper(_classPrivateFieldGet(this,_pageCache).values()),J;try{for(K.s();!(J=K.n()).done;){var ee=J.value;F.push(ee._destroy())}}catch(ne){K.e(ne)}finally{K.f()}_classPrivateFieldGet(this,_pageCache).clear(),_classPrivateFieldGet(this,_pagePromises).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();var te=this.messageHandler.sendWithPromise("Terminate",null);return F.push(te),Promise.all(F).then(function(){V.commonObjs.clear(),V.fontLoader.clear(),_classPrivateFieldSet(V,_metadataPromise,null),V._getFieldObjectsPromise=null,V._hasJSActionsPromise=null,V._networkStream&&V._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),V.messageHandler&&(V.messageHandler.destroy(),V.messageHandler=null),V.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var V=this,F=this.messageHandler,K=this.loadingTask;F.on("GetReader",function(J,ee){(0,_util.assert)(V._networkStream,"GetReader - no `IPDFStream` instance available."),V._fullReader=V._networkStream.getFullReader(),V._fullReader.onProgress=function(te){V._lastProgress={loaded:te.loaded,total:te.total}},ee.onPull=function(){V._fullReader.read().then(function(te){var ne=te.value,re=te.done;if(re){ee.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(ne),"GetReader - expected an ArrayBuffer."),ee.enqueue(new Uint8Array(ne),1,[ne])}).catch(function(te){ee.error(te)})},ee.onCancel=function(te){V._fullReader.cancel(te),ee.ready.catch(function(ne){if(!V.destroyed)throw ne})}}),F.on("ReaderHeadersReady",function(J){var ee=(0,_util.createPromiseCapability)(),te=V._fullReader;return te.headersReady.then(function(){if(!te.isStreamingSupported||!te.isRangeSupported){if(V._lastProgress){var ne;(ne=K.onProgress)===null||ne===void 0||ne.call(K,V._lastProgress)}te.onProgress=function(re){var ae;(ae=K.onProgress)===null||ae===void 0||ae.call(K,{loaded:re.loaded,total:re.total})}}ee.resolve({isStreamingSupported:te.isStreamingSupported,isRangeSupported:te.isRangeSupported,contentLength:te.contentLength})},ee.reject),ee.promise}),F.on("GetRangeReader",function(J,ee){(0,_util.assert)(V._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var te=V._networkStream.getRangeReader(J.begin,J.end);if(!te){ee.close();return}ee.onPull=function(){te.read().then(function(ne){var re=ne.value,ae=ne.done;if(ae){ee.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(re),"GetRangeReader - expected an ArrayBuffer."),ee.enqueue(new Uint8Array(re),1,[re])}).catch(function(ne){ee.error(ne)})},ee.onCancel=function(ne){te.cancel(ne),ee.ready.catch(function(re){if(!V.destroyed)throw re})}}),F.on("GetDoc",function(J){var ee=J.pdfInfo;V._numPages=ee.numPages,V._htmlForXfa=ee.htmlForXfa,delete ee.htmlForXfa,K._capability.resolve(new PDFDocumentProxy(ee,V))}),F.on("DocException",function(J){var ee;switch(J.name){case"PasswordException":ee=new _util.PasswordException(J.message,J.code);break;case"InvalidPDFException":ee=new _util.InvalidPDFException(J.message);break;case"MissingPDFException":ee=new _util.MissingPDFException(J.message);break;case"UnexpectedResponseException":ee=new _util.UnexpectedResponseException(J.message,J.status);break;case"UnknownErrorException":ee=new _util.UnknownErrorException(J.message,J.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}K._capability.reject(ee)}),F.on("PasswordRequest",function(J){if(V._passwordCapability=(0,_util.createPromiseCapability)(),K.onPassword){var ee=function(ne){V._passwordCapability.resolve({password:ne})};try{K.onPassword(ee,J.code)}catch(te){V._passwordCapability.reject(te)}}else V._passwordCapability.reject(new _util.PasswordException(J.message,J.code));return V._passwordCapability.promise}),F.on("DataLoaded",function(J){var ee;(ee=K.onProgress)===null||ee===void 0||ee.call(K,{loaded:J.length,total:J.length}),V.downloadInfoCapability.resolve(J)}),F.on("StartRenderPage",function(J){if(!V.destroyed){var ee=_classPrivateFieldGet(V,_pageCache).get(J.pageIndex);ee._startRenderPage(J.transparency,J.cacheKey)}}),F.on("commonobj",function(J){var ee,te=_slicedToArray(J,3),ne=te[0],re=te[1],ae=te[2];if(!V.destroyed&&!V.commonObjs.has(ne))switch(re){case"Font":var oe=V._params;if("error"in ae){var ie=ae.error;(0,_util.warn)("Error during font loading: ".concat(ie)),V.commonObjs.resolve(ne,ie);break}var se=null;oe.pdfBug&&(ee=globalThis.FontInspector)!==null&&ee!==void 0&&ee.enabled&&(se={registerFont:function(le,ve){globalThis.FontInspector.fontAdded(le,ve)}});var ce=new _font_loader.FontFaceObject(ae,{isEvalSupported:oe.isEvalSupported,disableFontFace:oe.disableFontFace,ignoreErrors:oe.ignoreErrors,onUnsupportedFeature:V._onUnsupportedFeature.bind(V),fontRegistry:se});V.fontLoader.bind(ce).catch(function(de){return F.sendWithPromise("FontFallback",{id:ne})}).finally(function(){!oe.fontExtraProperties&&ce.data&&(ce.data=null),V.commonObjs.resolve(ne,ce)});break;case"FontPath":case"Image":V.commonObjs.resolve(ne,ae);break;default:throw new Error("Got unknown common object type ".concat(re))}}),F.on("obj",function(J){var ee,te=_slicedToArray(J,4),ne=te[0],re=te[1],ae=te[2],oe=te[3];if(!V.destroyed){var ie=_classPrivateFieldGet(V,_pageCache).get(re);if(!ie.objs.has(ne))switch(ae){case"Image":ie.objs.resolve(ne,oe);var se=8e6;(oe==null||(ee=oe.data)===null||ee===void 0?void 0:ee.length)>se&&(ie.cleanupAfterRender=!0);break;case"Pattern":ie.objs.resolve(ne,oe);break;default:throw new Error("Got unknown object type ".concat(ae))}}}),F.on("DocProgress",function(J){var ee;V.destroyed||(ee=K.onProgress)===null||ee===void 0||ee.call(K,{loaded:J.loaded,total:J.total})}),F.on("DocStats",function(J){V.destroyed||_classPrivateFieldSet(V,_docStats,Object.freeze({streamTypes:Object.freeze(J.streamTypes),fontTypes:Object.freeze(J.fontTypes)}))}),F.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),F.on("FetchBuiltInCMap",function(J){return V.destroyed?Promise.reject(new Error("Worker was destroyed.")):V.CMapReaderFactory?V.CMapReaderFactory.fetch(J):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))}),F.on("FetchStandardFontData",function(J){return V.destroyed?Promise.reject(new Error("Worker was destroyed.")):V.StandardFontDataFactory?V.StandardFontDataFactory.fetch(J):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))})}},{key:"_onUnsupportedFeature",value:function(V){var F,K,J=V.featureId;this.destroyed||(F=(K=this.loadingTask).onUnsupportedFeature)===null||F===void 0||F.call(K,J)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(V){var F=this;if(!Number.isInteger(V)||V<=0||V>this._numPages)return Promise.reject(new Error("Invalid page request"));var K=V-1,J=_classPrivateFieldGet(this,_pagePromises).get(K);if(J)return J;var ee=this.messageHandler.sendWithPromise("GetPage",{pageIndex:K}).then(function(te){if(F.destroyed)throw new Error("Transport destroyed");var ne=new PDFPageProxy(K,te,F,F._params.ownerDocument,F._params.pdfBug);return _classPrivateFieldGet(F,_pageCache).set(K,ne),ne});return _classPrivateFieldGet(this,_pagePromises).set(K,ee),ee}},{key:"getPageIndex",value:function(V){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:V})}},{key:"getAnnotations",value:function(V,F){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:V,intent:F})}},{key:"saveDocument",value:function(){var V,F,K=this;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:(V=(F=this._fullReader)===null||F===void 0?void 0:F.filename)!==null&&V!==void 0?V:null}).finally(function(){K.annotationStorage.resetModified()})}},{key:"getFieldObjects",value:function(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise("GetFieldObjects",null))}},{key:"hasJSActions",value:function(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}},{key:"getCalculationOrderIds",value:function(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(V){return typeof V!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:V})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getDocJSActions",value:function(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}},{key:"getPageJSActions",value:function(V){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:V})}},{key:"getStructTree",value:function(V){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:V})}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(function(V){return new _optional_content_config.OptionalContentConfig(V)})}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var V=this;return _classPrivateFieldGet(this,_metadataPromise)||_classPrivateFieldSet(this,_metadataPromise,this.messageHandler.sendWithPromise("GetMetadata",null).then(function(F){var K,J,ee,te;return{info:F[0],metadata:F[1]?new _metadata.Metadata(F[1]):null,contentDispositionFilename:(K=(J=V._fullReader)===null||J===void 0?void 0:J.filename)!==null&&K!==void 0?K:null,contentLength:(ee=(te=V._fullReader)===null||te===void 0?void 0:te.contentLength)!==null&&ee!==void 0?ee:null}}))}},{key:"getMarkInfo",value:function(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}},{key:"startCleanup",value:function(){var $=_asyncToGenerator(_regenerator.default.mark(function F(){var K,J,ee,te,ne,re=arguments;return _regenerator.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return K=re.length>0&&re[0]!==void 0?re[0]:!1,oe.next=3,this.messageHandler.sendWithPromise("Cleanup",null);case 3:if(!this.destroyed){oe.next=5;break}return oe.abrupt("return");case 5:J=_createForOfIteratorHelper(_classPrivateFieldGet(this,_pageCache).values()),oe.prev=6,J.s();case 8:if((ee=J.n()).done){oe.next=15;break}if(te=ee.value,ne=te.cleanup(),ne){oe.next=13;break}throw new Error("startCleanup: Page ".concat(te.pageNumber," is currently rendering."));case 13:oe.next=8;break;case 15:oe.next=20;break;case 17:oe.prev=17,oe.t0=oe.catch(6),J.e(oe.t0);case 20:return oe.prev=20,J.f(),oe.finish(20);case 23:this.commonObjs.clear(),K||this.fontLoader.clear(),_classPrivateFieldSet(this,_metadataPromise,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null;case 28:case"end":return oe.stop()}},F,this,[[6,17,20,23]])}));function V(){return $.apply(this,arguments)}return V}()},{key:"loadingParams",get:function(){var V=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:V.disableAutoFetch,enableXfa:V.enableXfa})}}]),C}(),PDFObjects=function(){function C(){_classCallCheck(this,C),this._objs=Object.create(null)}return _createClass(C,[{key:"_ensureObj",value:function(V){return this._objs[V]?this._objs[V]:this._objs[V]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(V){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(F)return this._ensureObj(V).capability.promise.then(F),null;var K=this._objs[V];if(!K||!K.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(V,"."));return K.data}},{key:"has",value:function(V){var F=this._objs[V];return(F==null?void 0:F.resolved)||!1}},{key:"resolve",value:function(V,F){var K=this._ensureObj(V);K.resolved=!0,K.data=F,K.capability.resolve(F)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),C}(),RenderTask=function(){function C($){_classCallCheck(this,C),this._internalRenderTask=$,this.onContinue=null}return _createClass(C,[{key:"promise",get:function(){return this._internalRenderTask.capability.promise}},{key:"cancel",value:function(){this._internalRenderTask.cancel()}}]),C}();exports.RenderTask=RenderTask;var InternalRenderTask=function(){function C($){var V=$.callback,F=$.params,K=$.objs,J=$.commonObjs,ee=$.annotationCanvasMap,te=$.operatorList,ne=$.pageIndex,re=$.canvasFactory,ae=$.useRequestAnimationFrame,oe=ae===void 0?!1:ae,ie=$.pdfBug,se=ie===void 0?!1:ie;_classCallCheck(this,C),this.callback=V,this.params=F,this.objs=K,this.commonObjs=J,this.annotationCanvasMap=ee,this.operatorListIdx=null,this.operatorList=te,this._pageIndex=ne,this.canvasFactory=re,this._pdfBug=se,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=oe===!0&&typeof window!="undefined",this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=F.canvasContext.canvas}return _createClass(C,[{key:"completed",get:function(){return this.capability.promise.catch(function(){})}},{key:"initializeGraphics",value:function(V){var F,K=V.transparency,J=K===void 0?!1:K,ee=V.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(C.canvasInUse.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");C.canvasInUse.add(this._canvas)}this._pdfBug&&(F=globalThis.StepperManager)!==null&&F!==void 0&&F.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var te=this.params,ne=te.canvasContext,re=te.viewport,ae=te.transform,oe=te.imageLayer,ie=te.background;this.gfx=new _canvas.CanvasGraphics(ne,this.commonObjs,this.objs,this.canvasFactory,oe,ee,this.annotationCanvasMap),this.gfx.beginDrawing({transform:ae,viewport:re,transparency:J,background:ie}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&C.canvasInUse.delete(this._canvas),this.callback(V||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()}},{key:"_continue",value:function(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var V=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){V._nextBound().catch(V._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}},{key:"_next",value:function(){var $=_asyncToGenerator(_regenerator.default.mark(function F(){return _regenerator.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:if(!this.cancelled){J.next=2;break}return J.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&C.canvasInUse.delete(this._canvas),this.callback()));case 4:case"end":return J.stop()}},F,this)}));function V(){return $.apply(this,arguments)}return V}()}],[{key:"canvasInUse",get:function(){return(0,_util.shadow)(this,"canvasInUse",new WeakSet)}}]),C}(),version="2.12.313";exports.version=version;var build="a2ae56f39";exports.build=build},(C,$,V)=>{function F(ge){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(Se){return typeof Se}:F=function(Se){return Se&&typeof Symbol=="function"&&Se.constructor===Symbol&&Se!==Symbol.prototype?"symbol":typeof Se},F(ge)}Object.defineProperty($,"__esModule",{value:!0}),$.FontLoader=$.FontFaceObject=void 0;var K=ee(V(2)),J=V(4);function ee(ge){return ge&&ge.__esModule?ge:{default:ge}}function te(ge,_e){if(typeof _e!="function"&&_e!==null)throw new TypeError("Super expression must either be null or a function");ge.prototype=Object.create(_e&&_e.prototype,{constructor:{value:ge,writable:!0,configurable:!0}}),_e&&ne(ge,_e)}function ne(ge,_e){return ne=Object.setPrototypeOf||function(Ee,Ce){return Ee.__proto__=Ce,Ee},ne(ge,_e)}function re(ge){var _e=ie();return function(){var Ee=se(ge),Ce;if(_e){var xe=se(this).constructor;Ce=Reflect.construct(Ee,arguments,xe)}else Ce=Ee.apply(this,arguments);return ae(this,Ce)}}function ae(ge,_e){if(_e&&(F(_e)==="object"||typeof _e=="function"))return _e;if(_e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oe(ge)}function oe(ge){if(ge===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge}function ie(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(ge){return!1}}function se(ge){return se=Object.setPrototypeOf?Object.getPrototypeOf:function(Se){return Se.__proto__||Object.getPrototypeOf(Se)},se(ge)}function ce(ge,_e,Se,Ee,Ce,xe,$e){try{var Ie=ge[xe]($e),Fe=Ie.value}catch(Ne){Se(Ne);return}Ie.done?_e(Fe):Promise.resolve(Fe).then(Ee,Ce)}function de(ge){return function(){var _e=this,Se=arguments;return new Promise(function(Ee,Ce){var xe=ge.apply(_e,Se);function $e(Fe){ce(xe,Ee,Ce,$e,Ie,"next",Fe)}function Ie(Fe){ce(xe,Ee,Ce,$e,Ie,"throw",Fe)}$e(void 0)})}}function le(ge,_e){var Se=typeof Symbol!="undefined"&&ge[Symbol.iterator]||ge["@@iterator"];if(!Se){if(Array.isArray(ge)||(Se=ve(ge))||_e&&ge&&typeof ge.length=="number"){Se&&(ge=Se);var Ee=0,Ce=function(){};return{s:Ce,n:function(){return Ee>=ge.length?{done:!0}:{done:!1,value:ge[Ee++]}},e:function(Ne){throw Ne},f:Ce}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
@@ -466,4 +466,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
466
466
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ve=!0,Xe=!1,Ye;return{s:function(){ke=ke.call(we)},n:function(){var Ue=ke.next();return Ve=Ue.done,Ue},e:function(Ue){Xe=!0,Ye=Ue},f:function(){try{!Ve&&ke.return!=null&&ke.return()}finally{if(Xe)throw Ye}}}}function fe(we,Ae){if(we){if(typeof we=="string")return he(we,Ae);var ke=Object.prototype.toString.call(we).slice(8,-1);if(ke==="Object"&&we.constructor&&(ke=we.constructor.name),ke==="Map"||ke==="Set")return Array.from(we);if(ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ke))return he(we,Ae)}}function he(we,Ae){(Ae==null||Ae>we.length)&&(Ae=we.length);for(var ke=0,je=new Array(Ae);ke<Ae;ke++)je[ke]=we[ke];return je}function me(we,Ae){if(!(we instanceof Ae))throw new TypeError("Cannot call a class as a function")}function ue(we,Ae){for(var ke=0;ke<Ae.length;ke++){var je=Ae[ke];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(we,je.key,je)}}function pe(we,Ae,ke){return Ae&&ue(we.prototype,Ae),ke&&ue(we,ke),we}var ye=require$$5,be=require$$5,ge=require$$5,_e=require$$5,Se=/^file:\/\/\/[a-zA-Z]:\//;function Ee(we){var Ae=_e.parse(we);return Ae.protocol==="file:"||Ae.host?Ae:/^[a-z]:[/\\]/i.test(we)?_e.parse("file:///".concat(we)):(Ae.host||(Ae.protocol="file:"),Ae)}var Ce=function(){function we(Ae){me(this,we),this.source=Ae,this.url=Ee(Ae.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&Ae.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return pe(we,[{key:"_progressiveDataLength",get:function(){var ke,je;return(ke=(je=this._fullRequestReader)===null||je===void 0?void 0:je._loaded)!==null&&ke!==void 0?ke:0}},{key:"getFullReader",value:function(){return(0,J.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new De(this):new Fe(this),this._fullRequestReader}},{key:"getRangeReader",value:function(ke,je){if(je<=this._progressiveDataLength)return null;var ze=this.isFsUrl?new Oe(this,ke,je):new Ne(this,ke,je);return this._rangeRequestReaders.push(ze),ze}},{key:"cancelAllRequests",value:function(ke){this._fullRequestReader&&this._fullRequestReader.cancel(ke);var je=ve(this._rangeRequestReaders.slice(0)),ze;try{for(je.s();!(ze=je.n()).done;){var Ve=ze.value;Ve.cancel(ke)}}catch(Xe){je.e(Xe)}finally{je.f()}}}]),we}();$.PDFNodeStream=Ce;var xe=function(){function we(Ae){me(this,we),this._url=Ae.url,this._done=!1,this._storedError=null,this.onProgress=null;var ke=Ae.source;this._contentLength=ke.length,this._loaded=0,this._filename=null,this._disableRange=ke.disableRange||!1,this._rangeChunkSize=ke.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!ke.disableStream,this._isRangeSupported=!ke.disableRange,this._readableStream=null,this._readCapability=(0,J.createPromiseCapability)(),this._headersCapability=(0,J.createPromiseCapability)()}return pe(we,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var Ae=le(K.default.mark(function je(){var ze,Ve;return K.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,this._readCapability.promise;case 2:if(!this._done){Ye.next=4;break}return Ye.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){Ye.next=6;break}throw this._storedError;case 6:if(ze=this._readableStream.read(),ze!==null){Ye.next=10;break}return this._readCapability=(0,J.createPromiseCapability)(),Ye.abrupt("return",this.read());case 10:return this._loaded+=ze.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),Ve=new Uint8Array(ze).buffer,Ye.abrupt("return",{value:Ve,done:!1});case 14:case"end":return Ye.stop()}},je,this)}));function ke(){return Ae.apply(this,arguments)}return ke}()},{key:"cancel",value:function(ke){if(!this._readableStream){this._error(ke);return}this._readableStream.destroy(ke)}},{key:"_error",value:function(ke){this._storedError=ke,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(ke){var je=this;this._readableStream=ke,ke.on("readable",function(){je._readCapability.resolve()}),ke.on("end",function(){ke.destroy(),je._done=!0,je._readCapability.resolve()}),ke.on("error",function(ze){je._error(ze)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new J.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]),we}(),$e=function(){function we(Ae){me(this,we),this._url=Ae.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,J.createPromiseCapability)();var ke=Ae.source;this._isStreamingSupported=!ke.disableStream}return pe(we,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var Ae=le(K.default.mark(function je(){var ze,Ve;return K.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,this._readCapability.promise;case 2:if(!this._done){Ye.next=4;break}return Ye.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){Ye.next=6;break}throw this._storedError;case 6:if(ze=this._readableStream.read(),ze!==null){Ye.next=10;break}return this._readCapability=(0,J.createPromiseCapability)(),Ye.abrupt("return",this.read());case 10:return this._loaded+=ze.length,this.onProgress&&this.onProgress({loaded:this._loaded}),Ve=new Uint8Array(ze).buffer,Ye.abrupt("return",{value:Ve,done:!1});case 14:case"end":return Ye.stop()}},je,this)}));function ke(){return Ae.apply(this,arguments)}return ke}()},{key:"cancel",value:function(ke){if(!this._readableStream){this._error(ke);return}this._readableStream.destroy(ke)}},{key:"_error",value:function(ke){this._storedError=ke,this._readCapability.resolve()}},{key:"_setReadableStream",value:function(ke){var je=this;this._readableStream=ke,ke.on("readable",function(){je._readCapability.resolve()}),ke.on("end",function(){ke.destroy(),je._done=!0,je._readCapability.resolve()}),ke.on("error",function(ze){je._error(ze)}),this._storedError&&this._readableStream.destroy(this._storedError)}}]),we}();function Ie(we,Ae){return{protocol:we.protocol,auth:we.auth,host:we.hostname,port:we.port,path:we.path,method:"GET",headers:Ae}}var Fe=function(we){ne(ke,we);var Ae=ae(ke);function ke(je){var ze;me(this,ke),ze=Ae.call(this,je);var Ve=function(Ye){if(Ye.statusCode===404){var at=new J.MissingPDFException('Missing PDF "'.concat(ze._url,'".'));ze._storedError=at,ze._headersCapability.reject(at);return}ze._headersCapability.resolve(),ze._setReadableStream(Ye);var Ue=function(He){return ze._readableStream.headers[He.toLowerCase()]},Le=(0,ee.validateRangeRequestCapabilities)({getResponseHeader:Ue,isHttp:je.isHttp,rangeChunkSize:ze._rangeChunkSize,disableRange:ze._disableRange}),Te=Le.allowRangeRequests,Pe=Le.suggestedLength;ze._isRangeSupported=Te,ze._contentLength=Pe||ze._contentLength,ze._filename=(0,ee.extractFilenameFromHeader)(Ue)};return ze._request=null,ze._url.protocol==="http:"?ze._request=be.request(Ie(ze._url,je.httpHeaders),Ve):ze._request=ge.request(Ie(ze._url,je.httpHeaders),Ve),ze._request.on("error",function(Xe){ze._storedError=Xe,ze._headersCapability.reject(Xe)}),ze._request.end(),ze}return ke}(xe),Ne=function(we){ne(ke,we);var Ae=ae(ke);function ke(je,ze,Ve){var Xe;me(this,ke),Xe=Ae.call(this,je),Xe._httpHeaders={};for(var Ye in je.httpHeaders){var at=je.httpHeaders[Ye];typeof at!="undefined"&&(Xe._httpHeaders[Ye]=at)}Xe._httpHeaders.Range="bytes=".concat(ze,"-").concat(Ve-1);var Ue=function(Te){if(Te.statusCode===404){var Pe=new J.MissingPDFException('Missing PDF "'.concat(Xe._url,'".'));Xe._storedError=Pe;return}Xe._setReadableStream(Te)};return Xe._request=null,Xe._url.protocol==="http:"?Xe._request=be.request(Ie(Xe._url,Xe._httpHeaders),Ue):Xe._request=ge.request(Ie(Xe._url,Xe._httpHeaders),Ue),Xe._request.on("error",function(Le){Xe._storedError=Le}),Xe._request.end(),Xe}return ke}($e),De=function(we){ne(ke,we);var Ae=ae(ke);function ke(je){var ze;me(this,ke),ze=Ae.call(this,je);var Ve=decodeURIComponent(ze._url.path);return Se.test(ze._url.href)&&(Ve=Ve.replace(/^\//,"")),ye.lstat(Ve,function(Xe,Ye){if(Xe){Xe.code==="ENOENT"&&(Xe=new J.MissingPDFException('Missing PDF "'.concat(Ve,'".'))),ze._storedError=Xe,ze._headersCapability.reject(Xe);return}ze._contentLength=Ye.size,ze._setReadableStream(ye.createReadStream(Ve)),ze._headersCapability.resolve()}),ze}return ke}(xe),Oe=function(we){ne(ke,we);var Ae=ae(ke);function ke(je,ze,Ve){var Xe;me(this,ke),Xe=Ae.call(this,je);var Ye=decodeURIComponent(Xe._url.path);return Se.test(Xe._url.href)&&(Ye=Ye.replace(/^\//,"")),Xe._setReadableStream(ye.createReadStream(Ye,{start:ze,end:Ve-1})),Xe}return ke}($e)},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.createResponseStatusError=ne,$.extractFilenameFromHeader=te,$.validateRangeRequestCapabilities=ee,$.validateResponseStatus=re;var F=V(4),K=V(155),J=V(1);function ee(ae){var oe=ae.getResponseHeader,ie=ae.isHttp,se=ae.rangeChunkSize,ce=ae.disableRange;(0,F.assert)(se>0,"Range chunk size must be larger than zero");var de={allowRangeRequests:!1,suggestedLength:void 0},le=parseInt(oe("Content-Length"),10);if(!Number.isInteger(le)||(de.suggestedLength=le,le<=2*se)||ce||!ie||oe("Accept-Ranges")!=="bytes")return de;var ve=oe("Content-Encoding")||"identity";return ve!=="identity"||(de.allowRangeRequests=!0),de}function te(ae){var oe=ae("Content-Disposition");if(oe){var ie=(0,K.getFilenameFromContentDispositionHeader)(oe);if(ie.includes("%"))try{ie=decodeURIComponent(ie)}catch(se){}if((0,J.isPdfFile)(ie))return ie}return null}function ne(ae,oe){return ae===404||ae===0&&oe.startsWith("file:")?new F.MissingPDFException('Missing PDF "'+oe+'".'):new F.UnexpectedResponseException("Unexpected server response (".concat(ae,') while retrieving PDF "').concat(oe,'".'),ae)}function re(ae){return ae===200||ae===206}},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.getFilenameFromContentDispositionHeader=ae;var F=V(4);function K(oe,ie){return re(oe)||ne(oe,ie)||ee(oe,ie)||J()}function J(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
467
467
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ee(oe,ie){if(oe){if(typeof oe=="string")return te(oe,ie);var se=Object.prototype.toString.call(oe).slice(8,-1);if(se==="Object"&&oe.constructor&&(se=oe.constructor.name),se==="Map"||se==="Set")return Array.from(oe);if(se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se))return te(oe,ie)}}function te(oe,ie){(ie==null||ie>oe.length)&&(ie=oe.length);for(var se=0,ce=new Array(ie);se<ie;se++)ce[se]=oe[se];return ce}function ne(oe,ie){var se=oe==null?null:typeof Symbol!="undefined"&&oe[Symbol.iterator]||oe["@@iterator"];if(se!=null){var ce=[],de=!0,le=!1,ve,fe;try{for(se=se.call(oe);!(de=(ve=se.next()).done)&&(ce.push(ve.value),!(ie&&ce.length===ie));de=!0);}catch(he){le=!0,fe=he}finally{try{!de&&se.return!=null&&se.return()}finally{if(le)throw fe}}return ce}}function re(oe){if(Array.isArray(oe))return oe}function ae(oe){var ie=!0,se=ve("filename\\*","i").exec(oe);if(se){se=se[1];var ce=ue(se);return ce=unescape(ce),ce=pe(ce),ce=ye(ce),he(ce)}if(se=me(oe),se){var de=ye(se);return he(de)}if(se=ve("filename","i").exec(oe),se){se=se[1];var le=ue(se);return le=ye(le),he(le)}function ve(be,ge){return new RegExp("(?:^|;)\\s*"+be+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',ge)}function fe(be,ge){if(be){if(!/^[\x00-\xFF]+$/.test(ge))return ge;try{var _e=new TextDecoder(be,{fatal:!0}),Se=(0,F.stringToBytes)(ge);ge=_e.decode(Se),ie=!1}catch(Ee){if(/^utf-?8$/i.test(be))try{ge=decodeURIComponent(escape(ge)),ie=!1}catch(Ce){}}}return ge}function he(be){return ie&&/[\x80-\xff]/.test(be)&&(be=fe("utf-8",be),ie&&(be=fe("iso-8859-1",be))),be}function me(be){for(var ge=[],_e,Se=ve("filename\\*((?!0\\d)\\d+)(\\*?)","ig");(_e=Se.exec(be))!==null;){var Ee=_e,Ce=K(Ee,4),xe=Ce[1],$e=Ce[2],Ie=Ce[3];if(xe=parseInt(xe,10),xe in ge){if(xe===0)break;continue}ge[xe]=[$e,Ie]}for(var Fe=[],Ne=0;Ne<ge.length&&Ne in ge;++Ne){var De=K(ge[Ne],2),Oe=De[0],we=De[1];we=ue(we),Oe&&(we=unescape(we),Ne===0&&(we=pe(we))),Fe.push(we)}return Fe.join("")}function ue(be){if(be.startsWith('"')){for(var ge=be.slice(1).split('\\"'),_e=0;_e<ge.length;++_e){var Se=ge[_e].indexOf('"');Se!==-1&&(ge[_e]=ge[_e].slice(0,Se),ge.length=_e+1),ge[_e]=ge[_e].replace(/\\(.)/g,"$1")}be=ge.join('"')}return be}function pe(be){var ge=be.indexOf("'");if(ge===-1)return be;var _e=be.slice(0,ge),Se=be.slice(ge+1),Ee=Se.replace(/^[^']*'/,"");return fe(_e,Ee)}function ye(be){return!be.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(be)?be:be.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(ge,_e,Se,Ee){if(Se==="q"||Se==="Q")return Ee=Ee.replace(/_/g," "),Ee=Ee.replace(/=([0-9a-fA-F]{2})/g,function(Ce,xe){return String.fromCharCode(parseInt(xe,16))}),fe(_e,Ee);try{Ee=atob(Ee)}catch(Ce){}return fe(_e,Ee)})}return""}},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.PDFNetworkStream=void 0;var F=ee(V(2)),K=V(4),J=V(154);function ee(pe){return pe&&pe.__esModule?pe:{default:pe}}function te(pe,ye,be,ge,_e,Se,Ee){try{var Ce=pe[Se](Ee),xe=Ce.value}catch($e){be($e);return}Ce.done?ye(xe):Promise.resolve(xe).then(ge,_e)}function ne(pe){return function(){var ye=this,be=arguments;return new Promise(function(ge,_e){var Se=pe.apply(ye,be);function Ee(xe){te(Se,ge,_e,Ee,Ce,"next",xe)}function Ce(xe){te(Se,ge,_e,Ee,Ce,"throw",xe)}Ee(void 0)})}}function re(pe,ye){var be=typeof Symbol!="undefined"&&pe[Symbol.iterator]||pe["@@iterator"];if(!be){if(Array.isArray(pe)||(be=ae(pe))||ye&&pe&&typeof pe.length=="number"){be&&(pe=be);var ge=0,_e=function(){};return{s:_e,n:function(){return ge>=pe.length?{done:!0}:{done:!1,value:pe[ge++]}},e:function($e){throw $e},f:_e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
468
468
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Se=!0,Ee=!1,Ce;return{s:function(){be=be.call(pe)},n:function(){var $e=be.next();return Se=$e.done,$e},e:function($e){Ee=!0,Ce=$e},f:function(){try{!Se&&be.return!=null&&be.return()}finally{if(Ee)throw Ce}}}}function ae(pe,ye){if(pe){if(typeof pe=="string")return oe(pe,ye);var be=Object.prototype.toString.call(pe).slice(8,-1);if(be==="Object"&&pe.constructor&&(be=pe.constructor.name),be==="Map"||be==="Set")return Array.from(pe);if(be==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(be))return oe(pe,ye)}}function oe(pe,ye){(ye==null||ye>pe.length)&&(ye=pe.length);for(var be=0,ge=new Array(ye);be<ye;be++)ge[be]=pe[be];return ge}function ie(pe,ye){if(!(pe instanceof ye))throw new TypeError("Cannot call a class as a function")}function se(pe,ye){for(var be=0;be<ye.length;be++){var ge=ye[be];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(pe,ge.key,ge)}}function ce(pe,ye,be){return ye&&se(pe.prototype,ye),be&&se(pe,be),pe}var de=200,le=206;function ve(pe){var ye=pe.response;if(typeof ye!="string")return ye;var be=(0,K.stringToBytes)(ye);return be.buffer}var fe=function(){function pe(ye){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ie(this,pe),this.url=ye,this.isHttp=/^https?:/i.test(ye),this.httpHeaders=this.isHttp&&be.httpHeaders||Object.create(null),this.withCredentials=be.withCredentials||!1,this.getXhr=be.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return ce(pe,[{key:"requestRange",value:function(be,ge,_e){var Se={begin:be,end:ge};for(var Ee in _e)Se[Ee]=_e[Ee];return this.request(Se)}},{key:"requestFull",value:function(be){return this.request(be)}},{key:"request",value:function(be){var ge=this.getXhr(),_e=this.currXhrId++,Se=this.pendingRequests[_e]={xhr:ge};ge.open("GET",this.url),ge.withCredentials=this.withCredentials;for(var Ee in this.httpHeaders){var Ce=this.httpHeaders[Ee];typeof Ce!="undefined"&&ge.setRequestHeader(Ee,Ce)}return this.isHttp&&"begin"in be&&"end"in be?(ge.setRequestHeader("Range","bytes=".concat(be.begin,"-").concat(be.end-1)),Se.expectedStatus=le):Se.expectedStatus=de,ge.responseType="arraybuffer",be.onError&&(ge.onerror=function(xe){be.onError(ge.status)}),ge.onreadystatechange=this.onStateChange.bind(this,_e),ge.onprogress=this.onProgress.bind(this,_e),Se.onHeadersReceived=be.onHeadersReceived,Se.onDone=be.onDone,Se.onError=be.onError,Se.onProgress=be.onProgress,ge.send(null),_e}},{key:"onProgress",value:function(be,ge){var _e,Se=this.pendingRequests[be];Se&&((_e=Se.onProgress)===null||_e===void 0||_e.call(Se,ge))}},{key:"onStateChange",value:function(be,ge){var _e=this.pendingRequests[be];if(_e){var Se=_e.xhr;if(Se.readyState>=2&&_e.onHeadersReceived&&(_e.onHeadersReceived(),delete _e.onHeadersReceived),Se.readyState===4&&be in this.pendingRequests){if(delete this.pendingRequests[be],Se.status===0&&this.isHttp){var Ee;(Ee=_e.onError)===null||Ee===void 0||Ee.call(_e,Se.status);return}var Ce=Se.status||de,xe=Ce===de&&_e.expectedStatus===le;if(!xe&&Ce!==_e.expectedStatus){var $e;($e=_e.onError)===null||$e===void 0||$e.call(_e,Se.status);return}var Ie=ve(Se);if(Ce===le){var Fe=Se.getResponseHeader("Content-Range"),Ne=/bytes (\d+)-(\d+)\/(\d+)/.exec(Fe);_e.onDone({begin:parseInt(Ne[1],10),chunk:Ie})}else if(Ie)_e.onDone({begin:0,chunk:Ie});else{var De;(De=_e.onError)===null||De===void 0||De.call(_e,Se.status)}}}}},{key:"getRequestXhr",value:function(be){return this.pendingRequests[be].xhr}},{key:"isPendingRequest",value:function(be){return be in this.pendingRequests}},{key:"abortRequest",value:function(be){var ge=this.pendingRequests[be].xhr;delete this.pendingRequests[be],ge.abort()}}]),pe}(),he=function(){function pe(ye){ie(this,pe),this._source=ye,this._manager=new fe(ye.url,{httpHeaders:ye.httpHeaders,withCredentials:ye.withCredentials}),this._rangeChunkSize=ye.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return ce(pe,[{key:"_onRangeRequestReaderClosed",value:function(be){var ge=this._rangeRequestReaders.indexOf(be);ge>=0&&this._rangeRequestReaders.splice(ge,1)}},{key:"getFullReader",value:function(){return(0,K.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new me(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(be,ge){var _e=new ue(this._manager,be,ge);return _e.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(_e),_e}},{key:"cancelAllRequests",value:function(be){var ge;(ge=this._fullRequestReader)===null||ge===void 0||ge.cancel(be);var _e=re(this._rangeRequestReaders.slice(0)),Se;try{for(_e.s();!(Se=_e.n()).done;){var Ee=Se.value;Ee.cancel(be)}}catch(Ce){_e.e(Ce)}finally{_e.f()}}}]),pe}();$.PDFNetworkStream=he;var me=function(){function pe(ye,be){ie(this,pe),this._manager=ye;var ge={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=be.url,this._fullRequestId=ye.requestFull(ge),this._headersReceivedCapability=(0,K.createPromiseCapability)(),this._disableRange=be.disableRange||!1,this._contentLength=be.length,this._rangeChunkSize=be.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return ce(pe,[{key:"_onHeadersReceived",value:function(){var be=this._fullRequestId,ge=this._manager.getRequestXhr(be),_e=function($e){return ge.getResponseHeader($e)},Se=(0,J.validateRangeRequestCapabilities)({getResponseHeader:_e,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),Ee=Se.allowRangeRequests,Ce=Se.suggestedLength;Ee&&(this._isRangeSupported=!0),this._contentLength=Ce||this._contentLength,this._filename=(0,J.extractFilenameFromHeader)(_e),this._isRangeSupported&&this._manager.abortRequest(be),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(be){if(be)if(this._requests.length>0){var ge=this._requests.shift();ge.resolve({value:be.chunk,done:!1})}else this._cachedChunks.push(be.chunk);if(this._done=!0,!(this._cachedChunks.length>0)){var _e=re(this._requests),Se;try{for(_e.s();!(Se=_e.n()).done;){var Ee=Se.value;Ee.resolve({value:void 0,done:!0})}}catch(Ce){_e.e(Ce)}finally{_e.f()}this._requests.length=0}}},{key:"_onError",value:function(be){this._storedError=(0,J.createResponseStatusError)(be,this._url),this._headersReceivedCapability.reject(this._storedError);var ge=re(this._requests),_e;try{for(ge.s();!(_e=ge.n()).done;){var Se=_e.value;Se.reject(this._storedError)}}catch(Ee){ge.e(Ee)}finally{ge.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(be){var ge;(ge=this.onProgress)===null||ge===void 0||ge.call(this,{loaded:be.loaded,total:be.lengthComputable?be.total:this._contentLength})}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}},{key:"read",value:function(){var ye=ne(F.default.mark(function ge(){var _e,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(!this._storedError){Ce.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){Ce.next=5;break}return _e=this._cachedChunks.shift(),Ce.abrupt("return",{value:_e,done:!1});case 5:if(!this._done){Ce.next=7;break}return Ce.abrupt("return",{value:void 0,done:!0});case 7:return Se=(0,K.createPromiseCapability)(),this._requests.push(Se),Ce.abrupt("return",Se.promise);case 10:case"end":return Ce.stop()}},ge,this)}));function be(){return ye.apply(this,arguments)}return be}()},{key:"cancel",value:function(be){this._done=!0,this._headersReceivedCapability.reject(be);var ge=re(this._requests),_e;try{for(ge.s();!(_e=ge.n()).done;){var Se=_e.value;Se.resolve({value:void 0,done:!0})}}catch(Ee){ge.e(Ee)}finally{ge.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]),pe}(),ue=function(){function pe(ye,be,ge){ie(this,pe),this._manager=ye;var _e={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=ye.url,this._requestId=ye.requestRange(be,ge,_e),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}return ce(pe,[{key:"_close",value:function(){var be;(be=this.onClosed)===null||be===void 0||be.call(this,this)}},{key:"_onDone",value:function(be){var ge=be.chunk;if(this._requests.length>0){var _e=this._requests.shift();_e.resolve({value:ge,done:!1})}else this._queuedChunk=ge;this._done=!0;var Se=re(this._requests),Ee;try{for(Se.s();!(Ee=Se.n()).done;){var Ce=Ee.value;Ce.resolve({value:void 0,done:!0})}}catch(xe){Se.e(xe)}finally{Se.f()}this._requests.length=0,this._close()}},{key:"_onError",value:function(be){this._storedError=(0,J.createResponseStatusError)(be,this._url);var ge=re(this._requests),_e;try{for(ge.s();!(_e=ge.n()).done;){var Se=_e.value;Se.reject(this._storedError)}}catch(Ee){ge.e(Ee)}finally{ge.f()}this._requests.length=0,this._queuedChunk=null}},{key:"_onProgress",value:function(be){if(!this.isStreamingSupported){var ge;(ge=this.onProgress)===null||ge===void 0||ge.call(this,{loaded:be.loaded})}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var ye=ne(F.default.mark(function ge(){var _e,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(!this._storedError){Ce.next=2;break}throw this._storedError;case 2:if(this._queuedChunk===null){Ce.next=6;break}return _e=this._queuedChunk,this._queuedChunk=null,Ce.abrupt("return",{value:_e,done:!1});case 6:if(!this._done){Ce.next=8;break}return Ce.abrupt("return",{value:void 0,done:!0});case 8:return Se=(0,K.createPromiseCapability)(),this._requests.push(Se),Ce.abrupt("return",Se.promise);case 11:case"end":return Ce.stop()}},ge,this)}));function be(){return ye.apply(this,arguments)}return be}()},{key:"cancel",value:function(be){this._done=!0;var ge=re(this._requests),_e;try{for(ge.s();!(_e=ge.n()).done;){var Se=_e.value;Se.resolve({value:void 0,done:!0})}}catch(Ee){ge.e(Ee)}finally{ge.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}]),pe}()},(C,$,V)=>{Object.defineProperty($,"__esModule",{value:!0}),$.PDFFetchStream=void 0;var F=ee(V(2)),K=V(4),J=V(154);function ee(me){return me&&me.__esModule?me:{default:me}}function te(me,ue,pe,ye,be,ge,_e){try{var Se=me[ge](_e),Ee=Se.value}catch(Ce){pe(Ce);return}Se.done?ue(Ee):Promise.resolve(Ee).then(ye,be)}function ne(me){return function(){var ue=this,pe=arguments;return new Promise(function(ye,be){var ge=me.apply(ue,pe);function _e(Ee){te(ge,ye,be,_e,Se,"next",Ee)}function Se(Ee){te(ge,ye,be,_e,Se,"throw",Ee)}_e(void 0)})}}function re(me,ue){var pe=typeof Symbol!="undefined"&&me[Symbol.iterator]||me["@@iterator"];if(!pe){if(Array.isArray(me)||(pe=ae(me))||ue&&me&&typeof me.length=="number"){pe&&(me=pe);var ye=0,be=function(){};return{s:be,n:function(){return ye>=me.length?{done:!0}:{done:!1,value:me[ye++]}},e:function(Ce){throw Ce},f:be}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
469
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ge=!0,_e=!1,Se;return{s:function(){pe=pe.call(me)},n:function(){var Ce=pe.next();return ge=Ce.done,Ce},e:function(Ce){_e=!0,Se=Ce},f:function(){try{!ge&&pe.return!=null&&pe.return()}finally{if(_e)throw Se}}}}function ae(me,ue){if(me){if(typeof me=="string")return oe(me,ue);var pe=Object.prototype.toString.call(me).slice(8,-1);if(pe==="Object"&&me.constructor&&(pe=me.constructor.name),pe==="Map"||pe==="Set")return Array.from(me);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return oe(me,ue)}}function oe(me,ue){(ue==null||ue>me.length)&&(ue=me.length);for(var pe=0,ye=new Array(ue);pe<ue;pe++)ye[pe]=me[pe];return ye}function ie(me,ue){if(!(me instanceof ue))throw new TypeError("Cannot call a class as a function")}function se(me,ue){for(var pe=0;pe<ue.length;pe++){var ye=ue[pe];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(me,ye.key,ye)}}function ce(me,ue,pe){return ue&&se(me.prototype,ue),pe&&se(me,pe),me}function de(me,ue,pe){return{method:"GET",headers:me,signal:pe==null?void 0:pe.signal,mode:"cors",credentials:ue?"include":"same-origin",redirect:"follow"}}function le(me){var ue=new Headers;for(var pe in me){var ye=me[pe];typeof ye!="undefined"&&ue.append(pe,ye)}return ue}var ve=function(){function me(ue){ie(this,me),this.source=ue,this.isHttp=/^https?:/i.test(ue.url),this.httpHeaders=this.isHttp&&ue.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return ce(me,[{key:"_progressiveDataLength",get:function(){var pe,ye;return(pe=(ye=this._fullRequestReader)===null||ye===void 0?void 0:ye._loaded)!==null&&pe!==void 0?pe:0}},{key:"getFullReader",value:function(){return(0,K.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new fe(this),this._fullRequestReader}},{key:"getRangeReader",value:function(pe,ye){if(ye<=this._progressiveDataLength)return null;var be=new he(this,pe,ye);return this._rangeRequestReaders.push(be),be}},{key:"cancelAllRequests",value:function(pe){this._fullRequestReader&&this._fullRequestReader.cancel(pe);var ye=re(this._rangeRequestReaders.slice(0)),be;try{for(ye.s();!(be=ye.n()).done;){var ge=be.value;ge.cancel(pe)}}catch(_e){ye.e(_e)}finally{ye.f()}}}]),me}();$.PDFFetchStream=ve;var fe=function(){function me(ue){var pe=this;ie(this,me),this._stream=ue,this._reader=null,this._loaded=0,this._filename=null;var ye=ue.source;this._withCredentials=ye.withCredentials||!1,this._contentLength=ye.length,this._headersCapability=(0,K.createPromiseCapability)(),this._disableRange=ye.disableRange||!1,this._rangeChunkSize=ye.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._isStreamingSupported=!ye.disableStream,this._isRangeSupported=!ye.disableRange,this._headers=le(this._stream.httpHeaders);var be=ye.url;fetch(be,de(this._headers,this._withCredentials,this._abortController)).then(function(ge){if(!(0,J.validateResponseStatus)(ge.status))throw(0,J.createResponseStatusError)(ge.status,be);pe._reader=ge.body.getReader(),pe._headersCapability.resolve();var _e=function($e){return ge.headers.get($e)},Se=(0,J.validateRangeRequestCapabilities)({getResponseHeader:_e,isHttp:pe._stream.isHttp,rangeChunkSize:pe._rangeChunkSize,disableRange:pe._disableRange}),Ee=Se.allowRangeRequests,Ce=Se.suggestedLength;pe._isRangeSupported=Ee,pe._contentLength=Ce||pe._contentLength,pe._filename=(0,J.extractFilenameFromHeader)(_e),!pe._isStreamingSupported&&pe._isRangeSupported&&pe.cancel(new K.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return ce(me,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var ue=ne(F.default.mark(function ye(){var be,ge,_e,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,this._headersCapability.promise;case 2:return Ce.next=4,this._reader.read();case 4:if(be=Ce.sent,ge=be.value,_e=be.done,!_e){Ce.next=9;break}return Ce.abrupt("return",{value:ge,done:_e});case 9:return this._loaded+=ge.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),Se=new Uint8Array(ge).buffer,Ce.abrupt("return",{value:Se,done:!1});case 13:case"end":return Ce.stop()}},ye,this)}));function pe(){return ue.apply(this,arguments)}return pe}()},{key:"cancel",value:function(pe){this._reader&&this._reader.cancel(pe),this._abortController&&this._abortController.abort()}}]),me}(),he=function(){function me(ue,pe,ye){var be=this;ie(this,me),this._stream=ue,this._reader=null,this._loaded=0;var ge=ue.source;this._withCredentials=ge.withCredentials||!1,this._readCapability=(0,K.createPromiseCapability)(),this._isStreamingSupported=!ge.disableStream,typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._headers=le(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(pe,"-").concat(ye-1));var _e=ge.url;fetch(_e,de(this._headers,this._withCredentials,this._abortController)).then(function(Se){if(!(0,J.validateResponseStatus)(Se.status))throw(0,J.createResponseStatusError)(Se.status,_e);be._readCapability.resolve(),be._reader=Se.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}return ce(me,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var ue=ne(F.default.mark(function ye(){var be,ge,_e,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,this._readCapability.promise;case 2:return Ce.next=4,this._reader.read();case 4:if(be=Ce.sent,ge=be.value,_e=be.done,!_e){Ce.next=9;break}return Ce.abrupt("return",{value:ge,done:_e});case 9:return this._loaded+=ge.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),Se=new Uint8Array(ge).buffer,Ce.abrupt("return",{value:Se,done:!1});case 13:case"end":return Ce.stop()}},ye,this)}));function pe(){return ue.apply(this,arguments)}return pe}()},{key:"cancel",value:function(pe){this._reader&&this._reader.cancel(pe),this._abortController&&this._abortController.abort()}}]),me}()}],__webpack_module_cache__={};function __w_pdfjs_require__(C){var $=__webpack_module_cache__[C];if($!==void 0)return $.exports;var V=__webpack_module_cache__[C]={id:C,loaded:!1,exports:{}};return __webpack_modules__[C].call(V.exports,V,V.exports,__w_pdfjs_require__),V.loaded=!0,V.exports}__w_pdfjs_require__.nmd=C=>(C.paths=[],C.children||(C.children=[]),C);var __webpack_exports__={};return(()=>{var C=__webpack_exports__;Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"AnnotationLayer",{enumerable:!0,get:function(){return K.AnnotationLayer}}),Object.defineProperty(C,"AnnotationMode",{enumerable:!0,get:function(){return V.AnnotationMode}}),Object.defineProperty(C,"CMapCompressionType",{enumerable:!0,get:function(){return V.CMapCompressionType}}),Object.defineProperty(C,"GlobalWorkerOptions",{enumerable:!0,get:function(){return J.GlobalWorkerOptions}}),Object.defineProperty(C,"InvalidPDFException",{enumerable:!0,get:function(){return V.InvalidPDFException}}),Object.defineProperty(C,"LinkTarget",{enumerable:!0,get:function(){return $.LinkTarget}}),Object.defineProperty(C,"LoopbackPort",{enumerable:!0,get:function(){return F.LoopbackPort}}),Object.defineProperty(C,"MissingPDFException",{enumerable:!0,get:function(){return V.MissingPDFException}}),Object.defineProperty(C,"OPS",{enumerable:!0,get:function(){return V.OPS}}),Object.defineProperty(C,"PDFDataRangeTransport",{enumerable:!0,get:function(){return F.PDFDataRangeTransport}}),Object.defineProperty(C,"PDFDateString",{enumerable:!0,get:function(){return $.PDFDateString}}),Object.defineProperty(C,"PDFWorker",{enumerable:!0,get:function(){return F.PDFWorker}}),Object.defineProperty(C,"PasswordResponses",{enumerable:!0,get:function(){return V.PasswordResponses}}),Object.defineProperty(C,"PermissionFlag",{enumerable:!0,get:function(){return V.PermissionFlag}}),Object.defineProperty(C,"PixelsPerInch",{enumerable:!0,get:function(){return $.PixelsPerInch}}),Object.defineProperty(C,"RenderingCancelledException",{enumerable:!0,get:function(){return $.RenderingCancelledException}}),Object.defineProperty(C,"SVGGraphics",{enumerable:!0,get:function(){return ne.SVGGraphics}}),Object.defineProperty(C,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return V.UNSUPPORTED_FEATURES}}),Object.defineProperty(C,"UnexpectedResponseException",{enumerable:!0,get:function(){return V.UnexpectedResponseException}}),Object.defineProperty(C,"Util",{enumerable:!0,get:function(){return V.Util}}),Object.defineProperty(C,"VerbosityLevel",{enumerable:!0,get:function(){return V.VerbosityLevel}}),Object.defineProperty(C,"XfaLayer",{enumerable:!0,get:function(){return re.XfaLayer}}),Object.defineProperty(C,"addLinkAttributes",{enumerable:!0,get:function(){return $.addLinkAttributes}}),Object.defineProperty(C,"build",{enumerable:!0,get:function(){return F.build}}),Object.defineProperty(C,"createObjectURL",{enumerable:!0,get:function(){return V.createObjectURL}}),Object.defineProperty(C,"createPromiseCapability",{enumerable:!0,get:function(){return V.createPromiseCapability}}),Object.defineProperty(C,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return V.createValidAbsoluteUrl}}),Object.defineProperty(C,"getDocument",{enumerable:!0,get:function(){return F.getDocument}}),Object.defineProperty(C,"getFilenameFromUrl",{enumerable:!0,get:function(){return $.getFilenameFromUrl}}),Object.defineProperty(C,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return $.getPdfFilenameFromUrl}}),Object.defineProperty(C,"getXfaPageViewport",{enumerable:!0,get:function(){return $.getXfaPageViewport}}),Object.defineProperty(C,"isPdfFile",{enumerable:!0,get:function(){return $.isPdfFile}}),Object.defineProperty(C,"loadScript",{enumerable:!0,get:function(){return $.loadScript}}),Object.defineProperty(C,"removeNullCharacters",{enumerable:!0,get:function(){return V.removeNullCharacters}}),Object.defineProperty(C,"renderTextLayer",{enumerable:!0,get:function(){return te.renderTextLayer}}),Object.defineProperty(C,"shadow",{enumerable:!0,get:function(){return V.shadow}}),Object.defineProperty(C,"version",{enumerable:!0,get:function(){return F.version}});var $=__w_pdfjs_require__(1),V=__w_pdfjs_require__(4),F=__w_pdfjs_require__(136),K=__w_pdfjs_require__(148),J=__w_pdfjs_require__(142),ee=__w_pdfjs_require__(6),te=__w_pdfjs_require__(151),ne=__w_pdfjs_require__(152),re=__w_pdfjs_require__(150);if(ee.isNodeJS){var ae=__w_pdfjs_require__(153),oe=ae.PDFNodeStream;(0,F.setPDFNetworkStreamFactory)(function(le){return new oe(le)})}else{var ie=__w_pdfjs_require__(156),se=ie.PDFNetworkStream,ce=__w_pdfjs_require__(157),de=ce.PDFFetchStream;(0,F.setPDFNetworkStreamFactory)(function(le){return(0,$.isValidFetchUrl)(le.url)?new de(le):new se(le)})}})(),__webpack_exports__})()})})(pdf);var pdfExports=pdf.exports,__spreadArray=globalThis&&globalThis.__spreadArray||function(C,$,V){if(V||arguments.length===2)for(var F=0,K=$.length,J;F<K;F++)(J||!(F in $))&&(J||(J=Array.prototype.slice.call($,0,F)),J[F]=$[F]);return C.concat(J||Array.prototype.slice.call($))},clipboardEvents=["onCopy","onCut","onPaste"],compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],focusEvents=["onFocus","onBlur"],formEvents=["onInput","onInvalid","onReset","onSubmit"],imageEvents=["onLoad","onError"],keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],mouseEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],selectionEvents=["onSelect"],touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],uiEvents=["onScroll"],wheelEvents=["onWheel"],animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],transitionEvents=["onTransitionEnd"],otherEvents=["onToggle"],changeEvents=["onChange"],allEvents=__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],clipboardEvents,!0),compositionEvents,!0),focusEvents,!0),formEvents,!0),imageEvents,!0),keyboardEvents,!0),mediaEvents,!0),mouseEvents,!0),dragEvents,!0),selectionEvents,!0),touchEvents,!0),pointerEvents,!0),uiEvents,!0),wheelEvents,!0),animationEvents,!0),transitionEvents,!0),changeEvents,!0),otherEvents,!0);function makeEventProps(C,$){var V={};return allEvents.forEach(function(F){var K=C[F];K&&($?V[F]=function(J){return K(J,$(F))}:V[F]=K)}),V}function makeCancellablePromise(C){var $=!1,V=new Promise(function(F,K){C.then(function(J){return!$&&F(J)}).catch(function(J){return!$&&K(J)})});return{promise:V,cancel:function(){$=!0}}}function mergeClassNames(){return Array.prototype.slice.call(arguments).reduce(function(C,$){return C.concat($)},[]).filter(function(C){return typeof C=="string"}).join(" ")}var isProduction$1=process.env.NODE_ENV==="production",prefix="Invariant failed";function invariant(C,$){if(!C){if(isProduction$1)throw new Error(prefix);var V=typeof $=="function"?$():$,F=V?"".concat(prefix,": ").concat(V):prefix;throw new Error(F)}}var isProduction=process.env.NODE_ENV==="production";function warning(C,$){if(!isProduction){if(C)return;var V="Warning: "+$;typeof console!="undefined"&&console.warn(V);try{throw Error(V)}catch(F){}}}const DocumentContext=React.createContext(null);function Message(C){var $=C.children,V=C.type;return React.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(V)},$)}Message.propTypes={children:PropTypes.node,type:PropTypes.oneOf(["error","loading","no-data"]).isRequired};var DEFAULT_LINK_REL="noopener noreferrer nofollow",LinkService=function(){function C(){_classCallCheck(this,C),this.externalLinkTarget=null,this.externalLinkRel=null}return _createClass(C,[{key:"setDocument",value:function(V){this.pdfDocument=V}},{key:"setViewer",value:function(V){this.pdfViewer=V}},{key:"setExternalLinkRel",value:function(V){this.externalLinkRel=V}},{key:"setExternalLinkTarget",value:function(V){this.externalLinkTarget=V}},{key:"setHistory",value:function(){}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(V){this.pdfViewer.currentPageNumber=V}},{key:"rotation",get:function(){return 0},set:function(V){}},{key:"goToDestination",value:function(V){var F=this;new Promise(function(K){typeof V=="string"?F.pdfDocument.getDestination(V).then(K):Array.isArray(V)?K(V):V.then(K)}).then(function(K){invariant(Array.isArray(K),'"'.concat(K,'" is not a valid destination array.'));var J=K[0];new Promise(function(ee){J instanceof Object?F.pdfDocument.getPageIndex(J).then(function(te){ee(te)}).catch(function(){invariant(!1,'"'.concat(J,'" is not a valid page reference.'))}):typeof J=="number"?ee(J):invariant(!1,'"'.concat(J,'" is not a valid destination reference.'))}).then(function(ee){var te=ee+1;invariant(te>=1&&te<=F.pagesCount,'"'.concat(te,'" is not a valid page number.')),F.pdfViewer.scrollPageIntoView({dest:V,pageIndex:ee,pageNumber:te})})})}},{key:"navigateTo",value:function(V){this.goToDestination(V)}},{key:"goToPage",value:function(){}},{key:"addLinkAttributes",value:function(V,F,K){V.href=F,V.rel=this.externalLinkRel||DEFAULT_LINK_REL,V.target=K?"_blank":this.externalLinkTarget||""}},{key:"getDestinationHash",value:function(){return"#"}},{key:"getAnchorUrl",value:function(){return"#"}},{key:"setHash",value:function(){}},{key:"executeNamedAction",value:function(){}},{key:"cachePageRef",value:function(){}},{key:"isPageVisible",value:function(){return!0}},{key:"isPageCached",value:function(){return!0}}]),C}(),PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},isBrowser=typeof window!="undefined",isLocalFileSystem=isBrowser&&window.location.protocol==="file:";function isDefined(C){return typeof C!="undefined"}function isProvided(C){return isDefined(C)&&C!==null}function isString(C){return typeof C=="string"}function isArrayBuffer(C){return C instanceof ArrayBuffer}function isBlob(C){return invariant(isBrowser,"isBlob can only be used in a browser environment"),C instanceof Blob}function isFile$1(C){return invariant(isBrowser,"isFile can only be used in a browser environment"),C instanceof File}function isDataURI(C){return isString(C)&&/^data:/.test(C)}function dataURItoByteString(C){invariant(isDataURI(C),"Invalid data URI.");var $=C.split(","),V=_slicedToArray($,2),F=V[0],K=V[1],J=F.split(";");return J.indexOf("base64")!==-1?atob(K):unescape(K)}function getPixelRatio(){return isBrowser&&window.devicePixelRatio||1}var allowFileAccessFromFilesTip="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function displayCORSWarning(){warning(!isLocalFileSystem,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ".concat(allowFileAccessFromFilesTip))}function displayWorkerWarning(){warning(!isLocalFileSystem,"Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ".concat(allowFileAccessFromFilesTip))}function cancelRunningTask(C){C&&C.cancel&&C.cancel()}function makePageCallback(C,$){return Object.defineProperty(C,"width",{get:function(){return this.view[2]*$},configurable:!0}),Object.defineProperty(C,"height",{get:function(){return this.view[3]*$},configurable:!0}),Object.defineProperty(C,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(C,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),C}function isCancelException(C){return C.name==="RenderingCancelledException"}function loadFromFile(C){return new Promise(function($,V){var F=new FileReader;return F.onload=function(){return $(new Uint8Array(F.result))},F.onerror=function(K){switch(K.target.error.code){case K.target.error.NOT_FOUND_ERR:return V(new Error("Error while reading a file: File not found."));case K.target.error.NOT_READABLE_ERR:return V(new Error("Error while reading a file: File not readable."));case K.target.error.SECURITY_ERR:return V(new Error("Error while reading a file: Security error."));case K.target.error.ABORT_ERR:return V(new Error("Error while reading a file: Aborted."));default:return V(new Error("Error while reading a file."))}},F.readAsArrayBuffer(C),null})}var eventProps=function(){var C={};return[].concat(_toConsumableArray(mouseEvents),_toConsumableArray(touchEvents),_toConsumableArray(keyboardEvents)).forEach(function($){C[$]=PropTypes.func}),C}(),fileTypes=[PropTypes.string,PropTypes.instanceOf(ArrayBuffer),PropTypes.shape({data:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),httpHeaders:PropTypes.object,range:PropTypes.object,url:PropTypes.string,withCredentials:PropTypes.bool})];typeof File!="undefined"&&fileTypes.push(PropTypes.instanceOf(File)),typeof Blob!="undefined"&&fileTypes.push(PropTypes.instanceOf(Blob));var isClassName=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),isFile=PropTypes.oneOfType(fileTypes),isLinkService=PropTypes.instanceOf(LinkService);PropTypes.oneOf(["_self","_blank","_parent","_top"]);var isPage=PropTypes.shape({_transport:PropTypes.shape({fontLoader:PropTypes.object.isRequired}).isRequired,commonObjs:PropTypes.shape({_objs:PropTypes.object.isRequired}).isRequired,getAnnotations:PropTypes.func.isRequired,getTextContent:PropTypes.func.isRequired,getViewport:PropTypes.func.isRequired,render:PropTypes.func.isRequired}),isPageIndex=function C($,V,F){var K=$[V],J=$.pageNumber,ee=$.pdf;if(!isDefined(ee))return null;if(isDefined(K)){if(typeof K!="number")return new Error("`".concat(V,"` of type `").concat(_typeof(K),"` supplied to `").concat(F,"`, expected `number`."));if(K<0)return new Error("Expected `".concat(V,"` to be greater or equal to 0."));var te=ee.numPages;if(K+1>te)return new Error("Expected `".concat(V,"` to be less or equal to ").concat(te-1,"."))}else if(!isDefined(J))return new Error("`".concat(V,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(F,"`."));return null},isPageNumber=function C($,V,F){var K=$[V],J=$.pageIndex,ee=$.pdf;if(!isDefined(ee))return null;if(isDefined(K)){if(typeof K!="number")return new Error("`".concat(V,"` of type `").concat(_typeof(K),"` supplied to `").concat(F,"`, expected `number`."));if(K<1)return new Error("Expected `".concat(V,"` to be greater or equal to 1."));var te=ee.numPages;if(K>te)return new Error("Expected `".concat(V,"` to be less or equal to ").concat(te,"."))}else if(!isDefined(J))return new Error("`".concat(V,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(F,"`."));return null},isPdf=PropTypes.oneOfType([PropTypes.shape({getDestination:PropTypes.func.isRequired,getOutline:PropTypes.func.isRequired,getPage:PropTypes.func.isRequired,numPages:PropTypes.number.isRequired}),PropTypes.bool]),isRef=PropTypes.oneOfType([PropTypes.func,PropTypes.shape({current:PropTypes.any})]),isRenderMode=PropTypes.oneOf(["canvas","none","svg"]),isRotate=PropTypes.oneOf([0,90,180,270]),_excluded=["url"];function ownKeys$2(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread$2(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys$2(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys$2(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}function _createSuper$6(C){var $=_isNativeReflectConstruct$6();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var PDFDataRangeTransport=pdfExports.PDFDataRangeTransport,Document$1=function(C){_inherits(V,C);var $=_createSuper$6(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{pdf:null}),_defineProperty(_assertThisInitialized(F),"viewer",{scrollPageIntoView:function(ne){var re=ne.dest,ae=ne.pageIndex,oe=ne.pageNumber,ie=F.props.onItemClick;if(ie){ie({dest:re,pageIndex:ae,pageNumber:oe});return}var se=F.pages[ae];if(se){se.scrollIntoView();return}warning(!1,"An internal link leading to page ".concat(oe," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}}),_defineProperty(_assertThisInitialized(F),"linkService",new LinkService),_defineProperty(_assertThisInitialized(F),"loadDocument",function(){cancelRunningTask(F.runningTask),F.loadingTask&&F.loadingTask.destroy();var te=makeCancellablePromise(F.findDocumentSource());F.runningTask=te,te.promise.then(function(ne){if(F.onSourceSuccess(),!!ne){F.setState(function(ce){return ce.pdf?{pdf:null}:null});var re=F.props,ae=re.options,oe=re.onLoadProgress,ie=re.onPassword;F.loadingTask=pdfExports.getDocument(_objectSpread$2(_objectSpread$2({},ne),ae)),F.loadingTask.onPassword=ie,oe&&(F.loadingTask.onProgress=oe);var se=makeCancellablePromise(F.loadingTask.promise);F.runningTask=se,se.promise.then(function(ce){F.setState(function(de){return de.pdf&&de.pdf.fingerprint===ce.fingerprint?null:{pdf:ce}},F.onLoadSuccess)}).catch(function(ce){F.onLoadError(ce)})}}).catch(function(ne){F.onSourceError(ne)})}),_defineProperty(_assertThisInitialized(F),"setupLinkService",function(){var te=F.props,ne=te.externalLinkRel,re=te.externalLinkTarget;F.linkService.setViewer(F.viewer),F.linkService.setExternalLinkRel(ne),F.linkService.setExternalLinkTarget(re)}),_defineProperty(_assertThisInitialized(F),"onSourceSuccess",function(){var te=F.props.onSourceSuccess;te&&te()}),_defineProperty(_assertThisInitialized(F),"onSourceError",function(te){warning(te);var ne=F.props.onSourceError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onLoadSuccess,ne=F.state.pdf;te&&te(ne),F.pages=new Array(ne.numPages),F.linkService.setDocument(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({pdf:!1}),warning(te);var ne=F.props.onLoadError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"findDocumentSource",function(){return new Promise(function(te){var ne=F.props.file;if(ne||te(null),typeof ne=="string"){if(isDataURI(ne)){var re=dataURItoByteString(ne);te({data:re})}displayCORSWarning(),te({url:ne})}if(ne instanceof PDFDataRangeTransport&&te({range:ne}),isArrayBuffer(ne)&&te({data:ne}),isBrowser&&(isBlob(ne)||isFile$1(ne))){loadFromFile(ne).then(function(se){te({data:se})});return}if(invariant(_typeof(ne)==="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),invariant(ne.url||ne.data||ne.range,"Invalid parameter object: need either .data, .range or .url"),typeof ne.url=="string"){if(isDataURI(ne.url)){var ae=ne.url,oe=_objectWithoutProperties(ne,_excluded),ie=dataURItoByteString(ae);te(_objectSpread$2({data:ie},oe))}displayCORSWarning()}te(ne)})}),_defineProperty(_assertThisInitialized(F),"registerPage",function(te,ne){F.pages[te]=ne}),_defineProperty(_assertThisInitialized(F),"unregisterPage",function(te){delete F.pages[te]}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(K){var J=this.props.file;J!==K.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask),this.loadingTask&&this.loadingTask.destroy()}},{key:"childContext",get:function(){var K=this.linkService,J=this.registerPage,ee=this.unregisterPage,te=this.props,ne=te.imageResourcesPath,re=te.renderMode,ae=te.rotate,oe=this.state.pdf;return{imageResourcesPath:ne,linkService:K,pdf:oe,registerPage:J,renderMode:re,rotate:ae,unregisterPage:ee}}},{key:"eventProps",get:function(){var K=this;return makeEventProps(this.props,function(){return K.state.pdf})}},{key:"renderChildren",value:function(){var K=this.props.children;return React.createElement(DocumentContext.Provider,{value:this.childContext},K)}},{key:"renderContent",value:function(){var K=this.props.file,J=this.state.pdf;if(!K){var ee=this.props.noData;return React.createElement(Message,{type:"no-data"},typeof ee=="function"?ee():ee)}if(J===null){var te=this.props.loading;return React.createElement(Message,{type:"loading"},typeof te=="function"?te():te)}if(J===!1){var ne=this.props.error;return React.createElement(Message,{type:"error"},typeof ne=="function"?ne():ne)}return this.renderChildren()}},{key:"render",value:function(){var K=this.props,J=K.className,ee=K.inputRef;return React.createElement("div",_extends({className:mergeClassNames("react-pdf__Document",J),ref:ee},this.eventProps),this.renderContent())}}]),V}(React.PureComponent);Document$1.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDF…",noData:"No PDF file specified.",onPassword:function C($,V){switch(V){case PasswordResponses.NEED_PASSWORD:{var F=prompt("Enter the password to open this PDF file.");$(F);break}case PasswordResponses.INCORRECT_PASSWORD:{var K=prompt("Invalid password. Please try again.");$(K);break}}}};var isFunctionOrNode$1=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);Document$1.propTypes=_objectSpread$2(_objectSpread$2({},eventProps),{},{children:PropTypes.node,className:isClassName,error:isFunctionOrNode$1,externalLinkRel:PropTypes.string,externalLinkTarget:PropTypes.string,file:isFile,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode$1,noData:isFunctionOrNode$1,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadProgress:PropTypes.func,onLoadSuccess:PropTypes.func,onPassword:PropTypes.func,onSourceError:PropTypes.func,onSourceSuccess:PropTypes.func,rotate:PropTypes.number});var isDestination=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.any)]);PropTypes.shape({dest:isDestination,items:PropTypes.arrayOf(PropTypes.shape({dest:isDestination,title:PropTypes.string})),title:PropTypes.string}).isRequired,PropTypes.func,isPdf.isRequired;function ownKeys$1(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread$1(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys$1(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys$1(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}_objectSpread$1({className:isClassName,inputRef:isRef,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,pdf:isPdf},eventProps);function mergeRefs(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];var V=C.filter(Boolean);if(V.length<=1){var F=V[0];return F||null}return function(J){V.forEach(function(ee){typeof ee=="function"?ee(J):ee&&(ee.current=J)})}}const PageContext=React.createContext(null);function _createSuper$5(C){var $=_isNativeReflectConstruct$5();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var ANNOTATION_MODE=pdfExports.AnnotationMode,PageCanvasInternal=function(C){_inherits(V,C);var $=_createSuper$5(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"canvasElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){F.renderer=null;var te=F.props,ne=te.onRenderSuccess,re=te.page,ae=te.scale;ne&&ne(makePageCallback(re,ae))}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){if(!isCancelException(te)){warning(te);var ne=F.props.onRenderError;ne&&ne(te)}}),_defineProperty(_assertThisInitialized(F),"drawPageOnCanvas",function(){var te=F.canvasElement.current;if(!te)return null;var ne=_assertThisInitialized(F),re=ne.renderViewport,ae=ne.viewport,oe=F.props,ie=oe.canvasBackground,se=oe.page,ce=oe.renderForms;te.width=re.width,te.height=re.height,te.style.width="".concat(Math.floor(ae.width),"px"),te.style.height="".concat(Math.floor(ae.height),"px");var de={annotationMode:ce?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,get canvasContext(){return te.getContext("2d")},viewport:re};return ie&&(de.background=ie),F.cancelRenderingTask(),F.renderer=se.render(de),F.renderer.promise.then(F.onRenderSuccess).catch(F.onRenderError)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.drawPageOnCanvas()}},{key:"componentDidUpdate",value:function(K){var J=this.props,ee=J.canvasBackground,te=J.page,ne=J.renderForms;(ee!==K.canvasBackground||ne!==K.renderForms)&&(te.cleanup(),this.drawPageOnCanvas())}},{key:"componentWillUnmount",value:function(){this.cancelRenderingTask();var K=this.canvasElement.current;K&&(K.width=0,K.height=0)}},{key:"cancelRenderingTask",value:function(){this.renderer&&(this.renderer.cancel(),this.renderer=null)}},{key:"renderViewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale,ne=getPixelRatio();return J.getViewport({scale:te*ne,rotation:ee})}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"render",value:function(){var K=this.props.canvasRef;return React.createElement("canvas",{className:"react-pdf__Page__canvas",dir:"ltr",ref:mergeRefs(K,this.canvasElement),style:{display:"block",userSelect:"none"}})}}]),V}(React.PureComponent);PageCanvasInternal.propTypes={canvasBackground:PropTypes.string,canvasRef:isRef,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number.isRequired};function PageCanvas(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(PageCanvasInternal,_extends({},$,C))})}function _createSuper$4(C){var $=_isNativeReflectConstruct$4();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var PageSVGInternal=function(C){_inherits(V,C);var $=_createSuper$4(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{svg:null}),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){F.renderer=null;var te=F.props,ne=te.onRenderSuccess,re=te.page,ae=te.scale;ne&&ne(makePageCallback(re,ae))}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){if(!isCancelException(te)){warning(te);var ne=F.props.onRenderError;ne&&ne(te)}}),_defineProperty(_assertThisInitialized(F),"renderSVG",function(){var te=F.props.page;return F.renderer=te.getOperatorList(),F.renderer.then(function(ne){var re=new pdfExports.SVGGraphics(te.commonObjs,te.objs);F.renderer=re.getSVG(ne,F.viewport).then(function(ae){F.setState({svg:ae},F.onRenderSuccess)}).catch(F.onRenderError)}).catch(F.onRenderError)}),_defineProperty(_assertThisInitialized(F),"drawPageOnContainer",function(te){var ne=F.state.svg;if(!(!te||!ne)){te.firstElementChild||te.appendChild(ne);var re=F.viewport,ae=re.width,oe=re.height;ne.setAttribute("width",ae),ne.setAttribute("height",oe)}}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.renderSVG()}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"render",value:function(){var K=this,J=this.viewport,ee=J.width,te=J.height;return React.createElement("div",{className:"react-pdf__Page__svg",ref:function(re){return K.drawPageOnContainer(re)},style:{display:"block",backgroundColor:"white",overflow:"hidden",width:ee,height:te,userSelect:"none"}})}}]),V}(React.PureComponent);PageSVGInternal.propTypes={onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number.isRequired};function PageSVG(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(PageSVGInternal,_extends({},$,C))})}function _createSuper$3(C){var $=_isNativeReflectConstruct$3();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var TextLayerItemInternal=function(C){_inherits(V,C);var $=_createSuper$3(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"itemElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"getElementWidth",function(te){var ne=_assertThisInitialized(F),re=ne.sideways;return te.getBoundingClientRect()[re?"height":"width"]}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.alignTextItem()}},{key:"componentDidUpdate",value:function(){this.alignTextItem()}},{key:"unrotatedViewport",get:function(){var K=this.props,J=K.page,ee=K.scale;return J.getViewport({scale:ee})}},{key:"rotate",get:function(){var K=this.props,J=K.page,ee=K.rotate;return ee-J.rotate}},{key:"sideways",get:function(){var K=this.rotate;return K%180!==0}},{key:"defaultSideways",get:function(){var K=this.unrotatedViewport.rotation;return K%180!==0}},{key:"fontSize",get:function(){var K=this.props.transform,J=this.defaultSideways,ee=_slicedToArray(K,2),te=ee[0],ne=ee[1];return J?ne:te}},{key:"top",get:function(){var K=this.props.transform,J=this.unrotatedViewport,ee=this.defaultSideways,te=_slicedToArray(K,6),ne=te[2],re=te[3],ae=te[4],oe=te[5],ie=_slicedToArray(J.viewBox,4),se=ie[1],ce=ie[3];return ee?ae+ne+se:ce-(oe+re)}},{key:"left",get:function(){var K=this.props.transform,J=this.unrotatedViewport,ee=this.defaultSideways,te=_slicedToArray(K,6),ne=te[4],re=te[5],ae=_slicedToArray(J.viewBox,1),oe=ae[0];return ee?re-oe:ne-oe}},{key:"getFontData",value:function(K){var J=this.props.page;return new Promise(function(ee){J.commonObjs.get(K,ee)})}},{key:"alignTextItem",value:function(){var K=this,J=this.itemElement.current;if(J){J.style.transform="";var ee=this.props,te=ee.fontName,ne=ee.scale,re=ee.width;J.style.fontFamily="".concat(te,", sans-serif"),this.getFontData(te).then(function(ae){var oe=ae?ae.fallbackName:"sans-serif";J.style.fontFamily="".concat(te,", ").concat(oe);var ie=re*ne,se=K.getElementWidth(J),ce="scaleX(".concat(ie/se,")"),de=ae?ae.ascent:0;de&&(ce+=" translateY(".concat((1-de)*100,"%)")),J.style.transform=ce,J.style.WebkitTransform=ce})}}},{key:"render",value:function(){var K=this.fontSize,J=this.top,ee=this.left,te=this.props,ne=te.customTextRenderer,re=te.scale,ae=te.str;return React.createElement("span",{ref:this.itemElement,style:{height:"1em",fontFamily:"sans-serif",fontSize:"".concat(K*re,"px"),position:"absolute",top:"".concat(J*re,"px"),left:"".concat(ee*re,"px"),transformOrigin:"left bottom",whiteSpace:"pre",pointerEvents:"all"}},ne?ne(this.props):ae)}}]),V}(React.PureComponent);TextLayerItemInternal.propTypes={customTextRenderer:PropTypes.func,fontName:PropTypes.string.isRequired,itemIndex:PropTypes.number.isRequired,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number,str:PropTypes.string.isRequired,transform:PropTypes.arrayOf(PropTypes.number).isRequired,width:PropTypes.number.isRequired};function TextLayerItem(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(TextLayerItemInternal,_extends({},$,C))})}function _createSuper$2(C){var $=_isNativeReflectConstruct$2();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var TextLayerInternal=function(C){_inherits(V,C);var $=_createSuper$2(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{textItems:null}),_defineProperty(_assertThisInitialized(F),"loadTextItems",function(){var te=F.props.page,ne=makeCancellablePromise(te.getTextContent());F.runningTask=ne,ne.promise.then(function(re){var ae=re.items;F.setState({textItems:ae},F.onLoadSuccess)}).catch(function(re){F.onLoadError(re)})}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onGetTextSuccess,ne=F.state.textItems;te&&te(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({textItems:!1}),warning(te);var ne=F.props.onGetTextError;ne&&ne(te)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.page;invariant(K,"Attempted to load page text content, but no page was specified."),this.loadTextItems()}},{key:"componentDidUpdate",value:function(K){var J=this.props.page;K.page&&J!==K.page&&this.loadTextItems()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"unrotatedViewport",get:function(){var K=this.props,J=K.page,ee=K.scale;return J.getViewport({scale:ee})}},{key:"rotate",get:function(){var K=this.props,J=K.page,ee=K.rotate;return ee-J.rotate}},{key:"renderTextItems",value:function(){var K=this.state.textItems;return K?K.map(function(J,ee){return React.createElement(TextLayerItem,_extends({key:ee,itemIndex:ee},J))}):null}},{key:"render",value:function(){var K=this.unrotatedViewport,J=this.rotate;return React.createElement("div",{className:"react-pdf__Page__textContent",style:{position:"absolute",top:"50%",left:"50%",width:"".concat(K.width,"px"),height:"".concat(K.height,"px"),color:"transparent",transform:"translate(-50%, -50%) rotate(".concat(J,"deg)"),WebkitTransform:"translate(-50%, -50%) rotate(".concat(J,"deg)"),pointerEvents:"none"}},this.renderTextItems())}}]),V}(React.PureComponent);TextLayerInternal.propTypes={onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number};function TextLayer(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(TextLayerInternal,_extends({},$,C))})}function _createSuper$1(C){var $=_isNativeReflectConstruct$1();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var AnnotationLayerInternal=function(C){_inherits(V,C);var $=_createSuper$1(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{annotations:null}),_defineProperty(_assertThisInitialized(F),"layerElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"loadAnnotations",function(){var te=F.props.page,ne=makeCancellablePromise(te.getAnnotations());F.runningTask=ne,ne.promise.then(function(re){F.setState({annotations:re},F.onLoadSuccess)}).catch(function(re){F.onLoadError(re)})}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onGetAnnotationsSuccess,ne=F.state.annotations;te&&te(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({annotations:!1}),warning(te);var ne=F.props.onGetAnnotationsError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){var te=F.props.onRenderAnnotationLayerSuccess;te&&te()}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){warning(te);var ne=F.props.onRenderAnnotationLayerError;ne&&ne(te)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.page;invariant(K,"Attempted to load page annotations, but no page was specified."),this.loadAnnotations()}},{key:"componentDidUpdate",value:function(K){var J=this.props,ee=J.page,te=J.renderForms;(K.page&&ee!==K.page||te!==K.renderForms)&&this.loadAnnotations()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"renderAnnotationLayer",value:function(){var K=this.state.annotations;if(K){var J=this.props,ee=J.imageResourcesPath,te=J.linkService,ne=J.page,re=J.renderForms,ae=this.viewport.clone({dontFlip:!0}),oe={annotations:K,div:this.layerElement.current,imageResourcesPath:ee,linkService:te,page:ne,renderForms:re,viewport:ae};this.layerElement.current.innerHTML="";try{pdfExports.AnnotationLayer.render(oe),this.onRenderSuccess()}catch(ie){this.onRenderError(ie)}}}},{key:"render",value:function(){return React.createElement("div",{className:"react-pdf__Page__annotations annotationLayer",ref:this.layerElement},this.renderAnnotationLayer())}}]),V}(React.PureComponent);AnnotationLayerInternal.propTypes={imageResourcesPath:PropTypes.string,linkService:isLinkService.isRequired,onGetAnnotationsError:PropTypes.func,onGetAnnotationsSuccess:PropTypes.func,onRenderAnnotationLayerError:PropTypes.func,onRenderAnnotationLayerSuccess:PropTypes.func,page:isPage,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number};var AnnotationLayer=function C($){return React.createElement(DocumentContext.Consumer,null,function(V){return React.createElement(PageContext.Consumer,null,function(F){return React.createElement(AnnotationLayerInternal,_extends({},V,F,$))})})};function ownKeys(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}function _createSuper(C){var $=_isNativeReflectConstruct();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var defaultScale=1,PageInternal=function(C){_inherits(V,C);var $=_createSuper(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{page:null}),_defineProperty(_assertThisInitialized(F),"pageElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props,ne=te.onLoadSuccess,re=te.registerPage,ae=F.state.page;ne&&ne(makePageCallback(ae,F.scale)),re&&re(F.pageIndex,F.pageElement.current)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({page:!1}),warning(te);var ne=F.props.onLoadError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"loadPage",function(){var te=F.props.pdf,ne=F.getPageNumber();if(ne){F.setState(function(ae){return ae.page?{page:null}:null});var re=makeCancellablePromise(te.getPage(ne));F.runningTask=re,re.promise.then(function(ae){F.setState({page:ae},F.onLoadSuccess)}).catch(function(ae){F.onLoadError(ae)})}}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.pdf;invariant(K,"Attempted to load a page, but no document was specified."),this.loadPage()}},{key:"componentDidUpdate",value:function(K){var J=this.props.pdf;if(K.pdf&&J!==K.pdf||this.getPageNumber()!==this.getPageNumber(K)){var ee=this.props.unregisterPage;ee&&ee(this.getPageIndex(K)),this.loadPage()}}},{key:"componentWillUnmount",value:function(){var K=this.props.unregisterPage;K&&K(this.pageIndex),cancelRunningTask(this.runningTask)}},{key:"childContext",get:function(){var K=this.state.page;if(!K)return{};var J=this.props,ee=J.canvasBackground,te=J.customTextRenderer,ne=J.onGetAnnotationsError,re=J.onGetAnnotationsSuccess,ae=J.onGetTextError,oe=J.onGetTextSuccess,ie=J.onRenderAnnotationLayerError,se=J.onRenderAnnotationLayerSuccess,ce=J.onRenderError,de=J.onRenderSuccess,le=J.renderForms,ve=J.renderInteractiveForms;return{canvasBackground:ee,customTextRenderer:te,onGetAnnotationsError:ne,onGetAnnotationsSuccess:re,onGetTextError:ae,onGetTextSuccess:oe,onRenderAnnotationLayerError:ie,onRenderAnnotationLayerSuccess:se,onRenderError:ce,onRenderSuccess:de,page:K,renderForms:le!=null?le:ve,rotate:this.rotate,scale:this.scale}}},{key:"getPageIndex",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(K.pageNumber)?K.pageNumber-1:isProvided(K.pageIndex)?K.pageIndex:null}},{key:"getPageNumber",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(K.pageNumber)?K.pageNumber:isProvided(K.pageIndex)?K.pageIndex+1:null}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var K=this.props.rotate;if(isProvided(K))return K;var J=this.state.page;return J?J.rotate:null}},{key:"scale",get:function(){var K=this.state.page;if(!K)return null;var J=this.props,ee=J.scale,te=J.width,ne=J.height,re=this.rotate,ae=1,oe=ee===null?defaultScale:ee;if(te||ne){var ie=K.getViewport({scale:1,rotation:re});ae=te?te/ie.width:ne/ie.height}return oe*ae}},{key:"eventProps",get:function(){var K=this;return makeEventProps(this.props,function(){var J=K.state.page;return J&&makePageCallback(J,K.scale)})}},{key:"pageKey",get:function(){var K=this.state.page;return"".concat(K.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){var K=this.state.page;return"".concat(K.pageIndex,"/").concat(this.rotate)}},{key:"renderMainLayer",value:function(){var K=this.props,J=K.canvasRef,ee=K.renderMode;switch(ee){case"none":return null;case"svg":return React.createElement(PageSVG,{key:"".concat(this.pageKeyNoScale,"_svg")});case"canvas":default:return React.createElement(PageCanvas,{key:"".concat(this.pageKey,"_canvas"),canvasRef:J})}}},{key:"renderTextLayer",value:function(){var K=this.props.renderTextLayer;return K?React.createElement(TextLayer,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){var K=this.props.renderAnnotationLayer;return K?React.createElement(AnnotationLayer,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var K=this.props.children;return React.createElement(PageContext.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),K)}},{key:"renderContent",value:function(){var K=this.pageNumber,J=this.props.pdf,ee=this.state.page;if(!K){var te=this.props.noData;return React.createElement(Message,{type:"no-data"},typeof te=="function"?te():te)}if(J===null||ee===null){var ne=this.props.loading;return React.createElement(Message,{type:"loading"},typeof ne=="function"?ne():ne)}if(J===!1||ee===!1){var re=this.props.error;return React.createElement(Message,{type:"error"},typeof re=="function"?re():re)}return this.renderChildren()}},{key:"render",value:function(){var K=this.pageNumber,J=this.props,ee=J.className,te=J.inputRef;return React.createElement("div",_extends({className:mergeClassNames("react-pdf__Page",ee),"data-page-number":K,ref:mergeRefs(te,this.pageElement),style:{position:"relative"}},this.eventProps),this.renderContent())}}]),V}(React.PureComponent);PageInternal.defaultProps={error:"Failed to load the page.",loading:"Loading page…",noData:"No page specified.",renderAnnotationLayer:!0,renderForms:!1,renderMode:"canvas",renderTextLayer:!0,scale:defaultScale};var isFunctionOrNode=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);PageInternal.propTypes=_objectSpread(_objectSpread({},eventProps),{},{canvasBackground:PropTypes.string,children:PropTypes.node,className:isClassName,customTextRenderer:PropTypes.func,error:isFunctionOrNode,height:PropTypes.number,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode,noData:isFunctionOrNode,onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,pageIndex:isPageIndex,pageNumber:isPageNumber,pdf:isPdf,registerPage:PropTypes.func,renderAnnotationLayer:PropTypes.bool,renderForms:PropTypes.bool,renderInteractiveForms:PropTypes.bool,renderMode:isRenderMode,renderTextLayer:PropTypes.bool,rotate:isRotate,scale:PropTypes.number,unregisterPage:PropTypes.func,width:PropTypes.number});function Page(C,$){return React.createElement(DocumentContext.Consumer,null,function(V){return React.createElement(PageInternal,_extends({ref:$},V,C))})}const Page$1=React.forwardRef(Page);displayWorkerWarning(),pdfExports.GlobalWorkerOptions.workerSrc="pdf.worker.js";const toDDMMYY=C=>{const $=new Date(C),V=String($.getMonth()+1).padStart(2,"0"),F=String($.getDate()).padStart(2,"0"),K=$.getFullYear().toString().slice(2);return[F,V,K].join("/")},fitmentService=careerHubApi.injectEndpoints({endpoints:C=>({getFitment:C.query({query:({jobProfileId:$})=>({url:"/api/v3/user-resumes/job-fitment-evaluation",params:{job_profile_id:$},method:"POST"})})})}),{useGetFitmentQuery}=fitmentService,resumeService=careerHubApi.injectEndpoints({endpoints:C=>({getResumesEligibility:C.query({query:({jobProfileId:$})=>({url:"/api/v3/user-resumes/eligibility",params:{job_profile_id:$}})}),getResumeLink:C.query({query:({resumeId:$})=>({url:`/api/v3/user-resumes/${$}/download`,method:"GET"})})})}),{useGetResumesEligibilityQuery,useGetResumeLinkQuery}=resumeService,container$4="_container_j5pfu_1",resumeChoiceOptionLabel="_resumeChoiceOptionLabel_j5pfu_5",resumeChoiceOptionLabelChecked="_resumeChoiceOptionLabelChecked_j5pfu_16",resumeChoiceOptionLabelContent="_resumeChoiceOptionLabelContent_j5pfu_27",resumeChoiceOptionLabelName="_resumeChoiceOptionLabelName_j5pfu_31",resumeChoiceOptionLabelModifiedAt="_resumeChoiceOptionLabelModifiedAt_j5pfu_37",resumeChoiceOptionLabelCard="_resumeChoiceOptionLabelCard_j5pfu_42",resumeChoiceOptionLabelCardHeader="_resumeChoiceOptionLabelCardHeader_j5pfu_46",resumeChoiceOptionLabelEditButton="_resumeChoiceOptionLabelEditButton_j5pfu_50",resumeChoiceOptionLabelImprovementsList="_resumeChoiceOptionLabelImprovementsList_j5pfu_54",resumePreviewContainer="_resumePreviewContainer_j5pfu_59",fitmentScoreTitle="_fitmentScoreTitle_j5pfu_69",styles$l={container:container$4,resumeChoiceOptionLabel,resumeChoiceOptionLabelChecked,resumeChoiceOptionLabelContent,resumeChoiceOptionLabelName,resumeChoiceOptionLabelModifiedAt,resumeChoiceOptionLabelCard,resumeChoiceOptionLabelCardHeader,resumeChoiceOptionLabelEditButton,resumeChoiceOptionLabelImprovementsList,resumePreviewContainer,fitmentScoreTitle};function FitmentScore({score:C}){let $={"0%":"#FC2119","60%":"#FF9C40"},V="#FFD5C0";return Number(C)>=60&&($={"0%":"#FC8019","80%":"#FFD284"},V="#FC910033"),Number(C)>=80&&($={"0%":"#03522D","100%":"#22C477"},V="#1A845233"),isNullOrUndefined(C)?null:React.createElement(Flex$1,{vertical:!0,gap:4,className:styles$l.fitmentScore},React.createElement(Typography$1.Text,{className:styles$l.fitmentScoreTitle},"Your Resume Fit Score:"),React.createElement(Progress$1,{size:["default",12],percent:C,className:styles$l.fitmentScoreProgress,strokeColor:$,trailColor:V}))}function BlockerPoints({value:C}){const $=reactRedux.useDispatch(),[V,F]=React.useState(!0),{onEditResume:K,jobProfileId:J}=useApplicationFormContext(),{resumeReviewData:ee}=reactRedux.useSelector(le=>le.scalantCareerHub.resumeFitment)||{},{analytics:te}=useJobPreview(),{resume_details:ne}=C||{},{id:re,name:ae}=ne||{},oe=getBlockerPointsChecklist(ee==null?void 0:ee[re]),ie=oe.length,se=oe.length>0,ce=()=>{te==null||te.click("Blocker Points - Collapse",PRODUCT_NAME),F(!V)},de=()=>{te==null||te.click("Blocker Points - Edit Resume",PRODUCT_NAME),K(re),$(setActiveResume({jobProfileId:J,resumeId:re,blockerPoints:oe,resumeName:ae})),$(setChecklistOpen({syncWithBlockerPoints:!0}))};return React.createElement(Card$1,{size:"small",rootClassName:styles$l.resumeChoiceOptionLabelCard},React.createElement(Flex$1,{gap:8,className:styles$l.resumeChoiceOptionLabelCardHeader},se&&React.createElement(ExclamationCircleTwoTone$1,{twoToneColor:"#FAAD14"}),!se&&React.createElement(CheckCircleTwoTone$1,{twoToneColor:"#52c41a"}),React.createElement(Typography$1.Text,null,se?`Improvements to be made (${ie})`:"No improvements to be made"),React.createElement(Button$2,{type:"link",className:styles$l.resumeChoiceOptionLabelEditButton,onClick:de},"Edit"),se&&React.createElement(Button$2,{type:"text",className:styles$l.resumeChoiceOptionLabelCollapseButton,onClick:ce},V?React.createElement(DownOutlined$1,null):React.createElement(UpOutlined$1,null))),!V&&React.createElement("ul",{className:styles$l.resumeChoiceOptionLabelImprovementsList},oe.map((le,ve)=>React.createElement("li",{key:ve},le))))}pdfExports.GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfExports.version}/pdf.worker.min.js`;const MAX_RETRY_COUNT=6;function ResumeChoiceOptionLabel({value:C}){var ie,se;const{selectedResume:$,setSelectedResume:V,jobProfileId:F}=useApplicationFormContext(),K=reactRedux.useSelector(ce=>{var de;return(de=ce.scalantCareerHub.resumeFitment)==null?void 0:de.fitmentScore}),{resume_details:J}=C||{},{id:ee,name:te,modified_at:ne}=J||{},re=$===ee,ae=(se=(ie=K==null?void 0:K[F])==null?void 0:ie[ee])==null?void 0:se.score,oe=()=>{V(ee)};return React.createElement(Radio$1,{onChange:oe,checked:re,className:classNames(styles$l.resumeChoiceOptionLabel,{[styles$l.resumeChoiceOptionLabelChecked]:re})},React.createElement(Flex$1,{vertical:!0,gap:12,className:styles$l.resumeChoiceOptionLabelContent},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{vertical:!0,gap:4},React.createElement(Typography$1.Text,{className:styles$l.resumeChoiceOptionLabelName},te),React.createElement(Typography$1.Text,{className:styles$l.resumeChoiceOptionLabelModifiedAt},"Last Modified: ",toDDMMYY(ne))),React.createElement(FitmentScore,{score:ae})),React.createElement(BlockerPoints,{value:C})))}function ResumePreview(){const[C,$]=React.useState(0),{selectedResume:V}=useApplicationFormContext(),{data:F,isFetching:K}=useGetResumeLinkQuery({resumeId:V},{skip:!V}),J=ee=>{C<MAX_RETRY_COUNT?setTimeout(()=>{$(C+1)},1e3):console.error("Error while loading pdf! ",ee.message)};return!(F!=null&&F.link)||K?React.createElement(Skeleton$1,{active:!0}):React.createElement(Document$1,{className:styles$l.resumePreview,file:F==null?void 0:F.link,loading:React.createElement(Skeleton$1,{active:!0}),onLoadError:J,error:React.createElement(Skeleton$1,{active:!0}),key:C},React.createElement(Page$1,{pageNumber:1}))}function ResumeChoiceSelect(){const{setSelectedResume:C}=useApplicationFormContext(),{jobProfileId:$}=useApplicationFormContext(),{data:V,isLoading:F}=useGetResumesEligibilityQuery({jobProfileId:$});return useGetFitmentQuery({jobProfileId:$},{skip:!$}),React.useEffect(()=>{var J,ee;if(!V)return;const K=(ee=(J=Object.values(V).find(te=>{var ne;return(ne=te==null?void 0:te.resume_details)==null?void 0:ne.default}))==null?void 0:J.resume_details)==null?void 0:ee.id;C(K)},[V,C]),F||!V?React.createElement(Skeleton$1,{active:!0}):React.createElement(Flex$1,{className:styles$l.container},React.createElement(Flex$1,{flex:1,vertical:!0,gap:16},Object.entries(V).map(([K,J])=>React.createElement(ResumeChoiceOptionLabel,{key:K,value:J}))),React.createElement(Flex$1,{className:styles$l.resumePreviewContainer,flex:1},React.createElement(ResumePreview,null)))}const container$3="_container_jdh56_1",carouselContainer="_carouselContainer_jdh56_6",dots="_dots_jdh56_12",title$1="_title_jdh56_36",description$1="_description_jdh56_42",iconContainer="_iconContainer_jdh56_48",pulse="_pulse_jdh56_1",iconScannerLine="_iconScannerLine_jdh56_60",scan="_scan_jdh56_1",styles$k={container:container$3,carouselContainer,dots,title:title$1,description:description$1,iconContainer,pulse,iconScannerLine,scan},EVALUATION_COMPLETION_TIMEOUT=6e4,TIPS=[{title:"Analysing the Right Resume for you to Apply!",description:"We’re preparing a fitment score and instant insights to know which resume works best for this application"},{title:"Preparing quick steps to Strengthen your Resume!",description:"We’re also figuring out suggestions to improve your resume with final touch ups at lightning speed"},{title:"Your Analysis will be Ready in just a Few Seconds!",description:"Fix key gaps we identify and boost your chances of getting noticed by top companies"}];function ResumeFitmentCheck(){reactRedux.useDispatch();const{jobProfileId:C,setStepName:$}=useApplicationFormContext(),{isError:V,data:F}=useGetFitmentQuery({jobProfileId:C}),{data:K}=useGetResumesEligibilityQuery({jobProfileId:C}),{fitmentScore:J}=reactRedux.useSelector(ee=>ee.scalantCareerHub.resumeFitment)||{};return React.useEffect(()=>{const ee=Object.keys(K||{});ee.length>0&&Object.keys((J==null?void 0:J[C])||{}).length===ee.length&&$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT)},[J,C,K,$]),React.useEffect(()=>{const ee=setTimeout(()=>{$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT)},EVALUATION_COMPLETION_TIMEOUT);return()=>clearTimeout(ee)},[$]),React.useEffect(()=>{V&&(message$1.error("Failed to evaluate job fitment"),$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT))},[V,$]),React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$k.container,justify:"center",align:"center"},React.createElement("div",{className:styles$k.iconContainer},React.createElement("div",{className:styles$k.iconScannerLine})),React.createElement("div",{className:styles$k.carouselContainer},React.createElement(Carousel$1,{autoplay:!0,autoplaySpeed:1e4,dots:{className:styles$k.dots},effect:"fade",className:styles$k.carousel,adaptiveHeight:!0},TIPS.map((ee,te)=>React.createElement("div",{key:te},React.createElement(Flex$1,{className:styles$k.tip,vertical:!0,gap:8,key:ee.title},React.createElement(Typography$1.Text,{className:styles$k.title,strong:!0},ee.title),React.createElement(Typography$1.Text,{className:styles$k.description},ee.description)))))))}const container$2="_container_1p8iv_1",footer="_footer_1p8iv_8",text="_text_1p8iv_12",heading$1="_heading_1p8iv_16",checkbox="_checkbox_1p8iv_22",styles$j={container:container$2,footer,text,heading:heading$1,checkbox},NOTIFICATION_KEY="resume-fitment-checklist",MAX_CHECKLIST_ITEMS=5,Description=()=>{const{activeResumeChecklist:C}=reactRedux.useSelector($=>$.scalantCareerHub.resumeFitment)||{};return React.createElement(Flex$1,{vertical:!0,gap:8},React.createElement(Typography$1.Text,{className:styles$j.text},"Please update the remaining sections as per the feedback to boost hiring chances"),React.createElement(Typography$1.Text,{strong:!0,className:styles$j.heading},"Improvements to be made"),C.slice(0,MAX_CHECKLIST_ITEMS).map(($,V)=>React.createElement(Checkbox$1,{className:styles$j.checkbox,key:V},React.createElement(Typography$1.Text,{className:styles$j.text,key:V},$))))},Footer=({closeNotification:C})=>React.createElement(Flex$1,{justify:"space-between",className:styles$j.footer},React.createElement(Flex$1,{gap:4,align:"center"},React.createElement(CheckCircleFilled$1,{style:{color:"#20A164"}}),React.createElement(Typography$1.Text,{className:styles$j.text},"When your resume is ready")),React.createElement(Button$2,{type:"primary",onClick:C},"Proceed to Apply"));function ResumeFitmentChecklist(){const C=reactRedux.useDispatch(),[$,V]=notification$1.useNotification(),{activeResumeChecklist:F,activeResumeName:K,isChecklistOpen:J}=reactRedux.useSelector(se=>se.scalantCareerHub.resumeFitment)||{},{setActiveApplicationId:ee,jobId:te,analytics:ne,onCloseResumeBuilder:re}=useJobPreview(),ae=React.useCallback(()=>{$.destroy(NOTIFICATION_KEY),ee(te),C(setChecklistOpen({isOpen:!1})),ne==null||ne.click("Resume Fitment Checklist - Close",PRODUCT_NAME)},[ne,C,te,ee,$]),oe=React.useCallback(()=>{ae(),re(),ne==null||ne.click("Resume Fitment Checklist - Proceed to Apply",PRODUCT_NAME)},[ne,ae,re]),ie=React.useCallback(()=>{!K||!(F!=null&&F.length)||($.warning({key:NOTIFICATION_KEY,message:K,placement:"bottomRight",description:React.createElement(Description,null),onClose:ae,closeIcon:null,duration:null,btn:React.createElement(Footer,{closeNotification:oe}),className:styles$j.container}),ne==null||ne.click("Resume Fitment Checklist - Open",PRODUCT_NAME))},[K,F,$,ae,oe,ne]);return React.useEffect(()=>{J?ie():ae()},[J,ie,ae]),V}const screeningCallService=careerHubApi.injectEndpoints({endpoints:C=>({issueScreeningCall:C.mutation({query:()=>({url:"/api/v3/careers-hub/screening-call/",method:"POST"})})})}),{useIssueScreeningCallMutation}=screeningCallService,screeningCallBanner="_screeningCallBanner_1ltmt_1",screeningCallIcon="_screeningCallIcon_1ltmt_7",screeningCallButtonIcon="_screeningCallButtonIcon_1ltmt_12",styles$i={screeningCallBanner,screeningCallIcon,screeningCallButtonIcon},ScreeningCallBanner=({forceShow:C=!1})=>{var oe;const $=reactRedux.useSelector(ie=>ie.scalantCareerHub.dashboard.userProfileData),V=(oe=$==null?void 0:$.hasCompletedScreeningCall)!=null?oe:!1,{analytics:F,jobData:K,currentTab:J}=useJobPreview(),{applicationStatus:ee}=K||{},te=ee===APPLICATION_STATUS$1.WITHDRAWN,[ne,{isLoading:re}]=useIssueScreeningCallMutation(),ae=React.useCallback(()=>sr(this,null,function*(){var se;const ie=yield ne();(se=ie==null?void 0:ie.data)!=null&&se.url?globalThis.open(ie.data.url,"_blank"):message$1.error("Failed to initiate screening call. Please try again."),F==null||F.click("Screening Call - Take Call",PRODUCT_NAME)}),[F,ne]);return V||!C&&(J!==TAG_TO_TAB_MAPPING.applied||te)?null:React.createElement(ActionBanner,{icon:React.createElement("img",{src:ICONS.airplay,className:styles$i.screeningCallIcon}),title:"Complete your 5-minute Screening Call now",description:"Verify your details with a quick screening call and become a priority applicant for us",buttonText:"Take Call",buttonIcon:React.createElement(PhoneOutlined$1,{className:styles$i.screeningCallButtonIcon}),className:styles$i.screeningCallBanner,onClick:ae,isLoading:re})},container$1="_container_16lhm_1",likeBadge="_likeBadge_16lhm_12",description="_description_16lhm_18",styles$h={container:container$1,likeBadge,description},SuccessScreen=()=>React.createElement(Flex$1,{vertical:!0,className:styles$h.container},React.createElement("img",{src:ICONS.likeBadge,alt:"like-badge",className:styles$h.likeBadge}),React.createElement(Typography$1.Title,{level:3},"Application Submitted successfully!"),React.createElement(Typography$1.Text,{className:styles$h.description},"Your job application has now been received by the team, you can track your status within the job details itself"),React.createElement(ScreeningCallBanner,{forceShow:!0}));function FormStep(){const{stepName:C}=useApplicationFormContext();switch(C){case APPLICATION_STATUS$1.APPLICATION_FORM:return React.createElement(ApplicationForm,null);case APPLICATION_STATUS$1.RESUME_FITMENT_CHECK:return React.createElement(ResumeFitmentCheck,null);case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:return React.createElement(ResumeChoiceSelect,null);case APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED:return React.createElement(SuccessScreen,null);default:return null}}function FormContainer({onClose:C,currentTab:$,jobProfileId:V,utmId:F,utmMedium:K,utmSource:J,onUploadFile:ee,onEditResume:te,onAddResume:ne}){const[re,ae]=React.useState(!1),{data:oe,isLoading:ie}=useCreateApplication({jobProfileId:V,utmMedium:K,utmSource:J,currentTab:$,utmId:F}),{applicationId:se,status:ce}=oe||{},de=()=>{C(),ae(!1)};return React.useEffect(()=>{ae(!!V)},[V]),React.createElement(ApplicationFormProvider,{onUploadFile:ee,stepName:ce,jobProfileId:V,applicationId:se,onEditResume:te,onAddResume:ne},React.createElement(Drawer$1,{closable:!1,loading:ie,open:re,placement:"bottom",height:600,title:React.createElement(FormHeader,{onClose:de}),footer:React.createElement(Footer$1,{onCancel:de})},React.createElement(FormStep,null)),React.createElement(ResumeFitmentChecklist,null))}FormContainer.propTypes={currentTab:PropTypes.string.isRequired,jobProfileId:PropTypes.number.isRequired,utmId:PropTypes.string,utmMedium:PropTypes.string,utmSource:PropTypes.string};const JobApplicationForm=({currentTab:C,onUploadFile:$,onEditResume:V,onAddResume:F})=>{const{activeApplicationId:K,setActiveApplicationId:J}=useJobPreview(),ee=()=>{J(null)};return K?React.createElement(FormContainer,{onUploadFile:$,jobProfileId:K,onClose:ee,currentTab:C,onEditResume:V,onAddResume:F}):null},container="_container_kgogb_1",actionAlert="_actionAlert_kgogb_14",ineligible="_ineligible_kgogb_24",stepsToApply="_stepsToApply_kgogb_29",actionAlertIcon="_actionAlertIcon_kgogb_35",actionAlertTitle="_actionAlertTitle_kgogb_46",eligible="_eligible_kgogb_52",title="_title_kgogb_57",highlightsList="_highlightsList_kgogb_64",keywordsList="_keywordsList_kgogb_72",keyword="_keyword_kgogb_72",exceptions="_exceptions_kgogb_101",exceptionsIconContainer="_exceptionsIconContainer_kgogb_107",exceptionsIcon="_exceptionsIcon_kgogb_107",exceptionsTitle="_exceptionsTitle_kgogb_116",exception="_exception_kgogb_101",exceptionItem="_exceptionItem_kgogb_124",exceptionsList="_exceptionsList_kgogb_131",styles$g={container,actionAlert,ineligible,stepsToApply,actionAlertIcon,actionAlertTitle,eligible,title,highlightsList,keywordsList,keyword,exceptions,exceptionsIconContainer,exceptionsIcon,exceptionsTitle,exception,exceptionItem,exceptionsList},ActionAlert=({eligibilityStatus:C,metric:$,onScrollToEnd:V})=>{const{analytics:F,setActiveTab:K}=useJobPreview(),J=()=>{K(JOB_BODY_TABS.REQUIREMENTS.key),V(),F==null||F.click("Job Highlights - Complete Tasks",PRODUCT_NAME)};return C===ELIGIBILITY_TYPES.ineligible?React.createElement("div",{className:classNames(styles$g.actionAlert,styles$g.ineligible)},React.createElement(ExclamationCircleOutlined$1,null),React.createElement("span",{className:styles$g.actionAlertTitle},"Unfortunately! Your profile does not have the relevant years of experience for this role")):C===ELIGIBILITY_TYPES.steps_to_apply?React.createElement(ActionBanner,{icon:React.createElement(ClockCircleTwoTone$1,{className:styles$g.actionAlertIcon}),title:`Eligible to apply in ${$} more steps!`,description:"Complete these three test to become eligible to apply!",buttonText:"Complete Tasks",buttonIcon:React.createElement(EditOutlined$1,null),className:styles$g.stepsToApply,onClick:J}):null},HighlightsList=({highlights:C})=>React.createElement(React.Fragment,null,React.createElement("div",{className:styles$g.title},"Top Reasons to Apply"),React.createElement("ul",{className:styles$g.highlightsList},C==null?void 0:C.map($=>React.createElement("li",{key:$,className:styles$g.highlight},React.createElement("span",{className:styles$g.highlightText},$))))),Keywords=({keywords:C,eligibilityStatus:$})=>React.createElement("div",{className:styles$g.keywordsList},C==null?void 0:C.map((V,F)=>React.createElement("div",{key:F,className:classNames(styles$g.keyword,styles$g[toCamelCase($)])},V))),Exceptions=({exceptionalJob:C})=>{if(!C)return null;const $=["Considering your current profile and preferences, you seem to be a right fit","Which means that you get to apply to this job irrespective of the requirements mentioned below","So in case this matches what you are looking for, please apply"];return React.createElement("div",{className:styles$g.exceptions},React.createElement("div",{className:styles$g.exceptionsIconContainer},React.createElement(StarTwoTone$1,{size:20,twoToneColor:"#FAAD14",className:styles$g.exceptionsIcon})),React.createElement("div",null,React.createElement("div",{className:styles$g.exceptionsTitle},"We've made an exception for you!"),React.createElement("ul",{className:styles$g.exceptionsList},$.map((V,F)=>React.createElement("li",{className:[styles$g.exception],key:F},V)))))},JobHighlights=()=>{const{jobData:C,highlights:$,eligibilityCriteria:V,currentTab:F}=useJobPreview(),K=React.useRef(null),{highlights:J,keywords:ee}=$||(C==null?void 0:C.highlights)||{},{tag:te,count:ne}=determineJobTag(C,V||{}),re=()=>{if(K.current&&typeof window!="undefined"){const oe=K.current.getBoundingClientRect(),ie=oe.top+window.pageYOffset,se=oe.height,ce=window.innerHeight,de=ie+se-ce/2;window.scrollTo({top:de,behavior:"smooth"})}};return F===TAG_TO_TAB_MAPPING.applied||!(J!=null&&J.length)?null:React.createElement("div",{ref:K,className:classNames(styles$g.container,styles$g[te])},React.createElement(ActionAlert,{eligibilityStatus:te,metric:ne,onScrollToEnd:re}),React.createElement(HighlightsList,{highlights:J}),React.createElement(Keywords,{keywords:ee,eligibilityStatus:te}),React.createElement(Exceptions,{exceptionalJob:C==null?void 0:C.exceptionalJob}))},expandedJobView="_expandedJobView_1lt4c_2",loadingCard="_loadingCard_1lt4c_18",styles$f={expandedJobView,loadingCard},ExpandedJobViewContent=()=>React.createElement("div",{className:styles$f.expandedJobView},React.createElement(ExpandedJobViewHeader,null),React.createElement(JobHighlights,null),React.createElement(ScreeningCallBanner,null),React.createElement(InterviewExperiencesBanner,null),React.createElement(ExpandedJobViewBody,null)),ExpandedJobView=({analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,isActive:J,currentTab:ee,onUploadFile:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae})=>{var de;const{data:oe,isLoading:ie,isFetching:se,error:ce}=useGetJobPreviewQuery(K,{skip:!K||!J});return!J||!K?null:ie||se?React.createElement(Card$1,{className:`${styles$f.expandedJobView} ${styles$f.loadingCard}`},React.createElement(Spin$1,{size:"large"})):ce?React.createElement(Card$1,{className:styles$f.expandedJobView},React.createElement(Alert$1,{type:"error",message:"Failed to load job details",description:((de=ce==null?void 0:ce.data)==null?void 0:de.message)||(ce==null?void 0:ce.message)||"Please try again later",showIcon:!0})):oe?React.createElement(App$1,null,React.createElement(JobPreviewProvider,{analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,skip:!J,currentTab:ee,onCloseResumeBuilder:ae},React.createElement(ExpandedJobViewContent,null),React.createElement(JobApplicationForm,{currentTab:ee,onUploadFile:te,onEditResume:ne,onAddResume:re}))):null},jobDetails="_jobDetails_1gavc_1",styles$e={jobDetails};function JobDetails({analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,className:J,onUploadFile:ee,currentTab:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae}){return React.useEffect(()=>{K&&(C==null||C.view("Job Details - Render",PRODUCT_NAME,{jobId:K,currentTab:te}))},[C,te,K]),K?React.createElement("div",{className:classNames(styles$e.jobDetails,J)},React.createElement(ExpandedJobView,{analytics:C,onUploadFile:ee,country:$,openMockInterviewModal:V,openResume:F,jobId:K,isActive:!!K,currentTab:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae})):null}JobDetails.propTypes={country:PropTypes.string,openMockInterviewModal:PropTypes.func,openResume:PropTypes.func,jobId:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),className:PropTypes.string},JobDetails.defaultProps={jobId:null,className:""};const transformJobsData=C=>{if(!C||!(C!=null&&C.data)||!Array.isArray(C==null?void 0:C.data))return[];const $={};return C!=null&&C.included&&Array.isArray(C==null?void 0:C.included)&&(C==null||C.included.forEach(V=>{V.type==="company"&&V.attributes&&($[V.id]=V.attributes)})),C==null?void 0:C.data.map(V=>{if(V.type!=="job_profile"||!V.attributes)return null;const F=V.attributes,K=V.relationships||{};let J=null;if(K.company&&K.company.data){const te=K.company.data.id;J=$[te]||null}return{id:parseInt(V.id,10),title:F.title||"",name:F.title||"",slug:F.slug||"",jobDesc:F.job_desc||"",jobDescText:F.job_desc_text||"",minExperience:F.min_experience?parseFloat(F.min_experience):null,maxExperience:F.max_experience?parseFloat(F.max_experience):null,minCtc:F.min_ctc?parseFloat(F.min_ctc):null,maxCtc:F.max_ctc?parseFloat(F.max_ctc):null,validTill:F.valid_till||null,createdAt:F.created_at||null,jobType:F.job_type||null,preferredCities:F.preferred_cities||"",preferredNoticePeriod:F.preferred_notice_period||null,meritBasedSkills:F.merit_based_skills||[],contestSkills:F.contest_skills||[],applicationStatus:F.application_status||null,expiry:F.expiry||null,applicationId:F.application_id||null,userCompanyStatus:F.user_company_status||null,applicationLastUpdatedAt:F.application_last_upated_at||null,jobSource:F.job_source||null,jobProfileId:F.job_profile_id||null,jobProfileStatus:F.job_profile_status||"active",datePostedOn:F.date_posted_on||null,openForDiscussionCtc:F.open_for_discussion_ctc||!1,appliedOn:F.applied_on||null,seniorityLevel:F.seniority_level||null,roleType:F.role_type||"full_time",duration:F.duration||null,stipend:F.stipend||null,eligibilityCriteria:F.eligibility_criteria||{is_eligible:!1,reasons:[]},exceptionalJob:F.exceptional_job||!1,isRelevant:F.is_relevant||!1,isInternship:F.role_type==="internship",company:J?[parseInt(K.company.data.id,10)]:[],logo:(J==null?void 0:J.logo)||null,companyName:(J==null?void 0:J.name)||null,companySlug:(J==null?void 0:J.slug)||null,companyLocation:(J==null?void 0:J.location)||null,companyWebsite:(J==null?void 0:J.company_website)||null,companyVision:(J==null?void 0:J.company_vision)||null,companyTagline:(J==null?void 0:J.tagline)||null,companyCategory:(J==null?void 0:J.category)||null,companyEmployeeCount:(J==null?void 0:J.employee_count)||null}}).filter(Boolean)},createCompaniesMap=C=>{const $={};return C!=null&&C.included&&Array.isArray(C.included)&&C.included.forEach(V=>{V.type==="company"&&V.attributes&&($[V.id]=Hn({id:V.id},V.attributes))}),$},normalizeJobsResponse=(C={})=>{var J,ee,te,ne;const $=C.jobs_data||C,V=transformJobsData($),F=createCompaniesMap($),K=(ne=(te=(J=C.total_entries)!=null?J:$.total_entries)!=null?te:(ee=$==null?void 0:$.meta)==null?void 0:ee.total_entries)!=null?ne:null;return{jobs:V,companiesMap:F,results:V,totalEntries:K}},jobsService=careerHubApi.injectEndpoints({endpoints:C=>({fetchAllJobs:C.query({query:($={})=>({url:"/job-tracker/fetch-all-jobs/",method:"POST",body:$}),transformResponse:normalizeJobsResponse,providesTags:["Jobs"]}),fetchPipelineJobs:C.query({query:($={})=>({url:"/job-tracker/fetch-pipeline-jobs/",method:"POST",body:$}),transformResponse:normalizeJobsResponse,providesTags:["PipelineJobs"]}),fetchRelevantJobs:C.query({query:($={})=>({url:"/job-tracker/relevancy/",method:"POST",body:$}),transformResponse:normalizeJobsResponse,providesTags:["RelevantJobs"]})})}),{useFetchAllJobsQuery,useFetchPipelineJobsQuery,useFetchRelevantJobsQuery}=jobsService,header$1="_header_t7ugs_1",jobTitle="_jobTitle_t7ugs_6",titleContainer="_titleContainer_t7ugs_14",titleContainerExpanded="_titleContainerExpanded_t7ugs_19",titleContainerCollapsed="_titleContainerCollapsed_t7ugs_23",companyName="_companyName_t7ugs_27",actions="_actions_t7ugs_32",styles$d={header:header$1,jobTitle,titleContainer,titleContainerExpanded,titleContainerCollapsed,companyName,actions},{Title:Title$1,Text:Text$2}=Typography$1,JobTitleAndCompany=({title:C,companyName:$,isExpanded:V})=>React.createElement(Space$1,{direction:"vertical",size:4,className:classNames(styles$d.titleContainer,{[styles$d.titleContainerExpanded]:V,[styles$d.titleContainerCollapsed]:!V})},React.createElement(Title$1,{level:5,className:styles$d.jobTitle,ellipsis:{rows:1}},C),React.createElement(Text$2,{ellipsis:!0,className:styles$d.companyName},$));JobTitleAndCompany.propTypes={title:PropTypes.string.isRequired,companyName:PropTypes.string.isRequired,isExpanded:PropTypes.bool},JobTitleAndCompany.defaultProps={isExpanded:!1};const tag="_tag_5fhgn_1",styles$c={tag},ICON_MAP={CheckCircleOutlined:CheckCircleOutlined$1,CloseCircleOutlined:CloseCircleOutlined$1,ClockCircleOutlined:ClockCircleOutlined$1,RocketOutlined:RocketOutlined$1},EligibilityTag=({jobData:C,currentTab:$})=>{const V=determineJobTag(C,C.eligibilityCriteria);if(!V)return null;const F=ICON_MAP[V.icon];return React.createElement(Tag$1,{icon:F&&React.createElement(F,null),color:V.antdColor,className:styles$c.tag,style:V.tag==="expired"?{color:V.color,borderColor:V.color}:{}},V.text)};EligibilityTag.propTypes={jobData:PropTypes.shape({isRelevant:PropTypes.bool,expiry:PropTypes.string,jobProfileStatus:PropTypes.string,eligibilityCriteria:PropTypes.shape({isEligible:PropTypes.bool,reasons:PropTypes.arrayOf(PropTypes.shape({label:PropTypes.string,isEligible:PropTypes.bool,data:PropTypes.object}))})}).isRequired,currentTab:PropTypes.string},EligibilityTag.defaultProps={currentTab:"all"};const JobCardActions=({jobData:C,currentTab:$})=>React.createElement("div",{className:styles$d.actions},React.createElement(EligibilityTag,{jobData:C,currentTab:$}));JobCardActions.propTypes={jobData:PropTypes.object.isRequired,currentTab:PropTypes.string},JobCardActions.defaultProps={currentTab:"all"};const JobCardHeader=({jobData:C,companiesList:$,currentTab:V,isExpanded:F})=>{var J;const K=C.companyName||C.company&&C.company[0]&&((J=$[C.company[0]])==null?void 0:J.name)||"";return React.createElement(Row$1,{gutter:[12,8],className:styles$d.header},React.createElement(Col$1,{flex:"auto"},React.createElement(Row$1,{gutter:12,align:"top",wrap:!1},React.createElement(Col$1,null,React.createElement(CompanyLogo,{logo:C.logo,company:C.company,companiesList:$,companyName:K})),React.createElement(Col$1,{flex:"auto"},React.createElement(JobTitleAndCompany,{title:C.title,companyName:K,isExpanded:F})))),React.createElement(Flex$1,null,React.createElement(JobCardActions,{jobData:C,currentTab:V})))};JobCardHeader.propTypes={jobData:PropTypes.object.isRequired,companiesList:PropTypes.object,currentTab:PropTypes.string,isExpanded:PropTypes.bool},JobCardHeader.defaultProps={companiesList:{},currentTab:"all",isExpanded:!1};const saveButton="_saveButton_1g9sw_1",savedButton="_savedButton_1g9sw_12",styles$b={saveButton,savedButton},SaveButton=({analytics:C,jobProfileId:$,applicationStatus:V,applicationLastUpdatedAt:F,onSave:K,disabled:J=!1})=>{const[ee,te]=React.useState(!1),ne=reactRedux.useSelector(ie=>{var se,ce,de;return(de=(ce=(se=ie.scalantCareerHub)==null?void 0:se.savedJobs)==null?void 0:ce.savedJobs)==null?void 0:de[$]}),re=ne?ne.status==="Saved":V==="Saved",ae=(ne==null?void 0:ne.lastUpdatedAt)||F,oe=ie=>sr(this,null,function*(){if(ie.stopPropagation(),!re){C==null||C.click("Job Card - Save",PRODUCT_NAME),te(!0);try{yield K($,"save")}catch(se){}finally{te(!1)}}});return re&&ae?React.createElement(Button$2,{type:"text",icon:React.createElement(SaveTwoTone$1,{twoToneColor:"#8c8c8c"}),onClick:oe,disabled:!0,className:styles$b.savedButton,style:{color:"#8c8c8c"},size:"small"},"Saved on ",formatDate(ae)):React.createElement(Button$2,{type:"text",icon:React.createElement(SaveOutlined$1,{twoToneColor:"#006AFF"}),onClick:oe,disabled:J||ee,loading:ee,className:styles$b.saveButton,size:"small"},re?"Saved":"Save")};SaveButton.propTypes={analytics:PropTypes.object,jobProfileId:PropTypes.number.isRequired,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string,onSave:PropTypes.func.isRequired,disabled:PropTypes.bool},SaveButton.defaultProps={applicationStatus:"Not Applied",applicationLastUpdatedAt:null,disabled:!1};const body="_body_10o1d_1",detailsRowContainer="_detailsRowContainer_10o1d_7",detailsRow="_detailsRow_10o1d_7",detailText="_detailText_10o1d_23",saveButtonWrapper="_saveButtonWrapper_10o1d_29",styles$a={body,detailsRowContainer,detailsRow,detailText,saveButtonWrapper},{Text:Text$1}=Typography$1,DetailItem=({text:C})=>C?React.createElement(Text$1,{className:styles$a.detailText},C):null;DetailItem.propTypes={text:PropTypes.string};const JobDetailsRow=({analytics:C,jobData:$,cardConfig:V,userCountry:F,onSave:K,selectedJobId:J})=>{const{preferredCities:ee,minExperience:te,maxExperience:ne,minCtc:re,maxCtc:ae,openForDiscussionCtc:oe,isInternship:ie,stipend:se,preferredNoticePeriod:ce}=$,de=formatLocation(ee),le=J===null&&V.isExperienceCtcAvailable?formatExperience$1(te,ne):null,ve=V.isExperienceCtcAvailable?formatCtc({minCtc:re,maxCtc:ae,openForDiscussionCtc:oe,isInternship:ie,stipend:se,userCountry:F}):null,fe=J===null&&V.isNoticePeriodAvailable?formatNoticePeriod(ce):null,he=[de&&{text:de},le&&{text:le},ve&&{text:ve},fe&&{text:fe}].filter(Boolean);return React.createElement("div",{className:styles$a.detailsRowContainer},he.length>0&&React.createElement(Space$1,{split:React.createElement(Divider$1,{type:"vertical"}),className:styles$a.detailsRow},he.map((me,ue)=>React.createElement(DetailItem,{key:ue,text:me.text}))),React.createElement("div",{className:styles$a.saveButtonWrapper},React.createElement(SaveButton,{analytics:C,jobProfileId:$.id,applicationStatus:$.applicationStatus,applicationLastUpdatedAt:$.applicationLastUpdatedAt,onSave:K})))};JobDetailsRow.propTypes={analytics:PropTypes.object,jobData:PropTypes.shape({id:PropTypes.number.isRequired,preferredCities:PropTypes.string,minExperience:PropTypes.number,maxExperience:PropTypes.number,minCtc:PropTypes.number,maxCtc:PropTypes.number,openForDiscussionCtc:PropTypes.bool,isInternship:PropTypes.bool,stipend:PropTypes.string,preferredNoticePeriod:PropTypes.number,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string}).isRequired,cardConfig:PropTypes.shape({isExperienceCtcAvailable:PropTypes.bool,isNoticePeriodAvailable:PropTypes.bool}).isRequired,userCountry:PropTypes.oneOf(["IN","US"]),onSave:PropTypes.func.isRequired,selectedJobId:PropTypes.number},JobDetailsRow.defaultProps={userCountry:"IN",selectedJobId:null};const JobCardBody=({analytics:C,jobData:$,cardConfig:V,userCountry:F,onSave:K,selectedJobId:J})=>React.createElement("div",{className:styles$a.body},React.createElement(JobDetailsRow,{analytics:C,jobData:$,cardConfig:V,userCountry:F,onSave:K,selectedJobId:J}));JobCardBody.propTypes={analytics:PropTypes.object,jobData:PropTypes.object.isRequired,cardConfig:PropTypes.object.isRequired,userCountry:PropTypes.oneOf(["IN","US"]),onSave:PropTypes.func.isRequired,selectedJobId:PropTypes.number},JobCardBody.defaultProps={userCountry:"IN",selectedJobId:null};const jobCard="_jobCard_nu53j_1",expired="_expired_nu53j_12",active="_active_nu53j_15",archived="_archived_nu53j_28",cardContent="_cardContent_nu53j_37",styles$9={jobCard,expired,active,archived,cardContent},JobCard=({analytics:C,jobData:$,isActive:V,currentTab:F,onClick:K,onSave:J,companiesList:ee,userCountry:te,className:ne,selectedJobId:re})=>{const{cardConfig:ae,shouldShowBody:oe}=useJobCardState({currentTab:F,isActive:V,jobData:$}),ie=()=>{C==null||C.click("Job Card - Click",PRODUCT_NAME),K&&K($.id)};return React.createElement(Card$1,{className:classNames(styles$9.jobCard,{[styles$9.active]:V,[styles$9.archived]:$.applicationStatus==="Archived"},ne),onClick:ie},React.createElement("div",{className:styles$9.cardContent},React.createElement(JobCardHeader,{jobData:$,companiesList:ee,currentTab:F,isExpanded:!re}),oe&&React.createElement(JobCardBody,{analytics:C,jobData:$,cardConfig:ae,userCountry:te,onSave:J,selectedJobId:re})))};JobCard.propTypes={analytics:PropTypes.object,jobData:PropTypes.shape({id:PropTypes.number.isRequired,title:PropTypes.string.isRequired,name:PropTypes.string.isRequired,company:PropTypes.arrayOf(PropTypes.number),logo:PropTypes.string,preferredCities:PropTypes.string,expiry:PropTypes.string,jobProfileStatus:PropTypes.string,isRelevant:PropTypes.bool,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string,minExperience:PropTypes.number,maxExperience:PropTypes.number,minCtc:PropTypes.number,maxCtc:PropTypes.number,preferredNoticePeriod:PropTypes.number,openForDiscussionCtc:PropTypes.bool,isInternship:PropTypes.bool,stipend:PropTypes.string,eligibilityCriteria:PropTypes.shape({isEligible:PropTypes.bool,reasons:PropTypes.arrayOf(PropTypes.object)})}).isRequired,isActive:PropTypes.bool,currentTab:PropTypes.string,onClick:PropTypes.func,onSave:PropTypes.func.isRequired,companiesList:PropTypes.object,userCountry:PropTypes.oneOf(["IN","US"]),className:PropTypes.string,selectedJobId:PropTypes.number},JobCard.defaultProps={isActive:!1,currentTab:"all",onClick:null,companiesList:{},userCountry:"IN",className:""};const heading="_heading_wipd0_1",spinner="_spinner_wipd0_8",alert="_alert_wipd0_14",header="_header_wipd0_18",sentinel="_sentinel_wipd0_23",loadingMore="_loadingMore_wipd0_30",jobsList="_jobsList_wipd0_39",noJobsContainer="_noJobsContainer_wipd0_45",noJobsImage="_noJobsImage_wipd0_55",noJobsHeading="_noJobsHeading_wipd0_59",styles$8={heading,spinner,alert,header,sentinel,loadingMore,jobsList,noJobsContainer,noJobsImage,noJobsHeading},{Title,Text}=Typography$1,TAB_HEADINGS={[TAG_TO_TAB_MAPPING.relevant]:"Preferred Jobs",[TAG_TO_TAB_MAPPING.all]:"All Jobs",[TAG_TO_TAB_MAPPING.saved]:"Saved Jobs",[TAG_TO_TAB_MAPPING.applied]:"Applied Jobs"};function JobsList({analytics:C,className:$,currentTab:V,jobs:F=[],companiesMap:K={},isLoading:J=!1,error:ee=null,isFetchingMore:te=!1,hasMore:ne=!0}){var pe;const re=reactRedux.useDispatch(),ae=reactRedux.useSelector(ye=>{var be,ge;return((ge=(be=ye.scalantCareerHub)==null?void 0:be.dashboard)==null?void 0:ge.processCounts)||{}}),oe=ne!==void 0?ne:!0,[ie]=useUpdateApplicationStatusMutation(),{selectedJobId:se,updateJobId:ce,updateTab:de}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),{sentinelRef:le}=useInfiniteScroll({hasMore:oe,isLoading:J,isFetchingMore:te});React.useEffect(()=>{F&&F.length>0&&re(initializeSavedJobs(F))},[F,re]),React.useEffect(()=>{if(F&&F.length>0){const be=new URLSearchParams(window.location.search).get("job_ids");if(be){const ge=Number(be),_e=F.find(Se=>Se.id===ge||Se.jobProfileId===ge||String(Se.id)===be||String(Se.jobProfileId)===be);_e&&se!==_e.id&&ce(_e.id)}}},[F,se,ce]);const ve=ye=>{C==null||C.click("Jobs List - Job Card Click",PRODUCT_NAME),se===ye?(ce(null),re(updateFormFilters({job_ids:null}))):ce(ye)},fe=(ye,be)=>sr(this,null,function*(){if(be!=="save")return;const _e=yield ie({job_profile_id:ye,update_action:"save"}).unwrap();return re(setJobSavedStatus({jobId:ye,status:"Saved",lastUpdatedAt:(_e==null?void 0:_e.applicationLastUpdatedAt)||new Date().toISOString()})),_e}),he=()=>{C==null||C.click("Jobs List - Go to All Jobs",PRODUCT_NAME),de(TAG_TO_TAB_MAPPING.all)},me=TAB_HEADINGS[V]||TAB_HEADINGS[TAG_TO_TAB_MAPPING.all],ue=()=>ae[V]||0;return J?React.createElement("div",{className:$},React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ue()," Found")),React.createElement(Text,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),React.createElement(Spin$1,{size:"large",className:styles$8.spinner})):ee?React.createElement("div",{className:$},React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ue()," Found")),React.createElement(Text,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),React.createElement("div",{className:styles$8.header},React.createElement(Alert$1,{message:"Error loading jobs",description:((pe=ee==null?void 0:ee.data)==null?void 0:pe.message)||(ee==null?void 0:ee.message)||"Failed to fetch jobs. Please try again later.",type:"error",showIcon:!0,className:styles$8.alert}))):!F||F.length===0?React.createElement("div",{className:$},React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ue()," Found")),React.createElement(Text,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),React.createElement("div",{className:styles$8.noJobsContainer},React.createElement("img",{src:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/171/464/original/3cd470a8085619f7775acfa9e3f15053ee5eb687.png?1766383387",alt:"No Jobs Found",className:styles$8.noJobsImage}),React.createElement(Title,{level:3,className:styles$8.noJobsHeading},"No Suitable Roles Available at the Moment"),React.createElement(Text,{className:styles$8.noJobsText},"Your current preferences do not match any active opportunities, Please visit the All Jobs section to explore existing job opportunities."),React.createElement(Button$2,{type:"primary",onClick:he},"Go to All Jobs ",React.createElement(RightOutlined$1,null)))):React.createElement("div",{className:$},React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ue()," Found")),React.createElement(Text,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),React.createElement("div",{className:styles$8.jobsList},F.map(ye=>React.createElement(JobCard,{key:ye.id,jobData:ye,isActive:se===ye.id,currentTab:V,analytics:C,onClick:ve,onSave:fe,companiesList:K,userCountry:"IN",selectedJobId:se})),oe&&React.createElement("div",{ref:le,className:styles$8.sentinel},te&&React.createElement("div",{className:styles$8.loadingMore},React.createElement(Spin$1,{size:"small"}),React.createElement("span",null,"Loading more jobs...")))))}JobsList.propTypes={analytics:PropTypes.object,className:PropTypes.string,currentTab:PropTypes.string,jobs:PropTypes.arrayOf(PropTypes.object),companiesMap:PropTypes.object,isLoading:PropTypes.bool,error:PropTypes.object,isFetchingMore:PropTypes.bool,hasMore:PropTypes.bool},JobsList.defaultProps={className:"",currentTab:TAG_TO_TAB_MAPPING.relevant,jobs:[],companiesMap:{},isLoading:!1,error:null,isFetchingMore:!1,hasMore:!0};const relevantJobsPage="_relevantJobsPage_19xbf_1",styles$7={relevantJobsPage};function RelevantJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchRelevantJobsQuery($),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.relevant);return React.createElement("div",{className:styles$7.relevantJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.relevant,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const allJobsPage="_allJobsPage_10f3p_1",styles$6={allJobsPage};function AllJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchAllJobsQuery($),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.all);return React.createElement("div",{className:styles$6.allJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.all,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const savedJobsPage="_savedJobsPage_km19z_1",styles$5={savedJobsPage};function SavedJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchPipelineJobsQuery(Hn({type:TAG_TO_TAB_MAPPING.saved},$)),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.saved);return React.createElement("div",{className:styles$5.savedJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.saved,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const appliedJobsPage="_appliedJobsPage_lw2yt_1",styles$4={appliedJobsPage};function AppliedJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchPipelineJobsQuery(Hn({type:TAG_TO_TAB_MAPPING.applied},$)),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.applied);return React.createElement("div",{className:styles$4.appliedJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.applied,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const ExpertMbeRating=({fieldName:C,subjectOptions:$,ratingOptions:V})=>{const F=reactRedux.useDispatch(),J=reactRedux.useSelector(de=>de.scalantCareerHub.filterForm)[C],ee=React.useMemo(()=>J||{},[J]),te=React.useMemo(()=>typeof ee=="object"&&!Array.isArray(ee)?ee:{},[ee]);React.useEffect(()=>{(!ee||Object.keys(te).length===0)&&F(addRatingFilterInput())},[ee,te,F]);const ne=React.useMemo(()=>Object.values(te).map(de=>{var le;return((le=de==null?void 0:de.subject)==null?void 0:le.key)||(de==null?void 0:de.subject)}).filter(Boolean),[te]),re=React.useMemo(()=>$.filter(de=>!ne.includes(de.key)),[$,ne]),ae=React.useCallback(()=>{F(addRatingFilterInput())},[F]),oe=React.useCallback(de=>{F(deleteRatingFilterInput({inputFieldKey:de}))},[F]),ie=React.useCallback((de,le)=>{const ve=$.find(fe=>fe.key===le);F(updateRatingFilterInput({inputFilterSubKey:`${de}_subject`,value:ve||le}))},[$,F]),se=React.useCallback((de,le)=>{F(updateRatingFilterInput({inputFilterSubKey:`${de}_rating`,value:le}))},[F]),ce=Object.keys(te);return React.createElement(Space$1,{direction:"vertical",style:{width:"100%"},size:"middle"},ce.map(de=>{var me;const le=te[de],ve=((me=le==null?void 0:le.subject)==null?void 0:me.key)||(le==null?void 0:le.subject),fe=le==null?void 0:le.rating,he=[...$.filter(ue=>ue.key===ve),...re];return React.createElement(Row$1,{key:de,gutter:16,align:"middle"},React.createElement(Col$1,{span:10},React.createElement(Select$1,{placeholder:"Select skill",value:ve,onChange:ue=>ie(de,ue),showSearch:!0,filterOption:(ue,pe)=>{var ye;return((ye=pe==null?void 0:pe.label)!=null?ye:"").toLowerCase().includes(ue.toLowerCase())},options:he.map(ue=>({label:ue.value,value:ue.key}))})),React.createElement(Col$1,{span:10},React.createElement(Select$1,{placeholder:"Select rating",value:fe,onChange:ue=>se(de,ue),options:V.map(ue=>({label:ue.label,value:ue.value}))})),React.createElement(Col$1,{span:4},React.createElement(Space$1,null,React.createElement(Button$2,{type:"text",icon:React.createElement(PlusOutlined$1,null),onClick:ae,style:{color:"#1890ff"}}),ce.length>1&&React.createElement(Button$2,{type:"text",icon:React.createElement(DeleteOutlined$1,null),onClick:()=>oe(de),danger:!0}))))}))};ExpertMbeRating.propTypes={fieldName:PropTypes.string.isRequired,subjectOptions:PropTypes.arrayOf(PropTypes.shape({key:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),value:PropTypes.string})).isRequired,ratingOptions:PropTypes.arrayOf(PropTypes.shape({value:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),label:PropTypes.string})).isRequired};const drawerContent="_drawerContent_fqkgw_1",filterForm="_filterForm_fqkgw_5",drawerHeaderSubtitle$1="_drawerHeaderSubtitle_fqkgw_9",filterIcon$1="_filterIcon_fqkgw_14",buttonContainer="_buttonContainer_fqkgw_18",drawer="_drawer_fqkgw_1",styles$3={drawerContent,filterForm,drawerHeaderSubtitle:drawerHeaderSubtitle$1,filterIcon:filterIcon$1,buttonContainer,drawer},{Option:Option$1}=Select$1;function FilterForm(){var Se,Ee,Ce,xe;const C=reactRedux.useDispatch(),$=reactRedux.useSelector($e=>$e.scalantCareerHub.filterForm),V=reactRedux.useSelector($e=>$e.scalantCareerHub.filterOptions||{}),[F]=Form$1.useForm();React.useEffect(()=>{F.setFieldsValue($)},[F,$]);const{handleCompanySearch:K,handleTitleSearch:J,handleExperienceSkillSearch:ee,handleExperienceSkillChange:te,loadingCompanies:ne,loadingTitles:re,loadingExperienceSkills:ae}=useAsyncFilterOptions(),{jobTypes:oe,functions:ie,seniorityLevels:se,companyCategories:ce,locations:de,mbeSkills:le,ctcRanges:ve,stipendRanges:fe,durationRanges:he,noticePeriods:me,datePostedOptions:ue,skillRatings:pe}=useFilterMetaOptions(),ye=($e,Ie)=>{C(updateFormField({field:$e,value:Ie}))},be=$.role_type,ge=be==="full_time",_e=be==="internship";return React.createElement(Form$1,{layout:"vertical",className:styles$3.filterForm,form:F,initialValues:$},React.createElement(Form$1.Item,{label:"Job Types",name:"role_type"},React.createElement(Select$1,{placeholder:"Select job profile",value:$.role_type,onChange:$e=>ye("role_type",$e)},oe.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Company Name",name:"company_ids"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search company",filterOption:!1,onSearch:K,loading:ne,value:$.company_ids,onChange:$e=>ye("company_ids",$e),notFoundContent:ne?"Loading...":"Type at least 3 characters to search"},(Se=V.companyOptions)==null?void 0:Se.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Title",name:"job_title"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search job title",filterOption:!1,onSearch:J,loading:re,value:$.job_title,onChange:$e=>ye("job_title",$e),notFoundContent:re?"Loading...":"Type at least 3 characters to search"},(Ee=V.titleOptions)==null?void 0:Ee.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.value},$e.value)))),React.createElement(Form$1.Item,{label:"Function",name:"job_category"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select function",value:$.job_category,onChange:$e=>ye("job_category",$e)},ie.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Role seniority level",name:"seniority_level"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select level",value:$.seniority_level,onChange:$e=>ye("seniority_level",$e)},se.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Company category",name:"company_categories"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select category",value:$.company_categories,onChange:$e=>ye("company_categories",$e)},ce.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))))),React.createElement(Form$1.Item,{label:"Location",name:"location"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select location",value:$.location,onChange:$e=>ye("location",$e)},de.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.value},$e.value)))),!_e&&React.createElement(Form$1.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_ctc,onChange:$e=>ye("min_ctc",$e)},ve.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))),!ge&&React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Stipend (INR per month)",name:"min_stipend"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_stipend,onChange:$e=>ye("min_stipend",$e)},fe.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Internship duration (in months)",name:"min_duration"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_duration,onChange:$e=>ye("min_duration",$e)},he.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))))),React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Notice period requirement",name:"notice_period"},React.createElement(Select$1,{placeholder:"Choose period",value:$.notice_period,onChange:$e=>ye("notice_period",$e)},me.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Job posted date",name:"date_posted_on"},React.createElement(Select$1,{placeholder:"Pick date",value:$.date_posted_on,onChange:$e=>ye("date_posted_on",$e)},ue.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))))),React.createElement(Form$1.Item,{label:"Expert Mock Interview Skills Required"},React.createElement(ExpertMbeRating,{fieldName:"mbe_skill_ids",subjectOptions:le,ratingOptions:pe})),React.createElement(Form$1.Item,{label:"Experienced based skills",name:"experience_skill_ids"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search skills",filterOption:!1,onSearch:ee,loading:ae,value:((Ce=$.experience_skill_ids)==null?void 0:Ce.map($e=>typeof $e=="object"?$e.experience_skill_id:$e))||[],onChange:$e=>{const Ie=te($e,V.experienceSkillOptions);ye("experience_skill_ids",Ie)},notFoundContent:ae?"Loading...":"Type at least 2 characters to search"},(xe=V.experienceSkillOptions)==null?void 0:xe.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Experience (Years)? *"},React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"min_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Minimum",type:"number",value:$.min_experience,onChange:$e=>ye("min_experience",$e.target.value)}))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"max_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Maximum",type:"number",value:$.max_experience,onChange:$e=>ye("max_experience",$e.target.value)}))))))}function FilterDrawerTitle({onClose:C}){return React.createElement(Flex$1,{vertical:!0},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{align:"center",gap:5},React.createElement(FilterOutlined$1,{className:styles$3.filterIcon}),"Filters"),React.createElement(CloseOutlined$1,{onClick:C})),React.createElement("div",{className:styles$3.drawerHeaderSubtitle},"Choose the kind of jobs you'd like to see displayed on this page"))}function FilterDrawer({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(te=>te.scalantCareerHub.dashboard.filterModalOpen),F=reactRedux.useSelector(te=>te.scalantCareerHub.filterForm),K=()=>{C==null||C.click("Filter Drawer - Close",PRODUCT_NAME),$(closeFilterModal())},J=()=>{var re,ae,oe,ie,se,ce,de;C==null||C.click("Filter Drawer - Apply",PRODUCT_NAME);let te;F.mbe_skill_ids&&typeof F.mbe_skill_ids=="object"&&!Array.isArray(F.mbe_skill_ids)&&Object.keys(F.mbe_skill_ids).length>0&&(te=Object.values(F.mbe_skill_ids).filter(le=>!le||le.rating===void 0||le.rating===null?!1:le.subject?typeof le.subject=="object"?le.subject.key!==void 0&&le.subject.key!==null:le.subject!==void 0&&le.subject!==null:!1).map(le=>{var fe;let ve;return typeof le.subject=="object"&&((fe=le.subject)==null?void 0:fe.key)!==void 0?ve=le.subject.key:ve=le.subject,{mbe_skill_id:ve,rating:le.rating}}),te.length===0&&(te=void 0));const ne={role_type:F.role_type||void 0,company_ids:(re=F.company_ids)!=null&&re.length?F.company_ids:void 0,job_title:(ae=F.job_title)!=null&&ae.length?F.job_title:void 0,job_category:(oe=F.job_category)!=null&&oe.length?F.job_category:void 0,seniority_level:(ie=F.seniority_level)!=null&&ie.length?F.seniority_level:void 0,location:(se=F.location)!=null&&se.length?F.location:void 0,min_ctc:F.min_ctc||void 0,min_stipend:F.min_stipend||void 0,min_duration:F.min_duration||void 0,notice_period:F.notice_period||void 0,date_posted_on:F.date_posted_on||void 0,mbe_skill_ids:te,experience_skill_ids:(ce=F.experience_skill_ids)!=null&&ce.length?F.experience_skill_ids:void 0,min_experience:F.min_experience||void 0,max_experience:F.max_experience||void 0,company_categories:(de=F.company_categories)!=null&&de.length?F.company_categories:void 0};Object.keys(ne).forEach(le=>{ne[le]===void 0&&delete ne[le]}),$(updateFiltersFromForm(ne)),updateURLWithFilters(ne),K()},ee=()=>{C==null||C.click("Filter Drawer - Reset",PRODUCT_NAME),$(resetForm()),$(clearAllOptions()),$(updateFiltersFromForm({})),updateURLWithFilters({})};return React.createElement(Drawer$1,{title:React.createElement(FilterDrawerTitle,{onClose:K}),placement:"right",onClose:K,open:V,closable:!1,width:550,className:styles$3.drawer},React.createElement("div",{className:styles$3.drawerContent},React.createElement(FilterForm,null),React.createElement("div",{className:styles$3.buttonContainer},React.createElement(Button$2,{className:styles$3.resetButton,onClick:ee},"Reset Filters"),React.createElement(Button$2,{type:"primary",className:styles$3.applyButton,onClick:J},"Apply"))))}const alertService=careerHubApi.injectEndpoints({endpoints:C=>({fetchAlerts:C.query({query:()=>({url:"/job-tracker/v1/alerts/list",method:"GET"}),transformResponse:$=>$.data||[],providesTags:["JobAlerts"]}),createAlert:C.mutation({query:$=>({url:"/job-tracker/v1/alerts/",method:"POST",body:$}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]}),updateAlertStatus:C.mutation({query:$=>({url:"/job-tracker/v1/alerts/update-status",method:"PATCH",body:$}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]}),deleteAlert:C.mutation({query:$=>({url:`/job-tracker/v1/alerts/${$}`,method:"DELETE"}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]}),updateAlert:C.mutation({query:({id:$,payload:V})=>({url:`/job-tracker/v1/alerts/${$}`,method:"PUT",body:V}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]})})}),{useFetchAlertsQuery,useCreateAlertMutation,useUpdateAlertStatusMutation,useDeleteAlertMutation,useUpdateAlertMutation}=alertService,modalTitle="_modalTitle_gu1gu_1",modalTitleHeader="_modalTitleHeader_gu1gu_6",modalTitleContent="_modalTitleContent_gu1gu_12",modalCloseIcon="_modalCloseIcon_gu1gu_18",modalDescription="_modalDescription_gu1gu_22",modalFooter="_modalFooter_gu1gu_28",createAlertContent="_createAlertContent_gu1gu_34",formField="_formField_gu1gu_52",formLabel="_formLabel_gu1gu_57",requiredAsterisk="_requiredAsterisk_gu1gu_63",formInput="_formInput_gu1gu_67",experienceInputs="_experienceInputs_gu1gu_71",modal="_modal_gu1gu_1",radioGroup="_radioGroup_gu1gu_88",drawerHeaderSubtitle="_drawerHeaderSubtitle_gu1gu_94",filterIcon="_filterIcon_gu1gu_99",styles$2={modalTitle,modalTitleHeader,modalTitleContent,modalCloseIcon,modalDescription,modalFooter,createAlertContent,formField,formLabel,requiredAsterisk,formInput,experienceInputs,modal,radioGroup,drawerHeaderSubtitle,filterIcon},{Option}=Select$1;function JobAlertForm({form:C,initialValues:$,onSubmit:V,isSubmitting:F}){const{functions:K,locations:J,ctcRanges:ee}=useFilterMetaOptions(),[te,ne]=React.useState("realtime");React.useEffect(()=>{var oe,ie;if($&&C){const ce={[ALERT_FREQUENCY.REALTIME]:"realtime",[ALERT_FREQUENCY.DAILY]:"daily",[ALERT_FREQUENCY.ALTERNATE_DAY]:"alternate",[ALERT_FREQUENCY.WEEKLY]:"weekly"}[$.frequency]||"realtime",de={name:$.name,job_functions:$.job_functions||[],min_ctc:$.min_ctc,locations:$.locations||[],min_experience:((oe=$.min_experience)==null?void 0:oe.toString())||"",max_experience:((ie=$.max_experience)==null?void 0:ie.toString())||"",frequency:ce,notification_type:$.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL};C.setFieldsValue(de),ne(ce)}},[$,C]);const re=()=>sr(this,null,function*(){try{const oe=yield C.validateFields(),ie={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},se=oe.frequency==="realtime",ce={alert:{name:oe.name,job_functions:oe.job_functions||[],min_ctc:oe.min_ctc,locations:oe.locations||[],min_experience:oe.min_experience?parseInt(oe.min_experience,10):0,max_experience:oe.max_experience?parseInt(oe.max_experience,10):null,frequency:ie[oe.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:se&&oe.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL}};V&&(yield V(ce))}catch(oe){console.error("Error submitting form:",oe)}});React.useEffect(()=>{C&&V&&(C.submit=re)},[C,V]);const ae=Form$1.useWatch("frequency",C)||"realtime";return React.useEffect(()=>{ne(ae)},[ae]),React.createElement(Form$1,{form:C,layout:"vertical",className:styles$2.createAlertContent,initialValues:{frequency:"realtime"}},React.createElement(Form$1.Item,{label:"Alert Name",name:"name",rules:[{required:!0,message:"Please enter alert name"}]},React.createElement(Input$1,{placeholder:"Give your job alert a name"})),React.createElement(Form$1.Item,{label:"Job Function",name:"job_functions"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select job function",className:styles$2.formInput},K.map(oe=>React.createElement(Option,{key:oe.key,value:oe.key},oe.value)))),React.createElement(Form$1.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},React.createElement(Select$1,{placeholder:"Select range",className:styles$2.formInput},ee.map(oe=>React.createElement(Option,{key:oe.value,value:oe.value},oe.label)))),React.createElement(Form$1.Item,{label:"Locations?",name:"locations"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select locations",className:styles$2.formInput},J.map(oe=>React.createElement(Option,{key:oe.key,value:oe.value},oe.value)))),React.createElement(Form$1.Item,{label:"Experience (Years)?"},React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"min_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Minimum",type:"number"}))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"max_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Maximum",type:"number"}))))),React.createElement(Form$1.Item,{label:"Alert Frequency",name:"frequency"},React.createElement(Radio$1.Group,{className:styles$2.radioGroup,onChange:oe=>{ne(oe.target.value),oe.target.value!=="realtime"&&C.setFieldsValue({notification_type:ALERT_NOTIFICATION_TYPE.EMAIL})}},React.createElement(Radio$1,{value:"realtime"},"Realtime"),React.createElement(Radio$1,{value:"daily"},"Daily"),React.createElement(Radio$1,{value:"alternate"},"Every alternate day"),React.createElement(Radio$1,{value:"weekly"},"Weekly"))),te==="realtime"&&React.createElement(Form$1.Item,{label:"Alert mode",name:"notification_type"},React.createElement(Radio$1.Group,{className:styles$2.radioGroup},React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.EMAIL},"Email"),React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.WHATSAPP},"Whatsapp"),React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.BOTH},"Both"))))}const alertCard="_alertCard_1k2nv_1",alertHeader="_alertHeader_1k2nv_14",alertIcon="_alertIcon_1k2nv_20",inactiveIcon="_inactiveIcon_1k2nv_25",alertActions="_alertActions_1k2nv_29",editFormCard="_editFormCard_1k2nv_35",styles$1={alertCard,alertHeader,alertIcon,inactiveIcon,alertActions,editFormCard};function ExistingAlerts({analytics:C}){const $=reactRedux.useDispatch(),{data:V=[],isLoading:F,error:K}=useFetchAlertsQuery(),[J]=useUpdateAlertStatusMutation(),[ee]=useDeleteAlertMutation(),[te,{isLoading:ne}]=useUpdateAlertMutation(),[re,ae]=React.useState(null),[oe]=Form$1.useForm();React.useEffect(()=>{V&&$(setAlerts(V))},[V,$]);const ie=me=>ALERT_FREQUENCY_LABELS[me]||ALERT_FREQUENCY_LABELS[ALERT_FREQUENCY.REALTIME],se=me=>ALERT_NOTIFICATION_LABELS[me]||ALERT_NOTIFICATION_LABELS[ALERT_NOTIFICATION_TYPE.EMAIL],ce=me=>me===ALERT_STATUS.ACTIVE,de=(me,ue)=>sr(this,null,function*(){try{const pe=ue===ALERT_STATUS.ACTIVE?ALERT_STATUS.INACTIVE:ALERT_STATUS.ACTIVE;yield J({id:me,status:pe}).unwrap(),message$1.success(`Alert ${pe===ALERT_STATUS.ACTIVE?"activated":"deactivated"} successfully`)}catch(pe){message$1.error("Failed to update alert status"),console.error("Error updating alert status:",pe)}}),le=me=>{C==null||C.click("Existing Alerts - Edit",PRODUCT_NAME),ae(me)},ve=()=>{C==null||C.click("Existing Alerts - Cancel Edit",PRODUCT_NAME),ae(null),oe.resetFields()},fe=me=>sr(this,null,function*(){try{C==null||C.click("Existing Alerts - Update Alert",PRODUCT_NAME),yield te({id:re,payload:me}).unwrap(),message$1.success("Alert updated successfully"),ae(null),oe.resetFields()}catch(ue){throw message$1.error("Failed to update alert"),console.error("Error updating alert:",ue),ue}}),he=me=>sr(this,null,function*(){try{C==null||C.click("Existing Alerts - Delete",PRODUCT_NAME),yield ee(me).unwrap(),message$1.success("Alert deleted successfully")}catch(ue){message$1.error("Failed to delete alert"),console.error("Error deleting alert:",ue)}});return F?React.createElement("div",{className:styles$1.existingAlertContent},React.createElement("div",{className:styles$1.loadingText},"Loading alerts...")):K?React.createElement("div",{className:styles$1.existingAlertContent},React.createElement("div",{className:styles$1.errorText},"Error loading alerts")):!V||V.length===0?React.createElement("div",{className:styles$1.existingAlertContent},React.createElement("div",{className:styles$1.emptyText},"No alerts found")):React.createElement("div",{className:styles$1.existingAlertContent},V.map(me=>{const ue=me.attributes||me,pe=me.id||ue.id,ye=ce(ue.status),be=ie(ue.frequency),ge=se(ue.notification_type),_e=re===pe;return React.createElement("div",{key:pe,className:styles$1.alertCard},React.createElement(Flex$1,{align:"center",className:styles$1.alertHeader},React.createElement(AlertFilled$1,{className:classNames(styles$1.alertIcon,{[styles$1.inactiveIcon]:!ye})}),React.createElement("div",null,ue.name)),React.createElement("div",{className:styles$1.alertSettings},React.createElement(Flex$1,{align:"center",gap:16,wrap:!0},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Switch$1,{checked:ye,onChange:()=>de(pe,ue.status),size:"small",disabled:_e}),React.createElement("span",null,"Active")),React.createElement(Flex$1,{align:"center",gap:8},React.createElement(ClockCircleOutlined$1,null),React.createElement("span",null,be)),React.createElement(Flex$1,{align:"center",gap:8},React.createElement(AlertFilled$1,null),React.createElement("span",null,ge)))),!_e&&React.createElement("div",{className:styles$1.alertActions},React.createElement(Button$2,{type:"text",danger:!0,icon:React.createElement(DeleteOutlined$1,null),onClick:()=>he(pe),className:styles$1.deleteButton},"Delete"),React.createElement(Button$2,{type:"primary",icon:React.createElement(EditOutlined$1,null),onClick:()=>le(pe),className:styles$1.editButton},"Edit")),_e&&React.createElement("div",{className:styles$1.editFormCard},React.createElement(JobAlertForm,{form:oe,initialValues:ue,onSubmit:fe,isSubmitting:ne}),React.createElement(Flex$1,{gap:8,justify:"flex-end",style:{marginTop:"1.6rem"}},React.createElement(Button$2,{onClick:ve,disabled:ne},"Cancel"),React.createElement(Button$2,{type:"primary",onClick:()=>sr(this,null,function*(){try{const Se=yield oe.validateFields(),Ee={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},Ce=Se.frequency==="realtime",xe={alert:{name:Se.name,job_functions:Se.job_functions||[],min_ctc:Se.min_ctc,locations:Se.locations||[],min_experience:Se.min_experience?parseInt(Se.min_experience,10):0,max_experience:Se.max_experience?parseInt(Se.max_experience,10):null,frequency:Ee[Se.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:Ce&&Se.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL}};yield fe(xe)}catch(Se){}}),loading:ne},"Update Alert"))))}))}function JobAlertModal({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(de=>de.scalantCareerHub.dashboard.jobAlertModalOpen),[F,K]=React.useState("create"),[J]=Form$1.useForm(),[ee,{isLoading:te}]=useCreateAlertMutation();React.useEffect(()=>{V||(J.resetFields(),K("create"))},[V,J]);const ne=()=>{C==null||C.click("Job Alert Modal - Close",PRODUCT_NAME),$(closeJobAlertModal())},re=()=>{C==null||C.click("Job Alert Modal - Cancel",PRODUCT_NAME),ne()},ae=()=>sr(this,null,function*(){try{const de=yield J.validateFields(),le={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},ve=de.frequency==="realtime",fe={alert:{name:de.name,job_functions:de.job_functions||[],min_ctc:de.min_ctc,locations:de.locations||[],min_experience:de.min_experience?parseInt(de.min_experience,10):0,max_experience:de.max_experience?parseInt(de.max_experience,10):null,frequency:le[de.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:ve&&de.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL},resume_alert:!1},he=yield ee(fe).unwrap();he.success&&he.alert&&(C==null||C.click("Job Alert Modal - Create Alert",PRODUCT_NAME),J.resetFields(),K("existing"),message$1.success("Alert created successfully"))}catch(de){message$1.error("Failed to create alert"),console.error("Error creating alert:",de)}}),oe=de=>sr(this,null,function*(){const le=br(Hn({},de),{resume_alert:!1});return yield ee(le).unwrap()}),ie=React.createElement(Flex$1,{vertical:!0},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(BellOutlined$1,{className:styles$2.filterIcon}),"Curate your Job Alert"),React.createElement(CloseOutlined$1,{onClick:ne})),React.createElement("div",{className:styles$2.drawerHeaderSubtitle},"By creating a job alert, you will be notified when a job posting matches your preferred criteria")),se=React.createElement("div",{className:styles$2.modalFooter},React.createElement(Button$2,{onClick:re},"Cancel"),React.createElement(Button$2,{type:"primary",onClick:ae,loading:te},"Create Alert")),ce=React.createElement(JobAlertForm,{form:J,onSubmit:oe,isSubmitting:te});return React.createElement(Modal$1,{title:ie,open:V,onCancel:ne,footer:se,width:600,closable:!1,className:styles$2.modal},React.createElement(Tabs$1,{activeKey:F,onChange:de=>{C==null||C.click(`Job Alert Modal - Tab ${de}`,PRODUCT_NAME),K(de)},items:[{key:"create",label:"Create alert",children:ce},{key:"existing",label:"Existing alerts",children:React.createElement(ExistingAlerts,{analytics:C})}]}))}const jobsPageContent="_jobsPageContent_pk7y3_1",styles={jobsPageContent};function JobsPage({analytics:C,country:$,openMockInterviewModal:V,openResume:F,processCounts:K=DEFAULT_PROCESS_COUNTS,userProfileData:J,onUploadFile:ee,onViewResume:te,onEditPreferences:ne,onEditResume:re,onAddResume:ae,onCloseResumeBuilder:oe}){const ie=reactRedux.useDispatch(),se=reactRedux.useSelector(me=>{var ue,pe;return((pe=(ue=me.scalantCareerHub)==null?void 0:ue.filter)==null?void 0:pe.tab)||TAG_TO_TAB_MAPPING.relevant}),ce=React.useRef(!1),{selectedJobId:de}=useJobQueryParams({syncToURL:!0,syncFromURL:!0});React.useLayoutEffect(()=>{if(!ce.current){const me=getFiltersFromURL(),ue=Hn({},me),ye=new URLSearchParams(window.location.search).get("job_ids");ye&&(ue.job_ids=[ye]),Object.keys(ue).length>0&&ie(updateFiltersFromForm(ue)),ce.current=!0}},[ie]),React.useEffect(()=>{ie(setProcessCounts(K))},[K,ie]),React.useEffect(()=>{J&&ie(setUserProfileData(J))},[J,ie]);const le=React.createElement(JobsHeader,{analytics:C}),ve=de?React.createElement(JobDetails,{analytics:C,currentTab:se,onUploadFile:ee,country:$,openMockInterviewModal:V,openResume:F,jobId:de,onEditResume:re,onAddResume:ae,onCloseResumeBuilder:oe}):React.createElement(ProfileDetails,{analytics:C,onViewResume:te,onEditPreferences:ne}),fe=de?SIDER_WIDTH.JOB_DETAILS:SIDER_WIDTH.PROFILE_DETAILS;React.useEffect(()=>{C&&C.view("Jobs Page - Tab Rendered",PRODUCT_NAME,{currentTab:se})},[C,se]);const he=()=>{switch(se){case TAG_TO_TAB_MAPPING.relevant:return React.createElement(RelevantJobsPage,{analytics:C});case TAG_TO_TAB_MAPPING.saved:return React.createElement(SavedJobsPage,{analytics:C});case TAG_TO_TAB_MAPPING.applied:return React.createElement(AppliedJobsPage,{analytics:C});case TAG_TO_TAB_MAPPING.all:default:return React.createElement(AllJobsPage,{analytics:C})}};return React.createElement(React.Fragment,null,React.createElement(JobsLayout,{analytics:C,header:le,sider:ve,siderWidth:fe,className:styles.jobsPage},he()),React.createElement(FilterDrawer,{analytics:C}),React.createElement(JobAlertModal,{analytics:C}))}JobsPage.propTypes={processCounts:PropTypes.shape({all:PropTypes.number,relevant:PropTypes.number,draft:PropTypes.number,applications:PropTypes.number,saved:PropTypes.number,archived:PropTypes.number}),userProfileData:PropTypes.object},exports.APPLICATION_STATUS=APPLICATION_STATUS,exports.JOB_CARD_CONFIG=JOB_CARD_CONFIG,exports.JOB_PROFILE_STATUS=JOB_PROFILE_STATUS,exports.JobsLayout=JobsLayout,exports.JobsPage=JobsPage,exports.TABS=TABS,exports.careerHubApi=careerHubApi,exports.checkAllOtherRequirementsMet=checkAllOtherRequirementsMet,exports.countPendingSteps=countPendingSteps,exports.default=HelloWorld,exports.determineJobTag=determineJobTag,exports.formatCtc=formatCtc,exports.formatDate=formatDate,exports.formatExperience=formatExperience$1,exports.formatLocation=formatLocation,exports.formatNoticePeriod=formatNoticePeriod,exports.setBaseUrl=setBaseUrl,exports.setChecklistOpen=setChecklistOpen,exports.setFitmentScore=setFitmentScore,exports.setResumeReviewData=setResumeReviewData,exports.store=rootReducer,exports.useApplicationForm=useApplicationForm,exports.useCreateApplication=useCreateApplication,exports.useJobCardState=useJobCardState,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
469
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ge=!0,_e=!1,Se;return{s:function(){pe=pe.call(me)},n:function(){var Ce=pe.next();return ge=Ce.done,Ce},e:function(Ce){_e=!0,Se=Ce},f:function(){try{!ge&&pe.return!=null&&pe.return()}finally{if(_e)throw Se}}}}function ae(me,ue){if(me){if(typeof me=="string")return oe(me,ue);var pe=Object.prototype.toString.call(me).slice(8,-1);if(pe==="Object"&&me.constructor&&(pe=me.constructor.name),pe==="Map"||pe==="Set")return Array.from(me);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return oe(me,ue)}}function oe(me,ue){(ue==null||ue>me.length)&&(ue=me.length);for(var pe=0,ye=new Array(ue);pe<ue;pe++)ye[pe]=me[pe];return ye}function ie(me,ue){if(!(me instanceof ue))throw new TypeError("Cannot call a class as a function")}function se(me,ue){for(var pe=0;pe<ue.length;pe++){var ye=ue[pe];ye.enumerable=ye.enumerable||!1,ye.configurable=!0,"value"in ye&&(ye.writable=!0),Object.defineProperty(me,ye.key,ye)}}function ce(me,ue,pe){return ue&&se(me.prototype,ue),pe&&se(me,pe),me}function de(me,ue,pe){return{method:"GET",headers:me,signal:pe==null?void 0:pe.signal,mode:"cors",credentials:ue?"include":"same-origin",redirect:"follow"}}function le(me){var ue=new Headers;for(var pe in me){var ye=me[pe];typeof ye!="undefined"&&ue.append(pe,ye)}return ue}var ve=function(){function me(ue){ie(this,me),this.source=ue,this.isHttp=/^https?:/i.test(ue.url),this.httpHeaders=this.isHttp&&ue.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return ce(me,[{key:"_progressiveDataLength",get:function(){var pe,ye;return(pe=(ye=this._fullRequestReader)===null||ye===void 0?void 0:ye._loaded)!==null&&pe!==void 0?pe:0}},{key:"getFullReader",value:function(){return(0,K.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new fe(this),this._fullRequestReader}},{key:"getRangeReader",value:function(pe,ye){if(ye<=this._progressiveDataLength)return null;var be=new he(this,pe,ye);return this._rangeRequestReaders.push(be),be}},{key:"cancelAllRequests",value:function(pe){this._fullRequestReader&&this._fullRequestReader.cancel(pe);var ye=re(this._rangeRequestReaders.slice(0)),be;try{for(ye.s();!(be=ye.n()).done;){var ge=be.value;ge.cancel(pe)}}catch(_e){ye.e(_e)}finally{ye.f()}}}]),me}();$.PDFFetchStream=ve;var fe=function(){function me(ue){var pe=this;ie(this,me),this._stream=ue,this._reader=null,this._loaded=0,this._filename=null;var ye=ue.source;this._withCredentials=ye.withCredentials||!1,this._contentLength=ye.length,this._headersCapability=(0,K.createPromiseCapability)(),this._disableRange=ye.disableRange||!1,this._rangeChunkSize=ye.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._isStreamingSupported=!ye.disableStream,this._isRangeSupported=!ye.disableRange,this._headers=le(this._stream.httpHeaders);var be=ye.url;fetch(be,de(this._headers,this._withCredentials,this._abortController)).then(function(ge){if(!(0,J.validateResponseStatus)(ge.status))throw(0,J.createResponseStatusError)(ge.status,be);pe._reader=ge.body.getReader(),pe._headersCapability.resolve();var _e=function($e){return ge.headers.get($e)},Se=(0,J.validateRangeRequestCapabilities)({getResponseHeader:_e,isHttp:pe._stream.isHttp,rangeChunkSize:pe._rangeChunkSize,disableRange:pe._disableRange}),Ee=Se.allowRangeRequests,Ce=Se.suggestedLength;pe._isRangeSupported=Ee,pe._contentLength=Ce||pe._contentLength,pe._filename=(0,J.extractFilenameFromHeader)(_e),!pe._isStreamingSupported&&pe._isRangeSupported&&pe.cancel(new K.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return ce(me,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var ue=ne(F.default.mark(function ye(){var be,ge,_e,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,this._headersCapability.promise;case 2:return Ce.next=4,this._reader.read();case 4:if(be=Ce.sent,ge=be.value,_e=be.done,!_e){Ce.next=9;break}return Ce.abrupt("return",{value:ge,done:_e});case 9:return this._loaded+=ge.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),Se=new Uint8Array(ge).buffer,Ce.abrupt("return",{value:Se,done:!1});case 13:case"end":return Ce.stop()}},ye,this)}));function pe(){return ue.apply(this,arguments)}return pe}()},{key:"cancel",value:function(pe){this._reader&&this._reader.cancel(pe),this._abortController&&this._abortController.abort()}}]),me}(),he=function(){function me(ue,pe,ye){var be=this;ie(this,me),this._stream=ue,this._reader=null,this._loaded=0;var ge=ue.source;this._withCredentials=ge.withCredentials||!1,this._readCapability=(0,K.createPromiseCapability)(),this._isStreamingSupported=!ge.disableStream,typeof AbortController!="undefined"&&(this._abortController=new AbortController),this._headers=le(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(pe,"-").concat(ye-1));var _e=ge.url;fetch(_e,de(this._headers,this._withCredentials,this._abortController)).then(function(Se){if(!(0,J.validateResponseStatus)(Se.status))throw(0,J.createResponseStatusError)(Se.status,_e);be._readCapability.resolve(),be._reader=Se.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}return ce(me,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var ue=ne(F.default.mark(function ye(){var be,ge,_e,Se;return F.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,this._readCapability.promise;case 2:return Ce.next=4,this._reader.read();case 4:if(be=Ce.sent,ge=be.value,_e=be.done,!_e){Ce.next=9;break}return Ce.abrupt("return",{value:ge,done:_e});case 9:return this._loaded+=ge.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),Se=new Uint8Array(ge).buffer,Ce.abrupt("return",{value:Se,done:!1});case 13:case"end":return Ce.stop()}},ye,this)}));function pe(){return ue.apply(this,arguments)}return pe}()},{key:"cancel",value:function(pe){this._reader&&this._reader.cancel(pe),this._abortController&&this._abortController.abort()}}]),me}()}],__webpack_module_cache__={};function __w_pdfjs_require__(C){var $=__webpack_module_cache__[C];if($!==void 0)return $.exports;var V=__webpack_module_cache__[C]={id:C,loaded:!1,exports:{}};return __webpack_modules__[C].call(V.exports,V,V.exports,__w_pdfjs_require__),V.loaded=!0,V.exports}__w_pdfjs_require__.nmd=C=>(C.paths=[],C.children||(C.children=[]),C);var __webpack_exports__={};return(()=>{var C=__webpack_exports__;Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"AnnotationLayer",{enumerable:!0,get:function(){return K.AnnotationLayer}}),Object.defineProperty(C,"AnnotationMode",{enumerable:!0,get:function(){return V.AnnotationMode}}),Object.defineProperty(C,"CMapCompressionType",{enumerable:!0,get:function(){return V.CMapCompressionType}}),Object.defineProperty(C,"GlobalWorkerOptions",{enumerable:!0,get:function(){return J.GlobalWorkerOptions}}),Object.defineProperty(C,"InvalidPDFException",{enumerable:!0,get:function(){return V.InvalidPDFException}}),Object.defineProperty(C,"LinkTarget",{enumerable:!0,get:function(){return $.LinkTarget}}),Object.defineProperty(C,"LoopbackPort",{enumerable:!0,get:function(){return F.LoopbackPort}}),Object.defineProperty(C,"MissingPDFException",{enumerable:!0,get:function(){return V.MissingPDFException}}),Object.defineProperty(C,"OPS",{enumerable:!0,get:function(){return V.OPS}}),Object.defineProperty(C,"PDFDataRangeTransport",{enumerable:!0,get:function(){return F.PDFDataRangeTransport}}),Object.defineProperty(C,"PDFDateString",{enumerable:!0,get:function(){return $.PDFDateString}}),Object.defineProperty(C,"PDFWorker",{enumerable:!0,get:function(){return F.PDFWorker}}),Object.defineProperty(C,"PasswordResponses",{enumerable:!0,get:function(){return V.PasswordResponses}}),Object.defineProperty(C,"PermissionFlag",{enumerable:!0,get:function(){return V.PermissionFlag}}),Object.defineProperty(C,"PixelsPerInch",{enumerable:!0,get:function(){return $.PixelsPerInch}}),Object.defineProperty(C,"RenderingCancelledException",{enumerable:!0,get:function(){return $.RenderingCancelledException}}),Object.defineProperty(C,"SVGGraphics",{enumerable:!0,get:function(){return ne.SVGGraphics}}),Object.defineProperty(C,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return V.UNSUPPORTED_FEATURES}}),Object.defineProperty(C,"UnexpectedResponseException",{enumerable:!0,get:function(){return V.UnexpectedResponseException}}),Object.defineProperty(C,"Util",{enumerable:!0,get:function(){return V.Util}}),Object.defineProperty(C,"VerbosityLevel",{enumerable:!0,get:function(){return V.VerbosityLevel}}),Object.defineProperty(C,"XfaLayer",{enumerable:!0,get:function(){return re.XfaLayer}}),Object.defineProperty(C,"addLinkAttributes",{enumerable:!0,get:function(){return $.addLinkAttributes}}),Object.defineProperty(C,"build",{enumerable:!0,get:function(){return F.build}}),Object.defineProperty(C,"createObjectURL",{enumerable:!0,get:function(){return V.createObjectURL}}),Object.defineProperty(C,"createPromiseCapability",{enumerable:!0,get:function(){return V.createPromiseCapability}}),Object.defineProperty(C,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return V.createValidAbsoluteUrl}}),Object.defineProperty(C,"getDocument",{enumerable:!0,get:function(){return F.getDocument}}),Object.defineProperty(C,"getFilenameFromUrl",{enumerable:!0,get:function(){return $.getFilenameFromUrl}}),Object.defineProperty(C,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return $.getPdfFilenameFromUrl}}),Object.defineProperty(C,"getXfaPageViewport",{enumerable:!0,get:function(){return $.getXfaPageViewport}}),Object.defineProperty(C,"isPdfFile",{enumerable:!0,get:function(){return $.isPdfFile}}),Object.defineProperty(C,"loadScript",{enumerable:!0,get:function(){return $.loadScript}}),Object.defineProperty(C,"removeNullCharacters",{enumerable:!0,get:function(){return V.removeNullCharacters}}),Object.defineProperty(C,"renderTextLayer",{enumerable:!0,get:function(){return te.renderTextLayer}}),Object.defineProperty(C,"shadow",{enumerable:!0,get:function(){return V.shadow}}),Object.defineProperty(C,"version",{enumerable:!0,get:function(){return F.version}});var $=__w_pdfjs_require__(1),V=__w_pdfjs_require__(4),F=__w_pdfjs_require__(136),K=__w_pdfjs_require__(148),J=__w_pdfjs_require__(142),ee=__w_pdfjs_require__(6),te=__w_pdfjs_require__(151),ne=__w_pdfjs_require__(152),re=__w_pdfjs_require__(150);if(ee.isNodeJS){var ae=__w_pdfjs_require__(153),oe=ae.PDFNodeStream;(0,F.setPDFNetworkStreamFactory)(function(le){return new oe(le)})}else{var ie=__w_pdfjs_require__(156),se=ie.PDFNetworkStream,ce=__w_pdfjs_require__(157),de=ce.PDFFetchStream;(0,F.setPDFNetworkStreamFactory)(function(le){return(0,$.isValidFetchUrl)(le.url)?new de(le):new se(le)})}})(),__webpack_exports__})()})})(pdf);var pdfExports=pdf.exports,__spreadArray=globalThis&&globalThis.__spreadArray||function(C,$,V){if(V||arguments.length===2)for(var F=0,K=$.length,J;F<K;F++)(J||!(F in $))&&(J||(J=Array.prototype.slice.call($,0,F)),J[F]=$[F]);return C.concat(J||Array.prototype.slice.call($))},clipboardEvents=["onCopy","onCut","onPaste"],compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],focusEvents=["onFocus","onBlur"],formEvents=["onInput","onInvalid","onReset","onSubmit"],imageEvents=["onLoad","onError"],keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],mouseEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],selectionEvents=["onSelect"],touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],uiEvents=["onScroll"],wheelEvents=["onWheel"],animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],transitionEvents=["onTransitionEnd"],otherEvents=["onToggle"],changeEvents=["onChange"],allEvents=__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],clipboardEvents,!0),compositionEvents,!0),focusEvents,!0),formEvents,!0),imageEvents,!0),keyboardEvents,!0),mediaEvents,!0),mouseEvents,!0),dragEvents,!0),selectionEvents,!0),touchEvents,!0),pointerEvents,!0),uiEvents,!0),wheelEvents,!0),animationEvents,!0),transitionEvents,!0),changeEvents,!0),otherEvents,!0);function makeEventProps(C,$){var V={};return allEvents.forEach(function(F){var K=C[F];K&&($?V[F]=function(J){return K(J,$(F))}:V[F]=K)}),V}function makeCancellablePromise(C){var $=!1,V=new Promise(function(F,K){C.then(function(J){return!$&&F(J)}).catch(function(J){return!$&&K(J)})});return{promise:V,cancel:function(){$=!0}}}function mergeClassNames(){return Array.prototype.slice.call(arguments).reduce(function(C,$){return C.concat($)},[]).filter(function(C){return typeof C=="string"}).join(" ")}var isProduction$1=process.env.NODE_ENV==="production",prefix="Invariant failed";function invariant(C,$){if(!C){if(isProduction$1)throw new Error(prefix);var V=typeof $=="function"?$():$,F=V?"".concat(prefix,": ").concat(V):prefix;throw new Error(F)}}var isProduction=process.env.NODE_ENV==="production";function warning(C,$){if(!isProduction){if(C)return;var V="Warning: "+$;typeof console!="undefined"&&console.warn(V);try{throw Error(V)}catch(F){}}}const DocumentContext=React.createContext(null);function Message(C){var $=C.children,V=C.type;return React.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(V)},$)}Message.propTypes={children:PropTypes.node,type:PropTypes.oneOf(["error","loading","no-data"]).isRequired};var DEFAULT_LINK_REL="noopener noreferrer nofollow",LinkService=function(){function C(){_classCallCheck(this,C),this.externalLinkTarget=null,this.externalLinkRel=null}return _createClass(C,[{key:"setDocument",value:function(V){this.pdfDocument=V}},{key:"setViewer",value:function(V){this.pdfViewer=V}},{key:"setExternalLinkRel",value:function(V){this.externalLinkRel=V}},{key:"setExternalLinkTarget",value:function(V){this.externalLinkTarget=V}},{key:"setHistory",value:function(){}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(V){this.pdfViewer.currentPageNumber=V}},{key:"rotation",get:function(){return 0},set:function(V){}},{key:"goToDestination",value:function(V){var F=this;new Promise(function(K){typeof V=="string"?F.pdfDocument.getDestination(V).then(K):Array.isArray(V)?K(V):V.then(K)}).then(function(K){invariant(Array.isArray(K),'"'.concat(K,'" is not a valid destination array.'));var J=K[0];new Promise(function(ee){J instanceof Object?F.pdfDocument.getPageIndex(J).then(function(te){ee(te)}).catch(function(){invariant(!1,'"'.concat(J,'" is not a valid page reference.'))}):typeof J=="number"?ee(J):invariant(!1,'"'.concat(J,'" is not a valid destination reference.'))}).then(function(ee){var te=ee+1;invariant(te>=1&&te<=F.pagesCount,'"'.concat(te,'" is not a valid page number.')),F.pdfViewer.scrollPageIntoView({dest:V,pageIndex:ee,pageNumber:te})})})}},{key:"navigateTo",value:function(V){this.goToDestination(V)}},{key:"goToPage",value:function(){}},{key:"addLinkAttributes",value:function(V,F,K){V.href=F,V.rel=this.externalLinkRel||DEFAULT_LINK_REL,V.target=K?"_blank":this.externalLinkTarget||""}},{key:"getDestinationHash",value:function(){return"#"}},{key:"getAnchorUrl",value:function(){return"#"}},{key:"setHash",value:function(){}},{key:"executeNamedAction",value:function(){}},{key:"cachePageRef",value:function(){}},{key:"isPageVisible",value:function(){return!0}},{key:"isPageCached",value:function(){return!0}}]),C}(),PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},isBrowser=typeof window!="undefined",isLocalFileSystem=isBrowser&&window.location.protocol==="file:";function isDefined(C){return typeof C!="undefined"}function isProvided(C){return isDefined(C)&&C!==null}function isString(C){return typeof C=="string"}function isArrayBuffer(C){return C instanceof ArrayBuffer}function isBlob(C){return invariant(isBrowser,"isBlob can only be used in a browser environment"),C instanceof Blob}function isFile$1(C){return invariant(isBrowser,"isFile can only be used in a browser environment"),C instanceof File}function isDataURI(C){return isString(C)&&/^data:/.test(C)}function dataURItoByteString(C){invariant(isDataURI(C),"Invalid data URI.");var $=C.split(","),V=_slicedToArray($,2),F=V[0],K=V[1],J=F.split(";");return J.indexOf("base64")!==-1?atob(K):unescape(K)}function getPixelRatio(){return isBrowser&&window.devicePixelRatio||1}var allowFileAccessFromFilesTip="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function displayCORSWarning(){warning(!isLocalFileSystem,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ".concat(allowFileAccessFromFilesTip))}function displayWorkerWarning(){warning(!isLocalFileSystem,"Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ".concat(allowFileAccessFromFilesTip))}function cancelRunningTask(C){C&&C.cancel&&C.cancel()}function makePageCallback(C,$){return Object.defineProperty(C,"width",{get:function(){return this.view[2]*$},configurable:!0}),Object.defineProperty(C,"height",{get:function(){return this.view[3]*$},configurable:!0}),Object.defineProperty(C,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(C,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),C}function isCancelException(C){return C.name==="RenderingCancelledException"}function loadFromFile(C){return new Promise(function($,V){var F=new FileReader;return F.onload=function(){return $(new Uint8Array(F.result))},F.onerror=function(K){switch(K.target.error.code){case K.target.error.NOT_FOUND_ERR:return V(new Error("Error while reading a file: File not found."));case K.target.error.NOT_READABLE_ERR:return V(new Error("Error while reading a file: File not readable."));case K.target.error.SECURITY_ERR:return V(new Error("Error while reading a file: Security error."));case K.target.error.ABORT_ERR:return V(new Error("Error while reading a file: Aborted."));default:return V(new Error("Error while reading a file."))}},F.readAsArrayBuffer(C),null})}var eventProps=function(){var C={};return[].concat(_toConsumableArray(mouseEvents),_toConsumableArray(touchEvents),_toConsumableArray(keyboardEvents)).forEach(function($){C[$]=PropTypes.func}),C}(),fileTypes=[PropTypes.string,PropTypes.instanceOf(ArrayBuffer),PropTypes.shape({data:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),httpHeaders:PropTypes.object,range:PropTypes.object,url:PropTypes.string,withCredentials:PropTypes.bool})];typeof File!="undefined"&&fileTypes.push(PropTypes.instanceOf(File)),typeof Blob!="undefined"&&fileTypes.push(PropTypes.instanceOf(Blob));var isClassName=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),isFile=PropTypes.oneOfType(fileTypes),isLinkService=PropTypes.instanceOf(LinkService);PropTypes.oneOf(["_self","_blank","_parent","_top"]);var isPage=PropTypes.shape({_transport:PropTypes.shape({fontLoader:PropTypes.object.isRequired}).isRequired,commonObjs:PropTypes.shape({_objs:PropTypes.object.isRequired}).isRequired,getAnnotations:PropTypes.func.isRequired,getTextContent:PropTypes.func.isRequired,getViewport:PropTypes.func.isRequired,render:PropTypes.func.isRequired}),isPageIndex=function C($,V,F){var K=$[V],J=$.pageNumber,ee=$.pdf;if(!isDefined(ee))return null;if(isDefined(K)){if(typeof K!="number")return new Error("`".concat(V,"` of type `").concat(_typeof(K),"` supplied to `").concat(F,"`, expected `number`."));if(K<0)return new Error("Expected `".concat(V,"` to be greater or equal to 0."));var te=ee.numPages;if(K+1>te)return new Error("Expected `".concat(V,"` to be less or equal to ").concat(te-1,"."))}else if(!isDefined(J))return new Error("`".concat(V,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(F,"`."));return null},isPageNumber=function C($,V,F){var K=$[V],J=$.pageIndex,ee=$.pdf;if(!isDefined(ee))return null;if(isDefined(K)){if(typeof K!="number")return new Error("`".concat(V,"` of type `").concat(_typeof(K),"` supplied to `").concat(F,"`, expected `number`."));if(K<1)return new Error("Expected `".concat(V,"` to be greater or equal to 1."));var te=ee.numPages;if(K>te)return new Error("Expected `".concat(V,"` to be less or equal to ").concat(te,"."))}else if(!isDefined(J))return new Error("`".concat(V,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(F,"`."));return null},isPdf=PropTypes.oneOfType([PropTypes.shape({getDestination:PropTypes.func.isRequired,getOutline:PropTypes.func.isRequired,getPage:PropTypes.func.isRequired,numPages:PropTypes.number.isRequired}),PropTypes.bool]),isRef=PropTypes.oneOfType([PropTypes.func,PropTypes.shape({current:PropTypes.any})]),isRenderMode=PropTypes.oneOf(["canvas","none","svg"]),isRotate=PropTypes.oneOf([0,90,180,270]),_excluded=["url"];function ownKeys$2(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread$2(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys$2(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys$2(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}function _createSuper$6(C){var $=_isNativeReflectConstruct$6();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var PDFDataRangeTransport=pdfExports.PDFDataRangeTransport,Document$1=function(C){_inherits(V,C);var $=_createSuper$6(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{pdf:null}),_defineProperty(_assertThisInitialized(F),"viewer",{scrollPageIntoView:function(ne){var re=ne.dest,ae=ne.pageIndex,oe=ne.pageNumber,ie=F.props.onItemClick;if(ie){ie({dest:re,pageIndex:ae,pageNumber:oe});return}var se=F.pages[ae];if(se){se.scrollIntoView();return}warning(!1,"An internal link leading to page ".concat(oe," was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>."))}}),_defineProperty(_assertThisInitialized(F),"linkService",new LinkService),_defineProperty(_assertThisInitialized(F),"loadDocument",function(){cancelRunningTask(F.runningTask),F.loadingTask&&F.loadingTask.destroy();var te=makeCancellablePromise(F.findDocumentSource());F.runningTask=te,te.promise.then(function(ne){if(F.onSourceSuccess(),!!ne){F.setState(function(ce){return ce.pdf?{pdf:null}:null});var re=F.props,ae=re.options,oe=re.onLoadProgress,ie=re.onPassword;F.loadingTask=pdfExports.getDocument(_objectSpread$2(_objectSpread$2({},ne),ae)),F.loadingTask.onPassword=ie,oe&&(F.loadingTask.onProgress=oe);var se=makeCancellablePromise(F.loadingTask.promise);F.runningTask=se,se.promise.then(function(ce){F.setState(function(de){return de.pdf&&de.pdf.fingerprint===ce.fingerprint?null:{pdf:ce}},F.onLoadSuccess)}).catch(function(ce){F.onLoadError(ce)})}}).catch(function(ne){F.onSourceError(ne)})}),_defineProperty(_assertThisInitialized(F),"setupLinkService",function(){var te=F.props,ne=te.externalLinkRel,re=te.externalLinkTarget;F.linkService.setViewer(F.viewer),F.linkService.setExternalLinkRel(ne),F.linkService.setExternalLinkTarget(re)}),_defineProperty(_assertThisInitialized(F),"onSourceSuccess",function(){var te=F.props.onSourceSuccess;te&&te()}),_defineProperty(_assertThisInitialized(F),"onSourceError",function(te){warning(te);var ne=F.props.onSourceError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onLoadSuccess,ne=F.state.pdf;te&&te(ne),F.pages=new Array(ne.numPages),F.linkService.setDocument(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({pdf:!1}),warning(te);var ne=F.props.onLoadError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"findDocumentSource",function(){return new Promise(function(te){var ne=F.props.file;if(ne||te(null),typeof ne=="string"){if(isDataURI(ne)){var re=dataURItoByteString(ne);te({data:re})}displayCORSWarning(),te({url:ne})}if(ne instanceof PDFDataRangeTransport&&te({range:ne}),isArrayBuffer(ne)&&te({data:ne}),isBrowser&&(isBlob(ne)||isFile$1(ne))){loadFromFile(ne).then(function(se){te({data:se})});return}if(invariant(_typeof(ne)==="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),invariant(ne.url||ne.data||ne.range,"Invalid parameter object: need either .data, .range or .url"),typeof ne.url=="string"){if(isDataURI(ne.url)){var ae=ne.url,oe=_objectWithoutProperties(ne,_excluded),ie=dataURItoByteString(ae);te(_objectSpread$2({data:ie},oe))}displayCORSWarning()}te(ne)})}),_defineProperty(_assertThisInitialized(F),"registerPage",function(te,ne){F.pages[te]=ne}),_defineProperty(_assertThisInitialized(F),"unregisterPage",function(te){delete F.pages[te]}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(K){var J=this.props.file;J!==K.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask),this.loadingTask&&this.loadingTask.destroy()}},{key:"childContext",get:function(){var K=this.linkService,J=this.registerPage,ee=this.unregisterPage,te=this.props,ne=te.imageResourcesPath,re=te.renderMode,ae=te.rotate,oe=this.state.pdf;return{imageResourcesPath:ne,linkService:K,pdf:oe,registerPage:J,renderMode:re,rotate:ae,unregisterPage:ee}}},{key:"eventProps",get:function(){var K=this;return makeEventProps(this.props,function(){return K.state.pdf})}},{key:"renderChildren",value:function(){var K=this.props.children;return React.createElement(DocumentContext.Provider,{value:this.childContext},K)}},{key:"renderContent",value:function(){var K=this.props.file,J=this.state.pdf;if(!K){var ee=this.props.noData;return React.createElement(Message,{type:"no-data"},typeof ee=="function"?ee():ee)}if(J===null){var te=this.props.loading;return React.createElement(Message,{type:"loading"},typeof te=="function"?te():te)}if(J===!1){var ne=this.props.error;return React.createElement(Message,{type:"error"},typeof ne=="function"?ne():ne)}return this.renderChildren()}},{key:"render",value:function(){var K=this.props,J=K.className,ee=K.inputRef;return React.createElement("div",_extends({className:mergeClassNames("react-pdf__Document",J),ref:ee},this.eventProps),this.renderContent())}}]),V}(React.PureComponent);Document$1.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDF…",noData:"No PDF file specified.",onPassword:function C($,V){switch(V){case PasswordResponses.NEED_PASSWORD:{var F=prompt("Enter the password to open this PDF file.");$(F);break}case PasswordResponses.INCORRECT_PASSWORD:{var K=prompt("Invalid password. Please try again.");$(K);break}}}};var isFunctionOrNode$1=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);Document$1.propTypes=_objectSpread$2(_objectSpread$2({},eventProps),{},{children:PropTypes.node,className:isClassName,error:isFunctionOrNode$1,externalLinkRel:PropTypes.string,externalLinkTarget:PropTypes.string,file:isFile,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode$1,noData:isFunctionOrNode$1,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadProgress:PropTypes.func,onLoadSuccess:PropTypes.func,onPassword:PropTypes.func,onSourceError:PropTypes.func,onSourceSuccess:PropTypes.func,rotate:PropTypes.number});var isDestination=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.any)]);PropTypes.shape({dest:isDestination,items:PropTypes.arrayOf(PropTypes.shape({dest:isDestination,title:PropTypes.string})),title:PropTypes.string}).isRequired,PropTypes.func,isPdf.isRequired;function ownKeys$1(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread$1(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys$1(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys$1(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}_objectSpread$1({className:isClassName,inputRef:isRef,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,pdf:isPdf},eventProps);function mergeRefs(){for(var C=[],$=0;$<arguments.length;$++)C[$]=arguments[$];var V=C.filter(Boolean);if(V.length<=1){var F=V[0];return F||null}return function(J){V.forEach(function(ee){typeof ee=="function"?ee(J):ee&&(ee.current=J)})}}const PageContext=React.createContext(null);function _createSuper$5(C){var $=_isNativeReflectConstruct$5();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$5(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var ANNOTATION_MODE=pdfExports.AnnotationMode,PageCanvasInternal=function(C){_inherits(V,C);var $=_createSuper$5(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"canvasElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){F.renderer=null;var te=F.props,ne=te.onRenderSuccess,re=te.page,ae=te.scale;ne&&ne(makePageCallback(re,ae))}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){if(!isCancelException(te)){warning(te);var ne=F.props.onRenderError;ne&&ne(te)}}),_defineProperty(_assertThisInitialized(F),"drawPageOnCanvas",function(){var te=F.canvasElement.current;if(!te)return null;var ne=_assertThisInitialized(F),re=ne.renderViewport,ae=ne.viewport,oe=F.props,ie=oe.canvasBackground,se=oe.page,ce=oe.renderForms;te.width=re.width,te.height=re.height,te.style.width="".concat(Math.floor(ae.width),"px"),te.style.height="".concat(Math.floor(ae.height),"px");var de={annotationMode:ce?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,get canvasContext(){return te.getContext("2d")},viewport:re};return ie&&(de.background=ie),F.cancelRenderingTask(),F.renderer=se.render(de),F.renderer.promise.then(F.onRenderSuccess).catch(F.onRenderError)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.drawPageOnCanvas()}},{key:"componentDidUpdate",value:function(K){var J=this.props,ee=J.canvasBackground,te=J.page,ne=J.renderForms;(ee!==K.canvasBackground||ne!==K.renderForms)&&(te.cleanup(),this.drawPageOnCanvas())}},{key:"componentWillUnmount",value:function(){this.cancelRenderingTask();var K=this.canvasElement.current;K&&(K.width=0,K.height=0)}},{key:"cancelRenderingTask",value:function(){this.renderer&&(this.renderer.cancel(),this.renderer=null)}},{key:"renderViewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale,ne=getPixelRatio();return J.getViewport({scale:te*ne,rotation:ee})}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"render",value:function(){var K=this.props.canvasRef;return React.createElement("canvas",{className:"react-pdf__Page__canvas",dir:"ltr",ref:mergeRefs(K,this.canvasElement),style:{display:"block",userSelect:"none"}})}}]),V}(React.PureComponent);PageCanvasInternal.propTypes={canvasBackground:PropTypes.string,canvasRef:isRef,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number.isRequired};function PageCanvas(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(PageCanvasInternal,_extends({},$,C))})}function _createSuper$4(C){var $=_isNativeReflectConstruct$4();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var PageSVGInternal=function(C){_inherits(V,C);var $=_createSuper$4(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{svg:null}),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){F.renderer=null;var te=F.props,ne=te.onRenderSuccess,re=te.page,ae=te.scale;ne&&ne(makePageCallback(re,ae))}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){if(!isCancelException(te)){warning(te);var ne=F.props.onRenderError;ne&&ne(te)}}),_defineProperty(_assertThisInitialized(F),"renderSVG",function(){var te=F.props.page;return F.renderer=te.getOperatorList(),F.renderer.then(function(ne){var re=new pdfExports.SVGGraphics(te.commonObjs,te.objs);F.renderer=re.getSVG(ne,F.viewport).then(function(ae){F.setState({svg:ae},F.onRenderSuccess)}).catch(F.onRenderError)}).catch(F.onRenderError)}),_defineProperty(_assertThisInitialized(F),"drawPageOnContainer",function(te){var ne=F.state.svg;if(!(!te||!ne)){te.firstElementChild||te.appendChild(ne);var re=F.viewport,ae=re.width,oe=re.height;ne.setAttribute("width",ae),ne.setAttribute("height",oe)}}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.renderSVG()}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"render",value:function(){var K=this,J=this.viewport,ee=J.width,te=J.height;return React.createElement("div",{className:"react-pdf__Page__svg",ref:function(re){return K.drawPageOnContainer(re)},style:{display:"block",backgroundColor:"white",overflow:"hidden",width:ee,height:te,userSelect:"none"}})}}]),V}(React.PureComponent);PageSVGInternal.propTypes={onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number.isRequired};function PageSVG(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(PageSVGInternal,_extends({},$,C))})}function _createSuper$3(C){var $=_isNativeReflectConstruct$3();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var TextLayerItemInternal=function(C){_inherits(V,C);var $=_createSuper$3(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"itemElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"getElementWidth",function(te){var ne=_assertThisInitialized(F),re=ne.sideways;return te.getBoundingClientRect()[re?"height":"width"]}),F}return _createClass(V,[{key:"componentDidMount",value:function(){this.alignTextItem()}},{key:"componentDidUpdate",value:function(){this.alignTextItem()}},{key:"unrotatedViewport",get:function(){var K=this.props,J=K.page,ee=K.scale;return J.getViewport({scale:ee})}},{key:"rotate",get:function(){var K=this.props,J=K.page,ee=K.rotate;return ee-J.rotate}},{key:"sideways",get:function(){var K=this.rotate;return K%180!==0}},{key:"defaultSideways",get:function(){var K=this.unrotatedViewport.rotation;return K%180!==0}},{key:"fontSize",get:function(){var K=this.props.transform,J=this.defaultSideways,ee=_slicedToArray(K,2),te=ee[0],ne=ee[1];return J?ne:te}},{key:"top",get:function(){var K=this.props.transform,J=this.unrotatedViewport,ee=this.defaultSideways,te=_slicedToArray(K,6),ne=te[2],re=te[3],ae=te[4],oe=te[5],ie=_slicedToArray(J.viewBox,4),se=ie[1],ce=ie[3];return ee?ae+ne+se:ce-(oe+re)}},{key:"left",get:function(){var K=this.props.transform,J=this.unrotatedViewport,ee=this.defaultSideways,te=_slicedToArray(K,6),ne=te[4],re=te[5],ae=_slicedToArray(J.viewBox,1),oe=ae[0];return ee?re-oe:ne-oe}},{key:"getFontData",value:function(K){var J=this.props.page;return new Promise(function(ee){J.commonObjs.get(K,ee)})}},{key:"alignTextItem",value:function(){var K=this,J=this.itemElement.current;if(J){J.style.transform="";var ee=this.props,te=ee.fontName,ne=ee.scale,re=ee.width;J.style.fontFamily="".concat(te,", sans-serif"),this.getFontData(te).then(function(ae){var oe=ae?ae.fallbackName:"sans-serif";J.style.fontFamily="".concat(te,", ").concat(oe);var ie=re*ne,se=K.getElementWidth(J),ce="scaleX(".concat(ie/se,")"),de=ae?ae.ascent:0;de&&(ce+=" translateY(".concat((1-de)*100,"%)")),J.style.transform=ce,J.style.WebkitTransform=ce})}}},{key:"render",value:function(){var K=this.fontSize,J=this.top,ee=this.left,te=this.props,ne=te.customTextRenderer,re=te.scale,ae=te.str;return React.createElement("span",{ref:this.itemElement,style:{height:"1em",fontFamily:"sans-serif",fontSize:"".concat(K*re,"px"),position:"absolute",top:"".concat(J*re,"px"),left:"".concat(ee*re,"px"),transformOrigin:"left bottom",whiteSpace:"pre",pointerEvents:"all"}},ne?ne(this.props):ae)}}]),V}(React.PureComponent);TextLayerItemInternal.propTypes={customTextRenderer:PropTypes.func,fontName:PropTypes.string.isRequired,itemIndex:PropTypes.number.isRequired,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number,str:PropTypes.string.isRequired,transform:PropTypes.arrayOf(PropTypes.number).isRequired,width:PropTypes.number.isRequired};function TextLayerItem(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(TextLayerItemInternal,_extends({},$,C))})}function _createSuper$2(C){var $=_isNativeReflectConstruct$2();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var TextLayerInternal=function(C){_inherits(V,C);var $=_createSuper$2(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{textItems:null}),_defineProperty(_assertThisInitialized(F),"loadTextItems",function(){var te=F.props.page,ne=makeCancellablePromise(te.getTextContent());F.runningTask=ne,ne.promise.then(function(re){var ae=re.items;F.setState({textItems:ae},F.onLoadSuccess)}).catch(function(re){F.onLoadError(re)})}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onGetTextSuccess,ne=F.state.textItems;te&&te(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({textItems:!1}),warning(te);var ne=F.props.onGetTextError;ne&&ne(te)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.page;invariant(K,"Attempted to load page text content, but no page was specified."),this.loadTextItems()}},{key:"componentDidUpdate",value:function(K){var J=this.props.page;K.page&&J!==K.page&&this.loadTextItems()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"unrotatedViewport",get:function(){var K=this.props,J=K.page,ee=K.scale;return J.getViewport({scale:ee})}},{key:"rotate",get:function(){var K=this.props,J=K.page,ee=K.rotate;return ee-J.rotate}},{key:"renderTextItems",value:function(){var K=this.state.textItems;return K?K.map(function(J,ee){return React.createElement(TextLayerItem,_extends({key:ee,itemIndex:ee},J))}):null}},{key:"render",value:function(){var K=this.unrotatedViewport,J=this.rotate;return React.createElement("div",{className:"react-pdf__Page__textContent",style:{position:"absolute",top:"50%",left:"50%",width:"".concat(K.width,"px"),height:"".concat(K.height,"px"),color:"transparent",transform:"translate(-50%, -50%) rotate(".concat(J,"deg)"),WebkitTransform:"translate(-50%, -50%) rotate(".concat(J,"deg)"),pointerEvents:"none"}},this.renderTextItems())}}]),V}(React.PureComponent);TextLayerInternal.propTypes={onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number};function TextLayer(C){return React.createElement(PageContext.Consumer,null,function($){return React.createElement(TextLayerInternal,_extends({},$,C))})}function _createSuper$1(C){var $=_isNativeReflectConstruct$1();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct$1(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var AnnotationLayerInternal=function(C){_inherits(V,C);var $=_createSuper$1(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{annotations:null}),_defineProperty(_assertThisInitialized(F),"layerElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"loadAnnotations",function(){var te=F.props.page,ne=makeCancellablePromise(te.getAnnotations());F.runningTask=ne,ne.promise.then(function(re){F.setState({annotations:re},F.onLoadSuccess)}).catch(function(re){F.onLoadError(re)})}),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props.onGetAnnotationsSuccess,ne=F.state.annotations;te&&te(ne)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({annotations:!1}),warning(te);var ne=F.props.onGetAnnotationsError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"onRenderSuccess",function(){var te=F.props.onRenderAnnotationLayerSuccess;te&&te()}),_defineProperty(_assertThisInitialized(F),"onRenderError",function(te){warning(te);var ne=F.props.onRenderAnnotationLayerError;ne&&ne(te)}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.page;invariant(K,"Attempted to load page annotations, but no page was specified."),this.loadAnnotations()}},{key:"componentDidUpdate",value:function(K){var J=this.props,ee=J.page,te=J.renderForms;(K.page&&ee!==K.page||te!==K.renderForms)&&this.loadAnnotations()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"viewport",get:function(){var K=this.props,J=K.page,ee=K.rotate,te=K.scale;return J.getViewport({scale:te,rotation:ee})}},{key:"renderAnnotationLayer",value:function(){var K=this.state.annotations;if(K){var J=this.props,ee=J.imageResourcesPath,te=J.linkService,ne=J.page,re=J.renderForms,ae=this.viewport.clone({dontFlip:!0}),oe={annotations:K,div:this.layerElement.current,imageResourcesPath:ee,linkService:te,page:ne,renderForms:re,viewport:ae};this.layerElement.current.innerHTML="";try{pdfExports.AnnotationLayer.render(oe),this.onRenderSuccess()}catch(ie){this.onRenderError(ie)}}}},{key:"render",value:function(){return React.createElement("div",{className:"react-pdf__Page__annotations annotationLayer",ref:this.layerElement},this.renderAnnotationLayer())}}]),V}(React.PureComponent);AnnotationLayerInternal.propTypes={imageResourcesPath:PropTypes.string,linkService:isLinkService.isRequired,onGetAnnotationsError:PropTypes.func,onGetAnnotationsSuccess:PropTypes.func,onRenderAnnotationLayerError:PropTypes.func,onRenderAnnotationLayerSuccess:PropTypes.func,page:isPage,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number};var AnnotationLayer=function C($){return React.createElement(DocumentContext.Consumer,null,function(V){return React.createElement(PageContext.Consumer,null,function(F){return React.createElement(AnnotationLayerInternal,_extends({},V,F,$))})})};function ownKeys(C,$){var V=Object.keys(C);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(C);$&&(F=F.filter(function(K){return Object.getOwnPropertyDescriptor(C,K).enumerable})),V.push.apply(V,F)}return V}function _objectSpread(C){for(var $=1;$<arguments.length;$++){var V=arguments[$]!=null?arguments[$]:{};$%2?ownKeys(Object(V),!0).forEach(function(F){_defineProperty(C,F,V[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(V)):ownKeys(Object(V)).forEach(function(F){Object.defineProperty(C,F,Object.getOwnPropertyDescriptor(V,F))})}return C}function _createSuper(C){var $=_isNativeReflectConstruct();return function(){var F=_getPrototypeOf(C),K;if($){var J=_getPrototypeOf(this).constructor;K=Reflect.construct(F,arguments,J)}else K=F.apply(this,arguments);return _possibleConstructorReturn(this,K)}}function _isNativeReflectConstruct(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(C){return!1}}var defaultScale=1,PageInternal=function(C){_inherits(V,C);var $=_createSuper(V);function V(){var F;_classCallCheck(this,V);for(var K=arguments.length,J=new Array(K),ee=0;ee<K;ee++)J[ee]=arguments[ee];return F=$.call.apply($,[this].concat(J)),_defineProperty(_assertThisInitialized(F),"state",{page:null}),_defineProperty(_assertThisInitialized(F),"pageElement",React.createRef()),_defineProperty(_assertThisInitialized(F),"onLoadSuccess",function(){var te=F.props,ne=te.onLoadSuccess,re=te.registerPage,ae=F.state.page;ne&&ne(makePageCallback(ae,F.scale)),re&&re(F.pageIndex,F.pageElement.current)}),_defineProperty(_assertThisInitialized(F),"onLoadError",function(te){F.setState({page:!1}),warning(te);var ne=F.props.onLoadError;ne&&ne(te)}),_defineProperty(_assertThisInitialized(F),"loadPage",function(){var te=F.props.pdf,ne=F.getPageNumber();if(ne){F.setState(function(ae){return ae.page?{page:null}:null});var re=makeCancellablePromise(te.getPage(ne));F.runningTask=re,re.promise.then(function(ae){F.setState({page:ae},F.onLoadSuccess)}).catch(function(ae){F.onLoadError(ae)})}}),F}return _createClass(V,[{key:"componentDidMount",value:function(){var K=this.props.pdf;invariant(K,"Attempted to load a page, but no document was specified."),this.loadPage()}},{key:"componentDidUpdate",value:function(K){var J=this.props.pdf;if(K.pdf&&J!==K.pdf||this.getPageNumber()!==this.getPageNumber(K)){var ee=this.props.unregisterPage;ee&&ee(this.getPageIndex(K)),this.loadPage()}}},{key:"componentWillUnmount",value:function(){var K=this.props.unregisterPage;K&&K(this.pageIndex),cancelRunningTask(this.runningTask)}},{key:"childContext",get:function(){var K=this.state.page;if(!K)return{};var J=this.props,ee=J.canvasBackground,te=J.customTextRenderer,ne=J.onGetAnnotationsError,re=J.onGetAnnotationsSuccess,ae=J.onGetTextError,oe=J.onGetTextSuccess,ie=J.onRenderAnnotationLayerError,se=J.onRenderAnnotationLayerSuccess,ce=J.onRenderError,de=J.onRenderSuccess,le=J.renderForms,ve=J.renderInteractiveForms;return{canvasBackground:ee,customTextRenderer:te,onGetAnnotationsError:ne,onGetAnnotationsSuccess:re,onGetTextError:ae,onGetTextSuccess:oe,onRenderAnnotationLayerError:ie,onRenderAnnotationLayerSuccess:se,onRenderError:ce,onRenderSuccess:de,page:K,renderForms:le!=null?le:ve,rotate:this.rotate,scale:this.scale}}},{key:"getPageIndex",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(K.pageNumber)?K.pageNumber-1:isProvided(K.pageIndex)?K.pageIndex:null}},{key:"getPageNumber",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(K.pageNumber)?K.pageNumber:isProvided(K.pageIndex)?K.pageIndex+1:null}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var K=this.props.rotate;if(isProvided(K))return K;var J=this.state.page;return J?J.rotate:null}},{key:"scale",get:function(){var K=this.state.page;if(!K)return null;var J=this.props,ee=J.scale,te=J.width,ne=J.height,re=this.rotate,ae=1,oe=ee===null?defaultScale:ee;if(te||ne){var ie=K.getViewport({scale:1,rotation:re});ae=te?te/ie.width:ne/ie.height}return oe*ae}},{key:"eventProps",get:function(){var K=this;return makeEventProps(this.props,function(){var J=K.state.page;return J&&makePageCallback(J,K.scale)})}},{key:"pageKey",get:function(){var K=this.state.page;return"".concat(K.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){var K=this.state.page;return"".concat(K.pageIndex,"/").concat(this.rotate)}},{key:"renderMainLayer",value:function(){var K=this.props,J=K.canvasRef,ee=K.renderMode;switch(ee){case"none":return null;case"svg":return React.createElement(PageSVG,{key:"".concat(this.pageKeyNoScale,"_svg")});case"canvas":default:return React.createElement(PageCanvas,{key:"".concat(this.pageKey,"_canvas"),canvasRef:J})}}},{key:"renderTextLayer",value:function(){var K=this.props.renderTextLayer;return K?React.createElement(TextLayer,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){var K=this.props.renderAnnotationLayer;return K?React.createElement(AnnotationLayer,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var K=this.props.children;return React.createElement(PageContext.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),K)}},{key:"renderContent",value:function(){var K=this.pageNumber,J=this.props.pdf,ee=this.state.page;if(!K){var te=this.props.noData;return React.createElement(Message,{type:"no-data"},typeof te=="function"?te():te)}if(J===null||ee===null){var ne=this.props.loading;return React.createElement(Message,{type:"loading"},typeof ne=="function"?ne():ne)}if(J===!1||ee===!1){var re=this.props.error;return React.createElement(Message,{type:"error"},typeof re=="function"?re():re)}return this.renderChildren()}},{key:"render",value:function(){var K=this.pageNumber,J=this.props,ee=J.className,te=J.inputRef;return React.createElement("div",_extends({className:mergeClassNames("react-pdf__Page",ee),"data-page-number":K,ref:mergeRefs(te,this.pageElement),style:{position:"relative"}},this.eventProps),this.renderContent())}}]),V}(React.PureComponent);PageInternal.defaultProps={error:"Failed to load the page.",loading:"Loading page…",noData:"No page specified.",renderAnnotationLayer:!0,renderForms:!1,renderMode:"canvas",renderTextLayer:!0,scale:defaultScale};var isFunctionOrNode=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);PageInternal.propTypes=_objectSpread(_objectSpread({},eventProps),{},{canvasBackground:PropTypes.string,children:PropTypes.node,className:isClassName,customTextRenderer:PropTypes.func,error:isFunctionOrNode,height:PropTypes.number,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode,noData:isFunctionOrNode,onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,pageIndex:isPageIndex,pageNumber:isPageNumber,pdf:isPdf,registerPage:PropTypes.func,renderAnnotationLayer:PropTypes.bool,renderForms:PropTypes.bool,renderInteractiveForms:PropTypes.bool,renderMode:isRenderMode,renderTextLayer:PropTypes.bool,rotate:isRotate,scale:PropTypes.number,unregisterPage:PropTypes.func,width:PropTypes.number});function Page(C,$){return React.createElement(DocumentContext.Consumer,null,function(V){return React.createElement(PageInternal,_extends({ref:$},V,C))})}const Page$1=React.forwardRef(Page);displayWorkerWarning(),pdfExports.GlobalWorkerOptions.workerSrc="pdf.worker.js";const toDDMMYY=C=>{const $=new Date(C),V=String($.getMonth()+1).padStart(2,"0"),F=String($.getDate()).padStart(2,"0"),K=$.getFullYear().toString().slice(2);return[F,V,K].join("/")},fitmentService=careerHubApi.injectEndpoints({endpoints:C=>({getFitment:C.query({query:({jobProfileId:$})=>({url:"/api/v3/user-resumes/job-fitment-evaluation",params:{job_profile_id:$},method:"POST"})})})}),{useGetFitmentQuery}=fitmentService,resumeService=careerHubApi.injectEndpoints({endpoints:C=>({getResumesEligibility:C.query({query:({jobProfileId:$})=>({url:"/api/v3/user-resumes/eligibility",params:{job_profile_id:$}})}),getResumeLink:C.query({query:({resumeId:$})=>({url:`/api/v3/user-resumes/${$}/download`,method:"GET"})})})}),{useGetResumesEligibilityQuery,useGetResumeLinkQuery}=resumeService,container$4="_container_j5pfu_1",resumeChoiceOptionLabel="_resumeChoiceOptionLabel_j5pfu_5",resumeChoiceOptionLabelChecked="_resumeChoiceOptionLabelChecked_j5pfu_16",resumeChoiceOptionLabelContent="_resumeChoiceOptionLabelContent_j5pfu_27",resumeChoiceOptionLabelName="_resumeChoiceOptionLabelName_j5pfu_31",resumeChoiceOptionLabelModifiedAt="_resumeChoiceOptionLabelModifiedAt_j5pfu_37",resumeChoiceOptionLabelCard="_resumeChoiceOptionLabelCard_j5pfu_42",resumeChoiceOptionLabelCardHeader="_resumeChoiceOptionLabelCardHeader_j5pfu_46",resumeChoiceOptionLabelEditButton="_resumeChoiceOptionLabelEditButton_j5pfu_50",resumeChoiceOptionLabelImprovementsList="_resumeChoiceOptionLabelImprovementsList_j5pfu_54",resumePreviewContainer="_resumePreviewContainer_j5pfu_59",fitmentScoreTitle="_fitmentScoreTitle_j5pfu_69",styles$l={container:container$4,resumeChoiceOptionLabel,resumeChoiceOptionLabelChecked,resumeChoiceOptionLabelContent,resumeChoiceOptionLabelName,resumeChoiceOptionLabelModifiedAt,resumeChoiceOptionLabelCard,resumeChoiceOptionLabelCardHeader,resumeChoiceOptionLabelEditButton,resumeChoiceOptionLabelImprovementsList,resumePreviewContainer,fitmentScoreTitle};function FitmentScore({score:C}){let $={"0%":"#FC2119","60%":"#FF9C40"},V="#FFD5C0";return Number(C)>=60&&($={"0%":"#FC8019","80%":"#FFD284"},V="#FC910033"),Number(C)>=80&&($={"0%":"#03522D","100%":"#22C477"},V="#1A845233"),isNullOrUndefined(C)?null:React.createElement(Flex$1,{vertical:!0,gap:4,className:styles$l.fitmentScore},React.createElement(Typography$1.Text,{className:styles$l.fitmentScoreTitle},"Your Resume Fit Score:"),React.createElement(Progress$1,{size:["default",12],percent:C,className:styles$l.fitmentScoreProgress,strokeColor:$,trailColor:V}))}function BlockerPoints({value:C}){const $=reactRedux.useDispatch(),[V,F]=React.useState(!0),{onEditResume:K,jobProfileId:J}=useApplicationFormContext(),{resumeReviewData:ee}=reactRedux.useSelector(le=>le.scalantCareerHub.resumeFitment)||{},{analytics:te}=useJobPreview(),{resume_details:ne}=C||{},{id:re,name:ae}=ne||{},oe=getBlockerPointsChecklist(ee==null?void 0:ee[re]),ie=oe.length,se=oe.length>0,ce=()=>{te==null||te.click("Blocker Points - Collapse",PRODUCT_NAME),F(!V)},de=()=>{te==null||te.click("Blocker Points - Edit Resume",PRODUCT_NAME),K(re),$(setActiveResume({jobProfileId:J,resumeId:re,blockerPoints:oe,resumeName:ae})),$(setChecklistOpen({syncWithBlockerPoints:!0}))};return React.createElement(Card$1,{size:"small",rootClassName:styles$l.resumeChoiceOptionLabelCard},React.createElement(Flex$1,{gap:8,className:styles$l.resumeChoiceOptionLabelCardHeader},se&&React.createElement(ExclamationCircleTwoTone$1,{twoToneColor:"#FAAD14"}),!se&&React.createElement(CheckCircleTwoTone$1,{twoToneColor:"#52c41a"}),React.createElement(Typography$1.Text,null,se?`Improvements to be made (${ie})`:"No improvements to be made"),React.createElement(Button$2,{type:"link",className:styles$l.resumeChoiceOptionLabelEditButton,onClick:de},"Edit"),se&&React.createElement(Button$2,{type:"text",className:styles$l.resumeChoiceOptionLabelCollapseButton,onClick:ce},V?React.createElement(DownOutlined$1,null):React.createElement(UpOutlined$1,null))),!V&&React.createElement("ul",{className:styles$l.resumeChoiceOptionLabelImprovementsList},oe.map((le,ve)=>React.createElement("li",{key:ve},le))))}pdfExports.GlobalWorkerOptions.workerSrc=`//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfExports.version}/pdf.worker.min.js`;const MAX_RETRY_COUNT=6;function ResumeChoiceOptionLabel({value:C}){var ie,se;const{selectedResume:$,setSelectedResume:V,jobProfileId:F}=useApplicationFormContext(),K=reactRedux.useSelector(ce=>{var de;return(de=ce.scalantCareerHub.resumeFitment)==null?void 0:de.fitmentScore}),{resume_details:J}=C||{},{id:ee,name:te,modified_at:ne}=J||{},re=$===ee,ae=(se=(ie=K==null?void 0:K[F])==null?void 0:ie[ee])==null?void 0:se.score,oe=()=>{V(ee)};return React.createElement(Radio$1,{onChange:oe,checked:re,className:classNames(styles$l.resumeChoiceOptionLabel,{[styles$l.resumeChoiceOptionLabelChecked]:re})},React.createElement(Flex$1,{vertical:!0,gap:12,className:styles$l.resumeChoiceOptionLabelContent},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{vertical:!0,gap:4},React.createElement(Typography$1.Text,{className:styles$l.resumeChoiceOptionLabelName},te),React.createElement(Typography$1.Text,{className:styles$l.resumeChoiceOptionLabelModifiedAt},"Last Modified: ",toDDMMYY(ne))),React.createElement(FitmentScore,{score:ae})),React.createElement(BlockerPoints,{value:C})))}function ResumePreview(){const[C,$]=React.useState(0),{selectedResume:V}=useApplicationFormContext(),{data:F,isFetching:K}=useGetResumeLinkQuery({resumeId:V},{skip:!V}),J=ee=>{C<MAX_RETRY_COUNT?setTimeout(()=>{$(C+1)},1e3):console.error("Error while loading pdf! ",ee.message)};return!(F!=null&&F.link)||K?React.createElement(Skeleton$1,{active:!0}):React.createElement(Document$1,{className:styles$l.resumePreview,file:F==null?void 0:F.link,loading:React.createElement(Skeleton$1,{active:!0}),onLoadError:J,error:React.createElement(Skeleton$1,{active:!0}),key:C},React.createElement(Page$1,{pageNumber:1}))}function ResumeChoiceSelect(){const{setSelectedResume:C}=useApplicationFormContext(),{jobProfileId:$}=useApplicationFormContext(),{data:V,isLoading:F}=useGetResumesEligibilityQuery({jobProfileId:$});return useGetFitmentQuery({jobProfileId:$},{skip:!$}),React.useEffect(()=>{var J,ee;if(!V)return;const K=(ee=(J=Object.values(V).find(te=>{var ne;return(ne=te==null?void 0:te.resume_details)==null?void 0:ne.default}))==null?void 0:J.resume_details)==null?void 0:ee.id;C(K)},[V,C]),F||!V?React.createElement(Skeleton$1,{active:!0}):React.createElement(Flex$1,{className:styles$l.container},React.createElement(Flex$1,{flex:1,vertical:!0,gap:16},Object.entries(V).map(([K,J])=>React.createElement(ResumeChoiceOptionLabel,{key:K,value:J}))),React.createElement(Flex$1,{className:styles$l.resumePreviewContainer,flex:1},React.createElement(ResumePreview,null)))}const container$3="_container_jdh56_1",carouselContainer="_carouselContainer_jdh56_6",dots="_dots_jdh56_12",title$1="_title_jdh56_36",description$1="_description_jdh56_42",iconContainer="_iconContainer_jdh56_48",pulse="_pulse_jdh56_1",iconScannerLine="_iconScannerLine_jdh56_60",scan="_scan_jdh56_1",styles$k={container:container$3,carouselContainer,dots,title:title$1,description:description$1,iconContainer,pulse,iconScannerLine,scan},EVALUATION_COMPLETION_TIMEOUT=6e4,TIPS=[{title:"Analysing the Right Resume for you to Apply!",description:"We’re preparing a fitment score and instant insights to know which resume works best for this application"},{title:"Preparing quick steps to Strengthen your Resume!",description:"We’re also figuring out suggestions to improve your resume with final touch ups at lightning speed"},{title:"Your Analysis will be Ready in just a Few Seconds!",description:"Fix key gaps we identify and boost your chances of getting noticed by top companies"}];function ResumeFitmentCheck(){reactRedux.useDispatch();const{jobProfileId:C,setStepName:$}=useApplicationFormContext(),{isError:V,data:F}=useGetFitmentQuery({jobProfileId:C}),{data:K}=useGetResumesEligibilityQuery({jobProfileId:C}),{fitmentScore:J}=reactRedux.useSelector(ee=>ee.scalantCareerHub.resumeFitment)||{};return React.useEffect(()=>{const ee=Object.keys(K||{});ee.length>0&&Object.keys((J==null?void 0:J[C])||{}).length===ee.length&&$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT)},[J,C,K,$]),React.useEffect(()=>{const ee=setTimeout(()=>{$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT)},EVALUATION_COMPLETION_TIMEOUT);return()=>clearTimeout(ee)},[$]),React.useEffect(()=>{V&&(message$1.error("Failed to evaluate job fitment"),$(APPLICATION_STATUS$1.RESUME_CHOICE_SELECT))},[V,$]),React.createElement(Flex$1,{vertical:!0,gap:8,className:styles$k.container,justify:"center",align:"center"},React.createElement("div",{className:styles$k.iconContainer},React.createElement("div",{className:styles$k.iconScannerLine})),React.createElement("div",{className:styles$k.carouselContainer},React.createElement(Carousel$1,{autoplay:!0,autoplaySpeed:1e4,dots:{className:styles$k.dots},effect:"fade",className:styles$k.carousel,adaptiveHeight:!0},TIPS.map((ee,te)=>React.createElement("div",{key:te},React.createElement(Flex$1,{className:styles$k.tip,vertical:!0,gap:8,key:ee.title},React.createElement(Typography$1.Text,{className:styles$k.title,strong:!0},ee.title),React.createElement(Typography$1.Text,{className:styles$k.description},ee.description)))))))}const container$2="_container_1pyap_1",footer="_footer_1pyap_10",text="_text_1pyap_14",heading$1="_heading_1pyap_18",checkbox="_checkbox_1pyap_24",styles$j={container:container$2,footer,text,heading:heading$1,checkbox},NOTIFICATION_KEY="resume-fitment-checklist",MAX_CHECKLIST_ITEMS=5,Description=()=>{const{activeResumeChecklist:C}=reactRedux.useSelector($=>$.scalantCareerHub.resumeFitment)||{};return React.createElement(Flex$1,{vertical:!0,gap:8},React.createElement(Typography$1.Text,{className:styles$j.text},"Please update the remaining sections as per the feedback to boost hiring chances"),React.createElement(Typography$1.Text,{strong:!0,className:styles$j.heading},"Improvements to be made"),C.slice(0,MAX_CHECKLIST_ITEMS).map(($,V)=>React.createElement(Checkbox$1,{className:styles$j.checkbox,key:V},React.createElement(Typography$1.Text,{className:styles$j.text,key:V},$))))},Footer=({closeNotification:C})=>React.createElement(Flex$1,{justify:"space-between",className:styles$j.footer},React.createElement(Flex$1,{gap:4,align:"center"},React.createElement(CheckCircleFilled$1,{style:{color:"#20A164"}}),React.createElement(Typography$1.Text,{className:styles$j.text},"When your resume is ready")),React.createElement(Button$2,{type:"primary",onClick:C},"Proceed to Apply"));function ResumeFitmentChecklist(){const C=reactRedux.useDispatch(),[$,V]=notification$1.useNotification(),{activeResumeChecklist:F,activeResumeName:K,isChecklistOpen:J}=reactRedux.useSelector(se=>se.scalantCareerHub.resumeFitment)||{},{setActiveApplicationId:ee,jobId:te,analytics:ne,onCloseResumeBuilder:re}=useJobPreview(),ae=React.useCallback(()=>{$.destroy(NOTIFICATION_KEY),ee(te),C(setChecklistOpen({isOpen:!1})),ne==null||ne.click("Resume Fitment Checklist - Close",PRODUCT_NAME)},[ne,C,te,ee,$]),oe=React.useCallback(()=>{ae(),re(),ne==null||ne.click("Resume Fitment Checklist - Proceed to Apply",PRODUCT_NAME)},[ne,ae,re]),ie=React.useCallback(()=>{!K||!(F!=null&&F.length)||($.warning({key:NOTIFICATION_KEY,message:K,placement:"bottomRight",description:React.createElement(Description,null),onClose:ae,closeIcon:null,duration:null,btn:React.createElement(Footer,{closeNotification:oe}),className:styles$j.container}),ne==null||ne.click("Resume Fitment Checklist - Open",PRODUCT_NAME))},[K,F,$,ae,oe,ne]);return React.useEffect(()=>{J?ie():ae()},[J,ie,ae]),V}const screeningCallService=careerHubApi.injectEndpoints({endpoints:C=>({issueScreeningCall:C.mutation({query:()=>({url:"/api/v3/careers-hub/screening-call/",method:"POST"})})})}),{useIssueScreeningCallMutation}=screeningCallService,screeningCallBanner="_screeningCallBanner_1ltmt_1",screeningCallIcon="_screeningCallIcon_1ltmt_7",screeningCallButtonIcon="_screeningCallButtonIcon_1ltmt_12",styles$i={screeningCallBanner,screeningCallIcon,screeningCallButtonIcon},ScreeningCallBanner=({forceShow:C=!1})=>{var oe;const $=reactRedux.useSelector(ie=>ie.scalantCareerHub.dashboard.userProfileData),V=(oe=$==null?void 0:$.hasCompletedScreeningCall)!=null?oe:!1,{analytics:F,jobData:K,currentTab:J}=useJobPreview(),{applicationStatus:ee}=K||{},te=ee===APPLICATION_STATUS$1.WITHDRAWN,[ne,{isLoading:re}]=useIssueScreeningCallMutation(),ae=React.useCallback(()=>sr(this,null,function*(){var se;const ie=yield ne();(se=ie==null?void 0:ie.data)!=null&&se.url?globalThis.open(ie.data.url,"_blank"):message$1.error("Failed to initiate screening call. Please try again."),F==null||F.click("Screening Call - Take Call",PRODUCT_NAME)}),[F,ne]);return V||!C&&(J!==TAG_TO_TAB_MAPPING.applied||te)?null:React.createElement(ActionBanner,{icon:React.createElement("img",{src:ICONS.airplay,className:styles$i.screeningCallIcon}),title:"Complete your 5-minute Screening Call now",description:"Verify your details with a quick screening call and become a priority applicant for us",buttonText:"Take Call",buttonIcon:React.createElement(PhoneOutlined$1,{className:styles$i.screeningCallButtonIcon}),className:styles$i.screeningCallBanner,onClick:ae,isLoading:re})},container$1="_container_16lhm_1",likeBadge="_likeBadge_16lhm_12",description="_description_16lhm_18",styles$h={container:container$1,likeBadge,description},SuccessScreen=()=>React.createElement(Flex$1,{vertical:!0,className:styles$h.container},React.createElement("img",{src:ICONS.likeBadge,alt:"like-badge",className:styles$h.likeBadge}),React.createElement(Typography$1.Title,{level:3},"Application Submitted successfully!"),React.createElement(Typography$1.Text,{className:styles$h.description},"Your job application has now been received by the team, you can track your status within the job details itself"),React.createElement(ScreeningCallBanner,{forceShow:!0}));function FormStep(){const{stepName:C}=useApplicationFormContext();switch(C){case APPLICATION_STATUS$1.APPLICATION_FORM:return React.createElement(ApplicationForm,null);case APPLICATION_STATUS$1.RESUME_FITMENT_CHECK:return React.createElement(ResumeFitmentCheck,null);case APPLICATION_STATUS$1.RESUME_CHOICE_SELECT:return React.createElement(ResumeChoiceSelect,null);case APPLICATION_STATUS$1.SUCCESSFULLY_APPLIED:return React.createElement(SuccessScreen,null);default:return null}}function FormContainer({onClose:C,currentTab:$,jobProfileId:V,utmId:F,utmMedium:K,utmSource:J,onUploadFile:ee,onEditResume:te,onAddResume:ne}){const[re,ae]=React.useState(!1),{data:oe,isLoading:ie}=useCreateApplication({jobProfileId:V,utmMedium:K,utmSource:J,currentTab:$,utmId:F}),{applicationId:se,status:ce}=oe||{},de=()=>{C(),ae(!1)};return React.useEffect(()=>{ae(!!V)},[V]),React.createElement(ApplicationFormProvider,{onUploadFile:ee,stepName:ce,jobProfileId:V,applicationId:se,onEditResume:te,onAddResume:ne},React.createElement(Drawer$1,{closable:!1,loading:ie,open:re,placement:"bottom",height:600,title:React.createElement(FormHeader,{onClose:de}),footer:React.createElement(Footer$1,{onCancel:de})},React.createElement(FormStep,null)),React.createElement(ResumeFitmentChecklist,null))}FormContainer.propTypes={currentTab:PropTypes.string.isRequired,jobProfileId:PropTypes.number.isRequired,utmId:PropTypes.string,utmMedium:PropTypes.string,utmSource:PropTypes.string};const JobApplicationForm=({currentTab:C,onUploadFile:$,onEditResume:V,onAddResume:F})=>{const{activeApplicationId:K,setActiveApplicationId:J}=useJobPreview(),ee=()=>{J(null)};return K?React.createElement(FormContainer,{onUploadFile:$,jobProfileId:K,onClose:ee,currentTab:C,onEditResume:V,onAddResume:F}):null},container="_container_kgogb_1",actionAlert="_actionAlert_kgogb_14",ineligible="_ineligible_kgogb_24",stepsToApply="_stepsToApply_kgogb_29",actionAlertIcon="_actionAlertIcon_kgogb_35",actionAlertTitle="_actionAlertTitle_kgogb_46",eligible="_eligible_kgogb_52",title="_title_kgogb_57",highlightsList="_highlightsList_kgogb_64",keywordsList="_keywordsList_kgogb_72",keyword="_keyword_kgogb_72",exceptions="_exceptions_kgogb_101",exceptionsIconContainer="_exceptionsIconContainer_kgogb_107",exceptionsIcon="_exceptionsIcon_kgogb_107",exceptionsTitle="_exceptionsTitle_kgogb_116",exception="_exception_kgogb_101",exceptionItem="_exceptionItem_kgogb_124",exceptionsList="_exceptionsList_kgogb_131",styles$g={container,actionAlert,ineligible,stepsToApply,actionAlertIcon,actionAlertTitle,eligible,title,highlightsList,keywordsList,keyword,exceptions,exceptionsIconContainer,exceptionsIcon,exceptionsTitle,exception,exceptionItem,exceptionsList},ActionAlert=({eligibilityStatus:C,metric:$,onScrollToEnd:V})=>{const{analytics:F,setActiveTab:K}=useJobPreview(),J=()=>{K(JOB_BODY_TABS.REQUIREMENTS.key),V(),F==null||F.click("Job Highlights - Complete Tasks",PRODUCT_NAME)};return C===ELIGIBILITY_TYPES.ineligible?React.createElement("div",{className:classNames(styles$g.actionAlert,styles$g.ineligible)},React.createElement(ExclamationCircleOutlined$1,null),React.createElement("span",{className:styles$g.actionAlertTitle},"Unfortunately! Your profile does not have the relevant years of experience for this role")):C===ELIGIBILITY_TYPES.steps_to_apply?React.createElement(ActionBanner,{icon:React.createElement(ClockCircleTwoTone$1,{className:styles$g.actionAlertIcon}),title:`Eligible to apply in ${$} more steps!`,description:"Complete these three test to become eligible to apply!",buttonText:"Complete Tasks",buttonIcon:React.createElement(EditOutlined$1,null),className:styles$g.stepsToApply,onClick:J}):null},HighlightsList=({highlights:C})=>React.createElement(React.Fragment,null,React.createElement("div",{className:styles$g.title},"Top Reasons to Apply"),React.createElement("ul",{className:styles$g.highlightsList},C==null?void 0:C.map($=>React.createElement("li",{key:$,className:styles$g.highlight},React.createElement("span",{className:styles$g.highlightText},$))))),Keywords=({keywords:C,eligibilityStatus:$})=>React.createElement("div",{className:styles$g.keywordsList},C==null?void 0:C.map((V,F)=>React.createElement("div",{key:F,className:classNames(styles$g.keyword,styles$g[toCamelCase($)])},V))),Exceptions=({exceptionalJob:C})=>{if(!C)return null;const $=["Considering your current profile and preferences, you seem to be a right fit","Which means that you get to apply to this job irrespective of the requirements mentioned below","So in case this matches what you are looking for, please apply"];return React.createElement("div",{className:styles$g.exceptions},React.createElement("div",{className:styles$g.exceptionsIconContainer},React.createElement(StarTwoTone$1,{size:20,twoToneColor:"#FAAD14",className:styles$g.exceptionsIcon})),React.createElement("div",null,React.createElement("div",{className:styles$g.exceptionsTitle},"We've made an exception for you!"),React.createElement("ul",{className:styles$g.exceptionsList},$.map((V,F)=>React.createElement("li",{className:[styles$g.exception],key:F},V)))))},JobHighlights=()=>{const{jobData:C,highlights:$,eligibilityCriteria:V,currentTab:F}=useJobPreview(),K=React.useRef(null),{highlights:J,keywords:ee}=$||(C==null?void 0:C.highlights)||{},{tag:te,count:ne}=determineJobTag(C,V||{}),re=()=>{if(K.current&&typeof window!="undefined"){const oe=K.current.getBoundingClientRect(),ie=oe.top+window.pageYOffset,se=oe.height,ce=window.innerHeight,de=ie+se-ce/2;window.scrollTo({top:de,behavior:"smooth"})}};return F===TAG_TO_TAB_MAPPING.applied||!(J!=null&&J.length)?null:React.createElement("div",{ref:K,className:classNames(styles$g.container,styles$g[te])},React.createElement(ActionAlert,{eligibilityStatus:te,metric:ne,onScrollToEnd:re}),React.createElement(HighlightsList,{highlights:J}),React.createElement(Keywords,{keywords:ee,eligibilityStatus:te}),React.createElement(Exceptions,{exceptionalJob:C==null?void 0:C.exceptionalJob}))},expandedJobView="_expandedJobView_1lt4c_2",loadingCard="_loadingCard_1lt4c_18",styles$f={expandedJobView,loadingCard},ExpandedJobViewContent=()=>React.createElement("div",{className:styles$f.expandedJobView},React.createElement(ExpandedJobViewHeader,null),React.createElement(JobHighlights,null),React.createElement(ScreeningCallBanner,null),React.createElement(InterviewExperiencesBanner,null),React.createElement(ExpandedJobViewBody,null)),ExpandedJobView=({analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,isActive:J,currentTab:ee,onUploadFile:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae})=>{var de;const{data:oe,isLoading:ie,isFetching:se,error:ce}=useGetJobPreviewQuery(K,{skip:!K||!J});return!J||!K?null:ie||se?React.createElement(Card$1,{className:`${styles$f.expandedJobView} ${styles$f.loadingCard}`},React.createElement(Spin$1,{size:"large"})):ce?React.createElement(Card$1,{className:styles$f.expandedJobView},React.createElement(Alert$1,{type:"error",message:"Failed to load job details",description:((de=ce==null?void 0:ce.data)==null?void 0:de.message)||(ce==null?void 0:ce.message)||"Please try again later",showIcon:!0})):oe?React.createElement(App$1,null,React.createElement(JobPreviewProvider,{analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,skip:!J,currentTab:ee,onCloseResumeBuilder:ae},React.createElement(ExpandedJobViewContent,null),React.createElement(JobApplicationForm,{currentTab:ee,onUploadFile:te,onEditResume:ne,onAddResume:re}))):null},jobDetails="_jobDetails_1gavc_1",styles$e={jobDetails};function JobDetails({analytics:C,country:$,openMockInterviewModal:V,openResume:F,jobId:K,className:J,onUploadFile:ee,currentTab:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae}){return React.useEffect(()=>{K&&(C==null||C.view("Job Details - Render",PRODUCT_NAME,{jobId:K,currentTab:te}))},[C,te,K]),K?React.createElement("div",{className:classNames(styles$e.jobDetails,J)},React.createElement(ExpandedJobView,{analytics:C,onUploadFile:ee,country:$,openMockInterviewModal:V,openResume:F,jobId:K,isActive:!!K,currentTab:te,onEditResume:ne,onAddResume:re,onCloseResumeBuilder:ae})):null}JobDetails.propTypes={country:PropTypes.string,openMockInterviewModal:PropTypes.func,openResume:PropTypes.func,jobId:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),className:PropTypes.string},JobDetails.defaultProps={jobId:null,className:""};const transformJobsData=C=>{if(!C||!(C!=null&&C.data)||!Array.isArray(C==null?void 0:C.data))return[];const $={};return C!=null&&C.included&&Array.isArray(C==null?void 0:C.included)&&(C==null||C.included.forEach(V=>{V.type==="company"&&V.attributes&&($[V.id]=V.attributes)})),C==null?void 0:C.data.map(V=>{if(V.type!=="job_profile"||!V.attributes)return null;const F=V.attributes,K=V.relationships||{};let J=null;if(K.company&&K.company.data){const te=K.company.data.id;J=$[te]||null}return{id:parseInt(V.id,10),title:F.title||"",name:F.title||"",slug:F.slug||"",jobDesc:F.job_desc||"",jobDescText:F.job_desc_text||"",minExperience:F.min_experience?parseFloat(F.min_experience):null,maxExperience:F.max_experience?parseFloat(F.max_experience):null,minCtc:F.min_ctc?parseFloat(F.min_ctc):null,maxCtc:F.max_ctc?parseFloat(F.max_ctc):null,validTill:F.valid_till||null,createdAt:F.created_at||null,jobType:F.job_type||null,preferredCities:F.preferred_cities||"",preferredNoticePeriod:F.preferred_notice_period||null,meritBasedSkills:F.merit_based_skills||[],contestSkills:F.contest_skills||[],applicationStatus:F.application_status||null,expiry:F.expiry||null,applicationId:F.application_id||null,userCompanyStatus:F.user_company_status||null,applicationLastUpdatedAt:F.application_last_upated_at||null,jobSource:F.job_source||null,jobProfileId:F.job_profile_id||null,jobProfileStatus:F.job_profile_status||"active",datePostedOn:F.date_posted_on||null,openForDiscussionCtc:F.open_for_discussion_ctc||!1,appliedOn:F.applied_on||null,seniorityLevel:F.seniority_level||null,roleType:F.role_type||"full_time",duration:F.duration||null,stipend:F.stipend||null,eligibilityCriteria:F.eligibility_criteria||{is_eligible:!1,reasons:[]},exceptionalJob:F.exceptional_job||!1,isRelevant:F.is_relevant||!1,isInternship:F.role_type==="internship",company:J?[parseInt(K.company.data.id,10)]:[],logo:(J==null?void 0:J.logo)||null,companyName:(J==null?void 0:J.name)||null,companySlug:(J==null?void 0:J.slug)||null,companyLocation:(J==null?void 0:J.location)||null,companyWebsite:(J==null?void 0:J.company_website)||null,companyVision:(J==null?void 0:J.company_vision)||null,companyTagline:(J==null?void 0:J.tagline)||null,companyCategory:(J==null?void 0:J.category)||null,companyEmployeeCount:(J==null?void 0:J.employee_count)||null}}).filter(Boolean)},createCompaniesMap=C=>{const $={};return C!=null&&C.included&&Array.isArray(C.included)&&C.included.forEach(V=>{V.type==="company"&&V.attributes&&($[V.id]=zn({id:V.id},V.attributes))}),$},normalizeJobsResponse=(C={})=>{var J,ee,te,ne;const $=C.jobs_data||C,V=transformJobsData($),F=createCompaniesMap($),K=(ne=(te=(J=C.total_entries)!=null?J:$.total_entries)!=null?te:(ee=$==null?void 0:$.meta)==null?void 0:ee.total_entries)!=null?ne:null;return{jobs:V,companiesMap:F,results:V,totalEntries:K}},jobsService=careerHubApi.injectEndpoints({endpoints:C=>({fetchAllJobs:C.query({query:($={})=>({url:"/job-tracker/fetch-all-jobs/",method:"POST",body:$}),transformResponse:normalizeJobsResponse,providesTags:["Jobs"]}),fetchPipelineJobs:C.query({query:($={})=>({url:"/job-tracker/fetch-pipeline-jobs/",method:"POST",body:$}),transformResponse:normalizeJobsResponse,providesTags:["PipelineJobs"]}),fetchRelevantJobs:C.query({query:($={})=>({url:"/job-tracker/relevancy/",method:"POST",body:gr(zn({},$),{include_exceptional_jobs:!0})}),transformResponse:normalizeJobsResponse,providesTags:["RelevantJobs"]})})}),{useFetchAllJobsQuery,useFetchPipelineJobsQuery,useFetchRelevantJobsQuery}=jobsService,header$1="_header_t7ugs_1",jobTitle="_jobTitle_t7ugs_6",titleContainer="_titleContainer_t7ugs_14",titleContainerExpanded="_titleContainerExpanded_t7ugs_19",titleContainerCollapsed="_titleContainerCollapsed_t7ugs_23",companyName="_companyName_t7ugs_27",actions="_actions_t7ugs_32",styles$d={header:header$1,jobTitle,titleContainer,titleContainerExpanded,titleContainerCollapsed,companyName,actions},{Title:Title$1,Text:Text$2}=Typography$1,JobTitleAndCompany=({title:C,companyName:$,isExpanded:V})=>React.createElement(Space$1,{direction:"vertical",size:4,className:classNames(styles$d.titleContainer,{[styles$d.titleContainerExpanded]:V,[styles$d.titleContainerCollapsed]:!V})},React.createElement(Title$1,{level:5,className:styles$d.jobTitle,ellipsis:{rows:1}},C),React.createElement(Text$2,{ellipsis:!0,className:styles$d.companyName},$));JobTitleAndCompany.propTypes={title:PropTypes.string.isRequired,companyName:PropTypes.string.isRequired,isExpanded:PropTypes.bool},JobTitleAndCompany.defaultProps={isExpanded:!1};const tag="_tag_5fhgn_1",styles$c={tag},ICON_MAP={CheckCircleOutlined:CheckCircleOutlined$1,CloseCircleOutlined:CloseCircleOutlined$1,ClockCircleOutlined:ClockCircleOutlined$1,RocketOutlined:RocketOutlined$1},EligibilityTag=({jobData:C,currentTab:$})=>{const V=determineJobTag(C,C.eligibilityCriteria);if(!V)return null;const F=ICON_MAP[V.icon];return React.createElement(Tag$1,{icon:F&&React.createElement(F,null),color:V.antdColor,className:styles$c.tag,style:V.tag==="expired"?{color:V.color,borderColor:V.color}:{}},V.text)};EligibilityTag.propTypes={jobData:PropTypes.shape({isRelevant:PropTypes.bool,expiry:PropTypes.string,jobProfileStatus:PropTypes.string,eligibilityCriteria:PropTypes.shape({isEligible:PropTypes.bool,reasons:PropTypes.arrayOf(PropTypes.shape({label:PropTypes.string,isEligible:PropTypes.bool,data:PropTypes.object}))})}).isRequired,currentTab:PropTypes.string},EligibilityTag.defaultProps={currentTab:"all"};const JobCardActions=({jobData:C,currentTab:$})=>React.createElement("div",{className:styles$d.actions},React.createElement(EligibilityTag,{jobData:C,currentTab:$}));JobCardActions.propTypes={jobData:PropTypes.object.isRequired,currentTab:PropTypes.string},JobCardActions.defaultProps={currentTab:"all"};const JobCardHeader=({jobData:C,companiesList:$,currentTab:V,isExpanded:F})=>{var J;const K=C.companyName||C.company&&C.company[0]&&((J=$[C.company[0]])==null?void 0:J.name)||"";return React.createElement(Row$1,{gutter:[12,8],className:styles$d.header},React.createElement(Col$1,{flex:"auto"},React.createElement(Row$1,{gutter:12,align:"top",wrap:!1},React.createElement(Col$1,null,React.createElement(CompanyLogo,{logo:C.logo,company:C.company,companiesList:$,companyName:K})),React.createElement(Col$1,{flex:"auto"},React.createElement(JobTitleAndCompany,{title:C.title,companyName:K,isExpanded:F})))),React.createElement(Flex$1,null,React.createElement(JobCardActions,{jobData:C,currentTab:V})))};JobCardHeader.propTypes={jobData:PropTypes.object.isRequired,companiesList:PropTypes.object,currentTab:PropTypes.string,isExpanded:PropTypes.bool},JobCardHeader.defaultProps={companiesList:{},currentTab:"all",isExpanded:!1};const saveButton="_saveButton_1g9sw_1",savedButton="_savedButton_1g9sw_12",styles$b={saveButton,savedButton},SaveButton=({analytics:C,jobProfileId:$,applicationStatus:V,applicationLastUpdatedAt:F,onSave:K,disabled:J=!1})=>{const[ee,te]=React.useState(!1),ne=reactRedux.useSelector(ie=>{var se,ce,de;return(de=(ce=(se=ie.scalantCareerHub)==null?void 0:se.savedJobs)==null?void 0:ce.savedJobs)==null?void 0:de[$]}),re=ne?ne.status==="Saved":V==="Saved",ae=(ne==null?void 0:ne.lastUpdatedAt)||F,oe=ie=>sr(this,null,function*(){if(ie.stopPropagation(),!re){C==null||C.click("Job Card - Save",PRODUCT_NAME),te(!0);try{yield K($,"save")}catch(se){}finally{te(!1)}}});return re&&ae?React.createElement(Button$2,{type:"text",icon:React.createElement(SaveTwoTone$1,{twoToneColor:"#8c8c8c"}),onClick:oe,disabled:!0,className:styles$b.savedButton,style:{color:"#8c8c8c"},size:"small"},"Saved on ",formatDate(ae)):React.createElement(Button$2,{type:"text",icon:React.createElement(SaveOutlined$1,{twoToneColor:"#006AFF"}),onClick:oe,disabled:J||ee,loading:ee,className:styles$b.saveButton,size:"small"},re?"Saved":"Save")};SaveButton.propTypes={analytics:PropTypes.object,jobProfileId:PropTypes.number.isRequired,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string,onSave:PropTypes.func.isRequired,disabled:PropTypes.bool},SaveButton.defaultProps={applicationStatus:"Not Applied",applicationLastUpdatedAt:null,disabled:!1};const body="_body_10o1d_1",detailsRowContainer="_detailsRowContainer_10o1d_7",detailsRow="_detailsRow_10o1d_7",detailText="_detailText_10o1d_23",saveButtonWrapper="_saveButtonWrapper_10o1d_29",styles$a={body,detailsRowContainer,detailsRow,detailText,saveButtonWrapper},{Text:Text$1}=Typography$1,DetailItem=({text:C})=>C?React.createElement(Text$1,{className:styles$a.detailText},C):null;DetailItem.propTypes={text:PropTypes.string};const JobDetailsRow=({analytics:C,jobData:$,cardConfig:V,userCountry:F,onSave:K,selectedJobId:J})=>{const{preferredCities:ee,minExperience:te,maxExperience:ne,minCtc:re,maxCtc:ae,openForDiscussionCtc:oe,isInternship:ie,stipend:se,preferredNoticePeriod:ce}=$,de=formatLocation(ee),le=J===null&&V.isExperienceCtcAvailable?formatExperience$1(te,ne):null,ve=V.isExperienceCtcAvailable?formatCtc({minCtc:re,maxCtc:ae,openForDiscussionCtc:oe,isInternship:ie,stipend:se,userCountry:F}):null,fe=J===null&&V.isNoticePeriodAvailable?formatNoticePeriod(ce):null,he=[de&&{text:de},le&&{text:le},ve&&{text:ve},fe&&{text:fe}].filter(Boolean);return React.createElement("div",{className:styles$a.detailsRowContainer},he.length>0&&React.createElement(Space$1,{split:React.createElement(Divider$1,{type:"vertical"}),className:styles$a.detailsRow},he.map((me,ue)=>React.createElement(DetailItem,{key:ue,text:me.text}))),React.createElement("div",{className:styles$a.saveButtonWrapper},React.createElement(SaveButton,{analytics:C,jobProfileId:$.id,applicationStatus:$.applicationStatus,applicationLastUpdatedAt:$.applicationLastUpdatedAt,onSave:K})))};JobDetailsRow.propTypes={analytics:PropTypes.object,jobData:PropTypes.shape({id:PropTypes.number.isRequired,preferredCities:PropTypes.string,minExperience:PropTypes.number,maxExperience:PropTypes.number,minCtc:PropTypes.number,maxCtc:PropTypes.number,openForDiscussionCtc:PropTypes.bool,isInternship:PropTypes.bool,stipend:PropTypes.string,preferredNoticePeriod:PropTypes.number,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string}).isRequired,cardConfig:PropTypes.shape({isExperienceCtcAvailable:PropTypes.bool,isNoticePeriodAvailable:PropTypes.bool}).isRequired,userCountry:PropTypes.oneOf(["IN","US"]),onSave:PropTypes.func.isRequired,selectedJobId:PropTypes.number},JobDetailsRow.defaultProps={userCountry:"IN",selectedJobId:null};const JobCardBody=({analytics:C,jobData:$,cardConfig:V,userCountry:F,onSave:K,selectedJobId:J})=>React.createElement("div",{className:styles$a.body},React.createElement(JobDetailsRow,{analytics:C,jobData:$,cardConfig:V,userCountry:F,onSave:K,selectedJobId:J}));JobCardBody.propTypes={analytics:PropTypes.object,jobData:PropTypes.object.isRequired,cardConfig:PropTypes.object.isRequired,userCountry:PropTypes.oneOf(["IN","US"]),onSave:PropTypes.func.isRequired,selectedJobId:PropTypes.number},JobCardBody.defaultProps={userCountry:"IN",selectedJobId:null};const jobCard="_jobCard_nu53j_1",expired="_expired_nu53j_12",active="_active_nu53j_15",archived="_archived_nu53j_28",cardContent="_cardContent_nu53j_37",styles$9={jobCard,expired,active,archived,cardContent},JobCard=({analytics:C,jobData:$,isActive:V,currentTab:F,onClick:K,onSave:J,companiesList:ee,userCountry:te,className:ne,selectedJobId:re})=>{const{cardConfig:ae,shouldShowBody:oe}=useJobCardState({currentTab:F,isActive:V,jobData:$}),ie=()=>{C==null||C.click("Job Card - Click",PRODUCT_NAME),K&&K($.id)};return React.createElement(Card$1,{className:classNames(styles$9.jobCard,{[styles$9.active]:V,[styles$9.archived]:$.applicationStatus==="Archived"},ne),onClick:ie},React.createElement("div",{className:styles$9.cardContent},React.createElement(JobCardHeader,{jobData:$,companiesList:ee,currentTab:F,isExpanded:!re}),oe&&React.createElement(JobCardBody,{analytics:C,jobData:$,cardConfig:ae,userCountry:te,onSave:J,selectedJobId:re})))};JobCard.propTypes={analytics:PropTypes.object,jobData:PropTypes.shape({id:PropTypes.number.isRequired,title:PropTypes.string.isRequired,name:PropTypes.string.isRequired,company:PropTypes.arrayOf(PropTypes.number),logo:PropTypes.string,preferredCities:PropTypes.string,expiry:PropTypes.string,jobProfileStatus:PropTypes.string,isRelevant:PropTypes.bool,applicationStatus:PropTypes.string,applicationLastUpdatedAt:PropTypes.string,minExperience:PropTypes.number,maxExperience:PropTypes.number,minCtc:PropTypes.number,maxCtc:PropTypes.number,preferredNoticePeriod:PropTypes.number,openForDiscussionCtc:PropTypes.bool,isInternship:PropTypes.bool,stipend:PropTypes.string,eligibilityCriteria:PropTypes.shape({isEligible:PropTypes.bool,reasons:PropTypes.arrayOf(PropTypes.object)})}).isRequired,isActive:PropTypes.bool,currentTab:PropTypes.string,onClick:PropTypes.func,onSave:PropTypes.func.isRequired,companiesList:PropTypes.object,userCountry:PropTypes.oneOf(["IN","US"]),className:PropTypes.string,selectedJobId:PropTypes.number},JobCard.defaultProps={isActive:!1,currentTab:"all",onClick:null,companiesList:{},userCountry:"IN",className:""};const heading="_heading_wipd0_1",spinner="_spinner_wipd0_8",alert="_alert_wipd0_14",header="_header_wipd0_18",sentinel="_sentinel_wipd0_23",loadingMore="_loadingMore_wipd0_30",jobsList="_jobsList_wipd0_39",noJobsContainer="_noJobsContainer_wipd0_45",noJobsImage="_noJobsImage_wipd0_55",noJobsHeading="_noJobsHeading_wipd0_59",styles$8={heading,spinner,alert,header,sentinel,loadingMore,jobsList,noJobsContainer,noJobsImage,noJobsHeading},{Title,Text}=Typography$1,TAB_HEADINGS={[TAG_TO_TAB_MAPPING.relevant]:"Preferred Jobs",[TAG_TO_TAB_MAPPING.all]:"All Jobs",[TAG_TO_TAB_MAPPING.saved]:"Saved Jobs",[TAG_TO_TAB_MAPPING.applied]:"Applied Jobs"};function JobsList({analytics:C,className:$,currentTab:V,jobs:F=[],companiesMap:K={},isLoading:J=!1,error:ee=null,isFetchingMore:te=!1,hasMore:ne=!0}){var pe;const re=reactRedux.useDispatch(),ae=reactRedux.useSelector(ye=>{var be,ge;return((ge=(be=ye.scalantCareerHub)==null?void 0:be.dashboard)==null?void 0:ge.processCounts)||{}}),oe=ne!==void 0?ne:!0,[ie]=useUpdateApplicationStatusMutation(),{selectedJobId:se,updateJobId:ce,updateTab:de}=useJobQueryParams({syncToURL:!0,syncFromURL:!1}),{sentinelRef:le}=useInfiniteScroll({hasMore:oe,isLoading:J,isFetchingMore:te});React.useEffect(()=>{F&&F.length>0&&re(initializeSavedJobs(F))},[F,re]),React.useEffect(()=>{if(F&&F.length>0){const be=new URLSearchParams(window.location.search).get("job_ids");if(be){const ge=Number(be),_e=F.find(Se=>Se.id===ge||Se.jobProfileId===ge||String(Se.id)===be||String(Se.jobProfileId)===be);_e&&se!==_e.id&&ce(_e.id)}}},[F,se,ce]);const ve=ye=>{C==null||C.click("Jobs List - Job Card Click",PRODUCT_NAME),se===ye?(ce(null),re(updateFormFilters({job_ids:null}))):ce(ye)},fe=(ye,be)=>sr(this,null,function*(){if(be!=="save")return;const _e=yield ie({job_profile_id:ye,update_action:"save"}).unwrap();return re(setJobSavedStatus({jobId:ye,status:"Saved",lastUpdatedAt:(_e==null?void 0:_e.applicationLastUpdatedAt)||new Date().toISOString()})),_e}),he=()=>{C==null||C.click("Jobs List - Go to All Jobs",PRODUCT_NAME),de(TAG_TO_TAB_MAPPING.all)},me=TAB_HEADINGS[V]||TAB_HEADINGS[TAG_TO_TAB_MAPPING.all],ue=()=>ae[V]||0;return J?React.createElement("div",{className:$},React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ue()," Found")),React.createElement(Text,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),React.createElement(Spin$1,{size:"large",className:styles$8.spinner})):ee?React.createElement("div",{className:$},React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ue()," Found")),React.createElement(Text,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),React.createElement("div",{className:styles$8.header},React.createElement(Alert$1,{message:"Error loading jobs",description:((pe=ee==null?void 0:ee.data)==null?void 0:pe.message)||(ee==null?void 0:ee.message)||"Failed to fetch jobs. Please try again later.",type:"error",showIcon:!0,className:styles$8.alert}))):!F||F.length===0?React.createElement("div",{className:$},React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ue()," Found")),React.createElement(Text,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),React.createElement("div",{className:styles$8.noJobsContainer},React.createElement("img",{src:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/171/464/original/3cd470a8085619f7775acfa9e3f15053ee5eb687.png?1766383387",alt:"No Jobs Found",className:styles$8.noJobsImage}),React.createElement(Title,{level:3,className:styles$8.noJobsHeading},"No Suitable Roles Available at the Moment"),React.createElement(Text,{className:styles$8.noJobsText},"Your current preferences do not match any active opportunities, Please visit the All Jobs section to explore existing job opportunities."),React.createElement(Button$2,{type:"primary",onClick:he},"Go to All Jobs ",React.createElement(RightOutlined$1,null)))):React.createElement("div",{className:$},React.createElement(Space$1,{direction:"vertical",className:styles$8.header},React.createElement(Title,{level:4,className:styles$8.heading},me," ",React.createElement(Tag$1,{color:"green"},ue()," Found")),React.createElement(Text,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),React.createElement("div",{className:styles$8.jobsList},F.map(ye=>React.createElement(JobCard,{key:ye.id,jobData:ye,isActive:se===ye.id,currentTab:V,analytics:C,onClick:ve,onSave:fe,companiesList:K,userCountry:"IN",selectedJobId:se})),oe&&React.createElement("div",{ref:le,className:styles$8.sentinel},te&&React.createElement("div",{className:styles$8.loadingMore},React.createElement(Spin$1,{size:"small"}),React.createElement("span",null,"Loading more jobs...")))))}JobsList.propTypes={analytics:PropTypes.object,className:PropTypes.string,currentTab:PropTypes.string,jobs:PropTypes.arrayOf(PropTypes.object),companiesMap:PropTypes.object,isLoading:PropTypes.bool,error:PropTypes.object,isFetchingMore:PropTypes.bool,hasMore:PropTypes.bool},JobsList.defaultProps={className:"",currentTab:TAG_TO_TAB_MAPPING.relevant,jobs:[],companiesMap:{},isLoading:!1,error:null,isFetchingMore:!1,hasMore:!0};const relevantJobsPage="_relevantJobsPage_19xbf_1",styles$7={relevantJobsPage};function RelevantJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchRelevantJobsQuery($),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.relevant);return React.createElement("div",{className:styles$7.relevantJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.relevant,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const allJobsPage="_allJobsPage_10f3p_1",styles$6={allJobsPage};function AllJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchAllJobsQuery($),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.all);return React.createElement("div",{className:styles$6.allJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.all,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const savedJobsPage="_savedJobsPage_km19z_1",styles$5={savedJobsPage};function SavedJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchPipelineJobsQuery(zn({type:TAG_TO_TAB_MAPPING.saved},$)),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.saved);return React.createElement("div",{className:styles$5.savedJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.saved,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const appliedJobsPage="_appliedJobsPage_lw2yt_1",styles$4={appliedJobsPage};function AppliedJobsPage({analytics:C}){const $=useJobFilters(),{data:V,isLoading:F,error:K,isFetching:J}=useFetchPipelineJobsQuery(zn({type:TAG_TO_TAB_MAPPING.applied},$)),{accumulatedJobs:ee,accumulatedCompaniesMap:te,hasMore:ne,isFetchingMore:re,isLoading:ae}=useAccumulatedJobs(V,J,F,TAG_TO_TAB_MAPPING.applied);return React.createElement("div",{className:styles$4.appliedJobsPage},React.createElement(JobsList,{analytics:C,currentTab:TAG_TO_TAB_MAPPING.applied,jobs:ee,companiesMap:te,isLoading:ae,error:K,isFetchingMore:re,hasMore:ne}))}const ExpertMbeRating=({fieldName:C,subjectOptions:$,ratingOptions:V})=>{const F=reactRedux.useDispatch(),J=reactRedux.useSelector(de=>de.scalantCareerHub.filterForm)[C],ee=React.useMemo(()=>J||{},[J]),te=React.useMemo(()=>typeof ee=="object"&&!Array.isArray(ee)?ee:{},[ee]);React.useEffect(()=>{(!ee||Object.keys(te).length===0)&&F(addRatingFilterInput())},[ee,te,F]);const ne=React.useMemo(()=>Object.values(te).map(de=>{var le;return((le=de==null?void 0:de.subject)==null?void 0:le.key)||(de==null?void 0:de.subject)}).filter(Boolean),[te]),re=React.useMemo(()=>$.filter(de=>!ne.includes(de.key)),[$,ne]),ae=React.useCallback(()=>{F(addRatingFilterInput())},[F]),oe=React.useCallback(de=>{F(deleteRatingFilterInput({inputFieldKey:de}))},[F]),ie=React.useCallback((de,le)=>{const ve=$.find(fe=>fe.key===le);F(updateRatingFilterInput({inputFilterSubKey:`${de}_subject`,value:ve||le}))},[$,F]),se=React.useCallback((de,le)=>{F(updateRatingFilterInput({inputFilterSubKey:`${de}_rating`,value:le}))},[F]),ce=Object.keys(te);return React.createElement(Space$1,{direction:"vertical",style:{width:"100%"},size:"middle"},ce.map(de=>{var me;const le=te[de],ve=((me=le==null?void 0:le.subject)==null?void 0:me.key)||(le==null?void 0:le.subject),fe=le==null?void 0:le.rating,he=[...$.filter(ue=>ue.key===ve),...re];return React.createElement(Row$1,{key:de,gutter:16,align:"middle"},React.createElement(Col$1,{span:10},React.createElement(Select$1,{placeholder:"Select skill",value:ve,onChange:ue=>ie(de,ue),showSearch:!0,filterOption:(ue,pe)=>{var ye;return((ye=pe==null?void 0:pe.label)!=null?ye:"").toLowerCase().includes(ue.toLowerCase())},options:he.map(ue=>({label:ue.value,value:ue.key}))})),React.createElement(Col$1,{span:10},React.createElement(Select$1,{placeholder:"Select rating",value:fe,onChange:ue=>se(de,ue),options:V.map(ue=>({label:ue.label,value:ue.value}))})),React.createElement(Col$1,{span:4},React.createElement(Space$1,null,React.createElement(Button$2,{type:"text",icon:React.createElement(PlusOutlined$1,null),onClick:ae,style:{color:"#1890ff"}}),ce.length>1&&React.createElement(Button$2,{type:"text",icon:React.createElement(DeleteOutlined$1,null),onClick:()=>oe(de),danger:!0}))))}))};ExpertMbeRating.propTypes={fieldName:PropTypes.string.isRequired,subjectOptions:PropTypes.arrayOf(PropTypes.shape({key:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),value:PropTypes.string})).isRequired,ratingOptions:PropTypes.arrayOf(PropTypes.shape({value:PropTypes.oneOfType([PropTypes.string,PropTypes.number]),label:PropTypes.string})).isRequired};const drawerContent="_drawerContent_fqkgw_1",filterForm="_filterForm_fqkgw_5",drawerHeaderSubtitle$1="_drawerHeaderSubtitle_fqkgw_9",filterIcon$1="_filterIcon_fqkgw_14",buttonContainer="_buttonContainer_fqkgw_18",drawer="_drawer_fqkgw_1",styles$3={drawerContent,filterForm,drawerHeaderSubtitle:drawerHeaderSubtitle$1,filterIcon:filterIcon$1,buttonContainer,drawer},{Option:Option$1}=Select$1;function FilterForm(){var Se,Ee,Ce,xe;const C=reactRedux.useDispatch(),$=reactRedux.useSelector($e=>$e.scalantCareerHub.filterForm),V=reactRedux.useSelector($e=>$e.scalantCareerHub.filterOptions||{}),[F]=Form$1.useForm();React.useEffect(()=>{F.setFieldsValue($)},[F,$]);const{handleCompanySearch:K,handleTitleSearch:J,handleExperienceSkillSearch:ee,handleExperienceSkillChange:te,loadingCompanies:ne,loadingTitles:re,loadingExperienceSkills:ae}=useAsyncFilterOptions(),{jobTypes:oe,functions:ie,seniorityLevels:se,companyCategories:ce,locations:de,mbeSkills:le,ctcRanges:ve,stipendRanges:fe,durationRanges:he,noticePeriods:me,datePostedOptions:ue,skillRatings:pe}=useFilterMetaOptions(),ye=($e,Ie)=>{C(updateFormField({field:$e,value:Ie}))},be=$.role_type,ge=be==="full_time",_e=be==="internship";return React.createElement(Form$1,{layout:"vertical",className:styles$3.filterForm,form:F,initialValues:$},React.createElement(Form$1.Item,{label:"Job Types",name:"role_type"},React.createElement(Select$1,{placeholder:"Select job profile",value:$.role_type,onChange:$e=>ye("role_type",$e)},oe.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Company Name",name:"company_ids"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search company",filterOption:!1,onSearch:K,loading:ne,value:$.company_ids,onChange:$e=>ye("company_ids",$e),notFoundContent:ne?"Loading...":"Type at least 3 characters to search"},(Se=V.companyOptions)==null?void 0:Se.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Title",name:"job_title"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search job title",filterOption:!1,onSearch:J,loading:re,value:$.job_title,onChange:$e=>ye("job_title",$e),notFoundContent:re?"Loading...":"Type at least 3 characters to search"},(Ee=V.titleOptions)==null?void 0:Ee.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.value},$e.value)))),React.createElement(Form$1.Item,{label:"Function",name:"job_category"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select function",value:$.job_category,onChange:$e=>ye("job_category",$e)},ie.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Role seniority level",name:"seniority_level"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select level",value:$.seniority_level,onChange:$e=>ye("seniority_level",$e)},se.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Company category",name:"company_categories"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select category",value:$.company_categories,onChange:$e=>ye("company_categories",$e)},ce.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))))),React.createElement(Form$1.Item,{label:"Location",name:"location"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select location",value:$.location,onChange:$e=>ye("location",$e)},de.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.value},$e.value)))),!_e&&React.createElement(Form$1.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_ctc,onChange:$e=>ye("min_ctc",$e)},ve.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))),!ge&&React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Stipend (INR per month)",name:"min_stipend"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_stipend,onChange:$e=>ye("min_stipend",$e)},fe.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Internship duration (in months)",name:"min_duration"},React.createElement(Select$1,{placeholder:"Select range",value:$.min_duration,onChange:$e=>ye("min_duration",$e)},he.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))))),React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Notice period requirement",name:"notice_period"},React.createElement(Select$1,{placeholder:"Choose period",value:$.notice_period,onChange:$e=>ye("notice_period",$e)},me.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label))))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{label:"Job posted date",name:"date_posted_on"},React.createElement(Select$1,{placeholder:"Pick date",value:$.date_posted_on,onChange:$e=>ye("date_posted_on",$e)},ue.map($e=>React.createElement(Option$1,{key:$e.value,value:$e.value},$e.label)))))),React.createElement(Form$1.Item,{label:"Expert Mock Interview Skills Required"},React.createElement(ExpertMbeRating,{fieldName:"mbe_skill_ids",subjectOptions:le,ratingOptions:pe})),React.createElement(Form$1.Item,{label:"Experienced based skills",name:"experience_skill_ids"},React.createElement(Select$1,{mode:"multiple",showSearch:!0,placeholder:"Search skills",filterOption:!1,onSearch:ee,loading:ae,value:((Ce=$.experience_skill_ids)==null?void 0:Ce.map($e=>typeof $e=="object"?$e.experience_skill_id:$e))||[],onChange:$e=>{const Ie=te($e,V.experienceSkillOptions);ye("experience_skill_ids",Ie)},notFoundContent:ae?"Loading...":"Type at least 2 characters to search"},(xe=V.experienceSkillOptions)==null?void 0:xe.map($e=>React.createElement(Option$1,{key:$e.key,value:$e.key},$e.value)))),React.createElement(Form$1.Item,{label:"Experience (Years)? *"},React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"min_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Minimum",type:"number",value:$.min_experience,onChange:$e=>ye("min_experience",$e.target.value)}))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"max_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Maximum",type:"number",value:$.max_experience,onChange:$e=>ye("max_experience",$e.target.value)}))))))}function FilterDrawerTitle({onClose:C}){return React.createElement(Flex$1,{vertical:!0},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{align:"center",gap:5},React.createElement(FilterOutlined$1,{className:styles$3.filterIcon}),"Filters"),React.createElement(CloseOutlined$1,{onClick:C})),React.createElement("div",{className:styles$3.drawerHeaderSubtitle},"Choose the kind of jobs you'd like to see displayed on this page"))}function FilterDrawer({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(te=>te.scalantCareerHub.dashboard.filterModalOpen),F=reactRedux.useSelector(te=>te.scalantCareerHub.filterForm),K=()=>{C==null||C.click("Filter Drawer - Close",PRODUCT_NAME),$(closeFilterModal())},J=()=>{var re,ae,oe,ie,se,ce,de;C==null||C.click("Filter Drawer - Apply",PRODUCT_NAME);let te;F.mbe_skill_ids&&typeof F.mbe_skill_ids=="object"&&!Array.isArray(F.mbe_skill_ids)&&Object.keys(F.mbe_skill_ids).length>0&&(te=Object.values(F.mbe_skill_ids).filter(le=>!le||le.rating===void 0||le.rating===null?!1:le.subject?typeof le.subject=="object"?le.subject.key!==void 0&&le.subject.key!==null:le.subject!==void 0&&le.subject!==null:!1).map(le=>{var fe;let ve;return typeof le.subject=="object"&&((fe=le.subject)==null?void 0:fe.key)!==void 0?ve=le.subject.key:ve=le.subject,{mbe_skill_id:ve,rating:le.rating}}),te.length===0&&(te=void 0));const ne={role_type:F.role_type||void 0,company_ids:(re=F.company_ids)!=null&&re.length?F.company_ids:void 0,job_title:(ae=F.job_title)!=null&&ae.length?F.job_title:void 0,job_category:(oe=F.job_category)!=null&&oe.length?F.job_category:void 0,seniority_level:(ie=F.seniority_level)!=null&&ie.length?F.seniority_level:void 0,location:(se=F.location)!=null&&se.length?F.location:void 0,min_ctc:F.min_ctc||void 0,min_stipend:F.min_stipend||void 0,min_duration:F.min_duration||void 0,notice_period:F.notice_period||void 0,date_posted_on:F.date_posted_on||void 0,mbe_skill_ids:te,experience_skill_ids:(ce=F.experience_skill_ids)!=null&&ce.length?F.experience_skill_ids:void 0,min_experience:F.min_experience||void 0,max_experience:F.max_experience||void 0,company_categories:(de=F.company_categories)!=null&&de.length?F.company_categories:void 0};Object.keys(ne).forEach(le=>{ne[le]===void 0&&delete ne[le]}),$(updateFiltersFromForm(ne)),updateURLWithFilters(ne),K()},ee=()=>{C==null||C.click("Filter Drawer - Reset",PRODUCT_NAME),$(resetForm()),$(clearAllOptions()),$(updateFiltersFromForm({})),updateURLWithFilters({})};return React.createElement(Drawer$1,{title:React.createElement(FilterDrawerTitle,{onClose:K}),placement:"right",onClose:K,open:V,closable:!1,width:550,className:styles$3.drawer},React.createElement("div",{className:styles$3.drawerContent},React.createElement(FilterForm,null),React.createElement("div",{className:styles$3.buttonContainer},React.createElement(Button$2,{className:styles$3.resetButton,onClick:ee},"Reset Filters"),React.createElement(Button$2,{type:"primary",className:styles$3.applyButton,onClick:J},"Apply"))))}const alertService=careerHubApi.injectEndpoints({endpoints:C=>({fetchAlerts:C.query({query:()=>({url:"/job-tracker/v1/alerts/list",method:"GET"}),transformResponse:$=>$.data||[],providesTags:["JobAlerts"]}),createAlert:C.mutation({query:$=>({url:"/job-tracker/v1/alerts/",method:"POST",body:$}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]}),updateAlertStatus:C.mutation({query:$=>({url:"/job-tracker/v1/alerts/update-status",method:"PATCH",body:$}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]}),deleteAlert:C.mutation({query:$=>({url:`/job-tracker/v1/alerts/${$}`,method:"DELETE"}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]}),updateAlert:C.mutation({query:({id:$,payload:V})=>({url:`/job-tracker/v1/alerts/${$}`,method:"PUT",body:V}),transformResponse:$=>$,invalidatesTags:["JobAlerts"]})})}),{useFetchAlertsQuery,useCreateAlertMutation,useUpdateAlertStatusMutation,useDeleteAlertMutation,useUpdateAlertMutation}=alertService,modalTitle="_modalTitle_gu1gu_1",modalTitleHeader="_modalTitleHeader_gu1gu_6",modalTitleContent="_modalTitleContent_gu1gu_12",modalCloseIcon="_modalCloseIcon_gu1gu_18",modalDescription="_modalDescription_gu1gu_22",modalFooter="_modalFooter_gu1gu_28",createAlertContent="_createAlertContent_gu1gu_34",formField="_formField_gu1gu_52",formLabel="_formLabel_gu1gu_57",requiredAsterisk="_requiredAsterisk_gu1gu_63",formInput="_formInput_gu1gu_67",experienceInputs="_experienceInputs_gu1gu_71",modal="_modal_gu1gu_1",radioGroup="_radioGroup_gu1gu_88",drawerHeaderSubtitle="_drawerHeaderSubtitle_gu1gu_94",filterIcon="_filterIcon_gu1gu_99",styles$2={modalTitle,modalTitleHeader,modalTitleContent,modalCloseIcon,modalDescription,modalFooter,createAlertContent,formField,formLabel,requiredAsterisk,formInput,experienceInputs,modal,radioGroup,drawerHeaderSubtitle,filterIcon},{Option}=Select$1;function JobAlertForm({form:C,initialValues:$,onSubmit:V,isSubmitting:F}){const{functions:K,locations:J,ctcRanges:ee}=useFilterMetaOptions(),[te,ne]=React.useState("realtime");React.useEffect(()=>{var oe,ie;if($&&C){const ce={[ALERT_FREQUENCY.REALTIME]:"realtime",[ALERT_FREQUENCY.DAILY]:"daily",[ALERT_FREQUENCY.ALTERNATE_DAY]:"alternate",[ALERT_FREQUENCY.WEEKLY]:"weekly"}[$.frequency]||"realtime",de={name:$.name,job_functions:$.job_functions||[],min_ctc:$.min_ctc,locations:$.locations||[],min_experience:((oe=$.min_experience)==null?void 0:oe.toString())||"",max_experience:((ie=$.max_experience)==null?void 0:ie.toString())||"",frequency:ce,notification_type:$.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL};C.setFieldsValue(de),ne(ce)}},[$,C]);const re=()=>sr(this,null,function*(){try{const oe=yield C.validateFields(),ie={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},se=oe.frequency==="realtime",ce={alert:{name:oe.name,job_functions:oe.job_functions||[],min_ctc:oe.min_ctc,locations:oe.locations||[],min_experience:oe.min_experience?parseInt(oe.min_experience,10):0,max_experience:oe.max_experience?parseInt(oe.max_experience,10):null,frequency:ie[oe.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:se&&oe.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL}};V&&(yield V(ce))}catch(oe){console.error("Error submitting form:",oe)}});React.useEffect(()=>{C&&V&&(C.submit=re)},[C,V]);const ae=Form$1.useWatch("frequency",C)||"realtime";return React.useEffect(()=>{ne(ae)},[ae]),React.createElement(Form$1,{form:C,layout:"vertical",className:styles$2.createAlertContent,initialValues:{frequency:"realtime"}},React.createElement(Form$1.Item,{label:"Alert Name",name:"name",rules:[{required:!0,message:"Please enter alert name"}]},React.createElement(Input$1,{placeholder:"Give your job alert a name"})),React.createElement(Form$1.Item,{label:"Job Function",name:"job_functions"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select job function",className:styles$2.formInput},K.map(oe=>React.createElement(Option,{key:oe.key,value:oe.key},oe.value)))),React.createElement(Form$1.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},React.createElement(Select$1,{placeholder:"Select range",className:styles$2.formInput},ee.map(oe=>React.createElement(Option,{key:oe.value,value:oe.value},oe.label)))),React.createElement(Form$1.Item,{label:"Locations?",name:"locations"},React.createElement(Select$1,{mode:"multiple",placeholder:"Select locations",className:styles$2.formInput},J.map(oe=>React.createElement(Option,{key:oe.key,value:oe.value},oe.value)))),React.createElement(Form$1.Item,{label:"Experience (Years)?"},React.createElement(Row$1,{gutter:16},React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"min_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Minimum",type:"number"}))),React.createElement(Col$1,{span:12},React.createElement(Form$1.Item,{name:"max_experience",noStyle:!0},React.createElement(Input$1,{placeholder:"Maximum",type:"number"}))))),React.createElement(Form$1.Item,{label:"Alert Frequency",name:"frequency"},React.createElement(Radio$1.Group,{className:styles$2.radioGroup,onChange:oe=>{ne(oe.target.value),oe.target.value!=="realtime"&&C.setFieldsValue({notification_type:ALERT_NOTIFICATION_TYPE.EMAIL})}},React.createElement(Radio$1,{value:"realtime"},"Realtime"),React.createElement(Radio$1,{value:"daily"},"Daily"),React.createElement(Radio$1,{value:"alternate"},"Every alternate day"),React.createElement(Radio$1,{value:"weekly"},"Weekly"))),te==="realtime"&&React.createElement(Form$1.Item,{label:"Alert mode",name:"notification_type"},React.createElement(Radio$1.Group,{className:styles$2.radioGroup},React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.EMAIL},"Email"),React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.WHATSAPP},"Whatsapp"),React.createElement(Radio$1,{value:ALERT_NOTIFICATION_TYPE.BOTH},"Both"))))}const alertCard="_alertCard_1k2nv_1",alertHeader="_alertHeader_1k2nv_14",alertIcon="_alertIcon_1k2nv_20",inactiveIcon="_inactiveIcon_1k2nv_25",alertActions="_alertActions_1k2nv_29",editFormCard="_editFormCard_1k2nv_35",styles$1={alertCard,alertHeader,alertIcon,inactiveIcon,alertActions,editFormCard};function ExistingAlerts({analytics:C}){const $=reactRedux.useDispatch(),{data:V=[],isLoading:F,error:K}=useFetchAlertsQuery(),[J]=useUpdateAlertStatusMutation(),[ee]=useDeleteAlertMutation(),[te,{isLoading:ne}]=useUpdateAlertMutation(),[re,ae]=React.useState(null),[oe]=Form$1.useForm();React.useEffect(()=>{V&&$(setAlerts(V))},[V,$]);const ie=me=>ALERT_FREQUENCY_LABELS[me]||ALERT_FREQUENCY_LABELS[ALERT_FREQUENCY.REALTIME],se=me=>ALERT_NOTIFICATION_LABELS[me]||ALERT_NOTIFICATION_LABELS[ALERT_NOTIFICATION_TYPE.EMAIL],ce=me=>me===ALERT_STATUS.ACTIVE,de=(me,ue)=>sr(this,null,function*(){try{const pe=ue===ALERT_STATUS.ACTIVE?ALERT_STATUS.INACTIVE:ALERT_STATUS.ACTIVE;yield J({id:me,status:pe}).unwrap(),message$1.success(`Alert ${pe===ALERT_STATUS.ACTIVE?"activated":"deactivated"} successfully`)}catch(pe){message$1.error("Failed to update alert status"),console.error("Error updating alert status:",pe)}}),le=me=>{C==null||C.click("Existing Alerts - Edit",PRODUCT_NAME),ae(me)},ve=()=>{C==null||C.click("Existing Alerts - Cancel Edit",PRODUCT_NAME),ae(null),oe.resetFields()},fe=me=>sr(this,null,function*(){try{C==null||C.click("Existing Alerts - Update Alert",PRODUCT_NAME),yield te({id:re,payload:me}).unwrap(),message$1.success("Alert updated successfully"),ae(null),oe.resetFields()}catch(ue){throw message$1.error("Failed to update alert"),console.error("Error updating alert:",ue),ue}}),he=me=>sr(this,null,function*(){try{C==null||C.click("Existing Alerts - Delete",PRODUCT_NAME),yield ee(me).unwrap(),message$1.success("Alert deleted successfully")}catch(ue){message$1.error("Failed to delete alert"),console.error("Error deleting alert:",ue)}});return F?React.createElement("div",{className:styles$1.existingAlertContent},React.createElement("div",{className:styles$1.loadingText},"Loading alerts...")):K?React.createElement("div",{className:styles$1.existingAlertContent},React.createElement("div",{className:styles$1.errorText},"Error loading alerts")):!V||V.length===0?React.createElement("div",{className:styles$1.existingAlertContent},React.createElement("div",{className:styles$1.emptyText},"No alerts found")):React.createElement("div",{className:styles$1.existingAlertContent},V.map(me=>{const ue=me.attributes||me,pe=me.id||ue.id,ye=ce(ue.status),be=ie(ue.frequency),ge=se(ue.notification_type),_e=re===pe;return React.createElement("div",{key:pe,className:styles$1.alertCard},React.createElement(Flex$1,{align:"center",className:styles$1.alertHeader},React.createElement(AlertFilled$1,{className:classNames(styles$1.alertIcon,{[styles$1.inactiveIcon]:!ye})}),React.createElement("div",null,ue.name)),React.createElement("div",{className:styles$1.alertSettings},React.createElement(Flex$1,{align:"center",gap:16,wrap:!0},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(Switch$1,{checked:ye,onChange:()=>de(pe,ue.status),size:"small",disabled:_e}),React.createElement("span",null,"Active")),React.createElement(Flex$1,{align:"center",gap:8},React.createElement(ClockCircleOutlined$1,null),React.createElement("span",null,be)),React.createElement(Flex$1,{align:"center",gap:8},React.createElement(AlertFilled$1,null),React.createElement("span",null,ge)))),!_e&&React.createElement("div",{className:styles$1.alertActions},React.createElement(Button$2,{type:"text",danger:!0,icon:React.createElement(DeleteOutlined$1,null),onClick:()=>he(pe),className:styles$1.deleteButton},"Delete"),React.createElement(Button$2,{type:"primary",icon:React.createElement(EditOutlined$1,null),onClick:()=>le(pe),className:styles$1.editButton},"Edit")),_e&&React.createElement("div",{className:styles$1.editFormCard},React.createElement(JobAlertForm,{form:oe,initialValues:ue,onSubmit:fe,isSubmitting:ne}),React.createElement(Flex$1,{gap:8,justify:"flex-end",style:{marginTop:"1.6rem"}},React.createElement(Button$2,{onClick:ve,disabled:ne},"Cancel"),React.createElement(Button$2,{type:"primary",onClick:()=>sr(this,null,function*(){try{const Se=yield oe.validateFields(),Ee={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},Ce=Se.frequency==="realtime",xe={alert:{name:Se.name,job_functions:Se.job_functions||[],min_ctc:Se.min_ctc,locations:Se.locations||[],min_experience:Se.min_experience?parseInt(Se.min_experience,10):0,max_experience:Se.max_experience?parseInt(Se.max_experience,10):null,frequency:Ee[Se.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:Ce&&Se.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL}};yield fe(xe)}catch(Se){}}),loading:ne},"Update Alert"))))}))}function JobAlertModal({analytics:C}){const $=reactRedux.useDispatch(),V=reactRedux.useSelector(de=>de.scalantCareerHub.dashboard.jobAlertModalOpen),[F,K]=React.useState("create"),[J]=Form$1.useForm(),[ee,{isLoading:te}]=useCreateAlertMutation();React.useEffect(()=>{V||(J.resetFields(),K("create"))},[V,J]);const ne=()=>{C==null||C.click("Job Alert Modal - Close",PRODUCT_NAME),$(closeJobAlertModal())},re=()=>{C==null||C.click("Job Alert Modal - Cancel",PRODUCT_NAME),ne()},ae=()=>sr(this,null,function*(){try{const de=yield J.validateFields(),le={realtime:ALERT_FREQUENCY.REALTIME,daily:ALERT_FREQUENCY.DAILY,alternate:ALERT_FREQUENCY.ALTERNATE_DAY,weekly:ALERT_FREQUENCY.WEEKLY},ve=de.frequency==="realtime",fe={alert:{name:de.name,job_functions:de.job_functions||[],min_ctc:de.min_ctc,locations:de.locations||[],min_experience:de.min_experience?parseInt(de.min_experience,10):0,max_experience:de.max_experience?parseInt(de.max_experience,10):null,frequency:le[de.frequency]||ALERT_FREQUENCY.REALTIME,notification_type:ve&&de.notification_type||ALERT_NOTIFICATION_TYPE.EMAIL},resume_alert:!1},he=yield ee(fe).unwrap();he.success&&he.alert&&(C==null||C.click("Job Alert Modal - Create Alert",PRODUCT_NAME),J.resetFields(),K("existing"),message$1.success("Alert created successfully"))}catch(de){message$1.error("Failed to create alert"),console.error("Error creating alert:",de)}}),oe=de=>sr(this,null,function*(){const le=gr(zn({},de),{resume_alert:!1});return yield ee(le).unwrap()}),ie=React.createElement(Flex$1,{vertical:!0},React.createElement(Flex$1,{justify:"space-between"},React.createElement(Flex$1,{align:"center",gap:8},React.createElement(BellOutlined$1,{className:styles$2.filterIcon}),"Curate your Job Alert"),React.createElement(CloseOutlined$1,{onClick:ne})),React.createElement("div",{className:styles$2.drawerHeaderSubtitle},"By creating a job alert, you will be notified when a job posting matches your preferred criteria")),se=React.createElement("div",{className:styles$2.modalFooter},React.createElement(Button$2,{onClick:re},"Cancel"),React.createElement(Button$2,{type:"primary",onClick:ae,loading:te},"Create Alert")),ce=React.createElement(JobAlertForm,{form:J,onSubmit:oe,isSubmitting:te});return React.createElement(Modal$1,{title:ie,open:V,onCancel:ne,footer:se,width:600,closable:!1,className:styles$2.modal},React.createElement(Tabs$1,{activeKey:F,onChange:de=>{C==null||C.click(`Job Alert Modal - Tab ${de}`,PRODUCT_NAME),K(de)},items:[{key:"create",label:"Create alert",children:ce},{key:"existing",label:"Existing alerts",children:React.createElement(ExistingAlerts,{analytics:C})}]}))}const jobsPageContent="_jobsPageContent_pk7y3_1",styles={jobsPageContent};function JobsPage({analytics:C,country:$,openMockInterviewModal:V,openResume:F,processCounts:K=DEFAULT_PROCESS_COUNTS,userProfileData:J,onUploadFile:ee,onViewResume:te,onEditPreferences:ne,onEditResume:re,onAddResume:ae,onCloseResumeBuilder:oe}){const ie=reactRedux.useDispatch(),se=reactRedux.useSelector(me=>{var ue,pe;return((pe=(ue=me.scalantCareerHub)==null?void 0:ue.filter)==null?void 0:pe.tab)||TAG_TO_TAB_MAPPING.relevant}),ce=React.useRef(!1),{selectedJobId:de}=useJobQueryParams({syncToURL:!0,syncFromURL:!0});React.useLayoutEffect(()=>{if(!ce.current){const me=getFiltersFromURL(),ue=zn({},me),ye=new URLSearchParams(window.location.search).get("job_ids");ye&&(ue.job_ids=[ye]),Object.keys(ue).length>0&&ie(updateFiltersFromForm(ue)),ce.current=!0}},[ie]),React.useEffect(()=>{ie(setProcessCounts(K))},[K,ie]),React.useEffect(()=>{J&&ie(setUserProfileData(J))},[J,ie]);const le=React.createElement(JobsHeader,{analytics:C}),ve=de?React.createElement(JobDetails,{analytics:C,currentTab:se,onUploadFile:ee,country:$,openMockInterviewModal:V,openResume:F,jobId:de,onEditResume:re,onAddResume:ae,onCloseResumeBuilder:oe}):React.createElement(ProfileDetails,{analytics:C,onViewResume:te,onEditPreferences:ne}),fe=de?SIDER_WIDTH.JOB_DETAILS:SIDER_WIDTH.PROFILE_DETAILS;React.useEffect(()=>{C&&C.view("Jobs Page - Tab Rendered",PRODUCT_NAME,{currentTab:se})},[C,se]);const he=()=>{switch(se){case TAG_TO_TAB_MAPPING.relevant:return React.createElement(RelevantJobsPage,{analytics:C});case TAG_TO_TAB_MAPPING.saved:return React.createElement(SavedJobsPage,{analytics:C});case TAG_TO_TAB_MAPPING.applied:return React.createElement(AppliedJobsPage,{analytics:C});case TAG_TO_TAB_MAPPING.all:default:return React.createElement(AllJobsPage,{analytics:C})}};return React.createElement(React.Fragment,null,React.createElement(JobsLayout,{analytics:C,header:le,sider:ve,siderWidth:fe,className:styles.jobsPage},he()),React.createElement(FilterDrawer,{analytics:C}),React.createElement(JobAlertModal,{analytics:C}))}JobsPage.propTypes={processCounts:PropTypes.shape({all:PropTypes.number,relevant:PropTypes.number,draft:PropTypes.number,applications:PropTypes.number,saved:PropTypes.number,archived:PropTypes.number}),userProfileData:PropTypes.object},exports.APPLICATION_STATUS=APPLICATION_STATUS,exports.JOB_CARD_CONFIG=JOB_CARD_CONFIG,exports.JOB_PROFILE_STATUS=JOB_PROFILE_STATUS,exports.JobsLayout=JobsLayout,exports.JobsPage=JobsPage,exports.TABS=TABS,exports.careerHubApi=careerHubApi,exports.checkAllOtherRequirementsMet=checkAllOtherRequirementsMet,exports.countPendingSteps=countPendingSteps,exports.default=HelloWorld,exports.determineJobTag=determineJobTag,exports.formatCtc=formatCtc,exports.formatDate=formatDate,exports.formatExperience=formatExperience$1,exports.formatLocation=formatLocation,exports.formatNoticePeriod=formatNoticePeriod,exports.setBaseUrl=setBaseUrl,exports.setChecklistOpen=setChecklistOpen,exports.setFitmentScore=setFitmentScore,exports.setResumeReviewData=setResumeReviewData,exports.store=rootReducer,exports.useApplicationForm=useApplicationForm,exports.useCreateApplication=useCreateApplication,exports.useJobCardState=useJobCardState,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});