diff --git a/src/pydase/frontend/assets/index-DpoEqi_N.js b/src/pydase/frontend/assets/index-BLJetjaQ.js similarity index 79% rename from src/pydase/frontend/assets/index-DpoEqi_N.js rename to src/pydase/frontend/assets/index-BLJetjaQ.js index 2e8b4c2..f4054e0 100644 --- a/src/pydase/frontend/assets/index-DpoEqi_N.js +++ b/src/pydase/frontend/assets/index-BLJetjaQ.js @@ -14,11 +14,11 @@ function OT(e,t){for(var n=0;n1?c-1:0),f=1;f1?c-1:0),f=1;f"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(G1)}catch{}}G1(),H1.exports=vt;var Y1=H1.exports;const fa=Ra(Y1),xv={disabled:!1},V1=ne.createContext(null);var uw=function(t){return t.scrollTop},Cl="unmounted",$r="exited",Vt="entering",tr="entered",ji="exiting",xr=function(e){XT(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var l=a,o=l&&!l.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?o?(s=$r,i.appearStatus=Vt):s=tr:r.unmountOnExit||r.mountOnEnter?s=Cl:s=$r,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var l=a.in;return l&&i.status===Cl?{status:$r}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var l=this.state.status;this.props.in?l!==Vt&&l!==tr&&(i=Vt):(l===Vt||l===tr)&&(i=ji)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,l,o;return i=l=o=a,a!=null&&typeof a!="number"&&(i=a.exit,l=a.enter,o=a.appear!==void 0?a.appear:l),{exit:i,enter:l,appear:o}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:fa.findDOMNode(this);l&&uw(l)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$r&&this.setState({status:Cl})},n.performEnter=function(a){var i=this,l=this.props.enter,o=this.context?this.context.isMounting:a,s=this.props.nodeRef?[o]:[fa.findDOMNode(this),o],u=s[0],c=s[1],d=this.getTimeouts(),f=o?d.appear:d.enter;if(!a&&!l||xv.disabled){this.safeSetState({status:tr},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Vt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:tr},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var a=this,i=this.props.exit,l=this.getTimeouts(),o=this.props.nodeRef?void 0:fa.findDOMNode(this);if(!i||xv.disabled){this.safeSetState({status:$r},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:ji},function(){a.props.onExiting(o),a.onTransitionEnd(l.exit,function(){a.safeSetState({status:$r},function(){a.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,l=!0;return this.nextCallback=function(o){l&&(l=!1,i.nextCallback=null,a(o))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var l=this.props.nodeRef?this.props.nodeRef.current:fa.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!l||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===Cl)return null;var i=this.props,l=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=bn(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ne.createElement(V1.Provider,{value:null},typeof l=="function"?l(a,o):ne.cloneElement(ne.Children.only(l),o))},t}(ne.Component);xr.contextType=V1;xr.propTypes={};function Ya(){}xr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ya,onEntering:Ya,onEntered:Ya,onExit:Ya,onExiting:Ya,onExited:Ya};xr.UNMOUNTED=Cl;xr.EXITED=$r;xr.ENTERING=Vt;xr.ENTERED=tr;xr.EXITING=ji;function X1(e){return e.code==="Escape"||e.keyCode===27}function cw(){const e=y.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function zo(e){if(!e||typeof e=="function")return null;const{major:t}=cw();return t>=19?e.props.ref:e.ref}const _c=!!(typeof window<"u"&&window.document&&window.document.createElement);var fp=!1,dp=!1;try{var Xf={get passive(){return fp=!0},get once(){return dp=fp=!0}};_c&&(window.addEventListener("test",Xf,Xf),window.removeEventListener("test",Xf,!0))}catch{}function fw(e,t,n,r){if(r&&typeof r!="boolean"&&!dp){var a=r.once,i=r.capture,l=n;!dp&&a&&(l=n.__once||function o(s){this.removeEventListener(t,o,i),n.call(this,s)},n.__once=l),e.addEventListener(t,l,fp?r:i)}e.addEventListener(t,n,r)}function dw(e,t,n,r){var a=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)}function ir(e,t,n,r){return fw(e,t,n,r),function(){dw(e,t,n,r)}}function pw(e,t,n,r){if(r===void 0&&(r=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,r),e.dispatchEvent(a)}}function hw(e){var t=fr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function yw(e,t,n){n===void 0&&(n=5);var r=!1,a=setTimeout(function(){r||pw(e,"transitionend",!0)},t+n),i=ir(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(a),i()}}function mw(e,t,n,r){n==null&&(n=hw(e)||0);var a=yw(e,n,r),i=ir(e,"transitionend",t);return function(){a(),i()}}function Ov(e,t){const n=fr(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function ry(e,t){const n=Ov(e,"transitionDuration"),r=Ov(e,"transitionDelay"),a=mw(e,i=>{i.target===e&&(a(),t(i))},n+r)}function pl(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...a){t.apply(this,a),n.apply(this,a)}},null)}function P1(e){e.offsetHeight}const _v=e=>!e||typeof e=="function"?e:t=>{e.current=t};function vw(e,t){const n=_v(e),r=_v(t);return a=>{n&&n(a),r&&r(a)}}function ay(e,t){return y.useMemo(()=>vw(e,t),[e,t])}function Ou(e){return e&&"setState"in e?fa.findDOMNode(e):e??null}const iy=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,onExited:i,addEndListener:l,children:o,childRef:s,...u},c)=>{const d=y.useRef(null),f=ay(d,s),h=O=>{f(Ou(O))},b=O=>T=>{O&&d.current&&O(d.current,T)},S=y.useCallback(b(e),[e]),x=y.useCallback(b(t),[t]),m=y.useCallback(b(n),[n]),p=y.useCallback(b(r),[r]),v=y.useCallback(b(a),[a]),E=y.useCallback(b(i),[i]),_=y.useCallback(b(l),[l]);return g.jsx(xr,{ref:c,...u,onEnter:S,onEntered:m,onEntering:x,onExit:p,onExited:E,onExiting:v,addEndListener:_,nodeRef:d,children:typeof o=="function"?(O,T)=>o(O,{...T,ref:h}):ne.cloneElement(o,{ref:h})})}),gw={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function bw(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],a=gw[e];return r+parseInt(fr(t,a[0]),10)+parseInt(fr(t,a[1]),10)}const Sw={[$r]:"collapse",[ji]:"collapsing",[Vt]:"collapsing",[tr]:"collapse show"},Tc=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,className:i,children:l,dimension:o="height",in:s=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:h=bw,...b},S)=>{const x=typeof o=="function"?o():o,m=y.useMemo(()=>pl(O=>{O.style[x]="0"},e),[x,e]),p=y.useMemo(()=>pl(O=>{const T=`scroll${x[0].toUpperCase()}${x.slice(1)}`;O.style[x]=`${O[T]}px`},t),[x,t]),v=y.useMemo(()=>pl(O=>{O.style[x]=null},n),[x,n]),E=y.useMemo(()=>pl(O=>{O.style[x]=`${h(x,O)}px`,P1(O)},r),[r,h,x]),_=y.useMemo(()=>pl(O=>{O.style[x]=null},a),[x,a]);return g.jsx(iy,{ref:S,addEndListener:ry,...b,"aria-expanded":b.role?s:null,onEnter:m,onEntering:p,onEntered:v,onExit:E,onExiting:_,childRef:zo(l),in:s,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:f,children:(O,T)=>ne.cloneElement(l,{...T,className:z(i,l.props.className,Sw[O],x==="width"&&"collapse-horizontal")})})});function Ew(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e},[e]),t}function Ii(e){const t=Ew(e);return y.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const ly=e=>y.forwardRef((t,n)=>g.jsx("div",{...t,ref:n,className:z(t.className,e)}));function Tv(){return y.useState(null)}function xw(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e},[e]),t}function An(e){const t=xw(e);return y.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function F1(){const e=y.useRef(!0),t=y.useRef(()=>e.current);return y.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Ow(e){const t=y.useRef(null);return y.useEffect(()=>{t.current=e}),t.current}const _w=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Tw=typeof document<"u",wv=Tw||_w?y.useLayoutEffect:y.useEffect,ww=["as","disabled"];function Aw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Rw(e){return!e||e.trim()==="#"}function Q1({tagName:e,disabled:t,href:n,target:r,rel:a,role:i,onClick:l,tabIndex:o=0,type:s}){e||(n!=null||r!=null||a!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:s||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&Rw(n))&&f.preventDefault(),t){f.stopPropagation();return}l==null||l(f)},d=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:o,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?a:void 0,onClick:c,onKeyDown:d},u]}const Cw=y.forwardRef((e,t)=>{let{as:n,disabled:r}=e,a=Aw(e,ww);const[i,{tagName:l}]=Q1(Object.assign({tagName:n,disabled:r},a));return g.jsx(l,Object.assign({},a,i,{ref:t}))});Cw.displayName="Button";const $w={[Vt]:"show",[tr]:"show"},uo=y.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...a},i)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},o=y.useCallback((s,u)=>{P1(s),r==null||r(s,u)},[r]);return g.jsx(iy,{ref:i,addEndListener:ry,...l,onEnter:o,childRef:zo(t),children:(s,u)=>y.cloneElement(t,{...u,className:z("fade",e,t.props.className,$w[s],n[s])})})});uo.displayName="Fade";const Nw={"aria-label":he.string,onClick:he.func,variant:he.oneOf(["white"])},wc=y.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},a)=>g.jsx("button",{ref:a,type:"button",className:z("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));wc.displayName="CloseButton";wc.propTypes=Nw;const K1=y.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:a,as:i="span",...l},o)=>{const s=H(e,"badge");return g.jsx(i,{ref:o,...l,className:z(a,s,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});K1.displayName="Badge";const Lo=y.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:a=!1,disabled:i=!1,className:l,...o},s)=>{const u=H(t,"btn"),[c,{tagName:d}]=Q1({tagName:e,disabled:i,...o}),f=d;return g.jsx(f,{...c,...o,ref:s,disabled:i,className:z(l,u,a&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,o.href&&i&&"disabled")})});Lo.displayName="Button";const oy=y.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"card-body"),g.jsx(n,{ref:a,className:z(e,t),...r})));oy.displayName="CardBody";const Z1=y.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"card-footer"),g.jsx(n,{ref:a,className:z(e,t),...r})));Z1.displayName="CardFooter";const W1=y.createContext(null);W1.displayName="CardHeaderContext";const J1=y.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},a)=>{const i=H(e,"card-header"),l=y.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return g.jsx(W1.Provider,{value:l,children:g.jsx(n,{ref:a,...r,className:z(t,i)})})});J1.displayName="CardHeader";const I1=y.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...a},i)=>{const l=H(e,"card-img");return g.jsx(r,{ref:i,className:z(n?`${l}-${n}`:l,t),...a})});I1.displayName="CardImg";const eS=y.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"card-img-overlay"),g.jsx(n,{ref:a,className:z(e,t),...r})));eS.displayName="CardImgOverlay";const tS=y.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},a)=>(t=H(t,"card-link"),g.jsx(n,{ref:a,className:z(e,t),...r})));tS.displayName="CardLink";const Mw=ly("h6"),nS=y.forwardRef(({className:e,bsPrefix:t,as:n=Mw,...r},a)=>(t=H(t,"card-subtitle"),g.jsx(n,{ref:a,className:z(e,t),...r})));nS.displayName="CardSubtitle";const rS=y.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},a)=>(t=H(t,"card-text"),g.jsx(n,{ref:a,className:z(e,t),...r})));rS.displayName="CardText";const jw=ly("h5"),aS=y.forwardRef(({className:e,bsPrefix:t,as:n=jw,...r},a)=>(t=H(t,"card-title"),g.jsx(n,{ref:a,className:z(e,t),...r})));aS.displayName="CardTitle";const iS=y.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:a,body:i=!1,children:l,as:o="div",...s},u)=>{const c=H(e,"card");return g.jsx(o,{ref:u,...s,className:z(t,c,n&&`bg-${n}`,r&&`text-${r}`,a&&`border-${a}`),children:i?g.jsx(oy,{children:l}):l})});iS.displayName="Card";const Ei=Object.assign(iS,{Img:I1,Title:aS,Subtitle:nS,Body:oy,Link:tS,Text:rS,Header:J1,Footer:Z1,ImgOverlay:eS});function Dw(){const e=y.useRef(!0),t=y.useRef(()=>e.current);return y.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Bw(e){const t=y.useRef(e);return t.current=e,t}function kw(e){const t=Bw(e);y.useEffect(()=>()=>t.current(),[])}const pp=2**31-1;function lS(e,t,n){const r=n-Date.now();e.current=r<=pp?setTimeout(t,r):setTimeout(()=>lS(e,t,n),pp)}function oS(){const e=Dw(),t=y.useRef();return kw(()=>clearTimeout(t.current)),y.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(a,i=0){e()&&(n(),i<=pp?t.current=setTimeout(a,i):lS(t,a,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function zw(e,t){return y.Children.toArray(e).some(n=>y.isValidElement(n)&&n.type===t)}function Lw({as:e,bsPrefix:t,className:n,...r}){t=H(t,"col");const a=D1(),i=B1(),l=[],o=[];return a.forEach(s=>{const u=r[s];delete r[s];let c,d,f;typeof u=="object"&&u!=null?{span:c,offset:d,order:f}=u:c=u;const h=s!==i?`-${s}`:"";c&&l.push(c===!0?`${t}${h}`:`${t}${h}-${c}`),f!=null&&o.push(`order${h}-${f}`),d!=null&&o.push(`offset${h}-${d}`)}),[{...r,className:z(n,...l,...o)},{as:e,bsPrefix:t,spans:l}]}const On=y.forwardRef((e,t)=>{const[{className:n,...r},{as:a="div",bsPrefix:i,spans:l}]=Lw(e);return g.jsx(a,{...r,ref:t,className:z(n,!l.length&&i)})});On.displayName="Col";const sS=y.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...a},i)=>{const l=H(e,"container"),o=typeof t=="string"?`-${t}`:"-fluid";return g.jsx(n,{ref:i,...a,className:z(r,t?`${l}${o}`:l)})});sS.displayName="Container";var Uw=Function.prototype.bind.call(Function.prototype.call,[].slice);function Va(e,t){return Uw(e.querySelectorAll(t))}var Av=Object.prototype.hasOwnProperty;function Rv(e,t,n){for(n of e.keys())if(Ul(n,t))return n}function Ul(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Ul(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(a=r,a&&typeof a=="object"&&(a=Rv(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(a=r[0],a&&typeof a=="object"&&(a=Rv(t,a),!a)||!Ul(r[1],t.get(a)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Av.call(e,n)&&++r&&!Av.call(t,n)||!(n in t)||!Ul(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Hw(e){const t=F1();return[e[0],y.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var bt="top",tn="bottom",nn="right",St="left",sy="auto",Uo=[bt,tn,nn,St],Di="start",co="end",qw="clippingParents",uS="viewport",hl="popper",Gw="reference",Cv=Uo.reduce(function(e,t){return e.concat([t+"-"+Di,t+"-"+co])},[]),cS=[].concat(Uo,[sy]).reduce(function(e,t){return e.concat([t,t+"-"+Di,t+"-"+co])},[]),Yw="beforeRead",Vw="read",Xw="afterRead",Pw="beforeMain",Fw="main",Qw="afterMain",Kw="beforeWrite",Zw="write",Ww="afterWrite",Jw=[Yw,Vw,Xw,Pw,Fw,Qw,Kw,Zw,Ww];function $n(e){return e.split("-")[0]}function Dt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xa(e){var t=Dt(e).Element;return e instanceof t||e instanceof Element}function Nn(e){var t=Dt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uy(e){if(typeof ShadowRoot>"u")return!1;var t=Dt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ha=Math.max,_u=Math.min,Bi=Math.round;function hp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function fS(){return!/^((?!chrome|android).)*safari/i.test(hp())}function ki(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&Nn(e)&&(a=e.offsetWidth>0&&Bi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Bi(r.height)/e.offsetHeight||1);var l=xa(e)?Dt(e):window,o=l.visualViewport,s=!fS()&&n,u=(r.left+(s&&o?o.offsetLeft:0))/a,c=(r.top+(s&&o?o.offsetTop:0))/i,d=r.width/a,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function cy(e){var t=ki(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function dS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wr(e){return e?(e.nodeName||"").toLowerCase():null}function hr(e){return Dt(e).getComputedStyle(e)}function Iw(e){return["table","td","th"].indexOf(Wr(e))>=0}function na(e){return((xa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ac(e){return Wr(e)==="html"?e:e.assignedSlot||e.parentNode||(uy(e)?e.host:null)||na(e)}function $v(e){return!Nn(e)||hr(e).position==="fixed"?null:e.offsetParent}function eA(e){var t=/firefox/i.test(hp()),n=/Trident/i.test(hp());if(n&&Nn(e)){var r=hr(e);if(r.position==="fixed")return null}var a=Ac(e);for(uy(a)&&(a=a.host);Nn(a)&&["html","body"].indexOf(Wr(a))<0;){var i=hr(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Ho(e){for(var t=Dt(e),n=$v(e);n&&Iw(n)&&hr(n).position==="static";)n=$v(n);return n&&(Wr(n)==="html"||Wr(n)==="body"&&hr(n).position==="static")?t:n||eA(e)||t}function fy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hl(e,t,n){return ha(e,_u(t,n))}function tA(e,t,n){var r=Hl(e,t,n);return r>n?n:r}function pS(){return{top:0,right:0,bottom:0,left:0}}function hS(e){return Object.assign({},pS(),e)}function yS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var nA=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,hS(typeof t!="number"?t:yS(t,Uo))};function rA(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,o=$n(n.placement),s=fy(o),u=[St,nn].indexOf(o)>=0,c=u?"height":"width";if(!(!i||!l)){var d=nA(a.padding,n),f=cy(i),h=s==="y"?bt:St,b=s==="y"?tn:nn,S=n.rects.reference[c]+n.rects.reference[s]-l[s]-n.rects.popper[c],x=l[s]-n.rects.reference[s],m=Ho(i),p=m?s==="y"?m.clientHeight||0:m.clientWidth||0:0,v=S/2-x/2,E=d[h],_=p-f[c]-d[b],O=p/2-f[c]/2+v,T=Hl(E,O,_),w=s;n.modifiersData[r]=(t={},t[w]=T,t.centerOffset=T-O,t)}}function aA(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||dS(t.elements.popper,a)&&(t.elements.arrow=a))}const iA={name:"arrow",enabled:!0,phase:"main",fn:rA,effect:aA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zi(e){return e.split("-")[1]}var lA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oA(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Bi(n*a)/a||0,y:Bi(r*a)/a||0}}function Nv(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,l=e.offsets,o=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=l.x,h=f===void 0?0:f,b=l.y,S=b===void 0?0:b,x=typeof c=="function"?c({x:h,y:S}):{x:h,y:S};h=x.x,S=x.y;var m=l.hasOwnProperty("x"),p=l.hasOwnProperty("y"),v=St,E=bt,_=window;if(u){var O=Ho(n),T="clientHeight",w="clientWidth";if(O===Dt(n)&&(O=na(n),hr(O).position!=="static"&&o==="absolute"&&(T="scrollHeight",w="scrollWidth")),O=O,a===bt||(a===St||a===nn)&&i===co){E=tn;var $=d&&O===_&&_.visualViewport?_.visualViewport.height:O[T];S-=$-r.height,S*=s?1:-1}if(a===St||(a===bt||a===tn)&&i===co){v=nn;var R=d&&O===_&&_.visualViewport?_.visualViewport.width:O[w];h-=R-r.width,h*=s?1:-1}}var M=Object.assign({position:o},u&&lA),G=c===!0?oA({x:h,y:S},Dt(n)):{x:h,y:S};if(h=G.x,S=G.y,s){var U;return Object.assign({},M,(U={},U[E]=p?"0":"",U[v]=m?"0":"",U.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+S+"px)":"translate3d("+h+"px, "+S+"px, 0)",U))}return Object.assign({},M,(t={},t[E]=p?S+"px":"",t[v]=m?h+"px":"",t.transform="",t))}function sA(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,o=n.roundOffsets,s=o===void 0?!0:o,u={placement:$n(t.placement),variation:zi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Nv(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nv(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const uA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sA,data:{}};var ps={passive:!0};function cA(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,l=r.resize,o=l===void 0?!0:l,s=Dt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ps)}),o&&s.addEventListener("resize",n.update,ps),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ps)}),o&&s.removeEventListener("resize",n.update,ps)}}const fA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cA,data:{}};var dA={left:"right",right:"left",bottom:"top",top:"bottom"};function qs(e){return e.replace(/left|right|bottom|top/g,function(t){return dA[t]})}var pA={start:"end",end:"start"};function Mv(e){return e.replace(/start|end/g,function(t){return pA[t]})}function dy(e){var t=Dt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function py(e){return ki(na(e)).left+dy(e).scrollLeft}function hA(e,t){var n=Dt(e),r=na(e),a=n.visualViewport,i=r.clientWidth,l=r.clientHeight,o=0,s=0;if(a){i=a.width,l=a.height;var u=fS();(u||!u&&t==="fixed")&&(o=a.offsetLeft,s=a.offsetTop)}return{width:i,height:l,x:o+py(e),y:s}}function yA(e){var t,n=na(e),r=dy(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=ha(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=ha(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-r.scrollLeft+py(e),s=-r.scrollTop;return hr(a||n).direction==="rtl"&&(o+=ha(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:l,x:o,y:s}}function hy(e){var t=hr(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function mS(e){return["html","body","#document"].indexOf(Wr(e))>=0?e.ownerDocument.body:Nn(e)&&hy(e)?e:mS(Ac(e))}function ql(e,t){var n;t===void 0&&(t=[]);var r=mS(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Dt(r),l=a?[i].concat(i.visualViewport||[],hy(r)?r:[]):r,o=t.concat(l);return a?o:o.concat(ql(Ac(l)))}function yp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mA(e,t){var n=ki(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jv(e,t,n){return t===uS?yp(hA(e,n)):xa(t)?mA(t,n):yp(yA(na(e)))}function vA(e){var t=ql(Ac(e)),n=["absolute","fixed"].indexOf(hr(e).position)>=0,r=n&&Nn(e)?Ho(e):e;return xa(r)?t.filter(function(a){return xa(a)&&dS(a,r)&&Wr(a)!=="body"}):[]}function gA(e,t,n,r){var a=t==="clippingParents"?vA(e):[].concat(t),i=[].concat(a,[n]),l=i[0],o=i.reduce(function(s,u){var c=jv(e,u,r);return s.top=ha(c.top,s.top),s.right=_u(c.right,s.right),s.bottom=_u(c.bottom,s.bottom),s.left=ha(c.left,s.left),s},jv(e,l,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function vS(e){var t=e.reference,n=e.element,r=e.placement,a=r?$n(r):null,i=r?zi(r):null,l=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,s;switch(a){case bt:s={x:l,y:t.y-n.height};break;case tn:s={x:l,y:t.y+t.height};break;case nn:s={x:t.x+t.width,y:o};break;case St:s={x:t.x-n.width,y:o};break;default:s={x:t.x,y:t.y}}var u=a?fy(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Di:s[u]=s[u]-(t[c]/2-n[c]/2);break;case co:s[u]=s[u]+(t[c]/2-n[c]/2);break}}return s}function fo(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,l=i===void 0?e.strategy:i,o=n.boundary,s=o===void 0?qw:o,u=n.rootBoundary,c=u===void 0?uS:u,d=n.elementContext,f=d===void 0?hl:d,h=n.altBoundary,b=h===void 0?!1:h,S=n.padding,x=S===void 0?0:S,m=hS(typeof x!="number"?x:yS(x,Uo)),p=f===hl?Gw:hl,v=e.rects.popper,E=e.elements[b?p:f],_=gA(xa(E)?E:E.contextElement||na(e.elements.popper),s,c,l),O=ki(e.elements.reference),T=vS({reference:O,element:v,strategy:"absolute",placement:a}),w=yp(Object.assign({},v,T)),$=f===hl?w:O,R={top:_.top-$.top+m.top,bottom:$.bottom-_.bottom+m.bottom,left:_.left-$.left+m.left,right:$.right-_.right+m.right},M=e.modifiersData.offset;if(f===hl&&M){var G=M[a];Object.keys(R).forEach(function(U){var X=[nn,tn].indexOf(U)>=0?1:-1,q=[bt,tn].indexOf(U)>=0?"y":"x";R[U]+=G[q]*X})}return R}function bA(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,l=n.padding,o=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?cS:s,c=zi(r),d=c?o?Cv:Cv.filter(function(b){return zi(b)===c}):Uo,f=d.filter(function(b){return u.indexOf(b)>=0});f.length===0&&(f=d);var h=f.reduce(function(b,S){return b[S]=fo(e,{placement:S,boundary:a,rootBoundary:i,padding:l})[$n(S)],b},{});return Object.keys(h).sort(function(b,S){return h[b]-h[S]})}function SA(e){if($n(e)===sy)return[];var t=qs(e);return[Mv(e),t,Mv(t)]}function EA(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,l=n.altAxis,o=l===void 0?!0:l,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,b=h===void 0?!0:h,S=n.allowedAutoPlacements,x=t.options.placement,m=$n(x),p=m===x,v=s||(p||!b?[qs(x)]:SA(x)),E=[x].concat(v).reduce(function(V,ve){return V.concat($n(ve)===sy?bA(t,{placement:ve,boundary:c,rootBoundary:d,padding:u,flipVariations:b,allowedAutoPlacements:S}):ve)},[]),_=t.rects.reference,O=t.rects.popper,T=new Map,w=!0,$=E[0],R=0;R=0,q=X?"width":"height",C=fo(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),j=X?U?nn:St:U?tn:bt;_[q]>O[q]&&(j=qs(j));var D=qs(j),K=[];if(i&&K.push(C[G]<=0),o&&K.push(C[j]<=0,C[D]<=0),K.every(function(V){return V})){$=M,w=!1;break}T.set(M,K)}if(w)for(var ie=b?3:1,Pe=function(ve){var zt=E.find(function(_t){var it=T.get(_t);if(it)return it.slice(0,ve).every(function(Lt){return Lt})});if(zt)return $=zt,"break"},ke=ie;ke>0;ke--){var xe=Pe(ke);if(xe==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const xA={name:"flip",enabled:!0,phase:"main",fn:EA,requiresIfExists:["offset"],data:{_skip:!1}};function Dv(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Bv(e){return[bt,nn,tn,St].some(function(t){return e[t]>=0})}function OA(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,l=fo(t,{elementContext:"reference"}),o=fo(t,{altBoundary:!0}),s=Dv(l,r),u=Dv(o,a,i),c=Bv(s),d=Bv(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const _A={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:OA};function TA(e,t,n){var r=$n(e),a=[St,bt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],o=i[1];return l=l||0,o=(o||0)*a,[St,nn].indexOf(r)>=0?{x:o,y:l}:{x:l,y:o}}function wA(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,l=cS.reduce(function(c,d){return c[d]=TA(d,t.rects,i),c},{}),o=l[t.placement],s=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=l}const AA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wA};function RA(e){var t=e.state,n=e.name;t.modifiersData[n]=vS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const CA={name:"popperOffsets",enabled:!0,phase:"read",fn:RA,data:{}};function $A(e){return e==="x"?"y":"x"}function NA(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,l=n.altAxis,o=l===void 0?!1:l,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,b=n.tetherOffset,S=b===void 0?0:b,x=fo(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),m=$n(t.placement),p=zi(t.placement),v=!p,E=fy(m),_=$A(E),O=t.modifiersData.popperOffsets,T=t.rects.reference,w=t.rects.popper,$=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,R=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(O){if(i){var U,X=E==="y"?bt:St,q=E==="y"?tn:nn,C=E==="y"?"height":"width",j=O[E],D=j+x[X],K=j-x[q],ie=h?-w[C]/2:0,Pe=p===Di?T[C]:w[C],ke=p===Di?-w[C]:-T[C],xe=t.elements.arrow,V=h&&xe?cy(xe):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pS(),zt=ve[X],_t=ve[q],it=Hl(0,T[C],V[C]),Lt=v?T[C]/2-ie-it-zt-R.mainAxis:Pe-it-zt-R.mainAxis,Vn=v?-T[C]/2+ie+it+_t+R.mainAxis:ke+it+_t+R.mainAxis,Xn=t.elements.arrow&&Ho(t.elements.arrow),Pn=Xn?E==="y"?Xn.clientTop||0:Xn.clientLeft||0:0,lt=(U=M==null?void 0:M[E])!=null?U:0,fe=j+Lt-lt-Pn,Y=j+Vn-lt,Ie=Hl(h?_u(D,fe):D,j,h?ha(K,Y):K);O[E]=Ie,G[E]=Ie-j}if(o){var dt,Tt=E==="x"?bt:St,fl=E==="x"?tn:nn,Oe=O[_],cn=_==="y"?"height":"width",Ua=Oe+x[Tt],Ha=Oe-x[fl],la=[bt,St].indexOf(m)!==-1,dl=(dt=M==null?void 0:M[_])!=null?dt:0,qa=la?Ua:Oe-T[cn]-w[cn]-dl+R.altAxis,Tr=la?Oe+T[cn]+w[cn]-dl-R.altAxis:Ha,N=h&&la?tA(qa,Oe,Tr):Hl(h?qa:Ua,Oe,h?Tr:Ha);O[_]=N,G[_]=N-Oe}t.modifiersData[r]=G}}const MA={name:"preventOverflow",enabled:!0,phase:"main",fn:NA,requiresIfExists:["offset"]};function jA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DA(e){return e===Dt(e)||!Nn(e)?dy(e):jA(e)}function BA(e){var t=e.getBoundingClientRect(),n=Bi(t.width)/e.offsetWidth||1,r=Bi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kA(e,t,n){n===void 0&&(n=!1);var r=Nn(t),a=Nn(t)&&BA(t),i=na(t),l=ki(e,a,n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((Wr(t)!=="body"||hy(i))&&(o=DA(t)),Nn(t)?(s=ki(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=py(i))),{x:l.left+o.scrollLeft-s.x,y:l.top+o.scrollTop-s.y,width:l.width,height:l.height}}function zA(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(o){if(!n.has(o)){var s=t.get(o);s&&a(s)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function LA(e){var t=zA(e);return Jw.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function UA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function HA(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var kv={placement:"bottom",modifiers:[],strategy:"absolute"};function zv(){for(var e=arguments.length,t=new Array(e),n=0;n=0)continue;n[r]=e[r]}return n}const XA={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},PA={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(a=>a.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,a=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&a==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},FA=[];function QA(e,t,n={}){let{enabled:r=!0,placement:a="bottom",strategy:i="absolute",modifiers:l=FA}=n,o=VA(n,YA);const s=y.useRef(l),u=y.useRef(),c=y.useCallback(()=>{var x;(x=u.current)==null||x.update()},[]),d=y.useCallback(()=>{var x;(x=u.current)==null||x.forceUpdate()},[]),[f,h]=Hw(y.useState({placement:a,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),b=y.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:x})=>{const m={},p={};Object.keys(x.elements).forEach(v=>{m[v]=x.styles[v],p[v]=x.attributes[v]}),h({state:x,styles:m,attributes:p,update:c,forceUpdate:d,placement:x.placement})}}),[c,d,h]),S=y.useMemo(()=>(Ul(s.current,l)||(s.current=l),s.current),[l]);return y.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:a,strategy:i,modifiers:[...S,b,XA]})},[i,a,b,r,S]),y.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=GA(e,t,Object.assign({},o,{placement:a,strategy:i,modifiers:[...S,PA,b]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,h(x=>Object.assign({},x,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function po(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var KA=function(){},ZA=KA;const WA=Ra(ZA),Lv=()=>{};function JA(e){return e.button===0}function IA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Gs=e=>e&&("current"in e?e.current:e),Uv={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function eR(e,t=Lv,{disabled:n,clickTrigger:r="click"}={}){const a=y.useRef(!1),i=y.useRef(!1),l=y.useCallback(u=>{const c=Gs(e);WA(!!c,"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"),a.current=!c||IA(u)||!JA(u)||!!po(c,u.target)||i.current,i.current=!1},[e]),o=An(u=>{const c=Gs(e);c&&po(c,u.target)?i.current=!0:i.current=!1}),s=An(u=>{a.current||t(u)});y.useEffect(()=>{var u,c;if(n||e==null)return;const d=ko(Gs(e)),f=d.defaultView||window;let h=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,b=null;Uv[r]&&(b=ir(d,Uv[r],o,!0));const S=ir(d,r,l,!0),x=ir(d,r,p=>{if(p===h){h=void 0;return}s(p)});let m=[];return"ontouchstart"in d.documentElement&&(m=[].slice.call(d.body.children).map(p=>ir(p,"mousemove",Lv))),()=>{b==null||b(),S(),x(),m.forEach(p=>p())}},[e,n,r,l,o,s])}function tR(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function nR(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function rR({enabled:e,enableEvents:t,placement:n,flip:r,offset:a,fixed:i,containerPadding:l,arrowElement:o,popperConfig:s={}}){var u,c,d,f,h;const b=tR(s.modifiers);return Object.assign({},s,{placement:n,enabled:e,strategy:i?"fixed":s.strategy,modifiers:nR(Object.assign({},b,{eventListeners:{enabled:t,options:(u=b.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},b.preventOverflow,{options:l?Object.assign({padding:l},(c=b.preventOverflow)==null?void 0:c.options):(d=b.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:a},(f=b.offset)==null?void 0:f.options)},arrow:Object.assign({},b.arrow,{enabled:!!o,options:Object.assign({},(h=b.arrow)==null?void 0:h.options,{element:o})}),flip:Object.assign({enabled:!!r},b.flip)}))})}const aR=y.createContext(null),iR="data-rr-ui-";function lR(e){return`${iR}${e}`}const gS=y.createContext(_c?window:void 0);gS.Provider;function yy(){return y.useContext(gS)}const oR=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",sR=typeof document<"u",bS=sR||oR?y.useLayoutEffect:y.useEffect,SS=y.createContext(null);SS.displayName="InputGroupContext";const qo=y.createContext(null);qo.displayName="NavbarContext";he.string,he.bool,he.bool,he.bool,he.bool;const ES=y.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:a=!1,thumbnail:i=!1,...l},o)=>(e=H(e,"img"),g.jsx("img",{ref:o,...l,className:z(t,n&&`${e}-fluid`,r&&"rounded",a&&"rounded-circle",i&&`${e}-thumbnail`)})));ES.displayName="Image";const uR={type:he.string,tooltip:he.bool,as:he.elementType},Rc=y.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...a},i)=>g.jsx(e,{...a,ref:i,className:z(t,`${n}-${r?"tooltip":"feedback"}`)}));Rc.displayName="Feedback";Rc.propTypes=uR;const yr=y.createContext({}),Go=y.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:a=!1,isInvalid:i=!1,as:l="input",...o},s)=>{const{controlId:u}=y.useContext(yr);return t=H(t,"form-check-input"),g.jsx(l,{...o,ref:s,type:r,id:e||u,className:z(n,t,a&&"is-valid",i&&"is-invalid")})});Go.displayName="FormCheckInput";const Tu=y.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},a)=>{const{controlId:i}=y.useContext(yr);return e=H(e,"form-check-label"),g.jsx("label",{...r,ref:a,htmlFor:n||i,className:z(t,e)})});Tu.displayName="FormCheckLabel";const xS=y.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:a=!1,disabled:i=!1,isValid:l=!1,isInvalid:o=!1,feedbackTooltip:s=!1,feedback:u,feedbackType:c,className:d,style:f,title:h="",type:b="checkbox",label:S,children:x,as:m="input",...p},v)=>{t=H(t,"form-check"),n=H(n,"form-switch");const{controlId:E}=y.useContext(yr),_=y.useMemo(()=>({controlId:e||E}),[E,e]),O=!x&&S!=null&&S!==!1||zw(x,Tu),T=g.jsx(Go,{...p,type:b==="switch"?"checkbox":b,ref:v,isValid:l,isInvalid:o,disabled:i,as:m});return g.jsx(yr.Provider,{value:_,children:g.jsx("div",{style:f,className:z(d,O&&t,r&&`${t}-inline`,a&&`${t}-reverse`,b==="switch"&&n),children:x||g.jsxs(g.Fragment,{children:[T,O&&g.jsx(Tu,{title:h,children:S}),u&&g.jsx(Rc,{type:c,tooltip:s,children:u})]})})})});xS.displayName="FormCheck";const wu=Object.assign(xS,{Input:Go,Label:Tu}),OS=y.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:a,className:i,isValid:l=!1,isInvalid:o=!1,plaintext:s,readOnly:u,as:c="input",...d},f)=>{const{controlId:h}=y.useContext(yr);return e=H(e,"form-control"),g.jsx(c,{...d,type:t,size:r,ref:f,readOnly:u,id:a||h,className:z(i,s?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,l&&"is-valid",o&&"is-invalid")})});OS.displayName="FormControl";const cR=Object.assign(OS,{Feedback:Rc}),_S=y.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"form-floating"),g.jsx(n,{ref:a,className:z(e,t),...r})));_S.displayName="FormFloating";const my=y.forwardRef(({controlId:e,as:t="div",...n},r)=>{const a=y.useMemo(()=>({controlId:e}),[e]);return g.jsx(yr.Provider,{value:a,children:g.jsx(t,{...n,ref:r})})});my.displayName="FormGroup";const TS=y.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:a,htmlFor:i,...l},o)=>{const{controlId:s}=y.useContext(yr);t=H(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=z(a,t,r&&"visually-hidden",n&&u);return i=i||s,n?g.jsx(On,{ref:o,as:"label",className:c,htmlFor:i,...l}):g.jsx(e,{ref:o,className:c,htmlFor:i,...l})});TS.displayName="FormLabel";const wS=y.forwardRef(({bsPrefix:e,className:t,id:n,...r},a)=>{const{controlId:i}=y.useContext(yr);return e=H(e,"form-range"),g.jsx("input",{...r,type:"range",ref:a,className:z(t,e),id:n||i})});wS.displayName="FormRange";const AS=y.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:a=!1,isInvalid:i=!1,id:l,...o},s)=>{const{controlId:u}=y.useContext(yr);return e=H(e,"form-select"),g.jsx("select",{...o,size:n,ref:s,className:z(r,e,t&&`${e}-${t}`,a&&"is-valid",i&&"is-invalid"),id:l||u})});AS.displayName="FormSelect";const RS=y.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...a},i)=>(e=H(e,"form-text"),g.jsx(n,{...a,ref:i,className:z(t,e,r&&"text-muted")})));RS.displayName="FormText";const CS=y.forwardRef((e,t)=>g.jsx(wu,{...e,ref:t,type:"switch"}));CS.displayName="Switch";const fR=Object.assign(CS,{Input:wu.Input,Label:wu.Label}),$S=y.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:a,...i},l)=>(e=H(e,"form-floating"),g.jsxs(my,{ref:l,className:z(t,e),controlId:r,...i,children:[n,g.jsx("label",{htmlFor:r,children:a})]})));$S.displayName="FloatingLabel";const dR={_ref:he.any,validated:he.bool,as:he.elementType},vy=y.forwardRef(({className:e,validated:t,as:n="form",...r},a)=>g.jsx(n,{...r,ref:a,className:z(e,t&&"was-validated")}));vy.displayName="Form";vy.propTypes=dR;const pt=Object.assign(vy,{Group:my,Control:cR,Floating:_S,Check:wu,Switch:fR,Label:TS,Text:RS,Range:wS,Select:AS,FloatingLabel:$S}),Cc=y.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},a)=>(t=H(t,"input-group-text"),g.jsx(n,{ref:a,className:z(e,t),...r})));Cc.displayName="InputGroupText";const pR=e=>g.jsx(Cc,{children:g.jsx(Go,{type:"checkbox",...e})}),hR=e=>g.jsx(Cc,{children:g.jsx(Go,{type:"radio",...e})}),NS=y.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:a="div",...i},l)=>{e=H(e,"input-group");const o=y.useMemo(()=>({}),[]);return g.jsx(SS.Provider,{value:o,children:g.jsx(a,{ref:l,...i,className:z(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});NS.displayName="InputGroup";const dr=Object.assign(NS,{Text:Cc,Radio:hR,Checkbox:pR}),Hv=e=>!e||typeof e=="function"?e:t=>{e.current=t};function yR(e,t){const n=Hv(e),r=Hv(t);return a=>{n&&n(a),r&&r(a)}}function $c(e,t){return y.useMemo(()=>yR(e,t),[e,t])}function Pf(e){e===void 0&&(e=ko());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function mR(e){const t=y.useRef(e);return t.current=e,t}function vR(e){const t=mR(e);y.useEffect(()=>()=>t.current(),[])}function gR(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const qv=lR("modal-open");class gy{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return gR(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();t.style={overflow:a.style.overflow,[r]:a.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(fr(a,r)||"0",10)+t.scrollBarWidth}px`),a.setAttribute(qv,""),fr(a,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(qv),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Ff=(e,t)=>_c?e==null?(t||ko()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function mp(e,t){const n=yy(),[r,a]=y.useState(()=>Ff(e,n==null?void 0:n.document));if(!r){const i=Ff(e);i&&a(i)}return y.useEffect(()=>{},[t,r]),y.useEffect(()=>{const i=Ff(e);i!==r&&a(i)},[e,r]),r}function bR({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:a}){const i=y.useRef(null),l=y.useRef(t),o=An(n);y.useEffect(()=>{t?l.current=!0:o(i.current)},[t,o]);const s=$c(i,e.ref),u=y.cloneElement(e,{ref:s});return t?u:a||!l.current&&r?null:u}const SR=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function ER(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function xR(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:a,onExiting:i,onExited:l,addEndListener:o,children:s}=e,u=ER(e,SR);const c=y.useRef(null),d=$c(c,zo(s)),f=E=>_=>{E&&c.current&&E(c.current,_)},h=y.useCallback(f(t),[t]),b=y.useCallback(f(n),[n]),S=y.useCallback(f(r),[r]),x=y.useCallback(f(a),[a]),m=y.useCallback(f(i),[i]),p=y.useCallback(f(l),[l]),v=y.useCallback(f(o),[o]);return Object.assign({},u,{nodeRef:c},t&&{onEnter:h},n&&{onEntering:b},r&&{onEntered:S},a&&{onExit:x},i&&{onExiting:m},l&&{onExited:p},o&&{addEndListener:v},{children:typeof s=="function"?(E,_)=>s(E,Object.assign({},_,{ref:d})):y.cloneElement(s,{ref:d})})}const OR=["component"];function _R(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const TR=y.forwardRef((e,t)=>{let{component:n}=e,r=_R(e,OR);const a=xR(r);return g.jsx(n,Object.assign({ref:t},a))});function wR({in:e,onTransition:t}){const n=y.useRef(null),r=y.useRef(!0),a=An(t);return wv(()=>{if(!n.current)return;let i=!1;return a({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,a]),wv(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function AR({children:e,in:t,onExited:n,onEntered:r,transition:a}){const[i,l]=y.useState(!t);t&&i&&l(!1);const o=wR({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(l(!0),n==null||n(u.element)))};Promise.resolve(a(u)).then(c,d=>{throw u.in||l(!0),d})}}),s=$c(o,e.ref);return i&&!t?null:y.cloneElement(e,{ref:s})}function vp(e,t,n){return e?g.jsx(TR,Object.assign({},n,{component:e})):t?g.jsx(AR,Object.assign({},n,{transition:t})):g.jsx(bR,Object.assign({},n))}const RR=["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 CR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Qf;function $R(e){return Qf||(Qf=new gy({ownerDocument:e==null?void 0:e.document})),Qf}function NR(e){const t=yy(),n=e||$R(t),r=y.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:y.useCallback(a=>{r.current.dialog=a},[]),setBackdropRef:y.useCallback(a=>{r.current.backdrop=a},[])})}const MS=y.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:a,style:i,children:l,backdrop:o=!0,keyboard:s=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:b,autoFocus:S=!0,enforceFocus:x=!0,restoreFocus:m=!0,restoreFocusOptions:p,renderDialog:v,renderBackdrop:E=Y=>g.jsx("div",Object.assign({},Y)),manager:_,container:O,onShow:T,onHide:w=()=>{},onExit:$,onExited:R,onExiting:M,onEnter:G,onEntering:U,onEntered:X}=e,q=CR(e,RR);const C=yy(),j=mp(O),D=NR(_),K=F1(),ie=Ow(n),[Pe,ke]=y.useState(!n),xe=y.useRef(null);y.useImperativeHandle(t,()=>D,[D]),_c&&!ie&&n&&(xe.current=Pf(C==null?void 0:C.document)),n&&Pe&&ke(!1);const V=An(()=>{if(D.add(),Vn.current=ir(document,"keydown",it),Lt.current=ir(document,"focus",()=>setTimeout(zt),!0),T&&T(),S){var Y,Ie;const dt=Pf((Y=(Ie=D.dialog)==null?void 0:Ie.ownerDocument)!=null?Y:C==null?void 0:C.document);D.dialog&&dt&&!po(D.dialog,dt)&&(xe.current=dt,D.dialog.focus())}}),ve=An(()=>{if(D.remove(),Vn.current==null||Vn.current(),Lt.current==null||Lt.current(),m){var Y;(Y=xe.current)==null||Y.focus==null||Y.focus(p),xe.current=null}});y.useEffect(()=>{!n||!j||V()},[n,j,V]),y.useEffect(()=>{Pe&&ve()},[Pe,ve]),vR(()=>{ve()});const zt=An(()=>{if(!x||!K()||!D.isTopModal())return;const Y=Pf(C==null?void 0:C.document);D.dialog&&Y&&!po(D.dialog,Y)&&D.dialog.focus()}),_t=An(Y=>{Y.target===Y.currentTarget&&(u==null||u(Y),o===!0&&w())}),it=An(Y=>{s&&X1(Y)&&D.isTopModal()&&(c==null||c(Y),Y.defaultPrevented||w())}),Lt=y.useRef(),Vn=y.useRef(),Xn=(...Y)=>{ke(!0),R==null||R(...Y)};if(!j)return null;const Pn=Object.assign({role:r,ref:D.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},q,{style:i,className:a,tabIndex:-1});let lt=v?v(Pn):g.jsx("div",Object.assign({},Pn,{children:y.cloneElement(l,{role:"document"})}));lt=vp(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:$,onExiting:M,onExited:Xn,onEnter:G,onEntering:U,onEntered:X,children:lt});let fe=null;return o&&(fe=E({ref:D.setBackdropRef,onClick:_t}),fe=vp(h,b,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:fe})),g.jsx(g.Fragment,{children:fa.createPortal(g.jsxs(g.Fragment,{children:[fe,lt]}),j)})});MS.displayName="Modal";const MR=Object.assign(MS,{Manager:gy});function gp(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function jR(e,t){e.classList?e.classList.add(t):gp(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Gv(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function DR(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Gv(e.className,t):e.setAttribute("class",Gv(e.className&&e.className.baseVal||"",t))}const Xa={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class jS extends gy{adjustAndStore(t,n,r){const a=n.style[t];n.dataset[t]=a,fr(n,{[t]:`${parseFloat(fr(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],fr(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(jR(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Va(n,Xa.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),Va(n,Xa.STICKY_CONTENT).forEach(i=>this.adjustAndStore(a,i,-t.scrollBarWidth)),Va(n,Xa.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(a,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();DR(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Va(n,Xa.FIXED_CONTENT).forEach(i=>this.restore(r,i)),Va(n,Xa.STICKY_CONTENT).forEach(i=>this.restore(a,i)),Va(n,Xa.NAVBAR_TOGGLER).forEach(i=>this.restore(a,i))}}let Kf;function BR(e){return Kf||(Kf=new jS(e)),Kf}const DS=y.createContext({onHide(){}}),kR=y.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:a,...i},l)=>{const o=y.useContext(DS),s=Ii(()=>{o==null||o.onHide(),r==null||r()});return g.jsxs("div",{ref:l,...i,children:[a,n&&g.jsx(wc,{"aria-label":e,variant:t,onClick:s})]})}),BS=y.forwardRef(({bsPrefix:e,className:t,as:n,...r},a)=>{e=H(e,"navbar-brand");const i=n||(r.href?"a":"span");return g.jsx(i,{...r,ref:a,className:z(t,e)})});BS.displayName="NavbarBrand";const kS=y.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=H(t,"navbar-collapse");const a=y.useContext(qo);return g.jsx(Tc,{in:!!(a&&a.expanded),...n,children:g.jsx("div",{ref:r,className:t,children:e})})});kS.displayName="NavbarCollapse";const zS=y.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:a="button",onClick:i,...l},o)=>{e=H(e,"navbar-toggler");const{onToggle:s,expanded:u}=y.useContext(qo)||{},c=Ii(d=>{i&&i(d),s&&s()});return a==="button"&&(l.type="button"),g.jsx(a,{...l,ref:o,onClick:c,"aria-label":r,className:z(t,e,!u&&"collapsed"),children:n||g.jsx("span",{className:`${e}-icon`})})});zS.displayName="NavbarToggle";const bp=new WeakMap,Yv=(e,t)=>{if(!e||!t)return;const n=bp.get(t)||new Map;bp.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function zR(e,t=typeof window>"u"?void 0:window){const n=Yv(e,t),[r,a]=y.useState(()=>n?n.matches:!1);return bS(()=>{let i=Yv(e,t);if(!i)return a(!1);let l=bp.get(t);const o=()=>{a(i.matches)};return i.refCount++,i.addListener(o),o(),()=>{i.removeListener(o),i.refCount--,i.refCount<=0&&(l==null||l.delete(i.media)),i=void 0}},[e]),r}function LR(e){const t=Object.keys(e);function n(o,s){return o===s?s:o?`${o} and ${s}`:s}function r(o){return t[Math.min(t.indexOf(o)+1,t.length-1)]}function a(o){const s=r(o);let u=e[s];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(o){let s=e[o];return typeof s=="number"&&(s=`${s}px`),`(min-width: ${s})`}function l(o,s,u){let c;typeof o=="object"?(c=o,u=s,s=!0):(s=s||!0,c={[o]:s});let d=y.useMemo(()=>Object.entries(c).reduce((f,[h,b])=>((b==="up"||b===!0)&&(f=n(f,i(h))),(b==="down"||b===!0)&&(f=n(f,a(h))),f),""),[JSON.stringify(c)]);return zR(d,u)}return l}const UR=LR({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),LS=y.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"offcanvas-body"),g.jsx(n,{ref:a,className:z(e,t),...r})));LS.displayName="OffcanvasBody";const HR={[Vt]:"show",[tr]:"show"},US=y.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:a=!1,unmountOnExit:i=!1,appear:l=!1,...o},s)=>(e=H(e,"offcanvas"),g.jsx(iy,{ref:s,addEndListener:ry,in:r,mountOnEnter:a,unmountOnExit:i,appear:l,...o,childRef:zo(n),children:(u,c)=>y.cloneElement(n,{...c,className:z(t,n.props.className,(u===Vt||u===ji)&&`${e}-toggling`,HR[u])})})));US.displayName="OffcanvasToggling";const HS=y.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...a},i)=>(e=H(e,"offcanvas-header"),g.jsx(kR,{ref:i,...a,className:z(t,e),closeLabel:n,closeButton:r})));HS.displayName="OffcanvasHeader";const qR=ly("h5"),qS=y.forwardRef(({className:e,bsPrefix:t,as:n=qR,...r},a)=>(t=H(t,"offcanvas-title"),g.jsx(n,{ref:a,className:z(e,t),...r})));qS.displayName="OffcanvasTitle";function GR(e){return g.jsx(US,{...e})}function YR(e){return g.jsx(uo,{...e})}const GS=y.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:a="start",responsive:i,show:l=!1,backdrop:o=!0,keyboard:s=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:f,container:h,autoFocus:b=!0,enforceFocus:S=!0,restoreFocus:x=!0,restoreFocusOptions:m,onEntered:p,onExit:v,onExiting:E,onEnter:_,onEntering:O,onExited:T,backdropClassName:w,manager:$,renderStaticNode:R=!1,...M},G)=>{const U=y.useRef();e=H(e,"offcanvas");const[X,q]=y.useState(!1),C=Ii(f),j=UR(i||"xs","up");y.useEffect(()=>{q(i?l&&!j:l)},[l,i,j]);const D=y.useMemo(()=>({onHide:C}),[C]);function K(){return $||(u?(U.current||(U.current=new jS({handleContainerOverflow:!1})),U.current):BR())}const ie=(V,...ve)=>{V&&(V.style.visibility="visible"),_==null||_(V,...ve)},Pe=(V,...ve)=>{V&&(V.style.visibility=""),T==null||T(...ve)},ke=y.useCallback(V=>g.jsx("div",{...V,className:z(`${e}-backdrop`,w)}),[w,e]),xe=V=>g.jsx("div",{...V,...M,className:z(t,i?`${e}-${i}`:e,`${e}-${a}`),"aria-labelledby":r,children:n});return g.jsxs(g.Fragment,{children:[!X&&(i||R)&&xe({}),g.jsx(DS.Provider,{value:D,children:g.jsx(MR,{show:X,ref:G,backdrop:o,container:h,keyboard:s,autoFocus:b,enforceFocus:S&&!u,restoreFocus:x,restoreFocusOptions:m,onEscapeKeyDown:c,onShow:d,onHide:C,onEnter:ie,onEntering:O,onEntered:p,onExit:v,onExiting:E,onExited:Pe,manager:K(),transition:GR,backdropTransition:YR,renderBackdrop:ke,renderDialog:xe})})]})});GS.displayName="Offcanvas";const $l=Object.assign(GS,{Body:LS,Header:HS,Title:qS}),YS=y.forwardRef(({onHide:e,...t},n)=>{const r=y.useContext(qo),a=Ii(()=>{r==null||r.onToggle==null||r.onToggle(),e==null||e()});return g.jsx($l,{ref:n,show:!!(r!=null&&r.expanded),...t,renderStaticNode:!0,onHide:a})});YS.displayName="NavbarOffcanvas";const VS=y.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},a)=>(t=H(t,"navbar-text"),g.jsx(n,{ref:a,className:z(e,t),...r})));VS.displayName="NavbarText";const XS=y.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:a="light",bg:i,fixed:l,sticky:o,className:s,as:u="nav",expanded:c,onToggle:d,onSelect:f,collapseOnSelect:h=!1,...b}=VT(e,{expanded:"onToggle"}),S=H(n,"navbar"),x=y.useCallback((...v)=>{f==null||f(...v),h&&c&&(d==null||d(!1))},[f,h,c,d]);b.role===void 0&&u!=="nav"&&(b.role="navigation");let m=`${S}-expand`;typeof r=="string"&&(m=`${m}-${r}`);const p=y.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:S,expanded:!!c,expand:r}),[S,c,r,d]);return g.jsx(qo.Provider,{value:p,children:g.jsx(aR.Provider,{value:x,children:g.jsx(u,{ref:t,...b,className:z(s,S,r&&m,a&&`${S}-${a}`,i&&`bg-${i}`,o&&`sticky-${o}`,l&&`fixed-${l}`)})})})});XS.displayName="Navbar";const Zf=Object.assign(XS,{Brand:BS,Collapse:kS,Offcanvas:YS,Text:VS,Toggle:zS}),VR=()=>{};function XR(e,t,{disabled:n,clickTrigger:r}={}){const a=t||VR;eR(e,a,{disabled:n,clickTrigger:r});const i=An(l=>{X1(l)&&a(l)});y.useEffect(()=>{if(n||e==null)return;const l=ko(Gs(e));let o=(l.defaultView||window).event;const s=ir(l,"keyup",u=>{if(u===o){o=void 0;return}i(u)});return()=>{s()}},[e,n,i])}const PS=y.forwardRef((e,t)=>{const{flip:n,offset:r,placement:a,containerPadding:i,popperConfig:l={},transition:o,runTransition:s}=e,[u,c]=Tv(),[d,f]=Tv(),h=$c(c,t),b=mp(e.container),S=mp(e.target),[x,m]=y.useState(!e.show),p=QA(S,u,rR({placement:a,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:l}));e.show&&x&&m(!1);const v=(...M)=>{m(!0),e.onExited&&e.onExited(...M)},E=e.show||!x;if(XR(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:_,onExiting:O,onEnter:T,onEntering:w,onEntered:$}=e;let R=e.children(Object.assign({},p.attributes.popper,{style:p.styles.popper,ref:h}),{popper:p,placement:a,show:!!e.show,arrowProps:Object.assign({},p.attributes.arrow,{style:p.styles.arrow,ref:f})});return R=vp(o,s,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:R,onExit:_,onExiting:O,onExited:v,onEnter:T,onEntering:w,onEntered:$}),b?fa.createPortal(R,b):null});PS.displayName="Overlay";const FS=y.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"popover-header"),g.jsx(n,{ref:a,className:z(e,t),...r})));FS.displayName="PopoverHeader";const by=y.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"popover-body"),g.jsx(n,{ref:a,className:z(e,t),...r})));by.displayName="PopoverBody";function QS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function KS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const PR=y.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,body:i,arrowProps:l,hasDoneInitialMeasure:o,popper:s,show:u,...c},d)=>{const f=H(e,"popover"),h=k1(),[b]=(t==null?void 0:t.split("-"))||[],S=QS(b,h);let x=r;return u&&!o&&(x={...r,...KS(s==null?void 0:s.strategy)}),g.jsxs("div",{ref:d,role:"tooltip",style:x,"x-placement":b,className:z(n,f,b&&`bs-popover-${S}`),...c,children:[g.jsx("div",{className:"popover-arrow",...l}),i?g.jsx(by,{children:a}):a]})}),FR=Object.assign(PR,{Header:FS,Body:by,POPPER_OFFSET:[0,8]}),ZS=y.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,arrowProps:i,hasDoneInitialMeasure:l,popper:o,show:s,...u},c)=>{e=H(e,"tooltip");const d=k1(),[f]=(t==null?void 0:t.split("-"))||[],h=QS(f,d);let b=r;return s&&!l&&(b={...r,...KS(o==null?void 0:o.strategy)}),g.jsxs("div",{ref:c,style:b,role:"tooltip","x-placement":f,className:z(n,e,`bs-tooltip-${h}`),...u,children:[g.jsx("div",{className:"tooltip-arrow",...i}),g.jsx("div",{className:`${e}-inner`,children:a})]})});ZS.displayName="Tooltip";const WS=Object.assign(ZS,{TOOLTIP_OFFSET:[0,6]});function QR(e){const t=y.useRef(null),n=H(void 0,"popover"),r=H(void 0,"tooltip"),a=y.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(gp(t.current,n))return FR.POPPER_OFFSET;if(gp(t.current,r))return WS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[a]]}function KR(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=a=>n(Ou(a))),t.ref=r.__wrapped||(r.__wrapped=a=>r(Ou(a)))}const JS=y.forwardRef(({children:e,transition:t=uo,popperConfig:n={},rootClose:r=!1,placement:a="top",show:i=!1,...l},o)=>{const s=y.useRef({}),[u,c]=y.useState(null),[d,f]=QR(l.offset),h=ay(o,d),b=t===!0?uo:t||void 0,S=Ii(x=>{c(x),n==null||n.onFirstUpdate==null||n.onFirstUpdate(x)});return bS(()=>{u&&l.target&&(s.current.scheduleUpdate==null||s.current.scheduleUpdate())},[u,l.target]),y.useEffect(()=>{i||c(null)},[i]),g.jsx(PS,{...l,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:S},transition:b,rootClose:r,placement:a,show:i,children:(x,{arrowProps:m,popper:p,show:v})=>{var E;KR(x,m);const _=p==null?void 0:p.placement,O=Object.assign(s.current,{state:p==null?void 0:p.state,scheduleUpdate:p==null?void 0:p.update,placement:_,outOfBoundaries:(p==null||(E=p.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:n.strategy}),T=!!u;return typeof e=="function"?e({...x,placement:_,show:v,...!t&&v&&{className:"show"},popper:O,arrowProps:m,hasDoneInitialMeasure:T}):y.cloneElement(e,{...x,placement:_,arrowProps:m,popper:O,hasDoneInitialMeasure:T,className:z(e.props.className,!t&&v&&"show"),style:{...e.props.style,...x.style}})}})});JS.displayName="Overlay";function ZR(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Vv(e,t,n){const[r]=t,a=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==a)&&!po(a,i)&&e(...t)}he.oneOf(["click","hover","focus"]);const WR=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:a,defaultShow:i=!1,onToggle:l,delay:o,placement:s,flip:u=s&&s.indexOf("auto")!==-1,...c})=>{const d=y.useRef(null),f=ay(d,zo(n)),h=oS(),b=y.useRef(""),[S,x]=j1(a,i,l),m=ZR(o),{onFocus:p,onBlur:v,onClick:E}=typeof n!="function"?y.Children.only(n).props:{},_=q=>{f(Ou(q))},O=y.useCallback(()=>{if(h.clear(),b.current="show",!m.show){x(!0);return}h.set(()=>{b.current==="show"&&x(!0)},m.show)},[m.show,x,h]),T=y.useCallback(()=>{if(h.clear(),b.current="hide",!m.hide){x(!1);return}h.set(()=>{b.current==="hide"&&x(!1)},m.hide)},[m.hide,x,h]),w=y.useCallback((...q)=>{O(),p==null||p(...q)},[O,p]),$=y.useCallback((...q)=>{T(),v==null||v(...q)},[T,v]),R=y.useCallback((...q)=>{x(!S),E==null||E(...q)},[E,x,S]),M=y.useCallback((...q)=>{Vv(O,q,"fromElement")},[O]),G=y.useCallback((...q)=>{Vv(T,q,"toElement")},[T]),U=e==null?[]:[].concat(e),X={ref:_};return U.indexOf("click")!==-1&&(X.onClick=R),U.indexOf("focus")!==-1&&(X.onFocus=w,X.onBlur=$),U.indexOf("hover")!==-1&&(X.onMouseOver=M,X.onMouseOut=G),g.jsxs(g.Fragment,{children:[typeof n=="function"?n(X):y.cloneElement(n,X),g.jsx(JS,{...c,show:S,onHide:T,flip:u,placement:s,popperConfig:r,target:d.current,children:t})]})},Au=y.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},a)=>{const i=H(e,"row"),l=D1(),o=B1(),s=`${i}-cols`,u=[];return l.forEach(c=>{const d=r[c];delete r[c];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const h=c!==o?`-${c}`:"";f!=null&&u.push(`${s}${h}-${f}`)}),g.jsx(n,{ref:a,...r,className:z(t,i,...u)})});Au.displayName="Row";const IS=y.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:a="div",className:i,...l},o)=>{e=H(e,"spinner");const s=`${e}-${n}`;return g.jsx(a,{ref:o,...l,className:z(i,s,r&&`${s}-${r}`,t&&`text-${t}`)})});IS.displayName="Spinner";const JR={[Vt]:"showing",[ji]:"showing show"},eE=y.forwardRef((e,t)=>g.jsx(uo,{...e,ref:t,transitionClasses:JR}));eE.displayName="ToastFade";const tE=y.createContext({onClose(){}}),nE=y.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:a,children:i,...l},o)=>{e=H(e,"toast-header");const s=y.useContext(tE),u=Ii(c=>{s==null||s.onClose==null||s.onClose(c)});return g.jsxs("div",{ref:o,...l,className:z(e,a),children:[i,r&&g.jsx(wc,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});nE.displayName="ToastHeader";const rE=y.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"toast-body"),g.jsx(n,{ref:a,className:z(e,t),...r})));rE.displayName="ToastBody";const aE=y.forwardRef(({bsPrefix:e,className:t,transition:n=eE,show:r=!0,animation:a=!0,delay:i=5e3,autohide:l=!1,onClose:o,onEntered:s,onExit:u,onExiting:c,onEnter:d,onEntering:f,onExited:h,bg:b,...S},x)=>{e=H(e,"toast");const m=y.useRef(i),p=y.useRef(o);y.useEffect(()=>{m.current=i,p.current=o},[i,o]);const v=oS(),E=!!(l&&r),_=y.useCallback(()=>{E&&(p.current==null||p.current())},[E]);y.useEffect(()=>{v.set(_,m.current)},[v,_]);const O=y.useMemo(()=>({onClose:o}),[o]),T=!!(n&&a),w=g.jsx("div",{...S,ref:x,className:z(e,t,b&&`bg-${b}`,!T&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return g.jsx(tE.Provider,{value:O,children:T&&n?g.jsx(n,{in:r,onEnter:d,onEntering:f,onEntered:s,onExit:u,onExiting:c,onExited:h,unmountOnExit:!0,children:w}):w})});aE.displayName="Toast";const Gl=Object.assign(aE,{Body:rE,Header:nE}),IR={"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"},Sy=y.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:a="div",...i},l)=>(e=H(e,"toast-container"),g.jsx(a,{ref:l,...i,className:z(e,t&&IR[t],n&&`position-${n}`,r)})));Sy.displayName="ToastContainer";const eC=()=>{},Ey=y.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:a,onChange:i,value:l,disabled:o,id:s,inputRef:u,...c},d)=>(e=H(e,"btn-check"),g.jsxs(g.Fragment,{children:[g.jsx("input",{className:e,name:t,type:a,value:l,ref:u,autoComplete:"off",checked:!!r,disabled:!!o,onChange:i||eC,id:s}),g.jsx(Lo,{...c,ref:d,className:z(n,o&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:s})]})));Ey.displayName="ToggleButton";const Ln=Object.create(null);Ln.open="0";Ln.close="1";Ln.ping="2";Ln.pong="3";Ln.message="4";Ln.upgrade="5";Ln.noop="6";const Ys=Object.create(null);Object.keys(Ln).forEach(e=>{Ys[Ln[e]]=e});const Sp={type:"error",data:"parser error"},iE=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",lE=typeof ArrayBuffer=="function",oE=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,xy=({type:e,data:t},n,r)=>iE&&t instanceof Blob?n?r(t):Xv(t,r):lE&&(t instanceof ArrayBuffer||oE(t))?n?r(t):Xv(new Blob([t]),r):r(Ln[e]+(t||"")),Xv=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Pv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Wf;function tC(e,t){if(iE&&e.data instanceof Blob)return e.data.arrayBuffer().then(Pv).then(t);if(lE&&(e.data instanceof ArrayBuffer||oE(e.data)))return t(Pv(e.data));xy(e,!1,n=>{Wf||(Wf=new TextEncoder),t(Wf.encode(n))})}const Fv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,a=0,i,l,o,s;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[a++]=(l&15)<<4|o>>2,c[a++]=(o&3)<<6|s&63;return u},rC=typeof ArrayBuffer=="function",Oy=(e,t)=>{if(typeof e!="string")return{type:"message",data:sE(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:aC(e.substring(1),t)}:Ys[n]?e.length>1?{type:Ys[n],data:e.substring(1)}:{type:Ys[n]}:Sp},aC=(e,t)=>{if(rC){const n=nC(e);return sE(n,t)}else return{base64:!0,data:e}},sE=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},uE="",iC=(e,t)=>{const n=e.length,r=new Array(n);let a=0;e.forEach((i,l)=>{xy(i,!1,o=>{r[l]=o,++a===n&&t(r.join(uE))})})},lC=(e,t)=>{const n=e.split(uE),r=[];for(let a=0;a{const r=n.length;let a;if(r<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,r);else if(r<65536){a=new Uint8Array(3);const i=new DataView(a.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{a=new Uint8Array(9);const i=new DataView(a.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(a[0]|=128),t.enqueue(a),t.enqueue(n)})}})}let Jf;function hs(e){return e.reduce((t,n)=>t+n.length,0)}function ys(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let a=0;aMath.pow(2,21)-1){o.enqueue(Sp);break}a=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(hs(n)e){o.enqueue(Sp);break}}}})}const cE=4;function qe(e){if(e)return uC(e)}function uC(e){for(var t in qe.prototype)e[t]=qe.prototype[t];return e}qe.prototype.on=qe.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};qe.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};qe.prototype.off=qe.prototype.removeListener=qe.prototype.removeAllListeners=qe.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,a=0;aPromise.resolve().then(t):(t,n)=>n(t,0),Xt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),cC="arraybuffer";function fE(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const fC=Xt.setTimeout,dC=Xt.clearTimeout;function Mc(e,t){t.useNativeTimers?(e.setTimeoutFn=fC.bind(Xt),e.clearTimeoutFn=dC.bind(Xt)):(e.setTimeoutFn=Xt.setTimeout.bind(Xt),e.clearTimeoutFn=Xt.clearTimeout.bind(Xt))}const pC=1.33;function hC(e){return typeof e=="string"?yC(e):Math.ceil((e.byteLength||e.size)*pC)}function yC(e){let t=0,n=0;for(let r=0,a=e.length;r=57344?n+=3:(r++,n+=4);return n}function dE(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function mC(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function vC(e){let t={},n=e.split("&");for(let r=0,a=n.length;r{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};lC(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,iC(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=dE()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let pE=!1;try{pE=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const SC=pE;function EC(){}class xC extends bC{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(a,i)=>{this.onError("xhr post error",a,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Mn extends qe{constructor(t,n,r){super(),this.createRequest=t,Mc(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=fE(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&r.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var a;r.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=Mn.requestsCount++,Mn.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=EC,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Mn.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Mn.requestsCount=0;Mn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Qv);else if(typeof addEventListener=="function"){const e="onpagehide"in Xt?"pagehide":"unload";addEventListener(e,Qv,!1)}}function Qv(){for(let e in Mn.requests)Mn.requests.hasOwnProperty(e)&&Mn.requests[e].abort()}const OC=function(){const e=hE({xdomain:!1});return e&&e.responseType!==null}();class _C extends xC{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=OC&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Mn(hE,this.uri(),t)}}function hE(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||SC))return new XMLHttpRequest}catch{}if(!t)try{return new Xt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const yE=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class TC extends _y{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=yE?{}:fE(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{try{this.doWrite(r,i)}catch{}a&&Nc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=dE()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const If=Xt.WebSocket||Xt.MozWebSocket;class wC extends TC{createSocket(t,n,r){return yE?new If(t,n,r):n?new If(t,n):new If(t)}doWrite(t,n){this.ws.send(n)}}class AC extends _y{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=sC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),a=oC();a.readable.pipeTo(t.writable),this._writer=a.writable.getWriter();const i=()=>{r.read().then(({done:o,value:s})=>{o||(this.onPacket(s),i())}).catch(o=>{})};i();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n{a&&Nc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const RC={websocket:wC,webtransport:AC,polling:_C},CC=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$C=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ep(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let a=CC.exec(e||""),i={},l=14;for(;l--;)i[$C[l]]=a[l]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=NC(i,i.path),i.queryKey=MC(i,i.query),i}function NC(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function MC(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,a,i){a&&(n[a]=i)}),n}const xp=typeof addEventListener=="function"&&typeof removeEventListener=="function",Vs=[];xp&&addEventListener("offline",()=>{Vs.forEach(e=>e())},!1);class qr extends qe{constructor(t,n){if(super(),this.binaryType=cC,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Ep(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Ep(n.host).host);Mc(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const a=r.prototype.name;this.transports.push(a),this._transportsByName[a]=r}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=vC(this.opts.query)),xp&&(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"})},Vs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=cE,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&qr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",qr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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 t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Nc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,a){if(typeof n=="function"&&(a=n,n=void 0),typeof r=="function"&&(a=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),a&&this.once("flush",a),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(qr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){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(),xp&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Vs.indexOf(this._offlineEventListener);r!==-1&&Vs.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}qr.protocol=cE;class jC extends qr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;qr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const l=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function o(){l("transport closed")}function s(){l("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",a),n.removeListener("error",l),n.removeListener("close",o),this.off("close",s),this.off("upgrading",u)};n.once("open",a),n.once("error",l),n.once("close",o),this.once("close",s),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;rRC[a]).filter(a=>!!a)),super(t,r)}};function BC(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Ep(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}const kC=typeof ArrayBuffer=="function",zC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,mE=Object.prototype.toString,LC=typeof Blob=="function"||typeof Blob<"u"&&mE.call(Blob)==="[object BlobConstructor]",UC=typeof File=="function"||typeof File<"u"&&mE.call(File)==="[object FileConstructor]";function Ty(e){return kC&&(e instanceof ArrayBuffer||zC(e))||LC&&e instanceof Blob||UC&&e instanceof File}function Xs(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(i),n.apply(this,o)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((r,a)=>{const i=(l,o)=>l?a(l):r(o);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((a,...i)=>r!==this._queue[0]?void 0:(a!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(a)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:I.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case I.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.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 I.EVENT:case I.BINARY_EVENT:this.onevent(t);break;case I.ACK:case I.BINARY_ACK:this.onack(t);break;case I.DISCONNECT:this.ondisconnect();break;case I.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...a){r||(r=!0,n.packet({type:I.ACK,id:t,data:a}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:I.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}el.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};el.prototype.reset=function(){this.attempts=0};el.prototype.setMin=function(e){this.ms=e};el.prototype.setMax=function(e){this.max=e};el.prototype.setJitter=function(e){this.jitter=e};class Tp extends qe{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Mc(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new el({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const a=n.parser||PC;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new DC(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const a=pn(n,"open",function(){r.onopen(),t&&t()}),i=o=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",o),t?t(o):this.maybeReconnectOnOpen()},l=pn(n,"error",i);if(this._timeout!==!1){const o=this._timeout,s=this.setTimeoutFn(()=>{a(),i(new Error("timeout")),n.close()},o);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}return this.subs.push(a),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(pn(t,"ping",this.onping.bind(this)),pn(t,"data",this.ondata.bind(this)),pn(t,"error",this.onerror.bind(this)),pn(t,"close",this.onclose.bind(this)),pn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Nc(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new vE(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(a=>{a?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",a)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const yl={};function Ps(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=BC(e,t.path||"/socket.io"),r=n.source,a=n.id,i=n.path,l=yl[a]&&i in yl[a].nsps,o=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let s;return o?s=new Tp(r,t):(yl[a]||(yl[a]=new Tp(r,t)),s=yl[a]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}Object.assign(Ps,{Manager:Tp,Socket:vE,io:Ps,connect:Ps});const gE=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},QC=(e,t="")=>{const r=e.map((a,i)=>{(typeof a=="number"||typeof a=="boolean"||typeof a=="string"||a===null)&&gE(a,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},KC=(e,t="")=>{const r=Object.entries(e).reduce((a,[i,l])=>{const o=`${t}["${i}"]`;return(typeof l=="number"||typeof l=="boolean"||typeof l=="string"||l===null)&&(a[i]=gE(l,o)),a},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},bE=window.location.hostname,SE=window.location.port,EE=window.__FORWARDED_PREFIX__||"",Ml=window.__FORWARDED_PROTO__||"http",ms=`${bE}:${SE}${EE}`,ZC=Ml==="http"?"ws":"wss",WC=`${ZC}://${bE}:${SE}/`,er=Ps(WC,{path:`${EE}/ws/socket.io`,transports:["websocket"]}),JC=(e,t)=>{t?er.emit("update_value",{access_path:e.full_access_path,value:e},t):er.emit("update_value",{access_path:e.full_access_path,value:e})},xE=(e,t=[],n={},r)=>{const a=QC(t),i=KC(n);er.emit("trigger_method",{access_path:e,args:a,kwargs:i})},OE=ne.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return g.jsx(Sy,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(a=>a.levelname==="ERROR"||a.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(a.levelname)?g.jsxs(Gl,{className:a.levelname.toLowerCase()+"Toast",onClose:()=>r(a.id),onClick:()=>r(a.id),onMouseLeave:()=>{a.levelname!=="ERROR"&&r(a.id)},show:!0,autohide:a.levelname==="WARNING"||a.levelname==="INFO"||a.levelname==="DEBUG",delay:a.levelname==="WARNING"||a.levelname==="INFO"||a.levelname==="DEBUG"?2e3:void 0,children:[g.jsxs(Gl.Header,{closeButton:!1,className:a.levelname.toLowerCase()+"Toast text-right",children:[g.jsx("strong",{className:"me-auto",children:a.levelname}),g.jsx("small",{children:a.timeStamp})]}),g.jsx(Gl.Body,{children:a.message})]},a.id):null)})});OE.displayName="Notifications";const wp=ne.memo(({connectionStatus:e})=>{const[t,n]=y.useState(!0);y.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),a=()=>{switch(e){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:i,bg:l,delay:o}=a();return g.jsx(Sy,{position:"bottom-center",className:"toastContainer",children:g.jsx(Gl,{show:t,onClose:r,delay:o,autohide:o!==void 0,bg:l,children:g.jsxs(Gl.Body,{className:"d-flex justify-content-between",children:[i,g.jsx(Lo,{variant:"close",size:"sm",onClick:r})]})})})});wp.displayName="ConnectionToast";function _E(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function IC(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function e5(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(Wv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=Wv(),e[t];throw new Error(`Key not found: ${t}`)}}function Zv(e,t,n=!1){const r=IC(t);try{return e5(e,r,n)}catch(a){throw a instanceof RangeError?new Error(`Index '${r}': ${a.message}`):a instanceof Error?new Error(`Key '${r}': ${a.message}`):a}}function t5(e,t,n){const r=_E(t),a=JSON.parse(JSON.stringify(e));let i=a;try{for(let s=0;s{const{docString:t}=e;if(!t)return null;const n=g.jsx(WS,{id:"tooltip",children:t});return g.jsx(WR,{placement:"bottom",overlay:n,children:g.jsx(K1,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});Sn.displayName="DocStringComponent";function Hn(){const e=y.useRef(0);return y.useEffect(()=>{e.current+=1}),e.current}const TE=ne.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:a,addNotification:i,changeCallback:l=()=>{},displayName:o,id:s}=e;Hn(),y.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{l({type:"bool",value:c,full_access_path:n,readonly:r,doc:a})};return g.jsxs("div",{className:"component buttonComponent",id:s,children:[!1,g.jsxs(Ey,{id:`toggle-check-${s}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:o,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[o,g.jsx(Sn,{docString:a})]})]})});TE.displayName="ButtonComponent";const n5=(e,t,n)=>{const r=t.split("."),a=r[0].length,i=r[1]?r[1].length:0,l=n>a;let o=0;l?o=Math.pow(10,a+1-n):o=Math.pow(10,a-n);const u=(parseFloat(t)+(e==="ArrowUp"?o:-o)).toFixed(i),c=u.split(".")[0].length;return c>a?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},a5=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{let a=t;return e==="."&&t.includes(".")?{value:t,selectionStart:n}:e==="-"?(n===0&&r>n?(a="-"+t.slice(r),n=1):n===0&&!t.startsWith("-")?(a="-"+t,n=1):(n===0||n===1)&&t.startsWith("-")&&(a=t.slice(1),n=0),{value:a,selectionStart:n}):(r>n?a=t.slice(0,n)+e+t.slice(r):a=t.slice(0,n)+e+t.slice(n),{value:a,selectionStart:n+1})},Ru=ne.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:a,docString:i,isInstantUpdate:l,unit:o,addNotification:s,changeCallback:u=()=>{},displayName:c,id:d}=e,[f,h]=y.useState(null),[b,S]=y.useState(n.toString());Hn();const x=p=>{const{key:v,target:E}=p,_=E;if(v==="F1"||v==="F5"||v==="F12"||v==="Tab")return;p.preventDefault();const{value:O}=_,T=_.selectionEnd??0;let w=_.selectionStart??0,$=O;if(p.ctrlKey&&v==="a"){_.setSelectionRange(0,O.length);return}else if(v==="ArrowRight"||v==="ArrowLeft"){w=v==="ArrowRight"?w+1:w-1,h(w);return}else if(v>="0"&&v<="9"||v==="-")({value:$,selectionStart:w}=Jv(v,O,w,T));else if(v==="."&&(a==="float"||a==="Quantity"))({value:$,selectionStart:w}=Jv(v,O,w,T));else if(v==="ArrowUp"||v==="ArrowDown")({value:$,selectionStart:w}=n5(v,O,w));else if(v==="Backspace")({value:$,selectionStart:w}=r5(O,w,T));else if(v==="Delete")({value:$,selectionStart:w}=a5(O,w,T));else if(v==="Enter"&&!l){let R;a==="Quantity"?R={type:"Quantity",value:{magnitude:Number($),unit:o},full_access_path:t,readonly:r,doc:i}:R={type:a,value:Number($),full_access_path:t,readonly:r,doc:i},u(R);return}else return;if(l){let R;a==="Quantity"?R={type:"Quantity",value:{magnitude:Number($),unit:o},full_access_path:t,readonly:r,doc:i}:R={type:a,value:Number($),full_access_path:t,readonly:r,doc:i},u(R)}S($),h(w)},m=()=>{if(!l){let p;a==="Quantity"?p={type:"Quantity",value:{magnitude:Number(b),unit:o},full_access_path:t,readonly:r,doc:i}:p={type:a,value:Number(b),full_access_path:t,readonly:r,doc:i},u(p)}};return y.useEffect(()=>{const p=a==="int"?parseInt(b):parseFloat(b);n!==p&&S(n.toString());let v=`${t} changed to ${e.value}`;o===void 0?v+=".":v+=` ${o}.`,s(v)},[n]),y.useEffect(()=>{const p=document.getElementsByName(d)[0];p&&f!==null&&p.setSelectionRange(f,f)}),g.jsxs("div",{className:"component numberComponent",id:d,children:[!1,g.jsxs(dr,{children:[c&&g.jsxs(dr.Text,{children:[c,g.jsx(Sn,{docString:i})]}),g.jsx(pt.Control,{type:"text",value:b,disabled:r,onChange:()=>{},name:d,onKeyDown:x,onBlur:m,className:l&&!r?"instantUpdate":""}),o&&g.jsx(dr.Text,{children:o})]})]})});Ru.displayName="NumberComponent";const ho={black:"#000",white:"#fff"},Pa={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Fa={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Qa={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ka={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Za={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ml={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},i5={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 yo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?nt(tl,--Et):0,Li--,He===10&&(Li=1,Dc--),He}function $t(){return He=Et2||vo(He)>3?"":" "}function E5(e,t){for(;--t&&$t()&&!(He<48||He>102||He>57&&He<65||He>70&&He<97););return Yo(e,Fs()+(t<6&&jn()==32&&$t()==32))}function Rp(e){for(;$t();)switch(He){case e:return Et;case 34:case 39:e!==34&&e!==39&&Rp(He);break;case 40:e===41&&Rp(e);break;case 92:$t();break}return Et}function x5(e,t){for(;$t()&&e+He!==57;)if(e+He===84&&jn()===47)break;return"/*"+Yo(t,Et-1)+"*"+jc(e===47?e:$t())}function O5(e){for(;!vo(jn());)$t();return Yo(e,Et)}function _5(e){return NE(Ks("",null,null,null,[""],e=$E(e),0,[0],e))}function Ks(e,t,n,r,a,i,l,o,s){for(var u=0,c=0,d=l,f=0,h=0,b=0,S=1,x=1,m=1,p=0,v="",E=a,_=i,O=r,T=v;x;)switch(b=p,p=$t()){case 40:if(b!=108&&nt(T,d-1)==58){Ap(T+=se(Qs(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:T+=Qs(p);break;case 9:case 10:case 13:case 32:T+=S5(b);break;case 92:T+=E5(Fs()-1,7);continue;case 47:switch(jn()){case 42:case 47:vs(T5(x5($t(),Fs()),t,n),s);break;default:T+="/"}break;case 123*S:o[u++]=_n(T)*m;case 125*S:case 59:case 0:switch(p){case 0:case 125:x=0;case 59+c:m==-1&&(T=se(T,/\f/g,"")),h>0&&_n(T)-d&&vs(h>32?eg(T+";",r,n,d-1):eg(se(T," ","")+";",r,n,d-2),s);break;case 59:T+=";";default:if(vs(O=Iv(T,t,n,u,c,a,o,v,E=[],_=[],d),i),p===123)if(c===0)Ks(T,t,O,O,E,i,d,o,_);else switch(f===99&&nt(T,3)===110?100:f){case 100:case 108:case 109:case 115:Ks(e,O,O,r&&vs(Iv(e,O,O,0,0,a,o,v,a,E=[],d),_),a,_,d,o,r?E:_);break;default:Ks(T,O,O,O,[""],_,0,o,_)}}u=c=h=0,S=m=1,v=T="",d=l;break;case 58:d=1+_n(T),h=b;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&b5()==125)continue}switch(T+=jc(p),p*S){case 38:m=c>0?1:(T+="\f",-1);break;case 44:o[u++]=(_n(T)-1)*m,m=1;break;case 64:jn()===45&&(T+=Qs($t())),f=jn(),c=d=_n(v=T+=O5(Fs())),p++;break;case 45:b===45&&_n(T)==2&&(S=0)}}return i}function Iv(e,t,n,r,a,i,l,o,s,u,c){for(var d=a-1,f=a===0?i:[""],h=$y(f),b=0,S=0,x=0;b0?f[m]+" "+p:se(p,/&\f/g,f[m])))&&(s[x++]=v);return Bc(e,t,n,a===0?Ry:o,s,u,c)}function T5(e,t,n){return Bc(e,t,n,wE,jc(g5()),mo(e,2,-2),0)}function eg(e,t,n,r){return Bc(e,t,n,Cy,mo(e,0,r),mo(e,r+1,-1),r)}function xi(e,t){for(var n="",r=$y(e),a=0;a6)switch(nt(e,t+1)){case 109:if(nt(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+Cu+(nt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ap(e,"stretch")?jE(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nt(e,t+1)!==115)break;case 6444:switch(nt(e,_n(e)-3-(~Ap(e,"!important")&&10))){case 107:return se(e,":",":"+oe)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(nt(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(nt(e,t+11)){case 114:return oe+e+ot+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+ot+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+ot+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+ot+e+e}return e}var D5=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case Cy:t.return=jE(t.value,t.length);break;case AE:return xi([vl(t,{value:se(t.value,"@","@"+oe)})],a);case Ry:if(t.length)return v5(t.props,function(i){switch(m5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xi([vl(t,{props:[se(i,/:(read-\w+)/,":"+Cu+"$1")]})],a);case"::placeholder":return xi([vl(t,{props:[se(i,/:(plac\w+)/,":"+oe+"input-$1")]}),vl(t,{props:[se(i,/:(plac\w+)/,":"+Cu+"$1")]}),vl(t,{props:[se(i,/:(plac\w+)/,ot+"input-$1")]})],a)}return""})}},B5=[D5],DE=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var x=S.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var a=t.stylisPlugins||B5,i={},l,o=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var x=S.getAttribute("data-emotion").split(" "),m=1;m"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(G1)}catch{}}G1(),H1.exports=vt;var Y1=H1.exports;const fa=Ra(Y1),xv={disabled:!1},V1=ne.createContext(null);var uw=function(t){return t.scrollTop},Cl="unmounted",$r="exited",Vt="entering",tr="entered",ji="exiting",xr=function(e){XT(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var l=a,o=l&&!l.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?o?(s=$r,i.appearStatus=Vt):s=tr:r.unmountOnExit||r.mountOnEnter?s=Cl:s=$r,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var l=a.in;return l&&i.status===Cl?{status:$r}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var l=this.state.status;this.props.in?l!==Vt&&l!==tr&&(i=Vt):(l===Vt||l===tr)&&(i=ji)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,l,o;return i=l=o=a,a!=null&&typeof a!="number"&&(i=a.exit,l=a.enter,o=a.appear!==void 0?a.appear:l),{exit:i,enter:l,appear:o}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:fa.findDOMNode(this);l&&uw(l)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$r&&this.setState({status:Cl})},n.performEnter=function(a){var i=this,l=this.props.enter,o=this.context?this.context.isMounting:a,s=this.props.nodeRef?[o]:[fa.findDOMNode(this),o],u=s[0],c=s[1],d=this.getTimeouts(),f=o?d.appear:d.enter;if(!a&&!l||xv.disabled){this.safeSetState({status:tr},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Vt},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:tr},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var a=this,i=this.props.exit,l=this.getTimeouts(),o=this.props.nodeRef?void 0:fa.findDOMNode(this);if(!i||xv.disabled){this.safeSetState({status:$r},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:ji},function(){a.props.onExiting(o),a.onTransitionEnd(l.exit,function(){a.safeSetState({status:$r},function(){a.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,l=!0;return this.nextCallback=function(o){l&&(l=!1,i.nextCallback=null,a(o))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var l=this.props.nodeRef?this.props.nodeRef.current:fa.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!l||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===Cl)return null;var i=this.props,l=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=bn(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ne.createElement(V1.Provider,{value:null},typeof l=="function"?l(a,o):ne.cloneElement(ne.Children.only(l),o))},t}(ne.Component);xr.contextType=V1;xr.propTypes={};function Ya(){}xr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ya,onEntering:Ya,onEntered:Ya,onExit:Ya,onExiting:Ya,onExited:Ya};xr.UNMOUNTED=Cl;xr.EXITED=$r;xr.ENTERING=Vt;xr.ENTERED=tr;xr.EXITING=ji;function X1(e){return e.code==="Escape"||e.keyCode===27}function cw(){const e=m.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function zo(e){if(!e||typeof e=="function")return null;const{major:t}=cw();return t>=19?e.props.ref:e.ref}const _c=!!(typeof window<"u"&&window.document&&window.document.createElement);var fp=!1,dp=!1;try{var Xf={get passive(){return fp=!0},get once(){return dp=fp=!0}};_c&&(window.addEventListener("test",Xf,Xf),window.removeEventListener("test",Xf,!0))}catch{}function fw(e,t,n,r){if(r&&typeof r!="boolean"&&!dp){var a=r.once,i=r.capture,l=n;!dp&&a&&(l=n.__once||function o(s){this.removeEventListener(t,o,i),n.call(this,s)},n.__once=l),e.addEventListener(t,l,fp?r:i)}e.addEventListener(t,n,r)}function dw(e,t,n,r){var a=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)}function ir(e,t,n,r){return fw(e,t,n,r),function(){dw(e,t,n,r)}}function pw(e,t,n,r){if(r===void 0&&(r=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,r),e.dispatchEvent(a)}}function hw(e){var t=fr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function yw(e,t,n){n===void 0&&(n=5);var r=!1,a=setTimeout(function(){r||pw(e,"transitionend",!0)},t+n),i=ir(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(a),i()}}function mw(e,t,n,r){n==null&&(n=hw(e)||0);var a=yw(e,n,r),i=ir(e,"transitionend",t);return function(){a(),i()}}function Ov(e,t){const n=fr(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function ry(e,t){const n=Ov(e,"transitionDuration"),r=Ov(e,"transitionDelay"),a=mw(e,i=>{i.target===e&&(a(),t(i))},n+r)}function pl(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...a){t.apply(this,a),n.apply(this,a)}},null)}function P1(e){e.offsetHeight}const _v=e=>!e||typeof e=="function"?e:t=>{e.current=t};function vw(e,t){const n=_v(e),r=_v(t);return a=>{n&&n(a),r&&r(a)}}function ay(e,t){return m.useMemo(()=>vw(e,t),[e,t])}function Ou(e){return e&&"setState"in e?fa.findDOMNode(e):e??null}const iy=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,onExited:i,addEndListener:l,children:o,childRef:s,...u},c)=>{const d=m.useRef(null),f=ay(d,s),h=O=>{f(Ou(O))},b=O=>T=>{O&&d.current&&O(d.current,T)},S=m.useCallback(b(e),[e]),x=m.useCallback(b(t),[t]),y=m.useCallback(b(n),[n]),p=m.useCallback(b(r),[r]),v=m.useCallback(b(a),[a]),E=m.useCallback(b(i),[i]),_=m.useCallback(b(l),[l]);return g.jsx(xr,{ref:c,...u,onEnter:S,onEntered:y,onEntering:x,onExit:p,onExited:E,onExiting:v,addEndListener:_,nodeRef:d,children:typeof o=="function"?(O,T)=>o(O,{...T,ref:h}):ne.cloneElement(o,{ref:h})})}),gw={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function bw(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],a=gw[e];return r+parseInt(fr(t,a[0]),10)+parseInt(fr(t,a[1]),10)}const Sw={[$r]:"collapse",[ji]:"collapsing",[Vt]:"collapsing",[tr]:"collapse show"},Tc=ne.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,className:i,children:l,dimension:o="height",in:s=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:f=!1,getDimensionValue:h=bw,...b},S)=>{const x=typeof o=="function"?o():o,y=m.useMemo(()=>pl(O=>{O.style[x]="0"},e),[x,e]),p=m.useMemo(()=>pl(O=>{const T=`scroll${x[0].toUpperCase()}${x.slice(1)}`;O.style[x]=`${O[T]}px`},t),[x,t]),v=m.useMemo(()=>pl(O=>{O.style[x]=null},n),[x,n]),E=m.useMemo(()=>pl(O=>{O.style[x]=`${h(x,O)}px`,P1(O)},r),[r,h,x]),_=m.useMemo(()=>pl(O=>{O.style[x]=null},a),[x,a]);return g.jsx(iy,{ref:S,addEndListener:ry,...b,"aria-expanded":b.role?s:null,onEnter:y,onEntering:p,onEntered:v,onExit:E,onExiting:_,childRef:zo(l),in:s,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:f,children:(O,T)=>ne.cloneElement(l,{...T,className:z(i,l.props.className,Sw[O],x==="width"&&"collapse-horizontal")})})});function Ew(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function Ii(e){const t=Ew(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const ly=e=>m.forwardRef((t,n)=>g.jsx("div",{...t,ref:n,className:z(t.className,e)}));function Tv(){return m.useState(null)}function xw(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e},[e]),t}function An(e){const t=xw(e);return m.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function F1(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Ow(e){const t=m.useRef(null);return m.useEffect(()=>{t.current=e}),t.current}const _w=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Tw=typeof document<"u",wv=Tw||_w?m.useLayoutEffect:m.useEffect,ww=["as","disabled"];function Aw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Rw(e){return!e||e.trim()==="#"}function Q1({tagName:e,disabled:t,href:n,target:r,rel:a,role:i,onClick:l,tabIndex:o=0,type:s}){e||(n!=null||r!=null||a!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:s||"button",disabled:t},u];const c=f=>{if((t||e==="a"&&Rw(n))&&f.preventDefault(),t){f.stopPropagation();return}l==null||l(f)},d=f=>{f.key===" "&&(f.preventDefault(),c(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:o,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?a:void 0,onClick:c,onKeyDown:d},u]}const Cw=m.forwardRef((e,t)=>{let{as:n,disabled:r}=e,a=Aw(e,ww);const[i,{tagName:l}]=Q1(Object.assign({tagName:n,disabled:r},a));return g.jsx(l,Object.assign({},a,i,{ref:t}))});Cw.displayName="Button";const $w={[Vt]:"show",[tr]:"show"},uo=m.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...a},i)=>{const l={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},o=m.useCallback((s,u)=>{P1(s),r==null||r(s,u)},[r]);return g.jsx(iy,{ref:i,addEndListener:ry,...l,onEnter:o,childRef:zo(t),children:(s,u)=>m.cloneElement(t,{...u,className:z("fade",e,t.props.className,$w[s],n[s])})})});uo.displayName="Fade";const Nw={"aria-label":he.string,onClick:he.func,variant:he.oneOf(["white"])},wc=m.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},a)=>g.jsx("button",{ref:a,type:"button",className:z("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));wc.displayName="CloseButton";wc.propTypes=Nw;const K1=m.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:r,className:a,as:i="span",...l},o)=>{const s=H(e,"badge");return g.jsx(i,{ref:o,...l,className:z(a,s,n&&"rounded-pill",r&&`text-${r}`,t&&`bg-${t}`)})});K1.displayName="Badge";const Lo=m.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:a=!1,disabled:i=!1,className:l,...o},s)=>{const u=H(t,"btn"),[c,{tagName:d}]=Q1({tagName:e,disabled:i,...o}),f=d;return g.jsx(f,{...c,...o,ref:s,disabled:i,className:z(l,u,a&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,o.href&&i&&"disabled")})});Lo.displayName="Button";const oy=m.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"card-body"),g.jsx(n,{ref:a,className:z(e,t),...r})));oy.displayName="CardBody";const Z1=m.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"card-footer"),g.jsx(n,{ref:a,className:z(e,t),...r})));Z1.displayName="CardFooter";const W1=m.createContext(null);W1.displayName="CardHeaderContext";const J1=m.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},a)=>{const i=H(e,"card-header"),l=m.useMemo(()=>({cardHeaderBsPrefix:i}),[i]);return g.jsx(W1.Provider,{value:l,children:g.jsx(n,{ref:a,...r,className:z(t,i)})})});J1.displayName="CardHeader";const I1=m.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...a},i)=>{const l=H(e,"card-img");return g.jsx(r,{ref:i,className:z(n?`${l}-${n}`:l,t),...a})});I1.displayName="CardImg";const eS=m.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"card-img-overlay"),g.jsx(n,{ref:a,className:z(e,t),...r})));eS.displayName="CardImgOverlay";const tS=m.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},a)=>(t=H(t,"card-link"),g.jsx(n,{ref:a,className:z(e,t),...r})));tS.displayName="CardLink";const Mw=ly("h6"),nS=m.forwardRef(({className:e,bsPrefix:t,as:n=Mw,...r},a)=>(t=H(t,"card-subtitle"),g.jsx(n,{ref:a,className:z(e,t),...r})));nS.displayName="CardSubtitle";const rS=m.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},a)=>(t=H(t,"card-text"),g.jsx(n,{ref:a,className:z(e,t),...r})));rS.displayName="CardText";const jw=ly("h5"),aS=m.forwardRef(({className:e,bsPrefix:t,as:n=jw,...r},a)=>(t=H(t,"card-title"),g.jsx(n,{ref:a,className:z(e,t),...r})));aS.displayName="CardTitle";const iS=m.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:a,body:i=!1,children:l,as:o="div",...s},u)=>{const c=H(e,"card");return g.jsx(o,{ref:u,...s,className:z(t,c,n&&`bg-${n}`,r&&`text-${r}`,a&&`border-${a}`),children:i?g.jsx(oy,{children:l}):l})});iS.displayName="Card";const Ei=Object.assign(iS,{Img:I1,Title:aS,Subtitle:nS,Body:oy,Link:tS,Text:rS,Header:J1,Footer:Z1,ImgOverlay:eS});function Dw(){const e=m.useRef(!0),t=m.useRef(()=>e.current);return m.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Bw(e){const t=m.useRef(e);return t.current=e,t}function kw(e){const t=Bw(e);m.useEffect(()=>()=>t.current(),[])}const pp=2**31-1;function lS(e,t,n){const r=n-Date.now();e.current=r<=pp?setTimeout(t,r):setTimeout(()=>lS(e,t,n),pp)}function oS(){const e=Dw(),t=m.useRef();return kw(()=>clearTimeout(t.current)),m.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(a,i=0){e()&&(n(),i<=pp?t.current=setTimeout(a,i):lS(t,a,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function zw(e,t){return m.Children.toArray(e).some(n=>m.isValidElement(n)&&n.type===t)}function Lw({as:e,bsPrefix:t,className:n,...r}){t=H(t,"col");const a=D1(),i=B1(),l=[],o=[];return a.forEach(s=>{const u=r[s];delete r[s];let c,d,f;typeof u=="object"&&u!=null?{span:c,offset:d,order:f}=u:c=u;const h=s!==i?`-${s}`:"";c&&l.push(c===!0?`${t}${h}`:`${t}${h}-${c}`),f!=null&&o.push(`order${h}-${f}`),d!=null&&o.push(`offset${h}-${d}`)}),[{...r,className:z(n,...l,...o)},{as:e,bsPrefix:t,spans:l}]}const On=m.forwardRef((e,t)=>{const[{className:n,...r},{as:a="div",bsPrefix:i,spans:l}]=Lw(e);return g.jsx(a,{...r,ref:t,className:z(n,!l.length&&i)})});On.displayName="Col";const sS=m.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...a},i)=>{const l=H(e,"container"),o=typeof t=="string"?`-${t}`:"-fluid";return g.jsx(n,{ref:i,...a,className:z(r,t?`${l}${o}`:l)})});sS.displayName="Container";var Uw=Function.prototype.bind.call(Function.prototype.call,[].slice);function Va(e,t){return Uw(e.querySelectorAll(t))}var Av=Object.prototype.hasOwnProperty;function Rv(e,t,n){for(n of e.keys())if(Ul(n,t))return n}function Ul(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Ul(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(a=r,a&&typeof a=="object"&&(a=Rv(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(a=r[0],a&&typeof a=="object"&&(a=Rv(t,a),!a)||!Ul(r[1],t.get(a)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Av.call(e,n)&&++r&&!Av.call(t,n)||!(n in t)||!Ul(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Hw(e){const t=F1();return[e[0],m.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var bt="top",tn="bottom",nn="right",St="left",sy="auto",Uo=[bt,tn,nn,St],Di="start",co="end",qw="clippingParents",uS="viewport",hl="popper",Gw="reference",Cv=Uo.reduce(function(e,t){return e.concat([t+"-"+Di,t+"-"+co])},[]),cS=[].concat(Uo,[sy]).reduce(function(e,t){return e.concat([t,t+"-"+Di,t+"-"+co])},[]),Yw="beforeRead",Vw="read",Xw="afterRead",Pw="beforeMain",Fw="main",Qw="afterMain",Kw="beforeWrite",Zw="write",Ww="afterWrite",Jw=[Yw,Vw,Xw,Pw,Fw,Qw,Kw,Zw,Ww];function $n(e){return e.split("-")[0]}function Dt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xa(e){var t=Dt(e).Element;return e instanceof t||e instanceof Element}function Nn(e){var t=Dt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uy(e){if(typeof ShadowRoot>"u")return!1;var t=Dt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ha=Math.max,_u=Math.min,Bi=Math.round;function hp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function fS(){return!/^((?!chrome|android).)*safari/i.test(hp())}function ki(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&Nn(e)&&(a=e.offsetWidth>0&&Bi(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Bi(r.height)/e.offsetHeight||1);var l=xa(e)?Dt(e):window,o=l.visualViewport,s=!fS()&&n,u=(r.left+(s&&o?o.offsetLeft:0))/a,c=(r.top+(s&&o?o.offsetTop:0))/i,d=r.width/a,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function cy(e){var t=ki(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function dS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uy(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wr(e){return e?(e.nodeName||"").toLowerCase():null}function hr(e){return Dt(e).getComputedStyle(e)}function Iw(e){return["table","td","th"].indexOf(Wr(e))>=0}function na(e){return((xa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ac(e){return Wr(e)==="html"?e:e.assignedSlot||e.parentNode||(uy(e)?e.host:null)||na(e)}function $v(e){return!Nn(e)||hr(e).position==="fixed"?null:e.offsetParent}function eA(e){var t=/firefox/i.test(hp()),n=/Trident/i.test(hp());if(n&&Nn(e)){var r=hr(e);if(r.position==="fixed")return null}var a=Ac(e);for(uy(a)&&(a=a.host);Nn(a)&&["html","body"].indexOf(Wr(a))<0;){var i=hr(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Ho(e){for(var t=Dt(e),n=$v(e);n&&Iw(n)&&hr(n).position==="static";)n=$v(n);return n&&(Wr(n)==="html"||Wr(n)==="body"&&hr(n).position==="static")?t:n||eA(e)||t}function fy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hl(e,t,n){return ha(e,_u(t,n))}function tA(e,t,n){var r=Hl(e,t,n);return r>n?n:r}function pS(){return{top:0,right:0,bottom:0,left:0}}function hS(e){return Object.assign({},pS(),e)}function yS(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var nA=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,hS(typeof t!="number"?t:yS(t,Uo))};function rA(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,o=$n(n.placement),s=fy(o),u=[St,nn].indexOf(o)>=0,c=u?"height":"width";if(!(!i||!l)){var d=nA(a.padding,n),f=cy(i),h=s==="y"?bt:St,b=s==="y"?tn:nn,S=n.rects.reference[c]+n.rects.reference[s]-l[s]-n.rects.popper[c],x=l[s]-n.rects.reference[s],y=Ho(i),p=y?s==="y"?y.clientHeight||0:y.clientWidth||0:0,v=S/2-x/2,E=d[h],_=p-f[c]-d[b],O=p/2-f[c]/2+v,T=Hl(E,O,_),w=s;n.modifiersData[r]=(t={},t[w]=T,t.centerOffset=T-O,t)}}function aA(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||dS(t.elements.popper,a)&&(t.elements.arrow=a))}const iA={name:"arrow",enabled:!0,phase:"main",fn:rA,effect:aA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zi(e){return e.split("-")[1]}var lA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oA(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Bi(n*a)/a||0,y:Bi(r*a)/a||0}}function Nv(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,l=e.offsets,o=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=l.x,h=f===void 0?0:f,b=l.y,S=b===void 0?0:b,x=typeof c=="function"?c({x:h,y:S}):{x:h,y:S};h=x.x,S=x.y;var y=l.hasOwnProperty("x"),p=l.hasOwnProperty("y"),v=St,E=bt,_=window;if(u){var O=Ho(n),T="clientHeight",w="clientWidth";if(O===Dt(n)&&(O=na(n),hr(O).position!=="static"&&o==="absolute"&&(T="scrollHeight",w="scrollWidth")),O=O,a===bt||(a===St||a===nn)&&i===co){E=tn;var $=d&&O===_&&_.visualViewport?_.visualViewport.height:O[T];S-=$-r.height,S*=s?1:-1}if(a===St||(a===bt||a===tn)&&i===co){v=nn;var R=d&&O===_&&_.visualViewport?_.visualViewport.width:O[w];h-=R-r.width,h*=s?1:-1}}var N=Object.assign({position:o},u&&lA),G=c===!0?oA({x:h,y:S},Dt(n)):{x:h,y:S};if(h=G.x,S=G.y,s){var U;return Object.assign({},N,(U={},U[E]=p?"0":"",U[v]=y?"0":"",U.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+S+"px)":"translate3d("+h+"px, "+S+"px, 0)",U))}return Object.assign({},N,(t={},t[E]=p?S+"px":"",t[v]=y?h+"px":"",t.transform="",t))}function sA(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,o=n.roundOffsets,s=o===void 0?!0:o,u={placement:$n(t.placement),variation:zi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Nv(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nv(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const uA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sA,data:{}};var ps={passive:!0};function cA(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,l=r.resize,o=l===void 0?!0:l,s=Dt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ps)}),o&&s.addEventListener("resize",n.update,ps),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ps)}),o&&s.removeEventListener("resize",n.update,ps)}}const fA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cA,data:{}};var dA={left:"right",right:"left",bottom:"top",top:"bottom"};function qs(e){return e.replace(/left|right|bottom|top/g,function(t){return dA[t]})}var pA={start:"end",end:"start"};function Mv(e){return e.replace(/start|end/g,function(t){return pA[t]})}function dy(e){var t=Dt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function py(e){return ki(na(e)).left+dy(e).scrollLeft}function hA(e,t){var n=Dt(e),r=na(e),a=n.visualViewport,i=r.clientWidth,l=r.clientHeight,o=0,s=0;if(a){i=a.width,l=a.height;var u=fS();(u||!u&&t==="fixed")&&(o=a.offsetLeft,s=a.offsetTop)}return{width:i,height:l,x:o+py(e),y:s}}function yA(e){var t,n=na(e),r=dy(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=ha(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=ha(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-r.scrollLeft+py(e),s=-r.scrollTop;return hr(a||n).direction==="rtl"&&(o+=ha(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:l,x:o,y:s}}function hy(e){var t=hr(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function mS(e){return["html","body","#document"].indexOf(Wr(e))>=0?e.ownerDocument.body:Nn(e)&&hy(e)?e:mS(Ac(e))}function ql(e,t){var n;t===void 0&&(t=[]);var r=mS(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Dt(r),l=a?[i].concat(i.visualViewport||[],hy(r)?r:[]):r,o=t.concat(l);return a?o:o.concat(ql(Ac(l)))}function yp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mA(e,t){var n=ki(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jv(e,t,n){return t===uS?yp(hA(e,n)):xa(t)?mA(t,n):yp(yA(na(e)))}function vA(e){var t=ql(Ac(e)),n=["absolute","fixed"].indexOf(hr(e).position)>=0,r=n&&Nn(e)?Ho(e):e;return xa(r)?t.filter(function(a){return xa(a)&&dS(a,r)&&Wr(a)!=="body"}):[]}function gA(e,t,n,r){var a=t==="clippingParents"?vA(e):[].concat(t),i=[].concat(a,[n]),l=i[0],o=i.reduce(function(s,u){var c=jv(e,u,r);return s.top=ha(c.top,s.top),s.right=_u(c.right,s.right),s.bottom=_u(c.bottom,s.bottom),s.left=ha(c.left,s.left),s},jv(e,l,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function vS(e){var t=e.reference,n=e.element,r=e.placement,a=r?$n(r):null,i=r?zi(r):null,l=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,s;switch(a){case bt:s={x:l,y:t.y-n.height};break;case tn:s={x:l,y:t.y+t.height};break;case nn:s={x:t.x+t.width,y:o};break;case St:s={x:t.x-n.width,y:o};break;default:s={x:t.x,y:t.y}}var u=a?fy(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Di:s[u]=s[u]-(t[c]/2-n[c]/2);break;case co:s[u]=s[u]+(t[c]/2-n[c]/2);break}}return s}function fo(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,l=i===void 0?e.strategy:i,o=n.boundary,s=o===void 0?qw:o,u=n.rootBoundary,c=u===void 0?uS:u,d=n.elementContext,f=d===void 0?hl:d,h=n.altBoundary,b=h===void 0?!1:h,S=n.padding,x=S===void 0?0:S,y=hS(typeof x!="number"?x:yS(x,Uo)),p=f===hl?Gw:hl,v=e.rects.popper,E=e.elements[b?p:f],_=gA(xa(E)?E:E.contextElement||na(e.elements.popper),s,c,l),O=ki(e.elements.reference),T=vS({reference:O,element:v,strategy:"absolute",placement:a}),w=yp(Object.assign({},v,T)),$=f===hl?w:O,R={top:_.top-$.top+y.top,bottom:$.bottom-_.bottom+y.bottom,left:_.left-$.left+y.left,right:$.right-_.right+y.right},N=e.modifiersData.offset;if(f===hl&&N){var G=N[a];Object.keys(R).forEach(function(U){var X=[nn,tn].indexOf(U)>=0?1:-1,q=[bt,tn].indexOf(U)>=0?"y":"x";R[U]+=G[q]*X})}return R}function bA(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,l=n.padding,o=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?cS:s,c=zi(r),d=c?o?Cv:Cv.filter(function(b){return zi(b)===c}):Uo,f=d.filter(function(b){return u.indexOf(b)>=0});f.length===0&&(f=d);var h=f.reduce(function(b,S){return b[S]=fo(e,{placement:S,boundary:a,rootBoundary:i,padding:l})[$n(S)],b},{});return Object.keys(h).sort(function(b,S){return h[b]-h[S]})}function SA(e){if($n(e)===sy)return[];var t=qs(e);return[Mv(e),t,Mv(t)]}function EA(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,l=n.altAxis,o=l===void 0?!0:l,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,b=h===void 0?!0:h,S=n.allowedAutoPlacements,x=t.options.placement,y=$n(x),p=y===x,v=s||(p||!b?[qs(x)]:SA(x)),E=[x].concat(v).reduce(function(V,ve){return V.concat($n(ve)===sy?bA(t,{placement:ve,boundary:c,rootBoundary:d,padding:u,flipVariations:b,allowedAutoPlacements:S}):ve)},[]),_=t.rects.reference,O=t.rects.popper,T=new Map,w=!0,$=E[0],R=0;R=0,q=X?"width":"height",C=fo(t,{placement:N,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),j=X?U?nn:St:U?tn:bt;_[q]>O[q]&&(j=qs(j));var D=qs(j),K=[];if(i&&K.push(C[G]<=0),o&&K.push(C[j]<=0,C[D]<=0),K.every(function(V){return V})){$=N,w=!1;break}T.set(N,K)}if(w)for(var ie=b?3:1,Pe=function(ve){var zt=E.find(function(_t){var it=T.get(_t);if(it)return it.slice(0,ve).every(function(Lt){return Lt})});if(zt)return $=zt,"break"},ke=ie;ke>0;ke--){var xe=Pe(ke);if(xe==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const xA={name:"flip",enabled:!0,phase:"main",fn:EA,requiresIfExists:["offset"],data:{_skip:!1}};function Dv(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Bv(e){return[bt,nn,tn,St].some(function(t){return e[t]>=0})}function OA(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,l=fo(t,{elementContext:"reference"}),o=fo(t,{altBoundary:!0}),s=Dv(l,r),u=Dv(o,a,i),c=Bv(s),d=Bv(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const _A={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:OA};function TA(e,t,n){var r=$n(e),a=[St,bt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],o=i[1];return l=l||0,o=(o||0)*a,[St,nn].indexOf(r)>=0?{x:o,y:l}:{x:l,y:o}}function wA(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,l=cS.reduce(function(c,d){return c[d]=TA(d,t.rects,i),c},{}),o=l[t.placement],s=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=l}const AA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wA};function RA(e){var t=e.state,n=e.name;t.modifiersData[n]=vS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const CA={name:"popperOffsets",enabled:!0,phase:"read",fn:RA,data:{}};function $A(e){return e==="x"?"y":"x"}function NA(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,l=n.altAxis,o=l===void 0?!1:l,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,b=n.tetherOffset,S=b===void 0?0:b,x=fo(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),y=$n(t.placement),p=zi(t.placement),v=!p,E=fy(y),_=$A(E),O=t.modifiersData.popperOffsets,T=t.rects.reference,w=t.rects.popper,$=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,R=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(O){if(i){var U,X=E==="y"?bt:St,q=E==="y"?tn:nn,C=E==="y"?"height":"width",j=O[E],D=j+x[X],K=j-x[q],ie=h?-w[C]/2:0,Pe=p===Di?T[C]:w[C],ke=p===Di?-w[C]:-T[C],xe=t.elements.arrow,V=h&&xe?cy(xe):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pS(),zt=ve[X],_t=ve[q],it=Hl(0,T[C],V[C]),Lt=v?T[C]/2-ie-it-zt-R.mainAxis:Pe-it-zt-R.mainAxis,Vn=v?-T[C]/2+ie+it+_t+R.mainAxis:ke+it+_t+R.mainAxis,Xn=t.elements.arrow&&Ho(t.elements.arrow),Pn=Xn?E==="y"?Xn.clientTop||0:Xn.clientLeft||0:0,lt=(U=N==null?void 0:N[E])!=null?U:0,fe=j+Lt-lt-Pn,Y=j+Vn-lt,Ie=Hl(h?_u(D,fe):D,j,h?ha(K,Y):K);O[E]=Ie,G[E]=Ie-j}if(o){var dt,Tt=E==="x"?bt:St,fl=E==="x"?tn:nn,Oe=O[_],cn=_==="y"?"height":"width",Ua=Oe+x[Tt],Ha=Oe-x[fl],la=[bt,St].indexOf(y)!==-1,dl=(dt=N==null?void 0:N[_])!=null?dt:0,qa=la?Ua:Oe-T[cn]-w[cn]-dl+R.altAxis,Tr=la?Oe+T[cn]+w[cn]-dl-R.altAxis:Ha,M=h&&la?tA(qa,Oe,Tr):Hl(h?qa:Ua,Oe,h?Tr:Ha);O[_]=M,G[_]=M-Oe}t.modifiersData[r]=G}}const MA={name:"preventOverflow",enabled:!0,phase:"main",fn:NA,requiresIfExists:["offset"]};function jA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DA(e){return e===Dt(e)||!Nn(e)?dy(e):jA(e)}function BA(e){var t=e.getBoundingClientRect(),n=Bi(t.width)/e.offsetWidth||1,r=Bi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kA(e,t,n){n===void 0&&(n=!1);var r=Nn(t),a=Nn(t)&&BA(t),i=na(t),l=ki(e,a,n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((Wr(t)!=="body"||hy(i))&&(o=DA(t)),Nn(t)?(s=ki(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=py(i))),{x:l.left+o.scrollLeft-s.x,y:l.top+o.scrollTop-s.y,width:l.width,height:l.height}}function zA(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(o){if(!n.has(o)){var s=t.get(o);s&&a(s)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function LA(e){var t=zA(e);return Jw.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function UA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function HA(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var kv={placement:"bottom",modifiers:[],strategy:"absolute"};function zv(){for(var e=arguments.length,t=new Array(e),n=0;n=0)continue;n[r]=e[r]}return n}const XA={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},PA={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(a=>a.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,a=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&a==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},FA=[];function QA(e,t,n={}){let{enabled:r=!0,placement:a="bottom",strategy:i="absolute",modifiers:l=FA}=n,o=VA(n,YA);const s=m.useRef(l),u=m.useRef(),c=m.useCallback(()=>{var x;(x=u.current)==null||x.update()},[]),d=m.useCallback(()=>{var x;(x=u.current)==null||x.forceUpdate()},[]),[f,h]=Hw(m.useState({placement:a,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),b=m.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:x})=>{const y={},p={};Object.keys(x.elements).forEach(v=>{y[v]=x.styles[v],p[v]=x.attributes[v]}),h({state:x,styles:y,attributes:p,update:c,forceUpdate:d,placement:x.placement})}}),[c,d,h]),S=m.useMemo(()=>(Ul(s.current,l)||(s.current=l),s.current),[l]);return m.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:a,strategy:i,modifiers:[...S,b,XA]})},[i,a,b,r,S]),m.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=GA(e,t,Object.assign({},o,{placement:a,strategy:i,modifiers:[...S,PA,b]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,h(x=>Object.assign({},x,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function po(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var KA=function(){},ZA=KA;const WA=Ra(ZA),Lv=()=>{};function JA(e){return e.button===0}function IA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Gs=e=>e&&("current"in e?e.current:e),Uv={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function eR(e,t=Lv,{disabled:n,clickTrigger:r="click"}={}){const a=m.useRef(!1),i=m.useRef(!1),l=m.useCallback(u=>{const c=Gs(e);WA(!!c,"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"),a.current=!c||IA(u)||!JA(u)||!!po(c,u.target)||i.current,i.current=!1},[e]),o=An(u=>{const c=Gs(e);c&&po(c,u.target)?i.current=!0:i.current=!1}),s=An(u=>{a.current||t(u)});m.useEffect(()=>{var u,c;if(n||e==null)return;const d=ko(Gs(e)),f=d.defaultView||window;let h=(u=f.event)!=null?u:(c=f.parent)==null?void 0:c.event,b=null;Uv[r]&&(b=ir(d,Uv[r],o,!0));const S=ir(d,r,l,!0),x=ir(d,r,p=>{if(p===h){h=void 0;return}s(p)});let y=[];return"ontouchstart"in d.documentElement&&(y=[].slice.call(d.body.children).map(p=>ir(p,"mousemove",Lv))),()=>{b==null||b(),S(),x(),y.forEach(p=>p())}},[e,n,r,l,o,s])}function tR(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function nR(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function rR({enabled:e,enableEvents:t,placement:n,flip:r,offset:a,fixed:i,containerPadding:l,arrowElement:o,popperConfig:s={}}){var u,c,d,f,h;const b=tR(s.modifiers);return Object.assign({},s,{placement:n,enabled:e,strategy:i?"fixed":s.strategy,modifiers:nR(Object.assign({},b,{eventListeners:{enabled:t,options:(u=b.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},b.preventOverflow,{options:l?Object.assign({padding:l},(c=b.preventOverflow)==null?void 0:c.options):(d=b.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:a},(f=b.offset)==null?void 0:f.options)},arrow:Object.assign({},b.arrow,{enabled:!!o,options:Object.assign({},(h=b.arrow)==null?void 0:h.options,{element:o})}),flip:Object.assign({enabled:!!r},b.flip)}))})}const aR=m.createContext(null),iR="data-rr-ui-";function lR(e){return`${iR}${e}`}const gS=m.createContext(_c?window:void 0);gS.Provider;function yy(){return m.useContext(gS)}const oR=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",sR=typeof document<"u",bS=sR||oR?m.useLayoutEffect:m.useEffect,SS=m.createContext(null);SS.displayName="InputGroupContext";const qo=m.createContext(null);qo.displayName="NavbarContext";he.string,he.bool,he.bool,he.bool,he.bool;const ES=m.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:a=!1,thumbnail:i=!1,...l},o)=>(e=H(e,"img"),g.jsx("img",{ref:o,...l,className:z(t,n&&`${e}-fluid`,r&&"rounded",a&&"rounded-circle",i&&`${e}-thumbnail`)})));ES.displayName="Image";const uR={type:he.string,tooltip:he.bool,as:he.elementType},Rc=m.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...a},i)=>g.jsx(e,{...a,ref:i,className:z(t,`${n}-${r?"tooltip":"feedback"}`)}));Rc.displayName="Feedback";Rc.propTypes=uR;const yr=m.createContext({}),Go=m.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:a=!1,isInvalid:i=!1,as:l="input",...o},s)=>{const{controlId:u}=m.useContext(yr);return t=H(t,"form-check-input"),g.jsx(l,{...o,ref:s,type:r,id:e||u,className:z(n,t,a&&"is-valid",i&&"is-invalid")})});Go.displayName="FormCheckInput";const Tu=m.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},a)=>{const{controlId:i}=m.useContext(yr);return e=H(e,"form-check-label"),g.jsx("label",{...r,ref:a,htmlFor:n||i,className:z(t,e)})});Tu.displayName="FormCheckLabel";const xS=m.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:a=!1,disabled:i=!1,isValid:l=!1,isInvalid:o=!1,feedbackTooltip:s=!1,feedback:u,feedbackType:c,className:d,style:f,title:h="",type:b="checkbox",label:S,children:x,as:y="input",...p},v)=>{t=H(t,"form-check"),n=H(n,"form-switch");const{controlId:E}=m.useContext(yr),_=m.useMemo(()=>({controlId:e||E}),[E,e]),O=!x&&S!=null&&S!==!1||zw(x,Tu),T=g.jsx(Go,{...p,type:b==="switch"?"checkbox":b,ref:v,isValid:l,isInvalid:o,disabled:i,as:y});return g.jsx(yr.Provider,{value:_,children:g.jsx("div",{style:f,className:z(d,O&&t,r&&`${t}-inline`,a&&`${t}-reverse`,b==="switch"&&n),children:x||g.jsxs(g.Fragment,{children:[T,O&&g.jsx(Tu,{title:h,children:S}),u&&g.jsx(Rc,{type:c,tooltip:s,children:u})]})})})});xS.displayName="FormCheck";const wu=Object.assign(xS,{Input:Go,Label:Tu}),OS=m.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:a,className:i,isValid:l=!1,isInvalid:o=!1,plaintext:s,readOnly:u,as:c="input",...d},f)=>{const{controlId:h}=m.useContext(yr);return e=H(e,"form-control"),g.jsx(c,{...d,type:t,size:r,ref:f,readOnly:u,id:a||h,className:z(i,s?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,l&&"is-valid",o&&"is-invalid")})});OS.displayName="FormControl";const cR=Object.assign(OS,{Feedback:Rc}),_S=m.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"form-floating"),g.jsx(n,{ref:a,className:z(e,t),...r})));_S.displayName="FormFloating";const my=m.forwardRef(({controlId:e,as:t="div",...n},r)=>{const a=m.useMemo(()=>({controlId:e}),[e]);return g.jsx(yr.Provider,{value:a,children:g.jsx(t,{...n,ref:r})})});my.displayName="FormGroup";const TS=m.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:a,htmlFor:i,...l},o)=>{const{controlId:s}=m.useContext(yr);t=H(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=z(a,t,r&&"visually-hidden",n&&u);return i=i||s,n?g.jsx(On,{ref:o,as:"label",className:c,htmlFor:i,...l}):g.jsx(e,{ref:o,className:c,htmlFor:i,...l})});TS.displayName="FormLabel";const wS=m.forwardRef(({bsPrefix:e,className:t,id:n,...r},a)=>{const{controlId:i}=m.useContext(yr);return e=H(e,"form-range"),g.jsx("input",{...r,type:"range",ref:a,className:z(t,e),id:n||i})});wS.displayName="FormRange";const AS=m.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:a=!1,isInvalid:i=!1,id:l,...o},s)=>{const{controlId:u}=m.useContext(yr);return e=H(e,"form-select"),g.jsx("select",{...o,size:n,ref:s,className:z(r,e,t&&`${e}-${t}`,a&&"is-valid",i&&"is-invalid"),id:l||u})});AS.displayName="FormSelect";const RS=m.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...a},i)=>(e=H(e,"form-text"),g.jsx(n,{...a,ref:i,className:z(t,e,r&&"text-muted")})));RS.displayName="FormText";const CS=m.forwardRef((e,t)=>g.jsx(wu,{...e,ref:t,type:"switch"}));CS.displayName="Switch";const fR=Object.assign(CS,{Input:wu.Input,Label:wu.Label}),$S=m.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:a,...i},l)=>(e=H(e,"form-floating"),g.jsxs(my,{ref:l,className:z(t,e),controlId:r,...i,children:[n,g.jsx("label",{htmlFor:r,children:a})]})));$S.displayName="FloatingLabel";const dR={_ref:he.any,validated:he.bool,as:he.elementType},vy=m.forwardRef(({className:e,validated:t,as:n="form",...r},a)=>g.jsx(n,{...r,ref:a,className:z(e,t&&"was-validated")}));vy.displayName="Form";vy.propTypes=dR;const pt=Object.assign(vy,{Group:my,Control:cR,Floating:_S,Check:wu,Switch:fR,Label:TS,Text:RS,Range:wS,Select:AS,FloatingLabel:$S}),Cc=m.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},a)=>(t=H(t,"input-group-text"),g.jsx(n,{ref:a,className:z(e,t),...r})));Cc.displayName="InputGroupText";const pR=e=>g.jsx(Cc,{children:g.jsx(Go,{type:"checkbox",...e})}),hR=e=>g.jsx(Cc,{children:g.jsx(Go,{type:"radio",...e})}),NS=m.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:a="div",...i},l)=>{e=H(e,"input-group");const o=m.useMemo(()=>({}),[]);return g.jsx(SS.Provider,{value:o,children:g.jsx(a,{ref:l,...i,className:z(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});NS.displayName="InputGroup";const dr=Object.assign(NS,{Text:Cc,Radio:hR,Checkbox:pR}),Hv=e=>!e||typeof e=="function"?e:t=>{e.current=t};function yR(e,t){const n=Hv(e),r=Hv(t);return a=>{n&&n(a),r&&r(a)}}function $c(e,t){return m.useMemo(()=>yR(e,t),[e,t])}function Pf(e){e===void 0&&(e=ko());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function mR(e){const t=m.useRef(e);return t.current=e,t}function vR(e){const t=mR(e);m.useEffect(()=>()=>t.current(),[])}function gR(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const qv=lR("modal-open");class gy{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return gR(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();t.style={overflow:a.style.overflow,[r]:a.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(fr(a,r)||"0",10)+t.scrollBarWidth}px`),a.setAttribute(qv,""),fr(a,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(qv),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Ff=(e,t)=>_c?e==null?(t||ko()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function mp(e,t){const n=yy(),[r,a]=m.useState(()=>Ff(e,n==null?void 0:n.document));if(!r){const i=Ff(e);i&&a(i)}return m.useEffect(()=>{},[t,r]),m.useEffect(()=>{const i=Ff(e);i!==r&&a(i)},[e,r]),r}function bR({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:a}){const i=m.useRef(null),l=m.useRef(t),o=An(n);m.useEffect(()=>{t?l.current=!0:o(i.current)},[t,o]);const s=$c(i,e.ref),u=m.cloneElement(e,{ref:s});return t?u:a||!l.current&&r?null:u}const SR=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function ER(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function xR(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:a,onExiting:i,onExited:l,addEndListener:o,children:s}=e,u=ER(e,SR);const c=m.useRef(null),d=$c(c,zo(s)),f=E=>_=>{E&&c.current&&E(c.current,_)},h=m.useCallback(f(t),[t]),b=m.useCallback(f(n),[n]),S=m.useCallback(f(r),[r]),x=m.useCallback(f(a),[a]),y=m.useCallback(f(i),[i]),p=m.useCallback(f(l),[l]),v=m.useCallback(f(o),[o]);return Object.assign({},u,{nodeRef:c},t&&{onEnter:h},n&&{onEntering:b},r&&{onEntered:S},a&&{onExit:x},i&&{onExiting:y},l&&{onExited:p},o&&{addEndListener:v},{children:typeof s=="function"?(E,_)=>s(E,Object.assign({},_,{ref:d})):m.cloneElement(s,{ref:d})})}const OR=["component"];function _R(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const TR=m.forwardRef((e,t)=>{let{component:n}=e,r=_R(e,OR);const a=xR(r);return g.jsx(n,Object.assign({ref:t},a))});function wR({in:e,onTransition:t}){const n=m.useRef(null),r=m.useRef(!0),a=An(t);return wv(()=>{if(!n.current)return;let i=!1;return a({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,a]),wv(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function AR({children:e,in:t,onExited:n,onEntered:r,transition:a}){const[i,l]=m.useState(!t);t&&i&&l(!1);const o=wR({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(l(!0),n==null||n(u.element)))};Promise.resolve(a(u)).then(c,d=>{throw u.in||l(!0),d})}}),s=$c(o,e.ref);return i&&!t?null:m.cloneElement(e,{ref:s})}function vp(e,t,n){return e?g.jsx(TR,Object.assign({},n,{component:e})):t?g.jsx(AR,Object.assign({},n,{transition:t})):g.jsx(bR,Object.assign({},n))}const RR=["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 CR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Qf;function $R(e){return Qf||(Qf=new gy({ownerDocument:e==null?void 0:e.document})),Qf}function NR(e){const t=yy(),n=e||$R(t),r=m.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:m.useCallback(a=>{r.current.dialog=a},[]),setBackdropRef:m.useCallback(a=>{r.current.backdrop=a},[])})}const MS=m.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:a,style:i,children:l,backdrop:o=!0,keyboard:s=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:b,autoFocus:S=!0,enforceFocus:x=!0,restoreFocus:y=!0,restoreFocusOptions:p,renderDialog:v,renderBackdrop:E=Y=>g.jsx("div",Object.assign({},Y)),manager:_,container:O,onShow:T,onHide:w=()=>{},onExit:$,onExited:R,onExiting:N,onEnter:G,onEntering:U,onEntered:X}=e,q=CR(e,RR);const C=yy(),j=mp(O),D=NR(_),K=F1(),ie=Ow(n),[Pe,ke]=m.useState(!n),xe=m.useRef(null);m.useImperativeHandle(t,()=>D,[D]),_c&&!ie&&n&&(xe.current=Pf(C==null?void 0:C.document)),n&&Pe&&ke(!1);const V=An(()=>{if(D.add(),Vn.current=ir(document,"keydown",it),Lt.current=ir(document,"focus",()=>setTimeout(zt),!0),T&&T(),S){var Y,Ie;const dt=Pf((Y=(Ie=D.dialog)==null?void 0:Ie.ownerDocument)!=null?Y:C==null?void 0:C.document);D.dialog&&dt&&!po(D.dialog,dt)&&(xe.current=dt,D.dialog.focus())}}),ve=An(()=>{if(D.remove(),Vn.current==null||Vn.current(),Lt.current==null||Lt.current(),y){var Y;(Y=xe.current)==null||Y.focus==null||Y.focus(p),xe.current=null}});m.useEffect(()=>{!n||!j||V()},[n,j,V]),m.useEffect(()=>{Pe&&ve()},[Pe,ve]),vR(()=>{ve()});const zt=An(()=>{if(!x||!K()||!D.isTopModal())return;const Y=Pf(C==null?void 0:C.document);D.dialog&&Y&&!po(D.dialog,Y)&&D.dialog.focus()}),_t=An(Y=>{Y.target===Y.currentTarget&&(u==null||u(Y),o===!0&&w())}),it=An(Y=>{s&&X1(Y)&&D.isTopModal()&&(c==null||c(Y),Y.defaultPrevented||w())}),Lt=m.useRef(),Vn=m.useRef(),Xn=(...Y)=>{ke(!0),R==null||R(...Y)};if(!j)return null;const Pn=Object.assign({role:r,ref:D.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},q,{style:i,className:a,tabIndex:-1});let lt=v?v(Pn):g.jsx("div",Object.assign({},Pn,{children:m.cloneElement(l,{role:"document"})}));lt=vp(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:$,onExiting:N,onExited:Xn,onEnter:G,onEntering:U,onEntered:X,children:lt});let fe=null;return o&&(fe=E({ref:D.setBackdropRef,onClick:_t}),fe=vp(h,b,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:fe})),g.jsx(g.Fragment,{children:fa.createPortal(g.jsxs(g.Fragment,{children:[fe,lt]}),j)})});MS.displayName="Modal";const MR=Object.assign(MS,{Manager:gy});function gp(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function jR(e,t){e.classList?e.classList.add(t):gp(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Gv(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function DR(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Gv(e.className,t):e.setAttribute("class",Gv(e.className&&e.className.baseVal||"",t))}const Xa={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class jS extends gy{adjustAndStore(t,n,r){const a=n.style[t];n.dataset[t]=a,fr(n,{[t]:`${parseFloat(fr(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],fr(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(jR(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Va(n,Xa.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,t.scrollBarWidth)),Va(n,Xa.STICKY_CONTENT).forEach(i=>this.adjustAndStore(a,i,-t.scrollBarWidth)),Va(n,Xa.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(a,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();DR(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";Va(n,Xa.FIXED_CONTENT).forEach(i=>this.restore(r,i)),Va(n,Xa.STICKY_CONTENT).forEach(i=>this.restore(a,i)),Va(n,Xa.NAVBAR_TOGGLER).forEach(i=>this.restore(a,i))}}let Kf;function BR(e){return Kf||(Kf=new jS(e)),Kf}const DS=m.createContext({onHide(){}}),kR=m.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:a,...i},l)=>{const o=m.useContext(DS),s=Ii(()=>{o==null||o.onHide(),r==null||r()});return g.jsxs("div",{ref:l,...i,children:[a,n&&g.jsx(wc,{"aria-label":e,variant:t,onClick:s})]})}),BS=m.forwardRef(({bsPrefix:e,className:t,as:n,...r},a)=>{e=H(e,"navbar-brand");const i=n||(r.href?"a":"span");return g.jsx(i,{...r,ref:a,className:z(t,e)})});BS.displayName="NavbarBrand";const kS=m.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=H(t,"navbar-collapse");const a=m.useContext(qo);return g.jsx(Tc,{in:!!(a&&a.expanded),...n,children:g.jsx("div",{ref:r,className:t,children:e})})});kS.displayName="NavbarCollapse";const zS=m.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:a="button",onClick:i,...l},o)=>{e=H(e,"navbar-toggler");const{onToggle:s,expanded:u}=m.useContext(qo)||{},c=Ii(d=>{i&&i(d),s&&s()});return a==="button"&&(l.type="button"),g.jsx(a,{...l,ref:o,onClick:c,"aria-label":r,className:z(t,e,!u&&"collapsed"),children:n||g.jsx("span",{className:`${e}-icon`})})});zS.displayName="NavbarToggle";const bp=new WeakMap,Yv=(e,t)=>{if(!e||!t)return;const n=bp.get(t)||new Map;bp.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function zR(e,t=typeof window>"u"?void 0:window){const n=Yv(e,t),[r,a]=m.useState(()=>n?n.matches:!1);return bS(()=>{let i=Yv(e,t);if(!i)return a(!1);let l=bp.get(t);const o=()=>{a(i.matches)};return i.refCount++,i.addListener(o),o(),()=>{i.removeListener(o),i.refCount--,i.refCount<=0&&(l==null||l.delete(i.media)),i=void 0}},[e]),r}function LR(e){const t=Object.keys(e);function n(o,s){return o===s?s:o?`${o} and ${s}`:s}function r(o){return t[Math.min(t.indexOf(o)+1,t.length-1)]}function a(o){const s=r(o);let u=e[s];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function i(o){let s=e[o];return typeof s=="number"&&(s=`${s}px`),`(min-width: ${s})`}function l(o,s,u){let c;typeof o=="object"?(c=o,u=s,s=!0):(s=s||!0,c={[o]:s});let d=m.useMemo(()=>Object.entries(c).reduce((f,[h,b])=>((b==="up"||b===!0)&&(f=n(f,i(h))),(b==="down"||b===!0)&&(f=n(f,a(h))),f),""),[JSON.stringify(c)]);return zR(d,u)}return l}const UR=LR({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),LS=m.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"offcanvas-body"),g.jsx(n,{ref:a,className:z(e,t),...r})));LS.displayName="OffcanvasBody";const HR={[Vt]:"show",[tr]:"show"},US=m.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:a=!1,unmountOnExit:i=!1,appear:l=!1,...o},s)=>(e=H(e,"offcanvas"),g.jsx(iy,{ref:s,addEndListener:ry,in:r,mountOnEnter:a,unmountOnExit:i,appear:l,...o,childRef:zo(n),children:(u,c)=>m.cloneElement(n,{...c,className:z(t,n.props.className,(u===Vt||u===ji)&&`${e}-toggling`,HR[u])})})));US.displayName="OffcanvasToggling";const HS=m.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...a},i)=>(e=H(e,"offcanvas-header"),g.jsx(kR,{ref:i,...a,className:z(t,e),closeLabel:n,closeButton:r})));HS.displayName="OffcanvasHeader";const qR=ly("h5"),qS=m.forwardRef(({className:e,bsPrefix:t,as:n=qR,...r},a)=>(t=H(t,"offcanvas-title"),g.jsx(n,{ref:a,className:z(e,t),...r})));qS.displayName="OffcanvasTitle";function GR(e){return g.jsx(US,{...e})}function YR(e){return g.jsx(uo,{...e})}const GS=m.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:a="start",responsive:i,show:l=!1,backdrop:o=!0,keyboard:s=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:f,container:h,autoFocus:b=!0,enforceFocus:S=!0,restoreFocus:x=!0,restoreFocusOptions:y,onEntered:p,onExit:v,onExiting:E,onEnter:_,onEntering:O,onExited:T,backdropClassName:w,manager:$,renderStaticNode:R=!1,...N},G)=>{const U=m.useRef();e=H(e,"offcanvas");const[X,q]=m.useState(!1),C=Ii(f),j=UR(i||"xs","up");m.useEffect(()=>{q(i?l&&!j:l)},[l,i,j]);const D=m.useMemo(()=>({onHide:C}),[C]);function K(){return $||(u?(U.current||(U.current=new jS({handleContainerOverflow:!1})),U.current):BR())}const ie=(V,...ve)=>{V&&(V.style.visibility="visible"),_==null||_(V,...ve)},Pe=(V,...ve)=>{V&&(V.style.visibility=""),T==null||T(...ve)},ke=m.useCallback(V=>g.jsx("div",{...V,className:z(`${e}-backdrop`,w)}),[w,e]),xe=V=>g.jsx("div",{...V,...N,className:z(t,i?`${e}-${i}`:e,`${e}-${a}`),"aria-labelledby":r,children:n});return g.jsxs(g.Fragment,{children:[!X&&(i||R)&&xe({}),g.jsx(DS.Provider,{value:D,children:g.jsx(MR,{show:X,ref:G,backdrop:o,container:h,keyboard:s,autoFocus:b,enforceFocus:S&&!u,restoreFocus:x,restoreFocusOptions:y,onEscapeKeyDown:c,onShow:d,onHide:C,onEnter:ie,onEntering:O,onEntered:p,onExit:v,onExiting:E,onExited:Pe,manager:K(),transition:GR,backdropTransition:YR,renderBackdrop:ke,renderDialog:xe})})]})});GS.displayName="Offcanvas";const $l=Object.assign(GS,{Body:LS,Header:HS,Title:qS}),YS=m.forwardRef(({onHide:e,...t},n)=>{const r=m.useContext(qo),a=Ii(()=>{r==null||r.onToggle==null||r.onToggle(),e==null||e()});return g.jsx($l,{ref:n,show:!!(r!=null&&r.expanded),...t,renderStaticNode:!0,onHide:a})});YS.displayName="NavbarOffcanvas";const VS=m.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},a)=>(t=H(t,"navbar-text"),g.jsx(n,{ref:a,className:z(e,t),...r})));VS.displayName="NavbarText";const XS=m.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:a="light",bg:i,fixed:l,sticky:o,className:s,as:u="nav",expanded:c,onToggle:d,onSelect:f,collapseOnSelect:h=!1,...b}=VT(e,{expanded:"onToggle"}),S=H(n,"navbar"),x=m.useCallback((...v)=>{f==null||f(...v),h&&c&&(d==null||d(!1))},[f,h,c,d]);b.role===void 0&&u!=="nav"&&(b.role="navigation");let y=`${S}-expand`;typeof r=="string"&&(y=`${y}-${r}`);const p=m.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:S,expanded:!!c,expand:r}),[S,c,r,d]);return g.jsx(qo.Provider,{value:p,children:g.jsx(aR.Provider,{value:x,children:g.jsx(u,{ref:t,...b,className:z(s,S,r&&y,a&&`${S}-${a}`,i&&`bg-${i}`,o&&`sticky-${o}`,l&&`fixed-${l}`)})})})});XS.displayName="Navbar";const Zf=Object.assign(XS,{Brand:BS,Collapse:kS,Offcanvas:YS,Text:VS,Toggle:zS}),VR=()=>{};function XR(e,t,{disabled:n,clickTrigger:r}={}){const a=t||VR;eR(e,a,{disabled:n,clickTrigger:r});const i=An(l=>{X1(l)&&a(l)});m.useEffect(()=>{if(n||e==null)return;const l=ko(Gs(e));let o=(l.defaultView||window).event;const s=ir(l,"keyup",u=>{if(u===o){o=void 0;return}i(u)});return()=>{s()}},[e,n,i])}const PS=m.forwardRef((e,t)=>{const{flip:n,offset:r,placement:a,containerPadding:i,popperConfig:l={},transition:o,runTransition:s}=e,[u,c]=Tv(),[d,f]=Tv(),h=$c(c,t),b=mp(e.container),S=mp(e.target),[x,y]=m.useState(!e.show),p=QA(S,u,rR({placement:a,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:l}));e.show&&x&&y(!1);const v=(...N)=>{y(!0),e.onExited&&e.onExited(...N)},E=e.show||!x;if(XR(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!E)return null;const{onExit:_,onExiting:O,onEnter:T,onEntering:w,onEntered:$}=e;let R=e.children(Object.assign({},p.attributes.popper,{style:p.styles.popper,ref:h}),{popper:p,placement:a,show:!!e.show,arrowProps:Object.assign({},p.attributes.arrow,{style:p.styles.arrow,ref:f})});return R=vp(o,s,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:R,onExit:_,onExiting:O,onExited:v,onEnter:T,onEntering:w,onEntered:$}),b?fa.createPortal(R,b):null});PS.displayName="Overlay";const FS=m.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"popover-header"),g.jsx(n,{ref:a,className:z(e,t),...r})));FS.displayName="PopoverHeader";const by=m.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"popover-body"),g.jsx(n,{ref:a,className:z(e,t),...r})));by.displayName="PopoverBody";function QS(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function KS(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const PR=m.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,body:i,arrowProps:l,hasDoneInitialMeasure:o,popper:s,show:u,...c},d)=>{const f=H(e,"popover"),h=k1(),[b]=(t==null?void 0:t.split("-"))||[],S=QS(b,h);let x=r;return u&&!o&&(x={...r,...KS(s==null?void 0:s.strategy)}),g.jsxs("div",{ref:d,role:"tooltip",style:x,"x-placement":b,className:z(n,f,b&&`bs-popover-${S}`),...c,children:[g.jsx("div",{className:"popover-arrow",...l}),i?g.jsx(by,{children:a}):a]})}),FR=Object.assign(PR,{Header:FS,Body:by,POPPER_OFFSET:[0,8]}),ZS=m.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,arrowProps:i,hasDoneInitialMeasure:l,popper:o,show:s,...u},c)=>{e=H(e,"tooltip");const d=k1(),[f]=(t==null?void 0:t.split("-"))||[],h=QS(f,d);let b=r;return s&&!l&&(b={...r,...KS(o==null?void 0:o.strategy)}),g.jsxs("div",{ref:c,style:b,role:"tooltip","x-placement":f,className:z(n,e,`bs-tooltip-${h}`),...u,children:[g.jsx("div",{className:"tooltip-arrow",...i}),g.jsx("div",{className:`${e}-inner`,children:a})]})});ZS.displayName="Tooltip";const WS=Object.assign(ZS,{TOOLTIP_OFFSET:[0,6]});function QR(e){const t=m.useRef(null),n=H(void 0,"popover"),r=H(void 0,"tooltip"),a=m.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(gp(t.current,n))return FR.POPPER_OFFSET;if(gp(t.current,r))return WS.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[a]]}function KR(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=a=>n(Ou(a))),t.ref=r.__wrapped||(r.__wrapped=a=>r(Ou(a)))}const JS=m.forwardRef(({children:e,transition:t=uo,popperConfig:n={},rootClose:r=!1,placement:a="top",show:i=!1,...l},o)=>{const s=m.useRef({}),[u,c]=m.useState(null),[d,f]=QR(l.offset),h=ay(o,d),b=t===!0?uo:t||void 0,S=Ii(x=>{c(x),n==null||n.onFirstUpdate==null||n.onFirstUpdate(x)});return bS(()=>{u&&l.target&&(s.current.scheduleUpdate==null||s.current.scheduleUpdate())},[u,l.target]),m.useEffect(()=>{i||c(null)},[i]),g.jsx(PS,{...l,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:S},transition:b,rootClose:r,placement:a,show:i,children:(x,{arrowProps:y,popper:p,show:v})=>{var E;KR(x,y);const _=p==null?void 0:p.placement,O=Object.assign(s.current,{state:p==null?void 0:p.state,scheduleUpdate:p==null?void 0:p.update,placement:_,outOfBoundaries:(p==null||(E=p.state)==null||(E=E.modifiersData.hide)==null?void 0:E.isReferenceHidden)||!1,strategy:n.strategy}),T=!!u;return typeof e=="function"?e({...x,placement:_,show:v,...!t&&v&&{className:"show"},popper:O,arrowProps:y,hasDoneInitialMeasure:T}):m.cloneElement(e,{...x,placement:_,arrowProps:y,popper:O,hasDoneInitialMeasure:T,className:z(e.props.className,!t&&v&&"show"),style:{...e.props.style,...x.style}})}})});JS.displayName="Overlay";function ZR(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Vv(e,t,n){const[r]=t,a=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==a)&&!po(a,i)&&e(...t)}he.oneOf(["click","hover","focus"]);const WR=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:a,defaultShow:i=!1,onToggle:l,delay:o,placement:s,flip:u=s&&s.indexOf("auto")!==-1,...c})=>{const d=m.useRef(null),f=ay(d,zo(n)),h=oS(),b=m.useRef(""),[S,x]=j1(a,i,l),y=ZR(o),{onFocus:p,onBlur:v,onClick:E}=typeof n!="function"?m.Children.only(n).props:{},_=q=>{f(Ou(q))},O=m.useCallback(()=>{if(h.clear(),b.current="show",!y.show){x(!0);return}h.set(()=>{b.current==="show"&&x(!0)},y.show)},[y.show,x,h]),T=m.useCallback(()=>{if(h.clear(),b.current="hide",!y.hide){x(!1);return}h.set(()=>{b.current==="hide"&&x(!1)},y.hide)},[y.hide,x,h]),w=m.useCallback((...q)=>{O(),p==null||p(...q)},[O,p]),$=m.useCallback((...q)=>{T(),v==null||v(...q)},[T,v]),R=m.useCallback((...q)=>{x(!S),E==null||E(...q)},[E,x,S]),N=m.useCallback((...q)=>{Vv(O,q,"fromElement")},[O]),G=m.useCallback((...q)=>{Vv(T,q,"toElement")},[T]),U=e==null?[]:[].concat(e),X={ref:_};return U.indexOf("click")!==-1&&(X.onClick=R),U.indexOf("focus")!==-1&&(X.onFocus=w,X.onBlur=$),U.indexOf("hover")!==-1&&(X.onMouseOver=N,X.onMouseOut=G),g.jsxs(g.Fragment,{children:[typeof n=="function"?n(X):m.cloneElement(n,X),g.jsx(JS,{...c,show:S,onHide:T,flip:u,placement:s,popperConfig:r,target:d.current,children:t})]})},Au=m.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},a)=>{const i=H(e,"row"),l=D1(),o=B1(),s=`${i}-cols`,u=[];return l.forEach(c=>{const d=r[c];delete r[c];let f;d!=null&&typeof d=="object"?{cols:f}=d:f=d;const h=c!==o?`-${c}`:"";f!=null&&u.push(`${s}${h}-${f}`)}),g.jsx(n,{ref:a,...r,className:z(t,i,...u)})});Au.displayName="Row";const IS=m.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:a="div",className:i,...l},o)=>{e=H(e,"spinner");const s=`${e}-${n}`;return g.jsx(a,{ref:o,...l,className:z(i,s,r&&`${s}-${r}`,t&&`text-${t}`)})});IS.displayName="Spinner";const JR={[Vt]:"showing",[ji]:"showing show"},eE=m.forwardRef((e,t)=>g.jsx(uo,{...e,ref:t,transitionClasses:JR}));eE.displayName="ToastFade";const tE=m.createContext({onClose(){}}),nE=m.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:a,children:i,...l},o)=>{e=H(e,"toast-header");const s=m.useContext(tE),u=Ii(c=>{s==null||s.onClose==null||s.onClose(c)});return g.jsxs("div",{ref:o,...l,className:z(e,a),children:[i,r&&g.jsx(wc,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});nE.displayName="ToastHeader";const rE=m.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=H(t,"toast-body"),g.jsx(n,{ref:a,className:z(e,t),...r})));rE.displayName="ToastBody";const aE=m.forwardRef(({bsPrefix:e,className:t,transition:n=eE,show:r=!0,animation:a=!0,delay:i=5e3,autohide:l=!1,onClose:o,onEntered:s,onExit:u,onExiting:c,onEnter:d,onEntering:f,onExited:h,bg:b,...S},x)=>{e=H(e,"toast");const y=m.useRef(i),p=m.useRef(o);m.useEffect(()=>{y.current=i,p.current=o},[i,o]);const v=oS(),E=!!(l&&r),_=m.useCallback(()=>{E&&(p.current==null||p.current())},[E]);m.useEffect(()=>{v.set(_,y.current)},[v,_]);const O=m.useMemo(()=>({onClose:o}),[o]),T=!!(n&&a),w=g.jsx("div",{...S,ref:x,className:z(e,t,b&&`bg-${b}`,!T&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return g.jsx(tE.Provider,{value:O,children:T&&n?g.jsx(n,{in:r,onEnter:d,onEntering:f,onEntered:s,onExit:u,onExiting:c,onExited:h,unmountOnExit:!0,children:w}):w})});aE.displayName="Toast";const Gl=Object.assign(aE,{Body:rE,Header:nE}),IR={"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"},Sy=m.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:a="div",...i},l)=>(e=H(e,"toast-container"),g.jsx(a,{ref:l,...i,className:z(e,t&&IR[t],n&&`position-${n}`,r)})));Sy.displayName="ToastContainer";const eC=()=>{},Ey=m.forwardRef(({bsPrefix:e,name:t,className:n,checked:r,type:a,onChange:i,value:l,disabled:o,id:s,inputRef:u,...c},d)=>(e=H(e,"btn-check"),g.jsxs(g.Fragment,{children:[g.jsx("input",{className:e,name:t,type:a,value:l,ref:u,autoComplete:"off",checked:!!r,disabled:!!o,onChange:i||eC,id:s}),g.jsx(Lo,{...c,ref:d,className:z(n,o&&"disabled"),type:void 0,role:void 0,as:"label",htmlFor:s})]})));Ey.displayName="ToggleButton";const Ln=Object.create(null);Ln.open="0";Ln.close="1";Ln.ping="2";Ln.pong="3";Ln.message="4";Ln.upgrade="5";Ln.noop="6";const Ys=Object.create(null);Object.keys(Ln).forEach(e=>{Ys[Ln[e]]=e});const Sp={type:"error",data:"parser error"},iE=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",lE=typeof ArrayBuffer=="function",oE=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,xy=({type:e,data:t},n,r)=>iE&&t instanceof Blob?n?r(t):Xv(t,r):lE&&(t instanceof ArrayBuffer||oE(t))?n?r(t):Xv(new Blob([t]),r):r(Ln[e]+(t||"")),Xv=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Pv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Wf;function tC(e,t){if(iE&&e.data instanceof Blob)return e.data.arrayBuffer().then(Pv).then(t);if(lE&&(e.data instanceof ArrayBuffer||oE(e.data)))return t(Pv(e.data));xy(e,!1,n=>{Wf||(Wf=new TextEncoder),t(Wf.encode(n))})}const Fv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nl=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,a=0,i,l,o,s;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(r=0;r>4,c[a++]=(l&15)<<4|o>>2,c[a++]=(o&3)<<6|s&63;return u},rC=typeof ArrayBuffer=="function",Oy=(e,t)=>{if(typeof e!="string")return{type:"message",data:sE(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:aC(e.substring(1),t)}:Ys[n]?e.length>1?{type:Ys[n],data:e.substring(1)}:{type:Ys[n]}:Sp},aC=(e,t)=>{if(rC){const n=nC(e);return sE(n,t)}else return{base64:!0,data:e}},sE=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},uE="",iC=(e,t)=>{const n=e.length,r=new Array(n);let a=0;e.forEach((i,l)=>{xy(i,!1,o=>{r[l]=o,++a===n&&t(r.join(uE))})})},lC=(e,t)=>{const n=e.split(uE),r=[];for(let a=0;a{const r=n.length;let a;if(r<126)a=new Uint8Array(1),new DataView(a.buffer).setUint8(0,r);else if(r<65536){a=new Uint8Array(3);const i=new DataView(a.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{a=new Uint8Array(9);const i=new DataView(a.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(a[0]|=128),t.enqueue(a),t.enqueue(n)})}})}let Jf;function hs(e){return e.reduce((t,n)=>t+n.length,0)}function ys(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let a=0;aMath.pow(2,21)-1){o.enqueue(Sp);break}a=c*Math.pow(2,32)+u.getUint32(4),r=3}else{if(hs(n)e){o.enqueue(Sp);break}}}})}const cE=4;function qe(e){if(e)return uC(e)}function uC(e){for(var t in qe.prototype)e[t]=qe.prototype[t];return e}qe.prototype.on=qe.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};qe.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};qe.prototype.off=qe.prototype.removeListener=qe.prototype.removeAllListeners=qe.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,a=0;aPromise.resolve().then(t):(t,n)=>n(t,0),Xt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),cC="arraybuffer";function fE(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const fC=Xt.setTimeout,dC=Xt.clearTimeout;function Mc(e,t){t.useNativeTimers?(e.setTimeoutFn=fC.bind(Xt),e.clearTimeoutFn=dC.bind(Xt)):(e.setTimeoutFn=Xt.setTimeout.bind(Xt),e.clearTimeoutFn=Xt.clearTimeout.bind(Xt))}const pC=1.33;function hC(e){return typeof e=="string"?yC(e):Math.ceil((e.byteLength||e.size)*pC)}function yC(e){let t=0,n=0;for(let r=0,a=e.length;r=57344?n+=3:(r++,n+=4);return n}function dE(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function mC(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function vC(e){let t={},n=e.split("&");for(let r=0,a=n.length;r{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};lC(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,iC(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=dE()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let pE=!1;try{pE=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const SC=pE;function EC(){}class xC extends bC{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(a,i)=>{this.onError("xhr post error",a,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Mn extends qe{constructor(t,n,r){super(),this.createRequest=t,Mc(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=fE(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let a in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(a)&&r.setRequestHeader(a,this._opts.extraHeaders[a])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var a;r.readyState===3&&((a=this._opts.cookieJar)===null||a===void 0||a.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(a){this.setTimeoutFn(()=>{this._onError(a)},0);return}typeof document<"u"&&(this._index=Mn.requestsCount++,Mn.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=EC,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Mn.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Mn.requestsCount=0;Mn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Qv);else if(typeof addEventListener=="function"){const e="onpagehide"in Xt?"pagehide":"unload";addEventListener(e,Qv,!1)}}function Qv(){for(let e in Mn.requests)Mn.requests.hasOwnProperty(e)&&Mn.requests[e].abort()}const OC=function(){const e=hE({xdomain:!1});return e&&e.responseType!==null}();class _C extends xC{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=OC&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Mn(hE,this.uri(),t)}}function hE(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||SC))return new XMLHttpRequest}catch{}if(!t)try{return new Xt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const yE=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class TC extends _y{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=yE?{}:fE(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(a){return this.emitReserved("error",a)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{try{this.doWrite(r,i)}catch{}a&&Nc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=dE()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const If=Xt.WebSocket||Xt.MozWebSocket;class wC extends TC{createSocket(t,n,r){return yE?new If(t,n,r):n?new If(t,n):new If(t)}doWrite(t,n){this.ws.send(n)}}class AC extends _y{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=sC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),a=oC();a.readable.pipeTo(t.writable),this._writer=a.writable.getWriter();const i=()=>{r.read().then(({done:o,value:s})=>{o||(this.onPacket(s),i())}).catch(o=>{})};i();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n{a&&Nc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const RC={websocket:wC,webtransport:AC,polling:_C},CC=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$C=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ep(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let a=CC.exec(e||""),i={},l=14;for(;l--;)i[$C[l]]=a[l]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=NC(i,i.path),i.queryKey=MC(i,i.query),i}function NC(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function MC(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,a,i){a&&(n[a]=i)}),n}const xp=typeof addEventListener=="function"&&typeof removeEventListener=="function",Vs=[];xp&&addEventListener("offline",()=>{Vs.forEach(e=>e())},!1);class qr extends qe{constructor(t,n){if(super(),this.binaryType=cC,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Ep(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Ep(n.host).host);Mc(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const a=r.prototype.name;this.transports.push(a),this._transportsByName[a]=r}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=vC(this.opts.query)),xp&&(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"})},Vs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=cE,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&qr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",qr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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 t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Nc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,a){if(typeof n=="function"&&(a=n,n=void 0),typeof r=="function"&&(a=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),a&&this.once("flush",a),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(qr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){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(),xp&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Vs.indexOf(this._offlineEventListener);r!==-1&&Vs.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}qr.protocol=cE;class jC extends qr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;qr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const l=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function o(){l("transport closed")}function s(){l("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",a),n.removeListener("error",l),n.removeListener("close",o),this.off("close",s),this.off("upgrading",u)};n.once("open",a),n.once("error",l),n.once("close",o),this.once("close",s),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;rRC[a]).filter(a=>!!a)),super(t,r)}};function BC(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Ep(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}const kC=typeof ArrayBuffer=="function",zC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,mE=Object.prototype.toString,LC=typeof Blob=="function"||typeof Blob<"u"&&mE.call(Blob)==="[object BlobConstructor]",UC=typeof File=="function"||typeof File<"u"&&mE.call(File)==="[object FileConstructor]";function Ty(e){return kC&&(e instanceof ArrayBuffer||zC(e))||LC&&e instanceof Blob||UC&&e instanceof File}function Xs(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(i),n.apply(this,o)};l.withError=!0,this.acks[t]=l}emitWithAck(t,...n){return new Promise((r,a)=>{const i=(l,o)=>l?a(l):r(o);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((a,...i)=>r!==this._queue[0]?void 0:(a!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(a)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:I.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case I.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.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 I.EVENT:case I.BINARY_EVENT:this.onevent(t);break;case I.ACK:case I.BINARY_ACK:this.onack(t);break;case I.DISCONNECT:this.ondisconnect();break;case I.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...a){r||(r=!0,n.packet({type:I.ACK,id:t,data:a}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:I.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}el.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};el.prototype.reset=function(){this.attempts=0};el.prototype.setMin=function(e){this.ms=e};el.prototype.setMax=function(e){this.max=e};el.prototype.setJitter=function(e){this.jitter=e};class Tp extends qe{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Mc(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new el({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const a=n.parser||PC;this.encoder=new a.Encoder,this.decoder=new a.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new DC(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const a=pn(n,"open",function(){r.onopen(),t&&t()}),i=o=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",o),t?t(o):this.maybeReconnectOnOpen()},l=pn(n,"error",i);if(this._timeout!==!1){const o=this._timeout,s=this.setTimeoutFn(()=>{a(),i(new Error("timeout")),n.close()},o);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}return this.subs.push(a),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(pn(t,"ping",this.onping.bind(this)),pn(t,"data",this.ondata.bind(this)),pn(t,"error",this.onerror.bind(this)),pn(t,"close",this.onclose.bind(this)),pn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Nc(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new vE(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(a=>{a?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",a)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const yl={};function Ps(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=BC(e,t.path||"/socket.io"),r=n.source,a=n.id,i=n.path,l=yl[a]&&i in yl[a].nsps,o=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let s;return o?s=new Tp(r,t):(yl[a]||(yl[a]=new Tp(r,t)),s=yl[a]),n.query&&!t.query&&(t.query=n.queryKey),s.socket(n.path,t)}Object.assign(Ps,{Manager:Tp,Socket:vE,io:Ps,connect:Ps});const gE=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},QC=(e,t="")=>{const r=e.map((a,i)=>{(typeof a=="number"||typeof a=="boolean"||typeof a=="string"||a===null)&&gE(a,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},KC=(e,t="")=>{const r=Object.entries(e).reduce((a,[i,l])=>{const o=`${t}["${i}"]`;return(typeof l=="number"||typeof l=="boolean"||typeof l=="string"||l===null)&&(a[i]=gE(l,o)),a},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},bE=window.location.hostname,SE=window.location.port,EE=window.__FORWARDED_PREFIX__||"",Ml=window.__FORWARDED_PROTO__||"http",ms=`${bE}:${SE}${EE}`,ZC=Ml==="http"?"ws":"wss",WC=`${ZC}://${bE}:${SE}/`,er=Ps(WC,{path:`${EE}/ws/socket.io`,transports:["websocket"]}),JC=(e,t)=>{t?er.emit("update_value",{access_path:e.full_access_path,value:e},t):er.emit("update_value",{access_path:e.full_access_path,value:e})},xE=(e,t=[],n={},r)=>{const a=QC(t),i=KC(n);er.emit("trigger_method",{access_path:e,args:a,kwargs:i})},OE=ne.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return g.jsx(Sy,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(a=>a.levelname==="ERROR"||a.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(a.levelname)?g.jsxs(Gl,{className:a.levelname.toLowerCase()+"Toast",onClose:()=>r(a.id),onClick:()=>r(a.id),onMouseLeave:()=>{a.levelname!=="ERROR"&&r(a.id)},show:!0,autohide:a.levelname==="WARNING"||a.levelname==="INFO"||a.levelname==="DEBUG",delay:a.levelname==="WARNING"||a.levelname==="INFO"||a.levelname==="DEBUG"?2e3:void 0,children:[g.jsxs(Gl.Header,{closeButton:!1,className:a.levelname.toLowerCase()+"Toast text-right",children:[g.jsx("strong",{className:"me-auto",children:a.levelname}),g.jsx("small",{children:a.timeStamp})]}),g.jsx(Gl.Body,{children:a.message})]},a.id):null)})});OE.displayName="Notifications";const wp=ne.memo(({connectionStatus:e})=>{const[t,n]=m.useState(!0);m.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),a=()=>{switch(e){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:i,bg:l,delay:o}=a();return g.jsx(Sy,{position:"bottom-center",className:"toastContainer",children:g.jsx(Gl,{show:t,onClose:r,delay:o,autohide:o!==void 0,bg:l,children:g.jsxs(Gl.Body,{className:"d-flex justify-content-between",children:[i,g.jsx(Lo,{variant:"close",size:"sm",onClick:r})]})})})});wp.displayName="ConnectionToast";function _E(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function IC(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function e5(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(Wv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=Wv(),e[t];throw new Error(`Key not found: ${t}`)}}function Zv(e,t,n=!1){const r=IC(t);try{return e5(e,r,n)}catch(a){throw a instanceof RangeError?new Error(`Index '${r}': ${a.message}`):a instanceof Error?new Error(`Key '${r}': ${a.message}`):a}}function t5(e,t,n){const r=_E(t),a=JSON.parse(JSON.stringify(e));let i=a;try{for(let s=0;s{const{docString:t}=e;if(!t)return null;const n=g.jsx(WS,{id:"tooltip",children:t});return g.jsx(WR,{placement:"bottom",overlay:n,children:g.jsx(K1,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});Sn.displayName="DocStringComponent";function Hn(){const e=m.useRef(0);return m.useEffect(()=>{e.current+=1}),e.current}const TE=ne.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:a,addNotification:i,changeCallback:l=()=>{},displayName:o,id:s}=e;Hn(),m.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{l({type:"bool",value:c,full_access_path:n,readonly:r,doc:a})};return g.jsxs("div",{className:"component buttonComponent",id:s,children:[!1,g.jsxs(Ey,{id:`toggle-check-${s}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:o,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[o,g.jsx(Sn,{docString:a})]})]})});TE.displayName="ButtonComponent";const n5=(e,t,n)=>{const r=t.split("."),a=r[0].length,i=r[1]?r[1].length:0,l=n>a;let o=0;l?o=Math.pow(10,a+1-n):o=Math.pow(10,a-n);const u=(parseFloat(t)+(e==="ArrowUp"?o:-o)).toFixed(i),c=u.split(".")[0].length;return c>a?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},a5=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{let a=t;return e==="."&&t.includes(".")?{value:t,selectionStart:n}:e==="-"?(n===0&&r>n?(a="-"+t.slice(r),n=1):n===0&&!t.startsWith("-")?(a="-"+t,n=1):(n===0||n===1)&&t.startsWith("-")&&(a=t.slice(1),n=0),{value:a,selectionStart:n}):(r>n?a=t.slice(0,n)+e+t.slice(r):a=t.slice(0,n)+e+t.slice(n),{value:a,selectionStart:n+1})},i5=(e,t)=>Math.max(0,e-t),l5=(e,t,n)=>Math.min(n,e+t),Ru=ne.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:a,docString:i,isInstantUpdate:l,unit:o,addNotification:s,changeCallback:u=()=>{},displayName:c,id:d}=e,f=m.useRef(null),[h,b]=m.useState(n.toString());Hn();const S=y=>{const{key:p,target:v}=y,E=v,{value:_}=E,O=_.length,T=E.selectionEnd??0;let w=E.selectionStart??0;if(p==="F1"||p==="F5"||p==="F12"||p==="Tab")return;if(p==="ArrowLeft"||p==="ArrowRight"){if(T>w&&!y.shiftKey){const N=p==="ArrowLeft"?w:T;f.current=N}else{const N=p==="ArrowLeft"?i5(w,1):l5(T,1,O);f.current=N}return}y.preventDefault();let $=_;if(y.ctrlKey&&p==="a"){E.setSelectionRange(0,_.length);return}else if(p>="0"&&p<="9"||p==="-")({value:$,selectionStart:w}=Jv(p,_,w,T));else if(p==="."&&(a==="float"||a==="Quantity"))({value:$,selectionStart:w}=Jv(p,_,w,T));else if(p==="ArrowUp"||p==="ArrowDown")({value:$,selectionStart:w}=n5(p,_,w));else if(p==="Backspace")({value:$,selectionStart:w}=r5(_,w,T));else if(p==="Delete")({value:$,selectionStart:w}=a5(_,w,T));else if(p==="Enter"&&!l){let R;a==="Quantity"?R={type:"Quantity",value:{magnitude:Number($),unit:o},full_access_path:t,readonly:r,doc:i}:R={type:a,value:Number($),full_access_path:t,readonly:r,doc:i},u(R);return}else return;if(l){let R;a==="Quantity"?R={type:"Quantity",value:{magnitude:Number($),unit:o},full_access_path:t,readonly:r,doc:i}:R={type:a,value:Number($),full_access_path:t,readonly:r,doc:i},u(R)}b($),f.current=w},x=()=>{if(!l){let y;a==="Quantity"?y={type:"Quantity",value:{magnitude:Number(h),unit:o},full_access_path:t,readonly:r,doc:i}:y={type:a,value:Number(h),full_access_path:t,readonly:r,doc:i},u(y)}};return m.useEffect(()=>{const y=a==="int"?parseInt(h):parseFloat(h);n!==y&&b(n.toString());let p=`${t} changed to ${e.value}`;o===void 0?p+=".":p+=` ${o}.`,s(p)},[n]),m.useEffect(()=>{const y=document.getElementsByName(d)[0];y&&f.current!==null&&y.setSelectionRange(f.current,f.current)}),g.jsxs("div",{className:"component numberComponent",id:d,children:[!1,g.jsxs(dr,{children:[c&&g.jsxs(dr.Text,{children:[c,g.jsx(Sn,{docString:i})]}),g.jsx(pt.Control,{type:"text",value:h,disabled:r,onChange:()=>{},name:d,onKeyDown:S,onBlur:x,className:l&&!r?"instantUpdate":""}),o&&g.jsx(dr.Text,{children:o})]})]})});Ru.displayName="NumberComponent";const ho={black:"#000",white:"#fff"},Pa={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Fa={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Qa={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ka={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Za={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ml={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},o5={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 yo(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?nt(tl,--Et):0,Li--,He===10&&(Li=1,Dc--),He}function $t(){return He=Et2||vo(He)>3?"":" "}function O5(e,t){for(;--t&&$t()&&!(He<48||He>102||He>57&&He<65||He>70&&He<97););return Yo(e,Fs()+(t<6&&jn()==32&&$t()==32))}function Rp(e){for(;$t();)switch(He){case e:return Et;case 34:case 39:e!==34&&e!==39&&Rp(He);break;case 40:e===41&&Rp(e);break;case 92:$t();break}return Et}function _5(e,t){for(;$t()&&e+He!==57;)if(e+He===84&&jn()===47)break;return"/*"+Yo(t,Et-1)+"*"+jc(e===47?e:$t())}function T5(e){for(;!vo(jn());)$t();return Yo(e,Et)}function w5(e){return NE(Ks("",null,null,null,[""],e=$E(e),0,[0],e))}function Ks(e,t,n,r,a,i,l,o,s){for(var u=0,c=0,d=l,f=0,h=0,b=0,S=1,x=1,y=1,p=0,v="",E=a,_=i,O=r,T=v;x;)switch(b=p,p=$t()){case 40:if(b!=108&&nt(T,d-1)==58){Ap(T+=se(Qs(p),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:T+=Qs(p);break;case 9:case 10:case 13:case 32:T+=x5(b);break;case 92:T+=O5(Fs()-1,7);continue;case 47:switch(jn()){case 42:case 47:vs(A5(_5($t(),Fs()),t,n),s);break;default:T+="/"}break;case 123*S:o[u++]=_n(T)*y;case 125*S:case 59:case 0:switch(p){case 0:case 125:x=0;case 59+c:y==-1&&(T=se(T,/\f/g,"")),h>0&&_n(T)-d&&vs(h>32?eg(T+";",r,n,d-1):eg(se(T," ","")+";",r,n,d-2),s);break;case 59:T+=";";default:if(vs(O=Iv(T,t,n,u,c,a,o,v,E=[],_=[],d),i),p===123)if(c===0)Ks(T,t,O,O,E,i,d,o,_);else switch(f===99&&nt(T,3)===110?100:f){case 100:case 108:case 109:case 115:Ks(e,O,O,r&&vs(Iv(e,O,O,0,0,a,o,v,a,E=[],d),_),a,_,d,o,r?E:_);break;default:Ks(T,O,O,O,[""],_,0,o,_)}}u=c=h=0,S=y=1,v=T="",d=l;break;case 58:d=1+_n(T),h=b;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&E5()==125)continue}switch(T+=jc(p),p*S){case 38:y=c>0?1:(T+="\f",-1);break;case 44:o[u++]=(_n(T)-1)*y,y=1;break;case 64:jn()===45&&(T+=Qs($t())),f=jn(),c=d=_n(v=T+=T5(Fs())),p++;break;case 45:b===45&&_n(T)==2&&(S=0)}}return i}function Iv(e,t,n,r,a,i,l,o,s,u,c){for(var d=a-1,f=a===0?i:[""],h=$y(f),b=0,S=0,x=0;b0?f[y]+" "+p:se(p,/&\f/g,f[y])))&&(s[x++]=v);return Bc(e,t,n,a===0?Ry:o,s,u,c)}function A5(e,t,n){return Bc(e,t,n,wE,jc(S5()),mo(e,2,-2),0)}function eg(e,t,n,r){return Bc(e,t,n,Cy,mo(e,0,r),mo(e,r+1,-1),r)}function xi(e,t){for(var n="",r=$y(e),a=0;a6)switch(nt(e,t+1)){case 109:if(nt(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+Cu+(nt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ap(e,"stretch")?jE(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nt(e,t+1)!==115)break;case 6444:switch(nt(e,_n(e)-3-(~Ap(e,"!important")&&10))){case 107:return se(e,":",":"+oe)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(nt(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(nt(e,t+11)){case 114:return oe+e+ot+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+ot+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+ot+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+ot+e+e}return e}var k5=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case Cy:t.return=jE(t.value,t.length);break;case AE:return xi([vl(t,{value:se(t.value,"@","@"+oe)})],a);case Ry:if(t.length)return b5(t.props,function(i){switch(g5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xi([vl(t,{props:[se(i,/:(read-\w+)/,":"+Cu+"$1")]})],a);case"::placeholder":return xi([vl(t,{props:[se(i,/:(plac\w+)/,":"+oe+"input-$1")]}),vl(t,{props:[se(i,/:(plac\w+)/,":"+Cu+"$1")]}),vl(t,{props:[se(i,/:(plac\w+)/,ot+"input-$1")]})],a)}return""})}},z5=[k5],DE=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var x=S.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var a=t.stylisPlugins||z5,i={},l,o=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var x=S.getAttribute("data-emotion").split(" "),y=1;y=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var P5={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},F5=/[A-Z]|^ms/g,Q5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HE=function(t){return t.charCodeAt(1)===45},ng=function(t){return t!=null&&typeof t!="boolean"},ed=ME(function(e){return HE(e)?e:e.replace(F5,"-$&").toLowerCase()}),rg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Q5,function(r,a,i){return Tn={name:a,styles:i,next:Tn},a})}return P5[t]!==1&&!HE(t)&&typeof n=="number"&&n!==0?n+"px":n};function go(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Tn={name:a.name,styles:a.styles,next:Tn},a.name;var i=n;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)Tn={name:l.name,styles:l.styles,next:Tn},l=l.next;var o=i.styles+";";return o}return K5(e,t,n)}case"function":{if(e!==void 0){var s=Tn,u=n(e);return Tn=s,go(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function K5(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a96?o$:s$},sg=function(t,n,r){var a;if(n){var i=n.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},u$=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return Dy(n,r,a),GE(function(){return By(n,r,a)}),null},c$=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var o=sg(t,n,r),s=o||og(a),u=!s("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var h=c.length,b=1;bt(p$(a)?n:a):t;return g.jsx(r$,{styles:r})}function y$(e,t){return $p(e,t)}const m$=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},v$=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:h$,StyledEngineProvider:d$,ThemeContext:Fc,css:XE,default:y$,internal_processStyles:m$,keyframes:a$},Symbol.toStringTag,{value:"Module"}));function jr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function PE(e){if(y.isValidElement(e)||!jr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=PE(e[n])}),t}function Dn(e,t,n={clone:!0}){const r=n.clone?k({},e):e;return jr(e)&&jr(t)&&Object.keys(t).forEach(a=>{y.isValidElement(t[a])?r[a]=t[a]:jr(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&jr(e[a])?r[a]=Dn(e[a],t[a],n):n.clone?r[a]=jr(t[a])?PE(t[a]):t[a]:r[a]=t[a]}),r}const g$=Object.freeze(Object.defineProperty({__proto__:null,default:Dn,isPlainObject:jr},Symbol.toStringTag,{value:"Module"})),b$=["values","unit","step"],S$=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>k({},n,{[r.key]:r.val}),{})};function FE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,a=bn(e,b$),i=S$(t),l=Object.keys(i);function o(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,h){const b=l.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(b!==-1&&typeof t[l[b]]=="number"?t[l[b]]:h)-r/100}${n})`}function c(f){return l.indexOf(f)+1`@media (min-width:${Ly[e]}px)`};function mr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||ug;return t.reduce((l,o,s)=>(l[i.up(i.keys[s])]=n(t[s]),l),{})}if(typeof t=="object"){const i=r.breakpoints||ug;return Object.keys(t).reduce((l,o)=>{if(Object.keys(i.values||Ly).indexOf(o)!==-1){const s=i.up(o);l[s]=n(t[o],o)}else{const s=o;l[s]=t[s]}return l},{})}return n(t)}function x$(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,a)=>{const i=e.up(a);return r[i]={},r},{}))||{}}function O$(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function mn(e){if(typeof e!="string")throw new Error(yo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const _$=Object.freeze(Object.defineProperty({__proto__:null,default:mn},Symbol.toStringTag,{value:"Module"}));function Qc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,i)=>a&&a[i]?a[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function $u(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Qc(e,n)||r,t&&(a=t(a,r,e)),a}function De(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,i=l=>{if(l[t]==null)return null;const o=l[t],s=l.theme,u=Qc(s,r)||{};return mr(l,o,d=>{let f=$u(u,a,d);return d===f&&typeof d=="string"&&(f=$u(u,a,`${t}${d==="default"?"":mn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function T$(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const w$={m:"margin",p:"padding"},A$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},R$=T$(e=>{if(e.length>2)if(cg[e])e=cg[e];else return[e];const[t,n]=e.split(""),r=w$[t],a=A$[n]||"";return Array.isArray(a)?a.map(i=>r+i):[r+a]}),Uy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Uy,...Hy];function Vo(e,t,n,r){var a;const i=(a=Qc(e,t,!1))!=null?a:n;return typeof i=="number"?l=>typeof l=="string"?l:i*l:Array.isArray(i)?l=>typeof l=="string"?l:i[l]:typeof i=="function"?i:()=>{}}function QE(e){return Vo(e,"spacing",8)}function Xo(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function C$(e,t){return n=>e.reduce((r,a)=>(r[a]=Xo(t,n),r),{})}function $$(e,t,n,r){if(t.indexOf(n)===-1)return null;const a=R$(n),i=C$(a,r),l=e[n];return mr(e,l,i)}function KE(e,t){const n=QE(e.theme);return Object.keys(e).map(r=>$$(e,t,r,n)).reduce(Yl,{})}function Ce(e){return KE(e,Uy)}Ce.propTypes={};Ce.filterProps=Uy;function $e(e){return KE(e,Hy)}$e.propTypes={};$e.filterProps=Hy;function N$(e=8){if(e.mui)return e;const t=QE({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Kc(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(i=>{r[i]=a}),r),{}),n=r=>Object.keys(r).reduce((a,i)=>t[i]?Yl(a,t[i](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Pt(e){return typeof e!="number"?e:`${e}px solid`}function on(e,t){return De({prop:e,themeKey:"borders",transform:t})}const M$=on("border",Pt),j$=on("borderTop",Pt),D$=on("borderRight",Pt),B$=on("borderBottom",Pt),k$=on("borderLeft",Pt),z$=on("borderColor"),L$=on("borderTopColor"),U$=on("borderRightColor"),H$=on("borderBottomColor"),q$=on("borderLeftColor"),G$=on("outline",Pt),Y$=on("outlineColor"),Zc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vo(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Xo(t,r)});return mr(e,e.borderRadius,n)}return null};Zc.propTypes={};Zc.filterProps=["borderRadius"];Kc(M$,j$,D$,B$,k$,z$,L$,U$,H$,q$,Zc,G$,Y$);const Wc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vo(e.theme,"spacing",8),n=r=>({gap:Xo(t,r)});return mr(e,e.gap,n)}return null};Wc.propTypes={};Wc.filterProps=["gap"];const Jc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vo(e.theme,"spacing",8),n=r=>({columnGap:Xo(t,r)});return mr(e,e.columnGap,n)}return null};Jc.propTypes={};Jc.filterProps=["columnGap"];const Ic=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vo(e.theme,"spacing",8),n=r=>({rowGap:Xo(t,r)});return mr(e,e.rowGap,n)}return null};Ic.propTypes={};Ic.filterProps=["rowGap"];const V$=De({prop:"gridColumn"}),X$=De({prop:"gridRow"}),P$=De({prop:"gridAutoFlow"}),F$=De({prop:"gridAutoColumns"}),Q$=De({prop:"gridAutoRows"}),K$=De({prop:"gridTemplateColumns"}),Z$=De({prop:"gridTemplateRows"}),W$=De({prop:"gridTemplateAreas"}),J$=De({prop:"gridArea"});Kc(Wc,Jc,Ic,V$,X$,P$,F$,Q$,K$,Z$,W$,J$);function Oi(e,t){return t==="grey"?t:e}const I$=De({prop:"color",themeKey:"palette",transform:Oi}),e3=De({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oi}),t3=De({prop:"backgroundColor",themeKey:"palette",transform:Oi});Kc(I$,e3,t3);function Rt(e){return e<=1&&e!==0?`${e*100}%`:e}const n3=De({prop:"width",transform:Rt}),qy=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,a;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Ly[n];return i?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Rt(n)}};return mr(e,e.maxWidth,t)}return null};qy.filterProps=["maxWidth"];const r3=De({prop:"minWidth",transform:Rt}),a3=De({prop:"height",transform:Rt}),i3=De({prop:"maxHeight",transform:Rt}),l3=De({prop:"minHeight",transform:Rt});De({prop:"size",cssProperty:"width",transform:Rt});De({prop:"size",cssProperty:"height",transform:Rt});const o3=De({prop:"boxSizing"});Kc(n3,qy,r3,a3,i3,l3,o3);const Po={border:{themeKey:"borders",transform:Pt},borderTop:{themeKey:"borders",transform:Pt},borderRight:{themeKey:"borders",transform:Pt},borderBottom:{themeKey:"borders",transform:Pt},borderLeft:{themeKey:"borders",transform:Pt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zc},color:{themeKey:"palette",transform:Oi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oi},backgroundColor:{themeKey:"palette",transform:Oi},p:{style:$e},pt:{style:$e},pr:{style:$e},pb:{style:$e},pl:{style:$e},px:{style:$e},py:{style:$e},padding:{style:$e},paddingTop:{style:$e},paddingRight:{style:$e},paddingBottom:{style:$e},paddingLeft:{style:$e},paddingX:{style:$e},paddingY:{style:$e},paddingInline:{style:$e},paddingInlineStart:{style:$e},paddingInlineEnd:{style:$e},paddingBlock:{style:$e},paddingBlockStart:{style:$e},paddingBlockEnd:{style:$e},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Wc},rowGap:{style:Ic},columnGap:{style:Jc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rt},maxWidth:{style:qy},minWidth:{transform:Rt},height:{transform:Rt},maxHeight:{transform:Rt},minHeight:{transform:Rt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function s3(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function u3(e,t){return typeof e=="function"?e(t):e}function ZE(){function e(n,r,a,i){const l={[n]:r,theme:a},o=i[n];if(!o)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:c,style:d}=o;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Qc(a,u)||{};return d?d(l):mr(l,r,b=>{let S=$u(f,c,b);return b===S&&typeof b=="string"&&(S=$u(f,c,`${n}${b==="default"?"":mn(b)}`,b)),s===!1?S:{[s]:S}})}function t(n){var r;const{sx:a,theme:i={}}=n||{};if(!a)return null;const l=(r=i.unstable_sxConfig)!=null?r:Po;function o(s){let u=s;if(typeof s=="function")u=s(i);else if(typeof s!="object")return s;if(!u)return null;const c=x$(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(h=>{const b=u3(u[h],i);if(b!=null)if(typeof b=="object")if(l[h])f=Yl(f,e(h,b,i,l));else{const S=mr({theme:i},b,x=>({[h]:x}));s3(S,b)?f[h]=t({sx:b,theme:i}):f=Yl(f,S)}else f=Yl(f,e(h,b,i,l))}),O$(d,f)}return Array.isArray(a)?a.map(o):o(a)}return t}const ef=ZE();ef.filterProps=["sx"];function WE(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const c3=["breakpoints","palette","spacing","shape"];function JE(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:i={}}=e,l=bn(e,c3),o=FE(n),s=N$(a);let u=Dn({breakpoints:o,direction:"ltr",components:{},palette:k({mode:"light"},r),spacing:s,shape:k({},E$,i)},l);return u.applyStyles=WE,u=t.reduce((c,d)=>Dn(c,d),u),u.unstable_sxConfig=k({},Po,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(d){return ef({sx:d,theme:this})},u}const f3=Object.freeze(Object.defineProperty({__proto__:null,default:JE,private_createBreakpoints:FE,unstable_applyStyles:WE},Symbol.toStringTag,{value:"Module"})),d3=["sx"],p3=e=>{var t,n;const r={systemProps:{},otherProps:{}},a=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Po;return Object.keys(e).forEach(i=>{a[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function h3(e){const{sx:t}=e,n=bn(e,d3),{systemProps:r,otherProps:a}=p3(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...l)=>{const o=t(...l);return jr(o)?k({},r,o):r}:i=k({},r,t),k({},a,{sx:i})}const y3=Object.freeze(Object.defineProperty({__proto__:null,default:ef,extendSxProp:h3,unstable_createStyleFunctionSx:ZE,unstable_defaultSxConfig:Po},Symbol.toStringTag,{value:"Module"})),fg=e=>e,m3=()=>{let e=fg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=fg}}},v3=m3();function IE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t{r[a]=ex(e,a,n)}),r}var tx={exports:{}},me={};/** + */var Je=typeof Symbol=="function"&&Symbol.for,Ny=Je?Symbol.for("react.element"):60103,My=Je?Symbol.for("react.portal"):60106,kc=Je?Symbol.for("react.fragment"):60107,zc=Je?Symbol.for("react.strict_mode"):60108,Lc=Je?Symbol.for("react.profiler"):60114,Uc=Je?Symbol.for("react.provider"):60109,Hc=Je?Symbol.for("react.context"):60110,jy=Je?Symbol.for("react.async_mode"):60111,qc=Je?Symbol.for("react.concurrent_mode"):60111,Gc=Je?Symbol.for("react.forward_ref"):60112,Yc=Je?Symbol.for("react.suspense"):60113,L5=Je?Symbol.for("react.suspense_list"):60120,Vc=Je?Symbol.for("react.memo"):60115,Xc=Je?Symbol.for("react.lazy"):60116,U5=Je?Symbol.for("react.block"):60121,H5=Je?Symbol.for("react.fundamental"):60117,q5=Je?Symbol.for("react.responder"):60118,G5=Je?Symbol.for("react.scope"):60119;function kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ny:switch(e=e.type,e){case jy:case qc:case kc:case Lc:case zc:case Yc:return e;default:switch(e=e&&e.$$typeof,e){case Hc:case Gc:case Xc:case Vc:case Uc:return e;default:return t}}case My:return t}}}function kE(e){return kt(e)===qc}ce.AsyncMode=jy;ce.ConcurrentMode=qc;ce.ContextConsumer=Hc;ce.ContextProvider=Uc;ce.Element=Ny;ce.ForwardRef=Gc;ce.Fragment=kc;ce.Lazy=Xc;ce.Memo=Vc;ce.Portal=My;ce.Profiler=Lc;ce.StrictMode=zc;ce.Suspense=Yc;ce.isAsyncMode=function(e){return kE(e)||kt(e)===jy};ce.isConcurrentMode=kE;ce.isContextConsumer=function(e){return kt(e)===Hc};ce.isContextProvider=function(e){return kt(e)===Uc};ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ny};ce.isForwardRef=function(e){return kt(e)===Gc};ce.isFragment=function(e){return kt(e)===kc};ce.isLazy=function(e){return kt(e)===Xc};ce.isMemo=function(e){return kt(e)===Vc};ce.isPortal=function(e){return kt(e)===My};ce.isProfiler=function(e){return kt(e)===Lc};ce.isStrictMode=function(e){return kt(e)===zc};ce.isSuspense=function(e){return kt(e)===Yc};ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===kc||e===qc||e===Lc||e===zc||e===Yc||e===L5||typeof e=="object"&&e!==null&&(e.$$typeof===Xc||e.$$typeof===Vc||e.$$typeof===Uc||e.$$typeof===Hc||e.$$typeof===Gc||e.$$typeof===H5||e.$$typeof===q5||e.$$typeof===G5||e.$$typeof===U5)};ce.typeOf=kt;BE.exports=ce;var Y5=BE.exports,zE=Y5,V5={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},X5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},LE={};LE[zE.ForwardRef]=V5;LE[zE.Memo]=X5;var P5=!0;function UE(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var Dy=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||P5===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},By=function(t,n,r){Dy(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function F5(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Q5={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},K5=/[A-Z]|^ms/g,Z5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HE=function(t){return t.charCodeAt(1)===45},ng=function(t){return t!=null&&typeof t!="boolean"},ed=ME(function(e){return HE(e)?e:e.replace(K5,"-$&").toLowerCase()}),rg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Z5,function(r,a,i){return Tn={name:a,styles:i,next:Tn},a})}return Q5[t]!==1&&!HE(t)&&typeof n=="number"&&n!==0?n+"px":n};function go(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Tn={name:a.name,styles:a.styles,next:Tn},a.name;var i=n;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)Tn={name:l.name,styles:l.styles,next:Tn},l=l.next;var o=i.styles+";";return o}return W5(e,t,n)}case"function":{if(e!==void 0){var s=Tn,u=n(e);return Tn=s,go(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function W5(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a96?u$:c$},sg=function(t,n,r){var a;if(n){var i=n.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},f$=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return Dy(n,r,a),GE(function(){return By(n,r,a)}),null},d$=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var o=sg(t,n,r),s=o||og(a),u=!s("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var h=c.length,b=1;bt(y$(a)?n:a):t;return g.jsx(i$,{styles:r})}function v$(e,t){return $p(e,t)}const g$=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},b$=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:m$,StyledEngineProvider:h$,ThemeContext:Fc,css:XE,default:v$,internal_processStyles:g$,keyframes:l$},Symbol.toStringTag,{value:"Module"}));function jr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function PE(e){if(m.isValidElement(e)||!jr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=PE(e[n])}),t}function Dn(e,t,n={clone:!0}){const r=n.clone?k({},e):e;return jr(e)&&jr(t)&&Object.keys(t).forEach(a=>{m.isValidElement(t[a])?r[a]=t[a]:jr(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&jr(e[a])?r[a]=Dn(e[a],t[a],n):n.clone?r[a]=jr(t[a])?PE(t[a]):t[a]:r[a]=t[a]}),r}const S$=Object.freeze(Object.defineProperty({__proto__:null,default:Dn,isPlainObject:jr},Symbol.toStringTag,{value:"Module"})),E$=["values","unit","step"],x$=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>k({},n,{[r.key]:r.val}),{})};function FE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,a=bn(e,E$),i=x$(t),l=Object.keys(i);function o(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function s(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,h){const b=l.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(b!==-1&&typeof t[l[b]]=="number"?t[l[b]]:h)-r/100}${n})`}function c(f){return l.indexOf(f)+1`@media (min-width:${Ly[e]}px)`};function mr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||ug;return t.reduce((l,o,s)=>(l[i.up(i.keys[s])]=n(t[s]),l),{})}if(typeof t=="object"){const i=r.breakpoints||ug;return Object.keys(t).reduce((l,o)=>{if(Object.keys(i.values||Ly).indexOf(o)!==-1){const s=i.up(o);l[s]=n(t[o],o)}else{const s=o;l[s]=t[s]}return l},{})}return n(t)}function _$(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,a)=>{const i=e.up(a);return r[i]={},r},{}))||{}}function T$(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function mn(e){if(typeof e!="string")throw new Error(yo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const w$=Object.freeze(Object.defineProperty({__proto__:null,default:mn},Symbol.toStringTag,{value:"Module"}));function Qc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,i)=>a&&a[i]?a[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function $u(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Qc(e,n)||r,t&&(a=t(a,r,e)),a}function De(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,i=l=>{if(l[t]==null)return null;const o=l[t],s=l.theme,u=Qc(s,r)||{};return mr(l,o,d=>{let f=$u(u,a,d);return d===f&&typeof d=="string"&&(f=$u(u,a,`${t}${d==="default"?"":mn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function A$(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const R$={m:"margin",p:"padding"},C$={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$$=A$(e=>{if(e.length>2)if(cg[e])e=cg[e];else return[e];const[t,n]=e.split(""),r=R$[t],a=C$[n]||"";return Array.isArray(a)?a.map(i=>r+i):[r+a]}),Uy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Uy,...Hy];function Vo(e,t,n,r){var a;const i=(a=Qc(e,t,!1))!=null?a:n;return typeof i=="number"?l=>typeof l=="string"?l:i*l:Array.isArray(i)?l=>typeof l=="string"?l:i[l]:typeof i=="function"?i:()=>{}}function QE(e){return Vo(e,"spacing",8)}function Xo(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function N$(e,t){return n=>e.reduce((r,a)=>(r[a]=Xo(t,n),r),{})}function M$(e,t,n,r){if(t.indexOf(n)===-1)return null;const a=$$(n),i=N$(a,r),l=e[n];return mr(e,l,i)}function KE(e,t){const n=QE(e.theme);return Object.keys(e).map(r=>M$(e,t,r,n)).reduce(Yl,{})}function Ce(e){return KE(e,Uy)}Ce.propTypes={};Ce.filterProps=Uy;function $e(e){return KE(e,Hy)}$e.propTypes={};$e.filterProps=Hy;function j$(e=8){if(e.mui)return e;const t=QE({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Kc(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(i=>{r[i]=a}),r),{}),n=r=>Object.keys(r).reduce((a,i)=>t[i]?Yl(a,t[i](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Pt(e){return typeof e!="number"?e:`${e}px solid`}function on(e,t){return De({prop:e,themeKey:"borders",transform:t})}const D$=on("border",Pt),B$=on("borderTop",Pt),k$=on("borderRight",Pt),z$=on("borderBottom",Pt),L$=on("borderLeft",Pt),U$=on("borderColor"),H$=on("borderTopColor"),q$=on("borderRightColor"),G$=on("borderBottomColor"),Y$=on("borderLeftColor"),V$=on("outline",Pt),X$=on("outlineColor"),Zc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vo(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Xo(t,r)});return mr(e,e.borderRadius,n)}return null};Zc.propTypes={};Zc.filterProps=["borderRadius"];Kc(D$,B$,k$,z$,L$,U$,H$,q$,G$,Y$,Zc,V$,X$);const Wc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vo(e.theme,"spacing",8),n=r=>({gap:Xo(t,r)});return mr(e,e.gap,n)}return null};Wc.propTypes={};Wc.filterProps=["gap"];const Jc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vo(e.theme,"spacing",8),n=r=>({columnGap:Xo(t,r)});return mr(e,e.columnGap,n)}return null};Jc.propTypes={};Jc.filterProps=["columnGap"];const Ic=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vo(e.theme,"spacing",8),n=r=>({rowGap:Xo(t,r)});return mr(e,e.rowGap,n)}return null};Ic.propTypes={};Ic.filterProps=["rowGap"];const P$=De({prop:"gridColumn"}),F$=De({prop:"gridRow"}),Q$=De({prop:"gridAutoFlow"}),K$=De({prop:"gridAutoColumns"}),Z$=De({prop:"gridAutoRows"}),W$=De({prop:"gridTemplateColumns"}),J$=De({prop:"gridTemplateRows"}),I$=De({prop:"gridTemplateAreas"}),e3=De({prop:"gridArea"});Kc(Wc,Jc,Ic,P$,F$,Q$,K$,Z$,W$,J$,I$,e3);function Oi(e,t){return t==="grey"?t:e}const t3=De({prop:"color",themeKey:"palette",transform:Oi}),n3=De({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oi}),r3=De({prop:"backgroundColor",themeKey:"palette",transform:Oi});Kc(t3,n3,r3);function Rt(e){return e<=1&&e!==0?`${e*100}%`:e}const a3=De({prop:"width",transform:Rt}),qy=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,a;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Ly[n];return i?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Rt(n)}};return mr(e,e.maxWidth,t)}return null};qy.filterProps=["maxWidth"];const i3=De({prop:"minWidth",transform:Rt}),l3=De({prop:"height",transform:Rt}),o3=De({prop:"maxHeight",transform:Rt}),s3=De({prop:"minHeight",transform:Rt});De({prop:"size",cssProperty:"width",transform:Rt});De({prop:"size",cssProperty:"height",transform:Rt});const u3=De({prop:"boxSizing"});Kc(a3,qy,i3,l3,o3,s3,u3);const Po={border:{themeKey:"borders",transform:Pt},borderTop:{themeKey:"borders",transform:Pt},borderRight:{themeKey:"borders",transform:Pt},borderBottom:{themeKey:"borders",transform:Pt},borderLeft:{themeKey:"borders",transform:Pt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Pt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zc},color:{themeKey:"palette",transform:Oi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oi},backgroundColor:{themeKey:"palette",transform:Oi},p:{style:$e},pt:{style:$e},pr:{style:$e},pb:{style:$e},pl:{style:$e},px:{style:$e},py:{style:$e},padding:{style:$e},paddingTop:{style:$e},paddingRight:{style:$e},paddingBottom:{style:$e},paddingLeft:{style:$e},paddingX:{style:$e},paddingY:{style:$e},paddingInline:{style:$e},paddingInlineStart:{style:$e},paddingInlineEnd:{style:$e},paddingBlock:{style:$e},paddingBlockStart:{style:$e},paddingBlockEnd:{style:$e},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Wc},rowGap:{style:Ic},columnGap:{style:Jc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Rt},maxWidth:{style:qy},minWidth:{transform:Rt},height:{transform:Rt},maxHeight:{transform:Rt},minHeight:{transform:Rt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function c3(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function f3(e,t){return typeof e=="function"?e(t):e}function ZE(){function e(n,r,a,i){const l={[n]:r,theme:a},o=i[n];if(!o)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:c,style:d}=o;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Qc(a,u)||{};return d?d(l):mr(l,r,b=>{let S=$u(f,c,b);return b===S&&typeof b=="string"&&(S=$u(f,c,`${n}${b==="default"?"":mn(b)}`,b)),s===!1?S:{[s]:S}})}function t(n){var r;const{sx:a,theme:i={}}=n||{};if(!a)return null;const l=(r=i.unstable_sxConfig)!=null?r:Po;function o(s){let u=s;if(typeof s=="function")u=s(i);else if(typeof s!="object")return s;if(!u)return null;const c=_$(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(h=>{const b=f3(u[h],i);if(b!=null)if(typeof b=="object")if(l[h])f=Yl(f,e(h,b,i,l));else{const S=mr({theme:i},b,x=>({[h]:x}));c3(S,b)?f[h]=t({sx:b,theme:i}):f=Yl(f,S)}else f=Yl(f,e(h,b,i,l))}),T$(d,f)}return Array.isArray(a)?a.map(o):o(a)}return t}const ef=ZE();ef.filterProps=["sx"];function WE(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const d3=["breakpoints","palette","spacing","shape"];function JE(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:i={}}=e,l=bn(e,d3),o=FE(n),s=j$(a);let u=Dn({breakpoints:o,direction:"ltr",components:{},palette:k({mode:"light"},r),spacing:s,shape:k({},O$,i)},l);return u.applyStyles=WE,u=t.reduce((c,d)=>Dn(c,d),u),u.unstable_sxConfig=k({},Po,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(d){return ef({sx:d,theme:this})},u}const p3=Object.freeze(Object.defineProperty({__proto__:null,default:JE,private_createBreakpoints:FE,unstable_applyStyles:WE},Symbol.toStringTag,{value:"Module"})),h3=["sx"],y3=e=>{var t,n;const r={systemProps:{},otherProps:{}},a=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Po;return Object.keys(e).forEach(i=>{a[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function m3(e){const{sx:t}=e,n=bn(e,h3),{systemProps:r,otherProps:a}=y3(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...l)=>{const o=t(...l);return jr(o)?k({},r,o):r}:i=k({},r,t),k({},a,{sx:i})}const v3=Object.freeze(Object.defineProperty({__proto__:null,default:ef,extendSxProp:m3,unstable_createStyleFunctionSx:ZE,unstable_defaultSxConfig:Po},Symbol.toStringTag,{value:"Module"})),fg=e=>e,g3=()=>{let e=fg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=fg}}},b3=g3();function IE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t{r[a]=ex(e,a,n)}),r}var tx={exports:{}},me={};/** * @license React * react-is.production.js * @@ -41,10 +41,10 @@ function OT(e,t){for(var n=0;n{if(r.toString().match(/^(components|slots)$/))n[r]=k({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const a=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=a:!a||!Object.keys(a)?n[r]=i:(n[r]=k({},i),Object.keys(a).forEach(l=>{n[r][l]=Mp(a[l],i[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const ax=typeof window<"u"?y.useLayoutEffect:y.useEffect;function ai(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const T3=Object.freeze(Object.defineProperty({__proto__:null,default:ai},Symbol.toStringTag,{value:"Module"}));function Zs(e){return e&&e.ownerDocument||document}function w3(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function A3({controlled:e,default:t,name:n,state:r="value"}){const{current:a}=y.useRef(e!==void 0),[i,l]=y.useState(t),o=a?e:i,s=y.useCallback(u=>{a||l(u)},[]);return[o,s]}function nd(e){const t=y.useRef(e);return ax(()=>{t.current=e}),y.useRef((...n)=>(0,t.current)(...n)).current}function jp(...e){return y.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{w3(n,t)})},e)}class Vy{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Vy}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let df=!0,Dp=!1;const R3=new Vy,C3={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 $3(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&C3[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function N3(e){e.metaKey||e.altKey||e.ctrlKey||(df=!0)}function rd(){df=!1}function M3(){this.visibilityState==="hidden"&&Dp&&(df=!0)}function j3(e){e.addEventListener("keydown",N3,!0),e.addEventListener("mousedown",rd,!0),e.addEventListener("pointerdown",rd,!0),e.addEventListener("touchstart",rd,!0),e.addEventListener("visibilitychange",M3,!0)}function D3(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return df||$3(t)}function B3(){const e=y.useCallback(a=>{a!=null&&j3(a.ownerDocument)},[]),t=y.useRef(!1);function n(){return t.current?(Dp=!0,R3.start(100,()=>{Dp=!1}),t.current=!1,!0):!1}function r(a){return D3(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const k3={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function z3(e,t,n=void 0){const r={};return Object.keys(e).forEach(a=>{r[a]=e[a].reduce((i,l)=>{if(l){const o=t(l);o!==""&&i.push(o),n&&n[l]&&i.push(n[l])}return i},[]).join(" ")}),r}function Vl(e){return typeof e=="string"}function L3(e,t,n){return e===void 0||Vl(e)?t:k({},t,{ownerState:k({},t.ownerState,n)})}function Ws(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function hg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function U3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!t){const h=Gr(n==null?void 0:n.className,i,a==null?void 0:a.className,r==null?void 0:r.className),b=k({},n==null?void 0:n.style,a==null?void 0:a.style,r==null?void 0:r.style),S=k({},n,a,r);return h.length>0&&(S.className=h),Object.keys(b).length>0&&(S.style=b),{props:S,internalRef:void 0}}const l=Ws(k({},a,r)),o=hg(r),s=hg(a),u=t(l),c=Gr(u==null?void 0:u.className,n==null?void 0:n.className,i,a==null?void 0:a.className,r==null?void 0:r.className),d=k({},u==null?void 0:u.style,n==null?void 0:n.style,a==null?void 0:a.style,r==null?void 0:r.style),f=k({},u,n,s,o);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function H3(e,t,n){return typeof e=="function"?e(t,n):e}const q3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ar(e){var t;const{elementType:n,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:i=!1}=e,l=bn(e,q3),o=i?{}:H3(r,a),{props:s,internalRef:u}=U3(k({},l,{externalSlotProps:o})),c=jp(u,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return L3(n,k({},s,{ref:c}),a)}const G3=y.createContext(),Y3=()=>{const e=y.useContext(G3);return e??!1},V3=y.createContext(void 0);function X3(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?Mp(a.defaultProps,r):!a.styleOverrides&&!a.variants?Mp(a,r):r}function P3({props:e,name:t}){const n=y.useContext(V3);return X3({props:e,name:t,theme:{components:n}})}function F3(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Be={},ix={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ix);var lx=ix.exports;const Q3=Er(l5),K3=Er(T3);var ox=lx;Object.defineProperty(Be,"__esModule",{value:!0});var yg=Be.alpha=fx;Be.blend=lN;Be.colorChannel=void 0;var Bp=Be.darken=Py;Be.decomposeColor=rn;Be.emphasize=dx;var Z3=Be.getContrastRatio=tN;Be.getLuminance=Nu;Be.hexToRgb=sx;Be.hslToRgb=cx;var kp=Be.lighten=Fy;Be.private_safeAlpha=nN;Be.private_safeColorChannel=void 0;Be.private_safeDarken=rN;Be.private_safeEmphasize=iN;Be.private_safeLighten=aN;Be.recomposeColor=nl;Be.rgbToHex=eN;var mg=ox(Q3),W3=ox(K3);function Xy(e,t=0,n=1){return(0,W3.default)(e,t,n)}function sx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function J3(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rn(e){if(e.type)return e;if(e.charAt(0)==="#")return rn(sx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,mg.default)(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,mg.default)(10,a))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:a}}const ux=e=>{const t=rn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Be.colorChannel=ux;const I3=(e,t)=>{try{return ux(e)}catch{return e}};Be.private_safeColorChannel=I3;function nl(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((a,i)=>i<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function eN(e){if(e.indexOf("#")===0)return e;const{values:t}=rn(e);return`#${t.map((n,r)=>J3(r===3?Math.round(255*n):n)).join("")}`}function cx(e){e=rn(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,i=r*Math.min(a,1-a),l=(u,c=(u+n/30)%12)=>a-i*Math.max(Math.min(c-3,9-c,1),-1);let o="rgb";const s=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(o+="a",s.push(t[3])),nl({type:o,values:s})}function Nu(e){e=rn(e);let t=e.type==="hsl"||e.type==="hsla"?rn(cx(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function tN(e,t){const n=Nu(e),r=Nu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function fx(e,t){return e=rn(e),t=Xy(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,nl(e)}function nN(e,t,n){try{return fx(e,t)}catch{return e}}function Py(e,t){if(e=rn(e),t=Xy(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return nl(e)}function rN(e,t,n){try{return Py(e,t)}catch{return e}}function Fy(e,t){if(e=rn(e),t=Xy(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return nl(e)}function aN(e,t,n){try{return Fy(e,t)}catch{return e}}function dx(e,t=.15){return Nu(e)>.5?Py(e,t):Fy(e,t)}function iN(e,t,n){try{return dx(e,t)}catch{return e}}function lN(e,t,n,r=1){const a=(s,u)=>Math.round((s**(1/r)*(1-n)+u**(1/r)*n)**r),i=rn(e),l=rn(t),o=[a(i.values[0],l.values[0]),a(i.values[1],l.values[1]),a(i.values[2],l.values[2])];return nl({type:"rgb",values:o})}const oN=["mode","contrastThreshold","tonalOffset"],vg={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:ho.white,default:ho.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}},ad={text:{primary:ho.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:ho.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 gg(e,t,n,r){const a=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=kp(e.main,a):t==="dark"&&(e.dark=Bp(e.main,i)))}function sN(e="light"){return e==="dark"?{main:Qa[200],light:Qa[50],dark:Qa[400]}:{main:Qa[700],light:Qa[400],dark:Qa[800]}}function uN(e="light"){return e==="dark"?{main:Fa[200],light:Fa[50],dark:Fa[400]}:{main:Fa[500],light:Fa[300],dark:Fa[700]}}function cN(e="light"){return e==="dark"?{main:Pa[500],light:Pa[300],dark:Pa[700]}:{main:Pa[700],light:Pa[400],dark:Pa[800]}}function fN(e="light"){return e==="dark"?{main:Ka[400],light:Ka[300],dark:Ka[700]}:{main:Ka[700],light:Ka[500],dark:Ka[900]}}function dN(e="light"){return e==="dark"?{main:Za[400],light:Za[300],dark:Za[700]}:{main:Za[800],light:Za[500],dark:Za[900]}}function pN(e="light"){return e==="dark"?{main:ml[400],light:ml[300],dark:ml[700]}:{main:"#ed6c02",light:ml[500],dark:ml[900]}}function hN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,a=bn(e,oN),i=e.primary||sN(t),l=e.secondary||uN(t),o=e.error||cN(t),s=e.info||fN(t),u=e.success||dN(t),c=e.warning||pN(t);function d(S){return Z3(S,ad.text.primary)>=n?ad.text.primary:vg.text.primary}const f=({color:S,name:x,mainShade:m=500,lightShade:p=300,darkShade:v=700})=>{if(S=k({},S),!S.main&&S[m]&&(S.main=S[m]),!S.hasOwnProperty("main"))throw new Error(yo(11,x?` (${x})`:"",m));if(typeof S.main!="string")throw new Error(yo(12,x?` (${x})`:"",JSON.stringify(S.main)));return gg(S,"light",p,r),gg(S,"dark",v,r),S.contrastText||(S.contrastText=d(S.main)),S},h={dark:ad,light:vg};return Dn(k({common:k({},ho),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:o,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:i5,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),a)}const yN=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function mN(e){return Math.round(e*1e5)/1e5}const bg={textTransform:"uppercase"},Sg='"Roboto", "Helvetica", "Arial", sans-serif';function vN(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Sg,fontSize:a=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=bn(n,yN),h=a/14,b=d||(m=>`${m/u*h}rem`),S=(m,p,v,E,_)=>k({fontFamily:r,fontWeight:m,fontSize:b(p),lineHeight:v},r===Sg?{letterSpacing:`${mN(E/p)}em`}:{},_,c),x={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(l,48,1.167,0),h4:S(l,34,1.235,.25),h5:S(l,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(l,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(l,16,1.5,.15),body2:S(l,14,1.43,.15),button:S(o,14,1.75,.4,bg),caption:S(l,12,1.66,.4),overline:S(l,12,2.66,1,bg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dn(k({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:a,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:o,fontWeightBold:s},x),f,{clone:!1})}const gN=.2,bN=.14,SN=.12;function _e(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${gN})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${bN})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${SN})`].join(",")}const EN=["none",_e(0,2,1,-1,0,1,1,0,0,1,3,0),_e(0,3,1,-2,0,2,2,0,0,1,5,0),_e(0,3,3,-2,0,3,4,0,0,1,8,0),_e(0,2,4,-1,0,4,5,0,0,1,10,0),_e(0,3,5,-1,0,5,8,0,0,1,14,0),_e(0,3,5,-1,0,6,10,0,0,1,18,0),_e(0,4,5,-2,0,7,10,1,0,2,16,1),_e(0,5,5,-3,0,8,10,1,0,3,14,2),_e(0,5,6,-3,0,9,12,1,0,3,16,2),_e(0,6,6,-3,0,10,14,1,0,4,18,3),_e(0,6,7,-4,0,11,15,1,0,4,20,3),_e(0,7,8,-4,0,12,17,2,0,5,22,4),_e(0,7,8,-4,0,13,19,2,0,5,24,4),_e(0,7,9,-4,0,14,21,2,0,5,26,4),_e(0,8,9,-5,0,15,22,2,0,6,28,5),_e(0,8,10,-5,0,16,24,2,0,6,30,5),_e(0,8,11,-5,0,17,26,2,0,6,32,5),_e(0,9,11,-5,0,18,28,2,0,7,34,6),_e(0,9,12,-6,0,19,29,2,0,7,36,6),_e(0,10,13,-6,0,20,31,3,0,8,38,7),_e(0,10,13,-6,0,21,33,3,0,8,40,7),_e(0,10,14,-6,0,22,35,3,0,8,42,7),_e(0,11,14,-7,0,23,36,3,0,9,44,8),_e(0,11,15,-7,0,24,38,3,0,9,46,8)],xN=["duration","easing","delay"],ON={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)"},_N={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Eg(e){return`${Math.round(e)}ms`}function TN(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function wN(e){const t=k({},ON,e.easing),n=k({},_N,e.duration);return k({getAutoHeightDuration:TN,create:(a=["all"],i={})=>{const{duration:l=n.standard,easing:o=t.easeInOut,delay:s=0}=i;return bn(i,xN),(Array.isArray(a)?a:[a]).map(u=>`${u} ${typeof l=="string"?l:Eg(l)} ${o} ${typeof s=="string"?s:Eg(s)}`).join(",")}},e,{easing:t,duration:n})}const AN={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},RN=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function CN(e={},...t){const{mixins:n={},palette:r={},transitions:a={},typography:i={}}=e,l=bn(e,RN);if(e.vars)throw new Error(yo(18));const o=hN(r),s=JE(e);let u=Dn(s,{mixins:F3(s.breakpoints,n),palette:o,shadows:EN.slice(),typography:vN(o,i),transitions:wN(a),zIndex:k({},AN)});return u=Dn(u,l),u=t.reduce((c,d)=>Dn(c,d),u),u.unstable_sxConfig=k({},Po,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(d){return ef({sx:d,theme:this})},u}const $N=CN();var Fo={},id={exports:{}},xg;function NN(){return xg||(xg=1,function(e){function t(n,r){if(n==null)return{};var a={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;a[i]=n[i]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(id)),id.exports}const MN=Er(v$),jN=Er(g$),DN=Er(_$),BN=Er(_3),kN=Er(f3),zN=Er(y3);var rl=lx;Object.defineProperty(Fo,"__esModule",{value:!0});var LN=Fo.default=WN;Fo.shouldForwardProp=Js;Fo.systemDefaultTheme=void 0;var Gt=rl(VE()),zp=rl(NN()),Og=XN(MN),UN=jN;rl(DN);rl(BN);var HN=rl(kN),qN=rl(zN);const GN=["ownerState"],YN=["variants"],VN=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function px(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(px=function(r){return r?n:t})(e)}function XN(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=px(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function PN(e){return Object.keys(e).length===0}function FN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Js(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const QN=Fo.systemDefaultTheme=(0,HN.default)(),KN=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gs({defaultTheme:e,theme:t,themeId:n}){return PN(t)?e:t[n]||t}function ZN(e){return e?(t,n)=>n[e]:null}function Is(e,t){let{ownerState:n}=t,r=(0,zp.default)(t,GN);const a=typeof e=="function"?e((0,Gt.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap(i=>Is(i,(0,Gt.default)({ownerState:n},r)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:i=[]}=a;let o=(0,zp.default)(a,YN);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props((0,Gt.default)({ownerState:n},r,n)):Object.keys(s.props).forEach(c=>{(n==null?void 0:n[c])!==s.props[c]&&r[c]!==s.props[c]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof s.style=="function"?s.style((0,Gt.default)({ownerState:n},r,n)):s.style))}),o}return a}function WN(e={}){const{themeId:t,defaultTheme:n=QN,rootShouldForwardProp:r=Js,slotShouldForwardProp:a=Js}=e,i=l=>(0,qN.default)((0,Gt.default)({},l,{theme:gs((0,Gt.default)({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,o={})=>{(0,Og.internal_processStyles)(l,_=>_.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=ZN(KN(u))}=o,h=(0,zp.default)(o,VN),b=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let x,m=Js;u==="Root"||u==="root"?m=r:u?m=a:FN(l)&&(m=void 0);const p=(0,Og.default)(l,(0,Gt.default)({shouldForwardProp:m,label:x},h)),v=_=>typeof _=="function"&&_.__emotion_real!==_||(0,UN.isPlainObject)(_)?O=>Is(_,(0,Gt.default)({},O,{theme:gs({theme:O.theme,defaultTheme:n,themeId:t})})):_,E=(_,...O)=>{let T=v(_);const w=O?O.map(v):[];s&&f&&w.push(M=>{const G=gs((0,Gt.default)({},M,{defaultTheme:n,themeId:t}));if(!G.components||!G.components[s]||!G.components[s].styleOverrides)return null;const U=G.components[s].styleOverrides,X={};return Object.entries(U).forEach(([q,C])=>{X[q]=Is(C,(0,Gt.default)({},M,{theme:G}))}),f(M,X)}),s&&!b&&w.push(M=>{var G;const U=gs((0,Gt.default)({},M,{defaultTheme:n,themeId:t})),X=U==null||(G=U.components)==null||(G=G[s])==null?void 0:G.variants;return Is({variants:X},(0,Gt.default)({},M,{theme:U}))}),S||w.push(i);const $=w.length-O.length;if(Array.isArray(_)&&$>0){const M=new Array($).fill("");T=[..._,...M],T.raw=[..._.raw,...M]}const R=p(T,...w);return l.muiName&&(R.muiName=l.muiName),R};return p.withConfig&&(E.withConfig=p.withConfig),E}}function Qy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const JN=e=>Qy(e)&&e!=="classes",Ca=LN({themeId:o5,defaultTheme:$N,rootShouldForwardProp:JN});function IN(e){return P3(e)}function e4(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const t4=2;function hx(e,t){return e-t}function _g(e,t){var n;const{index:r}=(n=e.reduce((a,i,l)=>{const o=Math.abs(t-i);return a===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},l4=e=>e;let xs;function wg(){return xs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xs=CSS.supports("touch-action","none"):xs=!0),xs}function o4(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:l=!1,max:o=100,min:s=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:h,scale:b=l4,step:S=1,shiftStep:x=10,tabIndex:m,value:p}=e,v=y.useRef(void 0),[E,_]=y.useState(-1),[O,T]=y.useState(-1),[w,$]=y.useState(!1),R=y.useRef(0),[M,G]=A3({controlled:p,default:n??s,name:"Slider"}),U=c&&((N,B,L)=>{const re=N.nativeEvent||N,le=new re.constructor(re.type,re);Object.defineProperty(le,"target",{writable:!0,value:{value:B,name:u}}),c(le,B,L)}),X=Array.isArray(M);let q=X?M.slice().sort(hx):[M];q=q.map(N=>N==null?s:ai(N,s,o));const C=l===!0&&S!==null?[...Array(Math.floor((o-s)/S)+1)].map((N,B)=>({value:s+S*B})):l||[],j=C.map(N=>N.value),{isFocusVisibleRef:D,onBlur:K,onFocus:ie,ref:Pe}=B3(),[ke,xe]=y.useState(-1),V=y.useRef(null),ve=jp(Pe,V),zt=jp(h,ve),_t=N=>B=>{var L;const re=Number(B.currentTarget.getAttribute("data-index"));ie(B),D.current===!0&&xe(re),T(re),N==null||(L=N.onFocus)==null||L.call(N,B)},it=N=>B=>{var L;K(B),D.current===!1&&xe(-1),T(-1),N==null||(L=N.onBlur)==null||L.call(N,B)},Lt=(N,B)=>{const L=Number(N.currentTarget.getAttribute("data-index")),re=q[L],le=j.indexOf(re);let ee=B;if(C&&S==null){const fn=j[j.length-1];ee>fn?ee=fn:eeB=>{var L;if(S!==null){const re=Number(B.currentTarget.getAttribute("data-index")),le=q[re];let ee=null;(B.key==="ArrowLeft"||B.key==="ArrowDown")&&B.shiftKey||B.key==="PageDown"?ee=Math.max(le-x,s):((B.key==="ArrowRight"||B.key==="ArrowUp")&&B.shiftKey||B.key==="PageUp")&&(ee=Math.min(le+x,o)),ee!==null&&(Lt(B,ee),B.preventDefault())}N==null||(L=N.onKeyDown)==null||L.call(N,B)};ax(()=>{if(r&&V.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&_(-1),r&&ke!==-1&&xe(-1);const Xn=N=>B=>{var L;(L=N.onChange)==null||L.call(N,B),Lt(B,B.target.valueAsNumber)},Pn=y.useRef(void 0);let lt=f;i&&f==="horizontal"&&(lt+="-reverse");const fe=({finger:N,move:B=!1})=>{const{current:L}=V,{width:re,height:le,bottom:ee,left:fn}=L.getBoundingClientRect();let xn;lt.indexOf("vertical")===0?xn=(ee-N.y)/le:xn=(N.x-fn)/re,lt.indexOf("-reverse")!==-1&&(xn=1-xn);let ue;if(ue=n4(xn,s,o),S)ue=a4(ue,S,s);else{const Ga=_g(j,ue);ue=j[Ga]}ue=ai(ue,s,o);let Ut=0;if(X){B?Ut=Pn.current:Ut=_g(q,ue),a&&(ue=ai(ue,q[Ut-1]||-1/0,q[Ut+1]||1/0));const Ga=ue;ue=Tg({values:q,newValue:ue,index:Ut}),a&&B||(Ut=ue.indexOf(Ga),Pn.current=Ut)}return{newValue:ue,activeIndex:Ut}},Y=nd(N=>{const B=bs(N,v);if(!B)return;if(R.current+=1,N.type==="mousemove"&&N.buttons===0){Ie(N);return}const{newValue:L,activeIndex:re}=fe({finger:B,move:!0});Ss({sliderRef:V,activeIndex:re,setActive:_}),G(L),!w&&R.current>t4&&$(!0),U&&!Es(L,M)&&U(N,L,re)}),Ie=nd(N=>{const B=bs(N,v);if($(!1),!B)return;const{newValue:L}=fe({finger:B,move:!0});_(-1),N.type==="touchend"&&T(-1),d&&d(N,L),v.current=void 0,Tt()}),dt=nd(N=>{if(r)return;wg()||N.preventDefault();const B=N.changedTouches[0];B!=null&&(v.current=B.identifier);const L=bs(N,v);if(L!==!1){const{newValue:le,activeIndex:ee}=fe({finger:L});Ss({sliderRef:V,activeIndex:ee,setActive:_}),G(le),U&&!Es(le,M)&&U(N,le,ee)}R.current=0;const re=Zs(V.current);re.addEventListener("touchmove",Y,{passive:!0}),re.addEventListener("touchend",Ie,{passive:!0})}),Tt=y.useCallback(()=>{const N=Zs(V.current);N.removeEventListener("mousemove",Y),N.removeEventListener("mouseup",Ie),N.removeEventListener("touchmove",Y),N.removeEventListener("touchend",Ie)},[Ie,Y]);y.useEffect(()=>{const{current:N}=V;return N.addEventListener("touchstart",dt,{passive:wg()}),()=>{N.removeEventListener("touchstart",dt),Tt()}},[Tt,dt]),y.useEffect(()=>{r&&Tt()},[r,Tt]);const fl=N=>B=>{var L;if((L=N.onMouseDown)==null||L.call(N,B),r||B.defaultPrevented||B.button!==0)return;B.preventDefault();const re=bs(B,v);if(re!==!1){const{newValue:ee,activeIndex:fn}=fe({finger:re});Ss({sliderRef:V,activeIndex:fn,setActive:_}),G(ee),U&&!Es(ee,M)&&U(B,ee,fn)}R.current=0;const le=Zs(V.current);le.addEventListener("mousemove",Y,{passive:!0}),le.addEventListener("mouseup",Ie)},Oe=Mu(X?q[0]:s,s,o),cn=Mu(q[q.length-1],s,o)-Oe,Ua=(N={})=>{const B=Ws(N),L={onMouseDown:fl(B||{})},re=k({},B,L);return k({},N,{ref:zt},re)},Ha=N=>B=>{var L;(L=N.onMouseOver)==null||L.call(N,B);const re=Number(B.currentTarget.getAttribute("data-index"));T(re)},la=N=>B=>{var L;(L=N.onMouseLeave)==null||L.call(N,B),T(-1)};return{active:E,axis:lt,axisProps:i4,dragging:w,focusedThumbIndex:ke,getHiddenInputProps:(N={})=>{var B;const L=Ws(N),re={onChange:Xn(L||{}),onFocus:_t(L||{}),onBlur:it(L||{}),onKeyDown:Vn(L||{})},le=k({},L,re);return k({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":b(o),"aria-valuemin":b(s),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(B=e.step)!=null?B:void 0,disabled:r},N,le,{style:k({},k3,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ua,getThumbProps:(N={})=>{const B=Ws(N),L={onMouseOver:Ha(B||{}),onMouseLeave:la(B||{})};return k({},N,B,L)},marks:C,open:O,range:X,rootRef:zt,trackLeap:cn,trackOffset:Oe,values:q,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const s4=e=>!e||!Vl(e);function u4(e){return ex("MuiSlider",e)}const Jt=b3("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"]),c4=e=>{const{open:t}=e;return{offset:Gr(t&&Jt.valueLabelOpen),circle:Jt.valueLabelCircle,label:Jt.valueLabelLabel}};function f4(e){const{children:t,className:n,value:r}=e,a=c4(e);return t?y.cloneElement(t,{className:Gr(t.props.className)},g.jsxs(y.Fragment,{children:[t.props.children,g.jsx("span",{className:Gr(a.offset,n),"aria-hidden":!0,children:g.jsx("span",{className:a.circle,children:g.jsx("span",{className:a.label,children:r})})})]})):null}const d4=["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 Ag(e){return e}const p4=Ca("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${mn(n.color)}`],n.size!=="medium"&&t[`size${mn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Jt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Jt.dragging}`]:{[`& .${Jt.thumb}, & .${Jt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].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}}]}}),h4=Ca("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.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}}]}),y4=Ca("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.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(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:k({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:k({backgroundColor:kp(e.palette[n].main,.62),borderColor:kp(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Bp(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Bp(e.palette[n].main,.5)})))}))]}}),m4=Ca("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${mn(n.color)}`],n.size!=="medium"&&t[`thumbSize${mn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Jt.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(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Jt.focusVisible}`]:k({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${yg(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Jt.active}`]:k({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${yg(e.palette[n].main,.16)}`})}}))]}}),v4=Ca(f4,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>k({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).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%"},[`&.${Jt.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%"},[`&.${Jt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),g4=Ca("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Qy(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({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:(e.vars||e).palette.background.paper,opacity:.8}}]})),b4=Ca("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Qy(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>k({},e.typography.body2,{color:(e.vars||e).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:(e.vars||e).palette.text.primary}}]})),S4=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:l,color:o,size:s}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",o&&`color${mn(o)}`,s&&`size${mn(s)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",s&&`thumbSize${mn(s)}`,o&&`thumbColor${mn(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return z3(u,u4,l)},E4=({children:e})=>e,x4=y.forwardRef(function(t,n){var r,a,i,l,o,s,u,c,d,f,h,b,S,x,m,p,v,E,_,O,T,w,$,R;const M=IN({props:t,name:"MuiSlider"}),G=Y3(),{"aria-label":U,"aria-valuetext":X,"aria-labelledby":q,component:C="span",components:j={},componentsProps:D={},color:K="primary",classes:ie,className:Pe,disableSwap:ke=!1,disabled:xe=!1,getAriaLabel:V,getAriaValueText:ve,marks:zt=!1,max:_t=100,min:it=0,orientation:Lt="horizontal",shiftStep:Vn=10,size:Xn="medium",step:Pn=1,scale:lt=Ag,slotProps:fe,slots:Y,track:Ie="normal",valueLabelDisplay:dt="off",valueLabelFormat:Tt=Ag}=M,fl=bn(M,d4),Oe=k({},M,{isRtl:G,max:_t,min:it,classes:ie,disabled:xe,disableSwap:ke,orientation:Lt,marks:zt,color:K,size:Xn,step:Pn,shiftStep:Vn,scale:lt,track:Ie,valueLabelDisplay:dt,valueLabelFormat:Tt}),{axisProps:cn,getRootProps:Ua,getHiddenInputProps:Ha,getThumbProps:la,open:dl,active:qa,axis:Tr,focusedThumbIndex:N,range:B,dragging:L,marks:re,values:le,trackOffset:ee,trackLeap:fn,getThumbStyle:xn}=o4(k({},Oe,{rootRef:n}));Oe.marked=re.length>0&&re.some(ze=>ze.label),Oe.dragging=L,Oe.focusedThumbIndex=N;const ue=S4(Oe),Ut=(r=(a=Y==null?void 0:Y.root)!=null?a:j.Root)!=null?r:p4,Ga=(i=(l=Y==null?void 0:Y.rail)!=null?l:j.Rail)!=null?i:h4,fv=(o=(s=Y==null?void 0:Y.track)!=null?s:j.Track)!=null?o:y4,dv=(u=(c=Y==null?void 0:Y.thumb)!=null?c:j.Thumb)!=null?u:m4,pv=(d=(f=Y==null?void 0:Y.valueLabel)!=null?f:j.ValueLabel)!=null?d:v4,Df=(h=(b=Y==null?void 0:Y.mark)!=null?b:j.Mark)!=null?h:g4,Bf=(S=(x=Y==null?void 0:Y.markLabel)!=null?x:j.MarkLabel)!=null?S:b4,hv=(m=(p=Y==null?void 0:Y.input)!=null?p:j.Input)!=null?m:"input",kf=(v=fe==null?void 0:fe.root)!=null?v:D.root,hT=(E=fe==null?void 0:fe.rail)!=null?E:D.rail,zf=(_=fe==null?void 0:fe.track)!=null?_:D.track,Lf=(O=fe==null?void 0:fe.thumb)!=null?O:D.thumb,Uf=(T=fe==null?void 0:fe.valueLabel)!=null?T:D.valueLabel,yT=(w=fe==null?void 0:fe.mark)!=null?w:D.mark,mT=($=fe==null?void 0:fe.markLabel)!=null?$:D.markLabel,vT=(R=fe==null?void 0:fe.input)!=null?R:D.input,gT=Ar({elementType:Ut,getSlotProps:Ua,externalSlotProps:kf,externalForwardedProps:fl,additionalProps:k({},s4(Ut)&&{as:C}),ownerState:k({},Oe,kf==null?void 0:kf.ownerState),className:[ue.root,Pe]}),bT=Ar({elementType:Ga,externalSlotProps:hT,ownerState:Oe,className:ue.rail}),ST=Ar({elementType:fv,externalSlotProps:zf,additionalProps:{style:k({},cn[Tr].offset(ee),cn[Tr].leap(fn))},ownerState:k({},Oe,zf==null?void 0:zf.ownerState),className:ue.track}),Hf=Ar({elementType:dv,getSlotProps:la,externalSlotProps:Lf,ownerState:k({},Oe,Lf==null?void 0:Lf.ownerState),className:ue.thumb}),ET=Ar({elementType:pv,externalSlotProps:Uf,ownerState:k({},Oe,Uf==null?void 0:Uf.ownerState),className:ue.valueLabel}),qf=Ar({elementType:Df,externalSlotProps:yT,ownerState:Oe,className:ue.mark}),Gf=Ar({elementType:Bf,externalSlotProps:mT,ownerState:Oe,className:ue.markLabel}),xT=Ar({elementType:hv,getSlotProps:Ha,externalSlotProps:vT,ownerState:Oe});return g.jsxs(Ut,k({},gT,{children:[g.jsx(Ga,k({},bT)),g.jsx(fv,k({},ST)),re.filter(ze=>ze.value>=it&&ze.value<=_t).map((ze,et)=>{const Yf=Mu(ze.value,it,_t),cs=cn[Tr].offset(Yf);let Fn;return Ie===!1?Fn=le.indexOf(ze.value)!==-1:Fn=Ie==="normal"&&(B?ze.value>=le[0]&&ze.value<=le[le.length-1]:ze.value<=le[0])||Ie==="inverted"&&(B?ze.value<=le[0]||ze.value>=le[le.length-1]:ze.value>=le[0]),g.jsxs(y.Fragment,{children:[g.jsx(Df,k({"data-index":et},qf,!Vl(Df)&&{markActive:Fn},{style:k({},cs,qf.style),className:Gr(qf.className,Fn&&ue.markActive)})),ze.label!=null?g.jsx(Bf,k({"aria-hidden":!0,"data-index":et},Gf,!Vl(Bf)&&{markLabelActive:Fn},{style:k({},cs,Gf.style),className:Gr(ue.markLabel,Gf.className,Fn&&ue.markLabelActive),children:ze.label})):null]},et)}),le.map((ze,et)=>{const Yf=Mu(ze,it,_t),cs=cn[Tr].offset(Yf),Fn=dt==="off"?E4:pv;return g.jsx(Fn,k({},!Vl(Fn)&&{valueLabelFormat:Tt,valueLabelDisplay:dt,value:typeof Tt=="function"?Tt(lt(ze),et):Tt,index:et,open:dl===et||qa===et||dt==="on",disabled:xe},ET,{children:g.jsx(dv,k({"data-index":et},Hf,{className:Gr(ue.thumb,Hf.className,qa===et&&ue.active,N===et&&ue.focusVisible),style:k({},cs,xn(et),Hf.style),children:g.jsx(hv,k({"data-index":et,"aria-label":V?V(et):U,"aria-valuenow":lt(ze),"aria-labelledby":q,"aria-valuetext":ve?ve(lt(ze),et):X,value:le[et]},xT))}))}),et)})]}))});var Rg=Object.prototype.toString,yx=function(t){var n=Rg.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Rg.call(t.callee)==="[object Function]"),r},ld,Cg;function O4(){if(Cg)return ld;Cg=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=yx,a=Object.prototype.propertyIsEnumerable,i=!a.call({toString:null},"toString"),l=a.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(f){var h=f.constructor;return h&&h.prototype===f},u={$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},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{s(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return s(f);try{return s(f)}catch{return!1}};e=function(h){var b=h!==null&&typeof h=="object",S=n.call(h)==="[object Function]",x=r(h),m=b&&n.call(h)==="[object String]",p=[];if(!b&&!S&&!x)throw new TypeError("Object.keys called on a non-object");var v=l&&S;if(m&&h.length>0&&!t.call(h,0))for(var E=0;E0)for(var _=0;_3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Wa("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Wa("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Wa("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Wa("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,s=!!jg&&jg(t,n);if(Mg)Mg(t,n,{configurable:l===null&&s?s.configurable:!l,enumerable:a===null&&s?s.enumerable:!a,value:r,writable:i===null&&s?s.writable:!i});else if(o||!a&&!i&&!l)t[n]=r;else throw new A4("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Lp=pf,mx=function(){return!!Lp};mx.hasArrayLengthDefineBug=function(){if(!Lp)return null;try{return Lp([],"length",{value:1}).length!==1}catch{return!0}};var Jy=mx,R4=Ky,C4=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",$4=Object.prototype.toString,N4=Array.prototype.concat,Dg=Wy,M4=function(e){return typeof e=="function"&&$4.call(e)==="[object Function]"},vx=Jy(),j4=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!M4(r)||!r())return}vx?Dg(e,t,n,!0):Dg(e,t,n)},gx=function(e,t){var n=arguments.length>2?arguments[2]:{},r=R4(t);C4&&(r=N4.call(r,Object.getOwnPropertySymbols(t)));for(var a=0;a"u"||!Fe?W:Fe(Uint8Array),ya={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?W:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?W:ArrayBuffer,"%ArrayIteratorPrototype%":Ja&&Fe?Fe([][Symbol.iterator]()):W,"%AsyncFromSyncIteratorPrototype%":W,"%AsyncFunction%":ii,"%AsyncGenerator%":ii,"%AsyncGeneratorFunction%":ii,"%AsyncIteratorPrototype%":ii,"%Atomics%":typeof Atomics>"u"?W:Atomics,"%BigInt%":typeof BigInt>"u"?W:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?W:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?W:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?W:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":fM,"%eval%":eval,"%EvalError%":dM,"%Float32Array%":typeof Float32Array>"u"?W:Float32Array,"%Float64Array%":typeof Float64Array>"u"?W:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?W:FinalizationRegistry,"%Function%":Ax,"%GeneratorFunction%":ii,"%Int8Array%":typeof Int8Array>"u"?W:Int8Array,"%Int16Array%":typeof Int16Array>"u"?W:Int16Array,"%Int32Array%":typeof Int32Array>"u"?W:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ja&&Fe?Fe(Fe([][Symbol.iterator]())):W,"%JSON%":typeof JSON=="object"?JSON:W,"%Map%":typeof Map>"u"?W:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ja||!Fe?W:Fe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":cM,"%Object.getOwnPropertyDescriptor%":bo,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?W:Promise,"%Proxy%":typeof Proxy>"u"?W:Proxy,"%RangeError%":pM,"%ReferenceError%":hM,"%Reflect%":typeof Reflect>"u"?W:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?W:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ja||!Fe?W:Fe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?W:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ja&&Fe?Fe(""[Symbol.iterator]()):W,"%Symbol%":Ja?Symbol:W,"%SyntaxError%":Ui,"%ThrowTypeError%":_M,"%TypedArray%":AM,"%TypeError%":_i,"%Uint8Array%":typeof Uint8Array>"u"?W:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?W:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?W:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?W:Uint32Array,"%URIError%":yM,"%WeakMap%":typeof WeakMap>"u"?W:WeakMap,"%WeakRef%":typeof WeakRef>"u"?W:WeakRef,"%WeakSet%":typeof WeakSet>"u"?W:WeakSet,"%Function.prototype.call%":Ko,"%Function.prototype.apply%":Rx,"%Object.defineProperty%":OM,"%Object.getPrototypeOf%":TM,"%Math.abs%":mM,"%Math.floor%":vM,"%Math.max%":gM,"%Math.min%":bM,"%Math.pow%":SM,"%Math.round%":EM,"%Math.sign%":xM,"%Reflect.getPrototypeOf%":wM};if(Fe)try{null.error}catch(e){var RM=Fe(Fe(e));ya["%Error.prototype%"]=RM}var CM=function e(t){var n;if(t==="%AsyncFunction%")n=dd("async function () {}");else if(t==="%GeneratorFunction%")n=dd("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=dd("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Fe&&(n=Fe(a.prototype))}return ya[t]=n,n},Xg={__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"]},Zo=Qo(),ju=am,$M=Zo.call(Ko,Array.prototype.concat),NM=Zo.call(Rx,Array.prototype.splice),Pg=Zo.call(Ko,String.prototype.replace),Du=Zo.call(Ko,String.prototype.slice),MM=Zo.call(Ko,RegExp.prototype.exec),jM=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,DM=/\\(\\)?/g,BM=function(t){var n=Du(t,0,1),r=Du(t,-1);if(n==="%"&&r!=="%")throw new Ui("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Ui("invalid intrinsic syntax, expected opening `%`");var a=[];return Pg(t,jM,function(i,l,o,s){a[a.length]=o?Pg(s,DM,"$1"):l||i}),a},kM=function(t,n){var r=t,a;if(ju(Xg,r)&&(a=Xg[r],r="%"+a[0]+"%"),ju(ya,r)){var i=ya[r];if(i===ii&&(i=CM(r)),typeof i>"u"&&!n)throw new _i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:i}}throw new Ui("intrinsic "+t+" does not exist!")},Or=function(t,n){if(typeof t!="string"||t.length===0)throw new _i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new _i('"allowMissing" argument must be a boolean');if(MM(/^%?[^%]*%?$/,t)===null)throw new Ui("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=BM(t),a=r.length>0?r[0]:"",i=kM("%"+a+"%",n),l=i.name,o=i.value,s=!1,u=i.alias;u&&(a=u[0],NM(r,$M([0,1],u)));for(var c=1,d=!0;c=r.length){var S=bo(o,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?o=S.get:o=o[f]}else d=ju(o,f),o=o[f];d&&!s&&(ya[l]=o)}}return o},zM=Or,Fg=Wy,LM=Jy(),Qg=$a,Kg=un,UM=zM("%Math.floor%"),HM=function(t,n){if(typeof t!="function")throw new Kg("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||UM(n)!==n)throw new Kg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,i=!0;if("length"in t&&Qg){var l=Qg(t,"length");l&&!l.configurable&&(a=!1),l&&!l.writable&&(i=!1)}return(a||i||!r)&&(LM?Fg(t,"length",n,!0,!0):Fg(t,"length",n)),t},qM=Qo(),GM=nm(),YM=Ox,VM=function(){return YM(qM,GM,arguments)};(function(e){var t=HM,n=pf,r=rm,a=VM;e.exports=function(l){var o=r(arguments),s=l.length-(arguments.length-1);return t(o,1+(s>0?s:0),!0)},n?n(e.exports,"apply",{value:a}):e.exports.apply=a})(bx);var al=bx.exports,Cx=Or,$x=rm,XM=$x([Cx("%String.prototype.indexOf%")]),ft=function(t,n){var r=Cx(t,!!n);return typeof r=="function"&&XM(t,".prototype.")>-1?$x([r]):r},PM=Ky,Nx=hf(),Mx=ft,ru=Iy,FM=Mx("Array.prototype.push"),Zg=Mx("Object.prototype.propertyIsEnumerable"),QM=Nx?ru.getOwnPropertySymbols:null,jx=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=ru(t);if(arguments.length===1)return r;for(var a=1;a-1?Lx(r):r},So=function(){return typeof(function(){}).name=="string"},Xl=Object.getOwnPropertyDescriptor;if(Xl)try{Xl([],"length")}catch{Xl=null}So.functionsHaveConfigurableNames=function(){if(!So()||!Xl)return!1;var t=Xl(function(){},"name");return!!t&&!!t.configurable};var o6=Function.prototype.bind;So.boundFunctionsHaveNames=function(){return So()&&typeof o6=="function"&&(function(){}).bind().name!==""};var s6=So,Wg=Wy,u6=Jy(),c6=s6.functionsHaveConfigurableNames(),f6=un,d6=function(t,n){if(typeof t!="function")throw new f6("`fn` is not a function");var r=arguments.length>2&&!!arguments[2];return(!r||c6)&&(u6?Wg(t,"name",n,!0,!0):Wg(t,"name",n)),t},p6=d6,h6=un,y6=Object,Hx=p6(function(){if(this==null||this!==y6(this))throw new h6("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),m6=Hx,v6=Na.supportsDescriptors,g6=Object.getOwnPropertyDescriptor,qx=function(){if(v6&&/a/mig.flags==="gim"){var t=g6(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),t.get.call(r),n==="dy")return t.get}}return m6},b6=Na.supportsDescriptors,S6=qx,E6=$a,x6=Object.defineProperty,O6=Sx,Jg=wx,_6=/a/,T6=function(){if(!b6||!Jg)throw new O6("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=S6(),n=Jg(_6),r=E6(n,"flags");return(!r||r.get!==t)&&x6(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},w6=Na,A6=al,R6=Hx,Gx=qx,C6=T6,Yx=A6(Gx());w6(Yx,{getPolyfill:Gx,implementation:R6,shim:C6});var $6=Yx,au={exports:{}},N6=hf,Ma=function(){return N6()&&!!Symbol.toStringTag},M6=Ma(),j6=ft,Up=j6("Object.prototype.toString"),yf=function(t){return M6&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Up(t)==="[object Arguments]"},Vx=function(t){return yf(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&Up(t)!=="[object Array]"&&"callee"in t&&Up(t.callee)==="[object Function]"},D6=function(){return yf(arguments)}();yf.isLegacyArguments=Vx;var Xx=D6?yf:Vx;const B6={},k6=Object.freeze(Object.defineProperty({__proto__:null,default:B6},Symbol.toStringTag,{value:"Module"})),z6=Er(k6);var im=typeof Map=="function"&&Map.prototype,yd=Object.getOwnPropertyDescriptor&&im?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Bu=im&&yd&&typeof yd.get=="function"?yd.get:null,Ig=im&&Map.prototype.forEach,lm=typeof Set=="function"&&Set.prototype,md=Object.getOwnPropertyDescriptor&&lm?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ku=lm&&md&&typeof md.get=="function"?md.get:null,e0=lm&&Set.prototype.forEach,L6=typeof WeakMap=="function"&&WeakMap.prototype,Pl=L6?WeakMap.prototype.has:null,U6=typeof WeakSet=="function"&&WeakSet.prototype,Fl=U6?WeakSet.prototype.has:null,H6=typeof WeakRef=="function"&&WeakRef.prototype,t0=H6?WeakRef.prototype.deref:null,q6=Boolean.prototype.valueOf,G6=Object.prototype.toString,Y6=Function.prototype.toString,V6=String.prototype.match,om=String.prototype.slice,Lr=String.prototype.replace,X6=String.prototype.toUpperCase,n0=String.prototype.toLowerCase,Px=RegExp.prototype.test,r0=Array.prototype.concat,wn=Array.prototype.join,P6=Array.prototype.slice,a0=Math.floor,Hp=typeof BigInt=="function"?BigInt.prototype.valueOf:null,vd=Object.getOwnPropertySymbols,qp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Hi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ct=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Hi||!0)?Symbol.toStringTag:null,Fx=Object.prototype.propertyIsEnumerable,i0=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function l0(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Px.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-a0(-e):a0(e);if(r!==e){var a=String(r),i=om.call(t,a.length+1);return Lr.call(a,n,"$&_")+"."+Lr.call(Lr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Lr.call(t,n,"$&_")}var Gp=z6,o0=Gp.custom,s0=Zx(o0)?o0:null,Qx={__proto__:null,double:'"',single:"'"},F6={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},mf=function e(t,n,r,a){var i=n||{};if(In(i,"quoteStyle")&&!In(Qx,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(In(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=In(i,"customInspect")?i.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(In(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(In(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Jx(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return o?l0(t,s):s}if(typeof t=="bigint"){var u=String(t)+"n";return o?l0(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yp(t)?"[Array]":"[Object]";var d=fj(i,r);if(typeof a>"u")a=[];else if(Wx(a,t)>=0)return"[Circular]";function f(U,X,q){if(X&&(a=P6.call(a),a.push(X)),q){var C={depth:i.depth};return In(i,"quoteStyle")&&(C.quoteStyle=i.quoteStyle),e(U,C,r+1,a)}return e(U,i,r+1,a)}if(typeof t=="function"&&!u0(t)){var h=nj(t),b=Os(t,f);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(b.length>0?" { "+wn.call(b,", ")+" }":"")}if(Zx(t)){var S=Hi?Lr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qp.call(t);return typeof t=="object"&&!Hi?gl(S):S}if(sj(t)){for(var x="<"+n0.call(String(t.nodeName)),m=t.attributes||[],p=0;p",x}if(Yp(t)){if(t.length===0)return"[]";var v=Os(t,f);return d&&!cj(v)?"["+Vp(v,d)+"]":"[ "+wn.call(v,", ")+" ]"}if(Z6(t)){var E=Os(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!Fx.call(t,"cause")?"{ ["+String(t)+"] "+wn.call(r0.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+wn.call(E,", ")+" }"}if(typeof t=="object"&&l){if(s0&&typeof t[s0]=="function"&&Gp)return Gp(t,{depth:c-r});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(rj(t)){var _=[];return Ig&&Ig.call(t,function(U,X){_.push(f(X,t,!0)+" => "+f(U,t))}),c0("Map",Bu.call(t),_,d)}if(lj(t)){var O=[];return e0&&e0.call(t,function(U){O.push(f(U,t))}),c0("Set",ku.call(t),O,d)}if(aj(t))return gd("WeakMap");if(oj(t))return gd("WeakSet");if(ij(t))return gd("WeakRef");if(J6(t))return gl(f(Number(t)));if(ej(t))return gl(f(Hp.call(t)));if(I6(t))return gl(q6.call(t));if(W6(t))return gl(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof xu<"u"&&t===xu)return"{ [object globalThis] }";if(!K6(t)&&!u0(t)){var T=Os(t,f),w=i0?i0(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",R=!w&&ct&&Object(t)===t&&ct in t?om.call(ra(t),8,-1):$?"Object":"",M=w||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",G=M+(R||$?"["+wn.call(r0.call([],R||[],$||[]),": ")+"] ":"");return T.length===0?G+"{}":d?G+"{"+Vp(T,d)+"}":G+"{ "+wn.call(T,", ")+" }"}return String(t)};function Kx(e,t,n){var r=n.quoteStyle||t,a=Qx[r];return a+e+a}function Q6(e){return Lr.call(String(e),/"/g,""")}function Yp(e){return ra(e)==="[object Array]"&&(!ct||!(typeof e=="object"&&ct in e))}function K6(e){return ra(e)==="[object Date]"&&(!ct||!(typeof e=="object"&&ct in e))}function u0(e){return ra(e)==="[object RegExp]"&&(!ct||!(typeof e=="object"&&ct in e))}function Z6(e){return ra(e)==="[object Error]"&&(!ct||!(typeof e=="object"&&ct in e))}function W6(e){return ra(e)==="[object String]"&&(!ct||!(typeof e=="object"&&ct in e))}function J6(e){return ra(e)==="[object Number]"&&(!ct||!(typeof e=="object"&&ct in e))}function I6(e){return ra(e)==="[object Boolean]"&&(!ct||!(typeof e=="object"&&ct in e))}function Zx(e){if(Hi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qp)return!1;try{return qp.call(e),!0}catch{}return!1}function ej(e){if(!e||typeof e!="object"||!Hp)return!1;try{return Hp.call(e),!0}catch{}return!1}var tj=Object.prototype.hasOwnProperty||function(e){return e in this};function In(e,t){return tj.call(e,t)}function ra(e){return G6.call(e)}function nj(e){if(e.name)return e.name;var t=V6.call(Y6.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Wx(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Jx(om.call(e,0,t.maxStringLength),t)+r}var a=F6[t.quoteStyle||"single"];a.lastIndex=0;var i=Lr.call(Lr.call(e,a,"\\$1"),/[\x00-\x1f]/g,uj);return Kx(i,"single",t)}function uj(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+X6.call(t.toString(16))}function gl(e){return"Object("+e+")"}function gd(e){return e+" { ? }"}function c0(e,t,n,r){var a=r?Vp(n,r):wn.call(n,", ");return e+" ("+t+") {"+a+"}"}function cj(e){for(var t=0;t=0)return!1;return!0}function fj(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=wn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:wn.call(Array(t+1),n)}}function Vp(e,t){if(e.length===0)return"";var n=` + */var Gy=Symbol.for("react.transitional.element"),Yy=Symbol.for("react.portal"),tf=Symbol.for("react.fragment"),nf=Symbol.for("react.strict_mode"),rf=Symbol.for("react.profiler"),af=Symbol.for("react.consumer"),lf=Symbol.for("react.context"),of=Symbol.for("react.forward_ref"),sf=Symbol.for("react.suspense"),uf=Symbol.for("react.suspense_list"),cf=Symbol.for("react.memo"),ff=Symbol.for("react.lazy"),x3=Symbol.for("react.offscreen"),O3=Symbol.for("react.client.reference");function sn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Gy:switch(e=e.type,e){case tf:case rf:case nf:case sf:case uf:return e;default:switch(e=e&&e.$$typeof,e){case lf:case of:case ff:case cf:return e;case af:return e;default:return t}}case Yy:return t}}}me.ContextConsumer=af;me.ContextProvider=lf;me.Element=Gy;me.ForwardRef=of;me.Fragment=tf;me.Lazy=ff;me.Memo=cf;me.Portal=Yy;me.Profiler=rf;me.StrictMode=nf;me.Suspense=sf;me.SuspenseList=uf;me.isContextConsumer=function(e){return sn(e)===af};me.isContextProvider=function(e){return sn(e)===lf};me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gy};me.isForwardRef=function(e){return sn(e)===of};me.isFragment=function(e){return sn(e)===tf};me.isLazy=function(e){return sn(e)===ff};me.isMemo=function(e){return sn(e)===cf};me.isPortal=function(e){return sn(e)===Yy};me.isProfiler=function(e){return sn(e)===rf};me.isStrictMode=function(e){return sn(e)===nf};me.isSuspense=function(e){return sn(e)===sf};me.isSuspenseList=function(e){return sn(e)===uf};me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tf||e===rf||e===nf||e===sf||e===uf||e===x3||typeof e=="object"&&e!==null&&(e.$$typeof===ff||e.$$typeof===cf||e.$$typeof===lf||e.$$typeof===af||e.$$typeof===of||e.$$typeof===O3||e.getModuleId!==void 0)};me.typeOf=sn;tx.exports=me;var dg=tx.exports;const _3=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function nx(e){const t=`${e}`.match(_3);return t&&t[1]||""}function rx(e,t=""){return e.displayName||e.name||nx(e)||t}function pg(e,t,n){const r=rx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function T3(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return rx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case dg.ForwardRef:return pg(e,e.render,"ForwardRef");case dg.Memo:return pg(e,e.type,"memo");default:return}}}const w3=Object.freeze(Object.defineProperty({__proto__:null,default:T3,getFunctionName:nx},Symbol.toStringTag,{value:"Module"}));function Mp(e,t){const n=k({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=k({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const a=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=a:!a||!Object.keys(a)?n[r]=i:(n[r]=k({},i),Object.keys(a).forEach(l=>{n[r][l]=Mp(a[l],i[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const ax=typeof window<"u"?m.useLayoutEffect:m.useEffect;function ai(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const A3=Object.freeze(Object.defineProperty({__proto__:null,default:ai},Symbol.toStringTag,{value:"Module"}));function Zs(e){return e&&e.ownerDocument||document}function R3(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function C3({controlled:e,default:t,name:n,state:r="value"}){const{current:a}=m.useRef(e!==void 0),[i,l]=m.useState(t),o=a?e:i,s=m.useCallback(u=>{a||l(u)},[]);return[o,s]}function nd(e){const t=m.useRef(e);return ax(()=>{t.current=e}),m.useRef((...n)=>(0,t.current)(...n)).current}function jp(...e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{R3(n,t)})},e)}class Vy{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Vy}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let df=!0,Dp=!1;const $3=new Vy,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(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&N3[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function j3(e){e.metaKey||e.altKey||e.ctrlKey||(df=!0)}function rd(){df=!1}function D3(){this.visibilityState==="hidden"&&Dp&&(df=!0)}function B3(e){e.addEventListener("keydown",j3,!0),e.addEventListener("mousedown",rd,!0),e.addEventListener("pointerdown",rd,!0),e.addEventListener("touchstart",rd,!0),e.addEventListener("visibilitychange",D3,!0)}function k3(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return df||M3(t)}function z3(){const e=m.useCallback(a=>{a!=null&&B3(a.ownerDocument)},[]),t=m.useRef(!1);function n(){return t.current?(Dp=!0,$3.start(100,()=>{Dp=!1}),t.current=!1,!0):!1}function r(a){return k3(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const L3={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function U3(e,t,n=void 0){const r={};return Object.keys(e).forEach(a=>{r[a]=e[a].reduce((i,l)=>{if(l){const o=t(l);o!==""&&i.push(o),n&&n[l]&&i.push(n[l])}return i},[]).join(" ")}),r}function Vl(e){return typeof e=="string"}function H3(e,t,n){return e===void 0||Vl(e)?t:k({},t,{ownerState:k({},t.ownerState,n)})}function Ws(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function hg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function q3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!t){const h=Gr(n==null?void 0:n.className,i,a==null?void 0:a.className,r==null?void 0:r.className),b=k({},n==null?void 0:n.style,a==null?void 0:a.style,r==null?void 0:r.style),S=k({},n,a,r);return h.length>0&&(S.className=h),Object.keys(b).length>0&&(S.style=b),{props:S,internalRef:void 0}}const l=Ws(k({},a,r)),o=hg(r),s=hg(a),u=t(l),c=Gr(u==null?void 0:u.className,n==null?void 0:n.className,i,a==null?void 0:a.className,r==null?void 0:r.className),d=k({},u==null?void 0:u.style,n==null?void 0:n.style,a==null?void 0:a.style,r==null?void 0:r.style),f=k({},u,n,s,o);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function G3(e,t,n){return typeof e=="function"?e(t,n):e}const Y3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ar(e){var t;const{elementType:n,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:i=!1}=e,l=bn(e,Y3),o=i?{}:G3(r,a),{props:s,internalRef:u}=q3(k({},l,{externalSlotProps:o})),c=jp(u,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return H3(n,k({},s,{ref:c}),a)}const V3=m.createContext(),X3=()=>{const e=m.useContext(V3);return e??!1},P3=m.createContext(void 0);function F3(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?Mp(a.defaultProps,r):!a.styleOverrides&&!a.variants?Mp(a,r):r}function Q3({props:e,name:t}){const n=m.useContext(P3);return F3({props:e,name:t,theme:{components:n}})}function K3(e,t){return k({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Be={},ix={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ix);var lx=ix.exports;const Z3=Er(s5),W3=Er(A3);var ox=lx;Object.defineProperty(Be,"__esModule",{value:!0});var yg=Be.alpha=fx;Be.blend=sN;Be.colorChannel=void 0;var Bp=Be.darken=Py;Be.decomposeColor=rn;Be.emphasize=dx;var J3=Be.getContrastRatio=rN;Be.getLuminance=Nu;Be.hexToRgb=sx;Be.hslToRgb=cx;var kp=Be.lighten=Fy;Be.private_safeAlpha=aN;Be.private_safeColorChannel=void 0;Be.private_safeDarken=iN;Be.private_safeEmphasize=oN;Be.private_safeLighten=lN;Be.recomposeColor=nl;Be.rgbToHex=nN;var mg=ox(Z3),I3=ox(W3);function Xy(e,t=0,n=1){return(0,I3.default)(e,t,n)}function sx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function eN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rn(e){if(e.type)return e;if(e.charAt(0)==="#")return rn(sx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,mg.default)(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error((0,mg.default)(10,a))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:a}}const ux=e=>{const t=rn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Be.colorChannel=ux;const tN=(e,t)=>{try{return ux(e)}catch{return e}};Be.private_safeColorChannel=tN;function nl(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((a,i)=>i<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function nN(e){if(e.indexOf("#")===0)return e;const{values:t}=rn(e);return`#${t.map((n,r)=>eN(r===3?Math.round(255*n):n)).join("")}`}function cx(e){e=rn(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,i=r*Math.min(a,1-a),l=(u,c=(u+n/30)%12)=>a-i*Math.max(Math.min(c-3,9-c,1),-1);let o="rgb";const s=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(o+="a",s.push(t[3])),nl({type:o,values:s})}function Nu(e){e=rn(e);let t=e.type==="hsl"||e.type==="hsla"?rn(cx(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rN(e,t){const n=Nu(e),r=Nu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function fx(e,t){return e=rn(e),t=Xy(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,nl(e)}function aN(e,t,n){try{return fx(e,t)}catch{return e}}function Py(e,t){if(e=rn(e),t=Xy(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return nl(e)}function iN(e,t,n){try{return Py(e,t)}catch{return e}}function Fy(e,t){if(e=rn(e),t=Xy(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return nl(e)}function lN(e,t,n){try{return Fy(e,t)}catch{return e}}function dx(e,t=.15){return Nu(e)>.5?Py(e,t):Fy(e,t)}function oN(e,t,n){try{return dx(e,t)}catch{return e}}function sN(e,t,n,r=1){const a=(s,u)=>Math.round((s**(1/r)*(1-n)+u**(1/r)*n)**r),i=rn(e),l=rn(t),o=[a(i.values[0],l.values[0]),a(i.values[1],l.values[1]),a(i.values[2],l.values[2])];return nl({type:"rgb",values:o})}const uN=["mode","contrastThreshold","tonalOffset"],vg={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:ho.white,default:ho.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}},ad={text:{primary:ho.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:ho.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 gg(e,t,n,r){const a=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=kp(e.main,a):t==="dark"&&(e.dark=Bp(e.main,i)))}function cN(e="light"){return e==="dark"?{main:Qa[200],light:Qa[50],dark:Qa[400]}:{main:Qa[700],light:Qa[400],dark:Qa[800]}}function fN(e="light"){return e==="dark"?{main:Fa[200],light:Fa[50],dark:Fa[400]}:{main:Fa[500],light:Fa[300],dark:Fa[700]}}function dN(e="light"){return e==="dark"?{main:Pa[500],light:Pa[300],dark:Pa[700]}:{main:Pa[700],light:Pa[400],dark:Pa[800]}}function pN(e="light"){return e==="dark"?{main:Ka[400],light:Ka[300],dark:Ka[700]}:{main:Ka[700],light:Ka[500],dark:Ka[900]}}function hN(e="light"){return e==="dark"?{main:Za[400],light:Za[300],dark:Za[700]}:{main:Za[800],light:Za[500],dark:Za[900]}}function yN(e="light"){return e==="dark"?{main:ml[400],light:ml[300],dark:ml[700]}:{main:"#ed6c02",light:ml[500],dark:ml[900]}}function mN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,a=bn(e,uN),i=e.primary||cN(t),l=e.secondary||fN(t),o=e.error||dN(t),s=e.info||pN(t),u=e.success||hN(t),c=e.warning||yN(t);function d(S){return J3(S,ad.text.primary)>=n?ad.text.primary:vg.text.primary}const f=({color:S,name:x,mainShade:y=500,lightShade:p=300,darkShade:v=700})=>{if(S=k({},S),!S.main&&S[y]&&(S.main=S[y]),!S.hasOwnProperty("main"))throw new Error(yo(11,x?` (${x})`:"",y));if(typeof S.main!="string")throw new Error(yo(12,x?` (${x})`:"",JSON.stringify(S.main)));return gg(S,"light",p,r),gg(S,"dark",v,r),S.contrastText||(S.contrastText=d(S.main)),S},h={dark:ad,light:vg};return Dn(k({common:k({},ho),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:o,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:s,name:"info"}),success:f({color:u,name:"success"}),grey:o5,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),a)}const vN=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function gN(e){return Math.round(e*1e5)/1e5}const bg={textTransform:"uppercase"},Sg='"Roboto", "Helvetica", "Arial", sans-serif';function bN(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Sg,fontSize:a=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=bn(n,vN),h=a/14,b=d||(y=>`${y/u*h}rem`),S=(y,p,v,E,_)=>k({fontFamily:r,fontWeight:y,fontSize:b(p),lineHeight:v},r===Sg?{letterSpacing:`${gN(E/p)}em`}:{},_,c),x={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(l,48,1.167,0),h4:S(l,34,1.235,.25),h5:S(l,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(l,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(l,16,1.5,.15),body2:S(l,14,1.43,.15),button:S(o,14,1.75,.4,bg),caption:S(l,12,1.66,.4),overline:S(l,12,2.66,1,bg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dn(k({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:a,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:o,fontWeightBold:s},x),f,{clone:!1})}const SN=.2,EN=.14,xN=.12;function _e(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${SN})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${EN})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${xN})`].join(",")}const ON=["none",_e(0,2,1,-1,0,1,1,0,0,1,3,0),_e(0,3,1,-2,0,2,2,0,0,1,5,0),_e(0,3,3,-2,0,3,4,0,0,1,8,0),_e(0,2,4,-1,0,4,5,0,0,1,10,0),_e(0,3,5,-1,0,5,8,0,0,1,14,0),_e(0,3,5,-1,0,6,10,0,0,1,18,0),_e(0,4,5,-2,0,7,10,1,0,2,16,1),_e(0,5,5,-3,0,8,10,1,0,3,14,2),_e(0,5,6,-3,0,9,12,1,0,3,16,2),_e(0,6,6,-3,0,10,14,1,0,4,18,3),_e(0,6,7,-4,0,11,15,1,0,4,20,3),_e(0,7,8,-4,0,12,17,2,0,5,22,4),_e(0,7,8,-4,0,13,19,2,0,5,24,4),_e(0,7,9,-4,0,14,21,2,0,5,26,4),_e(0,8,9,-5,0,15,22,2,0,6,28,5),_e(0,8,10,-5,0,16,24,2,0,6,30,5),_e(0,8,11,-5,0,17,26,2,0,6,32,5),_e(0,9,11,-5,0,18,28,2,0,7,34,6),_e(0,9,12,-6,0,19,29,2,0,7,36,6),_e(0,10,13,-6,0,20,31,3,0,8,38,7),_e(0,10,13,-6,0,21,33,3,0,8,40,7),_e(0,10,14,-6,0,22,35,3,0,8,42,7),_e(0,11,14,-7,0,23,36,3,0,9,44,8),_e(0,11,15,-7,0,24,38,3,0,9,46,8)],_N=["duration","easing","delay"],TN={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)"},wN={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Eg(e){return`${Math.round(e)}ms`}function AN(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function RN(e){const t=k({},TN,e.easing),n=k({},wN,e.duration);return k({getAutoHeightDuration:AN,create:(a=["all"],i={})=>{const{duration:l=n.standard,easing:o=t.easeInOut,delay:s=0}=i;return bn(i,_N),(Array.isArray(a)?a:[a]).map(u=>`${u} ${typeof l=="string"?l:Eg(l)} ${o} ${typeof s=="string"?s:Eg(s)}`).join(",")}},e,{easing:t,duration:n})}const CN={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$N=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function NN(e={},...t){const{mixins:n={},palette:r={},transitions:a={},typography:i={}}=e,l=bn(e,$N);if(e.vars)throw new Error(yo(18));const o=mN(r),s=JE(e);let u=Dn(s,{mixins:K3(s.breakpoints,n),palette:o,shadows:ON.slice(),typography:bN(o,i),transitions:RN(a),zIndex:k({},CN)});return u=Dn(u,l),u=t.reduce((c,d)=>Dn(c,d),u),u.unstable_sxConfig=k({},Po,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(d){return ef({sx:d,theme:this})},u}const MN=NN();var Fo={},id={exports:{}},xg;function jN(){return xg||(xg=1,function(e){function t(n,r){if(n==null)return{};var a={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.includes(i))continue;a[i]=n[i]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(id)),id.exports}const DN=Er(b$),BN=Er(S$),kN=Er(w$),zN=Er(w3),LN=Er(p3),UN=Er(v3);var rl=lx;Object.defineProperty(Fo,"__esModule",{value:!0});var HN=Fo.default=IN;Fo.shouldForwardProp=Js;Fo.systemDefaultTheme=void 0;var Gt=rl(VE()),zp=rl(jN()),Og=FN(DN),qN=BN;rl(kN);rl(zN);var GN=rl(LN),YN=rl(UN);const VN=["ownerState"],XN=["variants"],PN=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function px(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(px=function(r){return r?n:t})(e)}function FN(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=px(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function QN(e){return Object.keys(e).length===0}function KN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Js(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ZN=Fo.systemDefaultTheme=(0,GN.default)(),WN=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gs({defaultTheme:e,theme:t,themeId:n}){return QN(t)?e:t[n]||t}function JN(e){return e?(t,n)=>n[e]:null}function Is(e,t){let{ownerState:n}=t,r=(0,zp.default)(t,VN);const a=typeof e=="function"?e((0,Gt.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap(i=>Is(i,(0,Gt.default)({ownerState:n},r)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:i=[]}=a;let o=(0,zp.default)(a,XN);return i.forEach(s=>{let u=!0;typeof s.props=="function"?u=s.props((0,Gt.default)({ownerState:n},r,n)):Object.keys(s.props).forEach(c=>{(n==null?void 0:n[c])!==s.props[c]&&r[c]!==s.props[c]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof s.style=="function"?s.style((0,Gt.default)({ownerState:n},r,n)):s.style))}),o}return a}function IN(e={}){const{themeId:t,defaultTheme:n=ZN,rootShouldForwardProp:r=Js,slotShouldForwardProp:a=Js}=e,i=l=>(0,YN.default)((0,Gt.default)({},l,{theme:gs((0,Gt.default)({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,o={})=>{(0,Og.internal_processStyles)(l,_=>_.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=JN(WN(u))}=o,h=(0,zp.default)(o,PN),b=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let x,y=Js;u==="Root"||u==="root"?y=r:u?y=a:KN(l)&&(y=void 0);const p=(0,Og.default)(l,(0,Gt.default)({shouldForwardProp:y,label:x},h)),v=_=>typeof _=="function"&&_.__emotion_real!==_||(0,qN.isPlainObject)(_)?O=>Is(_,(0,Gt.default)({},O,{theme:gs({theme:O.theme,defaultTheme:n,themeId:t})})):_,E=(_,...O)=>{let T=v(_);const w=O?O.map(v):[];s&&f&&w.push(N=>{const G=gs((0,Gt.default)({},N,{defaultTheme:n,themeId:t}));if(!G.components||!G.components[s]||!G.components[s].styleOverrides)return null;const U=G.components[s].styleOverrides,X={};return Object.entries(U).forEach(([q,C])=>{X[q]=Is(C,(0,Gt.default)({},N,{theme:G}))}),f(N,X)}),s&&!b&&w.push(N=>{var G;const U=gs((0,Gt.default)({},N,{defaultTheme:n,themeId:t})),X=U==null||(G=U.components)==null||(G=G[s])==null?void 0:G.variants;return Is({variants:X},(0,Gt.default)({},N,{theme:U}))}),S||w.push(i);const $=w.length-O.length;if(Array.isArray(_)&&$>0){const N=new Array($).fill("");T=[..._,...N],T.raw=[..._.raw,...N]}const R=p(T,...w);return l.muiName&&(R.muiName=l.muiName),R};return p.withConfig&&(E.withConfig=p.withConfig),E}}function Qy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const e4=e=>Qy(e)&&e!=="classes",Ca=HN({themeId:u5,defaultTheme:MN,rootShouldForwardProp:e4});function t4(e){return Q3(e)}function n4(e,t,n=(r,a)=>r===a){return e.length===t.length&&e.every((r,a)=>n(r,t[a]))}const r4=2;function hx(e,t){return e-t}function _g(e,t){var n;const{index:r}=(n=e.reduce((a,i,l)=>{const o=Math.abs(t-i);return a===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},s4=e=>e;let xs;function wg(){return xs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?xs=CSS.supports("touch-action","none"):xs=!0),xs}function u4(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:l=!1,max:o=100,min:s=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:h,scale:b=s4,step:S=1,shiftStep:x=10,tabIndex:y,value:p}=e,v=m.useRef(void 0),[E,_]=m.useState(-1),[O,T]=m.useState(-1),[w,$]=m.useState(!1),R=m.useRef(0),[N,G]=C3({controlled:p,default:n??s,name:"Slider"}),U=c&&((M,B,L)=>{const re=M.nativeEvent||M,le=new re.constructor(re.type,re);Object.defineProperty(le,"target",{writable:!0,value:{value:B,name:u}}),c(le,B,L)}),X=Array.isArray(N);let q=X?N.slice().sort(hx):[N];q=q.map(M=>M==null?s:ai(M,s,o));const C=l===!0&&S!==null?[...Array(Math.floor((o-s)/S)+1)].map((M,B)=>({value:s+S*B})):l||[],j=C.map(M=>M.value),{isFocusVisibleRef:D,onBlur:K,onFocus:ie,ref:Pe}=z3(),[ke,xe]=m.useState(-1),V=m.useRef(null),ve=jp(Pe,V),zt=jp(h,ve),_t=M=>B=>{var L;const re=Number(B.currentTarget.getAttribute("data-index"));ie(B),D.current===!0&&xe(re),T(re),M==null||(L=M.onFocus)==null||L.call(M,B)},it=M=>B=>{var L;K(B),D.current===!1&&xe(-1),T(-1),M==null||(L=M.onBlur)==null||L.call(M,B)},Lt=(M,B)=>{const L=Number(M.currentTarget.getAttribute("data-index")),re=q[L],le=j.indexOf(re);let ee=B;if(C&&S==null){const fn=j[j.length-1];ee>fn?ee=fn:eeB=>{var L;if(S!==null){const re=Number(B.currentTarget.getAttribute("data-index")),le=q[re];let ee=null;(B.key==="ArrowLeft"||B.key==="ArrowDown")&&B.shiftKey||B.key==="PageDown"?ee=Math.max(le-x,s):((B.key==="ArrowRight"||B.key==="ArrowUp")&&B.shiftKey||B.key==="PageUp")&&(ee=Math.min(le+x,o)),ee!==null&&(Lt(B,ee),B.preventDefault())}M==null||(L=M.onKeyDown)==null||L.call(M,B)};ax(()=>{if(r&&V.current.contains(document.activeElement)){var M;(M=document.activeElement)==null||M.blur()}},[r]),r&&E!==-1&&_(-1),r&&ke!==-1&&xe(-1);const Xn=M=>B=>{var L;(L=M.onChange)==null||L.call(M,B),Lt(B,B.target.valueAsNumber)},Pn=m.useRef(void 0);let lt=f;i&&f==="horizontal"&&(lt+="-reverse");const fe=({finger:M,move:B=!1})=>{const{current:L}=V,{width:re,height:le,bottom:ee,left:fn}=L.getBoundingClientRect();let xn;lt.indexOf("vertical")===0?xn=(ee-M.y)/le:xn=(M.x-fn)/re,lt.indexOf("-reverse")!==-1&&(xn=1-xn);let ue;if(ue=a4(xn,s,o),S)ue=l4(ue,S,s);else{const Ga=_g(j,ue);ue=j[Ga]}ue=ai(ue,s,o);let Ut=0;if(X){B?Ut=Pn.current:Ut=_g(q,ue),a&&(ue=ai(ue,q[Ut-1]||-1/0,q[Ut+1]||1/0));const Ga=ue;ue=Tg({values:q,newValue:ue,index:Ut}),a&&B||(Ut=ue.indexOf(Ga),Pn.current=Ut)}return{newValue:ue,activeIndex:Ut}},Y=nd(M=>{const B=bs(M,v);if(!B)return;if(R.current+=1,M.type==="mousemove"&&M.buttons===0){Ie(M);return}const{newValue:L,activeIndex:re}=fe({finger:B,move:!0});Ss({sliderRef:V,activeIndex:re,setActive:_}),G(L),!w&&R.current>r4&&$(!0),U&&!Es(L,N)&&U(M,L,re)}),Ie=nd(M=>{const B=bs(M,v);if($(!1),!B)return;const{newValue:L}=fe({finger:B,move:!0});_(-1),M.type==="touchend"&&T(-1),d&&d(M,L),v.current=void 0,Tt()}),dt=nd(M=>{if(r)return;wg()||M.preventDefault();const B=M.changedTouches[0];B!=null&&(v.current=B.identifier);const L=bs(M,v);if(L!==!1){const{newValue:le,activeIndex:ee}=fe({finger:L});Ss({sliderRef:V,activeIndex:ee,setActive:_}),G(le),U&&!Es(le,N)&&U(M,le,ee)}R.current=0;const re=Zs(V.current);re.addEventListener("touchmove",Y,{passive:!0}),re.addEventListener("touchend",Ie,{passive:!0})}),Tt=m.useCallback(()=>{const M=Zs(V.current);M.removeEventListener("mousemove",Y),M.removeEventListener("mouseup",Ie),M.removeEventListener("touchmove",Y),M.removeEventListener("touchend",Ie)},[Ie,Y]);m.useEffect(()=>{const{current:M}=V;return M.addEventListener("touchstart",dt,{passive:wg()}),()=>{M.removeEventListener("touchstart",dt),Tt()}},[Tt,dt]),m.useEffect(()=>{r&&Tt()},[r,Tt]);const fl=M=>B=>{var L;if((L=M.onMouseDown)==null||L.call(M,B),r||B.defaultPrevented||B.button!==0)return;B.preventDefault();const re=bs(B,v);if(re!==!1){const{newValue:ee,activeIndex:fn}=fe({finger:re});Ss({sliderRef:V,activeIndex:fn,setActive:_}),G(ee),U&&!Es(ee,N)&&U(B,ee,fn)}R.current=0;const le=Zs(V.current);le.addEventListener("mousemove",Y,{passive:!0}),le.addEventListener("mouseup",Ie)},Oe=Mu(X?q[0]:s,s,o),cn=Mu(q[q.length-1],s,o)-Oe,Ua=(M={})=>{const B=Ws(M),L={onMouseDown:fl(B||{})},re=k({},B,L);return k({},M,{ref:zt},re)},Ha=M=>B=>{var L;(L=M.onMouseOver)==null||L.call(M,B);const re=Number(B.currentTarget.getAttribute("data-index"));T(re)},la=M=>B=>{var L;(L=M.onMouseLeave)==null||L.call(M,B),T(-1)};return{active:E,axis:lt,axisProps:o4,dragging:w,focusedThumbIndex:ke,getHiddenInputProps:(M={})=>{var B;const L=Ws(M),re={onChange:Xn(L||{}),onFocus:_t(L||{}),onBlur:it(L||{}),onKeyDown:Vn(L||{})},le=k({},L,re);return k({tabIndex:y,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":b(o),"aria-valuemin":b(s),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(B=e.step)!=null?B:void 0,disabled:r},M,le,{style:k({},L3,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ua,getThumbProps:(M={})=>{const B=Ws(M),L={onMouseOver:Ha(B||{}),onMouseLeave:la(B||{})};return k({},M,B,L)},marks:C,open:O,range:X,rootRef:zt,trackLeap:cn,trackOffset:Oe,values:q,getThumbStyle:M=>({pointerEvents:E!==-1&&E!==M?"none":void 0})}}const c4=e=>!e||!Vl(e);function f4(e){return ex("MuiSlider",e)}const Jt=E3("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"]),d4=e=>{const{open:t}=e;return{offset:Gr(t&&Jt.valueLabelOpen),circle:Jt.valueLabelCircle,label:Jt.valueLabelLabel}};function p4(e){const{children:t,className:n,value:r}=e,a=d4(e);return t?m.cloneElement(t,{className:Gr(t.props.className)},g.jsxs(m.Fragment,{children:[t.props.children,g.jsx("span",{className:Gr(a.offset,n),"aria-hidden":!0,children:g.jsx("span",{className:a.circle,children:g.jsx("span",{className:a.label,children:r})})})]})):null}const h4=["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 Ag(e){return e}const y4=Ca("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${mn(n.color)}`],n.size!=="medium"&&t[`size${mn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Jt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Jt.dragging}`]:{[`& .${Jt.thumb}, & .${Jt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].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}}]}}),m4=Ca("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.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}}]}),v4=Ca("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.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(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:k({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:k({backgroundColor:kp(e.palette[n].main,.62),borderColor:kp(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Bp(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Bp(e.palette[n].main,.5)})))}))]}}),g4=Ca("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${mn(n.color)}`],n.size!=="medium"&&t[`thumbSize${mn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Jt.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(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Jt.focusVisible}`]:k({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${yg(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Jt.active}`]:k({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${yg(e.palette[n].main,.16)}`})}}))]}}),b4=Ca(p4,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>k({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).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%"},[`&.${Jt.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%"},[`&.${Jt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),S4=Ca("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Qy(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({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:(e.vars||e).palette.background.paper,opacity:.8}}]})),E4=Ca("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Qy(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>k({},e.typography.body2,{color:(e.vars||e).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:(e.vars||e).palette.text.primary}}]})),x4=e=>{const{disabled:t,dragging:n,marked:r,orientation:a,track:i,classes:l,color:o,size:s}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",o&&`color${mn(o)}`,s&&`size${mn(s)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",s&&`thumbSize${mn(s)}`,o&&`thumbColor${mn(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return U3(u,f4,l)},O4=({children:e})=>e,_4=m.forwardRef(function(t,n){var r,a,i,l,o,s,u,c,d,f,h,b,S,x,y,p,v,E,_,O,T,w,$,R;const N=t4({props:t,name:"MuiSlider"}),G=X3(),{"aria-label":U,"aria-valuetext":X,"aria-labelledby":q,component:C="span",components:j={},componentsProps:D={},color:K="primary",classes:ie,className:Pe,disableSwap:ke=!1,disabled:xe=!1,getAriaLabel:V,getAriaValueText:ve,marks:zt=!1,max:_t=100,min:it=0,orientation:Lt="horizontal",shiftStep:Vn=10,size:Xn="medium",step:Pn=1,scale:lt=Ag,slotProps:fe,slots:Y,track:Ie="normal",valueLabelDisplay:dt="off",valueLabelFormat:Tt=Ag}=N,fl=bn(N,h4),Oe=k({},N,{isRtl:G,max:_t,min:it,classes:ie,disabled:xe,disableSwap:ke,orientation:Lt,marks:zt,color:K,size:Xn,step:Pn,shiftStep:Vn,scale:lt,track:Ie,valueLabelDisplay:dt,valueLabelFormat:Tt}),{axisProps:cn,getRootProps:Ua,getHiddenInputProps:Ha,getThumbProps:la,open:dl,active:qa,axis:Tr,focusedThumbIndex:M,range:B,dragging:L,marks:re,values:le,trackOffset:ee,trackLeap:fn,getThumbStyle:xn}=u4(k({},Oe,{rootRef:n}));Oe.marked=re.length>0&&re.some(ze=>ze.label),Oe.dragging=L,Oe.focusedThumbIndex=M;const ue=x4(Oe),Ut=(r=(a=Y==null?void 0:Y.root)!=null?a:j.Root)!=null?r:y4,Ga=(i=(l=Y==null?void 0:Y.rail)!=null?l:j.Rail)!=null?i:m4,fv=(o=(s=Y==null?void 0:Y.track)!=null?s:j.Track)!=null?o:v4,dv=(u=(c=Y==null?void 0:Y.thumb)!=null?c:j.Thumb)!=null?u:g4,pv=(d=(f=Y==null?void 0:Y.valueLabel)!=null?f:j.ValueLabel)!=null?d:b4,Df=(h=(b=Y==null?void 0:Y.mark)!=null?b:j.Mark)!=null?h:S4,Bf=(S=(x=Y==null?void 0:Y.markLabel)!=null?x:j.MarkLabel)!=null?S:E4,hv=(y=(p=Y==null?void 0:Y.input)!=null?p:j.Input)!=null?y:"input",kf=(v=fe==null?void 0:fe.root)!=null?v:D.root,hT=(E=fe==null?void 0:fe.rail)!=null?E:D.rail,zf=(_=fe==null?void 0:fe.track)!=null?_:D.track,Lf=(O=fe==null?void 0:fe.thumb)!=null?O:D.thumb,Uf=(T=fe==null?void 0:fe.valueLabel)!=null?T:D.valueLabel,yT=(w=fe==null?void 0:fe.mark)!=null?w:D.mark,mT=($=fe==null?void 0:fe.markLabel)!=null?$:D.markLabel,vT=(R=fe==null?void 0:fe.input)!=null?R:D.input,gT=Ar({elementType:Ut,getSlotProps:Ua,externalSlotProps:kf,externalForwardedProps:fl,additionalProps:k({},c4(Ut)&&{as:C}),ownerState:k({},Oe,kf==null?void 0:kf.ownerState),className:[ue.root,Pe]}),bT=Ar({elementType:Ga,externalSlotProps:hT,ownerState:Oe,className:ue.rail}),ST=Ar({elementType:fv,externalSlotProps:zf,additionalProps:{style:k({},cn[Tr].offset(ee),cn[Tr].leap(fn))},ownerState:k({},Oe,zf==null?void 0:zf.ownerState),className:ue.track}),Hf=Ar({elementType:dv,getSlotProps:la,externalSlotProps:Lf,ownerState:k({},Oe,Lf==null?void 0:Lf.ownerState),className:ue.thumb}),ET=Ar({elementType:pv,externalSlotProps:Uf,ownerState:k({},Oe,Uf==null?void 0:Uf.ownerState),className:ue.valueLabel}),qf=Ar({elementType:Df,externalSlotProps:yT,ownerState:Oe,className:ue.mark}),Gf=Ar({elementType:Bf,externalSlotProps:mT,ownerState:Oe,className:ue.markLabel}),xT=Ar({elementType:hv,getSlotProps:Ha,externalSlotProps:vT,ownerState:Oe});return g.jsxs(Ut,k({},gT,{children:[g.jsx(Ga,k({},bT)),g.jsx(fv,k({},ST)),re.filter(ze=>ze.value>=it&&ze.value<=_t).map((ze,et)=>{const Yf=Mu(ze.value,it,_t),cs=cn[Tr].offset(Yf);let Fn;return Ie===!1?Fn=le.indexOf(ze.value)!==-1:Fn=Ie==="normal"&&(B?ze.value>=le[0]&&ze.value<=le[le.length-1]:ze.value<=le[0])||Ie==="inverted"&&(B?ze.value<=le[0]||ze.value>=le[le.length-1]:ze.value>=le[0]),g.jsxs(m.Fragment,{children:[g.jsx(Df,k({"data-index":et},qf,!Vl(Df)&&{markActive:Fn},{style:k({},cs,qf.style),className:Gr(qf.className,Fn&&ue.markActive)})),ze.label!=null?g.jsx(Bf,k({"aria-hidden":!0,"data-index":et},Gf,!Vl(Bf)&&{markLabelActive:Fn},{style:k({},cs,Gf.style),className:Gr(ue.markLabel,Gf.className,Fn&&ue.markLabelActive),children:ze.label})):null]},et)}),le.map((ze,et)=>{const Yf=Mu(ze,it,_t),cs=cn[Tr].offset(Yf),Fn=dt==="off"?O4:pv;return g.jsx(Fn,k({},!Vl(Fn)&&{valueLabelFormat:Tt,valueLabelDisplay:dt,value:typeof Tt=="function"?Tt(lt(ze),et):Tt,index:et,open:dl===et||qa===et||dt==="on",disabled:xe},ET,{children:g.jsx(dv,k({"data-index":et},Hf,{className:Gr(ue.thumb,Hf.className,qa===et&&ue.active,M===et&&ue.focusVisible),style:k({},cs,xn(et),Hf.style),children:g.jsx(hv,k({"data-index":et,"aria-label":V?V(et):U,"aria-valuenow":lt(ze),"aria-labelledby":q,"aria-valuetext":ve?ve(lt(ze),et):X,value:le[et]},xT))}))}),et)})]}))});var Rg=Object.prototype.toString,yx=function(t){var n=Rg.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Rg.call(t.callee)==="[object Function]"),r},ld,Cg;function T4(){if(Cg)return ld;Cg=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=yx,a=Object.prototype.propertyIsEnumerable,i=!a.call({toString:null},"toString"),l=a.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(f){var h=f.constructor;return h&&h.prototype===f},u={$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},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{s(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return s(f);try{return s(f)}catch{return!1}};e=function(h){var b=h!==null&&typeof h=="object",S=n.call(h)==="[object Function]",x=r(h),y=b&&n.call(h)==="[object String]",p=[];if(!b&&!S&&!x)throw new TypeError("Object.keys called on a non-object");var v=l&&S;if(y&&h.length>0&&!t.call(h,0))for(var E=0;E0)for(var _=0;_3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Wa("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Wa("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Wa("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Wa("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,s=!!jg&&jg(t,n);if(Mg)Mg(t,n,{configurable:l===null&&s?s.configurable:!l,enumerable:a===null&&s?s.enumerable:!a,value:r,writable:i===null&&s?s.writable:!i});else if(o||!a&&!i&&!l)t[n]=r;else throw new C4("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Lp=pf,mx=function(){return!!Lp};mx.hasArrayLengthDefineBug=function(){if(!Lp)return null;try{return Lp([],"length",{value:1}).length!==1}catch{return!0}};var Jy=mx,$4=Ky,N4=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",M4=Object.prototype.toString,j4=Array.prototype.concat,Dg=Wy,D4=function(e){return typeof e=="function"&&M4.call(e)==="[object Function]"},vx=Jy(),B4=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!D4(r)||!r())return}vx?Dg(e,t,n,!0):Dg(e,t,n)},gx=function(e,t){var n=arguments.length>2?arguments[2]:{},r=$4(t);N4&&(r=j4.call(r,Object.getOwnPropertySymbols(t)));for(var a=0;a"u"||!Fe?W:Fe(Uint8Array),ya={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?W:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?W:ArrayBuffer,"%ArrayIteratorPrototype%":Ja&&Fe?Fe([][Symbol.iterator]()):W,"%AsyncFromSyncIteratorPrototype%":W,"%AsyncFunction%":ii,"%AsyncGenerator%":ii,"%AsyncGeneratorFunction%":ii,"%AsyncIteratorPrototype%":ii,"%Atomics%":typeof Atomics>"u"?W:Atomics,"%BigInt%":typeof BigInt>"u"?W:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?W:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?W:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?W:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":pM,"%eval%":eval,"%EvalError%":hM,"%Float32Array%":typeof Float32Array>"u"?W:Float32Array,"%Float64Array%":typeof Float64Array>"u"?W:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?W:FinalizationRegistry,"%Function%":Ax,"%GeneratorFunction%":ii,"%Int8Array%":typeof Int8Array>"u"?W:Int8Array,"%Int16Array%":typeof Int16Array>"u"?W:Int16Array,"%Int32Array%":typeof Int32Array>"u"?W:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ja&&Fe?Fe(Fe([][Symbol.iterator]())):W,"%JSON%":typeof JSON=="object"?JSON:W,"%Map%":typeof Map>"u"?W:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ja||!Fe?W:Fe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":dM,"%Object.getOwnPropertyDescriptor%":bo,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?W:Promise,"%Proxy%":typeof Proxy>"u"?W:Proxy,"%RangeError%":yM,"%ReferenceError%":mM,"%Reflect%":typeof Reflect>"u"?W:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?W:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ja||!Fe?W:Fe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?W:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ja&&Fe?Fe(""[Symbol.iterator]()):W,"%Symbol%":Ja?Symbol:W,"%SyntaxError%":Ui,"%ThrowTypeError%":wM,"%TypedArray%":CM,"%TypeError%":_i,"%Uint8Array%":typeof Uint8Array>"u"?W:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?W:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?W:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?W:Uint32Array,"%URIError%":vM,"%WeakMap%":typeof WeakMap>"u"?W:WeakMap,"%WeakRef%":typeof WeakRef>"u"?W:WeakRef,"%WeakSet%":typeof WeakSet>"u"?W:WeakSet,"%Function.prototype.call%":Ko,"%Function.prototype.apply%":Rx,"%Object.defineProperty%":TM,"%Object.getPrototypeOf%":AM,"%Math.abs%":gM,"%Math.floor%":bM,"%Math.max%":SM,"%Math.min%":EM,"%Math.pow%":xM,"%Math.round%":OM,"%Math.sign%":_M,"%Reflect.getPrototypeOf%":RM};if(Fe)try{null.error}catch(e){var $M=Fe(Fe(e));ya["%Error.prototype%"]=$M}var NM=function e(t){var n;if(t==="%AsyncFunction%")n=dd("async function () {}");else if(t==="%GeneratorFunction%")n=dd("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=dd("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Fe&&(n=Fe(a.prototype))}return ya[t]=n,n},Xg={__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"]},Zo=Qo(),ju=am,MM=Zo.call(Ko,Array.prototype.concat),jM=Zo.call(Rx,Array.prototype.splice),Pg=Zo.call(Ko,String.prototype.replace),Du=Zo.call(Ko,String.prototype.slice),DM=Zo.call(Ko,RegExp.prototype.exec),BM=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kM=/\\(\\)?/g,zM=function(t){var n=Du(t,0,1),r=Du(t,-1);if(n==="%"&&r!=="%")throw new Ui("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Ui("invalid intrinsic syntax, expected opening `%`");var a=[];return Pg(t,BM,function(i,l,o,s){a[a.length]=o?Pg(s,kM,"$1"):l||i}),a},LM=function(t,n){var r=t,a;if(ju(Xg,r)&&(a=Xg[r],r="%"+a[0]+"%"),ju(ya,r)){var i=ya[r];if(i===ii&&(i=NM(r)),typeof i>"u"&&!n)throw new _i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:i}}throw new Ui("intrinsic "+t+" does not exist!")},Or=function(t,n){if(typeof t!="string"||t.length===0)throw new _i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new _i('"allowMissing" argument must be a boolean');if(DM(/^%?[^%]*%?$/,t)===null)throw new Ui("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=zM(t),a=r.length>0?r[0]:"",i=LM("%"+a+"%",n),l=i.name,o=i.value,s=!1,u=i.alias;u&&(a=u[0],jM(r,MM([0,1],u)));for(var c=1,d=!0;c=r.length){var S=bo(o,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?o=S.get:o=o[f]}else d=ju(o,f),o=o[f];d&&!s&&(ya[l]=o)}}return o},UM=Or,Fg=Wy,HM=Jy(),Qg=$a,Kg=un,qM=UM("%Math.floor%"),GM=function(t,n){if(typeof t!="function")throw new Kg("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||qM(n)!==n)throw new Kg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,i=!0;if("length"in t&&Qg){var l=Qg(t,"length");l&&!l.configurable&&(a=!1),l&&!l.writable&&(i=!1)}return(a||i||!r)&&(HM?Fg(t,"length",n,!0,!0):Fg(t,"length",n)),t},YM=Qo(),VM=nm(),XM=Ox,PM=function(){return XM(YM,VM,arguments)};(function(e){var t=GM,n=pf,r=rm,a=PM;e.exports=function(l){var o=r(arguments),s=l.length-(arguments.length-1);return t(o,1+(s>0?s:0),!0)},n?n(e.exports,"apply",{value:a}):e.exports.apply=a})(bx);var al=bx.exports,Cx=Or,$x=rm,FM=$x([Cx("%String.prototype.indexOf%")]),ft=function(t,n){var r=Cx(t,!!n);return typeof r=="function"&&FM(t,".prototype.")>-1?$x([r]):r},QM=Ky,Nx=hf(),Mx=ft,ru=Iy,KM=Mx("Array.prototype.push"),Zg=Mx("Object.prototype.propertyIsEnumerable"),ZM=Nx?ru.getOwnPropertySymbols:null,jx=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=ru(t);if(arguments.length===1)return r;for(var a=1;a-1?Lx(r):r},So=function(){return typeof(function(){}).name=="string"},Xl=Object.getOwnPropertyDescriptor;if(Xl)try{Xl([],"length")}catch{Xl=null}So.functionsHaveConfigurableNames=function(){if(!So()||!Xl)return!1;var t=Xl(function(){},"name");return!!t&&!!t.configurable};var u6=Function.prototype.bind;So.boundFunctionsHaveNames=function(){return So()&&typeof u6=="function"&&(function(){}).bind().name!==""};var c6=So,Wg=Wy,f6=Jy(),d6=c6.functionsHaveConfigurableNames(),p6=un,h6=function(t,n){if(typeof t!="function")throw new p6("`fn` is not a function");var r=arguments.length>2&&!!arguments[2];return(!r||d6)&&(f6?Wg(t,"name",n,!0,!0):Wg(t,"name",n)),t},y6=h6,m6=un,v6=Object,Hx=y6(function(){if(this==null||this!==v6(this))throw new m6("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),g6=Hx,b6=Na.supportsDescriptors,S6=Object.getOwnPropertyDescriptor,qx=function(){if(b6&&/a/mig.flags==="gim"){var t=S6(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),t.get.call(r),n==="dy")return t.get}}return g6},E6=Na.supportsDescriptors,x6=qx,O6=$a,_6=Object.defineProperty,T6=Sx,Jg=wx,w6=/a/,A6=function(){if(!E6||!Jg)throw new T6("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=x6(),n=Jg(w6),r=O6(n,"flags");return(!r||r.get!==t)&&_6(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},R6=Na,C6=al,$6=Hx,Gx=qx,N6=A6,Yx=C6(Gx());R6(Yx,{getPolyfill:Gx,implementation:$6,shim:N6});var M6=Yx,au={exports:{}},j6=hf,Ma=function(){return j6()&&!!Symbol.toStringTag},D6=Ma(),B6=ft,Up=B6("Object.prototype.toString"),yf=function(t){return D6&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Up(t)==="[object Arguments]"},Vx=function(t){return yf(t)?!0:t!==null&&typeof t=="object"&&"length"in t&&typeof t.length=="number"&&t.length>=0&&Up(t)!=="[object Array]"&&"callee"in t&&Up(t.callee)==="[object Function]"},k6=function(){return yf(arguments)}();yf.isLegacyArguments=Vx;var Xx=k6?yf:Vx;const z6={},L6=Object.freeze(Object.defineProperty({__proto__:null,default:z6},Symbol.toStringTag,{value:"Module"})),U6=Er(L6);var im=typeof Map=="function"&&Map.prototype,yd=Object.getOwnPropertyDescriptor&&im?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Bu=im&&yd&&typeof yd.get=="function"?yd.get:null,Ig=im&&Map.prototype.forEach,lm=typeof Set=="function"&&Set.prototype,md=Object.getOwnPropertyDescriptor&&lm?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ku=lm&&md&&typeof md.get=="function"?md.get:null,e0=lm&&Set.prototype.forEach,H6=typeof WeakMap=="function"&&WeakMap.prototype,Pl=H6?WeakMap.prototype.has:null,q6=typeof WeakSet=="function"&&WeakSet.prototype,Fl=q6?WeakSet.prototype.has:null,G6=typeof WeakRef=="function"&&WeakRef.prototype,t0=G6?WeakRef.prototype.deref:null,Y6=Boolean.prototype.valueOf,V6=Object.prototype.toString,X6=Function.prototype.toString,P6=String.prototype.match,om=String.prototype.slice,Lr=String.prototype.replace,F6=String.prototype.toUpperCase,n0=String.prototype.toLowerCase,Px=RegExp.prototype.test,r0=Array.prototype.concat,wn=Array.prototype.join,Q6=Array.prototype.slice,a0=Math.floor,Hp=typeof BigInt=="function"?BigInt.prototype.valueOf:null,vd=Object.getOwnPropertySymbols,qp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Hi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ct=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Hi||!0)?Symbol.toStringTag:null,Fx=Object.prototype.propertyIsEnumerable,i0=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function l0(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Px.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-a0(-e):a0(e);if(r!==e){var a=String(r),i=om.call(t,a.length+1);return Lr.call(a,n,"$&_")+"."+Lr.call(Lr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Lr.call(t,n,"$&_")}var Gp=U6,o0=Gp.custom,s0=Zx(o0)?o0:null,Qx={__proto__:null,double:'"',single:"'"},K6={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},mf=function e(t,n,r,a){var i=n||{};if(In(i,"quoteStyle")&&!In(Qx,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(In(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=In(i,"customInspect")?i.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(In(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(In(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Jx(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return o?l0(t,s):s}if(typeof t=="bigint"){var u=String(t)+"n";return o?l0(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yp(t)?"[Array]":"[Object]";var d=pj(i,r);if(typeof a>"u")a=[];else if(Wx(a,t)>=0)return"[Circular]";function f(U,X,q){if(X&&(a=Q6.call(a),a.push(X)),q){var C={depth:i.depth};return In(i,"quoteStyle")&&(C.quoteStyle=i.quoteStyle),e(U,C,r+1,a)}return e(U,i,r+1,a)}if(typeof t=="function"&&!u0(t)){var h=aj(t),b=Os(t,f);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(b.length>0?" { "+wn.call(b,", ")+" }":"")}if(Zx(t)){var S=Hi?Lr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qp.call(t);return typeof t=="object"&&!Hi?gl(S):S}if(cj(t)){for(var x="<"+n0.call(String(t.nodeName)),y=t.attributes||[],p=0;p",x}if(Yp(t)){if(t.length===0)return"[]";var v=Os(t,f);return d&&!dj(v)?"["+Vp(v,d)+"]":"[ "+wn.call(v,", ")+" ]"}if(J6(t)){var E=Os(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!Fx.call(t,"cause")?"{ ["+String(t)+"] "+wn.call(r0.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+wn.call(E,", ")+" }"}if(typeof t=="object"&&l){if(s0&&typeof t[s0]=="function"&&Gp)return Gp(t,{depth:c-r});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(ij(t)){var _=[];return Ig&&Ig.call(t,function(U,X){_.push(f(X,t,!0)+" => "+f(U,t))}),c0("Map",Bu.call(t),_,d)}if(sj(t)){var O=[];return e0&&e0.call(t,function(U){O.push(f(U,t))}),c0("Set",ku.call(t),O,d)}if(lj(t))return gd("WeakMap");if(uj(t))return gd("WeakSet");if(oj(t))return gd("WeakRef");if(ej(t))return gl(f(Number(t)));if(nj(t))return gl(f(Hp.call(t)));if(tj(t))return gl(Y6.call(t));if(I6(t))return gl(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof xu<"u"&&t===xu)return"{ [object globalThis] }";if(!W6(t)&&!u0(t)){var T=Os(t,f),w=i0?i0(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",R=!w&&ct&&Object(t)===t&&ct in t?om.call(ra(t),8,-1):$?"Object":"",N=w||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",G=N+(R||$?"["+wn.call(r0.call([],R||[],$||[]),": ")+"] ":"");return T.length===0?G+"{}":d?G+"{"+Vp(T,d)+"}":G+"{ "+wn.call(T,", ")+" }"}return String(t)};function Kx(e,t,n){var r=n.quoteStyle||t,a=Qx[r];return a+e+a}function Z6(e){return Lr.call(String(e),/"/g,""")}function Yp(e){return ra(e)==="[object Array]"&&(!ct||!(typeof e=="object"&&ct in e))}function W6(e){return ra(e)==="[object Date]"&&(!ct||!(typeof e=="object"&&ct in e))}function u0(e){return ra(e)==="[object RegExp]"&&(!ct||!(typeof e=="object"&&ct in e))}function J6(e){return ra(e)==="[object Error]"&&(!ct||!(typeof e=="object"&&ct in e))}function I6(e){return ra(e)==="[object String]"&&(!ct||!(typeof e=="object"&&ct in e))}function ej(e){return ra(e)==="[object Number]"&&(!ct||!(typeof e=="object"&&ct in e))}function tj(e){return ra(e)==="[object Boolean]"&&(!ct||!(typeof e=="object"&&ct in e))}function Zx(e){if(Hi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qp)return!1;try{return qp.call(e),!0}catch{}return!1}function nj(e){if(!e||typeof e!="object"||!Hp)return!1;try{return Hp.call(e),!0}catch{}return!1}var rj=Object.prototype.hasOwnProperty||function(e){return e in this};function In(e,t){return rj.call(e,t)}function ra(e){return V6.call(e)}function aj(e){if(e.name)return e.name;var t=P6.call(X6.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Wx(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Jx(om.call(e,0,t.maxStringLength),t)+r}var a=K6[t.quoteStyle||"single"];a.lastIndex=0;var i=Lr.call(Lr.call(e,a,"\\$1"),/[\x00-\x1f]/g,fj);return Kx(i,"single",t)}function fj(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+F6.call(t.toString(16))}function gl(e){return"Object("+e+")"}function gd(e){return e+" { ? }"}function c0(e,t,n,r){var a=r?Vp(n,r):wn.call(n,", ");return e+" ("+t+") {"+a+"}"}function dj(e){for(var t=0;t=0)return!1;return!0}function pj(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=wn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:wn.call(Array(t+1),n)}}function Vp(e,t){if(e.length===0)return"";var n=` `+t.prev+t.base;return n+wn.call(e,","+n)+` -`+t.prev}function Os(e,t){var n=Yp(e),r=[];if(n){r.length=e.length;for(var a=0;a=r)return n+1;var a=b0(t,n);if(a<55296||a>56319)return n+1;var i=b0(t,n+1);return i<56320||i>57343?n+1:n+2},Sd=function(t){var n=0;return{next:function(){var a=n>=t.length,i;return a||(i=t[n],n+=1),{done:a,value:i}}}},S0=function(t,n){if(Ij(t)||y0(t))return Sd(t);if(eD(t)){var r=0;return{next:function(){var i=aD(t,r),l=rD(t,r,i);return r=i,{done:i>t.length,value:l}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!tD&&!nD)au.exports=function(t){if(t!=null)return S0(t,!0)};else{var iD=iO,lD=oO,E0=dn("Map.prototype.forEach",!0),x0=dn("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var O0=dn("Map.prototype.iterator",!0),_0=dn("Set.prototype.iterator",!0);var T0=dn("Map.prototype.@@iterator",!0)||dn("Map.prototype._es6-shim iterator_",!0),w0=dn("Set.prototype.@@iterator",!0)||dn("Set.prototype._es6-shim iterator_",!0),oD=function(t){if(iD(t)){if(O0)return m0(O0(t));if(T0)return T0(t);if(E0){var n=[];return E0(t,function(a,i){g0(n,[i,a])}),Sd(n)}}if(lD(t)){if(_0)return m0(_0(t));if(w0)return w0(t);if(x0){var r=[];return x0(t,function(a){g0(r,a)}),Sd(r)}}};au.exports=function(t){return oD(t)||S0(t)}}}var sD=au.exports,A0=function(e){return e!==e},sO=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||A0(t)&&A0(n))},uD=sO,uO=function(){return typeof Object.is=="function"?Object.is:uD},cD=uO,fD=Na,dD=function(){var t=cD();return fD(Object,{is:t},{is:function(){return Object.is!==t}}),t},pD=Na,hD=al,yD=sO,cO=uO,mD=dD,fO=hD(cO(),Object);pD(fO,{getPolyfill:cO,implementation:yD,shim:mD});var vD=fO,gD=al,dO=ft,bD=Or,Xp=bD("%ArrayBuffer%",!0),iu=dO("ArrayBuffer.prototype.byteLength",!0),SD=dO("Object.prototype.toString"),R0=!!Xp&&!iu&&new Xp(0).slice,C0=!!R0&&gD(R0),pO=iu||C0?function(t){if(!t||typeof t!="object")return!1;try{return iu?iu(t):C0(t,0),!0}catch{return!1}}:Xp?function(t){return SD(t)==="[object ArrayBuffer]"}:function(t){return!1},hO=ft,ED=hO("Date.prototype.getDay"),xD=function(t){try{return ED(t),!0}catch{return!1}},OD=hO("Object.prototype.toString"),_D="[object Date]",TD=Ma(),wD=function(t){return typeof t!="object"||t===null?!1:TD?xD(t):OD(t)===_D},$0=ft,AD=Ma(),RD=am,CD=$a,Pp;if(AD){var $D=$0("RegExp.prototype.exec"),N0={},Ed=function(){throw N0},M0={toString:Ed,valueOf:Ed};typeof Symbol.toPrimitive=="symbol"&&(M0[Symbol.toPrimitive]=Ed),Pp=function(t){if(!t||typeof t!="object")return!1;var n=CD(t,"lastIndex"),r=n&&RD(n,"value");if(!r)return!1;try{$D(t,M0)}catch(a){return a===N0}}}else{var ND=$0("Object.prototype.toString"),MD="[object RegExp]";Pp=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:ND(t)===MD}}var yO=Pp,jD=ft,j0=jD("SharedArrayBuffer.prototype.byteLength",!0),DD=j0?function(t){if(!t||typeof t!="object")return!1;try{return j0(t),!0}catch{return!1}}:function(t){return!1},mO=ft,BD=mO("Number.prototype.toString"),kD=function(t){try{return BD(t),!0}catch{return!1}},zD=mO("Object.prototype.toString"),LD="[object Number]",UD=Ma(),HD=function(t){return typeof t=="number"?!0:!t||typeof t!="object"?!1:UD?kD(t):zD(t)===LD},vO=ft,qD=vO("Boolean.prototype.toString"),GD=vO("Object.prototype.toString"),YD=function(t){try{return qD(t),!0}catch{return!1}},VD="[object Boolean]",XD=Ma(),PD=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:XD&&Symbol.toStringTag in t?YD(t):GD(t)===VD},Fp={exports:{}},xd,D0;function FD(){if(D0)return xd;D0=1;var e=ft,t=yO,n=e("RegExp.prototype.exec"),r=un;return xd=function(i){if(!t(i))throw new r("`regex` must be a RegExp");return function(o){return n(i,o)!==null}},xd}var gO=ft,QD=gO("Object.prototype.toString"),KD=em(),ZD=FD();if(KD){var WD=gO("Symbol.prototype.toString"),JD=ZD(/^Symbol\(.*\)$/),ID=function(t){return typeof t.valueOf()!="symbol"?!1:JD(WD(t))};Fp.exports=function(t){if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||QD(t)!=="[object Symbol]")return!1;try{return ID(t)}catch{return!1}}}else Fp.exports=function(t){return!1};var eB=Fp.exports,Qp={exports:{}},B0=typeof BigInt<"u"&&BigInt,tB=function(){return typeof B0=="function"&&typeof BigInt=="function"&&typeof B0(42)=="bigint"&&typeof BigInt(42)=="bigint"},nB=tB();if(nB){var rB=BigInt.prototype.valueOf,aB=function(t){try{return rB.call(t),!0}catch{}return!1};Qp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:aB(t)}}else Qp.exports=function(t){return!1};var iB=Qp.exports,lB=rO,oB=HD,sB=PD,uB=eB,cB=iB,fB=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(lB(t))return"String";if(oB(t))return"Number";if(sB(t))return"Boolean";if(uB(t))return"Symbol";if(cB(t))return"BigInt"},Uu=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,k0=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Hu;Uu||(Hu=function(t){return!1});var Kp=Uu?Uu.prototype.has:null,Od=k0?k0.prototype.has:null;!Hu&&!Kp&&(Hu=function(t){return!1});var dB=Hu||function(t){if(!t||typeof t!="object")return!1;try{if(Kp.call(t,Kp),Od)try{Od.call(t,Od)}catch{return!0}return t instanceof Uu}catch{}return!1},Zp={exports:{}},pB=Or,bO=ft,hB=pB("%WeakSet%",!0),_d=bO("WeakSet.prototype.has",!0);if(_d){var Td=bO("WeakMap.prototype.has",!0);Zp.exports=function(t){if(!t||typeof t!="object")return!1;try{if(_d(t,_d),Td)try{Td(t,Td)}catch{return!0}return t instanceof hB}catch{}return!1}}else Zp.exports=function(t){return!1};var yB=Zp.exports,mB=iO,vB=oO,gB=dB,bB=yB,SB=function(t){if(t&&typeof t=="object"){if(mB(t))return"Map";if(vB(t))return"Set";if(gB(t))return"WeakMap";if(bB(t))return"WeakSet"}return!1},SO=Function.prototype.toString,ui=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Wp,lu;if(typeof ui=="function"&&typeof Object.defineProperty=="function")try{Wp=Object.defineProperty({},"length",{get:function(){throw lu}}),lu={},ui(function(){throw 42},null,Wp)}catch(e){e!==lu&&(ui=null)}else ui=null;var EB=/^\s*class\b/,Jp=function(t){try{var n=SO.call(t);return EB.test(n)}catch{return!1}},wd=function(t){try{return Jp(t)?!1:(SO.call(t),!0)}catch{return!1}},ou=Object.prototype.toString,xB="[object Object]",OB="[object Function]",_B="[object GeneratorFunction]",TB="[object HTMLAllCollection]",wB="[object HTML document.all class]",AB="[object HTMLCollection]",RB=typeof Symbol=="function"&&!!Symbol.toStringTag,CB=!(0 in[,]),Ip=function(){return!1};if(typeof document=="object"){var $B=document.all;ou.call($B)===ou.call(document.all)&&(Ip=function(t){if((CB||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=ou.call(t);return(n===TB||n===wB||n===AB||n===xB)&&t("")==null}catch{}return!1})}var NB=ui?function(t){if(Ip(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ui(t,null,Wp)}catch(n){if(n!==lu)return!1}return!Jp(t)&&wd(t)}:function(t){if(Ip(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(RB)return wd(t);if(Jp(t))return!1;var n=ou.call(t);return n!==OB&&n!==_B&&!/^\[object HTML/.test(n)?!1:wd(t)},MB=NB,jB=Object.prototype.toString,EO=Object.prototype.hasOwnProperty,DB=function(t,n,r){for(var a=0,i=t.length;a=3&&(a=r),jB.call(t)==="[object Array]"?DB(t,n,a):typeof t=="string"?BB(t,n,a):kB(t,n,a)},LB=zB,UB=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Ad=UB,HB=typeof globalThis>"u"?xu:globalThis,qB=function(){for(var t=[],n=0;n"u"?xu:globalThis,eh=GB(),dm=fm("String.prototype.slice"),Rd=Object.getPrototypeOf,VB=fm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:PB(t)}return su?XB(t):null},QB=ft,U0=QB("ArrayBuffer.prototype.byteLength",!0),KB=pO,ZB=function(t){return KB(t)?U0?U0(t):t.byteLength:NaN},OO=i6,qn=Ux,H0=$6,WB=Or,qi=sD,JB=eO,q0=vD,G0=Xx,Y0=tO,V0=pO,X0=wD,P0=yO,F0=DD,Q0=Ky,K0=fB,Z0=SB,W0=FB,J0=ZB,I0=qn("SharedArrayBuffer.prototype.byteLength",!0),eb=qn("Date.prototype.getTime"),Cd=Object.getPrototypeOf,tb=qn("Object.prototype.toString"),Yu=WB("%Set%",!0),th=qn("Map.prototype.has",!0),Vu=qn("Map.prototype.get",!0),nb=qn("Map.prototype.size",!0),Xu=qn("Set.prototype.add",!0),_O=qn("Set.prototype.delete",!0),Pu=qn("Set.prototype.has",!0),uu=qn("Set.prototype.size",!0);function rb(e,t,n,r){for(var a=qi(e),i;(i=a.next())&&!i.done;)if(vn(t,i.value,n,r))return _O(e,i.value),!0;return!1}function TO(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function IB(e,t,n,r,a,i){var l=TO(n);if(l!=null)return l;var o=Vu(t,l),s=OO({},a,{strict:!1});return typeof o>"u"&&!th(t,l)||!vn(r,o,s,i)?!1:!th(e,l)&&vn(r,o,s,i)}function e8(e,t,n){var r=TO(n);return r??(Pu(t,r)&&!Pu(e,r))}function ab(e,t,n,r,a,i){for(var l=qi(e),o,s;(o=l.next())&&!o.done;)if(s=o.value,vn(n,s,a,i)&&vn(r,Vu(t,s),a,i))return _O(e,s),!0;return!1}function vn(e,t,n,r){var a=n||{};if(a.strict?q0(e,t):e===t)return!0;var i=K0(e),l=K0(t);if(i!==l)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return a.strict?q0(e,t):e==t;var o=r.has(e),s=r.has(t),u;if(o&&s){if(r.get(e)===r.get(t))return!0}else u={};return o||r.set(e,u),s||r.set(t,u),r8(e,t,a,r)}function ib(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function t8(e,t,n,r){if(uu(e)!==uu(t))return!1;for(var a=qi(e),i=qi(t),l,o,s;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object")s||(s=new Yu),Xu(s,l.value);else if(!Pu(t,l.value)){if(n.strict||!e8(e,t,l.value))return!1;s||(s=new Yu),Xu(s,l.value)}if(s){for(;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object"){if(!rb(s,o.value,n.strict,r))return!1}else if(!n.strict&&!Pu(e,o.value)&&!rb(s,o.value,n.strict,r))return!1;return uu(s)===0}return!0}function n8(e,t,n,r){if(nb(e)!==nb(t))return!1;for(var a=qi(e),i=qi(t),l,o,s,u,c,d;(l=a.next())&&!l.done;)if(u=l.value[0],c=l.value[1],u&&typeof u=="object")s||(s=new Yu),Xu(s,u);else if(d=Vu(t,u),typeof d>"u"&&!th(t,u)||!vn(c,d,n,r)){if(n.strict||!IB(e,t,u,c,n,r))return!1;s||(s=new Yu),Xu(s,u)}if(s){for(;(o=i.next())&&!o.done;)if(u=o.value[0],d=o.value[1],u&&typeof u=="object"){if(!ab(s,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!vn(Vu(e,u),d,n,r))&&!ab(s,e,u,d,OO({},n,{strict:!1}),r))return!1;return uu(s)===0}return!0}function r8(e,t,n,r){var a,i;if(typeof e!=typeof t||e==null||t==null||tb(e)!==tb(t)||G0(e)!==G0(t))return!1;var l=Y0(e),o=Y0(t);if(l!==o)return!1;var s=e instanceof Error,u=t instanceof Error;if(s!==u||(s||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=P0(e),d=P0(t);if(c!==d||(c||d)&&(e.source!==t.source||H0(e)!==H0(t)))return!1;var f=X0(e),h=X0(t);if(f!==h||(f||h)&&eb(e)!==eb(t)||n.strict&&Cd&&Cd(e)!==Cd(t))return!1;var b=W0(e),S=W0(t);if(b!==S)return!1;if(b||S){if(e.length!==t.length)return!1;for(a=0;a=0;a--)if(O[a]!=T[a])return!1;for(a=O.length-1;a>=0;a--)if(i=O[a],!vn(e[i],t[i],n,r))return!1;var w=Z0(e),$=Z0(t);return w!==$?!1:w==="Set"||$==="Set"?t8(e,t,n,r):w==="Map"?n8(e,t,n,r):!0}var a8=function(t,n,r){return vn(t,n,r,JB())};const i8=Ra(a8),pm=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!i8(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ts=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},wO=ne.memo(e=>{Hn();const[t,n]=y.useState(!1),{fullAccessPath:r,value:a,min:i,max:l,stepSize:o,docString:s,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:h}=e;y.useEffect(()=>{c(`${r} changed to ${a.value}.`)},[e.value.value]),y.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),y.useEffect(()=>{c(`${r}.max changed to ${l.value}.`)},[e.max.value,e.max.type]),y.useEffect(()=>{c(`${r}.stepSize changed to ${o.value}.`)},[e.stepSize.value,e.stepSize.type]);const b=($,R)=>{Array.isArray(R)&&(R=R[0]);let M;a.type==="Quantity"?M={type:"Quantity",value:{magnitude:R,unit:a.value.unit},full_access_path:`${r}.value`,readonly:a.readonly,doc:s}:M={type:a.type,value:R,full_access_path:`${r}.value`,readonly:a.readonly,doc:s},d(M)},S=($,R,M)=>{let G;M.type==="Quantity"?G={type:M.type,value:{magnitude:$,unit:M.value.unit},full_access_path:`${r}.${R}`,readonly:M.readonly,doc:null}:G={type:M.type,value:$,full_access_path:`${r}.${R}`,readonly:M.readonly,doc:null},d(G)},[x,m,p]=Ts(a),[v,E]=Ts(i),[_,O]=Ts(l),[T,w]=Ts(o);return g.jsxs("div",{className:"component sliderComponent",id:h,children:[!1,g.jsxs(Au,{children:[g.jsx(On,{xs:"auto",xl:"auto",children:g.jsxs(dr.Text,{children:[f,g.jsx(Sn,{docString:s})]})}),g.jsx(On,{xs:"5",xl:!0,children:g.jsx(x4,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:m,value:x,onChange:($,R)=>b($,R),min:v,max:_,step:T,marks:[{value:v,label:`${v}`},{value:_,label:`${_}`}]})}),g.jsx(On,{xs:"3",xl:!0,children:g.jsx(Ru,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:s,readOnly:m,type:a.type,value:x,unit:p,addNotification:()=>{},changeCallback:d,id:h+"-value"})}),g.jsx(On,{xs:"auto",children:g.jsx(Ey,{id:`button-${h}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[g.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"}),g.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"})]})})})]}),g.jsx(Tc,{in:t,children:g.jsx(pt.Group,{children:g.jsxs(Au,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[g.jsxs(On,{xs:"auto",children:[g.jsx(pt.Label,{children:"Min Value"}),g.jsx(pt.Control,{type:"number",value:v,disabled:E,onChange:$=>S(Number($.target.value),"min",i)})]}),g.jsxs(On,{xs:"auto",children:[g.jsx(pt.Label,{children:"Max Value"}),g.jsx(pt.Control,{type:"number",value:_,disabled:O,onChange:$=>S(Number($.target.value),"max",l)})]}),g.jsxs(On,{xs:"auto",children:[g.jsx(pt.Label,{children:"Step Size"}),g.jsx(pt.Control,{type:"number",value:T,disabled:w,onChange:$=>S(Number($.target.value),"step_size",o)})]})]})})})]})},pm);wO.displayName="SliderComponent";const AO=ne.memo(e=>{const{addNotification:t,displayName:n,id:r,value:a,full_access_path:i,enum:l,doc:o,readonly:s,changeCallback:u}=e;return Hn(),y.useEffect(()=>{t(`${i} changed to ${a}.`)},[a]),g.jsxs("div",{className:"component enumComponent",id:r,children:[!1,g.jsx(Au,{children:g.jsxs(On,{className:"d-flex align-items-center",children:[g.jsxs(dr.Text,{children:[n,g.jsx(Sn,{docString:o})]}),s?g.jsx(pt.Control,{style:e.type=="ColouredEnum"?{backgroundColor:l[a]}:{},value:e.type=="ColouredEnum"?a:l[a],name:i,disabled:!0}):g.jsx(pt.Select,{"aria-label":"example-select",value:a,name:i,style:e.type=="ColouredEnum"?{backgroundColor:l[a]}:{},onChange:c=>u({type:e.type,name:e.name,enum:l,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(l).map(([c,d])=>g.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},pm);AO.displayName="EnumComponent";const hm=ne.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:a,id:i}=e;if(!e.render)return null;Hn();const l=y.useRef(null),o=()=>{const u=`Method ${t} was triggered.`;r(u)},s=async u=>{u.preventDefault(),xE(t),o()};return g.jsxs("div",{className:"component methodComponent",id:i,children:[!1,g.jsx(pt,{onSubmit:s,ref:l,children:g.jsxs(Lo,{className:"component",variant:"primary",type:"submit",children:[`${a} `,g.jsx(Sn,{docString:n})]})})]})},pm);hm.displayName="MethodComponent";const RO=ne.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:a,addNotification:i,changeCallback:l=()=>{},displayName:o,id:s}=e;Hn();const[u,c]=y.useState(e.value);y.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=b=>{c(b.target.value),a&&l({type:"str",value:b.target.value,full_access_path:t,readonly:n,doc:r})},f=b=>{b.key==="Enter"&&!a&&(l({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),b.preventDefault())},h=()=>{a||l({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return g.jsxs("div",{className:"component stringComponent",id:s,children:[!1,g.jsxs(dr,{children:[g.jsxs(dr.Text,{children:[o,g.jsx(Sn,{docString:r})]}),g.jsx(pt.Control,{type:"text",name:s,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:h,className:a&&!n?"instantUpdate":""})]})]})});RO.displayName="StringComponent";function ym(e){const t=y.useContext(Ay),n=a=>{var i;return((i=t[a])==null?void 0:i.displayOrder)??Number.MAX_SAFE_INTEGER};let r;return Array.isArray(e)?r=[...e].sort((a,i)=>n(a.full_access_path)-n(i.full_access_path)):r=Object.values(e).sort((a,i)=>n(a.full_access_path)-n(i.full_access_path)),r}const CO=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:a}=e,i=ym(e.value);return Hn(),g.jsxs("div",{className:"listComponent",id:a,children:[!1,g.jsx(Sn,{docString:t}),i.map(l=>g.jsx(Gi,{attribute:l,isInstantUpdate:n,addNotification:r},l.full_access_path))]})});CO.displayName="ListComponent";var l8=["color","size","title","className"];function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const a=localStorage.getItem(e);return a?JSON.parse(a):t});return y.useEffect(()=>{n!==void 0&&localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}const gm=ne.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:a})=>{const[i,l]=ah(`dataServiceComponent-${a}-open`,!0),o=ym(e);return r!==""?g.jsx("div",{className:"component dataServiceComponent",id:a,children:g.jsxs(Ei,{children:[g.jsxs(Ei.Header,{onClick:()=>l(!i),style:{cursor:"pointer"},children:[r," ",i?g.jsx(mm,{}):g.jsx(vm,{})]}),g.jsx(Tc,{in:i,children:g.jsx(Ei.Body,{children:o.map(s=>g.jsx(Gi,{attribute:s,isInstantUpdate:t,addNotification:n},s.full_access_path))})})]})}):g.jsx("div",{className:"component dataServiceComponent",id:a,children:o.map(s=>g.jsx(Gi,{attribute:s,isInstantUpdate:t,addNotification:n},s.full_access_path))})});gm.displayName="DataServiceComponent";const $O=ne.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:a,id:i})=>{const{connected:l,connect:o,...s}=t,u=l.value;return g.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&g.jsxs("div",{className:"overlayContent",children:[g.jsxs("div",{children:[a!=""?a:"Device"," is currently not available!"]}),g.jsx(hm,{fullAccessPath:`${e}.connect`,docString:o.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),g.jsx(gm,{props:s,isInstantUpdate:n,addNotification:r,displayName:a,id:i})]})});$O.displayName="DeviceConnectionComponent";const NO=ne.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:a,addNotification:i,displayName:l,id:o}=e;Hn();const[s,u]=y.useState(!0);return y.useEffect(()=>{i(`${t} changed.`)},[e.value]),g.jsx("div",{className:"component imageComponent",id:o,children:g.jsxs(Ei,{children:[g.jsxs(Ei.Header,{onClick:()=>u(!s),style:{cursor:"pointer"},children:[l,g.jsx(Sn,{docString:r}),s?g.jsx(mm,{}):g.jsx(vm,{})]}),g.jsx(Tc,{in:s,children:g.jsxs(Ei.Body,{children:[!1,a===""&&n===""?g.jsx("p",{children:"No image set in the backend."}):g.jsx(ES,{src:`data:image/${a.toLowerCase()};base64,${n}`})]})})]})})});NO.displayName="ImageComponent";function d8(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const MO=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:a}=e,i=ym(e.value);return Hn(),g.jsxs("div",{className:"listComponent",id:a,children:[!1,g.jsx(Sn,{docString:t}),i.map(l=>g.jsx(Gi,{attribute:l,isInstantUpdate:n,addNotification:r},l.full_access_path))]})});MO.displayName="DictComponent";const jO=ne.memo(e=>{const{fullAccessPath:t,docString:n,status:r,addNotification:a,displayName:i,id:l}=e;Hn();const o=y.useRef(null),[s,u]=y.useState(!1);y.useEffect(()=>{let d;r==="RUNNING"?d=`${t} was started.`:d=`${t} was stopped.`,a(d),u(!1)},[r]);const c=async d=>{d.preventDefault();const f=r=="RUNNING"?"stop":"start",h=[t,f].filter(b=>b).join(".");u(!0),xE(h)};return g.jsxs("div",{className:"component taskComponent",id:l,children:[!1,g.jsx(pt,{onSubmit:c,ref:o,children:g.jsxs(dr,{children:[g.jsxs(dr.Text,{children:[i,g.jsx(Sn,{docString:n})]}),g.jsx(Lo,{id:`button-${l}`,type:"submit",children:s?g.jsx(IS,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});jO.displayName="TaskComponent";const p8=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},h8=e=>{const t=[],n=_E(e);for(let r=n.length-1;r>=0;r--){const a=n[r];if(t.unshift(a),!a.startsWith("["))break}return p8(t)};function ei(e,t=()=>{}){JC(e,t)}const Gi=ne.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,a=d8(r),i=y.useContext(Ay);let l=h8(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(l=i[r].displayName)}return e.type==="bool"?g.jsx(TE,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type==="float"||e.type==="int"?g.jsx(Ru,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type==="Quantity"?g.jsx(Ru,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type==="NumberSlider"?g.jsx(wO,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type==="Enum"||e.type==="ColouredEnum"?g.jsx(AO,{...e,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type==="method"?g.jsx(hm,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:l,id:a,render:e.frontend_render}):e.type==="str"?g.jsx(RO,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type=="Task"?g.jsx(jO,{fullAccessPath:r,docString:e.doc,status:e.value.status.value,addNotification:n,displayName:l,id:a}):e.type==="DataService"?g.jsx(gm,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:l,id:a}):e.type==="DeviceConnection"?g.jsx($O,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:l,id:a}):e.type==="list"?g.jsx(CO,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:a}):e.type==="dict"?g.jsx(MO,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:a}):e.type==="Image"?g.jsx(NO,{fullAccessPath:r,docString:e.value.value.doc,displayName:l,id:a,addNotification:n,value:e.value.value.value,format:e.value.format.value}):g.jsx("div",{children:r},r)});Gi.displayName="GenericComponent";const y8=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:t5(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},m8=()=>{const[e,t]=y.useReducer(y8,null),[n,r]=y.useState(null),[a,i]=y.useState({}),[l,o]=ah("isInstantUpdate",!1),[s,u]=y.useState(!1),[c,d]=ah("showNotification",!1),[f,h]=y.useState([]),[b,S]=y.useState("connecting");y.useEffect(()=>(fetch(`${Ml}://${ms}/custom.css`,{credentials:"include"}).then(O=>{if(O.ok){const T=document.createElement("link");T.href=`${Ml}://${ms}/custom.css`,T.type="text/css",T.rel="stylesheet",document.head.appendChild(T)}}).catch(console.error),er.on("connect",()=>{fetch(`${Ml}://${ms}/service-properties`,{credentials:"include"}).then(O=>O.json()).then(O=>{t({type:"SET_DATA",data:O}),r(O.name),document.title=O.name}),fetch(`${Ml}://${ms}/web-settings`,{credentials:"include"}).then(O=>O.json()).then(O=>i(O)),S("connected")}),er.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(O=>O==="disconnected"?"reconnecting":O)},2e3)}),er.on("notify",E),er.on("log",_),()=>{er.off("notify",E),er.off("log",_)}),[]);const x=y.useCallback((O,T="DEBUG")=>{const w=new Date().toISOString().substring(11,19),$=Math.random();h(R=>[{levelname:T,id:$,message:O,timeStamp:w},...R])},[]),m=O=>{h(T=>T.filter(w=>w.id!==O))},p=()=>u(!1),v=()=>u(!0);function E(O){const{full_access_path:T,value:w}=O.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:T,newValue:w})}function _(O){x(O.message,O.levelname)}return e?g.jsxs(g.Fragment,{children:[g.jsx(Zf,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:g.jsxs(sS,{fluid:!0,children:[g.jsx(Zf.Brand,{children:n}),g.jsx(Zf.Toggle,{"aria-controls":"offcanvasNavbar",onClick:v})]})}),g.jsx(OE,{showNotification:c,notifications:f,removeNotificationById:m}),g.jsxs($l,{show:s,onHide:p,placement:"end",style:{zIndex:9999},children:[g.jsx($l.Header,{closeButton:!0,children:g.jsx($l.Title,{children:"Settings"})}),g.jsxs($l.Body,{children:[g.jsx(pt.Check,{checked:l,onChange:O=>o(O.target.checked),type:"switch",label:"Enable Instant Update"}),g.jsx(pt.Check,{checked:c,onChange:O=>d(O.target.checked),type:"switch",label:"Show Notifications"})]})]}),g.jsx("div",{className:"App navbarOffset",children:g.jsx(Ay.Provider,{value:a,children:g.jsx(Gi,{attribute:e,isInstantUpdate:l,addNotification:x})})}),g.jsx(wp,{connectionStatus:b})]}):g.jsx(wp,{connectionStatus:b})};var DO={exports:{}},bf={},BO={exports:{}},kO={};/** +`+t.prev}function Os(e,t){var n=Yp(e),r=[];if(n){r.length=e.length;for(var a=0;a=r)return n+1;var a=b0(t,n);if(a<55296||a>56319)return n+1;var i=b0(t,n+1);return i<56320||i>57343?n+1:n+2},Sd=function(t){var n=0;return{next:function(){var a=n>=t.length,i;return a||(i=t[n],n+=1),{done:a,value:i}}}},S0=function(t,n){if(tD(t)||y0(t))return Sd(t);if(nD(t)){var r=0;return{next:function(){var i=lD(t,r),l=iD(t,r,i);return r=i,{done:i>t.length,value:l}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!rD&&!aD)au.exports=function(t){if(t!=null)return S0(t,!0)};else{var oD=iO,sD=oO,E0=dn("Map.prototype.forEach",!0),x0=dn("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var O0=dn("Map.prototype.iterator",!0),_0=dn("Set.prototype.iterator",!0);var T0=dn("Map.prototype.@@iterator",!0)||dn("Map.prototype._es6-shim iterator_",!0),w0=dn("Set.prototype.@@iterator",!0)||dn("Set.prototype._es6-shim iterator_",!0),uD=function(t){if(oD(t)){if(O0)return m0(O0(t));if(T0)return T0(t);if(E0){var n=[];return E0(t,function(a,i){g0(n,[i,a])}),Sd(n)}}if(sD(t)){if(_0)return m0(_0(t));if(w0)return w0(t);if(x0){var r=[];return x0(t,function(a){g0(r,a)}),Sd(r)}}};au.exports=function(t){return uD(t)||S0(t)}}}var cD=au.exports,A0=function(e){return e!==e},sO=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||A0(t)&&A0(n))},fD=sO,uO=function(){return typeof Object.is=="function"?Object.is:fD},dD=uO,pD=Na,hD=function(){var t=dD();return pD(Object,{is:t},{is:function(){return Object.is!==t}}),t},yD=Na,mD=al,vD=sO,cO=uO,gD=hD,fO=mD(cO(),Object);yD(fO,{getPolyfill:cO,implementation:vD,shim:gD});var bD=fO,SD=al,dO=ft,ED=Or,Xp=ED("%ArrayBuffer%",!0),iu=dO("ArrayBuffer.prototype.byteLength",!0),xD=dO("Object.prototype.toString"),R0=!!Xp&&!iu&&new Xp(0).slice,C0=!!R0&&SD(R0),pO=iu||C0?function(t){if(!t||typeof t!="object")return!1;try{return iu?iu(t):C0(t,0),!0}catch{return!1}}:Xp?function(t){return xD(t)==="[object ArrayBuffer]"}:function(t){return!1},hO=ft,OD=hO("Date.prototype.getDay"),_D=function(t){try{return OD(t),!0}catch{return!1}},TD=hO("Object.prototype.toString"),wD="[object Date]",AD=Ma(),RD=function(t){return typeof t!="object"||t===null?!1:AD?_D(t):TD(t)===wD},$0=ft,CD=Ma(),$D=am,ND=$a,Pp;if(CD){var MD=$0("RegExp.prototype.exec"),N0={},Ed=function(){throw N0},M0={toString:Ed,valueOf:Ed};typeof Symbol.toPrimitive=="symbol"&&(M0[Symbol.toPrimitive]=Ed),Pp=function(t){if(!t||typeof t!="object")return!1;var n=ND(t,"lastIndex"),r=n&&$D(n,"value");if(!r)return!1;try{MD(t,M0)}catch(a){return a===N0}}}else{var jD=$0("Object.prototype.toString"),DD="[object RegExp]";Pp=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:jD(t)===DD}}var yO=Pp,BD=ft,j0=BD("SharedArrayBuffer.prototype.byteLength",!0),kD=j0?function(t){if(!t||typeof t!="object")return!1;try{return j0(t),!0}catch{return!1}}:function(t){return!1},mO=ft,zD=mO("Number.prototype.toString"),LD=function(t){try{return zD(t),!0}catch{return!1}},UD=mO("Object.prototype.toString"),HD="[object Number]",qD=Ma(),GD=function(t){return typeof t=="number"?!0:!t||typeof t!="object"?!1:qD?LD(t):UD(t)===HD},vO=ft,YD=vO("Boolean.prototype.toString"),VD=vO("Object.prototype.toString"),XD=function(t){try{return YD(t),!0}catch{return!1}},PD="[object Boolean]",FD=Ma(),QD=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:FD&&Symbol.toStringTag in t?XD(t):VD(t)===PD},Fp={exports:{}},xd,D0;function KD(){if(D0)return xd;D0=1;var e=ft,t=yO,n=e("RegExp.prototype.exec"),r=un;return xd=function(i){if(!t(i))throw new r("`regex` must be a RegExp");return function(o){return n(i,o)!==null}},xd}var gO=ft,ZD=gO("Object.prototype.toString"),WD=em(),JD=KD();if(WD){var ID=gO("Symbol.prototype.toString"),eB=JD(/^Symbol\(.*\)$/),tB=function(t){return typeof t.valueOf()!="symbol"?!1:eB(ID(t))};Fp.exports=function(t){if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||ZD(t)!=="[object Symbol]")return!1;try{return tB(t)}catch{return!1}}}else Fp.exports=function(t){return!1};var nB=Fp.exports,Qp={exports:{}},B0=typeof BigInt<"u"&&BigInt,rB=function(){return typeof B0=="function"&&typeof BigInt=="function"&&typeof B0(42)=="bigint"&&typeof BigInt(42)=="bigint"},aB=rB();if(aB){var iB=BigInt.prototype.valueOf,lB=function(t){try{return iB.call(t),!0}catch{}return!1};Qp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:lB(t)}}else Qp.exports=function(t){return!1};var oB=Qp.exports,sB=rO,uB=GD,cB=QD,fB=nB,dB=oB,pB=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(sB(t))return"String";if(uB(t))return"Number";if(cB(t))return"Boolean";if(fB(t))return"Symbol";if(dB(t))return"BigInt"},Uu=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,k0=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Hu;Uu||(Hu=function(t){return!1});var Kp=Uu?Uu.prototype.has:null,Od=k0?k0.prototype.has:null;!Hu&&!Kp&&(Hu=function(t){return!1});var hB=Hu||function(t){if(!t||typeof t!="object")return!1;try{if(Kp.call(t,Kp),Od)try{Od.call(t,Od)}catch{return!0}return t instanceof Uu}catch{}return!1},Zp={exports:{}},yB=Or,bO=ft,mB=yB("%WeakSet%",!0),_d=bO("WeakSet.prototype.has",!0);if(_d){var Td=bO("WeakMap.prototype.has",!0);Zp.exports=function(t){if(!t||typeof t!="object")return!1;try{if(_d(t,_d),Td)try{Td(t,Td)}catch{return!0}return t instanceof mB}catch{}return!1}}else Zp.exports=function(t){return!1};var vB=Zp.exports,gB=iO,bB=oO,SB=hB,EB=vB,xB=function(t){if(t&&typeof t=="object"){if(gB(t))return"Map";if(bB(t))return"Set";if(SB(t))return"WeakMap";if(EB(t))return"WeakSet"}return!1},SO=Function.prototype.toString,ui=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Wp,lu;if(typeof ui=="function"&&typeof Object.defineProperty=="function")try{Wp=Object.defineProperty({},"length",{get:function(){throw lu}}),lu={},ui(function(){throw 42},null,Wp)}catch(e){e!==lu&&(ui=null)}else ui=null;var OB=/^\s*class\b/,Jp=function(t){try{var n=SO.call(t);return OB.test(n)}catch{return!1}},wd=function(t){try{return Jp(t)?!1:(SO.call(t),!0)}catch{return!1}},ou=Object.prototype.toString,_B="[object Object]",TB="[object Function]",wB="[object GeneratorFunction]",AB="[object HTMLAllCollection]",RB="[object HTML document.all class]",CB="[object HTMLCollection]",$B=typeof Symbol=="function"&&!!Symbol.toStringTag,NB=!(0 in[,]),Ip=function(){return!1};if(typeof document=="object"){var MB=document.all;ou.call(MB)===ou.call(document.all)&&(Ip=function(t){if((NB||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=ou.call(t);return(n===AB||n===RB||n===CB||n===_B)&&t("")==null}catch{}return!1})}var jB=ui?function(t){if(Ip(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{ui(t,null,Wp)}catch(n){if(n!==lu)return!1}return!Jp(t)&&wd(t)}:function(t){if(Ip(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if($B)return wd(t);if(Jp(t))return!1;var n=ou.call(t);return n!==TB&&n!==wB&&!/^\[object HTML/.test(n)?!1:wd(t)},DB=jB,BB=Object.prototype.toString,EO=Object.prototype.hasOwnProperty,kB=function(t,n,r){for(var a=0,i=t.length;a=3&&(a=r),BB.call(t)==="[object Array]"?kB(t,n,a):typeof t=="string"?zB(t,n,a):LB(t,n,a)},HB=UB,qB=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Ad=qB,GB=typeof globalThis>"u"?xu:globalThis,YB=function(){for(var t=[],n=0;n"u"?xu:globalThis,eh=VB(),dm=fm("String.prototype.slice"),Rd=Object.getPrototypeOf,PB=fm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:QB(t)}return su?FB(t):null},ZB=ft,U0=ZB("ArrayBuffer.prototype.byteLength",!0),WB=pO,JB=function(t){return WB(t)?U0?U0(t):t.byteLength:NaN},OO=o6,qn=Ux,H0=M6,IB=Or,qi=cD,e8=eO,q0=bD,G0=Xx,Y0=tO,V0=pO,X0=RD,P0=yO,F0=kD,Q0=Ky,K0=pB,Z0=xB,W0=KB,J0=JB,I0=qn("SharedArrayBuffer.prototype.byteLength",!0),eb=qn("Date.prototype.getTime"),Cd=Object.getPrototypeOf,tb=qn("Object.prototype.toString"),Yu=IB("%Set%",!0),th=qn("Map.prototype.has",!0),Vu=qn("Map.prototype.get",!0),nb=qn("Map.prototype.size",!0),Xu=qn("Set.prototype.add",!0),_O=qn("Set.prototype.delete",!0),Pu=qn("Set.prototype.has",!0),uu=qn("Set.prototype.size",!0);function rb(e,t,n,r){for(var a=qi(e),i;(i=a.next())&&!i.done;)if(vn(t,i.value,n,r))return _O(e,i.value),!0;return!1}function TO(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function t8(e,t,n,r,a,i){var l=TO(n);if(l!=null)return l;var o=Vu(t,l),s=OO({},a,{strict:!1});return typeof o>"u"&&!th(t,l)||!vn(r,o,s,i)?!1:!th(e,l)&&vn(r,o,s,i)}function n8(e,t,n){var r=TO(n);return r??(Pu(t,r)&&!Pu(e,r))}function ab(e,t,n,r,a,i){for(var l=qi(e),o,s;(o=l.next())&&!o.done;)if(s=o.value,vn(n,s,a,i)&&vn(r,Vu(t,s),a,i))return _O(e,s),!0;return!1}function vn(e,t,n,r){var a=n||{};if(a.strict?q0(e,t):e===t)return!0;var i=K0(e),l=K0(t);if(i!==l)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return a.strict?q0(e,t):e==t;var o=r.has(e),s=r.has(t),u;if(o&&s){if(r.get(e)===r.get(t))return!0}else u={};return o||r.set(e,u),s||r.set(t,u),i8(e,t,a,r)}function ib(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function r8(e,t,n,r){if(uu(e)!==uu(t))return!1;for(var a=qi(e),i=qi(t),l,o,s;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object")s||(s=new Yu),Xu(s,l.value);else if(!Pu(t,l.value)){if(n.strict||!n8(e,t,l.value))return!1;s||(s=new Yu),Xu(s,l.value)}if(s){for(;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object"){if(!rb(s,o.value,n.strict,r))return!1}else if(!n.strict&&!Pu(e,o.value)&&!rb(s,o.value,n.strict,r))return!1;return uu(s)===0}return!0}function a8(e,t,n,r){if(nb(e)!==nb(t))return!1;for(var a=qi(e),i=qi(t),l,o,s,u,c,d;(l=a.next())&&!l.done;)if(u=l.value[0],c=l.value[1],u&&typeof u=="object")s||(s=new Yu),Xu(s,u);else if(d=Vu(t,u),typeof d>"u"&&!th(t,u)||!vn(c,d,n,r)){if(n.strict||!t8(e,t,u,c,n,r))return!1;s||(s=new Yu),Xu(s,u)}if(s){for(;(o=i.next())&&!o.done;)if(u=o.value[0],d=o.value[1],u&&typeof u=="object"){if(!ab(s,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!vn(Vu(e,u),d,n,r))&&!ab(s,e,u,d,OO({},n,{strict:!1}),r))return!1;return uu(s)===0}return!0}function i8(e,t,n,r){var a,i;if(typeof e!=typeof t||e==null||t==null||tb(e)!==tb(t)||G0(e)!==G0(t))return!1;var l=Y0(e),o=Y0(t);if(l!==o)return!1;var s=e instanceof Error,u=t instanceof Error;if(s!==u||(s||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=P0(e),d=P0(t);if(c!==d||(c||d)&&(e.source!==t.source||H0(e)!==H0(t)))return!1;var f=X0(e),h=X0(t);if(f!==h||(f||h)&&eb(e)!==eb(t)||n.strict&&Cd&&Cd(e)!==Cd(t))return!1;var b=W0(e),S=W0(t);if(b!==S)return!1;if(b||S){if(e.length!==t.length)return!1;for(a=0;a=0;a--)if(O[a]!=T[a])return!1;for(a=O.length-1;a>=0;a--)if(i=O[a],!vn(e[i],t[i],n,r))return!1;var w=Z0(e),$=Z0(t);return w!==$?!1:w==="Set"||$==="Set"?r8(e,t,n,r):w==="Map"?a8(e,t,n,r):!0}var l8=function(t,n,r){return vn(t,n,r,e8())};const o8=Ra(l8),pm=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!o8(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ts=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},wO=ne.memo(e=>{Hn();const[t,n]=m.useState(!1),{fullAccessPath:r,value:a,min:i,max:l,stepSize:o,docString:s,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:h}=e;m.useEffect(()=>{c(`${r} changed to ${a.value}.`)},[e.value.value]),m.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),m.useEffect(()=>{c(`${r}.max changed to ${l.value}.`)},[e.max.value,e.max.type]),m.useEffect(()=>{c(`${r}.stepSize changed to ${o.value}.`)},[e.stepSize.value,e.stepSize.type]);const b=($,R)=>{Array.isArray(R)&&(R=R[0]);let N;a.type==="Quantity"?N={type:"Quantity",value:{magnitude:R,unit:a.value.unit},full_access_path:`${r}.value`,readonly:a.readonly,doc:s}:N={type:a.type,value:R,full_access_path:`${r}.value`,readonly:a.readonly,doc:s},d(N)},S=($,R,N)=>{let G;N.type==="Quantity"?G={type:N.type,value:{magnitude:$,unit:N.value.unit},full_access_path:`${r}.${R}`,readonly:N.readonly,doc:null}:G={type:N.type,value:$,full_access_path:`${r}.${R}`,readonly:N.readonly,doc:null},d(G)},[x,y,p]=Ts(a),[v,E]=Ts(i),[_,O]=Ts(l),[T,w]=Ts(o);return g.jsxs("div",{className:"component sliderComponent",id:h,children:[!1,g.jsxs(Au,{children:[g.jsx(On,{xs:"auto",xl:"auto",children:g.jsxs(dr.Text,{children:[f,g.jsx(Sn,{docString:s})]})}),g.jsx(On,{xs:"5",xl:!0,children:g.jsx(_4,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:y,value:x,onChange:($,R)=>b($,R),min:v,max:_,step:T,marks:[{value:v,label:`${v}`},{value:_,label:`${_}`}]})}),g.jsx(On,{xs:"3",xl:!0,children:g.jsx(Ru,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:s,readOnly:y,type:a.type,value:x,unit:p,addNotification:()=>{},changeCallback:d,id:h+"-value"})}),g.jsx(On,{xs:"auto",children:g.jsx(Ey,{id:`button-${h}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[g.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"}),g.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"})]})})})]}),g.jsx(Tc,{in:t,children:g.jsx(pt.Group,{children:g.jsxs(Au,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[g.jsxs(On,{xs:"auto",children:[g.jsx(pt.Label,{children:"Min Value"}),g.jsx(pt.Control,{type:"number",value:v,disabled:E,onChange:$=>S(Number($.target.value),"min",i)})]}),g.jsxs(On,{xs:"auto",children:[g.jsx(pt.Label,{children:"Max Value"}),g.jsx(pt.Control,{type:"number",value:_,disabled:O,onChange:$=>S(Number($.target.value),"max",l)})]}),g.jsxs(On,{xs:"auto",children:[g.jsx(pt.Label,{children:"Step Size"}),g.jsx(pt.Control,{type:"number",value:T,disabled:w,onChange:$=>S(Number($.target.value),"step_size",o)})]})]})})})]})},pm);wO.displayName="SliderComponent";const AO=ne.memo(e=>{const{addNotification:t,displayName:n,id:r,value:a,full_access_path:i,enum:l,doc:o,readonly:s,changeCallback:u}=e;return Hn(),m.useEffect(()=>{t(`${i} changed to ${a}.`)},[a]),g.jsxs("div",{className:"component enumComponent",id:r,children:[!1,g.jsx(Au,{children:g.jsxs(On,{className:"d-flex align-items-center",children:[g.jsxs(dr.Text,{children:[n,g.jsx(Sn,{docString:o})]}),s?g.jsx(pt.Control,{style:e.type=="ColouredEnum"?{backgroundColor:l[a]}:{},value:e.type=="ColouredEnum"?a:l[a],name:i,disabled:!0}):g.jsx(pt.Select,{"aria-label":"example-select",value:a,name:i,style:e.type=="ColouredEnum"?{backgroundColor:l[a]}:{},onChange:c=>u({type:e.type,name:e.name,enum:l,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(l).map(([c,d])=>g.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},pm);AO.displayName="EnumComponent";const hm=ne.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:a,id:i}=e;if(!e.render)return null;Hn();const l=m.useRef(null),o=()=>{const u=`Method ${t} was triggered.`;r(u)},s=async u=>{u.preventDefault(),xE(t),o()};return g.jsxs("div",{className:"component methodComponent",id:i,children:[!1,g.jsx(pt,{onSubmit:s,ref:l,children:g.jsxs(Lo,{className:"component",variant:"primary",type:"submit",children:[`${a} `,g.jsx(Sn,{docString:n})]})})]})},pm);hm.displayName="MethodComponent";const RO=ne.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:a,addNotification:i,changeCallback:l=()=>{},displayName:o,id:s}=e;Hn();const[u,c]=m.useState(e.value);m.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=b=>{c(b.target.value),a&&l({type:"str",value:b.target.value,full_access_path:t,readonly:n,doc:r})},f=b=>{b.key==="Enter"&&!a&&(l({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),b.preventDefault())},h=()=>{a||l({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return g.jsxs("div",{className:"component stringComponent",id:s,children:[!1,g.jsxs(dr,{children:[g.jsxs(dr.Text,{children:[o,g.jsx(Sn,{docString:r})]}),g.jsx(pt.Control,{type:"text",name:s,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:h,className:a&&!n?"instantUpdate":""})]})]})});RO.displayName="StringComponent";function ym(e){const t=m.useContext(Ay),n=a=>{var i;return((i=t[a])==null?void 0:i.displayOrder)??Number.MAX_SAFE_INTEGER};let r;return Array.isArray(e)?r=[...e].sort((a,i)=>n(a.full_access_path)-n(i.full_access_path)):r=Object.values(e).sort((a,i)=>n(a.full_access_path)-n(i.full_access_path)),r}const CO=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:a}=e,i=ym(e.value);return Hn(),g.jsxs("div",{className:"listComponent",id:a,children:[!1,g.jsx(Sn,{docString:t}),i.map(l=>g.jsx(Gi,{attribute:l,isInstantUpdate:n,addNotification:r},l.full_access_path))]})});CO.displayName="ListComponent";var s8=["color","size","title","className"];function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const a=localStorage.getItem(e);return a?JSON.parse(a):t});return m.useEffect(()=>{n!==void 0&&localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}const gm=ne.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:a})=>{const[i,l]=ah(`dataServiceComponent-${a}-open`,!0),o=ym(e);return r!==""?g.jsx("div",{className:"component dataServiceComponent",id:a,children:g.jsxs(Ei,{children:[g.jsxs(Ei.Header,{onClick:()=>l(!i),style:{cursor:"pointer"},children:[r," ",i?g.jsx(mm,{}):g.jsx(vm,{})]}),g.jsx(Tc,{in:i,children:g.jsx(Ei.Body,{children:o.map(s=>g.jsx(Gi,{attribute:s,isInstantUpdate:t,addNotification:n},s.full_access_path))})})]})}):g.jsx("div",{className:"component dataServiceComponent",id:a,children:o.map(s=>g.jsx(Gi,{attribute:s,isInstantUpdate:t,addNotification:n},s.full_access_path))})});gm.displayName="DataServiceComponent";const $O=ne.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:a,id:i})=>{const{connected:l,connect:o,...s}=t,u=l.value;return g.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&g.jsxs("div",{className:"overlayContent",children:[g.jsxs("div",{children:[a!=""?a:"Device"," is currently not available!"]}),g.jsx(hm,{fullAccessPath:`${e}.connect`,docString:o.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),g.jsx(gm,{props:s,isInstantUpdate:n,addNotification:r,displayName:a,id:i})]})});$O.displayName="DeviceConnectionComponent";const NO=ne.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:a,addNotification:i,displayName:l,id:o}=e;Hn();const[s,u]=m.useState(!0);return m.useEffect(()=>{i(`${t} changed.`)},[e.value]),g.jsx("div",{className:"component imageComponent",id:o,children:g.jsxs(Ei,{children:[g.jsxs(Ei.Header,{onClick:()=>u(!s),style:{cursor:"pointer"},children:[l,g.jsx(Sn,{docString:r}),s?g.jsx(mm,{}):g.jsx(vm,{})]}),g.jsx(Tc,{in:s,children:g.jsxs(Ei.Body,{children:[!1,a===""&&n===""?g.jsx("p",{children:"No image set in the backend."}):g.jsx(ES,{src:`data:image/${a.toLowerCase()};base64,${n}`})]})})]})})});NO.displayName="ImageComponent";function h8(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const MO=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:a}=e,i=ym(e.value);return Hn(),g.jsxs("div",{className:"listComponent",id:a,children:[!1,g.jsx(Sn,{docString:t}),i.map(l=>g.jsx(Gi,{attribute:l,isInstantUpdate:n,addNotification:r},l.full_access_path))]})});MO.displayName="DictComponent";const jO=ne.memo(e=>{const{fullAccessPath:t,docString:n,status:r,addNotification:a,displayName:i,id:l}=e;Hn();const o=m.useRef(null),[s,u]=m.useState(!1);m.useEffect(()=>{let d;r==="RUNNING"?d=`${t} was started.`:d=`${t} was stopped.`,a(d),u(!1)},[r]);const c=async d=>{d.preventDefault();const f=r=="RUNNING"?"stop":"start",h=[t,f].filter(b=>b).join(".");u(!0),xE(h)};return g.jsxs("div",{className:"component taskComponent",id:l,children:[!1,g.jsx(pt,{onSubmit:c,ref:o,children:g.jsxs(dr,{children:[g.jsxs(dr.Text,{children:[i,g.jsx(Sn,{docString:n})]}),g.jsx(Lo,{id:`button-${l}`,type:"submit",children:s?g.jsx(IS,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});jO.displayName="TaskComponent";const y8=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},m8=e=>{const t=[],n=_E(e);for(let r=n.length-1;r>=0;r--){const a=n[r];if(t.unshift(a),!a.startsWith("["))break}return y8(t)};function ei(e,t=()=>{}){JC(e,t)}const Gi=ne.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,a=h8(r),i=m.useContext(Ay);let l=m8(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(l=i[r].displayName)}return e.type==="bool"?g.jsx(TE,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type==="float"||e.type==="int"?g.jsx(Ru,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type==="Quantity"?g.jsx(Ru,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type==="NumberSlider"?g.jsx(wO,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type==="Enum"||e.type==="ColouredEnum"?g.jsx(AO,{...e,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type==="method"?g.jsx(hm,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:l,id:a,render:e.frontend_render}):e.type==="str"?g.jsx(RO,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:ei,displayName:l,id:a}):e.type=="Task"?g.jsx(jO,{fullAccessPath:r,docString:e.doc,status:e.value.status.value,addNotification:n,displayName:l,id:a}):e.type==="DataService"?g.jsx(gm,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:l,id:a}):e.type==="DeviceConnection"?g.jsx($O,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:l,id:a}):e.type==="list"?g.jsx(CO,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:a}):e.type==="dict"?g.jsx(MO,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:a}):e.type==="Image"?g.jsx(NO,{fullAccessPath:r,docString:e.value.value.doc,displayName:l,id:a,addNotification:n,value:e.value.value.value,format:e.value.format.value}):g.jsx("div",{children:r},r)});Gi.displayName="GenericComponent";const v8=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:t5(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},g8=()=>{const[e,t]=m.useReducer(v8,null),[n,r]=m.useState(null),[a,i]=m.useState({}),[l,o]=ah("isInstantUpdate",!1),[s,u]=m.useState(!1),[c,d]=ah("showNotification",!1),[f,h]=m.useState([]),[b,S]=m.useState("connecting");m.useEffect(()=>(fetch(`${Ml}://${ms}/custom.css`,{credentials:"include"}).then(O=>{if(O.ok){const T=document.createElement("link");T.href=`${Ml}://${ms}/custom.css`,T.type="text/css",T.rel="stylesheet",document.head.appendChild(T)}}).catch(console.error),er.on("connect",()=>{fetch(`${Ml}://${ms}/service-properties`,{credentials:"include"}).then(O=>O.json()).then(O=>{t({type:"SET_DATA",data:O}),r(O.name),document.title=O.name}),fetch(`${Ml}://${ms}/web-settings`,{credentials:"include"}).then(O=>O.json()).then(O=>i(O)),S("connected")}),er.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(O=>O==="disconnected"?"reconnecting":O)},2e3)}),er.on("notify",E),er.on("log",_),()=>{er.off("notify",E),er.off("log",_)}),[]);const x=m.useCallback((O,T="DEBUG")=>{const w=new Date().toISOString().substring(11,19),$=Math.random();h(R=>[{levelname:T,id:$,message:O,timeStamp:w},...R])},[]),y=O=>{h(T=>T.filter(w=>w.id!==O))},p=()=>u(!1),v=()=>u(!0);function E(O){const{full_access_path:T,value:w}=O.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:T,newValue:w})}function _(O){x(O.message,O.levelname)}return e?g.jsxs(g.Fragment,{children:[g.jsx(Zf,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:g.jsxs(sS,{fluid:!0,children:[g.jsx(Zf.Brand,{children:n}),g.jsx(Zf.Toggle,{"aria-controls":"offcanvasNavbar",onClick:v})]})}),g.jsx(OE,{showNotification:c,notifications:f,removeNotificationById:y}),g.jsxs($l,{show:s,onHide:p,placement:"end",style:{zIndex:9999},children:[g.jsx($l.Header,{closeButton:!0,children:g.jsx($l.Title,{children:"Settings"})}),g.jsxs($l.Body,{children:[g.jsx(pt.Check,{checked:l,onChange:O=>o(O.target.checked),type:"switch",label:"Enable Instant Update"}),g.jsx(pt.Check,{checked:c,onChange:O=>d(O.target.checked),type:"switch",label:"Show Notifications"})]})]}),g.jsx("div",{className:"App navbarOffset",children:g.jsx(Ay.Provider,{value:a,children:g.jsx(Gi,{attribute:e,isInstantUpdate:l,addNotification:x})})}),g.jsx(wp,{connectionStatus:b})]}):g.jsx(wp,{connectionStatus:b})};var DO={exports:{}},bf={},BO={exports:{}},kO={};/** * @license React * scheduler.production.js * @@ -52,7 +52,7 @@ function OT(e,t){for(var n=0;n>>1,ie=C[K];if(0>>1;Ka(xe,D))Va(ve,xe)?(C[K]=ve,C[V]=D,K=V):(C[K]=xe,C[ke]=D,K=ke);else if(Va(ve,D))C[K]=ve,C[V]=D,K=V;else break e}}return j}function a(C,j){var D=C.sortIndex-j.sortIndex;return D!==0?D:C.id-j.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var s=[],u=[],c=1,d=null,f=3,h=!1,b=!1,S=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;function v(C){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=C)r(u),j.sortIndex=j.expirationTime,t(s,j);else break;j=n(u)}}function E(C){if(S=!1,v(C),!b)if(n(s)!==null)b=!0,X();else{var j=n(u);j!==null&&q(E,j.startTime-C)}}var _=!1,O=-1,T=5,w=-1;function $(){return!(e.unstable_now()-wC&&$());){var K=d.callback;if(typeof K=="function"){d.callback=null,f=d.priorityLevel;var ie=K(d.expirationTime<=C);if(C=e.unstable_now(),typeof ie=="function"){d.callback=ie,v(C),j=!0;break t}d===n(s)&&r(s),v(C)}else r(s);d=n(s)}if(d!==null)j=!0;else{var Pe=n(u);Pe!==null&&q(E,Pe.startTime-C),j=!1}}break e}finally{d=null,f=D,h=!1}j=void 0}}finally{j?M():_=!1}}}var M;if(typeof p=="function")M=function(){p(R)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,U=G.port2;G.port1.onmessage=R,M=function(){U.postMessage(null)}}else M=function(){x(R,0)};function X(){_||(_=!0,M())}function q(C,j){O=x(function(){C(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){b||h||(b=!0,X())},e.unstable_forceFrameRate=function(C){0>C||125K?(C.sortIndex=D,t(u,C),n(s)===null&&C===n(u)&&(S?(m(O),O=-1):S=!0,q(E,D-K))):(C.sortIndex=ie,t(s,C),b||h||(b=!0,X())),C},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(C){var j=f;return function(){var D=f;f=j;try{return C.apply(this,arguments)}finally{f=D}}}})(kO);BO.exports=kO;var v8=BO.exports;/** + */(function(e){function t(C,j){var D=C.length;C.push(j);e:for(;0>>1,ie=C[K];if(0>>1;Ka(xe,D))Va(ve,xe)?(C[K]=ve,C[V]=D,K=V):(C[K]=xe,C[ke]=D,K=ke);else if(Va(ve,D))C[K]=ve,C[V]=D,K=V;else break e}}return j}function a(C,j){var D=C.sortIndex-j.sortIndex;return D!==0?D:C.id-j.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var s=[],u=[],c=1,d=null,f=3,h=!1,b=!1,S=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;function v(C){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=C)r(u),j.sortIndex=j.expirationTime,t(s,j);else break;j=n(u)}}function E(C){if(S=!1,v(C),!b)if(n(s)!==null)b=!0,X();else{var j=n(u);j!==null&&q(E,j.startTime-C)}}var _=!1,O=-1,T=5,w=-1;function $(){return!(e.unstable_now()-wC&&$());){var K=d.callback;if(typeof K=="function"){d.callback=null,f=d.priorityLevel;var ie=K(d.expirationTime<=C);if(C=e.unstable_now(),typeof ie=="function"){d.callback=ie,v(C),j=!0;break t}d===n(s)&&r(s),v(C)}else r(s);d=n(s)}if(d!==null)j=!0;else{var Pe=n(u);Pe!==null&&q(E,Pe.startTime-C),j=!1}}break e}finally{d=null,f=D,h=!1}j=void 0}}finally{j?N():_=!1}}}var N;if(typeof p=="function")N=function(){p(R)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,U=G.port2;G.port1.onmessage=R,N=function(){U.postMessage(null)}}else N=function(){x(R,0)};function X(){_||(_=!0,N())}function q(C,j){O=x(function(){C(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_continueExecution=function(){b||h||(b=!0,X())},e.unstable_forceFrameRate=function(C){0>C||125K?(C.sortIndex=D,t(u,C),n(s)===null&&C===n(u)&&(S?(y(O),O=-1):S=!0,q(E,D-K))):(C.sortIndex=ie,t(s,C),b||h||(b=!0,X())),C},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(C){var j=f;return function(){var D=f;f=j;try{return C.apply(this,arguments)}finally{f=D}}}})(kO);BO.exports=kO;var b8=BO.exports;/** * @license React * react-dom-client.production.js * @@ -60,12 +60,12 @@ function OT(e,t){for(var n=0;n)":-1a||s[r]!==u[a]){var c=` -`+s[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=a);break}}}finally{Nd=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Dl(n):""}function O8(e){switch(e.tag){case 26:case 27:case 5:return Dl(e.type);case 16:return Dl("Lazy");case 13:return Dl("Suspense");case 19:return Dl("SuspenseList");case 0:case 15:return e=Md(e.type,!1),e;case 11:return e=Md(e.type.render,!1),e;case 1:return e=Md(e.type,!0),e;default:return""}}function sb(e){try{var t="";do t+=O8(e),e=e.return;while(e);return t}catch(n){return` +`+s[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=a);break}}}finally{Nd=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Dl(n):""}function T8(e){switch(e.tag){case 26:case 27:case 5:return Dl(e.type);case 16:return Dl("Lazy");case 13:return Dl("Suspense");case 19:return Dl("SuspenseList");case 0:case 15:return e=Md(e.type,!1),e;case 11:return e=Md(e.type.render,!1),e;case 1:return e=Md(e.type,!0),e;default:return""}}function sb(e){try{var t="";do t+=T8(e),e=e.return;while(e);return t}catch(n){return` Error generating stack: `+n.message+` -`+n.stack}}function il(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function GO(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ub(e){if(il(e)!==e)throw Error(A(188))}function _8(e){var t=e.alternate;if(!t){if(t=il(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return ub(a),e;if(i===r)return ub(a),t;i=i.sibling}throw Error(A(188))}if(n.return!==r.return)n=a,r=i;else{for(var l=!1,o=a.child;o;){if(o===n){l=!0,n=a,r=i;break}if(o===r){l=!0,r=a,n=i;break}o=o.sibling}if(!l){for(o=i.child;o;){if(o===n){l=!0,n=i,r=a;break}if(o===r){l=!0,r=i,n=a;break}o=o.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function YO(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=YO(e),t!==null)return t;e=e.sibling}return null}var Bl=Array.isArray,Se=g8.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ma={pending:!1,data:null,method:null,action:null},uh=[],fi=-1;function Gn(e){return{current:e}}function We(e){0>fi||(e.current=uh[fi],uh[fi]=null,fi--)}function Te(e,t){fi++,uh[fi]=e.current,e.current=t}var Bn=Gn(null),Eo=Gn(null),Yr=Gn(null),Fu=Gn(null);function Qu(e,t){switch(Te(Yr,t),Te(Eo,e),Te(Bn,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?c1(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=c1(e),t=tT(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}We(Bn),Te(Bn,t)}function Yi(){We(Bn),We(Eo),We(Yr)}function ch(e){e.memoizedState!==null&&Te(Fu,e);var t=Bn.current,n=tT(t,e.type);t!==n&&(Te(Eo,e),Te(Bn,n))}function Ku(e){Eo.current===e&&(We(Bn),We(Eo)),Fu.current===e&&(We(Fu),Mo._currentValue=ma)}var fh=Object.prototype.hasOwnProperty,Em=Xe.unstable_scheduleCallback,jd=Xe.unstable_cancelCallback,T8=Xe.unstable_shouldYield,w8=Xe.unstable_requestPaint,kn=Xe.unstable_now,A8=Xe.unstable_getCurrentPriorityLevel,VO=Xe.unstable_ImmediatePriority,XO=Xe.unstable_UserBlockingPriority,Zu=Xe.unstable_NormalPriority,R8=Xe.unstable_LowPriority,PO=Xe.unstable_IdlePriority,C8=Xe.log,$8=Xe.unstable_setDisableYieldValue,Jo=null,Nt=null;function N8(e){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Jo,e,void 0,(e.current.flags&128)===128)}catch{}}function Ur(e){if(typeof C8=="function"&&$8(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Jo,e)}catch{}}var Mt=Math.clz32?Math.clz32:D8,M8=Math.log,j8=Math.LN2;function D8(e){return e>>>=0,e===0?32:31-(M8(e)/j8|0)|0}var As=128,Rs=4194304;function sa(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: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&4194176;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 Sf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,l=e.warmLanes;e=e.finishedLanes!==0;var o=n&134217727;return o!==0?(n=o&~a,n!==0?r=sa(n):(i&=o,i!==0?r=sa(i):e||(l=o&~l,l!==0&&(r=sa(l))))):(o=n&~a,o!==0?r=sa(o):i!==0?r=sa(i):e||(l=n&~l,l!==0&&(r=sa(l)))),r===0?0:t!==0&&t!==r&&!(t&a)&&(a=r&-r,l=t&-t,a>=l||a===32&&(l&4194176)!==0)?t:r}function Io(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function B8(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 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 FO(){var e=As;return As<<=1,!(As&4194176)&&(As=128),e}function QO(){var e=Rs;return Rs<<=1,!(Rs&62914560)&&(Rs=4194304),e}function Dd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function es(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function k8(e,t,n,r,a,i){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),H8=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fb={},db={};function q8(e){return fh.call(db,e)?!0:fh.call(fb,e)?!1:H8.test(e)?db[e]=!0:(fb[e]=!0,!1)}function cu(e,t,n){if(q8(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Cs(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Kn(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function t_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G8(e){var t=t_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wu(e){e._valueTracker||(e._valueTracker=G8(e))}function n_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=t_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ju(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 Y8=/[\n"\\]/g;function Zt(e){return e.replace(Y8,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ph(e,t,n,r,a,i,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ft(t)):e.value!==""+Ft(t)&&(e.value=""+Ft(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?hh(e,l,Ft(t)):n!=null?hh(e,l,Ft(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Ft(o):e.removeAttribute("name")}function r_(e,t,n,r,a,i,l,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;n=n!=null?""+Ft(n):"",t=t!=null?""+Ft(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l)}function hh(e,t,n){t==="number"&&Ju(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function wi(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a=Ql),bb=" ",Sb=!1;function c_(e,t){switch(e){case"keyup":return vk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function f_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pi=!1;function bk(e,t){switch(e){case"compositionend":return f_(t);case"keypress":return t.which!==32?null:(Sb=!0,bb);case"textInput":return e=t.data,e===bb&&Sb?null:e;default:return null}}function Sk(e,t){if(pi)return e==="compositionend"||!Am&&c_(e,t)?(e=s_(),du=Tm=Hr=null,pi=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Tb(n)}}function y_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function m_(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ju(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ju(e.document)}return t}function Rm(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")}function Rk(e,t){var n=m_(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&y_(t.ownerDocument.documentElement,t)){if(r!==null&&Rm(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=wb(t,i);var l=wb(t,r);a&&l&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==l.node||n.focusOffset!==l.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(l.node,l.offset)):(e.setEnd(l.node,l.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,hi=null,vh=null,Zl=null,gh=!1;function Ab(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gh||hi==null||hi!==Ju(r)||(r=hi,"selectionStart"in r&&Rm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zl&&To(Zl,r)||(Zl=r,r=hc(vh,"onSelect"),0>=l,a-=l,or=1<<32-Mt(t)+a|n<w?($=T,T=null):$=T.sibling;var R=f(m,T,v[w],E);if(R===null){T===null&&(T=$);break}e&&T&&R.alternate===null&&t(m,T),p=i(R,p,w),O===null?_=R:O.sibling=R,O=R,T=$}if(w===v.length)return n(m,T),ae&&ua(m,w),_;if(T===null){for(;ww?($=T,T=null):$=T.sibling;var M=f(m,T,R.value,E);if(M===null){T===null&&(T=$);break}e&&T&&M.alternate===null&&t(m,T),p=i(M,p,w),O===null?_=M:O.sibling=M,O=M,T=$}if(R.done)return n(m,T),ae&&ua(m,w),_;if(T===null){for(;!R.done;w++,R=v.next())R=d(m,R.value,E),R!==null&&(p=i(R,p,w),O===null?_=R:O.sibling=R,O=R);return ae&&ua(m,w),_}for(T=r(T);!R.done;w++,R=v.next())R=h(T,m,w,R.value,E),R!==null&&(e&&R.alternate!==null&&T.delete(R.key===null?w:R.key),p=i(R,p,w),O===null?_=R:O.sibling=R,O=R);return e&&T.forEach(function(G){return t(m,G)}),ae&&ua(m,w),_}function x(m,p,v,E){if(typeof v=="object"&&v!==null&&v.type===ci&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ws:e:{for(var _=v.key;p!==null;){if(p.key===_){if(_=v.type,_===ci){if(p.tag===7){n(m,p.sibling),E=a(p,v.props.children),E.return=m,m=E;break e}}else if(p.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Nr&&Db(_)===p.type){n(m,p.sibling),E=a(p,v.props),Tl(E,v),E.return=m,m=E;break e}n(m,p);break}else t(m,p);p=p.sibling}v.type===ci?(E=ba(v.props.children,m.mode,E,v.key),E.return=m,m=E):(E=gu(v.type,v.key,v.props,null,m.mode,E),Tl(E,v),E.return=m,m=E)}return l(m);case jl:e:{for(_=v.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(m,p.sibling),E=a(p,v.children||[]),E.return=m,m=E;break e}else{n(m,p);break}else t(m,p);p=p.sibling}E=ep(v,m.mode,E),E.return=m,m=E}return l(m);case Nr:return _=v._init,v=_(v._payload),x(m,p,v,E)}if(Bl(v))return b(m,p,v,E);if(El(v)){if(_=El(v),typeof _!="function")throw Error(A(150));return v=_.call(v),S(m,p,v,E)}if(typeof v.then=="function")return x(m,p,Ms(v),E);if(v.$$typeof===lr)return x(m,p,Ds(m,v),E);js(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,p!==null&&p.tag===6?(n(m,p.sibling),E=a(p,v),E.return=m,m=E):(n(m,p),E=Id(v,m.mode,E),E.return=m,m=E),l(m)):n(m,p)}return function(m,p,v,E){try{Ao=0;var _=x(m,p,v,E);return Ri=null,_}catch(T){if(T===Wl)throw T;var O=It(29,T,null,m.mode);return O.lanes=E,O.return=m,O}finally{}}}var _a=A_(!0),R_=A_(!1),Pi=Gn(null),nc=Gn(0);function Bb(e,t){e=Sr,Te(nc,e),Te(Pi,t),Sr=e|t.baseLanes}function Eh(){Te(nc,Sr),Te(Pi,Pi.current)}function jm(){Sr=nc.current,We(Pi),We(nc)}var an=Gn(null),zn=null;function Dr(e){var t=e.alternate;Te(Ve,Ve.current&1),Te(an,e),zn===null&&(t===null||Pi.current!==null||t.memoizedState!==null)&&(zn=e)}function C_(e){if(e.tag===22){if(Te(Ve,Ve.current),Te(an,e),zn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(zn=e)}}else Br()}function Br(){Te(Ve,Ve.current),Te(an,an.current)}function ur(e){We(an),zn===e&&(zn=null),We(Ve)}var Ve=Gn(0);function rc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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}var jk=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Dk=Xe.unstable_scheduleCallback,Bk=Xe.unstable_NormalPriority,Ye={$$typeof:lr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dm(){return{controller:new jk,data:new Map,refCount:0}}function rs(e){e.refCount--,e.refCount===0&&Dk(Bk,function(){e.controller.abort()})}var Il=null,xh=0,Fi=0,Ci=null;function kk(e,t){if(Il===null){var n=Il=[];xh=0,Fi=rv(),Ci={status:"pending",value:void 0,then:function(r){n.push(r)}}}return xh++,t.then(kb,kb),t}function kb(){if(--xh===0&&Il!==null){Ci!==null&&(Ci.status="fulfilled");var e=Il;Il=null,Fi=0,Ci=null;for(var t=0;ti?i:8;var l=P.T,o={};P.T=o,Fm(e,!1,t,n);try{var s=a(),u=P.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=zk(s,r);eo(e,t,c,jt(e))}else eo(e,t,r,jt(e))}catch(d){eo(e,t,{then:function(){},status:"rejected",reason:d},jt())}finally{Se.p=i,P.T=l}}function Gk(){}function Th(e,t,n,r){if(e.tag!==5)throw Error(A(476));var a=n2(e).queue;t2(e,a,t,ma,n===null?Gk:function(){return r2(e),n(r)})}function n2(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ma,baseState:ma,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:ma},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function r2(e){var t=n2(e).next.queue;eo(e,t,{},jt())}function Pm(){return ut(Mo)}function a2(){return Ge().memoizedState}function i2(){return Ge().memoizedState}function Yk(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jt();e=Vr(n);var r=Xr(t,e,n);r!==null&&(mt(r,t,n),no(r,t,n)),t={cache:Dm()},e.payload=t;return}t=t.return}}function Vk(e,t,n){var r=jt();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Cf(e)?o2(t,n):(n=$m(e,t,n,r),n!==null&&(mt(n,e,r),s2(n,t,r)))}function l2(e,t,n){var r=jt();eo(e,t,n,r)}function eo(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cf(e))o2(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(a.hasEagerState=!0,a.eagerState=o,Bt(o,l))return Tf(e,t,a,0),be===null&&_f(),!1}catch{}finally{}if(n=$m(e,t,a,r),n!==null)return mt(n,e,r),s2(n,t,r),!0}return!1}function Fm(e,t,n,r){if(r={lane:2,revertLane:rv(),action:r,hasEagerState:!1,eagerState:null,next:null},Cf(e)){if(t)throw Error(A(479))}else t=$m(e,n,r,2),t!==null&&mt(t,e,2)}function Cf(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function o2(e,t){$i=ac=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function s2(e,t,n){if(n&4194176){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ZO(e,n)}}var Un={readContext:ut,use:Af,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useLayoutEffect:je,useInsertionEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useSyncExternalStore:je,useId:je};Un.useCacheRefresh=je;Un.useMemoCache=je;Un.useHostTransitionStatus=je;Un.useFormState=je;Un.useActionState=je;Un.useOptimistic=je;var ka={readContext:ut,use:Af,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Hb,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,mu(4194308,4,Z_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mu(4194308,4,e,t)},useInsertionEffect:function(e,t){mu(4,2,e,t)},useMemo:function(e,t){var n=gt();t=t===void 0?null:t;var r=e();if(Ta){Ur(!0);try{e()}finally{Ur(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=gt();if(n!==void 0){var a=n(t);if(Ta){Ur(!0);try{n(t)}finally{Ur(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=Vk.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Oh(e);var t=e.queue,n=l2.bind(null,Q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Vm,useDeferredValue:function(e,t){var n=gt();return Xm(n,e,t)},useTransition:function(){var e=Oh(!1);return e=t2.bind(null,Q,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Q,a=gt();if(ae){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),be===null)throw Error(A(349));te&60||D_(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Hb(k_.bind(null,r,i,e),[e]),r.flags|=2048,Qi(9,B_.bind(null,r,i,n,t),{destroy:void 0},null),n},useId:function(){var e=gt(),t=be.identifierPrefix;if(ae){var n=sr,r=or;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ic++,0 title"))),at(i,r,n),i[st]=e,Ke(i),r=i;break e;case"link":var l=m1("link","href",a).get(r+(n.href||""));if(l){for(var o=0;o<\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?a.createElement(n,{is:r.is}):a.createElement(n)}}e[st]=t,e[xt]=r;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(at(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Jn(t)}}return we(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Jn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(e=Yr.current,_l(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ht,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||eT(e.nodeValue,n)),e||Oa(t)}else e=yc(e).createTextNode(r),e[st]=t,t.stateNode=e}return we(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=_l(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(A(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(A(317));a[st]=t}else ns(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;we(t),a=!1}else yn!==null&&(qh(yn),yn=null),a=!0;if(!a)return t.flags&256?(ur(t),t):(ur(t),null)}if(ur(t),t.flags&128)return t.lanes=n,t;if(n=r!==null,e=e!==null&&e.memoizedState!==null,n){r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool);var i=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Bs(t,t.updateQueue),we(t),null;case 4:return Yi(),e===null&&av(t.stateNode.containerInfo),we(t),null;case 10:return pr(t.type),we(t),null;case 19:if(We(Ve),a=t.memoizedState,a===null)return we(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)Al(a,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=rc(e),i!==null){for(t.flags|=128,Al(a,!1),e=i.updateQueue,t.updateQueue=e,Bs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)L2(n,e),n=n.sibling;return Te(Ve,Ve.current&1|2),t.child}e=e.sibling}a.tail!==null&&kn()>cc&&(t.flags|=128,r=!0,Al(a,!1),t.lanes=4194304)}else{if(!r)if(e=rc(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Bs(t,e),Al(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ae)return we(t),null}else 2*kn()-a.renderingStartTime>cc&&n!==536870912&&(t.flags|=128,r=!0,Al(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=kn(),t.sibling=null,e=Ve.current,Te(Ve,r?e&1|2:e&1),t):(we(t),null);case 22:case 23:return ur(t),jm(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),n=t.updateQueue,n!==null&&Bs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&We(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),pr(Ye),we(t),null;case 25:return null}throw Error(A(156,t.tag))}function Wk(e,t){switch(Mm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pr(Ye),Yi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ku(t),null;case 13:if(ur(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));ns()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return We(Ve),null;case 4:return Yi(),null;case 10:return pr(t.type),null;case 22:case 23:return ur(t),jm(),e!==null&&We(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pr(Ye),null;case 25:return null;default:return null}}function H2(e,t){switch(Mm(t),t.tag){case 3:pr(Ye),Yi();break;case 26:case 27:case 5:Ku(t);break;case 4:Yi();break;case 13:ur(t);break;case 19:We(Ve);break;case 10:pr(t.type);break;case 22:case 23:ur(t),jm(),e!==null&&We(ga);break;case 24:pr(Ye)}}var Jk={getCacheForType:function(e){var t=ut(Ye),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Ik=typeof WeakMap=="function"?WeakMap:Map,Re=0,be=null,Z=null,te=0,ge=0,At=null,rr=!1,sl=!1,Im=!1,Sr=0,Me=0,ta=0,Sa=0,ev=0,en=0,Ki=0,lo=null,Cn=null,zh=!1,tv=0,cc=1/0,fc=null,Fr=null,ks=!1,ca=null,oo=0,Lh=0,Uh=null,so=0,Hh=null;function jt(){if(Re&2&&te!==0)return te&-te;if(P.T!==null){var e=Fi;return e!==0?e:rv()}return JO()}function q2(){en===0&&(en=!(te&536870912)||ae?FO():536870912);var e=an.current;return e!==null&&(e.flags|=32),en}function mt(e,t,n){(e===be&&ge===2||e.cancelPendingCommit!==null)&&(Zi(e,0),ar(e,te,en,!1)),es(e,n),(!(Re&2)||e!==be)&&(e===be&&(!(Re&2)&&(Sa|=n),Me===4&&ar(e,te,en,!1)),Yn(e))}function G2(e,t,n){if(Re&6)throw Error(A(327));var r=!n&&(t&60)===0&&(t&e.expiredLanes)===0||Io(e,t),a=r?nz(e,t):tp(e,t,!0),i=r;do{if(a===0){sl&&!r&&ar(e,t,0,!1);break}else if(a===6)ar(e,t,0,!rr);else{if(n=e.current.alternate,i&&!ez(n)){a=tp(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var o=e;a=lo;var s=o.current.memoizedState.isDehydrated;if(s&&(Zi(o,l).flags|=256),l=tp(o,l,!1),l!==2){if(Im&&!s){o.errorRecoveryDisabledLanes|=i,Sa|=i,a=4;break e}i=Cn,Cn=a,i!==null&&qh(i)}a=l}if(i=!1,a!==2)continue}}if(a===1){Zi(e,0),ar(e,t,0,!0);break}e:{switch(r=e,a){case 0:case 1:throw Error(A(345));case 4:if((t&4194176)===t){ar(r,t,en,!rr);break e}break;case 2:Cn=null;break;case 3:case 5:break;default:throw Error(A(329))}if(r.finishedWork=n,r.finishedLanes=t,(t&62914560)===t&&(i=tv+300-kn(),10n?32:n,P.T=null,ca===null)var i=!1;else{n=Uh,Uh=null;var l=ca,o=oo;if(ca=null,oo=0,Re&6)throw Error(A(331));var s=Re;if(Re|=4,k2(l.current),j2(l,l.current,o,n),Re=s,os(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Jo,l)}catch{}i=!0}return i}finally{Se.p=a,P.T=r,Q2(e,t)}}return!1}function a1(e,t,n){t=Wt(n,t),t=Ah(e.stateNode,t,2),e=Xr(e,t,2),e!==null&&(es(e,2),Yn(e))}function ye(e,t,n){if(e.tag===3)a1(e,e,n);else for(;t!==null;){if(t.tag===3){a1(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fr===null||!Fr.has(r))){e=Wt(n,e),n=d2(2),r=Xr(t,n,2),r!==null&&(p2(n,r,t,e),es(r,2),Yn(r));break}}t=t.return}}function np(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ik;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(Im=!0,a.add(n),e=iz.bind(null,e,t,n),t.then(e,e))}function iz(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,be===e&&(te&n)===n&&(Me===4||Me===3&&(te&62914560)===te&&300>kn()-tv?!(Re&2)&&Zi(e,0):ev|=n,Ki===te&&(Ki=0)),Yn(e)}function K2(e,t){t===0&&(t=QO()),e=Jr(e,t),e!==null&&(es(e,t),Yn(e))}function lz(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),K2(e,n)}function oz(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(A(314))}r!==null&&r.delete(t),K2(e,n)}function sz(e,t){return Em(e,t)}var dc=null,si=null,Yh=!1,pc=!1,rp=!1,Ea=0;function Yn(e){e!==si&&e.next===null&&(si===null?dc=si=e:si=si.next=e),pc=!0,Yh||(Yh=!0,cz(uz))}function os(e,t){if(!rp&&pc){rp=!0;do for(var n=!1,r=dc;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var l=r.suspendedLanes,o=r.pingedLanes;i=(1<<31-Mt(42|e)+1)-1,i&=a&~(l&~o),i=i&201326677?i&201326677|1:i?i|2:0}i!==0&&(n=!0,i1(r,i))}else i=te,i=Sf(r,r===be?i:0),!(i&3)||Io(r,i)||(n=!0,i1(r,i));r=r.next}while(n);rp=!1}}function uz(){pc=Yh=!1;var e=0;Ea!==0&&(gz()&&(e=Ea),Ea=0);for(var t=kn(),n=null,r=dc;r!==null;){var a=r.next,i=Z2(r,t);i===0?(r.next=null,n===null?dc=a:n.next=a,a===null&&(si=n)):(n=r,(e!==0||i&3)&&(pc=!0)),r=a}os(e)}function Z2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0"u"?null:document;function aT(e,t,n){var r=ul;if(r&&typeof t=="string"&&t){var a=Zt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),p1.has(a)||(p1.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),at(t,"link",e),Ke(t),r.head.appendChild(t)))}}function wz(e){_r.D(e),aT("dns-prefetch",e,null)}function Az(e,t){_r.C(e,t),aT("preconnect",e,t)}function Rz(e,t,n){_r.L(e,t,n);var r=ul;if(r&&e&&t){var a='link[rel="preload"][as="'+Zt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Zt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Zt(n.imageSizes)+'"]')):a+='[href="'+Zt(e)+'"]';var i=a;switch(t){case"style":i=Wi(e);break;case"script":i=cl(e)}ln.has(i)||(e=Ee({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ln.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(ss(i))||t==="script"&&r.querySelector(us(i))||(t=r.createElement("link"),at(t,"link",e),Ke(t),r.head.appendChild(t)))}}function Cz(e,t){_r.m(e,t);var n=ul;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Zt(r)+'"][href="'+Zt(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=cl(e)}if(!ln.has(i)&&(e=Ee({rel:"modulepreload",href:e},t),ln.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(us(i)))return}r=n.createElement("link"),at(r,"link",e),Ke(r),n.head.appendChild(r)}}}function $z(e,t,n){_r.S(e,t,n);var r=ul;if(r&&e){var a=Ti(r).hoistableStyles,i=Wi(e);t=t||"default";var l=a.get(i);if(!l){var o={loading:0,preload:null};if(l=r.querySelector(ss(i)))o.loading=5;else{e=Ee({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ln.get(i))&&iv(e,n);var s=l=r.createElement("link");Ke(s),at(s,"link",e),s._p=new Promise(function(u,c){s.onload=u,s.onerror=c}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,bu(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:o},a.set(i,l)}}}function Nz(e,t){_r.X(e,t);var n=ul;if(n&&e){var r=Ti(n).hoistableScripts,a=cl(e),i=r.get(a);i||(i=n.querySelector(us(a)),i||(e=Ee({src:e,async:!0},t),(t=ln.get(a))&&lv(e,t),i=n.createElement("script"),Ke(i),at(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function Mz(e,t){_r.M(e,t);var n=ul;if(n&&e){var r=Ti(n).hoistableScripts,a=cl(e),i=r.get(a);i||(i=n.querySelector(us(a)),i||(e=Ee({src:e,async:!0,type:"module"},t),(t=ln.get(a))&&lv(e,t),i=n.createElement("script"),Ke(i),at(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function h1(e,t,n,r){var a=(a=Yr.current)?mc(a):null;if(!a)throw Error(A(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Wi(n.href),n=Ti(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Wi(n.href);var i=Ti(a).hoistableStyles,l=i.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,l),(i=a.querySelector(ss(e)))&&!i._p&&(l.instance=i,l.state.loading=5),ln.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ln.set(e,n),i||jz(a,e,n,l.state))),t&&r===null)throw Error(A(528,""));return l}if(t&&r!==null)throw Error(A(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=cl(n),n=Ti(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(A(444,e))}}function Wi(e){return'href="'+Zt(e)+'"'}function ss(e){return'link[rel="stylesheet"]['+e+"]"}function iT(e){return Ee({},e,{"data-precedence":e.precedence,precedence:null})}function jz(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),at(t,"link",n),Ke(t),e.head.appendChild(t))}function cl(e){return'[src="'+Zt(e)+'"]'}function us(e){return"script[async]"+e}function y1(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Zt(n.href)+'"]');if(r)return t.instance=r,Ke(r),r;var a=Ee({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Ke(r),at(r,"style",a),bu(r,n.precedence,e),t.instance=r;case"stylesheet":a=Wi(n.href);var i=e.querySelector(ss(a));if(i)return t.state.loading|=4,t.instance=i,Ke(i),i;r=iT(n),(a=ln.get(a))&&iv(r,a),i=(e.ownerDocument||e).createElement("link"),Ke(i);var l=i;return l._p=new Promise(function(o,s){l.onload=o,l.onerror=s}),at(i,"link",r),t.state.loading|=4,bu(i,n.precedence,e),t.instance=i;case"script":return i=cl(n.src),(a=e.querySelector(us(i)))?(t.instance=a,Ke(a),a):(r=n,(a=ln.get(i))&&(r=Ee({},n),lv(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ke(a),at(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(A(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,bu(r,n.precedence,e));return t.instance}function bu(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,l=0;l title"):null)}function Dz(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var No=null;function Bz(){}function kz(e,t,n){if(No===null)throw Error(A(475));var r=No;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var a=Wi(n.href),i=e.querySelector(ss(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=vc.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=i,Ke(i);return}i=e.ownerDocument||e,n=iT(n),(a=ln.get(a))&&iv(n,a),i=i.createElement("link"),Ke(i);var l=i;l._p=new Promise(function(o,s){l.onload=o,l.onerror=s}),at(i,"link",n),t.instance=i}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=vc.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function zz(){if(No===null)throw Error(A(475));var e=No;return e.stylesheets&&e.count===0&&Kh(e,e.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pT)}catch{}}pT(),DO.exports=bf;var Pz=DO.exports;const Fz=Ra(Pz);Fz.createRoot(document.getElementById("root")).render(g.jsx(ne.StrictMode,{children:g.jsx(m8,{})})); +`+n.stack}}function il(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function GO(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ub(e){if(il(e)!==e)throw Error(A(188))}function w8(e){var t=e.alternate;if(!t){if(t=il(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return ub(a),e;if(i===r)return ub(a),t;i=i.sibling}throw Error(A(188))}if(n.return!==r.return)n=a,r=i;else{for(var l=!1,o=a.child;o;){if(o===n){l=!0,n=a,r=i;break}if(o===r){l=!0,r=a,n=i;break}o=o.sibling}if(!l){for(o=i.child;o;){if(o===n){l=!0,n=i,r=a;break}if(o===r){l=!0,r=i,n=a;break}o=o.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==r)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function YO(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=YO(e),t!==null)return t;e=e.sibling}return null}var Bl=Array.isArray,Se=S8.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ma={pending:!1,data:null,method:null,action:null},uh=[],fi=-1;function Gn(e){return{current:e}}function We(e){0>fi||(e.current=uh[fi],uh[fi]=null,fi--)}function Te(e,t){fi++,uh[fi]=e.current,e.current=t}var Bn=Gn(null),Eo=Gn(null),Yr=Gn(null),Fu=Gn(null);function Qu(e,t){switch(Te(Yr,t),Te(Eo,e),Te(Bn,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?c1(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=c1(e),t=tT(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}We(Bn),Te(Bn,t)}function Yi(){We(Bn),We(Eo),We(Yr)}function ch(e){e.memoizedState!==null&&Te(Fu,e);var t=Bn.current,n=tT(t,e.type);t!==n&&(Te(Eo,e),Te(Bn,n))}function Ku(e){Eo.current===e&&(We(Bn),We(Eo)),Fu.current===e&&(We(Fu),Mo._currentValue=ma)}var fh=Object.prototype.hasOwnProperty,Em=Xe.unstable_scheduleCallback,jd=Xe.unstable_cancelCallback,A8=Xe.unstable_shouldYield,R8=Xe.unstable_requestPaint,kn=Xe.unstable_now,C8=Xe.unstable_getCurrentPriorityLevel,VO=Xe.unstable_ImmediatePriority,XO=Xe.unstable_UserBlockingPriority,Zu=Xe.unstable_NormalPriority,$8=Xe.unstable_LowPriority,PO=Xe.unstable_IdlePriority,N8=Xe.log,M8=Xe.unstable_setDisableYieldValue,Jo=null,Nt=null;function j8(e){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Jo,e,void 0,(e.current.flags&128)===128)}catch{}}function Ur(e){if(typeof N8=="function"&&M8(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Jo,e)}catch{}}var Mt=Math.clz32?Math.clz32:k8,D8=Math.log,B8=Math.LN2;function k8(e){return e>>>=0,e===0?32:31-(D8(e)/B8|0)|0}var As=128,Rs=4194304;function sa(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: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&4194176;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 Sf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,l=e.warmLanes;e=e.finishedLanes!==0;var o=n&134217727;return o!==0?(n=o&~a,n!==0?r=sa(n):(i&=o,i!==0?r=sa(i):e||(l=o&~l,l!==0&&(r=sa(l))))):(o=n&~a,o!==0?r=sa(o):i!==0?r=sa(i):e||(l=n&~l,l!==0&&(r=sa(l)))),r===0?0:t!==0&&t!==r&&!(t&a)&&(a=r&-r,l=t&-t,a>=l||a===32&&(l&4194176)!==0)?t:r}function Io(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function z8(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 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 FO(){var e=As;return As<<=1,!(As&4194176)&&(As=128),e}function QO(){var e=Rs;return Rs<<=1,!(Rs&62914560)&&(Rs=4194304),e}function Dd(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function es(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function L8(e,t,n,r,a,i){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),G8=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fb={},db={};function Y8(e){return fh.call(db,e)?!0:fh.call(fb,e)?!1:G8.test(e)?db[e]=!0:(fb[e]=!0,!1)}function cu(e,t,n){if(Y8(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Cs(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Kn(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function t_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function V8(e){var t=t_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wu(e){e._valueTracker||(e._valueTracker=V8(e))}function n_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=t_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ju(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 X8=/[\n"\\]/g;function Zt(e){return e.replace(X8,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ph(e,t,n,r,a,i,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ft(t)):e.value!==""+Ft(t)&&(e.value=""+Ft(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?hh(e,l,Ft(t)):n!=null?hh(e,l,Ft(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Ft(o):e.removeAttribute("name")}function r_(e,t,n,r,a,i,l,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;n=n!=null?""+Ft(n):"",t=t!=null?""+Ft(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l)}function hh(e,t,n){t==="number"&&Ju(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function wi(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a=Ql),bb=" ",Sb=!1;function c_(e,t){switch(e){case"keyup":return bk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function f_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pi=!1;function Ek(e,t){switch(e){case"compositionend":return f_(t);case"keypress":return t.which!==32?null:(Sb=!0,bb);case"textInput":return e=t.data,e===bb&&Sb?null:e;default:return null}}function xk(e,t){if(pi)return e==="compositionend"||!Am&&c_(e,t)?(e=s_(),du=Tm=Hr=null,pi=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Tb(n)}}function y_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function m_(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ju(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ju(e.document)}return t}function Rm(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")}function $k(e,t){var n=m_(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&y_(t.ownerDocument.documentElement,t)){if(r!==null&&Rm(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=wb(t,i);var l=wb(t,r);a&&l&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==l.node||n.focusOffset!==l.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(l.node,l.offset)):(e.setEnd(l.node,l.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,hi=null,vh=null,Zl=null,gh=!1;function Ab(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gh||hi==null||hi!==Ju(r)||(r=hi,"selectionStart"in r&&Rm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zl&&To(Zl,r)||(Zl=r,r=hc(vh,"onSelect"),0>=l,a-=l,or=1<<32-Mt(t)+a|n<w?($=T,T=null):$=T.sibling;var R=f(y,T,v[w],E);if(R===null){T===null&&(T=$);break}e&&T&&R.alternate===null&&t(y,T),p=i(R,p,w),O===null?_=R:O.sibling=R,O=R,T=$}if(w===v.length)return n(y,T),ae&&ua(y,w),_;if(T===null){for(;ww?($=T,T=null):$=T.sibling;var N=f(y,T,R.value,E);if(N===null){T===null&&(T=$);break}e&&T&&N.alternate===null&&t(y,T),p=i(N,p,w),O===null?_=N:O.sibling=N,O=N,T=$}if(R.done)return n(y,T),ae&&ua(y,w),_;if(T===null){for(;!R.done;w++,R=v.next())R=d(y,R.value,E),R!==null&&(p=i(R,p,w),O===null?_=R:O.sibling=R,O=R);return ae&&ua(y,w),_}for(T=r(T);!R.done;w++,R=v.next())R=h(T,y,w,R.value,E),R!==null&&(e&&R.alternate!==null&&T.delete(R.key===null?w:R.key),p=i(R,p,w),O===null?_=R:O.sibling=R,O=R);return e&&T.forEach(function(G){return t(y,G)}),ae&&ua(y,w),_}function x(y,p,v,E){if(typeof v=="object"&&v!==null&&v.type===ci&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ws:e:{for(var _=v.key;p!==null;){if(p.key===_){if(_=v.type,_===ci){if(p.tag===7){n(y,p.sibling),E=a(p,v.props.children),E.return=y,y=E;break e}}else if(p.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Nr&&Db(_)===p.type){n(y,p.sibling),E=a(p,v.props),Tl(E,v),E.return=y,y=E;break e}n(y,p);break}else t(y,p);p=p.sibling}v.type===ci?(E=ba(v.props.children,y.mode,E,v.key),E.return=y,y=E):(E=gu(v.type,v.key,v.props,null,y.mode,E),Tl(E,v),E.return=y,y=E)}return l(y);case jl:e:{for(_=v.key;p!==null;){if(p.key===_)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(y,p.sibling),E=a(p,v.children||[]),E.return=y,y=E;break e}else{n(y,p);break}else t(y,p);p=p.sibling}E=ep(v,y.mode,E),E.return=y,y=E}return l(y);case Nr:return _=v._init,v=_(v._payload),x(y,p,v,E)}if(Bl(v))return b(y,p,v,E);if(El(v)){if(_=El(v),typeof _!="function")throw Error(A(150));return v=_.call(v),S(y,p,v,E)}if(typeof v.then=="function")return x(y,p,Ms(v),E);if(v.$$typeof===lr)return x(y,p,Ds(y,v),E);js(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,p!==null&&p.tag===6?(n(y,p.sibling),E=a(p,v),E.return=y,y=E):(n(y,p),E=Id(v,y.mode,E),E.return=y,y=E),l(y)):n(y,p)}return function(y,p,v,E){try{Ao=0;var _=x(y,p,v,E);return Ri=null,_}catch(T){if(T===Wl)throw T;var O=It(29,T,null,y.mode);return O.lanes=E,O.return=y,O}finally{}}}var _a=A_(!0),R_=A_(!1),Pi=Gn(null),nc=Gn(0);function Bb(e,t){e=Sr,Te(nc,e),Te(Pi,t),Sr=e|t.baseLanes}function Eh(){Te(nc,Sr),Te(Pi,Pi.current)}function jm(){Sr=nc.current,We(Pi),We(nc)}var an=Gn(null),zn=null;function Dr(e){var t=e.alternate;Te(Ve,Ve.current&1),Te(an,e),zn===null&&(t===null||Pi.current!==null||t.memoizedState!==null)&&(zn=e)}function C_(e){if(e.tag===22){if(Te(Ve,Ve.current),Te(an,e),zn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(zn=e)}}else Br()}function Br(){Te(Ve,Ve.current),Te(an,an.current)}function ur(e){We(an),zn===e&&(zn=null),We(Ve)}var Ve=Gn(0);function rc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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}var Bk=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},kk=Xe.unstable_scheduleCallback,zk=Xe.unstable_NormalPriority,Ye={$$typeof:lr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dm(){return{controller:new Bk,data:new Map,refCount:0}}function rs(e){e.refCount--,e.refCount===0&&kk(zk,function(){e.controller.abort()})}var Il=null,xh=0,Fi=0,Ci=null;function Lk(e,t){if(Il===null){var n=Il=[];xh=0,Fi=rv(),Ci={status:"pending",value:void 0,then:function(r){n.push(r)}}}return xh++,t.then(kb,kb),t}function kb(){if(--xh===0&&Il!==null){Ci!==null&&(Ci.status="fulfilled");var e=Il;Il=null,Fi=0,Ci=null;for(var t=0;ti?i:8;var l=P.T,o={};P.T=o,Fm(e,!1,t,n);try{var s=a(),u=P.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=Uk(s,r);eo(e,t,c,jt(e))}else eo(e,t,r,jt(e))}catch(d){eo(e,t,{then:function(){},status:"rejected",reason:d},jt())}finally{Se.p=i,P.T=l}}function Vk(){}function Th(e,t,n,r){if(e.tag!==5)throw Error(A(476));var a=n2(e).queue;t2(e,a,t,ma,n===null?Vk:function(){return r2(e),n(r)})}function n2(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ma,baseState:ma,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:ma},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function r2(e){var t=n2(e).next.queue;eo(e,t,{},jt())}function Pm(){return ut(Mo)}function a2(){return Ge().memoizedState}function i2(){return Ge().memoizedState}function Xk(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jt();e=Vr(n);var r=Xr(t,e,n);r!==null&&(mt(r,t,n),no(r,t,n)),t={cache:Dm()},e.payload=t;return}t=t.return}}function Pk(e,t,n){var r=jt();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Cf(e)?o2(t,n):(n=$m(e,t,n,r),n!==null&&(mt(n,e,r),s2(n,t,r)))}function l2(e,t,n){var r=jt();eo(e,t,n,r)}function eo(e,t,n,r){var a={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cf(e))o2(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(a.hasEagerState=!0,a.eagerState=o,Bt(o,l))return Tf(e,t,a,0),be===null&&_f(),!1}catch{}finally{}if(n=$m(e,t,a,r),n!==null)return mt(n,e,r),s2(n,t,r),!0}return!1}function Fm(e,t,n,r){if(r={lane:2,revertLane:rv(),action:r,hasEagerState:!1,eagerState:null,next:null},Cf(e)){if(t)throw Error(A(479))}else t=$m(e,n,r,2),t!==null&&mt(t,e,2)}function Cf(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function o2(e,t){$i=ac=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function s2(e,t,n){if(n&4194176){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ZO(e,n)}}var Un={readContext:ut,use:Af,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useLayoutEffect:je,useInsertionEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useSyncExternalStore:je,useId:je};Un.useCacheRefresh=je;Un.useMemoCache=je;Un.useHostTransitionStatus=je;Un.useFormState=je;Un.useActionState=je;Un.useOptimistic=je;var ka={readContext:ut,use:Af,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Hb,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,mu(4194308,4,Z_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mu(4194308,4,e,t)},useInsertionEffect:function(e,t){mu(4,2,e,t)},useMemo:function(e,t){var n=gt();t=t===void 0?null:t;var r=e();if(Ta){Ur(!0);try{e()}finally{Ur(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=gt();if(n!==void 0){var a=n(t);if(Ta){Ur(!0);try{n(t)}finally{Ur(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=Pk.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Oh(e);var t=e.queue,n=l2.bind(null,Q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Vm,useDeferredValue:function(e,t){var n=gt();return Xm(n,e,t)},useTransition:function(){var e=Oh(!1);return e=t2.bind(null,Q,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Q,a=gt();if(ae){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),be===null)throw Error(A(349));te&60||D_(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Hb(k_.bind(null,r,i,e),[e]),r.flags|=2048,Qi(9,B_.bind(null,r,i,n,t),{destroy:void 0},null),n},useId:function(){var e=gt(),t=be.identifierPrefix;if(ae){var n=sr,r=or;n=(r&~(1<<32-Mt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ic++,0 title"))),at(i,r,n),i[st]=e,Ke(i),r=i;break e;case"link":var l=m1("link","href",a).get(r+(n.href||""));if(l){for(var o=0;o<\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?a.createElement(n,{is:r.is}):a.createElement(n)}}e[st]=t,e[xt]=r;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(at(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Jn(t)}}return we(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Jn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(A(166));if(e=Yr.current,_l(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ht,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||eT(e.nodeValue,n)),e||Oa(t)}else e=yc(e).createTextNode(r),e[st]=t,t.stateNode=e}return we(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=_l(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(A(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(A(317));a[st]=t}else ns(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;we(t),a=!1}else yn!==null&&(qh(yn),yn=null),a=!0;if(!a)return t.flags&256?(ur(t),t):(ur(t),null)}if(ur(t),t.flags&128)return t.lanes=n,t;if(n=r!==null,e=e!==null&&e.memoizedState!==null,n){r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool);var i=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Bs(t,t.updateQueue),we(t),null;case 4:return Yi(),e===null&&av(t.stateNode.containerInfo),we(t),null;case 10:return pr(t.type),we(t),null;case 19:if(We(Ve),a=t.memoizedState,a===null)return we(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)Al(a,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=rc(e),i!==null){for(t.flags|=128,Al(a,!1),e=i.updateQueue,t.updateQueue=e,Bs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)L2(n,e),n=n.sibling;return Te(Ve,Ve.current&1|2),t.child}e=e.sibling}a.tail!==null&&kn()>cc&&(t.flags|=128,r=!0,Al(a,!1),t.lanes=4194304)}else{if(!r)if(e=rc(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Bs(t,e),Al(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ae)return we(t),null}else 2*kn()-a.renderingStartTime>cc&&n!==536870912&&(t.flags|=128,r=!0,Al(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=kn(),t.sibling=null,e=Ve.current,Te(Ve,r?e&1|2:e&1),t):(we(t),null);case 22:case 23:return ur(t),jm(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),n=t.updateQueue,n!==null&&Bs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&We(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),pr(Ye),we(t),null;case 25:return null}throw Error(A(156,t.tag))}function Ik(e,t){switch(Mm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pr(Ye),Yi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ku(t),null;case 13:if(ur(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));ns()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return We(Ve),null;case 4:return Yi(),null;case 10:return pr(t.type),null;case 22:case 23:return ur(t),jm(),e!==null&&We(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pr(Ye),null;case 25:return null;default:return null}}function H2(e,t){switch(Mm(t),t.tag){case 3:pr(Ye),Yi();break;case 26:case 27:case 5:Ku(t);break;case 4:Yi();break;case 13:ur(t);break;case 19:We(Ve);break;case 10:pr(t.type);break;case 22:case 23:ur(t),jm(),e!==null&&We(ga);break;case 24:pr(Ye)}}var ez={getCacheForType:function(e){var t=ut(Ye),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},tz=typeof WeakMap=="function"?WeakMap:Map,Re=0,be=null,Z=null,te=0,ge=0,At=null,rr=!1,sl=!1,Im=!1,Sr=0,Me=0,ta=0,Sa=0,ev=0,en=0,Ki=0,lo=null,Cn=null,zh=!1,tv=0,cc=1/0,fc=null,Fr=null,ks=!1,ca=null,oo=0,Lh=0,Uh=null,so=0,Hh=null;function jt(){if(Re&2&&te!==0)return te&-te;if(P.T!==null){var e=Fi;return e!==0?e:rv()}return JO()}function q2(){en===0&&(en=!(te&536870912)||ae?FO():536870912);var e=an.current;return e!==null&&(e.flags|=32),en}function mt(e,t,n){(e===be&&ge===2||e.cancelPendingCommit!==null)&&(Zi(e,0),ar(e,te,en,!1)),es(e,n),(!(Re&2)||e!==be)&&(e===be&&(!(Re&2)&&(Sa|=n),Me===4&&ar(e,te,en,!1)),Yn(e))}function G2(e,t,n){if(Re&6)throw Error(A(327));var r=!n&&(t&60)===0&&(t&e.expiredLanes)===0||Io(e,t),a=r?az(e,t):tp(e,t,!0),i=r;do{if(a===0){sl&&!r&&ar(e,t,0,!1);break}else if(a===6)ar(e,t,0,!rr);else{if(n=e.current.alternate,i&&!nz(n)){a=tp(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var o=e;a=lo;var s=o.current.memoizedState.isDehydrated;if(s&&(Zi(o,l).flags|=256),l=tp(o,l,!1),l!==2){if(Im&&!s){o.errorRecoveryDisabledLanes|=i,Sa|=i,a=4;break e}i=Cn,Cn=a,i!==null&&qh(i)}a=l}if(i=!1,a!==2)continue}}if(a===1){Zi(e,0),ar(e,t,0,!0);break}e:{switch(r=e,a){case 0:case 1:throw Error(A(345));case 4:if((t&4194176)===t){ar(r,t,en,!rr);break e}break;case 2:Cn=null;break;case 3:case 5:break;default:throw Error(A(329))}if(r.finishedWork=n,r.finishedLanes=t,(t&62914560)===t&&(i=tv+300-kn(),10n?32:n,P.T=null,ca===null)var i=!1;else{n=Uh,Uh=null;var l=ca,o=oo;if(ca=null,oo=0,Re&6)throw Error(A(331));var s=Re;if(Re|=4,k2(l.current),j2(l,l.current,o,n),Re=s,os(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Jo,l)}catch{}i=!0}return i}finally{Se.p=a,P.T=r,Q2(e,t)}}return!1}function a1(e,t,n){t=Wt(n,t),t=Ah(e.stateNode,t,2),e=Xr(e,t,2),e!==null&&(es(e,2),Yn(e))}function ye(e,t,n){if(e.tag===3)a1(e,e,n);else for(;t!==null;){if(t.tag===3){a1(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fr===null||!Fr.has(r))){e=Wt(n,e),n=d2(2),r=Xr(t,n,2),r!==null&&(p2(n,r,t,e),es(r,2),Yn(r));break}}t=t.return}}function np(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new tz;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(Im=!0,a.add(n),e=oz.bind(null,e,t,n),t.then(e,e))}function oz(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,be===e&&(te&n)===n&&(Me===4||Me===3&&(te&62914560)===te&&300>kn()-tv?!(Re&2)&&Zi(e,0):ev|=n,Ki===te&&(Ki=0)),Yn(e)}function K2(e,t){t===0&&(t=QO()),e=Jr(e,t),e!==null&&(es(e,t),Yn(e))}function sz(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),K2(e,n)}function uz(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(A(314))}r!==null&&r.delete(t),K2(e,n)}function cz(e,t){return Em(e,t)}var dc=null,si=null,Yh=!1,pc=!1,rp=!1,Ea=0;function Yn(e){e!==si&&e.next===null&&(si===null?dc=si=e:si=si.next=e),pc=!0,Yh||(Yh=!0,dz(fz))}function os(e,t){if(!rp&&pc){rp=!0;do for(var n=!1,r=dc;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var l=r.suspendedLanes,o=r.pingedLanes;i=(1<<31-Mt(42|e)+1)-1,i&=a&~(l&~o),i=i&201326677?i&201326677|1:i?i|2:0}i!==0&&(n=!0,i1(r,i))}else i=te,i=Sf(r,r===be?i:0),!(i&3)||Io(r,i)||(n=!0,i1(r,i));r=r.next}while(n);rp=!1}}function fz(){pc=Yh=!1;var e=0;Ea!==0&&(Sz()&&(e=Ea),Ea=0);for(var t=kn(),n=null,r=dc;r!==null;){var a=r.next,i=Z2(r,t);i===0?(r.next=null,n===null?dc=a:n.next=a,a===null&&(si=n)):(n=r,(e!==0||i&3)&&(pc=!0)),r=a}os(e)}function Z2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0"u"?null:document;function aT(e,t,n){var r=ul;if(r&&typeof t=="string"&&t){var a=Zt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),p1.has(a)||(p1.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),at(t,"link",e),Ke(t),r.head.appendChild(t)))}}function Rz(e){_r.D(e),aT("dns-prefetch",e,null)}function Cz(e,t){_r.C(e,t),aT("preconnect",e,t)}function $z(e,t,n){_r.L(e,t,n);var r=ul;if(r&&e&&t){var a='link[rel="preload"][as="'+Zt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Zt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Zt(n.imageSizes)+'"]')):a+='[href="'+Zt(e)+'"]';var i=a;switch(t){case"style":i=Wi(e);break;case"script":i=cl(e)}ln.has(i)||(e=Ee({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ln.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(ss(i))||t==="script"&&r.querySelector(us(i))||(t=r.createElement("link"),at(t,"link",e),Ke(t),r.head.appendChild(t)))}}function Nz(e,t){_r.m(e,t);var n=ul;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Zt(r)+'"][href="'+Zt(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=cl(e)}if(!ln.has(i)&&(e=Ee({rel:"modulepreload",href:e},t),ln.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(us(i)))return}r=n.createElement("link"),at(r,"link",e),Ke(r),n.head.appendChild(r)}}}function Mz(e,t,n){_r.S(e,t,n);var r=ul;if(r&&e){var a=Ti(r).hoistableStyles,i=Wi(e);t=t||"default";var l=a.get(i);if(!l){var o={loading:0,preload:null};if(l=r.querySelector(ss(i)))o.loading=5;else{e=Ee({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ln.get(i))&&iv(e,n);var s=l=r.createElement("link");Ke(s),at(s,"link",e),s._p=new Promise(function(u,c){s.onload=u,s.onerror=c}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,bu(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:o},a.set(i,l)}}}function jz(e,t){_r.X(e,t);var n=ul;if(n&&e){var r=Ti(n).hoistableScripts,a=cl(e),i=r.get(a);i||(i=n.querySelector(us(a)),i||(e=Ee({src:e,async:!0},t),(t=ln.get(a))&&lv(e,t),i=n.createElement("script"),Ke(i),at(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function Dz(e,t){_r.M(e,t);var n=ul;if(n&&e){var r=Ti(n).hoistableScripts,a=cl(e),i=r.get(a);i||(i=n.querySelector(us(a)),i||(e=Ee({src:e,async:!0,type:"module"},t),(t=ln.get(a))&&lv(e,t),i=n.createElement("script"),Ke(i),at(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function h1(e,t,n,r){var a=(a=Yr.current)?mc(a):null;if(!a)throw Error(A(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Wi(n.href),n=Ti(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Wi(n.href);var i=Ti(a).hoistableStyles,l=i.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,l),(i=a.querySelector(ss(e)))&&!i._p&&(l.instance=i,l.state.loading=5),ln.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ln.set(e,n),i||Bz(a,e,n,l.state))),t&&r===null)throw Error(A(528,""));return l}if(t&&r!==null)throw Error(A(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=cl(n),n=Ti(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(A(444,e))}}function Wi(e){return'href="'+Zt(e)+'"'}function ss(e){return'link[rel="stylesheet"]['+e+"]"}function iT(e){return Ee({},e,{"data-precedence":e.precedence,precedence:null})}function Bz(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),at(t,"link",n),Ke(t),e.head.appendChild(t))}function cl(e){return'[src="'+Zt(e)+'"]'}function us(e){return"script[async]"+e}function y1(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Zt(n.href)+'"]');if(r)return t.instance=r,Ke(r),r;var a=Ee({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Ke(r),at(r,"style",a),bu(r,n.precedence,e),t.instance=r;case"stylesheet":a=Wi(n.href);var i=e.querySelector(ss(a));if(i)return t.state.loading|=4,t.instance=i,Ke(i),i;r=iT(n),(a=ln.get(a))&&iv(r,a),i=(e.ownerDocument||e).createElement("link"),Ke(i);var l=i;return l._p=new Promise(function(o,s){l.onload=o,l.onerror=s}),at(i,"link",r),t.state.loading|=4,bu(i,n.precedence,e),t.instance=i;case"script":return i=cl(n.src),(a=e.querySelector(us(i)))?(t.instance=a,Ke(a),a):(r=n,(a=ln.get(i))&&(r=Ee({},n),lv(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ke(a),at(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(A(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,bu(r,n.precedence,e));return t.instance}function bu(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,l=0;l title"):null)}function kz(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var No=null;function zz(){}function Lz(e,t,n){if(No===null)throw Error(A(475));var r=No;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var a=Wi(n.href),i=e.querySelector(ss(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=vc.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=i,Ke(i);return}i=e.ownerDocument||e,n=iT(n),(a=ln.get(a))&&iv(n,a),i=i.createElement("link"),Ke(i);var l=i;l._p=new Promise(function(o,s){l.onload=o,l.onerror=s}),at(i,"link",n),t.instance=i}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=vc.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function Uz(){if(No===null)throw Error(A(475));var e=No;return e.stylesheets&&e.count===0&&Kh(e,e.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pT)}catch{}}pT(),DO.exports=bf;var Qz=DO.exports;const Kz=Ra(Qz);Kz.createRoot(document.getElementById("root")).render(g.jsx(ne.StrictMode,{children:g.jsx(g8,{})})); diff --git a/src/pydase/frontend/index.html b/src/pydase/frontend/index.html index 7b2cdfc..f1c5e49 100644 --- a/src/pydase/frontend/index.html +++ b/src/pydase/frontend/index.html @@ -7,7 +7,7 @@ - +