{const b=p.current,w=x.key,S=Ut(b).activeElement;if(w==="ArrowDown")x.preventDefault(),Ol(b,S,u,l,Um);else if(w==="ArrowUp")x.preventDefault(),Ol(b,S,u,l,TO);else if(w==="Home")x.preventDefault(),Ol(b,null,u,l,Um);else if(w==="End")x.preventDefault(),Ol(b,null,u,l,TO);else if(w.length===1){const E=h.current,O=w.toLowerCase(),C=performance.now();E.keys.length>0&&(C-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&O!==E.keys[0]&&(E.repeating=!1)),E.lastTime=C,E.keys.push(O);const A=S&&!E.repeating&&EM(S,E);E.previousKeyMatched&&(A||Ol(b,S,!1,l,Um,E))?x.preventDefault():E.previousKeyMatched=!1}c&&c(x)},g=Qe(p,r);let m=-1;R.exports.Children.forEach(a,(x,b)=>{!R.exports.isValidElement(x)||x.props.disabled||(d==="selectedMenu"&&x.props.selected||m===-1)&&(m=b)});const y=R.exports.Children.map(a,(x,b)=>{if(b===m){const w={};return i&&(w.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(w.tabIndex=0),R.exports.cloneElement(x,w)}return x});return P(ws,j({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:o?0:-1},f,{children:y}))});var xG=bG;function wG(e){return qe("MuiPopover",e)}He("MuiPopover",["root","paper"]);const EG=["onEntering"],SG=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function kO(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function PO(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function RO(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Hm(e){return typeof e=="function"?e():e}const OG=e=>{const{classes:t}=e;return Ue({root:["root"],paper:["paper"]},wG,t)},AG=he(cM,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CG=he(js,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),TG=R.exports.forwardRef(function(t,r){const n=$e({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:u,className:c,container:d,elevation:f=8,marginThreshold:p=16,open:h,PaperProps:v={},transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:m=N0,transitionDuration:y="auto",TransitionProps:{onEntering:x}={}}=n,b=Se(n.TransitionProps,EG),w=Se(n,SG),S=R.exports.useRef(),E=Qe(S,v.ref),O=j({},n,{anchorOrigin:a,anchorReference:l,elevation:f,marginThreshold:p,PaperProps:v,transformOrigin:g,TransitionComponent:m,transitionDuration:y,TransitionProps:b}),C=OG(O),A=R.exports.useCallback(()=>{if(l==="anchorPosition")return s;const H=Hm(i),V=(H&&H.nodeType===1?H:Ut(S.current).body).getBoundingClientRect();return{top:V.top+kO(V,a.vertical),left:V.left+PO(V,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),T=R.exports.useCallback(H=>({vertical:kO(H,g.vertical),horizontal:PO(H,g.horizontal)}),[g.horizontal,g.vertical]),k=R.exports.useCallback(H=>{const Y={width:H.offsetWidth,height:H.offsetHeight},V=T(Y);if(l==="none")return{top:null,left:null,transformOrigin:RO(V)};const q=A();let M=q.top-V.vertical,D=q.left-V.horizontal;const F=M+Y.height,$=D+Y.width,U=ro(Hm(i)),L=U.innerHeight-p,W=U.innerWidth-p;if(ML){const Z=F-L;M-=Z,V.vertical+=Z}if(D
W){const Z=$-W;D-=Z,V.horizontal+=Z}return{top:`${Math.round(M)}px`,left:`${Math.round(D)}px`,transformOrigin:RO(V)}},[i,l,A,T,p]),I=R.exports.useCallback(()=>{const H=S.current;if(!H)return;const Y=k(H);Y.top!==null&&(H.style.top=Y.top),Y.left!==null&&(H.style.left=Y.left),H.style.transformOrigin=Y.transformOrigin},[k]),N=(H,Y)=>{x&&x(H,Y),I()};R.exports.useEffect(()=>{h&&I()}),R.exports.useImperativeHandle(o,()=>h?{updatePosition:()=>{I()}}:null,[h,I]),R.exports.useEffect(()=>{if(!h)return;const H=mx(()=>{I()}),Y=ro(i);return Y.addEventListener("resize",H),()=>{H.clear(),Y.removeEventListener("resize",H)}},[i,h,I]);let _=y;y==="auto"&&!m.muiSupportAuto&&(_=void 0);const z=d||(i?Ut(Hm(i)).body:void 0);return P(AG,j({BackdropProps:{invisible:!0},className:Te(C.root,c),container:z,open:h,ref:r,ownerState:O},w,{children:P(m,j({appear:!0,in:h,onEntering:N,timeout:_},b,{children:P(CG,j({elevation:f},v,{ref:E,className:Te(C.paper,v.className),children:u}))}))}))});var Vx=TG;function kG(e){return qe("MuiMenu",e)}He("MuiMenu",["root","paper","list"]);const PG=["onEntering"],RG=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],IG={vertical:"top",horizontal:"right"},MG={vertical:"top",horizontal:"left"},NG=e=>{const{classes:t}=e;return Ue({root:["root"],paper:["paper"],list:["list"]},kG,t)},LG=he(Vx,{shouldForwardProp:e=>en(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DG=he(js,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_G=he(xG,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),FG=R.exports.forwardRef(function(t,r){const n=$e({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:c={},PopoverClasses:d,transitionDuration:f="auto",TransitionProps:{onEntering:p}={},variant:h="selectedMenu"}=n,v=Se(n.TransitionProps,PG),g=Se(n,RG),m=or(),y=m.direction==="rtl",x=j({},n,{autoFocus:o,disableAutoFocusItem:a,MenuListProps:s,onEntering:p,PaperProps:c,transitionDuration:f,TransitionProps:v,variant:h}),b=NG(x),w=o&&!a&&u,S=R.exports.useRef(null),E=(A,T)=>{S.current&&S.current.adjustStyleForScrollbar(A,m),p&&p(A,T)},O=A=>{A.key==="Tab"&&(A.preventDefault(),l&&l(A,"tabKeyDown"))};let C=-1;return R.exports.Children.map(i,(A,T)=>{!R.exports.isValidElement(A)||A.props.disabled||(h==="selectedMenu"&&A.props.selected||C===-1)&&(C=T)}),P(LG,j({classes:d,onClose:l,anchorOrigin:{vertical:"bottom",horizontal:y?"right":"left"},transformOrigin:y?IG:MG,PaperProps:j({component:DG},c,{classes:j({},c.classes,{root:b.paper})}),className:b.root,open:u,ref:r,transitionDuration:f,TransitionProps:j({onEntering:E},v),ownerState:x},g,{children:P(_G,j({onKeyDown:O,actions:S,autoFocus:o&&(C===-1||a),autoFocusItem:w,variant:h},s,{className:Te(b.list,s.className),children:i}))}))});var BG=FG;function jG(e){return qe("MuiMenuItem",e)}const $G=He("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var Al=$G;const zG=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],qG=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},VG=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e,l=Ue({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},jG,a);return j({},a,l)},UG=he(Pc,{shouldForwardProp:e=>en(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:qG})(({theme:e,ownerState:t})=>j({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Al.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pe(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Al.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Al.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pe(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pe(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Al.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Al.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${gO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${gO.inset}`]:{marginLeft:52},[`& .${Cp.root}`]:{marginTop:0,marginBottom:0},[`& .${Cp.inset}`]:{paddingLeft:36},[`& .${CO.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&j({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${CO.root} svg`]:{fontSize:"1.25rem"}}))),HG=R.exports.forwardRef(function(t,r){const n=$e({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d}=n,f=Se(n,zG),p=R.exports.useContext(Yo),h={dense:a||p.dense||!1,disableGutters:l},v=R.exports.useRef(null);mn(()=>{o&&v.current&&v.current.focus()},[o]);const g=j({},n,{dense:h.dense,divider:s,disableGutters:l}),m=VG(n),y=Qe(v,r);let x;return n.disabled||(x=d!==void 0?d:-1),P(Yo.Provider,{value:h,children:P(UG,j({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:Te(m.focusVisible,u)},f,{ownerState:g,classes:m}))})});var Tp=HG;function WG(e){return qe("MuiNativeSelect",e)}const GG=He("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var Ux=GG;const KG=["className","disabled","IconComponent","inputRef","variant"],ZG=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i}=e,a={select:["select",r,n&&"disabled",o&&"multiple"],icon:["icon",`icon${Ee(r)}`,i&&"iconOpen",n&&"disabled"]};return Ue(a,WG,t)},SM=({ownerState:e,theme:t})=>j({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${Ux.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),YG=he("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:en,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],{[`&.${Ux.multiple}`]:t.multiple}]}})(SM),OM=({ownerState:e,theme:t})=>j({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${Ux.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),QG=he("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ee(r.variant)}`],r.open&&t.iconOpen]}})(OM),XG=R.exports.forwardRef(function(t,r){const{className:n,disabled:o,IconComponent:i,inputRef:a,variant:s="standard"}=t,l=Se(t,KG),u=j({},t,{disabled:o,variant:s}),c=ZG(u);return me(R.exports.Fragment,{children:[P(YG,j({ownerState:u,className:Te(c.select,n),disabled:o,ref:a||r},l)),t.multiple?null:P(QG,{as:i,ownerState:u,className:c.icon})]})});var JG=XG,IO;const eK=["children","classes","className","label","notched"],tK=he("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rK=he("legend")(({ownerState:e,theme:t})=>j({float:"unset",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&j({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function nK(e){const{className:t,label:r,notched:n}=e,o=Se(e,eK),i=r!=null&&r!=="",a=j({},e,{notched:n,withLabel:i});return P(tK,j({"aria-hidden":!0,className:t,ownerState:a},o,{children:P(rK,{ownerState:a,children:i?P("span",{children:r}):IO||(IO=P("span",{className:"notranslate",children:"\u200B"}))})}))}const oK=["components","fullWidth","inputComponent","label","multiline","notched","type"],iK=e=>{const{classes:t}=e,n=Ue({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nU,t);return j({},t,n)},aK=he(lv,{shouldForwardProp:e=>en(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:av})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return j({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${po.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${po.focused} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${po.error} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${po.disabled} .${po.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&j({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),sK=he(nK,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),lK=he(uv,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:sv})(({theme:e,ownerState:t})=>j({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),AM=R.exports.forwardRef(function(t,r){var n;const o=$e({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:l,multiline:u=!1,notched:c,type:d="text"}=o,f=Se(o,oK),p=iK(o),h=Ki(),v=$s({props:o,muiFormControl:h,states:["required"]}),g=j({},o,{color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:h,fullWidth:a,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:d});return P(zx,j({components:j({Root:aK,Input:lK},i),renderSuffix:m=>P(sK,{ownerState:g,className:p.notchedOutline,label:l!=null&&l!==""&&v.required?n||(n=me(R.exports.Fragment,{children:[l,"\xA0","*"]})):l,notched:typeof c!="undefined"?c:Boolean(m.startAdornment||m.filled||m.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:r,type:d},f,{classes:j({},p,{notchedOutline:null})}))});AM.muiName="Input";var CM=AM;function uK(e){return qe("MuiSelect",e)}const cK=He("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);var wf=cK,MO;const fK=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],dK=he("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${wf.select}`]:t.select},{[`&.${wf.select}`]:t[r.variant]},{[`&.${wf.multiple}`]:t.multiple}]}})(SM,{[`&.${wf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),pK=he("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ee(r.variant)}`],r.open&&t.iconOpen]}})(OM),hK=he("input",{shouldForwardProp:e=>tq(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function NO(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function vK(e){return e==null||typeof e=="string"&&!e.trim()}const mK=e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i}=e,a={select:["select",r,n&&"disabled",o&&"multiple"],icon:["icon",`icon${Ee(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ue(a,uK,t)},gK=R.exports.forwardRef(function(t,r){const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,IconComponent:p,inputRef:h,labelId:v,MenuProps:g={},multiple:m,name:y,onBlur:x,onChange:b,onClose:w,onFocus:S,onOpen:E,open:O,readOnly:C,renderValue:A,SelectDisplayProps:T={},tabIndex:k,value:I,variant:N="standard"}=t,_=Se(t,fK),[z,H]=g0({controlled:I,default:c,name:"Select"}),[Y,V]=g0({controlled:O,default:u,name:"Select"}),q=R.exports.useRef(null),M=R.exports.useRef(null),[D,F]=R.exports.useState(null),{current:$}=R.exports.useRef(O!=null),[U,L]=R.exports.useState(),W=Qe(r,h),Z=R.exports.useCallback(ve=>{M.current=ve,ve&&F(ve)},[]);R.exports.useImperativeHandle(W,()=>({focus:()=>{M.current.focus()},node:q.current,value:z}),[z]),R.exports.useEffect(()=>{u&&Y&&D&&!$&&(L(a?null:D.clientWidth),M.current.focus())},[D,a]),R.exports.useEffect(()=>{i&&M.current.focus()},[i]),R.exports.useEffect(()=>{if(!v)return;const ve=Ut(M.current).getElementById(v);if(ve){const oe=()=>{getSelection().isCollapsed&&M.current.focus()};return ve.addEventListener("click",oe),()=>{ve.removeEventListener("click",oe)}}},[v]);const Q=(ve,oe)=>{ve?E&&E(oe):w&&w(oe),$||(L(a?null:D.clientWidth),V(ve))},B=ve=>{ve.button===0&&(ve.preventDefault(),M.current.focus(),Q(!0,ve))},K=ve=>{Q(!1,ve)},X=R.exports.Children.toArray(s),ae=ve=>{const oe=X.map(ee=>ee.props.value).indexOf(ve.target.value);if(oe===-1)return;const G=X[oe];H(G.props.value),b&&b(ve,G)},se=ve=>oe=>{let G;if(!!oe.currentTarget.hasAttribute("tabindex")){if(m){G=Array.isArray(z)?z.slice():[];const ee=z.indexOf(ve.props.value);ee===-1?G.push(ve.props.value):G.splice(ee,1)}else G=ve.props.value;if(ve.props.onClick&&ve.props.onClick(oe),z!==G&&(H(G),b)){const ee=oe.nativeEvent||oe,fe=new ee.constructor(ee.type,ee);Object.defineProperty(fe,"target",{writable:!0,value:{value:G,name:y}}),b(fe,ve)}m||Q(!1,oe)}},ne=ve=>{C||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ve.key)!==-1&&(ve.preventDefault(),Q(!0,ve))},ge=D!==null&&Y,we=ve=>{!ge&&x&&(Object.defineProperty(ve,"target",{writable:!0,value:{value:z,name:y}}),x(ve))};delete _["aria-invalid"];let te,re;const ce=[];let ye=!1;($x({value:z})||f)&&(A?te=A(z):ye=!0);const le=X.map((ve,oe,G)=>{if(!R.exports.isValidElement(ve))return null;let ee;if(m){if(!Array.isArray(z))throw new Error(_i(2));ee=z.some(Le=>NO(Le,ve.props.value)),ee&&ye&&ce.push(ve.props.children)}else ee=NO(z,ve.props.value),ee&&ye&&(re=ve.props.children);if(ve.props.value===void 0)return R.exports.cloneElement(ve,{"aria-readonly":!0,role:"option"});const fe=()=>{if(z)return ee;const Le=G.find(Ge=>Ge.props.value!==void 0&&Ge.props.disabled!==!0);return ve===Le?!0:ee};return R.exports.cloneElement(ve,{"aria-selected":ee?"true":"false",onClick:se(ve),onKeyUp:Le=>{Le.key===" "&&Le.preventDefault(),ve.props.onKeyUp&&ve.props.onKeyUp(Le)},role:"option",selected:G[0].props.value===void 0||G[0].props.disabled===!0?fe():ee,value:void 0,"data-value":ve.props.value})});ye&&(m?ce.length===0?te=null:te=ce.reduce((ve,oe,G)=>(ve.push(oe),G{const{classes:t}=e;return t},Hx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>en(e)&&e!=="variant",slot:"Root"},wK=he(qx,Hx)(""),EK=he(CM,Hx)(""),SK=he(vM,Hx)(""),TM=R.exports.forwardRef(function(t,r){const n=$e({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=sU,id:d,input:f,inputProps:p,label:h,labelId:v,MenuProps:g,multiple:m=!1,native:y=!1,onClose:x,onOpen:b,open:w,renderValue:S,SelectDisplayProps:E,variant:O="outlined"}=n,C=Se(n,bK),A=y?JG:yK,T=Ki(),I=$s({props:n,muiFormControl:T,states:["variant"]}).variant||O,N=f||{standard:LO||(LO=P(wK,{})),outlined:P(EK,{label:h}),filled:DO||(DO=P(SK,{}))}[I],_=j({},n,{variant:I,classes:a}),z=xK(_),H=Qe(r,N.ref);return R.exports.cloneElement(N,j({inputComponent:A,inputProps:j({children:i,IconComponent:c,variant:I,type:void 0,multiple:m},y?{id:d}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:g,onClose:x,onOpen:b,open:w,renderValue:S,SelectDisplayProps:j({id:d},E)},p,{classes:p?Mr(z,p.classes):z},f?f.props.inputProps:{})},m&&y&&I==="outlined"?{notched:!0}:{},{ref:H,className:Te(N.props.className,s),variant:I},C))});TM.muiName="Select";var OK=TM;function AK(e){return qe("MuiTooltip",e)}const CK=He("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);var Po=CK;const TK=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];function kK(e){return Math.round(e*1e5)/1e5}const PK=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ee(i.split("-")[0])}`],arrow:["arrow"]};return Ue(a,AK,t)},RK=he(lM,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>j({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Po.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Po.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Po.arrow}`]:j({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Po.arrow}`]:j({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),IK=he("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ee(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>j({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Pe(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${kK(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Po.popper}[data-popper-placement*="left"] &`]:j({transformOrigin:"right center"},t.isRtl?j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):j({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Po.popper}[data-popper-placement*="right"] &`]:j({transformOrigin:"left center"},t.isRtl?j({marginRight:"14px"},t.touch&&{marginRight:"24px"}):j({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Po.popper}[data-popper-placement*="top"] &`]:j({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Po.popper}[data-popper-placement*="bottom"] &`]:j({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),MK=he("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?`rgba(${e.vars.palette.grey.darkChannel} / 0.9)`:Pe(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Ef=!1,Wm=null;function Sf(e,t){return r=>{t&&t(r),e(r)}}const NK=R.exports.forwardRef(function(t,r){var n,o,i,a,s,l;const u=$e({props:t,name:"MuiTooltip"}),{arrow:c=!1,children:d,components:f={},componentsProps:p={},describeChild:h=!1,disableFocusListener:v=!1,disableHoverListener:g=!1,disableInteractive:m=!1,disableTouchListener:y=!1,enterDelay:x=100,enterNextDelay:b=0,enterTouchDelay:w=700,followCursor:S=!1,id:E,leaveDelay:O=0,leaveTouchDelay:C=1500,onClose:A,onOpen:T,open:k,placement:I="bottom",PopperComponent:N,PopperProps:_={},title:z,TransitionComponent:H=N0,TransitionProps:Y}=u,V=Se(u,TK),q=or(),M=q.direction==="rtl",[D,F]=R.exports.useState(),[$,U]=R.exports.useState(null),L=R.exports.useRef(!1),W=m||S,Z=R.exports.useRef(),Q=R.exports.useRef(),B=R.exports.useRef(),K=R.exports.useRef(),[X,ae]=g0({controlled:k,default:!1,name:"Tooltip",state:"open"});let se=X;const ne=gx(E),ge=R.exports.useRef(),we=R.exports.useCallback(()=>{ge.current!==void 0&&(document.body.style.WebkitUserSelect=ge.current,ge.current=void 0),clearTimeout(K.current)},[]);R.exports.useEffect(()=>()=>{clearTimeout(Z.current),clearTimeout(Q.current),clearTimeout(B.current),we()},[we]);const te=We=>{clearTimeout(Wm),Ef=!0,ae(!0),T&&!se&&T(We)},re=ko(We=>{clearTimeout(Wm),Wm=setTimeout(()=>{Ef=!1},800+O),ae(!1),A&&se&&A(We),clearTimeout(Z.current),Z.current=setTimeout(()=>{L.current=!1},q.transitions.duration.shortest)}),ce=We=>{L.current&&We.type!=="touchstart"||(D?D.removeAttribute("title"):F(We.currentTarget),clearTimeout(Q.current),clearTimeout(B.current),x||Ef&&b?Q.current=setTimeout(()=>{te(We)},Ef?b:x):te(We))},ye=We=>{clearTimeout(Q.current),clearTimeout(B.current),B.current=setTimeout(()=>{re(We)},O)},{isFocusVisibleRef:le,onBlur:Ne,onFocus:ie,ref:de}=yx(),[,De]=R.exports.useState(!1),Ce=We=>{Ne(We),le.current===!1&&(De(!1),ye(We))},ve=We=>{D||F(We.currentTarget),ie(We),le.current===!0&&(De(!0),ce(We))},oe=We=>{L.current=!0;const Zt=d.props;Zt.onTouchStart&&Zt.onTouchStart(We)},G=ce,ee=ye,fe=We=>{oe(We),clearTimeout(B.current),clearTimeout(Z.current),we(),ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",K.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ge.current,ce(We)},w)},Le=We=>{d.props.onTouchEnd&&d.props.onTouchEnd(We),we(),clearTimeout(B.current),B.current=setTimeout(()=>{re(We)},C)};R.exports.useEffect(()=>{if(!se)return;function We(Zt){(Zt.key==="Escape"||Zt.key==="Esc")&&re(Zt)}return document.addEventListener("keydown",We),()=>{document.removeEventListener("keydown",We)}},[re,se]);const Ge=Qe(F,r),ze=Qe(de,Ge),ue=Qe(d.ref,ze);z===""&&(se=!1);const pe=R.exports.useRef({x:0,y:0}),Oe=R.exports.useRef(),Me=We=>{const Zt=d.props;Zt.onMouseMove&&Zt.onMouseMove(We),pe.current={x:We.clientX,y:We.clientY},Oe.current&&Oe.current.update()},Ve={},Ye=typeof z=="string";h?(Ve.title=!se&&Ye&&!g?z:null,Ve["aria-describedby"]=se?ne:null):(Ve["aria-label"]=Ye?z:null,Ve["aria-labelledby"]=se&&!Ye?ne:null);const Ke=j({},Ve,V,d.props,{className:Te(V.className,d.props.className),onTouchStart:oe,ref:ue},S?{onMouseMove:Me}:{}),et={};y||(Ke.onTouchStart=fe,Ke.onTouchEnd=Le),g||(Ke.onMouseOver=Sf(G,Ke.onMouseOver),Ke.onMouseLeave=Sf(ee,Ke.onMouseLeave),W||(et.onMouseOver=G,et.onMouseLeave=ee)),v||(Ke.onFocus=Sf(ve,Ke.onFocus),Ke.onBlur=Sf(Ce,Ke.onBlur),W||(et.onFocus=ve,et.onBlur=Ce));const at=R.exports.useMemo(()=>{var We;let Zt=[{name:"arrow",enabled:Boolean($),options:{element:$,padding:4}}];return(We=_.popperOptions)!=null&&We.modifiers&&(Zt=Zt.concat(_.popperOptions.modifiers)),j({},_.popperOptions,{modifiers:Zt})},[$,_]),gt=j({},u,{isRtl:M,arrow:c,disableInteractive:W,placement:I,PopperComponentProp:N,touch:L.current}),pt=PK(gt),Nt=(n=f.Popper)!=null?n:RK,Vn=(o=(i=f.Transition)!=null?i:H)!=null?o:N0,wn=(a=f.Tooltip)!=null?a:IK,oi=(s=f.Arrow)!=null?s:MK,Yc=Ql(Nt,j({},_,p.popper),gt),Qc=Ql(Vn,j({},Y,p.transition),gt),N_=Ql(wn,j({},p.tooltip),gt),L_=Ql(oi,j({},p.arrow),gt);return me(R.exports.Fragment,{children:[R.exports.cloneElement(d,Ke),P(Nt,j({as:N!=null?N:lM,placement:I,anchorEl:S?{getBoundingClientRect:()=>({top:pe.current.y,left:pe.current.x,right:pe.current.x,bottom:pe.current.y,width:0,height:0})}:D,popperRef:Oe,open:D?se:!1,id:ne,transition:!0},et,Yc,{className:Te(pt.popper,_==null?void 0:_.className,(l=p.popper)==null?void 0:l.className),popperOptions:at,children:({TransitionProps:We})=>{var Zt,BE;return P(Vn,j({timeout:q.transitions.duration.shorter},We,Qc,{children:me(wn,j({},N_,{className:Te(pt.tooltip,(Zt=p.tooltip)==null?void 0:Zt.className),children:[z,c?P(oi,j({},L_,{className:Te(pt.arrow,(BE=p.arrow)==null?void 0:BE.className),ref:U})):null]}))}))}}))]})});var LK=NK;const DK=["component","direction","spacing","divider","children"];function _K(e,t){const r=R.exports.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],BK=({ownerState:e,theme:t})=>{let r=j({display:"flex"},jn({theme:t},Bm({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=xx(t),o=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),i=Bm({values:e.direction,base:o}),a=Bm({values:e.spacing,base:o});r=Mr(r,jn({theme:t},a,(l,u)=>({"& > :not(style) + :not(style)":{margin:0,[`margin${FK(u?i[u]:e.direction)}`]:Bs(n,l)}})))}return r},jK=he("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>[t.root]})(BK),$K=R.exports.forwardRef(function(t,r){const n=$e({props:t,name:"MuiStack"}),o=Ax(n),{component:i="div",direction:a="column",spacing:s=0,divider:l,children:u}=o,c=Se(o,DK);return P(jK,j({as:i,ownerState:{direction:a,spacing:s},ref:r},c,{children:l?_K(u,l):u}))});var kr=$K;function zK(e){return qe("MuiToolbar",e)}He("MuiToolbar",["root","gutters","regular","dense"]);const qK=["className","component","disableGutters","variant"],VK=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ue({root:["root",!r&&"gutters",n]},zK,t)},UK=he("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>j({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),HK=R.exports.forwardRef(function(t,r){const n=$e({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:s="regular"}=n,l=Se(n,qK),u=j({},n,{component:i,disableGutters:a,variant:s}),c=VK(u);return P(UK,j({as:i,className:Te(c.root,o),ref:r,ownerState:u},l))});var WK=HK;function GK(e){return qe("MuiTextField",e)}He("MuiTextField",["root"]);const KK=["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"],ZK={standard:qx,filled:vM,outlined:CM},YK=e=>{const{classes:t}=e;return Ue({root:["root"]},GK,t)},QK=he(YH,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),XK=R.exports.forwardRef(function(t,r){const n=$e({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:f,fullWidth:p=!1,helperText:h,id:v,InputLabelProps:g,inputProps:m,InputProps:y,inputRef:x,label:b,maxRows:w,minRows:S,multiline:E=!1,name:O,onBlur:C,onChange:A,onFocus:T,placeholder:k,required:I=!1,rows:N,select:_=!1,SelectProps:z,type:H,value:Y,variant:V="outlined"}=n,q=Se(n,KK),M=j({},n,{autoFocus:i,color:l,disabled:c,error:d,fullWidth:p,multiline:E,required:I,select:_,variant:V}),D=YK(M),F={};V==="outlined"&&(g&&typeof g.shrink!="undefined"&&(F.notched=g.shrink),F.label=b),_&&((!z||!z.native)&&(F.id=void 0),F["aria-describedby"]=void 0);const $=gx(v),U=h&&$?`${$}-helper-text`:void 0,L=b&&$?`${$}-label`:void 0,W=ZK[V],Z=P(W,j({"aria-describedby":U,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:p,multiline:E,name:O,rows:N,maxRows:w,minRows:S,type:H,value:Y,id:$,inputRef:x,onBlur:C,onChange:A,onFocus:T,placeholder:k,inputProps:m},F,y));return me(QK,j({className:Te(D.root,s),disabled:c,error:d,fullWidth:p,ref:r,required:I,color:l,variant:V,ownerState:M},q,{children:[b!=null&&b!==""&&P(RW,j({htmlFor:$,id:L},g,{children:b})),_?P(OK,j({"aria-describedby":U,id:$,labelId:L,value:Y,input:Z},z,{children:a})):Z,h&&P(nW,j({id:U},f,{children:h}))]}))});var JK=XK;const Wx=()=>R.exports.useContext(eM),kM=()=>R.exports.useContext(rM);function eZ(e){const[t,r]=R.exports.useState(!1),n=e||100;return R.exports.useEffect(()=>(window.onscroll=()=>{window.pageYOffset>n?r(!0):r(!1)},()=>{window.onscroll=null}),[n]),t}function _O(e="bottom"){return{top:"to top",right:"to right",bottom:"to bottom",left:"to left"}[e]}function Gx(e){return{bgBlur:t=>{const r=(t==null?void 0:t.color)||(e==null?void 0:e.palette.background.default)||"#000000",n=(t==null?void 0:t.blur)||6,o=(t==null?void 0:t.opacity)||.8;return{backdropFilter:`blur(${n}px)`,WebkitBackdropFilter:`blur(${n}px)`,backgroundColor:Pe(r,o)}},bgGradient:t=>{const r=_O(t==null?void 0:t.direction),n=(t==null?void 0:t.startColor)||`${Pe("#000000",0)} 0%`,o=(t==null?void 0:t.endColor)||"#000000 75%";return{background:`linear-gradient(${r}, ${n}, ${o});`}},bgImage:t=>{const r=(t==null?void 0:t.url)||"https://minimal-assets-api.vercel.app/assets/images/bg_gradient.jpg",n=_O(t==null?void 0:t.direction),o=(t==null?void 0:t.startColor)||Pe((e==null?void 0:e.palette.grey[900])||"#000000",.88),i=(t==null?void 0:t.endColor)||Pe((e==null?void 0:e.palette.grey[900])||"#000000",.88);return{background:`linear-gradient(${n}, ${o}, ${i}), url(${r})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"}}}}function tc({disabledLink:e=!1,sx:t}){const r=or();r.palette.primary.light,r.palette.primary.main,r.palette.primary.dark;const n=P(ot,{sx:{width:40,height:40,...t},children:P("img",{src:"/logo/logo-linksehat.png",alt:"LinkSehat"})});return e?P(kt,{children:n}):P(VI,{to:"/",children:n})}const bu=/^[a-z0-9]+(-[a-z0-9]+)*$/,In=Object.freeze({left:0,top:0,width:16,height:16,rotate:0,vFlip:!1,hFlip:!1});function Kx(e){return{...In,...e}}const hv=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),l=o.pop(),u={provider:o.length>0?o[0]:n,prefix:l,name:s};return t&&!xu(u)?null:u}const i=o[0],a=i.split("-");if(a.length>1){const s={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!xu(s)?null:s}if(r&&n===""){const s={provider:n,prefix:"",name:i};return t&&!xu(s,r)?null:s}return null},xu=(e,t)=>e?!!((e.provider===""||e.provider.match(bu))&&(t&&e.prefix===""||e.prefix.match(bu))&&e.name.match(bu)):!1;function tZ(e,t){const r={...e};for(const n in In){const o=n;if(t[o]!==void 0){const i=t[o];if(r[o]===void 0){r[o]=i;continue}switch(o){case"rotate":r[o]=(r[o]+i)%4;break;case"hFlip":case"vFlip":r[o]=i!==r[o];break;default:r[o]=i}}}return r}function FO(e,t,r=!1){function n(i,a){if(e.icons[i]!==void 0)return Object.assign({},e.icons[i]);if(a>5)return null;const s=e.aliases;if(s&&s[i]!==void 0){const u=s[i],c=n(u.parent,a+1);return c&&tZ(c,u)}const l=e.chars;return!a&&l&&l[i]!==void 0?n(l[i],a+1):null}const o=n(t,0);if(o)for(const i in In)o[i]===void 0&&e[i]!==void 0&&(o[i]=e[i]);return o&&r?Kx(o):o}function rZ(e){for(const t in In)if(e[t]!==void 0)return!0;return!1}function PM(e,t,r){r=r||{};const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(a=>{t(a,null),n.push(a)});const o=e.icons;Object.keys(o).forEach(a=>{const s=FO(e,a,!0);s&&(t(a,s),n.push(a))});const i=r.aliases||"all";if(i!=="none"&&typeof e.aliases=="object"){const a=e.aliases;Object.keys(a).forEach(s=>{if(i==="variations"&&rZ(a[s]))return;const l=FO(e,s,!0);l&&(t(s,l),n.push(s))})}return n}const L0={provider:"string",aliases:"object",not_found:"object"};for(const e in In)L0[e]=typeof In[e];function RM(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object")return null;for(const o in L0)if(e[o]!==void 0&&typeof e[o]!==L0[o])return null;const r=t.icons;for(const o in r){const i=r[o];if(!o.match(bu)||typeof i.body!="string")return null;for(const a in In)if(i[a]!==void 0&&typeof i[a]!=typeof In[a])return null}const n=t.aliases;if(n)for(const o in n){const i=n[o],a=i.parent;if(!o.match(bu)||typeof a!="string"||!r[a]&&!n[a])return null;for(const s in In)if(i[s]!==void 0&&typeof i[s]!=typeof In[s])return null}return t}const nZ=1;let Cd=Object.create(null);try{const e=window||self;e&&e._iconifyStorage.version===nZ&&(Cd=e._iconifyStorage.storage)}catch{}function oZ(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:Object.create(null)}}function Zi(e,t){Cd[e]===void 0&&(Cd[e]=Object.create(null));const r=Cd[e];return r[t]===void 0&&(r[t]=oZ(e,t)),r[t]}function Zx(e,t){if(!RM(t))return[];const r=Date.now();return PM(t,(n,o)=>{o?e.icons[n]=o:e.missing[n]=r})}function iZ(e,t,r){try{if(typeof r.body=="string")return e.icons[t]=Object.freeze(Kx(r)),!0}catch{}return!1}function aZ(e,t){const r=e.icons[t];return r===void 0?null:r}let rc=!1;function IM(e){return typeof e=="boolean"&&(rc=e),rc}function sZ(e){const t=typeof e=="string"?hv(e,!0,rc):e;return t?aZ(Zi(t.provider,t.prefix),t.name):null}function lZ(e,t){const r=hv(e,!0,rc);if(!r)return!1;const n=Zi(r.provider,r.prefix);return iZ(n,r.name,t)}function uZ(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=typeof e.provider=="string"?e.provider:""),rc&&t===""&&(typeof e.prefix!="string"||e.prefix==="")){let n=!1;return RM(e)&&(e.prefix="",PM(e,(o,i)=>{i&&lZ(o,i)&&(n=!0)})),n}if(typeof e.prefix!="string"||!xu({provider:t,prefix:e.prefix,name:"a"}))return!1;const r=Zi(t,e.prefix);return!!Zx(r,e)}const MM=Object.freeze({inline:!1,width:null,height:null,hAlign:"center",vAlign:"middle",slice:!1,hFlip:!1,vFlip:!1,rotate:0});function cZ(e,t){const r={};for(const n in e){const o=n;if(r[o]=e[o],t[o]===void 0)continue;const i=t[o];switch(o){case"inline":case"slice":typeof i=="boolean"&&(r[o]=i);break;case"hFlip":case"vFlip":i===!0&&(r[o]=!r[o]);break;case"hAlign":case"vAlign":typeof i=="string"&&i!==""&&(r[o]=i);break;case"width":case"height":(typeof i=="string"&&i!==""||typeof i=="number"&&i||i===null)&&(r[o]=i);break;case"rotate":typeof i=="number"&&(r[o]+=i);break}}return r}const fZ=/(-?[0-9.]*[0-9]+[0-9.]*)/g,dZ=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Gm(e,t,r){if(t===1)return e;if(r=r===void 0?100:r,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(fZ);if(n===null||!n.length)return e;const o=[];let i=n.shift(),a=dZ.test(i);for(;;){if(a){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*t*r)/r)}else o.push(i);if(i=n.shift(),i===void 0)return o.join("");a=!a}}function pZ(e){let t="";switch(e.hAlign){case"left":t+="xMin";break;case"right":t+="xMax";break;default:t+="xMid"}switch(e.vAlign){case"top":t+="YMin";break;case"bottom":t+="YMax";break;default:t+="YMid"}return t+=e.slice?" slice":" meet",t}function hZ(e,t){const r={left:e.left,top:e.top,width:e.width,height:e.height};let n=e.body;[e,t].forEach(s=>{const l=[],u=s.hFlip,c=s.vFlip;let d=s.rotate;u?c?d+=2:(l.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),l.push("scale(-1 1)"),r.top=r.left=0):c&&(l.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),l.push("scale(1 -1)"),r.top=r.left=0);let f;switch(d<0&&(d-=Math.floor(d/4)*4),d=d%4,d){case 1:f=r.height/2+r.top,l.unshift("rotate(90 "+f.toString()+" "+f.toString()+")");break;case 2:l.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:f=r.width/2+r.left,l.unshift("rotate(-90 "+f.toString()+" "+f.toString()+")");break}d%2===1&&((r.left!==0||r.top!==0)&&(f=r.left,r.left=r.top,r.top=f),r.width!==r.height&&(f=r.width,r.width=r.height,r.height=f)),l.length&&(n=''+n+"")});let o,i;t.width===null&&t.height===null?(i="1em",o=Gm(i,r.width/r.height)):t.width!==null&&t.height!==null?(o=t.width,i=t.height):t.height!==null?(i=t.height,o=Gm(i,r.width/r.height)):(o=t.width,i=Gm(o,r.height/r.width)),o==="auto"&&(o=r.width),i==="auto"&&(i=r.height),o=typeof o=="string"?o:o.toString()+"",i=typeof i=="string"?i:i.toString()+"";const a={attributes:{width:o,height:i,preserveAspectRatio:pZ(t),viewBox:r.left.toString()+" "+r.top.toString()+" "+r.width.toString()+" "+r.height.toString()},body:n};return t.inline&&(a.inline=!0),a}const vZ=/\sid="(\S+)"/g,mZ="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let gZ=0;function yZ(e,t=mZ){const r=[];let n;for(;n=vZ.exec(e);)r.push(n[1]);return r.length&&r.forEach(o=>{const i=typeof t=="function"?t(o):t+(gZ++).toString(),a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+i+"$3")}),e}const D0=Object.create(null);function bZ(e,t){D0[e]=t}function _0(e){return D0[e]||D0[""]}function Yx(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path===void 0?"/":e.path,maxURL:e.maxURL?e.maxURL:500,rotate:e.rotate?e.rotate:750,timeout:e.timeout?e.timeout:5e3,random:e.random===!0,index:e.index?e.index:0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Qx=Object.create(null),Cl=["https://api.simplesvg.com","https://api.unisvg.com"],Td=[];for(;Cl.length>0;)Cl.length===1||Math.random()>.5?Td.push(Cl.shift()):Td.push(Cl.pop());Qx[""]=Yx({resources:["https://api.iconify.design"].concat(Td)});function xZ(e,t){const r=Yx(t);return r===null?!1:(Qx[e]=r,!0)}function Xx(e){return Qx[e]}const NM=(e,t)=>{let r=e,n=r.indexOf("?")!==-1;function o(i){switch(typeof i){case"boolean":return i?"true":"false";case"number":return encodeURIComponent(i);case"string":return encodeURIComponent(i);default:throw new Error("Invalid parameter")}}return Object.keys(t).forEach(i=>{let a;try{a=o(t[i])}catch{return}r+=(n?"&":"?")+encodeURIComponent(i)+"="+a,n=!0}),r},LM={},kd={},wZ=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}return null};let BO=wZ();function EZ(e,t){const r=Xx(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(s=>{i=Math.max(i,s.length)});const a=NM(t+".json",{icons:""});n=r.maxURL-i-r.path.length-a.length}const o=e+":"+t;return kd[e]=r.path,LM[o]=n,n}function SZ(e){return e===404}const OZ=(e,t,r)=>{const n=[];let o=LM[t];o===void 0&&(o=EZ(e,t));const i="icons";let a={type:i,provider:e,prefix:t,icons:[]},s=0;return r.forEach((l,u)=>{s+=l.length+1,s>=o&&u>0&&(n.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=l.length),a.icons.push(l)}),n.push(a),n};function AZ(e){if(typeof e=="string"){if(kd[e]===void 0){const t=Xx(e);if(!t)return"/";kd[e]=t.path}return kd[e]}return"/"}const CZ=(e,t,r)=>{if(!BO){r("abort",424);return}let n=AZ(t.provider);switch(t.type){case"icons":{const i=t.prefix,s=t.icons.join(",");n+=NM(i+".json",{icons:s});break}case"custom":{const i=t.uri;n+=i.slice(0,1)==="/"?i.slice(1):i;break}default:r("abort",400);return}let o=503;BO(e+n).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{r(SZ(a)?"abort":"next",a)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{r("next",o)});return}setTimeout(()=>{r("success",i)})}).catch(()=>{r("next",o)})},TZ={prepare:OZ,send:CZ};function kZ(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const i=o.provider,a=o.prefix,s=o.name;r[i]===void 0&&(r[i]=Object.create(null));const l=r[i];l[a]===void 0&&(l[a]=Zi(i,a));const u=l[a];let c;u.icons[s]!==void 0?c=t.loaded:a===""||u.missing[s]!==void 0?c=t.missing:c=t.pending;const d={provider:i,prefix:a,name:s};c.push(d)}),t}const zo=Object.create(null),Km=Object.create(null);function DM(e,t){e.forEach(r=>{const n=r.provider;if(zo[n]===void 0)return;const o=zo[n],i=r.prefix,a=o[i];a&&(o[i]=a.filter(s=>s.id!==t))})}function PZ(e,t){Km[e]===void 0&&(Km[e]=Object.create(null));const r=Km[e];r[t]||(r[t]=!0,setTimeout(()=>{if(r[t]=!1,zo[e]===void 0||zo[e][t]===void 0)return;const n=zo[e][t].slice(0);if(!n.length)return;const o=Zi(e,t);let i=!1;n.forEach(a=>{const s=a.icons,l=s.pending.length;s.pending=s.pending.filter(u=>{if(u.prefix!==t)return!0;const c=u.name;if(o.icons[c]!==void 0)s.loaded.push({provider:e,prefix:t,name:c});else if(o.missing[c]!==void 0)s.missing.push({provider:e,prefix:t,name:c});else return i=!0,!0;return!1}),s.pending.length!==l&&(i||DM([{provider:e,prefix:t}],a.id),a.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),a.abort))})}))}let RZ=0;function IZ(e,t,r){const n=RZ++,o=DM.bind(null,r,n);if(!t.pending.length)return o;const i={id:n,icons:t,callback:e,abort:o};return r.forEach(a=>{const s=a.provider,l=a.prefix;zo[s]===void 0&&(zo[s]=Object.create(null));const u=zo[s];u[l]===void 0&&(u[l]=[]),u[l].push(i)}),o}function MZ(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const i=typeof o=="string"?hv(o,!1,r):o;(!t||xu(i,r))&&n.push({provider:i.provider,prefix:i.prefix,name:i.name})}),n}var jO={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function NZ(e,t,r,n){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let a;if(e.random){let S=e.resources.slice(0);for(a=[];S.length>1;){const E=Math.floor(Math.random()*S.length);a.push(S[E]),S=S.slice(0,E).concat(S.slice(E+1))}a=a.concat(S)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let l="pending",u=0,c,d=null,f=[],p=[];typeof n=="function"&&p.push(n);function h(){d&&(clearTimeout(d),d=null)}function v(){l==="pending"&&(l="aborted"),h(),f.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),f=[]}function g(S,E){E&&(p=[]),typeof S=="function"&&p.push(S)}function m(){return{startTime:s,payload:t,status:l,queriesSent:u,queriesPending:f.length,subscribe:g,abort:v}}function y(){l="failed",p.forEach(S=>{S(void 0,c)})}function x(){f.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),f=[]}function b(S,E,O){const C=E!=="success";switch(f=f.filter(A=>A!==S),l){case"pending":break;case"failed":if(C||!e.dataAfterTimeout)return;break;default:return}if(E==="abort"){c=O,y();return}if(C){c=O,f.length||(a.length?w():y());return}if(h(),x(),!e.random){const A=e.resources.indexOf(S.resource);A!==-1&&A!==e.index&&(e.index=A)}l="completed",p.forEach(A=>{A(O)})}function w(){if(l!=="pending")return;h();const S=a.shift();if(S===void 0){if(f.length){d=setTimeout(()=>{h(),l==="pending"&&(x(),y())},e.timeout);return}y();return}const E={status:"pending",resource:S,callback:(O,C)=>{b(E,O,C)}};f.push(E),u++,d=setTimeout(w,e.rotate),r(S,t,E.callback)}return setTimeout(w),m}function LZ(e){if(typeof e!="object"||typeof e.resources!="object"||!(e.resources instanceof Array)||!e.resources.length)throw new Error("Invalid Reduncancy configuration");const t=Object.create(null);let r;for(r in jO)e[r]!==void 0?t[r]=e[r]:t[r]=jO[r];return t}function _M(e){const t=LZ(e);let r=[];function n(){r=r.filter(s=>s().status==="pending")}function o(s,l,u){const c=NZ(t,s,l,(d,f)=>{n(),u&&u(d,f)});return r.push(c),c}function i(s){const l=r.find(u=>s(u));return l!==void 0?l:null}return{query:o,find:i,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:n}}function $O(){}const Zm=Object.create(null);function DZ(e){if(Zm[e]===void 0){const t=Xx(e);if(!t)return;const r=_M(t),n={config:t,redundancy:r};Zm[e]=n}return Zm[e]}function _Z(e,t,r){let n,o;if(typeof e=="string"){const i=_0(e);if(!i)return r(void 0,424),$O;o=i.send;const a=DZ(e);a&&(n=a.redundancy)}else{const i=Yx(e);if(i){n=_M(i);const a=e.resources?e.resources[0]:"",s=_0(a);s&&(o=s.send)}}return!n||!o?(r(void 0,424),$O):n.query(t,o,r)().abort}const F0={};function zO(){}const Oi=Object.create(null),Ym=Object.create(null),Qm=Object.create(null),Xm=Object.create(null);function FZ(e,t){Qm[e]===void 0&&(Qm[e]=Object.create(null));const r=Qm[e];r[t]||(r[t]=!0,setTimeout(()=>{r[t]=!1,PZ(e,t)}))}const qO=Object.create(null);function BZ(e,t,r){function n(){const s=(e===""?"":"@"+e+":")+t,l=Math.floor(Date.now()/6e4);qO[s]{i[t]=!1;const s=o[t];delete o[t];const l=_0(e);if(!l){n();return}l.prepare(e,t,s).forEach(c=>{_Z(e,c,(d,f)=>{const p=Zi(e,t);if(typeof d!="object"){if(f!==404)return;const h=Date.now();c.icons.forEach(v=>{p.missing[v]=h})}else try{const h=Zx(p,d);if(!h.length)return;const v=a[t];h.forEach(g=>{delete v[g]}),F0.store&&F0.store(e,d)}catch(h){console.error(h)}FZ(e,t)})})}))}const jZ=(e,t)=>{const r=MZ(e,!0,IM()),n=kZ(r);if(!n.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(n.loaded,n.missing,n.pending,zO)}),()=>{u=!1}}const o=Object.create(null),i=[];let a,s;n.pending.forEach(u=>{const c=u.provider,d=u.prefix;if(d===s&&c===a)return;a=c,s=d,i.push({provider:c,prefix:d}),Oi[c]===void 0&&(Oi[c]=Object.create(null));const f=Oi[c];f[d]===void 0&&(f[d]=Object.create(null)),o[c]===void 0&&(o[c]=Object.create(null));const p=o[c];p[d]===void 0&&(p[d]=[])});const l=Date.now();return n.pending.forEach(u=>{const c=u.provider,d=u.prefix,f=u.name,p=Oi[c][d];p[f]===void 0&&(p[f]=l,o[c][d].push(f))}),i.forEach(u=>{const c=u.provider,d=u.prefix;o[c][d].length&&BZ(c,d,o[c][d])}),t?IZ(t,n,i):zO},FM="iconify2",Ic="iconify",BM=Ic+"-count",jM=Ic+"-version",$M=36e5,$Z=168,Jx={local:!0,session:!0};let B0=!1;const zM={local:0,session:0},qM={local:[],session:[]};let Of=typeof window=="undefined"?{}:window;function VM(e){const t=e+"Storage";try{if(Of&&Of[t]&&typeof Of[t].length=="number")return Of[t]}catch{}return Jx[e]=!1,null}function ew(e,t,r){try{return e.setItem(BM,r.toString()),zM[t]=r,!0}catch{return!1}}function UM(e){const t=e.getItem(BM);if(t){const r=parseInt(t);return r||0}return 0}function zZ(e,t){try{e.setItem(jM,FM)}catch{}ew(e,t,0)}function qZ(e){try{const t=UM(e);for(let r=0;r{if(B0)return;B0=!0;const e=Math.floor(Date.now()/$M)-$Z;function t(r){const n=VM(r);if(!n)return;const o=i=>{const a=Ic+i.toString(),s=n.getItem(a);if(typeof s!="string")return!1;let l=!0;try{const u=JSON.parse(s);if(typeof u!="object"||typeof u.cached!="number"||u.cached0}}catch{l=!1}return l||n.removeItem(a),l};try{const i=n.getItem(jM);if(i!==FM){i&&qZ(n),zZ(n,r);return}let a=UM(n);for(let s=a-1;s>=0;s--)o(s)||(s===a-1?a--:qM[r].push(s));ew(n,r,a)}catch{}}for(const r in Jx)t(r)},VZ=(e,t)=>{B0||HM();function r(n){if(!Jx[n])return!1;const o=VM(n);if(!o)return!1;let i=qM[n].shift();if(i===void 0&&(i=zM[n],!ew(o,n,i+1)))return!1;try{const a={cached:Math.floor(Date.now()/$M),provider:e,data:t};o.setItem(Ic+i.toString(),JSON.stringify(a))}catch{return!1}return!0}!Object.keys(t.icons).length||(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))},WM=/[\s,]+/;function UZ(e,t){t.split(WM).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function HZ(e,t){t.split(WM).forEach(r=>{const n=r.trim();switch(n){case"left":case"center":case"right":e.hAlign=n;break;case"top":case"middle":case"bottom":e.vAlign=n;break;case"slice":case"crop":e.slice=!0;break;case"meet":e.slice=!1}})}function WZ(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-r.length));return isNaN(i)?0:(i=i/o,i%1===0?n(i):0)}}return t}const GZ={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img",style:{}},KZ={...MM,inline:!0},ZZ=(e,t,r,n)=>{const o=r?KZ:MM,i=cZ(o,t),a=typeof t.style=="object"&&t.style!==null?t.style:{},s={...GZ,ref:n,style:a};for(let d in t){const f=t[d];if(f!==void 0)switch(d){case"icon":case"style":case"children":case"onLoad":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":i[d]=f===!0||f==="true"||f===1;break;case"flip":typeof f=="string"&&UZ(i,f);break;case"align":typeof f=="string"&&HZ(i,f);break;case"color":a.color=f;break;case"rotate":typeof f=="string"?i[d]=WZ(f):typeof f=="number"&&(i[d]=f);break;case"ariaHidden":case"aria-hidden":f!==!0&&f!=="true"&&delete s["aria-hidden"];break;default:o[d]===void 0&&(s[d]=f)}}const l=hZ(e,i);let u=0,c=t.id;typeof c=="string"&&(c=c.replace(/-/g,"_")),s.dangerouslySetInnerHTML={__html:yZ(l.body,c?()=>c+"ID"+u++:"iconifyReact")};for(let d in l.attributes)s[d]=l.attributes[d];return l.inline&&a.verticalAlign===void 0&&(a.verticalAlign="-0.125em"),_e.createElement("svg",s)};IM(!0);bZ("",TZ);if(typeof document!="undefined"&&typeof window!="undefined"){F0.store=VZ,HM();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!uZ(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;xZ(r,o)||console.error(n)}catch{console.error(n)}}}}class GM extends _e.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const r=this.state,n=this.props.icon;if(typeof n=="object"&&n!==null&&typeof n.body=="string"){this._icon="",this._abortLoading(),(t||r.icon===null)&&this._setData({data:Kx(n)});return}let o;if(typeof n!="string"||(o=hv(n,!1,!0))===null){this._abortLoading(),this._setData(null);return}const i=sZ(o);if(i===null){(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),this._loading={name:n,abort:jZ([o],this._checkIcon.bind(this,!1))});return}if(this._icon!==n||r.icon===null){this._abortLoading(),this._icon=n;const a=["iconify"];o.prefix!==""&&a.push("iconify--"+o.prefix),o.provider!==""&&a.push("iconify--"+o.provider),this._setData({data:i,classes:a}),this.props.onLoad&&this.props.onLoad(n)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,r=this.state.icon;if(r===null)return t.children?t.children:_e.createElement("span",{});let n=t;return r.classes&&(n={...t,className:(typeof t.className=="string"?t.className+" ":"")+r.classes.join(" ")}),ZZ(r.data,n,t._inline,t._ref)}}const YZ=_e.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!1};return _e.createElement(GM,n)});_e.forwardRef(function(t,r){const n={...t,_ref:r,_inline:!0};return _e.createElement(GM,n)});function Nr({icon:e,sx:t,...r}){return P(ot,{component:YZ,icon:e,sx:{...t},...r})}var j0=function(e,t){return j0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},j0(e,t)};function KM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");j0(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var be=function(){return be=Object.assign||function(t){for(var r,n=1,o=arguments.length;n0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function Wr(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n-1||/[A-Z]/.test(e))}var Pp={};function bY(e){Object.assign(Pp,e)}var q0=["","X","Y","Z"],xY=["translate","scale","rotate","skew"],oc=["transformPerspective","x","y","z"];xY.forEach(function(e){return q0.forEach(function(t){return oc.push(e+t)})});function wY(e,t){return oc.indexOf(e)-oc.indexOf(t)}var EY=new Set(oc);function Mc(e){return EY.has(e)}var SY=new Set(["originX","originY","originZ"]);function n4(e){return SY.has(e)}function o4(e,t){var r=t.layout,n=t.layoutId;return Mc(e)||n4(e)||(r||n!==void 0)&&(!!Pp[e]||e==="opacity")}var oo=function(e){return Boolean(e!==null&&typeof e=="object"&&e.getVelocity)},OY={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function AY(e,t,r,n){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=a===void 0?!0:a,l=t.allowTransformNone,u=l===void 0?!0:l,c="";i.sort(wY);for(var d=!1,f=i.length,p=0;pr=>Math.max(Math.min(r,t),e),Eu=e=>e%1?Number(e.toFixed(5)):e,ic=/(-)?([\d]*\.?[\d])+/g,V0=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,kY=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Nc(e){return typeof e=="string"}const Yi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Su=Object.assign(Object.assign({},Yi),{transform:a4(0,1)}),Af=Object.assign(Object.assign({},Yi),{default:1}),Lc=e=>({test:t=>Nc(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),yo=Lc("deg"),Fn=Lc("%"),Be=Lc("px"),PY=Lc("vh"),RY=Lc("vw"),HO=Object.assign(Object.assign({},Fn),{parse:e=>Fn.parse(e)/100,transform:e=>Fn.transform(e*100)}),ow=(e,t)=>r=>Boolean(Nc(r)&&kY.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),s4=(e,t,r)=>n=>{if(!Nc(n))return n;const[o,i,a,s]=n.match(ic);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Ai={test:ow("hsl","hue"),parse:s4("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Fn.transform(Eu(t))+", "+Fn.transform(Eu(r))+", "+Eu(Su.transform(n))+")"},IY=a4(0,255),Jm=Object.assign(Object.assign({},Yi),{transform:e=>Math.round(IY(e))}),Ro={test:ow("rgb","red"),parse:s4("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Jm.transform(e)+", "+Jm.transform(t)+", "+Jm.transform(r)+", "+Eu(Su.transform(n))+")"};function MY(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const U0={test:ow("#"),parse:MY,transform:Ro.transform},sr={test:e=>Ro.test(e)||U0.test(e)||Ai.test(e),parse:e=>Ro.test(e)?Ro.parse(e):Ai.test(e)?Ai.parse(e):U0.parse(e),transform:e=>Nc(e)?e:e.hasOwnProperty("red")?Ro.transform(e):Ai.transform(e)},l4="${c}",u4="${n}";function NY(e){var t,r,n,o;return isNaN(e)&&Nc(e)&&((r=(t=e.match(ic))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(V0))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function c4(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(V0);n&&(r=n.length,e=e.replace(V0,l4),t.push(...n.map(sr.parse)));const o=e.match(ic);return o&&(e=e.replace(ic,u4),t.push(...o.map(Yi.parse))),{values:t,numColors:r,tokenised:e}}function f4(e){return c4(e).values}function d4(e){const{values:t,numColors:r,tokenised:n}=c4(e),o=t.length;return i=>{let a=n;for(let s=0;stypeof e=="number"?0:e;function DY(e){const t=f4(e);return d4(e)(t.map(LY))}const io={test:NY,parse:f4,createTransformer:d4,getAnimatableNone:DY},_Y=new Set(["brightness","contrast","saturate","opacity"]);function FY(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(ic)||[];if(!n)return e;const o=r.replace(n,"");let i=_Y.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const BY=/([a-z-]*)\(.*?\)/g,H0=Object.assign(Object.assign({},io),{getAnimatableNone:e=>{const t=e.match(BY);return t?t.map(FY).join(" "):e}});var WO=be(be({},Yi),{transform:Math.round}),p4={borderWidth:Be,borderTopWidth:Be,borderRightWidth:Be,borderBottomWidth:Be,borderLeftWidth:Be,borderRadius:Be,radius:Be,borderTopLeftRadius:Be,borderTopRightRadius:Be,borderBottomRightRadius:Be,borderBottomLeftRadius:Be,width:Be,maxWidth:Be,height:Be,maxHeight:Be,size:Be,top:Be,right:Be,bottom:Be,left:Be,padding:Be,paddingTop:Be,paddingRight:Be,paddingBottom:Be,paddingLeft:Be,margin:Be,marginTop:Be,marginRight:Be,marginBottom:Be,marginLeft:Be,rotate:yo,rotateX:yo,rotateY:yo,rotateZ:yo,scale:Af,scaleX:Af,scaleY:Af,scaleZ:Af,skew:yo,skewX:yo,skewY:yo,distance:Be,translateX:Be,translateY:Be,translateZ:Be,x:Be,y:Be,z:Be,perspective:Be,transformPerspective:Be,opacity:Su,originX:HO,originY:HO,originZ:Be,zIndex:WO,fillOpacity:Su,strokeOpacity:Su,numOctaves:WO};function iw(e,t,r,n){var o,i=e.style,a=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,d=!1,f=!0;for(var p in t){var h=t[p];if(i4(p)){a[p]=h;continue}var v=p4[p],g=TY(h,v);if(Mc(p)){if(c=!0,s[p]=g,l.push(p),!f)continue;h!==((o=v.default)!==null&&o!==void 0?o:0)&&(f=!1)}else n4(p)?(u[p]=g,d=!0):i[p]=g}c?i.transform=AY(e,r,f,n):n?i.transform=n({},""):!t.transform&&i.transform&&(i.transform="none"),d&&(i.transformOrigin=CY(u))}var aw=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function h4(e,t,r){for(var n in t)!oo(t[n])&&!o4(n,r)&&(e[n]=t[n])}function jY(e,t,r){var n=e.transformTemplate;return R.exports.useMemo(function(){var o=aw();iw(o,t,{enableHardwareAcceleration:!r},n);var i=o.vars,a=o.style;return be(be({},i),a)},[t])}function $Y(e,t,r){var n=e.style||{},o={};return h4(o,n,e),Object.assign(o,jY(e,t,r)),e.transformValues&&(o=e.transformValues(o)),o}function zY(e,t,r){var n={},o=$Y(e,t,r);return Boolean(e.drag)&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),n.style=o,n}var qY=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Rp(e){return qY.has(e)}var v4=function(e){return!Rp(e)};function VY(e){!e||(v4=function(t){return t.startsWith("on")?!Rp(t):e(t)})}try{VY(require("@emotion/is-prop-valid").default)}catch{}function UY(e,t,r){var n={};for(var o in e)(v4(o)||r===!0&&Rp(o)||!t&&!Rp(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function GO(e,t,r){return typeof e=="string"?e:Be.transform(t+r*e)}function HY(e,t,r){var n=GO(t,e.x,e.width),o=GO(r,e.y,e.height);return"".concat(n," ").concat(o)}var WY={offset:"stroke-dashoffset",array:"stroke-dasharray"},GY={offset:"strokeDashoffset",array:"strokeDasharray"};function KY(e,t,r,n,o){r===void 0&&(r=1),n===void 0&&(n=0),o===void 0&&(o=!0),e.pathLength=1;var i=o?WY:GY;e[i.offset]=Be.transform(-n);var a=Be.transform(t),s=Be.transform(r);e[i.array]="".concat(a," ").concat(s)}function sw(e,t,r,n){var o=t.attrX,i=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=u===void 0?1:u,d=t.pathOffset,f=d===void 0?0:d,p=Sr(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);iw(e,p,r,n),e.attrs=e.style,e.style={};var h=e.attrs,v=e.style,g=e.dimensions;h.transform&&(g&&(v.transform=h.transform),delete h.transform),g&&(a!==void 0||s!==void 0||v.transform)&&(v.transformOrigin=HY(g,a!==void 0?a:.5,s!==void 0?s:.5)),o!==void 0&&(h.x=o),i!==void 0&&(h.y=i),l!==void 0&&KY(h,l,c,f,!1)}var m4=function(){return be(be({},aw()),{attrs:{}})};function ZY(e,t){var r=R.exports.useMemo(function(){var o=m4();return sw(o,t,{enableHardwareAcceleration:!1},e.transformTemplate),be(be({},o.attrs),{style:be({},o.style)})},[t]);if(e.style){var n={};h4(n,e.style,e),r.style=be(be({},n),r.style)}return r}function YY(e){e===void 0&&(e=!1);var t=function(r,n,o,i,a,s){var l=a.latestValues,u=nw(r)?ZY:zY,c=u(n,l,s),d=UY(n,typeof r=="string",e),f=be(be(be({},d),c),{ref:i});return o&&(f["data-projection-id"]=o),R.exports.createElement(r,f)};return t}var QY=/([a-z])([A-Z])/g,XY="$1-$2",g4=function(e){return e.replace(QY,XY).toLowerCase()};function y4(e,t,r,n){var o=t.style,i=t.vars;Object.assign(e.style,o,n&&n.getProjectionStyles(r));for(var a in i)e.style.setProperty(a,i[a])}var b4=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function x4(e,t,r,n){y4(e,t,void 0,n);for(var o in t.attrs)e.setAttribute(b4.has(o)?o:g4(o),t.attrs[o])}function lw(e){var t=e.style,r={};for(var n in t)(oo(t[n])||o4(n,e))&&(r[n]=t[n]);return r}function w4(e){var t=lw(e);for(var r in e)if(oo(e[r])){var n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}function uw(e){return typeof e=="object"&&typeof e.start=="function"}var ac=function(e){return Array.isArray(e)},JY=function(e){return Boolean(e&&typeof e=="object"&&e.mix&&e.toValue)},E4=function(e){return ac(e)?e[e.length-1]||0:e};function Pd(e){var t=oo(e)?e.get():e;return JY(t)?t.toValue():t}function KO(e,t,r,n){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:eQ(t,r,n,o),renderState:i()};return a&&(s.mount=function(l){return a(t,l,s)}),s}var S4=function(e){return function(t,r){var n=R.exports.useContext(vv),o=R.exports.useContext(mv);return r?KO(e,t,n,o):bv(function(){return KO(e,t,n,o)})}};function eQ(e,t,r,n){var o={},i=(r==null?void 0:r.initial)===!1,a=n(e);for(var s in a)o[s]=Pd(a[s]);var l=e.initial,u=e.animate,c=yv(e),d=e4(e);t&&d&&!c&&e.inherit!==!1&&(l!=null||(l=t.initial),u!=null||(u=t.animate));var f=i||l===!1,p=f?u:l;if(p&&typeof p!="boolean"&&!uw(p)){var h=Array.isArray(p)?p:[p];h.forEach(function(v){var g=JM(e,v);if(!!g){var m=g.transitionEnd;g.transition;var y=Sr(g,["transitionEnd","transition"]);for(var x in y){var b=y[x];if(Array.isArray(b)){var w=f?b.length-1:0;b=b[w]}b!==null&&(o[x]=b)}for(var x in m)o[x]=m[x]}})}return o}var tQ={useVisualState:S4({scrapeMotionValuesFromProps:w4,createRenderState:m4,onMount:function(e,t,r){var n=r.renderState,o=r.latestValues;try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}sw(n,o,{enableHardwareAcceleration:!1},e.transformTemplate),x4(t,n)}})},rQ={useVisualState:S4({scrapeMotionValuesFromProps:lw,createRenderState:aw})};function nQ(e,t,r,n,o){var i=t.forwardMotionProps,a=i===void 0?!1:i,s=nw(e)?tQ:rQ;return be(be({},s),{preloadedFeatures:r,useRender:YY(a),createVisualElement:n,projectionNodeConstructor:o,Component:e})}var lt;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(lt||(lt={}));function xv(e,t,r,n){return n===void 0&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function W0(e,t,r,n){R.exports.useEffect(function(){var o=e.current;if(r&&o)return xv(o,t,r,n)},[e,t,r,n])}function oQ(e){var t=e.whileFocus,r=e.visualElement,n=function(){var i;(i=r.animationState)===null||i===void 0||i.setActive(lt.Focus,!0)},o=function(){var i;(i=r.animationState)===null||i===void 0||i.setActive(lt.Focus,!1)};W0(r,"focus",t?n:void 0),W0(r,"blur",t?o:void 0)}function O4(e){return typeof PointerEvent!="undefined"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function A4(e){var t=!!e.touches;return t}function iQ(e){return function(t){var r=t instanceof MouseEvent,n=!r||r&&t.button===0;n&&e(t)}}var aQ={pageX:0,pageY:0};function sQ(e,t){t===void 0&&(t="page");var r=e.touches[0]||e.changedTouches[0],n=r||aQ;return{x:n[t+"X"],y:n[t+"Y"]}}function lQ(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function cw(e,t){return t===void 0&&(t="page"),{point:A4(e)?sQ(e,t):lQ(e,t)}}var C4=function(e,t){t===void 0&&(t=!1);var r=function(n){return e(n,cw(n))};return t?iQ(r):r},uQ=function(){return Vs&&window.onpointerdown===null},cQ=function(){return Vs&&window.ontouchstart===null},fQ=function(){return Vs&&window.onmousedown===null},dQ={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},pQ={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function T4(e){return uQ()?e:cQ()?pQ[e]:fQ()?dQ[e]:e}function ns(e,t,r,n){return xv(e,T4(t),C4(r,t==="pointerdown"),n)}function Ip(e,t,r,n){return W0(e,T4(t),r&&C4(r,t==="pointerdown"),n)}function k4(e){var t=null;return function(){var r=function(){t=null};return t===null?(t=e,r):!1}}var ZO=k4("dragHorizontal"),YO=k4("dragVertical");function P4(e){var t=!1;if(e==="y")t=YO();else if(e==="x")t=ZO();else{var r=ZO(),n=YO();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function R4(){var e=P4(!0);return e?(e(),!1):!0}function QO(e,t,r){return function(n,o){var i;!O4(n)||R4()||((i=e.animationState)===null||i===void 0||i.setActive(lt.Hover,t),r==null||r(n,o))}}function hQ(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,o=e.visualElement;Ip(o,"pointerenter",t||n?QO(o,!0,t):void 0,{passive:!t}),Ip(o,"pointerleave",r||n?QO(o,!1,r):void 0,{passive:!r})}var I4=function(e,t){return t?e===t?!0:I4(e,t.parentElement):!1};function M4(e){return R.exports.useEffect(function(){return function(){return e()}},[])}const Mp=(e,t,r)=>Math.min(Math.max(r,e),t),eg=.001,vQ=.01,XO=10,mQ=.05,gQ=1;function yQ({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;XZ(e<=XO*1e3);let a=1-t;a=Mp(mQ,gQ,a),e=Mp(vQ,XO,e/1e3),a<1?(o=u=>{const c=u*a,d=c*e,f=c-r,p=G0(u,a),h=Math.exp(-d);return eg-f/p*h},i=u=>{const d=u*a*e,f=d*r+r,p=Math.pow(a,2)*Math.pow(u,2)*e,h=Math.exp(-d),v=G0(Math.pow(u,2),a);return(-o(u)+eg>0?-1:1)*((f-p)*h)/v}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-eg+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const s=5/e,l=xQ(o,i,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const bQ=12;function xQ(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function SQ(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!JO(e,EQ)&&JO(e,wQ)){const r=yQ(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function fw(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:o}=e,i=Sr(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=SQ(i),p=eA,h=eA;function v(){const g=c?-(c/1e3):0,m=r-t,y=l/(2*Math.sqrt(s*u)),x=Math.sqrt(s/u)/1e3;if(o===void 0&&(o=Math.min(Math.abs(r-t)/100,.4)),y<1){const b=G0(x,y);p=w=>{const S=Math.exp(-y*x*w);return r-S*((g+y*x*m)/b*Math.sin(b*w)+m*Math.cos(b*w))},h=w=>{const S=Math.exp(-y*x*w);return y*x*S*(Math.sin(b*w)*(g+y*x*m)/b+m*Math.cos(b*w))-S*(Math.cos(b*w)*(g+y*x*m)-b*m*Math.sin(b*w))}}else if(y===1)p=b=>r-Math.exp(-x*b)*(m+(g+x*m)*b);else{const b=x*Math.sqrt(y*y-1);p=w=>{const S=Math.exp(-y*x*w),E=Math.min(b*w,300);return r-S*((g+y*x*m)*Math.sinh(E)+b*m*Math.cosh(E))/b}}}return v(),{next:g=>{const m=p(g);if(f)a.done=g>=d;else{const y=h(g)*1e3,x=Math.abs(y)<=n,b=Math.abs(r-m)<=o;a.done=x&&b}return a.value=a.done?r:m,a},flipTarget:()=>{c=-c,[t,r]=[r,t],v()}}}fw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const eA=e=>0,sc=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},St=(e,t,r)=>-r*e+r*t+e;function tg(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function tA({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=tg(l,s,e+1/3),i=tg(l,s,e),a=tg(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const OQ=(e,t,r)=>{const n=e*e,o=t*t;return Math.sqrt(Math.max(0,r*(o-n)+n))},AQ=[U0,Ro,Ai],rA=e=>AQ.find(t=>t.test(e)),N4=(e,t)=>{let r=rA(e),n=rA(t),o=r.parse(e),i=n.parse(t);r===Ai&&(o=tA(o),r=Ro),n===Ai&&(i=tA(i),n=Ro);const a=Object.assign({},o);return s=>{for(const l in a)l!=="alpha"&&(a[l]=OQ(o[l],i[l],s));return a.alpha=St(o.alpha,i.alpha,s),r.transform(a)}},K0=e=>typeof e=="number",CQ=(e,t)=>r=>t(e(r)),wv=(...e)=>e.reduce(CQ);function L4(e,t){return K0(e)?r=>St(e,t,r):sr.test(e)?N4(e,t):_4(e,t)}const D4=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>L4(i,t[a]));return i=>{for(let a=0;a{const r=Object.assign(Object.assign({},e),t),n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=L4(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}};function nA(e){const t=io.parse(e),r=t.length;let n=0,o=0,i=0;for(let a=0;a{const r=io.createTransformer(t),n=nA(e),o=nA(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?wv(D4(n.parsed,o.parsed),r):a=>`${a>0?t:e}`},kQ=(e,t)=>r=>St(e,t,r);function PQ(e){if(typeof e=="number")return kQ;if(typeof e=="string")return sr.test(e)?N4:_4;if(Array.isArray(e))return D4;if(typeof e=="object")return TQ}function RQ(e,t,r){const n=[],o=r||PQ(e[0]),i=e.length-1;for(let a=0;ar(sc(e,t,n))}function MQ(e,t){const r=e.length,n=r-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[n]&&(i=n-1,a=!0),!a){let l=1;for(;l