"use strict";var wc=Object.create;var Ji=Object.defineProperty;var Tc=Object.getOwnPropertyDescriptor;var Oc=Object.getOwnPropertyNames;var Ec=Object.getPrototypeOf,Cc=Object.prototype.hasOwnProperty;var Rc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Oc(t))!Cc.call(e,o)&&o!==r&&Ji(e,o,{get:()=>t[o],enumerable:!(n=Tc(t,o))||n.enumerable});return e};var Ro=(e,t,r)=>(r=e!=null?wc(Ec(e)):{},Rc(t||!e||!e.__esModule?Ji(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("react"),ft=require("@react-three/drei"),$e=require("three"),_c=require("three-stdlib"),Pc=require("@react-three/fiber"),$=require("@mui/material"),ke=require("mobx-react-lite"),Yt=require("react-i18next"),$c=require("i18next-browser-languagedetector"),dt=require("mobx"),p=require("prop-types"),kc=require("@emotion/styled"),pr=require("@emotion/react"),Lt=require("@wandelbots/wandelbots-js"),Gn=require("lodash-es"),Ho=require("@react-spring/three"),jc=require("react-error-boundary");function Ea(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const N=Ea(W),ut=Ea($e);function Ot(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Wo={exports:{}},Ar={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Hi;function Ac(){if(Hi)return Ar;Hi=1;var e=W,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},f=null,v=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(v=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:v,props:d,_owner:o.current}}return Ar.Fragment=r,Ar.jsx=s,Ar.jsxs=s,Ar}var Ir={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Wi;function Ic(){return Wi||(Wi=1,process.env.NODE_ENV!=="production"&&function(){var e=W,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=Symbol.iterator,m="@@iterator";function h(g){if(g===null||typeof g!="object")return null;var E=y&&g[y]||g[m];return typeof E=="function"?E:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(g){{for(var E=arguments.length,A=new Array(E>1?E-1:0),L=1;L=1&&be>=0&&B[he]!==Pe[be];)be--;for(;he>=1&&be>=0;he--,be--)if(B[he]!==Pe[be]){if(he!==1||be!==1)do if(he--,be--,be<0||B[he]!==Pe[be]){var Ye=` `+B[he].replace(" at new "," at ");return g.displayName&&Ye.includes("")&&(Ye=Ye.replace("",g.displayName)),typeof g=="function"&&ct.set(g,Ye),Ye}while(he>=1&&be>=0);break}}}finally{lt=!1,at.current=ne,_t(),Error.prepareStackTrace=F}var or=g?g.displayName||g.name:"",Ut=or?Be(or):"";return typeof g=="function"&&ct.set(g,Ut),Ut}function Ue(g,E,A){return xt(g,!1)}function j(g){var E=g.prototype;return!!(E&&E.isReactComponent)}function te(g,E,A){if(g==null)return"";if(typeof g=="function")return xt(g,j(g));if(typeof g=="string")return Be(g);switch(g){case c:return Be("Suspense");case u:return Be("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case l:return Ue(g.render);case d:return te(g.type,E,A);case f:{var L=g,F=L._payload,ne=L._init;try{return te(ne(F),E,A)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,Ae={},Ie=S.ReactDebugCurrentFrame;function Pt(g){if(g){var E=g._owner,A=te(g.type,g._source,E?E.type:null);Ie.setExtraStackFrame(A)}else Ie.setExtraStackFrame(null)}function Te(g,E,A,L,F){{var ne=Function.call.bind(de);for(var H in g)if(ne(g,H)){var B=void 0;try{if(typeof g[H]!="function"){var Pe=Error((L||"React class")+": "+A+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pe.name="Invariant Violation",Pe}B=g[H](E,H,L,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){B=he}B&&!(B instanceof Error)&&(Pt(F),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",A,H,typeof B),Pt(null)),B instanceof Error&&!(B.message in Ae)&&(Ae[B.message]=!0,Pt(F),T("Failed %s type: %s",A,B.message),Pt(null))}}}var $t=Array.isArray;function Ft(g){return $t(g)}function Er(g){{var E=typeof Symbol=="function"&&Symbol.toStringTag,A=E&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A}}function Cr(g){try{return Rr(g),!1}catch{return!0}}function Rr(g){return""+g}function er(g){if(Cr(g))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Er(g)),Rr(g)}var ot=S.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0},I,D,K;K={};function Q(g){if(de.call(g,"ref")){var E=Object.getOwnPropertyDescriptor(g,"ref").get;if(E&&E.isReactWarning)return!1}return g.ref!==void 0}function Y(g){if(de.call(g,"key")){var E=Object.getOwnPropertyDescriptor(g,"key").get;if(E&&E.isReactWarning)return!1}return g.key!==void 0}function ze(g,E){if(typeof g.ref=="string"&&ot.current&&E&&ot.current.stateNode!==E){var A=q(ot.current.type);K[A]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',q(ot.current.type),g.ref),K[A]=!0)}}function Ke(g,E){{var A=function(){I||(I=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};A.isReactWarning=!0,Object.defineProperty(g,"key",{get:A,configurable:!0})}}function re(g,E){{var A=function(){D||(D=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};A.isReactWarning=!0,Object.defineProperty(g,"ref",{get:A,configurable:!0})}}var Le=function(g,E,A,L,F,ne,H){var B={$$typeof:t,type:g,key:E,ref:A,props:H,_owner:ne};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function kt(g,E,A,L,F){{var ne,H={},B=null,Pe=null;A!==void 0&&(er(A),B=""+A),Y(E)&&(er(E.key),B=""+E.key),Q(E)&&(Pe=E.ref,ze(E,F));for(ne in E)de.call(E,ne)&&!P.hasOwnProperty(ne)&&(H[ne]=E[ne]);if(g&&g.defaultProps){var he=g.defaultProps;for(ne in he)H[ne]===void 0&&(H[ne]=he[ne])}if(B||Pe){var be=typeof g=="function"?g.displayName||g.name||"Unknown":g;B&&Ke(H,be),Pe&&re(H,be)}return Le(g,B,Pe,F,L,ot.current,H)}}var tr=S.ReactCurrentOwner,_r=S.ReactDebugCurrentFrame;function St(g){if(g){var E=g._owner,A=te(g.type,g._source,E?E.type:null);_r.setExtraStackFrame(A)}else _r.setExtraStackFrame(null)}var Vt;Vt=!1;function Bt(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Pr(){{if(tr.current){var g=q(tr.current.type);if(g)return` Check the render method of \``+g+"`."}return""}}function $r(g){return""}var cn={};function kr(g){{var E=Pr();if(!E){var A=typeof g=="string"?g:g.displayName||g.name;A&&(E=` Check the top-level render call using <`+A+">.")}return E}}function rr(g,E){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var A=kr(E);if(cn[A])return;cn[A]=!0;var L="";g&&g._owner&&g._owner!==tr.current&&(L=" It was passed a child from "+q(g._owner.type)+"."),St(g),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,L),St(null)}}function nr(g,E){{if(typeof g!="object")return;if(Ft(g))for(var A=0;A",B=" Did you accidentally export a JSX literal instead of a component?"):he=typeof g,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,B)}var be=kt(g,E,A,F,ne);if(be==null)return be;if(H){var Ye=E.children;if(Ye!==void 0)if(L)if(Ft(Ye)){for(var or=0;or0?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}";if(!un[Ut+Co]){var xc=Ne.length>0?"{"+Ne.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,Co,Ut,xc,Ut),un[Ut+Co]=!0}}return g===n?wo(be):So(be),be}}function To(g,E,A){return fn(g,E,A,!0)}function Oo(g,E,A){return fn(g,E,A,!1)}var jr=Oo,Eo=To;Ir.Fragment=n,Ir.jsx=jr,Ir.jsxs=Eo}()),Ir}process.env.NODE_ENV==="production"?Wo.exports=Ac():Wo.exports=Ic();var b=Wo.exports;function Lc(){return b.jsx(ft.Environment,{children:b.jsx(Nc,{})})}function Nc({positions:e=[2,0,2,0,2,0,2,0]}){return b.jsxs(b.Fragment,{children:[b.jsx(ft.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),b.jsx("group",{rotation:[0,.5,0],children:b.jsx("group",{children:e.map((t,r)=>b.jsx(ft.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),b.jsx(ft.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),b.jsx(ft.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),b.jsx(ft.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),b.jsx(ft.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),b.jsx(ft.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Mc(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new ut.Vector3(e[0].x,e[0].y,e[0].z),r=new ut.Vector3(e[1].x,e[1].y,e[1].z),n=new ut.Vector3(e[2].x,e[2].y,e[2].z),o=new ut.Vector3().subVectors(r,t),i=new ut.Vector3().subVectors(n,t),s=new ut.Vector3().crossVectors(o,i).normalize();for(let a=3;a1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:s}}function Dc({safetyZones:e,...t}){return b.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((i,s)=>{if(!i.convex_hull)return null;const a=i.convex_hull.vertices.map(u=>new ut.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=Mc(a);if(l.isCoplanar&&l.normal){const d=new ut.Vector3().addVectors(a[0],l.normal.multiplyScalar(1e-4));a.push(d)}let c;try{c=new _c.ConvexGeometry(a)}catch(u){return console.log("Error creating ConvexGeometry:",u),null}return b.jsx(b.Fragment,{children:b.jsx("mesh",{geometry:c,children:b.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-s},n)},`${n}-${s}`)})})})})}function Jr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r0?Ee(vr,--Fe):0,br--,ve===10&&(br=1,Kn--),ve}function He(){return ve=Fe2||Wr(ve)>3?"":" "}function eu(e,t){for(;--t&&He()&&!(ve<48||ve>102||ve>57&&ve<65||ve>70&&ve<97););return Zr(e,Tn()+(t<6&&ht()==32&&He()==32))}function qo(e){for(;He();)switch(ve){case e:return Fe;case 34:case 39:e!==34&&e!==39&&qo(ve);break;case 40:e===41&&qo(e);break;case 92:He();break}return Fe}function tu(e,t){for(;He()&&e+ve!==57;)if(e+ve===84&&ht()===47)break;return"/*"+Zr(t,Fe-1)+"*"+qn(e===47?e:He())}function ru(e){for(;!Wr(ht());)He();return Zr(e,Fe)}function nu(e){return ka(En("",null,null,null,[""],e=$a(e),0,[0],e))}function En(e,t,r,n,o,i,s,a,l){for(var c=0,u=0,d=s,f=0,v=0,y=0,m=1,h=1,S=1,T=0,k="",O=o,w=i,C=n,R=k;h;)switch(y=T,T=He()){case 40:if(y!=108&&Ee(R,d-1)==58){Go(R+=ie(On(T),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:R+=On(T);break;case 9:case 10:case 13:case 32:R+=Qc(y);break;case 92:R+=eu(Tn()-1,7);continue;case 47:switch(ht()){case 42:case 47:dn(ou(tu(He(),Tn()),t,r),l);break;default:R+="/"}break;case 123*m:a[c++]=pt(R)*S;case 125*m:case 59:case 0:switch(T){case 0:case 125:h=0;case 59+u:S==-1&&(R=ie(R,/\f/g,"")),v>0&&pt(R)-d&&dn(v>32?qi(R+";",n,r,d-1):qi(ie(R," ","")+";",n,r,d-2),l);break;case 59:R+=";";default:if(dn(C=Gi(R,t,r,c,u,o,a,k,O=[],w=[],d),i),T===123)if(u===0)En(R,t,C,C,O,i,d,a,w);else switch(f===99&&Ee(R,3)===110?100:f){case 100:case 108:case 109:case 115:En(e,C,C,n&&dn(Gi(e,C,C,0,0,o,a,k,o,O=[],d),w),o,w,d,a,n?O:w);break;default:En(R,C,C,C,[""],w,0,a,w)}}c=u=v=0,m=S=1,k=R="",d=s;break;case 58:d=1+pt(R),v=y;default:if(m<1){if(T==123)--m;else if(T==125&&m++==0&&Zc()==125)continue}switch(R+=qn(T),T*m){case 38:S=u>0?1:(R+="\f",-1);break;case 44:a[c++]=(pt(R)-1)*S,S=1;break;case 64:ht()===45&&(R+=On(He())),f=ht(),u=d=pt(k=R+=ru(Tn())),T++;break;case 45:y===45&&pt(R)==2&&(m=0)}}return i}function Gi(e,t,r,n,o,i,s,a,l,c,u){for(var d=o-1,f=o===0?i:[""],v=bi(f),y=0,m=0,h=0;y0?f[S]+" "+T:ie(T,/&\f/g,f[S])))&&(l[h++]=k);return Yn(e,t,r,o===0?mi:a,l,c,u)}function ou(e,t,r){return Yn(e,t,r,Ca,qn(Xc()),Hr(e,2,-2),0)}function qi(e,t,r,n){return Yn(e,t,r,yi,Hr(e,0,n),Hr(e,n+1,-1),n)}function gr(e,t){for(var r="",n=bi(e),o=0;o6)switch(Ee(e,t+1)){case 109:if(Ee(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+An+(Ee(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Go(e,"stretch")?ja(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ee(e,t+1)!==115)break;case 6444:switch(Ee(e,pt(e)-3-(~Go(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Ee(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(Ee(e,t+11)){case 114:return oe+e+Re+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+Re+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+Re+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+Re+e+e}return e}var pu=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case yi:t.return=ja(t.value,t.length);break;case Ra:return gr([Lr(t,{value:ie(t.value,"@","@"+oe)})],o);case mi:if(t.length)return Yc(t.props,function(i){switch(Kc(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gr([Lr(t,{props:[ie(i,/:(read-\w+)/,":"+An+"$1")]})],o);case"::placeholder":return gr([Lr(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),Lr(t,{props:[ie(i,/:(plac\w+)/,":"+An+"$1")]}),Lr(t,{props:[ie(i,/:(plac\w+)/,Re+"input-$1")]})],o)}return""})}},gu=[pu],hu=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var h=m.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||gu,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var h=m.getAttribute("data-emotion").split(" "),S=1;St(mu(o)?r:o):t;return b.jsx(pr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Ia.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});/** * @mui/styled-engine v5.16.6 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function La(e,t){const r=kc(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(` `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const Na=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},yu=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ia,StyledEngineProvider:Aa,ThemeContext:pr.ThemeContext,css:pr.css,default:La,internal_processStyles:Na,keyframes:pr.keyframes},Symbol.toStringTag,{value:"Module"}));function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[r]=Ma(e[r])}),t}function et(e,t,r={clone:!0}){const n=r.clone?_({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach(o=>{wt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wt(e[o])?n[o]=et(e[o],t[o],r):r.clone?n[o]=wt(t[o])?Ma(t[o]):t[o]:n[o]=t[o]}),n}const bu=Object.freeze(Object.defineProperty({__proto__:null,default:et,isPlainObject:wt},Symbol.toStringTag,{value:"Module"})),vu=["values","unit","step"],xu=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>_({},r,{[n.key]:n.val}),{})};function Da(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ve(e,vu),i=xu(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function c(f,v){const y=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:v)-n/100}${r})`}function u(f){return s.indexOf(f)+1`@media (min-width:${vi[e]}px)`};function it(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Yi;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=r(t[l]),s),{})}if(typeof t=="object"){const i=n.breakpoints||Yi;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||vi).indexOf(a)!==-1){const l=i.up(a);s[l]=r(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return r(t)}function Fa(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Va(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function wu(e,...t){const r=Fa(e),n=[r,...t].reduce((o,i)=>et(o,i),{});return Va(Object.keys(r),n)}function Tu(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i{e[o]!=null&&(r[o]=!0)}),r}function _o({values:e,breakpoints:t,base:r}){const n=r||Tu(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((s,a,l)=>(Array.isArray(e)?(s[a]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[i],i=a):s[a]=e,s),{})}function Ce(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ou=Object.freeze(Object.defineProperty({__proto__:null,default:Ce},Symbol.toStringTag,{value:"Module"}));function Xn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function In(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Xn(e,r)||n,t&&(o=t(o,n,e)),o}function me(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Xn(l,n)||{};return it(s,a,d=>{let f=In(c,o,d);return d===f&&typeof d=="string"&&(f=In(c,o,`${t}${d==="default"?"":Ce(d)}`,d)),r===!1?f:{[r]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Mt}:{},i.filterProps=[t],i}function Eu(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Cu={m:"margin",p:"padding"},Ru={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_u=Eu(e=>{if(e.length>2)if(Xi[e])e=Xi[e];else return[e];const[t,r]=e.split(""),n=Cu[t],o=Ru[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Zn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Pu=[...Zn,...Qn];function Qr(e,t,r,n){var o;const i=(o=Xn(e,t,!1))!=null?o:r;return typeof i=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`),i*s):Array.isArray(i)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(` `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(` `))),i[s]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(` `)),()=>{})}function xi(e){return Qr(e,"spacing",8,"spacing")}function Ht(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function $u(e,t){return r=>e.reduce((n,o)=>(n[o]=Ht(t,r),n),{})}function ku(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=_u(r),i=$u(o,n),s=e[r];return it(e,s,i)}function Ba(e,t){const r=xi(e.theme);return Object.keys(e).map(n=>ku(e,t,n,r)).reduce(Vr,{})}function pe(e){return Ba(e,Zn)}pe.propTypes=process.env.NODE_ENV!=="production"?Zn.reduce((e,t)=>(e[t]=Mt,e),{}):{};pe.filterProps=Zn;function ge(e){return Ba(e,Qn)}ge.propTypes=process.env.NODE_ENV!=="production"?Qn.reduce((e,t)=>(e[t]=Mt,e),{}):{};ge.filterProps=Qn;process.env.NODE_ENV!=="production"&&Pu.reduce((e,t)=>(e[t]=Mt,e),{});function ju(e=8){if(e.mui)return e;const t=xi({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function eo(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Vr(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ze(e){return typeof e!="number"?e:`${e}px solid`}function rt(e,t){return me({prop:e,themeKey:"borders",transform:t})}const Au=rt("border",Ze),Iu=rt("borderTop",Ze),Lu=rt("borderRight",Ze),Nu=rt("borderBottom",Ze),Mu=rt("borderLeft",Ze),Du=rt("borderColor"),Fu=rt("borderTopColor"),Vu=rt("borderRightColor"),Bu=rt("borderBottomColor"),Uu=rt("borderLeftColor"),zu=rt("outline",Ze),Ju=rt("outlineColor"),to=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Qr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ht(t,n)});return it(e,e.borderRadius,r)}return null};to.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Mt}:{};to.filterProps=["borderRadius"];eo(Au,Iu,Lu,Nu,Mu,Du,Fu,Vu,Bu,Uu,to,zu,Ju);const ro=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Qr(e.theme,"spacing",8,"gap"),r=n=>({gap:Ht(t,n)});return it(e,e.gap,r)}return null};ro.propTypes=process.env.NODE_ENV!=="production"?{gap:Mt}:{};ro.filterProps=["gap"];const no=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Qr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ht(t,n)});return it(e,e.columnGap,r)}return null};no.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Mt}:{};no.filterProps=["columnGap"];const oo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Qr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ht(t,n)});return it(e,e.rowGap,r)}return null};oo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Mt}:{};oo.filterProps=["rowGap"];const Hu=me({prop:"gridColumn"}),Wu=me({prop:"gridRow"}),Gu=me({prop:"gridAutoFlow"}),qu=me({prop:"gridAutoColumns"}),Ku=me({prop:"gridAutoRows"}),Yu=me({prop:"gridTemplateColumns"}),Xu=me({prop:"gridTemplateRows"}),Zu=me({prop:"gridTemplateAreas"}),Qu=me({prop:"gridArea"});eo(ro,no,oo,Hu,Wu,Gu,qu,Ku,Yu,Xu,Zu,Qu);function hr(e,t){return t==="grey"?t:e}const ef=me({prop:"color",themeKey:"palette",transform:hr}),tf=me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hr}),rf=me({prop:"backgroundColor",themeKey:"palette",transform:hr});eo(ef,tf,rf);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const nf=me({prop:"width",transform:Je}),Si=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const i=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||vi[r];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Je(r)}};return it(e,e.maxWidth,t)}return null};Si.filterProps=["maxWidth"];const of=me({prop:"minWidth",transform:Je}),sf=me({prop:"height",transform:Je}),af=me({prop:"maxHeight",transform:Je}),lf=me({prop:"minHeight",transform:Je});me({prop:"size",cssProperty:"width",transform:Je});me({prop:"size",cssProperty:"height",transform:Je});const cf=me({prop:"boxSizing"});eo(nf,Si,of,sf,af,lf,cf);const en={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:to},color:{themeKey:"palette",transform:hr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:hr},backgroundColor:{themeKey:"palette",transform:hr},p:{style:ge},pt:{style:ge},pr:{style:ge},pb:{style:ge},pl:{style:ge},px:{style:ge},py:{style:ge},padding:{style:ge},paddingTop:{style:ge},paddingRight:{style:ge},paddingBottom:{style:ge},paddingLeft:{style:ge},paddingX:{style:ge},paddingY:{style:ge},paddingInline:{style:ge},paddingInlineStart:{style:ge},paddingInlineEnd:{style:ge},paddingBlock:{style:ge},paddingBlockStart:{style:ge},paddingBlockEnd:{style:ge},m:{style:pe},mt:{style:pe},mr:{style:pe},mb:{style:pe},ml:{style:pe},mx:{style:pe},my:{style:pe},margin:{style:pe},marginTop:{style:pe},marginRight:{style:pe},marginBottom:{style:pe},marginLeft:{style:pe},marginX:{style:pe},marginY:{style:pe},marginInline:{style:pe},marginInlineStart:{style:pe},marginInlineEnd:{style:pe},marginBlock:{style:pe},marginBlockStart:{style:pe},marginBlockEnd:{style:pe},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:ro},rowGap:{style:oo},columnGap:{style:no},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Je},maxWidth:{style:Si},minWidth:{transform:Je},height:{transform:Je},maxHeight:{transform:Je},minHeight:{transform:Je},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function uf(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function ff(e,t){return typeof e=="function"?e(t):e}function Ua(){function e(r,n,o,i){const s={[r]:n,theme:o},a=i[r];if(!a)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const f=Xn(o,c)||{};return d?d(s):it(s,n,y=>{let m=In(f,u,y);return y===m&&typeof y=="string"&&(m=In(f,u,`${r}${y==="default"?"":Ce(y)}`,y)),l===!1?m:{[l]:m}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const s=(n=i.unstable_sxConfig)!=null?n:en;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=Fa(i.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(v=>{const y=ff(c[v],i);if(y!=null)if(typeof y=="object")if(s[v])f=Vr(f,e(v,y,i,s));else{const m=it({theme:i},y,h=>({[v]:h}));uf(m,y)?f[v]=t({sx:y,theme:i}):f=Vr(f,m)}else f=Vr(f,e(v,y,i,s))}),Va(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const tn=Ua();tn.filterProps=["sx"];function za(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const df=["breakpoints","palette","spacing","shape"];function rn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,s=Ve(e,df),a=Da(r),l=ju(o);let c=et({breakpoints:a,direction:"ltr",components:{},palette:_({mode:"light"},n),spacing:l,shape:_({},Su,i)},s);return c.applyStyles=za,c=t.reduce((u,d)=>et(u,d),c),c.unstable_sxConfig=_({},en,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return tn({sx:d,theme:this})},c}const pf=Object.freeze(Object.defineProperty({__proto__:null,default:rn,private_createBreakpoints:Da,unstable_applyStyles:za},Symbol.toStringTag,{value:"Module"}));function gf(e){return Object.keys(e).length===0}function hf(e=null){const t=N.useContext(pr.ThemeContext);return!t||gf(t)?e:t}const mf=rn();function yf(e=mf){return hf(e)}const bf=["sx"],vf=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:en;return Object.keys(e).forEach(i=>{o[i]?n.systemProps[i]=e[i]:n.otherProps[i]=e[i]}),n};function Ja(e){const{sx:t}=e,r=Ve(e,bf),{systemProps:n,otherProps:o}=vf(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return wt(a)?_({},n,a):n}:i=_({},n,t),_({},o,{sx:i})}const xf=Object.freeze(Object.defineProperty({__proto__:null,default:tn,extendSxProp:Ja,unstable_createStyleFunctionSx:Ua,unstable_defaultSxConfig:en},Symbol.toStringTag,{value:"Module"})),Zi=e=>e,Sf=()=>{let e=Zi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zi}}},Ha=Sf();function Wa(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{n[o]=nn(e,o,r)}),n}var Yo={exports:{}},ae={};/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Qi;function Tf(){if(Qi)return ae;Qi=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(h){if(typeof h=="object"&&h!==null){var S=h.$$typeof;switch(S){case e:switch(h=h.type,h){case r:case o:case n:case c:case u:return h;default:switch(h=h&&h.$$typeof,h){case a:case s:case l:case f:case d:case i:return h;default:return S}}case t:return S}}}return ae.ContextConsumer=s,ae.ContextProvider=i,ae.Element=e,ae.ForwardRef=l,ae.Fragment=r,ae.Lazy=f,ae.Memo=d,ae.Portal=t,ae.Profiler=o,ae.StrictMode=n,ae.Suspense=c,ae.SuspenseList=u,ae.isAsyncMode=function(){return!1},ae.isConcurrentMode=function(){return!1},ae.isContextConsumer=function(h){return m(h)===s},ae.isContextProvider=function(h){return m(h)===i},ae.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ae.isForwardRef=function(h){return m(h)===l},ae.isFragment=function(h){return m(h)===r},ae.isLazy=function(h){return m(h)===f},ae.isMemo=function(h){return m(h)===d},ae.isPortal=function(h){return m(h)===t},ae.isProfiler=function(h){return m(h)===o},ae.isStrictMode=function(h){return m(h)===n},ae.isSuspense=function(h){return m(h)===c},ae.isSuspenseList=function(h){return m(h)===u},ae.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===o||h===n||h===c||h===u||h===v||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===d||h.$$typeof===i||h.$$typeof===s||h.$$typeof===l||h.$$typeof===y||h.getModuleId!==void 0)},ae.typeOf=m,ae}var le={};/** * @license React * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var es;function Of(){return es||(es=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=!1,m=!1,h=!1,S=!1,T=!1,k;k=Symbol.for("react.module.reference");function O(j){return!!(typeof j=="string"||typeof j=="function"||j===r||j===o||T||j===n||j===c||j===u||S||j===v||y||m||h||typeof j=="object"&&j!==null&&(j.$$typeof===f||j.$$typeof===d||j.$$typeof===i||j.$$typeof===s||j.$$typeof===l||j.$$typeof===k||j.getModuleId!==void 0))}function w(j){if(typeof j=="object"&&j!==null){var te=j.$$typeof;switch(te){case e:var de=j.type;switch(de){case r:case o:case n:case c:case u:return de;default:var Ae=de&&de.$$typeof;switch(Ae){case a:case s:case l:case f:case d:case i:return Ae;default:return te}}case t:return te}}}var C=s,R=i,z=e,se=l,V=r,M=f,G=d,q=t,Z=o,X=n,Se=c,ce=u,ee=!1,Oe=!1;function je(j){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function nt(j){return Oe||(Oe=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function vt(j){return w(j)===s}function Ge(j){return w(j)===i}function we(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function _t(j){return w(j)===l}function at(j){return w(j)===r}function qe(j){return w(j)===f}function Be(j){return w(j)===d}function lt(j){return w(j)===t}function ct(j){return w(j)===o}function Dt(j){return w(j)===n}function xt(j){return w(j)===c}function Ue(j){return w(j)===u}le.ContextConsumer=C,le.ContextProvider=R,le.Element=z,le.ForwardRef=se,le.Fragment=V,le.Lazy=M,le.Memo=G,le.Portal=q,le.Profiler=Z,le.StrictMode=X,le.Suspense=Se,le.SuspenseList=ce,le.isAsyncMode=je,le.isConcurrentMode=nt,le.isContextConsumer=vt,le.isContextProvider=Ge,le.isElement=we,le.isForwardRef=_t,le.isFragment=at,le.isLazy=qe,le.isMemo=Be,le.isPortal=lt,le.isProfiler=ct,le.isStrictMode=Dt,le.isSuspense=xt,le.isSuspenseList=Ue,le.isValidElementType=O,le.typeOf=w}()),le}process.env.NODE_ENV==="production"?Yo.exports=Tf():Yo.exports=Of();var ts=Yo.exports;const Ef=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function qa(e){const t=`${e}`.match(Ef);return t&&t[1]||""}function Ka(e,t=""){return e.displayName||e.name||qa(e)||t}function rs(e,t,r){const n=Ka(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Ya(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ka(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ts.ForwardRef:return rs(e,e.render,"ForwardRef");case ts.Memo:return rs(e,e.type,"memo");default:return}}}const Cf=Object.freeze(Object.defineProperty({__proto__:null,default:Ya,getFunctionName:qa},Symbol.toStringTag,{value:"Module"})),Rf=["ownerState"],_f=["variants"],Pf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $f(e){return Object.keys(e).length===0}function kf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Po(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jf=rn(),ns=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function pn({defaultTheme:e,theme:t,themeId:r}){return $f(t)?e:t[r]||t}function Af(e){return e?(t,r)=>r[e]:null}function Cn(e,t){let{ownerState:r}=t,n=Ve(t,Rf);const o=typeof e=="function"?e(_({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>Cn(i,_({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=Ve(o,_f);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props(_({ownerState:r},n,r)):Object.keys(l.props).forEach(u=>{(r==null?void 0:r[u])!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(_({ownerState:r},n,r)):l.style))}),a}return o}function If(e={}){const{themeId:t,defaultTheme:r=jf,rootShouldForwardProp:n=Po,slotShouldForwardProp:o=Po}=e,i=s=>tn(_({},s,{theme:pn(_({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{Na(s,w=>w.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Af(ns(c))}=a,v=Ve(a,Pf),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=d||!1;let h;process.env.NODE_ENV!=="production"&&l&&(h=`${l}-${ns(c||"Root")}`);let S=Po;c==="Root"||c==="root"?S=n:c?S=o:kf(s)&&(S=void 0);const T=La(s,_({shouldForwardProp:S,label:h},v)),k=w=>typeof w=="function"&&w.__emotion_real!==w||wt(w)?C=>Cn(w,_({},C,{theme:pn({theme:C.theme,defaultTheme:r,themeId:t})})):w,O=(w,...C)=>{let R=k(w);const z=C?C.map(k):[];l&&f&&z.push(M=>{const G=pn(_({},M,{defaultTheme:r,themeId:t}));if(!G.components||!G.components[l]||!G.components[l].styleOverrides)return null;const q=G.components[l].styleOverrides,Z={};return Object.entries(q).forEach(([X,Se])=>{Z[X]=Cn(Se,_({},M,{theme:G}))}),f(M,Z)}),l&&!y&&z.push(M=>{var G;const q=pn(_({},M,{defaultTheme:r,themeId:t})),Z=q==null||(G=q.components)==null||(G=G[l])==null?void 0:G.variants;return Cn({variants:Z},_({},M,{theme:q}))}),m||z.push(i);const se=z.length-C.length;if(Array.isArray(w)&&se>0){const M=new Array(se).fill("");R=[...w,...M],R.raw=[...w.raw,...M]}const V=T(R,...z);if(process.env.NODE_ENV!=="production"){let M;l&&(M=`${l}${Ce(c||"")}`),M===void 0&&(M=`Styled(${Ya(s)})`),V.displayName=M}return s.muiName&&(V.muiName=s.muiName),V};return T.withConfig&&(O.withConfig=T.withConfig),O}}const Lf=If();function Ln(e,t){const r=_({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=_({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=_({},i),Object.keys(o).forEach(s=>{r[n][s]=Ln(o[s],i[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Nf(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Ln(t.components[r].defaultProps,n)}function Mf({props:e,name:t,defaultTheme:r,themeId:n}){let o=yf(r);return n&&(o=o[n]||o),Nf({theme:o,name:t,props:e})}const wi=typeof window<"u"?N.useLayoutEffect:N.useEffect;function dr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Df=Object.freeze(Object.defineProperty({__proto__:null,default:dr},Symbol.toStringTag,{value:"Module"}));function os(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Ff(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Vf(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function Bf(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,i,s)=>{const a=o||"<>",l=s||n;return typeof r[n]<"u"?new Error(`The ${i} \`${l}\` of \`${a}\` is deprecated. ${t}`):null}}function Uf(e,t){var r,n;return N.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function mr(e){return e&&e.ownerDocument||document}function zf(e){return mr(e).defaultView||window}function Jf(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?_({},t.propTypes):null;return o=>(i,s,a,l,c,...u)=>{const d=c||s,f=r==null?void 0:r[d];if(f){const v=f(i,s,a,l,c,...u);if(v)return v}return typeof i[s]<"u"&&!i[o]?new Error(`The prop \`${d}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function Xa(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let is=0;function Hf(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(is+=1,r(`mui-${is}`))},[t]),n}const ss=N.useId;function Wf(e){if(ss!==void 0){const t=ss();return e??t}return Hf(e)}function Gf(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Za({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[i,s]=N.useState(t),a=o?e:i;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(` `))},[n,r,e]);const{current:c}=N.useRef(t);N.useEffect(()=>{!o&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(` `))},[JSON.stringify(t)])}const l=N.useCallback(c=>{o||s(c)},[]);return[a,l]}function Rn(e){const t=N.useRef(e);return wi(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Nn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Xa(r,t)})},e)}class Ti{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ti}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let io=!0,Xo=!1;const qf=new Ti,Kf={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 Yf(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Kf[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Xf(e){e.metaKey||e.altKey||e.ctrlKey||(io=!0)}function $o(){io=!1}function Zf(){this.visibilityState==="hidden"&&Xo&&(io=!0)}function Qf(e){e.addEventListener("keydown",Xf,!0),e.addEventListener("mousedown",$o,!0),e.addEventListener("pointerdown",$o,!0),e.addEventListener("touchstart",$o,!0),e.addEventListener("visibilitychange",Zf,!0)}function ed(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return io||Yf(t)}function Qa(){const e=N.useCallback(o=>{o!=null&&Qf(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(Xo=!0,qf.start(100,()=>{Xo=!1}),t.current=!1,!0):!1}function n(o){return ed(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const td={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Oi(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),r&&r[s]&&i.push(r[s])}return i},[]).join(" ")}),n}function Br(e){return typeof e=="string"}function rd(e,t,r){return e===void 0||Br(e)?t:_({},t,{ownerState:_({},t.ownerState,r)})}function _n(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function as(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function nd(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const v=mt(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),y=_({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),m=_({},r,o,n);return v.length>0&&(m.className=v),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const s=_n(_({},o,n)),a=as(n),l=as(o),c=t(s),u=mt(c==null?void 0:c.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),d=_({},c==null?void 0:c.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=_({},c,r,l,a);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function od(e,t,r){return typeof e=="function"?e(t,r):e}const id=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function jt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=Ve(e,id),a=i?{}:od(n,o),{props:l,internalRef:c}=nd(_({},s,{externalSlotProps:a})),u=Nn(c,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return rd(r,_({},l,{ref:u}),o)}const sd=N.createContext();process.env.NODE_ENV!=="production"&&(p.node,p.bool);const ad=()=>{const e=N.useContext(sd);return e??!1},ld=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(p.node,p.object);function cd(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ln(o.defaultProps,n):!o.styleOverrides&&!o.variants?Ln(o,n):n}function ud({props:e,name:t}){const r=N.useContext(ld);return cd({props:e,name:t,theme:{components:r}})}const fd=["component","direction","spacing","divider","children","className","useFlexGap"],dd=rn(),pd=Lf("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function gd(e){return Mf({props:e,name:"MuiStack",defaultTheme:dd})}function hd(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yd=({ownerState:e,theme:t})=>{let r=_({display:"flex",flexDirection:"column"},it({theme:t},_o({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=xi(t),o=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),i=_o({values:e.direction,base:o}),s=_o({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const f=c>0?i[u[c-1]]:"column";i[l]=f}}),r=et(r,it({theme:t},s,(l,c)=>e.useFlexGap?{gap:Ht(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${md(c?i[c]:e.direction)}`]:Ht(n,l)}}))}return r=wu(t.breakpoints,r),r};function bd(e={}){const{createStyledComponent:t=pd,useThemeProps:r=gd,componentName:n="MuiStack"}=e,o=()=>Oi({root:["root"]},l=>nn(n,l),{}),i=t(yd),s=N.forwardRef(function(l,c){const u=r(l),d=Ja(u),{component:f="div",direction:v="column",spacing:y=0,divider:m,children:h,className:S,useFlexGap:T=!1}=d,k=Ve(d,fd),O={direction:v,spacing:y,useFlexGap:T},w=o();return b.jsx(i,_({as:f,ownerState:O,ref:c,className:mt(w.root,S)},k,{children:m?hd(h,m):h}))});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:p.node,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object])}),s}var on={},el={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(el);var so=el.exports,ko={exports:{}},ls;function vd(){return ls||(ls=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n96}function Pn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fd=on.systemDefaultTheme=(0,kd.default)(),fs=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gn({defaultTheme:e,theme:t,themeId:r}){return Md(t)?e:t[r]||t}function Vd(e){return e?(t,r)=>r[e]:null}function $n(e,t){let{ownerState:r}=t,n=(0,Zo.default)(t,Ad);const o=typeof e=="function"?e((0,Xe.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(i=>$n(i,(0,Xe.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Zo.default)(o,Id);return i.forEach(l=>{let c=!0;typeof l.props=="function"?c=l.props((0,Xe.default)({ownerState:r},n,r)):Object.keys(l.props).forEach(u=>{(r==null?void 0:r[u])!==l.props[u]&&n[u]!==l.props[u]&&(c=!1)}),c&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Xe.default)({ownerState:r},n,r)):l.style))}),a}return o}function Bd(e={}){const{themeId:t,defaultTheme:r=Fd,rootShouldForwardProp:n=Pn,slotShouldForwardProp:o=Pn}=e,i=s=>(0,jd.default)((0,Xe.default)({},s,{theme:gn((0,Xe.default)({},s,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,us.internal_processStyles)(s,w=>w.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=Vd(fs(c))}=a,v=(0,Zo.default)(a,Ld),y=u!==void 0?u:c&&c!=="Root"&&c!=="root"||!1,m=d||!1;let h;process.env.NODE_ENV!=="production"&&l&&(h=`${l}-${fs(c||"Root")}`);let S=Pn;c==="Root"||c==="root"?S=n:c?S=o:Dd(s)&&(S=void 0);const T=(0,us.default)(s,(0,Xe.default)({shouldForwardProp:S,label:h},v)),k=w=>typeof w=="function"&&w.__emotion_real!==w||(0,_d.isPlainObject)(w)?C=>$n(w,(0,Xe.default)({},C,{theme:gn({theme:C.theme,defaultTheme:r,themeId:t})})):w,O=(w,...C)=>{let R=k(w);const z=C?C.map(k):[];l&&f&&z.push(M=>{const G=gn((0,Xe.default)({},M,{defaultTheme:r,themeId:t}));if(!G.components||!G.components[l]||!G.components[l].styleOverrides)return null;const q=G.components[l].styleOverrides,Z={};return Object.entries(q).forEach(([X,Se])=>{Z[X]=$n(Se,(0,Xe.default)({},M,{theme:G}))}),f(M,Z)}),l&&!y&&z.push(M=>{var G;const q=gn((0,Xe.default)({},M,{defaultTheme:r,themeId:t})),Z=q==null||(G=q.components)==null||(G=G[l])==null?void 0:G.variants;return $n({variants:Z},(0,Xe.default)({},M,{theme:q}))}),m||z.push(i);const se=z.length-C.length;if(Array.isArray(w)&&se>0){const M=new Array(se).fill("");R=[...w,...M],R.raw=[...w.raw,...M]}const V=T(R,...z);if(process.env.NODE_ENV!=="production"){let M;l&&(M=`${l}${(0,Pd.default)(c||"")}`),M===void 0&&(M=`Styled(${(0,$d.default)(s)})`),V.displayName=M}return s.muiName&&(V.muiName=s.muiName),V};return T.withConfig&&(O.withConfig=T.withConfig),O}}function Ud(e,t){return _({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ye={};const zd=Ot(Fc),Jd=Ot(Df);var rl=so;Object.defineProperty(ye,"__esModule",{value:!0});var ds=ye.alpha=sl;ye.blend=ep;ye.colorChannel=void 0;var Qo=ye.darken=Ci;ye.decomposeColor=tt;ye.emphasize=al;var ps=ye.getContrastRatio=Kd;ye.getLuminance=Mn;ye.hexToRgb=nl;ye.hslToRgb=il;var ei=ye.lighten=Ri;ye.private_safeAlpha=Yd;ye.private_safeColorChannel=void 0;ye.private_safeDarken=Xd;ye.private_safeEmphasize=Qd;ye.private_safeLighten=Zd;ye.recomposeColor=Sr;ye.rgbToHex=qd;var gs=rl(zd),Hd=rl(Jd);function Ei(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(er)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,Hd.default)(e,t,r)}function nl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Wd(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function tt(e){if(e.type)return e;if(e.charAt(0)==="#")return tt(nl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color. The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,gs.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space. The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,gs.default)(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const ol=e=>{const t=tt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ye.colorChannel=ol;const Gd=(e,t)=>{try{return ol(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ye.private_safeColorChannel=Gd;function Sr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function qd(e){if(e.indexOf("#")===0)return e;const{values:t}=tt(e);return`#${t.map((r,n)=>Wd(n===3?Math.round(255*r):r)).join("")}`}function il(e){e=tt(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(c,u=(c+r/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Sr({type:a,values:l})}function Mn(e){e=tt(e);let t=e.type==="hsl"||e.type==="hsla"?tt(il(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Kd(e,t){const r=Mn(e),n=Mn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function sl(e,t){return e=tt(e),t=Ei(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Sr(e)}function Yd(e,t,r){try{return sl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ci(e,t){if(e=tt(e),t=Ei(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 r=0;r<3;r+=1)e.values[r]*=1-t;return Sr(e)}function Xd(e,t,r){try{return Ci(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ri(e,t){if(e=tt(e),t=Ei(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Sr(e)}function Zd(e,t,r){try{return Ri(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function al(e,t=.15){return Mn(e)>.5?Ci(e,t):Ri(e,t)}function Qd(e,t,r){try{return al(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ep(e,t,r,n=1){const o=(l,c)=>Math.round((l**(1/n)*(1-r)+c**(1/n)*r)**n),i=tt(e),s=tt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return Sr({type:"rgb",values:a})}const Gr={black:"#000",white:"#fff"},tp={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"},ir={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"},sr={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"},Nr={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"},ar={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"},lr={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"},cr={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"},rp=["mode","contrastThreshold","tonalOffset"],hs={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:Gr.white,default:Gr.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}},Ao={text:{primary:Gr.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:Gr.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 ms(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ei(e.main,o):t==="dark"&&(e.dark=Qo(e.main,i)))}function np(e="light"){return e==="dark"?{main:ar[200],light:ar[50],dark:ar[400]}:{main:ar[700],light:ar[400],dark:ar[800]}}function op(e="light"){return e==="dark"?{main:ir[200],light:ir[50],dark:ir[400]}:{main:ir[500],light:ir[300],dark:ir[700]}}function ip(e="light"){return e==="dark"?{main:sr[500],light:sr[300],dark:sr[700]}:{main:sr[700],light:sr[400],dark:sr[800]}}function sp(e="light"){return e==="dark"?{main:lr[400],light:lr[300],dark:lr[700]}:{main:lr[700],light:lr[500],dark:lr[900]}}function ap(e="light"){return e==="dark"?{main:cr[400],light:cr[300],dark:cr[700]}:{main:cr[800],light:cr[500],dark:cr[900]}}function lp(e="light"){return e==="dark"?{main:Nr[400],light:Nr[300],dark:Nr[700]}:{main:"#ed6c02",light:Nr[500],dark:Nr[900]}}function cp(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ve(e,rp),i=e.primary||np(t),s=e.secondary||op(t),a=e.error||ip(t),l=e.info||sp(t),c=e.success||ap(t),u=e.warning||lp(t);function d(m){const h=ps(m,Ao.text.primary)>=r?Ao.text.primary:hs.text.primary;if(process.env.NODE_ENV!=="production"){const S=ps(m,h);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${h} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` `))}return h}const f=({color:m,name:h,mainShade:S=500,lightShade:T=300,darkShade:k=700})=>{if(m=_({},m),!m.main&&m[S]&&(m.main=m[S]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid. The color object needs to have a \`main\` property or a \`${S}\` property.`:Jr(11,h?` (${h})`:"",S));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid. \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead. Did you intend to use one of the following approaches? import { green } from "@mui/material/colors"; const theme1 = createTheme({ palette: { primary: green, } }); const theme2 = createTheme({ palette: { primary: { main: green[500] }, } });`:Jr(12,h?` (${h})`:"",JSON.stringify(m.main)));return ms(m,"light",T,n),ms(m,"dark",k,n),m.contrastText||(m.contrastText=d(m.main)),m},v={dark:Ao,light:hs};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),et(_({common:_({},Gr),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:tp,contrastThreshold:r,getContrastText:d,augmentColor:f,tonalOffset:n},v[t]),o)}const up=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function fp(e){return Math.round(e*1e5)/1e5}const ys={textTransform:"uppercase"},bs='"Roboto", "Helvetica", "Arial", sans-serif';function dp(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=bs,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=r,f=Ve(r,up);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=o/14,y=d||(S=>`${S/c*v}rem`),m=(S,T,k,O,w)=>_({fontFamily:n,fontWeight:S,fontSize:y(T),lineHeight:k},n===bs?{letterSpacing:`${fp(O/T)}em`}:{},w,u),h={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,ys),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,ys),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return et(_({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},h),f,{clone:!1})}const pp=.2,gp=.14,hp=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${pp})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gp})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hp})`].join(",")}const mp=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],yp=["duration","easing","delay"],bp={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)"},vp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vs(e){return`${Math.round(e)}ms`}function xp(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Sp(e){const t=_({},bp,e.easing),r=_({},vp,e.duration);return _({getAutoHeightDuration:xp,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:a=t.easeInOut,delay:l=0}=i,c=Ve(i,yp);if(process.env.NODE_ENV!=="production"){const u=f=>typeof f=="string",d=f=>!isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(s)&&!u(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),u(a)||console.error('MUI: Argument "easing" must be a string.'),!d(l)&&!u(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:vs(s)} ${a} ${typeof l=="string"?l:vs(l)}`).join(",")}},e,{easing:t,duration:r})}const wp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Tp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ll(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,s=Ve(e,Tp);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Jr(18));const a=cp(n),l=rn(e);let c=et(l,{mixins:Ud(l.breakpoints,r),palette:a,shadows:mp.slice(),typography:dp(a,i),transitions:Sp(o),zIndex:_({},wp)});if(c=et(c,s),c=t.reduce((u,d)=>et(u,d),c),process.env.NODE_ENV!=="production"){const u=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(f,v)=>{let y;for(y in f){const m=f[y];if(u.indexOf(y)!==-1&&Object.keys(m).length>0){if(process.env.NODE_ENV!=="production"){const h=nn("",y);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${h}' syntax:`,JSON.stringify({root:{[`&.${h}`]:m}},null,2),"","https://mui.com/r/state-classes-guide"].join(` `))}f[y]={}}}};Object.keys(c.components).forEach(f=>{const v=c.components[f].styleOverrides;v&&f.indexOf("Mui")===0&&d(v,f)})}return c.unstable_sxConfig=_({},en,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(d){return tn({sx:d,theme:this})},c}const Op=ll(),Ep="$$material";function _i(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cp=e=>_i(e)&&e!=="classes",Et=Rd({themeId:Ep,defaultTheme:Op,rootShouldForwardProp:Cp});process.env.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function Pi(e){return ud(e)}const yr=bd({createStyledComponent:Et("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Pi({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(yr.propTypes={children:p.node,component:p.elementType,direction:p.oneOfType([p.oneOf(["column-reverse","column","row-reverse","row"]),p.arrayOf(p.oneOf(["column-reverse","column","row-reverse","row"])),p.object]),divider:p.node,spacing:p.oneOfType([p.arrayOf(p.oneOfType([p.number,p.string])),p.number,p.object,p.string]),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),useFlexGap:p.bool});const U=e=>typeof e=="string",Mr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},xs=e=>e==null?"":""+e,Rp=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},_p=/###/g,Ss=e=>e&&e.indexOf("###")>-1?e.replace(_p,"."):e,ws=e=>!e||U(e),Ur=(e,t,r)=>{const n=U(t)?t.split("."):t;let o=0;for(;o{const{obj:n,k:o}=Ur(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=Ur(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Ur(e,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=r},Pp=(e,t,r,n)=>{const{obj:o,k:i}=Ur(e,t,Object);o[i]=o[i]||[],o[i].push(r)},Dn=(e,t)=>{const{obj:r,k:n}=Ur(e,t);if(r)return r[n]},$p=(e,t,r)=>{const n=Dn(e,r);return n!==void 0?n:Dn(t,r)},cl=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?U(e[n])||e[n]instanceof String||U(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):cl(e[n],t[n],r):e[n]=t[n]);return e},ur=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var kp={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const jp=e=>U(e)?e.replace(/[&<>"'\/]/g,t=>kp[t]):e;class Ap{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const Ip=[" ",",","?","!",";"],Lp=new Ap(20),Np=(e,t,r)=>{t=t||"",r=r||"";const n=Ip.filter(s=>t.indexOf(s)<0&&r.indexOf(s)<0);if(n.length===0)return!0;const o=Lp.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(r);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},ti=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let i=0;i-1&&le&&e.replace("_","-"),Mp={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Vn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Mp,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o{let[a,l]=s;for(let c=0;c{let[a,l]=s;for(let c=0;c1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,r],n&&(Array.isArray(n)?a.push(...n):U(n)&&i?a.push(...n.split(i)):a.push(n)));const l=Dn(this.data,a);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=a[0],r=a[1],n=a.slice(2).join(".")),l||!s||!U(n)?l:ti(this.data&&this.data[t]&&this.data[t][r],n,i)}addResource(t,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,r];n&&(a=a.concat(s?n.split(s):n)),t.indexOf(".")>-1&&(a=t.split("."),o=r,r=a[1]),this.addNamespaces(r),Ts(this.data,a,o),i.silent||this.emit("added",t,r,n,o)}addResources(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(U(n[i])||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,r];t.indexOf(".")>-1&&(a=t.split("."),o=n,n=r,r=a[1]),this.addNamespaces(r);let l=Dn(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?cl(l,n,i):l={...l,...n},Ts(this.data,a,l),s.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var ul={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,r,n,o))}),t}};const Es={};class Bn extends ao{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Rp(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=gt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const s=n&&t.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Np(t,n,o);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const c=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return U(i)&&(i=[i]),{key:t,namespaces:i}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],r),l=a[a.length-1],c=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const O=r.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${O}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${O}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:s}const d=this.resolve(t,r);let f=d&&d.res;const v=d&&d.usedKey||s,y=d&&d.exactUsedKey||s,m=Object.prototype.toString.apply(f),h=["[object Number]","[object Function]","[object RegExp]"],S=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,k=!U(f)&&typeof f!="boolean"&&typeof f!="number";if(T&&f&&k&&h.indexOf(m)<0&&!(U(S)&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,f,{...r,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=O,d.usedParams=this.getUsedParamsDetails(r),d):O}if(i){const O=Array.isArray(f),w=O?[]:{},C=O?y:v;for(const R in f)if(Object.prototype.hasOwnProperty.call(f,R)){const z=`${C}${i}${R}`;w[R]=this.translate(z,{...r,joinArrays:!1,ns:a}),w[R]===z&&(w[R]=f[R])}f=w}}else if(T&&U(S)&&Array.isArray(f))f=f.join(S),f&&(f=this.extendTranslation(f,t,r,n));else{let O=!1,w=!1;const C=r.count!==void 0&&!U(r.count),R=Bn.hasDefaultValue(r),z=C?this.pluralResolver.getSuffix(c,r.count,r):"",se=r.ordinal&&C?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",V=C&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),M=V&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${z}`]||r[`defaultValue${se}`]||r.defaultValue;!this.isValidLookup(f)&&R&&(O=!0,f=M),this.isValidLookup(f)||(w=!0,f=s);const q=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:f,Z=R&&M!==f&&this.options.updateMissing;if(w||O||Z){if(this.logger.log(Z?"updateKey":"missingKey",c,l,s,Z?M:f),i){const ee=this.resolve(s,{...r,keySeparator:!1});ee&&ee.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let X=[];const Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(let ee=0;ee{const nt=R&&je!==f?je:q;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,l,Oe,nt,Z,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ee,l,Oe,nt,Z,r),this.emit("missingKey",ee,l,Oe,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?X.forEach(ee=>{const Oe=this.pluralResolver.getSuffixes(ee,r);V&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Oe.push(`${this.options.pluralSeparator}zero`),Oe.forEach(je=>{ce([ee],s+je,r[`defaultValue${je}`]||M)})}):ce(X,s,M))}f=this.extendTranslation(f,t,r,d,n),w&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(w||O)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,O?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(d.res=f,d.usedParams=this.getUsedParamsDetails(r),d):f}extendTranslation(t,r,n,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const c=U(t)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let d=n.replace&&!U(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,n.lng||this.language||o.usedLng,n),c){const f=t.match(this.interpolator.nestingRegexp),v=f&&f.length;u1&&arguments[1]!==void 0?arguments[1]:{},n,o,i,s,a;return U(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(l,r),u=c.key;o=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=r.count!==void 0&&!U(r.count),v=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(U(r.context)||typeof r.context=="number")&&r.context!=="",m=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(h=>{this.isValidLookup(n)||(a=h,!Es[`${m[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Es[`${m[0]}-${h}`]=!0,this.logger.warn(`key "${o}" for languages "${m.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(S=>{if(this.isValidLookup(n))return;s=S;const T=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(T,u,S,h,r);else{let O;f&&(O=this.pluralResolver.getSuffix(S,r.count,r));const w=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(T.push(u+O),r.ordinal&&O.indexOf(C)===0&&T.push(u+O.replace(C,this.options.pluralSeparator)),v&&T.push(u+w)),y){const R=`${u}${this.options.contextSeparator}${r.context}`;T.push(R),f&&(T.push(R+O),r.ordinal&&O.indexOf(C)===0&&T.push(R+O.replace(C,this.options.pluralSeparator)),v&&T.push(R+w))}}let k;for(;k=T.pop();)this.isValidLookup(n)||(i=k,n=this.getResource(S,h,k,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!U(t.replace);let o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const i of r)delete o[i]}return o}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Io=e=>e.charAt(0).toUpperCase()+e.slice(1);class Cs{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gt.create("languageUtils")}getScriptPartFromCode(t){if(t=Fn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Fn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(U(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Io(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Io(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Io(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),U(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return U(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):U(t)&&i(this.formatLanguageCode(t)),n.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let Dp=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Fp={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Vp=["v1","v2","v3"],Bp=["v4"],Rs={zero:0,one:1,two:2,few:3,many:4,other:5},Up=()=>{const e={};return Dp.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Fp[t.fc]}})}),e};class zp{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=gt.create("pluralResolver"),(!this.options.compatibilityJSON||Bp.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Up(),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=Fn(t==="dev"?"en":t),o=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const s=new Intl.PluralRules(n,{type:o});return this.pluralRulesCache[i]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,i)=>Rs[o]-Rs[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let o=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Vp.includes(this.options.compatibilityJSON)}}const _s=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=$p(e,t,r);return!i&&o&&U(r)&&(i=ti(e,r,n),i===void 0&&(i=ti(t,r,n))),i},Lo=e=>e.replace(/\$/g,"$$$$");class Jp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=gt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:v,nestingSuffix:y,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:S,alwaysFormat:T}=t.interpolation;this.escape=r!==void 0?r:jp,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?ur(i):s||"{{",this.suffix=a?ur(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?ur(f):v||ur("$t("),this.nestingSuffix=y?ur(y):m||ur(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=S||1e3,this.alwaysFormat=T!==void 0?T:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,o){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=v=>{if(v.indexOf(this.formatSeparator)<0){const S=_s(r,l,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,n,{...o,...r,interpolationkey:v}):S}const y=v.split(this.formatSeparator),m=y.shift().trim(),h=y.join(this.formatSeparator).trim();return this.format(_s(r,l,m,this.options.keySeparator,this.options.ignoreJSONStructure),h,n,{...o,...r,interpolationkey:m})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>Lo(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?Lo(this.escape(v)):Lo(v)}].forEach(v=>{for(a=0;i=v.regex.exec(t);){const y=i[1].trim();if(s=c(y),s===void 0)if(typeof u=="function"){const h=u(t,i,o);s=U(h)?h:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),s="";else!U(s)&&!this.useRawValueToEscape&&(s=xs(s));const m=v.safeValue(s);if(t=t.replace(i[0],m),d?(v.regex.lastIndex+=s.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,s;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let f=`{${d[1]}`;l=d[0],f=this.interpolate(f,s);const v=f.match(/'/g),y=f.match(/"/g);(v&&v.length%2===0&&!y||y.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),c&&(s={...c,...s})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${u}${f}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...n},s=s.replace&&!U(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=u.shift(),l=u,c=!0}if(i=r(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&!U(i))return i;U(i)||(i=xs(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const Hp=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},fr=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=n+JSON.stringify(i);let a=t[s];return a||(a=e(Fn(n),o),t[s]=a),a(r)}};class Wp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=gt.create("formatter"),this.options=t,this.formats={number:fr((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return i=>o.format(i)}),currency:fr((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>o.format(i)}),datetime:fr((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return i=>o.format(i)}),relativetime:fr((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return i=>o.format(i,n.range||"day")}),list:fr((r,n)=>{const o=new Intl.ListFormat(r,{...n});return i=>o.format(i)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=fr(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:c,formatOptions:u}=Hp(l);if(this.formats[c]){let d=a;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},v=f.locale||f.lng||o.locale||o.lng||n;d=this.formats[c](a,v,{...u,...o,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const Gp=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class qp extends ao{constructor(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=gt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const i={},s={},a={},l={};return t.forEach(c=>{let u=!0;r.forEach(d=>{const f=`${c}|${d}`;!n.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,u=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const o=t.split("|"),i=o[0],s=o[1];r&&this.emit("failedLoading",i,s,r),!r&&n&&this.store.addResourceBundle(i,s,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const a={};this.queue.forEach(l=>{Pp(l.loaded,[i],s),Gp(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&o{this.read.call(this,t,r,n,o+1,i*2,s)},i);return}s(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,r,a)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();U(t)&&(t=this.languageUtils.toResolveHierarchy(t)),U(r)&&(r=[r]);const i=this.queueLoad(t,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,r,n,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,r,n,o,l):u=c(t,r,n,o),u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}else c(t,r,n,o,a,l)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const Ps=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),U(e[1])&&(t.defaultValue=e[1]),U(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),$s=e=>(U(e.ns)&&(e.ns=[e.ns]),U(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),U(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),hn=()=>{},Kp=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class qr extends ao{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=$s(t),this.services={},this.logger=gt,this.modules={external:[]},Kp(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(U(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=Ps();this.options={...o,...this.options,...$s(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?gt.init(i(this.modules.logger),this.options):gt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Wp);const d=new Cs(this.options);this.store=new Os(this.options.resources,this.options);const f=this.services;f.logger=gt,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new zp(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=i(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Jp(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new qp(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(v){for(var y=arguments.length,m=new Array(y>1?y-1:0),h=1;h1?y-1:0),h=1;h{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=hn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return t.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return t.store[u](...arguments),t}});const l=Mr(),c=()=>{const u=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(d,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hn;const o=U(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(t,r,n){const o=Mr();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=hn),this.services.backendConnector.reload(t,r,i=>{o.resolve(),n(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ul.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const o=Mr();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=U(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),o}getFixedT(t,r,n){var o=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d`${l.keyPrefix}${f}${y}`):v=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,o.t(v,l)};return U(t)?i.lng=t:i.lngs=t,i.ns=r,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(r.precheck){const a=r.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,t)&&(!o||s(i,t)))}loadNamespaces(t,r){const n=Mr();return this.options.ns?(U(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Mr();U(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>o.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{n.resolve(),r&&r(s)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Cs(Ps());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new qr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new qr(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Os(this.store.data,o),i.services.resourceStore=i.store),i.translator=new Bn(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;ub.jsx(Zp,{children:b.jsx(e,{...r})})}const Zp=({children:e})=>b.jsx(Yt.I18nextProvider,{i18n:fl,children:e}),Qp=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("g",{id:"JogMinus"},N.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),eg=W.forwardRef(Qp),tg=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("g",{id:"JogPlus"},N.createElement("g",{id:"Plus"},N.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),N.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),N.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),rg=W.forwardRef(tg);function lo(e){W.useEffect(e,[])}function dl(e){lo(()=>dt.autorun(e))}function $i(e,t,r){lo(()=>dt.reaction(e,t,r))}function wr(e){return lo(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const ri=sn(ke.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:i,activeJoggingDirection:s,...a})=>{var k,O,w,C,R,z,se;wr(()=>{const V=r(),M=f.current;M&&(M.textContent=V)});const l=$.useTheme(),[c,u]=W.useState(null);W.useEffect(()=>{i&&T()},[i]);const d=s||c,f=W.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const v=d?(k=e.buttonBackgroundColor)==null?void 0:k.pressed:e.borderColor,y={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},m={...y,backgroundColor:(O=e.buttonBackgroundColor)==null?void 0:O.default,":hover":{backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.hovered},":active":{backgroundColor:(C=e.buttonBackgroundColor)==null?void 0:C.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(R=e.buttonBackgroundColor)==null?void 0:R.disabled,"svg path":{fill:l.palette.action.disabled}}},h={...y,backgroundColor:(z=e.buttonBackgroundColor)==null?void 0:z.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(se=e.buttonBackgroundColor)==null?void 0:se.pressed,"svg path":{fill:l.palette.action.disabled}}};function S(V,M){i||V.button===0&&(u(M),n(M))}function T(){u(null),o()}return b.jsxs(yr,{height:"64px",direction:"row",justifyContent:"center",...a,children:[b.jsx($.IconButton,{disabled:i,disableRipple:!0,onPointerDown:V=>S(V,"-"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="-"?h:m,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(eg,{})}),b.jsxs(yr,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:[b.jsx(yr,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...i?{color:l.palette.action.disabled}:{}},...i?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),b.jsx($.Typography,{height:"22px",sx:{fontSize:"15px",color:i?l.palette.action.disabled:e.color,fontWeight:700},ref:f,children:r()})]}),b.jsx($.IconButton,{disableRipple:!0,disabled:i,onPointerDown:V=>S(V,"+"),onPointerUp:T,onPointerOut:T,size:"large",sx:{...d==="+"?h:m,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${v??"#fff"}`,borderBottom:`2px solid ${v??"#fff"}`,borderTop:`2px solid ${v??"#fff"}`},children:b.jsx(rg,{})})]})}));var ki={},No={};function ng(e){return nn("MuiSvgIcon",e)}Ga("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const og=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ig=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Ce(t)}`,`fontSize${Ce(r)}`]};return Oi(o,ng,n)},sg=Et("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Ce(r.color)}`],t[`fontSize${Ce(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,s,a,l,c,u,d,f,v,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(s=i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(u=c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Un=N.forwardRef(function(t,r){const n=Pi({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24"}=n,v=Ve(n,og),y=N.isValidElement(o)&&o.type==="svg",m=_({},n,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:y}),h={};u||(h.viewBox=f);const S=ig(m);return b.jsxs(sg,_({as:a,className:mt(S.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r},h,v,y&&o.props,{ownerState:m,children:[y?o.props.children:o,d?b.jsx("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(Un.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,fontSize:p.oneOfType([p.oneOf(["inherit","large","medium","small"]),p.string]),htmlColor:p.string,inheritViewBox:p.bool,shapeRendering:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),titleAccess:p.string,viewBox:p.string});Un.muiName="SvgIcon";function ag(e,t){function r(n,o){return b.jsx(Un,_({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Un.muiName,N.memo(N.forwardRef(r))}const lg={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(` `)),Ha.configure(e)}},cg=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ce,createChainedFunction:Ff,createSvgIcon:ag,debounce:Vf,deprecatedPropType:Bf,isMuiElement:Uf,ownerDocument:mr,ownerWindow:zf,requirePropFactory:Jf,setRef:Xa,unstable_ClassNameGenerator:lg,unstable_useEnhancedEffect:wi,unstable_useId:Wf,unsupportedProp:Gf,useControlled:Za,useEventCallback:Rn,useForkRef:Nn,useIsFocusVisible:Qa},Symbol.toStringTag,{value:"Module"})),ug=Ot(cg);var ks;function pl(){return ks||(ks=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ug}(No)),No}var fg=so;Object.defineProperty(ki,"__esModule",{value:!0});var gl=ki.default=void 0,dg=fg(pl()),pg=b;gl=ki.default=(0,dg.default)((0,pg.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var ji={},gg=so;Object.defineProperty(ji,"__esModule",{value:!0});var hl=ji.default=void 0,hg=gg(pl()),mg=b;hl=ji.default=(0,hg.default)((0,mg.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Wt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ml=typeof global=="object"&&global&&global.Object===Object&&global,yg=typeof self=="object"&&self&&self.Object===Object&&self,bt=ml||yg||Function("return this")(),Mo=function(){return bt.Date.now()},bg=/\s/;function vg(e){for(var t=e.length;t--&&bg.test(e.charAt(t)););return t}var xg=/^\s+/;function Sg(e){return e&&e.slice(0,vg(e)+1).replace(xg,"")}var Nt=bt.Symbol,yl=Object.prototype,wg=yl.hasOwnProperty,Tg=yl.toString,Dr=Nt?Nt.toStringTag:void 0;function Og(e){var t=wg.call(e,Dr),r=e[Dr];try{e[Dr]=void 0;var n=!0}catch{}var o=Tg.call(e);return n&&(t?e[Dr]=r:delete e[Dr]),o}var Eg=Object.prototype,Cg=Eg.toString;function Rg(e){return Cg.call(e)}var _g="[object Null]",Pg="[object Undefined]",js=Nt?Nt.toStringTag:void 0;function Xt(e){return e==null?e===void 0?Pg:_g:js&&js in Object(e)?Og(e):Rg(e)}function Gt(e){return e!=null&&typeof e=="object"}var $g="[object Symbol]";function co(e){return typeof e=="symbol"||Gt(e)&&Xt(e)==$g}var As=NaN,kg=/^[-+]0x[0-9a-f]+$/i,jg=/^0b[01]+$/i,Ag=/^0o[0-7]+$/i,Ig=parseInt;function Is(e){if(typeof e=="number")return e;if(co(e))return As;if(Wt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Sg(e);var r=jg.test(e);return r||Ag.test(e)?Ig(e.slice(2),r?2:8):kg.test(e)?As:+e}var Lg="Expected a function",Ng=Math.max,Mg=Math.min;function Dg(e,t,r){var n,o,i,s,a,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Lg);t=Is(t)||0,Wt(r)&&(u=!!r.leading,d="maxWait"in r,i=d?Ng(Is(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function v(C){var R=n,z=o;return n=o=void 0,c=C,s=e.apply(z,R),s}function y(C){return c=C,a=setTimeout(S,t),u?v(C):s}function m(C){var R=C-l,z=C-c,se=t-R;return d?Mg(se,i-z):se}function h(C){var R=C-l,z=C-c;return l===void 0||R>=t||R<0||d&&z>=i}function S(){var C=Mo();if(h(C))return T(C);a=setTimeout(S,m(C))}function T(C){return a=void 0,f&&n?v(C):(n=o=void 0,s)}function k(){a!==void 0&&clearTimeout(a),c=0,n=l=o=a=void 0}function O(){return a===void 0?s:T(Mo())}function w(){var C=Mo(),R=h(C);if(n=arguments,o=this,l=C,R){if(a===void 0)return y(l);if(d)return clearTimeout(a),a=setTimeout(S,t),v(l)}return a===void 0&&(a=setTimeout(S,t)),s}return w.cancel=k,w.flush=O,w}var Fg="Expected a function";function Vg(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Fg);return Wt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Dg(e,t,{leading:n,maxWait:t,trailing:o})}const bl=sn(ke.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:i,...s})=>{var k,O,w,C,R,z,se;const{t:a}=Yt.useTranslation(),[l,c]=W.useState(),u=$.useTheme(),d={background:(k=u.palette.backgroundPaperElevation)==null?void 0:k[4],color:(O=u.palette.backgroundPaperElevation)==null?void 0:O[11]},f=ke.useLocalObservable(()=>({activeJoggingDir:null,startJogging(V){this.activeJoggingDir=V,e(V)},stopJogging(){this.activeJoggingDir=null,t()}})),v=Vg(()=>{c(o())},50);wr(v);function y(V){V.button===0&&f.startJogging("-")}function m(V){V.button===0&&f.startJogging("+")}function h(V){f.stopJogging()}function S(V){V.target===V.currentTarget&&f.stopJogging()}function T(V,M=1){if(V===void 0||isNaN(V))return"";const G=a("General.degree.variable",{amount:V.toFixed(M)});return V>0&&M===0?`+${G}`:G}return b.jsxs(yr,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(w=u.palette.backgroundPaperElevation)==null?void 0:w[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(C=u.palette.backgroundPaperElevation)==null?void 0:C[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(R=u.palette.backgroundPaperElevation)==null?void 0:R[9]},"&:active":{...d}}},children:[b.jsx($.IconButton,{onPointerDown:y,onPointerUp:h,onPointerOut:S,disabled:i,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...f.activeJoggingDir==="-"?d:{}},children:b.jsx(gl,{})}),b.jsxs(yr,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(z=u.palette.backgroundPaperElevation)==null?void 0:z[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[b.jsx($.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:i?u.palette.action.disabled:u.palette.text.primary},children:T(l)}),b.jsx($.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:i?u.palette.action.disabled:u.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:i?u.palette.action.disabled:u.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(se=u.palette.backgroundPaperElevation)==null?void 0:se[5],opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:T(r,0)},{value:n,label:T(n,0)}]})]}),b.jsx($.IconButton,{onPointerDown:m,onPointerUp:h,onPointerOut:S,disabled:i,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...f.activeJoggingDir==="+"?d:{}},children:b.jsx(hl,{})})]})}));function vl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bg}=Object.prototype,{getPrototypeOf:Ai}=Object,uo=(e=>t=>{const r=Bg.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),st=e=>(e=e.toLowerCase(),t=>uo(t)===e),fo=e=>t=>typeof t===e,{isArray:Tr}=Array,Kr=fo("undefined");function Ug(e){return e!==null&&!Kr(e)&&e.constructor!==null&&!Kr(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xl=st("ArrayBuffer");function zg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xl(e.buffer),t}const Jg=fo("string"),We=fo("function"),Sl=fo("number"),po=e=>e!==null&&typeof e=="object",Hg=e=>e===!0||e===!1,kn=e=>{if(uo(e)!=="object")return!1;const t=Ai(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wg=st("Date"),Gg=st("File"),qg=st("Blob"),Kg=st("FileList"),Yg=e=>po(e)&&We(e.pipe),Xg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=uo(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},Zg=st("URLSearchParams"),[Qg,eh,th,rh]=["ReadableStream","Request","Response","Headers"].map(st),nh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function an(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Tr(e))for(n=0,o=e.length;n0;)if(o=r[n],t===o.toLowerCase())return o;return null}const zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tl=e=>!Kr(e)&&e!==zt;function ni(){const{caseless:e}=Tl(this)&&this||{},t={},r=(n,o)=>{const i=e&&wl(t,o)||o;kn(t[i])&&kn(n)?t[i]=ni(t[i],n):kn(n)?t[i]=ni({},n):Tr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n(an(t,(o,i)=>{r&&We(o)?e[i]=vl(o,r):e[i]=o},{allOwnKeys:n}),e),ih=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sh=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},ah=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Ai(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},lh=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ch=e=>{if(!e)return null;if(Tr(e))return e;let t=e.length;if(!Sl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},uh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ai(Uint8Array)),fh=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},dh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ph=st("HTMLFormElement"),gh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ls=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),hh=st("RegExp"),Ol=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};an(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},mh=e=>{Ol(e,(t,r)=>{if(We(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(We(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yh=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Tr(e)?n(e):n(String(e).split(t)),r},bh=()=>{},vh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Do="abcdefghijklmnopqrstuvwxyz",Ns="0123456789",El={DIGIT:Ns,ALPHA:Do,ALPHA_DIGIT:Do+Do.toUpperCase()+Ns},xh=(e=16,t=El.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Sh(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const wh=e=>{const t=new Array(10),r=(n,o)=>{if(po(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=Tr(n)?[]:{};return an(n,(s,a)=>{const l=r(s,o+1);!Kr(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},Th=st("AsyncFunction"),Oh=e=>e&&(po(e)||We(e))&&We(e.then)&&We(e.catch),Cl=((e,t)=>e?setImmediate:t?((r,n)=>(zt.addEventListener("message",({source:o,data:i})=>{o===zt&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),zt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",We(zt.postMessage)),Eh=typeof queueMicrotask<"u"?queueMicrotask.bind(zt):typeof process<"u"&&process.nextTick||Cl,x={isArray:Tr,isArrayBuffer:xl,isBuffer:Ug,isFormData:Xg,isArrayBufferView:zg,isString:Jg,isNumber:Sl,isBoolean:Hg,isObject:po,isPlainObject:kn,isReadableStream:Qg,isRequest:eh,isResponse:th,isHeaders:rh,isUndefined:Kr,isDate:Wg,isFile:Gg,isBlob:qg,isRegExp:hh,isFunction:We,isStream:Yg,isURLSearchParams:Zg,isTypedArray:uh,isFileList:Kg,forEach:an,merge:ni,extend:oh,trim:nh,stripBOM:ih,inherits:sh,toFlatObject:ah,kindOf:uo,kindOfTest:st,endsWith:lh,toArray:ch,forEachEntry:fh,matchAll:dh,isHTMLForm:ph,hasOwnProperty:Ls,hasOwnProp:Ls,reduceDescriptors:Ol,freezeMethods:mh,toObjectSet:yh,toCamelCase:gh,noop:bh,toFiniteNumber:vh,findKey:wl,global:zt,isContextDefined:Tl,ALPHABET:El,generateString:xh,isSpecCompliantForm:Sh,toJSONObject:wh,isAsyncFn:Th,isThenable:Oh,setImmediate:Cl,asap:Eh};function J(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}x.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.status}}});const Rl=J.prototype,_l={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_l[e]={value:e}});Object.defineProperties(J,_l);Object.defineProperty(Rl,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,i)=>{const s=Object.create(Rl);return x.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),J.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Ch=null;function oi(e){return x.isPlainObject(e)||x.isArray(e)}function Pl(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Ms(e,t,r){return e?e.concat(t).map(function(o,i){return o=Pl(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Rh(e){return x.isArray(e)&&!e.some(oi)}const _h=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function go(e,t,r){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=x.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!x.isUndefined(h[m])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(x.isDate(y))return y.toISOString();if(!l&&x.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(y)||x.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,m,h){let S=y;if(y&&!h&&typeof y=="object"){if(x.endsWith(m,"{}"))m=n?m:m.slice(0,-2),y=JSON.stringify(y);else if(x.isArray(y)&&Rh(y)||(x.isFileList(y)||x.endsWith(m,"[]"))&&(S=x.toArray(y)))return m=Pl(m),S.forEach(function(k,O){!(x.isUndefined(k)||k===null)&&t.append(s===!0?Ms([m],O,i):s===null?m:m+"[]",c(k))}),!1}return oi(y)?!0:(t.append(Ms(h,m,i),c(y)),!1)}const d=[],f=Object.assign(_h,{defaultVisitor:u,convertValue:c,isVisitable:oi});function v(y,m){if(!x.isUndefined(y)){if(d.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(y),x.forEach(y,function(S,T){(!(x.isUndefined(S)||S===null)&&o.call(t,S,x.isString(T)?T.trim():T,m,f))===!0&&v(S,m?m.concat(T):[T])}),d.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Ds(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ii(e,t){this._pairs=[],e&&go(e,this,t)}const $l=Ii.prototype;$l.append=function(t,r){this._pairs.push([t,r])};$l.toString=function(t){const r=t?function(n){return t.call(this,n,Ds)}:Ds;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ph(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kl(e,t,r){if(!t)return e;const n=r&&r.encode||Ph,o=r&&r.serialize;let i;if(o?i=o(t,r):i=x.isURLSearchParams(t)?t.toString():new Ii(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fs{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(n){n!==null&&t(n)})}}const jl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$h=typeof URLSearchParams<"u"?URLSearchParams:Ii,kh=typeof FormData<"u"?FormData:null,jh=typeof Blob<"u"?Blob:null,Ah={isBrowser:!0,classes:{URLSearchParams:$h,FormData:kh,Blob:jh},protocols:["http","https","file","blob","url","data"]},Li=typeof window<"u"&&typeof document<"u",ii=typeof navigator=="object"&&navigator||void 0,Ih=Li&&(!ii||["ReactNative","NativeScript","NS"].indexOf(ii.product)<0),Lh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nh=Li&&window.location.href||"http://localhost",Mh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Li,hasStandardBrowserEnv:Ih,hasStandardBrowserWebWorkerEnv:Lh,navigator:ii,origin:Nh},Symbol.toStringTag,{value:"Module"})),Me={...Mh,...Ah};function Dh(e,t){return go(e,new Me.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return Me.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Fh(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vh(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n=r.length;return s=!s&&x.isArray(o)?o.length:s,l?(x.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!x.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&x.isArray(o[s])&&(o[s]=Vh(o[s])),!a)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Fh(n),o,r,0)}),r}return null}function Bh(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const ln={transitional:jl,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(Al(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Dh(t,this.formSerializer).toString();if((a=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return go(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Bh(t)):t}],transformResponse:[function(t){const r=this.transitional||ln.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?J.from(a,J.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{ln.headers[e]={}});const Uh=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zh=e=>{const t={};let r,n,o;return e&&e.split(` `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&Uh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Vs=Symbol("internals");function Fr(e){return e&&String(e).trim().toLowerCase()}function jn(e){return e===!1||e==null?e:x.isArray(e)?e.map(jn):String(e)}function Jh(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Hh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fo(e,t,r,n,o){if(x.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!x.isString(t)){if(x.isString(n))return t.indexOf(n)!==-1;if(x.isRegExp(n))return n.test(t)}}function Wh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Gh(e,t){const r=x.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let De=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,c){const u=Fr(l);if(!u)throw new Error("header name must be a non-empty string");const d=x.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=jn(a))}const s=(a,l)=>x.forEach(a,(c,u)=>i(c,u,l));if(x.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(x.isString(t)&&(t=t.trim())&&!Hh(t))s(zh(t),r);else if(x.isHeaders(t))for(const[a,l]of t.entries())i(l,a,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Fr(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Jh(o);if(x.isFunction(r))return r.call(this,o,n);if(x.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Fr(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Fo(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=Fr(s),s){const a=x.findKey(n,s);a&&(!r||Fo(n,n[a],a,r))&&(delete n[a],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Fo(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return x.forEach(this,(o,i)=>{const s=x.findKey(n,i);if(s){r[s]=jn(o),delete r[i];return}const a=t?Wh(i):String(i).trim();a!==i&&delete r[i],r[a]=jn(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return x.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&x.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Vs]=this[Vs]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Fr(s);n[a]||(Gh(o,s),n[a]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}};De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(De.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(De);function Vo(e,t){const r=this||ln,n=t||r,o=De.from(n.headers);let i=n.data;return x.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Il(e){return!!(e&&e.__CANCEL__)}function Or(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(Or,J,{__CANCEL__:!0});function Ll(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function qh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Kh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];s||(s=c),r[o]=l,n[o]=c;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{r=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},n-d)))},()=>o&&s(o)]}const zn=(e,t,r=3)=>{let n=0;const o=Kh(50,250);return Yh(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-n,c=o(l),u=s<=a;n=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},r)},Bs=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Us=e=>(...t)=>x.asap(()=>e(...t)),Xh=Me.hasStandardBrowserEnv?function(){const t=Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=x.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),Zh=Me.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const s=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),x.isString(n)&&s.push("path="+n),x.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Qh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function em(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Nl(e,t){return e&&!Qh(t)?em(e,t):t}const zs=e=>e instanceof De?{...e}:e;function qt(e,t){t=t||{};const r={};function n(c,u,d){return x.isPlainObject(c)&&x.isPlainObject(u)?x.merge.call({caseless:d},c,u):x.isPlainObject(u)?x.merge({},u):x.isArray(u)?u.slice():u}function o(c,u,d){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c,d)}else return n(c,u,d)}function i(c,u){if(!x.isUndefined(u))return n(void 0,u)}function s(c,u){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u)=>o(zs(c),zs(u),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,f=d(e[u],t[u],u);x.isUndefined(f)&&d!==a||(r[u]=f)}),r}const Ml=e=>{const t=qt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=De.from(s),t.url=kl(Nl(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(x.isFormData(r)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Me.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&Xh(t.url))){const c=o&&i&&Zh.read(i);c&&s.set(o,c)}return t},tm=typeof XMLHttpRequest<"u",rm=tm&&function(e){return new Promise(function(r,n){const o=Ml(e);let i=o.data;const s=De.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,v,y;function m(){v&&v(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function S(){if(!h)return;const k=De.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:k,config:e,request:h};Ll(function(R){r(R),m()},function(R){n(R),m()},w),h=null}"onloadend"in h?h.onloadend=S:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(S)},h.onabort=function(){h&&(n(new J("Request aborted",J.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||jl;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new J(O,w.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,h)),h=null},i===void 0&&s.setContentType(null),"setRequestHeader"in h&&x.forEach(s.toJSON(),function(O,w){h.setRequestHeader(w,O)}),x.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),a&&a!=="json"&&(h.responseType=o.responseType),c&&([f,y]=zn(c,!0),h.addEventListener("progress",f)),l&&h.upload&&([d,v]=zn(l),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(u=k=>{h&&(n(!k||k.type?new Or(null,e,h):k),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const T=qh(o.url);if(T&&Me.protocols.indexOf(T)===-1){n(new J("Unsupported protocol "+T+":",J.ERR_BAD_REQUEST,e));return}h.send(i||null)})},nm=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof J?u:new Or(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>x.asap(a),l}},om=function*(e,t){let r=e.byteLength;if(r{const o=im(e,t);let i=0,s,a=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(r){let f=i+=d;r(f)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},ho=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Dl=ho&&typeof ReadableStream=="function",am=ho&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Fl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},lm=Dl&&Fl(()=>{let e=!1;const t=new Request(Me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Hs=64*1024,si=Dl&&Fl(()=>x.isReadableStream(new Response("").body)),Jn={stream:si&&(e=>e.body)};ho&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Jn[t]&&(Jn[t]=x.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const cm=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(Me.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await am(e)).byteLength},um=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??cm(t)},fm=ho&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Ml(e);c=c?(c+"").toLowerCase():"text";let v=nm([o,i&&i.toAbortSignal()],s),y;const m=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let h;try{if(l&&lm&&r!=="get"&&r!=="head"&&(h=await um(u,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),C;if(x.isFormData(n)&&(C=w.headers.get("content-type"))&&u.setContentType(C),w.body){const[R,z]=Bs(h,zn(Us(l)));n=Js(w.body,Hs,R,z)}}x.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;y=new Request(t,{...f,signal:v,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:S?d:void 0});let T=await fetch(y);const k=si&&(c==="stream"||c==="response");if(si&&(a||k&&m)){const w={};["status","statusText","headers"].forEach(se=>{w[se]=T[se]});const C=x.toFiniteNumber(T.headers.get("content-length")),[R,z]=a&&Bs(C,zn(Us(a),!0))||[];T=new Response(Js(T.body,Hs,R,()=>{z&&z(),m&&m()}),w)}c=c||"text";let O=await Jn[x.findKey(Jn,c)||"text"](T,e);return!k&&m&&m(),await new Promise((w,C)=>{Ll(w,C,{data:O,headers:De.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:y})})}catch(S){throw m&&m(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,y),{cause:S.cause||S}):J.from(S,S&&S.code,e,y)}}),ai={http:Ch,xhr:rm,fetch:fm};x.forEach(ai,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ws=e=>`- ${e}`,dm=e=>x.isFunction(e)||e===null||e===!1,Vl={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(Ws).join(` `):" "+Ws(i[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:ai};function Bo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Or(null,e)}function Gs(e){return Bo(e),e.headers=De.from(e.headers),e.data=Vo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vl.getAdapter(e.adapter||ln.adapter)(e).then(function(n){return Bo(e),n.data=Vo.call(e,e.transformResponse,n),n.headers=De.from(n.headers),n},function(n){return Il(n)||(Bo(e),n&&n.response&&(n.response.data=Vo.call(e,e.transformResponse,n.response),n.response.headers=De.from(n.response.headers))),Promise.reject(n)})}const Bl="1.7.7",Ni={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ni[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const qs={};Ni.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Bl+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new J(o(s," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!qs[s]&&(qs[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};function pm(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new J("option "+i+" must be "+l,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}}const li={assertOptions:pm,validators:Ni},At=li.validators;let Jt=class{constructor(t){this.defaults=t,this.interceptors={request:new Fs,response:new Fs}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=qt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&li.assertOptions(n,{silentJSONParsing:At.transitional(At.boolean),forcedJSONParsing:At.transitional(At.boolean),clarifyTimeoutError:At.transitional(At.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:li.assertOptions(o,{encode:At.function,serialize:At.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&x.merge(i.common,i[r.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),r.headers=De.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const y=[Gs.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),f=y.length,u=Promise.resolve(r);d{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new Or(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ul(function(o){t=o}),cancel:t}}};function hm(e){return function(r){return e.apply(null,r)}}function mm(e){return x.isObject(e)&&e.isAxiosError===!0}const ci={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ci).forEach(([e,t])=>{ci[t]=e});function zl(e){const t=new Jt(e),r=vl(Jt.prototype.request,t);return x.extend(r,Jt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return zl(qt(e,o))},r}const xe=zl(ln);xe.Axios=Jt;xe.CanceledError=Or;xe.CancelToken=gm;xe.isCancel=Il;xe.VERSION=Bl;xe.toFormData=go;xe.AxiosError=J;xe.Cancel=xe.CanceledError;xe.all=function(t){return Promise.all(t)};xe.spread=hm;xe.isAxiosError=mm;xe.mergeConfig=qt;xe.AxiosHeaders=De;xe.formToJSON=e=>Al(x.isHTMLForm(e)?new FormData(e):e);xe.getAdapter=Vl.getAdapter;xe.HttpStatusCode=ci;xe.default=xe;const{Axios:J1,AxiosError:Ks,CanceledError:H1,isCancel:W1,CancelToken:G1,VERSION:q1,all:K1,Cancel:Y1,isAxiosError:X1,spread:Z1,toFormData:Q1,AxiosHeaders:ev,HttpStatusCode:tv,formToJSON:rv,getAdapter:nv,mergeConfig:ov}=xe;function ym(e){try{return JSON.stringify(e)}catch{return}}function bm(e){var t,r,n,o;return e instanceof Ks&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof Ks&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${ym(e)||e}`}const mo=e=>{const t=e.softTimeout||3e3,[r,n]=W.useState(!1),o=$.useTheme();return W.useEffect(()=>{const i=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(i)}),b.jsx($.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:o.palette.text.primary},children:e.error?b.jsx(Jl,{loadingMessage:e.message,error:e.error}):b.jsxs(b.Fragment,{children:[b.jsx($.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&b.jsx("div",{children:e.message}),b.jsx($.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:o.palette.text.secondary},children:"This is taking longer than expected..."})]})})},Jl=e=>{const t=bm(e.error),r=e.error instanceof Error?e.error.stack:null,n=$.useTheme();return b.jsxs($.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${Gn.lowerFirst($.capitalize(e.loadingMessage))} - `:"")+t,b.jsx("br",{}),r&&b.jsx("pre",{children:r})]})},vm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),xm=W.forwardRef(vm),Sm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),wm=W.forwardRef(Sm),Tm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),Om=W.forwardRef(Tm),Em=({title:e,titleId:t,...r},n)=>N.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{d:"M8 16C5.76667 16 3.875 15.225 2.325 13.675C0.775 12.125 0 10.2333 0 8C0 5.76667 0.775 3.875 2.325 2.325C3.875 0.775 5.76667 0 8 0C9.15 0 10.25 0.2375 11.3 0.7125C12.35 1.1875 13.25 1.86667 14 2.75V0H16V7H9V5H13.2C12.6667 4.06667 11.9375 3.33333 11.0125 2.8C10.0875 2.26667 9.08333 2 8 2C6.33333 2 4.91667 2.58333 3.75 3.75C2.58333 4.91667 2 6.33333 2 8C2 9.66667 2.58333 11.0833 3.75 12.25C4.91667 13.4167 6.33333 14 8 14C9.28333 14 10.4417 13.6333 11.475 12.9C11.0583 14.1 12.5083 12.1667 11.475 12.9L12.9 14.325C11.4667 15.4417 9.83333 16 8 16Z",fill:"white"})),Cm=W.forwardRef(Em),Ys=e=>b.jsx($.Stack,{position:"absolute",left:0,top:0,width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(2px)",zIndex:100,...e.sx||{}},...Gn.omit(e,"sx")}),Hl=ke.observer(({store:e,children:t})=>{const{t:r}=Yt.useTranslation(),n=$.useTheme();function o(){var i,s;if(e.activationState==="inactive"&&!e.activationError)return b.jsx(Ys,{sx:{borderRadius:"6px",backgroundColor:`color-mix(in srgb, ${(i=n.palette.backgroundPaperElevation)==null?void 0:i[5]}, transparent)`},children:b.jsx($.Button,{color:"primary",variant:"contained",onClick:()=>e.activate({manual:!0}),disabled:e.isLocked,children:r("Jogging.Activate.bt")})});if(e.activationState==="loading"||e.activationError)return b.jsx(Ys,{sx:{backgroundColor:`color-mix(in srgb, ${(s=n.palette.backgroundPaperElevation)==null?void 0:s[5]}, transparent)`},children:b.jsx(mo,{message:r("Jogging.Activating.lb"),error:e.activationError})})}return b.jsxs($.Stack,{sx:{position:"relative",padding:"6px"},children:[o(),t]})});function Rm(){this.__data__=[],this.size=0}function Wl(e,t){return e===t||e!==e&&t!==t}function yo(e,t){for(var r=e.length;r--;)if(Wl(e[r][0],t))return r;return-1}var _m=Array.prototype,Pm=_m.splice;function $m(e){var t=this.__data__,r=yo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Pm.call(t,r,1),--this.size,!0}function km(e){var t=this.__data__,r=yo(t,e);return r<0?void 0:t[r][1]}function jm(e){return yo(this.__data__,e)>-1}function Am(e,t){var r=this.__data__,n=yo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ct(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ta))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,v=r&Ey?new Hn:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=ob}var ib="[object Arguments]",sb="[object Array]",ab="[object Boolean]",lb="[object Date]",cb="[object Error]",ub="[object Function]",fb="[object Map]",db="[object Number]",pb="[object Object]",gb="[object RegExp]",hb="[object Set]",mb="[object String]",yb="[object WeakMap]",bb="[object ArrayBuffer]",vb="[object DataView]",xb="[object Float32Array]",Sb="[object Float64Array]",wb="[object Int8Array]",Tb="[object Int16Array]",Ob="[object Int32Array]",Eb="[object Uint8Array]",Cb="[object Uint8ClampedArray]",Rb="[object Uint16Array]",_b="[object Uint32Array]",ue={};ue[xb]=ue[Sb]=ue[wb]=ue[Tb]=ue[Ob]=ue[Eb]=ue[Cb]=ue[Rb]=ue[_b]=!0;ue[ib]=ue[sb]=ue[bb]=ue[ab]=ue[vb]=ue[lb]=ue[cb]=ue[ub]=ue[fb]=ue[db]=ue[pb]=ue[gb]=ue[hb]=ue[mb]=ue[yb]=!1;function Pb(e){return Gt(e)&&Mi(e.length)&&!!ue[Xt(e)]}function $b(e){return function(t){return e(t)}}var Ql=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Ql&&typeof module=="object"&&module&&!module.nodeType&&module,kb=zr&&zr.exports===Ql,Jo=kb&&ml.process,oa=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Jo&&Jo.binding&&Jo.binding("util")}catch{}}(),ia=oa&&oa.isTypedArray,ec=ia?$b(ia):Pb,jb=Object.prototype,Ab=jb.hasOwnProperty;function Ib(e,t){var r=yt(e),n=!r&&Yl(e),o=!r&&!n&&ui(e),i=!r&&!n&&!o&&ec(e),s=r||n||o||i,a=s?Ky(e.length,String):[],l=a.length;for(var c in e)Ab.call(e,c)&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Zl(c,l)))&&a.push(c);return a}var Lb=Object.prototype;function Nb(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Lb;return e===r}function Mb(e,t){return function(r){return e(t(r))}}var Db=Mb(Object.keys,Object),Fb=Object.prototype,Vb=Fb.hasOwnProperty;function Bb(e){if(!Nb(e))return Db(e);var t=[];for(var r in Object(e))Vb.call(e,r)&&r!="constructor"&&t.push(r);return t}function tc(e){return e!=null&&Mi(e.length)&&!Gl(e)}function Di(e){return tc(e)?Ib(e):Bb(e)}function sa(e){return zy(e,Di,qy)}var Ub=1,zb=Object.prototype,Jb=zb.hasOwnProperty;function Hb(e,t,r,n,o,i){var s=r&Ub,a=sa(e),l=a.length,c=sa(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var f=a[d];if(!(s?f in t:Jb.call(t,f)))return!1}var v=i.get(e),y=i.get(t);if(v&&y)return v==t&&y==e;var m=!0;i.set(e,t),i.set(t,e);for(var h=s;++d{const{t}=Yt.useTranslation(),[r,n]=W.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),o=W.useRef(r);wr(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;t0(o.current,s)||(o.current=s,n(s))});const i=[];for(const[s,a]of r.entries())a&&i.push(s);return i.length===0?null:b.jsx($.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",visibility:i.length?"visible":"collapse"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:i.map(s=>s+1).join(", ")})})},r0=$.styled($.FormControl)(({theme:e})=>({"&.MuiFormControl-root":{".MuiSelect-select":{paddingTop:"20px",paddingLeft:"12px"},label:{pointerEvents:"none",fontSize:"16px"},".MuiInputLabel-root":{"&.Mui-focused":{color:e.palette.text.primary}}}}));function yn({labelValue:e,...t}){return b.jsxs(r0,{fullWidth:!0,variant:"filled",children:[b.jsx($.InputLabel,{id:t.labelId,children:e}),b.jsx($.Select,{...t})]})}var ha=function(){try{var e=Qt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function n0(e,t,r){t=="__proto__"&&ha?ha(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function o0(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++othis.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:i}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Bi(t,n,o||[],i||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return Gn.countBy(this.coordSystems,t=>t.name)}async deactivate(t={}){if(this.activationState==="inactive")return;const r=this.jogger.activeWebsocket;this.activationState="inactive",this.jogger.setJoggingMode("increment"),r&&await r.closed();try{await this.jogger.nova.api.motionGroupJogging.stopJogging(this.jogger.motionGroupId)}catch(n){console.error(n)}t.requireManualReactivation&&dt.runInAction(()=>{this.manualActivationRequired=!0})}async activate(t={}){if(!(this.manualActivationRequired&&!t.manual)){dt.runInAction(()=>{this.activationState="loading",this.activationError=null});try{await this.jogger.nova.api.controller.setDefaultMode(this.jogger.motionStream.controllerId,"MODE_CONTROL")}catch(r){console.error(r)}if(this.currentTab.id==="cartesian"){const r={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",r):this.jogger.setJoggingMode("cartesian",r)}else this.jogger.setJoggingMode("joint");if(this.jogger.activeWebsocket)try{this.jogger.stop(),await this.jogger.activeWebsocket.nextMessage()}catch(r){dt.runInAction(()=>{this.activationState="inactive",this.activationError=r});return}dt.runInAction(()=>{this.activationState="active",t.manual&&(this.manualActivationRequired=!1)})}}loadFromLocalStorage(){const t=Lt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return U0}get discreteIncrementOptions(){return hi}get incrementOptionsById(){return bn(this.incrementOptions,t=>t.id)}get tabsById(){return bn(this.tabs,t=>t.id)}get currentTab(){return this.tabsById[this.selectedTabId]||this.tabs[0]}get tabIndex(){return this.tabs.indexOf(this.currentTab)}get coordSystemsById(){return bn(this.coordSystems,t=>t.coordinate_system)}get selectedCoordSystem(){return this.coordSystemsById[this.selectedCoordSystemId]}get activeCoordSystemId(){return this.selectedOrientation==="tool"?"tool":this.selectedCoordSystemId}get tcpsById(){return bn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:hi.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=B0();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}const J0=ke.observer(({store:e})=>{var n;const{t}=Yt.useTranslation();function r(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return b.jsxs($.Box,{component:"div",sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"min-height min-height","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[b.jsx(yn,{labelId:"jogging-coord-select",labelValue:"Coordinate Sys.",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:o=>{e.setSelectedCoordSystemId(o.target.value)},disabled:e.isLocked,children:e.coordSystems.map(o=>b.jsx($.MenuItem,{value:o.coordinate_system,children:o.name&&e.coordSystemCountByName[o.name]>1?`${o.name} / ${o.coordinate_system}`:o.name||o.coordinate_system},o.coordinate_system))}),b.jsx(yn,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:o=>{e.setSelectedTcpId(o.target.value)},disabled:e.isLocked,children:e.tcps.map(o=>b.jsx($.MenuItem,{value:o.id,children:o.id},o.id))}),b.jsx(yn,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:o=>{e.setSelectedOrientation(o.target.value)},disabled:e.isLocked,children:z0.map(o=>b.jsx($.MenuItem,{value:o,children:r(o)},o))}),b.jsxs(yn,{labelValue:"Increment",labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:o=>{e.setSelectedIncrementId(o.target.value)},disabled:e.isLocked,children:[b.jsx($.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>b.jsx($.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})}),H0=$.styled($.ToggleButtonGroup)(({theme:e})=>{var t;return{"&.MuiToggleButtonGroup-root":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[8],borderRadius:"8px",padding:"4px",gap:"4px",button:{border:"none",borderRadius:"4px",flex:"1 1 0px",minWidth:0,"&.MuiToggleButtonGroup-firstButton":{borderRadius:"8px 4px 4px 8px"},"&.MuiToggleButtonGroup-lastButton":{borderRadius:"4px 8px 8px 4px"}}}}});function W0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const G0=2;function cc(e,t){return e-t}function ba(e,t){var r;const{index:n}=(r=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({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}%`})}},Z0=e=>e;let wn;function xa(){return wn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?wn=CSS.supports("touch-action","none"):wn=!0),wn}function Q0(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:y=Z0,step:m=1,shiftStep:h=10,tabIndex:S,value:T}=e,k=N.useRef(),[O,w]=N.useState(-1),[C,R]=N.useState(-1),[z,se]=N.useState(!1),V=N.useRef(0),[M,G]=Za({controlled:T,default:r??l,name:"Slider"}),q=u&&((P,I,D)=>{const K=P.nativeEvent||P,Q=new K.constructor(K.type,K);Object.defineProperty(Q,"target",{writable:!0,value:{value:I,name:c}}),u(Q,I,D)}),Z=Array.isArray(M);let X=Z?M.slice().sort(cc):[M];X=X.map(P=>P==null?l:dr(P,l,a));const Se=s===!0&&m!==null?[...Array(Math.floor((a-l)/m)+1)].map((P,I)=>({value:l+m*I})):s||[],ce=Se.map(P=>P.value),{isFocusVisibleRef:ee,onBlur:Oe,onFocus:je,ref:nt}=Qa(),[vt,Ge]=N.useState(-1),we=N.useRef(),_t=Nn(nt,we),at=Nn(v,_t),qe=P=>I=>{var D;const K=Number(I.currentTarget.getAttribute("data-index"));je(I),ee.current===!0&&Ge(K),R(K),P==null||(D=P.onFocus)==null||D.call(P,I)},Be=P=>I=>{var D;Oe(I),ee.current===!1&&Ge(-1),R(-1),P==null||(D=P.onBlur)==null||D.call(P,I)},lt=(P,I)=>{const D=Number(P.currentTarget.getAttribute("data-index")),K=X[D],Q=ce.indexOf(K);let Y=I;if(Se&&m==null){const ze=ce[ce.length-1];Y>ze?Y=ze:YI=>{var D;if(m!==null){const K=Number(I.currentTarget.getAttribute("data-index")),Q=X[K];let Y=null;(I.key==="ArrowLeft"||I.key==="ArrowDown")&&I.shiftKey||I.key==="PageDown"?Y=Math.max(Q-h,l):((I.key==="ArrowRight"||I.key==="ArrowUp")&&I.shiftKey||I.key==="PageUp")&&(Y=Math.min(Q+h,a)),Y!==null&&(lt(I,Y),I.preventDefault())}P==null||(D=P.onKeyDown)==null||D.call(P,I)};wi(()=>{if(n&&we.current.contains(document.activeElement)){var P;(P=document.activeElement)==null||P.blur()}},[n]),n&&O!==-1&&w(-1),n&&vt!==-1&&Ge(-1);const Dt=P=>I=>{var D;(D=P.onChange)==null||D.call(P,I),lt(I,I.target.valueAsNumber)},xt=N.useRef();let Ue=f;i&&f==="horizontal"&&(Ue+="-reverse");const j=({finger:P,move:I=!1})=>{const{current:D}=we,{width:K,height:Q,bottom:Y,left:ze}=D.getBoundingClientRect();let Ke;Ue.indexOf("vertical")===0?Ke=(Y-P.y)/Q:Ke=(P.x-ze)/K,Ue.indexOf("-reverse")!==-1&&(Ke=1-Ke);let re;if(re=q0(Ke,l,a),m)re=Y0(re,m,l);else{const kt=ba(ce,re);re=ce[kt]}re=dr(re,l,a);let Le=0;if(Z){I?Le=xt.current:Le=ba(X,re),o&&(re=dr(re,X[Le-1]||-1/0,X[Le+1]||1/0));const kt=re;re=va({values:X,newValue:re,index:Le}),o&&I||(Le=re.indexOf(kt),xt.current=Le)}return{newValue:re,activeIndex:Le}},te=Rn(P=>{const I=vn(P,k);if(!I)return;if(V.current+=1,P.type==="mousemove"&&P.buttons===0){de(P);return}const{newValue:D,activeIndex:K}=j({finger:I,move:!0});xn({sliderRef:we,activeIndex:K,setActive:w}),G(D),!z&&V.current>G0&&se(!0),q&&!Sn(D,M)&&q(P,D,K)}),de=Rn(P=>{const I=vn(P,k);if(se(!1),!I)return;const{newValue:D}=j({finger:I,move:!0});w(-1),P.type==="touchend"&&R(-1),d&&d(P,D),k.current=void 0,Ie()}),Ae=Rn(P=>{if(n)return;xa()||P.preventDefault();const I=P.changedTouches[0];I!=null&&(k.current=I.identifier);const D=vn(P,k);if(D!==!1){const{newValue:Q,activeIndex:Y}=j({finger:D});xn({sliderRef:we,activeIndex:Y,setActive:w}),G(Q),q&&!Sn(Q,M)&&q(P,Q,Y)}V.current=0;const K=mr(we.current);K.addEventListener("touchmove",te,{passive:!0}),K.addEventListener("touchend",de,{passive:!0})}),Ie=N.useCallback(()=>{const P=mr(we.current);P.removeEventListener("mousemove",te),P.removeEventListener("mouseup",de),P.removeEventListener("touchmove",te),P.removeEventListener("touchend",de)},[de,te]);N.useEffect(()=>{const{current:P}=we;return P.addEventListener("touchstart",Ae,{passive:xa()}),()=>{P.removeEventListener("touchstart",Ae),Ie()}},[Ie,Ae]),N.useEffect(()=>{n&&Ie()},[n,Ie]);const Pt=P=>I=>{var D;if((D=P.onMouseDown)==null||D.call(P,I),n||I.defaultPrevented||I.button!==0)return;I.preventDefault();const K=vn(I,k);if(K!==!1){const{newValue:Y,activeIndex:ze}=j({finger:K});xn({sliderRef:we,activeIndex:ze,setActive:w}),G(Y),q&&!Sn(Y,M)&&q(I,Y,ze)}V.current=0;const Q=mr(we.current);Q.addEventListener("mousemove",te,{passive:!0}),Q.addEventListener("mouseup",de)},Te=Wn(Z?X[0]:l,l,a),$t=Wn(X[X.length-1],l,a)-Te,Ft=(P={})=>{const I=_n(P),D={onMouseDown:Pt(I||{})},K=_({},I,D);return _({},P,{ref:at},K)},Er=P=>I=>{var D;(D=P.onMouseOver)==null||D.call(P,I);const K=Number(I.currentTarget.getAttribute("data-index"));R(K)},Cr=P=>I=>{var D;(D=P.onMouseLeave)==null||D.call(P,I),R(-1)};return{active:O,axis:Ue,axisProps:X0,dragging:z,focusedThumbIndex:vt,getHiddenInputProps:(P={})=>{var I;const D=_n(P),K={onChange:Dt(D||{}),onFocus:qe(D||{}),onBlur:Be(D||{}),onKeyDown:ct(D||{})},Q=_({},D,K);return _({tabIndex:S,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(a),"aria-valuemin":y(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(I=e.step)!=null?I:void 0,disabled:n},P,Q,{style:_({},td,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ft,getThumbProps:(P={})=>{const I=_n(P),D={onMouseOver:Er(I||{}),onMouseLeave:Cr(I||{})};return _({},P,I,D)},marks:Se,open:C,range:Z,rootRef:at,trackLeap:$t,trackOffset:Te,values:X,getThumbStyle:P=>({pointerEvents:O!==-1&&O!==P?"none":void 0})}}const e1=e=>!e||!Br(e);function t1(e){return nn("MuiSlider",e)}const Qe=Ga("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"]),r1=e=>{const{open:t}=e;return{offset:mt(t&&Qe.valueLabelOpen),circle:Qe.valueLabelCircle,label:Qe.valueLabelLabel}};function uc(e){const{children:t,className:r,value:n}=e,o=r1(e);return t?N.cloneElement(t,{className:mt(t.props.className)},b.jsxs(N.Fragment,{children:[t.props.children,b.jsx("span",{className:mt(o.offset,r),"aria-hidden":!0,children:b.jsx("span",{className:o.circle,children:b.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(uc.propTypes={children:p.element.isRequired,className:p.string,value:p.node});const n1=["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 Sa(e){return e}const o1=Et("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Ce(r.color)}`],r.size!=="medium"&&t[`size${Ce(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.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"},[`&.${Qe.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Qe.dragging}`]:{[`& .${Qe.thumb}, & .${Qe.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].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}}]}}),i1=Et("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}}]}),s1=Et("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(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:_({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:_({backgroundColor:ei(e.palette[r].main,.62),borderColor:ei(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Qo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Qo(e.palette[r].main,.5)})))}))]}}),a1=Et("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Ce(r.color)}`],r.size!=="medium"&&t[`thumbSize${Ce(r.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%)"},[`&.${Qe.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(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${Qe.focusVisible}`]:_({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ds(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Qe.active}`]:_({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ds(e.palette[r].main,.16)}`})}}))]}}),l1=Et(uc,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>_({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%"},[`&.${Qe.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%"},[`&.${Qe.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"}}]})),c1=Et("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>_i(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&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}}]})),u1=Et("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>_i(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>_({},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}}]})),f1=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:i,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${Ce(a)}`,l&&`size${Ce(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Ce(l)}`,a&&`thumbColor${Ce(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Oi(c,t1,s)},d1=({children:e})=>e,fc=N.forwardRef(function(t,r){var n,o,i,s,a,l,c,u,d,f,v,y,m,h,S,T,k,O,w,C,R,z,se,V;const M=Pi({props:t,name:"MuiSlider"}),G=ad(),{"aria-label":q,"aria-valuetext":Z,"aria-labelledby":X,component:Se="span",components:ce={},componentsProps:ee={},color:Oe="primary",classes:je,className:nt,disableSwap:vt=!1,disabled:Ge=!1,getAriaLabel:we,getAriaValueText:_t,marks:at=!1,max:qe=100,min:Be=0,orientation:lt="horizontal",shiftStep:ct=10,size:Dt="medium",step:xt=1,scale:Ue=Sa,slotProps:j,slots:te,track:de="normal",valueLabelDisplay:Ae="off",valueLabelFormat:Ie=Sa}=M,Pt=Ve(M,n1),Te=_({},M,{isRtl:G,max:qe,min:Be,classes:je,disabled:Ge,disableSwap:vt,orientation:lt,marks:at,color:Oe,size:Dt,step:xt,shiftStep:ct,scale:Ue,track:de,valueLabelDisplay:Ae,valueLabelFormat:Ie}),{axisProps:$t,getRootProps:Ft,getHiddenInputProps:Er,getThumbProps:Cr,open:Rr,active:er,axis:ot,focusedThumbIndex:P,range:I,dragging:D,marks:K,values:Q,trackOffset:Y,trackLeap:ze,getThumbStyle:Ke}=Q0(_({},Te,{rootRef:r}));Te.marked=K.length>0&&K.some(L=>L.label),Te.dragging=D,Te.focusedThumbIndex=P;const re=f1(Te),Le=(n=(o=te==null?void 0:te.root)!=null?o:ce.Root)!=null?n:o1,kt=(i=(s=te==null?void 0:te.rail)!=null?s:ce.Rail)!=null?i:i1,tr=(a=(l=te==null?void 0:te.track)!=null?l:ce.Track)!=null?a:s1,_r=(c=(u=te==null?void 0:te.thumb)!=null?u:ce.Thumb)!=null?c:a1,St=(d=(f=te==null?void 0:te.valueLabel)!=null?f:ce.ValueLabel)!=null?d:l1,Vt=(v=(y=te==null?void 0:te.mark)!=null?y:ce.Mark)!=null?v:c1,Bt=(m=(h=te==null?void 0:te.markLabel)!=null?h:ce.MarkLabel)!=null?m:u1,Pr=(S=(T=te==null?void 0:te.input)!=null?T:ce.Input)!=null?S:"input",$r=(k=j==null?void 0:j.root)!=null?k:ee.root,cn=(O=j==null?void 0:j.rail)!=null?O:ee.rail,kr=(w=j==null?void 0:j.track)!=null?w:ee.track,rr=(C=j==null?void 0:j.thumb)!=null?C:ee.thumb,nr=(R=j==null?void 0:j.valueLabel)!=null?R:ee.valueLabel,So=(z=j==null?void 0:j.mark)!=null?z:ee.mark,wo=(se=j==null?void 0:j.markLabel)!=null?se:ee.markLabel,un=(V=j==null?void 0:j.input)!=null?V:ee.input,fn=jt({elementType:Le,getSlotProps:Ft,externalSlotProps:$r,externalForwardedProps:Pt,additionalProps:_({},e1(Le)&&{as:Se}),ownerState:_({},Te,$r==null?void 0:$r.ownerState),className:[re.root,nt]}),To=jt({elementType:kt,externalSlotProps:cn,ownerState:Te,className:re.rail}),Oo=jt({elementType:tr,externalSlotProps:kr,additionalProps:{style:_({},$t[ot].offset(Y),$t[ot].leap(ze))},ownerState:_({},Te,kr==null?void 0:kr.ownerState),className:re.track}),jr=jt({elementType:_r,getSlotProps:Cr,externalSlotProps:rr,ownerState:_({},Te,rr==null?void 0:rr.ownerState),className:re.thumb}),Eo=jt({elementType:St,externalSlotProps:nr,ownerState:_({},Te,nr==null?void 0:nr.ownerState),className:re.valueLabel}),g=jt({elementType:Vt,externalSlotProps:So,ownerState:Te,className:re.mark}),E=jt({elementType:Bt,externalSlotProps:wo,ownerState:Te,className:re.markLabel}),A=jt({elementType:Pr,getSlotProps:Er,externalSlotProps:un,ownerState:Te});return b.jsxs(Le,_({},fn,{children:[b.jsx(kt,_({},To)),b.jsx(tr,_({},Oo)),K.filter(L=>L.value>=Be&&L.value<=qe).map((L,F)=>{const ne=Wn(L.value,Be,qe),H=$t[ot].offset(ne);let B;return de===!1?B=Q.indexOf(L.value)!==-1:B=de==="normal"&&(I?L.value>=Q[0]&&L.value<=Q[Q.length-1]:L.value<=Q[0])||de==="inverted"&&(I?L.value<=Q[0]||L.value>=Q[Q.length-1]:L.value>=Q[0]),b.jsxs(N.Fragment,{children:[b.jsx(Vt,_({"data-index":F},g,!Br(Vt)&&{markActive:B},{style:_({},H,g.style),className:mt(g.className,B&&re.markActive)})),L.label!=null?b.jsx(Bt,_({"aria-hidden":!0,"data-index":F},E,!Br(Bt)&&{markLabelActive:B},{style:_({},H,E.style),className:mt(re.markLabel,E.className,B&&re.markLabelActive),children:L.label})):null]},F)}),Q.map((L,F)=>{const ne=Wn(L,Be,qe),H=$t[ot].offset(ne),B=Ae==="off"?d1:St;return b.jsx(B,_({},!Br(B)&&{valueLabelFormat:Ie,valueLabelDisplay:Ae,value:typeof Ie=="function"?Ie(Ue(L),F):Ie,index:F,open:Rr===F||er===F||Ae==="on",disabled:Ge},Eo,{children:b.jsx(_r,_({"data-index":F},jr,{className:mt(re.thumb,jr.className,er===F&&re.active,P===F&&re.focusVisible),style:_({},H,Ke(F),jr.style),children:b.jsx(Pr,_({"data-index":F,"aria-label":we?we(F):q,"aria-valuenow":Ue(L),"aria-labelledby":X,"aria-valuetext":_t?_t(Ue(L),F):Z,value:Q[F]},A))}))}),F)})]}))});process.env.NODE_ENV!=="production"&&(fc.propTypes={"aria-label":os(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":p.string,"aria-valuetext":os(p.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["primary","secondary","error","info","success","warning"]),p.string]),components:p.shape({Input:p.elementType,Mark:p.elementType,MarkLabel:p.elementType,Rail:p.elementType,Root:p.elementType,Thumb:p.elementType,Track:p.elementType,ValueLabel:p.elementType}),componentsProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),defaultValue:p.oneOfType([p.arrayOf(p.number),p.number]),disabled:p.bool,disableSwap:p.bool,getAriaLabel:p.func,getAriaValueText:p.func,marks:p.oneOfType([p.arrayOf(p.shape({label:p.node,value:p.number.isRequired})),p.bool]),max:p.number,min:p.number,name:p.string,onChange:p.func,onChangeCommitted:p.func,orientation:p.oneOf(["horizontal","vertical"]),scale:p.func,shiftStep:p.number,size:p.oneOfType([p.oneOf(["small","medium"]),p.string]),slotProps:p.shape({input:p.oneOfType([p.func,p.object]),mark:p.oneOfType([p.func,p.object]),markLabel:p.oneOfType([p.func,p.object]),rail:p.oneOfType([p.func,p.object]),root:p.oneOfType([p.func,p.object]),thumb:p.oneOfType([p.func,p.object]),track:p.oneOfType([p.func,p.object]),valueLabel:p.oneOfType([p.func,p.shape({children:p.element,className:p.string,open:p.bool,style:p.object,value:p.number,valueLabelDisplay:p.oneOf(["auto","off","on"])})])}),slots:p.shape({input:p.elementType,mark:p.elementType,markLabel:p.elementType,rail:p.elementType,root:p.elementType,thumb:p.elementType,track:p.elementType,valueLabel:p.elementType}),step:p.number,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),tabIndex:p.number,track:p.oneOf(["inverted","normal",!1]),value:p.oneOfType([p.arrayOf(p.number),p.number]),valueLabelDisplay:p.oneOf(["auto","off","on"]),valueLabelFormat:p.oneOfType([p.func,p.string])});var p1="[object Number]";function g1(e){return typeof e=="number"||Gt(e)&&Xt(e)==p1}const dc=ke.observer(e=>{$.useTheme();function t(r,n){n===e.velocity||!g1(n)||e.onVelocityChange(n)}return b.jsxs($.Stack,{direction:"row",gap:2,children:[b.jsx(fc,{value:e.velocity,color:"secondary",onChange:t,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}}),e.renderValue?e.renderValue(e.velocity):b.jsx(Ui,{value:e.velocity.toString()})]})});function Ui({value:e,sx:t}){var n;const r=$.useTheme();return b.jsx($.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(n=r.palette.backgroundPaperElevation)==null?void 0:n[8],borderRadius:"10px",minWidth:"111px",...t},children:b.jsx($.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const pc=ke.observer(({store:e})=>{const{t}=Yt.useTranslation(),r=ke.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return b.jsx(dc,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:n=>b.jsx(Ui,{value:r.valueLabelFormat(n),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),h1=ke.observer(({store:e,children:t})=>{var d,f,v,y,m,h,S,T,k;const{t:r}=Yt.useTranslation(),n=$.useTheme();function o(O,w){(w==="translate"||w==="rotate")&&e.setSelectedCartesianMotionType(w)}$i(()=>[e.selectedCoordSystemId,e.selectedTcpId],()=>{e.jogger.motionStream.motionStateSocket.changeUrl(e.jogger.nova.makeWebsocketURL(`/motion-groups/${e.jogger.motionGroupId}/state-stream?tcp=${e.selectedTcpId}&response_coordinate_system=${e.selectedCoordSystemId}`))},{fireImmediately:!0});async function i(O,w){const C=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,R=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;C&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:O.axis,direction:O.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:C,currentJoints:R,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:O.axis,direction:O.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:w.mm}:{type:"rotate",distanceRads:Lt.degreesToRadians(w.degrees)}})}finally{e.setCurrentIncrementJog(null)}})}async function s(O){if(!e.isLocked){if(e.activeDiscreteIncrement)return i(O,e.activeDiscreteIncrement);O.motionType==="translate"?await e.jogger.startTCPTranslation({axis:O.axis,direction:O.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:O.axis,direction:O.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.activeDiscreteIncrement||await e.jogger.stop()}const l=[{id:"x",colors:(v=(f=(d=n.componentsExt)==null?void 0:d.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:v.X,icon:b.jsx(xm,{})},{id:"y",colors:(h=(m=(y=n.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:m.Axis)==null?void 0:h.Y,icon:b.jsx(wm,{})},{id:"z",colors:(k=(T=(S=n.componentsExt)==null?void 0:S.JoggingCartesian)==null?void 0:T.Axis)==null?void 0:k.Z,icon:b.jsx(Om,{})}];function c(O){return r("General.mm.variable",{amount:O.toFixed(1)})}function u(O){return r("General.degree.variable",{amount:Lt.radiansToDegrees(O).toFixed(1)})}return b.jsxs($.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsxs($.Stack,{gap:2,children:[b.jsx(J0,{store:e}),b.jsx(pc,{store:e}),b.jsx($.Divider,{})]}),b.jsxs($.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:[b.jsxs(H0,{value:e.selectedCartesianMotionType,onChange:o,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[b.jsx($.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),b.jsx($.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),b.jsx(Hl,{store:e,children:b.jsxs($.Stack,{alignItems:"center",gap:"24px",sx:{flexGrow:1},children:[e.selectedCartesianMotionType==="translate"&&l.map(O=>{var w;return b.jsx(ri,{colors:O.colors,disabled:e.isLocked,activeJoggingDirection:((w=e.incrementJogInProgress)==null?void 0:w.axis)===O.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[O.icon,b.jsx($.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:O.id.toUpperCase()})]}),getDisplayedValue:()=>{var C;return c(((C=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:C.position[O.id])||0)},startJogging:C=>s({axis:O.id,motionType:"translate",direction:C}),stopJogging:a},O.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(O=>{var w;return b.jsx(ri,{colors:O.colors,disabled:e.isLocked,activeJoggingDirection:((w=e.incrementJogInProgress)==null?void 0:w.axis)===O.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[b.jsx(Cm,{}),b.jsx($.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:O.id.toUpperCase()})]}),getDisplayedValue:()=>{var C,R;return u(((R=(C=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:C.orientation)==null?void 0:R[O.id])||0)},startJogging:C=>s({axis:O.id,motionType:"rotate",direction:C}),stopJogging:a},O.id)})]})})]}),b.jsx(rc,{store:e}),t&&b.jsx($.Divider,{}),t]})}),m1=ke.observer(({store:e,children:t})=>{async function r(o){await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function n(){await e.jogger.stop()}return b.jsxs($.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsx(pc,{store:e}),b.jsx($.Divider,{}),b.jsx($.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:b.jsx(Hl,{store:e,children:b.jsx($.Stack,{alignItems:"center",gap:"24px",sx:{flexGrow:1},children:e.jogger.motionStream.joints.map(o=>{var l;const i=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[o.index],s=(i==null?void 0:i.lower_limit)!==void 0?Lt.radiansToDegrees(i.lower_limit):void 0,a=(i==null?void 0:i.upper_limit)!==void 0?Lt.radiansToDegrees(i.upper_limit):void 0;return b.jsx(bl,{disabled:e.isLocked,lowerLimitDegs:s,upperLimitDegs:a,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return c!==void 0?Lt.radiansToDegrees(c):void 0},startJogging:c=>r({joint:o.index,direction:c}),stopJogging:n},`joint-${o.index}`)})})})}),b.jsx(rc,{store:e}),t&&b.jsx($.Divider,{}),t]})}),y1=sn(ke.observer(e=>{const t=Gn.isString(e.nova)?new Lt.NovaClient({instanceUrl:e.nova}):e.nova,r=ke.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){dt.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const o=await t.connectJogger(e.motionGroupId),i=await Bi.loadFor(o);dt.runInAction(()=>{r.joggingStore=i}),e.onSetup&&e.onSetup(i)}catch(o){r.loadingError=o}}return W.useEffect(()=>(n(),()=>{var o;(o=r.joggingStore)==null||o.dispose()}),[e.nova,e.motionGroupId]),W.useEffect(()=>{const o=r.joggingStore;o&&(e.locked?o.locks.add("external"):o.locks.delete("external"))},[e.locked]),b.jsx($.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?b.jsx(b1,{store:r.joggingStore,children:e.children}):b.jsx(mo,{message:"Loading jogging",error:r.loadingError})})})),b1=ke.observer(({store:e,children:t})=>{W.useEffect(()=>{function n(){e.deactivate()}function o(){e.activate()}return window.addEventListener("blur",n),window.addEventListener("focus",o),()=>{window.removeEventListener("blur",n),window.removeEventListener("focus",o)}}),$i(()=>[e.currentTab.id,e.selectedTcpId,e.activeCoordSystemId,e.activeDiscreteIncrement],()=>{e.activationState!=="inactive"&&e.activate()});function r(){if(e.currentTab.id==="cartesian")return b.jsx(b.Fragment,{children:b.jsx(h1,{store:e,children:t})});if(e.currentTab.id==="joint")return b.jsx(b.Fragment,{children:b.jsx(m1,{store:e,children:t})})}return b.jsxs($.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[b.jsx($.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>b.jsx($.Tab,{label:n.label,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id))}),b.jsx($.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:r()})]})}),gc=W.forwardRef(({label:e,value:t},r)=>{var a;const n=$.useTheme(),[o,i]=W.useState(!1);async function s(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),i(!0),!0}catch(l){console.error(l);const c=window.getSelection(),u=document.createRange();u.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(u)}return!1}return W.useEffect(()=>{if(!o)return;const l=setTimeout(()=>i(!1),3e3);return()=>{l&&clearTimeout(l)}},[o]),b.jsx($.Tooltip,{open:o,title:"Copied!",children:b.jsx($.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(a=n.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:b.jsx($.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:n.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),v1=ke.observer(({motionStream:e})=>{const t=W.useRef(null);function r(){const n=e.rapidlyChangingMotionState.tcp_pose;return n?Lt.poseToWandelscriptString(n):""}return wr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),b.jsx($.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(gc,{value:r(),ref:t})})}),x1=ke.observer(({motionStream:e})=>{const t=W.useRef(null);function r(){const{joints:n}=e.rapidlyChangingMotionState.state.joint_position;return`[${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}]`}return wr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),b.jsx($.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(gc,{value:r(),ref:t})})});function S1(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function w1({baseUrl:e=S1(),...t}){return b.jsxs($.Dialog,{"aria-labelledby":"no-motion-group-modal-title",open:!0,fullWidth:!0,sx:{"& .MuiModal-backdrop":{backdropFilter:"blur(10px)"},"& .MuiDialog-paper":{"::before":{content:'""',height:"8px",width:"100%",background:"linear-gradient(90deg, #FF0E65 0%, #47D3FF 100%)"},background:"#101629"}},children:[b.jsx($.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),b.jsxs($.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[b.jsx($.Typography,{color:"#fff",children:"Found no devices to connect to."}),b.jsx($.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),b.jsx($.DialogActions,{children:b.jsxs($.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[b.jsx($.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),b.jsx($.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const T1=Array(6).fill(2*Math.PI),wa="0.0.0-semantically-released";function zi(e){let t=wa;return wa.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function O1(e){function t(r){return r.children.length===0?[r]:[r,...r.children.flatMap(n=>t(n))]}return t(e).filter(r=>mc(r))}function hc(e){return e.name.endsWith("_FLG")}function mc(e){return/_J[0-9]+$/.test(e.name)}function E1(e,t){let r;const n=[];function o(s){return s.length===6}function i(s){if(hc(s)){if(r)throw Error(`Found multiple flange groups in robot model ${t}; first ${r.name} then ${s.name}. Only one _FLG group is allowed.`);r=s}mc(s)&&n.push(s),s.children.map(i)}if(i(e.scene),!o(n))throw Error(`Expected to find 6 joint groups in robot model ${t} with names _J01, _J02 etc, found ${n.length}. Only 6-joint robot models are currently supported.`);if(!r)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function yc({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:r,children:n}){Ho.Globals.assign({frameLoop:"always"});const o=W.useRef([]),i=W.useRef([]),{invalidate:s}=Pc.useThree();function a(f){f&&(i.current=O1(f),c(),s())}function l(f){o.current=f,d.start(Object.assign({},o.current))}function c(){const f=i.current.map((v,y)=>u[y].get());if(r)r(i.current,f);else for(const[v,y]of i.current.entries()){const m=t[v],h=m.theta||0,S=m.reverse_rotation_direction?-1:1;y.rotation.y=S*f[v]+h}}dl(()=>{const f=e.state.joint_position.joints.filter(v=>v!==void 0);requestAnimationFrame(()=>l(f))});const[u,d]=Ho.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),s()},onResolve:()=>{c()}}));return b.jsx("group",{ref:a,children:n})}const Ta="line",Oa="mesh";function C1({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new $e.Matrix4;function o(a,l){const c=new $e.Vector3,u=new $e.Quaternion,d=new $e.Vector3;n.decompose(c,u,d);const f=c.clone(),v=new $e.Matrix4().makeRotationY(a.theta+l*(a.reverse_rotation_direction?-1:1)).multiply(new $e.Matrix4().makeTranslation(0,a.d/1e3,0)).multiply(new $e.Matrix4().makeTranslation(a.a/1e3,0,0)).multiply(new $e.Matrix4().makeRotationX(a.alpha));return n.multiply(v),n.decompose(c,u,d),{a:f,b:c}}function i(a,l,c,u){if(!t)return;const d=t[a];if(!d)return;const{a:f,b:v}=o(d,u);l.geometry.setPositions([f.toArray(),v.toArray()].flat()),c.position.set(v.x,v.y,v.z)}function s(a,l){n.identity(),a.forEach((c,u)=>{i(u,c.getObjectByName(Ta),c.getObjectByName(Oa),l[u])})}return b.jsx(b.Fragment,{children:b.jsx(yc,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:s,children:b.jsxs("group",{...r,name:"Scene",children:[b.jsxs("mesh",{children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((a,l)=>{const{a:c,b:u}=o(a,e.state.joint_position.joints[l]??0),d=`dhrobot_J0${l}`;return b.jsxs("group",{name:d,children:[b.jsx(ft.Line,{name:Ta,points:[c,u],color:"white",lineWidth:5}),b.jsxs("mesh",{name:Oa,position:u,children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},d)})]})})})}const R1=console.warn;function _1(){return W.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&R1(e)}},[]),b.jsx(b.Fragment,{})}function P1(e){return e.type==="Mesh"}function $1({modelURL:e,flangeRef:t,postModelRender:r,...n}){const{gltf:o}=E1(ft.useGLTF(e),e.split("/").pop()||e),i=W.useCallback(a=>{a&&r&&r()},[e]);function s(a){return P1(a)?b.jsx("mesh",{name:a.name,geometry:a.geometry,material:a.material,position:a.position,rotation:a.rotation},a.uuid):b.jsx(Ho.animated.group,{name:a.name,position:a.position,rotation:a.rotation,ref:hc(a)?t:void 0,children:a.children.map(s)},a.uuid)}return b.jsx("group",{...n,dispose:null,ref:i,children:s(o.scene)})}const k1=e=>{e.userData.isGhost||(e.traverse(t=>{if(t instanceof $e.Mesh){t.material instanceof $e.Material&&(t.material.colorWrite=!0);const r=t.clone(),n=t.clone();r.material=new $e.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),r.userData.isGhost=!0,n.material=new $e.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),n.userData.isGhost=!0,t.parent&&(t.parent.add(r),t.parent.add(n))}}),e.userData.isGhost=!0)},j1=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(r=>{var n;r instanceof $e.Mesh&&((n=r.userData)!=null&&n.isGhost?t.push(r):r.material instanceof $e.Material&&(r.material.colorWrite=!0))}),t.forEach(r=>{r.parent&&r.parent.remove(r)}),e.userData.isGhost=!0},bc=sn(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=zi,isGhost:o=!1,flangeRef:i,postModelRender:s,...a})=>{const[l,c]=W.useState(null),u=W.useCallback(f=>{c(f)},[]);W.useEffect(()=>{l&&(o?k1(l):j1(l))},[l,o]);const d=b.jsx(C1,{rapidlyChangingMotionState:e,dhParameters:r,...a});return b.jsxs(jc.ErrorBoundary,{fallback:d,onError:f=>{if(f.message.includes("404: Not Found"))console.error(f);else throw f},children:[b.jsx(W.Suspense,{fallback:d,children:b.jsx("group",{ref:u,children:b.jsx(yc,{rapidlyChangingMotionState:e,dhParameters:r,children:b.jsx($1,{modelURL:n(t),postModelRender:s,flangeRef:i,...a})})})}),b.jsx(_1,{})]})});function A1({connectedMotionGroup:e,getModel:t=zi,isGhost:r=!1,flangeRef:n,...o}){return e.dhParameters?b.jsx(bc,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,flangeRef:n,...o}):null}const I1=$.styled($.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:o})=>!o,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:o})=>o,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),L1=W.forwardRef((e,t)=>b.jsx(I1,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),N1={$schema:"https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",name:"wandelscript",patterns:[{include:"#keywords"},{include:"#strings"},{include:"#comments"},{include:"#functions"}],repository:{keywords:{patterns:[{name:"keyword.control.flow.wandelscript",match:"\\b(move|via|to|interrupt|def|False|True|for|if|else|elif|while|return|switch|activate|deactivate|print|and|or|not)\\b"}]},strings:{name:"string.quoted.double.wandelscript",begin:'"',end:'"',patterns:[{name:"constant.character.escape.wandelscript",match:"\\\\."}]},comments:{patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.wandelscript"}},end:"$",name:"comment.line.number-sign.wandelscript"}]},functions:{patterns:[{match:"[a-zA-Z_-]+\\(",name:"entity.name.function.wandelscript"}]}},scopeName:"source.wandelscript"},M1=W.lazy(()=>import("@monaco-editor/react")),D1=sn(e=>{const t=$.useTheme(),r=W.useRef(null),[n,o]=W.useState("dark-plus"),i=t.palette.mode==="dark"?"dark-plus":"light-plus";async function s(a){var u,d;const[{createHighlighter:l},{shikiToMonaco:c}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);a.languages.register({id:"wandelscript"}),a.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),r.current||(r.current=await l({langs:[N1],themes:["dark-plus","light-plus"]})),c(r.current,a),a.editor.defineTheme(i,((d=(u=t.componentsExt)==null?void 0:u.WandelscriptEditor)==null?void 0:d.monacoTheme)??{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{}}),e.monacoSetup&&e.monacoSetup(a),o(i)}return b.jsx(W.Suspense,{fallback:b.jsx(mo,{}),children:b.jsx(M1,{value:e.code,onMount:(a,l)=>{s(l)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function vc(){var t,r,n,o,i,s,a;const e=$.createTheme({palette:{mode:"dark",text:{primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.38)"},primary:{main:"rgba(142, 86, 252, 1)",dark:"rgba(136, 58, 255, 1)",light:"rgba(157, 131, 246, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},secondary:{main:"rgba(255, 255, 255, 1)",dark:"rgba(255, 255, 255, 0.06)",contrastText:"rgba(255, 255, 255, 0.87)"},tertiary:{main:"rgba(100, 255, 218, 1)",dark:"rgba(38, 166, 154, 1)",light:"rgba(167, 255, 235, 1)",contrastText:"rgba(0, 0, 0, 1)"},error:{main:"rgba(239, 83, 80, 1)",dark:"rgba(229, 57, 53, 1)",light:"rgba(239, 154, 154, 1)",contrastText:"rgba(255, 255, 255, 1)"},warning:{main:"rgba(255, 171, 64, 1)",dark:"rgba(255, 145, 0, 1)",light:"rgba(255, 209, 128, 1)",contrastText:"rgba(0, 0, 0, 0.87)"},success:{main:"rgba(38, 166, 154, 1)",dark:"rgba(0, 121, 107, 1)",light:"rgba(128, 203, 196, 1)",contrastText:"rgba(255, 255, 255, 0.87)"},background:{default:"rgba(2, 6, 23, 1)",paper:"rgba(17, 19, 31, 1)"},action:{active:"rgba(255, 255, 255, 0.56)",hover:"rgba(255, 255, 255, 0.08)",selected:"rgba(255, 255, 255, 0.16)",disabledBackground:"rgba(255, 255, 255, 0.12)",focus:"rgba(255, 255, 255, 0.12)",disabled:"rgba(255, 255, 255, 0.38)"},common:{white:"rgba(255, 255, 255, 1)",black:"rgba(0, 0, 0, 1)"},divider:"rgba(255, 255, 255, 0.12)",backgroundPaperElevation:{0:"rgba(17,19,31,1.0)",1:"rgba(20,22,35,1.0)",2:"rgba(23,25,39,1.0)",3:"rgba(26,28,43,1.0)",4:"rgba(29,31,47,1.0)",5:"rgba(32,34,51,1.0)",6:"rgba(35,37,55,1.0)",7:"rgba(38,40,59,1.0)",8:"rgba(41,43,63,1.0)",9:"rgba(44,46,67,1.0)",10:"rgba(47,49,71,1.0)",11:"rgba(50,52,75,1.0)",12:"rgba(53,55,79,1.0)",13:"rgba(56,58,83,1.0)",14:"rgba(59,61,87,1.0)",15:"rgba(62,64,91,1.0)",16:"rgba(57,63,87,1.0)"}},paletteExt:{primary:{hover:"rgba(142, 86, 252, 0.08)",selected:"rgba(142, 86, 252, 0.16)",focus:"rgba(142, 86, 252, 0.12)",focusVisible:"rgba(142, 86, 252, 0.3)",outlineBorder:"rgba(142, 86, 252, 0.5)"},secondary:{tonal:"rgba(255,255,255,0.1)"}}});return{...e,components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(o=e.palette.backgroundPaperElevation)==null?void 0:o[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiFab:{styleOverrides:{root:{background:(s=(i=e.paletteExt)==null?void 0:i.secondary)==null?void 0:s.tonal}},variants:[{props:{color:"primary"},style:{background:e.palette.primary.main}}]}},componentsExt:{JoggingCartesian:{Axis:{X:{backgroundColor:"rgba(215, 66, 56, 1)",borderColor:"rgba(215, 66, 56, 1)",buttonBackgroundColor:{default:"rgba(241, 77, 66, 1)",pressed:"rgba(138, 41, 35, 1)",hovered:"rgba(241, 77, 66, 1)",disabled:"rgba(241, 77, 66, 1)"},color:"rgba(255, 198, 198, 1)"},Y:{backgroundColor:"rgba(20, 151, 108, 1)",borderColor:"rgba(20, 151, 108, 1)",buttonBackgroundColor:{default:"rgba(28, 188, 135, 1)",pressed:"rgba(11, 89, 63, 1)",disabled:"rgba(28, 188, 135, 1)",hovered:"rgba(28, 188, 135, 1)"},color:"rgba(215, 255, 242, 1)"},Z:{backgroundColor:"rgba(1, 87, 155, 1)",borderColor:"rgba(1, 87, 155, 1)",buttonBackgroundColor:{default:"rgba(2, 136, 209, 1)",pressed:"rgba(2, 64, 114, 1)",disabled:"rgba(2, 136, 209, 1)",hovered:"rgba(2, 136, 209, 1)"},color:"rgba(210, 239, 255, 1)"}}},WandelscriptEditor:{monacoTheme:{base:"vs-dark",inherit:!0,rules:[{token:"keyword",foreground:"#b349a9ff"}],colors:{"editor.background":$.rgbToHex(((a=e.palette.backgroundPaperElevation)==null?void 0:a[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function F1(){const e=vc();return e.palette.mode="light",e}function V1(e){var n,o,i,s;let t=!0;((n=e.palette)==null?void 0:n.mode)==="light"?t=!1:((o=e.palette)==null?void 0:o.mode)!=="dark"&&(t=!(typeof window<"u"&&((s=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:s.matches)));const r=t?vc():F1();return ll(r,e)}exports.JoggingCartesianAxisControl=ri;exports.JoggingJointRotationControl=bl;exports.JoggingPanel=y1;exports.LoadingCover=mo;exports.LoadingErrorMessage=Jl;exports.NoMotionGroupModal=w1;exports.PoseCartesianValues=v1;exports.PoseJointValues=x1;exports.PresetEnvironment=Lc;exports.Robot=A1;exports.SafetyZonesRenderer=Dc;exports.SelectableFab=L1;exports.SupportedRobot=bc;exports.VelocitySlider=dc;exports.VelocitySliderLabel=Ui;exports.WandelscriptEditor=D1;exports.createNovaMuiTheme=V1;exports.defaultAxisConfig=T1;exports.defaultGetModel=zi;exports.useAnimationFrame=wr;exports.useAutorun=dl;exports.useMounted=lo;exports.useReaction=$i; //# sourceMappingURL=index.cjs.map