From d24893a989ca1450a4a733e71eb577a89a2f824e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Thu, 3 Jul 2025 15:38:31 +0200 Subject: [PATCH 1/2] feat: reset frontend value to last value on exception When changing a value in the frontend and this operation triggers an exception in the backend, reset the frontend value to the last known value. --- frontend/src/components/GenericComponent.tsx | 2 +- frontend/src/components/NumberComponent.tsx | 20 ++++++++++++++++---- frontend/src/components/SliderComponent.tsx | 5 ++++- frontend/src/socket.ts | 2 +- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/GenericComponent.tsx b/frontend/src/components/GenericComponent.tsx index 31d3cba..fc2e435 100644 --- a/frontend/src/components/GenericComponent.tsx +++ b/frontend/src/components/GenericComponent.tsx @@ -50,7 +50,7 @@ const createDisplayNameFromAccessPath = (fullAccessPath: string): string => { function changeCallback( value: SerializedObject, - callback: (ack: unknown) => void = () => {}, + callback: (ack: undefined | SerializedObject) => void = () => {}, ) { updateValue(value, callback); } diff --git a/frontend/src/components/NumberComponent.tsx b/frontend/src/components/NumberComponent.tsx index b97b1b5..60b8e11 100644 --- a/frontend/src/components/NumberComponent.tsx +++ b/frontend/src/components/NumberComponent.tsx @@ -38,7 +38,10 @@ interface NumberComponentProps { isInstantUpdate: boolean; unit?: string; addNotification: (message: string, levelname?: LevelName) => void; - changeCallback?: (value: SerializedObject, callback?: (ack: unknown) => void) => void; + changeCallback?: ( + value: SerializedObject, + callback?: (ack: undefined | SerializedObject) => void, + ) => void; displayName?: string; id: string; } @@ -217,6 +220,15 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => { id, } = props; + const handleChange = (newValue: SerializedObject) => { + changeCallback(newValue, (result: undefined | SerializedObject) => { + if (result === undefined) return; + if (result.type == "Exception") { + setInputString(value.toString()); + } + }); + }; + // Create a state for the cursor position const cursorPositionRef = useRef(null); @@ -319,7 +331,7 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => { }; } - changeCallback(serializedObject); + handleChange(serializedObject); return; } else { console.debug(key); @@ -350,7 +362,7 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => { }; } - changeCallback(serializedObject); + handleChange(serializedObject); } setInputString(newValue); @@ -384,7 +396,7 @@ export const NumberComponent = React.memo((props: NumberComponentProps) => { }; } - changeCallback(serializedObject); + handleChange(serializedObject); } }; useEffect(() => { diff --git a/frontend/src/components/SliderComponent.tsx b/frontend/src/components/SliderComponent.tsx index e6405ea..70c659c 100644 --- a/frontend/src/components/SliderComponent.tsx +++ b/frontend/src/components/SliderComponent.tsx @@ -19,7 +19,10 @@ interface SliderComponentProps { stepSize: NumberObject; isInstantUpdate: boolean; addNotification: (message: string, levelname?: LevelName) => void; - changeCallback?: (value: SerializedObject, callback?: (ack: unknown) => void) => void; + changeCallback?: ( + value: SerializedObject, + callback?: (ack: undefined | SerializedObject) => void, + ) => void; displayName: string; id: string; } diff --git a/frontend/src/socket.ts b/frontend/src/socket.ts index 71d3402..ebef0be 100644 --- a/frontend/src/socket.ts +++ b/frontend/src/socket.ts @@ -28,7 +28,7 @@ export const socket = io(URL, { export const updateValue = ( serializedObject: SerializedObject, - callback?: (ack: unknown) => void, + callback?: (ack: undefined | SerializedObject) => void, ) => { if (callback) { socket.emit( From 8615bdeadcea732658ad9b81284652902ec79606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Thu, 3 Jul 2025 15:52:32 +0200 Subject: [PATCH 2/2] npm run build --- .../{index-XZbNXHJp.js => index-CKS_bS2p.js} | 22 +++++++++---------- src/pydase/frontend/index.html | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) rename src/pydase/frontend/assets/{index-XZbNXHJp.js => index-CKS_bS2p.js} (82%) diff --git a/src/pydase/frontend/assets/index-XZbNXHJp.js b/src/pydase/frontend/assets/index-CKS_bS2p.js similarity index 82% rename from src/pydase/frontend/assets/index-XZbNXHJp.js rename to src/pydase/frontend/assets/index-CKS_bS2p.js index 32133fa..d3fc47d 100644 --- a/src/pydase/frontend/assets/index-XZbNXHJp.js +++ b/src/pydase/frontend/assets/index-CKS_bS2p.js @@ -14,7 +14,7 @@ function P_(n,r){for(var i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch{}}return n(),pd.exports=hA(),pd.exports}var yA=KS();const Qa=_a(yA),H0={disabled:!1},FS=Xe.createContext(null);var vA=function(r){return r.scrollTop},lo="unmounted",Sa="exited",Ln="entering",Lr="entered",Fi="exiting",Kr=function(n){eA(r,n);function r(l,u){var c;c=n.call(this,l,u)||this;var d=u,p=d&&!d.isMounting?l.enter:l.appear,h;return c.appearStatus=null,l.in?p?(h=Sa,c.appearStatus=Ln):h=Lr:l.unmountOnExit||l.mountOnEnter?h=lo:h=Sa,c.state={status:h},c.nextCallback=null,c}r.getDerivedStateFromProps=function(u,c){var d=u.in;return d&&c.status===lo?{status:Sa}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(u){var c=null;if(u!==this.props){var d=this.state.status;this.props.in?d!==Ln&&d!==Lr&&(c=Ln):(d===Ln||d===Lr)&&(c=Fi)}this.updateStatus(!1,c)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var u=this.props.timeout,c,d,p;return c=d=p=u,u!=null&&typeof u!="number"&&(c=u.exit,d=u.enter,p=u.appear!==void 0?u.appear:d),{exit:c,enter:d,appear:p}},i.updateStatus=function(u,c){if(u===void 0&&(u=!1),c!==null)if(this.cancelNextCallback(),c===Ln){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:Qa.findDOMNode(this);d&&vA(d)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sa&&this.setState({status:lo})},i.performEnter=function(u){var c=this,d=this.props.enter,p=this.context?this.context.isMounting:u,h=this.props.nodeRef?[p]:[Qa.findDOMNode(this),p],y=h[0],m=h[1],g=this.getTimeouts(),S=p?g.appear:g.enter;if(!u&&!d||H0.disabled){this.safeSetState({status:Lr},function(){c.props.onEntered(y)});return}this.props.onEnter(y,m),this.safeSetState({status:Ln},function(){c.props.onEntering(y,m),c.onTransitionEnd(S,function(){c.safeSetState({status:Lr},function(){c.props.onEntered(y,m)})})})},i.performExit=function(){var u=this,c=this.props.exit,d=this.getTimeouts(),p=this.props.nodeRef?void 0:Qa.findDOMNode(this);if(!c||H0.disabled){this.safeSetState({status:Sa},function(){u.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:Fi},function(){u.props.onExiting(p),u.onTransitionEnd(d.exit,function(){u.safeSetState({status:Sa},function(){u.props.onExited(p)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(u,c){c=this.setNextCallback(c),this.setState(u,c)},i.setNextCallback=function(u){var c=this,d=!0;return this.nextCallback=function(p){d&&(d=!1,c.nextCallback=null,u(p))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},i.onTransitionEnd=function(u,c){this.setNextCallback(c);var d=this.props.nodeRef?this.props.nodeRef.current:Qa.findDOMNode(this),p=u==null&&!this.props.addEndListener;if(!d||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],y=h[0],m=h[1];this.props.addEndListener(y,m)}u!=null&&setTimeout(this.nextCallback,u)},i.render=function(){var u=this.state.status;if(u===lo)return null;var c=this.props,d=c.children;c.in,c.mountOnEnter,c.unmountOnExit,c.appear,c.enter,c.exit,c.timeout,c.addEndListener,c.onEnter,c.onEntering,c.onEntered,c.onExit,c.onExiting,c.onExited,c.nodeRef;var p=er(c,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Xe.createElement(FS.Provider,{value:null},typeof d=="function"?d(u,p):Xe.cloneElement(Xe.Children.only(d),p))},r}(Xe.Component);Kr.contextType=FS;Kr.propTypes={};function $i(){}Kr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$i,onEntering:$i,onEntered:$i,onExit:$i,onExiting:$i,onExited:$i};Kr.UNMOUNTED=lo;Kr.EXITED=Sa;Kr.ENTERING=Ln;Kr.ENTERED=Lr;Kr.EXITING=Fi;function ZS(n){return n.code==="Escape"||n.keyCode===27}function mA(){const n=x.version.split(".");return{major:+n[0],minor:+n[1],patch:+n[2]}}function Za(n){if(!n||typeof n=="function")return null;const{major:r}=mA();return r>=19?n.props.ref:n.ref}const Cs=!!(typeof window<"u"&&window.document&&window.document.createElement);var Sh=!1,xh=!1;try{var hd={get passive(){return Sh=!0},get once(){return xh=Sh=!0}};Cs&&(window.addEventListener("test",hd,hd),window.removeEventListener("test",hd,!0))}catch{}function gA(n,r,i,l){if(l&&typeof l!="boolean"&&!xh){var u=l.once,c=l.capture,d=i;!xh&&u&&(d=i.__once||function p(h){this.removeEventListener(r,p,c),i.call(this,h)},i.__once=d),n.addEventListener(r,d,Sh?l:c)}n.addEventListener(r,i,l)}function bA(n,r,i,l){var u=l&&typeof l!="boolean"?l.capture:l;n.removeEventListener(r,i,u),i.__once&&n.removeEventListener(r,i.__once,u)}function Ur(n,r,i,l){return gA(n,r,i,l),function(){bA(n,r,i,l)}}function SA(n,r,i,l){if(l===void 0&&(l=!0),n){var u=document.createEvent("HTMLEvents");u.initEvent(r,i,l),n.dispatchEvent(u)}}function xA(n){var r=Gr(n,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function EA(n,r,i){i===void 0&&(i=5);var l=!1,u=setTimeout(function(){l||SA(n,"transitionend",!0)},r+i),c=Ur(n,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(u),c()}}function OA(n,r,i,l){i==null&&(i=xA(n)||0);var u=EA(n,i,l),c=Ur(n,"transitionend",r);return function(){u(),c()}}function G0(n,r){const i=Gr(n,r)||"",l=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*l}function Kh(n,r){const i=G0(n,"transitionDuration"),l=G0(n,"transitionDelay"),u=OA(n,c=>{c.target===n&&(u(),r(c))},i+l)}function Jl(...n){return n.filter(r=>r!=null).reduce((r,i)=>{if(typeof i!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return r===null?i:function(...u){r.apply(this,u),i.apply(this,u)}},null)}function IS(n){n.offsetHeight}const Y0=n=>!n||typeof n=="function"?n:r=>{n.current=r};function TA(n,r){const i=Y0(n),l=Y0(r);return u=>{i&&i(u),l&&l(u)}}function Fh(n,r){return x.useMemo(()=>TA(n,r),[n,r])}function Ss(n){return n&&"setState"in n?Qa.findDOMNode(n):n??null}const Ns=Xe.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:l,onExiting:u,onExited:c,addEndListener:d,children:p,childRef:h,...y},m)=>{const g=x.useRef(null),S=Fh(g,h),R=$=>{S(Ss($))},_=$=>O=>{$&&g.current&&$(g.current,O)},E=x.useCallback(_(n),[n]),C=x.useCallback(_(r),[r]),j=x.useCallback(_(i),[i]),M=x.useCallback(_(l),[l]),B=x.useCallback(_(u),[u]),X=x.useCallback(_(c),[c]),A=x.useCallback(_(d),[d]);return T.jsx(Kr,{ref:m,...y,onEnter:E,onEntered:j,onEntering:C,onExit:M,onExited:X,onExiting:B,addEndListener:A,nodeRef:g,children:typeof p=="function"?($,O)=>p($,{...O,ref:R}):Xe.cloneElement(p,{ref:R})})});Ns.displayName="TransitionWrapper";const _A={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function AA(n,r){const i=`offset${n[0].toUpperCase()}${n.slice(1)}`,l=r[i],u=_A[n];return l+parseInt(Gr(r,u[0]),10)+parseInt(Gr(r,u[1]),10)}const RA={[Sa]:"collapse",[Fi]:"collapsing",[Ln]:"collapsing",[Lr]:"collapse show"},wo=Xe.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:l,onExiting:u,className:c,children:d,dimension:p="height",in:h=!1,timeout:y=300,mountOnEnter:m=!1,unmountOnExit:g=!1,appear:S=!1,getDimensionValue:R=AA,..._},E)=>{const C=typeof p=="function"?p():p,j=x.useMemo(()=>Jl($=>{$.style[C]="0"},n),[C,n]),M=x.useMemo(()=>Jl($=>{const O=`scroll${C[0].toUpperCase()}${C.slice(1)}`;$.style[C]=`${$[O]}px`},r),[C,r]),B=x.useMemo(()=>Jl($=>{$.style[C]=null},i),[C,i]),X=x.useMemo(()=>Jl($=>{$.style[C]=`${R(C,$)}px`,IS($)},l),[l,R,C]),A=x.useMemo(()=>Jl($=>{$.style[C]=null},u),[C,u]);return T.jsx(Ns,{ref:E,addEndListener:Kh,..._,"aria-expanded":_.role?h:null,onEnter:j,onEntering:M,onEntered:B,onExit:X,onExiting:A,childRef:Za(d),in:h,timeout:y,mountOnEnter:m,unmountOnExit:g,appear:S,children:($,O)=>Xe.cloneElement(d,{...O,className:Ae(c,d.props.className,RA[$],C==="width"&&"collapse-horizontal")})})});wo.displayName="Collapse";function wA(n){const r=x.useRef(n);return x.useEffect(()=>{r.current=n},[n]),r}function nl(n){const r=wA(n);return x.useCallback(function(...i){return r.current&&r.current(...i)},[r])}const Zh=n=>x.forwardRef((r,i)=>T.jsx("div",{...r,ref:i,className:Ae(r.className,n)}));function V0(){return x.useState(null)}function CA(n){const r=x.useRef(n);return x.useEffect(()=>{r.current=n},[n]),r}function fr(n){const r=CA(n);return x.useCallback(function(...i){return r.current&&r.current(...i)},[r])}function WS(){const n=x.useRef(!0),r=x.useRef(()=>n.current);return x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),r.current}function NA(n){const r=x.useRef(null);return x.useEffect(()=>{r.current=n}),r.current}const MA=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",DA=typeof document<"u",P0=DA||MA?x.useLayoutEffect:x.useEffect,jA=["as","disabled"];function BA(n,r){if(n==null)return{};var i={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)>=0)continue;i[l]=n[l]}return i}function $A(n){return!n||n.trim()==="#"}function JS({tagName:n,disabled:r,href:i,target:l,rel:u,role:c,onClick:d,tabIndex:p=0,type:h}){n||(i!=null||l!=null||u!=null?n="a":n="button");const y={tagName:n};if(n==="button")return[{type:h||"button",disabled:r},y];const m=S=>{if((r||n==="a"&&$A(i))&&S.preventDefault(),r){S.stopPropagation();return}d==null||d(S)},g=S=>{S.key===" "&&(S.preventDefault(),m(S))};return n==="a"&&(i||(i="#"),r&&(i=void 0)),[{role:c??"button",disabled:void 0,tabIndex:r?void 0:p,href:i,target:n==="a"?l:void 0,"aria-disabled":r||void 0,rel:n==="a"?u:void 0,onClick:m,onKeyDown:g},y]}const qA=x.forwardRef((n,r)=>{let{as:i,disabled:l}=n,u=BA(n,jA);const[c,{tagName:d}]=JS(Object.assign({tagName:i,disabled:l},u));return T.jsx(d,Object.assign({},u,c,{ref:r}))});qA.displayName="Button";const zA={[Ln]:"show",[Lr]:"show"},mo=x.forwardRef(({className:n,children:r,transitionClasses:i={},onEnter:l,...u},c)=>{const d={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...u},p=x.useCallback((h,y)=>{IS(h),l==null||l(h,y)},[l]);return T.jsx(Ns,{ref:c,addEndListener:Kh,...d,onEnter:p,childRef:Za(r),children:(h,y)=>x.cloneElement(r,{...y,className:Ae("fade",n,r.props.className,zA[h],i[h])})})});mo.displayName="Fade";const kA={"aria-label":dt.string,onClick:dt.func,variant:dt.oneOf(["white"])},Ms=x.forwardRef(({className:n,variant:r,"aria-label":i="Close",...l},u)=>T.jsx("button",{ref:u,type:"button",className:Ae("btn-close",r&&`btn-close-${r}`,n),"aria-label":i,...l}));Ms.displayName="CloseButton";Ms.propTypes=kA;const ex=x.forwardRef(({bsPrefix:n,bg:r="primary",pill:i=!1,text:l,className:u,as:c="span",...d},p)=>{const h=we(n,"badge");return T.jsx(c,{ref:p,...d,className:Ae(u,h,i&&"rounded-pill",l&&`text-${l}`,r&&`bg-${r}`)})});ex.displayName="Badge";const Co=x.forwardRef(({as:n,bsPrefix:r,variant:i="primary",size:l,active:u=!1,disabled:c=!1,className:d,...p},h)=>{const y=we(r,"btn"),[m,{tagName:g}]=JS({tagName:n,disabled:c,...p}),S=g;return T.jsx(S,{...m,...p,ref:h,disabled:c,className:Ae(d,y,u&&"active",i&&`${y}-${i}`,l&&`${y}-${l}`,p.href&&c&&"disabled")})});Co.displayName="Button";const Ih=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"card-body"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Ih.displayName="CardBody";const tx=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"card-footer"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));tx.displayName="CardFooter";const nx=x.createContext(null);nx.displayName="CardHeaderContext";const rx=x.forwardRef(({bsPrefix:n,className:r,as:i="div",...l},u)=>{const c=we(n,"card-header"),d=x.useMemo(()=>({cardHeaderBsPrefix:c}),[c]);return T.jsx(nx.Provider,{value:d,children:T.jsx(i,{ref:u,...l,className:Ae(r,c)})})});rx.displayName="CardHeader";const ax=x.forwardRef(({bsPrefix:n,className:r,variant:i,as:l="img",...u},c)=>{const d=we(n,"card-img");return T.jsx(l,{ref:c,className:Ae(i?`${d}-${i}`:d,r),...u})});ax.displayName="CardImg";const ix=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"card-img-overlay"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));ix.displayName="CardImgOverlay";const lx=x.forwardRef(({className:n,bsPrefix:r,as:i="a",...l},u)=>(r=we(r,"card-link"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));lx.displayName="CardLink";const LA=Zh("h6"),ox=x.forwardRef(({className:n,bsPrefix:r,as:i=LA,...l},u)=>(r=we(r,"card-subtitle"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));ox.displayName="CardSubtitle";const ux=x.forwardRef(({className:n,bsPrefix:r,as:i="p",...l},u)=>(r=we(r,"card-text"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));ux.displayName="CardText";const UA=Zh("h5"),sx=x.forwardRef(({className:n,bsPrefix:r,as:i=UA,...l},u)=>(r=we(r,"card-title"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));sx.displayName="CardTitle";const cx=x.forwardRef(({bsPrefix:n,className:r,bg:i,text:l,border:u,body:c=!1,children:d,as:p="div",...h},y)=>{const m=we(n,"card");return T.jsx(p,{ref:y,...h,className:Ae(r,m,i&&`bg-${i}`,l&&`text-${l}`,u&&`border-${u}`),children:c?T.jsx(Ih,{children:d}):d})});cx.displayName="Card";const Xi=Object.assign(cx,{Img:ax,Title:sx,Subtitle:ox,Body:Ih,Link:lx,Text:ux,Header:rx,Footer:tx,ImgOverlay:ix});function HA(){const n=x.useRef(!0),r=x.useRef(()=>n.current);return x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),r.current}function GA(n){const r=x.useRef(n);return r.current=n,r}function YA(n){const r=GA(n);x.useEffect(()=>()=>r.current(),[])}const Eh=2**31-1;function fx(n,r,i){const l=i-Date.now();n.current=l<=Eh?setTimeout(r,l):setTimeout(()=>fx(n,r,i),Eh)}function dx(){const n=HA(),r=x.useRef();return YA(()=>clearTimeout(r.current)),x.useMemo(()=>{const i=()=>clearTimeout(r.current);function l(u,c=0){n()&&(i(),c<=Eh?r.current=setTimeout(u,c):fx(r,u,Date.now()+c))}return{set:l,clear:i,handleRef:r}},[])}function VA(n,r){return x.Children.toArray(n).some(i=>x.isValidElement(i)&&i.type===r)}function PA({as:n,bsPrefix:r,className:i,...l}){r=we(r,"col");const u=PS(),c=XS(),d=[],p=[];return u.forEach(h=>{const y=l[h];delete l[h];let m,g,S;typeof y=="object"&&y!=null?{span:m,offset:g,order:S}=y:m=y;const R=h!==c?`-${h}`:"";m&&d.push(m===!0?`${r}${R}`:`${r}${R}-${m}`),S!=null&&p.push(`order${R}-${S}`),g!=null&&p.push(`offset${R}-${g}`)}),[{...l,className:Ae(i,...d,...p)},{as:n,bsPrefix:r,spans:d}]}const ur=x.forwardRef((n,r)=>{const[{className:i,...l},{as:u="div",bsPrefix:c,spans:d}]=PA(n);return T.jsx(u,{...l,ref:r,className:Ae(i,!d.length&&c)})});ur.displayName="Col";const px=x.forwardRef(({bsPrefix:n,fluid:r=!1,as:i="div",className:l,...u},c)=>{const d=we(n,"container"),p=typeof r=="string"?`-${r}`:"-fluid";return T.jsx(i,{ref:c,...u,className:Ae(l,r?`${d}${p}`:d)})});px.displayName="Container";var XA=Function.prototype.bind.call(Function.prototype.call,[].slice);function qi(n,r){return XA(n.querySelectorAll(r))}var X0=Object.prototype.hasOwnProperty;function Q0(n,r,i){for(i of n.keys())if(co(i,r))return i}function co(n,r){var i,l,u;if(n===r)return!0;if(n&&r&&(i=n.constructor)===r.constructor){if(i===Date)return n.getTime()===r.getTime();if(i===RegExp)return n.toString()===r.toString();if(i===Array){if((l=n.length)===r.length)for(;l--&&co(n[l],r[l]););return l===-1}if(i===Set){if(n.size!==r.size)return!1;for(l of n)if(u=l,u&&typeof u=="object"&&(u=Q0(r,u),!u)||!r.has(u))return!1;return!0}if(i===Map){if(n.size!==r.size)return!1;for(l of n)if(u=l[0],u&&typeof u=="object"&&(u=Q0(r,u),!u)||!co(l[1],r.get(u)))return!1;return!0}if(i===ArrayBuffer)n=new Uint8Array(n),r=new Uint8Array(r);else if(i===DataView){if((l=n.byteLength)===r.byteLength)for(;l--&&n.getInt8(l)===r.getInt8(l););return l===-1}if(ArrayBuffer.isView(n)){if((l=n.byteLength)===r.byteLength)for(;l--&&n[l]===r[l];);return l===-1}if(!i||typeof n=="object"){l=0;for(i in n)if(X0.call(n,i)&&++l&&!X0.call(r,i)||!(i in r)||!co(n[i],r[i]))return!1;return Object.keys(r).length===l}}return n!==n&&r!==r}function QA(n){const r=WS();return[n[0],x.useCallback(i=>{if(r())return n[1](i)},[r,n[1]])]}var fn="top",Yn="bottom",Vn="right",dn="left",Wh="auto",No=[fn,Yn,Vn,dn],Zi="start",go="end",KA="clippingParents",hx="viewport",eo="popper",FA="reference",K0=No.reduce(function(n,r){return n.concat([r+"-"+Zi,r+"-"+go])},[]),yx=[].concat(No,[Wh]).reduce(function(n,r){return n.concat([r,r+"-"+Zi,r+"-"+go])},[]),ZA="beforeRead",IA="read",WA="afterRead",JA="beforeMain",eR="main",tR="afterMain",nR="beforeWrite",rR="write",aR="afterWrite",iR=[ZA,IA,WA,JA,eR,tR,nR,rR,aR];function dr(n){return n.split("-")[0]}function _n(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}function Fa(n){var r=_n(n).Element;return n instanceof r||n instanceof Element}function pr(n){var r=_n(n).HTMLElement;return n instanceof r||n instanceof HTMLElement}function Jh(n){if(typeof ShadowRoot>"u")return!1;var r=_n(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}var Ka=Math.max,xs=Math.min,Ii=Math.round;function Oh(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function vx(){return!/^((?!chrome|android).)*safari/i.test(Oh())}function Wi(n,r,i){r===void 0&&(r=!1),i===void 0&&(i=!1);var l=n.getBoundingClientRect(),u=1,c=1;r&&pr(n)&&(u=n.offsetWidth>0&&Ii(l.width)/n.offsetWidth||1,c=n.offsetHeight>0&&Ii(l.height)/n.offsetHeight||1);var d=Fa(n)?_n(n):window,p=d.visualViewport,h=!vx()&&i,y=(l.left+(h&&p?p.offsetLeft:0))/u,m=(l.top+(h&&p?p.offsetTop:0))/c,g=l.width/u,S=l.height/c;return{width:g,height:S,top:m,right:y+g,bottom:m+S,left:y,x:y,y:m}}function ey(n){var r=Wi(n),i=n.offsetWidth,l=n.offsetHeight;return Math.abs(r.width-i)<=1&&(i=r.width),Math.abs(r.height-l)<=1&&(l=r.height),{x:n.offsetLeft,y:n.offsetTop,width:i,height:l}}function mx(n,r){var i=r.getRootNode&&r.getRootNode();if(n.contains(r))return!0;if(i&&Jh(i)){var l=r;do{if(l&&n.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Ta(n){return n?(n.nodeName||"").toLowerCase():null}function Vr(n){return _n(n).getComputedStyle(n)}function lR(n){return["table","td","th"].indexOf(Ta(n))>=0}function Aa(n){return((Fa(n)?n.ownerDocument:n.document)||window.document).documentElement}function Ds(n){return Ta(n)==="html"?n:n.assignedSlot||n.parentNode||(Jh(n)?n.host:null)||Aa(n)}function F0(n){return!pr(n)||Vr(n).position==="fixed"?null:n.offsetParent}function oR(n){var r=/firefox/i.test(Oh()),i=/Trident/i.test(Oh());if(i&&pr(n)){var l=Vr(n);if(l.position==="fixed")return null}var u=Ds(n);for(Jh(u)&&(u=u.host);pr(u)&&["html","body"].indexOf(Ta(u))<0;){var c=Vr(u);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||r&&c.willChange==="filter"||r&&c.filter&&c.filter!=="none")return u;u=u.parentNode}return null}function Mo(n){for(var r=_n(n),i=F0(n);i&&lR(i)&&Vr(i).position==="static";)i=F0(i);return i&&(Ta(i)==="html"||Ta(i)==="body"&&Vr(i).position==="static")?r:i||oR(n)||r}function ty(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function fo(n,r,i){return Ka(n,xs(r,i))}function uR(n,r,i){var l=fo(n,r,i);return l>i?i:l}function gx(){return{top:0,right:0,bottom:0,left:0}}function bx(n){return Object.assign({},gx(),n)}function Sx(n,r){return r.reduce(function(i,l){return i[l]=n,i},{})}var sR=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,bx(typeof r!="number"?r:Sx(r,No))};function cR(n){var r,i=n.state,l=n.name,u=n.options,c=i.elements.arrow,d=i.modifiersData.popperOffsets,p=dr(i.placement),h=ty(p),y=[dn,Vn].indexOf(p)>=0,m=y?"height":"width";if(!(!c||!d)){var g=sR(u.padding,i),S=ey(c),R=h==="y"?fn:dn,_=h==="y"?Yn:Vn,E=i.rects.reference[m]+i.rects.reference[h]-d[h]-i.rects.popper[m],C=d[h]-i.rects.reference[h],j=Mo(c),M=j?h==="y"?j.clientHeight||0:j.clientWidth||0:0,B=E/2-C/2,X=g[R],A=M-S[m]-g[_],$=M/2-S[m]/2+B,O=fo(X,$,A),q=h;i.modifiersData[l]=(r={},r[q]=O,r.centerOffset=O-$,r)}}function fR(n){var r=n.state,i=n.options,l=i.element,u=l===void 0?"[data-popper-arrow]":l;u!=null&&(typeof u=="string"&&(u=r.elements.popper.querySelector(u),!u)||mx(r.elements.popper,u)&&(r.elements.arrow=u))}const dR={name:"arrow",enabled:!0,phase:"main",fn:cR,effect:fR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ji(n){return n.split("-")[1]}var pR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hR(n,r){var i=n.x,l=n.y,u=r.devicePixelRatio||1;return{x:Ii(i*u)/u||0,y:Ii(l*u)/u||0}}function Z0(n){var r,i=n.popper,l=n.popperRect,u=n.placement,c=n.variation,d=n.offsets,p=n.position,h=n.gpuAcceleration,y=n.adaptive,m=n.roundOffsets,g=n.isFixed,S=d.x,R=S===void 0?0:S,_=d.y,E=_===void 0?0:_,C=typeof m=="function"?m({x:R,y:E}):{x:R,y:E};R=C.x,E=C.y;var j=d.hasOwnProperty("x"),M=d.hasOwnProperty("y"),B=dn,X=fn,A=window;if(y){var $=Mo(i),O="clientHeight",q="clientWidth";if($===_n(i)&&($=Aa(i),Vr($).position!=="static"&&p==="absolute"&&(O="scrollHeight",q="scrollWidth")),$=$,u===fn||(u===dn||u===Vn)&&c===go){X=Yn;var L=g&&$===A&&A.visualViewport?A.visualViewport.height:$[O];E-=L-l.height,E*=h?1:-1}if(u===dn||(u===fn||u===Yn)&&c===go){B=Vn;var Y=g&&$===A&&A.visualViewport?A.visualViewport.width:$[q];R-=Y-l.width,R*=h?1:-1}}var W=Object.assign({position:p},y&&pR),oe=m===!0?hR({x:R,y:E},_n(i)):{x:R,y:E};if(R=oe.x,E=oe.y,h){var ue;return Object.assign({},W,(ue={},ue[X]=M?"0":"",ue[B]=j?"0":"",ue.transform=(A.devicePixelRatio||1)<=1?"translate("+R+"px, "+E+"px)":"translate3d("+R+"px, "+E+"px, 0)",ue))}return Object.assign({},W,(r={},r[X]=M?E+"px":"",r[B]=j?R+"px":"",r.transform="",r))}function yR(n){var r=n.state,i=n.options,l=i.gpuAcceleration,u=l===void 0?!0:l,c=i.adaptive,d=c===void 0?!0:c,p=i.roundOffsets,h=p===void 0?!0:p,y={placement:dr(r.placement),variation:Ji(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:u,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,Z0(Object.assign({},y,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:d,roundOffsets:h})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,Z0(Object.assign({},y,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const vR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yR,data:{}};var Zu={passive:!0};function mR(n){var r=n.state,i=n.instance,l=n.options,u=l.scroll,c=u===void 0?!0:u,d=l.resize,p=d===void 0?!0:d,h=_n(r.elements.popper),y=[].concat(r.scrollParents.reference,r.scrollParents.popper);return c&&y.forEach(function(m){m.addEventListener("scroll",i.update,Zu)}),p&&h.addEventListener("resize",i.update,Zu),function(){c&&y.forEach(function(m){m.removeEventListener("scroll",i.update,Zu)}),p&&h.removeEventListener("resize",i.update,Zu)}}const gR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mR,data:{}};var bR={left:"right",right:"left",bottom:"top",top:"bottom"};function us(n){return n.replace(/left|right|bottom|top/g,function(r){return bR[r]})}var SR={start:"end",end:"start"};function I0(n){return n.replace(/start|end/g,function(r){return SR[r]})}function ny(n){var r=_n(n),i=r.pageXOffset,l=r.pageYOffset;return{scrollLeft:i,scrollTop:l}}function ry(n){return Wi(Aa(n)).left+ny(n).scrollLeft}function xR(n,r){var i=_n(n),l=Aa(n),u=i.visualViewport,c=l.clientWidth,d=l.clientHeight,p=0,h=0;if(u){c=u.width,d=u.height;var y=vx();(y||!y&&r==="fixed")&&(p=u.offsetLeft,h=u.offsetTop)}return{width:c,height:d,x:p+ry(n),y:h}}function ER(n){var r,i=Aa(n),l=ny(n),u=(r=n.ownerDocument)==null?void 0:r.body,c=Ka(i.scrollWidth,i.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),d=Ka(i.scrollHeight,i.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),p=-l.scrollLeft+ry(n),h=-l.scrollTop;return Vr(u||i).direction==="rtl"&&(p+=Ka(i.clientWidth,u?u.clientWidth:0)-c),{width:c,height:d,x:p,y:h}}function ay(n){var r=Vr(n),i=r.overflow,l=r.overflowX,u=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+u+l)}function xx(n){return["html","body","#document"].indexOf(Ta(n))>=0?n.ownerDocument.body:pr(n)&&ay(n)?n:xx(Ds(n))}function po(n,r){var i;r===void 0&&(r=[]);var l=xx(n),u=l===((i=n.ownerDocument)==null?void 0:i.body),c=_n(l),d=u?[c].concat(c.visualViewport||[],ay(l)?l:[]):l,p=r.concat(d);return u?p:p.concat(po(Ds(d)))}function Th(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function OR(n,r){var i=Wi(n,!1,r==="fixed");return i.top=i.top+n.clientTop,i.left=i.left+n.clientLeft,i.bottom=i.top+n.clientHeight,i.right=i.left+n.clientWidth,i.width=n.clientWidth,i.height=n.clientHeight,i.x=i.left,i.y=i.top,i}function W0(n,r,i){return r===hx?Th(xR(n,i)):Fa(r)?OR(r,i):Th(ER(Aa(n)))}function TR(n){var r=po(Ds(n)),i=["absolute","fixed"].indexOf(Vr(n).position)>=0,l=i&&pr(n)?Mo(n):n;return Fa(l)?r.filter(function(u){return Fa(u)&&mx(u,l)&&Ta(u)!=="body"}):[]}function _R(n,r,i,l){var u=r==="clippingParents"?TR(n):[].concat(r),c=[].concat(u,[i]),d=c[0],p=c.reduce(function(h,y){var m=W0(n,y,l);return h.top=Ka(m.top,h.top),h.right=xs(m.right,h.right),h.bottom=xs(m.bottom,h.bottom),h.left=Ka(m.left,h.left),h},W0(n,d,l));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function Ex(n){var r=n.reference,i=n.element,l=n.placement,u=l?dr(l):null,c=l?Ji(l):null,d=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,h;switch(u){case fn:h={x:d,y:r.y-i.height};break;case Yn:h={x:d,y:r.y+r.height};break;case Vn:h={x:r.x+r.width,y:p};break;case dn:h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}var y=u?ty(u):null;if(y!=null){var m=y==="y"?"height":"width";switch(c){case Zi:h[y]=h[y]-(r[m]/2-i[m]/2);break;case go:h[y]=h[y]+(r[m]/2-i[m]/2);break}}return h}function bo(n,r){r===void 0&&(r={});var i=r,l=i.placement,u=l===void 0?n.placement:l,c=i.strategy,d=c===void 0?n.strategy:c,p=i.boundary,h=p===void 0?KA:p,y=i.rootBoundary,m=y===void 0?hx:y,g=i.elementContext,S=g===void 0?eo:g,R=i.altBoundary,_=R===void 0?!1:R,E=i.padding,C=E===void 0?0:E,j=bx(typeof C!="number"?C:Sx(C,No)),M=S===eo?FA:eo,B=n.rects.popper,X=n.elements[_?M:S],A=_R(Fa(X)?X:X.contextElement||Aa(n.elements.popper),h,m,d),$=Wi(n.elements.reference),O=Ex({reference:$,element:B,placement:u}),q=Th(Object.assign({},B,O)),L=S===eo?q:$,Y={top:A.top-L.top+j.top,bottom:L.bottom-A.bottom+j.bottom,left:A.left-L.left+j.left,right:L.right-A.right+j.right},W=n.modifiersData.offset;if(S===eo&&W){var oe=W[u];Object.keys(Y).forEach(function(ue){var he=[Vn,Yn].indexOf(ue)>=0?1:-1,fe=[fn,Yn].indexOf(ue)>=0?"y":"x";Y[ue]+=oe[fe]*he})}return Y}function AR(n,r){r===void 0&&(r={});var i=r,l=i.placement,u=i.boundary,c=i.rootBoundary,d=i.padding,p=i.flipVariations,h=i.allowedAutoPlacements,y=h===void 0?yx:h,m=Ji(l),g=m?p?K0:K0.filter(function(_){return Ji(_)===m}):No,S=g.filter(function(_){return y.indexOf(_)>=0});S.length===0&&(S=g);var R=S.reduce(function(_,E){return _[E]=bo(n,{placement:E,boundary:u,rootBoundary:c,padding:d})[dr(E)],_},{});return Object.keys(R).sort(function(_,E){return R[_]-R[E]})}function RR(n){if(dr(n)===Wh)return[];var r=us(n);return[I0(n),r,I0(r)]}function wR(n){var r=n.state,i=n.options,l=n.name;if(!r.modifiersData[l]._skip){for(var u=i.mainAxis,c=u===void 0?!0:u,d=i.altAxis,p=d===void 0?!0:d,h=i.fallbackPlacements,y=i.padding,m=i.boundary,g=i.rootBoundary,S=i.altBoundary,R=i.flipVariations,_=R===void 0?!0:R,E=i.allowedAutoPlacements,C=r.options.placement,j=dr(C),M=j===C,B=h||(M||!_?[us(C)]:RR(C)),X=[C].concat(B).reduce(function(z,F){return z.concat(dr(F)===Wh?AR(r,{placement:F,boundary:m,rootBoundary:g,padding:y,flipVariations:_,allowedAutoPlacements:E}):F)},[]),A=r.rects.reference,$=r.rects.popper,O=new Map,q=!0,L=X[0],Y=0;Y=0,fe=he?"width":"height",H=bo(r,{placement:W,boundary:m,rootBoundary:g,altBoundary:S,padding:y}),I=he?ue?Vn:dn:ue?Yn:fn;A[fe]>$[fe]&&(I=us(I));var ae=us(I),be=[];if(c&&be.push(H[oe]<=0),p&&be.push(H[I]<=0,H[ae]<=0),be.every(function(z){return z})){L=W,q=!1;break}O.set(W,be)}if(q)for(var N=_?3:1,Z=function(F){var te=X.find(function(pe){var ce=O.get(pe);if(ce)return ce.slice(0,F).every(function(xe){return xe})});if(te)return L=te,"break"},le=N;le>0;le--){var re=Z(le);if(re==="break")break}r.placement!==L&&(r.modifiersData[l]._skip=!0,r.placement=L,r.reset=!0)}}const CR={name:"flip",enabled:!0,phase:"main",fn:wR,requiresIfExists:["offset"],data:{_skip:!1}};function J0(n,r,i){return i===void 0&&(i={x:0,y:0}),{top:n.top-r.height-i.y,right:n.right-r.width+i.x,bottom:n.bottom-r.height+i.y,left:n.left-r.width-i.x}}function eb(n){return[fn,Vn,Yn,dn].some(function(r){return n[r]>=0})}function NR(n){var r=n.state,i=n.name,l=r.rects.reference,u=r.rects.popper,c=r.modifiersData.preventOverflow,d=bo(r,{elementContext:"reference"}),p=bo(r,{altBoundary:!0}),h=J0(d,l),y=J0(p,u,c),m=eb(h),g=eb(y);r.modifiersData[i]={referenceClippingOffsets:h,popperEscapeOffsets:y,isReferenceHidden:m,hasPopperEscaped:g},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":g})}const MR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:NR};function DR(n,r,i){var l=dr(n),u=[dn,fn].indexOf(l)>=0?-1:1,c=typeof i=="function"?i(Object.assign({},r,{placement:n})):i,d=c[0],p=c[1];return d=d||0,p=(p||0)*u,[dn,Vn].indexOf(l)>=0?{x:p,y:d}:{x:d,y:p}}function jR(n){var r=n.state,i=n.options,l=n.name,u=i.offset,c=u===void 0?[0,0]:u,d=yx.reduce(function(m,g){return m[g]=DR(g,r.rects,c),m},{}),p=d[r.placement],h=p.x,y=p.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=h,r.modifiersData.popperOffsets.y+=y),r.modifiersData[l]=d}const BR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jR};function $R(n){var r=n.state,i=n.name;r.modifiersData[i]=Ex({reference:r.rects.reference,element:r.rects.popper,placement:r.placement})}const qR={name:"popperOffsets",enabled:!0,phase:"read",fn:$R,data:{}};function zR(n){return n==="x"?"y":"x"}function kR(n){var r=n.state,i=n.options,l=n.name,u=i.mainAxis,c=u===void 0?!0:u,d=i.altAxis,p=d===void 0?!1:d,h=i.boundary,y=i.rootBoundary,m=i.altBoundary,g=i.padding,S=i.tether,R=S===void 0?!0:S,_=i.tetherOffset,E=_===void 0?0:_,C=bo(r,{boundary:h,rootBoundary:y,padding:g,altBoundary:m}),j=dr(r.placement),M=Ji(r.placement),B=!M,X=ty(j),A=zR(X),$=r.modifiersData.popperOffsets,O=r.rects.reference,q=r.rects.popper,L=typeof E=="function"?E(Object.assign({},r.rects,{placement:r.placement})):E,Y=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),W=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,oe={x:0,y:0};if($){if(c){var ue,he=X==="y"?fn:dn,fe=X==="y"?Yn:Vn,H=X==="y"?"height":"width",I=$[X],ae=I+C[he],be=I-C[fe],N=R?-q[H]/2:0,Z=M===Zi?O[H]:q[H],le=M===Zi?-q[H]:-O[H],re=r.elements.arrow,z=R&&re?ey(re):{width:0,height:0},F=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:gx(),te=F[he],pe=F[fe],ce=fo(0,O[H],z[H]),xe=B?O[H]/2-N-ce-te-Y.mainAxis:Z-ce-te-Y.mainAxis,me=B?-O[H]/2+N+ce+pe+Y.mainAxis:le+ce+pe+Y.mainAxis,Ee=r.elements.arrow&&Mo(r.elements.arrow),de=Ee?X==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,ve=(ue=W==null?void 0:W[X])!=null?ue:0,Oe=I+xe-ve-de,ye=I+me-ve,je=fo(R?xs(ae,Oe):ae,I,R?Ka(be,ye):be);$[X]=je,oe[X]=je-I}if(p){var Me,Fe=X==="x"?fn:dn,Ht=X==="x"?Yn:Vn,ze=$[A],Ze=A==="y"?"height":"width",Gt=ze+C[Fe],$t=ze-C[Ht],qt=[fn,dn].indexOf(j)!==-1,An=(Me=W==null?void 0:W[A])!=null?Me:0,_t=qt?Gt:ze-O[Ze]-q[Ze]-An+Y.altAxis,rt=qt?ze+O[Ze]+q[Ze]-An-Y.altAxis:$t,ie=R&&qt?uR(_t,ze,rt):fo(R?_t:Gt,ze,R?rt:$t);$[A]=ie,oe[A]=ie-ze}r.modifiersData[l]=oe}}const LR={name:"preventOverflow",enabled:!0,phase:"main",fn:kR,requiresIfExists:["offset"]};function UR(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function HR(n){return n===_n(n)||!pr(n)?ny(n):UR(n)}function GR(n){var r=n.getBoundingClientRect(),i=Ii(r.width)/n.offsetWidth||1,l=Ii(r.height)/n.offsetHeight||1;return i!==1||l!==1}function YR(n,r,i){i===void 0&&(i=!1);var l=pr(r),u=pr(r)&&GR(r),c=Aa(r),d=Wi(n,u,i),p={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(l||!l&&!i)&&((Ta(r)!=="body"||ay(c))&&(p=HR(r)),pr(r)?(h=Wi(r,!0),h.x+=r.clientLeft,h.y+=r.clientTop):c&&(h.x=ry(c))),{x:d.left+p.scrollLeft-h.x,y:d.top+p.scrollTop-h.y,width:d.width,height:d.height}}function VR(n){var r=new Map,i=new Set,l=[];n.forEach(function(c){r.set(c.name,c)});function u(c){i.add(c.name);var d=[].concat(c.requires||[],c.requiresIfExists||[]);d.forEach(function(p){if(!i.has(p)){var h=r.get(p);h&&u(h)}}),l.push(c)}return n.forEach(function(c){i.has(c.name)||u(c)}),l}function PR(n){var r=VR(n);return iR.reduce(function(i,l){return i.concat(r.filter(function(u){return u.phase===l}))},[])}function XR(n){var r;return function(){return r||(r=new Promise(function(i){Promise.resolve().then(function(){r=void 0,i(n())})})),r}}function QR(n){var r=n.reduce(function(i,l){var u=i[l.name];return i[l.name]=u?Object.assign({},u,l,{options:Object.assign({},u.options,l.options),data:Object.assign({},u.data,l.data)}):l,i},{});return Object.keys(r).map(function(i){return r[i]})}var tb={placement:"bottom",modifiers:[],strategy:"absolute"};function nb(){for(var n=arguments.length,r=new Array(n),i=0;i=0)continue;i[l]=n[l]}return i}const WR={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},JR={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:n})=>()=>{const{reference:r,popper:i}=n.elements;if("removeAttribute"in r){const l=(r.getAttribute("aria-describedby")||"").split(",").filter(u=>u.trim()!==i.id);l.length?r.setAttribute("aria-describedby",l.join(",")):r.removeAttribute("aria-describedby")}},fn:({state:n})=>{var r;const{popper:i,reference:l}=n.elements,u=(r=i.getAttribute("role"))==null?void 0:r.toLowerCase();if(i.id&&u==="tooltip"&&"setAttribute"in l){const c=l.getAttribute("aria-describedby");if(c&&c.split(",").indexOf(i.id)!==-1)return;l.setAttribute("aria-describedby",c?`${c},${i.id}`:i.id)}}},ew=[];function tw(n,r,i={}){let{enabled:l=!0,placement:u="bottom",strategy:c="absolute",modifiers:d=ew}=i,p=IR(i,ZR);const h=x.useRef(d),y=x.useRef(),m=x.useCallback(()=>{var C;(C=y.current)==null||C.update()},[]),g=x.useCallback(()=>{var C;(C=y.current)==null||C.forceUpdate()},[]),[S,R]=QA(x.useState({placement:u,update:m,forceUpdate:g,attributes:{},styles:{popper:{},arrow:{}}})),_=x.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:C})=>{const j={},M={};Object.keys(C.elements).forEach(B=>{j[B]=C.styles[B],M[B]=C.attributes[B]}),R({state:C,styles:j,attributes:M,update:m,forceUpdate:g,placement:C.placement})}}),[m,g,R]),E=x.useMemo(()=>(co(h.current,d)||(h.current=d),h.current),[d]);return x.useEffect(()=>{!y.current||!l||y.current.setOptions({placement:u,strategy:c,modifiers:[...E,_,WR]})},[c,u,_,l,E]),x.useEffect(()=>{if(!(!l||n==null||r==null))return y.current=FR(n,r,Object.assign({},p,{placement:u,strategy:c,modifiers:[...E,JR,_]})),()=>{y.current!=null&&(y.current.destroy(),y.current=void 0,R(C=>Object.assign({},C,{attributes:{},styles:{popper:{}}})))}},[l,n,r]),S}function So(n,r){if(n.contains)return n.contains(r);if(n.compareDocumentPosition)return n===r||!!(n.compareDocumentPosition(r)&16)}var yd,rb;function nw(){if(rb)return yd;rb=1;var n=function(){};return yd=n,yd}var rw=nw();const aw=_a(rw),ab=()=>{};function iw(n){return n.button===0}function lw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}const ss=n=>n&&("current"in n?n.current:n),ib={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function ow(n,r=ab,{disabled:i,clickTrigger:l="click"}={}){const u=x.useRef(!1),c=x.useRef(!1),d=x.useCallback(y=>{const m=ss(n);aw(!!m,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),u.current=!m||lw(y)||!iw(y)||!!So(m,y.target)||c.current,c.current=!1},[n]),p=fr(y=>{const m=ss(n);m&&So(m,y.target)?c.current=!0:c.current=!1}),h=fr(y=>{u.current||r(y)});x.useEffect(()=>{var y,m;if(i||n==null)return;const g=Ro(ss(n)),S=g.defaultView||window;let R=(y=S.event)!=null?y:(m=S.parent)==null?void 0:m.event,_=null;ib[l]&&(_=Ur(g,ib[l],p,!0));const E=Ur(g,l,d,!0),C=Ur(g,l,M=>{if(M===R){R=void 0;return}h(M)});let j=[];return"ontouchstart"in g.documentElement&&(j=[].slice.call(g.body.children).map(M=>Ur(M,"mousemove",ab))),()=>{_==null||_(),E(),C(),j.forEach(M=>M())}},[n,i,l,d,p,h])}function uw(n){const r={};return Array.isArray(n)?(n==null||n.forEach(i=>{r[i.name]=i}),r):n||r}function sw(n={}){return Array.isArray(n)?n:Object.keys(n).map(r=>(n[r].name=r,n[r]))}function cw({enabled:n,enableEvents:r,placement:i,flip:l,offset:u,fixed:c,containerPadding:d,arrowElement:p,popperConfig:h={}}){var y,m,g,S;const R=uw(h.modifiers);return Object.assign({},h,{placement:i,enabled:n,strategy:c?"fixed":h.strategy,modifiers:sw(Object.assign({},R,{eventListeners:{enabled:r,options:(y=R.eventListeners)==null?void 0:y.options},preventOverflow:Object.assign({},R.preventOverflow,{options:Object.assign({padding:d},(m=R.preventOverflow)==null?void 0:m.options)}),offset:{options:Object.assign({offset:u},(g=R.offset)==null?void 0:g.options)},arrow:Object.assign({},R.arrow,{enabled:!!p,options:Object.assign({},(S=R.arrow)==null?void 0:S.options,{element:p})}),flip:Object.assign({enabled:!!l},R.flip)}))})}const fw=x.createContext(null),dw="data-rr-ui-";function pw(n){return`${dw}${n}`}const Ox=x.createContext(Cs?window:void 0);Ox.Provider;function iy(){return x.useContext(Ox)}const hw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",yw=typeof document<"u",Tx=yw||hw?x.useLayoutEffect:x.useEffect,_x=x.createContext(null);_x.displayName="InputGroupContext";const Do=x.createContext(null);Do.displayName="NavbarContext";dt.string,dt.bool,dt.bool,dt.bool,dt.bool;const Ax=x.forwardRef(({bsPrefix:n,className:r,fluid:i=!1,rounded:l=!1,roundedCircle:u=!1,thumbnail:c=!1,...d},p)=>(n=we(n,"img"),T.jsx("img",{ref:p,...d,className:Ae(r,i&&`${n}-fluid`,l&&"rounded",u&&"rounded-circle",c&&`${n}-thumbnail`)})));Ax.displayName="Image";const vw={type:dt.string,tooltip:dt.bool,as:dt.elementType},js=x.forwardRef(({as:n="div",className:r,type:i="valid",tooltip:l=!1,...u},c)=>T.jsx(n,{...u,ref:c,className:Ae(r,`${i}-${l?"tooltip":"feedback"}`)}));js.displayName="Feedback";js.propTypes=vw;const Pr=x.createContext({}),jo=x.forwardRef(({id:n,bsPrefix:r,className:i,type:l="checkbox",isValid:u=!1,isInvalid:c=!1,as:d="input",...p},h)=>{const{controlId:y}=x.useContext(Pr);return r=we(r,"form-check-input"),T.jsx(d,{...p,ref:h,type:l,id:n||y,className:Ae(i,r,u&&"is-valid",c&&"is-invalid")})});jo.displayName="FormCheckInput";const Es=x.forwardRef(({bsPrefix:n,className:r,htmlFor:i,...l},u)=>{const{controlId:c}=x.useContext(Pr);return n=we(n,"form-check-label"),T.jsx("label",{...l,ref:u,htmlFor:i||c,className:Ae(r,n)})});Es.displayName="FormCheckLabel";const Rx=x.forwardRef(({id:n,bsPrefix:r,bsSwitchPrefix:i,inline:l=!1,reverse:u=!1,disabled:c=!1,isValid:d=!1,isInvalid:p=!1,feedbackTooltip:h=!1,feedback:y,feedbackType:m,className:g,style:S,title:R="",type:_="checkbox",label:E,children:C,as:j="input",...M},B)=>{r=we(r,"form-check"),i=we(i,"form-switch");const{controlId:X}=x.useContext(Pr),A=x.useMemo(()=>({controlId:n||X}),[X,n]),$=!C&&E!=null&&E!==!1||VA(C,Es),O=T.jsx(jo,{...M,type:_==="switch"?"checkbox":_,ref:B,isValid:d,isInvalid:p,disabled:c,as:j});return T.jsx(Pr.Provider,{value:A,children:T.jsx("div",{style:S,className:Ae(g,$&&r,l&&`${r}-inline`,u&&`${r}-reverse`,_==="switch"&&i),children:C||T.jsxs(T.Fragment,{children:[O,$&&T.jsx(Es,{title:R,children:E}),y&&T.jsx(js,{type:m,tooltip:h,children:y})]})})})});Rx.displayName="FormCheck";const Os=Object.assign(Rx,{Input:jo,Label:Es}),wx=x.forwardRef(({bsPrefix:n,type:r,size:i,htmlSize:l,id:u,className:c,isValid:d=!1,isInvalid:p=!1,plaintext:h,readOnly:y,as:m="input",...g},S)=>{const{controlId:R}=x.useContext(Pr);return n=we(n,"form-control"),T.jsx(m,{...g,type:r,size:l,ref:S,readOnly:y,id:u||R,className:Ae(c,h?`${n}-plaintext`:n,i&&`${n}-${i}`,r==="color"&&`${n}-color`,d&&"is-valid",p&&"is-invalid")})});wx.displayName="FormControl";const mw=Object.assign(wx,{Feedback:js}),Cx=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"form-floating"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Cx.displayName="FormFloating";const ly=x.forwardRef(({controlId:n,as:r="div",...i},l)=>{const u=x.useMemo(()=>({controlId:n}),[n]);return T.jsx(Pr.Provider,{value:u,children:T.jsx(r,{...i,ref:l})})});ly.displayName="FormGroup";const Nx=x.forwardRef(({as:n="label",bsPrefix:r,column:i=!1,visuallyHidden:l=!1,className:u,htmlFor:c,...d},p)=>{const{controlId:h}=x.useContext(Pr);r=we(r,"form-label");let y="col-form-label";typeof i=="string"&&(y=`${y} ${y}-${i}`);const m=Ae(u,r,l&&"visually-hidden",i&&y);return c=c||h,i?T.jsx(ur,{ref:p,as:"label",className:m,htmlFor:c,...d}):T.jsx(n,{ref:p,className:m,htmlFor:c,...d})});Nx.displayName="FormLabel";const Mx=x.forwardRef(({bsPrefix:n,className:r,id:i,...l},u)=>{const{controlId:c}=x.useContext(Pr);return n=we(n,"form-range"),T.jsx("input",{...l,type:"range",ref:u,className:Ae(r,n),id:i||c})});Mx.displayName="FormRange";const Dx=x.forwardRef(({bsPrefix:n,size:r,htmlSize:i,className:l,isValid:u=!1,isInvalid:c=!1,id:d,...p},h)=>{const{controlId:y}=x.useContext(Pr);return n=we(n,"form-select"),T.jsx("select",{...p,size:i,ref:h,className:Ae(l,n,r&&`${n}-${r}`,u&&"is-valid",c&&"is-invalid"),id:d||y})});Dx.displayName="FormSelect";const jx=x.forwardRef(({bsPrefix:n,className:r,as:i="small",muted:l,...u},c)=>(n=we(n,"form-text"),T.jsx(i,{...u,ref:c,className:Ae(r,n,l&&"text-muted")})));jx.displayName="FormText";const Bx=x.forwardRef((n,r)=>T.jsx(Os,{...n,ref:r,type:"switch"}));Bx.displayName="Switch";const gw=Object.assign(Bx,{Input:Os.Input,Label:Os.Label}),$x=x.forwardRef(({bsPrefix:n,className:r,children:i,controlId:l,label:u,...c},d)=>(n=we(n,"form-floating"),T.jsxs(ly,{ref:d,className:Ae(r,n),controlId:l,...c,children:[i,T.jsx("label",{htmlFor:l,children:u})]})));$x.displayName="FloatingLabel";const bw={_ref:dt.any,validated:dt.bool,as:dt.elementType},oy=x.forwardRef(({className:n,validated:r,as:i="form",...l},u)=>T.jsx(i,{...l,ref:u,className:Ae(n,r&&"was-validated")}));oy.displayName="Form";oy.propTypes=bw;const an=Object.assign(oy,{Group:ly,Control:mw,Floating:Cx,Check:Os,Switch:gw,Label:Nx,Text:jx,Range:Mx,Select:Dx,FloatingLabel:$x}),Bs=x.forwardRef(({className:n,bsPrefix:r,as:i="span",...l},u)=>(r=we(r,"input-group-text"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Bs.displayName="InputGroupText";const Sw=n=>T.jsx(Bs,{children:T.jsx(jo,{type:"checkbox",...n})}),xw=n=>T.jsx(Bs,{children:T.jsx(jo,{type:"radio",...n})}),qx=x.forwardRef(({bsPrefix:n,size:r,hasValidation:i,className:l,as:u="div",...c},d)=>{n=we(n,"input-group");const p=x.useMemo(()=>({}),[]);return T.jsx(_x.Provider,{value:p,children:T.jsx(u,{ref:d,...c,className:Ae(l,n,r&&`${n}-${r}`,i&&"has-validation")})})});qx.displayName="InputGroup";const Yr=Object.assign(qx,{Text:Bs,Radio:xw,Checkbox:Sw}),lb=n=>!n||typeof n=="function"?n:r=>{n.current=r};function Ew(n,r){const i=lb(n),l=lb(r);return u=>{i&&i(u),l&&l(u)}}function $s(n,r){return x.useMemo(()=>Ew(n,r),[n,r])}function vd(n){n===void 0&&(n=Ro());try{var r=n.activeElement;return!r||!r.nodeName?null:r}catch{return n.body}}function Ow(n){const r=x.useRef(n);return r.current=n,r}function Tw(n){const r=Ow(n);x.useEffect(()=>()=>r.current(),[])}function _w(n=document){const r=n.defaultView;return Math.abs(r.innerWidth-n.documentElement.clientWidth)}const ob=pw("modal-open");class uy{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:l=!1}={}){this.handleContainerOverflow=i,this.isRTL=l,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return _w(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(r){}removeModalAttributes(r){}setContainerStyle(r){const i={overflow:"hidden"},l=this.isRTL?"paddingLeft":"paddingRight",u=this.getElement();r.style={overflow:u.style.overflow,[l]:u.style[l]},r.scrollBarWidth&&(i[l]=`${parseInt(Gr(u,l)||"0",10)+r.scrollBarWidth}px`),u.setAttribute(ob,""),Gr(u,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(ob),Object.assign(i.style,r.style)}add(r){let i=this.modals.indexOf(r);return i!==-1||(i=this.modals.length,this.modals.push(r),this.setModalAttributes(r),i!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),i}remove(r){const i=this.modals.indexOf(r);i!==-1&&(this.modals.splice(i,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(r))}isTopModal(r){return!!this.modals.length&&this.modals[this.modals.length-1]===r}}const md=(n,r)=>Cs?n==null?(r||Ro()).body:(typeof n=="function"&&(n=n()),n&&"current"in n&&(n=n.current),n&&("nodeType"in n||n.getBoundingClientRect)?n:null):null;function _h(n,r){const i=iy(),[l,u]=x.useState(()=>md(n,i==null?void 0:i.document));if(!l){const c=md(n);c&&u(c)}return x.useEffect(()=>{},[r,l]),x.useEffect(()=>{const c=md(n);c!==l&&u(c)},[n,l]),l}function Aw({children:n,in:r,onExited:i,mountOnEnter:l,unmountOnExit:u}){const c=x.useRef(null),d=x.useRef(r),p=fr(i);x.useEffect(()=>{r?d.current=!0:p(c.current)},[r,p]);const h=$s(c,Za(n)),y=x.cloneElement(n,{ref:h});return r?y:u||!d.current&&l?null:y}const Rw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function ww(n,r){if(n==null)return{};var i={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)>=0)continue;i[l]=n[l]}return i}function Cw(n){let{onEnter:r,onEntering:i,onEntered:l,onExit:u,onExiting:c,onExited:d,addEndListener:p,children:h}=n,y=ww(n,Rw);const m=x.useRef(null),g=$s(m,Za(h)),S=X=>A=>{X&&m.current&&X(m.current,A)},R=x.useCallback(S(r),[r]),_=x.useCallback(S(i),[i]),E=x.useCallback(S(l),[l]),C=x.useCallback(S(u),[u]),j=x.useCallback(S(c),[c]),M=x.useCallback(S(d),[d]),B=x.useCallback(S(p),[p]);return Object.assign({},y,{nodeRef:m},r&&{onEnter:R},i&&{onEntering:_},l&&{onEntered:E},u&&{onExit:C},c&&{onExiting:j},d&&{onExited:M},p&&{addEndListener:B},{children:typeof h=="function"?(X,A)=>h(X,Object.assign({},A,{ref:g})):x.cloneElement(h,{ref:g})})}const Nw=["component"];function Mw(n,r){if(n==null)return{};var i={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)>=0)continue;i[l]=n[l]}return i}const Dw=x.forwardRef((n,r)=>{let{component:i}=n,l=Mw(n,Nw);const u=Cw(l);return T.jsx(i,Object.assign({ref:r},u))});function jw({in:n,onTransition:r}){const i=x.useRef(null),l=x.useRef(!0),u=fr(r);return P0(()=>{if(!i.current)return;let c=!1;return u({in:n,element:i.current,initial:l.current,isStale:()=>c}),()=>{c=!0}},[n,u]),P0(()=>(l.current=!1,()=>{l.current=!0}),[]),i}function Bw({children:n,in:r,onExited:i,onEntered:l,transition:u}){const[c,d]=x.useState(!r);r&&c&&d(!1);const p=jw({in:!!r,onTransition:y=>{const m=()=>{y.isStale()||(y.in?l==null||l(y.element,y.initial):(d(!0),i==null||i(y.element)))};Promise.resolve(u(y)).then(m,g=>{throw y.in||d(!0),g})}}),h=$s(p,Za(n));return c&&!r?null:x.cloneElement(n,{ref:h})}function Ah(n,r,i){return n?T.jsx(Dw,Object.assign({},i,{component:n})):r?T.jsx(Bw,Object.assign({},i,{transition:r})):T.jsx(Aw,Object.assign({},i))}const $w=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function qw(n,r){if(n==null)return{};var i={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)>=0)continue;i[l]=n[l]}return i}let gd;function zw(n){return gd||(gd=new uy({ownerDocument:n==null?void 0:n.document})),gd}function kw(n){const r=iy(),i=n||zw(r),l=x.useRef({dialog:null,backdrop:null});return Object.assign(l.current,{add:()=>i.add(l.current),remove:()=>i.remove(l.current),isTopModal:()=>i.isTopModal(l.current),setDialogRef:x.useCallback(u=>{l.current.dialog=u},[]),setBackdropRef:x.useCallback(u=>{l.current.backdrop=u},[])})}const zx=x.forwardRef((n,r)=>{let{show:i=!1,role:l="dialog",className:u,style:c,children:d,backdrop:p=!0,keyboard:h=!0,onBackdropClick:y,onEscapeKeyDown:m,transition:g,runTransition:S,backdropTransition:R,runBackdropTransition:_,autoFocus:E=!0,enforceFocus:C=!0,restoreFocus:j=!0,restoreFocusOptions:M,renderDialog:B,renderBackdrop:X=ye=>T.jsx("div",Object.assign({},ye)),manager:A,container:$,onShow:O,onHide:q=()=>{},onExit:L,onExited:Y,onExiting:W,onEnter:oe,onEntering:ue,onEntered:he}=n,fe=qw(n,$w);const H=iy(),I=_h($),ae=kw(A),be=WS(),N=NA(i),[Z,le]=x.useState(!i),re=x.useRef(null);x.useImperativeHandle(r,()=>ae,[ae]),Cs&&!N&&i&&(re.current=vd(H==null?void 0:H.document)),i&&Z&&le(!1);const z=fr(()=>{if(ae.add(),me.current=Ur(document,"keydown",ce),xe.current=Ur(document,"focus",()=>setTimeout(te),!0),O&&O(),E){var ye,je;const Me=vd((ye=(je=ae.dialog)==null?void 0:je.ownerDocument)!=null?ye:H==null?void 0:H.document);ae.dialog&&Me&&!So(ae.dialog,Me)&&(re.current=Me,ae.dialog.focus())}}),F=fr(()=>{if(ae.remove(),me.current==null||me.current(),xe.current==null||xe.current(),j){var ye;(ye=re.current)==null||ye.focus==null||ye.focus(M),re.current=null}});x.useEffect(()=>{!i||!I||z()},[i,I,z]),x.useEffect(()=>{Z&&F()},[Z,F]),Tw(()=>{F()});const te=fr(()=>{if(!C||!be()||!ae.isTopModal())return;const ye=vd(H==null?void 0:H.document);ae.dialog&&ye&&!So(ae.dialog,ye)&&ae.dialog.focus()}),pe=fr(ye=>{ye.target===ye.currentTarget&&(y==null||y(ye),p===!0&&q())}),ce=fr(ye=>{h&&ZS(ye)&&ae.isTopModal()&&(m==null||m(ye),ye.defaultPrevented||q())}),xe=x.useRef(),me=x.useRef(),Ee=(...ye)=>{le(!0),Y==null||Y(...ye)};if(!I)return null;const de=Object.assign({role:l,ref:ae.setDialogRef,"aria-modal":l==="dialog"?!0:void 0},fe,{style:c,className:u,tabIndex:-1});let ve=B?B(de):T.jsx("div",Object.assign({},de,{children:x.cloneElement(d,{role:"document"})}));ve=Ah(g,S,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:L,onExiting:W,onExited:Ee,onEnter:oe,onEntering:ue,onEntered:he,children:ve});let Oe=null;return p&&(Oe=X({ref:ae.setBackdropRef,onClick:pe}),Oe=Ah(R,_,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Oe})),T.jsx(T.Fragment,{children:Qa.createPortal(T.jsxs(T.Fragment,{children:[Oe,ve]}),I)})});zx.displayName="Modal";const Lw=Object.assign(zx,{Manager:uy});function Rh(n,r){return n.classList?!!r&&n.classList.contains(r):(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+r+" ")!==-1}function Uw(n,r){n.classList?n.classList.add(r):Rh(n,r)||(typeof n.className=="string"?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r))}function ub(n,r){return n.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Hw(n,r){n.classList?n.classList.remove(r):typeof n.className=="string"?n.className=ub(n.className,r):n.setAttribute("class",ub(n.className&&n.className.baseVal||"",r))}const zi={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class kx extends uy{adjustAndStore(r,i,l){const u=i.style[r];i.dataset[r]=u,Gr(i,{[r]:`${parseFloat(Gr(i,r))+l}px`})}restore(r,i){const l=i.dataset[r];l!==void 0&&(delete i.dataset[r],Gr(i,{[r]:l}))}setContainerStyle(r){super.setContainerStyle(r);const i=this.getElement();if(Uw(i,"modal-open"),!r.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";qi(i,zi.FIXED_CONTENT).forEach(c=>this.adjustAndStore(l,c,r.scrollBarWidth)),qi(i,zi.STICKY_CONTENT).forEach(c=>this.adjustAndStore(u,c,-r.scrollBarWidth)),qi(i,zi.NAVBAR_TOGGLER).forEach(c=>this.adjustAndStore(u,c,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();Hw(i,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";qi(i,zi.FIXED_CONTENT).forEach(c=>this.restore(l,c)),qi(i,zi.STICKY_CONTENT).forEach(c=>this.restore(u,c)),qi(i,zi.NAVBAR_TOGGLER).forEach(c=>this.restore(u,c))}}let bd;function Gw(n){return bd||(bd=new kx(n)),bd}const Lx=x.createContext({onHide(){}}),Ux=x.forwardRef(({closeLabel:n="Close",closeVariant:r,closeButton:i=!1,onHide:l,children:u,...c},d)=>{const p=x.useContext(Lx),h=nl(()=>{p==null||p.onHide(),l==null||l()});return T.jsxs("div",{ref:d,...c,children:[u,i&&T.jsx(Ms,{"aria-label":n,variant:r,onClick:h})]})});Ux.displayName="AbstractModalHeader";const Hx=x.forwardRef(({bsPrefix:n,className:r,as:i,...l},u)=>{n=we(n,"navbar-brand");const c=i||(l.href?"a":"span");return T.jsx(c,{...l,ref:u,className:Ae(r,n)})});Hx.displayName="NavbarBrand";const Gx=x.forwardRef(({children:n,bsPrefix:r,...i},l)=>{r=we(r,"navbar-collapse");const u=x.useContext(Do);return T.jsx(wo,{in:!!(u&&u.expanded),...i,children:T.jsx("div",{ref:l,className:r,children:n})})});Gx.displayName="NavbarCollapse";const Yx=x.forwardRef(({bsPrefix:n,className:r,children:i,label:l="Toggle navigation",as:u="button",onClick:c,...d},p)=>{n=we(n,"navbar-toggler");const{onToggle:h,expanded:y}=x.useContext(Do)||{},m=nl(g=>{c&&c(g),h&&h()});return u==="button"&&(d.type="button"),T.jsx(u,{...d,ref:p,onClick:m,"aria-label":l,className:Ae(r,n,!y&&"collapsed"),children:i||T.jsx("span",{className:`${n}-icon`})})});Yx.displayName="NavbarToggle";const wh=new WeakMap,sb=(n,r)=>{if(!n||!r)return;const i=wh.get(r)||new Map;wh.set(r,i);let l=i.get(n);return l||(l=r.matchMedia(n),l.refCount=0,i.set(l.media,l)),l};function Yw(n,r=typeof window>"u"?void 0:window){const i=sb(n,r),[l,u]=x.useState(()=>i?i.matches:!1);return Tx(()=>{let c=sb(n,r);if(!c)return u(!1);let d=wh.get(r);const p=()=>{u(c.matches)};return c.refCount++,c.addListener(p),p(),()=>{c.removeListener(p),c.refCount--,c.refCount<=0&&(d==null||d.delete(c.media)),c=void 0}},[n]),l}function Vw(n){const r=Object.keys(n);function i(p,h){return p===h?h:p?`${p} and ${h}`:h}function l(p){return r[Math.min(r.indexOf(p)+1,r.length-1)]}function u(p){const h=l(p);let y=n[h];return typeof y=="number"?y=`${y-.2}px`:y=`calc(${y} - 0.2px)`,`(max-width: ${y})`}function c(p){let h=n[p];return typeof h=="number"&&(h=`${h}px`),`(min-width: ${h})`}function d(p,h,y){let m;typeof p=="object"?(m=p,y=h,h=!0):(h=h||!0,m={[p]:h});let g=x.useMemo(()=>Object.entries(m).reduce((S,[R,_])=>((_==="up"||_===!0)&&(S=i(S,c(R))),(_==="down"||_===!0)&&(S=i(S,u(R))),S),""),[JSON.stringify(m)]);return Yw(g,y)}return d}const Pw=Vw({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),Vx=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"offcanvas-body"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Vx.displayName="OffcanvasBody";const Xw={[Ln]:"show",[Lr]:"show"},Px=x.forwardRef(({bsPrefix:n,className:r,children:i,in:l=!1,mountOnEnter:u=!1,unmountOnExit:c=!1,appear:d=!1,...p},h)=>(n=we(n,"offcanvas"),T.jsx(Ns,{ref:h,addEndListener:Kh,in:l,mountOnEnter:u,unmountOnExit:c,appear:d,...p,childRef:Za(i),children:(y,m)=>x.cloneElement(i,{...m,className:Ae(r,i.props.className,(y===Ln||y===Fi)&&`${n}-toggling`,Xw[y])})})));Px.displayName="OffcanvasToggling";const Xx=x.forwardRef(({bsPrefix:n,className:r,closeLabel:i="Close",closeButton:l=!1,...u},c)=>(n=we(n,"offcanvas-header"),T.jsx(Ux,{ref:c,...u,className:Ae(r,n),closeLabel:i,closeButton:l})));Xx.displayName="OffcanvasHeader";const Qw=Zh("h5"),Qx=x.forwardRef(({className:n,bsPrefix:r,as:i=Qw,...l},u)=>(r=we(r,"offcanvas-title"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Qx.displayName="OffcanvasTitle";function Kw(n){return T.jsx(Px,{...n})}function Fw(n){return T.jsx(mo,{...n})}const Kx=x.forwardRef(({bsPrefix:n,className:r,children:i,"aria-labelledby":l,placement:u="start",responsive:c,show:d=!1,backdrop:p=!0,keyboard:h=!0,scroll:y=!1,onEscapeKeyDown:m,onShow:g,onHide:S,container:R,autoFocus:_=!0,enforceFocus:E=!0,restoreFocus:C=!0,restoreFocusOptions:j,onEntered:M,onExit:B,onExiting:X,onEnter:A,onEntering:$,onExited:O,backdropClassName:q,manager:L,renderStaticNode:Y=!1,...W},oe)=>{const ue=x.useRef();n=we(n,"offcanvas");const[he,fe]=x.useState(!1),H=nl(S),I=Pw(c||"xs","up");x.useEffect(()=>{fe(c?d&&!I:d)},[d,c,I]);const ae=x.useMemo(()=>({onHide:H}),[H]);function be(){return L||(y?(ue.current||(ue.current=new kx({handleContainerOverflow:!1})),ue.current):Gw())}const N=(z,...F)=>{z&&(z.style.visibility="visible"),A==null||A(z,...F)},Z=(z,...F)=>{z&&(z.style.visibility=""),O==null||O(...F)},le=x.useCallback(z=>T.jsx("div",{...z,className:Ae(`${n}-backdrop`,q)}),[q,n]),re=z=>T.jsx("div",{...z,...W,className:Ae(r,c?`${n}-${c}`:n,`${n}-${u}`),"aria-labelledby":l,children:i});return T.jsxs(T.Fragment,{children:[!he&&(c||Y)&&re({}),T.jsx(Lx.Provider,{value:ae,children:T.jsx(Lw,{show:he,ref:oe,backdrop:p,container:R,keyboard:h,autoFocus:_,enforceFocus:E&&!y,restoreFocus:C,restoreFocusOptions:j,onEscapeKeyDown:m,onShow:g,onHide:H,onEnter:N,onEntering:$,onEntered:M,onExit:B,onExiting:X,onExited:Z,manager:be(),transition:Kw,backdropTransition:Fw,renderBackdrop:le,renderDialog:re})})]})});Kx.displayName="Offcanvas";const oo=Object.assign(Kx,{Body:Vx,Header:Xx,Title:Qx}),Fx=x.forwardRef(({onHide:n,...r},i)=>{const l=x.useContext(Do),u=nl(()=>{l==null||l.onToggle==null||l.onToggle(),n==null||n()});return T.jsx(oo,{ref:i,show:!!(l!=null&&l.expanded),...r,renderStaticNode:!0,onHide:u})});Fx.displayName="NavbarOffcanvas";const Zx=x.forwardRef(({className:n,bsPrefix:r,as:i="span",...l},u)=>(r=we(r,"navbar-text"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Zx.displayName="NavbarText";const Ix=x.forwardRef((n,r)=>{const{bsPrefix:i,expand:l=!0,variant:u="light",bg:c,fixed:d,sticky:p,className:h,as:y="nav",expanded:m,onToggle:g,onSelect:S,collapseOnSelect:R=!1,..._}=J_(n,{expanded:"onToggle"}),E=we(i,"navbar"),C=x.useCallback((...B)=>{S==null||S(...B),R&&m&&(g==null||g(!1))},[S,R,m,g]);_.role===void 0&&y!=="nav"&&(_.role="navigation");let j=`${E}-expand`;typeof l=="string"&&(j=`${j}-${l}`);const M=x.useMemo(()=>({onToggle:()=>g==null?void 0:g(!m),bsPrefix:E,expanded:!!m,expand:l}),[E,m,l,g]);return T.jsx(Do.Provider,{value:M,children:T.jsx(fw.Provider,{value:C,children:T.jsx(y,{ref:r,..._,className:Ae(h,E,l&&j,u&&`${E}-${u}`,c&&`bg-${c}`,p&&`sticky-${p}`,d&&`fixed-${d}`)})})})});Ix.displayName="Navbar";const Sd=Object.assign(Ix,{Brand:Hx,Collapse:Gx,Offcanvas:Fx,Text:Zx,Toggle:Yx}),Zw=()=>{};function Iw(n,r,{disabled:i,clickTrigger:l}={}){const u=r||Zw;ow(n,u,{disabled:i,clickTrigger:l});const c=fr(d=>{ZS(d)&&u(d)});x.useEffect(()=>{if(i||n==null)return;const d=Ro(ss(n));let p=(d.defaultView||window).event;const h=Ur(d,"keyup",y=>{if(y===p){p=void 0;return}c(y)});return()=>{h()}},[n,i,c])}const Wx=x.forwardRef((n,r)=>{const{flip:i,offset:l,placement:u,containerPadding:c,popperConfig:d={},transition:p,runTransition:h}=n,[y,m]=V0(),[g,S]=V0(),R=$s(m,r),_=_h(n.container),E=_h(n.target),[C,j]=x.useState(!n.show),M=tw(E,y,cw({placement:u,enableEvents:!!n.show,containerPadding:c||5,flip:i,offset:l,arrowElement:g,popperConfig:d}));n.show&&C&&j(!1);const B=(...W)=>{j(!0),n.onExited&&n.onExited(...W)},X=n.show||!C;if(Iw(y,n.onHide,{disabled:!n.rootClose||n.rootCloseDisabled,clickTrigger:n.rootCloseEvent}),!X)return null;const{onExit:A,onExiting:$,onEnter:O,onEntering:q,onEntered:L}=n;let Y=n.children(Object.assign({},M.attributes.popper,{style:M.styles.popper,ref:R}),{popper:M,placement:u,show:!!n.show,arrowProps:Object.assign({},M.attributes.arrow,{style:M.styles.arrow,ref:S})});return Y=Ah(p,h,{in:!!n.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Y,onExit:A,onExiting:$,onExited:B,onEnter:O,onEntering:q,onEntered:L}),_?Qa.createPortal(Y,_):null});Wx.displayName="Overlay";const Jx=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"popover-header"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Jx.displayName="PopoverHeader";const sy=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"popover-body"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));sy.displayName="PopoverBody";function eE(n,r){let i=n;return n==="left"?i=r?"end":"start":n==="right"&&(i=r?"start":"end"),i}function tE(n="absolute"){return{position:n,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const nE=x.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:l,children:u,body:c,arrowProps:d,hasDoneInitialMeasure:p,popper:h,show:y,...m},g)=>{const S=we(n,"popover"),R=QS(),[_]=(r==null?void 0:r.split("-"))||[],E=eE(_,R);let C=l;return y&&!p&&(C={...l,...tE(h==null?void 0:h.strategy)}),T.jsxs("div",{ref:g,role:"tooltip",style:C,"x-placement":_,className:Ae(i,S,_&&`bs-popover-${E}`),...m,children:[T.jsx("div",{className:"popover-arrow",...d}),c?T.jsx(sy,{children:u}):u]})});nE.displayName="Popover";const Ww=Object.assign(nE,{Header:Jx,Body:sy,POPPER_OFFSET:[0,8]}),rE=x.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:l,children:u,arrowProps:c,hasDoneInitialMeasure:d,popper:p,show:h,...y},m)=>{n=we(n,"tooltip");const g=QS(),[S]=(r==null?void 0:r.split("-"))||[],R=eE(S,g);let _=l;return h&&!d&&(_={...l,...tE(p==null?void 0:p.strategy)}),T.jsxs("div",{ref:m,style:_,role:"tooltip","x-placement":S,className:Ae(i,n,`bs-tooltip-${R}`),...y,children:[T.jsx("div",{className:"tooltip-arrow",...c}),T.jsx("div",{className:`${n}-inner`,children:u})]})});rE.displayName="Tooltip";const aE=Object.assign(rE,{TOOLTIP_OFFSET:[0,6]});function Jw(n){const r=x.useRef(null),i=we(void 0,"popover"),l=we(void 0,"tooltip"),u=x.useMemo(()=>({name:"offset",options:{offset:()=>{if(n)return n;if(r.current){if(Rh(r.current,i))return Ww.POPPER_OFFSET;if(Rh(r.current,l))return aE.TOOLTIP_OFFSET}return[0,0]}}}),[n,i,l]);return[r,[u]]}function e2(n,r){const{ref:i}=n,{ref:l}=r;n.ref=i.__wrapped||(i.__wrapped=u=>i(Ss(u))),r.ref=l.__wrapped||(l.__wrapped=u=>l(Ss(u)))}const iE=x.forwardRef(({children:n,transition:r=mo,popperConfig:i={},rootClose:l=!1,placement:u="top",show:c=!1,...d},p)=>{const h=x.useRef({}),[y,m]=x.useState(null),[g,S]=Jw(d.offset),R=Fh(p,g),_=r===!0?mo:r||void 0,E=nl(C=>{m(C),i==null||i.onFirstUpdate==null||i.onFirstUpdate(C)});return Tx(()=>{y&&d.target&&(h.current.scheduleUpdate==null||h.current.scheduleUpdate())},[y,d.target]),x.useEffect(()=>{c||m(null)},[c]),T.jsx(Wx,{...d,ref:R,popperConfig:{...i,modifiers:S.concat(i.modifiers||[]),onFirstUpdate:E},transition:_,rootClose:l,placement:u,show:c,children:(C,{arrowProps:j,popper:M,show:B})=>{var X;e2(C,j);const A=M==null?void 0:M.placement,$=Object.assign(h.current,{state:M==null?void 0:M.state,scheduleUpdate:M==null?void 0:M.update,placement:A,outOfBoundaries:(M==null||(X=M.state)==null||(X=X.modifiersData.hide)==null?void 0:X.isReferenceHidden)||!1,strategy:i.strategy}),O=!!y;return typeof n=="function"?n({...C,placement:A,show:B,...!r&&B&&{className:"show"},popper:$,arrowProps:j,hasDoneInitialMeasure:O}):x.cloneElement(n,{...C,placement:A,arrowProps:j,popper:$,hasDoneInitialMeasure:O,className:Ae(n.props.className,!r&&B&&"show"),style:{...n.props.style,...C.style}})}})});iE.displayName="Overlay";function t2(n){return n&&typeof n=="object"?n:{show:n,hide:n}}function cb(n,r,i){const[l]=r,u=l.currentTarget,c=l.relatedTarget||l.nativeEvent[i];(!c||c!==u)&&!So(u,c)&&n(...r)}dt.oneOf(["click","hover","focus"]);const n2=({trigger:n=["hover","focus"],overlay:r,children:i,popperConfig:l={},show:u,defaultShow:c=!1,onToggle:d,delay:p,placement:h,flip:y=h&&h.indexOf("auto")!==-1,...m})=>{const g=x.useRef(null),S=Fh(g,Za(i)),R=dx(),_=x.useRef(""),[E,C]=VS(u,c,d),j=t2(p),{onFocus:M,onBlur:B,onClick:X}=typeof i!="function"?x.Children.only(i).props:{},A=fe=>{S(Ss(fe))},$=x.useCallback(()=>{if(R.clear(),_.current="show",!j.show){C(!0);return}R.set(()=>{_.current==="show"&&C(!0)},j.show)},[j.show,C,R]),O=x.useCallback(()=>{if(R.clear(),_.current="hide",!j.hide){C(!1);return}R.set(()=>{_.current==="hide"&&C(!1)},j.hide)},[j.hide,C,R]),q=x.useCallback((...fe)=>{$(),M==null||M(...fe)},[$,M]),L=x.useCallback((...fe)=>{O(),B==null||B(...fe)},[O,B]),Y=x.useCallback((...fe)=>{C(!E),X==null||X(...fe)},[X,C,E]),W=x.useCallback((...fe)=>{cb($,fe,"fromElement")},[$]),oe=x.useCallback((...fe)=>{cb(O,fe,"toElement")},[O]),ue=n==null?[]:[].concat(n),he={ref:A};return ue.indexOf("click")!==-1&&(he.onClick=Y),ue.indexOf("focus")!==-1&&(he.onFocus=q,he.onBlur=L),ue.indexOf("hover")!==-1&&(he.onMouseOver=W,he.onMouseOut=oe),T.jsxs(T.Fragment,{children:[typeof i=="function"?i(he):x.cloneElement(i,he),T.jsx(iE,{...m,show:E,onHide:O,flip:y,placement:h,popperConfig:l,target:g.current,children:r})]})},Ts=x.forwardRef(({bsPrefix:n,className:r,as:i="div",...l},u)=>{const c=we(n,"row"),d=PS(),p=XS(),h=`${c}-cols`,y=[];return d.forEach(m=>{const g=l[m];delete l[m];let S;g!=null&&typeof g=="object"?{cols:S}=g:S=g;const R=m!==p?`-${m}`:"";S!=null&&y.push(`${h}${R}-${S}`)}),T.jsx(i,{ref:u,...l,className:Ae(r,c,...y)})});Ts.displayName="Row";const lE=x.forwardRef(({bsPrefix:n,variant:r,animation:i="border",size:l,as:u="div",className:c,...d},p)=>{n=we(n,"spinner");const h=`${n}-${i}`;return T.jsx(u,{ref:p,...d,className:Ae(c,h,l&&`${h}-${l}`,r&&`text-${r}`)})});lE.displayName="Spinner";const r2={[Ln]:"showing",[Fi]:"showing show"},oE=x.forwardRef((n,r)=>T.jsx(mo,{...n,ref:r,transitionClasses:r2}));oE.displayName="ToastFade";const uE=x.createContext({onClose(){}}),sE=x.forwardRef(({bsPrefix:n,closeLabel:r="Close",closeVariant:i,closeButton:l=!0,className:u,children:c,...d},p)=>{n=we(n,"toast-header");const h=x.useContext(uE),y=nl(m=>{h==null||h.onClose==null||h.onClose(m)});return T.jsxs("div",{ref:p,...d,className:Ae(n,u),children:[c,l&&T.jsx(Ms,{"aria-label":r,variant:i,onClick:y,"data-dismiss":"toast"})]})});sE.displayName="ToastHeader";const cE=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"toast-body"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));cE.displayName="ToastBody";const fE=x.forwardRef(({bsPrefix:n,className:r,transition:i=oE,show:l=!0,animation:u=!0,delay:c=5e3,autohide:d=!1,onClose:p,onEntered:h,onExit:y,onExiting:m,onEnter:g,onEntering:S,onExited:R,bg:_,...E},C)=>{n=we(n,"toast");const j=x.useRef(c),M=x.useRef(p);x.useEffect(()=>{j.current=c,M.current=p},[c,p]);const B=dx(),X=!!(d&&l),A=x.useCallback(()=>{X&&(M.current==null||M.current())},[X]);x.useEffect(()=>{B.set(A,j.current)},[B,A]);const $=x.useMemo(()=>({onClose:p}),[p]),O=!!(i&&u),q=T.jsx("div",{...E,ref:C,className:Ae(n,r,_&&`bg-${_}`,!O&&(l?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return T.jsx(uE.Provider,{value:$,children:O&&i?T.jsx(i,{in:l,onEnter:g,onEntering:S,onEntered:h,onExit:y,onExiting:m,onExited:R,unmountOnExit:!0,children:q}):q})});fE.displayName="Toast";const ho=Object.assign(fE,{Body:cE,Header:sE}),a2={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},cy=x.forwardRef(({bsPrefix:n,position:r,containerPosition:i,className:l,as:u="div",...c},d)=>(n=we(n,"toast-container"),T.jsx(u,{ref:d,...c,className:Ae(n,r&&a2[r],i&&`position-${i}`,l)})));cy.displayName="ToastContainer";const i2=()=>{},fy=x.forwardRef(({bsPrefix:n,name:r,className:i,checked:l,type:u,onChange:c,value:d,disabled:p,id:h,inputRef:y,...m},g)=>(n=we(n,"btn-check"),T.jsxs(T.Fragment,{children:[T.jsx("input",{className:n,name:r,type:u,value:d,ref:y,autoComplete:"off",checked:!!l,disabled:!!p,onChange:c||i2,id:h}),T.jsx(Co,{...m,ref:g,className:Ae(i,p&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:h})]})));fy.displayName="ToggleButton";const mr=Object.create(null);mr.open="0";mr.close="1";mr.ping="2";mr.pong="3";mr.message="4";mr.upgrade="5";mr.noop="6";const cs=Object.create(null);Object.keys(mr).forEach(n=>{cs[mr[n]]=n});const Ch={type:"error",data:"parser error"},dE=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",pE=typeof ArrayBuffer=="function",hE=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,dy=({type:n,data:r},i,l)=>dE&&r instanceof Blob?i?l(r):fb(r,l):pE&&(r instanceof ArrayBuffer||hE(r))?i?l(r):fb(new Blob([r]),l):l(mr[n]+(r||"")),fb=(n,r)=>{const i=new FileReader;return i.onload=function(){const l=i.result.split(",")[1];r("b"+(l||""))},i.readAsDataURL(n)};function db(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let xd;function l2(n,r){if(dE&&n.data instanceof Blob)return n.data.arrayBuffer().then(db).then(r);if(pE&&(n.data instanceof ArrayBuffer||hE(n.data)))return r(db(n.data));dy(n,!1,i=>{xd||(xd=new TextEncoder),r(xd.encode(i))})}const pb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let r=n.length*.75,i=n.length,l,u=0,c,d,p,h;n[n.length-1]==="="&&(r--,n[n.length-2]==="="&&r--);const y=new ArrayBuffer(r),m=new Uint8Array(y);for(l=0;l>4,m[u++]=(d&15)<<4|p>>2,m[u++]=(p&3)<<6|h&63;return y},u2=typeof ArrayBuffer=="function",py=(n,r)=>{if(typeof n!="string")return{type:"message",data:yE(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:s2(n.substring(1),r)}:cs[i]?n.length>1?{type:cs[i],data:n.substring(1)}:{type:cs[i]}:Ch},s2=(n,r)=>{if(u2){const i=o2(n);return yE(i,r)}else return{base64:!0,data:n}},yE=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},vE="",c2=(n,r)=>{const i=n.length,l=new Array(i);let u=0;n.forEach((c,d)=>{dy(c,!1,p=>{l[d]=p,++u===i&&r(l.join(vE))})})},f2=(n,r)=>{const i=n.split(vE),l=[];for(let u=0;u{const l=i.length;let u;if(l<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,l);else if(l<65536){u=new Uint8Array(3);const c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,l)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(l))}n.data&&typeof n.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let Ed;function Iu(n){return n.reduce((r,i)=>r+i.length,0)}function Wu(n,r){if(n[0].length===r)return n.shift();const i=new Uint8Array(r);let l=0;for(let u=0;uMath.pow(2,21)-1){p.enqueue(Ch);break}u=m*Math.pow(2,32)+y.getUint32(4),l=3}else{if(Iu(i)n){p.enqueue(Ch);break}}}})}const mE=4;function Bt(n){if(n)return h2(n)}function h2(n){for(var r in Bt.prototype)n[r]=Bt.prototype[r];return n}Bt.prototype.on=Bt.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};Bt.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};Bt.prototype.off=Bt.prototype.removeListener=Bt.prototype.removeAllListeners=Bt.prototype.removeEventListener=function(n,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var l,u=0;uPromise.resolve().then(r):(r,i)=>i(r,0),Un=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),y2="arraybuffer";function gE(n,...r){return r.reduce((i,l)=>(n.hasOwnProperty(l)&&(i[l]=n[l]),i),{})}const v2=Un.setTimeout,m2=Un.clearTimeout;function zs(n,r){r.useNativeTimers?(n.setTimeoutFn=v2.bind(Un),n.clearTimeoutFn=m2.bind(Un)):(n.setTimeoutFn=Un.setTimeout.bind(Un),n.clearTimeoutFn=Un.clearTimeout.bind(Un))}const g2=1.33;function b2(n){return typeof n=="string"?S2(n):Math.ceil((n.byteLength||n.size)*g2)}function S2(n){let r=0,i=0;for(let l=0,u=n.length;l=57344?i+=3:(l++,i+=4);return i}function bE(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function x2(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function E2(n){let r={},i=n.split("&");for(let l=0,u=i.length;l{this.readyState="paused",r()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||i()})),this.writable||(l++,this.once("drain",function(){--l||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};f2(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,c2(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=bE()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let SE=!1;try{SE=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const _2=SE;function A2(){}class R2 extends T2{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let l=location.port;l||(l=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||l!==r.port}}doWrite(r,i){const l=this.request({method:"POST",data:r});l.on("success",i),l.on("error",(u,c)=>{this.onError("xhr post error",u,c)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,l)=>{this.onError("xhr poll error",i,l)}),this.pollXhr=r}}class hr extends Bt{constructor(r,i,l){super(),this.createRequest=r,zs(this,l),this._opts=l,this._method=l.method||"GET",this._uri=i,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var r;const i=gE(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(i);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&l.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var u;l.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=hr.requestsCount++,hr.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=A2,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete hr.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}hr.requestsCount=0;hr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",hb);else if(typeof addEventListener=="function"){const n="onpagehide"in Un?"pagehide":"unload";addEventListener(n,hb,!1)}}function hb(){for(let n in hr.requests)hr.requests.hasOwnProperty(n)&&hr.requests[n].abort()}const w2=function(){const n=xE({xdomain:!1});return n&&n.responseType!==null}();class C2 extends R2{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=w2&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new hr(xE,this.uri(),r)}}function xE(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||_2))return new XMLHttpRequest}catch{}if(!r)try{return new Un[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const EE=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class N2 extends hy{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,l=EE?{}:gE(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,l)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i{try{this.doWrite(l,c)}catch{}u&&qs(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=bE()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const Od=Un.WebSocket||Un.MozWebSocket;class M2 extends N2{createSocket(r,i,l){return EE?new Od(r,i,l):i?new Od(r,i):new Od(r)}doWrite(r,i){this.ws.send(i)}}class D2 extends hy{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=p2(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=r.readable.pipeThrough(i).getReader(),u=d2();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{l.read().then(({done:p,value:h})=>{p||(this.onPacket(h),c())}).catch(p=>{})};c();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i{u&&qs(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const j2={websocket:M2,webtransport:D2,polling:C2},B2=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$2=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Nh(n){if(n.length>8e3)throw"URI too long";const r=n,i=n.indexOf("["),l=n.indexOf("]");i!=-1&&l!=-1&&(n=n.substring(0,i)+n.substring(i,l).replace(/:/g,";")+n.substring(l,n.length));let u=B2.exec(n||""),c={},d=14;for(;d--;)c[$2[d]]=u[d]||"";return i!=-1&&l!=-1&&(c.source=r,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=q2(c,c.path),c.queryKey=z2(c,c.query),c}function q2(n,r){const i=/\/{2,9}/g,l=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&l.splice(0,1),r.slice(-1)=="/"&&l.splice(l.length-1,1),l}function z2(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,c){u&&(i[u]=c)}),i}const Mh=typeof addEventListener=="function"&&typeof removeEventListener=="function",fs=[];Mh&&addEventListener("offline",()=>{fs.forEach(n=>n())},!1);class Ea extends Bt{constructor(r,i){if(super(),this.binaryType=y2,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const l=Nh(r);i.hostname=l.host,i.secure=l.protocol==="https"||l.protocol==="wss",i.port=l.port,l.query&&(i.query=l.query)}else i.host&&(i.hostname=Nh(i.host).host);zs(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(l=>{const u=l.prototype.name;this.transports.push(u),this._transportsByName[u]=l}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=E2(this.opts.query)),Mh&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},fs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=mE,i.transport=r,this.id&&(i.sid=this.id);const l=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&Ea.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Ea.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let l=0;l0&&i>this._maxPayload)return this.writeBuffer.slice(0,l);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,qs(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,l){return this._sendPacket("message",r,i,l),this}send(r,i,l){return this._sendPacket("message",r,i,l),this}_sendPacket(r,i,l,u){if(typeof i=="function"&&(u=i,i=void 0),typeof l=="function"&&(u=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const c={type:r,data:i,options:l};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),u&&this.once("flush",u),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},l=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?l():r()}):this.upgrading?l():r()),this}_onError(r){if(Ea.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Mh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=fs.indexOf(this._offlineEventListener);l!==-1&&fs.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}Ea.protocol=mE;class k2 extends Ea{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r{l||(i.send([{type:"ping",data:"probe"}]),i.once("packet",g=>{if(!l)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Ea.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(m(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const S=new Error("probe error");S.transport=i.name,this.emitReserved("upgradeError",S)}}))};function c(){l||(l=!0,m(),i.close(),i=null)}const d=g=>{const S=new Error("probe error: "+g);S.transport=i.name,c(),this.emitReserved("upgradeError",S)};function p(){d("transport closed")}function h(){d("socket closed")}function y(g){i&&g.name!==i.name&&c()}const m=()=>{i.removeListener("open",u),i.removeListener("error",d),i.removeListener("close",p),this.off("close",h),this.off("upgrading",y)};i.once("open",u),i.once("error",d),i.once("close",p),this.once("close",h),this.once("upgrading",y),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{l||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let l=0;lj2[u]).filter(u=>!!u)),super(r,l)}};function U2(n,r="",i){let l=n;i=i||typeof location<"u"&&location,n==null&&(n=i.protocol+"//"+i.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=i.protocol+n:n=i.host+n),/^(https?|wss?):\/\//.test(n)||(typeof i<"u"?n=i.protocol+"//"+n:n="https://"+n),l=Nh(n)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const c=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+c+":"+l.port+r,l.href=l.protocol+"://"+c+(i&&i.port===l.port?"":":"+l.port),l}const H2=typeof ArrayBuffer=="function",G2=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,OE=Object.prototype.toString,Y2=typeof Blob=="function"||typeof Blob<"u"&&OE.call(Blob)==="[object BlobConstructor]",V2=typeof File=="function"||typeof File<"u"&&OE.call(File)==="[object FileConstructor]";function yy(n){return H2&&(n instanceof ArrayBuffer||G2(n))||Y2&&n instanceof Blob||V2&&n instanceof File}function ds(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,l=n.length;i=0&&n.num{delete this.acks[r];for(let p=0;p{this.io.clearTimeoutFn(c),i.apply(this,p)};d.withError=!0,this.acks[r]=d}emitWithAck(r,...i){return new Promise((l,u)=>{const c=(d,p)=>d?u(d):l(p);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>l!==this._queue[0]?void 0:(u!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Ve.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(l=>String(l.id)===r)){const l=this.acks[r];delete this.acks[r],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ve.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ve.EVENT:case Ve.BINARY_EVENT:this.onevent(r);break;case Ve.ACK:case Ve.BINARY_ACK:this.onack(r);break;case Ve.DISCONNECT:this.ondisconnect();break;case Ve.CONNECT_ERROR:this.destroy();const l=new Error(r.data.message);l.data=r.data.data,this.emitReserved("connect_error",l);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const l of i)l.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let l=!1;return function(...u){l||(l=!0,i.packet({type:Ve.ACK,id:r,data:u}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ve.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let l=0;l0&&n.jitter<=1?n.jitter:0,this.attempts=0}rl.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*n);n=(Math.floor(r*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};rl.prototype.reset=function(){this.attempts=0};rl.prototype.setMin=function(n){this.ms=n};rl.prototype.setMax=function(n){this.max=n};rl.prototype.setJitter=function(n){this.jitter=n};class Bh extends Bt{constructor(r,i){var l;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,zs(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((l=i.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new rl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const u=i.parser||I2;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new L2(this.uri,this.opts);const i=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=Wn(i,"open",function(){l.onopen(),r&&r()}),c=p=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",p),r?r(p):this.maybeReconnectOnOpen()},d=Wn(i,"error",c);if(this._timeout!==!1){const p=this._timeout,h=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},p);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(u),this.subs.push(d),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(Wn(r,"ping",this.onping.bind(this)),Wn(r,"data",this.ondata.bind(this)),Wn(r,"error",this.onerror.bind(this)),Wn(r,"close",this.onclose.bind(this)),Wn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){qs(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let l=this.nsps[r];return l?this._autoConnect&&!l.active&&l.connect():(l=new TE(this,r,i),this.nsps[r]=l),l}_destroy(r){const i=Object.keys(this.nsps);for(const l of i)if(this.nsps[l].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let l=0;lr()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const l=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(u=>{u?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",u)):r.onreconnect()}))},i);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const to={};function ps(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=U2(n,r.path||"/socket.io"),l=i.source,u=i.id,c=i.path,d=to[u]&&c in to[u].nsps,p=r.forceNew||r["force new connection"]||r.multiplex===!1||d;let h;return p?h=new Bh(l,r):(to[u]||(to[u]=new Bh(l,r)),h=to[u]),i.query&&!r.query&&(r.query=i.queryKey),h.socket(i.path,r)}Object.assign(ps,{Manager:Bh,Socket:TE,io:ps,connect:ps});const _E=(n,r)=>{if(typeof n=="number")return{full_access_path:r,doc:null,readonly:!1,type:Number.isInteger(n)?"int":"float",value:n};if(typeof n=="boolean")return{full_access_path:r,doc:null,readonly:!1,type:"bool",value:n};if(typeof n=="string")return{full_access_path:r,doc:null,readonly:!1,type:"str",value:n};if(n===null)return{full_access_path:r,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},J2=(n,r="")=>{const l=n.map((u,c)=>{(typeof u=="number"||typeof u=="boolean"||typeof u=="string"||u===null)&&_E(u,`${r}[${c}]`)});return{full_access_path:r,type:"list",value:l,readonly:!1,doc:null}},eC=(n,r="")=>{const l=Object.entries(n).reduce((u,[c,d])=>{const p=`${r}["${c}"]`;return(typeof d=="number"||typeof d=="boolean"||typeof d=="string"||d===null)&&(u[c]=_E(d,p)),u},{});return{full_access_path:r,type:"dict",value:l,readonly:!1,doc:null}},AE=window.location.hostname,RE=window.location.port,wE=window.__FORWARDED_PREFIX__||"",so=window.__FORWARDED_PROTO__||"http",Pi=`${AE}:${RE}${wE}`,tC=so==="http"?"ws":"wss",nC=`${tC}://${AE}:${RE}/`,kr=ps(nC,{path:`${wE}/ws/socket.io`,transports:["websocket"]}),rC=(n,r)=>{r?kr.emit("update_value",{access_path:n.full_access_path,value:n},r):kr.emit("update_value",{access_path:n.full_access_path,value:n})},CE=(n,r=[],i={},l)=>{const u=J2(r),c=eC(i);kr.emit("trigger_method",{access_path:n,args:u,kwargs:c})},NE=Xe.memo(n=>{const{showNotification:r,notifications:i,removeNotificationById:l}=n;return T.jsx(cy,{className:"navbarOffset toastContainer",position:"top-end",children:i.map(u=>u.levelname==="ERROR"||u.levelname==="CRITICAL"||r&&["WARNING","INFO","DEBUG"].includes(u.levelname)?T.jsxs(ho,{className:u.levelname.toLowerCase()+"Toast",onClose:()=>l(u.id),onClick:()=>l(u.id),onMouseLeave:()=>{u.levelname!=="ERROR"&&l(u.id)},show:!0,autohide:u.levelname==="WARNING"||u.levelname==="INFO"||u.levelname==="DEBUG",delay:u.levelname==="WARNING"||u.levelname==="INFO"||u.levelname==="DEBUG"?2e3:void 0,children:[T.jsxs(ho.Header,{closeButton:!1,className:u.levelname.toLowerCase()+"Toast text-right",children:[T.jsx("strong",{className:"me-auto",children:u.levelname}),T.jsx("small",{children:u.timeStamp})]}),T.jsx(ho.Body,{children:u.message})]},u.id):null)})});NE.displayName="Notifications";const $h=Xe.memo(({connectionStatus:n})=>{const[r,i]=x.useState(!0);x.useEffect(()=>{i(!0)},[n]);const l=()=>i(!1),u=()=>{switch(n){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:c,bg:d,delay:p}=u();return T.jsx(cy,{position:"bottom-center",className:"toastContainer",children:T.jsx(ho,{show:r,onClose:l,delay:p,autohide:p!==void 0,bg:d,children:T.jsxs(ho.Body,{className:"d-flex justify-content-between",children:[c,T.jsx(Co,{variant:"close",size:"sm",onClick:l})]})})})});$h.displayName="ConnectionToast";function ME(n){const r=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return n.match(r)??[]}function aC(n){if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1)),n.startsWith("'")&&n.endsWith("'")||n.startsWith('"')&&n.endsWith('"'))return n.slice(1,-1);const r=parseFloat(n);return isNaN(r)?n:r}function iC(n,r,i){if(r in n)return n[r];if(Array.isArray(n)){if(i&&r===n.length)return n.push(mb()),n[r];throw new Error(`Index out of bounds: ${r}`)}else{if(i)return n[r]=mb(),n[r];throw new Error(`Key not found: ${r}`)}}function vb(n,r,i=!1){const l=aC(r);try{return iC(n,l,i)}catch(u){throw u instanceof RangeError?new Error(`Index '${l}': ${u.message}`):u instanceof Error?new Error(`Key '${l}': ${u.message}`):u}}function lC(n,r,i){const l=ME(r),u=JSON.parse(JSON.stringify(n));let c=u;try{for(let h=0;h{const{docString:r}=n;if(!r)return null;const i=T.jsx(aE,{id:"tooltip",children:r});return T.jsx(n2,{placement:"bottom",overlay:i,children:T.jsx(ex,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});tr.displayName="DocStringComponent";function gr(){const n=x.useRef(0);return x.useEffect(()=>{n.current+=1}),n.current}const DE=Xe.memo(n=>{const{value:r,fullAccessPath:i,readOnly:l,docString:u,addNotification:c,changeCallback:d=()=>{},displayName:p,id:h}=n;gr(),x.useEffect(()=>{c(`${i} changed to ${r}.`)},[n.value]);const y=m=>{d({type:"bool",value:m,full_access_path:i,readonly:l,doc:u})};return T.jsxs("div",{className:"component buttonComponent",id:h,children:[!1,T.jsxs(fy,{id:`toggle-check-${h}`,type:"checkbox",variant:r?"success":"secondary",checked:r,value:p,disabled:l,onChange:m=>y(m.currentTarget.checked),children:[p,T.jsx(tr,{docString:u})]})]})});DE.displayName="ButtonComponent";const oC=(n,r,i)=>{const l=r.split("."),u=l[0].length,c=l[1]?l[1].length:0,d=i>u;let p=0;d?p=Math.pow(10,u+1-i):p=Math.pow(10,u-i);const y=(parseFloat(r)+(n==="ArrowUp"?p:-p)).toFixed(c),m=y.split(".")[0].length;return m>u?i+=1:mi>r?{value:n.slice(0,r)+n.slice(i),selectionStart:r}:r>0?{value:n.slice(0,r-1)+n.slice(r),selectionStart:r-1}:{value:n,selectionStart:r},sC=(n,r,i)=>i>r?{value:n.slice(0,r)+n.slice(i),selectionStart:r}:r{let u=r;return n==="."&&r.includes(".")?{value:r,selectionStart:i}:n==="-"?(i===0&&l>i?(u="-"+r.slice(l),i=1):i===0&&!r.startsWith("-")?(u="-"+r,i=1):(i===0||i===1)&&r.startsWith("-")&&(u=r.slice(1),i=0),{value:u,selectionStart:i}):(l>i?u=r.slice(0,i)+n+r.slice(l):u=r.slice(0,i)+n+r.slice(i),{value:u,selectionStart:i+1})},cC=(n,r)=>Math.max(0,n-r),fC=(n,r,i)=>Math.min(i,n+r),_s=Xe.memo(n=>{const{fullAccessPath:r,value:i,readOnly:l,type:u,docString:c,isInstantUpdate:d,unit:p,addNotification:h,changeCallback:y=()=>{},displayName:m,id:g}=n,S=x.useRef(null),[R,_]=x.useState(i.toString());gr();const E=j=>{const{key:M,target:B}=j,X=B,{value:A}=X,$=A.length,O=X.selectionEnd??0;let q=X.selectionStart??0;if(M==="F1"||M==="F5"||M==="F12"||M==="Tab")return;if(M==="ArrowLeft"||M==="ArrowRight"){if(O>q&&!j.shiftKey){const W=M==="ArrowLeft"?q:O;S.current=W}else{const W=M==="ArrowLeft"?cC(q,1):fC(O,1,$);S.current=W}return}j.preventDefault();let L=A;if(j.ctrlKey&&M==="a"){X.setSelectionRange(0,A.length);return}else if(M>="0"&&M<="9"||M==="-")({value:L,selectionStart:q}=gb(M,A,q,O));else if(M==="."&&(u==="float"||u==="Quantity"))({value:L,selectionStart:q}=gb(M,A,q,O));else if(M==="ArrowUp"||M==="ArrowDown")({value:L,selectionStart:q}=oC(M,A,q));else if(M==="Backspace")({value:L,selectionStart:q}=uC(A,q,O));else if(M==="Delete")({value:L,selectionStart:q}=sC(A,q,O));else if(M==="Enter"&&!d){let Y;u==="Quantity"?Y={type:"Quantity",value:{magnitude:Number(L),unit:p},full_access_path:r,readonly:l,doc:c}:Y={type:u,value:Number(L),full_access_path:r,readonly:l,doc:c},y(Y);return}else return;if(d){let Y;u==="Quantity"?Y={type:"Quantity",value:{magnitude:Number(L),unit:p},full_access_path:r,readonly:l,doc:c}:Y={type:u,value:Number(L),full_access_path:r,readonly:l,doc:c},y(Y)}_(L),S.current=q},C=()=>{if(!d){let j;u==="Quantity"?j={type:"Quantity",value:{magnitude:Number(R),unit:p},full_access_path:r,readonly:l,doc:c}:j={type:u,value:Number(R),full_access_path:r,readonly:l,doc:c},y(j)}};return x.useEffect(()=>{const j=u==="int"?parseInt(R):parseFloat(R);i!==j&&_(i.toString());let M=`${r} changed to ${n.value}`;p===void 0?M+=".":M+=` ${p}.`,h(M)},[i]),x.useEffect(()=>{const j=document.getElementsByName(g)[0];j&&S.current!==null&&j.setSelectionRange(S.current,S.current)}),T.jsxs("div",{className:"component numberComponent",id:g,children:[!1,T.jsxs(Yr,{children:[m&&T.jsxs(Yr.Text,{children:[m,T.jsx(tr,{docString:c})]}),T.jsx(an.Control,{type:"text",value:R,disabled:l,onChange:()=>{},name:g,onKeyDown:E,onBlur:C,className:d&&!l?"instantUpdate":""}),p&&T.jsx(Yr.Text,{children:p})]})]})});_s.displayName="NumberComponent";const xo={black:"#000",white:"#fff"},ki={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Li={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ui={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Hi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Gi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},no={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},dC={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Eo(n){let r="https://mui.com/production-error/?code="+n;for(let i=1;i0?It(al,--pn):0,el--,jt===10&&(el=1,Ls--),jt}function Tn(){return jt=pn2||To(jt)>3?"":" "}function wC(n,r){for(;--r&&Tn()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return Bo(n,hs()+(r<6&&yr()==32&&Tn()==32))}function zh(n){for(;Tn();)switch(jt){case n:return pn;case 34:case 39:n!==34&&n!==39&&zh(jt);break;case 40:n===41&&zh(n);break;case 92:Tn();break}return pn}function CC(n,r){for(;Tn()&&n+jt!==57;)if(n+jt===84&&yr()===47)break;return"/*"+Bo(r,pn-1)+"*"+ks(n===47?n:Tn())}function NC(n){for(;!To(yr());)Tn();return Bo(n,pn)}function MC(n){return kE(vs("",null,null,null,[""],n=zE(n),0,[0],n))}function vs(n,r,i,l,u,c,d,p,h){for(var y=0,m=0,g=d,S=0,R=0,_=0,E=1,C=1,j=1,M=0,B="",X=u,A=c,$=l,O=B;C;)switch(_=M,M=Tn()){case 40:if(_!=108&&It(O,g-1)==58){qh(O+=tt(ys(M),"&","&\f"),"&\f")!=-1&&(j=-1);break}case 34:case 39:case 91:O+=ys(M);break;case 9:case 10:case 13:case 32:O+=RC(_);break;case 92:O+=wC(hs()-1,7);continue;case 47:switch(yr()){case 42:case 47:Ju(DC(CC(Tn(),hs()),r,i),h);break;default:O+="/"}break;case 123*E:p[y++]=sr(O)*j;case 125*E:case 59:case 0:switch(M){case 0:case 125:C=0;case 59+m:j==-1&&(O=tt(O,/\f/g,"")),R>0&&sr(O)-g&&Ju(R>32?Sb(O+";",l,i,g-1):Sb(tt(O," ","")+";",l,i,g-2),h);break;case 59:O+=";";default:if(Ju($=bb(O,r,i,y,m,u,p,B,X=[],A=[],g),c),M===123)if(m===0)vs(O,r,$,$,X,c,g,p,A);else switch(S===99&&It(O,3)===110?100:S){case 100:case 108:case 109:case 115:vs(n,$,$,l&&Ju(bb(n,$,$,0,0,u,p,B,u,X=[],g),A),u,A,g,p,l?X:A);break;default:vs(O,$,$,$,[""],A,0,p,A)}}y=m=R=0,E=j=1,B=O="",g=d;break;case 58:g=1+sr(O),R=_;default:if(E<1){if(M==123)--E;else if(M==125&&E++==0&&AC()==125)continue}switch(O+=ks(M),M*E){case 38:j=m>0?1:(O+="\f",-1);break;case 44:p[y++]=(sr(O)-1)*j,j=1;break;case 64:yr()===45&&(O+=ys(Tn())),S=yr(),m=g=sr(B=O+=NC(hs())),M++;break;case 45:_===45&&sr(O)==2&&(E=0)}}return c}function bb(n,r,i,l,u,c,d,p,h,y,m){for(var g=u-1,S=u===0?c:[""],R=Sy(S),_=0,E=0,C=0;_0?S[j]+" "+M:tt(M,/&\f/g,S[j])))&&(h[C++]=B);return Us(n,r,i,u===0?gy:p,h,y,m)}function DC(n,r,i){return Us(n,r,i,jE,ks(_C()),Oo(n,2,-2),0)}function Sb(n,r,i,l){return Us(n,r,i,by,Oo(n,0,l),Oo(n,l+1,-1),l)}function Qi(n,r){for(var i="",l=Sy(n),u=0;u6)switch(It(n,r+1)){case 109:if(It(n,r+4)!==45)break;case 102:return tt(n,/(.+:)(.+)-([^]+)/,"$1"+et+"$2-$3$1"+As+(It(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~qh(n,"stretch")?UE(tt(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(It(n,r+1)!==115)break;case 6444:switch(It(n,sr(n)-3-(~qh(n,"!important")&&10))){case 107:return tt(n,":",":"+et)+n;case 101:return tt(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+et+(It(n,14)===45?"inline-":"")+"box$3$1"+et+"$2$3$1"+en+"$2box$3")+n}break;case 5936:switch(It(n,r+11)){case 114:return et+n+en+tt(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return et+n+en+tt(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return et+n+en+tt(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return et+n+en+n+n}return n}var HC=function(r,i,l,u){if(r.length>-1&&!r.return)switch(r.type){case by:r.return=UE(r.value,r.length);break;case BE:return Qi([ro(r,{value:tt(r.value,"@","@"+et)})],u);case gy:if(r.length)return TC(r.props,function(c){switch(OC(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qi([ro(r,{props:[tt(c,/:(read-\w+)/,":"+As+"$1")]})],u);case"::placeholder":return Qi([ro(r,{props:[tt(c,/:(plac\w+)/,":"+et+"input-$1")]}),ro(r,{props:[tt(c,/:(plac\w+)/,":"+As+"$1")]}),ro(r,{props:[tt(c,/:(plac\w+)/,en+"input-$1")]})],u)}return""})}},GC=[HC],HE=function(r){var i=r.key;if(i==="css"){var l=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(l,function(E){var C=E.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var u=r.stylisPlugins||GC,c={},d,p=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(E){for(var C=E.getAttribute("data-emotion").split(" "),j=1;j"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch{}}return n(),pd.exports=hA(),pd.exports}var yA=KS();const Qa=_a(yA),H0={disabled:!1},FS=Xe.createContext(null);var vA=function(r){return r.scrollTop},lo="unmounted",Sa="exited",Ln="entering",Lr="entered",Fi="exiting",Kr=function(n){eA(r,n);function r(l,u){var c;c=n.call(this,l,u)||this;var d=u,p=d&&!d.isMounting?l.enter:l.appear,h;return c.appearStatus=null,l.in?p?(h=Sa,c.appearStatus=Ln):h=Lr:l.unmountOnExit||l.mountOnEnter?h=lo:h=Sa,c.state={status:h},c.nextCallback=null,c}r.getDerivedStateFromProps=function(u,c){var d=u.in;return d&&c.status===lo?{status:Sa}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(u){var c=null;if(u!==this.props){var d=this.state.status;this.props.in?d!==Ln&&d!==Lr&&(c=Ln):(d===Ln||d===Lr)&&(c=Fi)}this.updateStatus(!1,c)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var u=this.props.timeout,c,d,p;return c=d=p=u,u!=null&&typeof u!="number"&&(c=u.exit,d=u.enter,p=u.appear!==void 0?u.appear:d),{exit:c,enter:d,appear:p}},i.updateStatus=function(u,c){if(u===void 0&&(u=!1),c!==null)if(this.cancelNextCallback(),c===Ln){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:Qa.findDOMNode(this);d&&vA(d)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sa&&this.setState({status:lo})},i.performEnter=function(u){var c=this,d=this.props.enter,p=this.context?this.context.isMounting:u,h=this.props.nodeRef?[p]:[Qa.findDOMNode(this),p],y=h[0],m=h[1],g=this.getTimeouts(),S=p?g.appear:g.enter;if(!u&&!d||H0.disabled){this.safeSetState({status:Lr},function(){c.props.onEntered(y)});return}this.props.onEnter(y,m),this.safeSetState({status:Ln},function(){c.props.onEntering(y,m),c.onTransitionEnd(S,function(){c.safeSetState({status:Lr},function(){c.props.onEntered(y,m)})})})},i.performExit=function(){var u=this,c=this.props.exit,d=this.getTimeouts(),p=this.props.nodeRef?void 0:Qa.findDOMNode(this);if(!c||H0.disabled){this.safeSetState({status:Sa},function(){u.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:Fi},function(){u.props.onExiting(p),u.onTransitionEnd(d.exit,function(){u.safeSetState({status:Sa},function(){u.props.onExited(p)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(u,c){c=this.setNextCallback(c),this.setState(u,c)},i.setNextCallback=function(u){var c=this,d=!0;return this.nextCallback=function(p){d&&(d=!1,c.nextCallback=null,u(p))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},i.onTransitionEnd=function(u,c){this.setNextCallback(c);var d=this.props.nodeRef?this.props.nodeRef.current:Qa.findDOMNode(this),p=u==null&&!this.props.addEndListener;if(!d||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],y=h[0],m=h[1];this.props.addEndListener(y,m)}u!=null&&setTimeout(this.nextCallback,u)},i.render=function(){var u=this.state.status;if(u===lo)return null;var c=this.props,d=c.children;c.in,c.mountOnEnter,c.unmountOnExit,c.appear,c.enter,c.exit,c.timeout,c.addEndListener,c.onEnter,c.onEntering,c.onEntered,c.onExit,c.onExiting,c.onExited,c.nodeRef;var p=er(c,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Xe.createElement(FS.Provider,{value:null},typeof d=="function"?d(u,p):Xe.cloneElement(Xe.Children.only(d),p))},r}(Xe.Component);Kr.contextType=FS;Kr.propTypes={};function $i(){}Kr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$i,onEntering:$i,onEntered:$i,onExit:$i,onExiting:$i,onExited:$i};Kr.UNMOUNTED=lo;Kr.EXITED=Sa;Kr.ENTERING=Ln;Kr.ENTERED=Lr;Kr.EXITING=Fi;function ZS(n){return n.code==="Escape"||n.keyCode===27}function mA(){const n=x.version.split(".");return{major:+n[0],minor:+n[1],patch:+n[2]}}function Za(n){if(!n||typeof n=="function")return null;const{major:r}=mA();return r>=19?n.props.ref:n.ref}const Cs=!!(typeof window<"u"&&window.document&&window.document.createElement);var Sh=!1,xh=!1;try{var hd={get passive(){return Sh=!0},get once(){return xh=Sh=!0}};Cs&&(window.addEventListener("test",hd,hd),window.removeEventListener("test",hd,!0))}catch{}function gA(n,r,i,l){if(l&&typeof l!="boolean"&&!xh){var u=l.once,c=l.capture,d=i;!xh&&u&&(d=i.__once||function p(h){this.removeEventListener(r,p,c),i.call(this,h)},i.__once=d),n.addEventListener(r,d,Sh?l:c)}n.addEventListener(r,i,l)}function bA(n,r,i,l){var u=l&&typeof l!="boolean"?l.capture:l;n.removeEventListener(r,i,u),i.__once&&n.removeEventListener(r,i.__once,u)}function Ur(n,r,i,l){return gA(n,r,i,l),function(){bA(n,r,i,l)}}function SA(n,r,i,l){if(l===void 0&&(l=!0),n){var u=document.createEvent("HTMLEvents");u.initEvent(r,i,l),n.dispatchEvent(u)}}function xA(n){var r=Gr(n,"transitionDuration")||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function EA(n,r,i){i===void 0&&(i=5);var l=!1,u=setTimeout(function(){l||SA(n,"transitionend",!0)},r+i),c=Ur(n,"transitionend",function(){l=!0},{once:!0});return function(){clearTimeout(u),c()}}function OA(n,r,i,l){i==null&&(i=xA(n)||0);var u=EA(n,i,l),c=Ur(n,"transitionend",r);return function(){u(),c()}}function G0(n,r){const i=Gr(n,r)||"",l=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*l}function Kh(n,r){const i=G0(n,"transitionDuration"),l=G0(n,"transitionDelay"),u=OA(n,c=>{c.target===n&&(u(),r(c))},i+l)}function Jl(...n){return n.filter(r=>r!=null).reduce((r,i)=>{if(typeof i!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return r===null?i:function(...u){r.apply(this,u),i.apply(this,u)}},null)}function IS(n){n.offsetHeight}const Y0=n=>!n||typeof n=="function"?n:r=>{n.current=r};function TA(n,r){const i=Y0(n),l=Y0(r);return u=>{i&&i(u),l&&l(u)}}function Fh(n,r){return x.useMemo(()=>TA(n,r),[n,r])}function Ss(n){return n&&"setState"in n?Qa.findDOMNode(n):n??null}const Ns=Xe.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:l,onExiting:u,onExited:c,addEndListener:d,children:p,childRef:h,...y},m)=>{const g=x.useRef(null),S=Fh(g,h),A=j=>{S(Ss(j))},_=j=>O=>{j&&g.current&&j(g.current,O)},E=x.useCallback(_(n),[n]),C=x.useCallback(_(r),[r]),L=x.useCallback(_(i),[i]),B=x.useCallback(_(l),[l]),M=x.useCallback(_(u),[u]),X=x.useCallback(_(c),[c]),R=x.useCallback(_(d),[d]);return T.jsx(Kr,{ref:m,...y,onEnter:E,onEntered:L,onEntering:C,onExit:B,onExited:X,onExiting:M,addEndListener:R,nodeRef:g,children:typeof p=="function"?(j,O)=>p(j,{...O,ref:A}):Xe.cloneElement(p,{ref:A})})});Ns.displayName="TransitionWrapper";const _A={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function AA(n,r){const i=`offset${n[0].toUpperCase()}${n.slice(1)}`,l=r[i],u=_A[n];return l+parseInt(Gr(r,u[0]),10)+parseInt(Gr(r,u[1]),10)}const RA={[Sa]:"collapse",[Fi]:"collapsing",[Ln]:"collapsing",[Lr]:"collapse show"},wo=Xe.forwardRef(({onEnter:n,onEntering:r,onEntered:i,onExit:l,onExiting:u,className:c,children:d,dimension:p="height",in:h=!1,timeout:y=300,mountOnEnter:m=!1,unmountOnExit:g=!1,appear:S=!1,getDimensionValue:A=AA,..._},E)=>{const C=typeof p=="function"?p():p,L=x.useMemo(()=>Jl(j=>{j.style[C]="0"},n),[C,n]),B=x.useMemo(()=>Jl(j=>{const O=`scroll${C[0].toUpperCase()}${C.slice(1)}`;j.style[C]=`${j[O]}px`},r),[C,r]),M=x.useMemo(()=>Jl(j=>{j.style[C]=null},i),[C,i]),X=x.useMemo(()=>Jl(j=>{j.style[C]=`${A(C,j)}px`,IS(j)},l),[l,A,C]),R=x.useMemo(()=>Jl(j=>{j.style[C]=null},u),[C,u]);return T.jsx(Ns,{ref:E,addEndListener:Kh,..._,"aria-expanded":_.role?h:null,onEnter:L,onEntering:B,onEntered:M,onExit:X,onExiting:R,childRef:Za(d),in:h,timeout:y,mountOnEnter:m,unmountOnExit:g,appear:S,children:(j,O)=>Xe.cloneElement(d,{...O,className:Ae(c,d.props.className,RA[j],C==="width"&&"collapse-horizontal")})})});wo.displayName="Collapse";function wA(n){const r=x.useRef(n);return x.useEffect(()=>{r.current=n},[n]),r}function nl(n){const r=wA(n);return x.useCallback(function(...i){return r.current&&r.current(...i)},[r])}const Zh=n=>x.forwardRef((r,i)=>T.jsx("div",{...r,ref:i,className:Ae(r.className,n)}));function V0(){return x.useState(null)}function CA(n){const r=x.useRef(n);return x.useEffect(()=>{r.current=n},[n]),r}function fr(n){const r=CA(n);return x.useCallback(function(...i){return r.current&&r.current(...i)},[r])}function WS(){const n=x.useRef(!0),r=x.useRef(()=>n.current);return x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),r.current}function NA(n){const r=x.useRef(null);return x.useEffect(()=>{r.current=n}),r.current}const MA=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",DA=typeof document<"u",P0=DA||MA?x.useLayoutEffect:x.useEffect,jA=["as","disabled"];function BA(n,r){if(n==null)return{};var i={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)>=0)continue;i[l]=n[l]}return i}function $A(n){return!n||n.trim()==="#"}function JS({tagName:n,disabled:r,href:i,target:l,rel:u,role:c,onClick:d,tabIndex:p=0,type:h}){n||(i!=null||l!=null||u!=null?n="a":n="button");const y={tagName:n};if(n==="button")return[{type:h||"button",disabled:r},y];const m=S=>{if((r||n==="a"&&$A(i))&&S.preventDefault(),r){S.stopPropagation();return}d==null||d(S)},g=S=>{S.key===" "&&(S.preventDefault(),m(S))};return n==="a"&&(i||(i="#"),r&&(i=void 0)),[{role:c??"button",disabled:void 0,tabIndex:r?void 0:p,href:i,target:n==="a"?l:void 0,"aria-disabled":r||void 0,rel:n==="a"?u:void 0,onClick:m,onKeyDown:g},y]}const qA=x.forwardRef((n,r)=>{let{as:i,disabled:l}=n,u=BA(n,jA);const[c,{tagName:d}]=JS(Object.assign({tagName:i,disabled:l},u));return T.jsx(d,Object.assign({},u,c,{ref:r}))});qA.displayName="Button";const zA={[Ln]:"show",[Lr]:"show"},mo=x.forwardRef(({className:n,children:r,transitionClasses:i={},onEnter:l,...u},c)=>{const d={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...u},p=x.useCallback((h,y)=>{IS(h),l==null||l(h,y)},[l]);return T.jsx(Ns,{ref:c,addEndListener:Kh,...d,onEnter:p,childRef:Za(r),children:(h,y)=>x.cloneElement(r,{...y,className:Ae("fade",n,r.props.className,zA[h],i[h])})})});mo.displayName="Fade";const kA={"aria-label":dt.string,onClick:dt.func,variant:dt.oneOf(["white"])},Ms=x.forwardRef(({className:n,variant:r,"aria-label":i="Close",...l},u)=>T.jsx("button",{ref:u,type:"button",className:Ae("btn-close",r&&`btn-close-${r}`,n),"aria-label":i,...l}));Ms.displayName="CloseButton";Ms.propTypes=kA;const ex=x.forwardRef(({bsPrefix:n,bg:r="primary",pill:i=!1,text:l,className:u,as:c="span",...d},p)=>{const h=we(n,"badge");return T.jsx(c,{ref:p,...d,className:Ae(u,h,i&&"rounded-pill",l&&`text-${l}`,r&&`bg-${r}`)})});ex.displayName="Badge";const Co=x.forwardRef(({as:n,bsPrefix:r,variant:i="primary",size:l,active:u=!1,disabled:c=!1,className:d,...p},h)=>{const y=we(r,"btn"),[m,{tagName:g}]=JS({tagName:n,disabled:c,...p}),S=g;return T.jsx(S,{...m,...p,ref:h,disabled:c,className:Ae(d,y,u&&"active",i&&`${y}-${i}`,l&&`${y}-${l}`,p.href&&c&&"disabled")})});Co.displayName="Button";const Ih=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"card-body"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Ih.displayName="CardBody";const tx=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"card-footer"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));tx.displayName="CardFooter";const nx=x.createContext(null);nx.displayName="CardHeaderContext";const rx=x.forwardRef(({bsPrefix:n,className:r,as:i="div",...l},u)=>{const c=we(n,"card-header"),d=x.useMemo(()=>({cardHeaderBsPrefix:c}),[c]);return T.jsx(nx.Provider,{value:d,children:T.jsx(i,{ref:u,...l,className:Ae(r,c)})})});rx.displayName="CardHeader";const ax=x.forwardRef(({bsPrefix:n,className:r,variant:i,as:l="img",...u},c)=>{const d=we(n,"card-img");return T.jsx(l,{ref:c,className:Ae(i?`${d}-${i}`:d,r),...u})});ax.displayName="CardImg";const ix=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"card-img-overlay"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));ix.displayName="CardImgOverlay";const lx=x.forwardRef(({className:n,bsPrefix:r,as:i="a",...l},u)=>(r=we(r,"card-link"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));lx.displayName="CardLink";const LA=Zh("h6"),ox=x.forwardRef(({className:n,bsPrefix:r,as:i=LA,...l},u)=>(r=we(r,"card-subtitle"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));ox.displayName="CardSubtitle";const ux=x.forwardRef(({className:n,bsPrefix:r,as:i="p",...l},u)=>(r=we(r,"card-text"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));ux.displayName="CardText";const UA=Zh("h5"),sx=x.forwardRef(({className:n,bsPrefix:r,as:i=UA,...l},u)=>(r=we(r,"card-title"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));sx.displayName="CardTitle";const cx=x.forwardRef(({bsPrefix:n,className:r,bg:i,text:l,border:u,body:c=!1,children:d,as:p="div",...h},y)=>{const m=we(n,"card");return T.jsx(p,{ref:y,...h,className:Ae(r,m,i&&`bg-${i}`,l&&`text-${l}`,u&&`border-${u}`),children:c?T.jsx(Ih,{children:d}):d})});cx.displayName="Card";const Xi=Object.assign(cx,{Img:ax,Title:sx,Subtitle:ox,Body:Ih,Link:lx,Text:ux,Header:rx,Footer:tx,ImgOverlay:ix});function HA(){const n=x.useRef(!0),r=x.useRef(()=>n.current);return x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),r.current}function GA(n){const r=x.useRef(n);return r.current=n,r}function YA(n){const r=GA(n);x.useEffect(()=>()=>r.current(),[])}const Eh=2**31-1;function fx(n,r,i){const l=i-Date.now();n.current=l<=Eh?setTimeout(r,l):setTimeout(()=>fx(n,r,i),Eh)}function dx(){const n=HA(),r=x.useRef();return YA(()=>clearTimeout(r.current)),x.useMemo(()=>{const i=()=>clearTimeout(r.current);function l(u,c=0){n()&&(i(),c<=Eh?r.current=setTimeout(u,c):fx(r,u,Date.now()+c))}return{set:l,clear:i,handleRef:r}},[])}function VA(n,r){return x.Children.toArray(n).some(i=>x.isValidElement(i)&&i.type===r)}function PA({as:n,bsPrefix:r,className:i,...l}){r=we(r,"col");const u=PS(),c=XS(),d=[],p=[];return u.forEach(h=>{const y=l[h];delete l[h];let m,g,S;typeof y=="object"&&y!=null?{span:m,offset:g,order:S}=y:m=y;const A=h!==c?`-${h}`:"";m&&d.push(m===!0?`${r}${A}`:`${r}${A}-${m}`),S!=null&&p.push(`order${A}-${S}`),g!=null&&p.push(`offset${A}-${g}`)}),[{...l,className:Ae(i,...d,...p)},{as:n,bsPrefix:r,spans:d}]}const ur=x.forwardRef((n,r)=>{const[{className:i,...l},{as:u="div",bsPrefix:c,spans:d}]=PA(n);return T.jsx(u,{...l,ref:r,className:Ae(i,!d.length&&c)})});ur.displayName="Col";const px=x.forwardRef(({bsPrefix:n,fluid:r=!1,as:i="div",className:l,...u},c)=>{const d=we(n,"container"),p=typeof r=="string"?`-${r}`:"-fluid";return T.jsx(i,{ref:c,...u,className:Ae(l,r?`${d}${p}`:d)})});px.displayName="Container";var XA=Function.prototype.bind.call(Function.prototype.call,[].slice);function qi(n,r){return XA(n.querySelectorAll(r))}var X0=Object.prototype.hasOwnProperty;function Q0(n,r,i){for(i of n.keys())if(co(i,r))return i}function co(n,r){var i,l,u;if(n===r)return!0;if(n&&r&&(i=n.constructor)===r.constructor){if(i===Date)return n.getTime()===r.getTime();if(i===RegExp)return n.toString()===r.toString();if(i===Array){if((l=n.length)===r.length)for(;l--&&co(n[l],r[l]););return l===-1}if(i===Set){if(n.size!==r.size)return!1;for(l of n)if(u=l,u&&typeof u=="object"&&(u=Q0(r,u),!u)||!r.has(u))return!1;return!0}if(i===Map){if(n.size!==r.size)return!1;for(l of n)if(u=l[0],u&&typeof u=="object"&&(u=Q0(r,u),!u)||!co(l[1],r.get(u)))return!1;return!0}if(i===ArrayBuffer)n=new Uint8Array(n),r=new Uint8Array(r);else if(i===DataView){if((l=n.byteLength)===r.byteLength)for(;l--&&n.getInt8(l)===r.getInt8(l););return l===-1}if(ArrayBuffer.isView(n)){if((l=n.byteLength)===r.byteLength)for(;l--&&n[l]===r[l];);return l===-1}if(!i||typeof n=="object"){l=0;for(i in n)if(X0.call(n,i)&&++l&&!X0.call(r,i)||!(i in r)||!co(n[i],r[i]))return!1;return Object.keys(r).length===l}}return n!==n&&r!==r}function QA(n){const r=WS();return[n[0],x.useCallback(i=>{if(r())return n[1](i)},[r,n[1]])]}var fn="top",Yn="bottom",Vn="right",dn="left",Wh="auto",No=[fn,Yn,Vn,dn],Zi="start",go="end",KA="clippingParents",hx="viewport",eo="popper",FA="reference",K0=No.reduce(function(n,r){return n.concat([r+"-"+Zi,r+"-"+go])},[]),yx=[].concat(No,[Wh]).reduce(function(n,r){return n.concat([r,r+"-"+Zi,r+"-"+go])},[]),ZA="beforeRead",IA="read",WA="afterRead",JA="beforeMain",eR="main",tR="afterMain",nR="beforeWrite",rR="write",aR="afterWrite",iR=[ZA,IA,WA,JA,eR,tR,nR,rR,aR];function dr(n){return n.split("-")[0]}function _n(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}function Fa(n){var r=_n(n).Element;return n instanceof r||n instanceof Element}function pr(n){var r=_n(n).HTMLElement;return n instanceof r||n instanceof HTMLElement}function Jh(n){if(typeof ShadowRoot>"u")return!1;var r=_n(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}var Ka=Math.max,xs=Math.min,Ii=Math.round;function Oh(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function vx(){return!/^((?!chrome|android).)*safari/i.test(Oh())}function Wi(n,r,i){r===void 0&&(r=!1),i===void 0&&(i=!1);var l=n.getBoundingClientRect(),u=1,c=1;r&&pr(n)&&(u=n.offsetWidth>0&&Ii(l.width)/n.offsetWidth||1,c=n.offsetHeight>0&&Ii(l.height)/n.offsetHeight||1);var d=Fa(n)?_n(n):window,p=d.visualViewport,h=!vx()&&i,y=(l.left+(h&&p?p.offsetLeft:0))/u,m=(l.top+(h&&p?p.offsetTop:0))/c,g=l.width/u,S=l.height/c;return{width:g,height:S,top:m,right:y+g,bottom:m+S,left:y,x:y,y:m}}function ey(n){var r=Wi(n),i=n.offsetWidth,l=n.offsetHeight;return Math.abs(r.width-i)<=1&&(i=r.width),Math.abs(r.height-l)<=1&&(l=r.height),{x:n.offsetLeft,y:n.offsetTop,width:i,height:l}}function mx(n,r){var i=r.getRootNode&&r.getRootNode();if(n.contains(r))return!0;if(i&&Jh(i)){var l=r;do{if(l&&n.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Ta(n){return n?(n.nodeName||"").toLowerCase():null}function Vr(n){return _n(n).getComputedStyle(n)}function lR(n){return["table","td","th"].indexOf(Ta(n))>=0}function Aa(n){return((Fa(n)?n.ownerDocument:n.document)||window.document).documentElement}function Ds(n){return Ta(n)==="html"?n:n.assignedSlot||n.parentNode||(Jh(n)?n.host:null)||Aa(n)}function F0(n){return!pr(n)||Vr(n).position==="fixed"?null:n.offsetParent}function oR(n){var r=/firefox/i.test(Oh()),i=/Trident/i.test(Oh());if(i&&pr(n)){var l=Vr(n);if(l.position==="fixed")return null}var u=Ds(n);for(Jh(u)&&(u=u.host);pr(u)&&["html","body"].indexOf(Ta(u))<0;){var c=Vr(u);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||r&&c.willChange==="filter"||r&&c.filter&&c.filter!=="none")return u;u=u.parentNode}return null}function Mo(n){for(var r=_n(n),i=F0(n);i&&lR(i)&&Vr(i).position==="static";)i=F0(i);return i&&(Ta(i)==="html"||Ta(i)==="body"&&Vr(i).position==="static")?r:i||oR(n)||r}function ty(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function fo(n,r,i){return Ka(n,xs(r,i))}function uR(n,r,i){var l=fo(n,r,i);return l>i?i:l}function gx(){return{top:0,right:0,bottom:0,left:0}}function bx(n){return Object.assign({},gx(),n)}function Sx(n,r){return r.reduce(function(i,l){return i[l]=n,i},{})}var sR=function(r,i){return r=typeof r=="function"?r(Object.assign({},i.rects,{placement:i.placement})):r,bx(typeof r!="number"?r:Sx(r,No))};function cR(n){var r,i=n.state,l=n.name,u=n.options,c=i.elements.arrow,d=i.modifiersData.popperOffsets,p=dr(i.placement),h=ty(p),y=[dn,Vn].indexOf(p)>=0,m=y?"height":"width";if(!(!c||!d)){var g=sR(u.padding,i),S=ey(c),A=h==="y"?fn:dn,_=h==="y"?Yn:Vn,E=i.rects.reference[m]+i.rects.reference[h]-d[h]-i.rects.popper[m],C=d[h]-i.rects.reference[h],L=Mo(c),B=L?h==="y"?L.clientHeight||0:L.clientWidth||0:0,M=E/2-C/2,X=g[A],R=B-S[m]-g[_],j=B/2-S[m]/2+M,O=fo(X,j,R),k=h;i.modifiersData[l]=(r={},r[k]=O,r.centerOffset=O-j,r)}}function fR(n){var r=n.state,i=n.options,l=i.element,u=l===void 0?"[data-popper-arrow]":l;u!=null&&(typeof u=="string"&&(u=r.elements.popper.querySelector(u),!u)||mx(r.elements.popper,u)&&(r.elements.arrow=u))}const dR={name:"arrow",enabled:!0,phase:"main",fn:cR,effect:fR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ji(n){return n.split("-")[1]}var pR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hR(n,r){var i=n.x,l=n.y,u=r.devicePixelRatio||1;return{x:Ii(i*u)/u||0,y:Ii(l*u)/u||0}}function Z0(n){var r,i=n.popper,l=n.popperRect,u=n.placement,c=n.variation,d=n.offsets,p=n.position,h=n.gpuAcceleration,y=n.adaptive,m=n.roundOffsets,g=n.isFixed,S=d.x,A=S===void 0?0:S,_=d.y,E=_===void 0?0:_,C=typeof m=="function"?m({x:A,y:E}):{x:A,y:E};A=C.x,E=C.y;var L=d.hasOwnProperty("x"),B=d.hasOwnProperty("y"),M=dn,X=fn,R=window;if(y){var j=Mo(i),O="clientHeight",k="clientWidth";if(j===_n(i)&&(j=Aa(i),Vr(j).position!=="static"&&p==="absolute"&&(O="scrollHeight",k="scrollWidth")),j=j,u===fn||(u===dn||u===Vn)&&c===go){X=Yn;var $=g&&j===R&&R.visualViewport?R.visualViewport.height:j[O];E-=$-l.height,E*=h?1:-1}if(u===dn||(u===fn||u===Yn)&&c===go){M=Vn;var H=g&&j===R&&R.visualViewport?R.visualViewport.width:j[k];A-=H-l.width,A*=h?1:-1}}var Z=Object.assign({position:p},y&&pR),oe=m===!0?hR({x:A,y:E},_n(i)):{x:A,y:E};if(A=oe.x,E=oe.y,h){var ue;return Object.assign({},Z,(ue={},ue[X]=B?"0":"",ue[M]=L?"0":"",ue.transform=(R.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",ue))}return Object.assign({},Z,(r={},r[X]=B?E+"px":"",r[M]=L?A+"px":"",r.transform="",r))}function yR(n){var r=n.state,i=n.options,l=i.gpuAcceleration,u=l===void 0?!0:l,c=i.adaptive,d=c===void 0?!0:c,p=i.roundOffsets,h=p===void 0?!0:p,y={placement:dr(r.placement),variation:Ji(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:u,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,Z0(Object.assign({},y,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:d,roundOffsets:h})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,Z0(Object.assign({},y,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const vR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yR,data:{}};var Zu={passive:!0};function mR(n){var r=n.state,i=n.instance,l=n.options,u=l.scroll,c=u===void 0?!0:u,d=l.resize,p=d===void 0?!0:d,h=_n(r.elements.popper),y=[].concat(r.scrollParents.reference,r.scrollParents.popper);return c&&y.forEach(function(m){m.addEventListener("scroll",i.update,Zu)}),p&&h.addEventListener("resize",i.update,Zu),function(){c&&y.forEach(function(m){m.removeEventListener("scroll",i.update,Zu)}),p&&h.removeEventListener("resize",i.update,Zu)}}const gR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mR,data:{}};var bR={left:"right",right:"left",bottom:"top",top:"bottom"};function us(n){return n.replace(/left|right|bottom|top/g,function(r){return bR[r]})}var SR={start:"end",end:"start"};function I0(n){return n.replace(/start|end/g,function(r){return SR[r]})}function ny(n){var r=_n(n),i=r.pageXOffset,l=r.pageYOffset;return{scrollLeft:i,scrollTop:l}}function ry(n){return Wi(Aa(n)).left+ny(n).scrollLeft}function xR(n,r){var i=_n(n),l=Aa(n),u=i.visualViewport,c=l.clientWidth,d=l.clientHeight,p=0,h=0;if(u){c=u.width,d=u.height;var y=vx();(y||!y&&r==="fixed")&&(p=u.offsetLeft,h=u.offsetTop)}return{width:c,height:d,x:p+ry(n),y:h}}function ER(n){var r,i=Aa(n),l=ny(n),u=(r=n.ownerDocument)==null?void 0:r.body,c=Ka(i.scrollWidth,i.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),d=Ka(i.scrollHeight,i.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),p=-l.scrollLeft+ry(n),h=-l.scrollTop;return Vr(u||i).direction==="rtl"&&(p+=Ka(i.clientWidth,u?u.clientWidth:0)-c),{width:c,height:d,x:p,y:h}}function ay(n){var r=Vr(n),i=r.overflow,l=r.overflowX,u=r.overflowY;return/auto|scroll|overlay|hidden/.test(i+u+l)}function xx(n){return["html","body","#document"].indexOf(Ta(n))>=0?n.ownerDocument.body:pr(n)&&ay(n)?n:xx(Ds(n))}function po(n,r){var i;r===void 0&&(r=[]);var l=xx(n),u=l===((i=n.ownerDocument)==null?void 0:i.body),c=_n(l),d=u?[c].concat(c.visualViewport||[],ay(l)?l:[]):l,p=r.concat(d);return u?p:p.concat(po(Ds(d)))}function Th(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function OR(n,r){var i=Wi(n,!1,r==="fixed");return i.top=i.top+n.clientTop,i.left=i.left+n.clientLeft,i.bottom=i.top+n.clientHeight,i.right=i.left+n.clientWidth,i.width=n.clientWidth,i.height=n.clientHeight,i.x=i.left,i.y=i.top,i}function W0(n,r,i){return r===hx?Th(xR(n,i)):Fa(r)?OR(r,i):Th(ER(Aa(n)))}function TR(n){var r=po(Ds(n)),i=["absolute","fixed"].indexOf(Vr(n).position)>=0,l=i&&pr(n)?Mo(n):n;return Fa(l)?r.filter(function(u){return Fa(u)&&mx(u,l)&&Ta(u)!=="body"}):[]}function _R(n,r,i,l){var u=r==="clippingParents"?TR(n):[].concat(r),c=[].concat(u,[i]),d=c[0],p=c.reduce(function(h,y){var m=W0(n,y,l);return h.top=Ka(m.top,h.top),h.right=xs(m.right,h.right),h.bottom=xs(m.bottom,h.bottom),h.left=Ka(m.left,h.left),h},W0(n,d,l));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function Ex(n){var r=n.reference,i=n.element,l=n.placement,u=l?dr(l):null,c=l?Ji(l):null,d=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,h;switch(u){case fn:h={x:d,y:r.y-i.height};break;case Yn:h={x:d,y:r.y+r.height};break;case Vn:h={x:r.x+r.width,y:p};break;case dn:h={x:r.x-i.width,y:p};break;default:h={x:r.x,y:r.y}}var y=u?ty(u):null;if(y!=null){var m=y==="y"?"height":"width";switch(c){case Zi:h[y]=h[y]-(r[m]/2-i[m]/2);break;case go:h[y]=h[y]+(r[m]/2-i[m]/2);break}}return h}function bo(n,r){r===void 0&&(r={});var i=r,l=i.placement,u=l===void 0?n.placement:l,c=i.strategy,d=c===void 0?n.strategy:c,p=i.boundary,h=p===void 0?KA:p,y=i.rootBoundary,m=y===void 0?hx:y,g=i.elementContext,S=g===void 0?eo:g,A=i.altBoundary,_=A===void 0?!1:A,E=i.padding,C=E===void 0?0:E,L=bx(typeof C!="number"?C:Sx(C,No)),B=S===eo?FA:eo,M=n.rects.popper,X=n.elements[_?B:S],R=_R(Fa(X)?X:X.contextElement||Aa(n.elements.popper),h,m,d),j=Wi(n.elements.reference),O=Ex({reference:j,element:M,placement:u}),k=Th(Object.assign({},M,O)),$=S===eo?k:j,H={top:R.top-$.top+L.top,bottom:$.bottom-R.bottom+L.bottom,left:R.left-$.left+L.left,right:$.right-R.right+L.right},Z=n.modifiersData.offset;if(S===eo&&Z){var oe=Z[u];Object.keys(H).forEach(function(ue){var he=[Vn,Yn].indexOf(ue)>=0?1:-1,fe=[fn,Yn].indexOf(ue)>=0?"y":"x";H[ue]+=oe[fe]*he})}return H}function AR(n,r){r===void 0&&(r={});var i=r,l=i.placement,u=i.boundary,c=i.rootBoundary,d=i.padding,p=i.flipVariations,h=i.allowedAutoPlacements,y=h===void 0?yx:h,m=Ji(l),g=m?p?K0:K0.filter(function(_){return Ji(_)===m}):No,S=g.filter(function(_){return y.indexOf(_)>=0});S.length===0&&(S=g);var A=S.reduce(function(_,E){return _[E]=bo(n,{placement:E,boundary:u,rootBoundary:c,padding:d})[dr(E)],_},{});return Object.keys(A).sort(function(_,E){return A[_]-A[E]})}function RR(n){if(dr(n)===Wh)return[];var r=us(n);return[I0(n),r,I0(r)]}function wR(n){var r=n.state,i=n.options,l=n.name;if(!r.modifiersData[l]._skip){for(var u=i.mainAxis,c=u===void 0?!0:u,d=i.altAxis,p=d===void 0?!0:d,h=i.fallbackPlacements,y=i.padding,m=i.boundary,g=i.rootBoundary,S=i.altBoundary,A=i.flipVariations,_=A===void 0?!0:A,E=i.allowedAutoPlacements,C=r.options.placement,L=dr(C),B=L===C,M=h||(B||!_?[us(C)]:RR(C)),X=[C].concat(M).reduce(function(q,F){return q.concat(dr(F)===Wh?AR(r,{placement:F,boundary:m,rootBoundary:g,padding:y,flipVariations:_,allowedAutoPlacements:E}):F)},[]),R=r.rects.reference,j=r.rects.popper,O=new Map,k=!0,$=X[0],H=0;H=0,fe=he?"width":"height",G=bo(r,{placement:Z,boundary:m,rootBoundary:g,altBoundary:S,padding:y}),W=he?ue?Vn:dn:ue?Yn:fn;R[fe]>j[fe]&&(W=us(W));var ae=us(W),be=[];if(c&&be.push(G[oe]<=0),p&&be.push(G[W]<=0,G[ae]<=0),be.every(function(q){return q})){$=Z,k=!1;break}O.set(Z,be)}if(k)for(var N=_?3:1,I=function(F){var te=X.find(function(pe){var ce=O.get(pe);if(ce)return ce.slice(0,F).every(function(xe){return xe})});if(te)return $=te,"break"},le=N;le>0;le--){var re=I(le);if(re==="break")break}r.placement!==$&&(r.modifiersData[l]._skip=!0,r.placement=$,r.reset=!0)}}const CR={name:"flip",enabled:!0,phase:"main",fn:wR,requiresIfExists:["offset"],data:{_skip:!1}};function J0(n,r,i){return i===void 0&&(i={x:0,y:0}),{top:n.top-r.height-i.y,right:n.right-r.width+i.x,bottom:n.bottom-r.height+i.y,left:n.left-r.width-i.x}}function eb(n){return[fn,Vn,Yn,dn].some(function(r){return n[r]>=0})}function NR(n){var r=n.state,i=n.name,l=r.rects.reference,u=r.rects.popper,c=r.modifiersData.preventOverflow,d=bo(r,{elementContext:"reference"}),p=bo(r,{altBoundary:!0}),h=J0(d,l),y=J0(p,u,c),m=eb(h),g=eb(y);r.modifiersData[i]={referenceClippingOffsets:h,popperEscapeOffsets:y,isReferenceHidden:m,hasPopperEscaped:g},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":g})}const MR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:NR};function DR(n,r,i){var l=dr(n),u=[dn,fn].indexOf(l)>=0?-1:1,c=typeof i=="function"?i(Object.assign({},r,{placement:n})):i,d=c[0],p=c[1];return d=d||0,p=(p||0)*u,[dn,Vn].indexOf(l)>=0?{x:p,y:d}:{x:d,y:p}}function jR(n){var r=n.state,i=n.options,l=n.name,u=i.offset,c=u===void 0?[0,0]:u,d=yx.reduce(function(m,g){return m[g]=DR(g,r.rects,c),m},{}),p=d[r.placement],h=p.x,y=p.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=h,r.modifiersData.popperOffsets.y+=y),r.modifiersData[l]=d}const BR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jR};function $R(n){var r=n.state,i=n.name;r.modifiersData[i]=Ex({reference:r.rects.reference,element:r.rects.popper,placement:r.placement})}const qR={name:"popperOffsets",enabled:!0,phase:"read",fn:$R,data:{}};function zR(n){return n==="x"?"y":"x"}function kR(n){var r=n.state,i=n.options,l=n.name,u=i.mainAxis,c=u===void 0?!0:u,d=i.altAxis,p=d===void 0?!1:d,h=i.boundary,y=i.rootBoundary,m=i.altBoundary,g=i.padding,S=i.tether,A=S===void 0?!0:S,_=i.tetherOffset,E=_===void 0?0:_,C=bo(r,{boundary:h,rootBoundary:y,padding:g,altBoundary:m}),L=dr(r.placement),B=Ji(r.placement),M=!B,X=ty(L),R=zR(X),j=r.modifiersData.popperOffsets,O=r.rects.reference,k=r.rects.popper,$=typeof E=="function"?E(Object.assign({},r.rects,{placement:r.placement})):E,H=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),Z=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,oe={x:0,y:0};if(j){if(c){var ue,he=X==="y"?fn:dn,fe=X==="y"?Yn:Vn,G=X==="y"?"height":"width",W=j[X],ae=W+C[he],be=W-C[fe],N=A?-k[G]/2:0,I=B===Zi?O[G]:k[G],le=B===Zi?-k[G]:-O[G],re=r.elements.arrow,q=A&&re?ey(re):{width:0,height:0},F=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:gx(),te=F[he],pe=F[fe],ce=fo(0,O[G],q[G]),xe=M?O[G]/2-N-ce-te-H.mainAxis:I-ce-te-H.mainAxis,me=M?-O[G]/2+N+ce+pe+H.mainAxis:le+ce+pe+H.mainAxis,Ee=r.elements.arrow&&Mo(r.elements.arrow),de=Ee?X==="y"?Ee.clientTop||0:Ee.clientLeft||0:0,ve=(ue=Z==null?void 0:Z[X])!=null?ue:0,Oe=W+xe-ve-de,ye=W+me-ve,je=fo(A?xs(ae,Oe):ae,W,A?Ka(be,ye):be);j[X]=je,oe[X]=je-W}if(p){var Me,Fe=X==="x"?fn:dn,Ht=X==="x"?Yn:Vn,ze=j[R],Ze=R==="y"?"height":"width",Gt=ze+C[Fe],$t=ze-C[Ht],qt=[fn,dn].indexOf(L)!==-1,An=(Me=Z==null?void 0:Z[R])!=null?Me:0,_t=qt?Gt:ze-O[Ze]-k[Ze]-An+H.altAxis,rt=qt?ze+O[Ze]+k[Ze]-An-H.altAxis:$t,ie=A&&qt?uR(_t,ze,rt):fo(A?_t:Gt,ze,A?rt:$t);j[R]=ie,oe[R]=ie-ze}r.modifiersData[l]=oe}}const LR={name:"preventOverflow",enabled:!0,phase:"main",fn:kR,requiresIfExists:["offset"]};function UR(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function HR(n){return n===_n(n)||!pr(n)?ny(n):UR(n)}function GR(n){var r=n.getBoundingClientRect(),i=Ii(r.width)/n.offsetWidth||1,l=Ii(r.height)/n.offsetHeight||1;return i!==1||l!==1}function YR(n,r,i){i===void 0&&(i=!1);var l=pr(r),u=pr(r)&&GR(r),c=Aa(r),d=Wi(n,u,i),p={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(l||!l&&!i)&&((Ta(r)!=="body"||ay(c))&&(p=HR(r)),pr(r)?(h=Wi(r,!0),h.x+=r.clientLeft,h.y+=r.clientTop):c&&(h.x=ry(c))),{x:d.left+p.scrollLeft-h.x,y:d.top+p.scrollTop-h.y,width:d.width,height:d.height}}function VR(n){var r=new Map,i=new Set,l=[];n.forEach(function(c){r.set(c.name,c)});function u(c){i.add(c.name);var d=[].concat(c.requires||[],c.requiresIfExists||[]);d.forEach(function(p){if(!i.has(p)){var h=r.get(p);h&&u(h)}}),l.push(c)}return n.forEach(function(c){i.has(c.name)||u(c)}),l}function PR(n){var r=VR(n);return iR.reduce(function(i,l){return i.concat(r.filter(function(u){return u.phase===l}))},[])}function XR(n){var r;return function(){return r||(r=new Promise(function(i){Promise.resolve().then(function(){r=void 0,i(n())})})),r}}function QR(n){var r=n.reduce(function(i,l){var u=i[l.name];return i[l.name]=u?Object.assign({},u,l,{options:Object.assign({},u.options,l.options),data:Object.assign({},u.data,l.data)}):l,i},{});return Object.keys(r).map(function(i){return r[i]})}var tb={placement:"bottom",modifiers:[],strategy:"absolute"};function nb(){for(var n=arguments.length,r=new Array(n),i=0;i=0)continue;i[l]=n[l]}return i}const WR={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},JR={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:n})=>()=>{const{reference:r,popper:i}=n.elements;if("removeAttribute"in r){const l=(r.getAttribute("aria-describedby")||"").split(",").filter(u=>u.trim()!==i.id);l.length?r.setAttribute("aria-describedby",l.join(",")):r.removeAttribute("aria-describedby")}},fn:({state:n})=>{var r;const{popper:i,reference:l}=n.elements,u=(r=i.getAttribute("role"))==null?void 0:r.toLowerCase();if(i.id&&u==="tooltip"&&"setAttribute"in l){const c=l.getAttribute("aria-describedby");if(c&&c.split(",").indexOf(i.id)!==-1)return;l.setAttribute("aria-describedby",c?`${c},${i.id}`:i.id)}}},ew=[];function tw(n,r,i={}){let{enabled:l=!0,placement:u="bottom",strategy:c="absolute",modifiers:d=ew}=i,p=IR(i,ZR);const h=x.useRef(d),y=x.useRef(),m=x.useCallback(()=>{var C;(C=y.current)==null||C.update()},[]),g=x.useCallback(()=>{var C;(C=y.current)==null||C.forceUpdate()},[]),[S,A]=QA(x.useState({placement:u,update:m,forceUpdate:g,attributes:{},styles:{popper:{},arrow:{}}})),_=x.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:C})=>{const L={},B={};Object.keys(C.elements).forEach(M=>{L[M]=C.styles[M],B[M]=C.attributes[M]}),A({state:C,styles:L,attributes:B,update:m,forceUpdate:g,placement:C.placement})}}),[m,g,A]),E=x.useMemo(()=>(co(h.current,d)||(h.current=d),h.current),[d]);return x.useEffect(()=>{!y.current||!l||y.current.setOptions({placement:u,strategy:c,modifiers:[...E,_,WR]})},[c,u,_,l,E]),x.useEffect(()=>{if(!(!l||n==null||r==null))return y.current=FR(n,r,Object.assign({},p,{placement:u,strategy:c,modifiers:[...E,JR,_]})),()=>{y.current!=null&&(y.current.destroy(),y.current=void 0,A(C=>Object.assign({},C,{attributes:{},styles:{popper:{}}})))}},[l,n,r]),S}function So(n,r){if(n.contains)return n.contains(r);if(n.compareDocumentPosition)return n===r||!!(n.compareDocumentPosition(r)&16)}var yd,rb;function nw(){if(rb)return yd;rb=1;var n=function(){};return yd=n,yd}var rw=nw();const aw=_a(rw),ab=()=>{};function iw(n){return n.button===0}function lw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}const ss=n=>n&&("current"in n?n.current:n),ib={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function ow(n,r=ab,{disabled:i,clickTrigger:l="click"}={}){const u=x.useRef(!1),c=x.useRef(!1),d=x.useCallback(y=>{const m=ss(n);aw(!!m,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),u.current=!m||lw(y)||!iw(y)||!!So(m,y.target)||c.current,c.current=!1},[n]),p=fr(y=>{const m=ss(n);m&&So(m,y.target)?c.current=!0:c.current=!1}),h=fr(y=>{u.current||r(y)});x.useEffect(()=>{var y,m;if(i||n==null)return;const g=Ro(ss(n)),S=g.defaultView||window;let A=(y=S.event)!=null?y:(m=S.parent)==null?void 0:m.event,_=null;ib[l]&&(_=Ur(g,ib[l],p,!0));const E=Ur(g,l,d,!0),C=Ur(g,l,B=>{if(B===A){A=void 0;return}h(B)});let L=[];return"ontouchstart"in g.documentElement&&(L=[].slice.call(g.body.children).map(B=>Ur(B,"mousemove",ab))),()=>{_==null||_(),E(),C(),L.forEach(B=>B())}},[n,i,l,d,p,h])}function uw(n){const r={};return Array.isArray(n)?(n==null||n.forEach(i=>{r[i.name]=i}),r):n||r}function sw(n={}){return Array.isArray(n)?n:Object.keys(n).map(r=>(n[r].name=r,n[r]))}function cw({enabled:n,enableEvents:r,placement:i,flip:l,offset:u,fixed:c,containerPadding:d,arrowElement:p,popperConfig:h={}}){var y,m,g,S;const A=uw(h.modifiers);return Object.assign({},h,{placement:i,enabled:n,strategy:c?"fixed":h.strategy,modifiers:sw(Object.assign({},A,{eventListeners:{enabled:r,options:(y=A.eventListeners)==null?void 0:y.options},preventOverflow:Object.assign({},A.preventOverflow,{options:Object.assign({padding:d},(m=A.preventOverflow)==null?void 0:m.options)}),offset:{options:Object.assign({offset:u},(g=A.offset)==null?void 0:g.options)},arrow:Object.assign({},A.arrow,{enabled:!!p,options:Object.assign({},(S=A.arrow)==null?void 0:S.options,{element:p})}),flip:Object.assign({enabled:!!l},A.flip)}))})}const fw=x.createContext(null),dw="data-rr-ui-";function pw(n){return`${dw}${n}`}const Ox=x.createContext(Cs?window:void 0);Ox.Provider;function iy(){return x.useContext(Ox)}const hw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",yw=typeof document<"u",Tx=yw||hw?x.useLayoutEffect:x.useEffect,_x=x.createContext(null);_x.displayName="InputGroupContext";const Do=x.createContext(null);Do.displayName="NavbarContext";dt.string,dt.bool,dt.bool,dt.bool,dt.bool;const Ax=x.forwardRef(({bsPrefix:n,className:r,fluid:i=!1,rounded:l=!1,roundedCircle:u=!1,thumbnail:c=!1,...d},p)=>(n=we(n,"img"),T.jsx("img",{ref:p,...d,className:Ae(r,i&&`${n}-fluid`,l&&"rounded",u&&"rounded-circle",c&&`${n}-thumbnail`)})));Ax.displayName="Image";const vw={type:dt.string,tooltip:dt.bool,as:dt.elementType},js=x.forwardRef(({as:n="div",className:r,type:i="valid",tooltip:l=!1,...u},c)=>T.jsx(n,{...u,ref:c,className:Ae(r,`${i}-${l?"tooltip":"feedback"}`)}));js.displayName="Feedback";js.propTypes=vw;const Pr=x.createContext({}),jo=x.forwardRef(({id:n,bsPrefix:r,className:i,type:l="checkbox",isValid:u=!1,isInvalid:c=!1,as:d="input",...p},h)=>{const{controlId:y}=x.useContext(Pr);return r=we(r,"form-check-input"),T.jsx(d,{...p,ref:h,type:l,id:n||y,className:Ae(i,r,u&&"is-valid",c&&"is-invalid")})});jo.displayName="FormCheckInput";const Es=x.forwardRef(({bsPrefix:n,className:r,htmlFor:i,...l},u)=>{const{controlId:c}=x.useContext(Pr);return n=we(n,"form-check-label"),T.jsx("label",{...l,ref:u,htmlFor:i||c,className:Ae(r,n)})});Es.displayName="FormCheckLabel";const Rx=x.forwardRef(({id:n,bsPrefix:r,bsSwitchPrefix:i,inline:l=!1,reverse:u=!1,disabled:c=!1,isValid:d=!1,isInvalid:p=!1,feedbackTooltip:h=!1,feedback:y,feedbackType:m,className:g,style:S,title:A="",type:_="checkbox",label:E,children:C,as:L="input",...B},M)=>{r=we(r,"form-check"),i=we(i,"form-switch");const{controlId:X}=x.useContext(Pr),R=x.useMemo(()=>({controlId:n||X}),[X,n]),j=!C&&E!=null&&E!==!1||VA(C,Es),O=T.jsx(jo,{...B,type:_==="switch"?"checkbox":_,ref:M,isValid:d,isInvalid:p,disabled:c,as:L});return T.jsx(Pr.Provider,{value:R,children:T.jsx("div",{style:S,className:Ae(g,j&&r,l&&`${r}-inline`,u&&`${r}-reverse`,_==="switch"&&i),children:C||T.jsxs(T.Fragment,{children:[O,j&&T.jsx(Es,{title:A,children:E}),y&&T.jsx(js,{type:m,tooltip:h,children:y})]})})})});Rx.displayName="FormCheck";const Os=Object.assign(Rx,{Input:jo,Label:Es}),wx=x.forwardRef(({bsPrefix:n,type:r,size:i,htmlSize:l,id:u,className:c,isValid:d=!1,isInvalid:p=!1,plaintext:h,readOnly:y,as:m="input",...g},S)=>{const{controlId:A}=x.useContext(Pr);return n=we(n,"form-control"),T.jsx(m,{...g,type:r,size:l,ref:S,readOnly:y,id:u||A,className:Ae(c,h?`${n}-plaintext`:n,i&&`${n}-${i}`,r==="color"&&`${n}-color`,d&&"is-valid",p&&"is-invalid")})});wx.displayName="FormControl";const mw=Object.assign(wx,{Feedback:js}),Cx=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"form-floating"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Cx.displayName="FormFloating";const ly=x.forwardRef(({controlId:n,as:r="div",...i},l)=>{const u=x.useMemo(()=>({controlId:n}),[n]);return T.jsx(Pr.Provider,{value:u,children:T.jsx(r,{...i,ref:l})})});ly.displayName="FormGroup";const Nx=x.forwardRef(({as:n="label",bsPrefix:r,column:i=!1,visuallyHidden:l=!1,className:u,htmlFor:c,...d},p)=>{const{controlId:h}=x.useContext(Pr);r=we(r,"form-label");let y="col-form-label";typeof i=="string"&&(y=`${y} ${y}-${i}`);const m=Ae(u,r,l&&"visually-hidden",i&&y);return c=c||h,i?T.jsx(ur,{ref:p,as:"label",className:m,htmlFor:c,...d}):T.jsx(n,{ref:p,className:m,htmlFor:c,...d})});Nx.displayName="FormLabel";const Mx=x.forwardRef(({bsPrefix:n,className:r,id:i,...l},u)=>{const{controlId:c}=x.useContext(Pr);return n=we(n,"form-range"),T.jsx("input",{...l,type:"range",ref:u,className:Ae(r,n),id:i||c})});Mx.displayName="FormRange";const Dx=x.forwardRef(({bsPrefix:n,size:r,htmlSize:i,className:l,isValid:u=!1,isInvalid:c=!1,id:d,...p},h)=>{const{controlId:y}=x.useContext(Pr);return n=we(n,"form-select"),T.jsx("select",{...p,size:i,ref:h,className:Ae(l,n,r&&`${n}-${r}`,u&&"is-valid",c&&"is-invalid"),id:d||y})});Dx.displayName="FormSelect";const jx=x.forwardRef(({bsPrefix:n,className:r,as:i="small",muted:l,...u},c)=>(n=we(n,"form-text"),T.jsx(i,{...u,ref:c,className:Ae(r,n,l&&"text-muted")})));jx.displayName="FormText";const Bx=x.forwardRef((n,r)=>T.jsx(Os,{...n,ref:r,type:"switch"}));Bx.displayName="Switch";const gw=Object.assign(Bx,{Input:Os.Input,Label:Os.Label}),$x=x.forwardRef(({bsPrefix:n,className:r,children:i,controlId:l,label:u,...c},d)=>(n=we(n,"form-floating"),T.jsxs(ly,{ref:d,className:Ae(r,n),controlId:l,...c,children:[i,T.jsx("label",{htmlFor:l,children:u})]})));$x.displayName="FloatingLabel";const bw={_ref:dt.any,validated:dt.bool,as:dt.elementType},oy=x.forwardRef(({className:n,validated:r,as:i="form",...l},u)=>T.jsx(i,{...l,ref:u,className:Ae(n,r&&"was-validated")}));oy.displayName="Form";oy.propTypes=bw;const an=Object.assign(oy,{Group:ly,Control:mw,Floating:Cx,Check:Os,Switch:gw,Label:Nx,Text:jx,Range:Mx,Select:Dx,FloatingLabel:$x}),Bs=x.forwardRef(({className:n,bsPrefix:r,as:i="span",...l},u)=>(r=we(r,"input-group-text"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Bs.displayName="InputGroupText";const Sw=n=>T.jsx(Bs,{children:T.jsx(jo,{type:"checkbox",...n})}),xw=n=>T.jsx(Bs,{children:T.jsx(jo,{type:"radio",...n})}),qx=x.forwardRef(({bsPrefix:n,size:r,hasValidation:i,className:l,as:u="div",...c},d)=>{n=we(n,"input-group");const p=x.useMemo(()=>({}),[]);return T.jsx(_x.Provider,{value:p,children:T.jsx(u,{ref:d,...c,className:Ae(l,n,r&&`${n}-${r}`,i&&"has-validation")})})});qx.displayName="InputGroup";const Yr=Object.assign(qx,{Text:Bs,Radio:xw,Checkbox:Sw}),lb=n=>!n||typeof n=="function"?n:r=>{n.current=r};function Ew(n,r){const i=lb(n),l=lb(r);return u=>{i&&i(u),l&&l(u)}}function $s(n,r){return x.useMemo(()=>Ew(n,r),[n,r])}function vd(n){n===void 0&&(n=Ro());try{var r=n.activeElement;return!r||!r.nodeName?null:r}catch{return n.body}}function Ow(n){const r=x.useRef(n);return r.current=n,r}function Tw(n){const r=Ow(n);x.useEffect(()=>()=>r.current(),[])}function _w(n=document){const r=n.defaultView;return Math.abs(r.innerWidth-n.documentElement.clientWidth)}const ob=pw("modal-open");class uy{constructor({ownerDocument:r,handleContainerOverflow:i=!0,isRTL:l=!1}={}){this.handleContainerOverflow=i,this.isRTL=l,this.modals=[],this.ownerDocument=r}getScrollbarWidth(){return _w(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(r){}removeModalAttributes(r){}setContainerStyle(r){const i={overflow:"hidden"},l=this.isRTL?"paddingLeft":"paddingRight",u=this.getElement();r.style={overflow:u.style.overflow,[l]:u.style[l]},r.scrollBarWidth&&(i[l]=`${parseInt(Gr(u,l)||"0",10)+r.scrollBarWidth}px`),u.setAttribute(ob,""),Gr(u,i)}reset(){[...this.modals].forEach(r=>this.remove(r))}removeContainerStyle(r){const i=this.getElement();i.removeAttribute(ob),Object.assign(i.style,r.style)}add(r){let i=this.modals.indexOf(r);return i!==-1||(i=this.modals.length,this.modals.push(r),this.setModalAttributes(r),i!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),i}remove(r){const i=this.modals.indexOf(r);i!==-1&&(this.modals.splice(i,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(r))}isTopModal(r){return!!this.modals.length&&this.modals[this.modals.length-1]===r}}const md=(n,r)=>Cs?n==null?(r||Ro()).body:(typeof n=="function"&&(n=n()),n&&"current"in n&&(n=n.current),n&&("nodeType"in n||n.getBoundingClientRect)?n:null):null;function _h(n,r){const i=iy(),[l,u]=x.useState(()=>md(n,i==null?void 0:i.document));if(!l){const c=md(n);c&&u(c)}return x.useEffect(()=>{},[r,l]),x.useEffect(()=>{const c=md(n);c!==l&&u(c)},[n,l]),l}function Aw({children:n,in:r,onExited:i,mountOnEnter:l,unmountOnExit:u}){const c=x.useRef(null),d=x.useRef(r),p=fr(i);x.useEffect(()=>{r?d.current=!0:p(c.current)},[r,p]);const h=$s(c,Za(n)),y=x.cloneElement(n,{ref:h});return r?y:u||!d.current&&l?null:y}const Rw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function ww(n,r){if(n==null)return{};var i={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)>=0)continue;i[l]=n[l]}return i}function Cw(n){let{onEnter:r,onEntering:i,onEntered:l,onExit:u,onExiting:c,onExited:d,addEndListener:p,children:h}=n,y=ww(n,Rw);const m=x.useRef(null),g=$s(m,Za(h)),S=X=>R=>{X&&m.current&&X(m.current,R)},A=x.useCallback(S(r),[r]),_=x.useCallback(S(i),[i]),E=x.useCallback(S(l),[l]),C=x.useCallback(S(u),[u]),L=x.useCallback(S(c),[c]),B=x.useCallback(S(d),[d]),M=x.useCallback(S(p),[p]);return Object.assign({},y,{nodeRef:m},r&&{onEnter:A},i&&{onEntering:_},l&&{onEntered:E},u&&{onExit:C},c&&{onExiting:L},d&&{onExited:B},p&&{addEndListener:M},{children:typeof h=="function"?(X,R)=>h(X,Object.assign({},R,{ref:g})):x.cloneElement(h,{ref:g})})}const Nw=["component"];function Mw(n,r){if(n==null)return{};var i={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)>=0)continue;i[l]=n[l]}return i}const Dw=x.forwardRef((n,r)=>{let{component:i}=n,l=Mw(n,Nw);const u=Cw(l);return T.jsx(i,Object.assign({ref:r},u))});function jw({in:n,onTransition:r}){const i=x.useRef(null),l=x.useRef(!0),u=fr(r);return P0(()=>{if(!i.current)return;let c=!1;return u({in:n,element:i.current,initial:l.current,isStale:()=>c}),()=>{c=!0}},[n,u]),P0(()=>(l.current=!1,()=>{l.current=!0}),[]),i}function Bw({children:n,in:r,onExited:i,onEntered:l,transition:u}){const[c,d]=x.useState(!r);r&&c&&d(!1);const p=jw({in:!!r,onTransition:y=>{const m=()=>{y.isStale()||(y.in?l==null||l(y.element,y.initial):(d(!0),i==null||i(y.element)))};Promise.resolve(u(y)).then(m,g=>{throw y.in||d(!0),g})}}),h=$s(p,Za(n));return c&&!r?null:x.cloneElement(n,{ref:h})}function Ah(n,r,i){return n?T.jsx(Dw,Object.assign({},i,{component:n})):r?T.jsx(Bw,Object.assign({},i,{transition:r})):T.jsx(Aw,Object.assign({},i))}const $w=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function qw(n,r){if(n==null)return{};var i={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)>=0)continue;i[l]=n[l]}return i}let gd;function zw(n){return gd||(gd=new uy({ownerDocument:n==null?void 0:n.document})),gd}function kw(n){const r=iy(),i=n||zw(r),l=x.useRef({dialog:null,backdrop:null});return Object.assign(l.current,{add:()=>i.add(l.current),remove:()=>i.remove(l.current),isTopModal:()=>i.isTopModal(l.current),setDialogRef:x.useCallback(u=>{l.current.dialog=u},[]),setBackdropRef:x.useCallback(u=>{l.current.backdrop=u},[])})}const zx=x.forwardRef((n,r)=>{let{show:i=!1,role:l="dialog",className:u,style:c,children:d,backdrop:p=!0,keyboard:h=!0,onBackdropClick:y,onEscapeKeyDown:m,transition:g,runTransition:S,backdropTransition:A,runBackdropTransition:_,autoFocus:E=!0,enforceFocus:C=!0,restoreFocus:L=!0,restoreFocusOptions:B,renderDialog:M,renderBackdrop:X=ye=>T.jsx("div",Object.assign({},ye)),manager:R,container:j,onShow:O,onHide:k=()=>{},onExit:$,onExited:H,onExiting:Z,onEnter:oe,onEntering:ue,onEntered:he}=n,fe=qw(n,$w);const G=iy(),W=_h(j),ae=kw(R),be=WS(),N=NA(i),[I,le]=x.useState(!i),re=x.useRef(null);x.useImperativeHandle(r,()=>ae,[ae]),Cs&&!N&&i&&(re.current=vd(G==null?void 0:G.document)),i&&I&&le(!1);const q=fr(()=>{if(ae.add(),me.current=Ur(document,"keydown",ce),xe.current=Ur(document,"focus",()=>setTimeout(te),!0),O&&O(),E){var ye,je;const Me=vd((ye=(je=ae.dialog)==null?void 0:je.ownerDocument)!=null?ye:G==null?void 0:G.document);ae.dialog&&Me&&!So(ae.dialog,Me)&&(re.current=Me,ae.dialog.focus())}}),F=fr(()=>{if(ae.remove(),me.current==null||me.current(),xe.current==null||xe.current(),L){var ye;(ye=re.current)==null||ye.focus==null||ye.focus(B),re.current=null}});x.useEffect(()=>{!i||!W||q()},[i,W,q]),x.useEffect(()=>{I&&F()},[I,F]),Tw(()=>{F()});const te=fr(()=>{if(!C||!be()||!ae.isTopModal())return;const ye=vd(G==null?void 0:G.document);ae.dialog&&ye&&!So(ae.dialog,ye)&&ae.dialog.focus()}),pe=fr(ye=>{ye.target===ye.currentTarget&&(y==null||y(ye),p===!0&&k())}),ce=fr(ye=>{h&&ZS(ye)&&ae.isTopModal()&&(m==null||m(ye),ye.defaultPrevented||k())}),xe=x.useRef(),me=x.useRef(),Ee=(...ye)=>{le(!0),H==null||H(...ye)};if(!W)return null;const de=Object.assign({role:l,ref:ae.setDialogRef,"aria-modal":l==="dialog"?!0:void 0},fe,{style:c,className:u,tabIndex:-1});let ve=M?M(de):T.jsx("div",Object.assign({},de,{children:x.cloneElement(d,{role:"document"})}));ve=Ah(g,S,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:$,onExiting:Z,onExited:Ee,onEnter:oe,onEntering:ue,onEntered:he,children:ve});let Oe=null;return p&&(Oe=X({ref:ae.setBackdropRef,onClick:pe}),Oe=Ah(A,_,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Oe})),T.jsx(T.Fragment,{children:Qa.createPortal(T.jsxs(T.Fragment,{children:[Oe,ve]}),W)})});zx.displayName="Modal";const Lw=Object.assign(zx,{Manager:uy});function Rh(n,r){return n.classList?!!r&&n.classList.contains(r):(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+r+" ")!==-1}function Uw(n,r){n.classList?n.classList.add(r):Rh(n,r)||(typeof n.className=="string"?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r))}function ub(n,r){return n.replace(new RegExp("(^|\\s)"+r+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Hw(n,r){n.classList?n.classList.remove(r):typeof n.className=="string"?n.className=ub(n.className,r):n.setAttribute("class",ub(n.className&&n.className.baseVal||"",r))}const zi={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class kx extends uy{adjustAndStore(r,i,l){const u=i.style[r];i.dataset[r]=u,Gr(i,{[r]:`${parseFloat(Gr(i,r))+l}px`})}restore(r,i){const l=i.dataset[r];l!==void 0&&(delete i.dataset[r],Gr(i,{[r]:l}))}setContainerStyle(r){super.setContainerStyle(r);const i=this.getElement();if(Uw(i,"modal-open"),!r.scrollBarWidth)return;const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";qi(i,zi.FIXED_CONTENT).forEach(c=>this.adjustAndStore(l,c,r.scrollBarWidth)),qi(i,zi.STICKY_CONTENT).forEach(c=>this.adjustAndStore(u,c,-r.scrollBarWidth)),qi(i,zi.NAVBAR_TOGGLER).forEach(c=>this.adjustAndStore(u,c,r.scrollBarWidth))}removeContainerStyle(r){super.removeContainerStyle(r);const i=this.getElement();Hw(i,"modal-open");const l=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";qi(i,zi.FIXED_CONTENT).forEach(c=>this.restore(l,c)),qi(i,zi.STICKY_CONTENT).forEach(c=>this.restore(u,c)),qi(i,zi.NAVBAR_TOGGLER).forEach(c=>this.restore(u,c))}}let bd;function Gw(n){return bd||(bd=new kx(n)),bd}const Lx=x.createContext({onHide(){}}),Ux=x.forwardRef(({closeLabel:n="Close",closeVariant:r,closeButton:i=!1,onHide:l,children:u,...c},d)=>{const p=x.useContext(Lx),h=nl(()=>{p==null||p.onHide(),l==null||l()});return T.jsxs("div",{ref:d,...c,children:[u,i&&T.jsx(Ms,{"aria-label":n,variant:r,onClick:h})]})});Ux.displayName="AbstractModalHeader";const Hx=x.forwardRef(({bsPrefix:n,className:r,as:i,...l},u)=>{n=we(n,"navbar-brand");const c=i||(l.href?"a":"span");return T.jsx(c,{...l,ref:u,className:Ae(r,n)})});Hx.displayName="NavbarBrand";const Gx=x.forwardRef(({children:n,bsPrefix:r,...i},l)=>{r=we(r,"navbar-collapse");const u=x.useContext(Do);return T.jsx(wo,{in:!!(u&&u.expanded),...i,children:T.jsx("div",{ref:l,className:r,children:n})})});Gx.displayName="NavbarCollapse";const Yx=x.forwardRef(({bsPrefix:n,className:r,children:i,label:l="Toggle navigation",as:u="button",onClick:c,...d},p)=>{n=we(n,"navbar-toggler");const{onToggle:h,expanded:y}=x.useContext(Do)||{},m=nl(g=>{c&&c(g),h&&h()});return u==="button"&&(d.type="button"),T.jsx(u,{...d,ref:p,onClick:m,"aria-label":l,className:Ae(r,n,!y&&"collapsed"),children:i||T.jsx("span",{className:`${n}-icon`})})});Yx.displayName="NavbarToggle";const wh=new WeakMap,sb=(n,r)=>{if(!n||!r)return;const i=wh.get(r)||new Map;wh.set(r,i);let l=i.get(n);return l||(l=r.matchMedia(n),l.refCount=0,i.set(l.media,l)),l};function Yw(n,r=typeof window>"u"?void 0:window){const i=sb(n,r),[l,u]=x.useState(()=>i?i.matches:!1);return Tx(()=>{let c=sb(n,r);if(!c)return u(!1);let d=wh.get(r);const p=()=>{u(c.matches)};return c.refCount++,c.addListener(p),p(),()=>{c.removeListener(p),c.refCount--,c.refCount<=0&&(d==null||d.delete(c.media)),c=void 0}},[n]),l}function Vw(n){const r=Object.keys(n);function i(p,h){return p===h?h:p?`${p} and ${h}`:h}function l(p){return r[Math.min(r.indexOf(p)+1,r.length-1)]}function u(p){const h=l(p);let y=n[h];return typeof y=="number"?y=`${y-.2}px`:y=`calc(${y} - 0.2px)`,`(max-width: ${y})`}function c(p){let h=n[p];return typeof h=="number"&&(h=`${h}px`),`(min-width: ${h})`}function d(p,h,y){let m;typeof p=="object"?(m=p,y=h,h=!0):(h=h||!0,m={[p]:h});let g=x.useMemo(()=>Object.entries(m).reduce((S,[A,_])=>((_==="up"||_===!0)&&(S=i(S,c(A))),(_==="down"||_===!0)&&(S=i(S,u(A))),S),""),[JSON.stringify(m)]);return Yw(g,y)}return d}const Pw=Vw({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),Vx=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"offcanvas-body"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Vx.displayName="OffcanvasBody";const Xw={[Ln]:"show",[Lr]:"show"},Px=x.forwardRef(({bsPrefix:n,className:r,children:i,in:l=!1,mountOnEnter:u=!1,unmountOnExit:c=!1,appear:d=!1,...p},h)=>(n=we(n,"offcanvas"),T.jsx(Ns,{ref:h,addEndListener:Kh,in:l,mountOnEnter:u,unmountOnExit:c,appear:d,...p,childRef:Za(i),children:(y,m)=>x.cloneElement(i,{...m,className:Ae(r,i.props.className,(y===Ln||y===Fi)&&`${n}-toggling`,Xw[y])})})));Px.displayName="OffcanvasToggling";const Xx=x.forwardRef(({bsPrefix:n,className:r,closeLabel:i="Close",closeButton:l=!1,...u},c)=>(n=we(n,"offcanvas-header"),T.jsx(Ux,{ref:c,...u,className:Ae(r,n),closeLabel:i,closeButton:l})));Xx.displayName="OffcanvasHeader";const Qw=Zh("h5"),Qx=x.forwardRef(({className:n,bsPrefix:r,as:i=Qw,...l},u)=>(r=we(r,"offcanvas-title"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Qx.displayName="OffcanvasTitle";function Kw(n){return T.jsx(Px,{...n})}function Fw(n){return T.jsx(mo,{...n})}const Kx=x.forwardRef(({bsPrefix:n,className:r,children:i,"aria-labelledby":l,placement:u="start",responsive:c,show:d=!1,backdrop:p=!0,keyboard:h=!0,scroll:y=!1,onEscapeKeyDown:m,onShow:g,onHide:S,container:A,autoFocus:_=!0,enforceFocus:E=!0,restoreFocus:C=!0,restoreFocusOptions:L,onEntered:B,onExit:M,onExiting:X,onEnter:R,onEntering:j,onExited:O,backdropClassName:k,manager:$,renderStaticNode:H=!1,...Z},oe)=>{const ue=x.useRef();n=we(n,"offcanvas");const[he,fe]=x.useState(!1),G=nl(S),W=Pw(c||"xs","up");x.useEffect(()=>{fe(c?d&&!W:d)},[d,c,W]);const ae=x.useMemo(()=>({onHide:G}),[G]);function be(){return $||(y?(ue.current||(ue.current=new kx({handleContainerOverflow:!1})),ue.current):Gw())}const N=(q,...F)=>{q&&(q.style.visibility="visible"),R==null||R(q,...F)},I=(q,...F)=>{q&&(q.style.visibility=""),O==null||O(...F)},le=x.useCallback(q=>T.jsx("div",{...q,className:Ae(`${n}-backdrop`,k)}),[k,n]),re=q=>T.jsx("div",{...q,...Z,className:Ae(r,c?`${n}-${c}`:n,`${n}-${u}`),"aria-labelledby":l,children:i});return T.jsxs(T.Fragment,{children:[!he&&(c||H)&&re({}),T.jsx(Lx.Provider,{value:ae,children:T.jsx(Lw,{show:he,ref:oe,backdrop:p,container:A,keyboard:h,autoFocus:_,enforceFocus:E&&!y,restoreFocus:C,restoreFocusOptions:L,onEscapeKeyDown:m,onShow:g,onHide:G,onEnter:N,onEntering:j,onEntered:B,onExit:M,onExiting:X,onExited:I,manager:be(),transition:Kw,backdropTransition:Fw,renderBackdrop:le,renderDialog:re})})]})});Kx.displayName="Offcanvas";const oo=Object.assign(Kx,{Body:Vx,Header:Xx,Title:Qx}),Fx=x.forwardRef(({onHide:n,...r},i)=>{const l=x.useContext(Do),u=nl(()=>{l==null||l.onToggle==null||l.onToggle(),n==null||n()});return T.jsx(oo,{ref:i,show:!!(l!=null&&l.expanded),...r,renderStaticNode:!0,onHide:u})});Fx.displayName="NavbarOffcanvas";const Zx=x.forwardRef(({className:n,bsPrefix:r,as:i="span",...l},u)=>(r=we(r,"navbar-text"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Zx.displayName="NavbarText";const Ix=x.forwardRef((n,r)=>{const{bsPrefix:i,expand:l=!0,variant:u="light",bg:c,fixed:d,sticky:p,className:h,as:y="nav",expanded:m,onToggle:g,onSelect:S,collapseOnSelect:A=!1,..._}=J_(n,{expanded:"onToggle"}),E=we(i,"navbar"),C=x.useCallback((...M)=>{S==null||S(...M),A&&m&&(g==null||g(!1))},[S,A,m,g]);_.role===void 0&&y!=="nav"&&(_.role="navigation");let L=`${E}-expand`;typeof l=="string"&&(L=`${L}-${l}`);const B=x.useMemo(()=>({onToggle:()=>g==null?void 0:g(!m),bsPrefix:E,expanded:!!m,expand:l}),[E,m,l,g]);return T.jsx(Do.Provider,{value:B,children:T.jsx(fw.Provider,{value:C,children:T.jsx(y,{ref:r,..._,className:Ae(h,E,l&&L,u&&`${E}-${u}`,c&&`bg-${c}`,p&&`sticky-${p}`,d&&`fixed-${d}`)})})})});Ix.displayName="Navbar";const Sd=Object.assign(Ix,{Brand:Hx,Collapse:Gx,Offcanvas:Fx,Text:Zx,Toggle:Yx}),Zw=()=>{};function Iw(n,r,{disabled:i,clickTrigger:l}={}){const u=r||Zw;ow(n,u,{disabled:i,clickTrigger:l});const c=fr(d=>{ZS(d)&&u(d)});x.useEffect(()=>{if(i||n==null)return;const d=Ro(ss(n));let p=(d.defaultView||window).event;const h=Ur(d,"keyup",y=>{if(y===p){p=void 0;return}c(y)});return()=>{h()}},[n,i,c])}const Wx=x.forwardRef((n,r)=>{const{flip:i,offset:l,placement:u,containerPadding:c,popperConfig:d={},transition:p,runTransition:h}=n,[y,m]=V0(),[g,S]=V0(),A=$s(m,r),_=_h(n.container),E=_h(n.target),[C,L]=x.useState(!n.show),B=tw(E,y,cw({placement:u,enableEvents:!!n.show,containerPadding:c||5,flip:i,offset:l,arrowElement:g,popperConfig:d}));n.show&&C&&L(!1);const M=(...Z)=>{L(!0),n.onExited&&n.onExited(...Z)},X=n.show||!C;if(Iw(y,n.onHide,{disabled:!n.rootClose||n.rootCloseDisabled,clickTrigger:n.rootCloseEvent}),!X)return null;const{onExit:R,onExiting:j,onEnter:O,onEntering:k,onEntered:$}=n;let H=n.children(Object.assign({},B.attributes.popper,{style:B.styles.popper,ref:A}),{popper:B,placement:u,show:!!n.show,arrowProps:Object.assign({},B.attributes.arrow,{style:B.styles.arrow,ref:S})});return H=Ah(p,h,{in:!!n.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:H,onExit:R,onExiting:j,onExited:M,onEnter:O,onEntering:k,onEntered:$}),_?Qa.createPortal(H,_):null});Wx.displayName="Overlay";const Jx=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"popover-header"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));Jx.displayName="PopoverHeader";const sy=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"popover-body"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));sy.displayName="PopoverBody";function eE(n,r){let i=n;return n==="left"?i=r?"end":"start":n==="right"&&(i=r?"start":"end"),i}function tE(n="absolute"){return{position:n,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const nE=x.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:l,children:u,body:c,arrowProps:d,hasDoneInitialMeasure:p,popper:h,show:y,...m},g)=>{const S=we(n,"popover"),A=QS(),[_]=(r==null?void 0:r.split("-"))||[],E=eE(_,A);let C=l;return y&&!p&&(C={...l,...tE(h==null?void 0:h.strategy)}),T.jsxs("div",{ref:g,role:"tooltip",style:C,"x-placement":_,className:Ae(i,S,_&&`bs-popover-${E}`),...m,children:[T.jsx("div",{className:"popover-arrow",...d}),c?T.jsx(sy,{children:u}):u]})});nE.displayName="Popover";const Ww=Object.assign(nE,{Header:Jx,Body:sy,POPPER_OFFSET:[0,8]}),rE=x.forwardRef(({bsPrefix:n,placement:r="right",className:i,style:l,children:u,arrowProps:c,hasDoneInitialMeasure:d,popper:p,show:h,...y},m)=>{n=we(n,"tooltip");const g=QS(),[S]=(r==null?void 0:r.split("-"))||[],A=eE(S,g);let _=l;return h&&!d&&(_={...l,...tE(p==null?void 0:p.strategy)}),T.jsxs("div",{ref:m,style:_,role:"tooltip","x-placement":S,className:Ae(i,n,`bs-tooltip-${A}`),...y,children:[T.jsx("div",{className:"tooltip-arrow",...c}),T.jsx("div",{className:`${n}-inner`,children:u})]})});rE.displayName="Tooltip";const aE=Object.assign(rE,{TOOLTIP_OFFSET:[0,6]});function Jw(n){const r=x.useRef(null),i=we(void 0,"popover"),l=we(void 0,"tooltip"),u=x.useMemo(()=>({name:"offset",options:{offset:()=>{if(n)return n;if(r.current){if(Rh(r.current,i))return Ww.POPPER_OFFSET;if(Rh(r.current,l))return aE.TOOLTIP_OFFSET}return[0,0]}}}),[n,i,l]);return[r,[u]]}function e2(n,r){const{ref:i}=n,{ref:l}=r;n.ref=i.__wrapped||(i.__wrapped=u=>i(Ss(u))),r.ref=l.__wrapped||(l.__wrapped=u=>l(Ss(u)))}const iE=x.forwardRef(({children:n,transition:r=mo,popperConfig:i={},rootClose:l=!1,placement:u="top",show:c=!1,...d},p)=>{const h=x.useRef({}),[y,m]=x.useState(null),[g,S]=Jw(d.offset),A=Fh(p,g),_=r===!0?mo:r||void 0,E=nl(C=>{m(C),i==null||i.onFirstUpdate==null||i.onFirstUpdate(C)});return Tx(()=>{y&&d.target&&(h.current.scheduleUpdate==null||h.current.scheduleUpdate())},[y,d.target]),x.useEffect(()=>{c||m(null)},[c]),T.jsx(Wx,{...d,ref:A,popperConfig:{...i,modifiers:S.concat(i.modifiers||[]),onFirstUpdate:E},transition:_,rootClose:l,placement:u,show:c,children:(C,{arrowProps:L,popper:B,show:M})=>{var X;e2(C,L);const R=B==null?void 0:B.placement,j=Object.assign(h.current,{state:B==null?void 0:B.state,scheduleUpdate:B==null?void 0:B.update,placement:R,outOfBoundaries:(B==null||(X=B.state)==null||(X=X.modifiersData.hide)==null?void 0:X.isReferenceHidden)||!1,strategy:i.strategy}),O=!!y;return typeof n=="function"?n({...C,placement:R,show:M,...!r&&M&&{className:"show"},popper:j,arrowProps:L,hasDoneInitialMeasure:O}):x.cloneElement(n,{...C,placement:R,arrowProps:L,popper:j,hasDoneInitialMeasure:O,className:Ae(n.props.className,!r&&M&&"show"),style:{...n.props.style,...C.style}})}})});iE.displayName="Overlay";function t2(n){return n&&typeof n=="object"?n:{show:n,hide:n}}function cb(n,r,i){const[l]=r,u=l.currentTarget,c=l.relatedTarget||l.nativeEvent[i];(!c||c!==u)&&!So(u,c)&&n(...r)}dt.oneOf(["click","hover","focus"]);const n2=({trigger:n=["hover","focus"],overlay:r,children:i,popperConfig:l={},show:u,defaultShow:c=!1,onToggle:d,delay:p,placement:h,flip:y=h&&h.indexOf("auto")!==-1,...m})=>{const g=x.useRef(null),S=Fh(g,Za(i)),A=dx(),_=x.useRef(""),[E,C]=VS(u,c,d),L=t2(p),{onFocus:B,onBlur:M,onClick:X}=typeof i!="function"?x.Children.only(i).props:{},R=fe=>{S(Ss(fe))},j=x.useCallback(()=>{if(A.clear(),_.current="show",!L.show){C(!0);return}A.set(()=>{_.current==="show"&&C(!0)},L.show)},[L.show,C,A]),O=x.useCallback(()=>{if(A.clear(),_.current="hide",!L.hide){C(!1);return}A.set(()=>{_.current==="hide"&&C(!1)},L.hide)},[L.hide,C,A]),k=x.useCallback((...fe)=>{j(),B==null||B(...fe)},[j,B]),$=x.useCallback((...fe)=>{O(),M==null||M(...fe)},[O,M]),H=x.useCallback((...fe)=>{C(!E),X==null||X(...fe)},[X,C,E]),Z=x.useCallback((...fe)=>{cb(j,fe,"fromElement")},[j]),oe=x.useCallback((...fe)=>{cb(O,fe,"toElement")},[O]),ue=n==null?[]:[].concat(n),he={ref:R};return ue.indexOf("click")!==-1&&(he.onClick=H),ue.indexOf("focus")!==-1&&(he.onFocus=k,he.onBlur=$),ue.indexOf("hover")!==-1&&(he.onMouseOver=Z,he.onMouseOut=oe),T.jsxs(T.Fragment,{children:[typeof i=="function"?i(he):x.cloneElement(i,he),T.jsx(iE,{...m,show:E,onHide:O,flip:y,placement:h,popperConfig:l,target:g.current,children:r})]})},Ts=x.forwardRef(({bsPrefix:n,className:r,as:i="div",...l},u)=>{const c=we(n,"row"),d=PS(),p=XS(),h=`${c}-cols`,y=[];return d.forEach(m=>{const g=l[m];delete l[m];let S;g!=null&&typeof g=="object"?{cols:S}=g:S=g;const A=m!==p?`-${m}`:"";S!=null&&y.push(`${h}${A}-${S}`)}),T.jsx(i,{ref:u,...l,className:Ae(r,c,...y)})});Ts.displayName="Row";const lE=x.forwardRef(({bsPrefix:n,variant:r,animation:i="border",size:l,as:u="div",className:c,...d},p)=>{n=we(n,"spinner");const h=`${n}-${i}`;return T.jsx(u,{ref:p,...d,className:Ae(c,h,l&&`${h}-${l}`,r&&`text-${r}`)})});lE.displayName="Spinner";const r2={[Ln]:"showing",[Fi]:"showing show"},oE=x.forwardRef((n,r)=>T.jsx(mo,{...n,ref:r,transitionClasses:r2}));oE.displayName="ToastFade";const uE=x.createContext({onClose(){}}),sE=x.forwardRef(({bsPrefix:n,closeLabel:r="Close",closeVariant:i,closeButton:l=!0,className:u,children:c,...d},p)=>{n=we(n,"toast-header");const h=x.useContext(uE),y=nl(m=>{h==null||h.onClose==null||h.onClose(m)});return T.jsxs("div",{ref:p,...d,className:Ae(n,u),children:[c,l&&T.jsx(Ms,{"aria-label":r,variant:i,onClick:y,"data-dismiss":"toast"})]})});sE.displayName="ToastHeader";const cE=x.forwardRef(({className:n,bsPrefix:r,as:i="div",...l},u)=>(r=we(r,"toast-body"),T.jsx(i,{ref:u,className:Ae(n,r),...l})));cE.displayName="ToastBody";const fE=x.forwardRef(({bsPrefix:n,className:r,transition:i=oE,show:l=!0,animation:u=!0,delay:c=5e3,autohide:d=!1,onClose:p,onEntered:h,onExit:y,onExiting:m,onEnter:g,onEntering:S,onExited:A,bg:_,...E},C)=>{n=we(n,"toast");const L=x.useRef(c),B=x.useRef(p);x.useEffect(()=>{L.current=c,B.current=p},[c,p]);const M=dx(),X=!!(d&&l),R=x.useCallback(()=>{X&&(B.current==null||B.current())},[X]);x.useEffect(()=>{M.set(R,L.current)},[M,R]);const j=x.useMemo(()=>({onClose:p}),[p]),O=!!(i&&u),k=T.jsx("div",{...E,ref:C,className:Ae(n,r,_&&`bg-${_}`,!O&&(l?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return T.jsx(uE.Provider,{value:j,children:O&&i?T.jsx(i,{in:l,onEnter:g,onEntering:S,onEntered:h,onExit:y,onExiting:m,onExited:A,unmountOnExit:!0,children:k}):k})});fE.displayName="Toast";const ho=Object.assign(fE,{Body:cE,Header:sE}),a2={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},cy=x.forwardRef(({bsPrefix:n,position:r,containerPosition:i,className:l,as:u="div",...c},d)=>(n=we(n,"toast-container"),T.jsx(u,{ref:d,...c,className:Ae(n,r&&a2[r],i&&`position-${i}`,l)})));cy.displayName="ToastContainer";const i2=()=>{},fy=x.forwardRef(({bsPrefix:n,name:r,className:i,checked:l,type:u,onChange:c,value:d,disabled:p,id:h,inputRef:y,...m},g)=>(n=we(n,"btn-check"),T.jsxs(T.Fragment,{children:[T.jsx("input",{className:n,name:r,type:u,value:d,ref:y,autoComplete:"off",checked:!!l,disabled:!!p,onChange:c||i2,id:h}),T.jsx(Co,{...m,ref:g,className:Ae(i,p&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:h})]})));fy.displayName="ToggleButton";const mr=Object.create(null);mr.open="0";mr.close="1";mr.ping="2";mr.pong="3";mr.message="4";mr.upgrade="5";mr.noop="6";const cs=Object.create(null);Object.keys(mr).forEach(n=>{cs[mr[n]]=n});const Ch={type:"error",data:"parser error"},dE=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",pE=typeof ArrayBuffer=="function",hE=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,dy=({type:n,data:r},i,l)=>dE&&r instanceof Blob?i?l(r):fb(r,l):pE&&(r instanceof ArrayBuffer||hE(r))?i?l(r):fb(new Blob([r]),l):l(mr[n]+(r||"")),fb=(n,r)=>{const i=new FileReader;return i.onload=function(){const l=i.result.split(",")[1];r("b"+(l||""))},i.readAsDataURL(n)};function db(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let xd;function l2(n,r){if(dE&&n.data instanceof Blob)return n.data.arrayBuffer().then(db).then(r);if(pE&&(n.data instanceof ArrayBuffer||hE(n.data)))return r(db(n.data));dy(n,!1,i=>{xd||(xd=new TextEncoder),r(xd.encode(i))})}const pb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let r=n.length*.75,i=n.length,l,u=0,c,d,p,h;n[n.length-1]==="="&&(r--,n[n.length-2]==="="&&r--);const y=new ArrayBuffer(r),m=new Uint8Array(y);for(l=0;l>4,m[u++]=(d&15)<<4|p>>2,m[u++]=(p&3)<<6|h&63;return y},u2=typeof ArrayBuffer=="function",py=(n,r)=>{if(typeof n!="string")return{type:"message",data:yE(n,r)};const i=n.charAt(0);return i==="b"?{type:"message",data:s2(n.substring(1),r)}:cs[i]?n.length>1?{type:cs[i],data:n.substring(1)}:{type:cs[i]}:Ch},s2=(n,r)=>{if(u2){const i=o2(n);return yE(i,r)}else return{base64:!0,data:n}},yE=(n,r)=>{switch(r){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},vE="",c2=(n,r)=>{const i=n.length,l=new Array(i);let u=0;n.forEach((c,d)=>{dy(c,!1,p=>{l[d]=p,++u===i&&r(l.join(vE))})})},f2=(n,r)=>{const i=n.split(vE),l=[];for(let u=0;u{const l=i.length;let u;if(l<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,l);else if(l<65536){u=new Uint8Array(3);const c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,l)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(l))}n.data&&typeof n.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let Ed;function Iu(n){return n.reduce((r,i)=>r+i.length,0)}function Wu(n,r){if(n[0].length===r)return n.shift();const i=new Uint8Array(r);let l=0;for(let u=0;uMath.pow(2,21)-1){p.enqueue(Ch);break}u=m*Math.pow(2,32)+y.getUint32(4),l=3}else{if(Iu(i)n){p.enqueue(Ch);break}}}})}const mE=4;function Bt(n){if(n)return h2(n)}function h2(n){for(var r in Bt.prototype)n[r]=Bt.prototype[r];return n}Bt.prototype.on=Bt.prototype.addEventListener=function(n,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(r),this};Bt.prototype.once=function(n,r){function i(){this.off(n,i),r.apply(this,arguments)}return i.fn=r,this.on(n,i),this};Bt.prototype.off=Bt.prototype.removeListener=Bt.prototype.removeAllListeners=Bt.prototype.removeEventListener=function(n,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+n];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var l,u=0;uPromise.resolve().then(r):(r,i)=>i(r,0),Un=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),y2="arraybuffer";function gE(n,...r){return r.reduce((i,l)=>(n.hasOwnProperty(l)&&(i[l]=n[l]),i),{})}const v2=Un.setTimeout,m2=Un.clearTimeout;function zs(n,r){r.useNativeTimers?(n.setTimeoutFn=v2.bind(Un),n.clearTimeoutFn=m2.bind(Un)):(n.setTimeoutFn=Un.setTimeout.bind(Un),n.clearTimeoutFn=Un.clearTimeout.bind(Un))}const g2=1.33;function b2(n){return typeof n=="string"?S2(n):Math.ceil((n.byteLength||n.size)*g2)}function S2(n){let r=0,i=0;for(let l=0,u=n.length;l=57344?i+=3:(l++,i+=4);return i}function bE(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function x2(n){let r="";for(let i in n)n.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(n[i]));return r}function E2(n){let r={},i=n.split("&");for(let l=0,u=i.length;l{this.readyState="paused",r()};if(this._polling||!this.writable){let l=0;this._polling&&(l++,this.once("pollComplete",function(){--l||i()})),this.writable||(l++,this.once("drain",function(){--l||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=l=>{if(this.readyState==="opening"&&l.type==="open"&&this.onOpen(),l.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(l)};f2(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,c2(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=bE()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let SE=!1;try{SE=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const _2=SE;function A2(){}class R2 extends T2{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let l=location.port;l||(l=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||l!==r.port}}doWrite(r,i){const l=this.request({method:"POST",data:r});l.on("success",i),l.on("error",(u,c)=>{this.onError("xhr post error",u,c)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,l)=>{this.onError("xhr poll error",i,l)}),this.pollXhr=r}}class hr extends Bt{constructor(r,i,l){super(),this.createRequest=r,zs(this,l),this._opts=l,this._method=l.method||"GET",this._uri=i,this._data=l.data!==void 0?l.data:null,this._create()}_create(){var r;const i=gE(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const l=this._xhr=this.createRequest(i);try{l.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){l.setDisableHeaderCheck&&l.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&l.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{l.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{l.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(l),"withCredentials"in l&&(l.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(l.timeout=this._opts.requestTimeout),l.onreadystatechange=()=>{var u;l.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(l.getResponseHeader("set-cookie"))),l.readyState===4&&(l.status===200||l.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof l.status=="number"?l.status:0)},0))},l.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=hr.requestsCount++,hr.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=A2,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete hr.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}hr.requestsCount=0;hr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",hb);else if(typeof addEventListener=="function"){const n="onpagehide"in Un?"pagehide":"unload";addEventListener(n,hb,!1)}}function hb(){for(let n in hr.requests)hr.requests.hasOwnProperty(n)&&hr.requests[n].abort()}const w2=function(){const n=xE({xdomain:!1});return n&&n.responseType!==null}();class C2 extends R2{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=w2&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new hr(xE,this.uri(),r)}}function xE(n){const r=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||_2))return new XMLHttpRequest}catch{}if(!r)try{return new Un[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const EE=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class N2 extends hy{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,l=EE?{}:gE(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,l)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i{try{this.doWrite(l,c)}catch{}u&&qs(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=bE()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const Od=Un.WebSocket||Un.MozWebSocket;class M2 extends N2{createSocket(r,i,l){return EE?new Od(r,i,l):i?new Od(r,i):new Od(r)}doWrite(r,i){this.ws.send(i)}}class D2 extends hy{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=p2(Number.MAX_SAFE_INTEGER,this.socket.binaryType),l=r.readable.pipeThrough(i).getReader(),u=d2();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{l.read().then(({done:p,value:h})=>{p||(this.onPacket(h),c())}).catch(p=>{})};c();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i{u&&qs(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const j2={websocket:M2,webtransport:D2,polling:C2},B2=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$2=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Nh(n){if(n.length>8e3)throw"URI too long";const r=n,i=n.indexOf("["),l=n.indexOf("]");i!=-1&&l!=-1&&(n=n.substring(0,i)+n.substring(i,l).replace(/:/g,";")+n.substring(l,n.length));let u=B2.exec(n||""),c={},d=14;for(;d--;)c[$2[d]]=u[d]||"";return i!=-1&&l!=-1&&(c.source=r,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=q2(c,c.path),c.queryKey=z2(c,c.query),c}function q2(n,r){const i=/\/{2,9}/g,l=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&l.splice(0,1),r.slice(-1)=="/"&&l.splice(l.length-1,1),l}function z2(n,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(l,u,c){u&&(i[u]=c)}),i}const Mh=typeof addEventListener=="function"&&typeof removeEventListener=="function",fs=[];Mh&&addEventListener("offline",()=>{fs.forEach(n=>n())},!1);class Ea extends Bt{constructor(r,i){if(super(),this.binaryType=y2,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const l=Nh(r);i.hostname=l.host,i.secure=l.protocol==="https"||l.protocol==="wss",i.port=l.port,l.query&&(i.query=l.query)}else i.host&&(i.hostname=Nh(i.host).host);zs(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(l=>{const u=l.prototype.name;this.transports.push(u),this._transportsByName[u]=l}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=E2(this.opts.query)),Mh&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},fs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=mE,i.transport=r,this.id&&(i.sid=this.id);const l=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](l)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&Ea.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Ea.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let l=0;l0&&i>this._maxPayload)return this.writeBuffer.slice(0,l);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,qs(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,l){return this._sendPacket("message",r,i,l),this}send(r,i,l){return this._sendPacket("message",r,i,l),this}_sendPacket(r,i,l,u){if(typeof i=="function"&&(u=i,i=void 0),typeof l=="function"&&(u=l,l=null),this.readyState==="closing"||this.readyState==="closed")return;l=l||{},l.compress=l.compress!==!1;const c={type:r,data:i,options:l};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),u&&this.once("flush",u),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},l=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?l():r()}):this.upgrading?l():r()),this}_onError(r){if(Ea.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Mh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const l=fs.indexOf(this._offlineEventListener);l!==-1&&fs.splice(l,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}Ea.protocol=mE;class k2 extends Ea{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r{l||(i.send([{type:"ping",data:"probe"}]),i.once("packet",g=>{if(!l)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Ea.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{l||this.readyState!=="closed"&&(m(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const S=new Error("probe error");S.transport=i.name,this.emitReserved("upgradeError",S)}}))};function c(){l||(l=!0,m(),i.close(),i=null)}const d=g=>{const S=new Error("probe error: "+g);S.transport=i.name,c(),this.emitReserved("upgradeError",S)};function p(){d("transport closed")}function h(){d("socket closed")}function y(g){i&&g.name!==i.name&&c()}const m=()=>{i.removeListener("open",u),i.removeListener("error",d),i.removeListener("close",p),this.off("close",h),this.off("upgrading",y)};i.once("open",u),i.once("error",d),i.once("close",p),this.once("close",h),this.once("upgrading",y),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{l||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let l=0;lj2[u]).filter(u=>!!u)),super(r,l)}};function U2(n,r="",i){let l=n;i=i||typeof location<"u"&&location,n==null&&(n=i.protocol+"//"+i.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=i.protocol+n:n=i.host+n),/^(https?|wss?):\/\//.test(n)||(typeof i<"u"?n=i.protocol+"//"+n:n="https://"+n),l=Nh(n)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";const c=l.host.indexOf(":")!==-1?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+c+":"+l.port+r,l.href=l.protocol+"://"+c+(i&&i.port===l.port?"":":"+l.port),l}const H2=typeof ArrayBuffer=="function",G2=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,OE=Object.prototype.toString,Y2=typeof Blob=="function"||typeof Blob<"u"&&OE.call(Blob)==="[object BlobConstructor]",V2=typeof File=="function"||typeof File<"u"&&OE.call(File)==="[object FileConstructor]";function yy(n){return H2&&(n instanceof ArrayBuffer||G2(n))||Y2&&n instanceof Blob||V2&&n instanceof File}function ds(n,r){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let i=0,l=n.length;i=0&&n.num{delete this.acks[r];for(let p=0;p{this.io.clearTimeoutFn(c),i.apply(this,p)};d.withError=!0,this.acks[r]=d}emitWithAck(r,...i){return new Promise((l,u)=>{const c=(d,p)=>d?u(d):l(p);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const l={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>l!==this._queue[0]?void 0:(u!==null?l.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),l.pending=!1,this._drainQueue())),this._queue.push(l),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Ve.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(l=>String(l.id)===r)){const l=this.acks[r];delete this.acks[r],l.withError&&l.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ve.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ve.EVENT:case Ve.BINARY_EVENT:this.onevent(r);break;case Ve.ACK:case Ve.BINARY_ACK:this.onack(r);break;case Ve.DISCONNECT:this.ondisconnect();break;case Ve.CONNECT_ERROR:this.destroy();const l=new Error(r.data.message);l.data=r.data.data,this.emitReserved("connect_error",l);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const l of i)l.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let l=!1;return function(...u){l||(l=!0,i.packet({type:Ve.ACK,id:r,data:u}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ve.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let l=0;l0&&n.jitter<=1?n.jitter:0,this.attempts=0}rl.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*n);n=(Math.floor(r*10)&1)==0?n-i:n+i}return Math.min(n,this.max)|0};rl.prototype.reset=function(){this.attempts=0};rl.prototype.setMin=function(n){this.ms=n};rl.prototype.setMax=function(n){this.max=n};rl.prototype.setJitter=function(n){this.jitter=n};class Bh extends Bt{constructor(r,i){var l;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,zs(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((l=i.randomizationFactor)!==null&&l!==void 0?l:.5),this.backoff=new rl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const u=i.parser||I2;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new L2(this.uri,this.opts);const i=this.engine,l=this;this._readyState="opening",this.skipReconnect=!1;const u=Wn(i,"open",function(){l.onopen(),r&&r()}),c=p=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",p),r?r(p):this.maybeReconnectOnOpen()},d=Wn(i,"error",c);if(this._timeout!==!1){const p=this._timeout,h=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},p);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(u),this.subs.push(d),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(Wn(r,"ping",this.onping.bind(this)),Wn(r,"data",this.ondata.bind(this)),Wn(r,"error",this.onerror.bind(this)),Wn(r,"close",this.onclose.bind(this)),Wn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){qs(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let l=this.nsps[r];return l?this._autoConnect&&!l.active&&l.connect():(l=new TE(this,r,i),this.nsps[r]=l),l}_destroy(r){const i=Object.keys(this.nsps);for(const l of i)if(this.nsps[l].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let l=0;lr()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var l;this.cleanup(),(l=this.engine)===null||l===void 0||l.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const l=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(u=>{u?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",u)):r.onreconnect()}))},i);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const to={};function ps(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};const i=U2(n,r.path||"/socket.io"),l=i.source,u=i.id,c=i.path,d=to[u]&&c in to[u].nsps,p=r.forceNew||r["force new connection"]||r.multiplex===!1||d;let h;return p?h=new Bh(l,r):(to[u]||(to[u]=new Bh(l,r)),h=to[u]),i.query&&!r.query&&(r.query=i.queryKey),h.socket(i.path,r)}Object.assign(ps,{Manager:Bh,Socket:TE,io:ps,connect:ps});const _E=(n,r)=>{if(typeof n=="number")return{full_access_path:r,doc:null,readonly:!1,type:Number.isInteger(n)?"int":"float",value:n};if(typeof n=="boolean")return{full_access_path:r,doc:null,readonly:!1,type:"bool",value:n};if(typeof n=="string")return{full_access_path:r,doc:null,readonly:!1,type:"str",value:n};if(n===null)return{full_access_path:r,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},J2=(n,r="")=>{const l=n.map((u,c)=>{(typeof u=="number"||typeof u=="boolean"||typeof u=="string"||u===null)&&_E(u,`${r}[${c}]`)});return{full_access_path:r,type:"list",value:l,readonly:!1,doc:null}},eC=(n,r="")=>{const l=Object.entries(n).reduce((u,[c,d])=>{const p=`${r}["${c}"]`;return(typeof d=="number"||typeof d=="boolean"||typeof d=="string"||d===null)&&(u[c]=_E(d,p)),u},{});return{full_access_path:r,type:"dict",value:l,readonly:!1,doc:null}},AE=window.location.hostname,RE=window.location.port,wE=window.__FORWARDED_PREFIX__||"",so=window.__FORWARDED_PROTO__||"http",Pi=`${AE}:${RE}${wE}`,tC=so==="http"?"ws":"wss",nC=`${tC}://${AE}:${RE}/`,kr=ps(nC,{path:`${wE}/ws/socket.io`,transports:["websocket"]}),rC=(n,r)=>{r?kr.emit("update_value",{access_path:n.full_access_path,value:n},r):kr.emit("update_value",{access_path:n.full_access_path,value:n})},CE=(n,r=[],i={},l)=>{const u=J2(r),c=eC(i);kr.emit("trigger_method",{access_path:n,args:u,kwargs:c})},NE=Xe.memo(n=>{const{showNotification:r,notifications:i,removeNotificationById:l}=n;return T.jsx(cy,{className:"navbarOffset toastContainer",position:"top-end",children:i.map(u=>u.levelname==="ERROR"||u.levelname==="CRITICAL"||r&&["WARNING","INFO","DEBUG"].includes(u.levelname)?T.jsxs(ho,{className:u.levelname.toLowerCase()+"Toast",onClose:()=>l(u.id),onClick:()=>l(u.id),onMouseLeave:()=>{u.levelname!=="ERROR"&&l(u.id)},show:!0,autohide:u.levelname==="WARNING"||u.levelname==="INFO"||u.levelname==="DEBUG",delay:u.levelname==="WARNING"||u.levelname==="INFO"||u.levelname==="DEBUG"?2e3:void 0,children:[T.jsxs(ho.Header,{closeButton:!1,className:u.levelname.toLowerCase()+"Toast text-right",children:[T.jsx("strong",{className:"me-auto",children:u.levelname}),T.jsx("small",{children:u.timeStamp})]}),T.jsx(ho.Body,{children:u.message})]},u.id):null)})});NE.displayName="Notifications";const $h=Xe.memo(({connectionStatus:n})=>{const[r,i]=x.useState(!0);x.useEffect(()=>{i(!0)},[n]);const l=()=>i(!1),u=()=>{switch(n){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:c,bg:d,delay:p}=u();return T.jsx(cy,{position:"bottom-center",className:"toastContainer",children:T.jsx(ho,{show:r,onClose:l,delay:p,autohide:p!==void 0,bg:d,children:T.jsxs(ho.Body,{className:"d-flex justify-content-between",children:[c,T.jsx(Co,{variant:"close",size:"sm",onClick:l})]})})})});$h.displayName="ConnectionToast";function ME(n){const r=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return n.match(r)??[]}function aC(n){if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1)),n.startsWith("'")&&n.endsWith("'")||n.startsWith('"')&&n.endsWith('"'))return n.slice(1,-1);const r=parseFloat(n);return isNaN(r)?n:r}function iC(n,r,i){if(r in n)return n[r];if(Array.isArray(n)){if(i&&r===n.length)return n.push(mb()),n[r];throw new Error(`Index out of bounds: ${r}`)}else{if(i)return n[r]=mb(),n[r];throw new Error(`Key not found: ${r}`)}}function vb(n,r,i=!1){const l=aC(r);try{return iC(n,l,i)}catch(u){throw u instanceof RangeError?new Error(`Index '${l}': ${u.message}`):u instanceof Error?new Error(`Key '${l}': ${u.message}`):u}}function lC(n,r,i){const l=ME(r),u=JSON.parse(JSON.stringify(n));let c=u;try{for(let h=0;h{const{docString:r}=n;if(!r)return null;const i=T.jsx(aE,{id:"tooltip",children:r});return T.jsx(n2,{placement:"bottom",overlay:i,children:T.jsx(ex,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});tr.displayName="DocStringComponent";function gr(){const n=x.useRef(0);return x.useEffect(()=>{n.current+=1}),n.current}const DE=Xe.memo(n=>{const{value:r,fullAccessPath:i,readOnly:l,docString:u,addNotification:c,changeCallback:d=()=>{},displayName:p,id:h}=n;gr(),x.useEffect(()=>{c(`${i} changed to ${r}.`)},[n.value]);const y=m=>{d({type:"bool",value:m,full_access_path:i,readonly:l,doc:u})};return T.jsxs("div",{className:"component buttonComponent",id:h,children:[!1,T.jsxs(fy,{id:`toggle-check-${h}`,type:"checkbox",variant:r?"success":"secondary",checked:r,value:p,disabled:l,onChange:m=>y(m.currentTarget.checked),children:[p,T.jsx(tr,{docString:u})]})]})});DE.displayName="ButtonComponent";const oC=(n,r,i)=>{const l=r.split("."),u=l[0].length,c=l[1]?l[1].length:0,d=i>u;let p=0;d?p=Math.pow(10,u+1-i):p=Math.pow(10,u-i);const y=(parseFloat(r)+(n==="ArrowUp"?p:-p)).toFixed(c),m=y.split(".")[0].length;return m>u?i+=1:mi>r?{value:n.slice(0,r)+n.slice(i),selectionStart:r}:r>0?{value:n.slice(0,r-1)+n.slice(r),selectionStart:r-1}:{value:n,selectionStart:r},sC=(n,r,i)=>i>r?{value:n.slice(0,r)+n.slice(i),selectionStart:r}:r{let u=r;return n==="."&&r.includes(".")?{value:r,selectionStart:i}:n==="-"?(i===0&&l>i?(u="-"+r.slice(l),i=1):i===0&&!r.startsWith("-")?(u="-"+r,i=1):(i===0||i===1)&&r.startsWith("-")&&(u=r.slice(1),i=0),{value:u,selectionStart:i}):(l>i?u=r.slice(0,i)+n+r.slice(l):u=r.slice(0,i)+n+r.slice(i),{value:u,selectionStart:i+1})},cC=(n,r)=>Math.max(0,n-r),fC=(n,r,i)=>Math.min(i,n+r),_s=Xe.memo(n=>{const{fullAccessPath:r,value:i,readOnly:l,type:u,docString:c,isInstantUpdate:d,unit:p,addNotification:h,changeCallback:y=()=>{},displayName:m,id:g}=n,S=B=>{y(B,M=>{M!==void 0&&M.type=="Exception"&&E(i.toString())})},A=x.useRef(null),[_,E]=x.useState(i.toString());gr();const C=B=>{const{key:M,target:X}=B,R=X,{value:j}=R,O=j.length,k=R.selectionEnd??0;let $=R.selectionStart??0;if(M==="F1"||M==="F5"||M==="F12"||M==="Tab")return;if(M==="ArrowLeft"||M==="ArrowRight"){if(k>$&&!B.shiftKey){const oe=M==="ArrowLeft"?$:k;A.current=oe}else{const oe=M==="ArrowLeft"?cC($,1):fC(k,1,O);A.current=oe}return}B.preventDefault();let H=j;if(B.ctrlKey&&M==="a"){R.setSelectionRange(0,j.length);return}else if(M>="0"&&M<="9"||M==="-")({value:H,selectionStart:$}=gb(M,j,$,k));else if(M==="."&&(u==="float"||u==="Quantity"))({value:H,selectionStart:$}=gb(M,j,$,k));else if(M==="ArrowUp"||M==="ArrowDown")({value:H,selectionStart:$}=oC(M,j,$));else if(M==="Backspace")({value:H,selectionStart:$}=uC(j,$,k));else if(M==="Delete")({value:H,selectionStart:$}=sC(j,$,k));else if(M==="Enter"&&!d){let Z;u==="Quantity"?Z={type:"Quantity",value:{magnitude:Number(H),unit:p},full_access_path:r,readonly:l,doc:c}:Z={type:u,value:Number(H),full_access_path:r,readonly:l,doc:c},S(Z);return}else return;if(d){let Z;u==="Quantity"?Z={type:"Quantity",value:{magnitude:Number(H),unit:p},full_access_path:r,readonly:l,doc:c}:Z={type:u,value:Number(H),full_access_path:r,readonly:l,doc:c},S(Z)}E(H),A.current=$},L=()=>{if(!d){let B;u==="Quantity"?B={type:"Quantity",value:{magnitude:Number(_),unit:p},full_access_path:r,readonly:l,doc:c}:B={type:u,value:Number(_),full_access_path:r,readonly:l,doc:c},S(B)}};return x.useEffect(()=>{const B=u==="int"?parseInt(_):parseFloat(_);i!==B&&E(i.toString());let M=`${r} changed to ${n.value}`;p===void 0?M+=".":M+=` ${p}.`,h(M)},[i]),x.useEffect(()=>{const B=document.getElementsByName(g)[0];B&&A.current!==null&&B.setSelectionRange(A.current,A.current)}),T.jsxs("div",{className:"component numberComponent",id:g,children:[!1,T.jsxs(Yr,{children:[m&&T.jsxs(Yr.Text,{children:[m,T.jsx(tr,{docString:c})]}),T.jsx(an.Control,{type:"text",value:_,disabled:l,onChange:()=>{},name:g,onKeyDown:C,onBlur:L,className:d&&!l?"instantUpdate":""}),p&&T.jsx(Yr.Text,{children:p})]})]})});_s.displayName="NumberComponent";const xo={black:"#000",white:"#fff"},ki={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Li={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ui={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Hi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Gi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},no={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},dC={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Eo(n){let r="https://mui.com/production-error/?code="+n;for(let i=1;i0?It(al,--pn):0,el--,jt===10&&(el=1,Ls--),jt}function Tn(){return jt=pn2||To(jt)>3?"":" "}function wC(n,r){for(;--r&&Tn()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return Bo(n,hs()+(r<6&&yr()==32&&Tn()==32))}function zh(n){for(;Tn();)switch(jt){case n:return pn;case 34:case 39:n!==34&&n!==39&&zh(jt);break;case 40:n===41&&zh(n);break;case 92:Tn();break}return pn}function CC(n,r){for(;Tn()&&n+jt!==57;)if(n+jt===84&&yr()===47)break;return"/*"+Bo(r,pn-1)+"*"+ks(n===47?n:Tn())}function NC(n){for(;!To(yr());)Tn();return Bo(n,pn)}function MC(n){return kE(vs("",null,null,null,[""],n=zE(n),0,[0],n))}function vs(n,r,i,l,u,c,d,p,h){for(var y=0,m=0,g=d,S=0,A=0,_=0,E=1,C=1,L=1,B=0,M="",X=u,R=c,j=l,O=M;C;)switch(_=B,B=Tn()){case 40:if(_!=108&&It(O,g-1)==58){qh(O+=tt(ys(B),"&","&\f"),"&\f")!=-1&&(L=-1);break}case 34:case 39:case 91:O+=ys(B);break;case 9:case 10:case 13:case 32:O+=RC(_);break;case 92:O+=wC(hs()-1,7);continue;case 47:switch(yr()){case 42:case 47:Ju(DC(CC(Tn(),hs()),r,i),h);break;default:O+="/"}break;case 123*E:p[y++]=sr(O)*L;case 125*E:case 59:case 0:switch(B){case 0:case 125:C=0;case 59+m:L==-1&&(O=tt(O,/\f/g,"")),A>0&&sr(O)-g&&Ju(A>32?Sb(O+";",l,i,g-1):Sb(tt(O," ","")+";",l,i,g-2),h);break;case 59:O+=";";default:if(Ju(j=bb(O,r,i,y,m,u,p,M,X=[],R=[],g),c),B===123)if(m===0)vs(O,r,j,j,X,c,g,p,R);else switch(S===99&&It(O,3)===110?100:S){case 100:case 108:case 109:case 115:vs(n,j,j,l&&Ju(bb(n,j,j,0,0,u,p,M,u,X=[],g),R),u,R,g,p,l?X:R);break;default:vs(O,j,j,j,[""],R,0,p,R)}}y=m=A=0,E=L=1,M=O="",g=d;break;case 58:g=1+sr(O),A=_;default:if(E<1){if(B==123)--E;else if(B==125&&E++==0&&AC()==125)continue}switch(O+=ks(B),B*E){case 38:L=m>0?1:(O+="\f",-1);break;case 44:p[y++]=(sr(O)-1)*L,L=1;break;case 64:yr()===45&&(O+=ys(Tn())),S=yr(),m=g=sr(M=O+=NC(hs())),B++;break;case 45:_===45&&sr(O)==2&&(E=0)}}return c}function bb(n,r,i,l,u,c,d,p,h,y,m){for(var g=u-1,S=u===0?c:[""],A=Sy(S),_=0,E=0,C=0;_0?S[L]+" "+B:tt(B,/&\f/g,S[L])))&&(h[C++]=M);return Us(n,r,i,u===0?gy:p,h,y,m)}function DC(n,r,i){return Us(n,r,i,jE,ks(_C()),Oo(n,2,-2),0)}function Sb(n,r,i,l){return Us(n,r,i,by,Oo(n,0,l),Oo(n,l+1,-1),l)}function Qi(n,r){for(var i="",l=Sy(n),u=0;u6)switch(It(n,r+1)){case 109:if(It(n,r+4)!==45)break;case 102:return tt(n,/(.+:)(.+)-([^]+)/,"$1"+et+"$2-$3$1"+As+(It(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~qh(n,"stretch")?UE(tt(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(It(n,r+1)!==115)break;case 6444:switch(It(n,sr(n)-3-(~qh(n,"!important")&&10))){case 107:return tt(n,":",":"+et)+n;case 101:return tt(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+et+(It(n,14)===45?"inline-":"")+"box$3$1"+et+"$2$3$1"+en+"$2box$3")+n}break;case 5936:switch(It(n,r+11)){case 114:return et+n+en+tt(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return et+n+en+tt(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return et+n+en+tt(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return et+n+en+n+n}return n}var HC=function(r,i,l,u){if(r.length>-1&&!r.return)switch(r.type){case by:r.return=UE(r.value,r.length);break;case BE:return Qi([ro(r,{value:tt(r.value,"@","@"+et)})],u);case gy:if(r.length)return TC(r.props,function(c){switch(OC(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qi([ro(r,{props:[tt(c,/:(read-\w+)/,":"+As+"$1")]})],u);case"::placeholder":return Qi([ro(r,{props:[tt(c,/:(plac\w+)/,":"+et+"input-$1")]}),ro(r,{props:[tt(c,/:(plac\w+)/,":"+As+"$1")]}),ro(r,{props:[tt(c,/:(plac\w+)/,en+"input-$1")]})],u)}return""})}},GC=[HC],HE=function(r){var i=r.key;if(i==="css"){var l=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(l,function(E){var C=E.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var u=r.stylisPlugins||GC,c={},d,p=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(E){for(var C=E.getAttribute("data-emotion").split(" "),L=1;L=4;++l,u-=4)i=n.charCodeAt(l)&255|(n.charCodeAt(++l)&255)<<8|(n.charCodeAt(++l)&255)<<16|(n.charCodeAt(++l)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,r=(i&65535)*1540483477+((i>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(n.charCodeAt(l+2)&255)<<16;case 2:r^=(n.charCodeAt(l+1)&255)<<8;case 1:r^=n.charCodeAt(l)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var KC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},FC=/[A-Z]|^ms/g,ZC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,YE=function(r){return r.charCodeAt(1)===45},_b=function(r){return r!=null&&typeof r!="boolean"},Ad=LE(function(n){return YE(n)?n:n.replace(FC,"-$&").toLowerCase()}),Ab=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(ZC,function(l,u,c){return cr={name:u,styles:c,next:cr},u})}return KC[r]!==1&&!YE(r)&&typeof i=="number"&&i!==0?i+"px":i};function _o(n,r,i){if(i==null)return"";var l=i;if(l.__emotion_styles!==void 0)return l;switch(typeof i){case"boolean":return"";case"object":{var u=i;if(u.anim===1)return cr={name:u.name,styles:u.styles,next:cr},u.name;var c=i;if(c.styles!==void 0){var d=c.next;if(d!==void 0)for(;d!==void 0;)cr={name:d.name,styles:d.styles,next:cr},d=d.next;var p=c.styles+";";return p}return IC(n,r,i)}case"function":{if(n!==void 0){var h=cr,y=i(n);return cr=h,_o(n,r,y)}break}}var m=i;if(r==null)return m;var g=r[m];return g!==void 0?g:m}function IC(n,r,i){var l="";if(Array.isArray(i))for(var u=0;u96?uN:sN},Mb=function(r,i,l){var u;if(i){var c=i.shouldForwardProp;u=r.__emotion_forwardProp&&c?function(d){return r.__emotion_forwardProp(d)&&c(d)}:c}return typeof u!="function"&&l&&(u=r.__emotion_forwardProp),u},cN=function(r){var i=r.cache,l=r.serialized,u=r.isStringTag;return xy(i,l,u),PE(function(){return Ey(i,l,u)}),null},fN=function n(r,i){var l=r.__emotion_real===r,u=l&&r.__emotion_base||r,c,d;i!==void 0&&(c=i.label,d=i.target);var p=Mb(r,i,l),h=p||Nb(u),y=!h("as");return function(){var m=arguments,g=l&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(c!==void 0&&g.push("label:"+c+";"),m[0]==null||m[0].raw===void 0)g.push.apply(g,m);else{var S=m[0];g.push(S[0]);for(var R=m.length,_=1;_r(hN(u)?i:u):r;return T.jsx(aN,{styles:l})}function vN(n,r){return Lh(n,r)}const mN=(n,r)=>{Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=r(n.__emotion_styles))},gN=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:yN,StyledEngineProvider:pN,ThemeContext:Gs,css:QE,default:vN,internal_processStyles:mN,keyframes:iN},Symbol.toStringTag,{value:"Module"}));function xa(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function KE(n){if(x.isValidElement(n)||!xa(n))return n;const r={};return Object.keys(n).forEach(i=>{r[i]=KE(n[i])}),r}function vr(n,r,i={clone:!0}){const l=i.clone?ge({},n):n;return xa(n)&&xa(r)&&Object.keys(r).forEach(u=>{x.isValidElement(r[u])?l[u]=r[u]:xa(r[u])&&Object.prototype.hasOwnProperty.call(n,u)&&xa(n[u])?l[u]=vr(n[u],r[u],i):i.clone?l[u]=xa(r[u])?KE(r[u]):r[u]:l[u]=r[u]}),l}const bN=Object.freeze(Object.defineProperty({__proto__:null,default:vr,isPlainObject:xa},Symbol.toStringTag,{value:"Module"})),SN=["values","unit","step"],xN=n=>{const r=Object.keys(n).map(i=>({key:i,val:n[i]}))||[];return r.sort((i,l)=>i.val-l.val),r.reduce((i,l)=>ge({},i,{[l.key]:l.val}),{})};function FE(n){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:l=5}=n,u=er(n,SN),c=xN(r),d=Object.keys(c);function p(S){return`@media (min-width:${typeof r[S]=="number"?r[S]:S}${i})`}function h(S){return`@media (max-width:${(typeof r[S]=="number"?r[S]:S)-l/100}${i})`}function y(S,R){const _=d.indexOf(R);return`@media (min-width:${typeof r[S]=="number"?r[S]:S}${i}) and (max-width:${(_!==-1&&typeof r[d[_]]=="number"?r[d[_]]:R)-l/100}${i})`}function m(S){return d.indexOf(S)+1`@media (min-width:${_y[n]}px)`};function Xr(n,r,i){const l=n.theme||{};if(Array.isArray(r)){const c=l.breakpoints||Db;return r.reduce((d,p,h)=>(d[c.up(c.keys[h])]=i(r[h]),d),{})}if(typeof r=="object"){const c=l.breakpoints||Db;return Object.keys(r).reduce((d,p)=>{if(Object.keys(c.values||_y).indexOf(p)!==-1){const h=c.up(p);d[h]=i(r[p],p)}else{const h=p;d[h]=r[h]}return d},{})}return i(r)}function ON(n={}){var r;return((r=n.keys)==null?void 0:r.reduce((l,u)=>{const c=n.up(u);return l[c]={},l},{}))||{}}function TN(n,r){return n.reduce((i,l)=>{const u=i[l];return(!u||Object.keys(u).length===0)&&delete i[l],i},r)}function Jn(n){if(typeof n!="string")throw new Error(Eo(7));return n.charAt(0).toUpperCase()+n.slice(1)}const _N=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"}));function Ys(n,r,i=!0){if(!r||typeof r!="string")return null;if(n&&n.vars&&i){const l=`vars.${r}`.split(".").reduce((u,c)=>u&&u[c]?u[c]:null,n);if(l!=null)return l}return r.split(".").reduce((l,u)=>l&&l[u]!=null?l[u]:null,n)}function Rs(n,r,i,l=i){let u;return typeof n=="function"?u=n(i):Array.isArray(n)?u=n[i]||l:u=Ys(n,i)||l,r&&(u=r(u,l,n)),u}function Ct(n){const{prop:r,cssProperty:i=n.prop,themeKey:l,transform:u}=n,c=d=>{if(d[r]==null)return null;const p=d[r],h=d.theme,y=Ys(h,l)||{};return Xr(d,p,g=>{let S=Rs(y,u,g);return g===S&&typeof g=="string"&&(S=Rs(y,u,`${r}${g==="default"?"":Jn(g)}`,g)),i===!1?S:{[i]:S}})};return c.propTypes={},c.filterProps=[r],c}function AN(n){const r={};return i=>(r[i]===void 0&&(r[i]=n(i)),r[i])}const RN={m:"margin",p:"padding"},wN={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},CN=AN(n=>{if(n.length>2)if(jb[n])n=jb[n];else return[n];const[r,i]=n.split(""),l=RN[r],u=wN[i]||"";return Array.isArray(u)?u.map(c=>l+c):[l+u]}),Ay=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ry=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ay,...Ry];function $o(n,r,i,l){var u;const c=(u=Ys(n,r,!1))!=null?u:i;return typeof c=="number"?d=>typeof d=="string"?d:c*d:Array.isArray(c)?d=>typeof d=="string"?d:c[d]:typeof c=="function"?c:()=>{}}function ZE(n){return $o(n,"spacing",8)}function qo(n,r){if(typeof r=="string"||r==null)return r;const i=Math.abs(r),l=n(i);return r>=0?l:typeof l=="number"?-l:`-${l}`}function NN(n,r){return i=>n.reduce((l,u)=>(l[u]=qo(r,i),l),{})}function MN(n,r,i,l){if(r.indexOf(i)===-1)return null;const u=CN(i),c=NN(u,l),d=n[i];return Xr(n,d,c)}function IE(n,r){const i=ZE(n.theme);return Object.keys(n).map(l=>MN(n,r,l,i)).reduce(yo,{})}function Ot(n){return IE(n,Ay)}Ot.propTypes={};Ot.filterProps=Ay;function Tt(n){return IE(n,Ry)}Tt.propTypes={};Tt.filterProps=Ry;function DN(n=8){if(n.mui)return n;const r=ZE({spacing:n}),i=(...l)=>(l.length===0?[1]:l).map(c=>{const d=r(c);return typeof d=="number"?`${d}px`:d}).join(" ");return i.mui=!0,i}function Vs(...n){const r=n.reduce((l,u)=>(u.filterProps.forEach(c=>{l[c]=u}),l),{}),i=l=>Object.keys(l).reduce((u,c)=>r[c]?yo(u,r[c](l)):u,{});return i.propTypes={},i.filterProps=n.reduce((l,u)=>l.concat(u.filterProps),[]),i}function Hn(n){return typeof n!="number"?n:`${n}px solid`}function Pn(n,r){return Ct({prop:n,themeKey:"borders",transform:r})}const jN=Pn("border",Hn),BN=Pn("borderTop",Hn),$N=Pn("borderRight",Hn),qN=Pn("borderBottom",Hn),zN=Pn("borderLeft",Hn),kN=Pn("borderColor"),LN=Pn("borderTopColor"),UN=Pn("borderRightColor"),HN=Pn("borderBottomColor"),GN=Pn("borderLeftColor"),YN=Pn("outline",Hn),VN=Pn("outlineColor"),Ps=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const r=$o(n.theme,"shape.borderRadius",4),i=l=>({borderRadius:qo(r,l)});return Xr(n,n.borderRadius,i)}return null};Ps.propTypes={};Ps.filterProps=["borderRadius"];Vs(jN,BN,$N,qN,zN,kN,LN,UN,HN,GN,Ps,YN,VN);const Xs=n=>{if(n.gap!==void 0&&n.gap!==null){const r=$o(n.theme,"spacing",8),i=l=>({gap:qo(r,l)});return Xr(n,n.gap,i)}return null};Xs.propTypes={};Xs.filterProps=["gap"];const Qs=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const r=$o(n.theme,"spacing",8),i=l=>({columnGap:qo(r,l)});return Xr(n,n.columnGap,i)}return null};Qs.propTypes={};Qs.filterProps=["columnGap"];const Ks=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const r=$o(n.theme,"spacing",8),i=l=>({rowGap:qo(r,l)});return Xr(n,n.rowGap,i)}return null};Ks.propTypes={};Ks.filterProps=["rowGap"];const PN=Ct({prop:"gridColumn"}),XN=Ct({prop:"gridRow"}),QN=Ct({prop:"gridAutoFlow"}),KN=Ct({prop:"gridAutoColumns"}),FN=Ct({prop:"gridAutoRows"}),ZN=Ct({prop:"gridTemplateColumns"}),IN=Ct({prop:"gridTemplateRows"}),WN=Ct({prop:"gridTemplateAreas"}),JN=Ct({prop:"gridArea"});Vs(Xs,Qs,Ks,PN,XN,QN,KN,FN,ZN,IN,WN,JN);function Ki(n,r){return r==="grey"?r:n}const e3=Ct({prop:"color",themeKey:"palette",transform:Ki}),t3=Ct({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ki}),n3=Ct({prop:"backgroundColor",themeKey:"palette",transform:Ki});Vs(e3,t3,n3);function On(n){return n<=1&&n!==0?`${n*100}%`:n}const r3=Ct({prop:"width",transform:On}),wy=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const r=i=>{var l,u;const c=((l=n.theme)==null||(l=l.breakpoints)==null||(l=l.values)==null?void 0:l[i])||_y[i];return c?((u=n.theme)==null||(u=u.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${c}${n.theme.breakpoints.unit}`}:{maxWidth:c}:{maxWidth:On(i)}};return Xr(n,n.maxWidth,r)}return null};wy.filterProps=["maxWidth"];const a3=Ct({prop:"minWidth",transform:On}),i3=Ct({prop:"height",transform:On}),l3=Ct({prop:"maxHeight",transform:On}),o3=Ct({prop:"minHeight",transform:On});Ct({prop:"size",cssProperty:"width",transform:On});Ct({prop:"size",cssProperty:"height",transform:On});const u3=Ct({prop:"boxSizing"});Vs(r3,wy,a3,i3,l3,o3,u3);const zo={border:{themeKey:"borders",transform:Hn},borderTop:{themeKey:"borders",transform:Hn},borderRight:{themeKey:"borders",transform:Hn},borderBottom:{themeKey:"borders",transform:Hn},borderLeft:{themeKey:"borders",transform:Hn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Hn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ps},color:{themeKey:"palette",transform:Ki},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ki},backgroundColor:{themeKey:"palette",transform:Ki},p:{style:Tt},pt:{style:Tt},pr:{style:Tt},pb:{style:Tt},pl:{style:Tt},px:{style:Tt},py:{style:Tt},padding:{style:Tt},paddingTop:{style:Tt},paddingRight:{style:Tt},paddingBottom:{style:Tt},paddingLeft:{style:Tt},paddingX:{style:Tt},paddingY:{style:Tt},paddingInline:{style:Tt},paddingInlineStart:{style:Tt},paddingInlineEnd:{style:Tt},paddingBlock:{style:Tt},paddingBlockStart:{style:Tt},paddingBlockEnd:{style:Tt},m:{style:Ot},mt:{style:Ot},mr:{style:Ot},mb:{style:Ot},ml:{style:Ot},mx:{style:Ot},my:{style:Ot},margin:{style:Ot},marginTop:{style:Ot},marginRight:{style:Ot},marginBottom:{style:Ot},marginLeft:{style:Ot},marginX:{style:Ot},marginY:{style:Ot},marginInline:{style:Ot},marginInlineStart:{style:Ot},marginInlineEnd:{style:Ot},marginBlock:{style:Ot},marginBlockStart:{style:Ot},marginBlockEnd:{style:Ot},displayPrint:{cssProperty:!1,transform:n=>({"@media print":{display:n}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xs},rowGap:{style:Ks},columnGap:{style:Qs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:On},maxWidth:{style:wy},minWidth:{transform:On},height:{transform:On},maxHeight:{transform:On},minHeight:{transform:On},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function s3(...n){const r=n.reduce((l,u)=>l.concat(Object.keys(u)),[]),i=new Set(r);return n.every(l=>i.size===Object.keys(l).length)}function c3(n,r){return typeof n=="function"?n(r):n}function WE(){function n(i,l,u,c){const d={[i]:l,theme:u},p=c[i];if(!p)return{[i]:l};const{cssProperty:h=i,themeKey:y,transform:m,style:g}=p;if(l==null)return null;if(y==="typography"&&l==="inherit")return{[i]:l};const S=Ys(u,y)||{};return g?g(d):Xr(d,l,_=>{let E=Rs(S,m,_);return _===E&&typeof _=="string"&&(E=Rs(S,m,`${i}${_==="default"?"":Jn(_)}`,_)),h===!1?E:{[h]:E}})}function r(i){var l;const{sx:u,theme:c={}}=i||{};if(!u)return null;const d=(l=c.unstable_sxConfig)!=null?l:zo;function p(h){let y=h;if(typeof h=="function")y=h(c);else if(typeof h!="object")return h;if(!y)return null;const m=ON(c.breakpoints),g=Object.keys(m);let S=m;return Object.keys(y).forEach(R=>{const _=c3(y[R],c);if(_!=null)if(typeof _=="object")if(d[R])S=yo(S,n(R,_,c,d));else{const E=Xr({theme:c},_,C=>({[R]:C}));s3(E,_)?S[R]=r({sx:_,theme:c}):S=yo(S,E)}else S=yo(S,n(R,_,c,d))}),TN(g,S)}return Array.isArray(u)?u.map(p):p(u)}return r}const Fs=WE();Fs.filterProps=["sx"];function JE(n,r){const i=this;return i.vars&&typeof i.getColorSchemeSelector=="function"?{[i.getColorSchemeSelector(n).replace(/(\[[^\]]+\])/,"*:where($1)")]:r}:i.palette.mode===n?r:{}}const f3=["breakpoints","palette","spacing","shape"];function eO(n={},...r){const{breakpoints:i={},palette:l={},spacing:u,shape:c={}}=n,d=er(n,f3),p=FE(i),h=DN(u);let y=vr({breakpoints:p,direction:"ltr",components:{},palette:ge({mode:"light"},l),spacing:h,shape:ge({},EN,c)},d);return y.applyStyles=JE,y=r.reduce((m,g)=>vr(m,g),y),y.unstable_sxConfig=ge({},zo,d==null?void 0:d.unstable_sxConfig),y.unstable_sx=function(g){return Fs({sx:g,theme:this})},y}const d3=Object.freeze(Object.defineProperty({__proto__:null,default:eO,private_createBreakpoints:FE,unstable_applyStyles:JE},Symbol.toStringTag,{value:"Module"})),p3=["sx"],h3=n=>{var r,i;const l={systemProps:{},otherProps:{}},u=(r=n==null||(i=n.theme)==null?void 0:i.unstable_sxConfig)!=null?r:zo;return Object.keys(n).forEach(c=>{u[c]?l.systemProps[c]=n[c]:l.otherProps[c]=n[c]}),l};function y3(n){const{sx:r}=n,i=er(n,p3),{systemProps:l,otherProps:u}=h3(i);let c;return Array.isArray(r)?c=[l,...r]:typeof r=="function"?c=(...d)=>{const p=r(...d);return xa(p)?ge({},l,p):l}:c=ge({},l,r),ge({},u,{sx:c})}const v3=Object.freeze(Object.defineProperty({__proto__:null,default:Fs,extendSxProp:y3,unstable_createStyleFunctionSx:WE,unstable_defaultSxConfig:zo},Symbol.toStringTag,{value:"Module"})),Bb=n=>n,m3=()=>{let n=Bb;return{configure(r){n=r},generate(r){return n(r)},reset(){n=Bb}}},g3=m3();function tO(n){var r,i,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(r=0;r{l[u]=nO(n,u,i)}),l}var Rd={exports:{}},st={};/** + */var Eb;function YC(){if(Eb)return nt;Eb=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,p=n?Symbol.for("react.context"):60110,h=n?Symbol.for("react.async_mode"):60111,y=n?Symbol.for("react.concurrent_mode"):60111,m=n?Symbol.for("react.forward_ref"):60112,g=n?Symbol.for("react.suspense"):60113,S=n?Symbol.for("react.suspense_list"):60120,A=n?Symbol.for("react.memo"):60115,_=n?Symbol.for("react.lazy"):60116,E=n?Symbol.for("react.block"):60121,C=n?Symbol.for("react.fundamental"):60117,L=n?Symbol.for("react.responder"):60118,B=n?Symbol.for("react.scope"):60119;function M(R){if(typeof R=="object"&&R!==null){var j=R.$$typeof;switch(j){case r:switch(R=R.type,R){case h:case y:case l:case c:case u:case g:return R;default:switch(R=R&&R.$$typeof,R){case p:case m:case _:case A:case d:return R;default:return j}}case i:return j}}}function X(R){return M(R)===y}return nt.AsyncMode=h,nt.ConcurrentMode=y,nt.ContextConsumer=p,nt.ContextProvider=d,nt.Element=r,nt.ForwardRef=m,nt.Fragment=l,nt.Lazy=_,nt.Memo=A,nt.Portal=i,nt.Profiler=c,nt.StrictMode=u,nt.Suspense=g,nt.isAsyncMode=function(R){return X(R)||M(R)===h},nt.isConcurrentMode=X,nt.isContextConsumer=function(R){return M(R)===p},nt.isContextProvider=function(R){return M(R)===d},nt.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===r},nt.isForwardRef=function(R){return M(R)===m},nt.isFragment=function(R){return M(R)===l},nt.isLazy=function(R){return M(R)===_},nt.isMemo=function(R){return M(R)===A},nt.isPortal=function(R){return M(R)===i},nt.isProfiler=function(R){return M(R)===c},nt.isStrictMode=function(R){return M(R)===u},nt.isSuspense=function(R){return M(R)===g},nt.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===l||R===y||R===c||R===u||R===g||R===S||typeof R=="object"&&R!==null&&(R.$$typeof===_||R.$$typeof===A||R.$$typeof===d||R.$$typeof===p||R.$$typeof===m||R.$$typeof===C||R.$$typeof===L||R.$$typeof===B||R.$$typeof===E)},nt.typeOf=M,nt}var Ob;function VC(){return Ob||(Ob=1,Td.exports=YC()),Td.exports}var _d,Tb;function PC(){if(Tb)return _d;Tb=1;var n=VC(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[n.ForwardRef]=l,c[n.Memo]=u;function d(_){return n.isMemo(_)?u:c[_.$$typeof]||r}var p=Object.defineProperty,h=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,S=Object.prototype;function A(_,E,C){if(typeof E!="string"){if(S){var L=g(E);L&&L!==S&&A(_,L,C)}var B=h(E);y&&(B=B.concat(y(E)));for(var M=d(_),X=d(E),R=0;R=4;++l,u-=4)i=n.charCodeAt(l)&255|(n.charCodeAt(++l)&255)<<8|(n.charCodeAt(++l)&255)<<16|(n.charCodeAt(++l)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,r=(i&65535)*1540483477+((i>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(n.charCodeAt(l+2)&255)<<16;case 2:r^=(n.charCodeAt(l+1)&255)<<8;case 1:r^=n.charCodeAt(l)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var KC={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},FC=/[A-Z]|^ms/g,ZC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,YE=function(r){return r.charCodeAt(1)===45},_b=function(r){return r!=null&&typeof r!="boolean"},Ad=LE(function(n){return YE(n)?n:n.replace(FC,"-$&").toLowerCase()}),Ab=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(ZC,function(l,u,c){return cr={name:u,styles:c,next:cr},u})}return KC[r]!==1&&!YE(r)&&typeof i=="number"&&i!==0?i+"px":i};function _o(n,r,i){if(i==null)return"";var l=i;if(l.__emotion_styles!==void 0)return l;switch(typeof i){case"boolean":return"";case"object":{var u=i;if(u.anim===1)return cr={name:u.name,styles:u.styles,next:cr},u.name;var c=i;if(c.styles!==void 0){var d=c.next;if(d!==void 0)for(;d!==void 0;)cr={name:d.name,styles:d.styles,next:cr},d=d.next;var p=c.styles+";";return p}return IC(n,r,i)}case"function":{if(n!==void 0){var h=cr,y=i(n);return cr=h,_o(n,r,y)}break}}var m=i;if(r==null)return m;var g=r[m];return g!==void 0?g:m}function IC(n,r,i){var l="";if(Array.isArray(i))for(var u=0;u96?uN:sN},Mb=function(r,i,l){var u;if(i){var c=i.shouldForwardProp;u=r.__emotion_forwardProp&&c?function(d){return r.__emotion_forwardProp(d)&&c(d)}:c}return typeof u!="function"&&l&&(u=r.__emotion_forwardProp),u},cN=function(r){var i=r.cache,l=r.serialized,u=r.isStringTag;return xy(i,l,u),PE(function(){return Ey(i,l,u)}),null},fN=function n(r,i){var l=r.__emotion_real===r,u=l&&r.__emotion_base||r,c,d;i!==void 0&&(c=i.label,d=i.target);var p=Mb(r,i,l),h=p||Nb(u),y=!h("as");return function(){var m=arguments,g=l&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(c!==void 0&&g.push("label:"+c+";"),m[0]==null||m[0].raw===void 0)g.push.apply(g,m);else{var S=m[0];g.push(S[0]);for(var A=m.length,_=1;_r(hN(u)?i:u):r;return T.jsx(aN,{styles:l})}function vN(n,r){return Lh(n,r)}const mN=(n,r)=>{Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=r(n.__emotion_styles))},gN=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:yN,StyledEngineProvider:pN,ThemeContext:Gs,css:QE,default:vN,internal_processStyles:mN,keyframes:iN},Symbol.toStringTag,{value:"Module"}));function xa(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function KE(n){if(x.isValidElement(n)||!xa(n))return n;const r={};return Object.keys(n).forEach(i=>{r[i]=KE(n[i])}),r}function vr(n,r,i={clone:!0}){const l=i.clone?ge({},n):n;return xa(n)&&xa(r)&&Object.keys(r).forEach(u=>{x.isValidElement(r[u])?l[u]=r[u]:xa(r[u])&&Object.prototype.hasOwnProperty.call(n,u)&&xa(n[u])?l[u]=vr(n[u],r[u],i):i.clone?l[u]=xa(r[u])?KE(r[u]):r[u]:l[u]=r[u]}),l}const bN=Object.freeze(Object.defineProperty({__proto__:null,default:vr,isPlainObject:xa},Symbol.toStringTag,{value:"Module"})),SN=["values","unit","step"],xN=n=>{const r=Object.keys(n).map(i=>({key:i,val:n[i]}))||[];return r.sort((i,l)=>i.val-l.val),r.reduce((i,l)=>ge({},i,{[l.key]:l.val}),{})};function FE(n){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:l=5}=n,u=er(n,SN),c=xN(r),d=Object.keys(c);function p(S){return`@media (min-width:${typeof r[S]=="number"?r[S]:S}${i})`}function h(S){return`@media (max-width:${(typeof r[S]=="number"?r[S]:S)-l/100}${i})`}function y(S,A){const _=d.indexOf(A);return`@media (min-width:${typeof r[S]=="number"?r[S]:S}${i}) and (max-width:${(_!==-1&&typeof r[d[_]]=="number"?r[d[_]]:A)-l/100}${i})`}function m(S){return d.indexOf(S)+1`@media (min-width:${_y[n]}px)`};function Xr(n,r,i){const l=n.theme||{};if(Array.isArray(r)){const c=l.breakpoints||Db;return r.reduce((d,p,h)=>(d[c.up(c.keys[h])]=i(r[h]),d),{})}if(typeof r=="object"){const c=l.breakpoints||Db;return Object.keys(r).reduce((d,p)=>{if(Object.keys(c.values||_y).indexOf(p)!==-1){const h=c.up(p);d[h]=i(r[p],p)}else{const h=p;d[h]=r[h]}return d},{})}return i(r)}function ON(n={}){var r;return((r=n.keys)==null?void 0:r.reduce((l,u)=>{const c=n.up(u);return l[c]={},l},{}))||{}}function TN(n,r){return n.reduce((i,l)=>{const u=i[l];return(!u||Object.keys(u).length===0)&&delete i[l],i},r)}function Jn(n){if(typeof n!="string")throw new Error(Eo(7));return n.charAt(0).toUpperCase()+n.slice(1)}const _N=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"}));function Ys(n,r,i=!0){if(!r||typeof r!="string")return null;if(n&&n.vars&&i){const l=`vars.${r}`.split(".").reduce((u,c)=>u&&u[c]?u[c]:null,n);if(l!=null)return l}return r.split(".").reduce((l,u)=>l&&l[u]!=null?l[u]:null,n)}function Rs(n,r,i,l=i){let u;return typeof n=="function"?u=n(i):Array.isArray(n)?u=n[i]||l:u=Ys(n,i)||l,r&&(u=r(u,l,n)),u}function Ct(n){const{prop:r,cssProperty:i=n.prop,themeKey:l,transform:u}=n,c=d=>{if(d[r]==null)return null;const p=d[r],h=d.theme,y=Ys(h,l)||{};return Xr(d,p,g=>{let S=Rs(y,u,g);return g===S&&typeof g=="string"&&(S=Rs(y,u,`${r}${g==="default"?"":Jn(g)}`,g)),i===!1?S:{[i]:S}})};return c.propTypes={},c.filterProps=[r],c}function AN(n){const r={};return i=>(r[i]===void 0&&(r[i]=n(i)),r[i])}const RN={m:"margin",p:"padding"},wN={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},jb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},CN=AN(n=>{if(n.length>2)if(jb[n])n=jb[n];else return[n];const[r,i]=n.split(""),l=RN[r],u=wN[i]||"";return Array.isArray(u)?u.map(c=>l+c):[l+u]}),Ay=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ry=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ay,...Ry];function $o(n,r,i,l){var u;const c=(u=Ys(n,r,!1))!=null?u:i;return typeof c=="number"?d=>typeof d=="string"?d:c*d:Array.isArray(c)?d=>typeof d=="string"?d:c[d]:typeof c=="function"?c:()=>{}}function ZE(n){return $o(n,"spacing",8)}function qo(n,r){if(typeof r=="string"||r==null)return r;const i=Math.abs(r),l=n(i);return r>=0?l:typeof l=="number"?-l:`-${l}`}function NN(n,r){return i=>n.reduce((l,u)=>(l[u]=qo(r,i),l),{})}function MN(n,r,i,l){if(r.indexOf(i)===-1)return null;const u=CN(i),c=NN(u,l),d=n[i];return Xr(n,d,c)}function IE(n,r){const i=ZE(n.theme);return Object.keys(n).map(l=>MN(n,r,l,i)).reduce(yo,{})}function Ot(n){return IE(n,Ay)}Ot.propTypes={};Ot.filterProps=Ay;function Tt(n){return IE(n,Ry)}Tt.propTypes={};Tt.filterProps=Ry;function DN(n=8){if(n.mui)return n;const r=ZE({spacing:n}),i=(...l)=>(l.length===0?[1]:l).map(c=>{const d=r(c);return typeof d=="number"?`${d}px`:d}).join(" ");return i.mui=!0,i}function Vs(...n){const r=n.reduce((l,u)=>(u.filterProps.forEach(c=>{l[c]=u}),l),{}),i=l=>Object.keys(l).reduce((u,c)=>r[c]?yo(u,r[c](l)):u,{});return i.propTypes={},i.filterProps=n.reduce((l,u)=>l.concat(u.filterProps),[]),i}function Hn(n){return typeof n!="number"?n:`${n}px solid`}function Pn(n,r){return Ct({prop:n,themeKey:"borders",transform:r})}const jN=Pn("border",Hn),BN=Pn("borderTop",Hn),$N=Pn("borderRight",Hn),qN=Pn("borderBottom",Hn),zN=Pn("borderLeft",Hn),kN=Pn("borderColor"),LN=Pn("borderTopColor"),UN=Pn("borderRightColor"),HN=Pn("borderBottomColor"),GN=Pn("borderLeftColor"),YN=Pn("outline",Hn),VN=Pn("outlineColor"),Ps=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const r=$o(n.theme,"shape.borderRadius",4),i=l=>({borderRadius:qo(r,l)});return Xr(n,n.borderRadius,i)}return null};Ps.propTypes={};Ps.filterProps=["borderRadius"];Vs(jN,BN,$N,qN,zN,kN,LN,UN,HN,GN,Ps,YN,VN);const Xs=n=>{if(n.gap!==void 0&&n.gap!==null){const r=$o(n.theme,"spacing",8),i=l=>({gap:qo(r,l)});return Xr(n,n.gap,i)}return null};Xs.propTypes={};Xs.filterProps=["gap"];const Qs=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const r=$o(n.theme,"spacing",8),i=l=>({columnGap:qo(r,l)});return Xr(n,n.columnGap,i)}return null};Qs.propTypes={};Qs.filterProps=["columnGap"];const Ks=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const r=$o(n.theme,"spacing",8),i=l=>({rowGap:qo(r,l)});return Xr(n,n.rowGap,i)}return null};Ks.propTypes={};Ks.filterProps=["rowGap"];const PN=Ct({prop:"gridColumn"}),XN=Ct({prop:"gridRow"}),QN=Ct({prop:"gridAutoFlow"}),KN=Ct({prop:"gridAutoColumns"}),FN=Ct({prop:"gridAutoRows"}),ZN=Ct({prop:"gridTemplateColumns"}),IN=Ct({prop:"gridTemplateRows"}),WN=Ct({prop:"gridTemplateAreas"}),JN=Ct({prop:"gridArea"});Vs(Xs,Qs,Ks,PN,XN,QN,KN,FN,ZN,IN,WN,JN);function Ki(n,r){return r==="grey"?r:n}const e3=Ct({prop:"color",themeKey:"palette",transform:Ki}),t3=Ct({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ki}),n3=Ct({prop:"backgroundColor",themeKey:"palette",transform:Ki});Vs(e3,t3,n3);function On(n){return n<=1&&n!==0?`${n*100}%`:n}const r3=Ct({prop:"width",transform:On}),wy=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const r=i=>{var l,u;const c=((l=n.theme)==null||(l=l.breakpoints)==null||(l=l.values)==null?void 0:l[i])||_y[i];return c?((u=n.theme)==null||(u=u.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${c}${n.theme.breakpoints.unit}`}:{maxWidth:c}:{maxWidth:On(i)}};return Xr(n,n.maxWidth,r)}return null};wy.filterProps=["maxWidth"];const a3=Ct({prop:"minWidth",transform:On}),i3=Ct({prop:"height",transform:On}),l3=Ct({prop:"maxHeight",transform:On}),o3=Ct({prop:"minHeight",transform:On});Ct({prop:"size",cssProperty:"width",transform:On});Ct({prop:"size",cssProperty:"height",transform:On});const u3=Ct({prop:"boxSizing"});Vs(r3,wy,a3,i3,l3,o3,u3);const zo={border:{themeKey:"borders",transform:Hn},borderTop:{themeKey:"borders",transform:Hn},borderRight:{themeKey:"borders",transform:Hn},borderBottom:{themeKey:"borders",transform:Hn},borderLeft:{themeKey:"borders",transform:Hn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Hn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ps},color:{themeKey:"palette",transform:Ki},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ki},backgroundColor:{themeKey:"palette",transform:Ki},p:{style:Tt},pt:{style:Tt},pr:{style:Tt},pb:{style:Tt},pl:{style:Tt},px:{style:Tt},py:{style:Tt},padding:{style:Tt},paddingTop:{style:Tt},paddingRight:{style:Tt},paddingBottom:{style:Tt},paddingLeft:{style:Tt},paddingX:{style:Tt},paddingY:{style:Tt},paddingInline:{style:Tt},paddingInlineStart:{style:Tt},paddingInlineEnd:{style:Tt},paddingBlock:{style:Tt},paddingBlockStart:{style:Tt},paddingBlockEnd:{style:Tt},m:{style:Ot},mt:{style:Ot},mr:{style:Ot},mb:{style:Ot},ml:{style:Ot},mx:{style:Ot},my:{style:Ot},margin:{style:Ot},marginTop:{style:Ot},marginRight:{style:Ot},marginBottom:{style:Ot},marginLeft:{style:Ot},marginX:{style:Ot},marginY:{style:Ot},marginInline:{style:Ot},marginInlineStart:{style:Ot},marginInlineEnd:{style:Ot},marginBlock:{style:Ot},marginBlockStart:{style:Ot},marginBlockEnd:{style:Ot},displayPrint:{cssProperty:!1,transform:n=>({"@media print":{display:n}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xs},rowGap:{style:Ks},columnGap:{style:Qs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:On},maxWidth:{style:wy},minWidth:{transform:On},height:{transform:On},maxHeight:{transform:On},minHeight:{transform:On},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function s3(...n){const r=n.reduce((l,u)=>l.concat(Object.keys(u)),[]),i=new Set(r);return n.every(l=>i.size===Object.keys(l).length)}function c3(n,r){return typeof n=="function"?n(r):n}function WE(){function n(i,l,u,c){const d={[i]:l,theme:u},p=c[i];if(!p)return{[i]:l};const{cssProperty:h=i,themeKey:y,transform:m,style:g}=p;if(l==null)return null;if(y==="typography"&&l==="inherit")return{[i]:l};const S=Ys(u,y)||{};return g?g(d):Xr(d,l,_=>{let E=Rs(S,m,_);return _===E&&typeof _=="string"&&(E=Rs(S,m,`${i}${_==="default"?"":Jn(_)}`,_)),h===!1?E:{[h]:E}})}function r(i){var l;const{sx:u,theme:c={}}=i||{};if(!u)return null;const d=(l=c.unstable_sxConfig)!=null?l:zo;function p(h){let y=h;if(typeof h=="function")y=h(c);else if(typeof h!="object")return h;if(!y)return null;const m=ON(c.breakpoints),g=Object.keys(m);let S=m;return Object.keys(y).forEach(A=>{const _=c3(y[A],c);if(_!=null)if(typeof _=="object")if(d[A])S=yo(S,n(A,_,c,d));else{const E=Xr({theme:c},_,C=>({[A]:C}));s3(E,_)?S[A]=r({sx:_,theme:c}):S=yo(S,E)}else S=yo(S,n(A,_,c,d))}),TN(g,S)}return Array.isArray(u)?u.map(p):p(u)}return r}const Fs=WE();Fs.filterProps=["sx"];function JE(n,r){const i=this;return i.vars&&typeof i.getColorSchemeSelector=="function"?{[i.getColorSchemeSelector(n).replace(/(\[[^\]]+\])/,"*:where($1)")]:r}:i.palette.mode===n?r:{}}const f3=["breakpoints","palette","spacing","shape"];function eO(n={},...r){const{breakpoints:i={},palette:l={},spacing:u,shape:c={}}=n,d=er(n,f3),p=FE(i),h=DN(u);let y=vr({breakpoints:p,direction:"ltr",components:{},palette:ge({mode:"light"},l),spacing:h,shape:ge({},EN,c)},d);return y.applyStyles=JE,y=r.reduce((m,g)=>vr(m,g),y),y.unstable_sxConfig=ge({},zo,d==null?void 0:d.unstable_sxConfig),y.unstable_sx=function(g){return Fs({sx:g,theme:this})},y}const d3=Object.freeze(Object.defineProperty({__proto__:null,default:eO,private_createBreakpoints:FE,unstable_applyStyles:JE},Symbol.toStringTag,{value:"Module"})),p3=["sx"],h3=n=>{var r,i;const l={systemProps:{},otherProps:{}},u=(r=n==null||(i=n.theme)==null?void 0:i.unstable_sxConfig)!=null?r:zo;return Object.keys(n).forEach(c=>{u[c]?l.systemProps[c]=n[c]:l.otherProps[c]=n[c]}),l};function y3(n){const{sx:r}=n,i=er(n,p3),{systemProps:l,otherProps:u}=h3(i);let c;return Array.isArray(r)?c=[l,...r]:typeof r=="function"?c=(...d)=>{const p=r(...d);return xa(p)?ge({},l,p):l}:c=ge({},l,r),ge({},u,{sx:c})}const v3=Object.freeze(Object.defineProperty({__proto__:null,default:Fs,extendSxProp:y3,unstable_createStyleFunctionSx:WE,unstable_defaultSxConfig:zo},Symbol.toStringTag,{value:"Module"})),Bb=n=>n,m3=()=>{let n=Bb;return{configure(r){n=r},generate(r){return n(r)},reset(){n=Bb}}},g3=m3();function tO(n){var r,i,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(r=0;r{l[u]=nO(n,u,i)}),l}var Rd={exports:{}},st={};/** * @license React * react-is.production.js * @@ -41,10 +41,10 @@ function P_(n,r){for(var i=0;i{if(l.toString().match(/^(components|slots)$/))i[l]=ge({},n[l],i[l]);else if(l.toString().match(/^(componentsProps|slotProps)$/)){const u=n[l]||{},c=r[l];i[l]={},!c||!Object.keys(c)?i[l]=u:!u||!Object.keys(u)?i[l]=c:(i[l]=ge({},c),Object.keys(u).forEach(d=>{i[l][d]=Hh(u[d],c[d])}))}else i[l]===void 0&&(i[l]=n[l])}),i}const iO=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Vi(n,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(n,i))}const A3=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"}));function ms(n){return n&&n.ownerDocument||document}function R3(n,r){typeof n=="function"?n(r):n&&(n.current=r)}function w3({controlled:n,default:r,name:i,state:l="value"}){const{current:u}=x.useRef(n!==void 0),[c,d]=x.useState(r),p=u?n:c,h=x.useCallback(y=>{u||d(y)},[]);return[p,h]}function wd(n){const r=x.useRef(n);return iO(()=>{r.current=n}),x.useRef((...i)=>(0,r.current)(...i)).current}function Gh(...n){return x.useMemo(()=>n.every(r=>r==null)?null:r=>{n.forEach(i=>{R3(i,r)})},n)}class Cy{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Cy}start(r,i){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,i()},r)}}let Zs=!0,Yh=!1;const C3=new Cy,N3={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function M3(n){const{type:r,tagName:i}=n;return!!(i==="INPUT"&&N3[r]&&!n.readOnly||i==="TEXTAREA"&&!n.readOnly||n.isContentEditable)}function D3(n){n.metaKey||n.altKey||n.ctrlKey||(Zs=!0)}function Cd(){Zs=!1}function j3(){this.visibilityState==="hidden"&&Yh&&(Zs=!0)}function B3(n){n.addEventListener("keydown",D3,!0),n.addEventListener("mousedown",Cd,!0),n.addEventListener("pointerdown",Cd,!0),n.addEventListener("touchstart",Cd,!0),n.addEventListener("visibilitychange",j3,!0)}function $3(n){const{target:r}=n;try{return r.matches(":focus-visible")}catch{}return Zs||M3(r)}function q3(){const n=x.useCallback(u=>{u!=null&&B3(u.ownerDocument)},[]),r=x.useRef(!1);function i(){return r.current?(Yh=!0,C3.start(100,()=>{Yh=!1}),r.current=!1,!0):!1}function l(u){return $3(u)?(r.current=!0,!0):!1}return{isFocusVisibleRef:r,onFocus:l,onBlur:i,ref:n}}const z3={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function k3(n,r,i=void 0){const l={};return Object.keys(n).forEach(u=>{l[u]=n[u].reduce((c,d)=>{if(d){const p=r(d);p!==""&&c.push(p),i&&i[d]&&c.push(i[d])}return c},[]).join(" ")}),l}function vo(n){return typeof n=="string"}function L3(n,r,i){return n===void 0||vo(n)?r:ge({},r,{ownerState:ge({},r.ownerState,i)})}function gs(n,r=[]){if(n===void 0)return{};const i={};return Object.keys(n).filter(l=>l.match(/^on[A-Z]/)&&typeof n[l]=="function"&&!r.includes(l)).forEach(l=>{i[l]=n[l]}),i}function Lb(n){if(n===void 0)return{};const r={};return Object.keys(n).filter(i=>!(i.match(/^on[A-Z]/)&&typeof n[i]=="function")).forEach(i=>{r[i]=n[i]}),r}function U3(n){const{getSlotProps:r,additionalProps:i,externalSlotProps:l,externalForwardedProps:u,className:c}=n;if(!r){const R=Oa(i==null?void 0:i.className,c,u==null?void 0:u.className,l==null?void 0:l.className),_=ge({},i==null?void 0:i.style,u==null?void 0:u.style,l==null?void 0:l.style),E=ge({},i,u,l);return R.length>0&&(E.className=R),Object.keys(_).length>0&&(E.style=_),{props:E,internalRef:void 0}}const d=gs(ge({},u,l)),p=Lb(l),h=Lb(u),y=r(d),m=Oa(y==null?void 0:y.className,i==null?void 0:i.className,c,u==null?void 0:u.className,l==null?void 0:l.className),g=ge({},y==null?void 0:y.style,i==null?void 0:i.style,u==null?void 0:u.style,l==null?void 0:l.style),S=ge({},y,i,h,p);return m.length>0&&(S.className=m),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:y.ref}}function H3(n,r,i){return typeof n=="function"?n(r,i):n}const G3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ba(n){var r;const{elementType:i,externalSlotProps:l,ownerState:u,skipResolvingSlotProps:c=!1}=n,d=er(n,G3),p=c?{}:H3(l,u),{props:h,internalRef:y}=U3(ge({},d,{externalSlotProps:p})),m=Gh(y,p==null?void 0:p.ref,(r=n.additionalProps)==null?void 0:r.ref);return L3(i,ge({},h,{ref:m}),u)}const Y3=x.createContext(),V3=()=>{const n=x.useContext(Y3);return n??!1},P3=x.createContext(void 0);function X3(n){const{theme:r,name:i,props:l}=n;if(!r||!r.components||!r.components[i])return l;const u=r.components[i];return u.defaultProps?Hh(u.defaultProps,l):!u.styleOverrides&&!u.variants?Hh(u,l):l}function Q3({props:n,name:r}){const i=x.useContext(P3);return X3({props:n,name:r,theme:{components:i}})}function K3(n,r){return ge({toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}}},r)}var bt={},Nd={exports:{}},Ub;function lO(){return Ub||(Ub=1,function(n){function r(i){return i&&i.__esModule?i:{default:i}}n.exports=r,n.exports.__esModule=!0,n.exports.default=n.exports}(Nd)),Nd.exports}const F3=Qr(pC),Z3=Qr(A3);var Hb;function I3(){if(Hb)return bt;Hb=1;var n=lO();Object.defineProperty(bt,"__esModule",{value:!0}),bt.alpha=_,bt.blend=$,bt.colorChannel=void 0,bt.darken=C,bt.decomposeColor=d,bt.emphasize=X,bt.getContrastRatio=R,bt.getLuminance=S,bt.hexToRgb=u,bt.hslToRgb=g,bt.lighten=M,bt.private_safeAlpha=E,bt.private_safeColorChannel=void 0,bt.private_safeDarken=j,bt.private_safeEmphasize=A,bt.private_safeLighten=B,bt.recomposeColor=y,bt.rgbToHex=m;var r=n(F3),i=n(Z3);function l(O,q=0,L=1){return(0,i.default)(O,q,L)}function u(O){O=O.slice(1);const q=new RegExp(`.{1,${O.length>=6?2:1}}`,"g");let L=O.match(q);return L&&L[0].length===1&&(L=L.map(Y=>Y+Y)),L?`rgb${L.length===4?"a":""}(${L.map((Y,W)=>W<3?parseInt(Y,16):Math.round(parseInt(Y,16)/255*1e3)/1e3).join(", ")})`:""}function c(O){const q=O.toString(16);return q.length===1?`0${q}`:q}function d(O){if(O.type)return O;if(O.charAt(0)==="#")return d(u(O));const q=O.indexOf("("),L=O.substring(0,q);if(["rgb","rgba","hsl","hsla","color"].indexOf(L)===-1)throw new Error((0,r.default)(9,O));let Y=O.substring(q+1,O.length-1),W;if(L==="color"){if(Y=Y.split(" "),W=Y.shift(),Y.length===4&&Y[3].charAt(0)==="/"&&(Y[3]=Y[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(W)===-1)throw new Error((0,r.default)(10,W))}else Y=Y.split(",");return Y=Y.map(oe=>parseFloat(oe)),{type:L,values:Y,colorSpace:W}}const p=O=>{const q=d(O);return q.values.slice(0,3).map((L,Y)=>q.type.indexOf("hsl")!==-1&&Y!==0?`${L}%`:L).join(" ")};bt.colorChannel=p;const h=(O,q)=>{try{return p(O)}catch{return O}};bt.private_safeColorChannel=h;function y(O){const{type:q,colorSpace:L}=O;let{values:Y}=O;return q.indexOf("rgb")!==-1?Y=Y.map((W,oe)=>oe<3?parseInt(W,10):W):q.indexOf("hsl")!==-1&&(Y[1]=`${Y[1]}%`,Y[2]=`${Y[2]}%`),q.indexOf("color")!==-1?Y=`${L} ${Y.join(" ")}`:Y=`${Y.join(", ")}`,`${q}(${Y})`}function m(O){if(O.indexOf("#")===0)return O;const{values:q}=d(O);return`#${q.map((L,Y)=>c(Y===3?Math.round(255*L):L)).join("")}`}function g(O){O=d(O);const{values:q}=O,L=q[0],Y=q[1]/100,W=q[2]/100,oe=Y*Math.min(W,1-W),ue=(H,I=(H+L/30)%12)=>W-oe*Math.max(Math.min(I-3,9-I,1),-1);let he="rgb";const fe=[Math.round(ue(0)*255),Math.round(ue(8)*255),Math.round(ue(4)*255)];return O.type==="hsla"&&(he+="a",fe.push(q[3])),y({type:he,values:fe})}function S(O){O=d(O);let q=O.type==="hsl"||O.type==="hsla"?d(g(O)).values:O.values;return q=q.map(L=>(O.type!=="color"&&(L/=255),L<=.03928?L/12.92:((L+.055)/1.055)**2.4)),Number((.2126*q[0]+.7152*q[1]+.0722*q[2]).toFixed(3))}function R(O,q){const L=S(O),Y=S(q);return(Math.max(L,Y)+.05)/(Math.min(L,Y)+.05)}function _(O,q){return O=d(O),q=l(q),(O.type==="rgb"||O.type==="hsl")&&(O.type+="a"),O.type==="color"?O.values[3]=`/${q}`:O.values[3]=q,y(O)}function E(O,q,L){try{return _(O,q)}catch{return O}}function C(O,q){if(O=d(O),q=l(q),O.type.indexOf("hsl")!==-1)O.values[2]*=1-q;else if(O.type.indexOf("rgb")!==-1||O.type.indexOf("color")!==-1)for(let L=0;L<3;L+=1)O.values[L]*=1-q;return y(O)}function j(O,q,L){try{return C(O,q)}catch{return O}}function M(O,q){if(O=d(O),q=l(q),O.type.indexOf("hsl")!==-1)O.values[2]+=(100-O.values[2])*q;else if(O.type.indexOf("rgb")!==-1)for(let L=0;L<3;L+=1)O.values[L]+=(255-O.values[L])*q;else if(O.type.indexOf("color")!==-1)for(let L=0;L<3;L+=1)O.values[L]+=(1-O.values[L])*q;return y(O)}function B(O,q,L){try{return M(O,q)}catch{return O}}function X(O,q=.15){return S(O)>.5?C(O,q):M(O,q)}function A(O,q,L){try{return X(O,q)}catch{return O}}function $(O,q,L,Y=1){const W=(fe,H)=>Math.round((fe**(1/Y)*(1-L)+H**(1/Y)*L)**Y),oe=d(O),ue=d(q),he=[W(oe.values[0],ue.values[0]),W(oe.values[1],ue.values[1]),W(oe.values[2],ue.values[2])];return y({type:"rgb",values:he})}return bt}var Hr=I3();const W3=["mode","contrastThreshold","tonalOffset"],Gb={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xo.white,default:xo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Md={text:{primary:xo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:xo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Yb(n,r,i,l){const u=l.light||l,c=l.dark||l*1.5;n[r]||(n.hasOwnProperty(i)?n[r]=n[i]:r==="light"?n.light=Hr.lighten(n.main,u):r==="dark"&&(n.dark=Hr.darken(n.main,c)))}function J3(n="light"){return n==="dark"?{main:Ui[200],light:Ui[50],dark:Ui[400]}:{main:Ui[700],light:Ui[400],dark:Ui[800]}}function e4(n="light"){return n==="dark"?{main:Li[200],light:Li[50],dark:Li[400]}:{main:Li[500],light:Li[300],dark:Li[700]}}function t4(n="light"){return n==="dark"?{main:ki[500],light:ki[300],dark:ki[700]}:{main:ki[700],light:ki[400],dark:ki[800]}}function n4(n="light"){return n==="dark"?{main:Hi[400],light:Hi[300],dark:Hi[700]}:{main:Hi[700],light:Hi[500],dark:Hi[900]}}function r4(n="light"){return n==="dark"?{main:Gi[400],light:Gi[300],dark:Gi[700]}:{main:Gi[800],light:Gi[500],dark:Gi[900]}}function a4(n="light"){return n==="dark"?{main:no[400],light:no[300],dark:no[700]}:{main:"#ed6c02",light:no[500],dark:no[900]}}function i4(n){const{mode:r="light",contrastThreshold:i=3,tonalOffset:l=.2}=n,u=er(n,W3),c=n.primary||J3(r),d=n.secondary||e4(r),p=n.error||t4(r),h=n.info||n4(r),y=n.success||r4(r),m=n.warning||a4(r);function g(E){return Hr.getContrastRatio(E,Md.text.primary)>=i?Md.text.primary:Gb.text.primary}const S=({color:E,name:C,mainShade:j=500,lightShade:M=300,darkShade:B=700})=>{if(E=ge({},E),!E.main&&E[j]&&(E.main=E[j]),!E.hasOwnProperty("main"))throw new Error(Eo(11,C?` (${C})`:"",j));if(typeof E.main!="string")throw new Error(Eo(12,C?` (${C})`:"",JSON.stringify(E.main)));return Yb(E,"light",M,l),Yb(E,"dark",B,l),E.contrastText||(E.contrastText=g(E.main)),E},R={dark:Md,light:Gb};return vr(ge({common:ge({},xo),mode:r,primary:S({color:c,name:"primary"}),secondary:S({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:p,name:"error"}),warning:S({color:m,name:"warning"}),info:S({color:h,name:"info"}),success:S({color:y,name:"success"}),grey:dC,contrastThreshold:i,getContrastText:g,augmentColor:S,tonalOffset:l},R[r]),u)}const l4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function o4(n){return Math.round(n*1e5)/1e5}const Vb={textTransform:"uppercase"},Pb='"Roboto", "Helvetica", "Arial", sans-serif';function u4(n,r){const i=typeof r=="function"?r(n):r,{fontFamily:l=Pb,fontSize:u=14,fontWeightLight:c=300,fontWeightRegular:d=400,fontWeightMedium:p=500,fontWeightBold:h=700,htmlFontSize:y=16,allVariants:m,pxToRem:g}=i,S=er(i,l4),R=u/14,_=g||(j=>`${j/y*R}rem`),E=(j,M,B,X,A)=>ge({fontFamily:l,fontWeight:j,fontSize:_(M),lineHeight:B},l===Pb?{letterSpacing:`${o4(X/M)}em`}:{},A,m),C={h1:E(c,96,1.167,-1.5),h2:E(c,60,1.2,-.5),h3:E(d,48,1.167,0),h4:E(d,34,1.235,.25),h5:E(d,24,1.334,0),h6:E(p,20,1.6,.15),subtitle1:E(d,16,1.75,.15),subtitle2:E(p,14,1.57,.1),body1:E(d,16,1.5,.15),body2:E(d,14,1.43,.15),button:E(p,14,1.75,.4,Vb),caption:E(d,12,1.66,.4),overline:E(d,12,2.66,1,Vb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vr(ge({htmlFontSize:y,pxToRem:_,fontFamily:l,fontSize:u,fontWeightLight:c,fontWeightRegular:d,fontWeightMedium:p,fontWeightBold:h},C),S,{clone:!1})}const s4=.2,c4=.14,f4=.12;function vt(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${s4})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${c4})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${f4})`].join(",")}const d4=["none",vt(0,2,1,-1,0,1,1,0,0,1,3,0),vt(0,3,1,-2,0,2,2,0,0,1,5,0),vt(0,3,3,-2,0,3,4,0,0,1,8,0),vt(0,2,4,-1,0,4,5,0,0,1,10,0),vt(0,3,5,-1,0,5,8,0,0,1,14,0),vt(0,3,5,-1,0,6,10,0,0,1,18,0),vt(0,4,5,-2,0,7,10,1,0,2,16,1),vt(0,5,5,-3,0,8,10,1,0,3,14,2),vt(0,5,6,-3,0,9,12,1,0,3,16,2),vt(0,6,6,-3,0,10,14,1,0,4,18,3),vt(0,6,7,-4,0,11,15,1,0,4,20,3),vt(0,7,8,-4,0,12,17,2,0,5,22,4),vt(0,7,8,-4,0,13,19,2,0,5,24,4),vt(0,7,9,-4,0,14,21,2,0,5,26,4),vt(0,8,9,-5,0,15,22,2,0,6,28,5),vt(0,8,10,-5,0,16,24,2,0,6,30,5),vt(0,8,11,-5,0,17,26,2,0,6,32,5),vt(0,9,11,-5,0,18,28,2,0,7,34,6),vt(0,9,12,-6,0,19,29,2,0,7,36,6),vt(0,10,13,-6,0,20,31,3,0,8,38,7),vt(0,10,13,-6,0,21,33,3,0,8,40,7),vt(0,10,14,-6,0,22,35,3,0,8,42,7),vt(0,11,14,-7,0,23,36,3,0,9,44,8),vt(0,11,15,-7,0,24,38,3,0,9,46,8)],p4=["duration","easing","delay"],h4={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},y4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xb(n){return`${Math.round(n)}ms`}function v4(n){if(!n)return 0;const r=n/36;return Math.round((4+15*r**.25+r/5)*10)}function m4(n){const r=ge({},h4,n.easing),i=ge({},y4,n.duration);return ge({getAutoHeightDuration:v4,create:(u=["all"],c={})=>{const{duration:d=i.standard,easing:p=r.easeInOut,delay:h=0}=c;return er(c,p4),(Array.isArray(u)?u:[u]).map(y=>`${y} ${typeof d=="string"?d:Xb(d)} ${p} ${typeof h=="string"?h:Xb(h)}`).join(",")}},n,{easing:r,duration:i})}const g4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},b4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function S4(n={},...r){const{mixins:i={},palette:l={},transitions:u={},typography:c={}}=n,d=er(n,b4);if(n.vars&&n.generateCssVars===void 0)throw new Error(Eo(18));const p=i4(l),h=eO(n);let y=vr(h,{mixins:K3(h.breakpoints,i),palette:p,shadows:d4.slice(),typography:u4(p,c),transitions:m4(u),zIndex:ge({},g4)});return y=vr(y,d),y=r.reduce((m,g)=>vr(m,g),y),y.unstable_sxConfig=ge({},zo,d==null?void 0:d.unstable_sxConfig),y.unstable_sx=function(g){return Fs({sx:g,theme:this})},y}const x4=S4();var Xa={},Dd={exports:{}},Qb;function E4(){return Qb||(Qb=1,function(n){function r(){return n.exports=r=Object.assign?Object.assign.bind():function(i){for(var l=1;l96}function _(A){return A!=="ownerState"&&A!=="theme"&&A!=="sx"&&A!=="as"}const E=Xa.systemDefaultTheme=(0,c.default)(),C=A=>A&&A.charAt(0).toLowerCase()+A.slice(1);function j({defaultTheme:A,theme:$,themeId:O}){return S($)?A:$[O]||$}function M(A){return A?($,O)=>O[A]:null}function B(A,$){let{ownerState:O}=$,q=(0,i.default)($,p);const L=typeof A=="function"?A((0,r.default)({ownerState:O},q)):A;if(Array.isArray(L))return L.flatMap(Y=>B(Y,(0,r.default)({ownerState:O},q)));if(L&&typeof L=="object"&&Array.isArray(L.variants)){const{variants:Y=[]}=L;let oe=(0,i.default)(L,h);return Y.forEach(ue=>{let he=!0;typeof ue.props=="function"?he=ue.props((0,r.default)({ownerState:O},q,O)):Object.keys(ue.props).forEach(fe=>{(O==null?void 0:O[fe])!==ue.props[fe]&&q[fe]!==ue.props[fe]&&(he=!1)}),he&&(Array.isArray(oe)||(oe=[oe]),oe.push(typeof ue.style=="function"?ue.style((0,r.default)({ownerState:O},q,O)):ue.style))}),oe}return L}function X(A={}){const{themeId:$,defaultTheme:O=E,rootShouldForwardProp:q=_,slotShouldForwardProp:L=_}=A,Y=W=>(0,d.default)((0,r.default)({},W,{theme:j((0,r.default)({},W,{defaultTheme:O,themeId:$}))}));return Y.__mui_systemSx=!0,(W,oe={})=>{(0,l.internal_processStyles)(W,te=>te.filter(pe=>!(pe!=null&&pe.__mui_systemSx)));const{name:ue,slot:he,skipVariantsResolver:fe,skipSx:H,overridesResolver:I=M(C(he))}=oe,ae=(0,i.default)(oe,y),be=fe!==void 0?fe:he&&he!=="Root"&&he!=="root"||!1,N=H||!1;let Z,le=_;he==="Root"||he==="root"?le=q:he?le=L:R(W)&&(le=void 0);const re=(0,l.default)(W,(0,r.default)({shouldForwardProp:le,label:Z},ae)),z=te=>typeof te=="function"&&te.__emotion_real!==te||(0,u.isPlainObject)(te)?pe=>B(te,(0,r.default)({},pe,{theme:j({theme:pe.theme,defaultTheme:O,themeId:$})})):te,F=(te,...pe)=>{let ce=z(te);const xe=pe?pe.map(z):[];ue&&I&&xe.push(de=>{const ve=j((0,r.default)({},de,{defaultTheme:O,themeId:$}));if(!ve.components||!ve.components[ue]||!ve.components[ue].styleOverrides)return null;const Oe=ve.components[ue].styleOverrides,ye={};return Object.entries(Oe).forEach(([je,Me])=>{ye[je]=B(Me,(0,r.default)({},de,{theme:ve}))}),I(de,ye)}),ue&&!be&&xe.push(de=>{var ve;const Oe=j((0,r.default)({},de,{defaultTheme:O,themeId:$})),ye=Oe==null||(ve=Oe.components)==null||(ve=ve[ue])==null?void 0:ve.variants;return B({variants:ye},(0,r.default)({},de,{theme:Oe}))}),N||xe.push(Y);const me=xe.length-pe.length;if(Array.isArray(te)&&me>0){const de=new Array(me).fill("");ce=[...te,...de],ce.raw=[...te.raw,...de]}const Ee=re(ce,...xe);return W.muiName&&(Ee.muiName=W.muiName),Ee};return re.withConfig&&(F.withConfig=re.withConfig),F}}return Xa}var M4=N4();const D4=_a(M4);function Ny(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const j4=n=>Ny(n)&&n!=="classes",Ia=D4({themeId:hC,defaultTheme:x4,rootShouldForwardProp:j4});function B4(n){return Q3(n)}function $4(n,r,i=(l,u)=>l===u){return n.length===r.length&&n.every((l,u)=>i(l,r[u]))}const q4=2;function oO(n,r){return n-r}function Zb(n,r){var i;const{index:l}=(i=n.reduce((u,c,d)=>{const p=Math.abs(r-c);return u===null||p({left:`${n}%`}),leap:n=>({width:`${n}%`})},"horizontal-reverse":{offset:n=>({right:`${n}%`}),leap:n=>({width:`${n}%`})},vertical:{offset:n=>({bottom:`${n}%`}),leap:n=>({height:`${n}%`})}},H4=n=>n;let rs;function Wb(){return rs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?rs=CSS.supports("touch-action","none"):rs=!0),rs}function G4(n){const{"aria-labelledby":r,defaultValue:i,disabled:l=!1,disableSwap:u=!1,isRtl:c=!1,marks:d=!1,max:p=100,min:h=0,name:y,onChange:m,onChangeCommitted:g,orientation:S="horizontal",rootRef:R,scale:_=H4,step:E=1,shiftStep:C=10,tabIndex:j,value:M}=n,B=x.useRef(void 0),[X,A]=x.useState(-1),[$,O]=x.useState(-1),[q,L]=x.useState(!1),Y=x.useRef(0),[W,oe]=w3({controlled:M,default:i??h,name:"Slider"}),ue=m&&((ie,se,Te)=>{const Ue=ie.nativeEvent||ie,Ye=new Ue.constructor(Ue.type,Ue);Object.defineProperty(Ye,"target",{writable:!0,value:{value:se,name:y}}),m(Ye,se,Te)}),he=Array.isArray(W);let fe=he?W.slice().sort(oO):[W];fe=fe.map(ie=>ie==null?h:Vi(ie,h,p));const H=d===!0&&E!==null?[...Array(Math.floor((p-h)/E)+1)].map((ie,se)=>({value:h+E*se})):d||[],I=H.map(ie=>ie.value),{isFocusVisibleRef:ae,onBlur:be,onFocus:N,ref:Z}=q3(),[le,re]=x.useState(-1),z=x.useRef(null),F=Gh(Z,z),te=Gh(R,F),pe=ie=>se=>{var Te;const Ue=Number(se.currentTarget.getAttribute("data-index"));N(se),ae.current===!0&&re(Ue),O(Ue),ie==null||(Te=ie.onFocus)==null||Te.call(ie,se)},ce=ie=>se=>{var Te;be(se),ae.current===!1&&re(-1),O(-1),ie==null||(Te=ie.onBlur)==null||Te.call(ie,se)},xe=(ie,se)=>{const Te=Number(ie.currentTarget.getAttribute("data-index")),Ue=fe[Te],Ye=I.indexOf(Ue);let Be=se;if(H&&E==null){const Nt=I[I.length-1];Be>Nt?Be=Nt:Bese=>{var Te;if(E!==null){const Ue=Number(se.currentTarget.getAttribute("data-index")),Ye=fe[Ue];let Be=null;(se.key==="ArrowLeft"||se.key==="ArrowDown")&&se.shiftKey||se.key==="PageDown"?Be=Math.max(Ye-C,h):((se.key==="ArrowRight"||se.key==="ArrowUp")&&se.shiftKey||se.key==="PageUp")&&(Be=Math.min(Ye+C,p)),Be!==null&&(xe(se,Be),se.preventDefault())}ie==null||(Te=ie.onKeyDown)==null||Te.call(ie,se)};iO(()=>{if(l&&z.current.contains(document.activeElement)){var ie;(ie=document.activeElement)==null||ie.blur()}},[l]),l&&X!==-1&&A(-1),l&&le!==-1&&re(-1);const Ee=ie=>se=>{var Te;(Te=ie.onChange)==null||Te.call(ie,se),xe(se,se.target.valueAsNumber)},de=x.useRef(void 0);let ve=S;c&&S==="horizontal"&&(ve+="-reverse");const Oe=({finger:ie,move:se=!1})=>{const{current:Te}=z,{width:Ue,height:Ye,bottom:Be,left:Nt}=Te.getBoundingClientRect();let mt;ve.indexOf("vertical")===0?mt=(Be-ie.y)/Ye:mt=(ie.x-Nt)/Ue,ve.indexOf("-reverse")!==-1&&(mt=1-mt);let k;if(k=z4(mt,h,p),E)k=L4(k,E,h);else{const qe=Zb(I,k);k=I[qe]}k=Vi(k,h,p);let V=0;if(he){se?V=de.current:V=Zb(fe,k),u&&(k=Vi(k,fe[V-1]||-1/0,fe[V+1]||1/0));const qe=k;k=Ib({values:fe,newValue:k,index:V}),u&&se||(V=k.indexOf(qe),de.current=V)}return{newValue:k,activeIndex:V}},ye=wd(ie=>{const se=es(ie,B);if(!se)return;if(Y.current+=1,ie.type==="mousemove"&&ie.buttons===0){je(ie);return}const{newValue:Te,activeIndex:Ue}=Oe({finger:se,move:!0});ts({sliderRef:z,activeIndex:Ue,setActive:A}),oe(Te),!q&&Y.current>q4&&L(!0),ue&&!ns(Te,W)&&ue(ie,Te,Ue)}),je=wd(ie=>{const se=es(ie,B);if(L(!1),!se)return;const{newValue:Te}=Oe({finger:se,move:!0});A(-1),ie.type==="touchend"&&O(-1),g&&g(ie,Te),B.current=void 0,Fe()}),Me=wd(ie=>{if(l)return;Wb()||ie.preventDefault();const se=ie.changedTouches[0];se!=null&&(B.current=se.identifier);const Te=es(ie,B);if(Te!==!1){const{newValue:Ye,activeIndex:Be}=Oe({finger:Te});ts({sliderRef:z,activeIndex:Be,setActive:A}),oe(Ye),ue&&!ns(Ye,W)&&ue(ie,Ye,Be)}Y.current=0;const Ue=ms(z.current);Ue.addEventListener("touchmove",ye,{passive:!0}),Ue.addEventListener("touchend",je,{passive:!0})}),Fe=x.useCallback(()=>{const ie=ms(z.current);ie.removeEventListener("mousemove",ye),ie.removeEventListener("mouseup",je),ie.removeEventListener("touchmove",ye),ie.removeEventListener("touchend",je)},[je,ye]);x.useEffect(()=>{const{current:ie}=z;return ie.addEventListener("touchstart",Me,{passive:Wb()}),()=>{ie.removeEventListener("touchstart",Me),Fe()}},[Fe,Me]),x.useEffect(()=>{l&&Fe()},[l,Fe]);const Ht=ie=>se=>{var Te;if((Te=ie.onMouseDown)==null||Te.call(ie,se),l||se.defaultPrevented||se.button!==0)return;se.preventDefault();const Ue=es(se,B);if(Ue!==!1){const{newValue:Be,activeIndex:Nt}=Oe({finger:Ue});ts({sliderRef:z,activeIndex:Nt,setActive:A}),oe(Be),ue&&!ns(Be,W)&&ue(se,Be,Nt)}Y.current=0;const Ye=ms(z.current);Ye.addEventListener("mousemove",ye,{passive:!0}),Ye.addEventListener("mouseup",je)},ze=ws(he?fe[0]:h,h,p),Ze=ws(fe[fe.length-1],h,p)-ze,Gt=(ie={})=>{const se=gs(ie),Te={onMouseDown:Ht(se||{})},Ue=ge({},se,Te);return ge({},ie,{ref:te},Ue)},$t=ie=>se=>{var Te;(Te=ie.onMouseOver)==null||Te.call(ie,se);const Ue=Number(se.currentTarget.getAttribute("data-index"));O(Ue)},qt=ie=>se=>{var Te;(Te=ie.onMouseLeave)==null||Te.call(ie,se),O(-1)};return{active:X,axis:ve,axisProps:U4,dragging:q,focusedThumbIndex:le,getHiddenInputProps:(ie={})=>{var se;const Te=gs(ie),Ue={onChange:Ee(Te||{}),onFocus:pe(Te||{}),onBlur:ce(Te||{}),onKeyDown:me(Te||{})},Ye=ge({},Te,Ue);return ge({tabIndex:j,"aria-labelledby":r,"aria-orientation":S,"aria-valuemax":_(p),"aria-valuemin":_(h),name:y,type:"range",min:n.min,max:n.max,step:n.step===null&&n.marks?"any":(se=n.step)!=null?se:void 0,disabled:l},ie,Ye,{style:ge({},z3,{direction:c?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Gt,getThumbProps:(ie={})=>{const se=gs(ie),Te={onMouseOver:$t(se||{}),onMouseLeave:qt(se||{})};return ge({},ie,se,Te)},marks:H,open:$,range:he,rootRef:te,trackLeap:Ze,trackOffset:ze,values:fe,getThumbStyle:ie=>({pointerEvents:X!==-1&&X!==ie?"none":void 0})}}const Y4=n=>!n||!vo(n);function V4(n){return nO("MuiSlider",n)}const Gn=S3("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),P4=n=>{const{open:r}=n;return{offset:Oa(r&&Gn.valueLabelOpen),circle:Gn.valueLabelCircle,label:Gn.valueLabelLabel}};function X4(n){const{children:r,className:i,value:l}=n,u=P4(n);return r?x.cloneElement(r,{className:Oa(r.props.className)},T.jsxs(x.Fragment,{children:[r.props.children,T.jsx("span",{className:Oa(u.offset,i),"aria-hidden":!0,children:T.jsx("span",{className:u.circle,children:T.jsx("span",{className:u.label,children:l})})})]})):null}const Q4=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Jb(n){return n}const K4=Ia("span",{name:"MuiSlider",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,r[`color${Jn(i.color)}`],i.size!=="medium"&&r[`size${Jn(i.size)}`],i.marked&&r.marked,i.orientation==="vertical"&&r.vertical,i.track==="inverted"&&r.trackInverted,i.track===!1&&r.trackFalse]}})(({theme:n})=>{var r;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Gn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(n.vars||n).palette.grey[400]},[`&.${Gn.dragging}`]:{[`& .${Gn.thumb}, & .${Gn.track}`]:{transition:"none"}},variants:[...Object.keys(((r=n.vars)!=null?r:n).palette).filter(i=>{var l;return((l=n.vars)!=null?l:n).palette[i].main}).map(i=>({props:{color:i},style:{color:(n.vars||n).palette[i].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),F4=Ia("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(n,r)=>r.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Z4=Ia("span",{name:"MuiSlider",slot:"Track",overridesResolver:(n,r)=>r.track})(({theme:n})=>{var r;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:n.transitions.create(["left","width","bottom","height"],{duration:n.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((r=n.vars)!=null?r:n).palette).filter(i=>{var l;return((l=n.vars)!=null?l:n).palette[i].main}).map(i=>({props:{color:i,track:"inverted"},style:ge({},n.vars?{backgroundColor:n.vars.palette.Slider[`${i}Track`],borderColor:n.vars.palette.Slider[`${i}Track`]}:ge({backgroundColor:Hr.lighten(n.palette[i].main,.62),borderColor:Hr.lighten(n.palette[i].main,.62)},n.applyStyles("dark",{backgroundColor:Hr.darken(n.palette[i].main,.5)}),n.applyStyles("dark",{borderColor:Hr.darken(n.palette[i].main,.5)})))}))]}}),I4=Ia("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.thumb,r[`thumbColor${Jn(i.color)}`],i.size!=="medium"&&r[`thumbSize${Jn(i.size)}`]]}})(({theme:n})=>{var r;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:n.transitions.create(["box-shadow","left","bottom"],{duration:n.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(n.vars||n).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Gn.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((r=n.vars)!=null?r:n).palette).filter(i=>{var l;return((l=n.vars)!=null?l:n).palette[i].main}).map(i=>({props:{color:i},style:{[`&:hover, &.${Gn.focusVisible}`]:ge({},n.vars?{boxShadow:`0px 0px 0px 8px rgba(${n.vars.palette[i].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Hr.alpha(n.palette[i].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Gn.active}`]:ge({},n.vars?{boxShadow:`0px 0px 0px 14px rgba(${n.vars.palette[i].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Hr.alpha(n.palette[i].main,.16)}`})}}))]}}),W4=Ia(X4,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(n,r)=>r.valueLabel})(({theme:n})=>ge({zIndex:1,whiteSpace:"nowrap"},n.typography.body2,{fontWeight:500,transition:n.transitions.create(["transform"],{duration:n.transitions.duration.shortest}),position:"absolute",backgroundColor:(n.vars||n).palette.grey[600],borderRadius:2,color:(n.vars||n).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Gn.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Gn.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:n.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),J4=Ia("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:n=>Ny(n)&&n!=="markActive",overridesResolver:(n,r)=>{const{markActive:i}=n;return[r.mark,i&&r.markActive]}})(({theme:n})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(n.vars||n).palette.background.paper,opacity:.8}}]})),eM=Ia("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:n=>Ny(n)&&n!=="markLabelActive",overridesResolver:(n,r)=>r.markLabel})(({theme:n})=>ge({},n.typography.body2,{color:(n.vars||n).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(n.vars||n).palette.text.primary}}]})),tM=n=>{const{disabled:r,dragging:i,marked:l,orientation:u,track:c,classes:d,color:p,size:h}=n,y={root:["root",r&&"disabled",i&&"dragging",l&&"marked",u==="vertical"&&"vertical",c==="inverted"&&"trackInverted",c===!1&&"trackFalse",p&&`color${Jn(p)}`,h&&`size${Jn(h)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",r&&"disabled",h&&`thumbSize${Jn(h)}`,p&&`thumbColor${Jn(p)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return k3(y,V4,d)},nM=({children:n})=>n,rM=x.forwardRef(function(r,i){var l,u,c,d,p,h,y,m,g,S,R,_,E,C,j,M,B,X,A,$,O,q,L,Y;const W=B4({props:r,name:"MuiSlider"}),oe=V3(),{"aria-label":ue,"aria-valuetext":he,"aria-labelledby":fe,component:H="span",components:I={},componentsProps:ae={},color:be="primary",classes:N,className:Z,disableSwap:le=!1,disabled:re=!1,getAriaLabel:z,getAriaValueText:F,marks:te=!1,max:pe=100,min:ce=0,orientation:xe="horizontal",shiftStep:me=10,size:Ee="medium",step:de=1,scale:ve=Jb,slotProps:Oe,slots:ye,track:je="normal",valueLabelDisplay:Me="off",valueLabelFormat:Fe=Jb}=W,Ht=er(W,Q4),ze=ge({},W,{isRtl:oe,max:pe,min:ce,classes:N,disabled:re,disableSwap:le,orientation:xe,marks:te,color:be,size:Ee,step:de,shiftStep:me,scale:ve,track:je,valueLabelDisplay:Me,valueLabelFormat:Fe}),{axisProps:Ze,getRootProps:Gt,getHiddenInputProps:$t,getThumbProps:qt,open:An,active:_t,axis:rt,focusedThumbIndex:ie,range:se,dragging:Te,marks:Ue,values:Ye,trackOffset:Be,trackLeap:Nt,getThumbStyle:mt}=G4(ge({},ze,{rootRef:i}));ze.marked=Ue.length>0&&Ue.some(We=>We.label),ze.dragging=Te,ze.focusedThumbIndex=ie;const k=tM(ze),V=(l=(u=ye==null?void 0:ye.root)!=null?u:I.Root)!=null?l:K4,qe=(c=(d=ye==null?void 0:ye.rail)!=null?d:I.Rail)!=null?c:F4,Qe=(p=(h=ye==null?void 0:ye.track)!=null?h:I.Track)!=null?p:Z4,Ie=(y=(m=ye==null?void 0:ye.thumb)!=null?m:I.Thumb)!=null?y:I4,De=(g=(S=ye==null?void 0:ye.valueLabel)!=null?S:I.ValueLabel)!=null?g:W4,Yt=(R=(_=ye==null?void 0:ye.mark)!=null?_:I.Mark)!=null?R:J4,hn=(E=(C=ye==null?void 0:ye.markLabel)!=null?C:I.MarkLabel)!=null?E:eM,zt=(j=(M=ye==null?void 0:ye.input)!=null?M:I.Input)!=null?j:"input",nn=(B=Oe==null?void 0:Oe.root)!=null?B:ae.root,br=(X=Oe==null?void 0:Oe.rail)!=null?X:ae.rail,ln=(A=Oe==null?void 0:Oe.track)!=null?A:ae.track,Vt=($=Oe==null?void 0:Oe.thumb)!=null?$:ae.thumb,Zr=(O=Oe==null?void 0:Oe.valueLabel)!=null?O:ae.valueLabel,yn=(q=Oe==null?void 0:Oe.mark)!=null?q:ae.mark,At=(L=Oe==null?void 0:Oe.markLabel)!=null?L:ae.markLabel,St=(Y=Oe==null?void 0:Oe.input)!=null?Y:ae.input,Rn=ba({elementType:V,getSlotProps:Gt,externalSlotProps:nn,externalForwardedProps:Ht,additionalProps:ge({},Y4(V)&&{as:H}),ownerState:ge({},ze,nn==null?void 0:nn.ownerState),className:[k.root,Z]}),nr=ba({elementType:qe,externalSlotProps:br,ownerState:ze,className:k.rail}),Ra=ba({elementType:Qe,externalSlotProps:ln,additionalProps:{style:ge({},Ze[rt].offset(Be),Ze[rt].leap(Nt))},ownerState:ge({},ze,ln==null?void 0:ln.ownerState),className:k.track}),Sr=ba({elementType:Ie,getSlotProps:qt,externalSlotProps:Vt,ownerState:ge({},ze,Vt==null?void 0:Vt.ownerState),className:k.thumb}),wa=ba({elementType:De,externalSlotProps:Zr,ownerState:ge({},ze,Zr==null?void 0:Zr.ownerState),className:k.valueLabel}),wn=ba({elementType:Yt,externalSlotProps:yn,ownerState:ze,className:k.mark}),Qn=ba({elementType:hn,externalSlotProps:At,ownerState:ze,className:k.markLabel}),Kn=ba({elementType:zt,getSlotProps:$t,externalSlotProps:St,ownerState:ze});return T.jsxs(V,ge({},Rn,{children:[T.jsx(qe,ge({},nr)),T.jsx(Qe,ge({},Ra)),Ue.filter(We=>We.value>=ce&&We.value<=pe).map((We,pt)=>{const Cn=ws(We.value,ce,pe),ct=Ze[rt].offset(Cn);let kt;return je===!1?kt=Ye.indexOf(We.value)!==-1:kt=je==="normal"&&(se?We.value>=Ye[0]&&We.value<=Ye[Ye.length-1]:We.value<=Ye[0])||je==="inverted"&&(se?We.value<=Ye[0]||We.value>=Ye[Ye.length-1]:We.value>=Ye[0]),T.jsxs(x.Fragment,{children:[T.jsx(Yt,ge({"data-index":pt},wn,!vo(Yt)&&{markActive:kt},{style:ge({},ct,wn.style),className:Oa(wn.className,kt&&k.markActive)})),We.label!=null?T.jsx(hn,ge({"aria-hidden":!0,"data-index":pt},Qn,!vo(hn)&&{markLabelActive:kt},{style:ge({},ct,Qn.style),className:Oa(k.markLabel,Qn.className,kt&&k.markLabelActive),children:We.label})):null]},pt)}),Ye.map((We,pt)=>{const Cn=ws(We,ce,pe),ct=Ze[rt].offset(Cn),kt=Me==="off"?nM:De;return T.jsx(kt,ge({},!vo(kt)&&{valueLabelFormat:Fe,valueLabelDisplay:Me,value:typeof Fe=="function"?Fe(ve(We),pt):Fe,index:pt,open:An===pt||_t===pt||Me==="on",disabled:re},wa,{children:T.jsx(Ie,ge({"data-index":pt},Sr,{className:Oa(k.thumb,Sr.className,_t===pt&&k.active,ie===pt&&k.focusVisible),style:ge({},ct,mt(pt),Sr.style),children:T.jsx(zt,ge({"data-index":pt,"aria-label":z?z(pt):ue,"aria-valuenow":ve(We),"aria-labelledby":fe,"aria-valuetext":F?F(ve(We),pt):he,value:Ye[pt]},Kn))}))}),pt)})]}))});var Bd,e1;function uO(){if(e1)return Bd;e1=1;var n=Object.prototype.toString;return Bd=function(i){var l=n.call(i),u=l==="[object Arguments]";return u||(u=l!=="[object Array]"&&i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&n.call(i.callee)==="[object Function]"),u},Bd}var $d,t1;function aM(){if(t1)return $d;t1=1;var n;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,l=uO(),u=Object.prototype.propertyIsEnumerable,c=!u.call({toString:null},"toString"),d=u.call(function(){},"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(S){var R=S.constructor;return R&&R.prototype===S},y={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},m=function(){if(typeof window>"u")return!1;for(var S in window)try{if(!y["$"+S]&&r.call(window,S)&&window[S]!==null&&typeof window[S]=="object")try{h(window[S])}catch{return!0}}catch{return!0}return!1}(),g=function(S){if(typeof window>"u"||!m)return h(S);try{return h(S)}catch{return!1}};n=function(R){var _=R!==null&&typeof R=="object",E=i.call(R)==="[object Function]",C=l(R),j=_&&i.call(R)==="[object String]",M=[];if(!_&&!E&&!C)throw new TypeError("Object.keys called on a non-object");var B=d&&E;if(j&&R.length>0&&!r.call(R,0))for(var X=0;X0)for(var A=0;A3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,y=arguments.length>4?arguments[4]:null,m=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,S=!!l&&l(c,d);if(n)n(c,d,{configurable:m===null&&S?S.configurable:!m,enumerable:h===null&&S?S.enumerable:!h,value:p,writable:y===null&&S?S.writable:!y});else if(g||!h&&!y&&!m)c[d]=p;else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Gd}var Yd,s1;function By(){if(s1)return Yd;s1=1;var n=Is(),r=function(){return!!n};return r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},Yd=r,Yd}var Vd,c1;function Ja(){if(c1)return Vd;c1=1;var n=My(),r=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,l=Array.prototype.concat,u=jy(),c=function(y){return typeof y=="function"&&i.call(y)==="[object Function]"},d=By()(),p=function(y,m,g,S){if(m in y){if(S===!0){if(y[m]===g)return}else if(!c(S)||!S())return}d?u(y,m,g,!0):u(y,m,g)},h=function(y,m){var g=arguments.length>2?arguments[2]:{},S=n(m);r&&(S=l.call(S,Object.getOwnPropertySymbols(m)));for(var R=0;R"u"||!O?n:O(Uint8Array),he={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":$&&O?O([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":oe,"%AsyncGenerator%":oe,"%AsyncGeneratorFunction%":oe,"%AsyncIteratorPrototype%":oe,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":oe,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$&&O?O(O([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$||!O?n:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":M,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":u,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$||!O?n:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$&&O?O(""[Symbol.iterator]()):n,"%Symbol%":$?Symbol:n,"%SyntaxError%":d,"%ThrowTypeError%":A,"%TypedArray%":ue,"%TypeError%":p,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":W,"%Function.prototype.apply%":Y,"%Object.defineProperty%":B,"%Object.getPrototypeOf%":q,"%Math.abs%":y,"%Math.floor%":m,"%Math.max%":g,"%Math.min%":S,"%Math.pow%":R,"%Math.round%":_,"%Math.sign%":E,"%Reflect.getPrototypeOf%":L};if(O)try{null.error}catch(xe){var fe=O(O(xe));he["%Error.prototype%"]=fe}var H=function xe(me){var Ee;if(me==="%AsyncFunction%")Ee=j("async function () {}");else if(me==="%GeneratorFunction%")Ee=j("function* () {}");else if(me==="%AsyncGeneratorFunction%")Ee=j("async function* () {}");else if(me==="%AsyncGenerator%"){var de=xe("%AsyncGeneratorFunction%");de&&(Ee=de.prototype)}else if(me==="%AsyncIteratorPrototype%"){var ve=xe("%AsyncGenerator%");ve&&O&&(Ee=O(ve.prototype))}return he[me]=Ee,Ee},I={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ae=ko(),be=Hy(),N=ae.call(W,Array.prototype.concat),Z=ae.call(Y,Array.prototype.splice),le=ae.call(W,String.prototype.replace),re=ae.call(W,String.prototype.slice),z=ae.call(W,RegExp.prototype.exec),F=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,pe=function(me){var Ee=re(me,0,1),de=re(me,-1);if(Ee==="%"&&de!=="%")throw new d("invalid intrinsic syntax, expected closing `%`");if(de==="%"&&Ee!=="%")throw new d("invalid intrinsic syntax, expected opening `%`");var ve=[];return le(me,F,function(Oe,ye,je,Me){ve[ve.length]=je?le(Me,te,"$1"):ye||Oe}),ve},ce=function(me,Ee){var de=me,ve;if(be(I,de)&&(ve=I[de],de="%"+ve[0]+"%"),be(he,de)){var Oe=he[de];if(Oe===oe&&(Oe=H(de)),typeof Oe>"u"&&!Ee)throw new p("intrinsic "+me+" exists, but is not available. Please file an issue!");return{alias:ve,name:de,value:Oe}}throw new d("intrinsic "+me+" does not exist!")};return Sp=function(me,Ee){if(typeof me!="string"||me.length===0)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ee!="boolean")throw new p('"allowMissing" argument must be a boolean');if(z(/^%?[^%]*%?$/,me)===null)throw new d("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var de=pe(me),ve=de.length>0?de[0]:"",Oe=ce("%"+ve+"%",Ee),ye=Oe.name,je=Oe.value,Me=!1,Fe=Oe.alias;Fe&&(ve=Fe[0],Z(de,N([0,1],Fe)));for(var Ht=1,ze=!0;Ht=de.length){var qt=M(je,Ze);ze=!!qt,ze&&"get"in qt&&!("originalValue"in qt.get)?je=qt.get:je=je[Ze]}else ze=be(je,Ze),je=je[Ze];ze&&!Me&&(he[ye]=je)}}return je},Sp}var xp,U1;function xM(){if(U1)return xp;U1=1;var n=Fr(),r=jy(),i=By()(),l=Wa(),u=Xn(),c=n("%Math.floor%");return xp=function(p,h){if(typeof p!="function")throw new u("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||c(h)!==h)throw new u("`length` must be a positive 32-bit integer");var y=arguments.length>2&&!!arguments[2],m=!0,g=!0;if("length"in p&&l){var S=l(p,"length");S&&!S.configurable&&(m=!1),S&&!S.writable&&(g=!1)}return(m||g||!y)&&(i?r(p,"length",h,!0,!0):r(p,"length",h)),p},xp}var Ep,H1;function EM(){if(H1)return Ep;H1=1;var n=ko(),r=ky(),i=dO();return Ep=function(){return i(n,r,arguments)},Ep}var G1;function il(){return G1||(G1=1,function(n){var r=xM(),i=Is(),l=Ly(),u=EM();n.exports=function(d){var p=l(arguments),h=d.length-(arguments.length-1);return r(p,1+(h>0?h:0),!0)},i?i(n.exports,"apply",{value:u}):n.exports.apply=u}(Pd)),Pd.exports}var Op,Y1;function tn(){if(Y1)return Op;Y1=1;var n=Fr(),r=Ly(),i=r([n("%String.prototype.indexOf%")]);return Op=function(u,c){var d=n(u,!!c);return typeof d=="function"&&i(u,".prototype.")>-1?r([d]):d},Op}var Tp,V1;function pO(){if(V1)return Tp;V1=1;var n=My(),r=Ws()(),i=tn(),l=$y(),u=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),d=r?l.getOwnPropertySymbols:null;return Tp=function(h,y){if(h==null)throw new TypeError("target must be an object");var m=l(h);if(arguments.length===1)return m;for(var g=1;g-1?r(d):d},wp}var Cp,F1;function _M(){if(F1)return Cp;F1=1;var n=function(){return typeof(function(){}).name=="string"},r=Object.getOwnPropertyDescriptor;if(r)try{r([],"length")}catch{r=null}n.functionsHaveConfigurableNames=function(){if(!n()||!r)return!1;var u=r(function(){},"name");return!!u&&!!u.configurable};var i=Function.prototype.bind;return n.boundFunctionsHaveNames=function(){return n()&&typeof i=="function"&&(function(){}).bind().name!==""},Cp=n,Cp}var Np,Z1;function AM(){if(Z1)return Np;Z1=1;var n=jy(),r=By()(),i=_M().functionsHaveConfigurableNames(),l=Xn();return Np=function(c,d){if(typeof c!="function")throw new l("`fn` is not a function");var p=arguments.length>2&&!!arguments[2];return(!p||i)&&(r?n(c,"name",d,!0,!0):n(c,"name",d)),c},Np}var Mp,I1;function vO(){if(I1)return Mp;I1=1;var n=AM(),r=Xn(),i=Object;return Mp=n(function(){if(this==null||this!==i(this))throw new r("RegExp.prototype.flags getter called on non-object");var u="";return this.hasIndices&&(u+="d"),this.global&&(u+="g"),this.ignoreCase&&(u+="i"),this.multiline&&(u+="m"),this.dotAll&&(u+="s"),this.unicode&&(u+="u"),this.unicodeSets&&(u+="v"),this.sticky&&(u+="y"),u},"get flags",!0),Mp}var Dp,W1;function mO(){if(W1)return Dp;W1=1;var n=vO(),r=Ja().supportsDescriptors,i=Object.getOwnPropertyDescriptor;return Dp=function(){if(r&&/a/mig.flags==="gim"){var u=i(RegExp.prototype,"flags");if(u&&typeof u.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var c="",d={};if(Object.defineProperty(d,"hasIndices",{get:function(){c+="d"}}),Object.defineProperty(d,"sticky",{get:function(){c+="y"}}),u.get.call(d),c==="dy")return u.get}}return n},Dp}var jp,J1;function RM(){if(J1)return jp;J1=1;var n=Ja().supportsDescriptors,r=mO(),i=Wa(),l=Object.defineProperty,u=sO(),c=Uy(),d=/a/;return jp=function(){if(!n||!c)throw new u("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var h=r(),y=c(d),m=i(y,"flags");return(!m||m.get!==h)&&l(y,"flags",{configurable:!0,enumerable:!1,get:h}),h},jp}var Bp,eS;function wM(){if(eS)return Bp;eS=1;var n=Ja(),r=il(),i=vO(),l=mO(),u=RM(),c=r(l());return n(c,{getPolyfill:l,implementation:i,shim:u}),Bp=c,Bp}var ao={exports:{}},$p,tS;function ei(){if(tS)return $p;tS=1;var n=Ws();return $p=function(){return n()&&!!Symbol.toStringTag},$p}var qp,nS;function gO(){if(nS)return qp;nS=1;var n=ei()(),r=tn(),i=r("Object.prototype.toString"),l=function(p){return n&&p&&typeof p=="object"&&Symbol.toStringTag in p?!1:i(p)==="[object Arguments]"},u=function(p){return l(p)?!0:p!==null&&typeof p=="object"&&"length"in p&&typeof p.length=="number"&&p.length>=0&&i(p)!=="[object Array]"&&"callee"in p&&i(p.callee)==="[object Function]"},c=function(){return l(arguments)}();return l.isLegacyArguments=u,qp=c?l:u,qp}const CM={},NM=Object.freeze(Object.defineProperty({__proto__:null,default:CM},Symbol.toStringTag,{value:"Module"})),MM=Qr(NM);var zp,rS;function Js(){if(rS)return zp;rS=1;var n=typeof Map=="function"&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&r&&typeof r.get=="function"?r.get:null,l=n&&Map.prototype.forEach,u=typeof Set=="function"&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,d=u&&c&&typeof c.get=="function"?c.get:null,p=u&&Set.prototype.forEach,h=typeof WeakMap=="function"&&WeakMap.prototype,y=h?WeakMap.prototype.has:null,m=typeof WeakSet=="function"&&WeakSet.prototype,g=m?WeakSet.prototype.has:null,S=typeof WeakRef=="function"&&WeakRef.prototype,R=S?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,E=Object.prototype.toString,C=Function.prototype.toString,j=String.prototype.match,M=String.prototype.slice,B=String.prototype.replace,X=String.prototype.toUpperCase,A=String.prototype.toLowerCase,$=RegExp.prototype.test,O=Array.prototype.concat,q=Array.prototype.join,L=Array.prototype.slice,Y=Math.floor,W=typeof BigInt=="function"?BigInt.prototype.valueOf:null,oe=Object.getOwnPropertySymbols,ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,he=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===he||!0)?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,I=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(k){return k.__proto__}:null);function ae(k,V){if(k===1/0||k===-1/0||k!==k||k&&k>-1e3&&k<1e3||$.call(/e/,V))return V;var qe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof k=="number"){var Qe=k<0?-Y(-k):Y(k);if(Qe!==k){var Ie=String(Qe),De=M.call(V,Ie.length+1);return B.call(Ie,qe,"$&_")+"."+B.call(B.call(De,/([0-9]{3})/g,"$&_"),/_$/,"")}}return B.call(V,qe,"$&_")}var be=MM,N=be.custom,Z=Oe(N)?N:null,le={__proto__:null,double:'"',single:"'"},re={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};zp=function k(V,qe,Qe,Ie){var De=qe||{};if(Me(De,"quoteStyle")&&!Me(le,De.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Me(De,"maxStringLength")&&(typeof De.maxStringLength=="number"?De.maxStringLength<0&&De.maxStringLength!==1/0:De.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Yt=Me(De,"customInspect")?De.customInspect:!0;if(typeof Yt!="boolean"&&Yt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Me(De,"indent")&&De.indent!==null&&De.indent!==" "&&!(parseInt(De.indent,10)===De.indent&&De.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Me(De,"numericSeparator")&&typeof De.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var hn=De.numericSeparator;if(typeof V>"u")return"undefined";if(V===null)return"null";if(typeof V=="boolean")return V?"true":"false";if(typeof V=="string")return rt(V,De);if(typeof V=="number"){if(V===0)return 1/0/V>0?"0":"-0";var zt=String(V);return hn?ae(V,zt):zt}if(typeof V=="bigint"){var nn=String(V)+"n";return hn?ae(V,nn):nn}var br=typeof De.depth>"u"?5:De.depth;if(typeof Qe>"u"&&(Qe=0),Qe>=br&&br>0&&typeof V=="object")return pe(V)?"[Array]":"[Object]";var ln=Be(De,Qe);if(typeof Ie>"u")Ie=[];else if(ze(Ie,V)>=0)return"[Circular]";function Vt(kt,Ca,xr){if(Ca&&(Ie=L.call(Ie),Ie.push(Ca)),xr){var Er={depth:De.depth};return Me(De,"quoteStyle")&&(Er.quoteStyle=De.quoteStyle),k(kt,Er,Qe+1,Ie)}return k(kt,De,Qe+1,Ie)}if(typeof V=="function"&&!xe(V)){var Zr=Ht(V),yn=mt(V,Vt);return"[Function"+(Zr?": "+Zr:" (anonymous)")+"]"+(yn.length>0?" { "+q.call(yn,", ")+" }":"")}if(Oe(V)){var At=he?B.call(String(V),/^(Symbol\(.*\))_[^)]*$/,"$1"):ue.call(V);return typeof V=="object"&&!he?se(At):At}if(_t(V)){for(var St="<"+A.call(String(V.nodeName)),Rn=V.attributes||[],nr=0;nr",St}if(pe(V)){if(V.length===0)return"[]";var Ra=mt(V,Vt);return ln&&!Ye(Ra)?"["+Nt(Ra,ln)+"]":"[ "+q.call(Ra,", ")+" ]"}if(me(V)){var Sr=mt(V,Vt);return!("cause"in Error.prototype)&&"cause"in V&&!H.call(V,"cause")?"{ ["+String(V)+"] "+q.call(O.call("[cause]: "+Vt(V.cause),Sr),", ")+" }":Sr.length===0?"["+String(V)+"]":"{ ["+String(V)+"] "+q.call(Sr,", ")+" }"}if(typeof V=="object"&&Yt){if(Z&&typeof V[Z]=="function"&&be)return be(V,{depth:br-Qe});if(Yt!=="symbol"&&typeof V.inspect=="function")return V.inspect()}if(Ze(V)){var wa=[];return l&&l.call(V,function(kt,Ca){wa.push(Vt(Ca,V,!0)+" => "+Vt(kt,V))}),Ue("Map",i.call(V),wa,ln)}if(qt(V)){var wn=[];return p&&p.call(V,function(kt){wn.push(Vt(kt,V))}),Ue("Set",d.call(V),wn,ln)}if(Gt(V))return Te("WeakMap");if(An(V))return Te("WeakSet");if($t(V))return Te("WeakRef");if(de(V))return se(Vt(Number(V)));if(ye(V))return se(Vt(W.call(V)));if(ve(V))return se(_.call(V));if(Ee(V))return se(Vt(String(V)));if(typeof window<"u"&&V===window)return"{ [object Window] }";if(typeof globalThis<"u"&&V===globalThis||typeof bs<"u"&&V===bs)return"{ [object globalThis] }";if(!ce(V)&&!xe(V)){var Qn=mt(V,Vt),Kn=I?I(V)===Object.prototype:V instanceof Object||V.constructor===Object,We=V instanceof Object?"":"null prototype",pt=!Kn&&fe&&Object(V)===V&&fe in V?M.call(Fe(V),8,-1):We?"Object":"",Cn=Kn||typeof V.constructor!="function"?"":V.constructor.name?V.constructor.name+" ":"",ct=Cn+(pt||We?"["+q.call(O.call([],pt||[],We||[]),": ")+"] ":"");return Qn.length===0?ct+"{}":ln?ct+"{"+Nt(Qn,ln)+"}":ct+"{ "+q.call(Qn,", ")+" }"}return String(V)};function z(k,V,qe){var Qe=qe.quoteStyle||V,Ie=le[Qe];return Ie+k+Ie}function F(k){return B.call(String(k),/"/g,""")}function te(k){return!fe||!(typeof k=="object"&&(fe in k||typeof k[fe]<"u"))}function pe(k){return Fe(k)==="[object Array]"&&te(k)}function ce(k){return Fe(k)==="[object Date]"&&te(k)}function xe(k){return Fe(k)==="[object RegExp]"&&te(k)}function me(k){return Fe(k)==="[object Error]"&&te(k)}function Ee(k){return Fe(k)==="[object String]"&&te(k)}function de(k){return Fe(k)==="[object Number]"&&te(k)}function ve(k){return Fe(k)==="[object Boolean]"&&te(k)}function Oe(k){if(he)return k&&typeof k=="object"&&k instanceof Symbol;if(typeof k=="symbol")return!0;if(!k||typeof k!="object"||!ue)return!1;try{return ue.call(k),!0}catch{}return!1}function ye(k){if(!k||typeof k!="object"||!W)return!1;try{return W.call(k),!0}catch{}return!1}var je=Object.prototype.hasOwnProperty||function(k){return k in this};function Me(k,V){return je.call(k,V)}function Fe(k){return E.call(k)}function Ht(k){if(k.name)return k.name;var V=j.call(C.call(k),/^function\s*([\w$]+)/);return V?V[1]:null}function ze(k,V){if(k.indexOf)return k.indexOf(V);for(var qe=0,Qe=k.length;qeV.maxStringLength){var qe=k.length-V.maxStringLength,Qe="... "+qe+" more character"+(qe>1?"s":"");return rt(M.call(k,0,V.maxStringLength),V)+Qe}var Ie=re[V.quoteStyle||"single"];Ie.lastIndex=0;var De=B.call(B.call(k,Ie,"\\$1"),/[\x00-\x1f]/g,ie);return z(De,"single",V)}function ie(k){var V=k.charCodeAt(0),qe={8:"b",9:"t",10:"n",12:"f",13:"r"}[V];return qe?"\\"+qe:"\\x"+(V<16?"0":"")+X.call(V.toString(16))}function se(k){return"Object("+k+")"}function Te(k){return k+" { ? }"}function Ue(k,V,qe,Qe){var Ie=Qe?Nt(qe,Qe):q.call(qe,", ");return k+" ("+V+") {"+Ie+"}"}function Ye(k){for(var V=0;V=0)return!1;return!0}function Be(k,V){var qe;if(k.indent===" ")qe=" ";else if(typeof k.indent=="number"&&k.indent>0)qe=q.call(Array(k.indent+1)," ");else return null;return{base:qe,prev:q.call(Array(V+1),qe)}}function Nt(k,V){if(k.length===0)return"";var qe=` -`+V.prev+V.base;return qe+q.call(k,","+qe)+` -`+V.prev}function mt(k,V){var qe=pe(k),Qe=[];if(qe){Qe.length=k.length;for(var Ie=0;Ie=W)return Y+1;var oe=m(L,Y);if(oe<55296||oe>56319)return Y+1;var ue=m(L,Y+1);return ue<56320||ue>57343?Y+1:Y+2},R=function(L){var Y=0;return{next:function(){var oe=Y>=L.length,ue;return oe||(ue=L[Y],Y+=1),{done:oe,value:ue}}}},_=function(L,Y){if(l(L)||n(L))return R(L);if(u(L)){var W=0;return{next:function(){var ue=S(L,W),he=g(L,W,ue);return W=ue,{done:ue>L.length,value:he}}}}if(Y&&typeof L["_es6-shim iterator_"]<"u")return L["_es6-shim iterator_"]()};if(!d&&!p)ao.exports=function(L){if(L!=null)return _(L,!0)};else{var E=OO(),C=TO(),j=h("Map.prototype.forEach",!0),M=h("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var B=h("Map.prototype.iterator",!0),X=h("Set.prototype.iterator",!0);var A=h("Map.prototype.@@iterator",!0)||h("Map.prototype._es6-shim iterator_",!0),$=h("Set.prototype.@@iterator",!0)||h("Set.prototype._es6-shim iterator_",!0),O=function(L){if(E(L)){if(B)return r(B(L));if(A)return A(L);if(j){var Y=[];return j(L,function(oe,ue){y(Y,[ue,oe])}),R(Y)}}if(C(L)){if(X)return r(X(L));if($)return $(L);if(M){var W=[];return M(L,function(oe){y(W,oe)}),R(W)}}};ao.exports=function(L){return O(L)||_(L)}}}return ao.exports}var Kp,yS;function _O(){if(yS)return Kp;yS=1;var n=function(r){return r!==r};return Kp=function(i,l){return i===0&&l===0?1/i===1/l:!!(i===l||n(i)&&n(l))},Kp}var Fp,vS;function AO(){if(vS)return Fp;vS=1;var n=_O();return Fp=function(){return typeof Object.is=="function"?Object.is:n},Fp}var Zp,mS;function zM(){if(mS)return Zp;mS=1;var n=AO(),r=Ja();return Zp=function(){var l=n();return r(Object,{is:l},{is:function(){return Object.is!==l}}),l},Zp}var Ip,gS;function kM(){if(gS)return Ip;gS=1;var n=Ja(),r=il(),i=_O(),l=AO(),u=zM(),c=r(l(),Object);return n(c,{getPolyfill:l,implementation:i,shim:u}),Ip=c,Ip}var Wp,bS;function RO(){if(bS)return Wp;bS=1;var n=il(),r=tn(),i=Fr(),l=i("%ArrayBuffer%",!0),u=r("ArrayBuffer.prototype.byteLength",!0),c=r("Object.prototype.toString"),d=!!l&&!u&&new l(0).slice,p=!!d&&n(d);return Wp=u||p?function(y){if(!y||typeof y!="object")return!1;try{return u?u(y):p(y,0),!0}catch{return!1}}:l?function(y){return c(y)==="[object ArrayBuffer]"}:function(y){return!1},Wp}var Jp,SS;function LM(){if(SS)return Jp;SS=1;var n=tn(),r=n("Date.prototype.getDay"),i=function(p){try{return r(p),!0}catch{return!1}},l=n("Object.prototype.toString"),u="[object Date]",c=ei()();return Jp=function(p){return typeof p!="object"||p===null?!1:c?i(p):l(p)===u},Jp}var eh,xS;function wO(){if(xS)return eh;xS=1;var n=tn(),r=ei()(),i=Hy(),l=Wa(),u;if(r){var c=n("RegExp.prototype.exec"),d={},p=function(){throw d},h={toString:p,valueOf:p};typeof Symbol.toPrimitive=="symbol"&&(h[Symbol.toPrimitive]=p),u=function(S){if(!S||typeof S!="object")return!1;var R=l(S,"lastIndex"),_=R&&i(R,"value");if(!_)return!1;try{c(S,h)}catch(E){return E===d}}}else{var y=n("Object.prototype.toString"),m="[object RegExp]";u=function(S){return!S||typeof S!="object"&&typeof S!="function"?!1:y(S)===m}}return eh=u,eh}var th,ES;function UM(){if(ES)return th;ES=1;var n=tn(),r=n("SharedArrayBuffer.prototype.byteLength",!0);return th=r?function(l){if(!l||typeof l!="object")return!1;try{return r(l),!0}catch{return!1}}:function(l){return!1},th}var nh,OS;function HM(){if(OS)return nh;OS=1;var n=tn(),r=n("Number.prototype.toString"),i=function(p){try{return r(p),!0}catch{return!1}},l=n("Object.prototype.toString"),u="[object Number]",c=ei()();return nh=function(p){return typeof p=="number"?!0:!p||typeof p!="object"?!1:c?i(p):l(p)===u},nh}var rh,TS;function GM(){if(TS)return rh;TS=1;var n=tn(),r=n("Boolean.prototype.toString"),i=n("Object.prototype.toString"),l=function(p){try{return r(p),!0}catch{return!1}},u="[object Boolean]",c=ei()();return rh=function(p){return typeof p=="boolean"?!0:p===null||typeof p!="object"?!1:c?l(p):i(p)===u},rh}var as={exports:{}},ah,_S;function YM(){if(_S)return ah;_S=1;var n=tn(),r=wO(),i=n("RegExp.prototype.exec"),l=Xn();return ah=function(c){if(!r(c))throw new l("`regex` must be a RegExp");return function(p){return i(c,p)!==null}},ah}var AS;function VM(){if(AS)return as.exports;AS=1;var n=tn(),r=n("Object.prototype.toString"),i=qy()(),l=YM();if(i){var u=n("Symbol.prototype.toString"),c=l(/^Symbol\(.*\)$/),d=function(h){return typeof h.valueOf()!="symbol"?!1:c(u(h))};as.exports=function(h){if(typeof h=="symbol")return!0;if(!h||typeof h!="object"||r(h)!=="[object Symbol]")return!1;try{return d(h)}catch{return!1}}}else as.exports=function(h){return!1};return as.exports}var is={exports:{}},ih,RS;function PM(){if(RS)return ih;RS=1;var n=typeof BigInt<"u"&&BigInt;return ih=function(){return typeof n=="function"&&typeof BigInt=="function"&&typeof n(42)=="bigint"&&typeof BigInt(42)=="bigint"},ih}var wS;function XM(){if(wS)return is.exports;wS=1;var n=PM()();if(n){var r=BigInt.prototype.valueOf,i=function(u){try{return r.call(u),!0}catch{}return!1};is.exports=function(u){return u===null||typeof u>"u"||typeof u=="boolean"||typeof u=="string"||typeof u=="number"||typeof u=="symbol"||typeof u=="function"?!1:typeof u=="bigint"?!0:i(u)}}else is.exports=function(u){return!1};return is.exports}var lh,CS;function QM(){if(CS)return lh;CS=1;var n=EO(),r=HM(),i=GM(),l=VM(),u=XM();return lh=function(d){if(d==null||typeof d!="object"&&typeof d!="function")return null;if(n(d))return"String";if(r(d))return"Number";if(i(d))return"Boolean";if(l(d))return"Symbol";if(u(d))return"BigInt"},lh}var oh,NS;function KM(){if(NS)return oh;NS=1;var n=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,r=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,i;n||(i=function(d){return!1});var l=n?n.prototype.has:null,u=r?r.prototype.has:null;return!i&&!l&&(i=function(d){return!1}),oh=i||function(d){if(!d||typeof d!="object")return!1;try{if(l.call(d,l),u)try{u.call(d,u)}catch{return!0}return d instanceof n}catch{}return!1},oh}var ls={exports:{}},MS;function FM(){if(MS)return ls.exports;MS=1;var n=Fr(),r=tn(),i=n("%WeakSet%",!0),l=r("WeakSet.prototype.has",!0);if(l){var u=r("WeakMap.prototype.has",!0);ls.exports=function(d){if(!d||typeof d!="object")return!1;try{if(l(d,l),u)try{u(d,u)}catch{return!0}return d instanceof i}catch{}return!1}}else ls.exports=function(d){return!1};return ls.exports}var uh,DS;function ZM(){if(DS)return uh;DS=1;var n=OO(),r=TO(),i=KM(),l=FM();return uh=function(c){if(c&&typeof c=="object"){if(n(c))return"Map";if(r(c))return"Set";if(i(c))return"WeakMap";if(l(c))return"WeakSet"}return!1},uh}var sh,jS;function IM(){if(jS)return sh;jS=1;var n=Function.prototype.toString,r=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,i,l;if(typeof r=="function"&&typeof Object.defineProperty=="function")try{i=Object.defineProperty({},"length",{get:function(){throw l}}),l={},r(function(){throw 42},null,i)}catch(M){M!==l&&(r=null)}else r=null;var u=/^\s*class\b/,c=function(B){try{var X=n.call(B);return u.test(X)}catch{return!1}},d=function(B){try{return c(B)?!1:(n.call(B),!0)}catch{return!1}},p=Object.prototype.toString,h="[object Object]",y="[object Function]",m="[object GeneratorFunction]",g="[object HTMLAllCollection]",S="[object HTML document.all class]",R="[object HTMLCollection]",_=typeof Symbol=="function"&&!!Symbol.toStringTag,E=!(0 in[,]),C=function(){return!1};if(typeof document=="object"){var j=document.all;p.call(j)===p.call(document.all)&&(C=function(B){if((E||!B)&&(typeof B>"u"||typeof B=="object"))try{var X=p.call(B);return(X===g||X===S||X===R||X===h)&&B("")==null}catch{}return!1})}return sh=r?function(B){if(C(B))return!0;if(!B||typeof B!="function"&&typeof B!="object")return!1;try{r(B,null,i)}catch(X){if(X!==l)return!1}return!c(B)&&d(B)}:function(B){if(C(B))return!0;if(!B||typeof B!="function"&&typeof B!="object")return!1;if(_)return d(B);if(c(B))return!1;var X=p.call(B);return X!==y&&X!==m&&!/^\[object HTML/.test(X)?!1:d(B)},sh}var ch,BS;function WM(){if(BS)return ch;BS=1;var n=IM(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,l=function(h,y,m){for(var g=0,S=h.length;g=3&&(g=m),d(h)?l(h,y,g):typeof h=="string"?u(h,y,g):c(h,y,g)},ch}var fh,$S;function JM(){return $S||($S=1,fh=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),fh}var dh,qS;function e5(){if(qS)return dh;qS=1;var n=JM(),r=typeof globalThis>"u"?bs:globalThis;return dh=function(){for(var l=[],u=0;u"u"?bs:globalThis,y=r(),m=l("String.prototype.slice"),g=l("Array.prototype.indexOf",!0)||function(C,j){for(var M=0;M-1?j:j!=="Object"?!1:_(C)}return u?R(C):null},ph}var hh,kS;function n5(){if(kS)return hh;kS=1;var n=tn(),r=n("ArrayBuffer.prototype.byteLength",!0),i=RO();return hh=function(u){return i(u)?r?r(u):u.byteLength:NaN},hh}var yh,LS;function r5(){if(LS)return yh;LS=1;var n=TM(),r=yO(),i=wM(),l=Fr(),u=qM(),c=SO(),d=kM(),p=gO(),h=xO(),y=RO(),m=LM(),g=wO(),S=UM(),R=My(),_=QM(),E=ZM(),C=t5(),j=n5(),M=r("SharedArrayBuffer.prototype.byteLength",!0),B=r("Date.prototype.getTime"),X=Object.getPrototypeOf,A=r("Object.prototype.toString"),$=l("%Set%",!0),O=r("Map.prototype.has",!0),q=r("Map.prototype.get",!0),L=r("Map.prototype.size",!0),Y=r("Set.prototype.add",!0),W=r("Set.prototype.delete",!0),oe=r("Set.prototype.has",!0),ue=r("Set.prototype.size",!0);function he(z,F,te,pe){for(var ce=u(z),xe;(xe=ce.next())&&!xe.done;)if(be(F,xe.value,te,pe))return W(z,xe.value),!0;return!1}function fe(z){if(typeof z>"u")return null;if(typeof z!="object")return typeof z=="symbol"?!1:typeof z=="string"||typeof z=="number"?+z==+z:!0}function H(z,F,te,pe,ce,xe){var me=fe(te);if(me!=null)return me;var Ee=q(F,me),de=n({},ce,{strict:!1});return typeof Ee>"u"&&!O(F,me)||!be(pe,Ee,de,xe)?!1:!O(z,me)&&be(pe,Ee,de,xe)}function I(z,F,te){var pe=fe(te);return pe??(oe(F,pe)&&!oe(z,pe))}function ae(z,F,te,pe,ce,xe){for(var me=u(z),Ee,de;(Ee=me.next())&&!Ee.done;)if(de=Ee.value,be(te,de,ce,xe)&&be(pe,q(F,de),ce,xe))return W(z,de),!0;return!1}function be(z,F,te,pe){var ce=te||{};if(ce.strict?d(z,F):z===F)return!0;var xe=_(z),me=_(F);if(xe!==me)return!1;if(!z||!F||typeof z!="object"&&typeof F!="object")return ce.strict?d(z,F):z==F;var Ee=pe.has(z),de=pe.has(F),ve;if(Ee&&de){if(pe.get(z)===pe.get(F))return!0}else ve={};return Ee||pe.set(z,ve),de||pe.set(F,ve),re(z,F,ce,pe)}function N(z){return!z||typeof z!="object"||typeof z.length!="number"||typeof z.copy!="function"||typeof z.slice!="function"||z.length>0&&typeof z[0]!="number"?!1:!!(z.constructor&&z.constructor.isBuffer&&z.constructor.isBuffer(z))}function Z(z,F,te,pe){if(ue(z)!==ue(F))return!1;for(var ce=u(z),xe=u(F),me,Ee,de;(me=ce.next())&&!me.done;)if(me.value&&typeof me.value=="object")de||(de=new $),Y(de,me.value);else if(!oe(F,me.value)){if(te.strict||!I(z,F,me.value))return!1;de||(de=new $),Y(de,me.value)}if(de){for(;(Ee=xe.next())&&!Ee.done;)if(Ee.value&&typeof Ee.value=="object"){if(!he(de,Ee.value,te.strict,pe))return!1}else if(!te.strict&&!oe(z,Ee.value)&&!he(de,Ee.value,te.strict,pe))return!1;return ue(de)===0}return!0}function le(z,F,te,pe){if(L(z)!==L(F))return!1;for(var ce=u(z),xe=u(F),me,Ee,de,ve,Oe,ye;(me=ce.next())&&!me.done;)if(ve=me.value[0],Oe=me.value[1],ve&&typeof ve=="object")de||(de=new $),Y(de,ve);else if(ye=q(F,ve),typeof ye>"u"&&!O(F,ve)||!be(Oe,ye,te,pe)){if(te.strict||!H(z,F,ve,Oe,te,pe))return!1;de||(de=new $),Y(de,ve)}if(de){for(;(Ee=xe.next())&&!Ee.done;)if(ve=Ee.value[0],ye=Ee.value[1],ve&&typeof ve=="object"){if(!ae(de,z,ve,ye,te,pe))return!1}else if(!te.strict&&(!z.has(ve)||!be(q(z,ve),ye,te,pe))&&!ae(de,z,ve,ye,n({},te,{strict:!1}),pe))return!1;return ue(de)===0}return!0}function re(z,F,te,pe){var ce,xe;if(typeof z!=typeof F||z==null||F==null||A(z)!==A(F)||p(z)!==p(F))return!1;var me=h(z),Ee=h(F);if(me!==Ee)return!1;var de=z instanceof Error,ve=F instanceof Error;if(de!==ve||(de||ve)&&(z.name!==F.name||z.message!==F.message))return!1;var Oe=g(z),ye=g(F);if(Oe!==ye||(Oe||ye)&&(z.source!==F.source||i(z)!==i(F)))return!1;var je=m(z),Me=m(F);if(je!==Me||(je||Me)&&B(z)!==B(F)||te.strict&&X&&X(z)!==X(F))return!1;var Fe=C(z),Ht=C(F);if(Fe!==Ht)return!1;if(Fe||Ht){if(z.length!==F.length)return!1;for(ce=0;ce=0;ce--)if(_t[ce]!=rt[ce])return!1;for(ce=_t.length-1;ce>=0;ce--)if(xe=_t[ce],!be(z[xe],F[xe],te,pe))return!1;var ie=E(z),se=E(F);return ie!==se?!1:ie==="Set"||se==="Set"?Z(z,F,te,pe):ie==="Map"?le(z,F,te,pe):!0}return yh=function(F,te,pe){return be(F,te,pe,c())},yh}var a5=r5();const i5=_a(a5),Gy=(n,r)=>{for(const i in r)if(typeof r[i]=="object"){if(!i5(n[i],r[i]))return!1}else if(!Object.is(n[i],r[i]))return!1;return!0},os=n=>{let r=0,i;const l=n.readonly;return n.type==="int"||n.type==="float"?r=n.value:n.type==="Quantity"&&(r=n.value.magnitude,i=n.value.unit),[r,l,i]},CO=Xe.memo(n=>{gr();const[r,i]=x.useState(!1),{fullAccessPath:l,value:u,min:c,max:d,stepSize:p,docString:h,isInstantUpdate:y,addNotification:m,changeCallback:g=()=>{},displayName:S,id:R}=n;x.useEffect(()=>{m(`${l} changed to ${u.value}.`)},[n.value.value]),x.useEffect(()=>{m(`${l}.min changed to ${c.value}.`)},[n.min.value,n.min.type]),x.useEffect(()=>{m(`${l}.max changed to ${d.value}.`)},[n.max.value,n.max.type]),x.useEffect(()=>{m(`${l}.stepSize changed to ${p.value}.`)},[n.stepSize.value,n.stepSize.type]);const _=(L,Y)=>{Array.isArray(Y)&&(Y=Y[0]);let W;u.type==="Quantity"?W={type:"Quantity",value:{magnitude:Y,unit:u.value.unit},full_access_path:`${l}.value`,readonly:u.readonly,doc:h}:W={type:u.type,value:Y,full_access_path:`${l}.value`,readonly:u.readonly,doc:h},g(W)},E=(L,Y,W)=>{let oe;W.type==="Quantity"?oe={type:W.type,value:{magnitude:L,unit:W.value.unit},full_access_path:`${l}.${Y}`,readonly:W.readonly,doc:null}:oe={type:W.type,value:L,full_access_path:`${l}.${Y}`,readonly:W.readonly,doc:null},g(oe)},[C,j,M]=os(u),[B,X]=os(c),[A,$]=os(d),[O,q]=os(p);return T.jsxs("div",{className:"component sliderComponent",id:R,children:[!1,T.jsxs(Ts,{children:[T.jsx(ur,{xs:"auto",xl:"auto",children:T.jsxs(Yr.Text,{children:[S,T.jsx(tr,{docString:h})]})}),T.jsx(ur,{xs:"5",xl:!0,children:T.jsx(rM,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:j,value:C,onChange:(L,Y)=>_(L,Y),min:B,max:A,step:O,marks:[{value:B,label:`${B}`},{value:A,label:`${A}`}]})}),T.jsx(ur,{xs:"3",xl:!0,children:T.jsx(_s,{isInstantUpdate:y,fullAccessPath:`${l}.value`,docString:h,readOnly:j,type:u.type,value:C,unit:M,addNotification:()=>{},changeCallback:g,id:R+"-value"})}),T.jsx(ur,{xs:"auto",children:T.jsx(fy,{id:`button-${R}`,onClick:()=>i(!r),type:"checkbox",checked:r,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":r,children:T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[T.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),T.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),T.jsx(wo,{in:r,children:T.jsx(an.Group,{children:T.jsxs(Ts,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[T.jsxs(ur,{xs:"auto",children:[T.jsx(an.Label,{children:"Min Value"}),T.jsx(an.Control,{type:"number",value:B,disabled:X,onChange:L=>E(Number(L.target.value),"min",c)})]}),T.jsxs(ur,{xs:"auto",children:[T.jsx(an.Label,{children:"Max Value"}),T.jsx(an.Control,{type:"number",value:A,disabled:$,onChange:L=>E(Number(L.target.value),"max",d)})]}),T.jsxs(ur,{xs:"auto",children:[T.jsx(an.Label,{children:"Step Size"}),T.jsx(an.Control,{type:"number",value:O,disabled:q,onChange:L=>E(Number(L.target.value),"step_size",p)})]})]})})})]})},Gy);CO.displayName="SliderComponent";const NO=Xe.memo(n=>{const{addNotification:r,displayName:i,id:l,value:u,full_access_path:c,enum:d,doc:p,readonly:h,changeCallback:y}=n;return gr(),x.useEffect(()=>{r(`${c} changed to ${u}.`)},[u]),T.jsxs("div",{className:"component enumComponent",id:l,children:[!1,T.jsx(Ts,{children:T.jsxs(ur,{className:"d-flex align-items-center",children:[T.jsxs(Yr.Text,{children:[i,T.jsx(tr,{docString:p})]}),h?T.jsx(an.Control,{style:n.type=="ColouredEnum"?{backgroundColor:d[u]}:{},value:n.type=="ColouredEnum"?u:d[u],name:c,disabled:!0}):T.jsx(an.Select,{"aria-label":"example-select",value:u,name:c,style:n.type=="ColouredEnum"?{backgroundColor:d[u]}:{},onChange:m=>y({type:n.type,name:n.name,enum:d,value:m.target.value,full_access_path:c,readonly:n.readonly,doc:n.doc}),children:Object.entries(d).map(([m,g])=>T.jsx("option",{value:m,children:n.type=="ColouredEnum"?m:g},m))})]})})]})},Gy);NO.displayName="EnumComponent";const Yy=Xe.memo(n=>{const{fullAccessPath:r,docString:i,addNotification:l,displayName:u,id:c}=n;if(!n.render)return null;gr();const d=x.useRef(null),p=()=>{const y=`Method ${r} was triggered.`;l(y)},h=async y=>{y.preventDefault(),CE(r),p()};return T.jsxs("div",{className:"component methodComponent",id:c,children:[!1,T.jsx(an,{onSubmit:h,ref:d,children:T.jsxs(Co,{className:"component",variant:"primary",type:"submit",children:[`${u} `,T.jsx(tr,{docString:i})]})})]})},Gy);Yy.displayName="MethodComponent";const MO=Xe.memo(n=>{const{fullAccessPath:r,readOnly:i,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:p,id:h}=n;gr();const[y,m]=x.useState(n.value);x.useEffect(()=>{n.value!==y&&m(n.value),c(`${r} changed to ${n.value}.`)},[n.value]);const g=_=>{m(_.target.value),u&&d({type:"str",value:_.target.value,full_access_path:r,readonly:i,doc:l})},S=_=>{_.key==="Enter"&&!u&&(d({type:"str",value:y,full_access_path:r,readonly:i,doc:l}),_.preventDefault())},R=()=>{u||d({type:"str",value:y,full_access_path:r,readonly:i,doc:l})};return T.jsxs("div",{className:"component stringComponent",id:h,children:[!1,T.jsxs(Yr,{children:[T.jsxs(Yr.Text,{children:[p,T.jsx(tr,{docString:l})]}),T.jsx(an.Control,{type:"text",name:h,value:y,disabled:i,onChange:g,onKeyDown:S,onBlur:R,className:u&&!i?"instantUpdate":""})]})]})});MO.displayName="StringComponent";function Vy(n){const r=x.useContext(my),i=u=>{var c;return((c=r[u])==null?void 0:c.displayOrder)??Number.MAX_SAFE_INTEGER};let l;return Array.isArray(n)?l=[...n].sort((u,c)=>i(u.full_access_path)-i(c.full_access_path)):l=Object.values(n).sort((u,c)=>i(u.full_access_path)-i(c.full_access_path)),l}const DO=Xe.memo(n=>{const{docString:r,isInstantUpdate:i,addNotification:l,id:u}=n,c=Vy(n.value);return gr(),T.jsxs("div",{className:"listComponent",id:u,children:[!1,T.jsx(tr,{docString:r}),c.map(d=>T.jsx(tl,{attribute:d,isInstantUpdate:i,addNotification:l},d.full_access_path))]})});DO.displayName="ListComponent";var l5=["color","size","title","className"];function Vh(){return Vh=Object.assign?Object.assign.bind():function(n){for(var r=1;r{const u=localStorage.getItem(`${Pi}:${n}`);return u?JSON.parse(u):r});return x.useEffect(()=>{i!==void 0&&localStorage.setItem(`${Pi}:${n}`,JSON.stringify(i))},[i,n]),[i,l]}const Qy=Xe.memo(({props:n,isInstantUpdate:r,addNotification:i,displayName:l,id:u})=>{const[c,d]=Xh(`dataServiceComponent-${u}-open`,!0),p=Vy(n);return l!==""?T.jsx("div",{className:"component dataServiceComponent",id:u,children:T.jsxs(Xi,{children:[T.jsxs(Xi.Header,{onClick:()=>d(!c),style:{cursor:"pointer"},children:[l," ",c?T.jsx(Py,{}):T.jsx(Xy,{})]}),T.jsx(wo,{in:c,children:T.jsx(Xi.Body,{children:p.map(h=>T.jsx(tl,{attribute:h,isInstantUpdate:r,addNotification:i},h.full_access_path))})})]})}):T.jsx("div",{className:"component dataServiceComponent",id:u,children:p.map(h=>T.jsx(tl,{attribute:h,isInstantUpdate:r,addNotification:i},h.full_access_path))})});Qy.displayName="DataServiceComponent";const jO=Xe.memo(({fullAccessPath:n,props:r,isInstantUpdate:i,addNotification:l,displayName:u,id:c})=>{const{connected:d,connect:p,...h}=r,y=d.value;return T.jsxs("div",{className:"deviceConnectionComponent",id:c,children:[!y&&T.jsxs("div",{className:"overlayContent",children:[T.jsxs("div",{children:[u!=""?u:"Device"," is currently not available!"]}),T.jsx(Yy,{fullAccessPath:`${n}.connect`,docString:p.doc,addNotification:l,displayName:"reconnect",id:c+"-connect",render:!0})]}),T.jsx(Qy,{props:h,isInstantUpdate:i,addNotification:l,displayName:u,id:c})]})});jO.displayName="DeviceConnectionComponent";const BO=Xe.memo(n=>{const{fullAccessPath:r,value:i,docString:l,format:u,addNotification:c,displayName:d,id:p}=n;gr();const[h,y]=x.useState(!0);return x.useEffect(()=>{c(`${r} changed.`)},[n.value]),T.jsx("div",{className:"component imageComponent",id:p,children:T.jsxs(Xi,{children:[T.jsxs(Xi.Header,{onClick:()=>y(!h),style:{cursor:"pointer"},children:[d,T.jsx(tr,{docString:l}),h?T.jsx(Py,{}):T.jsx(Xy,{})]}),T.jsx(wo,{in:h,children:T.jsxs(Xi.Body,{children:[!1,u===""&&i===""?T.jsx("p",{children:"No image set in the backend."}):T.jsx(Ax,{src:`data:image/${u.toLowerCase()};base64,${i}`})]})})]})})});BO.displayName="ImageComponent";function d5(n){if(n){let r=n.replace(/\]\./g,"-");return r=r.replace(/[^\w_]+/g,"-"),r=r.replace(/-+$/,""),r}else return"main"}const $O=Xe.memo(n=>{const{docString:r,isInstantUpdate:i,addNotification:l,id:u}=n,c=Vy(n.value);return gr(),T.jsxs("div",{className:"listComponent",id:u,children:[!1,T.jsx(tr,{docString:r}),c.map(d=>T.jsx(tl,{attribute:d,isInstantUpdate:i,addNotification:l},d.full_access_path))]})});$O.displayName="DictComponent";const qO=Xe.memo(n=>{const{fullAccessPath:r,docString:i,status:l,addNotification:u,displayName:c,id:d}=n;gr();const p=x.useRef(null),[h,y]=x.useState(!1);x.useEffect(()=>{let g;l==="RUNNING"?g=`${r} was started.`:g=`${r} was stopped.`,u(g),y(!1)},[l]);const m=async g=>{g.preventDefault();const S=l=="RUNNING"?"stop":"start",R=[r,S].filter(_=>_).join(".");y(!0),CE(R)};return T.jsxs("div",{className:"component taskComponent",id:d,children:[!1,T.jsx(an,{onSubmit:m,ref:p,children:T.jsxs(Yr,{children:[T.jsxs(Yr.Text,{children:[c,T.jsx(tr,{docString:i})]}),T.jsx(Co,{id:`button-${d}`,type:"submit",children:h?T.jsx(lE,{size:"sm",role:"status","aria-hidden":"true"}):l==="RUNNING"?"Stop ":"Start "})]})})]})});qO.displayName="TaskComponent";const p5=n=>{let r="";for(const i of n)!i.startsWith("[")&&r!==""&&(r+="."),r+=i;return r},h5=n=>{const r=[],i=ME(n);for(let l=i.length-1;l>=0;l--){const u=i[l];if(r.unshift(u),!u.startsWith("["))break}return p5(r)};function Yi(n,r=()=>{}){rC(n,r)}const tl=Xe.memo(({attribute:n,isInstantUpdate:r,addNotification:i})=>{const{full_access_path:l}=n,u=d5(l),c=x.useContext(my);let d=h5(l);if(c[l]){if(c[l].display===!1)return null;c[l].displayName&&(d=c[l].displayName)}return n.type==="bool"?T.jsx(DE,{fullAccessPath:l,docString:n.doc,readOnly:n.readonly,value:!!n.value,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type==="float"||n.type==="int"?T.jsx(_s,{type:n.type,fullAccessPath:l,docString:n.doc,readOnly:n.readonly,value:Number(n.value),isInstantUpdate:r,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type==="Quantity"?T.jsx(_s,{type:"Quantity",fullAccessPath:l,docString:n.doc,readOnly:n.readonly,value:Number(n.value.magnitude),unit:n.value.unit,isInstantUpdate:r,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type==="NumberSlider"?T.jsx(CO,{fullAccessPath:l,docString:n.value.value.doc,readOnly:n.readonly,value:n.value.value,min:n.value.min,max:n.value.max,stepSize:n.value.step_size,isInstantUpdate:r,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type==="Enum"||n.type==="ColouredEnum"?T.jsx(NO,{...n,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type==="method"?T.jsx(Yy,{fullAccessPath:l,docString:n.doc,addNotification:i,displayName:d,id:u,render:n.frontend_render}):n.type==="str"?T.jsx(MO,{fullAccessPath:l,value:n.value,readOnly:n.readonly,docString:n.doc,isInstantUpdate:r,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type=="Task"?T.jsx(qO,{fullAccessPath:l,docString:n.doc,status:n.value.status.value,addNotification:i,displayName:d,id:u}):n.type==="DataService"?T.jsx(Qy,{props:n.value,isInstantUpdate:r,addNotification:i,displayName:d,id:u}):n.type==="DeviceConnection"?T.jsx(jO,{fullAccessPath:l,props:n.value,isInstantUpdate:r,addNotification:i,displayName:d,id:u}):n.type==="list"?T.jsx(DO,{value:n.value,docString:n.doc,isInstantUpdate:r,addNotification:i,id:u}):n.type==="dict"?T.jsx($O,{value:n.value,docString:n.doc,isInstantUpdate:r,addNotification:i,id:u}):n.type==="Image"?T.jsx(BO,{fullAccessPath:l,docString:n.value.value.doc,displayName:d,id:u,addNotification:i,value:n.value.value.value,format:n.value.format.value}):T.jsx("div",{children:l},l)});tl.displayName="GenericComponent";const y5=(n,r)=>{switch(r.type){case"SET_DATA":return r.data;case"UPDATE_ATTRIBUTE":return n===null?null:{...n,value:lC(n.value,r.fullAccessPath,r.newValue)};default:throw new Error}},v5=()=>{const[n,r]=x.useReducer(y5,null),[i,l]=x.useState(null),[u,c]=x.useState({}),[d,p]=Xh("isInstantUpdate",!1),[h,y]=x.useState(!1),[m,g]=Xh("showNotification",!1),[S,R]=x.useState([]),[_,E]=x.useState("connecting");x.useEffect(()=>(fetch(`${so}://${Pi}/custom.css`,{credentials:"include"}).then($=>{if($.ok){const O=document.createElement("link");O.href=`${so}://${Pi}/custom.css`,O.type="text/css",O.rel="stylesheet",document.head.appendChild(O)}}).catch(console.error),kr.on("connect",()=>{fetch(`${so}://${Pi}/service-properties`,{credentials:"include"}).then($=>$.json()).then($=>{r({type:"SET_DATA",data:$}),l($.name),document.title=$.name}),fetch(`${so}://${Pi}/web-settings`,{credentials:"include"}).then($=>$.json()).then($=>c($)),E("connected")}),kr.on("disconnect",()=>{E("disconnected"),setTimeout(()=>{E($=>$==="disconnected"?"reconnecting":$)},2e3)}),kr.on("notify",X),kr.on("log",A),()=>{kr.off("notify",X),kr.off("log",A)}),[]);const C=x.useCallback(($,O="DEBUG")=>{const q=new Date().toISOString().substring(11,19),L=Math.random();R(Y=>[{levelname:O,id:L,message:$,timeStamp:q},...Y])},[]),j=$=>{R(O=>O.filter(q=>q.id!==$))},M=()=>y(!1),B=()=>y(!0);function X($){const{full_access_path:O,value:q}=$.data;r({type:"UPDATE_ATTRIBUTE",fullAccessPath:O,newValue:q})}function A($){C($.message,$.levelname)}return n?T.jsxs(T.Fragment,{children:[T.jsx(Sd,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:T.jsxs(px,{fluid:!0,children:[T.jsx(Sd.Brand,{children:i}),T.jsx(Sd.Toggle,{"aria-controls":"offcanvasNavbar",onClick:B})]})}),T.jsx(NE,{showNotification:m,notifications:S,removeNotificationById:j}),T.jsxs(oo,{show:h,onHide:M,placement:"end",style:{zIndex:9999},children:[T.jsx(oo.Header,{closeButton:!0,children:T.jsx(oo.Title,{children:"Settings"})}),T.jsxs(oo.Body,{children:[T.jsx(an.Check,{checked:d,onChange:$=>p($.target.checked),type:"switch",label:"Enable Instant Update"}),T.jsx(an.Check,{checked:m,onChange:$=>g($.target.checked),type:"switch",label:"Show Notifications"})]})]}),T.jsx("div",{className:"App navbarOffset",children:T.jsx(my.Provider,{value:u,children:T.jsx(tl,{attribute:n,isInstantUpdate:d,addNotification:C})})}),T.jsx($h,{connectionStatus:_})]}):T.jsx($h,{connectionStatus:_})};var vh={exports:{}},io={},mh={exports:{}},gh={};/** + */var $b;function x3(){if($b)return st;$b=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.view_transition"),A=Symbol.for("react.client.reference");function _(E){if(typeof E=="object"&&E!==null){var C=E.$$typeof;switch(C){case n:switch(E=E.type,E){case i:case u:case l:case h:case y:case S:return E;default:switch(E=E&&E.$$typeof,E){case d:case p:case g:case m:return E;case c:return E;default:return C}}case r:return C}}}return st.ContextConsumer=c,st.ContextProvider=d,st.Element=n,st.ForwardRef=p,st.Fragment=i,st.Lazy=g,st.Memo=m,st.Portal=r,st.Profiler=u,st.StrictMode=l,st.Suspense=h,st.SuspenseList=y,st.isContextConsumer=function(E){return _(E)===c},st.isContextProvider=function(E){return _(E)===d},st.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===n},st.isForwardRef=function(E){return _(E)===p},st.isFragment=function(E){return _(E)===i},st.isLazy=function(E){return _(E)===g},st.isMemo=function(E){return _(E)===m},st.isPortal=function(E){return _(E)===r},st.isProfiler=function(E){return _(E)===u},st.isStrictMode=function(E){return _(E)===l},st.isSuspense=function(E){return _(E)===h},st.isSuspenseList=function(E){return _(E)===y},st.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===i||E===u||E===l||E===h||E===y||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===m||E.$$typeof===d||E.$$typeof===c||E.$$typeof===p||E.$$typeof===A||E.getModuleId!==void 0)},st.typeOf=_,st}var qb;function E3(){return qb||(qb=1,Rd.exports=x3()),Rd.exports}var zb=E3();const O3=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function rO(n){const r=`${n}`.match(O3);return r&&r[1]||""}function aO(n,r=""){return n.displayName||n.name||rO(n)||r}function kb(n,r,i){const l=aO(r);return n.displayName||(l!==""?`${i}(${l})`:i)}function T3(n){if(n!=null){if(typeof n=="string")return n;if(typeof n=="function")return aO(n,"Component");if(typeof n=="object")switch(n.$$typeof){case zb.ForwardRef:return kb(n,n.render,"ForwardRef");case zb.Memo:return kb(n,n.type,"memo");default:return}}}const _3=Object.freeze(Object.defineProperty({__proto__:null,default:T3,getFunctionName:rO},Symbol.toStringTag,{value:"Module"}));function Hh(n,r){const i=ge({},r);return Object.keys(n).forEach(l=>{if(l.toString().match(/^(components|slots)$/))i[l]=ge({},n[l],i[l]);else if(l.toString().match(/^(componentsProps|slotProps)$/)){const u=n[l]||{},c=r[l];i[l]={},!c||!Object.keys(c)?i[l]=u:!u||!Object.keys(u)?i[l]=c:(i[l]=ge({},c),Object.keys(u).forEach(d=>{i[l][d]=Hh(u[d],c[d])}))}else i[l]===void 0&&(i[l]=n[l])}),i}const iO=typeof window<"u"?x.useLayoutEffect:x.useEffect;function Vi(n,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(n,i))}const A3=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"}));function ms(n){return n&&n.ownerDocument||document}function R3(n,r){typeof n=="function"?n(r):n&&(n.current=r)}function w3({controlled:n,default:r,name:i,state:l="value"}){const{current:u}=x.useRef(n!==void 0),[c,d]=x.useState(r),p=u?n:c,h=x.useCallback(y=>{u||d(y)},[]);return[p,h]}function wd(n){const r=x.useRef(n);return iO(()=>{r.current=n}),x.useRef((...i)=>(0,r.current)(...i)).current}function Gh(...n){return x.useMemo(()=>n.every(r=>r==null)?null:r=>{n.forEach(i=>{R3(i,r)})},n)}class Cy{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Cy}start(r,i){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,i()},r)}}let Zs=!0,Yh=!1;const C3=new Cy,N3={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function M3(n){const{type:r,tagName:i}=n;return!!(i==="INPUT"&&N3[r]&&!n.readOnly||i==="TEXTAREA"&&!n.readOnly||n.isContentEditable)}function D3(n){n.metaKey||n.altKey||n.ctrlKey||(Zs=!0)}function Cd(){Zs=!1}function j3(){this.visibilityState==="hidden"&&Yh&&(Zs=!0)}function B3(n){n.addEventListener("keydown",D3,!0),n.addEventListener("mousedown",Cd,!0),n.addEventListener("pointerdown",Cd,!0),n.addEventListener("touchstart",Cd,!0),n.addEventListener("visibilitychange",j3,!0)}function $3(n){const{target:r}=n;try{return r.matches(":focus-visible")}catch{}return Zs||M3(r)}function q3(){const n=x.useCallback(u=>{u!=null&&B3(u.ownerDocument)},[]),r=x.useRef(!1);function i(){return r.current?(Yh=!0,C3.start(100,()=>{Yh=!1}),r.current=!1,!0):!1}function l(u){return $3(u)?(r.current=!0,!0):!1}return{isFocusVisibleRef:r,onFocus:l,onBlur:i,ref:n}}const z3={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function k3(n,r,i=void 0){const l={};return Object.keys(n).forEach(u=>{l[u]=n[u].reduce((c,d)=>{if(d){const p=r(d);p!==""&&c.push(p),i&&i[d]&&c.push(i[d])}return c},[]).join(" ")}),l}function vo(n){return typeof n=="string"}function L3(n,r,i){return n===void 0||vo(n)?r:ge({},r,{ownerState:ge({},r.ownerState,i)})}function gs(n,r=[]){if(n===void 0)return{};const i={};return Object.keys(n).filter(l=>l.match(/^on[A-Z]/)&&typeof n[l]=="function"&&!r.includes(l)).forEach(l=>{i[l]=n[l]}),i}function Lb(n){if(n===void 0)return{};const r={};return Object.keys(n).filter(i=>!(i.match(/^on[A-Z]/)&&typeof n[i]=="function")).forEach(i=>{r[i]=n[i]}),r}function U3(n){const{getSlotProps:r,additionalProps:i,externalSlotProps:l,externalForwardedProps:u,className:c}=n;if(!r){const A=Oa(i==null?void 0:i.className,c,u==null?void 0:u.className,l==null?void 0:l.className),_=ge({},i==null?void 0:i.style,u==null?void 0:u.style,l==null?void 0:l.style),E=ge({},i,u,l);return A.length>0&&(E.className=A),Object.keys(_).length>0&&(E.style=_),{props:E,internalRef:void 0}}const d=gs(ge({},u,l)),p=Lb(l),h=Lb(u),y=r(d),m=Oa(y==null?void 0:y.className,i==null?void 0:i.className,c,u==null?void 0:u.className,l==null?void 0:l.className),g=ge({},y==null?void 0:y.style,i==null?void 0:i.style,u==null?void 0:u.style,l==null?void 0:l.style),S=ge({},y,i,h,p);return m.length>0&&(S.className=m),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:y.ref}}function H3(n,r,i){return typeof n=="function"?n(r,i):n}const G3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ba(n){var r;const{elementType:i,externalSlotProps:l,ownerState:u,skipResolvingSlotProps:c=!1}=n,d=er(n,G3),p=c?{}:H3(l,u),{props:h,internalRef:y}=U3(ge({},d,{externalSlotProps:p})),m=Gh(y,p==null?void 0:p.ref,(r=n.additionalProps)==null?void 0:r.ref);return L3(i,ge({},h,{ref:m}),u)}const Y3=x.createContext(),V3=()=>{const n=x.useContext(Y3);return n??!1},P3=x.createContext(void 0);function X3(n){const{theme:r,name:i,props:l}=n;if(!r||!r.components||!r.components[i])return l;const u=r.components[i];return u.defaultProps?Hh(u.defaultProps,l):!u.styleOverrides&&!u.variants?Hh(u,l):l}function Q3({props:n,name:r}){const i=x.useContext(P3);return X3({props:n,name:r,theme:{components:i}})}function K3(n,r){return ge({toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}}},r)}var bt={},Nd={exports:{}},Ub;function lO(){return Ub||(Ub=1,function(n){function r(i){return i&&i.__esModule?i:{default:i}}n.exports=r,n.exports.__esModule=!0,n.exports.default=n.exports}(Nd)),Nd.exports}const F3=Qr(pC),Z3=Qr(A3);var Hb;function I3(){if(Hb)return bt;Hb=1;var n=lO();Object.defineProperty(bt,"__esModule",{value:!0}),bt.alpha=_,bt.blend=j,bt.colorChannel=void 0,bt.darken=C,bt.decomposeColor=d,bt.emphasize=X,bt.getContrastRatio=A,bt.getLuminance=S,bt.hexToRgb=u,bt.hslToRgb=g,bt.lighten=B,bt.private_safeAlpha=E,bt.private_safeColorChannel=void 0,bt.private_safeDarken=L,bt.private_safeEmphasize=R,bt.private_safeLighten=M,bt.recomposeColor=y,bt.rgbToHex=m;var r=n(F3),i=n(Z3);function l(O,k=0,$=1){return(0,i.default)(O,k,$)}function u(O){O=O.slice(1);const k=new RegExp(`.{1,${O.length>=6?2:1}}`,"g");let $=O.match(k);return $&&$[0].length===1&&($=$.map(H=>H+H)),$?`rgb${$.length===4?"a":""}(${$.map((H,Z)=>Z<3?parseInt(H,16):Math.round(parseInt(H,16)/255*1e3)/1e3).join(", ")})`:""}function c(O){const k=O.toString(16);return k.length===1?`0${k}`:k}function d(O){if(O.type)return O;if(O.charAt(0)==="#")return d(u(O));const k=O.indexOf("("),$=O.substring(0,k);if(["rgb","rgba","hsl","hsla","color"].indexOf($)===-1)throw new Error((0,r.default)(9,O));let H=O.substring(k+1,O.length-1),Z;if($==="color"){if(H=H.split(" "),Z=H.shift(),H.length===4&&H[3].charAt(0)==="/"&&(H[3]=H[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(Z)===-1)throw new Error((0,r.default)(10,Z))}else H=H.split(",");return H=H.map(oe=>parseFloat(oe)),{type:$,values:H,colorSpace:Z}}const p=O=>{const k=d(O);return k.values.slice(0,3).map(($,H)=>k.type.indexOf("hsl")!==-1&&H!==0?`${$}%`:$).join(" ")};bt.colorChannel=p;const h=(O,k)=>{try{return p(O)}catch{return O}};bt.private_safeColorChannel=h;function y(O){const{type:k,colorSpace:$}=O;let{values:H}=O;return k.indexOf("rgb")!==-1?H=H.map((Z,oe)=>oe<3?parseInt(Z,10):Z):k.indexOf("hsl")!==-1&&(H[1]=`${H[1]}%`,H[2]=`${H[2]}%`),k.indexOf("color")!==-1?H=`${$} ${H.join(" ")}`:H=`${H.join(", ")}`,`${k}(${H})`}function m(O){if(O.indexOf("#")===0)return O;const{values:k}=d(O);return`#${k.map(($,H)=>c(H===3?Math.round(255*$):$)).join("")}`}function g(O){O=d(O);const{values:k}=O,$=k[0],H=k[1]/100,Z=k[2]/100,oe=H*Math.min(Z,1-Z),ue=(G,W=(G+$/30)%12)=>Z-oe*Math.max(Math.min(W-3,9-W,1),-1);let he="rgb";const fe=[Math.round(ue(0)*255),Math.round(ue(8)*255),Math.round(ue(4)*255)];return O.type==="hsla"&&(he+="a",fe.push(k[3])),y({type:he,values:fe})}function S(O){O=d(O);let k=O.type==="hsl"||O.type==="hsla"?d(g(O)).values:O.values;return k=k.map($=>(O.type!=="color"&&($/=255),$<=.03928?$/12.92:(($+.055)/1.055)**2.4)),Number((.2126*k[0]+.7152*k[1]+.0722*k[2]).toFixed(3))}function A(O,k){const $=S(O),H=S(k);return(Math.max($,H)+.05)/(Math.min($,H)+.05)}function _(O,k){return O=d(O),k=l(k),(O.type==="rgb"||O.type==="hsl")&&(O.type+="a"),O.type==="color"?O.values[3]=`/${k}`:O.values[3]=k,y(O)}function E(O,k,$){try{return _(O,k)}catch{return O}}function C(O,k){if(O=d(O),k=l(k),O.type.indexOf("hsl")!==-1)O.values[2]*=1-k;else if(O.type.indexOf("rgb")!==-1||O.type.indexOf("color")!==-1)for(let $=0;$<3;$+=1)O.values[$]*=1-k;return y(O)}function L(O,k,$){try{return C(O,k)}catch{return O}}function B(O,k){if(O=d(O),k=l(k),O.type.indexOf("hsl")!==-1)O.values[2]+=(100-O.values[2])*k;else if(O.type.indexOf("rgb")!==-1)for(let $=0;$<3;$+=1)O.values[$]+=(255-O.values[$])*k;else if(O.type.indexOf("color")!==-1)for(let $=0;$<3;$+=1)O.values[$]+=(1-O.values[$])*k;return y(O)}function M(O,k,$){try{return B(O,k)}catch{return O}}function X(O,k=.15){return S(O)>.5?C(O,k):B(O,k)}function R(O,k,$){try{return X(O,k)}catch{return O}}function j(O,k,$,H=1){const Z=(fe,G)=>Math.round((fe**(1/H)*(1-$)+G**(1/H)*$)**H),oe=d(O),ue=d(k),he=[Z(oe.values[0],ue.values[0]),Z(oe.values[1],ue.values[1]),Z(oe.values[2],ue.values[2])];return y({type:"rgb",values:he})}return bt}var Hr=I3();const W3=["mode","contrastThreshold","tonalOffset"],Gb={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xo.white,default:xo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Md={text:{primary:xo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:xo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Yb(n,r,i,l){const u=l.light||l,c=l.dark||l*1.5;n[r]||(n.hasOwnProperty(i)?n[r]=n[i]:r==="light"?n.light=Hr.lighten(n.main,u):r==="dark"&&(n.dark=Hr.darken(n.main,c)))}function J3(n="light"){return n==="dark"?{main:Ui[200],light:Ui[50],dark:Ui[400]}:{main:Ui[700],light:Ui[400],dark:Ui[800]}}function e4(n="light"){return n==="dark"?{main:Li[200],light:Li[50],dark:Li[400]}:{main:Li[500],light:Li[300],dark:Li[700]}}function t4(n="light"){return n==="dark"?{main:ki[500],light:ki[300],dark:ki[700]}:{main:ki[700],light:ki[400],dark:ki[800]}}function n4(n="light"){return n==="dark"?{main:Hi[400],light:Hi[300],dark:Hi[700]}:{main:Hi[700],light:Hi[500],dark:Hi[900]}}function r4(n="light"){return n==="dark"?{main:Gi[400],light:Gi[300],dark:Gi[700]}:{main:Gi[800],light:Gi[500],dark:Gi[900]}}function a4(n="light"){return n==="dark"?{main:no[400],light:no[300],dark:no[700]}:{main:"#ed6c02",light:no[500],dark:no[900]}}function i4(n){const{mode:r="light",contrastThreshold:i=3,tonalOffset:l=.2}=n,u=er(n,W3),c=n.primary||J3(r),d=n.secondary||e4(r),p=n.error||t4(r),h=n.info||n4(r),y=n.success||r4(r),m=n.warning||a4(r);function g(E){return Hr.getContrastRatio(E,Md.text.primary)>=i?Md.text.primary:Gb.text.primary}const S=({color:E,name:C,mainShade:L=500,lightShade:B=300,darkShade:M=700})=>{if(E=ge({},E),!E.main&&E[L]&&(E.main=E[L]),!E.hasOwnProperty("main"))throw new Error(Eo(11,C?` (${C})`:"",L));if(typeof E.main!="string")throw new Error(Eo(12,C?` (${C})`:"",JSON.stringify(E.main)));return Yb(E,"light",B,l),Yb(E,"dark",M,l),E.contrastText||(E.contrastText=g(E.main)),E},A={dark:Md,light:Gb};return vr(ge({common:ge({},xo),mode:r,primary:S({color:c,name:"primary"}),secondary:S({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:p,name:"error"}),warning:S({color:m,name:"warning"}),info:S({color:h,name:"info"}),success:S({color:y,name:"success"}),grey:dC,contrastThreshold:i,getContrastText:g,augmentColor:S,tonalOffset:l},A[r]),u)}const l4=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function o4(n){return Math.round(n*1e5)/1e5}const Vb={textTransform:"uppercase"},Pb='"Roboto", "Helvetica", "Arial", sans-serif';function u4(n,r){const i=typeof r=="function"?r(n):r,{fontFamily:l=Pb,fontSize:u=14,fontWeightLight:c=300,fontWeightRegular:d=400,fontWeightMedium:p=500,fontWeightBold:h=700,htmlFontSize:y=16,allVariants:m,pxToRem:g}=i,S=er(i,l4),A=u/14,_=g||(L=>`${L/y*A}rem`),E=(L,B,M,X,R)=>ge({fontFamily:l,fontWeight:L,fontSize:_(B),lineHeight:M},l===Pb?{letterSpacing:`${o4(X/B)}em`}:{},R,m),C={h1:E(c,96,1.167,-1.5),h2:E(c,60,1.2,-.5),h3:E(d,48,1.167,0),h4:E(d,34,1.235,.25),h5:E(d,24,1.334,0),h6:E(p,20,1.6,.15),subtitle1:E(d,16,1.75,.15),subtitle2:E(p,14,1.57,.1),body1:E(d,16,1.5,.15),body2:E(d,14,1.43,.15),button:E(p,14,1.75,.4,Vb),caption:E(d,12,1.66,.4),overline:E(d,12,2.66,1,Vb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vr(ge({htmlFontSize:y,pxToRem:_,fontFamily:l,fontSize:u,fontWeightLight:c,fontWeightRegular:d,fontWeightMedium:p,fontWeightBold:h},C),S,{clone:!1})}const s4=.2,c4=.14,f4=.12;function vt(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${s4})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${c4})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${f4})`].join(",")}const d4=["none",vt(0,2,1,-1,0,1,1,0,0,1,3,0),vt(0,3,1,-2,0,2,2,0,0,1,5,0),vt(0,3,3,-2,0,3,4,0,0,1,8,0),vt(0,2,4,-1,0,4,5,0,0,1,10,0),vt(0,3,5,-1,0,5,8,0,0,1,14,0),vt(0,3,5,-1,0,6,10,0,0,1,18,0),vt(0,4,5,-2,0,7,10,1,0,2,16,1),vt(0,5,5,-3,0,8,10,1,0,3,14,2),vt(0,5,6,-3,0,9,12,1,0,3,16,2),vt(0,6,6,-3,0,10,14,1,0,4,18,3),vt(0,6,7,-4,0,11,15,1,0,4,20,3),vt(0,7,8,-4,0,12,17,2,0,5,22,4),vt(0,7,8,-4,0,13,19,2,0,5,24,4),vt(0,7,9,-4,0,14,21,2,0,5,26,4),vt(0,8,9,-5,0,15,22,2,0,6,28,5),vt(0,8,10,-5,0,16,24,2,0,6,30,5),vt(0,8,11,-5,0,17,26,2,0,6,32,5),vt(0,9,11,-5,0,18,28,2,0,7,34,6),vt(0,9,12,-6,0,19,29,2,0,7,36,6),vt(0,10,13,-6,0,20,31,3,0,8,38,7),vt(0,10,13,-6,0,21,33,3,0,8,40,7),vt(0,10,14,-6,0,22,35,3,0,8,42,7),vt(0,11,14,-7,0,23,36,3,0,9,44,8),vt(0,11,15,-7,0,24,38,3,0,9,46,8)],p4=["duration","easing","delay"],h4={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},y4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xb(n){return`${Math.round(n)}ms`}function v4(n){if(!n)return 0;const r=n/36;return Math.round((4+15*r**.25+r/5)*10)}function m4(n){const r=ge({},h4,n.easing),i=ge({},y4,n.duration);return ge({getAutoHeightDuration:v4,create:(u=["all"],c={})=>{const{duration:d=i.standard,easing:p=r.easeInOut,delay:h=0}=c;return er(c,p4),(Array.isArray(u)?u:[u]).map(y=>`${y} ${typeof d=="string"?d:Xb(d)} ${p} ${typeof h=="string"?h:Xb(h)}`).join(",")}},n,{easing:r,duration:i})}const g4={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},b4=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function S4(n={},...r){const{mixins:i={},palette:l={},transitions:u={},typography:c={}}=n,d=er(n,b4);if(n.vars&&n.generateCssVars===void 0)throw new Error(Eo(18));const p=i4(l),h=eO(n);let y=vr(h,{mixins:K3(h.breakpoints,i),palette:p,shadows:d4.slice(),typography:u4(p,c),transitions:m4(u),zIndex:ge({},g4)});return y=vr(y,d),y=r.reduce((m,g)=>vr(m,g),y),y.unstable_sxConfig=ge({},zo,d==null?void 0:d.unstable_sxConfig),y.unstable_sx=function(g){return Fs({sx:g,theme:this})},y}const x4=S4();var Xa={},Dd={exports:{}},Qb;function E4(){return Qb||(Qb=1,function(n){function r(){return n.exports=r=Object.assign?Object.assign.bind():function(i){for(var l=1;l96}function _(R){return R!=="ownerState"&&R!=="theme"&&R!=="sx"&&R!=="as"}const E=Xa.systemDefaultTheme=(0,c.default)(),C=R=>R&&R.charAt(0).toLowerCase()+R.slice(1);function L({defaultTheme:R,theme:j,themeId:O}){return S(j)?R:j[O]||j}function B(R){return R?(j,O)=>O[R]:null}function M(R,j){let{ownerState:O}=j,k=(0,i.default)(j,p);const $=typeof R=="function"?R((0,r.default)({ownerState:O},k)):R;if(Array.isArray($))return $.flatMap(H=>M(H,(0,r.default)({ownerState:O},k)));if($&&typeof $=="object"&&Array.isArray($.variants)){const{variants:H=[]}=$;let oe=(0,i.default)($,h);return H.forEach(ue=>{let he=!0;typeof ue.props=="function"?he=ue.props((0,r.default)({ownerState:O},k,O)):Object.keys(ue.props).forEach(fe=>{(O==null?void 0:O[fe])!==ue.props[fe]&&k[fe]!==ue.props[fe]&&(he=!1)}),he&&(Array.isArray(oe)||(oe=[oe]),oe.push(typeof ue.style=="function"?ue.style((0,r.default)({ownerState:O},k,O)):ue.style))}),oe}return $}function X(R={}){const{themeId:j,defaultTheme:O=E,rootShouldForwardProp:k=_,slotShouldForwardProp:$=_}=R,H=Z=>(0,d.default)((0,r.default)({},Z,{theme:L((0,r.default)({},Z,{defaultTheme:O,themeId:j}))}));return H.__mui_systemSx=!0,(Z,oe={})=>{(0,l.internal_processStyles)(Z,te=>te.filter(pe=>!(pe!=null&&pe.__mui_systemSx)));const{name:ue,slot:he,skipVariantsResolver:fe,skipSx:G,overridesResolver:W=B(C(he))}=oe,ae=(0,i.default)(oe,y),be=fe!==void 0?fe:he&&he!=="Root"&&he!=="root"||!1,N=G||!1;let I,le=_;he==="Root"||he==="root"?le=k:he?le=$:A(Z)&&(le=void 0);const re=(0,l.default)(Z,(0,r.default)({shouldForwardProp:le,label:I},ae)),q=te=>typeof te=="function"&&te.__emotion_real!==te||(0,u.isPlainObject)(te)?pe=>M(te,(0,r.default)({},pe,{theme:L({theme:pe.theme,defaultTheme:O,themeId:j})})):te,F=(te,...pe)=>{let ce=q(te);const xe=pe?pe.map(q):[];ue&&W&&xe.push(de=>{const ve=L((0,r.default)({},de,{defaultTheme:O,themeId:j}));if(!ve.components||!ve.components[ue]||!ve.components[ue].styleOverrides)return null;const Oe=ve.components[ue].styleOverrides,ye={};return Object.entries(Oe).forEach(([je,Me])=>{ye[je]=M(Me,(0,r.default)({},de,{theme:ve}))}),W(de,ye)}),ue&&!be&&xe.push(de=>{var ve;const Oe=L((0,r.default)({},de,{defaultTheme:O,themeId:j})),ye=Oe==null||(ve=Oe.components)==null||(ve=ve[ue])==null?void 0:ve.variants;return M({variants:ye},(0,r.default)({},de,{theme:Oe}))}),N||xe.push(H);const me=xe.length-pe.length;if(Array.isArray(te)&&me>0){const de=new Array(me).fill("");ce=[...te,...de],ce.raw=[...te.raw,...de]}const Ee=re(ce,...xe);return Z.muiName&&(Ee.muiName=Z.muiName),Ee};return re.withConfig&&(F.withConfig=re.withConfig),F}}return Xa}var M4=N4();const D4=_a(M4);function Ny(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const j4=n=>Ny(n)&&n!=="classes",Ia=D4({themeId:hC,defaultTheme:x4,rootShouldForwardProp:j4});function B4(n){return Q3(n)}function $4(n,r,i=(l,u)=>l===u){return n.length===r.length&&n.every((l,u)=>i(l,r[u]))}const q4=2;function oO(n,r){return n-r}function Zb(n,r){var i;const{index:l}=(i=n.reduce((u,c,d)=>{const p=Math.abs(r-c);return u===null||p({left:`${n}%`}),leap:n=>({width:`${n}%`})},"horizontal-reverse":{offset:n=>({right:`${n}%`}),leap:n=>({width:`${n}%`})},vertical:{offset:n=>({bottom:`${n}%`}),leap:n=>({height:`${n}%`})}},H4=n=>n;let rs;function Wb(){return rs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?rs=CSS.supports("touch-action","none"):rs=!0),rs}function G4(n){const{"aria-labelledby":r,defaultValue:i,disabled:l=!1,disableSwap:u=!1,isRtl:c=!1,marks:d=!1,max:p=100,min:h=0,name:y,onChange:m,onChangeCommitted:g,orientation:S="horizontal",rootRef:A,scale:_=H4,step:E=1,shiftStep:C=10,tabIndex:L,value:B}=n,M=x.useRef(void 0),[X,R]=x.useState(-1),[j,O]=x.useState(-1),[k,$]=x.useState(!1),H=x.useRef(0),[Z,oe]=w3({controlled:B,default:i??h,name:"Slider"}),ue=m&&((ie,se,Te)=>{const Ue=ie.nativeEvent||ie,Ye=new Ue.constructor(Ue.type,Ue);Object.defineProperty(Ye,"target",{writable:!0,value:{value:se,name:y}}),m(Ye,se,Te)}),he=Array.isArray(Z);let fe=he?Z.slice().sort(oO):[Z];fe=fe.map(ie=>ie==null?h:Vi(ie,h,p));const G=d===!0&&E!==null?[...Array(Math.floor((p-h)/E)+1)].map((ie,se)=>({value:h+E*se})):d||[],W=G.map(ie=>ie.value),{isFocusVisibleRef:ae,onBlur:be,onFocus:N,ref:I}=q3(),[le,re]=x.useState(-1),q=x.useRef(null),F=Gh(I,q),te=Gh(A,F),pe=ie=>se=>{var Te;const Ue=Number(se.currentTarget.getAttribute("data-index"));N(se),ae.current===!0&&re(Ue),O(Ue),ie==null||(Te=ie.onFocus)==null||Te.call(ie,se)},ce=ie=>se=>{var Te;be(se),ae.current===!1&&re(-1),O(-1),ie==null||(Te=ie.onBlur)==null||Te.call(ie,se)},xe=(ie,se)=>{const Te=Number(ie.currentTarget.getAttribute("data-index")),Ue=fe[Te],Ye=W.indexOf(Ue);let Be=se;if(G&&E==null){const Nt=W[W.length-1];Be>Nt?Be=Nt:Bese=>{var Te;if(E!==null){const Ue=Number(se.currentTarget.getAttribute("data-index")),Ye=fe[Ue];let Be=null;(se.key==="ArrowLeft"||se.key==="ArrowDown")&&se.shiftKey||se.key==="PageDown"?Be=Math.max(Ye-C,h):((se.key==="ArrowRight"||se.key==="ArrowUp")&&se.shiftKey||se.key==="PageUp")&&(Be=Math.min(Ye+C,p)),Be!==null&&(xe(se,Be),se.preventDefault())}ie==null||(Te=ie.onKeyDown)==null||Te.call(ie,se)};iO(()=>{if(l&&q.current.contains(document.activeElement)){var ie;(ie=document.activeElement)==null||ie.blur()}},[l]),l&&X!==-1&&R(-1),l&&le!==-1&&re(-1);const Ee=ie=>se=>{var Te;(Te=ie.onChange)==null||Te.call(ie,se),xe(se,se.target.valueAsNumber)},de=x.useRef(void 0);let ve=S;c&&S==="horizontal"&&(ve+="-reverse");const Oe=({finger:ie,move:se=!1})=>{const{current:Te}=q,{width:Ue,height:Ye,bottom:Be,left:Nt}=Te.getBoundingClientRect();let mt;ve.indexOf("vertical")===0?mt=(Be-ie.y)/Ye:mt=(ie.x-Nt)/Ue,ve.indexOf("-reverse")!==-1&&(mt=1-mt);let z;if(z=z4(mt,h,p),E)z=L4(z,E,h);else{const qe=Zb(W,z);z=W[qe]}z=Vi(z,h,p);let V=0;if(he){se?V=de.current:V=Zb(fe,z),u&&(z=Vi(z,fe[V-1]||-1/0,fe[V+1]||1/0));const qe=z;z=Ib({values:fe,newValue:z,index:V}),u&&se||(V=z.indexOf(qe),de.current=V)}return{newValue:z,activeIndex:V}},ye=wd(ie=>{const se=es(ie,M);if(!se)return;if(H.current+=1,ie.type==="mousemove"&&ie.buttons===0){je(ie);return}const{newValue:Te,activeIndex:Ue}=Oe({finger:se,move:!0});ts({sliderRef:q,activeIndex:Ue,setActive:R}),oe(Te),!k&&H.current>q4&&$(!0),ue&&!ns(Te,Z)&&ue(ie,Te,Ue)}),je=wd(ie=>{const se=es(ie,M);if($(!1),!se)return;const{newValue:Te}=Oe({finger:se,move:!0});R(-1),ie.type==="touchend"&&O(-1),g&&g(ie,Te),M.current=void 0,Fe()}),Me=wd(ie=>{if(l)return;Wb()||ie.preventDefault();const se=ie.changedTouches[0];se!=null&&(M.current=se.identifier);const Te=es(ie,M);if(Te!==!1){const{newValue:Ye,activeIndex:Be}=Oe({finger:Te});ts({sliderRef:q,activeIndex:Be,setActive:R}),oe(Ye),ue&&!ns(Ye,Z)&&ue(ie,Ye,Be)}H.current=0;const Ue=ms(q.current);Ue.addEventListener("touchmove",ye,{passive:!0}),Ue.addEventListener("touchend",je,{passive:!0})}),Fe=x.useCallback(()=>{const ie=ms(q.current);ie.removeEventListener("mousemove",ye),ie.removeEventListener("mouseup",je),ie.removeEventListener("touchmove",ye),ie.removeEventListener("touchend",je)},[je,ye]);x.useEffect(()=>{const{current:ie}=q;return ie.addEventListener("touchstart",Me,{passive:Wb()}),()=>{ie.removeEventListener("touchstart",Me),Fe()}},[Fe,Me]),x.useEffect(()=>{l&&Fe()},[l,Fe]);const Ht=ie=>se=>{var Te;if((Te=ie.onMouseDown)==null||Te.call(ie,se),l||se.defaultPrevented||se.button!==0)return;se.preventDefault();const Ue=es(se,M);if(Ue!==!1){const{newValue:Be,activeIndex:Nt}=Oe({finger:Ue});ts({sliderRef:q,activeIndex:Nt,setActive:R}),oe(Be),ue&&!ns(Be,Z)&&ue(se,Be,Nt)}H.current=0;const Ye=ms(q.current);Ye.addEventListener("mousemove",ye,{passive:!0}),Ye.addEventListener("mouseup",je)},ze=ws(he?fe[0]:h,h,p),Ze=ws(fe[fe.length-1],h,p)-ze,Gt=(ie={})=>{const se=gs(ie),Te={onMouseDown:Ht(se||{})},Ue=ge({},se,Te);return ge({},ie,{ref:te},Ue)},$t=ie=>se=>{var Te;(Te=ie.onMouseOver)==null||Te.call(ie,se);const Ue=Number(se.currentTarget.getAttribute("data-index"));O(Ue)},qt=ie=>se=>{var Te;(Te=ie.onMouseLeave)==null||Te.call(ie,se),O(-1)};return{active:X,axis:ve,axisProps:U4,dragging:k,focusedThumbIndex:le,getHiddenInputProps:(ie={})=>{var se;const Te=gs(ie),Ue={onChange:Ee(Te||{}),onFocus:pe(Te||{}),onBlur:ce(Te||{}),onKeyDown:me(Te||{})},Ye=ge({},Te,Ue);return ge({tabIndex:L,"aria-labelledby":r,"aria-orientation":S,"aria-valuemax":_(p),"aria-valuemin":_(h),name:y,type:"range",min:n.min,max:n.max,step:n.step===null&&n.marks?"any":(se=n.step)!=null?se:void 0,disabled:l},ie,Ye,{style:ge({},z3,{direction:c?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Gt,getThumbProps:(ie={})=>{const se=gs(ie),Te={onMouseOver:$t(se||{}),onMouseLeave:qt(se||{})};return ge({},ie,se,Te)},marks:G,open:j,range:he,rootRef:te,trackLeap:Ze,trackOffset:ze,values:fe,getThumbStyle:ie=>({pointerEvents:X!==-1&&X!==ie?"none":void 0})}}const Y4=n=>!n||!vo(n);function V4(n){return nO("MuiSlider",n)}const Gn=S3("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),P4=n=>{const{open:r}=n;return{offset:Oa(r&&Gn.valueLabelOpen),circle:Gn.valueLabelCircle,label:Gn.valueLabelLabel}};function X4(n){const{children:r,className:i,value:l}=n,u=P4(n);return r?x.cloneElement(r,{className:Oa(r.props.className)},T.jsxs(x.Fragment,{children:[r.props.children,T.jsx("span",{className:Oa(u.offset,i),"aria-hidden":!0,children:T.jsx("span",{className:u.circle,children:T.jsx("span",{className:u.label,children:l})})})]})):null}const Q4=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Jb(n){return n}const K4=Ia("span",{name:"MuiSlider",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,r[`color${Jn(i.color)}`],i.size!=="medium"&&r[`size${Jn(i.size)}`],i.marked&&r.marked,i.orientation==="vertical"&&r.vertical,i.track==="inverted"&&r.trackInverted,i.track===!1&&r.trackFalse]}})(({theme:n})=>{var r;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Gn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(n.vars||n).palette.grey[400]},[`&.${Gn.dragging}`]:{[`& .${Gn.thumb}, & .${Gn.track}`]:{transition:"none"}},variants:[...Object.keys(((r=n.vars)!=null?r:n).palette).filter(i=>{var l;return((l=n.vars)!=null?l:n).palette[i].main}).map(i=>({props:{color:i},style:{color:(n.vars||n).palette[i].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),F4=Ia("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(n,r)=>r.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Z4=Ia("span",{name:"MuiSlider",slot:"Track",overridesResolver:(n,r)=>r.track})(({theme:n})=>{var r;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:n.transitions.create(["left","width","bottom","height"],{duration:n.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((r=n.vars)!=null?r:n).palette).filter(i=>{var l;return((l=n.vars)!=null?l:n).palette[i].main}).map(i=>({props:{color:i,track:"inverted"},style:ge({},n.vars?{backgroundColor:n.vars.palette.Slider[`${i}Track`],borderColor:n.vars.palette.Slider[`${i}Track`]}:ge({backgroundColor:Hr.lighten(n.palette[i].main,.62),borderColor:Hr.lighten(n.palette[i].main,.62)},n.applyStyles("dark",{backgroundColor:Hr.darken(n.palette[i].main,.5)}),n.applyStyles("dark",{borderColor:Hr.darken(n.palette[i].main,.5)})))}))]}}),I4=Ia("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.thumb,r[`thumbColor${Jn(i.color)}`],i.size!=="medium"&&r[`thumbSize${Jn(i.size)}`]]}})(({theme:n})=>{var r;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:n.transitions.create(["box-shadow","left","bottom"],{duration:n.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(n.vars||n).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Gn.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((r=n.vars)!=null?r:n).palette).filter(i=>{var l;return((l=n.vars)!=null?l:n).palette[i].main}).map(i=>({props:{color:i},style:{[`&:hover, &.${Gn.focusVisible}`]:ge({},n.vars?{boxShadow:`0px 0px 0px 8px rgba(${n.vars.palette[i].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Hr.alpha(n.palette[i].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Gn.active}`]:ge({},n.vars?{boxShadow:`0px 0px 0px 14px rgba(${n.vars.palette[i].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Hr.alpha(n.palette[i].main,.16)}`})}}))]}}),W4=Ia(X4,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(n,r)=>r.valueLabel})(({theme:n})=>ge({zIndex:1,whiteSpace:"nowrap"},n.typography.body2,{fontWeight:500,transition:n.transitions.create(["transform"],{duration:n.transitions.duration.shortest}),position:"absolute",backgroundColor:(n.vars||n).palette.grey[600],borderRadius:2,color:(n.vars||n).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Gn.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Gn.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:n.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),J4=Ia("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:n=>Ny(n)&&n!=="markActive",overridesResolver:(n,r)=>{const{markActive:i}=n;return[r.mark,i&&r.markActive]}})(({theme:n})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(n.vars||n).palette.background.paper,opacity:.8}}]})),eM=Ia("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:n=>Ny(n)&&n!=="markLabelActive",overridesResolver:(n,r)=>r.markLabel})(({theme:n})=>ge({},n.typography.body2,{color:(n.vars||n).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(n.vars||n).palette.text.primary}}]})),tM=n=>{const{disabled:r,dragging:i,marked:l,orientation:u,track:c,classes:d,color:p,size:h}=n,y={root:["root",r&&"disabled",i&&"dragging",l&&"marked",u==="vertical"&&"vertical",c==="inverted"&&"trackInverted",c===!1&&"trackFalse",p&&`color${Jn(p)}`,h&&`size${Jn(h)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",r&&"disabled",h&&`thumbSize${Jn(h)}`,p&&`thumbColor${Jn(p)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return k3(y,V4,d)},nM=({children:n})=>n,rM=x.forwardRef(function(r,i){var l,u,c,d,p,h,y,m,g,S,A,_,E,C,L,B,M,X,R,j,O,k,$,H;const Z=B4({props:r,name:"MuiSlider"}),oe=V3(),{"aria-label":ue,"aria-valuetext":he,"aria-labelledby":fe,component:G="span",components:W={},componentsProps:ae={},color:be="primary",classes:N,className:I,disableSwap:le=!1,disabled:re=!1,getAriaLabel:q,getAriaValueText:F,marks:te=!1,max:pe=100,min:ce=0,orientation:xe="horizontal",shiftStep:me=10,size:Ee="medium",step:de=1,scale:ve=Jb,slotProps:Oe,slots:ye,track:je="normal",valueLabelDisplay:Me="off",valueLabelFormat:Fe=Jb}=Z,Ht=er(Z,Q4),ze=ge({},Z,{isRtl:oe,max:pe,min:ce,classes:N,disabled:re,disableSwap:le,orientation:xe,marks:te,color:be,size:Ee,step:de,shiftStep:me,scale:ve,track:je,valueLabelDisplay:Me,valueLabelFormat:Fe}),{axisProps:Ze,getRootProps:Gt,getHiddenInputProps:$t,getThumbProps:qt,open:An,active:_t,axis:rt,focusedThumbIndex:ie,range:se,dragging:Te,marks:Ue,values:Ye,trackOffset:Be,trackLeap:Nt,getThumbStyle:mt}=G4(ge({},ze,{rootRef:i}));ze.marked=Ue.length>0&&Ue.some(We=>We.label),ze.dragging=Te,ze.focusedThumbIndex=ie;const z=tM(ze),V=(l=(u=ye==null?void 0:ye.root)!=null?u:W.Root)!=null?l:K4,qe=(c=(d=ye==null?void 0:ye.rail)!=null?d:W.Rail)!=null?c:F4,Qe=(p=(h=ye==null?void 0:ye.track)!=null?h:W.Track)!=null?p:Z4,Ie=(y=(m=ye==null?void 0:ye.thumb)!=null?m:W.Thumb)!=null?y:I4,De=(g=(S=ye==null?void 0:ye.valueLabel)!=null?S:W.ValueLabel)!=null?g:W4,Yt=(A=(_=ye==null?void 0:ye.mark)!=null?_:W.Mark)!=null?A:J4,hn=(E=(C=ye==null?void 0:ye.markLabel)!=null?C:W.MarkLabel)!=null?E:eM,zt=(L=(B=ye==null?void 0:ye.input)!=null?B:W.Input)!=null?L:"input",nn=(M=Oe==null?void 0:Oe.root)!=null?M:ae.root,br=(X=Oe==null?void 0:Oe.rail)!=null?X:ae.rail,ln=(R=Oe==null?void 0:Oe.track)!=null?R:ae.track,Vt=(j=Oe==null?void 0:Oe.thumb)!=null?j:ae.thumb,Zr=(O=Oe==null?void 0:Oe.valueLabel)!=null?O:ae.valueLabel,yn=(k=Oe==null?void 0:Oe.mark)!=null?k:ae.mark,At=($=Oe==null?void 0:Oe.markLabel)!=null?$:ae.markLabel,St=(H=Oe==null?void 0:Oe.input)!=null?H:ae.input,Rn=ba({elementType:V,getSlotProps:Gt,externalSlotProps:nn,externalForwardedProps:Ht,additionalProps:ge({},Y4(V)&&{as:G}),ownerState:ge({},ze,nn==null?void 0:nn.ownerState),className:[z.root,I]}),nr=ba({elementType:qe,externalSlotProps:br,ownerState:ze,className:z.rail}),Ra=ba({elementType:Qe,externalSlotProps:ln,additionalProps:{style:ge({},Ze[rt].offset(Be),Ze[rt].leap(Nt))},ownerState:ge({},ze,ln==null?void 0:ln.ownerState),className:z.track}),Sr=ba({elementType:Ie,getSlotProps:qt,externalSlotProps:Vt,ownerState:ge({},ze,Vt==null?void 0:Vt.ownerState),className:z.thumb}),wa=ba({elementType:De,externalSlotProps:Zr,ownerState:ge({},ze,Zr==null?void 0:Zr.ownerState),className:z.valueLabel}),wn=ba({elementType:Yt,externalSlotProps:yn,ownerState:ze,className:z.mark}),Qn=ba({elementType:hn,externalSlotProps:At,ownerState:ze,className:z.markLabel}),Kn=ba({elementType:zt,getSlotProps:$t,externalSlotProps:St,ownerState:ze});return T.jsxs(V,ge({},Rn,{children:[T.jsx(qe,ge({},nr)),T.jsx(Qe,ge({},Ra)),Ue.filter(We=>We.value>=ce&&We.value<=pe).map((We,pt)=>{const Cn=ws(We.value,ce,pe),ct=Ze[rt].offset(Cn);let kt;return je===!1?kt=Ye.indexOf(We.value)!==-1:kt=je==="normal"&&(se?We.value>=Ye[0]&&We.value<=Ye[Ye.length-1]:We.value<=Ye[0])||je==="inverted"&&(se?We.value<=Ye[0]||We.value>=Ye[Ye.length-1]:We.value>=Ye[0]),T.jsxs(x.Fragment,{children:[T.jsx(Yt,ge({"data-index":pt},wn,!vo(Yt)&&{markActive:kt},{style:ge({},ct,wn.style),className:Oa(wn.className,kt&&z.markActive)})),We.label!=null?T.jsx(hn,ge({"aria-hidden":!0,"data-index":pt},Qn,!vo(hn)&&{markLabelActive:kt},{style:ge({},ct,Qn.style),className:Oa(z.markLabel,Qn.className,kt&&z.markLabelActive),children:We.label})):null]},pt)}),Ye.map((We,pt)=>{const Cn=ws(We,ce,pe),ct=Ze[rt].offset(Cn),kt=Me==="off"?nM:De;return T.jsx(kt,ge({},!vo(kt)&&{valueLabelFormat:Fe,valueLabelDisplay:Me,value:typeof Fe=="function"?Fe(ve(We),pt):Fe,index:pt,open:An===pt||_t===pt||Me==="on",disabled:re},wa,{children:T.jsx(Ie,ge({"data-index":pt},Sr,{className:Oa(z.thumb,Sr.className,_t===pt&&z.active,ie===pt&&z.focusVisible),style:ge({},ct,mt(pt),Sr.style),children:T.jsx(zt,ge({"data-index":pt,"aria-label":q?q(pt):ue,"aria-valuenow":ve(We),"aria-labelledby":fe,"aria-valuetext":F?F(ve(We),pt):he,value:Ye[pt]},Kn))}))}),pt)})]}))});var Bd,e1;function uO(){if(e1)return Bd;e1=1;var n=Object.prototype.toString;return Bd=function(i){var l=n.call(i),u=l==="[object Arguments]";return u||(u=l!=="[object Array]"&&i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&n.call(i.callee)==="[object Function]"),u},Bd}var $d,t1;function aM(){if(t1)return $d;t1=1;var n;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,l=uO(),u=Object.prototype.propertyIsEnumerable,c=!u.call({toString:null},"toString"),d=u.call(function(){},"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(S){var A=S.constructor;return A&&A.prototype===S},y={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},m=function(){if(typeof window>"u")return!1;for(var S in window)try{if(!y["$"+S]&&r.call(window,S)&&window[S]!==null&&typeof window[S]=="object")try{h(window[S])}catch{return!0}}catch{return!0}return!1}(),g=function(S){if(typeof window>"u"||!m)return h(S);try{return h(S)}catch{return!1}};n=function(A){var _=A!==null&&typeof A=="object",E=i.call(A)==="[object Function]",C=l(A),L=_&&i.call(A)==="[object String]",B=[];if(!_&&!E&&!C)throw new TypeError("Object.keys called on a non-object");var M=d&&E;if(L&&A.length>0&&!r.call(A,0))for(var X=0;X0)for(var R=0;R3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var h=arguments.length>3?arguments[3]:null,y=arguments.length>4?arguments[4]:null,m=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,S=!!l&&l(c,d);if(n)n(c,d,{configurable:m===null&&S?S.configurable:!m,enumerable:h===null&&S?S.enumerable:!h,value:p,writable:y===null&&S?S.writable:!y});else if(g||!h&&!y&&!m)c[d]=p;else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Gd}var Yd,s1;function By(){if(s1)return Yd;s1=1;var n=Is(),r=function(){return!!n};return r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},Yd=r,Yd}var Vd,c1;function Ja(){if(c1)return Vd;c1=1;var n=My(),r=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",i=Object.prototype.toString,l=Array.prototype.concat,u=jy(),c=function(y){return typeof y=="function"&&i.call(y)==="[object Function]"},d=By()(),p=function(y,m,g,S){if(m in y){if(S===!0){if(y[m]===g)return}else if(!c(S)||!S())return}d?u(y,m,g,!0):u(y,m,g)},h=function(y,m){var g=arguments.length>2?arguments[2]:{},S=n(m);r&&(S=l.call(S,Object.getOwnPropertySymbols(m)));for(var A=0;A"u"||!O?n:O(Uint8Array),he={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":j&&O?O([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":oe,"%AsyncGenerator%":oe,"%AsyncGeneratorFunction%":oe,"%AsyncIteratorPrototype%":oe,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":C,"%GeneratorFunction%":oe,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&O?O(O([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!j||!O?n:O(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":B,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":u,"%ReferenceError%":c,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!j||!O?n:O(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&O?O(""[Symbol.iterator]()):n,"%Symbol%":j?Symbol:n,"%SyntaxError%":d,"%ThrowTypeError%":R,"%TypedArray%":ue,"%TypeError%":p,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":Z,"%Function.prototype.apply%":H,"%Object.defineProperty%":M,"%Object.getPrototypeOf%":k,"%Math.abs%":y,"%Math.floor%":m,"%Math.max%":g,"%Math.min%":S,"%Math.pow%":A,"%Math.round%":_,"%Math.sign%":E,"%Reflect.getPrototypeOf%":$};if(O)try{null.error}catch(xe){var fe=O(O(xe));he["%Error.prototype%"]=fe}var G=function xe(me){var Ee;if(me==="%AsyncFunction%")Ee=L("async function () {}");else if(me==="%GeneratorFunction%")Ee=L("function* () {}");else if(me==="%AsyncGeneratorFunction%")Ee=L("async function* () {}");else if(me==="%AsyncGenerator%"){var de=xe("%AsyncGeneratorFunction%");de&&(Ee=de.prototype)}else if(me==="%AsyncIteratorPrototype%"){var ve=xe("%AsyncGenerator%");ve&&O&&(Ee=O(ve.prototype))}return he[me]=Ee,Ee},W={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ae=ko(),be=Hy(),N=ae.call(Z,Array.prototype.concat),I=ae.call(H,Array.prototype.splice),le=ae.call(Z,String.prototype.replace),re=ae.call(Z,String.prototype.slice),q=ae.call(Z,RegExp.prototype.exec),F=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,pe=function(me){var Ee=re(me,0,1),de=re(me,-1);if(Ee==="%"&&de!=="%")throw new d("invalid intrinsic syntax, expected closing `%`");if(de==="%"&&Ee!=="%")throw new d("invalid intrinsic syntax, expected opening `%`");var ve=[];return le(me,F,function(Oe,ye,je,Me){ve[ve.length]=je?le(Me,te,"$1"):ye||Oe}),ve},ce=function(me,Ee){var de=me,ve;if(be(W,de)&&(ve=W[de],de="%"+ve[0]+"%"),be(he,de)){var Oe=he[de];if(Oe===oe&&(Oe=G(de)),typeof Oe>"u"&&!Ee)throw new p("intrinsic "+me+" exists, but is not available. Please file an issue!");return{alias:ve,name:de,value:Oe}}throw new d("intrinsic "+me+" does not exist!")};return Sp=function(me,Ee){if(typeof me!="string"||me.length===0)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ee!="boolean")throw new p('"allowMissing" argument must be a boolean');if(q(/^%?[^%]*%?$/,me)===null)throw new d("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var de=pe(me),ve=de.length>0?de[0]:"",Oe=ce("%"+ve+"%",Ee),ye=Oe.name,je=Oe.value,Me=!1,Fe=Oe.alias;Fe&&(ve=Fe[0],I(de,N([0,1],Fe)));for(var Ht=1,ze=!0;Ht=de.length){var qt=B(je,Ze);ze=!!qt,ze&&"get"in qt&&!("originalValue"in qt.get)?je=qt.get:je=je[Ze]}else ze=be(je,Ze),je=je[Ze];ze&&!Me&&(he[ye]=je)}}return je},Sp}var xp,U1;function xM(){if(U1)return xp;U1=1;var n=Fr(),r=jy(),i=By()(),l=Wa(),u=Xn(),c=n("%Math.floor%");return xp=function(p,h){if(typeof p!="function")throw new u("`fn` is not a function");if(typeof h!="number"||h<0||h>4294967295||c(h)!==h)throw new u("`length` must be a positive 32-bit integer");var y=arguments.length>2&&!!arguments[2],m=!0,g=!0;if("length"in p&&l){var S=l(p,"length");S&&!S.configurable&&(m=!1),S&&!S.writable&&(g=!1)}return(m||g||!y)&&(i?r(p,"length",h,!0,!0):r(p,"length",h)),p},xp}var Ep,H1;function EM(){if(H1)return Ep;H1=1;var n=ko(),r=ky(),i=dO();return Ep=function(){return i(n,r,arguments)},Ep}var G1;function il(){return G1||(G1=1,function(n){var r=xM(),i=Is(),l=Ly(),u=EM();n.exports=function(d){var p=l(arguments),h=d.length-(arguments.length-1);return r(p,1+(h>0?h:0),!0)},i?i(n.exports,"apply",{value:u}):n.exports.apply=u}(Pd)),Pd.exports}var Op,Y1;function tn(){if(Y1)return Op;Y1=1;var n=Fr(),r=Ly(),i=r([n("%String.prototype.indexOf%")]);return Op=function(u,c){var d=n(u,!!c);return typeof d=="function"&&i(u,".prototype.")>-1?r([d]):d},Op}var Tp,V1;function pO(){if(V1)return Tp;V1=1;var n=My(),r=Ws()(),i=tn(),l=$y(),u=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),d=r?l.getOwnPropertySymbols:null;return Tp=function(h,y){if(h==null)throw new TypeError("target must be an object");var m=l(h);if(arguments.length===1)return m;for(var g=1;g-1?r(d):d},wp}var Cp,F1;function _M(){if(F1)return Cp;F1=1;var n=function(){return typeof(function(){}).name=="string"},r=Object.getOwnPropertyDescriptor;if(r)try{r([],"length")}catch{r=null}n.functionsHaveConfigurableNames=function(){if(!n()||!r)return!1;var u=r(function(){},"name");return!!u&&!!u.configurable};var i=Function.prototype.bind;return n.boundFunctionsHaveNames=function(){return n()&&typeof i=="function"&&(function(){}).bind().name!==""},Cp=n,Cp}var Np,Z1;function AM(){if(Z1)return Np;Z1=1;var n=jy(),r=By()(),i=_M().functionsHaveConfigurableNames(),l=Xn();return Np=function(c,d){if(typeof c!="function")throw new l("`fn` is not a function");var p=arguments.length>2&&!!arguments[2];return(!p||i)&&(r?n(c,"name",d,!0,!0):n(c,"name",d)),c},Np}var Mp,I1;function vO(){if(I1)return Mp;I1=1;var n=AM(),r=Xn(),i=Object;return Mp=n(function(){if(this==null||this!==i(this))throw new r("RegExp.prototype.flags getter called on non-object");var u="";return this.hasIndices&&(u+="d"),this.global&&(u+="g"),this.ignoreCase&&(u+="i"),this.multiline&&(u+="m"),this.dotAll&&(u+="s"),this.unicode&&(u+="u"),this.unicodeSets&&(u+="v"),this.sticky&&(u+="y"),u},"get flags",!0),Mp}var Dp,W1;function mO(){if(W1)return Dp;W1=1;var n=vO(),r=Ja().supportsDescriptors,i=Object.getOwnPropertyDescriptor;return Dp=function(){if(r&&/a/mig.flags==="gim"){var u=i(RegExp.prototype,"flags");if(u&&typeof u.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var c="",d={};if(Object.defineProperty(d,"hasIndices",{get:function(){c+="d"}}),Object.defineProperty(d,"sticky",{get:function(){c+="y"}}),u.get.call(d),c==="dy")return u.get}}return n},Dp}var jp,J1;function RM(){if(J1)return jp;J1=1;var n=Ja().supportsDescriptors,r=mO(),i=Wa(),l=Object.defineProperty,u=sO(),c=Uy(),d=/a/;return jp=function(){if(!n||!c)throw new u("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var h=r(),y=c(d),m=i(y,"flags");return(!m||m.get!==h)&&l(y,"flags",{configurable:!0,enumerable:!1,get:h}),h},jp}var Bp,eS;function wM(){if(eS)return Bp;eS=1;var n=Ja(),r=il(),i=vO(),l=mO(),u=RM(),c=r(l());return n(c,{getPolyfill:l,implementation:i,shim:u}),Bp=c,Bp}var ao={exports:{}},$p,tS;function ei(){if(tS)return $p;tS=1;var n=Ws();return $p=function(){return n()&&!!Symbol.toStringTag},$p}var qp,nS;function gO(){if(nS)return qp;nS=1;var n=ei()(),r=tn(),i=r("Object.prototype.toString"),l=function(p){return n&&p&&typeof p=="object"&&Symbol.toStringTag in p?!1:i(p)==="[object Arguments]"},u=function(p){return l(p)?!0:p!==null&&typeof p=="object"&&"length"in p&&typeof p.length=="number"&&p.length>=0&&i(p)!=="[object Array]"&&"callee"in p&&i(p.callee)==="[object Function]"},c=function(){return l(arguments)}();return l.isLegacyArguments=u,qp=c?l:u,qp}const CM={},NM=Object.freeze(Object.defineProperty({__proto__:null,default:CM},Symbol.toStringTag,{value:"Module"})),MM=Qr(NM);var zp,rS;function Js(){if(rS)return zp;rS=1;var n=typeof Map=="function"&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&r&&typeof r.get=="function"?r.get:null,l=n&&Map.prototype.forEach,u=typeof Set=="function"&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,d=u&&c&&typeof c.get=="function"?c.get:null,p=u&&Set.prototype.forEach,h=typeof WeakMap=="function"&&WeakMap.prototype,y=h?WeakMap.prototype.has:null,m=typeof WeakSet=="function"&&WeakSet.prototype,g=m?WeakSet.prototype.has:null,S=typeof WeakRef=="function"&&WeakRef.prototype,A=S?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,E=Object.prototype.toString,C=Function.prototype.toString,L=String.prototype.match,B=String.prototype.slice,M=String.prototype.replace,X=String.prototype.toUpperCase,R=String.prototype.toLowerCase,j=RegExp.prototype.test,O=Array.prototype.concat,k=Array.prototype.join,$=Array.prototype.slice,H=Math.floor,Z=typeof BigInt=="function"?BigInt.prototype.valueOf:null,oe=Object.getOwnPropertySymbols,ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,he=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===he||!0)?Symbol.toStringTag:null,G=Object.prototype.propertyIsEnumerable,W=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(z){return z.__proto__}:null);function ae(z,V){if(z===1/0||z===-1/0||z!==z||z&&z>-1e3&&z<1e3||j.call(/e/,V))return V;var qe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof z=="number"){var Qe=z<0?-H(-z):H(z);if(Qe!==z){var Ie=String(Qe),De=B.call(V,Ie.length+1);return M.call(Ie,qe,"$&_")+"."+M.call(M.call(De,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(V,qe,"$&_")}var be=MM,N=be.custom,I=Oe(N)?N:null,le={__proto__:null,double:'"',single:"'"},re={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};zp=function z(V,qe,Qe,Ie){var De=qe||{};if(Me(De,"quoteStyle")&&!Me(le,De.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Me(De,"maxStringLength")&&(typeof De.maxStringLength=="number"?De.maxStringLength<0&&De.maxStringLength!==1/0:De.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Yt=Me(De,"customInspect")?De.customInspect:!0;if(typeof Yt!="boolean"&&Yt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Me(De,"indent")&&De.indent!==null&&De.indent!==" "&&!(parseInt(De.indent,10)===De.indent&&De.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Me(De,"numericSeparator")&&typeof De.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var hn=De.numericSeparator;if(typeof V>"u")return"undefined";if(V===null)return"null";if(typeof V=="boolean")return V?"true":"false";if(typeof V=="string")return rt(V,De);if(typeof V=="number"){if(V===0)return 1/0/V>0?"0":"-0";var zt=String(V);return hn?ae(V,zt):zt}if(typeof V=="bigint"){var nn=String(V)+"n";return hn?ae(V,nn):nn}var br=typeof De.depth>"u"?5:De.depth;if(typeof Qe>"u"&&(Qe=0),Qe>=br&&br>0&&typeof V=="object")return pe(V)?"[Array]":"[Object]";var ln=Be(De,Qe);if(typeof Ie>"u")Ie=[];else if(ze(Ie,V)>=0)return"[Circular]";function Vt(kt,Ca,xr){if(Ca&&(Ie=$.call(Ie),Ie.push(Ca)),xr){var Er={depth:De.depth};return Me(De,"quoteStyle")&&(Er.quoteStyle=De.quoteStyle),z(kt,Er,Qe+1,Ie)}return z(kt,De,Qe+1,Ie)}if(typeof V=="function"&&!xe(V)){var Zr=Ht(V),yn=mt(V,Vt);return"[Function"+(Zr?": "+Zr:" (anonymous)")+"]"+(yn.length>0?" { "+k.call(yn,", ")+" }":"")}if(Oe(V)){var At=he?M.call(String(V),/^(Symbol\(.*\))_[^)]*$/,"$1"):ue.call(V);return typeof V=="object"&&!he?se(At):At}if(_t(V)){for(var St="<"+R.call(String(V.nodeName)),Rn=V.attributes||[],nr=0;nr",St}if(pe(V)){if(V.length===0)return"[]";var Ra=mt(V,Vt);return ln&&!Ye(Ra)?"["+Nt(Ra,ln)+"]":"[ "+k.call(Ra,", ")+" ]"}if(me(V)){var Sr=mt(V,Vt);return!("cause"in Error.prototype)&&"cause"in V&&!G.call(V,"cause")?"{ ["+String(V)+"] "+k.call(O.call("[cause]: "+Vt(V.cause),Sr),", ")+" }":Sr.length===0?"["+String(V)+"]":"{ ["+String(V)+"] "+k.call(Sr,", ")+" }"}if(typeof V=="object"&&Yt){if(I&&typeof V[I]=="function"&&be)return be(V,{depth:br-Qe});if(Yt!=="symbol"&&typeof V.inspect=="function")return V.inspect()}if(Ze(V)){var wa=[];return l&&l.call(V,function(kt,Ca){wa.push(Vt(Ca,V,!0)+" => "+Vt(kt,V))}),Ue("Map",i.call(V),wa,ln)}if(qt(V)){var wn=[];return p&&p.call(V,function(kt){wn.push(Vt(kt,V))}),Ue("Set",d.call(V),wn,ln)}if(Gt(V))return Te("WeakMap");if(An(V))return Te("WeakSet");if($t(V))return Te("WeakRef");if(de(V))return se(Vt(Number(V)));if(ye(V))return se(Vt(Z.call(V)));if(ve(V))return se(_.call(V));if(Ee(V))return se(Vt(String(V)));if(typeof window<"u"&&V===window)return"{ [object Window] }";if(typeof globalThis<"u"&&V===globalThis||typeof bs<"u"&&V===bs)return"{ [object globalThis] }";if(!ce(V)&&!xe(V)){var Qn=mt(V,Vt),Kn=W?W(V)===Object.prototype:V instanceof Object||V.constructor===Object,We=V instanceof Object?"":"null prototype",pt=!Kn&&fe&&Object(V)===V&&fe in V?B.call(Fe(V),8,-1):We?"Object":"",Cn=Kn||typeof V.constructor!="function"?"":V.constructor.name?V.constructor.name+" ":"",ct=Cn+(pt||We?"["+k.call(O.call([],pt||[],We||[]),": ")+"] ":"");return Qn.length===0?ct+"{}":ln?ct+"{"+Nt(Qn,ln)+"}":ct+"{ "+k.call(Qn,", ")+" }"}return String(V)};function q(z,V,qe){var Qe=qe.quoteStyle||V,Ie=le[Qe];return Ie+z+Ie}function F(z){return M.call(String(z),/"/g,""")}function te(z){return!fe||!(typeof z=="object"&&(fe in z||typeof z[fe]<"u"))}function pe(z){return Fe(z)==="[object Array]"&&te(z)}function ce(z){return Fe(z)==="[object Date]"&&te(z)}function xe(z){return Fe(z)==="[object RegExp]"&&te(z)}function me(z){return Fe(z)==="[object Error]"&&te(z)}function Ee(z){return Fe(z)==="[object String]"&&te(z)}function de(z){return Fe(z)==="[object Number]"&&te(z)}function ve(z){return Fe(z)==="[object Boolean]"&&te(z)}function Oe(z){if(he)return z&&typeof z=="object"&&z instanceof Symbol;if(typeof z=="symbol")return!0;if(!z||typeof z!="object"||!ue)return!1;try{return ue.call(z),!0}catch{}return!1}function ye(z){if(!z||typeof z!="object"||!Z)return!1;try{return Z.call(z),!0}catch{}return!1}var je=Object.prototype.hasOwnProperty||function(z){return z in this};function Me(z,V){return je.call(z,V)}function Fe(z){return E.call(z)}function Ht(z){if(z.name)return z.name;var V=L.call(C.call(z),/^function\s*([\w$]+)/);return V?V[1]:null}function ze(z,V){if(z.indexOf)return z.indexOf(V);for(var qe=0,Qe=z.length;qeV.maxStringLength){var qe=z.length-V.maxStringLength,Qe="... "+qe+" more character"+(qe>1?"s":"");return rt(B.call(z,0,V.maxStringLength),V)+Qe}var Ie=re[V.quoteStyle||"single"];Ie.lastIndex=0;var De=M.call(M.call(z,Ie,"\\$1"),/[\x00-\x1f]/g,ie);return q(De,"single",V)}function ie(z){var V=z.charCodeAt(0),qe={8:"b",9:"t",10:"n",12:"f",13:"r"}[V];return qe?"\\"+qe:"\\x"+(V<16?"0":"")+X.call(V.toString(16))}function se(z){return"Object("+z+")"}function Te(z){return z+" { ? }"}function Ue(z,V,qe,Qe){var Ie=Qe?Nt(qe,Qe):k.call(qe,", ");return z+" ("+V+") {"+Ie+"}"}function Ye(z){for(var V=0;V=0)return!1;return!0}function Be(z,V){var qe;if(z.indent===" ")qe=" ";else if(typeof z.indent=="number"&&z.indent>0)qe=k.call(Array(z.indent+1)," ");else return null;return{base:qe,prev:k.call(Array(V+1),qe)}}function Nt(z,V){if(z.length===0)return"";var qe=` +`+V.prev+V.base;return qe+k.call(z,","+qe)+` +`+V.prev}function mt(z,V){var qe=pe(z),Qe=[];if(qe){Qe.length=z.length;for(var Ie=0;Ie=Z)return H+1;var oe=m($,H);if(oe<55296||oe>56319)return H+1;var ue=m($,H+1);return ue<56320||ue>57343?H+1:H+2},A=function($){var H=0;return{next:function(){var oe=H>=$.length,ue;return oe||(ue=$[H],H+=1),{done:oe,value:ue}}}},_=function($,H){if(l($)||n($))return A($);if(u($)){var Z=0;return{next:function(){var ue=S($,Z),he=g($,Z,ue);return Z=ue,{done:ue>$.length,value:he}}}}if(H&&typeof $["_es6-shim iterator_"]<"u")return $["_es6-shim iterator_"]()};if(!d&&!p)ao.exports=function($){if($!=null)return _($,!0)};else{var E=OO(),C=TO(),L=h("Map.prototype.forEach",!0),B=h("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var M=h("Map.prototype.iterator",!0),X=h("Set.prototype.iterator",!0);var R=h("Map.prototype.@@iterator",!0)||h("Map.prototype._es6-shim iterator_",!0),j=h("Set.prototype.@@iterator",!0)||h("Set.prototype._es6-shim iterator_",!0),O=function($){if(E($)){if(M)return r(M($));if(R)return R($);if(L){var H=[];return L($,function(oe,ue){y(H,[ue,oe])}),A(H)}}if(C($)){if(X)return r(X($));if(j)return j($);if(B){var Z=[];return B($,function(oe){y(Z,oe)}),A(Z)}}};ao.exports=function($){return O($)||_($)}}}return ao.exports}var Kp,yS;function _O(){if(yS)return Kp;yS=1;var n=function(r){return r!==r};return Kp=function(i,l){return i===0&&l===0?1/i===1/l:!!(i===l||n(i)&&n(l))},Kp}var Fp,vS;function AO(){if(vS)return Fp;vS=1;var n=_O();return Fp=function(){return typeof Object.is=="function"?Object.is:n},Fp}var Zp,mS;function zM(){if(mS)return Zp;mS=1;var n=AO(),r=Ja();return Zp=function(){var l=n();return r(Object,{is:l},{is:function(){return Object.is!==l}}),l},Zp}var Ip,gS;function kM(){if(gS)return Ip;gS=1;var n=Ja(),r=il(),i=_O(),l=AO(),u=zM(),c=r(l(),Object);return n(c,{getPolyfill:l,implementation:i,shim:u}),Ip=c,Ip}var Wp,bS;function RO(){if(bS)return Wp;bS=1;var n=il(),r=tn(),i=Fr(),l=i("%ArrayBuffer%",!0),u=r("ArrayBuffer.prototype.byteLength",!0),c=r("Object.prototype.toString"),d=!!l&&!u&&new l(0).slice,p=!!d&&n(d);return Wp=u||p?function(y){if(!y||typeof y!="object")return!1;try{return u?u(y):p(y,0),!0}catch{return!1}}:l?function(y){return c(y)==="[object ArrayBuffer]"}:function(y){return!1},Wp}var Jp,SS;function LM(){if(SS)return Jp;SS=1;var n=tn(),r=n("Date.prototype.getDay"),i=function(p){try{return r(p),!0}catch{return!1}},l=n("Object.prototype.toString"),u="[object Date]",c=ei()();return Jp=function(p){return typeof p!="object"||p===null?!1:c?i(p):l(p)===u},Jp}var eh,xS;function wO(){if(xS)return eh;xS=1;var n=tn(),r=ei()(),i=Hy(),l=Wa(),u;if(r){var c=n("RegExp.prototype.exec"),d={},p=function(){throw d},h={toString:p,valueOf:p};typeof Symbol.toPrimitive=="symbol"&&(h[Symbol.toPrimitive]=p),u=function(S){if(!S||typeof S!="object")return!1;var A=l(S,"lastIndex"),_=A&&i(A,"value");if(!_)return!1;try{c(S,h)}catch(E){return E===d}}}else{var y=n("Object.prototype.toString"),m="[object RegExp]";u=function(S){return!S||typeof S!="object"&&typeof S!="function"?!1:y(S)===m}}return eh=u,eh}var th,ES;function UM(){if(ES)return th;ES=1;var n=tn(),r=n("SharedArrayBuffer.prototype.byteLength",!0);return th=r?function(l){if(!l||typeof l!="object")return!1;try{return r(l),!0}catch{return!1}}:function(l){return!1},th}var nh,OS;function HM(){if(OS)return nh;OS=1;var n=tn(),r=n("Number.prototype.toString"),i=function(p){try{return r(p),!0}catch{return!1}},l=n("Object.prototype.toString"),u="[object Number]",c=ei()();return nh=function(p){return typeof p=="number"?!0:!p||typeof p!="object"?!1:c?i(p):l(p)===u},nh}var rh,TS;function GM(){if(TS)return rh;TS=1;var n=tn(),r=n("Boolean.prototype.toString"),i=n("Object.prototype.toString"),l=function(p){try{return r(p),!0}catch{return!1}},u="[object Boolean]",c=ei()();return rh=function(p){return typeof p=="boolean"?!0:p===null||typeof p!="object"?!1:c?l(p):i(p)===u},rh}var as={exports:{}},ah,_S;function YM(){if(_S)return ah;_S=1;var n=tn(),r=wO(),i=n("RegExp.prototype.exec"),l=Xn();return ah=function(c){if(!r(c))throw new l("`regex` must be a RegExp");return function(p){return i(c,p)!==null}},ah}var AS;function VM(){if(AS)return as.exports;AS=1;var n=tn(),r=n("Object.prototype.toString"),i=qy()(),l=YM();if(i){var u=n("Symbol.prototype.toString"),c=l(/^Symbol\(.*\)$/),d=function(h){return typeof h.valueOf()!="symbol"?!1:c(u(h))};as.exports=function(h){if(typeof h=="symbol")return!0;if(!h||typeof h!="object"||r(h)!=="[object Symbol]")return!1;try{return d(h)}catch{return!1}}}else as.exports=function(h){return!1};return as.exports}var is={exports:{}},ih,RS;function PM(){if(RS)return ih;RS=1;var n=typeof BigInt<"u"&&BigInt;return ih=function(){return typeof n=="function"&&typeof BigInt=="function"&&typeof n(42)=="bigint"&&typeof BigInt(42)=="bigint"},ih}var wS;function XM(){if(wS)return is.exports;wS=1;var n=PM()();if(n){var r=BigInt.prototype.valueOf,i=function(u){try{return r.call(u),!0}catch{}return!1};is.exports=function(u){return u===null||typeof u>"u"||typeof u=="boolean"||typeof u=="string"||typeof u=="number"||typeof u=="symbol"||typeof u=="function"?!1:typeof u=="bigint"?!0:i(u)}}else is.exports=function(u){return!1};return is.exports}var lh,CS;function QM(){if(CS)return lh;CS=1;var n=EO(),r=HM(),i=GM(),l=VM(),u=XM();return lh=function(d){if(d==null||typeof d!="object"&&typeof d!="function")return null;if(n(d))return"String";if(r(d))return"Number";if(i(d))return"Boolean";if(l(d))return"Symbol";if(u(d))return"BigInt"},lh}var oh,NS;function KM(){if(NS)return oh;NS=1;var n=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,r=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,i;n||(i=function(d){return!1});var l=n?n.prototype.has:null,u=r?r.prototype.has:null;return!i&&!l&&(i=function(d){return!1}),oh=i||function(d){if(!d||typeof d!="object")return!1;try{if(l.call(d,l),u)try{u.call(d,u)}catch{return!0}return d instanceof n}catch{}return!1},oh}var ls={exports:{}},MS;function FM(){if(MS)return ls.exports;MS=1;var n=Fr(),r=tn(),i=n("%WeakSet%",!0),l=r("WeakSet.prototype.has",!0);if(l){var u=r("WeakMap.prototype.has",!0);ls.exports=function(d){if(!d||typeof d!="object")return!1;try{if(l(d,l),u)try{u(d,u)}catch{return!0}return d instanceof i}catch{}return!1}}else ls.exports=function(d){return!1};return ls.exports}var uh,DS;function ZM(){if(DS)return uh;DS=1;var n=OO(),r=TO(),i=KM(),l=FM();return uh=function(c){if(c&&typeof c=="object"){if(n(c))return"Map";if(r(c))return"Set";if(i(c))return"WeakMap";if(l(c))return"WeakSet"}return!1},uh}var sh,jS;function IM(){if(jS)return sh;jS=1;var n=Function.prototype.toString,r=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,i,l;if(typeof r=="function"&&typeof Object.defineProperty=="function")try{i=Object.defineProperty({},"length",{get:function(){throw l}}),l={},r(function(){throw 42},null,i)}catch(B){B!==l&&(r=null)}else r=null;var u=/^\s*class\b/,c=function(M){try{var X=n.call(M);return u.test(X)}catch{return!1}},d=function(M){try{return c(M)?!1:(n.call(M),!0)}catch{return!1}},p=Object.prototype.toString,h="[object Object]",y="[object Function]",m="[object GeneratorFunction]",g="[object HTMLAllCollection]",S="[object HTML document.all class]",A="[object HTMLCollection]",_=typeof Symbol=="function"&&!!Symbol.toStringTag,E=!(0 in[,]),C=function(){return!1};if(typeof document=="object"){var L=document.all;p.call(L)===p.call(document.all)&&(C=function(M){if((E||!M)&&(typeof M>"u"||typeof M=="object"))try{var X=p.call(M);return(X===g||X===S||X===A||X===h)&&M("")==null}catch{}return!1})}return sh=r?function(M){if(C(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;try{r(M,null,i)}catch(X){if(X!==l)return!1}return!c(M)&&d(M)}:function(M){if(C(M))return!0;if(!M||typeof M!="function"&&typeof M!="object")return!1;if(_)return d(M);if(c(M))return!1;var X=p.call(M);return X!==y&&X!==m&&!/^\[object HTML/.test(X)?!1:d(M)},sh}var ch,BS;function WM(){if(BS)return ch;BS=1;var n=IM(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,l=function(h,y,m){for(var g=0,S=h.length;g=3&&(g=m),d(h)?l(h,y,g):typeof h=="string"?u(h,y,g):c(h,y,g)},ch}var fh,$S;function JM(){return $S||($S=1,fh=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),fh}var dh,qS;function e5(){if(qS)return dh;qS=1;var n=JM(),r=typeof globalThis>"u"?bs:globalThis;return dh=function(){for(var l=[],u=0;u"u"?bs:globalThis,y=r(),m=l("String.prototype.slice"),g=l("Array.prototype.indexOf",!0)||function(C,L){for(var B=0;B-1?L:L!=="Object"?!1:_(C)}return u?A(C):null},ph}var hh,kS;function n5(){if(kS)return hh;kS=1;var n=tn(),r=n("ArrayBuffer.prototype.byteLength",!0),i=RO();return hh=function(u){return i(u)?r?r(u):u.byteLength:NaN},hh}var yh,LS;function r5(){if(LS)return yh;LS=1;var n=TM(),r=yO(),i=wM(),l=Fr(),u=qM(),c=SO(),d=kM(),p=gO(),h=xO(),y=RO(),m=LM(),g=wO(),S=UM(),A=My(),_=QM(),E=ZM(),C=t5(),L=n5(),B=r("SharedArrayBuffer.prototype.byteLength",!0),M=r("Date.prototype.getTime"),X=Object.getPrototypeOf,R=r("Object.prototype.toString"),j=l("%Set%",!0),O=r("Map.prototype.has",!0),k=r("Map.prototype.get",!0),$=r("Map.prototype.size",!0),H=r("Set.prototype.add",!0),Z=r("Set.prototype.delete",!0),oe=r("Set.prototype.has",!0),ue=r("Set.prototype.size",!0);function he(q,F,te,pe){for(var ce=u(q),xe;(xe=ce.next())&&!xe.done;)if(be(F,xe.value,te,pe))return Z(q,xe.value),!0;return!1}function fe(q){if(typeof q>"u")return null;if(typeof q!="object")return typeof q=="symbol"?!1:typeof q=="string"||typeof q=="number"?+q==+q:!0}function G(q,F,te,pe,ce,xe){var me=fe(te);if(me!=null)return me;var Ee=k(F,me),de=n({},ce,{strict:!1});return typeof Ee>"u"&&!O(F,me)||!be(pe,Ee,de,xe)?!1:!O(q,me)&&be(pe,Ee,de,xe)}function W(q,F,te){var pe=fe(te);return pe??(oe(F,pe)&&!oe(q,pe))}function ae(q,F,te,pe,ce,xe){for(var me=u(q),Ee,de;(Ee=me.next())&&!Ee.done;)if(de=Ee.value,be(te,de,ce,xe)&&be(pe,k(F,de),ce,xe))return Z(q,de),!0;return!1}function be(q,F,te,pe){var ce=te||{};if(ce.strict?d(q,F):q===F)return!0;var xe=_(q),me=_(F);if(xe!==me)return!1;if(!q||!F||typeof q!="object"&&typeof F!="object")return ce.strict?d(q,F):q==F;var Ee=pe.has(q),de=pe.has(F),ve;if(Ee&&de){if(pe.get(q)===pe.get(F))return!0}else ve={};return Ee||pe.set(q,ve),de||pe.set(F,ve),re(q,F,ce,pe)}function N(q){return!q||typeof q!="object"||typeof q.length!="number"||typeof q.copy!="function"||typeof q.slice!="function"||q.length>0&&typeof q[0]!="number"?!1:!!(q.constructor&&q.constructor.isBuffer&&q.constructor.isBuffer(q))}function I(q,F,te,pe){if(ue(q)!==ue(F))return!1;for(var ce=u(q),xe=u(F),me,Ee,de;(me=ce.next())&&!me.done;)if(me.value&&typeof me.value=="object")de||(de=new j),H(de,me.value);else if(!oe(F,me.value)){if(te.strict||!W(q,F,me.value))return!1;de||(de=new j),H(de,me.value)}if(de){for(;(Ee=xe.next())&&!Ee.done;)if(Ee.value&&typeof Ee.value=="object"){if(!he(de,Ee.value,te.strict,pe))return!1}else if(!te.strict&&!oe(q,Ee.value)&&!he(de,Ee.value,te.strict,pe))return!1;return ue(de)===0}return!0}function le(q,F,te,pe){if($(q)!==$(F))return!1;for(var ce=u(q),xe=u(F),me,Ee,de,ve,Oe,ye;(me=ce.next())&&!me.done;)if(ve=me.value[0],Oe=me.value[1],ve&&typeof ve=="object")de||(de=new j),H(de,ve);else if(ye=k(F,ve),typeof ye>"u"&&!O(F,ve)||!be(Oe,ye,te,pe)){if(te.strict||!G(q,F,ve,Oe,te,pe))return!1;de||(de=new j),H(de,ve)}if(de){for(;(Ee=xe.next())&&!Ee.done;)if(ve=Ee.value[0],ye=Ee.value[1],ve&&typeof ve=="object"){if(!ae(de,q,ve,ye,te,pe))return!1}else if(!te.strict&&(!q.has(ve)||!be(k(q,ve),ye,te,pe))&&!ae(de,q,ve,ye,n({},te,{strict:!1}),pe))return!1;return ue(de)===0}return!0}function re(q,F,te,pe){var ce,xe;if(typeof q!=typeof F||q==null||F==null||R(q)!==R(F)||p(q)!==p(F))return!1;var me=h(q),Ee=h(F);if(me!==Ee)return!1;var de=q instanceof Error,ve=F instanceof Error;if(de!==ve||(de||ve)&&(q.name!==F.name||q.message!==F.message))return!1;var Oe=g(q),ye=g(F);if(Oe!==ye||(Oe||ye)&&(q.source!==F.source||i(q)!==i(F)))return!1;var je=m(q),Me=m(F);if(je!==Me||(je||Me)&&M(q)!==M(F)||te.strict&&X&&X(q)!==X(F))return!1;var Fe=C(q),Ht=C(F);if(Fe!==Ht)return!1;if(Fe||Ht){if(q.length!==F.length)return!1;for(ce=0;ce=0;ce--)if(_t[ce]!=rt[ce])return!1;for(ce=_t.length-1;ce>=0;ce--)if(xe=_t[ce],!be(q[xe],F[xe],te,pe))return!1;var ie=E(q),se=E(F);return ie!==se?!1:ie==="Set"||se==="Set"?I(q,F,te,pe):ie==="Map"?le(q,F,te,pe):!0}return yh=function(F,te,pe){return be(F,te,pe,c())},yh}var a5=r5();const i5=_a(a5),Gy=(n,r)=>{for(const i in r)if(typeof r[i]=="object"){if(!i5(n[i],r[i]))return!1}else if(!Object.is(n[i],r[i]))return!1;return!0},os=n=>{let r=0,i;const l=n.readonly;return n.type==="int"||n.type==="float"?r=n.value:n.type==="Quantity"&&(r=n.value.magnitude,i=n.value.unit),[r,l,i]},CO=Xe.memo(n=>{gr();const[r,i]=x.useState(!1),{fullAccessPath:l,value:u,min:c,max:d,stepSize:p,docString:h,isInstantUpdate:y,addNotification:m,changeCallback:g=()=>{},displayName:S,id:A}=n;x.useEffect(()=>{m(`${l} changed to ${u.value}.`)},[n.value.value]),x.useEffect(()=>{m(`${l}.min changed to ${c.value}.`)},[n.min.value,n.min.type]),x.useEffect(()=>{m(`${l}.max changed to ${d.value}.`)},[n.max.value,n.max.type]),x.useEffect(()=>{m(`${l}.stepSize changed to ${p.value}.`)},[n.stepSize.value,n.stepSize.type]);const _=($,H)=>{Array.isArray(H)&&(H=H[0]);let Z;u.type==="Quantity"?Z={type:"Quantity",value:{magnitude:H,unit:u.value.unit},full_access_path:`${l}.value`,readonly:u.readonly,doc:h}:Z={type:u.type,value:H,full_access_path:`${l}.value`,readonly:u.readonly,doc:h},g(Z)},E=($,H,Z)=>{let oe;Z.type==="Quantity"?oe={type:Z.type,value:{magnitude:$,unit:Z.value.unit},full_access_path:`${l}.${H}`,readonly:Z.readonly,doc:null}:oe={type:Z.type,value:$,full_access_path:`${l}.${H}`,readonly:Z.readonly,doc:null},g(oe)},[C,L,B]=os(u),[M,X]=os(c),[R,j]=os(d),[O,k]=os(p);return T.jsxs("div",{className:"component sliderComponent",id:A,children:[!1,T.jsxs(Ts,{children:[T.jsx(ur,{xs:"auto",xl:"auto",children:T.jsxs(Yr.Text,{children:[S,T.jsx(tr,{docString:h})]})}),T.jsx(ur,{xs:"5",xl:!0,children:T.jsx(rM,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:L,value:C,onChange:($,H)=>_($,H),min:M,max:R,step:O,marks:[{value:M,label:`${M}`},{value:R,label:`${R}`}]})}),T.jsx(ur,{xs:"3",xl:!0,children:T.jsx(_s,{isInstantUpdate:y,fullAccessPath:`${l}.value`,docString:h,readOnly:L,type:u.type,value:C,unit:B,addNotification:()=>{},changeCallback:g,id:A+"-value"})}),T.jsx(ur,{xs:"auto",children:T.jsx(fy,{id:`button-${A}`,onClick:()=>i(!r),type:"checkbox",checked:r,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":r,children:T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[T.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),T.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),T.jsx(wo,{in:r,children:T.jsx(an.Group,{children:T.jsxs(Ts,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[T.jsxs(ur,{xs:"auto",children:[T.jsx(an.Label,{children:"Min Value"}),T.jsx(an.Control,{type:"number",value:M,disabled:X,onChange:$=>E(Number($.target.value),"min",c)})]}),T.jsxs(ur,{xs:"auto",children:[T.jsx(an.Label,{children:"Max Value"}),T.jsx(an.Control,{type:"number",value:R,disabled:j,onChange:$=>E(Number($.target.value),"max",d)})]}),T.jsxs(ur,{xs:"auto",children:[T.jsx(an.Label,{children:"Step Size"}),T.jsx(an.Control,{type:"number",value:O,disabled:k,onChange:$=>E(Number($.target.value),"step_size",p)})]})]})})})]})},Gy);CO.displayName="SliderComponent";const NO=Xe.memo(n=>{const{addNotification:r,displayName:i,id:l,value:u,full_access_path:c,enum:d,doc:p,readonly:h,changeCallback:y}=n;return gr(),x.useEffect(()=>{r(`${c} changed to ${u}.`)},[u]),T.jsxs("div",{className:"component enumComponent",id:l,children:[!1,T.jsx(Ts,{children:T.jsxs(ur,{className:"d-flex align-items-center",children:[T.jsxs(Yr.Text,{children:[i,T.jsx(tr,{docString:p})]}),h?T.jsx(an.Control,{style:n.type=="ColouredEnum"?{backgroundColor:d[u]}:{},value:n.type=="ColouredEnum"?u:d[u],name:c,disabled:!0}):T.jsx(an.Select,{"aria-label":"example-select",value:u,name:c,style:n.type=="ColouredEnum"?{backgroundColor:d[u]}:{},onChange:m=>y({type:n.type,name:n.name,enum:d,value:m.target.value,full_access_path:c,readonly:n.readonly,doc:n.doc}),children:Object.entries(d).map(([m,g])=>T.jsx("option",{value:m,children:n.type=="ColouredEnum"?m:g},m))})]})})]})},Gy);NO.displayName="EnumComponent";const Yy=Xe.memo(n=>{const{fullAccessPath:r,docString:i,addNotification:l,displayName:u,id:c}=n;if(!n.render)return null;gr();const d=x.useRef(null),p=()=>{const y=`Method ${r} was triggered.`;l(y)},h=async y=>{y.preventDefault(),CE(r),p()};return T.jsxs("div",{className:"component methodComponent",id:c,children:[!1,T.jsx(an,{onSubmit:h,ref:d,children:T.jsxs(Co,{className:"component",variant:"primary",type:"submit",children:[`${u} `,T.jsx(tr,{docString:i})]})})]})},Gy);Yy.displayName="MethodComponent";const MO=Xe.memo(n=>{const{fullAccessPath:r,readOnly:i,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:p,id:h}=n;gr();const[y,m]=x.useState(n.value);x.useEffect(()=>{n.value!==y&&m(n.value),c(`${r} changed to ${n.value}.`)},[n.value]);const g=_=>{m(_.target.value),u&&d({type:"str",value:_.target.value,full_access_path:r,readonly:i,doc:l})},S=_=>{_.key==="Enter"&&!u&&(d({type:"str",value:y,full_access_path:r,readonly:i,doc:l}),_.preventDefault())},A=()=>{u||d({type:"str",value:y,full_access_path:r,readonly:i,doc:l})};return T.jsxs("div",{className:"component stringComponent",id:h,children:[!1,T.jsxs(Yr,{children:[T.jsxs(Yr.Text,{children:[p,T.jsx(tr,{docString:l})]}),T.jsx(an.Control,{type:"text",name:h,value:y,disabled:i,onChange:g,onKeyDown:S,onBlur:A,className:u&&!i?"instantUpdate":""})]})]})});MO.displayName="StringComponent";function Vy(n){const r=x.useContext(my),i=u=>{var c;return((c=r[u])==null?void 0:c.displayOrder)??Number.MAX_SAFE_INTEGER};let l;return Array.isArray(n)?l=[...n].sort((u,c)=>i(u.full_access_path)-i(c.full_access_path)):l=Object.values(n).sort((u,c)=>i(u.full_access_path)-i(c.full_access_path)),l}const DO=Xe.memo(n=>{const{docString:r,isInstantUpdate:i,addNotification:l,id:u}=n,c=Vy(n.value);return gr(),T.jsxs("div",{className:"listComponent",id:u,children:[!1,T.jsx(tr,{docString:r}),c.map(d=>T.jsx(tl,{attribute:d,isInstantUpdate:i,addNotification:l},d.full_access_path))]})});DO.displayName="ListComponent";var l5=["color","size","title","className"];function Vh(){return Vh=Object.assign?Object.assign.bind():function(n){for(var r=1;r{const u=localStorage.getItem(`${Pi}:${n}`);return u?JSON.parse(u):r});return x.useEffect(()=>{i!==void 0&&localStorage.setItem(`${Pi}:${n}`,JSON.stringify(i))},[i,n]),[i,l]}const Qy=Xe.memo(({props:n,isInstantUpdate:r,addNotification:i,displayName:l,id:u})=>{const[c,d]=Xh(`dataServiceComponent-${u}-open`,!0),p=Vy(n);return l!==""?T.jsx("div",{className:"component dataServiceComponent",id:u,children:T.jsxs(Xi,{children:[T.jsxs(Xi.Header,{onClick:()=>d(!c),style:{cursor:"pointer"},children:[l," ",c?T.jsx(Py,{}):T.jsx(Xy,{})]}),T.jsx(wo,{in:c,children:T.jsx(Xi.Body,{children:p.map(h=>T.jsx(tl,{attribute:h,isInstantUpdate:r,addNotification:i},h.full_access_path))})})]})}):T.jsx("div",{className:"component dataServiceComponent",id:u,children:p.map(h=>T.jsx(tl,{attribute:h,isInstantUpdate:r,addNotification:i},h.full_access_path))})});Qy.displayName="DataServiceComponent";const jO=Xe.memo(({fullAccessPath:n,props:r,isInstantUpdate:i,addNotification:l,displayName:u,id:c})=>{const{connected:d,connect:p,...h}=r,y=d.value;return T.jsxs("div",{className:"deviceConnectionComponent",id:c,children:[!y&&T.jsxs("div",{className:"overlayContent",children:[T.jsxs("div",{children:[u!=""?u:"Device"," is currently not available!"]}),T.jsx(Yy,{fullAccessPath:`${n}.connect`,docString:p.doc,addNotification:l,displayName:"reconnect",id:c+"-connect",render:!0})]}),T.jsx(Qy,{props:h,isInstantUpdate:i,addNotification:l,displayName:u,id:c})]})});jO.displayName="DeviceConnectionComponent";const BO=Xe.memo(n=>{const{fullAccessPath:r,value:i,docString:l,format:u,addNotification:c,displayName:d,id:p}=n;gr();const[h,y]=x.useState(!0);return x.useEffect(()=>{c(`${r} changed.`)},[n.value]),T.jsx("div",{className:"component imageComponent",id:p,children:T.jsxs(Xi,{children:[T.jsxs(Xi.Header,{onClick:()=>y(!h),style:{cursor:"pointer"},children:[d,T.jsx(tr,{docString:l}),h?T.jsx(Py,{}):T.jsx(Xy,{})]}),T.jsx(wo,{in:h,children:T.jsxs(Xi.Body,{children:[!1,u===""&&i===""?T.jsx("p",{children:"No image set in the backend."}):T.jsx(Ax,{src:`data:image/${u.toLowerCase()};base64,${i}`})]})})]})})});BO.displayName="ImageComponent";function d5(n){if(n){let r=n.replace(/\]\./g,"-");return r=r.replace(/[^\w_]+/g,"-"),r=r.replace(/-+$/,""),r}else return"main"}const $O=Xe.memo(n=>{const{docString:r,isInstantUpdate:i,addNotification:l,id:u}=n,c=Vy(n.value);return gr(),T.jsxs("div",{className:"listComponent",id:u,children:[!1,T.jsx(tr,{docString:r}),c.map(d=>T.jsx(tl,{attribute:d,isInstantUpdate:i,addNotification:l},d.full_access_path))]})});$O.displayName="DictComponent";const qO=Xe.memo(n=>{const{fullAccessPath:r,docString:i,status:l,addNotification:u,displayName:c,id:d}=n;gr();const p=x.useRef(null),[h,y]=x.useState(!1);x.useEffect(()=>{let g;l==="RUNNING"?g=`${r} was started.`:g=`${r} was stopped.`,u(g),y(!1)},[l]);const m=async g=>{g.preventDefault();const S=l=="RUNNING"?"stop":"start",A=[r,S].filter(_=>_).join(".");y(!0),CE(A)};return T.jsxs("div",{className:"component taskComponent",id:d,children:[!1,T.jsx(an,{onSubmit:m,ref:p,children:T.jsxs(Yr,{children:[T.jsxs(Yr.Text,{children:[c,T.jsx(tr,{docString:i})]}),T.jsx(Co,{id:`button-${d}`,type:"submit",children:h?T.jsx(lE,{size:"sm",role:"status","aria-hidden":"true"}):l==="RUNNING"?"Stop ":"Start "})]})})]})});qO.displayName="TaskComponent";const p5=n=>{let r="";for(const i of n)!i.startsWith("[")&&r!==""&&(r+="."),r+=i;return r},h5=n=>{const r=[],i=ME(n);for(let l=i.length-1;l>=0;l--){const u=i[l];if(r.unshift(u),!u.startsWith("["))break}return p5(r)};function Yi(n,r=()=>{}){rC(n,r)}const tl=Xe.memo(({attribute:n,isInstantUpdate:r,addNotification:i})=>{const{full_access_path:l}=n,u=d5(l),c=x.useContext(my);let d=h5(l);if(c[l]){if(c[l].display===!1)return null;c[l].displayName&&(d=c[l].displayName)}return n.type==="bool"?T.jsx(DE,{fullAccessPath:l,docString:n.doc,readOnly:n.readonly,value:!!n.value,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type==="float"||n.type==="int"?T.jsx(_s,{type:n.type,fullAccessPath:l,docString:n.doc,readOnly:n.readonly,value:Number(n.value),isInstantUpdate:r,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type==="Quantity"?T.jsx(_s,{type:"Quantity",fullAccessPath:l,docString:n.doc,readOnly:n.readonly,value:Number(n.value.magnitude),unit:n.value.unit,isInstantUpdate:r,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type==="NumberSlider"?T.jsx(CO,{fullAccessPath:l,docString:n.value.value.doc,readOnly:n.readonly,value:n.value.value,min:n.value.min,max:n.value.max,stepSize:n.value.step_size,isInstantUpdate:r,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type==="Enum"||n.type==="ColouredEnum"?T.jsx(NO,{...n,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type==="method"?T.jsx(Yy,{fullAccessPath:l,docString:n.doc,addNotification:i,displayName:d,id:u,render:n.frontend_render}):n.type==="str"?T.jsx(MO,{fullAccessPath:l,value:n.value,readOnly:n.readonly,docString:n.doc,isInstantUpdate:r,addNotification:i,changeCallback:Yi,displayName:d,id:u}):n.type=="Task"?T.jsx(qO,{fullAccessPath:l,docString:n.doc,status:n.value.status.value,addNotification:i,displayName:d,id:u}):n.type==="DataService"?T.jsx(Qy,{props:n.value,isInstantUpdate:r,addNotification:i,displayName:d,id:u}):n.type==="DeviceConnection"?T.jsx(jO,{fullAccessPath:l,props:n.value,isInstantUpdate:r,addNotification:i,displayName:d,id:u}):n.type==="list"?T.jsx(DO,{value:n.value,docString:n.doc,isInstantUpdate:r,addNotification:i,id:u}):n.type==="dict"?T.jsx($O,{value:n.value,docString:n.doc,isInstantUpdate:r,addNotification:i,id:u}):n.type==="Image"?T.jsx(BO,{fullAccessPath:l,docString:n.value.value.doc,displayName:d,id:u,addNotification:i,value:n.value.value.value,format:n.value.format.value}):T.jsx("div",{children:l},l)});tl.displayName="GenericComponent";const y5=(n,r)=>{switch(r.type){case"SET_DATA":return r.data;case"UPDATE_ATTRIBUTE":return n===null?null:{...n,value:lC(n.value,r.fullAccessPath,r.newValue)};default:throw new Error}},v5=()=>{const[n,r]=x.useReducer(y5,null),[i,l]=x.useState(null),[u,c]=x.useState({}),[d,p]=Xh("isInstantUpdate",!1),[h,y]=x.useState(!1),[m,g]=Xh("showNotification",!1),[S,A]=x.useState([]),[_,E]=x.useState("connecting");x.useEffect(()=>(fetch(`${so}://${Pi}/custom.css`,{credentials:"include"}).then(j=>{if(j.ok){const O=document.createElement("link");O.href=`${so}://${Pi}/custom.css`,O.type="text/css",O.rel="stylesheet",document.head.appendChild(O)}}).catch(console.error),kr.on("connect",()=>{fetch(`${so}://${Pi}/service-properties`,{credentials:"include"}).then(j=>j.json()).then(j=>{r({type:"SET_DATA",data:j}),l(j.name),document.title=j.name}),fetch(`${so}://${Pi}/web-settings`,{credentials:"include"}).then(j=>j.json()).then(j=>c(j)),E("connected")}),kr.on("disconnect",()=>{E("disconnected"),setTimeout(()=>{E(j=>j==="disconnected"?"reconnecting":j)},2e3)}),kr.on("notify",X),kr.on("log",R),()=>{kr.off("notify",X),kr.off("log",R)}),[]);const C=x.useCallback((j,O="DEBUG")=>{const k=new Date().toISOString().substring(11,19),$=Math.random();A(H=>[{levelname:O,id:$,message:j,timeStamp:k},...H])},[]),L=j=>{A(O=>O.filter(k=>k.id!==j))},B=()=>y(!1),M=()=>y(!0);function X(j){const{full_access_path:O,value:k}=j.data;r({type:"UPDATE_ATTRIBUTE",fullAccessPath:O,newValue:k})}function R(j){C(j.message,j.levelname)}return n?T.jsxs(T.Fragment,{children:[T.jsx(Sd,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:T.jsxs(px,{fluid:!0,children:[T.jsx(Sd.Brand,{children:i}),T.jsx(Sd.Toggle,{"aria-controls":"offcanvasNavbar",onClick:M})]})}),T.jsx(NE,{showNotification:m,notifications:S,removeNotificationById:L}),T.jsxs(oo,{show:h,onHide:B,placement:"end",style:{zIndex:9999},children:[T.jsx(oo.Header,{closeButton:!0,children:T.jsx(oo.Title,{children:"Settings"})}),T.jsxs(oo.Body,{children:[T.jsx(an.Check,{checked:d,onChange:j=>p(j.target.checked),type:"switch",label:"Enable Instant Update"}),T.jsx(an.Check,{checked:m,onChange:j=>g(j.target.checked),type:"switch",label:"Show Notifications"})]})]}),T.jsx("div",{className:"App navbarOffset",children:T.jsx(my.Provider,{value:u,children:T.jsx(tl,{attribute:n,isInstantUpdate:d,addNotification:C})})}),T.jsx($h,{connectionStatus:_})]}):T.jsx($h,{connectionStatus:_})};var vh={exports:{}},io={},mh={exports:{}},gh={};/** * @license React * scheduler.production.js * @@ -52,7 +52,7 @@ function P_(n,r){for(var i=0;i>>1,N=H[be];if(0>>1;beu(re,ae))zu(F,re)?(H[be]=F,H[z]=ae,be=z):(H[be]=re,H[le]=ae,be=le);else if(zu(F,ae))H[be]=F,H[z]=ae,be=z;else break e}}return I}function u(H,I){var ae=H.sortIndex-I.sortIndex;return ae!==0?ae:H.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var h=[],y=[],m=1,g=null,S=3,R=!1,_=!1,E=!1,C=!1,j=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function X(H){for(var I=i(y);I!==null;){if(I.callback===null)l(y);else if(I.startTime<=H)l(y),I.sortIndex=I.expirationTime,r(h,I);else break;I=i(y)}}function A(H){if(E=!1,X(H),!_)if(i(h)!==null)_=!0,$||($=!0,oe());else{var I=i(y);I!==null&&fe(A,I.startTime-H)}}var $=!1,O=-1,q=5,L=-1;function Y(){return C?!0:!(n.unstable_now()-LH&&Y());){var be=g.callback;if(typeof be=="function"){g.callback=null,S=g.priorityLevel;var N=be(g.expirationTime<=H);if(H=n.unstable_now(),typeof N=="function"){g.callback=N,X(H),I=!0;break t}g===i(h)&&l(h),X(H)}else l(h);g=i(h)}if(g!==null)I=!0;else{var Z=i(y);Z!==null&&fe(A,Z.startTime-H),I=!1}}break e}finally{g=null,S=ae,R=!1}I=void 0}}finally{I?oe():$=!1}}}var oe;if(typeof B=="function")oe=function(){B(W)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,he=ue.port2;ue.port1.onmessage=W,oe=function(){he.postMessage(null)}}else oe=function(){j(W,0)};function fe(H,I){O=j(function(){H(n.unstable_now())},I)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(H){H.callback=null},n.unstable_forceFrameRate=function(H){0>H||125be?(H.sortIndex=ae,r(y,H),i(h)===null&&H===i(y)&&(E?(M(O),O=-1):E=!0,fe(A,ae-be))):(H.sortIndex=N,r(h,H),_||R||(_=!0,$||($=!0,oe()))),H},n.unstable_shouldYield=Y,n.unstable_wrapCallback=function(H){var I=S;return function(){var ae=S;S=I;try{return H.apply(this,arguments)}finally{S=ae}}}}(gh)),gh}var HS;function g5(){return HS||(HS=1,mh.exports=m5()),mh.exports}/** + */var US;function m5(){return US||(US=1,function(n){function r(G,W){var ae=G.length;G.push(W);e:for(;0>>1,N=G[be];if(0>>1;beu(re,ae))qu(F,re)?(G[be]=F,G[q]=ae,be=q):(G[be]=re,G[le]=ae,be=le);else if(qu(F,ae))G[be]=F,G[q]=ae,be=q;else break e}}return W}function u(G,W){var ae=G.sortIndex-W.sortIndex;return ae!==0?ae:G.id-W.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var h=[],y=[],m=1,g=null,S=3,A=!1,_=!1,E=!1,C=!1,L=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function X(G){for(var W=i(y);W!==null;){if(W.callback===null)l(y);else if(W.startTime<=G)l(y),W.sortIndex=W.expirationTime,r(h,W);else break;W=i(y)}}function R(G){if(E=!1,X(G),!_)if(i(h)!==null)_=!0,j||(j=!0,oe());else{var W=i(y);W!==null&&fe(R,W.startTime-G)}}var j=!1,O=-1,k=5,$=-1;function H(){return C?!0:!(n.unstable_now()-$G&&H());){var be=g.callback;if(typeof be=="function"){g.callback=null,S=g.priorityLevel;var N=be(g.expirationTime<=G);if(G=n.unstable_now(),typeof N=="function"){g.callback=N,X(G),W=!0;break t}g===i(h)&&l(h),X(G)}else l(h);g=i(h)}if(g!==null)W=!0;else{var I=i(y);I!==null&&fe(R,I.startTime-G),W=!1}}break e}finally{g=null,S=ae,A=!1}W=void 0}}finally{W?oe():j=!1}}}var oe;if(typeof M=="function")oe=function(){M(Z)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,he=ue.port2;ue.port1.onmessage=Z,oe=function(){he.postMessage(null)}}else oe=function(){L(Z,0)};function fe(G,W){O=L(function(){G(n.unstable_now())},W)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(G){G.callback=null},n.unstable_forceFrameRate=function(G){0>G||125be?(G.sortIndex=ae,r(y,G),i(h)===null&&G===i(y)&&(E?(B(O),O=-1):E=!0,fe(R,ae-be))):(G.sortIndex=N,r(h,G),_||A||(_=!0,j||(j=!0,oe()))),G},n.unstable_shouldYield=H,n.unstable_wrapCallback=function(G){var W=S;return function(){var ae=S;S=W;try{return G.apply(this,arguments)}finally{S=ae}}}}(gh)),gh}var HS;function g5(){return HS||(HS=1,mh.exports=m5()),mh.exports}/** * @license React * react-dom-client.production.js * @@ -60,12 +60,12 @@ function P_(n,r){for(var i=0;iN||(e.current=be[N],be[N]=null,N--)}function re(e,t){N++,be[N]=e.current,e.current=t}var z=Z(null),F=Z(null),te=Z(null),pe=Z(null);function ce(e,t){switch(re(te,t),re(F,e),re(z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?r0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=r0(t),e=a0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(z),re(z,e)}function xe(){le(z),le(F),le(te)}function me(e){e.memoizedState!==null&&re(pe,e);var t=z.current,a=a0(t,e.type);t!==a&&(re(F,e),re(z,a))}function Ee(e){F.current===e&&(le(z),le(F)),pe.current===e&&(le(pe),Ql._currentValue=ae)}var de=Object.prototype.hasOwnProperty,ve=n.unstable_scheduleCallback,Oe=n.unstable_cancelCallback,ye=n.unstable_shouldYield,je=n.unstable_requestPaint,Me=n.unstable_now,Fe=n.unstable_getCurrentPriorityLevel,Ht=n.unstable_ImmediatePriority,ze=n.unstable_UserBlockingPriority,Ze=n.unstable_NormalPriority,Gt=n.unstable_LowPriority,$t=n.unstable_IdlePriority,qt=n.log,An=n.unstable_setDisableYieldValue,_t=null,rt=null;function ie(e){if(typeof qt=="function"&&An(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(_t,e)}catch{}}var se=Math.clz32?Math.clz32:Ye,Te=Math.log,Ue=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(Te(e)/Ue|0)|0}var Be=256,Nt=4194304;function mt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function k(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var s=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var b=o&134217727;return b!==0?(o=b&~f,o!==0?s=mt(o):(v&=b,v!==0?s=mt(v):a||(a=b&~e,a!==0&&(s=mt(a))))):(b=o&~f,b!==0?s=mt(b):v!==0?s=mt(v):a||(a=o&~e,a!==0&&(s=mt(a)))),s===0?0:t!==0&&t!==s&&(t&f)===0&&(f=s&-s,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:s}function V(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qe(){var e=Be;return Be<<=1,(Be&4194048)===0&&(Be=256),e}function Ie(){var e=Nt;return Nt<<=1,(Nt&62914560)===0&&(Nt=4194304),e}function De(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Yt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function hn(e,t,a,o,s,f){var v=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,w=e.expirationTimes,P=e.hiddenUpdates;for(a=v&~a;0N||(e.current=be[N],be[N]=null,N--)}function re(e,t){N++,be[N]=e.current,e.current=t}var q=I(null),F=I(null),te=I(null),pe=I(null);function ce(e,t){switch(re(te,t),re(F,e),re(q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?r0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=r0(t),e=a0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(q),re(q,e)}function xe(){le(q),le(F),le(te)}function me(e){e.memoizedState!==null&&re(pe,e);var t=q.current,a=a0(t,e.type);t!==a&&(re(F,e),re(q,a))}function Ee(e){F.current===e&&(le(q),le(F)),pe.current===e&&(le(pe),Ql._currentValue=ae)}var de=Object.prototype.hasOwnProperty,ve=n.unstable_scheduleCallback,Oe=n.unstable_cancelCallback,ye=n.unstable_shouldYield,je=n.unstable_requestPaint,Me=n.unstable_now,Fe=n.unstable_getCurrentPriorityLevel,Ht=n.unstable_ImmediatePriority,ze=n.unstable_UserBlockingPriority,Ze=n.unstable_NormalPriority,Gt=n.unstable_LowPriority,$t=n.unstable_IdlePriority,qt=n.log,An=n.unstable_setDisableYieldValue,_t=null,rt=null;function ie(e){if(typeof qt=="function"&&An(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(_t,e)}catch{}}var se=Math.clz32?Math.clz32:Ye,Te=Math.log,Ue=Math.LN2;function Ye(e){return e>>>=0,e===0?32:31-(Te(e)/Ue|0)|0}var Be=256,Nt=4194304;function mt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function z(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var s=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var b=o&134217727;return b!==0?(o=b&~f,o!==0?s=mt(o):(v&=b,v!==0?s=mt(v):a||(a=b&~e,a!==0&&(s=mt(a))))):(b=o&~f,b!==0?s=mt(b):v!==0?s=mt(v):a||(a=o&~e,a!==0&&(s=mt(a)))),s===0?0:t!==0&&t!==s&&(t&f)===0&&(f=s&-s,a=t&-t,f>=a||f===32&&(a&4194048)!==0)?t:s}function V(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qe(){var e=Be;return Be<<=1,(Be&4194048)===0&&(Be=256),e}function Ie(){var e=Nt;return Nt<<=1,(Nt&62914560)===0&&(Nt=4194304),e}function De(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Yt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function hn(e,t,a,o,s,f){var v=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var b=e.entanglements,w=e.expirationTimes,P=e.hiddenUpdates;for(a=v&~a;0)":-1s||w[o]!==P[s]){var J=` `+w[o].replace(" at new "," at ");return e.displayName&&J.includes("")&&(J=J.replace("",e.displayName)),J}while(1<=o&&0<=s);break}}}finally{tc=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ti(a):""}function LO(e){switch(e.tag){case 26:case 27:case 5:return ti(e.type);case 16:return ti("Lazy");case 13:return ti("Suspense");case 19:return ti("SuspenseList");case 0:case 15:return nc(e.type,!1);case 11:return nc(e.type.render,!1);case 1:return nc(e.type,!0);case 31:return ti("Activity");default:return""}}function Iy(e){try{var t="";do t+=LO(e),e=e.return;while(e);return t}catch(a){return` Error generating stack: `+a.message+` -`+a.stack}}function Nn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function UO(e){var t=Wy(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,f=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(v){o=""+v,f.call(this,v)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return o},setValue:function(v){o=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ho(e){e._valueTracker||(e._valueTracker=UO(e))}function Jy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=Wy(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Go(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var HO=/[\n"\\]/g;function Mn(e){return e.replace(HO,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function rc(e,t,a,o,s,f,v,b){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Nn(t)):e.value!==""+Nn(t)&&(e.value=""+Nn(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?ac(e,v,Nn(t)):a!=null?ac(e,v,Nn(a)):o!=null&&e.removeAttribute("value"),s==null&&f!=null&&(e.defaultChecked=!!f),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Nn(b):e.removeAttribute("name")}function ev(e,t,a,o,s,f,v,b){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;a=a!=null?""+Nn(a):"",t=t!=null?""+Nn(t):a,b||t===e.value||(e.value=t),e.defaultValue=t}o=o??s,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=b?e.checked:!!o,e.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function ac(e,t,a){t==="number"&&Go(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ni(e,t,a,o){if(e=e.options,t){t={};for(var s=0;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sc=!1;if(Tr)try{var ol={};Object.defineProperty(ol,"passive",{get:function(){sc=!0}}),window.addEventListener("test",ol,ol),window.removeEventListener("test",ol,ol)}catch{sc=!1}var Ir=null,cc=null,Vo=null;function ov(){if(Vo)return Vo;var e,t=cc,a=t.length,o,s="value"in Ir?Ir.value:Ir.textContent,f=s.length;for(e=0;e=cl),pv=" ",hv=!1;function yv(e,t){switch(e){case"keyup":return yT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var li=!1;function mT(e,t){switch(e){case"compositionend":return vv(t);case"keypress":return t.which!==32?null:(hv=!0,pv);case"textInput":return e=t.data,e===pv&&hv?null:e;default:return null}}function gT(e,t){if(li)return e==="compositionend"||!yc&&yv(e,t)?(e=ov(),Vo=cc=Ir=null,li=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Tv(a)}}function Av(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Av(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Go(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Go(e.document)}return t}function gc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var AT=Tr&&"documentMode"in document&&11>=document.documentMode,oi=null,bc=null,hl=null,Sc=!1;function wv(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Sc||oi==null||oi!==Go(o)||(o=oi,"selectionStart"in o&&gc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),hl&&pl(hl,o)||(hl=o,o=Bu(bc,"onSelect"),0>=v,s-=v,Ar=1<<32-se(t)+s|a<f?f:8;var v=H.T,b={};H.T=b,lf(e,!1,t,a);try{var w=s(),P=H.S;if(P!==null&&P(b,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var J=$T(w,o);Cl(e,t,J,xn(e))}else Cl(e,t,o,xn(e))}catch(ne){Cl(e,t,{then:function(){},status:"rejected",reason:ne},xn())}finally{I.p=f,H.T=v}}function UT(){}function rf(e,t,a,o){if(e.tag!==5)throw Error(l(476));var s=Cm(e).queue;wm(e,s,t,ae,a===null?UT:function(){return Nm(e),a(o)})}function Cm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nr,lastRenderedState:ae},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Nm(e){var t=Cm(e).next.queue;Cl(e,t,{},xn())}function af(){return Wt(Ql)}function Mm(){return Dt().memoizedState}function Dm(){return Dt().memoizedState}function HT(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=xn();e=ea(a);var o=ta(t,e,a);o!==null&&(En(o,t,a),Ol(o,t,a)),t={cache:Bc()},e.payload=t;return}t=t.return}}function GT(e,t,a){var o=xn();a={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},hu(e)?Bm(t,a):(a=Tc(e,t,a,o),a!==null&&(En(a,e,o),$m(a,t,o)))}function jm(e,t,a){var o=xn();Cl(e,t,a,o)}function Cl(e,t,a,o){var s={lane:o,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(hu(e))Bm(t,s);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var v=t.lastRenderedState,b=f(v,a);if(s.hasEagerState=!0,s.eagerState=b,vn(b,v))return Io(e,t,s,0),ht===null&&Zo(),!1}catch{}finally{}if(a=Tc(e,t,s,o),a!==null)return En(a,e,o),$m(a,t,o),!0}return!1}function lf(e,t,a,o){if(o={lane:2,revertLane:kf(),action:o,hasEagerState:!1,eagerState:null,next:null},hu(e)){if(t)throw Error(l(479))}else t=Tc(e,a,o,2),t!==null&&En(t,e,2)}function hu(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Bm(e,t){mi=uu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function $m(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,nn(e,a)}}var yu={readContext:Wt,use:cu,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt},qm={readContext:Wt,use:cu,useCallback:function(e,t){return un().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:bm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,pu(4194308,4,Om.bind(null,t,e),a)},useLayoutEffect:function(e,t){return pu(4194308,4,e,t)},useInsertionEffect:function(e,t){pu(4,2,e,t)},useMemo:function(e,t){var a=un();t=t===void 0?null:t;var o=e();if(Ha){ie(!0);try{e()}finally{ie(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=un();if(a!==void 0){var s=a(t);if(Ha){ie(!0);try{a(t)}finally{ie(!1)}}}else s=t;return o.memoizedState=o.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},o.queue=e,e=e.dispatch=GT.bind(null,ke,e),[o.memoizedState,e]},useRef:function(e){var t=un();return e={current:e},t.memoizedState=e},useState:function(e){e=Jc(e);var t=e.queue,a=jm.bind(null,ke,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:tf,useDeferredValue:function(e,t){var a=un();return nf(a,e,t)},useTransition:function(){var e=Jc(!1);return e=wm.bind(null,ke,e.queue,!0,!1),un().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=ke,s=un();if(Je){if(a===void 0)throw Error(l(407));a=a()}else{if(a=t(),ht===null)throw Error(l(349));(Pe&124)!==0||rm(o,t,a)}s.memoizedState=a;var f={value:a,getSnapshot:t};return s.queue=f,bm(im.bind(null,o,f,e),[e]),o.flags|=2048,bi(9,du(),am.bind(null,o,f,a,t),null),a},useId:function(){var e=un(),t=ht.identifierPrefix;if(Je){var a=Rr,o=Ar;a=(o&~(1<<32-se(o)-1)).toString(32)+a,t="«"+t+"R"+a,a=su++,0Ce?(Qt=_e,_e=null):Qt=_e.sibling;var Ke=Q(U,_e,G[Ce],ee);if(Ke===null){_e===null&&(_e=Qt);break}e&&_e&&Ke.alternate===null&&t(U,_e),D=f(Ke,D,Ce),Le===null?Se=Ke:Le.sibling=Ke,Le=Ke,_e=Qt}if(Ce===G.length)return a(U,_e),Je&&$a(U,Ce),Se;if(_e===null){for(;CeCe?(Qt=_e,_e=null):Qt=_e.sibling;var ga=Q(U,_e,Ke.value,ee);if(ga===null){_e===null&&(_e=Qt);break}e&&_e&&ga.alternate===null&&t(U,_e),D=f(ga,D,Ce),Le===null?Se=ga:Le.sibling=ga,Le=ga,_e=Qt}if(Ke.done)return a(U,_e),Je&&$a(U,Ce),Se;if(_e===null){for(;!Ke.done;Ce++,Ke=G.next())Ke=ne(U,Ke.value,ee),Ke!==null&&(D=f(Ke,D,Ce),Le===null?Se=Ke:Le.sibling=Ke,Le=Ke);return Je&&$a(U,Ce),Se}for(_e=o(_e);!Ke.done;Ce++,Ke=G.next())Ke=K(_e,U,Ce,Ke.value,ee),Ke!==null&&(e&&Ke.alternate!==null&&_e.delete(Ke.key===null?Ce:Ke.key),D=f(Ke,D,Ce),Le===null?Se=Ke:Le.sibling=Ke,Le=Ke);return e&&_e.forEach(function(V_){return t(U,V_)}),Je&&$a(U,Ce),Se}function ut(U,D,G,ee){if(typeof G=="object"&&G!==null&&G.type===_&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case S:e:{for(var Se=G.key;D!==null;){if(D.key===Se){if(Se=G.type,Se===_){if(D.tag===7){a(U,D.sibling),ee=s(D,G.props.children),ee.return=U,U=ee;break e}}else if(D.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===q&&km(Se)===D.type){a(U,D.sibling),ee=s(D,G.props),Ml(ee,G),ee.return=U,U=ee;break e}a(U,D);break}else t(U,D);D=D.sibling}G.type===_?(ee=ja(G.props.children,U.mode,ee,G.key),ee.return=U,U=ee):(ee=Jo(G.type,G.key,G.props,null,U.mode,ee),Ml(ee,G),ee.return=U,U=ee)}return v(U);case R:e:{for(Se=G.key;D!==null;){if(D.key===Se)if(D.tag===4&&D.stateNode.containerInfo===G.containerInfo&&D.stateNode.implementation===G.implementation){a(U,D.sibling),ee=s(D,G.children||[]),ee.return=U,U=ee;break e}else{a(U,D);break}else t(U,D);D=D.sibling}ee=Rc(G,U.mode,ee),ee.return=U,U=ee}return v(U);case q:return Se=G._init,G=Se(G._payload),ut(U,D,G,ee)}if(fe(G))return Ne(U,D,G,ee);if(oe(G)){if(Se=oe(G),typeof Se!="function")throw Error(l(150));return G=Se.call(G),Re(U,D,G,ee)}if(typeof G.then=="function")return ut(U,D,vu(G),ee);if(G.$$typeof===B)return ut(U,D,ru(U,G),ee);mu(U,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,D!==null&&D.tag===6?(a(U,D.sibling),ee=s(D,G),ee.return=U,U=ee):(a(U,D),ee=Ac(G,U.mode,ee),ee.return=U,U=ee),v(U)):a(U,D)}return function(U,D,G,ee){try{Nl=0;var Se=ut(U,D,G,ee);return Si=null,Se}catch(_e){if(_e===xl||_e===iu)throw _e;var Le=mn(29,_e,null,U.mode);return Le.lanes=ee,Le.return=U,Le}finally{}}}var xi=Lm(!0),Um=Lm(!1),qn=Z(null),ar=null;function ra(e){var t=e.alternate;re(Ut,Ut.current&1),re(qn,e),ar===null&&(t===null||vi.current!==null||t.memoizedState!==null)&&(ar=e)}function Hm(e){if(e.tag===22){if(re(Ut,Ut.current),re(qn,e),ar===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(ar=e)}}else aa()}function aa(){re(Ut,Ut.current),re(qn,qn.current)}function Mr(e){le(qn),ar===e&&(ar=null),le(Ut)}var Ut=Z(0);function gu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Zf(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function of(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a==null?t:m({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var uf={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=xn(),s=ea(o);s.payload=t,a!=null&&(s.callback=a),t=ta(e,s,o),t!==null&&(En(t,e,o),Ol(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=xn(),s=ea(o);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=ta(e,s,o),t!==null&&(En(t,e,o),Ol(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=xn(),o=ea(a);o.tag=2,t!=null&&(o.callback=t),t=ta(e,o,a),t!==null&&(En(t,e,a),Ol(t,e,a))}};function Gm(e,t,a,o,s,f,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,v):t.prototype&&t.prototype.isPureReactComponent?!pl(a,o)||!pl(s,f):!0}function Ym(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&uf.enqueueReplaceState(t,t.state,null)}function Ga(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=m({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}var bu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}};function Vm(e){bu(e)}function Pm(e){}function Xm(e){bu(e)}function Su(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Qm(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function sf(e,t,a){return a=ea(a),a.tag=3,a.payload={element:null},a.callback=function(){Su(e,t)},a}function Km(e){return e=ea(e),e.tag=3,e}function Fm(e,t,a,o){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var f=o.value;e.payload=function(){return s(f)},e.callback=function(){Qm(t,a,o)}}var v=a.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){Qm(t,a,o),typeof s!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})})}function VT(e,t,a,o,s){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&gl(t,a,s,!0),a=qn.current,a!==null){switch(a.tag){case 13:return ar===null?jf():a.alternate===null&&Et===0&&(Et=3),a.flags&=-257,a.flags|=65536,a.lanes=s,o===zc?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),$f(e,o,s)),!1;case 22:return a.flags|=65536,o===zc?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),$f(e,o,s)),!1}throw Error(l(435,a.tag))}return $f(e,o,s),jf(),!1}if(Je)return t=qn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,o!==Nc&&(e=Error(l(422),{cause:o}),ml(Dn(e,a)))):(o!==Nc&&(t=Error(l(423),{cause:o}),ml(Dn(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,o=Dn(o,a),s=sf(e.stateNode,o,s),Uc(e,s),Et!==4&&(Et=2)),!1;var f=Error(l(520),{cause:o});if(f=Dn(f,a),kl===null?kl=[f]:kl.push(f),Et!==4&&(Et=2),t===null)return!0;o=Dn(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=sf(a.stateNode,o,e),Uc(a,e),!1;case 1:if(t=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(ca===null||!ca.has(f))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Km(s),Fm(s,e,a,o),Uc(a,s),!1}a=a.return}while(a!==null);return!1}var Zm=Error(l(461)),Pt=!1;function Kt(e,t,a,o){t.child=e===null?Um(t,null,a,o):xi(t,e.child,a,o)}function Im(e,t,a,o,s){a=a.render;var f=t.ref;if("ref"in o){var v={};for(var b in o)b!=="ref"&&(v[b]=o[b])}else v=o;return La(t),o=Pc(e,t,a,v,f,s),b=Xc(),e!==null&&!Pt?(Qc(e,t,s),Dr(e,t,s)):(Je&&b&&wc(t),t.flags|=1,Kt(e,t,o,s),t.child)}function Wm(e,t,a,o,s){if(e===null){var f=a.type;return typeof f=="function"&&!_c(f)&&f.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=f,Jm(e,t,f,o,s)):(e=Jo(a.type,null,o,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!mf(e,s)){var v=f.memoizedProps;if(a=a.compare,a=a!==null?a:pl,a(v,o)&&e.ref===t.ref)return Dr(e,t,s)}return t.flags|=1,e=_r(f,o),e.ref=t.ref,e.return=t,t.child=e}function Jm(e,t,a,o,s){if(e!==null){var f=e.memoizedProps;if(pl(f,o)&&e.ref===t.ref)if(Pt=!1,t.pendingProps=o=f,mf(e,s))(e.flags&131072)!==0&&(Pt=!0);else return t.lanes=e.lanes,Dr(e,t,s)}return cf(e,t,a,o,s)}function eg(e,t,a){var o=t.pendingProps,s=o.children,f=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((t.flags&128)!==0){if(o=f!==null?f.baseLanes|a:a,e!==null){for(s=t.child=e.child,f=0;s!==null;)f=f|s.lanes|s.childLanes,s=s.sibling;t.childLanes=f&~o}else t.childLanes=0,t.child=null;return tg(e,t,o,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&au(t,f!==null?f.cachePool:null),f!==null?Jv(t,f):Gc(),Hm(t);else return t.lanes=t.childLanes=536870912,tg(e,t,f!==null?f.baseLanes|a:a,a)}else f!==null?(au(t,f.cachePool),Jv(t,f),aa(),t.memoizedState=null):(e!==null&&au(t,null),Gc(),aa());return Kt(e,t,s,a),t.child}function tg(e,t,a,o){var s=qc();return s=s===null?null:{parent:Lt._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&au(t,null),Gc(),Hm(t),e!==null&&gl(e,t,o,!0),null}function xu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(l(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function cf(e,t,a,o,s){return La(t),a=Pc(e,t,a,o,void 0,s),o=Xc(),e!==null&&!Pt?(Qc(e,t,s),Dr(e,t,s)):(Je&&o&&wc(t),t.flags|=1,Kt(e,t,a,s),t.child)}function ng(e,t,a,o,s,f){return La(t),t.updateQueue=null,a=tm(t,o,a,s),em(e),o=Xc(),e!==null&&!Pt?(Qc(e,t,f),Dr(e,t,f)):(Je&&o&&wc(t),t.flags|=1,Kt(e,t,a,f),t.child)}function rg(e,t,a,o,s){if(La(t),t.stateNode===null){var f=fi,v=a.contextType;typeof v=="object"&&v!==null&&(f=Wt(v)),f=new a(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=uf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},kc(t),v=a.contextType,f.context=typeof v=="object"&&v!==null?Wt(v):fi,f.state=t.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(of(t,a,v,o),f.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&uf.enqueueReplaceState(f,f.state,null),_l(t,o,f,s),Tl(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){f=t.stateNode;var b=t.memoizedProps,w=Ga(a,b);f.props=w;var P=f.context,J=a.contextType;v=fi,typeof J=="object"&&J!==null&&(v=Wt(J));var ne=a.getDerivedStateFromProps;J=typeof ne=="function"||typeof f.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,J||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b||P!==v)&&Ym(t,f,o,v),Jr=!1;var Q=t.memoizedState;f.state=Q,_l(t,o,f,s),Tl(),P=t.memoizedState,b||Q!==P||Jr?(typeof ne=="function"&&(of(t,a,ne,o),P=t.memoizedState),(w=Jr||Gm(t,a,w,o,Q,P,v))?(J||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=P),f.props=o,f.state=P,f.context=v,o=w):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,Lc(e,t),v=t.memoizedProps,J=Ga(a,v),f.props=J,ne=t.pendingProps,Q=f.context,P=a.contextType,w=fi,typeof P=="object"&&P!==null&&(w=Wt(P)),b=a.getDerivedStateFromProps,(P=typeof b=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==ne||Q!==w)&&Ym(t,f,o,w),Jr=!1,Q=t.memoizedState,f.state=Q,_l(t,o,f,s),Tl();var K=t.memoizedState;v!==ne||Q!==K||Jr||e!==null&&e.dependencies!==null&&nu(e.dependencies)?(typeof b=="function"&&(of(t,a,b,o),K=t.memoizedState),(J=Jr||Gm(t,a,J,o,Q,K,w)||e!==null&&e.dependencies!==null&&nu(e.dependencies))?(P||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,K,w),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,K,w)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=K),f.props=o,f.state=K,f.context=w,o=J):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),o=!1)}return f=o,xu(e,t),o=(t.flags&128)!==0,f||o?(f=t.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&o?(t.child=xi(t,e.child,null,s),t.child=xi(t,null,a,s)):Kt(e,t,a,s),t.memoizedState=f.state,e=t.child):e=Dr(e,t,s),e}function ag(e,t,a,o){return vl(),t.flags|=256,Kt(e,t,a,o),t.child}var ff={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function df(e){return{baseLanes:e,cachePool:Pv()}}function pf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zn),e}function ig(e,t,a){var o=t.pendingProps,s=!1,f=(t.flags&128)!==0,v;if((v=f)||(v=e!==null&&e.memoizedState===null?!1:(Ut.current&2)!==0),v&&(s=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Je){if(s?ra(t):aa(),Je){var b=xt,w;if(w=b){e:{for(w=b,b=rr;w.nodeType!==8;){if(!b){b=null;break e}if(w=In(w.nextSibling),w===null){b=null;break e}}b=w}b!==null?(t.memoizedState={dehydrated:b,treeContext:Ba!==null?{id:Ar,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},w=mn(18,null,null,0),w.stateNode=b,w.return=t,t.child=w,rn=t,xt=null,w=!0):w=!1}w||za(t)}if(b=t.memoizedState,b!==null&&(b=b.dehydrated,b!==null))return Zf(b)?t.lanes=32:t.lanes=536870912,null;Mr(t)}return b=o.children,o=o.fallback,s?(aa(),s=t.mode,b=Eu({mode:"hidden",children:b},s),o=ja(o,s,a,null),b.return=t,o.return=t,b.sibling=o,t.child=b,s=t.child,s.memoizedState=df(a),s.childLanes=pf(e,v,a),t.memoizedState=ff,o):(ra(t),hf(t,b))}if(w=e.memoizedState,w!==null&&(b=w.dehydrated,b!==null)){if(f)t.flags&256?(ra(t),t.flags&=-257,t=yf(e,t,a)):t.memoizedState!==null?(aa(),t.child=e.child,t.flags|=128,t=null):(aa(),s=o.fallback,b=t.mode,o=Eu({mode:"visible",children:o.children},b),s=ja(s,b,a,null),s.flags|=2,o.return=t,s.return=t,o.sibling=s,t.child=o,xi(t,e.child,null,a),o=t.child,o.memoizedState=df(a),o.childLanes=pf(e,v,a),t.memoizedState=ff,t=s);else if(ra(t),Zf(b)){if(v=b.nextSibling&&b.nextSibling.dataset,v)var P=v.dgst;v=P,o=Error(l(419)),o.stack="",o.digest=v,ml({value:o,source:null,stack:null}),t=yf(e,t,a)}else if(Pt||gl(e,t,a,!1),v=(a&e.childLanes)!==0,Pt||v){if(v=ht,v!==null&&(o=a&-a,o=(o&42)!==0?1:br(o),o=(o&(v.suspendedLanes|a))!==0?0:o,o!==0&&o!==w.retryLane))throw w.retryLane=o,ci(e,o),En(v,e,o),Zm;b.data==="$?"||jf(),t=yf(e,t,a)}else b.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,xt=In(b.nextSibling),rn=t,Je=!0,qa=null,rr=!1,e!==null&&(Bn[$n++]=Ar,Bn[$n++]=Rr,Bn[$n++]=Ba,Ar=e.id,Rr=e.overflow,Ba=t),t=hf(t,o.children),t.flags|=4096);return t}return s?(aa(),s=o.fallback,b=t.mode,w=e.child,P=w.sibling,o=_r(w,{mode:"hidden",children:o.children}),o.subtreeFlags=w.subtreeFlags&65011712,P!==null?s=_r(P,s):(s=ja(s,b,a,null),s.flags|=2),s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,b=e.child.memoizedState,b===null?b=df(a):(w=b.cachePool,w!==null?(P=Lt._currentValue,w=w.parent!==P?{parent:P,pool:P}:w):w=Pv(),b={baseLanes:b.baseLanes|a,cachePool:w}),s.memoizedState=b,s.childLanes=pf(e,v,a),t.memoizedState=ff,o):(ra(t),a=e.child,e=a.sibling,a=_r(a,{mode:"visible",children:o.children}),a.return=t,a.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=a,t.memoizedState=null,a)}function hf(e,t){return t=Eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Eu(e,t){return e=mn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function yf(e,t,a){return xi(t,e.child,null,a),e=hf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lg(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Dc(e.return,t,a)}function vf(e,t,a,o,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=o,f.tail=a,f.tailMode=s)}function og(e,t,a){var o=t.pendingProps,s=o.revealOrder,f=o.tail;if(Kt(e,t,o.children,a),o=Ut.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lg(e,a,t);else if(e.tag===19)lg(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(re(Ut,o),s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&gu(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),vf(t,!1,s,a,f);break;case"backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&gu(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}vf(t,!0,a,null,f);break;case"together":vf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Dr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),sa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(gl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,a=_r(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=_r(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function mf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&nu(e)))}function PT(e,t,a){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),Wr(t,Lt,e.memoizedState.cache),vl();break;case 27:case 5:me(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:Wr(t,t.type,t.memoizedProps.value);break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(ra(t),t.flags|=128,null):(a&t.child.childLanes)!==0?ig(e,t,a):(ra(t),e=Dr(e,t,a),e!==null?e.sibling:null);ra(t);break;case 19:var s=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(gl(e,t,a,!1),o=(a&t.childLanes)!==0),s){if(o)return og(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),re(Ut,Ut.current),o)break;return null;case 22:case 23:return t.lanes=0,eg(e,t,a);case 24:Wr(t,Lt,e.memoizedState.cache)}return Dr(e,t,a)}function ug(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pt=!0;else{if(!mf(e,a)&&(t.flags&128)===0)return Pt=!1,PT(e,t,a);Pt=(e.flags&131072)!==0}else Pt=!1,Je&&(t.flags&1048576)!==0&&kv(t,tu,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,s=o._init;if(o=s(o._payload),t.type=o,typeof o=="function")_c(o)?(e=Ga(o,e),t.tag=1,t=rg(null,t,o,e,a)):(t.tag=0,t=cf(null,t,o,e,a));else{if(o!=null){if(s=o.$$typeof,s===X){t.tag=11,t=Im(null,t,o,e,a);break e}else if(s===O){t.tag=14,t=Wm(null,t,o,e,a);break e}}throw t=he(o)||o,Error(l(306,t,""))}}return t;case 0:return cf(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,s=Ga(o,t.pendingProps),rg(e,t,o,s,a);case 3:e:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(l(387));o=t.pendingProps;var f=t.memoizedState;s=f.element,Lc(e,t),_l(t,o,null,a);var v=t.memoizedState;if(o=v.cache,Wr(t,Lt,o),o!==f.cache&&jc(t,[Lt],a,!0),Tl(),o=v.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=ag(e,t,o,a);break e}else if(o!==s){s=Dn(Error(l(424)),t),ml(s),t=ag(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(xt=In(e.firstChild),rn=t,Je=!0,qa=null,rr=!0,a=Um(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(vl(),o===s){t=Dr(e,t,a);break e}Kt(e,t,o,a)}t=t.child}return t;case 26:return xu(e,t),e===null?(a=d0(t.type,null,t.pendingProps,null))?t.memoizedState=a:Je||(a=t.type,e=t.pendingProps,o=qu(te.current).createElement(a),o[At]=t,o[St]=e,Zt(o,a,e),ct(o),t.stateNode=o):t.memoizedState=d0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return me(t),e===null&&Je&&(o=t.stateNode=s0(t.type,t.pendingProps,te.current),rn=t,rr=!0,s=xt,pa(t.type)?(If=s,xt=In(o.firstChild)):xt=s),Kt(e,t,t.pendingProps.children,a),xu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Je&&((s=o=xt)&&(o=b_(o,t.type,t.pendingProps,rr),o!==null?(t.stateNode=o,rn=t,xt=In(o.firstChild),rr=!1,s=!0):s=!1),s||za(t)),me(t),s=t.type,f=t.pendingProps,v=e!==null?e.memoizedProps:null,o=f.children,Qf(s,f)?o=null:v!==null&&Qf(s,v)&&(t.flags|=32),t.memoizedState!==null&&(s=Pc(e,t,zT,null,null,a),Ql._currentValue=s),xu(e,t),Kt(e,t,o,a),t.child;case 6:return e===null&&Je&&((e=a=xt)&&(a=S_(a,t.pendingProps,rr),a!==null?(t.stateNode=a,rn=t,xt=null,e=!0):e=!1),e||za(t)),null;case 13:return ig(e,t,a);case 4:return ce(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=xi(t,null,o,a):Kt(e,t,o,a),t.child;case 11:return Im(e,t,t.type,t.pendingProps,a);case 7:return Kt(e,t,t.pendingProps,a),t.child;case 8:return Kt(e,t,t.pendingProps.children,a),t.child;case 12:return Kt(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.pendingProps,Wr(t,t.type,o.value),Kt(e,t,o.children,a),t.child;case 9:return s=t.type._context,o=t.pendingProps.children,La(t),s=Wt(s),o=o(s),t.flags|=1,Kt(e,t,o,a),t.child;case 14:return Wm(e,t,t.type,t.pendingProps,a);case 15:return Jm(e,t,t.type,t.pendingProps,a);case 19:return og(e,t,a);case 31:return o=t.pendingProps,a=t.mode,o={mode:o.mode,children:o.children},e===null?(a=Eu(o,a),a.ref=t.ref,t.child=a,a.return=t,t=a):(a=_r(e.child,o),a.ref=t.ref,t.child=a,a.return=t,t=a),t;case 22:return eg(e,t,a);case 24:return La(t),o=Wt(Lt),e===null?(s=qc(),s===null&&(s=ht,f=Bc(),s.pooledCache=f,f.refCount++,f!==null&&(s.pooledCacheLanes|=a),s=f),t.memoizedState={parent:o,cache:s},kc(t),Wr(t,Lt,s)):((e.lanes&a)!==0&&(Lc(e,t),_l(t,null,null,a),Tl()),s=e.memoizedState,f=t.memoizedState,s.parent!==o?(s={parent:o,cache:o},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Wr(t,Lt,o)):(o=f.cache,Wr(t,Lt,o),o!==s.cache&&jc(t,[Lt],a,!0))),Kt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function jr(e){e.flags|=4}function sg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!m0(t)){if(t=qn.current,t!==null&&((Pe&4194048)===Pe?ar!==null:(Pe&62914560)!==Pe&&(Pe&536870912)===0||t!==ar))throw El=zc,Xv;e.flags|=8192}}function Ou(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ie():536870912,e.lanes|=t,_i|=t)}function Dl(e,t){if(!Je)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function gt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags&65011712,o|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function XT(e,t,a){var o=t.pendingProps;switch(Cc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(t),null;case 1:return gt(t),null;case 3:return a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Cr(Lt),xe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(yl(t)?jr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hv())),gt(t),null;case 26:return a=t.memoizedState,e===null?(jr(t),a!==null?(gt(t),sg(t,a)):(gt(t),t.flags&=-16777217)):a?a!==e.memoizedState?(jr(t),gt(t),sg(t,a)):(gt(t),t.flags&=-16777217):(e.memoizedProps!==o&&jr(t),gt(t),t.flags&=-16777217),null;case 27:Ee(t),a=te.current;var s=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==o&&jr(t);else{if(!o){if(t.stateNode===null)throw Error(l(166));return gt(t),null}e=z.current,yl(t)?Lv(t):(e=s0(s,o,a),t.stateNode=e,jr(t))}return gt(t),null;case 5:if(Ee(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&jr(t);else{if(!o){if(t.stateNode===null)throw Error(l(166));return gt(t),null}if(e=z.current,yl(t))Lv(t);else{switch(s=qu(te.current),e){case 1:e=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=s.createElement("div"),e.innerHTML=" +