@3sc/common-component 0.0.79 → 0.0.81

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.
package/dist/index.umd.js CHANGED
@@ -235,12 +235,12 @@ const theme2 = createTheme({ palette: {
235
235
  ${e.palette.mode==="light"?Sl(Be(e.palette.divider,1),.88):Il(Be(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${HA.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),go=I.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTableCell"}),{align:r="inherit",className:s,component:a,padding:l,scope:c,size:u,sortDirection:d,variant:p}=o,h=oe(o,XA),g=I.useContext(bc),m=I.useContext(si),f=m&&m.variant==="head";let b;a?b=a:b=f?"th":"td";let v=c;b==="td"?v=void 0:!v&&f&&(v="col");const T=p||m&&m.variant,x=E({},o,{align:r,component:b,padding:l||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:d,stickyHeader:T==="head"&&g&&g.stickyHeader,variant:T}),S=UA(x);let y=null;return d&&(y=d==="asc"?"ascending":"descending"),C.jsx(ZA,E({as:b,ref:n,className:re(S.root,s),"aria-sort":y,scope:v,ownerState:x},h))});process.env.NODE_ENV!=="production"&&(go.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),scope:i.string,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sortDirection:i.oneOf(["asc","desc",!1]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body","footer","head"]),i.string])});function YA(e){return Ce("MuiTableContainer",e)}Te("MuiTableContainer",["root"]);const JA=["className","component"],qA=e=>{const{classes:t}=e;return Ee({root:["root"]},YA,t)},KA=J("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),pm=I.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTableContainer"}),{className:r,component:s="div"}=o,a=oe(o,JA),l=E({},o,{component:s}),c=qA(l);return C.jsx(KA,E({ref:n,as:s,className:re(c.root,r),ownerState:l},a))});process.env.NODE_ENV!=="production"&&(pm.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function QA(e){return Ce("MuiTableHead",e)}Te("MuiTableHead",["root"]);const eR=["className","component"],tR=e=>{const{classes:t}=e;return Ee({root:["root"]},QA,t)},nR=J("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),oR={variant:"head"},fm="thead",xc=I.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTableHead"}),{className:r,component:s=fm}=o,a=oe(o,eR),l=E({},o,{component:s}),c=tR(l);return C.jsx(si.Provider,{value:oR,children:C.jsx(nR,E({as:s,className:re(c.root,r),ref:n,role:s===fm?null:"rowgroup",ownerState:l},a))})});process.env.NODE_ENV!=="production"&&(xc.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const rR=pn(C.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),iR=pn(C.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function sR(e){return Ce("MuiTableRow",e)}const hm=Te("MuiTableRow",["root","selected","hover","head","footer"]),aR=["className","component","hover","selected"],lR=e=>{const{classes:t,selected:n,hover:o,head:r,footer:s}=e;return Ee({root:["root",n&&"selected",o&&"hover",r&&"head",s&&"footer"]},sR,t)},cR=J("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${hm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${hm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Be(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Be(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),mm="tr",bo=I.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTableRow"}),{className:r,component:s=mm,hover:a=!1,selected:l=!1}=o,c=oe(o,aR),u=I.useContext(si),d=E({},o,{component:s,hover:a,selected:l,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=lR(d);return C.jsx(cR,E({as:s,ref:n,className:re(p.root,r),role:s===mm?null:"row",ownerState:d},c))});process.env.NODE_ENV!=="production"&&(bo.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,hover:i.bool,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function uR(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function dR(e,t,n,o={},r=()=>{}){const{ease:s=uR,duration:a=300}=o;let l=null;const c=t[e];let u=!1;const d=()=>{u=!0},p=h=>{if(u){r(new Error("Animation cancelled"));return}l===null&&(l=h);const g=Math.min(1,(h-l)/a);if(t[e]=s(g)*(n-c)+c,g>=1){requestAnimationFrame(()=>{r(null)});return}requestAnimationFrame(p)};return c===n?(r(new Error("Element already at target position")),d):(requestAnimationFrame(p),d)}const pR=["onChange"],fR={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function gm(e){const{onChange:t}=e,n=oe(e,pR),o=I.useRef(),r=I.useRef(null),s=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return xn(()=>{const a=rs(()=>{const c=o.current;s(),c!==o.current&&t(o.current)}),l=Pn(r.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),I.useEffect(()=>{s(),t(o.current)},[t]),C.jsx("div",E({style:fR},n,{ref:r}))}process.env.NODE_ENV!=="production"&&(gm.propTypes={onChange:i.func.isRequired});function hR(e){return Ce("MuiTabScrollButton",e)}const mR=Te("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),gR=["className","slots","slotProps","direction","orientation","disabled"],bR=e=>{const{classes:t,orientation:n,disabled:o}=e;return Ee({root:["root",n,o&&"disabled"]},hR,t)},vR=J(Nn,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>E({width:40,flexShrink:0,opacity:.8,[`&.${mR.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),bm=I.forwardRef(function(t,n){var o,r;const s=Ie({props:t,name:"MuiTabScrollButton"}),{className:a,slots:l={},slotProps:c={},direction:u}=s,d=oe(s,gR),p=_r(),h=E({isRtl:p},s),g=bR(h),m=(o=l.StartScrollButtonIcon)!=null?o:rR,f=(r=l.EndScrollButtonIcon)!=null?r:iR,b=zt({elementType:m,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),v=zt({elementType:f,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return C.jsx(vR,E({component:"div",className:re(g.root,a),ref:n,role:null,ownerState:h,tabIndex:null},d,{children:u==="left"?C.jsx(m,E({},b)):C.jsx(f,E({},v))}))});process.env.NODE_ENV!=="production"&&(bm.propTypes={children:i.node,classes:i.object,className:i.string,direction:i.oneOf(["left","right"]).isRequired,disabled:i.bool,orientation:i.oneOf(["horizontal","vertical"]).isRequired,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function yR(e){return Ce("MuiTabs",e)}const Cc=Te("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),xR=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],vm=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ym=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Hs=(e,t,n)=>{let o=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(o)return;o=!0}const s=r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||s)r=n(e,r);else{r.focus();return}}},CR=e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:r,scrollableY:s,centered:a,scrollButtonsHideMobile:l,classes:c}=e;return Ee({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",r&&"scrollableX",s&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},yR,c)},TR=J("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Cc.scrollButtons}`]:t.scrollButtons},{[`& .${Cc.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>E({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Cc.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),ER=J("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>E({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),IR=J("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>E({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),SR=J("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>E({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),wR=J(gm)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),xm={};let Cm=!1;const Tm=I.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTabs"}),r=ht(),s=_r(),{"aria-label":a,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:p,component:h="div",allowScrollButtonsMobile:g=!1,indicatorColor:m="primary",onChange:f,orientation:b="horizontal",ScrollButtonComponent:v=bm,scrollButtons:T="auto",selectionFollowsFocus:x,slots:S={},slotProps:y={},TabIndicatorProps:w={},TabScrollButtonProps:A={},textColor:R="primary",value:P,variant:N="standard",visibleScrollbar:F=!1}=o,G=oe(o,xR),j=N==="scrollable",L=b==="vertical",_=L?"scrollTop":"scrollLeft",V=L?"top":"left",$=L?"bottom":"right",D=L?"clientHeight":"clientWidth",X=L?"height":"width",k=E({},o,{component:h,allowScrollButtonsMobile:g,indicatorColor:m,orientation:b,vertical:L,scrollButtons:T,textColor:R,variant:N,visibleScrollbar:F,fixed:!j,hideScrollbar:j&&!F,scrollableX:j&&!L,scrollableY:j&&L,centered:u&&!j,scrollButtonsHideMobile:!g}),z=CR(k),Z=zt({elementType:S.StartScrollButtonIcon,externalSlotProps:y.startScrollButtonIcon,ownerState:k}),ee=zt({elementType:S.EndScrollButtonIcon,externalSlotProps:y.endScrollButtonIcon,ownerState:k});process.env.NODE_ENV!=="production"&&u&&j&&console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties at the same time on a `Tabs` component.');const[U,Q]=I.useState(!1),[Y,ne]=I.useState(xm),[te,ie]=I.useState(!1),[ce,le]=I.useState(!1),[B,ue]=I.useState(!1),[fe,be]=I.useState({overflow:"hidden",scrollbarWidth:0}),He=new Map,Xe=I.useRef(null),Oe=I.useRef(null),nt=()=>{const q=Xe.current;let se;if(q){const Re=q.getBoundingClientRect();se={clientWidth:q.clientWidth,scrollLeft:q.scrollLeft,scrollTop:q.scrollTop,scrollLeftNormalized:h1(q,s?"rtl":"ltr"),scrollWidth:q.scrollWidth,top:Re.top,bottom:Re.bottom,left:Re.left,right:Re.right}}let Se;if(q&&P!==!1){const Re=Oe.current.children;if(Re.length>0){const qe=Re[He.get(P)];process.env.NODE_ENV!=="production"&&(qe||console.error(["MUI: The `value` provided to the Tabs component is invalid.",`None of the Tabs' children match with "${P}".`,He.keys?`You can provide one of the following values: ${Array.from(He.keys()).join(", ")}.`:null].join(`
236
236
  `))),Se=qe?qe.getBoundingClientRect():null,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&!Cm&&Se&&Se.width===0&&Se.height===0&&se.clientWidth!==0&&(se=null,console.error(["MUI: The `value` provided to the Tabs component is invalid.",`The Tab with this \`value\` ("${P}") is not part of the document layout.`,"Make sure the tab item is present in the document or that it's not `display: none`."].join(`
237
237
  `)),Cm=!0)}}return{tabsMeta:se,tabMeta:Se}},je=dn(()=>{const{tabsMeta:q,tabMeta:se}=nt();let Se=0,Re;if(L)Re="top",se&&q&&(Se=se.top-q.top+q.scrollTop);else if(Re=s?"right":"left",se&&q){const vt=s?q.scrollLeftNormalized+q.clientWidth-q.scrollWidth:q.scrollLeft;Se=(s?-1:1)*(se[Re]-q[Re]+vt)}const qe={[Re]:Se,[X]:se?se[X]:0};if(isNaN(Y[Re])||isNaN(Y[X]))ne(qe);else{const vt=Math.abs(Y[Re]-qe[Re]),xt=Math.abs(Y[X]-qe[X]);(vt>=1||xt>=1)&&ne(qe)}}),Ne=(q,{animation:se=!0}={})=>{se?dR(_,Xe.current,q,{duration:r.transitions.duration.standard}):Xe.current[_]=q},Je=q=>{let se=Xe.current[_];L?se+=q:(se+=q*(s?-1:1),se*=s&&Kp()==="reverse"?-1:1),Ne(se)},Qe=()=>{const q=Xe.current[D];let se=0;const Se=Array.from(Oe.current.children);for(let Re=0;Re<Se.length;Re+=1){const qe=Se[Re];if(se+qe[D]>q){Re===0&&(se=q);break}se+=qe[D]}return se},ke=()=>{Je(-1*Qe())},ot=()=>{Je(Qe())},bt=I.useCallback(q=>{be({overflow:null,scrollbarWidth:q})},[]),dt=()=>{const q={};q.scrollbarSizeListener=j?C.jsx(wR,{onChange:bt,className:re(z.scrollableX,z.hideScrollbar)}):null;const Se=j&&(T==="auto"&&(te||ce)||T===!0);return q.scrollButtonStart=Se?C.jsx(v,E({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Z},orientation:b,direction:s?"right":"left",onClick:ke,disabled:!te},A,{className:re(z.scrollButtons,A.className)})):null,q.scrollButtonEnd=Se?C.jsx(v,E({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ee},orientation:b,direction:s?"left":"right",onClick:ot,disabled:!ce},A,{className:re(z.scrollButtons,A.className)})):null,q},Ae=dn(q=>{const{tabsMeta:se,tabMeta:Se}=nt();if(!(!Se||!se)){if(Se[V]<se[V]){const Re=se[_]+(Se[V]-se[V]);Ne(Re,{animation:q})}else if(Se[$]>se[$]){const Re=se[_]+(Se[$]-se[$]);Ne(Re,{animation:q})}}}),pe=dn(()=>{j&&T!==!1&&ue(!B)});I.useEffect(()=>{const q=rs(()=>{Xe.current&&je()});let se;const Se=vt=>{vt.forEach(xt=>{xt.removedNodes.forEach(ln=>{var Dt;(Dt=se)==null||Dt.unobserve(ln)}),xt.addedNodes.forEach(ln=>{var Dt;(Dt=se)==null||Dt.observe(ln)})}),q(),pe()},Re=Pn(Xe.current);Re.addEventListener("resize",q);let qe;return typeof ResizeObserver<"u"&&(se=new ResizeObserver(q),Array.from(Oe.current.children).forEach(vt=>{se.observe(vt)})),typeof MutationObserver<"u"&&(qe=new MutationObserver(Se),qe.observe(Oe.current,{childList:!0})),()=>{var vt,xt;q.clear(),Re.removeEventListener("resize",q),(vt=qe)==null||vt.disconnect(),(xt=se)==null||xt.disconnect()}},[je,pe]),I.useEffect(()=>{const q=Array.from(Oe.current.children),se=q.length;if(typeof IntersectionObserver<"u"&&se>0&&j&&T!==!1){const Se=q[0],Re=q[se-1],qe={root:Xe.current,threshold:.99},vt=_n=>{ie(!_n[0].isIntersecting)},xt=new IntersectionObserver(vt,qe);xt.observe(Se);const ln=_n=>{le(!_n[0].isIntersecting)},Dt=new IntersectionObserver(ln,qe);return Dt.observe(Re),()=>{xt.disconnect(),Dt.disconnect()}}},[j,T,B,d==null?void 0:d.length]),I.useEffect(()=>{Q(!0)},[]),I.useEffect(()=>{je()}),I.useEffect(()=>{Ae(xm!==Y)},[Ae,Y]),I.useImperativeHandle(c,()=>({updateIndicator:je,updateScrollButtons:pe}),[je,pe]);const et=C.jsx(SR,E({},w,{className:re(z.indicator,w.className),ownerState:k,style:E({},Y,w.style)}));let Tt=0;const Ot=I.Children.map(d,q=>{if(!I.isValidElement(q))return null;process.env.NODE_ENV!=="production"&&zo.isFragment(q)&&console.error(["MUI: The Tabs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
238
- `));const se=q.props.value===void 0?Tt:q.props.value;He.set(se,Tt);const Se=se===P;return Tt+=1,I.cloneElement(q,E({fullWidth:N==="fullWidth",indicator:Se&&!U&&et,selected:Se,selectionFollowsFocus:x,onChange:f,textColor:R,value:se},Tt===1&&P===!1&&!q.props.tabIndex?{tabIndex:0}:{}))}),an=q=>{const se=Oe.current,Se=wt(se).activeElement;if(Se.getAttribute("role")!=="tab")return;let qe=b==="horizontal"?"ArrowLeft":"ArrowUp",vt=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&s&&(qe="ArrowRight",vt="ArrowLeft"),q.key){case qe:q.preventDefault(),Hs(se,Se,ym);break;case vt:q.preventDefault(),Hs(se,Se,vm);break;case"Home":q.preventDefault(),Hs(se,null,vm);break;case"End":q.preventDefault(),Hs(se,null,ym);break}},de=dt();return C.jsxs(TR,E({className:re(z.root,p),ownerState:k,ref:n,as:h},G,{children:[de.scrollButtonStart,de.scrollbarSizeListener,C.jsxs(ER,{className:z.scroller,ownerState:k,style:{overflow:fe.overflow,[L?`margin${s?"Left":"Right"}`:"marginBottom"]:F?void 0:-fe.scrollbarWidth},ref:Xe,children:[C.jsx(IR,{"aria-label":a,"aria-labelledby":l,"aria-orientation":b==="vertical"?"vertical":null,className:z.flexContainer,ownerState:k,onKeyDown:an,ref:Oe,role:"tablist",children:Ot}),U&&et]}),de.scrollButtonEnd]}))});process.env.NODE_ENV!=="production"&&(Tm.propTypes={action:Nt,allowScrollButtonsMobile:i.bool,"aria-label":i.string,"aria-labelledby":i.string,centered:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,indicatorColor:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),onChange:i.func,orientation:i.oneOf(["horizontal","vertical"]),ScrollButtonComponent:i.elementType,scrollButtons:i.oneOf(["auto",!1,!0]),selectionFollowsFocus:i.bool,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TabIndicatorProps:i.object,TabScrollButtonProps:i.object,textColor:i.oneOf(["inherit","primary","secondary"]),value:i.any,variant:i.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:i.bool});function AR(e){return Ce("MuiTextField",e)}Te("MuiTextField",["root"]);const RR=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],OR={standard:_s,filled:Ls,outlined:Ws},PR=e=>{const{classes:t}=e;return Ee({root:["root"]},AR,t)},NR=J(Ph,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Em=I.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:m,id:f,InputLabelProps:b,inputProps:v,InputProps:T,inputRef:x,label:S,maxRows:y,minRows:w,multiline:A=!1,name:R,onBlur:P,onChange:N,onFocus:F,placeholder:G,required:j=!1,rows:L,select:_=!1,SelectProps:V,type:$,value:D,variant:X="outlined"}=o,k=oe(o,RR),z=E({},o,{autoFocus:s,color:c,disabled:d,error:p,fullWidth:g,multiline:A,required:j,select:_,variant:X}),Z=PR(z);process.env.NODE_ENV!=="production"&&_&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ee={};X==="outlined"&&(b&&typeof b.shrink<"u"&&(ee.notched=b.shrink),ee.label=S),_&&((!V||!V.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const U=is(f),Q=m&&U?`${U}-helper-text`:void 0,Y=S&&U?`${U}-label`:void 0,ne=OR[X],te=C.jsx(ne,E({"aria-describedby":Q,autoComplete:r,autoFocus:s,defaultValue:u,fullWidth:g,multiline:A,name:R,rows:L,maxRows:y,minRows:w,type:$,value:D,id:U,inputRef:x,onBlur:P,onChange:N,onFocus:F,placeholder:G,inputProps:v},ee,T));return C.jsxs(NR,E({className:re(Z.root,l),disabled:d,error:p,fullWidth:g,ref:n,required:j,color:c,variant:X,ownerState:z},k,{children:[S!=null&&S!==""&&C.jsx(Bh,E({htmlFor:U,id:Y},b,{children:S})),_?C.jsx(gc,E({"aria-describedby":Q,id:U,labelId:Y,value:D,input:te},V,{children:a})):te,m&&C.jsx(kh,E({id:Q},h,{children:m}))]}))});process.env.NODE_ENV!=="production"&&(Em.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:Nt,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const kn={Search:"data:image/svg+xml,%3csvg%20width='16'%20height='15'%20viewBox='0%200%2016%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.6503%2013.8006C11.3232%2013.8006%2014.3006%2010.8232%2014.3006%207.15029C14.3006%203.47744%2011.3232%200.5%207.6503%200.5C3.97744%200.5%201%203.47744%201%207.15029C1%2010.8232%203.97744%2013.8006%207.6503%2013.8006Z'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.9997%2014.5006L13.5996%2013.1006'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Refresh:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.0733%203.38664C6.6533%203.21331%207.2933%203.09998%207.99997%203.09998C11.1933%203.09998%2013.78%205.68664%2013.78%208.87998C13.78%2012.0733%2011.1933%2014.66%207.99997%2014.66C4.80664%2014.66%202.21997%2012.0733%202.21997%208.87998C2.21997%207.69331%202.57997%206.58664%203.1933%205.66664'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54671L7.17337%201.33337'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54663L7.49337%205.18663'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Close:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%3e%3ccircle%20cx='12'%20cy='12'%20r='11'%20fill='none'%20stroke='%23E85353'%20stroke-width='2'/%3e%3cpath%20d='M8.5%208.5l7%207M15.5%208.5l-7%207'%20stroke='%23E85353'%20stroke-width='2'/%3e%3c/svg%3e",Unsort:"data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.646447%203.24676C0.451184%203.44202%200.451184%203.7586%200.646447%203.95387C0.841709%204.14913%201.15829%204.14913%201.35355%203.95387L0.646447%203.24676ZM3.40012%201.2002H3.90012C3.90012%200.997964%203.7783%200.815646%203.59146%200.738256C3.40462%200.660865%203.18956%200.703643%203.04656%200.846642L3.40012%201.2002ZM2.90012%2010.8007C2.90012%2011.0768%203.12398%2011.3007%203.40012%2011.3007C3.67626%2011.3007%203.90012%2011.0768%203.90012%2010.8007H2.90012ZM9.35377%208.7541C9.54903%208.55884%209.54903%208.24226%209.35377%208.04699C9.15851%207.85173%208.84193%207.85173%208.64666%208.04699L9.35377%208.7541ZM6.6001%2010.8007H6.1001C6.1001%2011.0029%206.22192%2011.1852%206.40876%2011.2626C6.5956%2011.34%206.81065%2011.2972%206.95365%2011.1542L6.6001%2010.8007ZM7.1001%201.2002C7.1001%200.924053%206.87624%200.700195%206.6001%200.700195C6.32396%200.700195%206.1001%200.924053%206.1001%201.2002H7.1001ZM1.35355%203.95387L3.75367%201.55375L3.04656%200.846642L0.646447%203.24676L1.35355%203.95387ZM2.90012%201.2002V10.8007H3.90012V1.2002H2.90012ZM8.64666%208.04699L6.24655%2010.4471L6.95365%2011.1542L9.35377%208.7541L8.64666%208.04699ZM7.1001%2010.8007V1.2002H6.1001V10.8007H7.1001Z'%20fill='%23909090'/%3e%3c/svg%3e",AscSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%204.59888L4.5%201.09888L1%204.59888'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%2010.9013V1.19702'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",DescSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%207.40112L4.5%2010.9011L8%207.40112'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%201.09869L4.5%2010.803'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Menu:"data:image/svg+xml,%3csvg%20width='4'%20height='10'%20viewBox='0%200%204%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%207.5C1.45%207.5%201%207.95%201%208.5C1%209.05%201.45%209.5%202%209.5C2.55%209.5%203%209.05%203%208.5C3%207.95%202.55%207.5%202%207.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%204C1.45%204%201%204.45%201%205C1%205.55%201.45%206%202%206C2.55%206%203%205.55%203%205C3%204.45%202.55%204%202%204Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%200.5C1.45%200.5%201%200.95%201%201.5C1%202.05%201.45%202.5%202%202.5C2.55%202.5%203%202.05%203%201.5C3%200.95%202.55%200.5%202%200.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3c/svg%3e",Manage:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.56152%2012.937V3.06201C6.56152%202.12451%206.16152%201.74951%205.16777%201.74951H2.64277C1.64902%201.74951%201.24902%202.12451%201.24902%203.06201V12.937C1.24902%2013.8745%201.64902%2014.2495%202.64277%2014.2495H5.16777C6.16152%2014.2495%206.56152%2013.8745%206.56152%2012.937Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.75%2012.937V3.06201C13.75%202.12451%2013.35%201.74951%2012.3563%201.74951H9.83125C8.8375%201.74951%208.4375%202.12451%208.4375%203.06201V12.937C8.4375%2013.8745%208.8375%2014.2495%209.83125%2014.2495H12.3563C13.35%2014.2495%2013.75%2013.8745%2013.75%2012.937Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectUp:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%200.595703L5.50126%204.09444C5.08807%204.50763%204.41193%204.50763%203.99874%204.09444L0.5%200.595703'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectDown:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%204.4043L5.50126%200.90556C5.08807%200.492365%204.41193%200.492365%203.99874%200.90556L0.5%204.4043'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Upload:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25016%209.9165V6.4165L4.0835%207.58317'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.4165L6.41667%207.58317'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317V8.74984C12.8332%2011.6665%2011.6665%2012.8332%208.74984%2012.8332H5.24984C2.33317%2012.8332%201.1665%2011.6665%201.1665%208.74984V5.24984C1.1665%202.33317%202.33317%201.1665%205.24984%201.1665H8.1665'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317H10.4998C8.74984%205.83317%208.1665%205.24984%208.1665%203.49984V1.1665L12.8332%205.83317Z'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Download:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25%206.41699V9.91699L6.41667%208.75033'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25114%209.91667L4.08447%208.75'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366V8.75033C12.8322%2011.667%2011.6655%2012.8337%208.74886%2012.8337H5.24886C2.33219%2012.8337%201.16553%2011.667%201.16553%208.75033V5.25033C1.16553%202.33366%202.33219%201.16699%205.24886%201.16699H8.16553'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366H10.4989C8.74886%205.83366%208.16553%205.25033%208.16553%203.50033V1.16699L12.8322%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",More:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.4531%202.16699H7.64478C8.07645%202.16699%208.43227%202.52283%208.43227%202.9545V3.81782C8.43227%204.13282%208.23395%204.52366%208.04145%204.722L6.3498%206.21533C6.11647%206.41366%205.95894%206.80449%205.95894%207.11949V8.81117C5.95894%209.0445%205.80145%209.3595%205.60312%209.482L5.05478%209.83782C4.54145%2010.1528%203.8356%209.79699%203.8356%209.16699V7.08449C3.8356%206.81032%203.67811%206.4545%203.52061%206.25616L2.02728%204.68116C1.82895%204.48282%201.67146%204.13282%201.67146%203.89365V2.98949C1.66562%202.52283%202.02144%202.16699%202.4531%202.16699Z'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.66211%207.99998V9.74998C1.66211%2012.6666%202.82878%2013.8333%205.74544%2013.8333H9.24544C12.1621%2013.8333%2013.3288%2012.6666%2013.3288%209.74998V6.24998C13.3288%204.42998%2012.8738%203.28664%2011.8179%202.69164C11.5204%202.52248%2010.9254%202.39414%2010.3829%202.30664'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.08789%208.5835H11.0046'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.91211%2010.9165H10.9954'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e"},Im=M.createContext({});function MR(e){const t=M.useRef(null);return t.current===null&&(t.current=e()),t.current}const Tc=M.createContext(null),Sm=M.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function kR(e=!0){const t=M.useContext(Tc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,s=M.useId();M.useEffect(()=>{e&&r(s)},[e]);const a=M.useCallback(()=>e&&o&&o(s),[s,o,e]);return!n&&o?[!1,a]:[!0]}const Ec=typeof window<"u",DR=Ec?M.useLayoutEffect:M.useEffect,Lt=e=>e;let sr=Lt,Jn=Lt;process.env.NODE_ENV!=="production"&&(sr=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Jn=(e,t)=>{if(!e)throw new Error(t)});function Ic(e){let t;return()=>(t===void 0&&(t=e()),t)}const ar=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o},In=e=>e*1e3,Dn=e=>e/1e3,BR={skipAnimations:!1,useManualTiming:!1},Xs=["read","resolveKeyframes","update","preRender","render","postRender"],wm={value:null,addProjectionMetrics:null};function FR(e,t){let n=new Set,o=new Set,r=!1,s=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function u(p){a.has(p)&&(d.schedule(p),e()),c++,p(l)}const d={schedule:(p,h=!1,g=!1)=>{const f=g&&r?n:o;return h&&a.add(p),f.has(p)||f.add(p),p},cancel:p=>{o.delete(p),a.delete(p)},process:p=>{if(l=p,r){s=!0;return}r=!0,[n,o]=[o,n],n.forEach(u),t&&wm.value&&wm.value.frameloop[t].push(c),c=0,n.clear(),r=!1,s&&(s=!1,d.process(p))}};return d}const jR=40;function Am(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Xs.reduce((v,T)=>(v[T]=FR(s,t?T:void 0),v),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:p,postRender:h}=a,g=()=>{const v=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(v-r.timestamp,jR),1),r.timestamp=v,r.isProcessing=!0,l.process(r),c.process(r),u.process(r),d.process(r),p.process(r),h.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(g))},m=()=>{n=!0,o=!0,r.isProcessing||e(g)};return{schedule:Xs.reduce((v,T)=>{const x=a[T];return v[T]=(S,y=!1,w=!1)=>(n||m(),x.schedule(S,y,w)),v},{}),cancel:v=>{for(let T=0;T<Xs.length;T++)a[Xs[T]].cancel(v)},state:r,steps:a}}const{schedule:Ke,cancel:qn,state:It,steps:Sc}=Am(typeof requestAnimationFrame<"u"?requestAnimationFrame:Lt,!0),Rm=M.createContext({strict:!1}),Om={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lr={};for(const e in Om)lr[e]={isEnabled:t=>Om[e].some(n=>!!t[n])};function VR(e){for(const t in e)lr[t]={...lr[t],...e[t]}}const LR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Us(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||LR.has(e)}let Pm=e=>!Us(e);function _R(e){e&&(Pm=t=>t.startsWith("on")?!Us(t):e(t))}try{_R(require("@emotion/is-prop-valid").default)}catch{}function $R(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(Pm(r)||n===!0&&Us(r)||!t&&!Us(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const Nm=new Set;function Zs(e,t,n){e||Nm.has(t)||(console.warn(t),Nm.add(t))}function WR(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...o)=>(process.env.NODE_ENV!=="production"&&Zs(!1,"motion() is deprecated. Use motion.create() instead."),e(...o));return new Proxy(n,{get:(o,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Ys=M.createContext({});function Js(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ai(e){return typeof e=="string"||Array.isArray(e)}const wc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ac=["initial",...wc];function qs(e){return Js(e.animate)||Ac.some(t=>ai(e[t]))}function Mm(e){return!!(qs(e)||e.variants)}function GR(e,t){if(qs(e)){const{initial:n,animate:o}=e;return{initial:n===!1||ai(n)?n:void 0,animate:ai(o)?o:void 0}}return e.inherit!==!1?t:{}}function zR(e){const{initial:t,animate:n}=GR(e,M.useContext(Ys));return M.useMemo(()=>({initial:t,animate:n}),[km(t),km(n)])}function km(e){return Array.isArray(e)?e.join(" "):e}const HR=Symbol.for("motionComponentSymbol");function cr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function XR(e,t,n){return M.useCallback(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):cr(n)&&(n.current=o))},[t])}const Rc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Dm="data-"+Rc("framerAppearId"),{schedule:Oc,cancel:Ij}=Am(queueMicrotask,!1),Bm=M.createContext({});function UR(e,t,n,o,r){var s,a;const{visualElement:l}=M.useContext(Ys),c=M.useContext(Rm),u=M.useContext(Tc),d=M.useContext(Sm).reducedMotion,p=M.useRef(null);o=o||c.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const h=p.current,g=M.useContext(Bm);h&&!h.projection&&r&&(h.type==="html"||h.type==="svg")&&ZR(p.current,n,r,g);const m=M.useRef(!1);M.useInsertionEffect(()=>{h&&m.current&&h.update(n,u)});const f=n[Dm],b=M.useRef(!!f&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,f))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,f)));return DR(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Oc.render(h.render),b.current&&h.animationState&&h.animationState.animateChanges())}),M.useEffect(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,f)}),b.current=!1))}),h}function ZR(e,t,n,o){const{layoutId:r,layout:s,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Fm(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||l&&cr(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,layoutScroll:c,layoutRoot:u})}function Fm(e){if(e)return e.options.allowProjection!==!1?e.projection:Fm(e.parent)}function YR({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:r}){var s,a;e&&VR(e);function l(u,d){let p;const h={...M.useContext(Sm),...u,layoutId:JR(u)},{isStatic:g}=h,m=zR(u),f=o(u,g);if(!g&&Ec){qR(h,e);const b=KR(h);p=b.MeasureLayout,m.visualElement=UR(r,f,h,t,b.ProjectionNode)}return C.jsxs(Ys.Provider,{value:m,children:[p&&m.visualElement?C.jsx(p,{visualElement:m.visualElement,...h}):null,n(r,u,XR(f,m.visualElement,d),f,g,m.visualElement)]})}l.displayName=`motion.${typeof r=="string"?r:`create(${(a=(s=r.displayName)!==null&&s!==void 0?s:r.name)!==null&&a!==void 0?a:""})`}`;const c=M.forwardRef(l);return c[HR]=r,c}function JR({layoutId:e}){const t=M.useContext(Im).id;return t&&e!==void 0?t+"-"+e:e}function qR(e,t){const n=M.useContext(Rm).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?sr(!1,o):Jn(!1,o)}}function KR(e){const{drag:t,layout:n}=lr;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}const jm=e=>t=>typeof t=="string"&&t.startsWith(e),Pc=jm("--"),QR=jm("var(--"),Nc=e=>QR(e)?eO.test(e.split("/*")[0].trim()):!1,eO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,li={};function tO(e){for(const t in e)li[t]=e[t],Pc(t)&&(li[t].isCSSVariable=!0)}const ur=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vo=new Set(ur);function Vm(e,{layout:t,layoutId:n}){return vo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!li[e]||e==="opacity")}const At=e=>!!(e&&e.getVelocity),Lm=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Bn=(e,t,n)=>n>t?t:n<e?e:n,dr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ci={...dr,transform:e=>Bn(0,1,e)},Ks={...dr,default:1},ui=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Kn=ui("deg"),Sn=ui("%"),ye=ui("px"),nO=ui("vh"),oO=ui("vw"),_m={...Sn,parse:e=>Sn.parse(e)/100,transform:e=>Sn.transform(e*100)},rO={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,radius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,backgroundPositionX:ye,backgroundPositionY:ye},iO={rotate:Kn,rotateX:Kn,rotateY:Kn,rotateZ:Kn,scale:Ks,scaleX:Ks,scaleY:Ks,scaleZ:Ks,skew:Kn,skewX:Kn,skewY:Kn,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:ci,originX:_m,originY:_m,originZ:ye},$m={...dr,transform:Math.round},Mc={...rO,...iO,zIndex:$m,size:ye,fillOpacity:ci,strokeOpacity:ci,numOctaves:$m},sO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},aO=ur.length;function lO(e,t,n){let o="",r=!0;for(let s=0;s<aO;s++){const a=ur[s],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(a.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=Lm(l,Mc[a]);if(!c){r=!1;const d=sO[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function kc(e,t,n){const{style:o,vars:r,transformOrigin:s}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(vo.has(c)){a=!0;continue}else if(Pc(c)){r[c]=u;continue}else{const d=Lm(u,Mc[c]);c.startsWith("origin")?(l=!0,s[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=lO(t,e.transform,n):o.transform&&(o.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=s;o.transformOrigin=`${c} ${u} ${d}`}}const Dc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wm(e,t,n){for(const o in t)!At(t[o])&&!Vm(o,n)&&(e[o]=t[o])}function cO({transformTemplate:e},t){return M.useMemo(()=>{const n=Dc();return kc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function uO(e,t){const n=e.style||{},o={};return Wm(o,n,e),Object.assign(o,cO(e,t)),o}function dO(e,t){const n={},o=uO(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const pO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Bc(e){return typeof e!="string"||e.includes("-")?!1:!!(pO.indexOf(e)>-1||/[A-Z]/u.test(e))}const fO={offset:"stroke-dashoffset",array:"stroke-dasharray"},hO={offset:"strokeDashoffset",array:"strokeDasharray"};function mO(e,t,n=1,o=0,r=!0){e.pathLength=1;const s=r?fO:hO;e[s.offset]=ye.transform(-o);const a=ye.transform(t),l=ye.transform(n);e[s.array]=`${a} ${l}`}function Gm(e,t,n){return typeof e=="string"?e:ye.transform(t+n*e)}function gO(e,t,n){const o=Gm(t,e.x,e.width),r=Gm(n,e.y,e.height);return`${o} ${r}`}function Fc(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:s,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...u},d,p){if(kc(e,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:m}=e;h.transform&&(m&&(g.transform=h.transform),delete h.transform),m&&(r!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=gO(m,r!==void 0?r:.5,s!==void 0?s:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),o!==void 0&&(h.scale=o),a!==void 0&&mO(h,a,l,c,!1)}const zm=()=>({...Dc(),attrs:{}}),jc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bO(e,t,n,o){const r=M.useMemo(()=>{const s=zm();return Fc(s,t,jc(o),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Wm(s,e.style,e),r.style={...s,...r.style}}return r}function vO(e=!1){return(n,o,r,{latestValues:s},a)=>{const c=(Bc(n)?bO:dO)(o,s,a,n),u=$R(o,typeof n=="string",e),d=n!==M.Fragment?{...u,...c,ref:r}:{},{children:p}=o,h=M.useMemo(()=>At(p)?p.get():p,[p]);return M.createElement(n,{...d,children:h})}}function Hm(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function Vc(e,t,n,o){if(typeof t=="function"){const[r,s]=Hm(o);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=Hm(o);t=t(n!==void 0?n:e.custom,r,s)}return t}const Lc=e=>Array.isArray(e),yO=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),xO=e=>Lc(e)?e[e.length-1]||0:e;function Qs(e){const t=At(e)?e.get():e;return yO(t)?t.toValue():t}function CO({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},o,r,s){const a={latestValues:TO(o,r,s,e),renderState:t()};return n&&(a.onMount=l=>n({props:o,current:l,...a}),a.onUpdate=l=>n(l)),a}const Xm=e=>(t,n)=>{const o=M.useContext(Ys),r=M.useContext(Tc),s=()=>CO(e,t,o,r);return n?s():MR(s)};function TO(e,t,n,o){const r={},s=o(e,{});for(const h in s)r[h]=Qs(s[h]);let{initial:a,animate:l}=e;const c=qs(e),u=Mm(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const p=d?l:a;if(p&&typeof p!="boolean"&&!Js(p)){const h=Array.isArray(p)?p:[p];for(let g=0;g<h.length;g++){const m=Vc(e,h[g]);if(m){const{transitionEnd:f,transition:b,...v}=m;for(const T in v){let x=v[T];if(Array.isArray(x)){const S=d?x.length-1:0;x=x[S]}x!==null&&(r[T]=x)}for(const T in f)r[T]=f[T]}}}return r}function _c(e,t,n){var o;const{style:r}=e,s={};for(const a in r)(At(r[a])||t.style&&At(t.style[a])||Vm(a,e)||((o=n==null?void 0:n.getValue(a))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}const EO={useVisualState:Xm({scrapeMotionValuesFromProps:_c,createRenderState:Dc})};function Um(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Zm(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const s in n)e.style.setProperty(s,n[s])}const Ym=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Jm(e,t,n,o){Zm(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Ym.has(r)?r:Rc(r),t.attrs[r])}function qm(e,t,n){const o=_c(e,t,n);for(const r in e)if(At(e[r])||At(t[r])){const s=ur.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[s]=e[r]}return o}const Km=["x","y","width","height","cx","cy","r"],IO={useVisualState:Xm({scrapeMotionValuesFromProps:qm,createRenderState:zm,onUpdate:({props:e,prevProps:t,current:n,renderState:o,latestValues:r})=>{if(!n)return;let s=!!e.drag;if(!s){for(const l in r)if(vo.has(l)){s=!0;break}}if(!s)return;let a=!t;if(t)for(let l=0;l<Km.length;l++){const c=Km[l];e[c]!==t[c]&&(a=!0)}a&&Ke.read(()=>{Um(n,o),Ke.render(()=>{Fc(o,r,jc(n.tagName),e.transformTemplate),Jm(n,o)})})}})};function SO(e,t){return function(o,{forwardMotionProps:r}={forwardMotionProps:!1}){const a={...Bc(o)?IO:EO,preloadedFeatures:e,useRender:vO(r),createVisualElement:t,Component:o};return YR(a)}}function di(e,t,n){const o=e.getProps();return Vc(o,t,n!==void 0?n:o.custom,e)}const wO=Ic(()=>window.ScrollTimeline!==void 0);class AO{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let o=0;o<this.animations.length;o++)this.animations[o][t]=n}attachTimeline(t,n){const o=this.animations.map(r=>{if(wO()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{o.forEach((r,s)=>{r&&r(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class RO extends AO{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function $c(e,t){return e?e[t]||e.default||e:void 0}const Wc=2e4;function Qm(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<Wc;)t+=n,o=e.next(t);return t>=Wc?1/0:t}function Gc(e){return typeof e=="function"}function eg(e,t){e.timeline=t,e.onfinish=null}const zc=e=>Array.isArray(e)&&typeof e[0]=="number",OO={linearEasing:void 0};function PO(e,t){const n=Ic(e);return()=>{var o;return(o=OO[t])!==null&&o!==void 0?o:n()}}const ea=PO(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tg=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)o+=e(ar(0,r-1,s))+", ";return`linear(${o.substring(0,o.length-2)})`};function ng(e){return!!(typeof e=="function"&&ea()||!e||typeof e=="string"&&(e in Hc||ea())||zc(e)||Array.isArray(e)&&e.every(ng))}const pi=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,Hc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pi([0,.65,.55,1]),circOut:pi([.55,0,1,.45]),backIn:pi([.31,.01,.66,-.59]),backOut:pi([.33,1.53,.69,.99])};function og(e,t){if(e)return typeof e=="function"&&ea()?tg(e,t):zc(e)?pi(e):Array.isArray(e)?e.map(n=>og(n,t)||Hc.easeOut):Hc[e]}const fn={x:!1,y:!1};function rg(){return fn.x||fn.y}function NO(e,t,n){var o;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const s=(o=void 0)!==null&&o!==void 0?o:r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function ig(e,t){const n=NO(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function sg(e){return!(e.pointerType==="touch"||rg())}function MO(e,t,n={}){const[o,r,s]=ig(e,n),a=l=>{if(!sg(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=p=>{sg(p)&&(u(p),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,r)};return o.forEach(l=>{l.addEventListener("pointerenter",a,r)}),s}const ag=(e,t)=>t?e===t?!0:ag(e,t.parentElement):!1,Xc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,kO=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function DO(e){return kO.has(e.tagName)||e.tabIndex!==-1}const fi=new WeakSet;function lg(e){return t=>{t.key==="Enter"&&e(t)}}function Uc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const BO=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=lg(()=>{if(fi.has(n))return;Uc(n,"down");const r=lg(()=>{Uc(n,"up")}),s=()=>Uc(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function cg(e){return Xc(e)&&!rg()}function FO(e,t,n={}){const[o,r,s]=ig(e,n),a=l=>{const c=l.currentTarget;if(!cg(l)||fi.has(c))return;fi.add(c);const u=t(c,l),d=(g,m)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",h),!(!cg(g)||!fi.has(c))&&(fi.delete(c),typeof u=="function"&&u(g,{success:m}))},p=g=>{d(g,n.useGlobalTarget||ag(c,g.target))},h=g=>{d(g,!1)};window.addEventListener("pointerup",p,r),window.addEventListener("pointercancel",h,r)};return o.forEach(l=>{!DO(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,r),l.addEventListener("focus",u=>BO(u,r),r)}),s}function jO(e){return e==="x"||e==="y"?fn[e]?null:(fn[e]=!0,()=>{fn[e]=!1}):fn.x||fn.y?null:(fn.x=fn.y=!0,()=>{fn.x=fn.y=!1})}const ug=new Set(["width","height","top","left","right","bottom",...ur]);let ta;function VO(){ta=void 0}const wn={now:()=>(ta===void 0&&wn.set(It.isProcessing||BR.useManualTiming?It.timestamp:performance.now()),ta),set:e=>{ta=e,queueMicrotask(VO)}};function Zc(e,t){e.indexOf(t)===-1&&e.push(t)}function Yc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Jc{constructor(){this.subscriptions=[]}add(t){return Zc(this.subscriptions,t),()=>Yc(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let s=0;s<r;s++){const a=this.subscriptions[s];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function dg(e,t){return t?e*(1e3/t):0}const pg=30,LO=e=>!isNaN(parseFloat(e));class _O{constructor(t,n={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,r=!0)=>{const s=wn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=wn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=LO(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Zs(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Jc);const o=this.events[t].add(n);return t==="change"?()=>{o(),Ke.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=wn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pg);return dg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hi(e,t){return new _O(e,t)}function $O(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hi(n))}function WO(e,t){const n=di(e,t);let{transitionEnd:o={},transition:r={},...s}=n||{};s={...s,...o};for(const a in s){const l=xO(s[a]);$O(e,a,l)}}function GO(e){return!!(At(e)&&e.add)}function qc(e,t){const n=e.getValue("willChange");if(GO(n))return n.add(t)}function fg(e){return e.props[Dm]}const hg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zO=1e-7,HO=12;function XO(e,t,n,o,r){let s,a,l=0;do a=t+(n-t)/2,s=hg(a,o,r)-e,s>0?n=a:t=a;while(Math.abs(s)>zO&&++l<HO);return a}function mi(e,t,n,o){if(e===t&&n===o)return Lt;const r=s=>XO(s,0,1,e,n);return s=>s===0||s===1?s:hg(r(s),t,o)}const mg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gg=e=>t=>1-e(1-t),bg=mi(.33,1.53,.69,.99),Kc=gg(bg),vg=mg(Kc),yg=e=>(e*=2)<1?.5*Kc(e):.5*(2-Math.pow(2,-10*(e-1))),Qc=e=>1-Math.sin(Math.acos(e)),xg=gg(Qc),Cg=mg(Qc),Tg=e=>/^0[^.\s]+$/u.test(e);function UO(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Tg(e):!0}const gi=e=>Math.round(e*1e5)/1e5,eu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ZO(e){return e==null}const YO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tu=(e,t)=>n=>!!(typeof n=="string"&&YO.test(n)&&n.startsWith(e)||t&&!ZO(n)&&Object.prototype.hasOwnProperty.call(n,t)),Eg=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,s,a,l]=o.match(eu);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},JO=e=>Bn(0,255,e),nu={...dr,transform:e=>Math.round(JO(e))},yo={test:tu("rgb","red"),parse:Eg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+nu.transform(e)+", "+nu.transform(t)+", "+nu.transform(n)+", "+gi(ci.transform(o))+")"};function qO(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const ou={test:tu("#"),parse:qO,transform:yo.transform},pr={test:tu("hsl","hue"),parse:Eg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Sn.transform(gi(t))+", "+Sn.transform(gi(n))+", "+gi(ci.transform(o))+")"},Rt={test:e=>yo.test(e)||ou.test(e)||pr.test(e),parse:e=>yo.test(e)?yo.parse(e):pr.test(e)?pr.parse(e):ou.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yo.transform(e):pr.transform(e)},KO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function QO(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(eu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(KO))===null||n===void 0?void 0:n.length)||0)>0}const Ig="number",Sg="color",eP="var",tP="var(",wg="${}",nP=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function bi(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let s=0;const l=t.replace(nP,c=>(Rt.test(c)?(o.color.push(s),r.push(Sg),n.push(Rt.parse(c))):c.startsWith(tP)?(o.var.push(s),r.push(eP),n.push(c)):(o.number.push(s),r.push(Ig),n.push(parseFloat(c))),++s,wg)).split(wg);return{values:n,split:l,indexes:o,types:r}}function Ag(e){return bi(e).values}function Rg(e){const{split:t,types:n}=bi(e),o=t.length;return r=>{let s="";for(let a=0;a<o;a++)if(s+=t[a],r[a]!==void 0){const l=n[a];l===Ig?s+=gi(r[a]):l===Sg?s+=Rt.transform(r[a]):s+=r[a]}return s}}const oP=e=>typeof e=="number"?0:e;function rP(e){const t=Ag(e);return Rg(e)(t.map(oP))}const Qn={test:QO,parse:Ag,createTransformer:Rg,getAnimatableNone:rP},iP=new Set(["brightness","contrast","saturate","opacity"]);function sP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(eu)||[];if(!o)return e;const r=n.replace(o,"");let s=iP.has(t)?1:0;return o!==n&&(s*=100),t+"("+s+r+")"}const aP=/\b([a-z-]*)\(.*?\)/gu,ru={...Qn,getAnimatableNone:e=>{const t=e.match(aP);return t?t.map(sP).join(" "):e}},lP={...Mc,color:Rt,backgroundColor:Rt,outlineColor:Rt,fill:Rt,stroke:Rt,borderColor:Rt,borderTopColor:Rt,borderRightColor:Rt,borderBottomColor:Rt,borderLeftColor:Rt,filter:ru,WebkitFilter:ru},iu=e=>lP[e];function Og(e,t){let n=iu(e);return n!==ru&&(n=Qn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cP=new Set(["auto","none","0"]);function uP(e,t,n){let o=0,r;for(;o<e.length&&!r;){const s=e[o];typeof s=="string"&&!cP.has(s)&&bi(s).values.length&&(r=e[o]),o++}if(r&&n)for(const s of t)e[s]=Og(n,r)}const Pg=e=>e===dr||e===ye,Ng=(e,t)=>parseFloat(e.split(", ")[t]),Mg=(e,t)=>(n,{transform:o})=>{if(o==="none"||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return Ng(r[1],t);{const s=o.match(/^matrix\((.+)\)$/u);return s?Ng(s[1],e):0}},dP=new Set(["x","y","z"]),pP=ur.filter(e=>!dP.has(e));function fP(e){const t=[];return pP.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const fr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Mg(4,13),y:Mg(5,14)};fr.translateX=fr.x,fr.translateY=fr.y;const xo=new Set;let su=!1,au=!1;function kg(){if(au){const e=Array.from(xo).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=fP(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([s,a])=>{var l;(l=o.getValue(s))===null||l===void 0||l.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}au=!1,su=!1,xo.forEach(e=>e.complete()),xo.clear()}function Dg(){xo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(au=!0)})}function hP(){Dg(),kg()}class lu{constructor(t,n,o,r,s,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=s,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(xo.add(this),su||(su=!0,Ke.read(Dg),Ke.resolveKeyframes(kg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const a=r==null?void 0:r.get(),l=t[t.length-1];if(a!==void 0)t[0]=a;else if(o&&n){const c=o.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),r&&a===void 0&&r.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),xo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,xo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Bg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),mP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gP(e){const t=mP.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const bP=4;function Fg(e,t,n=1){Jn(n<=bP,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,r]=gP(e);if(!o)return;const s=window.getComputedStyle(t).getPropertyValue(o);if(s){const a=s.trim();return Bg(a)?parseFloat(a):a}return Nc(r)?Fg(r,t,n+1):r}const jg=e=>t=>t.test(e),Vg=[dr,ye,Sn,Kn,oO,nO,{test:e=>e==="auto",parse:e=>e}],Lg=e=>Vg.find(jg(e));class _g extends lu{constructor(t,n,o,r,s){super(t,n,o,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),Nc(u))){const d=Fg(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ug.has(o)||t.length!==2)return;const[r,s]=t,a=Lg(r),l=Lg(s);if(a!==l)if(Pg(a)&&Pg(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)UO(t[r])&&o.push(r);o.length&&uP(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fr[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:o,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const s=n.getValue(o);s&&s.jump(this.measuredOrigin,!1);const a=r.length-1,l=r[a];r[a]=fr[o](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const $g=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qn.test(e)||e==="0")&&!e.startsWith("url("));function vP(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function yP(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=$g(r,t),l=$g(s,t);return sr(a===l,`You are trying to animate ${t} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!a||!l?!1:vP(e)||(n==="spring"||Gc(n))&&o}const xP=e=>e!==null;function na(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(xP),s=t&&n!=="loop"&&t%2===1?0:r.length-1;return!s||o===void 0?r[s]:o}const CP=40;class Wg{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=wn.now(),this.options={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:s,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>CP?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hP(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=wn.now(),this.hasAttemptedResolve=!0;const{name:o,type:r,velocity:s,delay:a,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!yP(t,o,r,s))if(a)this.options.duration=0;else{c&&c(na(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const rt=(e,t,n)=>e+(t-e)*n;function cu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function TP({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,s=0,a=0;if(!t)r=s=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=cu(c,l,e+1/3),s=cu(c,l,e),a=cu(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:o}}function oa(e,t){return n=>n>0?t:e}const uu=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},EP=[ou,yo,pr],IP=e=>EP.find(t=>t.test(e));function Gg(e){const t=IP(e);if(sr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===pr&&(n=TP(n)),n}const zg=(e,t)=>{const n=Gg(e),o=Gg(t);if(!n||!o)return oa(e,t);const r={...n};return s=>(r.red=uu(n.red,o.red,s),r.green=uu(n.green,o.green,s),r.blue=uu(n.blue,o.blue,s),r.alpha=rt(n.alpha,o.alpha,s),yo.transform(r))},SP=(e,t)=>n=>t(e(n)),vi=(...e)=>e.reduce(SP),du=new Set(["none","hidden"]);function wP(e,t){return du.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function AP(e,t){return n=>rt(e,t,n)}function pu(e){return typeof e=="number"?AP:typeof e=="string"?Nc(e)?oa:Rt.test(e)?zg:PP:Array.isArray(e)?Hg:typeof e=="object"?Rt.test(e)?zg:RP:oa}function Hg(e,t){const n=[...e],o=n.length,r=e.map((s,a)=>pu(s)(s,t[a]));return s=>{for(let a=0;a<o;a++)n[a]=r[a](s);return n}}function RP(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=pu(e[r])(e[r],t[r]));return r=>{for(const s in o)n[s]=o[s](r);return n}}function OP(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],l=e.indexes[a][r[a]],c=(n=e.values[l])!==null&&n!==void 0?n:0;o[s]=c,r[a]++}return o}const PP=(e,t)=>{const n=Qn.createTransformer(t),o=bi(e),r=bi(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?du.has(e)&&!r.values.length||du.has(t)&&!o.values.length?wP(e,t):vi(Hg(OP(o,r),r.values),n):(sr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),oa(e,t))};function Xg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):pu(e)(e,t)}const NP=5;function Ug(e,t,n){const o=Math.max(t-NP,0);return dg(n-e(o),t-o)}const it={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},fu=.001;function MP({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:o=it.mass}){let r,s;sr(e<=In(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Bn(it.minDamping,it.maxDamping,a),e=Bn(it.minDuration,it.maxDuration,Dn(e)),a<1?(r=u=>{const d=u*a,p=d*e,h=d-n,g=hu(u,a),m=Math.exp(-p);return fu-h/g*m},s=u=>{const p=u*a*e,h=p*n+n,g=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-p),f=hu(Math.pow(u,2),a);return(-r(u)+fu>0?-1:1)*((h-g)*m)/f}):(r=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-fu+d*p},s=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const l=5/e,c=DP(r,s,l);if(e=In(e),isNaN(c))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const kP=12;function DP(e,t,n){let o=n;for(let r=1;r<kP;r++)o=o-e(o)/t(o);return o}function hu(e,t){return e*Math.sqrt(1-t*t)}const BP=["duration","bounce"],FP=["stiffness","damping","mass"];function Zg(e,t){return t.some(n=>e[n]!==void 0)}function jP(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Zg(e,FP)&&Zg(e,BP))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,s=2*Bn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:it.mass,stiffness:r,damping:s}}else{const n=MP(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function Yg(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:c,damping:u,mass:d,duration:p,velocity:h,isResolvedFromDuration:g}=jP({...n,velocity:-Dn(n.velocity||0)}),m=h||0,f=u/(2*Math.sqrt(c*d)),b=a-s,v=Dn(Math.sqrt(c/d)),T=Math.abs(b)<5;o||(o=T?it.restSpeed.granular:it.restSpeed.default),r||(r=T?it.restDelta.granular:it.restDelta.default);let x;if(f<1){const y=hu(v,f);x=w=>{const A=Math.exp(-f*v*w);return a-A*((m+f*v*b)/y*Math.sin(y*w)+b*Math.cos(y*w))}}else if(f===1)x=y=>a-Math.exp(-v*y)*(b+(m+v*b)*y);else{const y=v*Math.sqrt(f*f-1);x=w=>{const A=Math.exp(-f*v*w),R=Math.min(y*w,300);return a-A*((m+f*v*b)*Math.sinh(R)+y*b*Math.cosh(R))/y}}const S={calculatedDuration:g&&p||null,next:y=>{const w=x(y);if(g)l.done=y>=p;else{let A=0;f<1&&(A=y===0?In(m):Ug(x,y,w));const R=Math.abs(A)<=o,P=Math.abs(a-w)<=r;l.done=R&&P}return l.value=l.done?a:w,l},toString:()=>{const y=Math.min(Qm(S),Wc),w=tg(A=>S.next(y*A).value,y,30);return y+"ms "+w}};return S}function Jg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const p=e[0],h={done:!1,value:p},g=R=>l!==void 0&&R<l||c!==void 0&&R>c,m=R=>l===void 0?c:c===void 0||Math.abs(l-R)<Math.abs(c-R)?l:c;let f=n*t;const b=p+f,v=a===void 0?b:a(b);v!==b&&(f=v-p);const T=R=>-f*Math.exp(-R/o),x=R=>v+T(R),S=R=>{const P=T(R),N=x(R);h.done=Math.abs(P)<=u,h.value=h.done?v:N};let y,w;const A=R=>{g(h.value)&&(y=R,w=Yg({keyframes:[h.value,m(h.value)],velocity:Ug(x,R,h.value),damping:r,stiffness:s,restDelta:u,restSpeed:d}))};return A(0),{calculatedDuration:null,next:R=>{let P=!1;return!w&&y===void 0&&(P=!0,S(R),A(R)),y!==void 0&&R>=y?w.next(R-y):(!P&&S(R),h)}}}const VP=mi(.42,0,1,1),LP=mi(0,0,.58,1),qg=mi(.42,0,.58,1),_P=e=>Array.isArray(e)&&typeof e[0]!="number",Kg={linear:Lt,easeIn:VP,easeInOut:qg,easeOut:LP,circIn:Qc,circInOut:Cg,circOut:xg,backIn:Kc,backInOut:vg,backOut:bg,anticipate:yg},Qg=e=>{if(zc(e)){Jn(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,o,r]=e;return mi(t,n,o,r)}else if(typeof e=="string")return Jn(Kg[e]!==void 0,`Invalid easing type '${e}'`),Kg[e];return e};function $P(e,t,n){const o=[],r=n||Xg,s=e.length-1;for(let a=0;a<s;a++){let l=r(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Lt:t;l=vi(c,l)}o.push(l)}return o}function WP(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const s=e.length;if(Jn(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=$P(t,o,r),c=l.length,u=d=>{if(a&&d<e[0])return t[0];let p=0;if(c>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const h=ar(e[p],e[p+1],d);return l[p](h)};return n?d=>u(Bn(e[0],e[s-1],d)):u}function GP(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=ar(0,t,o);e.push(rt(n,1,r))}}function zP(e){const t=[0];return GP(t,e.length-1),t}function HP(e,t){return e.map(n=>n*t)}function XP(e,t){return e.map(()=>t||qg).splice(0,e.length-1)}function yi({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=_P(o)?o.map(Qg):Qg(o),s={done:!1,value:t[0]},a=HP(n&&n.length===t.length?n:zP(t),e),l=WP(a,t,{ease:Array.isArray(r)?r:XP(t,r)});return{calculatedDuration:e,next:c=>(s.value=l(c),s.done=c>=e,s)}}const UP=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ke.update(t,!0),stop:()=>qn(t),now:()=>It.isProcessing?It.timestamp:wn.now()}},ZP={decay:Jg,inertia:Jg,tween:yi,keyframes:yi,spring:Yg},YP=e=>e/100;class mu extends Wg{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:o,element:r,keyframes:s}=this.options,a=(r==null?void 0:r.KeyframeResolver)||lu,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new a(s,l,n,o,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:s,velocity:a=0}=this.options,l=Gc(n)?n:ZP[n]||yi;let c,u;process.env.NODE_ENV!=="production"&&l!==yi&&Jn(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l!==yi&&typeof t[0]!="number"&&(c=vi(YP,Xg(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});s==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Qm(d));const{calculatedDuration:p}=d,h=p+r,g=h*(o+1)-r;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:p,resolvedDuration:h,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:o}=this;if(!o){const{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:p}=o;if(this.startTime===null)return s.next(0);const{delay:h,repeat:g,repeatType:m,repeatDelay:f,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-h*(this.speed>=0?1:-1),T=this.speed>=0?v<0:v>d;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let x=this.currentTime,S=s;if(g){const R=Math.min(this.currentTime,d)/p;let P=Math.floor(R),N=R%1;!N&&R>=1&&(N=1),N===1&&P--,P=Math.min(P,g+1),!!(P%2)&&(m==="reverse"?(N=1-N,f&&(N-=f/p)):m==="mirror"&&(S=a)),x=Bn(0,1,N)*p}const y=T?{done:!1,value:c[0]}:S.next(x);l&&(y.value=l(y.value));let{done:w}=y;!T&&u!==null&&(w=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return A&&r!==void 0&&(y.value=na(c,this.options,r)),b&&b(y.value),A&&this.finish(),y}get duration(){const{resolved:t}=this;return t?Dn(t.calculatedDuration):0}get time(){return Dn(this.currentTime)}set time(t){t=In(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Dn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=UP,onPlay:n,startTime:o}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const JP=new Set(["opacity","clipPath","filter","transform"]);function qP(e,t,n,{delay:o=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=og(l,r);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"})}const KP=Ic(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ra=10,QP=2e4;function eN(e){return Gc(e.type)||e.type==="spring"||!ng(e.ease)}function tN(e,t){const n=new mu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let s=0;for(;!o.done&&s<QP;)o=n.sample(s),r.push(o.value),s+=ra;return{times:void 0,keyframes:r,duration:s-ra,ease:"linear"}}const eb={anticipate:yg,backInOut:vg,circInOut:Cg};function nN(e){return e in eb}class tb extends Wg{constructor(t){super(t);const{name:n,motionValue:o,element:r,keyframes:s}=this.options;this.resolver=new _g(s,(a,l)=>this.onKeyframesResolved(a,l),n,o,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:o=300,times:r,ease:s,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof s=="string"&&ea()&&nN(s)&&(s=eb[s]),eN(this.options)){const{onComplete:p,onUpdate:h,motionValue:g,element:m,...f}=this.options,b=tN(t,f);t=b.keyframes,t.length===1&&(t[1]=t[0]),o=b.duration,r=b.times,s=b.ease,a="keyframes"}const d=qP(l.owner.current,c,t,{...this.options,duration:o,times:r,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(eg(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;l.set(na(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:r,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Dn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Dn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.currentTime=In(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Lt;const{animation:o}=n;eg(o,t)}return Lt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:o,duration:r,type:s,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:p,element:h,...g}=this.options,m=new mu({...g,keyframes:o,duration:r,type:s,ease:a,times:l,isGenerator:!0}),f=In(this.time);u.setWithVelocity(m.sample(f-ra).value,m.sample(f).value,ra)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:o,repeatDelay:r,repeatType:s,damping:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return KP()&&o&&JP.has(o)&&!c&&!u&&!r&&s!=="mirror"&&a!==0&&l!=="inertia"}}const oN={type:"spring",stiffness:500,damping:25,restSpeed:10},rN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),iN={type:"keyframes",duration:.8},sN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},aN=(e,{keyframes:t})=>t.length>2?iN:vo.has(e)?e.startsWith("scale")?rN(t[1]):oN:sN;function lN({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const gu=(e,t,n,o={},r,s)=>a=>{const l=$c(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-In(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:r};lN(l)||(d={...d,...aN(e,d)}),d.duration&&(d.duration=In(d.duration)),d.repeatDelay&&(d.repeatDelay=In(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(p=!0)),p&&!s&&t.get()!==void 0){const h=na(d.keyframes,l);if(h!==void 0)return Ke.update(()=>{d.onUpdate(h),d.onComplete()}),new RO([])}return!s&&tb.supports(d)?new tb(d):new mu(d)};function cN({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function nb(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;o&&(a=o);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const p in c){const h=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),g=c[p];if(g===void 0||d&&cN(d,p))continue;const m={delay:n,...$c(a||{},p)};let f=!1;if(window.MotionHandoffAnimation){const v=fg(e);if(v){const T=window.MotionHandoffAnimation(v,p,Ke);T!==null&&(m.startTime=T,f=!0)}}qc(e,p),h.start(gu(p,h,g,e.shouldReduceMotion&&ug.has(p)?{type:!1}:m,e,f));const b=h.animation;b&&u.push(b)}return l&&Promise.all(u).then(()=>{Ke.update(()=>{l&&WO(e,l)})}),u}function bu(e,t,n={}){var o;const r=di(e,t,n.type==="exit"?(o=e.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(nb(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:h}=s;return uN(e,t,d+u,p,h,n)}:()=>Promise.resolve(),{when:c}=s;if(c){const[u,d]=c==="beforeChildren"?[a,l]:[l,a];return u().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function uN(e,t,n=0,o=0,r=1,s){const a=[],l=(e.variantChildren.size-1)*o,c=r===1?(u=0)=>u*o:(u=0)=>l-u*o;return Array.from(e.variantChildren).sort(dN).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(bu(u,t,{...s,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function dN(e,t){return e.sortNodePosition(t)}function pN(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(s=>bu(e,s,n));o=Promise.all(r)}else if(typeof t=="string")o=bu(e,t,n);else{const r=typeof t=="function"?di(e,t,n.custom):t;o=Promise.all(nb(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}function ob(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const fN=Ac.length;function rb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?rb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<fN;n++){const o=Ac[n],r=e.props[o];(ai(r)||r===!1)&&(t[o]=r)}return t}const hN=[...wc].reverse(),mN=wc.length;function gN(e){return t=>Promise.all(t.map(({animation:n,options:o})=>pN(e,n,o)))}function bN(e){let t=gN(e),n=ib(),o=!0;const r=c=>(u,d)=>{var p;const h=di(e,d,c==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(h){const{transition:g,transitionEnd:m,...f}=h;u={...u,...f,...m}}return u};function s(c){t=c(e)}function a(c){const{props:u}=e,d=rb(e.parent)||{},p=[],h=new Set;let g={},m=1/0;for(let b=0;b<mN;b++){const v=hN[b],T=n[v],x=u[v]!==void 0?u[v]:d[v],S=ai(x),y=v===c?T.isActive:null;y===!1&&(m=b);let w=x===d[v]&&x!==u[v]&&S;if(w&&o&&e.manuallyAnimateOnMount&&(w=!1),T.protectedKeys={...g},!T.isActive&&y===null||!x&&!T.prevProp||Js(x)||typeof x=="boolean")continue;const A=vN(T.prevProp,x);let R=A||v===c&&T.isActive&&!w&&S||b>m&&S,P=!1;const N=Array.isArray(x)?x:[x];let F=N.reduce(r(v),{});y===!1&&(F={});const{prevResolvedValues:G={}}=T,j={...G,...F},L=$=>{R=!0,h.has($)&&(P=!0,h.delete($)),T.needsAnimating[$]=!0;const D=e.getValue($);D&&(D.liveStyle=!1)};for(const $ in j){const D=F[$],X=G[$];if(g.hasOwnProperty($))continue;let k=!1;Lc(D)&&Lc(X)?k=!ob(D,X):k=D!==X,k?D!=null?L($):h.add($):D!==void 0&&h.has($)?L($):T.protectedKeys[$]=!0}T.prevProp=x,T.prevResolvedValues=F,T.isActive&&(g={...g,...F}),o&&e.blockInitialAnimation&&(R=!1),R&&(!(w&&A)||P)&&p.push(...N.map($=>({animation:$,options:{type:v}})))}if(h.size){const b={};if(typeof u.initial!="boolean"){const v=di(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(b.transition=v.transition)}h.forEach(v=>{const T=e.getBaseTarget(v),x=e.getValue(v);x&&(x.liveStyle=!0),b[v]=T??null}),p.push({animation:b})}let f=!!p.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(f=!1),o=!1,f?t(p):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(c,u)}),n[c].isActive=u;const p=a(c);for(const h in n)n[h].protectedKeys={};return p}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=ib(),o=!0}}}function vN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ob(t,e):!1}function Co(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ib(){return{animate:Co(!0),whileInView:Co(),whileHover:Co(),whileTap:Co(),whileDrag:Co(),whileFocus:Co(),exit:Co()}}class eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class yN extends eo{constructor(t){super(t),t.animationState||(t.animationState=bN(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Js(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let xN=0;class CN extends eo{constructor(){super(...arguments),this.id=xN++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const TN={animation:{Feature:yN},exit:{Feature:CN}};function xi(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Ci(e){return{point:{x:e.pageX,y:e.pageY}}}const EN=e=>t=>Xc(t)&&e(t,Ci(t));function Ti(e,t,n,o){return xi(e,t,EN(n),o)}const sb=(e,t)=>Math.abs(e-t);function IN(e,t){const n=sb(e.x,t.x),o=sb(e.y,t.y);return Math.sqrt(n**2+o**2)}class ab{constructor(t,n,{transformPagePoint:o,contextWindow:r,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=yu(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=IN(p.offset,{x:0,y:0})>=3;if(!h&&!g)return;const{point:m}=p,{timestamp:f}=It;this.history.push({...m,timestamp:f});const{onStart:b,onMove:v}=this.handlers;h||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,p)},this.handlePointerMove=(p,h)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=vu(h,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(p,h)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:f}=this.handlers;if(this.dragSnapToOrigin&&f&&f(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=yu(p.type==="pointercancel"?this.lastMoveEventInfo:vu(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,b),m&&m(p,b)},!Xc(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=o,this.contextWindow=r||window;const a=Ci(t),l=vu(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=It;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,yu(l,this.history)),this.removeListeners=vi(Ti(this.contextWindow,"pointermove",this.handlePointerMove),Ti(this.contextWindow,"pointerup",this.handlePointerUp),Ti(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qn(this.updatePoint)}}function vu(e,t){return t?{point:t(e.point)}:e}function lb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yu({point:e},t){return{point:e,delta:lb(e,cb(t)),offset:lb(e,SN(t)),velocity:wN(t,.1)}}function SN(e){return e[0]}function cb(e){return e[e.length-1]}function wN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=cb(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>In(t)));)n--;if(!o)return{x:0,y:0};const s=Dn(r.timestamp-o.timestamp);if(s===0)return{x:0,y:0};const a={x:(r.x-o.x)/s,y:(r.y-o.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const ub=1e-4,AN=1-ub,RN=1+ub,db=.01,ON=0-db,PN=0+db;function kt(e){return e.max-e.min}function NN(e,t,n){return Math.abs(e-t)<=n}function pb(e,t,n,o=.5){e.origin=o,e.originPoint=rt(t.min,t.max,e.origin),e.scale=kt(n)/kt(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=AN&&e.scale<=RN||isNaN(e.scale))&&(e.scale=1),(e.translate>=ON&&e.translate<=PN||isNaN(e.translate))&&(e.translate=0)}function Ei(e,t,n,o){pb(e.x,t.x,n.x,o?o.originX:void 0),pb(e.y,t.y,n.y,o?o.originY:void 0)}function fb(e,t,n){e.min=n.min+t.min,e.max=e.min+kt(t)}function MN(e,t,n){fb(e.x,t.x,n.x),fb(e.y,t.y,n.y)}function hb(e,t,n){e.min=t.min-n.min,e.max=e.min+kt(t)}function Ii(e,t,n){hb(e.x,t.x,n.x),hb(e.y,t.y,n.y)}function kN(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?rt(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?rt(n,e,o.max):Math.min(e,n)),e}function mb(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function DN(e,{top:t,left:n,bottom:o,right:r}){return{x:mb(e.x,n,r),y:mb(e.y,t,o)}}function gb(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function BN(e,t){return{x:gb(e.x,t.x),y:gb(e.y,t.y)}}function FN(e,t){let n=.5;const o=kt(e),r=kt(t);return r>o?n=ar(t.min,t.max-o,e.min):o>r&&(n=ar(e.min,e.max-r,t.min)),Bn(0,1,n)}function jN(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xu=.35;function VN(e=xu){return e===!1?e=0:e===!0&&(e=xu),{x:bb(e,"left","right"),y:bb(e,"top","bottom")}}function bb(e,t,n){return{min:vb(e,t),max:vb(e,n)}}function vb(e,t){return typeof e=="number"?e:e[t]||0}const yb=()=>({translate:0,scale:1,origin:0,originPoint:0}),hr=()=>({x:yb(),y:yb()}),xb=()=>({min:0,max:0}),mt=()=>({x:xb(),y:xb()});function on(e){return[e("x"),e("y")]}function Cb({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function LN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function _N(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function Cu(e){return e===void 0||e===1}function Tu({scale:e,scaleX:t,scaleY:n}){return!Cu(e)||!Cu(t)||!Cu(n)}function To(e){return Tu(e)||Tb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Tb(e){return Eb(e.x)||Eb(e.y)}function Eb(e){return e&&e!=="0%"}function ia(e,t,n){const o=e-n,r=t*o;return n+r}function Ib(e,t,n,o,r){return r!==void 0&&(e=ia(e,r,o)),ia(e,n,o)+t}function Eu(e,t=0,n=1,o,r){e.min=Ib(e.min,t,n,o,r),e.max=Ib(e.max,t,n,o,r)}function Sb(e,{x:t,y:n}){Eu(e.x,t.translate,t.scale,t.originPoint),Eu(e.y,n.translate,n.scale,n.originPoint)}const wb=.999999999999,Ab=1.0000000000001;function $N(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,a;for(let l=0;l<r;l++){s=n[l],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&s.options.layoutScroll&&s.scroll&&s!==s.root&&gr(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Sb(e,a)),o&&To(s.latestValues)&&gr(e,s.latestValues))}t.x<Ab&&t.x>wb&&(t.x=1),t.y<Ab&&t.y>wb&&(t.y=1)}function mr(e,t){e.min=e.min+t,e.max=e.max+t}function Rb(e,t,n,o,r=.5){const s=rt(e.min,e.max,r);Eu(e,t,n,s,o)}function gr(e,t){Rb(e.x,t.x,t.scaleX,t.scale,t.originX),Rb(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ob(e,t){return Cb(_N(e.getBoundingClientRect(),t))}function WN(e,t,n){const o=Ob(e,n),{scroll:r}=t;return r&&(mr(o.x,r.offset.x),mr(o.y,r.offset.y)),o}const Pb=({current:e})=>e?e.ownerDocument.defaultView:null,GN=new WeakMap;class zN{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=mt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ci(d).point)},s=(d,p)=>{const{drag:h,dragPropagation:g,onDragStart:m}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jO(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),on(b=>{let v=this.getAxisMotionValue(b).get()||0;if(Sn.test(v)){const{projection:T}=this.visualElement;if(T&&T.layout){const x=T.layout.layoutBox[b];x&&(v=kt(x)*(parseFloat(v)/100))}}this.originPoint[b]=v}),m&&Ke.postRender(()=>m(d,p)),qc(this.visualElement,"transform");const{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},a=(d,p)=>{const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:m,onDrag:f}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:b}=p;if(g&&this.currentDirection===null){this.currentDirection=HN(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",p.point,b),this.updateAxis("y",p.point,b),this.visualElement.render(),f&&f(d,p)},l=(d,p)=>this.stop(d,p),c=()=>on(d=>{var p;return this.getAnimationState(d)==="paused"&&((p=this.getAxisMotionValue(d).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new ab(t,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Pb(this.visualElement)})}stop(t,n){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&Ke.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!sa(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=kN(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&cr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=DN(r.layoutBox,n):this.constraints=!1,this.elastic=VN(o),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&on(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=jN(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!cr(t))return!1;const o=t.current;Jn(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=WN(o,r.root,this.visualElement.getTransformPagePoint());let a=BN(r.layout.layoutBox,s);if(n){const l=n(LN(a));this.hasMutatedConstraints=!!l,l&&(a=Cb(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=on(d=>{if(!sa(d,n,this.currentDirection))return;let p=c&&c[d]||{};a&&(p={min:0,max:0});const h=r?200:1e6,g=r?40:1e7,m={type:"inertia",velocity:o?t[d]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return qc(this.visualElement,t),o.start(gu(t,o,0,n,this.visualElement,!1))}stopAnimation(){on(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){on(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){on(n=>{const{drag:o}=this.getProps();if(!sa(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:l}=r.layout.layoutBox[n];s.set(t[n]-rt(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!cr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};on(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=FN({min:c,max:c},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),on(a=>{if(!sa(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(rt(c,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;GN.set(this.visualElement,this);const t=this.visualElement.current,n=Ti(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();cr(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Ke.read(o);const a=xi(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(on(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=c[d].translate,p.set(p.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:a=xu,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:s,dragElastic:a,dragMomentum:l}}}function sa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function HN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class XN extends eo{constructor(t){super(t),this.removeGroupControls=Lt,this.removeListeners=Lt,this.controls=new zN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Lt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nb=e=>(t,n)=>{e&&Ke.postRender(()=>e(t,n))};class UN extends eo{constructor(){super(...arguments),this.removePointerDownListener=Lt}onPointerDown(t){this.session=new ab(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Pb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:Nb(t),onStart:Nb(n),onMove:o,onEnd:(s,a)=>{delete this.session,r&&Ke.postRender(()=>r(s,a))}}}mount(){this.removePointerDownListener=Ti(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const aa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Si={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=Mb(e,t.target.x),o=Mb(e,t.target.y);return`${n}% ${o}%`}},ZN={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Qn.parse(e);if(r.length>5)return o;const s=Qn.createTransformer(e),a=typeof r[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;r[0+a]/=l,r[1+a]/=c;const u=rt(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),s(r)}};class YN extends M.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:s}=t;tO(JN),s&&(n.group&&n.group.add(s),o&&o.register&&r&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),aa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:s}=this.props,a=o.projection;return a&&(a.isPresent=s,r||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Ke.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Oc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function kb(e){const[t,n]=kR(),o=M.useContext(Im);return C.jsx(YN,{...e,layoutGroup:o,switchLayoutGroup:M.useContext(Bm),isPresent:t,safeToRemove:n})}const JN={borderRadius:{...Si,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Si,borderTopRightRadius:Si,borderBottomLeftRadius:Si,borderBottomRightRadius:Si,boxShadow:ZN};function qN(e,t,n){const o=At(e)?e:hi(e);return o.start(gu("",o,t,n)),o.animation}function KN(e){return e instanceof SVGElement&&e.tagName!=="svg"}const QN=(e,t)=>e.depth-t.depth;class eM{constructor(){this.children=[],this.isDirty=!1}add(t){Zc(this.children,t),this.isDirty=!0}remove(t){Yc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(QN),this.isDirty=!1,this.children.forEach(t)}}function tM(e,t){const n=wn.now(),o=({timestamp:r})=>{const s=r-n;s>=t&&(qn(o),e(s-t))};return Ke.read(o,!0),()=>qn(o)}const Db=["TopLeft","TopRight","BottomLeft","BottomRight"],nM=Db.length,Bb=e=>typeof e=="string"?parseFloat(e):e,Fb=e=>typeof e=="number"||ye.test(e);function oM(e,t,n,o,r,s){r?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,rM(o)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,iM(o))):s&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,o));for(let a=0;a<nM;a++){const l=`border${Db[a]}Radius`;let c=jb(t,l),u=jb(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Fb(c)===Fb(u)?(e[l]=Math.max(rt(Bb(c),Bb(u),o),0),(Sn.test(u)||Sn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,o))}function jb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const rM=Vb(0,.5,xg),iM=Vb(.5,.95,Lt);function Vb(e,t,n){return o=>o<e?0:o>t?1:n(ar(e,t,o))}function Lb(e,t){e.min=t.min,e.max=t.max}function rn(e,t){Lb(e.x,t.x),Lb(e.y,t.y)}function _b(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $b(e,t,n,o,r){return e-=t,e=ia(e,1/n,o),r!==void 0&&(e=ia(e,1/r,o)),e}function sM(e,t=0,n=1,o=.5,r,s=e,a=e){if(Sn.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=rt(s.min,s.max,o);e===s&&(l-=t),e.min=$b(e.min,t,n,l,r),e.max=$b(e.max,t,n,l,r)}function Wb(e,t,[n,o,r],s,a){sM(e,t[n],t[o],t[r],t.scale,s,a)}const aM=["x","scaleX","originX"],lM=["y","scaleY","originY"];function Gb(e,t,n,o){Wb(e.x,t,aM,n?n.x:void 0,o?o.x:void 0),Wb(e.y,t,lM,n?n.y:void 0,o?o.y:void 0)}function zb(e){return e.translate===0&&e.scale===1}function Hb(e){return zb(e.x)&&zb(e.y)}function Xb(e,t){return e.min===t.min&&e.max===t.max}function cM(e,t){return Xb(e.x,t.x)&&Xb(e.y,t.y)}function Ub(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Zb(e,t){return Ub(e.x,t.x)&&Ub(e.y,t.y)}function Yb(e){return kt(e.x)/kt(e.y)}function Jb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class uM{constructor(){this.members=[]}add(t){Zc(this.members,t),t.scheduleRender()}remove(t){if(Yc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1){o=s;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function dM(e,t,n){let o="";const r=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((r||s||a)&&(o=`translate3d(${r}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:h,skewX:g,skewY:m}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),p&&(o+=`rotateX(${p}deg) `),h&&(o+=`rotateY(${h}deg) `),g&&(o+=`skewX(${g}deg) `),m&&(o+=`skewY(${m}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}const Iu=["","X","Y","Z"],pM={visibility:"hidden"},qb=1e3;let fM=0;function Su(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Kb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=fg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ke,!(r||s))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Kb(o)}function Qb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t==null?void 0:t()){this.id=fM++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(gM),this.nodes.forEach(CM),this.nodes.forEach(TM),this.nodes.forEach(bM)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new eM)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Jc),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=KN(a),this.instance=a;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let p;const h=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=tM(h,250),aa.hasAnimatedSinceResize&&(aa.hasAnimatedSinceResize=!1,this.nodes.forEach(t0))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:h,hasRelativeLayoutChanged:g,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const f=this.options.transition||d.getDefaultTransition()||AM,{onLayoutAnimationStart:b,onLayoutAnimationComplete:v}=d.getProps(),T=!this.targetLayout||!Zb(this.targetLayout,m),x=!h&&g;if(this.options.layoutRoot||this.resumeFrom||x||h&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,x);const S={...$c(f,"layout"),onPlay:b,onComplete:v};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else h||t0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,qn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(EM),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Kb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const p=this.path[d];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e0);return}this.isUpdating||this.nodes.forEach(yM),this.isUpdating=!1,this.nodes.forEach(xM),this.nodes.forEach(hM),this.nodes.forEach(mM),this.clearAllSnapshots();const l=wn.now();It.delta=Bn(0,1e3/60,l-It.timestamp),It.timestamp=l,It.isProcessing=!0,Sc.update.process(It),Sc.preRender.process(It),Sc.render.process(It),It.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Oc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vM),this.sharedNodes.forEach(IM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!kt(this.snapshot.measuredBox.x)&&!kt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=mt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l){const c=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Hb(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&(l||To(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),RM(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return mt();const c=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(OM))){const{scroll:d}=this.root;d&&(mr(c.x,d.offset.x),mr(c.y,d.offset.y))}return c}removeElementScroll(a){var l;const c=mt();if(rn(c,a),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:p,options:h}=d;d!==this.root&&p&&h.layoutScroll&&(p.wasRoot&&rn(c,a),mr(c.x,p.offset.x),mr(c.y,p.offset.y))}return c}applyTransform(a,l=!1){const c=mt();rn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&gr(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),To(d.latestValues)&&gr(c,d.latestValues)}return To(this.latestValues)&&gr(c,this.latestValues),c}removeTransform(a){const l=mt();rn(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!To(u.latestValues))continue;Tu(u.latestValues)&&u.updateSnapshot();const d=mt(),p=u.measurePageBox();rn(d,p),Gb(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return To(this.latestValues)&&Gb(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==It.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:h}=this.options;if(!(!this.layout||!(p||h))){if(this.resolvedRelativeTargetAt=It.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Ii(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),rn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=mt(),this.targetWithTransforms=mt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),MN(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rn(this.target,this.layout.layoutBox),Sb(this.target,this.targetDelta)):rn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Ii(this.relativeTargetOrigin,this.target,g.target),rn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Tu(this.parent.latestValues)||Tb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===It.timestamp&&(u=!1),u)return;const{layout:d,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||p))return;rn(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,g=this.treeScale.y;$N(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=mt());const{target:m}=l;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_b(this.prevProjectionDelta.x,this.projectionDelta.x),_b(this.prevProjectionDelta.y,this.projectionDelta.y)),Ei(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==g||!Jb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Jb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=hr(),this.projectionDelta=hr(),this.projectionDeltaWithTransform=hr()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},p=hr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=mt(),g=c?c.source:void 0,m=this.layout?this.layout.source:void 0,f=g!==m,b=this.getStack(),v=!b||b.members.length<=1,T=!!(f&&!v&&this.options.crossfade===!0&&!this.path.some(wM));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const y=S/1e3;n0(p.x,a.x,y),n0(p.y,a.y,y),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ii(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),SM(this.relativeTarget,this.relativeTargetOrigin,h,y),x&&cM(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=mt()),rn(x,this.relativeTarget)),f&&(this.animationValues=d,oM(d,u,this.latestValues,y,T,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(qn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{aa.hasAnimatedSinceResize=!0,this.currentAnimation=qN(0,qb,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&a0(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||mt();const p=kt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+p;const h=kt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+h}rn(l,c),gr(l,d),Ei(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new uM),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Su("z",a,u,this.animationValues);for(let d=0;d<Iu.length;d++)Su(`rotate${Iu[d]}`,a,u,this.animationValues),Su(`skew${Iu[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}getProjectionStyles(a){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return pM;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Qs(a==null?void 0:a.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const f={};return this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Qs(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!To(this.latestValues)&&(f.transform=d?d({},""):"none",this.hasProjected=!1),f}const h=p.animationValues||p.latestValues;this.applyTransformsToTarget(),u.transform=dM(this.projectionDeltaWithTransform,this.treeScale,h),d&&(u.transform=d(h,u.transform));const{x:g,y:m}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${m.origin*100}% 0`,p.animationValues?u.opacity=p===this?(c=(l=h.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=p===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const f in li){if(h[f]===void 0)continue;const{correct:b,applyTo:v,isCSSVariable:T}=li[f],x=u.transform==="none"?h[f]:b(h[f],p);if(v){const S=v.length;for(let y=0;y<S;y++)u[v[y]]=x}else T?this.options.visualElement.renderState.vars[f]=x:u[f]=x}return this.options.layoutId&&(u.pointerEvents=p===this?Qs(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(e0),this.root.sharedNodes.clear()}}}function hM(e){e.updateLayout()}function mM(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=e.layout,{animationType:s}=e.options,a=n.source!==e.layout.source;s==="size"?on(p=>{const h=a?n.measuredBox[p]:n.layoutBox[p],g=kt(h);h.min=o[p].min,h.max=h.min+g}):a0(s,n.layoutBox,o)&&on(p=>{const h=a?n.measuredBox[p]:n.layoutBox[p],g=kt(o[p]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+g)});const l=hr();Ei(l,o,n.layoutBox);const c=hr();a?Ei(c,e.applyTransform(r,!0),n.measuredBox):Ei(c,o,n.layoutBox);const u=!Hb(l);let d=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:h,layout:g}=p;if(h&&g){const m=mt();Ii(m,n.layoutBox,h.layoutBox);const f=mt();Ii(f,o,g.layoutBox),Zb(m,f)||(d=!0),p.options.layoutRoot&&(e.relativeTarget=f,e.relativeTargetOrigin=m,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function gM(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function bM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vM(e){e.clearSnapshot()}function e0(e){e.clearMeasurements()}function yM(e){e.isLayoutDirty=!1}function xM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function t0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function CM(e){e.resolveTargetDelta()}function TM(e){e.calcProjection()}function EM(e){e.resetSkewAndRotation()}function IM(e){e.removeLeadSnapshot()}function n0(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function o0(e,t,n,o){e.min=rt(t.min,n.min,o),e.max=rt(t.max,n.max,o)}function SM(e,t,n,o){o0(e.x,t.x,n.x,o),o0(e.y,t.y,n.y,o)}function wM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const AM={duration:.45,ease:[.4,0,.1,1]},r0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),i0=r0("applewebkit/")&&!r0("chrome/")?Math.round:Lt;function s0(e){e.min=i0(e.min),e.max=i0(e.max)}function RM(e){s0(e.x),s0(e.y)}function a0(e,t,n){return e==="position"||e==="preserve-aspect"&&!NN(Yb(t),Yb(n),.2)}function OM(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const PM=Qb({attachResizeListener:(e,t)=>xi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wu={current:void 0},l0=Qb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wu.current){const e=new PM({});e.mount(window),e.setOptions({layoutScroll:!0}),wu.current=e}return wu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),NM={pan:{Feature:UN},drag:{Feature:XN,ProjectionNode:l0,MeasureLayout:kb}};function c0(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=o[r];s&&Ke.postRender(()=>s(t,Ci(t)))}class MM extends eo{mount(){const{current:t}=this.node;t&&(this.unmount=MO(t,(n,o)=>(c0(this.node,o,"Start"),r=>c0(this.node,r,"End"))))}unmount(){}}class kM extends eo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vi(xi(this.node.current,"focus",()=>this.onFocus()),xi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function u0(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=o[r];s&&Ke.postRender(()=>s(t,Ci(t)))}class DM extends eo{mount(){const{current:t}=this.node;t&&(this.unmount=FO(t,(n,o)=>(u0(this.node,o,"Start"),(r,{success:s})=>u0(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Au=new WeakMap,Ru=new WeakMap,BM=e=>{const t=Au.get(e.target);t&&t(e)},FM=e=>{e.forEach(BM)};function jM({root:e,...t}){const n=e||document;Ru.has(n)||Ru.set(n,{});const o=Ru.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(FM,{root:e,...t})),o[r]}function VM(e,t,n){const o=jM(t);return Au.set(e,n),o.observe(e),()=>{Au.delete(e),o.unobserve(e)}}const LM={some:0,all:1};class _M extends eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:LM[r]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),h=u?d:p;h&&h(c)};return VM(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some($M(t,n))&&this.startObserver()}unmount(){}}function $M({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const WM={inView:{Feature:_M},tap:{Feature:DM},focus:{Feature:kM},hover:{Feature:MM}},GM={layout:{ProjectionNode:l0,MeasureLayout:kb}},Ou={current:null},d0={current:!1};function zM(){if(d0.current=!0,!!Ec)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ou.current=e.matches;e.addListener(t),t()}else Ou.current=!1}const HM=[...Vg,Rt,Qn],XM=e=>HM.find(jg(e)),UM=new WeakMap;function ZM(e,t,n){for(const o in t){const r=t[o],s=n[o];if(At(r))e.addValue(o,r),process.env.NODE_ENV==="development"&&Zs(r.version==="12.4.3",`Attempting to mix Motion versions ${r.version} with 12.4.3 may not work as expected.`);else if(At(s))e.addValue(o,hi(r,{owner:e}));else if(s!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,hi(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const p0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class YM{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=lu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=wn.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ke.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=a;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=qs(n),this.isVariantNode=Mm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in h){const m=h[g];c[g]!==void 0&&At(m)&&m.set(c[g],!1)}}mount(t){this.current=t,UM.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,o)=>this.bindToMotionValue(o,n)),d0.current||zM(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ou.current,process.env.NODE_ENV!=="production"&&Zs(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),qn(this.notifyUpdate),qn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=vo.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Ke.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in lr){const n=lr[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<p0.length;o++){const r=p0[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,a=t[s];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=ZM(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=hi(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){var o;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(o=this.getBaseTargetFromProps(this.props,t))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Bg(r)||Tg(r))?r=parseFloat(r):!XM(r)&&Qn.test(n)&&(r=Og(t,n)),this.setBaseTarget(t,At(r)?r.get():r)),At(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const a=Vc(this.props,o,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(r=a[t])}if(o&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!At(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Jc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class f0 extends YM{constructor(){super(...arguments),this.KeyframeResolver=_g}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;At(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function JM(e){return window.getComputedStyle(e)}class qM extends f0{constructor(){super(...arguments),this.type="html",this.renderInstance=Zm}readValueFromInstance(t,n){if(vo.has(n)){const o=iu(n);return o&&o.default||0}else{const o=JM(t),r=(Pc(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ob(t,n)}build(t,n,o){kc(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return _c(t,n,o)}}class KM extends f0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Um(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vo.has(n)){const o=iu(n);return o&&o.default||0}return n=Ym.has(n)?n:Rc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return qm(t,n,o)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ke.postRender(this.updateDimensions)}build(t,n,o){Fc(t,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,o,r){Jm(t,n,o,r)}mount(t){this.isSVGTag=jc(t.tagName),super.mount(t)}}const QM=(e,t)=>Bc(e)?new KM(t):new qM(t,{allowProjection:e!==M.Fragment}),ek=SO({...TN,...WM,...NM,...GM},QM),Eo=WR(ek),la=({label:e,icon:t,hasFooter:n=!1,showCheckBox:o=!1,options:r,setVisibleGridColumns:s,defaultValue:a=!0,isMulti:l=!1,handleSelectClick:c})=>{var y,w;const u=ht(),[d,p]=M.useState(!1),[h,g]=M.useState(a?(y=r==null?void 0:r[0])==null?void 0:y.label:"Select option"),[m,f]=M.useState(r||[]);((w=m==null?void 0:m.filter(A=>!(A!=null&&A.isMandatory)))==null?void 0:w.length)>7;const b=M.useRef(null),v=M.useRef(null),T=M.useCallback(A=>{let R=[...m];R=R==null?void 0:R.map(P=>(P==null?void 0:P.key)===A?{...P,hidden:!P.hidden}:P),f(R),p(!0)},[m]);M.useCallback(()=>{f(A=>{const R=[...A];return R.splice(v.current,0,R.splice(b.current,1)[0]),R.map((P,N)=>({...P,sequence_id:N})).sort((P,N)=>P.sequence_id-N.sequence_id)}),b.current=null,v.current=null},[m]);const x=()=>{p(null),(m==null?void 0:m.length)>0&&s(m)},S=()=>{p(null),s(r),f(r)};return C.jsx(ge,{sx:{position:"relative",flexShrink:0},children:C.jsx(ge,{position:"absolute",top:0,zIndex:10,children:C.jsxs(Eo.div,{style:{position:"relative",maxHeight:"3rem",border:`0.1rem solid ${u.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",color:u.palette.primary.notifyTextColor,backgroundColor:u.palette.primary.notifyBackground,overflow:"hidden",width:"max-content"},animate:{maxHeight:d?"15rem":"3rem"},transition:{duration:.2,ease:"easeInOut"},children:[C.jsxs(ge,{sx:{padding:"0.65rem",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",gap:"0.5rem"},onClick:()=>p(!d),children:[C.jsx(ge,{component:"img",layout:!0,className:"select-icon",src:t,sx:{cursor:"pointer"}}),C.jsx(Kt,{sx:{color:u.palette.primary.notifyTextColor,flex:1,fontSize:"1.1rem"},children:e||h}),C.jsx(ge,{component:"img",layout:!0,className:"child",src:d?kn.ArrowSelectDown:kn.ArrowSelectUp,sx:{cursor:"pointer"}})]}),d&&C.jsx("hr",{style:{width:"100%",height:"0.1rem",backgroundColor:u.palette.primary.notifyBorderColor,border:"none"}}),C.jsx(Eo.ul,{style:{listStyle:"none",padding:"0rem 1rem 0.8rem 1rem",margin:0,opacity:d?1:0,visibility:d?"visible":"hidden",maxHeight:"10rem",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:`${u.palette.primary.notifyIconColor} transparent`},initial:{opacity:0},animate:{opacity:d?1:0},transition:{duration:.3,ease:"easeInOut"},children:r==null?void 0:r.map((A,R)=>C.jsxs("li",{style:{padding:"0.4rem",cursor:"pointer",fontSize:"1.1rem",color:u.palette.primary.notifyTextColor,backgroundColor:u.palette.primary.notifyBackground},onClick:()=>{g(A==null?void 0:A.label),!l&&p(!1),c(A)},children:[o&&C.jsx(nc,{size:"medium",sx:{color:u.palette.primary.notifyIconColor,"&.Mui-checked":{color:u.palette.brandColor.orange},p:"0.2rem 0.5rem"},onChange:()=>T(A)}),A==null?void 0:A.label]},R))}),n&&d&&C.jsxs(Eo.div,{layout:!0,style:{display:"flex",flexDirection:"row",padding:"0.5rem 1rem",justifyContent:"space-between",borderTop:`0.1rem solid ${u.palette.primary.notifyBorderColor}`,position:"sticky",bottom:0,opacity:d?1:0,visibility:d?"visible":"hidden"},initial:{opacity:0},animate:{opacity:d?1:0},transition:{duration:.3,ease:"easeInOut"},children:[C.jsx(Eo.button,{layout:!0,onClick:x,style:{textTransform:"none",padding:"0.4rem",background:"transparent",color:u.palette.primary.notifyTextColor,fontSize:"1.1rem",border:"none",cursor:"pointer"},children:"Apply"}),C.jsx(Eo.button,{layout:!0,onClick:S,style:{textTransform:"none",padding:"0.4rem",background:"transparent",color:u.palette.primary.notifyTextColor,fontSize:"1.1rem",border:"none",cursor:"pointer"},children:"Cancel"})]})]})})})},tk=({page:e,rowPerPage:t,total:n,handleChangePage:o,rowSelectProps:r})=>{const s=ht();return C.jsxs(ge,{sx:{display:"flex",p:"1rem 2rem"},children:[C.jsxs(ge,{sx:{zIndex:10,display:"flex",flexDirection:"row",gap:"0.5rem",width:"100%"},children:[C.jsx(ge,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:C.jsxs(Kt,{sx:{fontSize:"1.1rem",color:s.palette.primary.notifyActiveText},children:["Showing ",(e-1)*t+1," to"]})}),C.jsx(ge,{sx:{display:"flex",flexDirection:"row",gap:"0.5rem",justifyContent:"space-between"},children:C.jsx(ge,{sx:{display:"flex",flexDirection:"row",width:"5.5rem"},children:C.jsx(la,{...r})})}),C.jsx(ge,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:C.jsxs(Kt,{sx:{fontSize:"1.1rem",color:s.palette.primary.notifyActiveText},children:["of ",n," records"]})})]}),C.jsx(hc,{count:Math.ceil(n/t),page:e,onChange:(a,l)=>{o(l)},shape:"rounded",sx:{width:"100%","& .MuiPagination-ul":{width:"100%",display:"flex",justifyContent:"flex-end","& li:first-of-type":{border:`0.1rem solid ${s.palette.primary.notifyBorderColor}`,color:s.palette.primary.notifyActiveText,marginRight:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"},"& li:last-child":{border:`0.1rem solid ${s.palette.primary.notifyBorderColor}`,color:s.palette.primary.notifyActiveText,marginLeft:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"}},"& .MuiPaginationItem-root":{color:"#595959",fontSize:"1.1rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex","& .MuiSvgIcon-root":{fontSize:"2.2rem"}},"& .Mui-selected":{color:s.palette.primary.notifyActiveText,backgroundColor:s.palette.primary.notifyButtonBackground}}})]})},nk=({column:e,sortField:t,sortDir:n,handleSortClick:o})=>{const r=s=>C.jsx(Gr,{onClick:o,children:C.jsx(ge,{component:"img",src:s})});return C.jsx(C.Fragment,{children:t===(e==null?void 0:e.field)?r(n==="asc"?kn.AscSort:kn.DescSort):r(kn.Unsort)})},ok=({menuOpen:e,handleClose:t,visibleGridColumns:n,setVisibleGridColumns:o,selected:r,setSelected:s})=>{const a=ht(),l=()=>{let c=[...n];c=c==null?void 0:c.map(u=>(u==null?void 0:u.key)===r?{...u,hidden:!u.hidden}:u),s(null),o(c),t()};return C.jsx(pc,{open:!!e,anchorEl:e,onClose:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:C.jsx(ge,{sx:{p:"0.4rem 1rem",backgroundColor:a.palette.primary.notifyBackground,border:`0.1rem solid ${a.palette.primary.notifyBorderColor}`,minHeight:"2.3rem",display:"flex",justifyContent:"center",alignItems:"center"},children:C.jsx(Fs,{onClick:l,sx:{textTransform:"none",fontSize:"1.1rem",p:0,minHeight:"unset",fontWeight:"500",color:a.palette.primary.notifyTextColor},children:"Hide Column"})})})},rk=({visibleGridColumns:e,setVisibleGridColumns:t,gridData:n,handleSortClick:o,sortDir:r,sortField:s,handleChangePage:a,gridTools:l,paginationProps:c})=>{const u=ht(),[d,p]=M.useState(null),[h,g]=M.useState(null),m=(T,x=20)=>(T==null?void 0:T.length)>x?`${T.slice(0,x)}...`:T,f=T=>C.jsx(am,{title:(T==null?void 0:T.length)>20?T:"",arrow:!0,children:C.jsx(ge,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none",fontSize:"1.1rem"},component:"label",children:m(T)})}),b=(T,x)=>{p(T.currentTarget),g(x)},v=()=>{p(null)};return C.jsxs(ge,{position:"relative",children:[C.jsx(pm,{sx:{maxHeight:"100%"},children:C.jsxs(vc,{stickyHeader:!0,sx:{backgroundColor:u.palette.primary.notifyBackground,border:`0.1rem solid ${u.palette.primary.notifyBorderColor}`,borderRadius:"1.4rem","& .MuiTableHead-root":{backgroundColor:u.palette.primary.notifyBackground}},children:[C.jsxs(xc,{children:[C.jsx(bo,{children:e==null?void 0:e.map((T,x)=>{var S;if(!(T!=null&&T.hidden))return C.jsx(go,{style:{minWidth:T.width},rowSpan:T!=null&&T.children?1:2,colSpan:(S=T==null?void 0:T.children)==null?void 0:S.length,sx:{color:u.palette.primary.notifyTextColor,backgroundColor:u.palette.primary.notifyBackground,borderColor:u.palette.primary.notifyBorderColor,p:"0.8rem 1rem",borderTopLeftRadius:(T==null?void 0:T.field)&&"1.4rem",borderTopRightRadius:"1.4rem",textAlign:"center"},children:C.jsxs(ge,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",fontSize:"1.1rem"},children:[T.headerName,T.sortable&&C.jsx(nk,{column:T,sortField:s,sortDir:r,handleSortClick:()=>o({column:T,sortDir:r,sortField:s})}),!(T!=null&&T.children)&&!(T!=null&&T.isMandatory)&&l.hasManageColumns&&C.jsx(Gr,{onClick:y=>b(y,T==null?void 0:T.key),children:C.jsx(ge,{component:"img",src:kn.Menu})})]})},x)})}),(e==null?void 0:e.some(T=>T==null?void 0:T.children))&&C.jsx(bo,{sx:{backgroundColor:u.palette.primary.notifyBackground},children:e.map(T=>T!=null&&T.children?T.children.map((x,S)=>C.jsx(go,{style:{minWidth:x==null?void 0:x.width},sx:{p:"0.8rem 1rem",color:u.palette.primary.notifyTextColor,backgroundColor:u.palette.primary.notifyBackground,borderColor:u.palette.primary.notifyBorderColor,borderLeft:T!=null&&T.field?"none":`0.1rem solid ${u.palette.primary.notifyBorderColor}`,textAlign:"center"},children:C.jsx(ge,{component:"label",sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",fontSize:"1.1rem"},children:x.headerName})},S)):null)})]}),C.jsx(yc,{children:n.map(T=>C.jsx(bo,{hover:!0,role:"checkbox",tabIndex:-1,sx:{"&:hover":{backgroundColor:u.palette.primary.notifyBorderColor}},children:e.map((x,S)=>x.cellRenderer?C.jsx(go,{sx:{color:u.palette.primary.notifyTextColor,borderColor:u.palette.primary.notifyBorderColor,p:"0.5rem",textAlign:"center"},children:f(x.cellRenderer(T))},S):!x.hidden&&x.field?C.jsx(go,{sx:{color:u.palette.primary.notifyTextColor,borderColor:u.palette.primary.notifyBorderColor,p:"0.8rem 1rem",borderLeft:x!=null&&x.field?"none":`0.1rem solid ${u.palette.primary.notifyBorderColor}`,textAlign:"center"},children:f(T[x.field])},S):x.children?x.children.map((y,w)=>C.jsx(go,{sx:{color:u.palette.primary.notifyTextColor,borderColor:u.palette.primary.notifyBorderColor,p:"0.5rem",textAlign:"center"},children:f(y.cellRenderer?y.cellRenderer(y==null?void 0:y.valueGetter(T)):"")},`${S}-${w}`)):null)},T.code))})]})}),C.jsx(tk,{...c}),C.jsx(ok,{menuOpen:d,handleClose:v,visibleGridColumns:e,setVisibleGridColumns:t,selected:h,setSelected:g})]})},wi=({icon:e,label:t,variant:n,buttonBackground:o,iconPosition:r,...s})=>{const a=ht();if(e&&!t)return C.jsx(Gr,{disableRipple:!0,sx:{background:n!=="outlined"?o:a.palette.primary.notifyBackground,borderRadius:"0.7rem",border:n=="outlined"?`0.1rem solid ${a.palette.primary.notifyBorderColor}`:"none",height:"3.2rem",padding:"1.5rem 1rem",display:"flex",justifyContent:"center",alignItems:"center"},...s,children:C.jsx(ge,{component:"img",src:e})});if(t)return C.jsx(Fs,{disableRipple:!0,sx:{background:n!=="outlined"?o:a.palette.primary.notifyBackground,borderRadius:"0.7rem",border:n=="outlined"?`0.1rem solid ${a.palette.primary.notifyBorderColor}`:"none",height:"3.2rem",padding:"1.5rem",display:"flex",justifyContent:"center",textTransform:"none",alignItems:"center",gap:"0.5rem",color:n=="outlined"?a.palette.primary.notifyActiveText:"white","&:hover":{backgroundColor:n!=="outlined"?o:a.palette.primary.notifyBackground,boxShadow:"none"}},startIcon:r==="start"&&C.jsx(ge,{component:"img",src:e}),endIcon:r==="end"&&C.jsx(ge,{component:"img",src:e}),...s,children:C.jsx(Kt,{sx:{fontSize:"1.1rem"},children:t})})},ik=e=>{if(!e)return null;const{type:t,...n}=e,o={button:r=>C.jsx(wi,{...r}),select:r=>C.jsx(la,{...r})};return o[t]?o[t](n):null},sk=({...e})=>{const[t,n]=M.useState(!1),o=ht();return C.jsx(Eo.input,{type:"text",onFocus:()=>n(!0),onBlur:()=>n(!1),initial:{width:150,borderRadius:"0.7rem"},animate:{width:t?180:150},transition:{duration:.3,ease:"easeInOut"},style:{height:"3rem",outline:"none",boxShadow:"none",border:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,backgroundColor:o.palette.primary.notifyBackground,padding:"0rem 1rem",color:o.palette.primary.notifyTextColor,transition:"height 0.1s ease"},...e})},ak=({visibleGridColumns:e,setVisibleGridColumns:t,gridTools:n,searchProps:o,refreshProps:r,uploadProps:s,downloadProps:a,customTools:l,manageColumnProps:c})=>{var u,d;return ht(),Eo(wi),M.useState(!1),C.jsxs(ge,{sx:{margin:"1rem 0",position:"relative",zIndex:10,display:"flex",flexDirection:"row",gap:"0.5rem",width:"100%"},children:[C.jsxs(ge,{sx:{display:"flex",flexDirection:"row",gap:"0.5rem"},children:[n.hasSearch&&C.jsx(sk,{...o}),n.hasRefresh&&C.jsx(wi,{...r})]}),C.jsx(ge,{sx:{display:"flex",flexDirection:"row",gap:"0.5rem",justifyContent:"space-between",flex:1,width:"27rem"},children:C.jsxs(ge,{sx:{display:"flex",flexDirection:"row",gap:"0.5rem"},children:[n.hasManageColumns&&C.jsx(la,{...c,visibleGridColumns:e,setVisibleGridColumns:t}),(u=l.left)==null?void 0:u.map(p=>p)]})}),C.jsxs(ge,{sx:{display:"flex",flexDirection:"row",gap:"0.5rem"},children:[(d=l.right)==null?void 0:d.map((p,h)=>C.jsx(M.Fragment,{children:ik(p)},h)),n.hasUpload&&C.jsx(wi,{...s}),n.hasDownload&&C.jsx(wi,{...a})]})]})},lk={light:ds({palette:{primary:{appBackground:"#FFFFFF",main:"#f5f7fa",notifyBackground:"#F8FAFB",notifyTextColor:"#525252",notifyActiveText:"#282A2A",notifyBorderColor:"#D0D4DA",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#E6EAEC",notifyActiveBorderColor:"#1D1D1D",notifyIconColor:"#666D80"},brandColor:{blue:"#0166FF",orange:"#E94F1C",grey1:"#595959",main:"#FF6D33",grey3:"#898A93"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}}}),dark:ds({palette:{primary:{appBackground:"#101010",main:"#f5f7fa",notifyBackground:"#1D1D1D",notifyTextColor:"#A8A8A8",notifyActiveText:"#FFFFFF",notifyBorderColor:"#313133",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#2C2C2F",notifyActiveBorderColor:"#FFFFFF",notifyIconColor:"#909090"},brandColor:{blue:"#0166FF",orange:"#E94F1C",grey1:"#595959",main:"#FF6D33",grey3:"#898A93"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}}})};function h0({children:e}){var n,o;const t=((o=(n=JSON.parse(localStorage.getItem("settings")))==null?void 0:n.platform)==null?void 0:o.theme)||"light";return C.jsx(Df,{theme:lk[t],children:e})}const ck=({tableProps:e,toolbarProps:t})=>{const[n,o]=M.useState(e.gridColDef);return C.jsxs(h0,{children:[C.jsx(ak,{...t,visibleGridColumns:n,setVisibleGridColumns:o}),C.jsx(rk,{visibleGridColumns:n,setVisibleGridColumns:o,...e,...t})]})},ct={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ"},Fn={SWR:"Something went wrong!",UNHANDLED:"Unhandled action type: ",INVALID:"Invalid action type: ",INVALID_ACTION:"Invalid action type: ",NRF:"No Records found"},Pu=M.createContext(null),m0=M.createContext(null);function uk({children:e}){const[t,n]=M.useReducer(dk,pk);return C.jsx(Pu.Provider,{value:t,children:C.jsx(m0.Provider,{value:n,children:e})})}function dk(e,t){var n;switch(t.type){case ct.LOADING:return{...e,loading:t.loading};case ct.SUCCESS:return{...e,data:(n=t.data)==null?void 0:n.sort((o,r)=>new Date(r.createdAt)-new Date(o.createdAt))};case ct.MARK_ALL_AS_READ:return{...e,isMarkAllAsRead:t.isMarkAllAsRead};case ct.ERROR:return{...e,error:t.error};default:throw new Error(`${Fn.UNHANDLED}: ${t}`)}}const pk={loading:!1,data:[],error:"",isMarkAllAsRead:{count:0,boo:!1}},Nu=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):""},fk=e=>{const t=new Date,n=new Date(e);let o=t-n;o<0&&(o=0);const r=Math.floor(o/1e3),s=Math.floor(r/60);return r<60?`${r} sec ago`:s<60?`${s} min ago`:n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})},Mu=e=>e.sort((n,o)=>{let r=new Date(n.createdAt),s=new Date(o.createdAt);return r===s?0:r>s?-1:1}).sort((n,o)=>n.isRead===o.isRead?0:o.isRead?-1:1),hk=e=>{let t=0;for(let n=0;n<e.length;n++)e[n].isRead||t++;return t},mk=e=>{const t=[];return e.forEach(n=>{n.isRead||t.push(n.id)}),t},gk=(e,t,n)=>e.filter(r=>t.some(s=>{var a,l,c;return(c=(a=r[s])==null?void 0:a.toLowerCase())==null?void 0:c.includes((l=n==null?void 0:n.trim())==null?void 0:l.toLowerCase())})),bk=(e,t,n)=>e.sort((r,s)=>n==="asc"?r[t].toLowerCase().localeCompare(s[t].toLowerCase()):s[t].toLowerCase().localeCompare(r[t].toLowerCase())),ku=(e,t,n)=>e.slice((t-1)*n,t*n),Du=e=>e.split("_").map(t=>t==="sku"?"SKU":t[0].toUpperCase()+t.substring(1)).join(" "),vk=e=>{const t=e.reduce((o,r)=>{const s=new Date(r==null?void 0:r.createdAt),a=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(s);return o[a]||(o[a]=[]),o[a].push(r),o},{});return Object.fromEntries(Object.entries(t).sort(([o],[r])=>new Date(r)-new Date(o)))};function g0(e,t){return function(){return e.apply(t,arguments)}}const{toString:yk}=Object.prototype,{getPrototypeOf:Bu}=Object,ca=(e=>t=>{const n=yk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hn=e=>(e=e.toLowerCase(),t=>ca(t)===e),ua=e=>t=>typeof t===e,{isArray:br}=Array,Ai=ua("undefined");function xk(e){return e!==null&&!Ai(e)&&e.constructor!==null&&!Ai(e.constructor)&&sn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b0=hn("ArrayBuffer");function Ck(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&b0(e.buffer),t}const Tk=ua("string"),sn=ua("function"),v0=ua("number"),da=e=>e!==null&&typeof e=="object",Ek=e=>e===!0||e===!1,pa=e=>{if(ca(e)!=="object")return!1;const t=Bu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ik=hn("Date"),Sk=hn("File"),wk=hn("Blob"),Ak=hn("FileList"),Rk=e=>da(e)&&sn(e.pipe),Ok=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||sn(e.append)&&((t=ca(e))==="formdata"||t==="object"&&sn(e.toString)&&e.toString()==="[object FormData]"))},Pk=hn("URLSearchParams"),[Nk,Mk,kk,Dk]=["ReadableStream","Request","Response","Headers"].map(hn),Bk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ri(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),br(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let l;for(o=0;o<a;o++)l=s[o],t.call(null,e[l],l,e)}}function y0(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,r;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const x0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,C0=e=>!Ai(e)&&e!==x0;function Fu(){const{caseless:e}=C0(this)&&this||{},t={},n=(o,r)=>{const s=e&&y0(t,r)||r;pa(t[s])&&pa(o)?t[s]=Fu(t[s],o):pa(o)?t[s]=Fu({},o):br(o)?t[s]=o.slice():t[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Ri(arguments[o],n);return t}const Fk=(e,t,n,{allOwnKeys:o}={})=>(Ri(t,(r,s)=>{n&&sn(r)?e[s]=g0(r,n):e[s]=r},{allOwnKeys:o}),e),jk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vk=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Lk=(e,t,n,o)=>{let r,s,a;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],(!o||o(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Bu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_k=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},$k=e=>{if(!e)return null;if(br(e))return e;let t=e.length;if(!v0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bu(Uint8Array)),Gk=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},zk=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Hk=hn("HTMLFormElement"),Xk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),T0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Uk=hn("RegExp"),E0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Ri(n,(r,s)=>{let a;(a=t(r,s,e))!==!1&&(o[s]=a||r)}),Object.defineProperties(e,o)},Zk=e=>{E0(e,(t,n)=>{if(sn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(sn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Yk=(e,t)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return br(e)?o(e):o(String(e).split(t)),n},Jk=()=>{},qk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ju="abcdefghijklmnopqrstuvwxyz",I0="0123456789",S0={DIGIT:I0,ALPHA:ju,ALPHA_DIGIT:ju+ju.toUpperCase()+I0},Kk=(e=16,t=S0.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Qk(e){return!!(e&&sn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const eD=e=>{const t=new Array(10),n=(o,r)=>{if(da(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const s=br(o)?[]:{};return Ri(o,(a,l)=>{const c=n(a,r+1);!Ai(c)&&(s[l]=c)}),t[r]=void 0,s}}return o};return n(e,0)},tD=hn("AsyncFunction"),W={isArray:br,isArrayBuffer:b0,isBuffer:xk,isFormData:Ok,isArrayBufferView:Ck,isString:Tk,isNumber:v0,isBoolean:Ek,isObject:da,isPlainObject:pa,isReadableStream:Nk,isRequest:Mk,isResponse:kk,isHeaders:Dk,isUndefined:Ai,isDate:Ik,isFile:Sk,isBlob:wk,isRegExp:Uk,isFunction:sn,isStream:Rk,isURLSearchParams:Pk,isTypedArray:Wk,isFileList:Ak,forEach:Ri,merge:Fu,extend:Fk,trim:Bk,stripBOM:jk,inherits:Vk,toFlatObject:Lk,kindOf:ca,kindOfTest:hn,endsWith:_k,toArray:$k,forEachEntry:Gk,matchAll:zk,isHTMLForm:Hk,hasOwnProperty:T0,hasOwnProp:T0,reduceDescriptors:E0,freezeMethods:Zk,toObjectSet:Yk,toCamelCase:Xk,noop:Jk,toFiniteNumber:qk,findKey:y0,global:x0,isContextDefined:C0,ALPHABET:S0,generateString:Kk,isSpecCompliantForm:Qk,toJSONObject:eD,isAsyncFn:tD,isThenable:e=>e&&(da(e)||sn(e))&&sn(e.then)&&sn(e.catch)};function we(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}W.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const w0=we.prototype,A0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{A0[e]={value:e}}),Object.defineProperties(we,A0),Object.defineProperty(w0,"isAxiosError",{value:!0}),we.from=(e,t,n,o,r,s)=>{const a=Object.create(w0);return W.toFlatObject(e,a,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),we.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const nD=null;function Vu(e){return W.isPlainObject(e)||W.isArray(e)}function R0(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function O0(e,t,n){return e?e.concat(t).map(function(r,s){return r=R0(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function oD(e){return W.isArray(e)&&!e.some(Vu)}const rD=W.toFlatObject(W,{},null,function(t){return/^is[A-Z]/.test(t)});function fa(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,b){return!W.isUndefined(b[f])});const o=n.metaTokens,r=n.visitor||d,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(W.isDate(m))return m.toISOString();if(!c&&W.isBlob(m))throw new we("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(m)||W.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,f,b){let v=m;if(m&&!b&&typeof m=="object"){if(W.endsWith(f,"{}"))f=o?f:f.slice(0,-2),m=JSON.stringify(m);else if(W.isArray(m)&&oD(m)||(W.isFileList(m)||W.endsWith(f,"[]"))&&(v=W.toArray(m)))return f=R0(f),v.forEach(function(x,S){!(W.isUndefined(x)||x===null)&&t.append(a===!0?O0([f],S,s):a===null?f:f+"[]",u(x))}),!1}return Vu(m)?!0:(t.append(O0(b,f,s),u(m)),!1)}const p=[],h=Object.assign(rD,{defaultVisitor:d,convertValue:u,isVisitable:Vu});function g(m,f){if(!W.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));p.push(m),W.forEach(m,function(v,T){(!(W.isUndefined(v)||v===null)&&r.call(t,v,W.isString(T)?T.trim():T,f,h))===!0&&g(v,f?f.concat(T):[T])}),p.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return g(e),t}function P0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Lu(e,t){this._pairs=[],e&&fa(e,this,t)}const N0=Lu.prototype;N0.append=function(t,n){this._pairs.push([t,n])},N0.toString=function(t){const n=t?function(o){return t.call(this,o,P0)}:P0;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function iD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function M0(e,t,n){if(!t)return e;const o=n&&n.encode||iD,r=n&&n.serialize;let s;if(r?s=r(t,n):s=W.isURLSearchParams(t)?t.toString():new Lu(t,n).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class k0{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(o){o!==null&&t(o)})}}const D0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sD={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Lu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_u=typeof window<"u"&&typeof document<"u",aD=(e=>_u&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),lD=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cD=_u&&window.location.href||"http://localhost",mn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_u,hasStandardBrowserEnv:aD,hasStandardBrowserWebWorkerEnv:lD,origin:cD},Symbol.toStringTag,{value:"Module"})),...sD};function uD(e,t){return fa(e,new mn.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return mn.isNode&&W.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function dD(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pD(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],t[s]=e[s];return t}function B0(e){function t(n,o,r,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=s>=n.length;return a=!a&&W.isArray(r)?r.length:a,c?(W.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!l):((!r[a]||!W.isObject(r[a]))&&(r[a]=[]),t(n,o,r[a],s)&&W.isArray(r[a])&&(r[a]=pD(r[a])),!l)}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,(o,r)=>{t(dD(o),r,n,0)}),n}return null}function fD(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Oi={transitional:D0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=W.isObject(t);if(s&&W.isHTMLForm(t)&&(t=new FormData(t)),W.isFormData(t))return r?JSON.stringify(B0(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return uD(t,this.formSerializer).toString();if((l=W.isFileList(t))||o.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return fa(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),fD(t)):t}],transformResponse:[function(t){const n=this.transitional||Oi.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?we.from(l,we.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mn.classes.FormData,Blob:mn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{Oi.headers[e]={}});const hD=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mD=e=>{const t={};let n,o,r;return e&&e.split(`
238
+ `));const se=q.props.value===void 0?Tt:q.props.value;He.set(se,Tt);const Se=se===P;return Tt+=1,I.cloneElement(q,E({fullWidth:N==="fullWidth",indicator:Se&&!U&&et,selected:Se,selectionFollowsFocus:x,onChange:f,textColor:R,value:se},Tt===1&&P===!1&&!q.props.tabIndex?{tabIndex:0}:{}))}),an=q=>{const se=Oe.current,Se=wt(se).activeElement;if(Se.getAttribute("role")!=="tab")return;let qe=b==="horizontal"?"ArrowLeft":"ArrowUp",vt=b==="horizontal"?"ArrowRight":"ArrowDown";switch(b==="horizontal"&&s&&(qe="ArrowRight",vt="ArrowLeft"),q.key){case qe:q.preventDefault(),Hs(se,Se,ym);break;case vt:q.preventDefault(),Hs(se,Se,vm);break;case"Home":q.preventDefault(),Hs(se,null,vm);break;case"End":q.preventDefault(),Hs(se,null,ym);break}},de=dt();return C.jsxs(TR,E({className:re(z.root,p),ownerState:k,ref:n,as:h},G,{children:[de.scrollButtonStart,de.scrollbarSizeListener,C.jsxs(ER,{className:z.scroller,ownerState:k,style:{overflow:fe.overflow,[L?`margin${s?"Left":"Right"}`:"marginBottom"]:F?void 0:-fe.scrollbarWidth},ref:Xe,children:[C.jsx(IR,{"aria-label":a,"aria-labelledby":l,"aria-orientation":b==="vertical"?"vertical":null,className:z.flexContainer,ownerState:k,onKeyDown:an,ref:Oe,role:"tablist",children:Ot}),U&&et]}),de.scrollButtonEnd]}))});process.env.NODE_ENV!=="production"&&(Tm.propTypes={action:Nt,allowScrollButtonsMobile:i.bool,"aria-label":i.string,"aria-labelledby":i.string,centered:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,indicatorColor:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),onChange:i.func,orientation:i.oneOf(["horizontal","vertical"]),ScrollButtonComponent:i.elementType,scrollButtons:i.oneOf(["auto",!1,!0]),selectionFollowsFocus:i.bool,slotProps:i.shape({endScrollButtonIcon:i.oneOfType([i.func,i.object]),startScrollButtonIcon:i.oneOfType([i.func,i.object])}),slots:i.shape({EndScrollButtonIcon:i.elementType,StartScrollButtonIcon:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TabIndicatorProps:i.object,TabScrollButtonProps:i.object,textColor:i.oneOf(["inherit","primary","secondary"]),value:i.any,variant:i.oneOf(["fullWidth","scrollable","standard"]),visibleScrollbar:i.bool});function AR(e){return Ce("MuiTextField",e)}Te("MuiTextField",["root"]);const RR=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],OR={standard:_s,filled:Ls,outlined:Ws},PR=e=>{const{classes:t}=e;return Ee({root:["root"]},AR,t)},NR=J(Ph,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Em=I.forwardRef(function(t,n){const o=Ie({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:m,id:f,InputLabelProps:b,inputProps:v,InputProps:T,inputRef:x,label:S,maxRows:y,minRows:w,multiline:A=!1,name:R,onBlur:P,onChange:N,onFocus:F,placeholder:G,required:j=!1,rows:L,select:_=!1,SelectProps:V,type:$,value:D,variant:X="outlined"}=o,k=oe(o,RR),z=E({},o,{autoFocus:s,color:c,disabled:d,error:p,fullWidth:g,multiline:A,required:j,select:_,variant:X}),Z=PR(z);process.env.NODE_ENV!=="production"&&_&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const ee={};X==="outlined"&&(b&&typeof b.shrink<"u"&&(ee.notched=b.shrink),ee.label=S),_&&((!V||!V.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const U=is(f),Q=m&&U?`${U}-helper-text`:void 0,Y=S&&U?`${U}-label`:void 0,ne=OR[X],te=C.jsx(ne,E({"aria-describedby":Q,autoComplete:r,autoFocus:s,defaultValue:u,fullWidth:g,multiline:A,name:R,rows:L,maxRows:y,minRows:w,type:$,value:D,id:U,inputRef:x,onBlur:P,onChange:N,onFocus:F,placeholder:G,inputProps:v},ee,T));return C.jsxs(NR,E({className:re(Z.root,l),disabled:d,error:p,fullWidth:g,ref:n,required:j,color:c,variant:X,ownerState:z},k,{children:[S!=null&&S!==""&&C.jsx(Bh,E({htmlFor:U,id:Y},b,{children:S})),_?C.jsx(gc,E({"aria-describedby":Q,id:U,labelId:Y,value:D,input:te},V,{children:a})):te,m&&C.jsx(kh,E({id:Q},h,{children:m}))]}))});process.env.NODE_ENV!=="production"&&(Em.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:Nt,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const kn={Search:"data:image/svg+xml,%3csvg%20width='16'%20height='15'%20viewBox='0%200%2016%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.6503%2013.8006C11.3232%2013.8006%2014.3006%2010.8232%2014.3006%207.15029C14.3006%203.47744%2011.3232%200.5%207.6503%200.5C3.97744%200.5%201%203.47744%201%207.15029C1%2010.8232%203.97744%2013.8006%207.6503%2013.8006Z'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.9997%2014.5006L13.5996%2013.1006'%20stroke='%23898A93'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Refresh:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.0733%203.38664C6.6533%203.21331%207.2933%203.09998%207.99997%203.09998C11.1933%203.09998%2013.78%205.68664%2013.78%208.87998C13.78%2012.0733%2011.1933%2014.66%207.99997%2014.66C4.80664%2014.66%202.21997%2012.0733%202.21997%208.87998C2.21997%207.69331%202.57997%206.58664%203.1933%205.66664'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54671L7.17337%201.33337'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.2467%203.54663L7.49337%205.18663'%20stroke='%232176FF'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Close:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%3e%3ccircle%20cx='12'%20cy='12'%20r='11'%20fill='none'%20stroke='%23E85353'%20stroke-width='2'/%3e%3cpath%20d='M8.5%208.5l7%207M15.5%208.5l-7%207'%20stroke='%23E85353'%20stroke-width='2'/%3e%3c/svg%3e",Unsort:"data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.646447%203.24676C0.451184%203.44202%200.451184%203.7586%200.646447%203.95387C0.841709%204.14913%201.15829%204.14913%201.35355%203.95387L0.646447%203.24676ZM3.40012%201.2002H3.90012C3.90012%200.997964%203.7783%200.815646%203.59146%200.738256C3.40462%200.660865%203.18956%200.703643%203.04656%200.846642L3.40012%201.2002ZM2.90012%2010.8007C2.90012%2011.0768%203.12398%2011.3007%203.40012%2011.3007C3.67626%2011.3007%203.90012%2011.0768%203.90012%2010.8007H2.90012ZM9.35377%208.7541C9.54903%208.55884%209.54903%208.24226%209.35377%208.04699C9.15851%207.85173%208.84193%207.85173%208.64666%208.04699L9.35377%208.7541ZM6.6001%2010.8007H6.1001C6.1001%2011.0029%206.22192%2011.1852%206.40876%2011.2626C6.5956%2011.34%206.81065%2011.2972%206.95365%2011.1542L6.6001%2010.8007ZM7.1001%201.2002C7.1001%200.924053%206.87624%200.700195%206.6001%200.700195C6.32396%200.700195%206.1001%200.924053%206.1001%201.2002H7.1001ZM1.35355%203.95387L3.75367%201.55375L3.04656%200.846642L0.646447%203.24676L1.35355%203.95387ZM2.90012%201.2002V10.8007H3.90012V1.2002H2.90012ZM8.64666%208.04699L6.24655%2010.4471L6.95365%2011.1542L9.35377%208.7541L8.64666%208.04699ZM7.1001%2010.8007V1.2002H6.1001V10.8007H7.1001Z'%20fill='%23909090'/%3e%3c/svg%3e",AscSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%204.59888L4.5%201.09888L1%204.59888'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%2010.9013V1.19702'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",DescSort:"data:image/svg+xml,%3csvg%20width='9'%20height='12'%20viewBox='0%200%209%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%207.40112L4.5%2010.9011L8%207.40112'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.5%201.09869L4.5%2010.803'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Menu:"data:image/svg+xml,%3csvg%20width='4'%20height='10'%20viewBox='0%200%204%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%207.5C1.45%207.5%201%207.95%201%208.5C1%209.05%201.45%209.5%202%209.5C2.55%209.5%203%209.05%203%208.5C3%207.95%202.55%207.5%202%207.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%204C1.45%204%201%204.45%201%205C1%205.55%201.45%206%202%206C2.55%206%203%205.55%203%205C3%204.45%202.55%204%202%204Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3cpath%20d='M2%200.5C1.45%200.5%201%200.95%201%201.5C1%202.05%201.45%202.5%202%202.5C2.55%202.5%203%202.05%203%201.5C3%200.95%202.55%200.5%202%200.5Z'%20stroke='%23909090'%20stroke-width='0.7'/%3e%3c/svg%3e",Manage:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.56152%2012.937V3.06201C6.56152%202.12451%206.16152%201.74951%205.16777%201.74951H2.64277C1.64902%201.74951%201.24902%202.12451%201.24902%203.06201V12.937C1.24902%2013.8745%201.64902%2014.2495%202.64277%2014.2495H5.16777C6.16152%2014.2495%206.56152%2013.8745%206.56152%2012.937Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.75%2012.937V3.06201C13.75%202.12451%2013.35%201.74951%2012.3563%201.74951H9.83125C8.8375%201.74951%208.4375%202.12451%208.4375%203.06201V12.937C8.4375%2013.8745%208.8375%2014.2495%209.83125%2014.2495H12.3563C13.35%2014.2495%2013.75%2013.8745%2013.75%2012.937Z'%20stroke='%23909090'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectUp:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%200.595703L5.50126%204.09444C5.08807%204.50763%204.41193%204.50763%203.99874%204.09444L0.5%200.595703'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ArrowSelectDown:"data:image/svg+xml,%3csvg%20width='10'%20height='5'%20viewBox='0%200%2010%205'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9%204.4043L5.50126%200.90556C5.08807%200.492365%204.41193%200.492365%203.99874%200.90556L0.5%204.4043'%20stroke='%23909090'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Upload:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25016%209.9165V6.4165L4.0835%207.58317'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25%206.4165L6.41667%207.58317'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317V8.74984C12.8332%2011.6665%2011.6665%2012.8332%208.74984%2012.8332H5.24984C2.33317%2012.8332%201.1665%2011.6665%201.1665%208.74984V5.24984C1.1665%202.33317%202.33317%201.1665%205.24984%201.1665H8.1665'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8332%205.83317H10.4998C8.74984%205.83317%208.1665%205.24984%208.1665%203.49984V1.1665L12.8332%205.83317Z'%20stroke='white'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Download:"data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.25%206.41699V9.91699L6.41667%208.75033'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.25114%209.91667L4.08447%208.75'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366V8.75033C12.8322%2011.667%2011.6655%2012.8337%208.74886%2012.8337H5.24886C2.33219%2012.8337%201.16553%2011.667%201.16553%208.75033V5.25033C1.16553%202.33366%202.33219%201.16699%205.24886%201.16699H8.16553'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8322%205.83366H10.4989C8.74886%205.83366%208.16553%205.25033%208.16553%203.50033V1.16699L12.8322%205.83366Z'%20stroke='%23909090'%20stroke-width='0.8'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",More:"data:image/svg+xml,%3csvg%20width='15'%20height='16'%20viewBox='0%200%2015%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.4531%202.16699H7.64478C8.07645%202.16699%208.43227%202.52283%208.43227%202.9545V3.81782C8.43227%204.13282%208.23395%204.52366%208.04145%204.722L6.3498%206.21533C6.11647%206.41366%205.95894%206.80449%205.95894%207.11949V8.81117C5.95894%209.0445%205.80145%209.3595%205.60312%209.482L5.05478%209.83782C4.54145%2010.1528%203.8356%209.79699%203.8356%209.16699V7.08449C3.8356%206.81032%203.67811%206.4545%203.52061%206.25616L2.02728%204.68116C1.82895%204.48282%201.67146%204.13282%201.67146%203.89365V2.98949C1.66562%202.52283%202.02144%202.16699%202.4531%202.16699Z'%20stroke='white'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.66211%207.99998V9.74998C1.66211%2012.6666%202.82878%2013.8333%205.74544%2013.8333H9.24544C12.1621%2013.8333%2013.3288%2012.6666%2013.3288%209.74998V6.24998C13.3288%204.42998%2012.8738%203.28664%2011.8179%202.69164C11.5204%202.52248%2010.9254%202.39414%2010.3829%202.30664'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.08789%208.5835H11.0046'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.91211%2010.9165H10.9954'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e"},Im=M.createContext({});function MR(e){const t=M.useRef(null);return t.current===null&&(t.current=e()),t.current}const Tc=M.createContext(null),Sm=M.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function kR(e=!0){const t=M.useContext(Tc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,s=M.useId();M.useEffect(()=>{e&&r(s)},[e]);const a=M.useCallback(()=>e&&o&&o(s),[s,o,e]);return!n&&o?[!1,a]:[!0]}const Ec=typeof window<"u",DR=Ec?M.useLayoutEffect:M.useEffect,Lt=e=>e;let sr=Lt,Jn=Lt;process.env.NODE_ENV!=="production"&&(sr=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Jn=(e,t)=>{if(!e)throw new Error(t)});function Ic(e){let t;return()=>(t===void 0&&(t=e()),t)}const ar=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o},In=e=>e*1e3,Dn=e=>e/1e3,BR={skipAnimations:!1,useManualTiming:!1},Xs=["read","resolveKeyframes","update","preRender","render","postRender"],wm={value:null,addProjectionMetrics:null};function FR(e,t){let n=new Set,o=new Set,r=!1,s=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function u(p){a.has(p)&&(d.schedule(p),e()),c++,p(l)}const d={schedule:(p,h=!1,g=!1)=>{const f=g&&r?n:o;return h&&a.add(p),f.has(p)||f.add(p),p},cancel:p=>{o.delete(p),a.delete(p)},process:p=>{if(l=p,r){s=!0;return}r=!0,[n,o]=[o,n],n.forEach(u),t&&wm.value&&wm.value.frameloop[t].push(c),c=0,n.clear(),r=!1,s&&(s=!1,d.process(p))}};return d}const jR=40;function Am(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Xs.reduce((v,T)=>(v[T]=FR(s,t?T:void 0),v),{}),{read:l,resolveKeyframes:c,update:u,preRender:d,render:p,postRender:h}=a,g=()=>{const v=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(v-r.timestamp,jR),1),r.timestamp=v,r.isProcessing=!0,l.process(r),c.process(r),u.process(r),d.process(r),p.process(r),h.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(g))},m=()=>{n=!0,o=!0,r.isProcessing||e(g)};return{schedule:Xs.reduce((v,T)=>{const x=a[T];return v[T]=(S,y=!1,w=!1)=>(n||m(),x.schedule(S,y,w)),v},{}),cancel:v=>{for(let T=0;T<Xs.length;T++)a[Xs[T]].cancel(v)},state:r,steps:a}}const{schedule:Ke,cancel:qn,state:It,steps:Sc}=Am(typeof requestAnimationFrame<"u"?requestAnimationFrame:Lt,!0),Rm=M.createContext({strict:!1}),Om={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lr={};for(const e in Om)lr[e]={isEnabled:t=>Om[e].some(n=>!!t[n])};function VR(e){for(const t in e)lr[t]={...lr[t],...e[t]}}const LR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Us(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||LR.has(e)}let Pm=e=>!Us(e);function _R(e){e&&(Pm=t=>t.startsWith("on")?!Us(t):e(t))}try{_R(require("@emotion/is-prop-valid").default)}catch{}function $R(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(Pm(r)||n===!0&&Us(r)||!t&&!Us(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const Nm=new Set;function Zs(e,t,n){e||Nm.has(t)||(console.warn(t),Nm.add(t))}function WR(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...o)=>(process.env.NODE_ENV!=="production"&&Zs(!1,"motion() is deprecated. Use motion.create() instead."),e(...o));return new Proxy(n,{get:(o,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Ys=M.createContext({});function Js(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ai(e){return typeof e=="string"||Array.isArray(e)}const wc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ac=["initial",...wc];function qs(e){return Js(e.animate)||Ac.some(t=>ai(e[t]))}function Mm(e){return!!(qs(e)||e.variants)}function GR(e,t){if(qs(e)){const{initial:n,animate:o}=e;return{initial:n===!1||ai(n)?n:void 0,animate:ai(o)?o:void 0}}return e.inherit!==!1?t:{}}function zR(e){const{initial:t,animate:n}=GR(e,M.useContext(Ys));return M.useMemo(()=>({initial:t,animate:n}),[km(t),km(n)])}function km(e){return Array.isArray(e)?e.join(" "):e}const HR=Symbol.for("motionComponentSymbol");function cr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function XR(e,t,n){return M.useCallback(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):cr(n)&&(n.current=o))},[t])}const Rc=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Dm="data-"+Rc("framerAppearId"),{schedule:Oc,cancel:Ij}=Am(queueMicrotask,!1),Bm=M.createContext({});function UR(e,t,n,o,r){var s,a;const{visualElement:l}=M.useContext(Ys),c=M.useContext(Rm),u=M.useContext(Tc),d=M.useContext(Sm).reducedMotion,p=M.useRef(null);o=o||c.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const h=p.current,g=M.useContext(Bm);h&&!h.projection&&r&&(h.type==="html"||h.type==="svg")&&ZR(p.current,n,r,g);const m=M.useRef(!1);M.useInsertionEffect(()=>{h&&m.current&&h.update(n,u)});const f=n[Dm],b=M.useRef(!!f&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,f))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,f)));return DR(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Oc.render(h.render),b.current&&h.animationState&&h.animationState.animateChanges())}),M.useEffect(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,f)}),b.current=!1))}),h}function ZR(e,t,n,o){const{layoutId:r,layout:s,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Fm(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||l&&cr(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,layoutScroll:c,layoutRoot:u})}function Fm(e){if(e)return e.options.allowProjection!==!1?e.projection:Fm(e.parent)}function YR({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:o,Component:r}){var s,a;e&&VR(e);function l(u,d){let p;const h={...M.useContext(Sm),...u,layoutId:JR(u)},{isStatic:g}=h,m=zR(u),f=o(u,g);if(!g&&Ec){qR(h,e);const b=KR(h);p=b.MeasureLayout,m.visualElement=UR(r,f,h,t,b.ProjectionNode)}return C.jsxs(Ys.Provider,{value:m,children:[p&&m.visualElement?C.jsx(p,{visualElement:m.visualElement,...h}):null,n(r,u,XR(f,m.visualElement,d),f,g,m.visualElement)]})}l.displayName=`motion.${typeof r=="string"?r:`create(${(a=(s=r.displayName)!==null&&s!==void 0?s:r.name)!==null&&a!==void 0?a:""})`}`;const c=M.forwardRef(l);return c[HR]=r,c}function JR({layoutId:e}){const t=M.useContext(Im).id;return t&&e!==void 0?t+"-"+e:e}function qR(e,t){const n=M.useContext(Rm).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?sr(!1,o):Jn(!1,o)}}function KR(e){const{drag:t,layout:n}=lr;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}const jm=e=>t=>typeof t=="string"&&t.startsWith(e),Pc=jm("--"),QR=jm("var(--"),Nc=e=>QR(e)?eO.test(e.split("/*")[0].trim()):!1,eO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,li={};function tO(e){for(const t in e)li[t]=e[t],Pc(t)&&(li[t].isCSSVariable=!0)}const ur=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vo=new Set(ur);function Vm(e,{layout:t,layoutId:n}){return vo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!li[e]||e==="opacity")}const At=e=>!!(e&&e.getVelocity),Lm=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Bn=(e,t,n)=>n>t?t:n<e?e:n,dr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ci={...dr,transform:e=>Bn(0,1,e)},Ks={...dr,default:1},ui=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Kn=ui("deg"),Sn=ui("%"),ye=ui("px"),nO=ui("vh"),oO=ui("vw"),_m={...Sn,parse:e=>Sn.parse(e)/100,transform:e=>Sn.transform(e*100)},rO={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,radius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,backgroundPositionX:ye,backgroundPositionY:ye},iO={rotate:Kn,rotateX:Kn,rotateY:Kn,rotateZ:Kn,scale:Ks,scaleX:Ks,scaleY:Ks,scaleZ:Ks,skew:Kn,skewX:Kn,skewY:Kn,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:ci,originX:_m,originY:_m,originZ:ye},$m={...dr,transform:Math.round},Mc={...rO,...iO,zIndex:$m,size:ye,fillOpacity:ci,strokeOpacity:ci,numOctaves:$m},sO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},aO=ur.length;function lO(e,t,n){let o="",r=!0;for(let s=0;s<aO;s++){const a=ur[s],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(a.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||n){const u=Lm(l,Mc[a]);if(!c){r=!1;const d=sO[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function kc(e,t,n){const{style:o,vars:r,transformOrigin:s}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(vo.has(c)){a=!0;continue}else if(Pc(c)){r[c]=u;continue}else{const d=Lm(u,Mc[c]);c.startsWith("origin")?(l=!0,s[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=lO(t,e.transform,n):o.transform&&(o.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=s;o.transformOrigin=`${c} ${u} ${d}`}}const Dc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Wm(e,t,n){for(const o in t)!At(t[o])&&!Vm(o,n)&&(e[o]=t[o])}function cO({transformTemplate:e},t){return M.useMemo(()=>{const n=Dc();return kc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function uO(e,t){const n=e.style||{},o={};return Wm(o,n,e),Object.assign(o,cO(e,t)),o}function dO(e,t){const n={},o=uO(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const pO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Bc(e){return typeof e!="string"||e.includes("-")?!1:!!(pO.indexOf(e)>-1||/[A-Z]/u.test(e))}const fO={offset:"stroke-dashoffset",array:"stroke-dasharray"},hO={offset:"strokeDashoffset",array:"strokeDasharray"};function mO(e,t,n=1,o=0,r=!0){e.pathLength=1;const s=r?fO:hO;e[s.offset]=ye.transform(-o);const a=ye.transform(t),l=ye.transform(n);e[s.array]=`${a} ${l}`}function Gm(e,t,n){return typeof e=="string"?e:ye.transform(t+n*e)}function gO(e,t,n){const o=Gm(t,e.x,e.width),r=Gm(n,e.y,e.height);return`${o} ${r}`}function Fc(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:s,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...u},d,p){if(kc(e,u,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:m}=e;h.transform&&(m&&(g.transform=h.transform),delete h.transform),m&&(r!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=gO(m,r!==void 0?r:.5,s!==void 0?s:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),o!==void 0&&(h.scale=o),a!==void 0&&mO(h,a,l,c,!1)}const zm=()=>({...Dc(),attrs:{}}),jc=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bO(e,t,n,o){const r=M.useMemo(()=>{const s=zm();return Fc(s,t,jc(o),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Wm(s,e.style,e),r.style={...s,...r.style}}return r}function vO(e=!1){return(n,o,r,{latestValues:s},a)=>{const c=(Bc(n)?bO:dO)(o,s,a,n),u=$R(o,typeof n=="string",e),d=n!==M.Fragment?{...u,...c,ref:r}:{},{children:p}=o,h=M.useMemo(()=>At(p)?p.get():p,[p]);return M.createElement(n,{...d,children:h})}}function Hm(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function Vc(e,t,n,o){if(typeof t=="function"){const[r,s]=Hm(o);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=Hm(o);t=t(n!==void 0?n:e.custom,r,s)}return t}const Lc=e=>Array.isArray(e),yO=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),xO=e=>Lc(e)?e[e.length-1]||0:e;function Qs(e){const t=At(e)?e.get():e;return yO(t)?t.toValue():t}function CO({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},o,r,s){const a={latestValues:TO(o,r,s,e),renderState:t()};return n&&(a.onMount=l=>n({props:o,current:l,...a}),a.onUpdate=l=>n(l)),a}const Xm=e=>(t,n)=>{const o=M.useContext(Ys),r=M.useContext(Tc),s=()=>CO(e,t,o,r);return n?s():MR(s)};function TO(e,t,n,o){const r={},s=o(e,{});for(const h in s)r[h]=Qs(s[h]);let{initial:a,animate:l}=e;const c=qs(e),u=Mm(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const p=d?l:a;if(p&&typeof p!="boolean"&&!Js(p)){const h=Array.isArray(p)?p:[p];for(let g=0;g<h.length;g++){const m=Vc(e,h[g]);if(m){const{transitionEnd:f,transition:b,...v}=m;for(const T in v){let x=v[T];if(Array.isArray(x)){const S=d?x.length-1:0;x=x[S]}x!==null&&(r[T]=x)}for(const T in f)r[T]=f[T]}}}return r}function _c(e,t,n){var o;const{style:r}=e,s={};for(const a in r)(At(r[a])||t.style&&At(t.style[a])||Vm(a,e)||((o=n==null?void 0:n.getValue(a))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(s[a]=r[a]);return s}const EO={useVisualState:Xm({scrapeMotionValuesFromProps:_c,createRenderState:Dc})};function Um(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Zm(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const s in n)e.style.setProperty(s,n[s])}const Ym=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Jm(e,t,n,o){Zm(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Ym.has(r)?r:Rc(r),t.attrs[r])}function qm(e,t,n){const o=_c(e,t,n);for(const r in e)if(At(e[r])||At(t[r])){const s=ur.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[s]=e[r]}return o}const Km=["x","y","width","height","cx","cy","r"],IO={useVisualState:Xm({scrapeMotionValuesFromProps:qm,createRenderState:zm,onUpdate:({props:e,prevProps:t,current:n,renderState:o,latestValues:r})=>{if(!n)return;let s=!!e.drag;if(!s){for(const l in r)if(vo.has(l)){s=!0;break}}if(!s)return;let a=!t;if(t)for(let l=0;l<Km.length;l++){const c=Km[l];e[c]!==t[c]&&(a=!0)}a&&Ke.read(()=>{Um(n,o),Ke.render(()=>{Fc(o,r,jc(n.tagName),e.transformTemplate),Jm(n,o)})})}})};function SO(e,t){return function(o,{forwardMotionProps:r}={forwardMotionProps:!1}){const a={...Bc(o)?IO:EO,preloadedFeatures:e,useRender:vO(r),createVisualElement:t,Component:o};return YR(a)}}function di(e,t,n){const o=e.getProps();return Vc(o,t,n!==void 0?n:o.custom,e)}const wO=Ic(()=>window.ScrollTimeline!==void 0);class AO{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let o=0;o<this.animations.length;o++)this.animations[o][t]=n}attachTimeline(t,n){const o=this.animations.map(r=>{if(wO()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{o.forEach((r,s)=>{r&&r(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class RO extends AO{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function $c(e,t){return e?e[t]||e.default||e:void 0}const Wc=2e4;function Qm(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<Wc;)t+=n,o=e.next(t);return t>=Wc?1/0:t}function Gc(e){return typeof e=="function"}function eg(e,t){e.timeline=t,e.onfinish=null}const zc=e=>Array.isArray(e)&&typeof e[0]=="number",OO={linearEasing:void 0};function PO(e,t){const n=Ic(e);return()=>{var o;return(o=OO[t])!==null&&o!==void 0?o:n()}}const ea=PO(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tg=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)o+=e(ar(0,r-1,s))+", ";return`linear(${o.substring(0,o.length-2)})`};function ng(e){return!!(typeof e=="function"&&ea()||!e||typeof e=="string"&&(e in Hc||ea())||zc(e)||Array.isArray(e)&&e.every(ng))}const pi=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,Hc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pi([0,.65,.55,1]),circOut:pi([.55,0,1,.45]),backIn:pi([.31,.01,.66,-.59]),backOut:pi([.33,1.53,.69,.99])};function og(e,t){if(e)return typeof e=="function"&&ea()?tg(e,t):zc(e)?pi(e):Array.isArray(e)?e.map(n=>og(n,t)||Hc.easeOut):Hc[e]}const fn={x:!1,y:!1};function rg(){return fn.x||fn.y}function NO(e,t,n){var o;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const s=(o=void 0)!==null&&o!==void 0?o:r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function ig(e,t){const n=NO(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function sg(e){return!(e.pointerType==="touch"||rg())}function MO(e,t,n={}){const[o,r,s]=ig(e,n),a=l=>{if(!sg(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=p=>{sg(p)&&(u(p),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,r)};return o.forEach(l=>{l.addEventListener("pointerenter",a,r)}),s}const ag=(e,t)=>t?e===t?!0:ag(e,t.parentElement):!1,Xc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,kO=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function DO(e){return kO.has(e.tagName)||e.tabIndex!==-1}const fi=new WeakSet;function lg(e){return t=>{t.key==="Enter"&&e(t)}}function Uc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const BO=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=lg(()=>{if(fi.has(n))return;Uc(n,"down");const r=lg(()=>{Uc(n,"up")}),s=()=>Uc(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function cg(e){return Xc(e)&&!rg()}function FO(e,t,n={}){const[o,r,s]=ig(e,n),a=l=>{const c=l.currentTarget;if(!cg(l)||fi.has(c))return;fi.add(c);const u=t(c,l),d=(g,m)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",h),!(!cg(g)||!fi.has(c))&&(fi.delete(c),typeof u=="function"&&u(g,{success:m}))},p=g=>{d(g,n.useGlobalTarget||ag(c,g.target))},h=g=>{d(g,!1)};window.addEventListener("pointerup",p,r),window.addEventListener("pointercancel",h,r)};return o.forEach(l=>{!DO(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,r),l.addEventListener("focus",u=>BO(u,r),r)}),s}function jO(e){return e==="x"||e==="y"?fn[e]?null:(fn[e]=!0,()=>{fn[e]=!1}):fn.x||fn.y?null:(fn.x=fn.y=!0,()=>{fn.x=fn.y=!1})}const ug=new Set(["width","height","top","left","right","bottom",...ur]);let ta;function VO(){ta=void 0}const wn={now:()=>(ta===void 0&&wn.set(It.isProcessing||BR.useManualTiming?It.timestamp:performance.now()),ta),set:e=>{ta=e,queueMicrotask(VO)}};function Zc(e,t){e.indexOf(t)===-1&&e.push(t)}function Yc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Jc{constructor(){this.subscriptions=[]}add(t){return Zc(this.subscriptions,t),()=>Yc(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let s=0;s<r;s++){const a=this.subscriptions[s];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function dg(e,t){return t?e*(1e3/t):0}const pg=30,LO=e=>!isNaN(parseFloat(e));class _O{constructor(t,n={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,r=!0)=>{const s=wn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=wn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=LO(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Zs(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Jc);const o=this.events[t].add(n);return t==="change"?()=>{o(),Ke.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=wn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pg);return dg(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function hi(e,t){return new _O(e,t)}function $O(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,hi(n))}function WO(e,t){const n=di(e,t);let{transitionEnd:o={},transition:r={},...s}=n||{};s={...s,...o};for(const a in s){const l=xO(s[a]);$O(e,a,l)}}function GO(e){return!!(At(e)&&e.add)}function qc(e,t){const n=e.getValue("willChange");if(GO(n))return n.add(t)}function fg(e){return e.props[Dm]}const hg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zO=1e-7,HO=12;function XO(e,t,n,o,r){let s,a,l=0;do a=t+(n-t)/2,s=hg(a,o,r)-e,s>0?n=a:t=a;while(Math.abs(s)>zO&&++l<HO);return a}function mi(e,t,n,o){if(e===t&&n===o)return Lt;const r=s=>XO(s,0,1,e,n);return s=>s===0||s===1?s:hg(r(s),t,o)}const mg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gg=e=>t=>1-e(1-t),bg=mi(.33,1.53,.69,.99),Kc=gg(bg),vg=mg(Kc),yg=e=>(e*=2)<1?.5*Kc(e):.5*(2-Math.pow(2,-10*(e-1))),Qc=e=>1-Math.sin(Math.acos(e)),xg=gg(Qc),Cg=mg(Qc),Tg=e=>/^0[^.\s]+$/u.test(e);function UO(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Tg(e):!0}const gi=e=>Math.round(e*1e5)/1e5,eu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ZO(e){return e==null}const YO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tu=(e,t)=>n=>!!(typeof n=="string"&&YO.test(n)&&n.startsWith(e)||t&&!ZO(n)&&Object.prototype.hasOwnProperty.call(n,t)),Eg=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,s,a,l]=o.match(eu);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},JO=e=>Bn(0,255,e),nu={...dr,transform:e=>Math.round(JO(e))},yo={test:tu("rgb","red"),parse:Eg("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+nu.transform(e)+", "+nu.transform(t)+", "+nu.transform(n)+", "+gi(ci.transform(o))+")"};function qO(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const ou={test:tu("#"),parse:qO,transform:yo.transform},pr={test:tu("hsl","hue"),parse:Eg("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Sn.transform(gi(t))+", "+Sn.transform(gi(n))+", "+gi(ci.transform(o))+")"},Rt={test:e=>yo.test(e)||ou.test(e)||pr.test(e),parse:e=>yo.test(e)?yo.parse(e):pr.test(e)?pr.parse(e):ou.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?yo.transform(e):pr.transform(e)},KO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function QO(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(eu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(KO))===null||n===void 0?void 0:n.length)||0)>0}const Ig="number",Sg="color",eP="var",tP="var(",wg="${}",nP=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function bi(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let s=0;const l=t.replace(nP,c=>(Rt.test(c)?(o.color.push(s),r.push(Sg),n.push(Rt.parse(c))):c.startsWith(tP)?(o.var.push(s),r.push(eP),n.push(c)):(o.number.push(s),r.push(Ig),n.push(parseFloat(c))),++s,wg)).split(wg);return{values:n,split:l,indexes:o,types:r}}function Ag(e){return bi(e).values}function Rg(e){const{split:t,types:n}=bi(e),o=t.length;return r=>{let s="";for(let a=0;a<o;a++)if(s+=t[a],r[a]!==void 0){const l=n[a];l===Ig?s+=gi(r[a]):l===Sg?s+=Rt.transform(r[a]):s+=r[a]}return s}}const oP=e=>typeof e=="number"?0:e;function rP(e){const t=Ag(e);return Rg(e)(t.map(oP))}const Qn={test:QO,parse:Ag,createTransformer:Rg,getAnimatableNone:rP},iP=new Set(["brightness","contrast","saturate","opacity"]);function sP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(eu)||[];if(!o)return e;const r=n.replace(o,"");let s=iP.has(t)?1:0;return o!==n&&(s*=100),t+"("+s+r+")"}const aP=/\b([a-z-]*)\(.*?\)/gu,ru={...Qn,getAnimatableNone:e=>{const t=e.match(aP);return t?t.map(sP).join(" "):e}},lP={...Mc,color:Rt,backgroundColor:Rt,outlineColor:Rt,fill:Rt,stroke:Rt,borderColor:Rt,borderTopColor:Rt,borderRightColor:Rt,borderBottomColor:Rt,borderLeftColor:Rt,filter:ru,WebkitFilter:ru},iu=e=>lP[e];function Og(e,t){let n=iu(e);return n!==ru&&(n=Qn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const cP=new Set(["auto","none","0"]);function uP(e,t,n){let o=0,r;for(;o<e.length&&!r;){const s=e[o];typeof s=="string"&&!cP.has(s)&&bi(s).values.length&&(r=e[o]),o++}if(r&&n)for(const s of t)e[s]=Og(n,r)}const Pg=e=>e===dr||e===ye,Ng=(e,t)=>parseFloat(e.split(", ")[t]),Mg=(e,t)=>(n,{transform:o})=>{if(o==="none"||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return Ng(r[1],t);{const s=o.match(/^matrix\((.+)\)$/u);return s?Ng(s[1],e):0}},dP=new Set(["x","y","z"]),pP=ur.filter(e=>!dP.has(e));function fP(e){const t=[];return pP.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const fr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Mg(4,13),y:Mg(5,14)};fr.translateX=fr.x,fr.translateY=fr.y;const xo=new Set;let su=!1,au=!1;function kg(){if(au){const e=Array.from(xo).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=fP(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([s,a])=>{var l;(l=o.getValue(s))===null||l===void 0||l.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}au=!1,su=!1,xo.forEach(e=>e.complete()),xo.clear()}function Dg(){xo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(au=!0)})}function hP(){Dg(),kg()}class lu{constructor(t,n,o,r,s,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=s,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(xo.add(this),su||(su=!0,Ke.read(Dg),Ke.resolveKeyframes(kg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const a=r==null?void 0:r.get(),l=t[t.length-1];if(a!==void 0)t[0]=a;else if(o&&n){const c=o.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),r&&a===void 0&&r.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),xo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,xo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Bg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),mP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gP(e){const t=mP.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const bP=4;function Fg(e,t,n=1){Jn(n<=bP,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,r]=gP(e);if(!o)return;const s=window.getComputedStyle(t).getPropertyValue(o);if(s){const a=s.trim();return Bg(a)?parseFloat(a):a}return Nc(r)?Fg(r,t,n+1):r}const jg=e=>t=>t.test(e),Vg=[dr,ye,Sn,Kn,oO,nO,{test:e=>e==="auto",parse:e=>e}],Lg=e=>Vg.find(jg(e));class _g extends lu{constructor(t,n,o,r,s){super(t,n,o,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let u=t[c];if(typeof u=="string"&&(u=u.trim(),Nc(u))){const d=Fg(u,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ug.has(o)||t.length!==2)return;const[r,s]=t,a=Lg(r),l=Lg(s);if(a!==l)if(Pg(a)&&Pg(l))for(let c=0;c<t.length;c++){const u=t[c];typeof u=="string"&&(t[c]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)UO(t[r])&&o.push(r);o.length&&uP(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fr[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:o,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const s=n.getValue(o);s&&s.jump(this.measuredOrigin,!1);const a=r.length-1,l=r[a];r[a]=fr[o](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,u])=>{n.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const $g=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qn.test(e)||e==="0")&&!e.startsWith("url("));function vP(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function yP(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=$g(r,t),l=$g(s,t);return sr(a===l,`You are trying to animate ${t} from "${r}" to "${s}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${s} via the \`style\` property.`),!a||!l?!1:vP(e)||(n==="spring"||Gc(n))&&o}const xP=e=>e!==null;function na(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(xP),s=t&&n!=="loop"&&t%2===1?0:r.length-1;return!s||o===void 0?r[s]:o}const CP=40;class Wg{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=wn.now(),this.options={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:s,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>CP?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hP(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=wn.now(),this.hasAttemptedResolve=!0;const{name:o,type:r,velocity:s,delay:a,onComplete:l,onUpdate:c,isGenerator:u}=this.options;if(!u&&!yP(t,o,r,s))if(a)this.options.duration=0;else{c&&c(na(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const rt=(e,t,n)=>e+(t-e)*n;function cu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function TP({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,s=0,a=0;if(!t)r=s=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=cu(c,l,e+1/3),s=cu(c,l,e),a=cu(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:o}}function oa(e,t){return n=>n>0?t:e}const uu=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},EP=[ou,yo,pr],IP=e=>EP.find(t=>t.test(e));function Gg(e){const t=IP(e);if(sr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===pr&&(n=TP(n)),n}const zg=(e,t)=>{const n=Gg(e),o=Gg(t);if(!n||!o)return oa(e,t);const r={...n};return s=>(r.red=uu(n.red,o.red,s),r.green=uu(n.green,o.green,s),r.blue=uu(n.blue,o.blue,s),r.alpha=rt(n.alpha,o.alpha,s),yo.transform(r))},SP=(e,t)=>n=>t(e(n)),vi=(...e)=>e.reduce(SP),du=new Set(["none","hidden"]);function wP(e,t){return du.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function AP(e,t){return n=>rt(e,t,n)}function pu(e){return typeof e=="number"?AP:typeof e=="string"?Nc(e)?oa:Rt.test(e)?zg:PP:Array.isArray(e)?Hg:typeof e=="object"?Rt.test(e)?zg:RP:oa}function Hg(e,t){const n=[...e],o=n.length,r=e.map((s,a)=>pu(s)(s,t[a]));return s=>{for(let a=0;a<o;a++)n[a]=r[a](s);return n}}function RP(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=pu(e[r])(e[r],t[r]));return r=>{for(const s in o)n[s]=o[s](r);return n}}function OP(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const a=t.types[s],l=e.indexes[a][r[a]],c=(n=e.values[l])!==null&&n!==void 0?n:0;o[s]=c,r[a]++}return o}const PP=(e,t)=>{const n=Qn.createTransformer(t),o=bi(e),r=bi(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?du.has(e)&&!r.values.length||du.has(t)&&!o.values.length?wP(e,t):vi(Hg(OP(o,r),r.values),n):(sr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),oa(e,t))};function Xg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rt(e,t,n):pu(e)(e,t)}const NP=5;function Ug(e,t,n){const o=Math.max(t-NP,0);return dg(n-e(o),t-o)}const it={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},fu=.001;function MP({duration:e=it.duration,bounce:t=it.bounce,velocity:n=it.velocity,mass:o=it.mass}){let r,s;sr(e<=In(it.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=Bn(it.minDamping,it.maxDamping,a),e=Bn(it.minDuration,it.maxDuration,Dn(e)),a<1?(r=u=>{const d=u*a,p=d*e,h=d-n,g=hu(u,a),m=Math.exp(-p);return fu-h/g*m},s=u=>{const p=u*a*e,h=p*n+n,g=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-p),f=hu(Math.pow(u,2),a);return(-r(u)+fu>0?-1:1)*((h-g)*m)/f}):(r=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-fu+d*p},s=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const l=5/e,c=DP(r,s,l);if(e=In(e),isNaN(c))return{stiffness:it.stiffness,damping:it.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const kP=12;function DP(e,t,n){let o=n;for(let r=1;r<kP;r++)o=o-e(o)/t(o);return o}function hu(e,t){return e*Math.sqrt(1-t*t)}const BP=["duration","bounce"],FP=["stiffness","damping","mass"];function Zg(e,t){return t.some(n=>e[n]!==void 0)}function jP(e){let t={velocity:it.velocity,stiffness:it.stiffness,damping:it.damping,mass:it.mass,isResolvedFromDuration:!1,...e};if(!Zg(e,FP)&&Zg(e,BP))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,s=2*Bn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:it.mass,stiffness:r,damping:s}}else{const n=MP(e);t={...t,...n,mass:it.mass},t.isResolvedFromDuration=!0}return t}function Yg(e=it.visualDuration,t=it.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:c,damping:u,mass:d,duration:p,velocity:h,isResolvedFromDuration:g}=jP({...n,velocity:-Dn(n.velocity||0)}),m=h||0,f=u/(2*Math.sqrt(c*d)),b=a-s,v=Dn(Math.sqrt(c/d)),T=Math.abs(b)<5;o||(o=T?it.restSpeed.granular:it.restSpeed.default),r||(r=T?it.restDelta.granular:it.restDelta.default);let x;if(f<1){const y=hu(v,f);x=w=>{const A=Math.exp(-f*v*w);return a-A*((m+f*v*b)/y*Math.sin(y*w)+b*Math.cos(y*w))}}else if(f===1)x=y=>a-Math.exp(-v*y)*(b+(m+v*b)*y);else{const y=v*Math.sqrt(f*f-1);x=w=>{const A=Math.exp(-f*v*w),R=Math.min(y*w,300);return a-A*((m+f*v*b)*Math.sinh(R)+y*b*Math.cosh(R))/y}}const S={calculatedDuration:g&&p||null,next:y=>{const w=x(y);if(g)l.done=y>=p;else{let A=0;f<1&&(A=y===0?In(m):Ug(x,y,w));const R=Math.abs(A)<=o,P=Math.abs(a-w)<=r;l.done=R&&P}return l.value=l.done?a:w,l},toString:()=>{const y=Math.min(Qm(S),Wc),w=tg(A=>S.next(y*A).value,y,30);return y+"ms "+w}};return S}function Jg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const p=e[0],h={done:!1,value:p},g=R=>l!==void 0&&R<l||c!==void 0&&R>c,m=R=>l===void 0?c:c===void 0||Math.abs(l-R)<Math.abs(c-R)?l:c;let f=n*t;const b=p+f,v=a===void 0?b:a(b);v!==b&&(f=v-p);const T=R=>-f*Math.exp(-R/o),x=R=>v+T(R),S=R=>{const P=T(R),N=x(R);h.done=Math.abs(P)<=u,h.value=h.done?v:N};let y,w;const A=R=>{g(h.value)&&(y=R,w=Yg({keyframes:[h.value,m(h.value)],velocity:Ug(x,R,h.value),damping:r,stiffness:s,restDelta:u,restSpeed:d}))};return A(0),{calculatedDuration:null,next:R=>{let P=!1;return!w&&y===void 0&&(P=!0,S(R),A(R)),y!==void 0&&R>=y?w.next(R-y):(!P&&S(R),h)}}}const VP=mi(.42,0,1,1),LP=mi(0,0,.58,1),qg=mi(.42,0,.58,1),_P=e=>Array.isArray(e)&&typeof e[0]!="number",Kg={linear:Lt,easeIn:VP,easeInOut:qg,easeOut:LP,circIn:Qc,circInOut:Cg,circOut:xg,backIn:Kc,backInOut:vg,backOut:bg,anticipate:yg},Qg=e=>{if(zc(e)){Jn(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,o,r]=e;return mi(t,n,o,r)}else if(typeof e=="string")return Jn(Kg[e]!==void 0,`Invalid easing type '${e}'`),Kg[e];return e};function $P(e,t,n){const o=[],r=n||Xg,s=e.length-1;for(let a=0;a<s;a++){let l=r(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Lt:t;l=vi(c,l)}o.push(l)}return o}function WP(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const s=e.length;if(Jn(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=$P(t,o,r),c=l.length,u=d=>{if(a&&d<e[0])return t[0];let p=0;if(c>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const h=ar(e[p],e[p+1],d);return l[p](h)};return n?d=>u(Bn(e[0],e[s-1],d)):u}function GP(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=ar(0,t,o);e.push(rt(n,1,r))}}function zP(e){const t=[0];return GP(t,e.length-1),t}function HP(e,t){return e.map(n=>n*t)}function XP(e,t){return e.map(()=>t||qg).splice(0,e.length-1)}function yi({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=_P(o)?o.map(Qg):Qg(o),s={done:!1,value:t[0]},a=HP(n&&n.length===t.length?n:zP(t),e),l=WP(a,t,{ease:Array.isArray(r)?r:XP(t,r)});return{calculatedDuration:e,next:c=>(s.value=l(c),s.done=c>=e,s)}}const UP=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ke.update(t,!0),stop:()=>qn(t),now:()=>It.isProcessing?It.timestamp:wn.now()}},ZP={decay:Jg,inertia:Jg,tween:yi,keyframes:yi,spring:Yg},YP=e=>e/100;class mu extends Wg{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:o,element:r,keyframes:s}=this.options,a=(r==null?void 0:r.KeyframeResolver)||lu,l=(c,u)=>this.onKeyframesResolved(c,u);this.resolver=new a(s,l,n,o,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:s,velocity:a=0}=this.options,l=Gc(n)?n:ZP[n]||yi;let c,u;process.env.NODE_ENV!=="production"&&l!==yi&&Jn(t.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l!==yi&&typeof t[0]!="number"&&(c=vi(YP,Xg(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});s==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Qm(d));const{calculatedDuration:p}=d,h=p+r,g=h*(o+1)-r;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:c,calculatedDuration:p,resolvedDuration:h,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:o}=this;if(!o){const{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:a,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:u,totalDuration:d,resolvedDuration:p}=o;if(this.startTime===null)return s.next(0);const{delay:h,repeat:g,repeatType:m,repeatDelay:f,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-h*(this.speed>=0?1:-1),T=this.speed>=0?v<0:v>d;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let x=this.currentTime,S=s;if(g){const R=Math.min(this.currentTime,d)/p;let P=Math.floor(R),N=R%1;!N&&R>=1&&(N=1),N===1&&P--,P=Math.min(P,g+1),!!(P%2)&&(m==="reverse"?(N=1-N,f&&(N-=f/p)):m==="mirror"&&(S=a)),x=Bn(0,1,N)*p}const y=T?{done:!1,value:c[0]}:S.next(x);l&&(y.value=l(y.value));let{done:w}=y;!T&&u!==null&&(w=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return A&&r!==void 0&&(y.value=na(c,this.options,r)),b&&b(y.value),A&&this.finish(),y}get duration(){const{resolved:t}=this;return t?Dn(t.calculatedDuration):0}get time(){return Dn(this.currentTime)}set time(t){t=In(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Dn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=UP,onPlay:n,startTime:o}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const JP=new Set(["opacity","clipPath","filter","transform"]);function qP(e,t,n,{delay:o=0,duration:r=300,repeat:s=0,repeatType:a="loop",ease:l="easeInOut",times:c}={}){const u={[t]:n};c&&(u.offset=c);const d=og(l,r);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:o,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"})}const KP=Ic(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ra=10,QP=2e4;function eN(e){return Gc(e.type)||e.type==="spring"||!ng(e.ease)}function tN(e,t){const n=new mu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let s=0;for(;!o.done&&s<QP;)o=n.sample(s),r.push(o.value),s+=ra;return{times:void 0,keyframes:r,duration:s-ra,ease:"linear"}}const eb={anticipate:yg,backInOut:vg,circInOut:Cg};function nN(e){return e in eb}class tb extends Wg{constructor(t){super(t);const{name:n,motionValue:o,element:r,keyframes:s}=this.options;this.resolver=new _g(s,(a,l)=>this.onKeyframesResolved(a,l),n,o,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:o=300,times:r,ease:s,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof s=="string"&&ea()&&nN(s)&&(s=eb[s]),eN(this.options)){const{onComplete:p,onUpdate:h,motionValue:g,element:m,...f}=this.options,b=tN(t,f);t=b.keyframes,t.length===1&&(t[1]=t[0]),o=b.duration,r=b.times,s=b.ease,a="keyframes"}const d=qP(l.owner.current,c,t,{...this.options,duration:o,times:r,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(eg(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;l.set(na(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:r,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Dn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Dn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.currentTime=In(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:o}=n;o.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Lt;const{animation:o}=n;eg(o,t)}return Lt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:o,duration:r,type:s,ease:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:p,element:h,...g}=this.options,m=new mu({...g,keyframes:o,duration:r,type:s,ease:a,times:l,isGenerator:!0}),f=In(this.time);u.setWithVelocity(m.sample(f-ra).value,m.sample(f).value,ra)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:o,repeatDelay:r,repeatType:s,damping:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=n.owner.getProps();return KP()&&o&&JP.has(o)&&!c&&!u&&!r&&s!=="mirror"&&a!==0&&l!=="inertia"}}const oN={type:"spring",stiffness:500,damping:25,restSpeed:10},rN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),iN={type:"keyframes",duration:.8},sN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},aN=(e,{keyframes:t})=>t.length>2?iN:vo.has(e)?e.startsWith("scale")?rN(t[1]):oN:sN;function lN({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:s,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const gu=(e,t,n,o={},r,s)=>a=>{const l=$c(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-In(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:r};lN(l)||(d={...d,...aN(e,d)}),d.duration&&(d.duration=In(d.duration)),d.repeatDelay&&(d.repeatDelay=In(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(p=!0)),p&&!s&&t.get()!==void 0){const h=na(d.keyframes,l);if(h!==void 0)return Ke.update(()=>{d.onUpdate(h),d.onComplete()}),new RO([])}return!s&&tb.supports(d)?new tb(d):new mu(d)};function cN({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function nb(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...c}=t;o&&(a=o);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const p in c){const h=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),g=c[p];if(g===void 0||d&&cN(d,p))continue;const m={delay:n,...$c(a||{},p)};let f=!1;if(window.MotionHandoffAnimation){const v=fg(e);if(v){const T=window.MotionHandoffAnimation(v,p,Ke);T!==null&&(m.startTime=T,f=!0)}}qc(e,p),h.start(gu(p,h,g,e.shouldReduceMotion&&ug.has(p)?{type:!1}:m,e,f));const b=h.animation;b&&u.push(b)}return l&&Promise.all(u).then(()=>{Ke.update(()=>{l&&WO(e,l)})}),u}function bu(e,t,n={}){var o;const r=di(e,t,n.type==="exit"?(o=e.presenceContext)===null||o===void 0?void 0:o.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const a=r?()=>Promise.all(nb(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:h}=s;return uN(e,t,d+u,p,h,n)}:()=>Promise.resolve(),{when:c}=s;if(c){const[u,d]=c==="beforeChildren"?[a,l]:[l,a];return u().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function uN(e,t,n=0,o=0,r=1,s){const a=[],l=(e.variantChildren.size-1)*o,c=r===1?(u=0)=>u*o:(u=0)=>l-u*o;return Array.from(e.variantChildren).sort(dN).forEach((u,d)=>{u.notify("AnimationStart",t),a.push(bu(u,t,{...s,delay:n+c(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function dN(e,t){return e.sortNodePosition(t)}function pN(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(s=>bu(e,s,n));o=Promise.all(r)}else if(typeof t=="string")o=bu(e,t,n);else{const r=typeof t=="function"?di(e,t,n.custom):t;o=Promise.all(nb(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}function ob(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const fN=Ac.length;function rb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?rb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<fN;n++){const o=Ac[n],r=e.props[o];(ai(r)||r===!1)&&(t[o]=r)}return t}const hN=[...wc].reverse(),mN=wc.length;function gN(e){return t=>Promise.all(t.map(({animation:n,options:o})=>pN(e,n,o)))}function bN(e){let t=gN(e),n=ib(),o=!0;const r=c=>(u,d)=>{var p;const h=di(e,d,c==="exit"?(p=e.presenceContext)===null||p===void 0?void 0:p.custom:void 0);if(h){const{transition:g,transitionEnd:m,...f}=h;u={...u,...f,...m}}return u};function s(c){t=c(e)}function a(c){const{props:u}=e,d=rb(e.parent)||{},p=[],h=new Set;let g={},m=1/0;for(let b=0;b<mN;b++){const v=hN[b],T=n[v],x=u[v]!==void 0?u[v]:d[v],S=ai(x),y=v===c?T.isActive:null;y===!1&&(m=b);let w=x===d[v]&&x!==u[v]&&S;if(w&&o&&e.manuallyAnimateOnMount&&(w=!1),T.protectedKeys={...g},!T.isActive&&y===null||!x&&!T.prevProp||Js(x)||typeof x=="boolean")continue;const A=vN(T.prevProp,x);let R=A||v===c&&T.isActive&&!w&&S||b>m&&S,P=!1;const N=Array.isArray(x)?x:[x];let F=N.reduce(r(v),{});y===!1&&(F={});const{prevResolvedValues:G={}}=T,j={...G,...F},L=$=>{R=!0,h.has($)&&(P=!0,h.delete($)),T.needsAnimating[$]=!0;const D=e.getValue($);D&&(D.liveStyle=!1)};for(const $ in j){const D=F[$],X=G[$];if(g.hasOwnProperty($))continue;let k=!1;Lc(D)&&Lc(X)?k=!ob(D,X):k=D!==X,k?D!=null?L($):h.add($):D!==void 0&&h.has($)?L($):T.protectedKeys[$]=!0}T.prevProp=x,T.prevResolvedValues=F,T.isActive&&(g={...g,...F}),o&&e.blockInitialAnimation&&(R=!1),R&&(!(w&&A)||P)&&p.push(...N.map($=>({animation:$,options:{type:v}})))}if(h.size){const b={};if(typeof u.initial!="boolean"){const v=di(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(b.transition=v.transition)}h.forEach(v=>{const T=e.getBaseTarget(v),x=e.getValue(v);x&&(x.liveStyle=!0),b[v]=T??null}),p.push({animation:b})}let f=!!p.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(f=!1),o=!1,f?t(p):Promise.resolve()}function l(c,u){var d;if(n[c].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(c,u)}),n[c].isActive=u;const p=a(c);for(const h in n)n[h].protectedKeys={};return p}return{animateChanges:a,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=ib(),o=!0}}}function vN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ob(t,e):!1}function Co(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ib(){return{animate:Co(!0),whileInView:Co(),whileHover:Co(),whileTap:Co(),whileDrag:Co(),whileFocus:Co(),exit:Co()}}class eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class yN extends eo{constructor(t){super(t),t.animationState||(t.animationState=bN(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Js(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let xN=0;class CN extends eo{constructor(){super(...arguments),this.id=xN++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const TN={animation:{Feature:yN},exit:{Feature:CN}};function xi(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Ci(e){return{point:{x:e.pageX,y:e.pageY}}}const EN=e=>t=>Xc(t)&&e(t,Ci(t));function Ti(e,t,n,o){return xi(e,t,EN(n),o)}const sb=(e,t)=>Math.abs(e-t);function IN(e,t){const n=sb(e.x,t.x),o=sb(e.y,t.y);return Math.sqrt(n**2+o**2)}class ab{constructor(t,n,{transformPagePoint:o,contextWindow:r,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=yu(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=IN(p.offset,{x:0,y:0})>=3;if(!h&&!g)return;const{point:m}=p,{timestamp:f}=It;this.history.push({...m,timestamp:f});const{onStart:b,onMove:v}=this.handlers;h||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,p)},this.handlePointerMove=(p,h)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=vu(h,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(p,h)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:f}=this.handlers;if(this.dragSnapToOrigin&&f&&f(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=yu(p.type==="pointercancel"?this.lastMoveEventInfo:vu(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(p,b),m&&m(p,b)},!Xc(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=o,this.contextWindow=r||window;const a=Ci(t),l=vu(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=It;this.history=[{...c,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,yu(l,this.history)),this.removeListeners=vi(Ti(this.contextWindow,"pointermove",this.handlePointerMove),Ti(this.contextWindow,"pointerup",this.handlePointerUp),Ti(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qn(this.updatePoint)}}function vu(e,t){return t?{point:t(e.point)}:e}function lb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yu({point:e},t){return{point:e,delta:lb(e,cb(t)),offset:lb(e,SN(t)),velocity:wN(t,.1)}}function SN(e){return e[0]}function cb(e){return e[e.length-1]}function wN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=cb(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>In(t)));)n--;if(!o)return{x:0,y:0};const s=Dn(r.timestamp-o.timestamp);if(s===0)return{x:0,y:0};const a={x:(r.x-o.x)/s,y:(r.y-o.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const ub=1e-4,AN=1-ub,RN=1+ub,db=.01,ON=0-db,PN=0+db;function kt(e){return e.max-e.min}function NN(e,t,n){return Math.abs(e-t)<=n}function pb(e,t,n,o=.5){e.origin=o,e.originPoint=rt(t.min,t.max,e.origin),e.scale=kt(n)/kt(t),e.translate=rt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=AN&&e.scale<=RN||isNaN(e.scale))&&(e.scale=1),(e.translate>=ON&&e.translate<=PN||isNaN(e.translate))&&(e.translate=0)}function Ei(e,t,n,o){pb(e.x,t.x,n.x,o?o.originX:void 0),pb(e.y,t.y,n.y,o?o.originY:void 0)}function fb(e,t,n){e.min=n.min+t.min,e.max=e.min+kt(t)}function MN(e,t,n){fb(e.x,t.x,n.x),fb(e.y,t.y,n.y)}function hb(e,t,n){e.min=t.min-n.min,e.max=e.min+kt(t)}function Ii(e,t,n){hb(e.x,t.x,n.x),hb(e.y,t.y,n.y)}function kN(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?rt(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?rt(n,e,o.max):Math.min(e,n)),e}function mb(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function DN(e,{top:t,left:n,bottom:o,right:r}){return{x:mb(e.x,n,r),y:mb(e.y,t,o)}}function gb(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function BN(e,t){return{x:gb(e.x,t.x),y:gb(e.y,t.y)}}function FN(e,t){let n=.5;const o=kt(e),r=kt(t);return r>o?n=ar(t.min,t.max-o,e.min):o>r&&(n=ar(e.min,e.max-r,t.min)),Bn(0,1,n)}function jN(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xu=.35;function VN(e=xu){return e===!1?e=0:e===!0&&(e=xu),{x:bb(e,"left","right"),y:bb(e,"top","bottom")}}function bb(e,t,n){return{min:vb(e,t),max:vb(e,n)}}function vb(e,t){return typeof e=="number"?e:e[t]||0}const yb=()=>({translate:0,scale:1,origin:0,originPoint:0}),hr=()=>({x:yb(),y:yb()}),xb=()=>({min:0,max:0}),mt=()=>({x:xb(),y:xb()});function on(e){return[e("x"),e("y")]}function Cb({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function LN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function _N(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function Cu(e){return e===void 0||e===1}function Tu({scale:e,scaleX:t,scaleY:n}){return!Cu(e)||!Cu(t)||!Cu(n)}function To(e){return Tu(e)||Tb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Tb(e){return Eb(e.x)||Eb(e.y)}function Eb(e){return e&&e!=="0%"}function ia(e,t,n){const o=e-n,r=t*o;return n+r}function Ib(e,t,n,o,r){return r!==void 0&&(e=ia(e,r,o)),ia(e,n,o)+t}function Eu(e,t=0,n=1,o,r){e.min=Ib(e.min,t,n,o,r),e.max=Ib(e.max,t,n,o,r)}function Sb(e,{x:t,y:n}){Eu(e.x,t.translate,t.scale,t.originPoint),Eu(e.y,n.translate,n.scale,n.originPoint)}const wb=.999999999999,Ab=1.0000000000001;function $N(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,a;for(let l=0;l<r;l++){s=n[l],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&s.options.layoutScroll&&s.scroll&&s!==s.root&&gr(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Sb(e,a)),o&&To(s.latestValues)&&gr(e,s.latestValues))}t.x<Ab&&t.x>wb&&(t.x=1),t.y<Ab&&t.y>wb&&(t.y=1)}function mr(e,t){e.min=e.min+t,e.max=e.max+t}function Rb(e,t,n,o,r=.5){const s=rt(e.min,e.max,r);Eu(e,t,n,s,o)}function gr(e,t){Rb(e.x,t.x,t.scaleX,t.scale,t.originX),Rb(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ob(e,t){return Cb(_N(e.getBoundingClientRect(),t))}function WN(e,t,n){const o=Ob(e,n),{scroll:r}=t;return r&&(mr(o.x,r.offset.x),mr(o.y,r.offset.y)),o}const Pb=({current:e})=>e?e.ownerDocument.defaultView:null,GN=new WeakMap;class zN{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=mt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const r=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ci(d).point)},s=(d,p)=>{const{drag:h,dragPropagation:g,onDragStart:m}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jO(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),on(b=>{let v=this.getAxisMotionValue(b).get()||0;if(Sn.test(v)){const{projection:T}=this.visualElement;if(T&&T.layout){const x=T.layout.layoutBox[b];x&&(v=kt(x)*(parseFloat(v)/100))}}this.originPoint[b]=v}),m&&Ke.postRender(()=>m(d,p)),qc(this.visualElement,"transform");const{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},a=(d,p)=>{const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:m,onDrag:f}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:b}=p;if(g&&this.currentDirection===null){this.currentDirection=HN(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",p.point,b),this.updateAxis("y",p.point,b),this.visualElement.render(),f&&f(d,p)},l=(d,p)=>this.stop(d,p),c=()=>on(d=>{var p;return this.getAnimationState(d)==="paused"&&((p=this.getAxisMotionValue(d).animation)===null||p===void 0?void 0:p.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new ab(t,{onSessionStart:r,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Pb(this.visualElement)})}stop(t,n){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&Ke.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!sa(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=kN(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&cr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=DN(r.layoutBox,n):this.constraints=!1,this.elastic=VN(o),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&on(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=jN(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!cr(t))return!1;const o=t.current;Jn(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=WN(o,r.root,this.visualElement.getTransformPagePoint());let a=BN(r.layout.layoutBox,s);if(n){const l=n(LN(a));this.hasMutatedConstraints=!!l,l&&(a=Cb(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=on(d=>{if(!sa(d,n,this.currentDirection))return;let p=c&&c[d]||{};a&&(p={min:0,max:0});const h=r?200:1e6,g=r?40:1e7,m={type:"inertia",velocity:o?t[d]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return qc(this.visualElement,t),o.start(gu(t,o,0,n,this.visualElement,!1))}stopAnimation(){on(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){on(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){on(n=>{const{drag:o}=this.getProps();if(!sa(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:l}=r.layout.layoutBox[n];s.set(t[n]-rt(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!cr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};on(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=FN({min:c,max:c},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),on(a=>{if(!sa(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(rt(c,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;GN.set(this.visualElement,this);const t=this.visualElement.current,n=Ti(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();cr(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Ke.read(o);const a=xi(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(on(d=>{const p=this.getAxisMotionValue(d);p&&(this.originPoint[d]+=c[d].translate,p.set(p.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:a=xu,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:s,dragElastic:a,dragMomentum:l}}}function sa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function HN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class XN extends eo{constructor(t){super(t),this.removeGroupControls=Lt,this.removeListeners=Lt,this.controls=new zN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Lt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Nb=e=>(t,n)=>{e&&Ke.postRender(()=>e(t,n))};class UN extends eo{constructor(){super(...arguments),this.removePointerDownListener=Lt}onPointerDown(t){this.session=new ab(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Pb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:Nb(t),onStart:Nb(n),onMove:o,onEnd:(s,a)=>{delete this.session,r&&Ke.postRender(()=>r(s,a))}}}mount(){this.removePointerDownListener=Ti(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const aa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Si={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=Mb(e,t.target.x),o=Mb(e,t.target.y);return`${n}% ${o}%`}},ZN={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Qn.parse(e);if(r.length>5)return o;const s=Qn.createTransformer(e),a=typeof r[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;r[0+a]/=l,r[1+a]/=c;const u=rt(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),s(r)}};class YN extends M.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:s}=t;tO(JN),s&&(n.group&&n.group.add(s),o&&o.register&&r&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),aa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:s}=this.props,a=o.projection;return a&&(a.isPresent=s,r||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Ke.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Oc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function kb(e){const[t,n]=kR(),o=M.useContext(Im);return C.jsx(YN,{...e,layoutGroup:o,switchLayoutGroup:M.useContext(Bm),isPresent:t,safeToRemove:n})}const JN={borderRadius:{...Si,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Si,borderTopRightRadius:Si,borderBottomLeftRadius:Si,borderBottomRightRadius:Si,boxShadow:ZN};function qN(e,t,n){const o=At(e)?e:hi(e);return o.start(gu("",o,t,n)),o.animation}function KN(e){return e instanceof SVGElement&&e.tagName!=="svg"}const QN=(e,t)=>e.depth-t.depth;class eM{constructor(){this.children=[],this.isDirty=!1}add(t){Zc(this.children,t),this.isDirty=!0}remove(t){Yc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(QN),this.isDirty=!1,this.children.forEach(t)}}function tM(e,t){const n=wn.now(),o=({timestamp:r})=>{const s=r-n;s>=t&&(qn(o),e(s-t))};return Ke.read(o,!0),()=>qn(o)}const Db=["TopLeft","TopRight","BottomLeft","BottomRight"],nM=Db.length,Bb=e=>typeof e=="string"?parseFloat(e):e,Fb=e=>typeof e=="number"||ye.test(e);function oM(e,t,n,o,r,s){r?(e.opacity=rt(0,n.opacity!==void 0?n.opacity:1,rM(o)),e.opacityExit=rt(t.opacity!==void 0?t.opacity:1,0,iM(o))):s&&(e.opacity=rt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,o));for(let a=0;a<nM;a++){const l=`border${Db[a]}Radius`;let c=jb(t,l),u=jb(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Fb(c)===Fb(u)?(e[l]=Math.max(rt(Bb(c),Bb(u),o),0),(Sn.test(u)||Sn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=rt(t.rotate||0,n.rotate||0,o))}function jb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const rM=Vb(0,.5,xg),iM=Vb(.5,.95,Lt);function Vb(e,t,n){return o=>o<e?0:o>t?1:n(ar(e,t,o))}function Lb(e,t){e.min=t.min,e.max=t.max}function rn(e,t){Lb(e.x,t.x),Lb(e.y,t.y)}function _b(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $b(e,t,n,o,r){return e-=t,e=ia(e,1/n,o),r!==void 0&&(e=ia(e,1/r,o)),e}function sM(e,t=0,n=1,o=.5,r,s=e,a=e){if(Sn.test(t)&&(t=parseFloat(t),t=rt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=rt(s.min,s.max,o);e===s&&(l-=t),e.min=$b(e.min,t,n,l,r),e.max=$b(e.max,t,n,l,r)}function Wb(e,t,[n,o,r],s,a){sM(e,t[n],t[o],t[r],t.scale,s,a)}const aM=["x","scaleX","originX"],lM=["y","scaleY","originY"];function Gb(e,t,n,o){Wb(e.x,t,aM,n?n.x:void 0,o?o.x:void 0),Wb(e.y,t,lM,n?n.y:void 0,o?o.y:void 0)}function zb(e){return e.translate===0&&e.scale===1}function Hb(e){return zb(e.x)&&zb(e.y)}function Xb(e,t){return e.min===t.min&&e.max===t.max}function cM(e,t){return Xb(e.x,t.x)&&Xb(e.y,t.y)}function Ub(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Zb(e,t){return Ub(e.x,t.x)&&Ub(e.y,t.y)}function Yb(e){return kt(e.x)/kt(e.y)}function Jb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class uM{constructor(){this.members=[]}add(t){Zc(this.members,t),t.scheduleRender()}remove(t){if(Yc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1){o=s;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function dM(e,t,n){let o="";const r=e.x.translate/t.x,s=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((r||s||a)&&(o=`translate3d(${r}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:h,skewX:g,skewY:m}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),p&&(o+=`rotateX(${p}deg) `),h&&(o+=`rotateY(${h}deg) `),g&&(o+=`skewX(${g}deg) `),m&&(o+=`skewY(${m}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}const Iu=["","X","Y","Z"],pM={visibility:"hidden"},qb=1e3;let fM=0;function Su(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Kb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=fg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ke,!(r||s))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Kb(o)}function Qb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t==null?void 0:t()){this.id=fM++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(gM),this.nodes.forEach(CM),this.nodes.forEach(TM),this.nodes.forEach(bM)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new eM)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Jc),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=KN(a),this.instance=a;const{layoutId:c,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(u||c)&&(this.isLayoutDirty=!0),e){let p;const h=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=tM(h,250),aa.hasAnimatedSinceResize&&(aa.hasAnimatedSinceResize=!1,this.nodes.forEach(t0))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||u)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:h,hasRelativeLayoutChanged:g,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const f=this.options.transition||d.getDefaultTransition()||AM,{onLayoutAnimationStart:b,onLayoutAnimationComplete:v}=d.getProps(),T=!this.targetLayout||!Zb(this.targetLayout,m),x=!h&&g;if(this.options.layoutRoot||this.resumeFrom||x||h&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,x);const S={...$c(f,"layout"),onPlay:b,onComplete:v};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else h||t0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,qn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(EM),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Kb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const p=this.path[d];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(e0);return}this.isUpdating||this.nodes.forEach(yM),this.isUpdating=!1,this.nodes.forEach(xM),this.nodes.forEach(hM),this.nodes.forEach(mM),this.clearAllSnapshots();const l=wn.now();It.delta=Bn(0,1e3/60,l-It.timestamp),It.timestamp=l,It.isProcessing=!0,Sc.update.process(It),Sc.preRender.process(It),Sc.render.process(It),It.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Oc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vM),this.sharedNodes.forEach(IM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!kt(this.snapshot.measuredBox.x)&&!kt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=mt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l){const c=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Hb(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&(l||To(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),RM(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return mt();const c=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(OM))){const{scroll:d}=this.root;d&&(mr(c.x,d.offset.x),mr(c.y,d.offset.y))}return c}removeElementScroll(a){var l;const c=mt();if(rn(c,a),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:p,options:h}=d;d!==this.root&&p&&h.layoutScroll&&(p.wasRoot&&rn(c,a),mr(c.x,p.offset.x),mr(c.y,p.offset.y))}return c}applyTransform(a,l=!1){const c=mt();rn(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&gr(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),To(d.latestValues)&&gr(c,d.latestValues)}return To(this.latestValues)&&gr(c,this.latestValues),c}removeTransform(a){const l=mt();rn(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!To(u.latestValues))continue;Tu(u.latestValues)&&u.updateSnapshot();const d=mt(),p=u.measurePageBox();rn(d,p),Gb(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return To(this.latestValues)&&Gb(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==It.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:h}=this.options;if(!(!this.layout||!(p||h))){if(this.resolvedRelativeTargetAt=It.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Ii(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),rn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=mt(),this.targetWithTransforms=mt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),MN(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rn(this.target,this.layout.layoutBox),Sb(this.target,this.targetDelta)):rn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mt(),this.relativeTargetOrigin=mt(),Ii(this.relativeTargetOrigin,this.target,g.target),rn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Tu(this.parent.latestValues)||Tb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===It.timestamp&&(u=!1),u)return;const{layout:d,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||p))return;rn(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,g=this.treeScale.y;$N(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=mt());const{target:m}=l;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_b(this.prevProjectionDelta.x,this.projectionDelta.x),_b(this.prevProjectionDelta.y,this.projectionDelta.y)),Ei(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==g||!Jb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Jb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=hr(),this.projectionDelta=hr(),this.projectionDeltaWithTransform=hr()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},p=hr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=mt(),g=c?c.source:void 0,m=this.layout?this.layout.source:void 0,f=g!==m,b=this.getStack(),v=!b||b.members.length<=1,T=!!(f&&!v&&this.options.crossfade===!0&&!this.path.some(wM));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const y=S/1e3;n0(p.x,a.x,y),n0(p.y,a.y,y),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ii(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),SM(this.relativeTarget,this.relativeTargetOrigin,h,y),x&&cM(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=mt()),rn(x,this.relativeTarget)),f&&(this.animationValues=d,oM(d,u,this.latestValues,y,T,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=y},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(qn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{aa.hasAnimatedSinceResize=!0,this.currentAnimation=qN(0,qb,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&a0(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||mt();const p=kt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+p;const h=kt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+h}rn(l,c),gr(l,d),Ei(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new uM),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Su("z",a,u,this.animationValues);for(let d=0;d<Iu.length;d++)Su(`rotate${Iu[d]}`,a,u,this.animationValues),Su(`skew${Iu[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}getProjectionStyles(a){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return pM;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Qs(a==null?void 0:a.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const f={};return this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Qs(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!To(this.latestValues)&&(f.transform=d?d({},""):"none",this.hasProjected=!1),f}const h=p.animationValues||p.latestValues;this.applyTransformsToTarget(),u.transform=dM(this.projectionDeltaWithTransform,this.treeScale,h),d&&(u.transform=d(h,u.transform));const{x:g,y:m}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${m.origin*100}% 0`,p.animationValues?u.opacity=p===this?(c=(l=h.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=p===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const f in li){if(h[f]===void 0)continue;const{correct:b,applyTo:v,isCSSVariable:T}=li[f],x=u.transform==="none"?h[f]:b(h[f],p);if(v){const S=v.length;for(let y=0;y<S;y++)u[v[y]]=x}else T?this.options.visualElement.renderState.vars[f]=x:u[f]=x}return this.options.layoutId&&(u.pointerEvents=p===this?Qs(a==null?void 0:a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(e0),this.root.sharedNodes.clear()}}}function hM(e){e.updateLayout()}function mM(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=e.layout,{animationType:s}=e.options,a=n.source!==e.layout.source;s==="size"?on(p=>{const h=a?n.measuredBox[p]:n.layoutBox[p],g=kt(h);h.min=o[p].min,h.max=h.min+g}):a0(s,n.layoutBox,o)&&on(p=>{const h=a?n.measuredBox[p]:n.layoutBox[p],g=kt(o[p]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+g)});const l=hr();Ei(l,o,n.layoutBox);const c=hr();a?Ei(c,e.applyTransform(r,!0),n.measuredBox):Ei(c,o,n.layoutBox);const u=!Hb(l);let d=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:h,layout:g}=p;if(h&&g){const m=mt();Ii(m,n.layoutBox,h.layoutBox);const f=mt();Ii(f,o,g.layoutBox),Zb(m,f)||(d=!0),p.options.layoutRoot&&(e.relativeTarget=f,e.relativeTargetOrigin=m,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function gM(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function bM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vM(e){e.clearSnapshot()}function e0(e){e.clearMeasurements()}function yM(e){e.isLayoutDirty=!1}function xM(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function t0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function CM(e){e.resolveTargetDelta()}function TM(e){e.calcProjection()}function EM(e){e.resetSkewAndRotation()}function IM(e){e.removeLeadSnapshot()}function n0(e,t,n){e.translate=rt(t.translate,0,n),e.scale=rt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function o0(e,t,n,o){e.min=rt(t.min,n.min,o),e.max=rt(t.max,n.max,o)}function SM(e,t,n,o){o0(e.x,t.x,n.x,o),o0(e.y,t.y,n.y,o)}function wM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const AM={duration:.45,ease:[.4,0,.1,1]},r0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),i0=r0("applewebkit/")&&!r0("chrome/")?Math.round:Lt;function s0(e){e.min=i0(e.min),e.max=i0(e.max)}function RM(e){s0(e.x),s0(e.y)}function a0(e,t,n){return e==="position"||e==="preserve-aspect"&&!NN(Yb(t),Yb(n),.2)}function OM(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const PM=Qb({attachResizeListener:(e,t)=>xi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wu={current:void 0},l0=Qb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wu.current){const e=new PM({});e.mount(window),e.setOptions({layoutScroll:!0}),wu.current=e}return wu.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),NM={pan:{Feature:UN},drag:{Feature:XN,ProjectionNode:l0,MeasureLayout:kb}};function c0(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=o[r];s&&Ke.postRender(()=>s(t,Ci(t)))}class MM extends eo{mount(){const{current:t}=this.node;t&&(this.unmount=MO(t,(n,o)=>(c0(this.node,o,"Start"),r=>c0(this.node,r,"End"))))}unmount(){}}class kM extends eo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=vi(xi(this.node.current,"focus",()=>this.onFocus()),xi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function u0(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=o[r];s&&Ke.postRender(()=>s(t,Ci(t)))}class DM extends eo{mount(){const{current:t}=this.node;t&&(this.unmount=FO(t,(n,o)=>(u0(this.node,o,"Start"),(r,{success:s})=>u0(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Au=new WeakMap,Ru=new WeakMap,BM=e=>{const t=Au.get(e.target);t&&t(e)},FM=e=>{e.forEach(BM)};function jM({root:e,...t}){const n=e||document;Ru.has(n)||Ru.set(n,{});const o=Ru.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(FM,{root:e,...t})),o[r]}function VM(e,t,n){const o=jM(t);return Au.set(e,n),o.observe(e),()=>{Au.delete(e),o.unobserve(e)}}const LM={some:0,all:1};class _M extends eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:LM[r]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),h=u?d:p;h&&h(c)};return VM(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some($M(t,n))&&this.startObserver()}unmount(){}}function $M({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const WM={inView:{Feature:_M},tap:{Feature:DM},focus:{Feature:kM},hover:{Feature:MM}},GM={layout:{ProjectionNode:l0,MeasureLayout:kb}},Ou={current:null},d0={current:!1};function zM(){if(d0.current=!0,!!Ec)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ou.current=e.matches;e.addListener(t),t()}else Ou.current=!1}const HM=[...Vg,Rt,Qn],XM=e=>HM.find(jg(e)),UM=new WeakMap;function ZM(e,t,n){for(const o in t){const r=t[o],s=n[o];if(At(r))e.addValue(o,r),process.env.NODE_ENV==="development"&&Zs(r.version==="12.4.3",`Attempting to mix Motion versions ${r.version} with 12.4.3 may not work as expected.`);else if(At(s))e.addValue(o,hi(r,{owner:e}));else if(s!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,hi(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const p0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class YM{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,blockInitialAnimation:s,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=lu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=wn.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ke.render(this.render,!1,!0))};const{latestValues:c,renderState:u,onUpdate:d}=a;this.onUpdate=d,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=l,this.blockInitialAnimation=!!s,this.isControllingVariants=qs(n),this.isVariantNode=Mm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in h){const m=h[g];c[g]!==void 0&&At(m)&&m.set(c[g],!1)}}mount(t){this.current=t,UM.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,o)=>this.bindToMotionValue(o,n)),d0.current||zM(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ou.current,process.env.NODE_ENV!=="production"&&Zs(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),qn(this.notifyUpdate),qn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=vo.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Ke.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),s(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in lr){const n=lr[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<p0.length;o++){const r=p0[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,a=t[s];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=ZM(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=hi(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){var o;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(o=this.getBaseTargetFromProps(this.props,t))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Bg(r)||Tg(r))?r=parseFloat(r):!XM(r)&&Qn.test(n)&&(r=Og(t,n)),this.setBaseTarget(t,At(r)?r.get():r)),At(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const a=Vc(this.props,o,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(r=a[t])}if(o&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!At(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Jc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class f0 extends YM{constructor(){super(...arguments),this.KeyframeResolver=_g}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;At(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function JM(e){return window.getComputedStyle(e)}class qM extends f0{constructor(){super(...arguments),this.type="html",this.renderInstance=Zm}readValueFromInstance(t,n){if(vo.has(n)){const o=iu(n);return o&&o.default||0}else{const o=JM(t),r=(Pc(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ob(t,n)}build(t,n,o){kc(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return _c(t,n,o)}}class KM extends f0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Um(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vo.has(n)){const o=iu(n);return o&&o.default||0}return n=Ym.has(n)?n:Rc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return qm(t,n,o)}onBindTransform(){this.current&&!this.renderState.dimensions&&Ke.postRender(this.updateDimensions)}build(t,n,o){Fc(t,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,o,r){Jm(t,n,o,r)}mount(t){this.isSVGTag=jc(t.tagName),super.mount(t)}}const QM=(e,t)=>Bc(e)?new KM(t):new qM(t,{allowProjection:e!==M.Fragment}),ek=SO({...TN,...WM,...NM,...GM},QM),Eo=WR(ek),la=({label:e,icon:t,hasFooter:n=!1,showCheckBox:o=!1,options:r,setVisibleGridColumns:s,defaultValue:a=!0,isMulti:l=!1,handleSelectClick:c})=>{var y,w;const u=ht(),[d,p]=M.useState(!1),[h,g]=M.useState(a?(y=r==null?void 0:r[0])==null?void 0:y.label:"Select option"),[m,f]=M.useState(r||[]);((w=m==null?void 0:m.filter(A=>!(A!=null&&A.isMandatory)))==null?void 0:w.length)>7;const b=M.useRef(null),v=M.useRef(null),T=M.useCallback(A=>{let R=[...m];R=R==null?void 0:R.map(P=>(P==null?void 0:P.key)===A?{...P,hidden:!P.hidden}:P),f(R),p(!0)},[m]);M.useCallback(()=>{f(A=>{const R=[...A];return R.splice(v.current,0,R.splice(b.current,1)[0]),R.map((P,N)=>({...P,sequence_id:N})).sort((P,N)=>P.sequence_id-N.sequence_id)}),b.current=null,v.current=null},[m]);const x=()=>{p(null),(m==null?void 0:m.length)>0&&s(m)},S=()=>{p(null),s(r),f(r)};return C.jsx(ge,{sx:{position:"relative",flexShrink:0},children:C.jsx(ge,{position:"absolute",top:0,zIndex:10,children:C.jsxs(Eo.div,{style:{position:"relative",maxHeight:"3rem",border:`0.1rem solid ${u.palette.primary.notifyBorderColor}`,borderRadius:"0.7rem",color:u.palette.primary.notifyTextColor,backgroundColor:u.palette.primary.notifyBackground,overflow:"hidden",width:"max-content"},animate:{maxHeight:d?"15rem":"3rem"},transition:{duration:.2,ease:"easeInOut"},children:[C.jsxs(ge,{sx:{padding:"0.65rem",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",gap:"0.5rem"},onClick:()=>p(!d),children:[C.jsx(ge,{component:"img",layout:!0,className:"select-icon",src:t,sx:{cursor:"pointer"}}),C.jsx(Kt,{sx:{color:u.palette.primary.notifyTextColor,flex:1,fontSize:"1.1rem"},children:e||h}),C.jsx(ge,{component:"img",layout:!0,className:"child",src:d?kn.ArrowSelectDown:kn.ArrowSelectUp,sx:{cursor:"pointer"}})]}),d&&C.jsx("hr",{style:{width:"100%",height:"0.1rem",backgroundColor:u.palette.primary.notifyBorderColor,border:"none"}}),C.jsx(Eo.ul,{style:{listStyle:"none",padding:"0rem 1rem 0.8rem 1rem",margin:0,opacity:d?1:0,visibility:d?"visible":"hidden",maxHeight:"10rem",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:`${u.palette.primary.notifyIconColor} transparent`},initial:{opacity:0},animate:{opacity:d?1:0},transition:{duration:.3,ease:"easeInOut"},children:r==null?void 0:r.map((A,R)=>C.jsxs("li",{style:{padding:"0.4rem",cursor:"pointer",fontSize:"1.1rem",color:u.palette.primary.notifyTextColor,backgroundColor:u.palette.primary.notifyBackground},onClick:()=>{g(A==null?void 0:A.label),!l&&p(!1),c(A)},children:[o&&C.jsx(nc,{size:"medium",sx:{color:u.palette.primary.notifyIconColor,"&.Mui-checked":{color:u.palette.brandColor.orange},p:"0.2rem 0.5rem"},onChange:()=>T(A)}),A==null?void 0:A.label]},R))}),n&&d&&C.jsxs(Eo.div,{layout:!0,style:{display:"flex",flexDirection:"row",padding:"0.5rem 1rem",justifyContent:"space-between",borderTop:`0.1rem solid ${u.palette.primary.notifyBorderColor}`,position:"sticky",bottom:0,opacity:d?1:0,visibility:d?"visible":"hidden"},initial:{opacity:0},animate:{opacity:d?1:0},transition:{duration:.3,ease:"easeInOut"},children:[C.jsx(Eo.button,{layout:!0,onClick:x,style:{textTransform:"none",padding:"0.4rem",background:"transparent",color:u.palette.primary.notifyTextColor,fontSize:"1.1rem",border:"none",cursor:"pointer"},children:"Apply"}),C.jsx(Eo.button,{layout:!0,onClick:S,style:{textTransform:"none",padding:"0.4rem",background:"transparent",color:u.palette.primary.notifyTextColor,fontSize:"1.1rem",border:"none",cursor:"pointer"},children:"Cancel"})]})]})})})},tk=({page:e,rowPerPage:t,total:n,handleChangePage:o,rowSelectProps:r})=>{const s=ht();return C.jsxs(ge,{sx:{display:"flex",p:"1rem 2rem"},children:[C.jsxs(ge,{sx:{zIndex:10,display:"flex",flexDirection:"row",gap:"0.5rem",width:"100%"},children:[C.jsx(ge,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:C.jsxs(Kt,{sx:{fontSize:"1.1rem",color:s.palette.primary.notifyActiveText},children:["Showing ",(e-1)*t+1," to"]})}),C.jsx(ge,{sx:{display:"flex",flexDirection:"row",gap:"0.5rem",justifyContent:"space-between"},children:C.jsx(ge,{sx:{display:"flex",flexDirection:"row",width:"5.5rem"},children:C.jsx(la,{...r})})}),C.jsx(ge,{sx:{display:"flex",justifyContent:"center",alignItems:"center"},children:C.jsxs(Kt,{sx:{fontSize:"1.1rem",color:s.palette.primary.notifyActiveText},children:["of ",n," records"]})})]}),C.jsx(hc,{count:Math.ceil(n/t),page:e,onChange:(a,l)=>{o(l)},shape:"rounded",sx:{width:"100%","& .MuiPagination-ul":{width:"100%",display:"flex",justifyContent:"flex-end","& li:first-of-type":{border:`0.1rem solid ${s.palette.primary.notifyBorderColor}`,color:s.palette.primary.notifyActiveText,marginRight:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"},"& li:last-child":{border:`0.1rem solid ${s.palette.primary.notifyBorderColor}`,color:s.palette.primary.notifyActiveText,marginLeft:"1.5rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex"}},"& .MuiPaginationItem-root":{color:"#595959",fontSize:"1.1rem",borderRadius:"1rem",width:"3rem",height:"3rem",justifyContent:"center",alignItems:"center",display:"flex","& .MuiSvgIcon-root":{fontSize:"2.2rem"}},"& .Mui-selected":{color:s.palette.primary.notifyActiveText,backgroundColor:s.palette.primary.notifyButtonBackground}}})]})},nk=({column:e,sortField:t,sortDir:n,handleSortClick:o})=>{const r=s=>C.jsx(Gr,{onClick:o,children:C.jsx(ge,{component:"img",src:s})});return C.jsx(C.Fragment,{children:t===(e==null?void 0:e.field)?r(n==="asc"?kn.AscSort:kn.DescSort):r(kn.Unsort)})},ok=({menuOpen:e,handleClose:t,visibleGridColumns:n,setVisibleGridColumns:o,selected:r,setSelected:s})=>{const a=ht(),l=()=>{let c=[...n];c=c==null?void 0:c.map(u=>(u==null?void 0:u.key)===r?{...u,hidden:!u.hidden}:u),s(null),o(c),t()};return C.jsx(pc,{open:!!e,anchorEl:e,onClose:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:C.jsx(ge,{sx:{p:"0.4rem 1rem",backgroundColor:a.palette.primary.notifyBackground,border:`0.1rem solid ${a.palette.primary.notifyBorderColor}`,minHeight:"2.3rem",display:"flex",justifyContent:"center",alignItems:"center"},children:C.jsx(Fs,{onClick:l,sx:{textTransform:"none",fontSize:"1.1rem",p:0,minHeight:"unset",fontWeight:"500",color:a.palette.primary.notifyTextColor},children:"Hide Column"})})})},rk=({visibleGridColumns:e,setVisibleGridColumns:t,gridData:n,handleSortClick:o,sortDir:r,sortField:s,handleChangePage:a,gridTools:l,paginationProps:c})=>{const u=ht(),[d,p]=M.useState(null),[h,g]=M.useState(null),m=(T,x=20)=>(T==null?void 0:T.length)>x?`${T.slice(0,x)}...`:T,f=T=>C.jsx(am,{title:(T==null?void 0:T.length)>20?T:"",arrow:!0,children:C.jsx(ge,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",textTransform:"none",fontSize:"1.1rem"},component:"label",children:m(T)})}),b=(T,x)=>{p(T.currentTarget),g(x)},v=()=>{p(null)};return C.jsxs(ge,{position:"relative",children:[C.jsx(pm,{sx:{maxHeight:"100%"},children:C.jsxs(vc,{stickyHeader:!0,sx:{backgroundColor:u.palette.primary.notifyBackground,border:`0.1rem solid ${u.palette.primary.notifyBorderColor}`,borderRadius:"1.4rem","& .MuiTableHead-root":{backgroundColor:u.palette.primary.notifyBackground}},children:[C.jsxs(xc,{children:[C.jsx(bo,{children:e==null?void 0:e.map((T,x)=>{var S;if(!(T!=null&&T.hidden))return C.jsx(go,{style:{minWidth:T.width},rowSpan:T!=null&&T.children?1:2,colSpan:(S=T==null?void 0:T.children)==null?void 0:S.length,sx:{color:u.palette.primary.notifyTextColor,backgroundColor:u.palette.primary.notifyBackground,borderColor:u.palette.primary.notifyBorderColor,p:"0.8rem 1rem",borderTopLeftRadius:(T==null?void 0:T.field)&&"1.4rem",borderTopRightRadius:"1.4rem",textAlign:"center"},children:C.jsxs(ge,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",fontSize:"1.1rem"},children:[T.headerName,T.sortable&&C.jsx(nk,{column:T,sortField:s,sortDir:r,handleSortClick:()=>o({column:T,sortDir:r,sortField:s})}),!(T!=null&&T.children)&&!(T!=null&&T.isMandatory)&&l.hasManageColumns&&C.jsx(Gr,{onClick:y=>b(y,T==null?void 0:T.key),children:C.jsx(ge,{component:"img",src:kn.Menu})})]})},x)})}),(e==null?void 0:e.some(T=>T==null?void 0:T.children))&&C.jsx(bo,{sx:{backgroundColor:u.palette.primary.notifyBackground},children:e.map(T=>T!=null&&T.children?T.children.map((x,S)=>C.jsx(go,{style:{minWidth:x==null?void 0:x.width},sx:{p:"0.8rem 1rem",color:u.palette.primary.notifyTextColor,backgroundColor:u.palette.primary.notifyBackground,borderColor:u.palette.primary.notifyBorderColor,borderLeft:T!=null&&T.field?"none":`0.1rem solid ${u.palette.primary.notifyBorderColor}`,textAlign:"center"},children:C.jsx(ge,{component:"label",sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",fontSize:"1.1rem"},children:x.headerName})},S)):null)})]}),C.jsx(yc,{children:n.map(T=>C.jsx(bo,{hover:!0,role:"checkbox",tabIndex:-1,sx:{"&:hover":{backgroundColor:u.palette.primary.notifyBorderColor}},children:e.map((x,S)=>x.cellRenderer?C.jsx(go,{sx:{color:u.palette.primary.notifyTextColor,borderColor:u.palette.primary.notifyBorderColor,p:"0.5rem",textAlign:"center"},children:f(x.cellRenderer(T))},S):!x.hidden&&x.field?C.jsx(go,{sx:{color:u.palette.primary.notifyTextColor,borderColor:u.palette.primary.notifyBorderColor,p:"0.8rem 1rem",borderLeft:x!=null&&x.field?"none":`0.1rem solid ${u.palette.primary.notifyBorderColor}`,textAlign:"center"},children:f(T[x.field])},S):x.children?x.children.map((y,w)=>C.jsx(go,{sx:{color:u.palette.primary.notifyTextColor,borderColor:u.palette.primary.notifyBorderColor,p:"0.5rem",textAlign:"center"},children:f(y.cellRenderer?y.cellRenderer(y==null?void 0:y.valueGetter(T)):"")},`${S}-${w}`)):null)},T.code))})]})}),C.jsx(tk,{...c}),C.jsx(ok,{menuOpen:d,handleClose:v,visibleGridColumns:e,setVisibleGridColumns:t,selected:h,setSelected:g})]})},wi=({icon:e,label:t,variant:n,buttonBackground:o,iconPosition:r,...s})=>{const a=ht();if(e&&!t)return C.jsx(Gr,{disableRipple:!0,sx:{background:n!=="outlined"?o:a.palette.primary.notifyBackground,borderRadius:"0.7rem",border:n=="outlined"?`0.1rem solid ${a.palette.primary.notifyBorderColor}`:"none",height:"3.2rem",padding:"1.5rem 1rem",display:"flex",justifyContent:"center",alignItems:"center"},...s,children:C.jsx(ge,{component:"img",src:e})});if(t)return C.jsx(Fs,{disableRipple:!0,sx:{background:n!=="outlined"?o:a.palette.primary.notifyBackground,borderRadius:"0.7rem",border:n=="outlined"?`0.1rem solid ${a.palette.primary.notifyBorderColor}`:"none",height:"3.2rem",padding:"1.5rem",display:"flex",justifyContent:"center",textTransform:"none",alignItems:"center",gap:"0.5rem",color:n=="outlined"?a.palette.primary.notifyActiveText:"white","&:hover":{backgroundColor:n!=="outlined"?o:a.palette.primary.notifyBackground,boxShadow:"none"}},startIcon:r==="start"&&C.jsx(ge,{component:"img",src:e}),endIcon:r==="end"&&C.jsx(ge,{component:"img",src:e}),...s,children:C.jsx(Kt,{sx:{fontSize:"1.1rem"},children:t})})},ik=e=>{if(!e)return null;const{type:t,...n}=e,o={button:r=>C.jsx(wi,{...r}),select:r=>C.jsx(la,{...r})};return o[t]?o[t](n):null},sk=({...e})=>{const[t,n]=M.useState(!1),o=ht();return C.jsx(Eo.input,{type:"text",onFocus:()=>n(!0),onBlur:()=>n(!1),initial:{width:150,borderRadius:"0.7rem"},animate:{width:t?180:150},transition:{duration:.3,ease:"easeInOut"},style:{height:"3rem",outline:"none",boxShadow:"none",border:`0.1rem solid ${o.palette.primary.notifyBorderColor}`,backgroundColor:o.palette.primary.notifyBackground,padding:"0rem 1rem",color:o.palette.primary.notifyTextColor,transition:"height 0.1s ease"},...e})},ak=({visibleGridColumns:e,setVisibleGridColumns:t,gridTools:n,searchProps:o,refreshProps:r,uploadProps:s,downloadProps:a,customTools:l,manageColumnProps:c})=>{var u,d;return ht(),Eo(wi),M.useState(!1),C.jsxs(ge,{sx:{margin:"1rem 0",position:"relative",zIndex:10,display:"flex",flexDirection:"row",gap:"0.5rem",width:"100%"},children:[C.jsxs(ge,{sx:{display:"flex",flexDirection:"row",gap:"0.5rem"},children:[n.hasSearch&&C.jsx(sk,{...o}),n.hasRefresh&&C.jsx(wi,{...r})]}),C.jsx(ge,{sx:{display:"flex",flexDirection:"row",gap:"0.5rem",justifyContent:"space-between",flex:1,width:"27rem"},children:C.jsxs(ge,{sx:{display:"flex",flexDirection:"row",gap:"0.5rem"},children:[n.hasManageColumns&&C.jsx(la,{...c,visibleGridColumns:e,setVisibleGridColumns:t}),(u=l.left)==null?void 0:u.map(p=>p)]})}),C.jsxs(ge,{sx:{display:"flex",flexDirection:"row",gap:"0.5rem"},children:[(d=l.right)==null?void 0:d.map((p,h)=>C.jsx(M.Fragment,{children:ik(p)},h)),n.hasUpload&&C.jsx(wi,{...s}),n.hasDownload&&C.jsx(wi,{...a})]})]})},lk={light:ds({palette:{primary:{appBackground:"#FFFFFF",main:"#f5f7fa",notifyBackground:"#F8FAFB",notifyTextColor:"#525252",notifyActiveText:"#282A2A",notifyBorderColor:"#D0D4DA",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#E6EAEC",notifyActiveBorderColor:"#1D1D1D",notifyIconColor:"#666D80"},brandColor:{blue:"#0166FF",orange:"#E94F1C",grey1:"#595959",main:"#FF6D33",grey3:"#898A93"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}}}),dark:ds({palette:{primary:{appBackground:"#101010",main:"#f5f7fa",notifyBackground:"#1D1D1D",notifyTextColor:"#A8A8A8",notifyActiveText:"#FFFFFF",notifyBorderColor:"#313133",notifyTooltipBackground:"#07080B",notifyButtonBackground:"#2C2C2F",notifyActiveBorderColor:"#FFFFFF",notifyIconColor:"#909090"},brandColor:{blue:"#0166FF",orange:"#E94F1C",grey1:"#595959",main:"#FF6D33",grey3:"#898A93"}},typography:{fontFamily:"Euclid Circular Regular, sans-serif",fontSize:12,fontWeightMedium:"bold",fontWeightRegular:"lighter"},components:{MuiDrawer:{defaultProps:{disableRipple:!0}}}})};function h0({children:e}){var n,o;const t=((o=(n=JSON.parse(localStorage.getItem("settings")))==null?void 0:n.platform)==null?void 0:o.theme)||"light";return C.jsx(Df,{theme:lk[t],children:e})}const ck=({tableProps:e,toolbarProps:t})=>{const[n,o]=M.useState(e.gridColDef);return C.jsxs(h0,{children:[C.jsx(ak,{...t,visibleGridColumns:n,setVisibleGridColumns:o}),C.jsx(rk,{visibleGridColumns:n,setVisibleGridColumns:o,...e,...t})]})},ct={LOADING:"LOADING",SUCCESS:"SUCCESS",ERROR:"ERROR",MARK_ALL_AS_READ:"MARK_ALL_AS_READ"},Fn={SWR:"Something went wrong!",UNHANDLED:"Unhandled action type: ",INVALID:"Invalid action type: ",INVALID_ACTION:"Invalid action type: ",NRF:"No Records found"},Pu=M.createContext(null),m0=M.createContext(null);function uk({children:e}){const[t,n]=M.useReducer(dk,pk);return C.jsx(Pu.Provider,{value:t,children:C.jsx(m0.Provider,{value:n,children:e})})}function dk(e,t){var n;switch(t.type){case ct.LOADING:return{...e,loading:t.loading};case ct.SUCCESS:return{...e,data:(n=t.data)==null?void 0:n.sort((o,r)=>new Date(r.createdAt)-new Date(o.createdAt))};case ct.MARK_ALL_AS_READ:return{...e,isMarkAllAsRead:t.isMarkAllAsRead};case ct.ERROR:return{...e,error:t.error};default:throw new Error(`${Fn.UNHANDLED}: ${t}`)}}const pk={loading:!1,data:[],error:"",isMarkAllAsRead:{count:0,boo:!1}},Nu=e=>{const t=localStorage.getItem(e);return t?JSON.parse(t):""},fk=e=>{const t=new Date,n=new Date(e);let o=t-n;o<0&&(o=0);const r=Math.floor(o/1e3),s=Math.floor(r/60);return r<60?`${r} sec ago`:s<60?`${s} min ago`:n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0})},Mu=e=>e.sort((n,o)=>{let r=new Date(n.createdAt),s=new Date(o.createdAt);return r===s?0:r>s?-1:1}).sort((n,o)=>n.isRead===o.isRead?0:o.isRead?-1:1),hk=e=>{let t=0;for(let n=0;n<e.length;n++)e[n].isRead||t++;return t},mk=e=>{const t=[];return e.forEach(n=>{n.isRead||t.push(n.id)}),t},gk=(e,t,n)=>e.filter(r=>t.some(s=>{var a,l,c;return(c=(a=r[s])==null?void 0:a.toLowerCase())==null?void 0:c.includes((l=n==null?void 0:n.trim())==null?void 0:l.toLowerCase())})),bk=(e,t,n)=>e.sort((r,s)=>n==="asc"?r[t].toLowerCase().localeCompare(s[t].toLowerCase()):s[t].toLowerCase().localeCompare(r[t].toLowerCase())),ku=(e,t,n)=>e.slice((t-1)*n,t*n),Du=e=>{var r;const t=JSON.parse(localStorage.getItem("configuration")),n=((r=t==null?void 0:t.entities)==null?void 0:r.labelChannel)||"Channel";return e.split("_").map(s=>s==="channel"?n:s[0].toUpperCase()+s.substring(1)).join(" ")},vk=e=>{const t=e.reduce((o,r)=>{const s=new Date(r==null?void 0:r.createdAt),a=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(s);return o[a]||(o[a]=[]),o[a].push(r),o},{});return Object.fromEntries(Object.entries(t).sort(([o],[r])=>new Date(r)-new Date(o)))};function g0(e,t){return function(){return e.apply(t,arguments)}}const{toString:yk}=Object.prototype,{getPrototypeOf:Bu}=Object,ca=(e=>t=>{const n=yk.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hn=e=>(e=e.toLowerCase(),t=>ca(t)===e),ua=e=>t=>typeof t===e,{isArray:br}=Array,Ai=ua("undefined");function xk(e){return e!==null&&!Ai(e)&&e.constructor!==null&&!Ai(e.constructor)&&sn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b0=hn("ArrayBuffer");function Ck(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&b0(e.buffer),t}const Tk=ua("string"),sn=ua("function"),v0=ua("number"),da=e=>e!==null&&typeof e=="object",Ek=e=>e===!0||e===!1,pa=e=>{if(ca(e)!=="object")return!1;const t=Bu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ik=hn("Date"),Sk=hn("File"),wk=hn("Blob"),Ak=hn("FileList"),Rk=e=>da(e)&&sn(e.pipe),Ok=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||sn(e.append)&&((t=ca(e))==="formdata"||t==="object"&&sn(e.toString)&&e.toString()==="[object FormData]"))},Pk=hn("URLSearchParams"),[Nk,Mk,kk,Dk]=["ReadableStream","Request","Response","Headers"].map(hn),Bk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ri(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),br(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let l;for(o=0;o<a;o++)l=s[o],t.call(null,e[l],l,e)}}function y0(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,r;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const x0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,C0=e=>!Ai(e)&&e!==x0;function Fu(){const{caseless:e}=C0(this)&&this||{},t={},n=(o,r)=>{const s=e&&y0(t,r)||r;pa(t[s])&&pa(o)?t[s]=Fu(t[s],o):pa(o)?t[s]=Fu({},o):br(o)?t[s]=o.slice():t[s]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&Ri(arguments[o],n);return t}const Fk=(e,t,n,{allOwnKeys:o}={})=>(Ri(t,(r,s)=>{n&&sn(r)?e[s]=g0(r,n):e[s]=r},{allOwnKeys:o}),e),jk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vk=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Lk=(e,t,n,o)=>{let r,s,a;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)a=r[s],(!o||o(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Bu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_k=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},$k=e=>{if(!e)return null;if(br(e))return e;let t=e.length;if(!v0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Wk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bu(Uint8Array)),Gk=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const s=r.value;t.call(e,s[0],s[1])}},zk=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},Hk=hn("HTMLFormElement"),Xk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),T0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Uk=hn("RegExp"),E0=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};Ri(n,(r,s)=>{let a;(a=t(r,s,e))!==!1&&(o[s]=a||r)}),Object.defineProperties(e,o)},Zk=e=>{E0(e,(t,n)=>{if(sn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(sn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Yk=(e,t)=>{const n={},o=r=>{r.forEach(s=>{n[s]=!0})};return br(e)?o(e):o(String(e).split(t)),n},Jk=()=>{},qk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ju="abcdefghijklmnopqrstuvwxyz",I0="0123456789",S0={DIGIT:I0,ALPHA:ju,ALPHA_DIGIT:ju+ju.toUpperCase()+I0},Kk=(e=16,t=S0.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function Qk(e){return!!(e&&sn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const eD=e=>{const t=new Array(10),n=(o,r)=>{if(da(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const s=br(o)?[]:{};return Ri(o,(a,l)=>{const c=n(a,r+1);!Ai(c)&&(s[l]=c)}),t[r]=void 0,s}}return o};return n(e,0)},tD=hn("AsyncFunction"),W={isArray:br,isArrayBuffer:b0,isBuffer:xk,isFormData:Ok,isArrayBufferView:Ck,isString:Tk,isNumber:v0,isBoolean:Ek,isObject:da,isPlainObject:pa,isReadableStream:Nk,isRequest:Mk,isResponse:kk,isHeaders:Dk,isUndefined:Ai,isDate:Ik,isFile:Sk,isBlob:wk,isRegExp:Uk,isFunction:sn,isStream:Rk,isURLSearchParams:Pk,isTypedArray:Wk,isFileList:Ak,forEach:Ri,merge:Fu,extend:Fk,trim:Bk,stripBOM:jk,inherits:Vk,toFlatObject:Lk,kindOf:ca,kindOfTest:hn,endsWith:_k,toArray:$k,forEachEntry:Gk,matchAll:zk,isHTMLForm:Hk,hasOwnProperty:T0,hasOwnProp:T0,reduceDescriptors:E0,freezeMethods:Zk,toObjectSet:Yk,toCamelCase:Xk,noop:Jk,toFiniteNumber:qk,findKey:y0,global:x0,isContextDefined:C0,ALPHABET:S0,generateString:Kk,isSpecCompliantForm:Qk,toJSONObject:eD,isAsyncFn:tD,isThenable:e=>e&&(da(e)||sn(e))&&sn(e.then)&&sn(e.catch)};function we(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}W.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const w0=we.prototype,A0={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{A0[e]={value:e}}),Object.defineProperties(we,A0),Object.defineProperty(w0,"isAxiosError",{value:!0}),we.from=(e,t,n,o,r,s)=>{const a=Object.create(w0);return W.toFlatObject(e,a,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),we.call(a,e.message,t,n,o,r),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const nD=null;function Vu(e){return W.isPlainObject(e)||W.isArray(e)}function R0(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function O0(e,t,n){return e?e.concat(t).map(function(r,s){return r=R0(r),!n&&s?"["+r+"]":r}).join(n?".":""):t}function oD(e){return W.isArray(e)&&!e.some(Vu)}const rD=W.toFlatObject(W,{},null,function(t){return/^is[A-Z]/.test(t)});function fa(e,t,n){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,b){return!W.isUndefined(b[f])});const o=n.metaTokens,r=n.visitor||d,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(r))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(W.isDate(m))return m.toISOString();if(!c&&W.isBlob(m))throw new we("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(m)||W.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,f,b){let v=m;if(m&&!b&&typeof m=="object"){if(W.endsWith(f,"{}"))f=o?f:f.slice(0,-2),m=JSON.stringify(m);else if(W.isArray(m)&&oD(m)||(W.isFileList(m)||W.endsWith(f,"[]"))&&(v=W.toArray(m)))return f=R0(f),v.forEach(function(x,S){!(W.isUndefined(x)||x===null)&&t.append(a===!0?O0([f],S,s):a===null?f:f+"[]",u(x))}),!1}return Vu(m)?!0:(t.append(O0(b,f,s),u(m)),!1)}const p=[],h=Object.assign(rD,{defaultVisitor:d,convertValue:u,isVisitable:Vu});function g(m,f){if(!W.isUndefined(m)){if(p.indexOf(m)!==-1)throw Error("Circular reference detected in "+f.join("."));p.push(m),W.forEach(m,function(v,T){(!(W.isUndefined(v)||v===null)&&r.call(t,v,W.isString(T)?T.trim():T,f,h))===!0&&g(v,f?f.concat(T):[T])}),p.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return g(e),t}function P0(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Lu(e,t){this._pairs=[],e&&fa(e,this,t)}const N0=Lu.prototype;N0.append=function(t,n){this._pairs.push([t,n])},N0.toString=function(t){const n=t?function(o){return t.call(this,o,P0)}:P0;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function iD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function M0(e,t,n){if(!t)return e;const o=n&&n.encode||iD,r=n&&n.serialize;let s;if(r?s=r(t,n):s=W.isURLSearchParams(t)?t.toString():new Lu(t,n).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class k0{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(o){o!==null&&t(o)})}}const D0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sD={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Lu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_u=typeof window<"u"&&typeof document<"u",aD=(e=>_u&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),lD=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cD=_u&&window.location.href||"http://localhost",mn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_u,hasStandardBrowserEnv:aD,hasStandardBrowserWebWorkerEnv:lD,origin:cD},Symbol.toStringTag,{value:"Module"})),...sD};function uD(e,t){return fa(e,new mn.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,s){return mn.isNode&&W.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function dD(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pD(e){const t={},n=Object.keys(e);let o;const r=n.length;let s;for(o=0;o<r;o++)s=n[o],t[s]=e[s];return t}function B0(e){function t(n,o,r,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=s>=n.length;return a=!a&&W.isArray(r)?r.length:a,c?(W.hasOwnProp(r,a)?r[a]=[r[a],o]:r[a]=o,!l):((!r[a]||!W.isObject(r[a]))&&(r[a]=[]),t(n,o,r[a],s)&&W.isArray(r[a])&&(r[a]=pD(r[a])),!l)}if(W.isFormData(e)&&W.isFunction(e.entries)){const n={};return W.forEachEntry(e,(o,r)=>{t(dD(o),r,n,0)}),n}return null}function fD(e,t,n){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Oi={transitional:D0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,s=W.isObject(t);if(s&&W.isHTMLForm(t)&&(t=new FormData(t)),W.isFormData(t))return r?JSON.stringify(B0(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return uD(t,this.formSerializer).toString();if((l=W.isFileList(t))||o.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return fa(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),fD(t)):t}],transformResponse:[function(t){const n=this.transitional||Oi.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(o&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?we.from(l,we.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mn.classes.FormData,Blob:mn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{Oi.headers[e]={}});const hD=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mD=e=>{const t={};let n,o,r;return e&&e.split(`
239
239
  `).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),o=a.substring(r+1).trim(),!(!n||t[n]&&hD[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},F0=Symbol("internals");function Pi(e){return e&&String(e).trim().toLowerCase()}function ha(e){return e===!1||e==null?e:W.isArray(e)?e.map(ha):String(e)}function gD(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const bD=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $u(e,t,n,o,r){if(W.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!W.isString(t)){if(W.isString(o))return t.indexOf(o)!==-1;if(W.isRegExp(o))return o.test(t)}}function vD(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function yD(e,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,s,a){return this[o].call(this,t,r,s,a)},configurable:!0})})}class _t{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function s(l,c,u){const d=Pi(c);if(!d)throw new Error("header name must be a non-empty string");const p=W.findKey(r,d);(!p||r[p]===void 0||u===!0||u===void 0&&r[p]!==!1)&&(r[p||c]=ha(l))}const a=(l,c)=>W.forEach(l,(u,d)=>s(u,d,c));if(W.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(W.isString(t)&&(t=t.trim())&&!bD(t))a(mD(t),n);else if(W.isHeaders(t))for(const[l,c]of t.entries())s(c,l,o);else t!=null&&s(n,t,o);return this}get(t,n){if(t=Pi(t),t){const o=W.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return gD(r);if(W.isFunction(n))return n.call(this,r,o);if(W.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Pi(t),t){const o=W.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||$u(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function s(a){if(a=Pi(a),a){const l=W.findKey(o,a);l&&(!n||$u(o,o[l],l,n))&&(delete o[l],r=!0)}}return W.isArray(t)?t.forEach(s):s(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const s=n[o];(!t||$u(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const n=this,o={};return W.forEach(this,(r,s)=>{const a=W.findKey(o,s);if(a){n[a]=ha(r),delete n[s];return}const l=t?vD(s):String(s).trim();l!==s&&delete n[s],n[l]=ha(r),o[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return W.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&W.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
240
240
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[F0]=this[F0]={accessors:{}}).accessors,r=this.prototype;function s(a){const l=Pi(a);o[l]||(yD(r,a),o[l]=!0)}return W.isArray(t)?t.forEach(s):s(t),this}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(_t.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}}),W.freezeMethods(_t);function Wu(e,t){const n=this||Oi,o=t||n,r=_t.from(o.headers);let s=o.data;return W.forEach(e,function(l){s=l.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function j0(e){return!!(e&&e.__CANCEL__)}function vr(e,t,n){we.call(this,e??"canceled",we.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(vr,we,{__CANCEL__:!0});function V0(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new we("Request failed with status code "+n.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function xD(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function CD(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,s=0,a;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=o[s];a||(a=u),n[r]=c,o[r]=u;let p=s,h=0;for(;p!==r;)h+=n[p++],p=p%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),u-a<t)return;const g=d&&u-d;return g?Math.round(h*1e3/g):void 0}}function TD(e,t){let n=0;const o=1e3/t;let r=null;return function(){const a=this===!0,l=Date.now();if(a||l-n>o)return r&&(clearTimeout(r),r=null),n=l,e.apply(null,arguments);r||(r=setTimeout(()=>(r=null,n=Date.now(),e.apply(null,arguments)),o-(l-n)))}}const ma=(e,t,n=3)=>{let o=0;const r=CD(50,250);return TD(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,c=a-o,u=r(c),d=a<=l;o=a;const p={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-a)/u:void 0,event:s,lengthComputable:l!=null};p[t?"download":"upload"]=!0,e(p)},n)},ED=mn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(s){let a=s;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(a){const l=W.isString(a)?r(a):a;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),ID=mn.hasStandardBrowserEnv?{write(e,t,n,o,r,s){const a=[e+"="+encodeURIComponent(t)];W.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),W.isString(o)&&a.push("path="+o),W.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function SD(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wD(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function L0(e,t){return e&&!SD(t)?wD(e,t):t}const _0=e=>e instanceof _t?{...e}:e;function Io(e,t){t=t||{};const n={};function o(u,d,p){return W.isPlainObject(u)&&W.isPlainObject(d)?W.merge.call({caseless:p},u,d):W.isPlainObject(d)?W.merge({},d):W.isArray(d)?d.slice():d}function r(u,d,p){if(W.isUndefined(d)){if(!W.isUndefined(u))return o(void 0,u,p)}else return o(u,d,p)}function s(u,d){if(!W.isUndefined(d))return o(void 0,d)}function a(u,d){if(W.isUndefined(d)){if(!W.isUndefined(u))return o(void 0,u)}else return o(void 0,d)}function l(u,d,p){if(p in t)return o(u,d);if(p in e)return o(void 0,u)}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(u,d)=>r(_0(u),_0(d),!0)};return W.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=c[d]||r,h=p(e[d],t[d],d);W.isUndefined(h)&&p!==l||(n[d]=h)}),n}const $0=e=>{const t=Io({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:l}=t;t.headers=a=_t.from(a),t.url=M0(L0(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(W.isFormData(n)){if(mn.hasStandardBrowserEnv||mn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[u,...d]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(mn.hasStandardBrowserEnv&&(o&&W.isFunction(o)&&(o=o(t)),o||o!==!1&&ED(t.url))){const u=r&&s&&ID.read(s);u&&a.set(r,u)}return t},AD=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,o){const r=$0(e);let s=r.data;const a=_t.from(r.headers).normalize();let{responseType:l}=r,c;function u(){r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(r.method.toUpperCase(),r.url,!0),d.timeout=r.timeout;function p(){if(!d)return;const g=_t.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),f={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:e,request:d};V0(function(v){n(v),u()},function(v){o(v),u()},f),d=null}"onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(o(new we("Request aborted",we.ECONNABORTED,r,d)),d=null)},d.onerror=function(){o(new we("Network Error",we.ERR_NETWORK,r,d)),d=null},d.ontimeout=function(){let m=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const f=r.transitional||D0;r.timeoutErrorMessage&&(m=r.timeoutErrorMessage),o(new we(m,f.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,r,d)),d=null},s===void 0&&a.setContentType(null),"setRequestHeader"in d&&W.forEach(a.toJSON(),function(m,f){d.setRequestHeader(f,m)}),W.isUndefined(r.withCredentials)||(d.withCredentials=!!r.withCredentials),l&&l!=="json"&&(d.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&d.addEventListener("progress",ma(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",ma(r.onUploadProgress)),(r.cancelToken||r.signal)&&(c=g=>{d&&(o(!g||g.type?new vr(null,e,d):g),d.abort(),d=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const h=xD(r.url);if(h&&mn.protocols.indexOf(h)===-1){o(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e));return}d.send(s||null)})},RD=(e,t)=>{let n=new AbortController,o;const r=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof we?u:new vr(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{r(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",r):c.unsubscribe(r))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",r));const{signal:l}=n;return l.unsubscribe=a,[l,()=>{s&&clearTimeout(s),s=null}]},OD=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let o=0,r;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},PD=async function*(e,t,n){for await(const o of e)yield*OD(ArrayBuffer.isView(o)?o:await n(String(o)),t)},W0=(e,t,n,o,r)=>{const s=PD(e,t,r);let a=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await s.next();if(c){l.close(),o();return}let d=u.byteLength;n&&n(a+=d),l.enqueue(new Uint8Array(u))},cancel(l){return o(l),s.return()}},{highWaterMark:2})},G0=(e,t)=>{const n=e!=null;return o=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:o}))},ga=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",z0=ga&&typeof ReadableStream=="function",Gu=ga&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ND=z0&&(()=>{let e=!1;const t=new Request(mn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),H0=64*1024,zu=z0&&!!(()=>{try{return W.isReadableStream(new Response("").body)}catch{}})(),ba={stream:zu&&(e=>e.body)};ga&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ba[t]&&(ba[t]=W.isFunction(e[t])?n=>n[t]():(n,o)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,o)})})})(new Response);const MD=async e=>{if(e==null)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(W.isArrayBufferView(e))return e.byteLength;if(W.isURLSearchParams(e)&&(e=e+""),W.isString(e))return(await Gu(e)).byteLength},kD=async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return n??MD(t)},Hu={http:nD,xhr:AD,fetch:ga&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:s,timeout:a,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:h}=$0(e);u=u?(u+"").toLowerCase():"text";let[g,m]=r||s||a?RD([r,s],a):[],f,b;const v=()=>{!f&&setTimeout(()=>{g&&g.unsubscribe()}),f=!0};let T;try{if(c&&ND&&n!=="get"&&n!=="head"&&(T=await kD(d,o))!==0){let w=new Request(t,{method:"POST",body:o,duplex:"half"}),A;W.isFormData(o)&&(A=w.headers.get("content-type"))&&d.setContentType(A),w.body&&(o=W0(w.body,H0,G0(T,ma(c)),null,Gu))}W.isString(p)||(p=p?"cors":"omit"),b=new Request(t,{...h,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",withCredentials:p});let x=await fetch(b);const S=zu&&(u==="stream"||u==="response");if(zu&&(l||S)){const w={};["status","statusText","headers"].forEach(R=>{w[R]=x[R]});const A=W.toFiniteNumber(x.headers.get("content-length"));x=new Response(W0(x.body,H0,l&&G0(A,ma(l,!0)),S&&v,Gu),w)}u=u||"text";let y=await ba[W.findKey(ba,u)||"text"](x,e);return!S&&v(),m&&m(),await new Promise((w,A)=>{V0(w,A,{data:y,headers:_t.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:b})})}catch(x){throw v(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,b),{cause:x.cause||x}):we.from(x,x&&x.code,e,b)}})};W.forEach(Hu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const X0=e=>`- ${e}`,DD=e=>W.isFunction(e)||e===null||e===!1,U0={getAdapter:e=>{e=W.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let s=0;s<t;s++){n=e[s];let a;if(o=n,!DD(n)&&(o=Hu[(a=String(n)).toLowerCase()],o===void 0))throw new we(`Unknown adapter '${a}'`);if(o)break;r[a||"#"+s]=o}if(!o){const s=Object.entries(r).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?s.length>1?`since :
241
241
  `+s.map(X0).join(`
242
242
  `):" "+X0(s[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Hu};function Xu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vr(null,e)}function Z0(e){return Xu(e),e.headers=_t.from(e.headers),e.data=Wu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),U0.getAdapter(e.adapter||Oi.adapter)(e).then(function(o){return Xu(e),o.data=Wu.call(e,e.transformResponse,o),o.headers=_t.from(o.headers),o},function(o){return j0(o)||(Xu(e),o&&o.response&&(o.response.data=Wu.call(e,e.transformResponse,o.response),o.response.headers=_t.from(o.response.headers))),Promise.reject(o)})}const Y0="1.7.2",Uu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Uu[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const J0={};Uu.transitional=function(t,n,o){function r(s,a){return"[Axios v"+Y0+"] Transitional option '"+s+"'"+a+(o?". "+o:"")}return(s,a,l)=>{if(t===!1)throw new we(r(a," has been removed"+(n?" in "+n:"")),we.ERR_DEPRECATED);return n&&!J0[a]&&(J0[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,l):!0}};function BD(e,t,n){if(typeof e!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const s=o[r],a=t[s];if(a){const l=e[s],c=l===void 0||a(l,s,e);if(c!==!0)throw new we("option "+s+" must be "+c,we.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new we("Unknown option "+s,we.ERR_BAD_OPTION)}}const Zu={assertOptions:BD,validators:Uu},to=Zu.validators;class So{constructor(t){this.defaults=t,this.interceptors={request:new k0,response:new k0}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const s=r.stack?r.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
243
- `+s):o.stack=s}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Io(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:s}=n;o!==void 0&&Zu.assertOptions(o,{silentJSONParsing:to.transitional(to.boolean),forcedJSONParsing:to.transitional(to.boolean),clarifyTimeoutError:to.transitional(to.boolean)},!1),r!=null&&(W.isFunction(r)?n.paramsSerializer={serialize:r}:Zu.assertOptions(r,{encode:to.function,serialize:to.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&W.merge(s.common,s[n.method]);s&&W.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=_t.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(c=c&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let d,p=0,h;if(!c){const m=[Z0.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),h=m.length,d=Promise.resolve(n);p<h;)d=d.then(m[p++],m[p++]);return d}h=l.length;let g=n;for(p=0;p<h;){const m=l[p++],f=l[p++];try{g=m(g)}catch(b){f.call(this,b);break}}try{d=Z0.call(this,g)}catch(m){return Promise.reject(m)}for(p=0,h=u.length;p<h;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=Io(this.defaults,t);const n=L0(t.baseURL,t.url);return M0(n,t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(t){So.prototype[t]=function(n,o){return this.request(Io(o||{},{method:t,url:n,data:(o||{}).data}))}}),W.forEach(["post","put","patch"],function(t){function n(o){return function(s,a,l){return this.request(Io(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}So.prototype[t]=n(),So.prototype[t+"Form"]=n(!0)});class Yu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(l=>{o.subscribe(l),s=l}).then(r);return a.cancel=function(){o.unsubscribe(s)},a},t(function(s,a,l){o.reason||(o.reason=new vr(s,a,l),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Yu(function(r){t=r}),cancel:t}}}function FD(e){return function(n){return e.apply(null,n)}}function jD(e){return W.isObject(e)&&e.isAxiosError===!0}const Ju={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ju).forEach(([e,t])=>{Ju[t]=e});function q0(e){const t=new So(e),n=g0(So.prototype.request,t);return W.extend(n,So.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return q0(Io(e,r))},n}const st=q0(Oi);st.Axios=So,st.CanceledError=vr,st.CancelToken=Yu,st.isCancel=j0,st.VERSION=Y0,st.toFormData=fa,st.AxiosError=we,st.Cancel=st.CanceledError,st.all=function(t){return Promise.all(t)},st.spread=FD,st.isAxiosError=jD,st.mergeConfig=Io,st.AxiosHeaders=_t,st.formToJSON=e=>B0(W.isHTMLForm(e)?new FormData(e):e),st.getAdapter=U0.getAdapter,st.HttpStatusCode=Ju,st.default=st;const va={TOKEN:"token",USER:"user",SNOP:"snop",SELECTED_BU:"selected_business_unit"},K0={BEARER:"Bearer",TENANT_ID:"tenant_id",BU_ID:"bu_id",SNOP_ID:"snop_id"},ya={REFRESH:"refresh",CLOSE:"close"},VD=Object.values({"SKU Name":"sku_name",Node:"node","Channel Name":"channel_name"}),LD=[10,25,50,100],Q0={MARK_ALL_READ:"MARK_ALL_READ"},qu={NOTIFICATION:"/notifications"},Ku={BASE_URL:"https://qa.3sc.ai/api",VERSION:"/v1"};/*! js-cookie v3.0.5 | MIT */function xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var _D={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Qu(e,t){function n(r,s,a){if(!(typeof document>"u")){a=xa({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=r+"="+e.write(s,r)+l}}function o(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var c=s[l].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(a[d]=e.read(u,d),r===d)break}catch{}}return r?a[r]:a}}return Object.create({set:n,get:o,remove:function(r,s){n(r,"",xa({},s,{expires:-1}))},withAttributes:function(r){return Qu(this.converter,xa({},this.attributes,r))},withConverter:function(r){return Qu(xa({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var $D=Qu(_D,{path:"/"});const ed=Nu(va.SNOP),td=Nu(va.SELECTED_BU),nd=Nu(va.USER),ev={BU_IDS:td==null?void 0:td.business_unit_id,TOKEN:JSON.parse($D.get(va.TOKEN)||null),TENANT_IDS:nd==null?void 0:nd.tenant_id,SNOP_IDS:ed==null?void 0:ed.snop_id},Ca={headers:{"Content-Type":"application/json",Authorization:`${K0.BEARER} ${ev.TOKEN}`}},tv=st.create({baseURL:Ku.BASE_URL,axiosConfig:Ca});tv.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)}),tv.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});const{TENANT_ID:od,BU_ID:rd,SNOP_ID:nv}=K0,{TENANT_IDS:id,BU_IDS:sd}=ev,WD=async e=>{try{const t=`${e}${qu.NOTIFICATION}/v1?${od}=${id}&${rd}=${sd}`;return await st.get(t,Ca)}catch(t){return t}},ov=async(e,t,n)=>{try{const o=n===Q0.MARK_ALL_READ?"":`&${nv}=${n}&`,r=`${e}${qu.NOTIFICATION}${Ku.VERSION}?${od}=${id}&${rd}=${sd}${o}`;return await st.put(r,t,Ca)}catch(o){return o}},GD=async({baseUrl:e,id:t,snopId:n})=>{try{const o=`${e}${qu.NOTIFICATION}${Ku.VERSION}?${od}=${id}&${rd}=${sd}&${nv}=${n}&id=${t}`;return await st.get(o,Ca)}catch(o){return o}},Ta={OK:200,CREATED:201,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,INTERNAL_SERVER_ERROR:500};var rv,iv,sv,av;function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ad.apply(null,arguments)}var zD=function(t){return I.createElement("svg",ad({xmlns:"http://www.w3.org/2000/svg",width:16,height:18,fill:"none"},t),rv||(rv=I.createElement("path",{stroke:"#666D80",strokeLinecap:"round",strokeMiterlimit:10,d:"M8.013 3.44c-2.206 0-4 1.793-4 4v1.927c0 .406-.173 1.026-.38 1.373l-.766 1.273c-.474.787-.147 1.66.72 1.954 2.873.96 5.973.96 8.846 0a1.335 1.335 0 0 0 .72-1.954l-.766-1.273c-.2-.347-.374-.967-.374-1.373V7.44c0-2.2-1.8-4-4-4Z"})),iv||(iv=I.createElement("path",{stroke:"#666D80",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"M9.247 3.633a4.503 4.503 0 0 0-2.467 0 1.324 1.324 0 0 1 2.467 0"})),sv||(sv=I.createElement("path",{stroke:"#666D80",strokeMiterlimit:10,d:"M10.014 14.207c0 1.1-.9 2-2 2a2.007 2.007 0 0 1-2-2"})),av||(av=I.createElement("circle",{cx:12.266,cy:3,r:2.5,fill:"#E85353",stroke:"#F8FAFB"})))};const HD=J(Oh)(({theme:e})=>({"& .MuiPaper-root":{borderRadius:8,border:`1px solid ${e.palette.primary.notifyBorderColor}`,boxShadow:e.shadows[4],padding:"1rem 1rem 0rem 1rem",backgroundColor:e.palette.primary.notifyBackground}})),no=J(Kt)(({theme:e})=>({color:e.palette.primary.notifyTextColor})),XD=J(lm)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:"#1890ff",...e.applyStyles("dark",{backgroundColor:"#177ddc"})}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(0,0,0,.25)",boxSizing:"border-box",...e.applyStyles("dark",{backgroundColor:"rgba(255,255,255,.35)"})}})),UD=e=>{const{children:t,value:n,index:o,...r}=e;return C.jsx("div",{role:"tabpanel",hidden:n!==o,...r,children:n===o&&C.jsx(ge,{sx:{pl:"0.5rem",pb:"0.5rem"},children:t})})},ZD=J(lc)(({theme:e})=>({color:e.palette.primary.notifyTextColor,padding:"0.6rem 0",fontSize:"0.9rem",fontWeight:500,"&::before, &::after":{borderColor:`${e.palette.primary.notifyBorderColor}!important`}})),YD=J(Ql)(({theme:e})=>({"& .MuiBadge-badge":{right:3.5,top:2.34,border:`0.1rem solid ${e.palette.primary.notifyBackground}`,padding:"0 1.3px",borderRadius:"50%",backgroundColor:"#D44E40",fontSize:"0.725rem",minWidth:"0.7rem",height:"0.7rem"}}));J(Em)(({theme:e})=>({"& .MuiInputBase-root":{height:"3.52rem"},"& .MuiFormLabel-root":{color:`${e.palette.primary.notifyBorderColor} !important`,fontSize:"1rem",marginTop:"0.4rem"},"& label.Mui-focused":{color:e.palette.primary.notifyTextColor},"& .MuiInput-underline:after":{borderBottomColor:e.palette.primary.notifyBorderColor,borderBottomWidth:"0.1rem"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&:hover fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&.Mui-focused fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"}}}));const JD=J(Tm)(({theme:e})=>({"& .MuiTabs-indicator":{height:"0.1rem",backgroundColor:e.palette.primary.notifyActiveBorderColor}})),qD=J(cm)(({theme:e})=>({color:"gray","&.Mui-selected":{color:e.palette.primary.notifyActiveBorderColor,fontWeight:"bold"}})),KD=({count:e})=>(ht(),C.jsxs(C.Fragment,{children:[C.jsx(ge,{sx:{gap:"0.5rem",display:"flex",justifyContent:"center",alignItems:"center"},className:"notify-icon-container",children:C.jsx(zD,{style:{scale:2}})}),C.jsx(YD,{badgeContent:e==0?"":null,color:"error"})]}));var lv;function ld(){return ld=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ld.apply(null,arguments)}var QD=function(t){return I.createElement("svg",ld({xmlns:"http://www.w3.org/2000/svg",width:13,height:8,fill:"none"},t),lv||(lv=I.createElement("path",{fill:"#A8A8A8",fillRule:"evenodd",d:"M8.954 1.004a.406.406 0 0 1 0 .575L3.537 6.996a.406.406 0 0 1-.574 0L.796 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0m3.25 0a.406.406 0 0 1 0 .575L6.787 6.996a.406.406 0 1 1-.574-.575l5.416-5.417a.406.406 0 0 1 .575 0",clipRule:"evenodd"})))};const cv=({title:e,subTitle:t,children:n,onRefresh:o,onClose:r,loading:s,handleShowAll:a,handleMarkAllAsRead:l,isMarkAllAsRead:c,width:u,headerIconType:d,isDialogActionShow:p,className:h,dialogType:g,data:m,toggleNotify:f,mode:b,isDetail:v=!1,...T})=>{var R,P;const[x,S]=M.useState(0),y=ht(),w=(N,F)=>{S(F)},A=()=>{switch(d){case ya.REFRESH:return C.jsx(ge,{component:"img",src:kn.Refresh,alt:"refresh",onClick:o,sx:{cursor:"pointer"}});case ya.CLOSE:return C.jsx(ge,{component:"img",src:kn.Close,alt:"refresh",onClick:r,sx:{cursor:"pointer"}});default:return null}};return C.jsxs(HD,{maxWidth:v?"xs":"md",onClose:r,...T,className:["notification-dialog",h,g==="notifcation-dialog"?"notification-main-box":""].join(" "),dialogType:!0,children:[C.jsxs(ge,{sx:g==="notifcation-dialog"?{gap:1,display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"}:{gap:1,display:"flex",width:"100%",justifyContent:"space-between",paddingBottom:1.2},children:[C.jsxs(ge,{className:"title-container",children:[C.jsx(no,{variant:"h6",component:"h6",className:"title",children:e}),t&&C.jsx(no,{variant:"h6",className:"title sub-title",children:t})]}),A()]}),v?C.jsx(C.Fragment,{children:n}):C.jsxs(C.Fragment,{children:[C.jsx(ge,{sx:{borderBottom:1,borderColor:y.palette.primary.notifyBorderColor},className:"tab-panel",children:C.jsx(JD,{value:x,onChange:w,children:C.jsx(qD,{label:C.jsxs(ge,{sx:{display:"flex",alignItems:"center",fontSize:"1rem"},children:["All (",C.jsx(Kt,{component:"span",sx:{fontWeight:"bold"},children:((R=m==null?void 0:m.filter(N=>!(N!=null&&N.isRead)))==null?void 0:R.length)||0}),")"]})})})}),C.jsx(UD,{value:x,index:0,children:n})]}),p&&C.jsxs(sc,{className:"dialog-action",sx:{px:"1rem"},children:[C.jsxs(ir,{direction:"row",gap:1,children:[C.jsx(no,{sx:{fontSize:"0.9rem"},children:"Only show unread"}),C.jsx(XD,{disabled:s,checked:b,onChange:f})]}),C.jsx(Fs,{variant:"outlined",className:"view-all",onClick:l,startIcon:C.jsx(QD,{}),disabled:!((P=m==null?void 0:m.filter(N=>!(N!=null&&N.isRead)))!=null&&P.length),style:{backgroundColor:"transparent"},sx:{p:0,color:y.palette.primary.notifyTextColor},children:"Mark all as read"})]})]})};var uv,dv;function cd(){return cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cd.apply(null,arguments)}var eB=function(t){return I.createElement("svg",cd({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},t),uv||(uv=I.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M7.79 6c0 .99-.8 1.79-1.79 1.79S4.21 6.99 4.21 6 5.01 4.21 6 4.21s1.79.8 1.79 1.79"})),dv||(dv=I.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M6 10.135c1.765 0 3.41-1.04 4.555-2.84.45-.705.45-1.89 0-2.595C9.41 2.9 7.765 1.86 6 1.86S2.59 2.9 1.445 4.7c-.45.705-.45 1.89 0 2.595 1.145 1.8 2.79 2.84 4.555 2.84"})))},pv;function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ud.apply(null,arguments)}var tB=function(t){return I.createElement("svg",ud({xmlns:"http://www.w3.org/2000/svg",width:9,height:8,fill:"none"},t),pv||(pv=I.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M8.277 1.004a.406.406 0 0 1 0 .575L2.86 6.996a.406.406 0 0 1-.574 0L.119 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0",clipRule:"evenodd"})))};const fv=({type:e,title:t,isRead:n,handleShowDetails:o,handleRead:r,isCheckBox:s,selectedAlert:a,id:l,handleCheckboxChange:c,clickId:u,product:d,createdAt:p,isShowVisible:h})=>{var f,b;const g=ht(),m=(b=(f=JSON.parse(localStorage.getItem("settings")))==null?void 0:f.platform)==null?void 0:b.theme;return C.jsxs(ge,{className:"cards",children:[C.jsxs(ir,{display:"flex",flexDirection:"row",alignItems:"start",justifyContent:"space-between",gap:1,children:[s&&C.jsx(nc,{checked:!!a.includes(l),onChange:v=>c(v,l),disabled:n,sx:{padding:"4px 7px 0 7px"}}),C.jsx(Ql,{sx:{"& .MuiBadge-badge":{backgroundColor:"#6041EA"}},variant:"dot",className:"badge",invisible:n,children:C.jsx(no,{sx:{color:g.palette.primary.notifyActiveText},component:"p",className:["title-card",n&&"read"].join(" "),children:t})})]}),C.jsxs(ir,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:[C.jsxs(ir,{display:"flex",flexDirection:"row",justifyContent:"start",gap:1,sx:{p:"0.5rem 0"},children:[h&&C.jsx(Zl,{icon:C.jsx(eB,{className:`${m==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:u,onClick:o,label:u===l?C.jsx(Qr,{color:"primary",size:13}):"Show Details",component:"button",variant:"filled",clickable:!0,size:"small",sx:{height:"2rem",fontWeight:"300",fontSize:"0.9rem",color:g.palette.primary.notifyActiveText,borderColor:g.palette.primary.notifyBorderColor,background:g.palette.primary.notifyButtonBackground,borderRadius:"0.6rem",padding:"0.2rem"}}),!n&&C.jsx(Zl,{icon:C.jsx(tB,{className:`${m==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:u,onClick:r,label:"Acknowledge",component:"button",variant:"outlined",clickable:!0,size:"small",sx:{height:"2rem",fontSize:"0.9rem",fontWeight:"300",borderColor:g.palette.primary.notifyBorderColor,color:g.palette.primary.notifyActiveText,borderRadius:"0.6rem",padding:"0.2rem"}})]}),C.jsxs(ir,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",gap:.35,children:[C.jsx(no,{sx:{fontSize:"0.9rem"},children:d}),C.jsx(no,{color:g.palette.primary.notifyTextColor,children:"•"}),C.jsx(no,{sx:{fontSize:"0.9rem"},children:fk(p)})]})]})]})};fv.propTypes={type:i.string,title:i.string,subTitle:i.string,isRead:i.bool,handleShowDetails:i.func,handleRead:i.func};const hv=({data:e,handleRead:t,handleShowDetails:n,clickId:o,mode:r,page:s,setPage:a})=>{M.useContext(Pu);const l=new Date,c=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(l),[u,d]=M.useState([]),[p,h]=M.useState(!1),[g,m]=M.useState(!0),f=M.useRef(null),b=ht();return M.useEffect(()=>{e.length&&d([...e])},[e]),M.useEffect(()=>{const v=new IntersectionObserver(T=>{T[0].isIntersecting&&!p&&g&&a(x=>x+1)},{threshold:1});return f.current&&v.observe(f.current),()=>{f.current&&v.unobserve(f.current)}},[p,g]),C.jsxs(ge,{sx:u.length?{py:"0.5rem"}:{py:"0.5rem",justifyContent:"center",alignItems:"center",display:"flex",height:"100%"},children:[Object.entries(vk(u)).map(([v,T])=>C.jsxs(M.Fragment,{children:[v!==c&&C.jsx(ZD,{children:v}),T.map((x,S)=>C.jsx(fv,{type:"success",title:x.message,subTitle:x.createdAt,isRead:x.isRead,handleShowDetails:()=>n(x.id,x.snopId),handleRead:()=>t([x.id],x.snopId),clickId:o,id:x.id,product:x.product,createdAt:x.createdAt,isShowVisible:x==null?void 0:x.isNotificationDetails},x.id||S))]},v)),p&&s>1&&!!(u!=null&&u.length)&&C.jsx(ge,{sx:{display:"flex",justifyContent:"center",alignItems:"center",pl:"0.5rem",py:"0.3rem"},children:C.jsx(Qr,{size:20,className:"circular-loader"})}),!(u!=null&&u.length)&&C.jsx(Kt,{sx:{fontSize:"1.1rem",color:b.palette.primary.notifyTextColor,textAlign:"center",px:"0.8rem"},children:"You don't have any unread notification here. Use the toggle to switch between read and unread notification."}),C.jsx(ge,{ref:f,style:{height:"0.1rem",backgroundColor:"transparent"}})]})};hv.propTypes={data:i.array,handleRead:i.func,handleShowDetails:i.func};function Ni(e,t,n){return(t=pf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mv(Object(n),!0).forEach(function(o){Ni(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mv(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function nB(e){if(Array.isArray(e))return e}function oB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o,r,s,a,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(d){u=!0,r=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function dd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function gv(e,t){if(e){if(typeof e=="string")return dd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dd(e,t):void 0}}function rB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
243
+ `+s):o.stack=s}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Io(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:s}=n;o!==void 0&&Zu.assertOptions(o,{silentJSONParsing:to.transitional(to.boolean),forcedJSONParsing:to.transitional(to.boolean),clarifyTimeoutError:to.transitional(to.boolean)},!1),r!=null&&(W.isFunction(r)?n.paramsSerializer={serialize:r}:Zu.assertOptions(r,{encode:to.function,serialize:to.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&W.merge(s.common,s[n.method]);s&&W.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),n.headers=_t.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(c=c&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let d,p=0,h;if(!c){const m=[Z0.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,u),h=m.length,d=Promise.resolve(n);p<h;)d=d.then(m[p++],m[p++]);return d}h=l.length;let g=n;for(p=0;p<h;){const m=l[p++],f=l[p++];try{g=m(g)}catch(b){f.call(this,b);break}}try{d=Z0.call(this,g)}catch(m){return Promise.reject(m)}for(p=0,h=u.length;p<h;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=Io(this.defaults,t);const n=L0(t.baseURL,t.url);return M0(n,t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(t){So.prototype[t]=function(n,o){return this.request(Io(o||{},{method:t,url:n,data:(o||{}).data}))}}),W.forEach(["post","put","patch"],function(t){function n(o){return function(s,a,l){return this.request(Io(l||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}So.prototype[t]=n(),So.prototype[t+"Form"]=n(!0)});class Yu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const o=this;this.promise.then(r=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](r);o._listeners=null}),this.promise.then=r=>{let s;const a=new Promise(l=>{o.subscribe(l),s=l}).then(r);return a.cancel=function(){o.unsubscribe(s)},a},t(function(s,a,l){o.reason||(o.reason=new vr(s,a,l),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Yu(function(r){t=r}),cancel:t}}}function FD(e){return function(n){return e.apply(null,n)}}function jD(e){return W.isObject(e)&&e.isAxiosError===!0}const Ju={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ju).forEach(([e,t])=>{Ju[t]=e});function q0(e){const t=new So(e),n=g0(So.prototype.request,t);return W.extend(n,So.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return q0(Io(e,r))},n}const st=q0(Oi);st.Axios=So,st.CanceledError=vr,st.CancelToken=Yu,st.isCancel=j0,st.VERSION=Y0,st.toFormData=fa,st.AxiosError=we,st.Cancel=st.CanceledError,st.all=function(t){return Promise.all(t)},st.spread=FD,st.isAxiosError=jD,st.mergeConfig=Io,st.AxiosHeaders=_t,st.formToJSON=e=>B0(W.isHTMLForm(e)?new FormData(e):e),st.getAdapter=U0.getAdapter,st.HttpStatusCode=Ju,st.default=st;const va={TOKEN:"token",USER:"user",SNOP:"snop",SELECTED_BU:"selected_business_unit"},K0={BEARER:"Bearer",TENANT_ID:"tenant_id",BU_ID:"bu_id",SNOP_ID:"snop_id"},ya={REFRESH:"refresh",CLOSE:"close"},VD=Object.values({"SKU Name":"sku_name",Node:"node","Channel Name":"channel_name"}),LD=[10,25,50,100],Q0={MARK_ALL_READ:"MARK_ALL_READ"},qu={NOTIFICATION:"/notifications"},Ku={BASE_URL:"https://qa.3sc.ai/api",VERSION:"/v1"};/*! js-cookie v3.0.5 | MIT */function xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var _D={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Qu(e,t){function n(r,s,a){if(!(typeof document>"u")){a=xa({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=r+"="+e.write(s,r)+l}}function o(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var c=s[l].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(a[d]=e.read(u,d),r===d)break}catch{}}return r?a[r]:a}}return Object.create({set:n,get:o,remove:function(r,s){n(r,"",xa({},s,{expires:-1}))},withAttributes:function(r){return Qu(this.converter,xa({},this.attributes,r))},withConverter:function(r){return Qu(xa({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var $D=Qu(_D,{path:"/"});const ed=Nu(va.SNOP),td=Nu(va.SELECTED_BU),nd=Nu(va.USER),ev={BU_IDS:td==null?void 0:td.business_unit_id,TOKEN:JSON.parse($D.get(va.TOKEN)||null),TENANT_IDS:nd==null?void 0:nd.tenant_id,SNOP_IDS:ed==null?void 0:ed.snop_id},Ca={headers:{"Content-Type":"application/json",Authorization:`${K0.BEARER} ${ev.TOKEN}`}},tv=st.create({baseURL:Ku.BASE_URL,axiosConfig:Ca});tv.interceptors.request.use(function(e){return e},function(e){return Promise.reject(e)}),tv.interceptors.response.use(function(e){return e},function(e){return Promise.reject(e)});const{TENANT_ID:od,BU_ID:rd,SNOP_ID:nv}=K0,{TENANT_IDS:id,BU_IDS:sd}=ev,WD=async e=>{try{const t=`${e}${qu.NOTIFICATION}/v1?${od}=${id}&${rd}=${sd}`;return await st.get(t,Ca)}catch(t){return t}},ov=async(e,t,n)=>{try{const o=n===Q0.MARK_ALL_READ?"":`&${nv}=${n}&`,r=`${e}${qu.NOTIFICATION}${Ku.VERSION}?${od}=${id}&${rd}=${sd}${o}`;return await st.put(r,t,Ca)}catch(o){return o}},GD=async({baseUrl:e,id:t,snopId:n})=>{try{const o=`${e}${qu.NOTIFICATION}${Ku.VERSION}?${od}=${id}&${rd}=${sd}&${nv}=${n}&id=${t}`;return await st.get(o,Ca)}catch(o){return o}},Ta={OK:200,CREATED:201,NO_CONTENT:204,BAD_REQUEST:400,UNAUTHORIZED:401,NOT_FOUND:404,INTERNAL_SERVER_ERROR:500};var rv,iv,sv,av;function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ad.apply(null,arguments)}var zD=function(t){return I.createElement("svg",ad({xmlns:"http://www.w3.org/2000/svg",width:16,height:18,fill:"none"},t),rv||(rv=I.createElement("path",{stroke:"#666D80",strokeLinecap:"round",strokeMiterlimit:10,d:"M8.013 3.44c-2.206 0-4 1.793-4 4v1.927c0 .406-.173 1.026-.38 1.373l-.766 1.273c-.474.787-.147 1.66.72 1.954 2.873.96 5.973.96 8.846 0a1.335 1.335 0 0 0 .72-1.954l-.766-1.273c-.2-.347-.374-.967-.374-1.373V7.44c0-2.2-1.8-4-4-4Z"})),iv||(iv=I.createElement("path",{stroke:"#666D80",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"M9.247 3.633a4.503 4.503 0 0 0-2.467 0 1.324 1.324 0 0 1 2.467 0"})),sv||(sv=I.createElement("path",{stroke:"#666D80",strokeMiterlimit:10,d:"M10.014 14.207c0 1.1-.9 2-2 2a2.007 2.007 0 0 1-2-2"})),av||(av=I.createElement("circle",{cx:12.266,cy:3,r:2.5,fill:"#E85353",stroke:"#F8FAFB"})))};const HD=J(Oh)(({theme:e})=>({"& .MuiPaper-root":{borderRadius:8,border:`1px solid ${e.palette.primary.notifyBorderColor}`,boxShadow:e.shadows[4],padding:"1rem 1rem 0rem 1rem",backgroundColor:e.palette.primary.notifyBackground}})),no=J(Kt)(({theme:e})=>({color:e.palette.primary.notifyTextColor})),XD=J(lm)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:"#1890ff",...e.applyStyles("dark",{backgroundColor:"#177ddc"})}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(0,0,0,.25)",boxSizing:"border-box",...e.applyStyles("dark",{backgroundColor:"rgba(255,255,255,.35)"})}})),UD=e=>{const{children:t,value:n,index:o,...r}=e;return C.jsx("div",{role:"tabpanel",hidden:n!==o,...r,children:n===o&&C.jsx(ge,{sx:{pl:"0.5rem",pb:"0.5rem"},children:t})})},ZD=J(lc)(({theme:e})=>({color:e.palette.primary.notifyTextColor,padding:"0.6rem 0",fontSize:"0.9rem",fontWeight:500,"&::before, &::after":{borderColor:`${e.palette.primary.notifyBorderColor}!important`}})),YD=J(Ql)(({theme:e})=>({"& .MuiBadge-badge":{right:3.5,top:2.34,border:`0.1rem solid ${e.palette.primary.notifyBackground}`,padding:"0 1.3px",borderRadius:"50%",backgroundColor:"#D44E40",fontSize:"0.725rem",minWidth:"0.7rem",height:"0.7rem"}}));J(Em)(({theme:e})=>({"& .MuiInputBase-root":{height:"3.52rem"},"& .MuiFormLabel-root":{color:`${e.palette.primary.notifyBorderColor} !important`,fontSize:"1rem",marginTop:"0.4rem"},"& label.Mui-focused":{color:e.palette.primary.notifyTextColor},"& .MuiInput-underline:after":{borderBottomColor:e.palette.primary.notifyBorderColor,borderBottomWidth:"0.1rem"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&:hover fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"},"&.Mui-focused fieldset":{borderColor:e.palette.primary.notifyBorderColor,borderWidth:"0.1rem"}}}));const JD=J(Tm)(({theme:e})=>({"& .MuiTabs-indicator":{height:"0.1rem",backgroundColor:e.palette.primary.notifyActiveBorderColor}})),qD=J(cm)(({theme:e})=>({color:"gray","&.Mui-selected":{color:e.palette.primary.notifyActiveBorderColor,fontWeight:"bold"}})),KD=({count:e})=>(ht(),C.jsxs(C.Fragment,{children:[C.jsx(ge,{sx:{gap:"0.5rem",display:"flex",justifyContent:"center",alignItems:"center"},className:"notify-icon-container",children:C.jsx(zD,{style:{scale:2}})}),C.jsx(YD,{badgeContent:e==0?"":null,color:"error"})]}));var lv;function ld(){return ld=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ld.apply(null,arguments)}var QD=function(t){return I.createElement("svg",ld({xmlns:"http://www.w3.org/2000/svg",width:13,height:8,fill:"none"},t),lv||(lv=I.createElement("path",{fill:"#A8A8A8",fillRule:"evenodd",d:"M8.954 1.004a.406.406 0 0 1 0 .575L3.537 6.996a.406.406 0 0 1-.574 0L.796 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0m3.25 0a.406.406 0 0 1 0 .575L6.787 6.996a.406.406 0 1 1-.574-.575l5.416-5.417a.406.406 0 0 1 .575 0",clipRule:"evenodd"})))};const cv=({title:e,subTitle:t,children:n,onRefresh:o,onClose:r,loading:s,handleShowAll:a,handleMarkAllAsRead:l,isMarkAllAsRead:c,width:u,headerIconType:d,isDialogActionShow:p,className:h,dialogType:g,data:m,toggleNotify:f,mode:b,isDetail:v=!1,...T})=>{var R,P;const[x,S]=M.useState(0),y=ht(),w=(N,F)=>{S(F)},A=()=>{switch(d){case ya.REFRESH:return C.jsx(ge,{component:"img",src:kn.Refresh,alt:"refresh",onClick:o,sx:{cursor:"pointer"}});case ya.CLOSE:return C.jsx(ge,{component:"img",src:kn.Close,alt:"refresh",onClick:r,sx:{cursor:"pointer"}});default:return null}};return C.jsxs(HD,{maxWidth:v?"xs":"md",onClose:r,...T,className:["notification-dialog",h,g==="notifcation-dialog"?"notification-main-box":""].join(" "),dialogType:!0,children:[C.jsxs(ge,{sx:g==="notifcation-dialog"?{gap:1,display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"}:{gap:1,display:"flex",width:"100%",justifyContent:"space-between",paddingBottom:1.2},children:[C.jsxs(ge,{className:"title-container",children:[C.jsx(no,{variant:"h6",component:"h6",className:"title",children:e}),t&&C.jsx(no,{variant:"h6",className:"title sub-title",children:t})]}),A()]}),v?C.jsx(C.Fragment,{children:n}):C.jsxs(C.Fragment,{children:[C.jsx(ge,{sx:{borderBottom:1,borderColor:y.palette.primary.notifyBorderColor},className:"tab-panel",children:C.jsx(JD,{value:x,onChange:w,children:C.jsx(qD,{label:C.jsxs(ge,{sx:{display:"flex",alignItems:"center",fontSize:"1rem"},children:["All (",C.jsx(Kt,{component:"span",sx:{fontWeight:"bold"},children:((R=m==null?void 0:m.filter(N=>!(N!=null&&N.isRead)))==null?void 0:R.length)||0}),")"]})})})}),C.jsx(UD,{value:x,index:0,children:n})]}),p&&C.jsxs(sc,{className:"dialog-action",sx:{px:"1rem"},children:[C.jsxs(ir,{direction:"row",gap:1,children:[C.jsx(no,{sx:{fontSize:"0.9rem"},children:"Only show unread"}),C.jsx(XD,{disabled:s,checked:b,onChange:f})]}),C.jsx(Fs,{variant:"outlined",className:"view-all",onClick:l,startIcon:C.jsx(QD,{}),disabled:!((P=m==null?void 0:m.filter(N=>!(N!=null&&N.isRead)))!=null&&P.length),style:{backgroundColor:"transparent"},sx:{p:0,color:y.palette.primary.notifyTextColor},children:"Mark all as read"})]})]})};var uv,dv;function cd(){return cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},cd.apply(null,arguments)}var eB=function(t){return I.createElement("svg",cd({xmlns:"http://www.w3.org/2000/svg",width:12,height:12,fill:"none"},t),uv||(uv=I.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M7.79 6c0 .99-.8 1.79-1.79 1.79S4.21 6.99 4.21 6 5.01 4.21 6 4.21s1.79.8 1.79 1.79"})),dv||(dv=I.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",d:"M6 10.135c1.765 0 3.41-1.04 4.555-2.84.45-.705.45-1.89 0-2.595C9.41 2.9 7.765 1.86 6 1.86S2.59 2.9 1.445 4.7c-.45.705-.45 1.89 0 2.595 1.145 1.8 2.79 2.84 4.555 2.84"})))},pv;function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ud.apply(null,arguments)}var tB=function(t){return I.createElement("svg",ud({xmlns:"http://www.w3.org/2000/svg",width:9,height:8,fill:"none"},t),pv||(pv=I.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M8.277 1.004a.406.406 0 0 1 0 .575L2.86 6.996a.406.406 0 0 1-.574 0L.119 4.829a.406.406 0 1 1 .575-.575l1.879 1.88 5.13-5.13a.406.406 0 0 1 .574 0",clipRule:"evenodd"})))};const fv=({type:e,title:t,isRead:n,handleShowDetails:o,handleRead:r,isCheckBox:s,selectedAlert:a,id:l,handleCheckboxChange:c,clickId:u,product:d,createdAt:p,isShowVisible:h})=>{var f,b;const g=ht(),m=(b=(f=JSON.parse(localStorage.getItem("settings")))==null?void 0:f.platform)==null?void 0:b.theme;return C.jsxs(ge,{className:"cards",children:[C.jsxs(ir,{display:"flex",flexDirection:"row",alignItems:"start",justifyContent:"space-between",gap:1,children:[s&&C.jsx(nc,{checked:!!a.includes(l),onChange:v=>c(v,l),disabled:n,sx:{padding:"4px 7px 0 7px"}}),C.jsx(Ql,{sx:{"& .MuiBadge-badge":{backgroundColor:"#6041EA"}},variant:"dot",className:"badge",invisible:n,children:C.jsx(no,{sx:{color:g.palette.primary.notifyActiveText},component:"p",className:["title-card",n&&"read"].join(" "),children:t})})]}),C.jsxs(ir,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:[C.jsxs(ir,{display:"flex",flexDirection:"row",justifyContent:"start",gap:1,sx:{p:"0.5rem 0"},children:[h&&C.jsx(Zl,{icon:C.jsx(eB,{className:`${m==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:u,onClick:o,label:u===l?C.jsx(Qr,{color:"primary",size:13}):"Show Details",component:"button",variant:"filled",clickable:!0,size:"small",sx:{height:"2rem",fontWeight:"300",fontSize:"0.9rem",color:g.palette.primary.notifyActiveText,borderColor:g.palette.primary.notifyBorderColor,background:g.palette.primary.notifyButtonBackground,borderRadius:"0.6rem",padding:"0.2rem"}}),!n&&C.jsx(Zl,{icon:C.jsx(tB,{className:`${m==="light"?"chip-icon-light":"chip-icon-dark"}`}),disabled:u,onClick:r,label:"Acknowledge",component:"button",variant:"outlined",clickable:!0,size:"small",sx:{height:"2rem",fontSize:"0.9rem",fontWeight:"300",borderColor:g.palette.primary.notifyBorderColor,color:g.palette.primary.notifyActiveText,borderRadius:"0.6rem",padding:"0.2rem"}})]}),C.jsxs(ir,{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",gap:.35,children:[C.jsx(no,{sx:{fontSize:"0.9rem"},children:d}),C.jsx(no,{color:g.palette.primary.notifyTextColor,children:"•"}),C.jsx(no,{sx:{fontSize:"0.9rem"},children:fk(p)})]})]})]})};fv.propTypes={type:i.string,title:i.string,subTitle:i.string,isRead:i.bool,handleShowDetails:i.func,handleRead:i.func};const hv=({data:e,handleRead:t,handleShowDetails:n,clickId:o,mode:r,page:s,setPage:a})=>{M.useContext(Pu);const l=new Date,c=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",year:"numeric"}).format(l),[u,d]=M.useState([]),[p,h]=M.useState(!1),[g,m]=M.useState(!0),f=M.useRef(null),b=ht();return M.useEffect(()=>{d([...e])},[e]),M.useEffect(()=>{const v=new IntersectionObserver(T=>{T[0].isIntersecting&&!p&&g&&a(x=>x+1)},{threshold:1});return f.current&&v.observe(f.current),()=>{f.current&&v.unobserve(f.current)}},[p,g]),C.jsxs(ge,{sx:u.length?{py:"0.5rem"}:{py:"0.5rem",justifyContent:"center",alignItems:"center",display:"flex",height:"100%"},children:[Object.entries(vk(u)).map(([v,T])=>C.jsxs(M.Fragment,{children:[v!==c&&C.jsx(ZD,{children:v}),T.map((x,S)=>C.jsx(fv,{type:"success",title:x.message,subTitle:x.createdAt,isRead:x.isRead,handleShowDetails:()=>n(x.id,x.snopId),handleRead:()=>t([x.id],x.snopId),clickId:o,id:x.id,product:x.product,createdAt:x.createdAt,isShowVisible:x==null?void 0:x.isNotificationDetails},x.id||S))]},v)),p&&s>1&&!!(u!=null&&u.length)&&C.jsx(ge,{sx:{display:"flex",justifyContent:"center",alignItems:"center",pl:"0.5rem",py:"0.3rem"},children:C.jsx(Qr,{size:20,className:"circular-loader"})}),!(u!=null&&u.length)&&C.jsx(Kt,{sx:{fontSize:"1.1rem",color:b.palette.primary.notifyTextColor,textAlign:"center",px:"0.8rem"},children:"You don't have any unread notification here. Use the toggle to switch between read and unread notification."}),C.jsx(ge,{ref:f,style:{height:"0.1rem",backgroundColor:"transparent"}})]})};hv.propTypes={data:i.array,handleRead:i.func,handleShowDetails:i.func};function Ni(e,t,n){return(t=pf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mv(Object(n),!0).forEach(function(o){Ni(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mv(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function nB(e){if(Array.isArray(e))return e}function oB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o,r,s,a,l=[],c=!0,u=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(d){u=!0,r=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}function dd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function gv(e,t){if(e){if(typeof e=="string")return dd(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dd(e,t):void 0}}function rB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
244
244
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jn(e,t){return nB(e)||oB(e,t)||gv(e,t)||rB()}function Vn(e,t){if(e==null)return{};var n,o,r=oe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var iB=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function sB(e){var t=e.defaultInputValue,n=t===void 0?"":t,o=e.defaultMenuIsOpen,r=o===void 0?!1:o,s=e.defaultValue,a=s===void 0?null:s,l=e.inputValue,c=e.menuIsOpen,u=e.onChange,d=e.onInputChange,p=e.onMenuClose,h=e.onMenuOpen,g=e.value,m=Vn(e,iB),f=M.useState(l!==void 0?l:n),b=jn(f,2),v=b[0],T=b[1],x=M.useState(c!==void 0?c:r),S=jn(x,2),y=S[0],w=S[1],A=M.useState(g!==void 0?g:a),R=jn(A,2),P=R[0],N=R[1],F=M.useCallback(function(D,X){typeof u=="function"&&u(D,X),N(D)},[u]),G=M.useCallback(function(D,X){var k;typeof d=="function"&&(k=d(D,X)),T(k!==void 0?k:D)},[d]),j=M.useCallback(function(){typeof h=="function"&&h(),w(!0)},[h]),L=M.useCallback(function(){typeof p=="function"&&p(),w(!1)},[p]),_=l!==void 0?l:v,V=c!==void 0?c:y,$=g!==void 0?g:P;return ve(ve({},m),{},{inputValue:_,menuIsOpen:V,onChange:F,onInputChange:G,onMenuClose:L,onMenuOpen:j,value:$})}function aB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bv(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,pf(o.key),o)}}function lB(e,t,n){return t&&bv(e.prototype,t),n&&bv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gs(e,t)}function Ea(e){return Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ea(e)}function vv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vv=function(){return!!e})()}function uB(e,t){if(t&&(ao(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vf(e)}function dB(e){var t=vv();return function(){var n,o=Ea(e);if(t){var r=Ea(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return uB(this,n)}}function pB(e){if(Array.isArray(e))return dd(e)}function fB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
245
245
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pd(e){return pB(e)||fB(e)||gv(e)||hB()}function mB(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const gB=Math.min,bB=Math.max,Ia=Math.round,Sa=Math.floor,wa=e=>({x:e,y:e});function vB(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function yv(e){return Cv(e)?(e.nodeName||"").toLowerCase():"#document"}function Ln(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xv(e){var t;return(t=(Cv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cv(e){return e instanceof Node||e instanceof Ln(e).Node}function yB(e){return e instanceof Element||e instanceof Ln(e).Element}function fd(e){return e instanceof HTMLElement||e instanceof Ln(e).HTMLElement}function Tv(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ln(e).ShadowRoot}function Ev(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=hd(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function xB(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function CB(e){return["html","body","#document"].includes(yv(e))}function hd(e){return Ln(e).getComputedStyle(e)}function TB(e){if(yv(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Tv(e)&&e.host||xv(e);return Tv(t)?t.host:t}function Iv(e){const t=TB(e);return CB(t)?e.ownerDocument?e.ownerDocument.body:e.body:fd(t)&&Ev(t)?t:Iv(t)}function Aa(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Iv(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),a=Ln(r);return s?t.concat(a,a.visualViewport||[],Ev(r)?r:[],a.frameElement&&n?Aa(a.frameElement):[]):t.concat(r,Aa(r,[],n))}function EB(e){const t=hd(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=fd(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,l=Ia(n)!==s||Ia(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function md(e){return yB(e)?e:e.contextElement}function Sv(e){const t=md(e);if(!fd(t))return wa(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=EB(t);let a=(s?Ia(n.width):n.width)/o,l=(s?Ia(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const IB=wa(0);function SB(e){const t=Ln(e);return!xB()||!t.visualViewport?IB:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wB(e,t,n){return!1}function wv(e,t,n,o){t===void 0&&(t=!1);const r=e.getBoundingClientRect(),s=md(e);let a=wa(1);t&&(a=Sv(e));const l=wB()?SB(s):wa(0);let c=(r.left+l.x)/a.x,u=(r.top+l.y)/a.y,d=r.width/a.x,p=r.height/a.y;if(s){const h=Ln(s),g=o;let m=h,f=m.frameElement;for(;f&&o&&g!==m;){const b=Sv(f),v=f.getBoundingClientRect(),T=hd(f),x=v.left+(f.clientLeft+parseFloat(T.paddingLeft))*b.x,S=v.top+(f.clientTop+parseFloat(T.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,p*=b.y,c+=x,u+=S,m=Ln(f),f=m.frameElement}}return vB({width:d,height:p,x:c,y:u})}function AB(e,t){let n=null,o;const r=xv(e);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:p,height:h}=e.getBoundingClientRect();if(l||t(),!p||!h)return;const g=Sa(d),m=Sa(r.clientWidth-(u+p)),f=Sa(r.clientHeight-(d+h)),b=Sa(u),T={rootMargin:-g+"px "+-m+"px "+-f+"px "+-b+"px",threshold:bB(0,gB(1,c))||1};let x=!0;function S(y){const w=y[0].intersectionRatio;if(w!==c){if(!x)return a();w?a(!1,w):o=setTimeout(()=>{a(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,{...T,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,T)}n.observe(e)}return a(!0),s}function RB(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=md(e),d=r||s?[...u?Aa(u):[],...Aa(t)]:[];d.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const p=u&&l?AB(u,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(v=>{let[T]=v;T&&T.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let m,f=c?wv(e):null;c&&b();function b(){const v=wv(e);f&&(v.x!==f.x||v.y!==f.y||v.width!==f.width||v.height!==f.height)&&n(),f=v,m=requestAnimationFrame(b)}return n(),()=>{var v;d.forEach(T=>{r&&T.removeEventListener("scroll",n),s&&T.removeEventListener("resize",n)}),p==null||p(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(m)}}var gd=M.useLayoutEffect,OB=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ra=function(){};function PB(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function NB(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var s=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&s.push("".concat(PB(e,a)));return s.filter(function(l){return l}).map(function(l){return String(l).trim()}).join(" ")}var Av=function(t){return _B(t)?t.filter(Boolean):ao(t)==="object"&&t!==null?[t]:[]},Rv=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Vn(t,OB);return ve({},n)},ut=function(t,n,o){var r=t.cx,s=t.getStyles,a=t.getClassNames,l=t.className;return{css:s(n,t),className:r(o??{},a(n,t),l)}};function Oa(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function MB(e){return Oa(e)?window.innerHeight:e.clientHeight}function Ov(e){return Oa(e)?window.pageYOffset:e.scrollTop}function Pa(e,t){if(Oa(e)){window.scrollTo(0,t);return}e.scrollTop=t}function kB(e){var t=getComputedStyle(e),n=t.position==="absolute",o=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function DB(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}function Na(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ra,r=Ov(e),s=t-r,a=10,l=0;function c(){l+=a;var u=DB(l,r,s,n);Pa(e,u),l<n?window.requestAnimationFrame(c):o(e)}c()}function Pv(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?Pa(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&Pa(e,Math.max(t.offsetTop-r,0))}function BB(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Nv(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function FB(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Mv=!1,jB={get passive(){return Mv=!0}},Ma=typeof window<"u"?window:{};Ma.addEventListener&&Ma.removeEventListener&&(Ma.addEventListener("p",Ra,jB),Ma.removeEventListener("p",Ra,!1));var VB=Mv;function LB(e){return e!=null}function _B(e){return Array.isArray(e)}function ka(e,t,n){return e?t:n}function Dj(e){return e}function Bj(e){return e}var $B=function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];var s=Object.entries(t).filter(function(a){var l=jn(a,1),c=l[0];return!o.includes(c)});return s.reduce(function(a,l){var c=jn(l,2),u=c[0],d=c[1];return a[u]=d,a},{})},WB=["children","innerProps"],GB=["children","innerProps"];function zB(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,s=e.shouldScroll,a=e.isFixedPosition,l=e.controlHeight,c=kB(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var d=c.getBoundingClientRect(),p=d.height,h=n.getBoundingClientRect(),g=h.bottom,m=h.height,f=h.top,b=n.offsetParent.getBoundingClientRect(),v=b.top,T=a?window.innerHeight:MB(c),x=Ov(c),S=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=v-y,A=T-f,R=w+x,P=p-x-f,N=g-T+x+S,F=x+f-y,G=160;switch(r){case"auto":case"bottom":if(A>=m)return{placement:"bottom",maxHeight:t};if(P>=m&&!a)return s&&Na(c,N,G),{placement:"bottom",maxHeight:t};if(!a&&P>=o||a&&A>=o){s&&Na(c,N,G);var j=a?A-S:P-S;return{placement:"bottom",maxHeight:j}}if(r==="auto"||a){var L=t,_=a?w:R;return _>=o&&(L=Math.min(_-S-l,t)),{placement:"top",maxHeight:L}}if(r==="bottom")return s&&Pa(c,N),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(R>=m&&!a)return s&&Na(c,F,G),{placement:"top",maxHeight:t};if(!a&&R>=o||a&&w>=o){var V=t;return(!a&&R>=o||a&&w>=o)&&(V=a?w-y:R-y),s&&Na(c,F,G),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return u}function HB(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var kv=function(t){return t==="auto"?"bottom":t},XB=function(t,n){var o,r=t.placement,s=t.theme,a=s.borderRadius,l=s.spacing,c=s.colors;return ve((o={label:"menu"},Ni(o,HB(r),"100%"),Ni(o,"position","absolute"),Ni(o,"width","100%"),Ni(o,"zIndex",1),o),n?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},Dv=M.createContext(null),UB=function(t){var n=t.children,o=t.minMenuHeight,r=t.maxMenuHeight,s=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,c=t.theme,u=M.useContext(Dv)||{},d=u.setPortalPlacement,p=M.useRef(null),h=M.useState(r),g=jn(h,2),m=g[0],f=g[1],b=M.useState(null),v=jn(b,2),T=v[0],x=v[1],S=c.spacing.controlHeight;return gd(function(){var y=p.current;if(y){var w=a==="fixed",A=l&&!w,R=zB({maxHeight:r,menuEl:y,minHeight:o,placement:s,shouldScroll:A,isFixedPosition:w,controlHeight:S});f(R.maxHeight),x(R.placement),d==null||d(R.placement)}},[r,s,a,l,o,d,S]),n({ref:p,placerProps:ve(ve({},t),{},{placement:T||kv(s),maxHeight:m})})},ZB=function(t){var n=t.children,o=t.innerRef,r=t.innerProps;return he("div",E({},ut(t,"menu",{menu:!0}),{ref:o},r),n)},YB=ZB,JB=function(t,n){var o=t.maxHeight,r=t.theme.spacing.baseUnit;return ve({maxHeight:o,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},qB=function(t){var n=t.children,o=t.innerProps,r=t.innerRef,s=t.isMulti;return he("div",E({},ut(t,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:r},o),n)},Bv=function(t,n){var o=t.theme,r=o.spacing.baseUnit,s=o.colors;return ve({textAlign:"center"},n?{}:{color:s.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},KB=Bv,QB=Bv,e5=function(t){var n=t.children,o=n===void 0?"No options":n,r=t.innerProps,s=Vn(t,WB);return he("div",E({},ut(ve(ve({},s),{},{children:o,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),o)},t5=function(t){var n=t.children,o=n===void 0?"Loading...":n,r=t.innerProps,s=Vn(t,GB);return he("div",E({},ut(ve(ve({},s),{},{children:o,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),o)},n5=function(t){var n=t.rect,o=t.offset,r=t.position;return{left:n.left,position:r,top:o,width:n.width,zIndex:1}},o5=function(t){var n=t.appendTo,o=t.children,r=t.controlElement,s=t.innerProps,a=t.menuPlacement,l=t.menuPosition,c=M.useRef(null),u=M.useRef(null),d=M.useState(kv(a)),p=jn(d,2),h=p[0],g=p[1],m=M.useMemo(function(){return{setPortalPlacement:g}},[]),f=M.useState(null),b=jn(f,2),v=b[0],T=b[1],x=M.useCallback(function(){if(r){var A=BB(r),R=l==="fixed"?0:window.pageYOffset,P=A[h]+R;(P!==(v==null?void 0:v.offset)||A.left!==(v==null?void 0:v.rect.left)||A.width!==(v==null?void 0:v.rect.width))&&T({offset:P,rect:A})}},[r,l,h,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);gd(function(){x()},[x]);var S=M.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),r&&c.current&&(u.current=RB(r,c.current,x,{elementResize:"ResizeObserver"in window}))},[r,x]);gd(function(){S()},[S]);var y=M.useCallback(function(A){c.current=A,S()},[S]);if(!n&&l!=="fixed"||!v)return null;var w=he("div",E({ref:y},ut(ve(ve({},t),{},{offset:v.offset,position:l,rect:v.rect}),"menuPortal",{"menu-portal":!0}),s),o);return he(Dv.Provider,{value:m},n?Po.createPortal(w,n):w)},r5=function(t){var n=t.isDisabled,o=t.isRtl;return{label:"container",direction:o?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},i5=function(t){var n=t.children,o=t.innerProps,r=t.isDisabled,s=t.isRtl;return he("div",E({},ut(t,"container",{"--is-disabled":r,"--is-rtl":s}),o),n)},s5=function(t,n){var o=t.theme.spacing,r=t.isMulti,s=t.hasValue,a=t.selectProps.controlShouldRenderValue;return ve({alignItems:"center",display:r&&s&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(o.baseUnit/2,"px ").concat(o.baseUnit*2,"px")})},a5=function(t){var n=t.children,o=t.innerProps,r=t.isMulti,s=t.hasValue;return he("div",E({},ut(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":s}),o),n)},l5=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},c5=function(t){var n=t.children,o=t.innerProps;return he("div",E({},ut(t,"indicatorsContainer",{indicators:!0}),o),n)},Fv,u5=["size"],d5=["innerProps","isRtl","size"];function p5(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var f5=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUhlaWdodDogMSxcbiAgICAgIHN0cm9rZTogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBzdHJva2VXaWR0aDogMCxcbiAgICB9fVxuICAgIHsuLi5wcm9wc31cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIENyb3NzSWNvblByb3BzID0gSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZT86IG51bWJlciB9O1xuZXhwb3J0IGNvbnN0IENyb3NzSWNvbiA9IChwcm9wczogQ3Jvc3NJY29uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCB0eXBlIERvd25DaGV2cm9uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgRG93bkNoZXZyb24gPSAocHJvcHM6IERvd25DaGV2cm9uUHJvcHMpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTQuNTE2IDcuNTQ4YzAuNDM2LTAuNDQ2IDEuMDQzLTAuNDgxIDEuNTc2IDBsMy45MDggMy43NDcgMy45MDgtMy43NDdjMC41MzMtMC40ODEgMS4xNDEtMC40NDYgMS41NzQgMCAwLjQzNiAwLjQ0NSAwLjQwOCAxLjE5NyAwIDEuNjE1LTAuNDA2IDAuNDE4LTQuNjk1IDQuNTAyLTQuNjk1IDQuNTAyLTAuMjE3IDAuMjIzLTAuNTAyIDAuMzM1LTAuNzg3IDAuMzM1cy0wLjU3LTAuMTEyLTAuNzg5LTAuMzM1YzAgMC00LjI4Ny00LjA4NC00LjY5NS00LjUwMnMtMC40MzYtMS4xNyAwLTEuNjE1elwiIC8+XG4gIDwvU3ZnPlxuKTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEJ1dHRvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xufVxuXG5jb25zdCBiYXNlQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTpcbiAgICB8IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbiAgICB8IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JDb250YWluZXInLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICAgICc6aG92ZXInOiB7XG4gICAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsODAgOiBjb2xvcnMubmV1dHJhbDQwLFxuICAgICAgICB9LFxuICAgICAgfSksXG59KTtcblxuZXhwb3J0IGNvbnN0IGRyb3Bkb3duSW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBEcm9wZG93bkluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IERyb3Bkb3duSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2Ryb3Bkb3duSW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdkcm9wZG93bi1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPERvd25DaGV2cm9uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuZXhwb3J0IGludGVyZmFjZSBDbGVhckluZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW4/OiBSZWFjdE5vZGU7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGNvbnN0IGNsZWFySW5kaWNhdG9yQ1NTID0gYmFzZUNTUztcbmV4cG9ydCBjb25zdCBDbGVhckluZGljYXRvciA9IDxcbiAgT3B0aW9uLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPlxuPihcbiAgcHJvcHM6IENsZWFySW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBpbm5lclByb3BzIH0gPSBwcm9wcztcbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uZ2V0U3R5bGVQcm9wcyhwcm9wcywgJ2NsZWFySW5kaWNhdG9yJywge1xuICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICdjbGVhci1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgfSl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICB7Y2hpbGRyZW4gfHwgPENyb3NzSWNvbiAvPn1cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gU2VwYXJhdG9yXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IGludGVyZmFjZSBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaW5uZXJQcm9wcz86IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3BhbiddO1xufVxuXG5leHBvcnQgY29uc3QgaW5kaWNhdG9yU2VwYXJhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNEaXNhYmxlZCxcbiAgICB0aGVtZToge1xuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgICAgY29sb3JzLFxuICAgIH0sXG4gIH06IEluZGljYXRvclNlcGFyYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+LFxuICB1bnN0eWxlZDogYm9vbGVhblxuKTogQ1NTT2JqZWN0V2l0aExhYmVsID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yU2VwYXJhdG9yJyxcbiAgYWxpZ25TZWxmOiAnc3RyZXRjaCcsXG4gIHdpZHRoOiAxLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogaXNEaXNhYmxlZCA/IGNvbG9ycy5uZXV0cmFsMTAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBtYXJnaW5Cb3R0b206IGJhc2VVbml0ICogMixcbiAgICAgICAgbWFyZ2luVG9wOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD5cbikgPT4ge1xuICBjb25zdCB7IGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxzcGFuXG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnaW5kaWNhdG9yU2VwYXJhdG9yJywge1xuICAgICAgICAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICB7XG4gICAgaXNGb2N1c2VkLFxuICAgIHNpemUsXG4gICAgdGhlbWU6IHtcbiAgICAgIGNvbG9ycyxcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICB9LFxuICB9OiBMb2FkaW5nSW5kaWNhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdsb2FkaW5nSW5kaWNhdG9yJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxuICAuLi4odW5zdHlsZWRcbiAgICA/IHt9XG4gICAgOiB7XG4gICAgICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDYwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgICAgICAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICAgICAgfSksXG59KTtcblxuaW50ZXJmYWNlIExvYWRpbmdEb3RQcm9wcyB7XG4gIGRlbGF5OiBudW1iZXI7XG4gIG9mZnNldDogYm9vbGVhbjtcbn1cbmNvbnN0IExvYWRpbmdEb3QgPSAoeyBkZWxheSwgb2Zmc2V0IH06IExvYWRpbmdEb3RQcm9wcykgPT4gKFxuICA8c3BhblxuICAgIGNzcz17e1xuICAgICAgYW5pbWF0aW9uOiBgJHtsb2FkaW5nRG90QW5pbWF0aW9uc30gMXMgZWFzZS1pbi1vdXQgJHtkZWxheX1tcyBpbmZpbml0ZTtgLFxuICAgICAgYmFja2dyb3VuZENvbG9yOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGJvcmRlclJhZGl1czogJzFlbScsXG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIG1hcmdpbkxlZnQ6IG9mZnNldCA/ICcxZW0nIDogdW5kZWZpbmVkLFxuICAgICAgaGVpZ2h0OiAnMWVtJyxcbiAgICAgIHZlcnRpY2FsQWxpZ246ICd0b3AnLFxuICAgICAgd2lkdGg6ICcxZW0nLFxuICAgIH19XG4gIC8+XG4pO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvYWRpbmdJbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydkaXYnXTtcbiAgLyoqIFRoZSBmb2N1c2VkIHN0YXRlIG9mIHRoZSBzZWxlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:p5},jv=function(t){var n=t.size,o=Vn(t,u5);return he("svg",E({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:f5},o))},bd=function(t){return he(jv,E({size:20},t),he("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Vv=function(t){return he(jv,E({size:20},t),he("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Lv=function(t,n){var o=t.isFocused,r=t.theme,s=r.spacing.baseUnit,a=r.colors;return ve({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:o?a.neutral60:a.neutral20,padding:s*2,":hover":{color:o?a.neutral80:a.neutral40}})},h5=Lv,m5=function(t){var n=t.children,o=t.innerProps;return he("div",E({},ut(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),o),n||he(Vv,null))},g5=Lv,b5=function(t){var n=t.children,o=t.innerProps;return he("div",E({},ut(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),o),n||he(bd,null))},v5=function(t,n){var o=t.isDisabled,r=t.theme,s=r.spacing.baseUnit,a=r.colors;return ve({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:o?a.neutral10:a.neutral20,marginBottom:s*2,marginTop:s*2})},y5=function(t){var n=t.innerProps;return he("span",E({},n,ut(t,"indicatorSeparator",{"indicator-separator":!0})))},x5=ro(Fv||(Fv=mB([`
246
246
  0%, 80%, 100% { opacity: 0; }