@wandelbots/wandelbots-js-react-components 2.10.1 → 2.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var ml=Object.create;var ei=Object.defineProperty;var yl=Object.getOwnPropertyDescriptor;var bl=Object.getOwnPropertyNames;var xl=Object.getPrototypeOf,vl=Object.prototype.hasOwnProperty;var Sl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bl(t))!vl.call(e,o)&&o!==n&&ei(e,o,{get:()=>t[o],enumerable:!(r=yl(t,o))||r.enumerable});return e};var Hr=(e,t,n)=>(n=e!=null?ml(xl(e)):{},Sl(t||!e||!e.__esModule?ei(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),He=require("@react-three/drei"),wl=require("@react-three/fiber"),ut=require("three"),Cl=require("three-stdlib"),j=require("@mui/material"),Ie=require("mobx-react-lite"),un=require("react-i18next"),Tl=require("i18next-browser-languagedetector"),ln=require("mobx"),h=require("prop-types"),El=require("@emotion/styled"),Ol=require("@emotion/react"),Ct=require("@wandelbots/wandelbots-js"),jo=require("lodash-es"),fo=require("@react-spring/three"),Rl=require("react-error-boundary");function ks(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const M=ks(H),Se=ks(ut);var po={exports:{}},xn={};/**
1
+ "use strict";var yl=Object.create;var Qo=Object.defineProperty;var bl=Object.getOwnPropertyDescriptor;var xl=Object.getOwnPropertyNames;var vl=Object.getPrototypeOf,Sl=Object.prototype.hasOwnProperty;var wl=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xl(t))!Sl.call(e,o)&&o!==n&&Qo(e,o,{get:()=>t[o],enumerable:!(r=bl(t,o))||r.enumerable});return e};var Hr=(e,t,n)=>(n=e!=null?yl(vl(e)):{},wl(t||!e||!e.__esModule?Qo(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),Ke=require("@react-three/drei"),Cl=require("@react-three/fiber"),ft=require("three"),Tl=require("three-stdlib"),j=require("@mui/material"),Ie=require("mobx-react-lite"),un=require("react-i18next"),El=require("i18next-browser-languagedetector"),ln=require("mobx"),h=require("prop-types"),Ol=require("@emotion/styled"),Rl=require("@emotion/react"),Tt=require("@wandelbots/wandelbots-js"),$o=require("lodash-es"),uo=require("@react-spring/three"),Al=require("react-error-boundary");function Ps(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const F=Ps(H),Se=Ps(ft);var fo={exports:{}},xn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ti;function Al(){if(ti)return xn;ti=1;var e=H,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=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,p={},f=null,x=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(x=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(p[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)p[u]===void 0&&(p[u]=l[u]);return{$$typeof:t,type:a,key:f,ref:x,props:p,_owner:o.current}}return xn.Fragment=n,xn.jsx=s,xn.jsxs=s,xn}var vn={};/**
9
+ */var ei;function kl(){if(ei)return xn;ei=1;var e=H,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=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={},p=null,x=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(x=l.ref);for(u in l)r.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:p,ref:x,props:d,_owner:o.current}}return xn.Fragment=n,xn.jsx=s,xn.jsxs=s,xn}var vn={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,27 +14,27 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ni;function kl(){return ni||(ni=1,process.env.NODE_ENV!=="production"&&function(){var e=H,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=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"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),y=Symbol.iterator,d="@@iterator";function v(m){if(m===null||typeof m!="object")return null;var R=y&&m[y]||m[d];return typeof R=="function"?R:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(m){{for(var R=arguments.length,I=new Array(R>1?R-1:0),U=1;U<R;U++)I[U-1]=arguments[U];k("error",m,I)}}function k(m,R,I){{var U=T.ReactDebugCurrentFrame,te=U.getStackAddendum();te!==""&&(R+="%s",I=I.concat([te]));var ie=I.map(function(Z){return String(Z)});ie.unshift("Warning: "+R),Function.prototype.apply.call(console[m],console,ie)}}var w=!1,O=!1,P=!1,L=!1,z=!1,Y;Y=Symbol.for("react.module.reference");function g(m){return!!(typeof m=="string"||typeof m=="function"||m===r||m===i||z||m===o||m===c||m===u||L||m===x||w||O||P||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===p||m.$$typeof===s||m.$$typeof===a||m.$$typeof===l||m.$$typeof===Y||m.getModuleId!==void 0))}function $(m,R,I){var U=m.displayName;if(U)return U;var te=R.displayName||R.name||"";return te!==""?I+"("+te+")":I}function F(m){return m.displayName||"Context"}function N(m){if(m==null)return null;if(typeof m.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case a:var R=m;return F(R)+".Consumer";case s:var I=m;return F(I._context)+".Provider";case l:return $(m,m.render,"ForwardRef");case p:var U=m.displayName||null;return U!==null?U:N(m.type)||"Memo";case f:{var te=m,ie=te._payload,Z=te._init;try{return N(Z(ie))}catch{return null}}}return null}var D=Object.assign,ne=0,X,$e,W,ve,Re,Q,Ye;function zt(){}zt.__reactDisabledLog=!0;function gn(){{if(ne===0){X=console.log,$e=console.info,W=console.warn,ve=console.error,Re=console.group,Q=console.groupCollapsed,Ye=console.groupEnd;var m={configurable:!0,enumerable:!0,value:zt,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}ne++}}function Jt(){{if(ne--,ne===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},m,{value:X}),info:D({},m,{value:$e}),warn:D({},m,{value:W}),error:D({},m,{value:ve}),group:D({},m,{value:Re}),groupCollapsed:D({},m,{value:Q}),groupEnd:D({},m,{value:Ye})})}ne<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var At=T.ReactCurrentDispatcher,ht;function Fe(m,R,I){{if(ht===void 0)try{throw Error()}catch(te){var U=te.stack.trim().match(/\n( *(at )?)/);ht=U&&U[1]||""}return`
18
- `+ht+m}}var Ge=!1,Be;{var st=typeof WeakMap=="function"?WeakMap:Map;Be=new st}function Ne(m,R){if(!m||Ge)return"";{var I=Be.get(m);if(I!==void 0)return I}var U;Ge=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=At.current,At.current=null,gn();try{if(R){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(_e){U=_e}Reflect.construct(m,[],Z)}else{try{Z.call()}catch(_e){U=_e}m.call(Z.prototype)}}else{try{throw Error()}catch(_e){U=_e}m()}}catch(_e){if(_e&&U&&typeof _e.stack=="string"){for(var q=_e.stack.split(`
19
- `),Ae=U.stack.split(`
20
- `),ge=q.length-1,be=Ae.length-1;ge>=1&&be>=0&&q[ge]!==Ae[be];)be--;for(;ge>=1&&be>=0;ge--,be--)if(q[ge]!==Ae[be]){if(ge!==1||be!==1)do if(ge--,be--,be<0||q[ge]!==Ae[be]){var Ve=`
21
- `+q[ge].replace(" at new "," at ");return m.displayName&&Ve.includes("<anonymous>")&&(Ve=Ve.replace("<anonymous>",m.displayName)),typeof m=="function"&&Be.set(m,Ve),Ve}while(ge>=1&&be>=0);break}}}finally{Ge=!1,At.current=ie,Jt(),Error.prepareStackTrace=te}var qt=m?m.displayName||m.name:"",$t=qt?Fe(qt):"";return typeof m=="function"&&Be.set(m,$t),$t}function Ce(m,R,I){return Ne(m,!1)}function at(m){var R=m.prototype;return!!(R&&R.isReactComponent)}function mt(m,R,I){if(m==null)return"";if(typeof m=="function")return Ne(m,at(m));if(typeof m=="string")return Fe(m);switch(m){case c:return Fe("Suspense");case u:return Fe("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case l:return Ce(m.render);case p:return mt(m.type,R,I);case f:{var U=m,te=U._payload,ie=U._init;try{return mt(ie(te),R,I)}catch{}}}return""}var Xe=Object.prototype.hasOwnProperty,we={},yt=T.ReactDebugCurrentFrame;function lt(m){if(m){var R=m._owner,I=mt(m.type,m._source,R?R.type:null);yt.setExtraStackFrame(I)}else yt.setExtraStackFrame(null)}function Gt(m,R,I,U,te){{var ie=Function.call.bind(Xe);for(var Z in m)if(ie(m,Z)){var q=void 0;try{if(typeof m[Z]!="function"){var Ae=Error((U||"React class")+": "+I+" type `"+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[Z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ae.name="Invariant Violation",Ae}q=m[Z](R,Z,U,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){q=ge}q&&!(q instanceof Error)&&(lt(te),E("%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).",U||"React class",I,Z,typeof q),lt(null)),q instanceof Error&&!(q.message in we)&&(we[q.message]=!0,lt(te),E("Failed %s type: %s",I,q.message),lt(null))}}}var Wt=Array.isArray;function bt(m){return Wt(m)}function xt(m){{var R=typeof Symbol=="function"&&Symbol.toStringTag,I=R&&m[Symbol.toStringTag]||m.constructor.name||"Object";return I}}function Ht(m){try{return A(m),!1}catch{return!0}}function A(m){return""+m}function _(m){if(Ht(m))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(m)),A(m)}var B=T.ReactCurrentOwner,K={key:!0,ref:!0,__self:!0,__source:!0},ee,V;function me(m){if(Xe.call(m,"ref")){var R=Object.getOwnPropertyDescriptor(m,"ref").get;if(R&&R.isReactWarning)return!1}return m.ref!==void 0}function Te(m){if(Xe.call(m,"key")){var R=Object.getOwnPropertyDescriptor(m,"key").get;if(R&&R.isReactWarning)return!1}return m.key!==void 0}function pe(m,R){typeof m.ref=="string"&&B.current}function je(m,R){{var I=function(){ee||(ee=!0,E("%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)",R))};I.isReactWarning=!0,Object.defineProperty(m,"key",{get:I,configurable:!0})}}function kt(m,R){{var I=function(){V||(V=!0,E("%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)",R))};I.isReactWarning=!0,Object.defineProperty(m,"ref",{get:I,configurable:!0})}}var Gr=function(m,R,I,U,te,ie,Z){var q={$$typeof:t,type:m,key:R,ref:I,props:Z,_owner:ie};return q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function hn(m,R,I,U,te){{var ie,Z={},q=null,Ae=null;I!==void 0&&(_(I),q=""+I),Te(R)&&(_(R.key),q=""+R.key),me(R)&&(Ae=R.ref,pe(R,te));for(ie in R)Xe.call(R,ie)&&!K.hasOwnProperty(ie)&&(Z[ie]=R[ie]);if(m&&m.defaultProps){var ge=m.defaultProps;for(ie in ge)Z[ie]===void 0&&(Z[ie]=ge[ie])}if(q||Ae){var be=typeof m=="function"?m.displayName||m.name||"Unknown":m;q&&je(Z,be),Ae&&kt(Z,be)}return Gr(m,q,Ae,te,U,B.current,Z)}}var mn=T.ReactCurrentOwner,Kt=T.ReactDebugCurrentFrame;function Ze(m){if(m){var R=m._owner,I=mt(m.type,m._source,R?R.type:null);Kt.setExtraStackFrame(I)}else Kt.setExtraStackFrame(null)}var yn;yn=!1;function ce(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function ye(){{if(mn.current){var m=N(mn.current.type);if(m)return`
17
+ */var ti;function Pl(){return ti||(ti=1,process.env.NODE_ENV!=="production"&&function(){var e=H,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=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"),p=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),y=Symbol.iterator,f="@@iterator";function v(m){if(m===null||typeof m!="object")return null;var O=y&&m[y]||m[f];return typeof O=="function"?O:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(m){{for(var O=arguments.length,D=new Array(O>1?O-1:0),z=1;z<O;z++)D[z-1]=arguments[z];A("error",m,D)}}function A(m,O,D){{var z=T.ReactDebugCurrentFrame,ne=z.getStackAddendum();ne!==""&&(O+="%s",D=D.concat([ne]));var ie=D.map(function(Z){return String(Z)});ie.unshift("Warning: "+O),Function.prototype.apply.call(console[m],console,ie)}}var C=!1,k=!1,$=!1,L=!1,B=!1,W;W=Symbol.for("react.module.reference");function g(m){return!!(typeof m=="string"||typeof m=="function"||m===r||m===i||B||m===o||m===c||m===u||L||m===x||C||k||$||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===d||m.$$typeof===s||m.$$typeof===a||m.$$typeof===l||m.$$typeof===W||m.getModuleId!==void 0))}function P(m,O,D){var z=m.displayName;if(z)return z;var ne=O.displayName||O.name||"";return ne!==""?D+"("+ne+")":D}function I(m){return m.displayName||"Context"}function N(m){if(m==null)return null;if(typeof m.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case a:var O=m;return I(O)+".Consumer";case s:var D=m;return I(D._context)+".Provider";case l:return P(m,m.render,"ForwardRef");case d:var z=m.displayName||null;return z!==null?z:N(m.type)||"Memo";case p:{var ne=m,ie=ne._payload,Z=ne._init;try{return N(Z(ie))}catch{return null}}}return null}var M=Object.assign,Q=0,Y,Oe,ee,le,Ce,X,Ne;function st(){}st.__reactDisabledLog=!0;function gn(){{if(Q===0){Y=console.log,Oe=console.info,ee=console.warn,le=console.error,Ce=console.group,X=console.groupCollapsed,Ne=console.groupEnd;var m={configurable:!0,enumerable:!0,value:st,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Q++}}function Jt(){{if(Q--,Q===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},m,{value:Y}),info:M({},m,{value:Oe}),warn:M({},m,{value:ee}),error:M({},m,{value:le}),group:M({},m,{value:Ce}),groupCollapsed:M({},m,{value:X}),groupEnd:M({},m,{value:Ne})})}Q<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var kt=T.ReactCurrentDispatcher,mt;function Be(m,O,D){{if(mt===void 0)try{throw Error()}catch(ne){var z=ne.stack.trim().match(/\n( *(at )?)/);mt=z&&z[1]||""}return`
18
+ `+mt+m}}var We=!1,Ve;{var at=typeof WeakMap=="function"?WeakMap:Map;Ve=new at}function Me(m,O){if(!m||We)return"";{var D=Ve.get(m);if(D!==void 0)return D}var z;We=!0;var ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=kt.current,kt.current=null,gn();try{if(O){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(_e){z=_e}Reflect.construct(m,[],Z)}else{try{Z.call()}catch(_e){z=_e}m.call(Z.prototype)}}else{try{throw Error()}catch(_e){z=_e}m()}}catch(_e){if(_e&&z&&typeof _e.stack=="string"){for(var q=_e.stack.split(`
19
+ `),ke=z.stack.split(`
20
+ `),he=q.length-1,xe=ke.length-1;he>=1&&xe>=0&&q[he]!==ke[xe];)xe--;for(;he>=1&&xe>=0;he--,xe--)if(q[he]!==ke[xe]){if(he!==1||xe!==1)do if(he--,xe--,xe<0||q[he]!==ke[xe]){var Ue=`
21
+ `+q[he].replace(" at new "," at ");return m.displayName&&Ue.includes("<anonymous>")&&(Ue=Ue.replace("<anonymous>",m.displayName)),typeof m=="function"&&Ve.set(m,Ue),Ue}while(he>=1&&xe>=0);break}}}finally{We=!1,kt.current=ie,Jt(),Error.prepareStackTrace=ne}var qt=m?m.displayName||m.name:"",jt=qt?Be(qt):"";return typeof m=="function"&&Ve.set(m,jt),jt}function Te(m,O,D){return Me(m,!1)}function lt(m){var O=m.prototype;return!!(O&&O.isReactComponent)}function yt(m,O,D){if(m==null)return"";if(typeof m=="function")return Me(m,lt(m));if(typeof m=="string")return Be(m);switch(m){case c:return Be("Suspense");case u:return Be("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case l:return Te(m.render);case d:return yt(m.type,O,D);case p:{var z=m,ne=z._payload,ie=z._init;try{return yt(ie(ne),O,D)}catch{}}}return""}var Xe=Object.prototype.hasOwnProperty,we={},bt=T.ReactDebugCurrentFrame;function ct(m){if(m){var O=m._owner,D=yt(m.type,m._source,O?O.type:null);bt.setExtraStackFrame(D)}else bt.setExtraStackFrame(null)}function Gt(m,O,D,z,ne){{var ie=Function.call.bind(Xe);for(var Z in m)if(ie(m,Z)){var q=void 0;try{if(typeof m[Z]!="function"){var ke=Error((z||"React class")+": "+D+" type `"+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[Z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ke.name="Invariant Violation",ke}q=m[Z](O,Z,z,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){q=he}q&&!(q instanceof Error)&&(ct(ne),E("%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).",z||"React class",D,Z,typeof q),ct(null)),q instanceof Error&&!(q.message in we)&&(we[q.message]=!0,ct(ne),E("Failed %s type: %s",D,q.message),ct(null))}}}var Wt=Array.isArray;function xt(m){return Wt(m)}function vt(m){{var O=typeof Symbol=="function"&&Symbol.toStringTag,D=O&&m[Symbol.toStringTag]||m.constructor.name||"Object";return D}}function Ht(m){try{return R(m),!1}catch{return!0}}function R(m){return""+m}function _(m){if(Ht(m))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",vt(m)),R(m)}var V=T.ReactCurrentOwner,K={key:!0,ref:!0,__self:!0,__source:!0},te,U;function ye(m){if(Xe.call(m,"ref")){var O=Object.getOwnPropertyDescriptor(m,"ref").get;if(O&&O.isReactWarning)return!1}return m.ref!==void 0}function Ee(m){if(Xe.call(m,"key")){var O=Object.getOwnPropertyDescriptor(m,"key").get;if(O&&O.isReactWarning)return!1}return m.key!==void 0}function ge(m,O){typeof m.ref=="string"&&V.current}function je(m,O){{var D=function(){te||(te=!0,E("%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)",O))};D.isReactWarning=!0,Object.defineProperty(m,"key",{get:D,configurable:!0})}}function Pt(m,O){{var D=function(){U||(U=!0,E("%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)",O))};D.isReactWarning=!0,Object.defineProperty(m,"ref",{get:D,configurable:!0})}}var Gr=function(m,O,D,z,ne,ie,Z){var q={$$typeof:t,type:m,key:O,ref:D,props:Z,_owner:ie};return q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function hn(m,O,D,z,ne){{var ie,Z={},q=null,ke=null;D!==void 0&&(_(D),q=""+D),Ee(O)&&(_(O.key),q=""+O.key),ye(O)&&(ke=O.ref,ge(O,ne));for(ie in O)Xe.call(O,ie)&&!K.hasOwnProperty(ie)&&(Z[ie]=O[ie]);if(m&&m.defaultProps){var he=m.defaultProps;for(ie in he)Z[ie]===void 0&&(Z[ie]=he[ie])}if(q||ke){var xe=typeof m=="function"?m.displayName||m.name||"Unknown":m;q&&je(Z,xe),ke&&Pt(Z,xe)}return Gr(m,q,ke,ne,z,V.current,Z)}}var mn=T.ReactCurrentOwner,Kt=T.ReactDebugCurrentFrame;function Ze(m){if(m){var O=m._owner,D=yt(m.type,m._source,O?O.type:null);Kt.setExtraStackFrame(D)}else Kt.setExtraStackFrame(null)}var yn;yn=!1;function ue(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function be(){{if(mn.current){var m=N(mn.current.type);if(m)return`
22
22
 
23
- Check the render method of \``+m+"`."}return""}}function bn(m){return""}var Pt={};function We(m){{var R=ye();if(!R){var I=typeof m=="string"?m:m.displayName||m.name;I&&(R=`
23
+ Check the render method of \``+m+"`."}return""}}function bn(m){return""}var $t={};function He(m){{var O=be();if(!O){var D=typeof m=="string"?m:m.displayName||m.name;D&&(O=`
24
24
 
25
- Check the top-level render call using <`+I+">.")}return R}}function Yo(m,R){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var I=We(R);if(Pt[I])return;Pt[I]=!0;var U="";m&&m._owner&&m._owner!==mn.current&&(U=" It was passed a child from "+N(m._owner.type)+"."),Ze(m),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,U),Ze(null)}}function Xo(m,R){{if(typeof m!="object")return;if(bt(m))for(var I=0;I<m.length;I++){var U=m[I];ce(U)&&Yo(U,R)}else if(ce(m))m._store&&(m._store.validated=!0);else if(m){var te=v(m);if(typeof te=="function"&&te!==m.entries)for(var ie=te.call(m),Z;!(Z=ie.next()).done;)ce(Z.value)&&Yo(Z.value,R)}}}function ll(m){{var R=m.type;if(R==null||typeof R=="string")return;var I;if(typeof R=="function")I=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===l||R.$$typeof===p))I=R.propTypes;else return;if(I){var U=N(R);Gt(I,m.props,"prop",U,m)}else if(R.PropTypes!==void 0&&!yn){yn=!0;var te=N(R);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function cl(m){{for(var R=Object.keys(m.props),I=0;I<R.length;I++){var U=R[I];if(U!=="children"&&U!=="key"){Ze(m),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",U),Ze(null);break}}m.ref!==null&&(Ze(m),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ze(null))}}var Zo={};function Qo(m,R,I,U,te,ie){{var Z=g(m);if(!Z){var q="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ae=bn();Ae?q+=Ae:q+=ye();var ge;m===null?ge="null":bt(m)?ge="array":m!==void 0&&m.$$typeof===t?(ge="<"+(N(m.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof m,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,q)}var be=hn(m,R,I,te,ie);if(be==null)return be;if(Z){var Ve=R.children;if(Ve!==void 0)if(U)if(bt(Ve)){for(var qt=0;qt<Ve.length;qt++)Xo(Ve[qt],m);Object.freeze&&Object.freeze(Ve)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Xo(Ve,m)}if(Xe.call(R,"key")){var $t=N(m),_e=Object.keys(R).filter(function(hl){return hl!=="key"}),Wr=_e.length>0?"{key: someKey, "+_e.join(": ..., ")+": ...}":"{key: someKey}";if(!Zo[$t+Wr]){var gl=_e.length>0?"{"+_e.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+D+">.")}return O}}function qo(m,O){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var D=He(O);if($t[D])return;$t[D]=!0;var z="";m&&m._owner&&m._owner!==mn.current&&(z=" It was passed a child from "+N(m._owner.type)+"."),Ze(m),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,z),Ze(null)}}function Yo(m,O){{if(typeof m!="object")return;if(xt(m))for(var D=0;D<m.length;D++){var z=m[D];ue(z)&&qo(z,O)}else if(ue(m))m._store&&(m._store.validated=!0);else if(m){var ne=v(m);if(typeof ne=="function"&&ne!==m.entries)for(var ie=ne.call(m),Z;!(Z=ie.next()).done;)ue(Z.value)&&qo(Z.value,O)}}}function cl(m){{var O=m.type;if(O==null||typeof O=="string")return;var D;if(typeof O=="function")D=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===l||O.$$typeof===d))D=O.propTypes;else return;if(D){var z=N(O);Gt(D,m.props,"prop",z,m)}else if(O.PropTypes!==void 0&&!yn){yn=!0;var ne=N(O);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ul(m){{for(var O=Object.keys(m.props),D=0;D<O.length;D++){var z=O[D];if(z!=="children"&&z!=="key"){Ze(m),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",z),Ze(null);break}}m.ref!==null&&(Ze(m),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ze(null))}}var Xo={};function Zo(m,O,D,z,ne,ie){{var Z=g(m);if(!Z){var q="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ke=bn();ke?q+=ke:q+=be();var he;m===null?he="null":xt(m)?he="array":m!==void 0&&m.$$typeof===t?(he="<"+(N(m.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):he=typeof m,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,q)}var xe=hn(m,O,D,ne,ie);if(xe==null)return xe;if(Z){var Ue=O.children;if(Ue!==void 0)if(z)if(xt(Ue)){for(var qt=0;qt<Ue.length;qt++)Yo(Ue[qt],m);Object.freeze&&Object.freeze(Ue)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Yo(Ue,m)}if(Xe.call(O,"key")){var jt=N(m),_e=Object.keys(O).filter(function(ml){return ml!=="key"}),Wr=_e.length>0?"{key: someKey, "+_e.join(": ..., ")+": ...}":"{key: someKey}";if(!Xo[jt+Wr]){var hl=_e.length>0?"{"+_e.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Wr,$t,gl,$t),Zo[$t+Wr]=!0}}return m===r?cl(be):ll(be),be}}function ul(m,R,I){return Qo(m,R,I,!0)}function fl(m,R,I){return Qo(m,R,I,!1)}var dl=fl,pl=ul;vn.Fragment=r,vn.jsx=dl,vn.jsxs=pl}()),vn}process.env.NODE_ENV==="production"?po.exports=Al():po.exports=kl();var b=po.exports;function Pl(){return b.jsx(He.Environment,{children:b.jsx($l,{})})}function $l({positions:e=[2,0,2,0,2,0,2,0]}){return b.jsxs(b.Fragment,{children:[b.jsx(He.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,n)=>b.jsx(He.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,n*4],scale:[3,1,1]},n))})}),b.jsx(He.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),b.jsx(He.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),b.jsx(He.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),b.jsx(He.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),b.jsx(He.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function jl(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Se.Vector3(e[0].x,e[0].y,e[0].z),n=new Se.Vector3(e[1].x,e[1].y,e[1].z),r=new Se.Vector3(e[2].x,e[2].y,e[2].z),o=new Se.Vector3().subVectors(n,t),i=new Se.Vector3().subVectors(r,t),s=new Se.Vector3().crossVectors(o,i).normalize();for(let a=3;a<e.length;a++){const l=new Se.Vector3(e[a].x,e[a].y,e[a].z),c=new Se.Vector3().subVectors(l,t),u=s.dot(c);if(Math.abs(u)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:s}}function _l({safetyZones:e,...t}){return b.jsx("group",{...t,children:e.map((n,r)=>{let o=[];return n.geometry&&(n.geometry.compound?o=n.geometry.compound.child_geometries:n.geometry.convex_hull&&(o=[n.geometry])),o.map((i,s)=>{if(!i.convex_hull)return null;const a=i.convex_hull.vertices.map(u=>new Se.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=jl(a);if(l.isCoplanar&&l.normal){const p=new Se.Vector3().addVectors(a[0],l.normal.multiplyScalar(1e-4));a.push(p)}let c;try{c=new Cl.ConvexGeometry(a)}catch(u){return console.log("Error creating ConvexGeometry:",u),null}return 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},r)},`${r}-${s}`)})})})}function Ll({trajectory:e,...t}){var r;const n=((r=e.trajectory)==null?void 0:r.map(o=>o.tcp_pose?new Se.Vector3(o.tcp_pose.position.x/1e3,o.tcp_pose.position.z/1e3,-o.tcp_pose.position.y/1e3):null).filter(o=>o!==null))||[];return b.jsx("group",{...t,children:n.length>0&&b.jsx(He.Line,{points:n,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}function Tt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Il(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Nl={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ml(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Dl=/[A-Z]|^ms/g,Fl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ps=function(t){return t.charCodeAt(1)===45},ri=function(t){return t!=null&&typeof t!="boolean"},Kr=Ml(function(e){return Ps(e)?e:e.replace(Dl,"-$&").toLowerCase()}),oi=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Fl,function(r,o,i){return wt={name:o,styles:i,next:wt},o})}return Nl[t]!==1&&!Ps(t)&&typeof n=="number"&&n!==0?n+"px":n};function sr(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return wt={name:o.name,styles:o.styles,next:wt},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)wt={name:s.name,styles:s.styles,next:wt},s=s.next;var a=i.styles+";";return a}return Bl(e,t,n)}}var l=n;return l}function Bl(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=sr(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;ri(a)&&(r+=Kr(i)+":"+oi(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)ri(s[l])&&(r+=Kr(i)+":"+oi(i,s[l])+";");else{var c=sr(e,t,s);switch(i){case"animation":case"animationName":{r+=Kr(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var ii=/label:\s*([^\s;{]+)\s*(;|$)/g,wt;function Vl(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";wt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=sr(n,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=sr(n,t,e[a]),r){var l=i;o+=l[a]}ii.lastIndex=0;for(var c="",u;(u=ii.exec(o))!==null;)c+="-"+u[1];var p=Il(o)+c;return{name:p,styles:o,next:wt}}/**
31
- * @mui/styled-engine v6.4.0
30
+ <%s key={someKey} {...props} />`,Wr,jt,hl,jt),Xo[jt+Wr]=!0}}return m===r?ul(xe):cl(xe),xe}}function fl(m,O,D){return Zo(m,O,D,!0)}function dl(m,O,D){return Zo(m,O,D,!1)}var pl=dl,gl=fl;vn.Fragment=r,vn.jsx=pl,vn.jsxs=gl}()),vn}process.env.NODE_ENV==="production"?fo.exports=kl():fo.exports=Pl();var b=fo.exports;function $l(){return b.jsx(Ke.Environment,{children:b.jsx(jl,{})})}function jl({positions:e=[2,0,2,0,2,0,2,0]}){return b.jsxs(b.Fragment,{children:[b.jsx(Ke.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,n)=>b.jsx(Ke.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,n*4],scale:[3,1,1]},n))})}),b.jsx(Ke.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),b.jsx(Ke.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),b.jsx(Ke.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),b.jsx(Ke.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),b.jsx(Ke.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function _l(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Se.Vector3(e[0].x,e[0].y,e[0].z),n=new Se.Vector3(e[1].x,e[1].y,e[1].z),r=new Se.Vector3(e[2].x,e[2].y,e[2].z),o=new Se.Vector3().subVectors(n,t),i=new Se.Vector3().subVectors(r,t),s=new Se.Vector3().crossVectors(o,i).normalize();for(let a=3;a<e.length;a++){const l=new Se.Vector3(e[a].x,e[a].y,e[a].z),c=new Se.Vector3().subVectors(l,t),u=s.dot(c);if(Math.abs(u)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:s}}function Ll({safetyZones:e,...t}){return b.jsx("group",{...t,children:e.map((n,r)=>{let o=[];return n.geometry&&(n.geometry.compound?o=n.geometry.compound.child_geometries:n.geometry.convex_hull&&(o=[n.geometry])),o.map((i,s)=>{if(!i.convex_hull)return null;const a=i.convex_hull.vertices.map(u=>new Se.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=_l(a);if(l.isCoplanar&&l.normal){const d=new Se.Vector3().addVectors(a[0],l.normal.multiplyScalar(1e-4));a.push(d)}let c;try{c=new Tl.ConvexGeometry(a)}catch(u){return console.log("Error creating ConvexGeometry:",u),null}return 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},r)},`${r}-${s}`)})})})}function Il({trajectory:e,...t}){var r;const n=((r=e.trajectory)==null?void 0:r.map(o=>o.tcp_pose?new Se.Vector3(o.tcp_pose.position.x/1e3,o.tcp_pose.position.z/1e3,-o.tcp_pose.position.y/1e3):null).filter(o=>o!==null))||[];return b.jsx("group",{...t,children:n.length>0&&b.jsx(Ke.Line,{points:n,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}function Et(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Nl(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ml={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Dl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fl=/[A-Z]|^ms/g,Bl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$s=function(t){return t.charCodeAt(1)===45},ni=function(t){return t!=null&&typeof t!="boolean"},Kr=Dl(function(e){return $s(e)?e:e.replace(Fl,"-$&").toLowerCase()}),ri=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Bl,function(r,o,i){return Ct={name:o,styles:i,next:Ct},o})}return Ml[t]!==1&&!$s(t)&&typeof n=="number"&&n!==0?n+"px":n};function sr(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Ct={name:o.name,styles:o.styles,next:Ct},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Ct={name:s.name,styles:s.styles,next:Ct},s=s.next;var a=i.styles+";";return a}return Vl(e,t,n)}}var l=n;return l}function Vl(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=sr(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;ni(a)&&(r+=Kr(i)+":"+ri(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)ni(s[l])&&(r+=Kr(i)+":"+ri(i,s[l])+";");else{var c=sr(e,t,s);switch(i){case"animation":case"animationName":{r+=Kr(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var oi=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function Ul(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Ct=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=sr(n,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=sr(n,t,e[a]),r){var l=i;o+=l[a]}oi.lastIndex=0;for(var c="",u;(u=oi.exec(o))!==null;)c+="-"+u[1];var d=Nl(o)+c;return{name:d,styles:o,next:Ct}}/**
31
+ * @mui/styled-engine v6.4.3
32
32
  *
33
33
  * @license MIT
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */function Ul(e,t){const n=El(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.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(`
37
- `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function zl(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const si=[];function ai(e){return si[0]=e,Vl(si)}var go={exports:{}},re={};/**
36
+ */function zl(e,t){const n=Ol(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.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(`
37
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function Jl(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ii=[];function si(e){return ii[0]=e,Ul(ii)}var po={exports:{}},re={};/**
38
38
  * @license React
39
39
  * react-is.production.js
40
40
  *
@@ -42,7 +42,7 @@ React keys must be passed directly to JSX without using spread:
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
- */var li;function Jl(){if(li)return re;li=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),x=Symbol.for("react.client.reference");function y(d){if(typeof d=="object"&&d!==null){var v=d.$$typeof;switch(v){case e:switch(d=d.type,d){case n:case o:case r:case l:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case a:case p:case u:return d;case i:return d;default:return v}}case t:return v}}}return re.ContextConsumer=i,re.ContextProvider=s,re.Element=e,re.ForwardRef=a,re.Fragment=n,re.Lazy=p,re.Memo=u,re.Portal=t,re.Profiler=o,re.StrictMode=r,re.Suspense=l,re.SuspenseList=c,re.isContextConsumer=function(d){return y(d)===i},re.isContextProvider=function(d){return y(d)===s},re.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},re.isForwardRef=function(d){return y(d)===a},re.isFragment=function(d){return y(d)===n},re.isLazy=function(d){return y(d)===p},re.isMemo=function(d){return y(d)===u},re.isPortal=function(d){return y(d)===t},re.isProfiler=function(d){return y(d)===o},re.isStrictMode=function(d){return y(d)===r},re.isSuspense=function(d){return y(d)===l},re.isSuspenseList=function(d){return y(d)===c},re.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===o||d===r||d===l||d===c||d===f||typeof d=="object"&&d!==null&&(d.$$typeof===p||d.$$typeof===u||d.$$typeof===s||d.$$typeof===i||d.$$typeof===a||d.$$typeof===x||d.getModuleId!==void 0)},re.typeOf=y,re}var oe={};/**
45
+ */var ai;function Gl(){if(ai)return re;ai=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),x=Symbol.for("react.client.reference");function y(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case e:switch(f=f.type,f){case n:case o:case r:case l:case c:return f;default:switch(f=f&&f.$$typeof,f){case s:case a:case d:case u:return f;case i:return f;default:return v}}case t:return v}}}return re.ContextConsumer=i,re.ContextProvider=s,re.Element=e,re.ForwardRef=a,re.Fragment=n,re.Lazy=d,re.Memo=u,re.Portal=t,re.Profiler=o,re.StrictMode=r,re.Suspense=l,re.SuspenseList=c,re.isContextConsumer=function(f){return y(f)===i},re.isContextProvider=function(f){return y(f)===s},re.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},re.isForwardRef=function(f){return y(f)===a},re.isFragment=function(f){return y(f)===n},re.isLazy=function(f){return y(f)===d},re.isMemo=function(f){return y(f)===u},re.isPortal=function(f){return y(f)===t},re.isProfiler=function(f){return y(f)===o},re.isStrictMode=function(f){return y(f)===r},re.isSuspense=function(f){return y(f)===l},re.isSuspenseList=function(f){return y(f)===c},re.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===l||f===c||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===u||f.$$typeof===s||f.$$typeof===i||f.$$typeof===a||f.$$typeof===x||f.getModuleId!==void 0)},re.typeOf=y,re}var oe={};/**
46
46
  * @license React
47
47
  * react-is.development.js
48
48
  *
@@ -50,19 +50,19 @@ React keys must be passed directly to JSX without using spread:
50
50
  *
51
51
  * This source code is licensed under the MIT license found in the
52
52
  * LICENSE file in the root directory of this source tree.
53
- */var ci;function Gl(){return ci||(ci=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(typeof d=="object"&&d!==null){var v=d.$$typeof;switch(v){case t:switch(d=d.type,d){case r:case i:case o:case c:case u:return d;default:switch(d=d&&d.$$typeof,d){case a:case l:case f:case p:return d;case s:return d;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),y=Symbol.for("react.client.reference");oe.ContextConsumer=s,oe.ContextProvider=a,oe.Element=t,oe.ForwardRef=l,oe.Fragment=r,oe.Lazy=f,oe.Memo=p,oe.Portal=n,oe.Profiler=i,oe.StrictMode=o,oe.Suspense=c,oe.SuspenseList=u,oe.isContextConsumer=function(d){return e(d)===s},oe.isContextProvider=function(d){return e(d)===a},oe.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},oe.isForwardRef=function(d){return e(d)===l},oe.isFragment=function(d){return e(d)===r},oe.isLazy=function(d){return e(d)===f},oe.isMemo=function(d){return e(d)===p},oe.isPortal=function(d){return e(d)===n},oe.isProfiler=function(d){return e(d)===i},oe.isStrictMode=function(d){return e(d)===o},oe.isSuspense=function(d){return e(d)===c},oe.isSuspenseList=function(d){return e(d)===u},oe.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===o||d===c||d===u||d===x||typeof d=="object"&&d!==null&&(d.$$typeof===f||d.$$typeof===p||d.$$typeof===a||d.$$typeof===s||d.$$typeof===l||d.$$typeof===y||d.getModuleId!==void 0)},oe.typeOf=e}()),oe}process.env.NODE_ENV==="production"?go.exports=Jl():go.exports=Gl();var ar=go.exports;function tt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $s(e){if(M.isValidElement(e)||ar.isValidElementType(e)||!tt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=$s(e[n])}),t}function Pe(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return tt(e)&&tt(t)&&Object.keys(t).forEach(o=>{M.isValidElement(t[o])||ar.isValidElementType(t[o])?r[o]=t[o]:tt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&tt(e[o])?r[o]=Pe(e[o],t[o],n):n.clone?r[o]=tt(t[o])?$s(t[o]):t[o]:r[o]=t[o]}),r}const Wl=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Hl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Wl(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,x){const y=s.indexOf(x);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:x)-r/100}${n})`}function u(f){return s.indexOf(f)+1<s.length?c(f,s[s.indexOf(f)+1]):a(f)}function p(f){const x=s.indexOf(f);return x===0?a(s[1]):x===s.length-1?l(s[x]):c(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:a,down:l,between:c,only:u,not:p,unit:n,...o}}function Kl(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var s,a;const i=/min-width:\s*([0-9.]+)/;return+(((s=r.match(i))==null?void 0:s[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function ql(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Yl(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
54
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Tt(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function Xl(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...a)=>t(e.breakpoints.up(...a),s),i.down=(...a)=>t(e.breakpoints.down(...a),s),i.between=(...a)=>t(e.breakpoints.between(...a),s),i.only=(...a)=>t(e.breakpoints.only(...a),s),i.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Zl={borderRadius:4},Rt=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{};function Rn(e,t){return t?Pe(e,t,{clone:!1}):e}const xr={xs:0,sm:600,md:900,lg:1200,xl:1536},ui={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xr[e]}px)`},Ql={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:xr[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ke(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||ui;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||ui;return Object.keys(t).reduce((s,a)=>{if(ql(i.keys,a)){const l=Yl(r.containerQueries?r:Ql,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(i.values||xr).includes(a)){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function js(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function _s(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function ec(e,...t){const n=js(e),r=[n,...t].reduce((o,i)=>Pe(o,i),{});return _s(Object.keys(n),r)}function tc(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function qr({values:e,breakpoints:t,base:n}){const r=n||tc(e,t),o=Object.keys(r);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 ke(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function lr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=vr(e,n)||r,t&&(o=t(o,r,e)),o}function he(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=vr(l,r)||{};return Ke(s,a,p=>{let f=lr(c,o,p);return p===f&&typeof p=="string"&&(f=lr(c,o,`${t}${p==="default"?"":ke(p)}`,p)),n===!1?f:{[n]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Rt}:{},i.filterProps=[t],i}function nc(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const rc={m:"margin",p:"padding"},oc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ic=nc(e=>{if(e.length>2)if(fi[e])e=fi[e];else return[e];const[t,n]=e.split(""),r=rc[t],o=oc[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Sr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],sc=[...Sr,...wr];function Mn(e,t,n,r){const o=vr(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
53
+ */var li;function Wl(){return li||(li=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case t:switch(f=f.type,f){case r:case i:case o:case c:case u:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case p:case d:return f;case s:return f;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),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"),p=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),y=Symbol.for("react.client.reference");oe.ContextConsumer=s,oe.ContextProvider=a,oe.Element=t,oe.ForwardRef=l,oe.Fragment=r,oe.Lazy=p,oe.Memo=d,oe.Portal=n,oe.Profiler=i,oe.StrictMode=o,oe.Suspense=c,oe.SuspenseList=u,oe.isContextConsumer=function(f){return e(f)===s},oe.isContextProvider=function(f){return e(f)===a},oe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},oe.isForwardRef=function(f){return e(f)===l},oe.isFragment=function(f){return e(f)===r},oe.isLazy=function(f){return e(f)===p},oe.isMemo=function(f){return e(f)===d},oe.isPortal=function(f){return e(f)===n},oe.isProfiler=function(f){return e(f)===i},oe.isStrictMode=function(f){return e(f)===o},oe.isSuspense=function(f){return e(f)===c},oe.isSuspenseList=function(f){return e(f)===u},oe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===c||f===u||f===x||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===a||f.$$typeof===s||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},oe.typeOf=e}()),oe}process.env.NODE_ENV==="production"?po.exports=Gl():po.exports=Wl();var ar=po.exports;function tt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function js(e){if(F.isValidElement(e)||ar.isValidElementType(e)||!tt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=js(e[n])}),t}function $e(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return tt(e)&&tt(t)&&Object.keys(t).forEach(o=>{F.isValidElement(t[o])||ar.isValidElementType(t[o])?r[o]=t[o]:tt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&tt(e[o])?r[o]=$e(e[o],t[o],n):n.clone?r[o]=tt(t[o])?js(t[o]):t[o]:r[o]=t[o]}),r}const Hl=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Kl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=Hl(t),s=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function c(p,x){const y=s.indexOf(x);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:x)-r/100}${n})`}function u(p){return s.indexOf(p)+1<s.length?c(p,s[s.indexOf(p)+1]):a(p)}function d(p){const x=s.indexOf(p);return x===0?a(s[1]):x===s.length-1?l(s[x]):c(p,s[s.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:a,down:l,between:c,only:u,not:d,unit:n,...o}}function ql(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var s,a;const i=/min-width:\s*([0-9.]+)/;return+(((s=r.match(i))==null?void 0:s[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function Yl(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Xl(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
54
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Et(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function Zl(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...a)=>t(e.breakpoints.up(...a),s),i.down=(...a)=>t(e.breakpoints.down(...a),s),i.between=(...a)=>t(e.breakpoints.between(...a),s),i.only=(...a)=>t(e.breakpoints.only(...a),s),i.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Ql={borderRadius:4},At=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{};function Rn(e,t){return t?$e(e,t,{clone:!1}):e}const xr={xs:0,sm:600,md:900,lg:1200,xl:1536},ci={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xr[e]}px)`},ec={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:xr[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function qe(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||ci;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||ci;return Object.keys(t).reduce((s,a)=>{if(Yl(i.keys,a)){const l=Xl(r.containerQueries?r:ec,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(i.values||xr).includes(a)){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function _s(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Ls(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tc(e,...t){const n=_s(e),r=[n,...t].reduce((o,i)=>$e(o,i),{});return Ls(Object.keys(n),r)}function nc(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function qr({values:e,breakpoints:t,base:n}){const r=n||nc(e,t),o=Object.keys(r);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 Pe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Et(7));return e.charAt(0).toUpperCase()+e.slice(1)}function vr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function lr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=vr(e,n)||r,t&&(o=t(o,r,e)),o}function me(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=vr(l,r)||{};return qe(s,a,d=>{let p=lr(c,o,d);return d===p&&typeof d=="string"&&(p=lr(c,o,`${t}${d==="default"?"":Pe(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:At}:{},i.filterProps=[t],i}function rc(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const oc={m:"margin",p:"padding"},ic={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ui={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sc=rc(e=>{if(e.length>2)if(ui[e])e=ui[e];else return[e];const[t,n]=e.split(""),r=oc[t],o=ic[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Sr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ac=[...Sr,...wr];function Mn(e,t,n,r){const o=vr(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
55
55
  `)):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(`
56
56
  `)));const a=o[s];return i>=0?a:typeof a=="number"?-a:`-${a}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
57
- `)),()=>{})}function Cr(e){return Mn(e,"spacing",8,"spacing")}function Lt(e,t){return typeof t=="string"||t==null?t:e(t)}function ac(e,t){return n=>e.reduce((r,o)=>(r[o]=Lt(t,n),r),{})}function lc(e,t,n,r){if(!t.includes(n))return null;const o=ic(n),i=ac(o,r),s=e[n];return Ke(e,s,i)}function Ls(e,t){const n=Cr(e.theme);return Object.keys(e).map(r=>lc(e,t,r,n)).reduce(Rn,{})}function fe(e){return Ls(e,Sr)}fe.propTypes=process.env.NODE_ENV!=="production"?Sr.reduce((e,t)=>(e[t]=Rt,e),{}):{};fe.filterProps=Sr;function de(e){return Ls(e,wr)}de.propTypes=process.env.NODE_ENV!=="production"?wr.reduce((e,t)=>(e[t]=Rt,e),{}):{};de.filterProps=wr;process.env.NODE_ENV!=="production"&&sc.reduce((e,t)=>(e[t]=Rt,e),{});function Is(e=8,t=Cr({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function Tr(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Rn(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ue(e){return typeof e!="number"?e:`${e}px solid`}function Je(e,t){return he({prop:e,themeKey:"borders",transform:t})}const cc=Je("border",Ue),uc=Je("borderTop",Ue),fc=Je("borderRight",Ue),dc=Je("borderBottom",Ue),pc=Je("borderLeft",Ue),gc=Je("borderColor"),hc=Je("borderTopColor"),mc=Je("borderRightColor"),yc=Je("borderBottomColor"),bc=Je("borderLeftColor"),xc=Je("outline",Ue),vc=Je("outlineColor"),Er=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Mn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Lt(t,r)});return Ke(e,e.borderRadius,n)}return null};Er.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Rt}:{};Er.filterProps=["borderRadius"];Tr(cc,uc,fc,dc,pc,gc,hc,mc,yc,bc,Er,xc,vc);const Or=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Mn(e.theme,"spacing",8,"gap"),n=r=>({gap:Lt(t,r)});return Ke(e,e.gap,n)}return null};Or.propTypes=process.env.NODE_ENV!=="production"?{gap:Rt}:{};Or.filterProps=["gap"];const Rr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Mn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Lt(t,r)});return Ke(e,e.columnGap,n)}return null};Rr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Rt}:{};Rr.filterProps=["columnGap"];const Ar=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Mn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Lt(t,r)});return Ke(e,e.rowGap,n)}return null};Ar.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Rt}:{};Ar.filterProps=["rowGap"];const Sc=he({prop:"gridColumn"}),wc=he({prop:"gridRow"}),Cc=he({prop:"gridAutoFlow"}),Tc=he({prop:"gridAutoColumns"}),Ec=he({prop:"gridAutoRows"}),Oc=he({prop:"gridTemplateColumns"}),Rc=he({prop:"gridTemplateRows"}),Ac=he({prop:"gridTemplateAreas"}),kc=he({prop:"gridArea"});Tr(Or,Rr,Ar,Sc,wc,Cc,Tc,Ec,Oc,Rc,Ac,kc);function sn(e,t){return t==="grey"?t:e}const Pc=he({prop:"color",themeKey:"palette",transform:sn}),$c=he({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sn}),jc=he({prop:"backgroundColor",themeKey:"palette",transform:sn});Tr(Pc,$c,jc);function Me(e){return e<=1&&e!==0?`${e*100}%`:e}const _c=he({prop:"width",transform:Me}),_o=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,s,a,l;const r=((s=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:s[n])||xr[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Me(n)}};return Ke(e,e.maxWidth,t)}return null};_o.filterProps=["maxWidth"];const Lc=he({prop:"minWidth",transform:Me}),Ic=he({prop:"height",transform:Me}),Nc=he({prop:"maxHeight",transform:Me}),Mc=he({prop:"minHeight",transform:Me});he({prop:"size",cssProperty:"width",transform:Me});he({prop:"size",cssProperty:"height",transform:Me});const Dc=he({prop:"boxSizing"});Tr(_c,_o,Lc,Ic,Nc,Mc,Dc);const Dn={border:{themeKey:"borders",transform:Ue},borderTop:{themeKey:"borders",transform:Ue},borderRight:{themeKey:"borders",transform:Ue},borderBottom:{themeKey:"borders",transform:Ue},borderLeft:{themeKey:"borders",transform:Ue},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ue},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Er},color:{themeKey:"palette",transform:sn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sn},backgroundColor:{themeKey:"palette",transform:sn},p:{style:de},pt:{style:de},pr:{style:de},pb:{style:de},pl:{style:de},px:{style:de},py:{style:de},padding:{style:de},paddingTop:{style:de},paddingRight:{style:de},paddingBottom:{style:de},paddingLeft:{style:de},paddingX:{style:de},paddingY:{style:de},paddingInline:{style:de},paddingInlineStart:{style:de},paddingInlineEnd:{style:de},paddingBlock:{style:de},paddingBlockStart:{style:de},paddingBlockEnd:{style:de},m:{style:fe},mt:{style:fe},mr:{style:fe},mb:{style:fe},ml:{style:fe},mx:{style:fe},my:{style:fe},margin:{style:fe},marginTop:{style:fe},marginRight:{style:fe},marginBottom:{style:fe},marginLeft:{style:fe},marginX:{style:fe},marginY:{style:fe},marginInline:{style:fe},marginInlineStart:{style:fe},marginInlineEnd:{style:fe},marginBlock:{style:fe},marginBlockStart:{style:fe},marginBlockEnd:{style:fe},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:Or},rowGap:{style:Ar},columnGap:{style:Rr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Me},maxWidth:{style:_o},minWidth:{transform:Me},height:{transform:Me},maxHeight:{transform:Me},minHeight:{transform:Me},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Fc(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Bc(e,t){return typeof e=="function"?e(t):e}function Vc(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:p}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=vr(o,c)||{};return p?p(s):Ke(s,r,y=>{let d=lr(f,u,y);return y===d&&typeof y=="string"&&(d=lr(f,u,`${n}${y==="default"?"":ke(y)}`,y)),l===!1?d:{[l]:d}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Dn;function s(a){let l=a;if(typeof a=="function")l=a(o);else if(typeof a!="object")return a;if(!l)return null;const c=js(o.breakpoints),u=Object.keys(c);let p=c;return Object.keys(l).forEach(f=>{const x=Bc(l[f],o);if(x!=null)if(typeof x=="object")if(i[f])p=Rn(p,e(f,x,o,i));else{const y=Ke({theme:o},x,d=>({[f]:d}));Fc(y,x)?p[f]=t({sx:x,theme:o}):p=Rn(p,y)}else p=Rn(p,e(f,x,o,i))}),Kl(o,_s(u,p))}return Array.isArray(r)?r.map(s):s(r)}return t}const cn=Vc();cn.filterProps=["sx"];function Uc(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function kr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,a=Hl(n),l=Is(o);let c=Pe({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Zl,...i}},s);return c=Xl(c),c.applyStyles=Uc,c=t.reduce((u,p)=>Pe(u,p),c),c.unstable_sxConfig={...Dn,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(p){return cn({sx:p,theme:this})},c}function zc(e){return Object.keys(e).length===0}function Jc(e=null){const t=M.useContext(Ol.ThemeContext);return!t||zc(t)?e:t}const Gc=kr();function Wc(e=Gc){return Jc(e)}const Hc=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Dn;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Kc(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Hc(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return tt(a)?{...r,...a}:r}:i={...r,...t},{...o,sx:i}}const di=e=>e,qc=()=>{let e=di;return{configure(t){e=t},generate(t){return e(t)},reset(){e=di}}},Yc=qc();function Ns(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ns(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ns(e))&&(r&&(r+=" "),r+=t);return r}const Xc={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Fn(e,t,n="Mui"){const r=Xc[t];return r?`${n}-${r}`:`${Yc.generate(e)}-${t}`}function Ms(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Fn(e,o,n)}),r}function Ds(e,t=""){return e.displayName||e.name||t}function pi(e,t,n){const r=Ds(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Zc(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ds(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ar.ForwardRef:return pi(e,e.render,"ForwardRef");case ar.Memo:return pi(e,e.type,"memo");default:return}}}function Fs(e){const{variants:t,...n}=e,r={variants:t,style:ai(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ai(o.style))}),r}const Qc=kr();function Yr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function eu(e){return e?(t,n)=>n[e]:null}function tu(e,t,n){e.theme=ou(e.theme)?n:e.theme[t]||e.theme}function Qn(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Qn(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return Bs(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Bs(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(r))continue}else for(const a in s.props)if(e[a]!==s.props[a]&&((o=e.ownerState)==null?void 0:o[a])!==s.props[a])continue e;typeof s.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(s.style(r))):n.push(s.style)}return n}function Vs(e={}){const{themeId:t,defaultTheme:n=Qc,rootShouldForwardProp:r=Yr,slotShouldForwardProp:o=Yr}=e;function i(a){tu(a,t,n)}return(a,l={})=>{zl(a,O=>O.filter(P=>P!==cn));const{name:c,slot:u,skipVariantsResolver:p,skipSx:f,overridesResolver:x=eu(Us(u)),...y}=l,d=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let T=Yr;u==="Root"||u==="root"?T=r:u?T=o:iu(a)&&(T=void 0);const E=Ul(a,{shouldForwardProp:T,label:ru(c,u),...y}),k=O=>{if(typeof O=="function"&&O.__emotion_real!==O)return function(L){return Qn(L,O)};if(tt(O)){const P=Fs(O);return P.variants?function(z){return Qn(z,P)}:P.style}return O},w=(...O)=>{const P=[],L=O.map(k),z=[];if(P.push(i),c&&x&&z.push(function(F){var X,$e;const D=($e=(X=F.theme.components)==null?void 0:X[c])==null?void 0:$e.styleOverrides;if(!D)return null;const ne={};for(const W in D)ne[W]=Qn(F,D[W]);return x(F,ne)}),c&&!d&&z.push(function(F){var ne,X;const N=F.theme,D=(X=(ne=N==null?void 0:N.components)==null?void 0:ne[c])==null?void 0:X.variants;return D?Bs(F,D):null}),v||z.push(cn),Array.isArray(L[0])){const $=L.shift(),F=new Array(P.length).fill(""),N=new Array(z.length).fill("");let D;D=[...F,...$,...N],D.raw=[...F,...$.raw,...N],P.unshift(D)}const Y=[...P,...L,...z],g=E(...Y);return a.muiName&&(g.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(g.displayName=nu(c,u,a)),g};return E.withConfig&&(w.withConfig=E.withConfig),w}}function nu(e,t,n){return e?`${e}${ke(t||"")}`:`Styled(${Zc(n)})`}function ru(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Us(t||"Root")}`),n}function ou(e){for(const t in e)return!1;return!0}function iu(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Us(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const su=Vs();function cr(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],s=t[o];if(!s)n[o]=i||{};else if(!i)n[o]=s;else{n[o]={...s};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=a;n[o][l]=cr(i[l],s[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function au(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:cr(t.components[n].defaultProps,r)}function lu({props:e,name:t,defaultTheme:n,themeId:r}){let o=Wc(n);return r&&(o=o[r]||o),au({theme:o,name:t,props:e})}const zs=typeof window<"u"?M.useLayoutEffect:M.useEffect;function on(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Lo(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),on(e,t,n)}function cu(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Et(e){if(e.type)return e;if(e.charAt(0)==="#")return Et(cu(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
58
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Tt(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
59
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Tt(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const uu=e=>{const t=Et(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},En=(e,t)=>{try{return uu(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Pr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Js(e){e=Et(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/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])),Pr({type:a,values:l})}function ho(e){e=Et(e);let t=e.type==="hsl"||e.type==="hsla"?Et(Js(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gi(e,t){const n=ho(e),r=ho(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function mo(e,t){return e=Et(e),t=Lo(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Pr(e)}function zn(e,t,n){try{return mo(e,t)}catch{return e}}function Pn(e,t){if(e=Et(e),t=Lo(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Pr(e)}function se(e,t,n){try{return Pn(e,t)}catch{return e}}function $n(e,t){if(e=Et(e),t=Lo(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Pr(e)}function ae(e,t,n){try{return $n(e,t)}catch{return e}}function fu(e,t=.15){return ho(e)>.5?Pn(e,t):$n(e,t)}function Jn(e,t,n){try{return fu(e,t)}catch{return e}}function hi(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function er(e){return e&&e.ownerDocument||document}function du(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function pu({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=M.useRef(e!==void 0),[i,s]=M.useState(t),a=o?e:i;if(process.env.NODE_ENV!=="production"){M.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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(`
60
- `))},[r,n,e]);const{current:c}=M.useRef(t);M.useEffect(()=>{!o&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
61
- `))},[JSON.stringify(t)])}const l=M.useCallback(c=>{o||s(c)},[]);return[a,l]}function Xr(e){const t=M.useRef(e);return zs(()=>{t.current=e}),M.useRef((...n)=>(0,t.current)(...n)).current}function Gs(...e){return M.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{du(n,t)})},e)}function mi(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
62
- `))}return!1}const gu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Io(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(s+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}r[o]=s}return r}function hu(e){return typeof e=="string"}function mu(e,t,n){return e===void 0||hu(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function tr(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function yi(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function yu(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const x=rt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},d={...n,...o,...r};return x.length>0&&(d.className=x),Object.keys(y).length>0&&(d.style=y),{props:d,internalRef:void 0}}const s=tr({...o,...r}),a=yi(r),l=yi(o),c=t(s),u=rt(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...c,...n,...l,...a};return u.length>0&&(f.className=u),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:c.ref}}function bu(e,t,n){return typeof e=="function"?e(t,n):e}function vt(e){var p;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:bu(n,r),{props:a,internalRef:l}=yu({...i,externalSlotProps:s}),c=Gs(l,s==null?void 0:s.ref,(p=e.additionalProps)==null?void 0:p.ref);return mu(t,{...a,ref:c},r)}const xu=M.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const vu=()=>M.useContext(xu)??!1,Su=M.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function wu(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?cr(o.defaultProps,r):!o.styleOverrides&&!o.variants?cr(o,r):r}function Cu({props:e,name:t}){const n=M.useContext(Su);return wu({props:e,name:t,theme:{components:n}})}const bi={theme:void 0};function Tu(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(bi.theme=o.theme,i=Fs(e(bi)),t=i,n=o.theme),i}}function Eu(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const xi=(e,t,n,r=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},Ou=(e,t,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):t([...i,a],l,s))})}r(e)},Ru=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Zr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return Ou(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,p=Ru(a,l);Object.assign(o,{[u]:p}),xi(i,a,`var(${u})`,c),xi(s,a,`var(${u}, ${p})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function Au(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:p}=Zr(l,t);let f=p;const x={},{[a]:y,...d}=i;if(Object.entries(d||{}).forEach(([k,w])=>{const{vars:O,css:P,varsWithDefaults:L}=Zr(w,t);f=Pe(f,L),x[k]={css:P,vars:O}}),y){const{css:k,vars:w,varsWithDefaults:O}=Zr(y,t);f=Pe(f,O),x[a]={css:k,vars:w}}function v(k,w){var P,L;let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),k){if(O==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((L=(P=i[k])==null?void 0:P.palette)==null?void 0:L.mode)||k})`]:{":root":w}};if(O)return e.defaultColorScheme===k?`:root, ${O.replace("%s",String(k))}`:O.replace("%s",String(k))}return":root"}return{vars:f,generateThemeVars:()=>{let k={...c};return Object.entries(x).forEach(([,{vars:w}])=>{k=Pe(k,w)}),k},generateStyleSheets:()=>{var z,Y;const k=[],w=e.defaultColorScheme||"light";function O(g,$){Object.keys($).length&&k.push(typeof g=="string"?{[g]:{...$}}:g)}O(n(void 0,{...u}),u);const{[w]:P,...L}=x;if(P){const{css:g}=P,$=(Y=(z=i[w])==null?void 0:z.palette)==null?void 0:Y.mode,F=!r&&$?{colorScheme:$,...g}:{...g};O(n(w,{...F}),F)}return Object.entries(L).forEach(([g,{css:$}])=>{var D,ne;const F=(ne=(D=i[g])==null?void 0:D.palette)==null?void 0:ne.mode,N=!r&&F?{colorScheme:F,...$}:{...$};O(n(g,{...N}),N)}),k}}}function ku(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const Pu=kr(),$u=su("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ju(e){return lu({props:e,name:"MuiStack",defaultTheme:Pu})}function _u(e,t){const n=M.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(M.cloneElement(t,{key:`separator-${i}`})),r),[])}const Lu=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Iu=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Ke({theme:t},qr({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Cr(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=qr({values:e.direction,base:o}),s=qr({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}}),n=Pe(n,Ke({theme:t},s,(l,c)=>e.useFlexGap?{gap:Lt(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Lu(c?i[c]:e.direction)}`]:Lt(r,l)}}))}return n=ec(t.breakpoints,n),n};function Nu(e={}){const{createStyledComponent:t=$u,useThemeProps:n=ju,componentName:r="MuiStack"}=e,o=()=>Io({root:["root"]},l=>Fn(r,l),{}),i=t(Iu),s=M.forwardRef(function(l,c){const u=n(l),p=Kc(u),{component:f="div",direction:x="column",spacing:y=0,divider:d,children:v,className:T,useFlexGap:E=!1,...k}=p,w={direction:x,spacing:y,useFlexGap:E},O=o();return b.jsx(i,{as:f,ownerState:w,ref:c,className:rt(O.root,T),...k,children:d?_u(v,d):v})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:h.node,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])}),s}const jn={black:"#000",white:"#fff"},Mu={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"},Yt={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"},Xt={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"},Sn={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"},Zt={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"},Qt={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"},en={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"};function Ws(){return{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:jn.white,default:jn.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}}}const Du=Ws();function Hs(){return{text:{primary:jn.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:jn.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}}}const vi=Hs();function Si(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=$n(e.main,o):t==="dark"&&(e.dark=Pn(e.main,i)))}function Fu(e="light"){return e==="dark"?{main:Zt[200],light:Zt[50],dark:Zt[400]}:{main:Zt[700],light:Zt[400],dark:Zt[800]}}function Bu(e="light"){return e==="dark"?{main:Yt[200],light:Yt[50],dark:Yt[400]}:{main:Yt[500],light:Yt[300],dark:Yt[700]}}function Vu(e="light"){return e==="dark"?{main:Xt[500],light:Xt[300],dark:Xt[700]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function Uu(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:Qt[700],light:Qt[500],dark:Qt[900]}}function zu(e="light"){return e==="dark"?{main:en[400],light:en[300],dark:en[700]}:{main:en[800],light:en[500],dark:en[900]}}function Ju(e="light"){return e==="dark"?{main:Sn[400],light:Sn[300],dark:Sn[700]}:{main:"#ed6c02",light:Sn[500],dark:Sn[900]}}function No(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||Fu(t),s=e.secondary||Bu(t),a=e.error||Vu(t),l=e.info||Uu(t),c=e.success||zu(t),u=e.warning||Ju(t);function p(d){const v=gi(d,vi.text.primary)>=n?vi.text.primary:Du.text.primary;if(process.env.NODE_ENV!=="production"){const T=gi(d,v);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${v} on ${d}`,"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(`
63
- `))}return v}const f=({color:d,name:v,mainShade:T=500,lightShade:E=300,darkShade:k=700})=>{if(d={...d},!d.main&&d[T]&&(d.main=d[T]),!d.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
64
- The color object needs to have a \`main\` property or a \`${T}\` property.`:Tt(11,v?` (${v})`:"",T));if(typeof d.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
65
- \`color.main\` should be a string, but \`${JSON.stringify(d.main)}\` was provided instead.
57
+ `)),()=>{})}function Cr(e){return Mn(e,"spacing",8,"spacing")}function It(e,t){return typeof t=="string"||t==null?t:e(t)}function lc(e,t){return n=>e.reduce((r,o)=>(r[o]=It(t,n),r),{})}function cc(e,t,n,r){if(!t.includes(n))return null;const o=sc(n),i=lc(o,r),s=e[n];return qe(e,s,i)}function Is(e,t){const n=Cr(e.theme);return Object.keys(e).map(r=>cc(e,t,r,n)).reduce(Rn,{})}function de(e){return Is(e,Sr)}de.propTypes=process.env.NODE_ENV!=="production"?Sr.reduce((e,t)=>(e[t]=At,e),{}):{};de.filterProps=Sr;function pe(e){return Is(e,wr)}pe.propTypes=process.env.NODE_ENV!=="production"?wr.reduce((e,t)=>(e[t]=At,e),{}):{};pe.filterProps=wr;process.env.NODE_ENV!=="production"&&ac.reduce((e,t)=>(e[t]=At,e),{});function Ns(e=8,t=Cr({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function Tr(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Rn(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ze(e){return typeof e!="number"?e:`${e}px solid`}function Ge(e,t){return me({prop:e,themeKey:"borders",transform:t})}const uc=Ge("border",ze),fc=Ge("borderTop",ze),dc=Ge("borderRight",ze),pc=Ge("borderBottom",ze),gc=Ge("borderLeft",ze),hc=Ge("borderColor"),mc=Ge("borderTopColor"),yc=Ge("borderRightColor"),bc=Ge("borderBottomColor"),xc=Ge("borderLeftColor"),vc=Ge("outline",ze),Sc=Ge("outlineColor"),Er=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Mn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:It(t,r)});return qe(e,e.borderRadius,n)}return null};Er.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:At}:{};Er.filterProps=["borderRadius"];Tr(uc,fc,dc,pc,gc,hc,mc,yc,bc,xc,Er,vc,Sc);const Or=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Mn(e.theme,"spacing",8,"gap"),n=r=>({gap:It(t,r)});return qe(e,e.gap,n)}return null};Or.propTypes=process.env.NODE_ENV!=="production"?{gap:At}:{};Or.filterProps=["gap"];const Rr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Mn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:It(t,r)});return qe(e,e.columnGap,n)}return null};Rr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:At}:{};Rr.filterProps=["columnGap"];const Ar=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Mn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:It(t,r)});return qe(e,e.rowGap,n)}return null};Ar.propTypes=process.env.NODE_ENV!=="production"?{rowGap:At}:{};Ar.filterProps=["rowGap"];const wc=me({prop:"gridColumn"}),Cc=me({prop:"gridRow"}),Tc=me({prop:"gridAutoFlow"}),Ec=me({prop:"gridAutoColumns"}),Oc=me({prop:"gridAutoRows"}),Rc=me({prop:"gridTemplateColumns"}),Ac=me({prop:"gridTemplateRows"}),kc=me({prop:"gridTemplateAreas"}),Pc=me({prop:"gridArea"});Tr(Or,Rr,Ar,wc,Cc,Tc,Ec,Oc,Rc,Ac,kc,Pc);function sn(e,t){return t==="grey"?t:e}const $c=me({prop:"color",themeKey:"palette",transform:sn}),jc=me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sn}),_c=me({prop:"backgroundColor",themeKey:"palette",transform:sn});Tr($c,jc,_c);function De(e){return e<=1&&e!==0?`${e*100}%`:e}const Lc=me({prop:"width",transform:De}),jo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,s,a,l;const r=((s=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:s[n])||xr[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:De(n)}};return qe(e,e.maxWidth,t)}return null};jo.filterProps=["maxWidth"];const Ic=me({prop:"minWidth",transform:De}),Nc=me({prop:"height",transform:De}),Mc=me({prop:"maxHeight",transform:De}),Dc=me({prop:"minHeight",transform:De});me({prop:"size",cssProperty:"width",transform:De});me({prop:"size",cssProperty:"height",transform:De});const Fc=me({prop:"boxSizing"});Tr(Lc,jo,Ic,Nc,Mc,Dc,Fc);const Dn={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:Er},color:{themeKey:"palette",transform:sn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sn},backgroundColor:{themeKey:"palette",transform:sn},p:{style:pe},pt:{style:pe},pr:{style:pe},pb:{style:pe},pl:{style:pe},px:{style:pe},py:{style:pe},padding:{style:pe},paddingTop:{style:pe},paddingRight:{style:pe},paddingBottom:{style:pe},paddingLeft:{style:pe},paddingX:{style:pe},paddingY:{style:pe},paddingInline:{style:pe},paddingInlineStart:{style:pe},paddingInlineEnd:{style:pe},paddingBlock:{style:pe},paddingBlockStart:{style:pe},paddingBlockEnd:{style:pe},m:{style:de},mt:{style:de},mr:{style:de},mb:{style:de},ml:{style:de},mx:{style:de},my:{style:de},margin:{style:de},marginTop:{style:de},marginRight:{style:de},marginBottom:{style:de},marginLeft:{style:de},marginX:{style:de},marginY:{style:de},marginInline:{style:de},marginInlineStart:{style:de},marginInlineEnd:{style:de},marginBlock:{style:de},marginBlockStart:{style:de},marginBlockEnd:{style:de},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:Or},rowGap:{style:Ar},columnGap:{style:Rr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:De},maxWidth:{style:jo},minWidth:{transform:De},height:{transform:De},maxHeight:{transform:De},minHeight:{transform:De},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Bc(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Vc(e,t){return typeof e=="function"?e(t):e}function Uc(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const p=vr(o,c)||{};return d?d(s):qe(s,r,y=>{let f=lr(p,u,y);return y===f&&typeof y=="string"&&(f=lr(p,u,`${n}${y==="default"?"":Pe(y)}`,y)),l===!1?f:{[l]:f}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Dn;function s(a){let l=a;if(typeof a=="function")l=a(o);else if(typeof a!="object")return a;if(!l)return null;const c=_s(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(p=>{const x=Vc(l[p],o);if(x!=null)if(typeof x=="object")if(i[p])d=Rn(d,e(p,x,o,i));else{const y=qe({theme:o},x,f=>({[p]:f}));Bc(y,x)?d[p]=t({sx:x,theme:o}):d=Rn(d,y)}else d=Rn(d,e(p,x,o,i))}),ql(o,Ls(u,d))}return Array.isArray(r)?r.map(s):s(r)}return t}const cn=Uc();cn.filterProps=["sx"];function zc(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function kr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,a=Kl(n),l=Ns(o);let c=$e({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Ql,...i}},s);return c=Zl(c),c.applyStyles=zc,c=t.reduce((u,d)=>$e(u,d),c),c.unstable_sxConfig={...Dn,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(d){return cn({sx:d,theme:this})},c}function Jc(e){return Object.keys(e).length===0}function Gc(e=null){const t=F.useContext(Rl.ThemeContext);return!t||Jc(t)?e:t}const Wc=kr();function Hc(e=Wc){return Gc(e)}const Kc=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Dn;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function qc(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=Kc(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return tt(a)?{...r,...a}:r}:i={...r,...t},{...o,sx:i}}const fi=e=>e,Yc=()=>{let e=fi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=fi}}},Xc=Yc();function Ms(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ms(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function rt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ms(e))&&(r&&(r+=" "),r+=t);return r}const Zc={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Fn(e,t,n="Mui"){const r=Zc[t];return r?`${n}-${r}`:`${Xc.generate(e)}-${t}`}function Ds(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Fn(e,o,n)}),r}function Fs(e,t=""){return e.displayName||e.name||t}function di(e,t,n){const r=Fs(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Qc(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Fs(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ar.ForwardRef:return di(e,e.render,"ForwardRef");case ar.Memo:return di(e,e.type,"memo");default:return}}}function Bs(e){const{variants:t,...n}=e,r={variants:t,style:si(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=si(o.style))}),r}const eu=kr();function Yr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function tu(e){return e?(t,n)=>n[e]:null}function nu(e,t,n){e.theme=iu(e.theme)?n:e.theme[t]||e.theme}function Qn(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Qn(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return Vs(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Vs(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(r))continue}else for(const a in s.props)if(e[a]!==s.props[a]&&((o=e.ownerState)==null?void 0:o[a])!==s.props[a])continue e;typeof s.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(s.style(r))):n.push(s.style)}return n}function Us(e={}){const{themeId:t,defaultTheme:n=eu,rootShouldForwardProp:r=Yr,slotShouldForwardProp:o=Yr}=e;function i(a){nu(a,t,n)}return(a,l={})=>{Jl(a,k=>k.filter($=>$!==cn));const{name:c,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:x=tu(zs(u)),...y}=l,f=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=p||!1;let T=Yr;u==="Root"||u==="root"?T=r:u?T=o:su(a)&&(T=void 0);const E=zl(a,{shouldForwardProp:T,label:ou(c,u),...y}),A=k=>{if(typeof k=="function"&&k.__emotion_real!==k)return function(L){return Qn(L,k)};if(tt(k)){const $=Bs(k);return $.variants?function(B){return Qn(B,$)}:$.style}return k},C=(...k)=>{const $=[],L=k.map(A),B=[];if($.push(i),c&&x&&B.push(function(I){var Y,Oe;const M=(Oe=(Y=I.theme.components)==null?void 0:Y[c])==null?void 0:Oe.styleOverrides;if(!M)return null;const Q={};for(const ee in M)Q[ee]=Qn(I,M[ee]);return x(I,Q)}),c&&!f&&B.push(function(I){var Q,Y;const N=I.theme,M=(Y=(Q=N==null?void 0:N.components)==null?void 0:Q[c])==null?void 0:Y.variants;return M?Vs(I,M):null}),v||B.push(cn),Array.isArray(L[0])){const P=L.shift(),I=new Array($.length).fill(""),N=new Array(B.length).fill("");let M;M=[...I,...P,...N],M.raw=[...I,...P.raw,...N],$.unshift(M)}const W=[...$,...L,...B],g=E(...W);return a.muiName&&(g.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(g.displayName=ru(c,u,a)),g};return E.withConfig&&(C.withConfig=E.withConfig),C}}function ru(e,t,n){return e?`${e}${Pe(t||"")}`:`Styled(${Qc(n)})`}function ou(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${zs(t||"Root")}`),n}function iu(e){for(const t in e)return!1;return!0}function su(e){return typeof e=="string"&&e.charCodeAt(0)>96}function zs(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const au=Us();function cr(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],s=t[o];if(!s)n[o]=i||{};else if(!i)n[o]=s;else{n[o]={...s};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=a;n[o][l]=cr(i[l],s[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function lu(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:cr(t.components[n].defaultProps,r)}function cu({props:e,name:t,defaultTheme:n,themeId:r}){let o=Hc(n);return r&&(o=o[r]||o),lu({theme:o,name:t,props:e})}const Js=typeof window<"u"?F.useLayoutEffect:F.useEffect;function on(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function _o(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),on(e,t,n)}function uu(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ot(e){if(e.type)return e;if(e.charAt(0)==="#")return Ot(uu(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
58
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Et(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
59
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Et(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const fu=e=>{const t=Ot(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},En=(e,t)=>{try{return fu(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Pr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Gs(e){e=Ot(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/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])),Pr({type:a,values:l})}function go(e){e=Ot(e);let t=e.type==="hsl"||e.type==="hsla"?Ot(Gs(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function pi(e,t){const n=go(e),r=go(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ho(e,t){return e=Ot(e),t=_o(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Pr(e)}function zn(e,t,n){try{return ho(e,t)}catch{return e}}function Pn(e,t){if(e=Ot(e),t=_o(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Pr(e)}function se(e,t,n){try{return Pn(e,t)}catch{return e}}function $n(e,t){if(e=Ot(e),t=_o(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Pr(e)}function ae(e,t,n){try{return $n(e,t)}catch{return e}}function du(e,t=.15){return go(e)>.5?Pn(e,t):$n(e,t)}function Jn(e,t,n){try{return du(e,t)}catch{return e}}function gi(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function er(e){return e&&e.ownerDocument||document}function pu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function gu({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=F.useRef(e!==void 0),[i,s]=F.useState(t),a=o?e:i;if(process.env.NODE_ENV!=="production"){F.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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(`
60
+ `))},[r,n,e]);const{current:c}=F.useRef(t);F.useEffect(()=>{!o&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
61
+ `))},[JSON.stringify(t)])}const l=F.useCallback(c=>{o||s(c)},[]);return[a,l]}function Xr(e){const t=F.useRef(e);return Js(()=>{t.current=e}),F.useRef((...n)=>(0,t.current)(...n)).current}function Ws(...e){return F.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{pu(n,t)})},e)}function hi(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
62
+ `))}return!1}const hu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Lo(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(s+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}r[o]=s}return r}function mu(e){return typeof e=="string"}function yu(e,t,n){return e===void 0||mu(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function tr(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function mi(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function bu(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const x=rt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...n,...o,...r};return x.length>0&&(f.className=x),Object.keys(y).length>0&&(f.style=y),{props:f,internalRef:void 0}}const s=tr({...o,...r}),a=mi(r),l=mi(o),c=t(s),u=rt(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...c,...n,...l,...a};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function xu(e,t,n){return typeof e=="function"?e(t,n):e}function St(e){var d;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:xu(n,r),{props:a,internalRef:l}=bu({...i,externalSlotProps:s}),c=Ws(l,s==null?void 0:s.ref,(d=e.additionalProps)==null?void 0:d.ref);return yu(t,{...a,ref:c},r)}const vu=F.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const Su=()=>F.useContext(vu)??!1,wu=F.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function Cu(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?cr(o.defaultProps,r):!o.styleOverrides&&!o.variants?cr(o,r):r}function Tu({props:e,name:t}){const n=F.useContext(wu);return Cu({props:e,name:t,theme:{components:n}})}const yi={theme:void 0};function Eu(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(yi.theme=o.theme,i=Bs(e(yi)),t=i,n=o.theme),i}}function Ou(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const bi=(e,t,n,r=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},Ru=(e,t,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):t([...i,a],l,s))})}r(e)},Au=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Zr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return Ru(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=Au(a,l);Object.assign(o,{[u]:d}),bi(i,a,`var(${u})`,c),bi(s,a,`var(${u}, ${d})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function ku(e,t={}){const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=Zr(l,t);let p=d;const x={},{[a]:y,...f}=i;if(Object.entries(f||{}).forEach(([A,C])=>{const{vars:k,css:$,varsWithDefaults:L}=Zr(C,t);p=$e(p,L),x[A]={css:$,vars:k}}),y){const{css:A,vars:C,varsWithDefaults:k}=Zr(y,t);p=$e(p,k),x[a]={css:A,vars:C}}function v(A,C){var $,L;let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),A){if(k==="media")return e.defaultColorScheme===A?":root":{[`@media (prefers-color-scheme: ${((L=($=i[A])==null?void 0:$.palette)==null?void 0:L.mode)||A})`]:{":root":C}};if(k)return e.defaultColorScheme===A?`:root, ${k.replace("%s",String(A))}`:k.replace("%s",String(A))}return":root"}return{vars:p,generateThemeVars:()=>{let A={...c};return Object.entries(x).forEach(([,{vars:C}])=>{A=$e(A,C)}),A},generateStyleSheets:()=>{var B,W;const A=[],C=e.defaultColorScheme||"light";function k(g,P){Object.keys(P).length&&A.push(typeof g=="string"?{[g]:{...P}}:g)}k(n(void 0,{...u}),u);const{[C]:$,...L}=x;if($){const{css:g}=$,P=(W=(B=i[C])==null?void 0:B.palette)==null?void 0:W.mode,I=!r&&P?{colorScheme:P,...g}:{...g};k(n(C,{...I}),I)}return Object.entries(L).forEach(([g,{css:P}])=>{var M,Q;const I=(Q=(M=i[g])==null?void 0:M.palette)==null?void 0:Q.mode,N=!r&&I?{colorScheme:I,...P}:{...P};k(n(g,{...N}),N)}),A}}}function Pu(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const $u=kr(),ju=au("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function _u(e){return cu({props:e,name:"MuiStack",defaultTheme:$u})}function Lu(e,t){const n=F.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(F.cloneElement(t,{key:`separator-${i}`})),r),[])}const Iu=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Nu=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...qe({theme:t},qr({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Cr(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=qr({values:e.direction,base:o}),s=qr({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,c,u)=>{if(!i[l]){const p=c>0?i[u[c-1]]:"column";i[l]=p}}),n=$e(n,qe({theme:t},s,(l,c)=>e.useFlexGap?{gap:It(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Iu(c?i[c]:e.direction)}`]:It(r,l)}}))}return n=tc(t.breakpoints,n),n};function Mu(e={}){const{createStyledComponent:t=ju,useThemeProps:n=_u,componentName:r="MuiStack"}=e,o=()=>Lo({root:["root"]},l=>Fn(r,l),{}),i=t(Nu),s=F.forwardRef(function(l,c){const u=n(l),d=qc(u),{component:p="div",direction:x="column",spacing:y=0,divider:f,children:v,className:T,useFlexGap:E=!1,...A}=d,C={direction:x,spacing:y,useFlexGap:E},k=o();return b.jsx(i,{as:p,ownerState:C,ref:c,className:rt(k.root,T),...A,children:f?Lu(v,f):v})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:h.node,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])}),s}const jn={black:"#000",white:"#fff"},Du={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"},Yt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Xt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Sn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Zt={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Qt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},en={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Hs(){return{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:jn.white,default:jn.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}}}const Fu=Hs();function Ks(){return{text:{primary:jn.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:jn.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}}}const xi=Ks();function vi(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=$n(e.main,o):t==="dark"&&(e.dark=Pn(e.main,i)))}function Bu(e="light"){return e==="dark"?{main:Zt[200],light:Zt[50],dark:Zt[400]}:{main:Zt[700],light:Zt[400],dark:Zt[800]}}function Vu(e="light"){return e==="dark"?{main:Yt[200],light:Yt[50],dark:Yt[400]}:{main:Yt[500],light:Yt[300],dark:Yt[700]}}function Uu(e="light"){return e==="dark"?{main:Xt[500],light:Xt[300],dark:Xt[700]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function zu(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:Qt[700],light:Qt[500],dark:Qt[900]}}function Ju(e="light"){return e==="dark"?{main:en[400],light:en[300],dark:en[700]}:{main:en[800],light:en[500],dark:en[900]}}function Gu(e="light"){return e==="dark"?{main:Sn[400],light:Sn[300],dark:Sn[700]}:{main:"#ed6c02",light:Sn[500],dark:Sn[900]}}function Io(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||Bu(t),s=e.secondary||Vu(t),a=e.error||Uu(t),l=e.info||zu(t),c=e.success||Ju(t),u=e.warning||Gu(t);function d(f){const v=pi(f,xi.text.primary)>=n?xi.text.primary:Fu.text.primary;if(process.env.NODE_ENV!=="production"){const T=pi(f,v);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${v} on ${f}`,"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(`
63
+ `))}return v}const p=({color:f,name:v,mainShade:T=500,lightShade:E=300,darkShade:A=700})=>{if(f={...f},!f.main&&f[T]&&(f.main=f[T]),!f.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
64
+ The color object needs to have a \`main\` property or a \`${T}\` property.`:Et(11,v?` (${v})`:"",T));if(typeof f.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
65
+ \`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead.
66
66
 
67
67
  Did you intend to use one of the following approaches?
68
68
 
@@ -74,20 +74,20 @@ const theme1 = createTheme({ palette: {
74
74
 
75
75
  const theme2 = createTheme({ palette: {
76
76
  primary: { main: green[500] },
77
- } });`:Tt(12,v?` (${v})`:"",JSON.stringify(d.main)));return Si(d,"light",E,r),Si(d,"dark",k,r),d.contrastText||(d.contrastText=p(d.main)),d};let x;return t==="light"?x=Ws():t==="dark"&&(x=Hs()),process.env.NODE_ENV!=="production"&&(x||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Pe({common:{...jn},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:Mu,contrastThreshold:n,getContrastText:p,augmentColor:f,tonalOffset:r,...x},o)}function Gu(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Wu(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Hu(e){return Math.round(e*1e5)/1e5}const wi={textTransform:"uppercase"},Ci='"Roboto", "Helvetica", "Arial", sans-serif';function Ku(e,t){const{fontFamily:n=Ci,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=r/14,x=u||(v=>`${v/l*f}rem`),y=(v,T,E,k,w)=>({fontFamily:n,fontWeight:v,fontSize:x(T),lineHeight:E,...n===Ci?{letterSpacing:`${Hu(k/T)}em`}:{},...w,...c}),d={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,wi),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,wi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pe({htmlFontSize:l,pxToRem:x,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...d},p,{clone:!1})}const qu=.2,Yu=.14,Xu=.12;function ue(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Yu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Xu})`].join(",")}const Zu=["none",ue(0,2,1,-1,0,1,1,0,0,1,3,0),ue(0,3,1,-2,0,2,2,0,0,1,5,0),ue(0,3,3,-2,0,3,4,0,0,1,8,0),ue(0,2,4,-1,0,4,5,0,0,1,10,0),ue(0,3,5,-1,0,5,8,0,0,1,14,0),ue(0,3,5,-1,0,6,10,0,0,1,18,0),ue(0,4,5,-2,0,7,10,1,0,2,16,1),ue(0,5,5,-3,0,8,10,1,0,3,14,2),ue(0,5,6,-3,0,9,12,1,0,3,16,2),ue(0,6,6,-3,0,10,14,1,0,4,18,3),ue(0,6,7,-4,0,11,15,1,0,4,20,3),ue(0,7,8,-4,0,12,17,2,0,5,22,4),ue(0,7,8,-4,0,13,19,2,0,5,24,4),ue(0,7,9,-4,0,14,21,2,0,5,26,4),ue(0,8,9,-5,0,15,22,2,0,6,28,5),ue(0,8,10,-5,0,16,24,2,0,6,30,5),ue(0,8,11,-5,0,17,26,2,0,6,32,5),ue(0,9,11,-5,0,18,28,2,0,7,34,6),ue(0,9,12,-6,0,19,29,2,0,7,36,6),ue(0,10,13,-6,0,20,31,3,0,8,38,7),ue(0,10,13,-6,0,21,33,3,0,8,40,7),ue(0,10,14,-6,0,22,35,3,0,8,42,7),ue(0,11,14,-7,0,23,36,3,0,9,44,8),ue(0,11,15,-7,0,24,38,3,0,9,46,8)],Qu={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)"},ef={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ti(e){return`${Math.round(e)}ms`}function tf(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function nf(e){const t={...Qu,...e.easing},n={...ef,...e.duration};return{getAutoHeightDuration:tf,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=i;if(process.env.NODE_ENV!=="production"){const u=f=>typeof f=="string",p=f=>!Number.isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(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.'),!p(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(`
78
- `)),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:Ti(s)} ${a} ${typeof l=="string"?l:Ti(l)}`).join(",")},...e,easing:t,duration:n}}const rf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function of(e){return tt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ks(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[s,a]=o[i];!of(a)||s.startsWith("unstable_")?delete r[s]:tt(a)&&(r[s]={...a},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
77
+ } });`:Et(12,v?` (${v})`:"",JSON.stringify(f.main)));return vi(f,"light",E,r),vi(f,"dark",A,r),f.contrastText||(f.contrastText=d(f.main)),f};let x;return t==="light"?x=Hs():t==="dark"&&(x=Ks()),process.env.NODE_ENV!=="production"&&(x||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),$e({common:{...jn},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Du,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r,...x},o)}function Wu(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Hu(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ku(e){return Math.round(e*1e5)/1e5}const Si={textTransform:"uppercase"},wi='"Roboto", "Helvetica", "Arial", sans-serif';function qu(e,t){const{fontFamily:n=wi,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=r/14,x=u||(v=>`${v/l*p}rem`),y=(v,T,E,A,C)=>({fontFamily:n,fontWeight:v,fontSize:x(T),lineHeight:E,...n===wi?{letterSpacing:`${Ku(A/T)}em`}:{},...C,...c}),f={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,Si),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,Si),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $e({htmlFontSize:l,pxToRem:x,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...f},d,{clone:!1})}const Yu=.2,Xu=.14,Zu=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Yu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Xu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Zu})`].join(",")}const Qu=["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)],ef={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)"},tf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ci(e){return`${Math.round(e)}ms`}function nf(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function rf(e){const t={...ef,...e.easing},n={...tf,...e.duration};return{getAutoHeightDuration:nf,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=i;if(process.env.NODE_ENV!=="production"){const u=p=>typeof p=="string",d=p=>!Number.isNaN(parseFloat(p));!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(`
78
+ `)),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:Ci(s)} ${a} ${typeof l=="string"?l:Ci(l)}`).join(",")},...e,easing:t,duration:n}}const of={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function sf(e){return tt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function qs(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[s,a]=o[i];!sf(a)||s.startsWith("unstable_")?delete r[s]:tt(a)&&(r[s]={...a},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
79
79
 
80
80
  const theme = ${JSON.stringify(t,null,2)};
81
81
 
82
82
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
83
83
  theme.transitions = createTransitions(theme.transitions || {});
84
84
 
85
- export default theme;`}function yo(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...c}=e;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.":Tt(20));const u=No(i),p=kr(e);let f=Pe(p,{mixins:Wu(p.breakpoints,r),palette:u,shadows:Zu.slice(),typography:Ku(u,a),transitions:nf(s),zIndex:{...rf}});if(f=Pe(f,c),f=t.reduce((x,y)=>Pe(x,y),f),process.env.NODE_ENV!=="production"){const x=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(d,v)=>{let T;for(T in d){const E=d[T];if(x.includes(T)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const k=Fn("",T);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(d,null,2),"",`Instead, you need to use the '&.${k}' syntax:`,JSON.stringify({root:{[`&.${k}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
86
- `))}d[T]={}}}};Object.keys(f.components).forEach(d=>{const v=f.components[d].styleOverrides;v&&d.startsWith("Mui")&&y(v,d)})}return f.unstable_sxConfig={...Dn,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(y){return cn({sx:y,theme:this})},f.toRuntimeSource=Ks,f}function sf(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const af=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=sf(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function qs(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ys(e){return e==="dark"?af:[]}function lf(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=No(t);return{palette:i,opacity:{...qs(i.mode),...n},overlays:r||Ys(i.mode),...o}}function cf(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const uf=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ff=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return uf(e.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",t)]:s,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function df(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function C(e,t,n){!e[t]&&n&&(e[t]=n)}function On(e){return typeof e!="string"||!e.startsWith("hsl")?e:Js(e)}function ct(e,t){`${t}Channel`in e||(e[`${t}Channel`]=En(On(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
87
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function pf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Qe=e=>{try{return e()}catch{}},gf=(e="mui")=>Eu(e);function Qr(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=lf({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=yo({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...qs(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Ys(o)},s}function hf(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=cf,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],p=r||(n.light&&u!=="light"?"light":u),f=gf(i),{[p]:x,light:y,dark:d,...v}=n,T={...v};let E=x;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Tt(21,p));const k=Qr(T,E,c,p);y&&!T.light&&Qr(T,y,void 0,"light"),d&&!T.dark&&Qr(T,d,void 0,"dark");let w={defaultColorScheme:p,...k,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:f,colorSchemes:T,font:{...Gu(k.typography),...k.font},spacing:pf(c.spacing)};Object.keys(w.colorSchemes).forEach(Y=>{const g=w.colorSchemes[Y].palette,$=F=>{const N=F.split("-"),D=N[1],ne=N[2];return f(F,g[D][ne])};if(g.mode==="light"&&(C(g.common,"background","#fff"),C(g.common,"onBackground","#000")),g.mode==="dark"&&(C(g.common,"background","#000"),C(g.common,"onBackground","#fff")),df(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){C(g.Alert,"errorColor",se(g.error.light,.6)),C(g.Alert,"infoColor",se(g.info.light,.6)),C(g.Alert,"successColor",se(g.success.light,.6)),C(g.Alert,"warningColor",se(g.warning.light,.6)),C(g.Alert,"errorFilledBg",$("palette-error-main")),C(g.Alert,"infoFilledBg",$("palette-info-main")),C(g.Alert,"successFilledBg",$("palette-success-main")),C(g.Alert,"warningFilledBg",$("palette-warning-main")),C(g.Alert,"errorFilledColor",Qe(()=>g.getContrastText(g.error.main))),C(g.Alert,"infoFilledColor",Qe(()=>g.getContrastText(g.info.main))),C(g.Alert,"successFilledColor",Qe(()=>g.getContrastText(g.success.main))),C(g.Alert,"warningFilledColor",Qe(()=>g.getContrastText(g.warning.main))),C(g.Alert,"errorStandardBg",ae(g.error.light,.9)),C(g.Alert,"infoStandardBg",ae(g.info.light,.9)),C(g.Alert,"successStandardBg",ae(g.success.light,.9)),C(g.Alert,"warningStandardBg",ae(g.warning.light,.9)),C(g.Alert,"errorIconColor",$("palette-error-main")),C(g.Alert,"infoIconColor",$("palette-info-main")),C(g.Alert,"successIconColor",$("palette-success-main")),C(g.Alert,"warningIconColor",$("palette-warning-main")),C(g.AppBar,"defaultBg",$("palette-grey-100")),C(g.Avatar,"defaultBg",$("palette-grey-400")),C(g.Button,"inheritContainedBg",$("palette-grey-300")),C(g.Button,"inheritContainedHoverBg",$("palette-grey-A100")),C(g.Chip,"defaultBorder",$("palette-grey-400")),C(g.Chip,"defaultAvatarColor",$("palette-grey-700")),C(g.Chip,"defaultIconColor",$("palette-grey-700")),C(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),C(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),C(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),C(g.LinearProgress,"primaryBg",ae(g.primary.main,.62)),C(g.LinearProgress,"secondaryBg",ae(g.secondary.main,.62)),C(g.LinearProgress,"errorBg",ae(g.error.main,.62)),C(g.LinearProgress,"infoBg",ae(g.info.main,.62)),C(g.LinearProgress,"successBg",ae(g.success.main,.62)),C(g.LinearProgress,"warningBg",ae(g.warning.main,.62)),C(g.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),C(g.Slider,"primaryTrack",ae(g.primary.main,.62)),C(g.Slider,"secondaryTrack",ae(g.secondary.main,.62)),C(g.Slider,"errorTrack",ae(g.error.main,.62)),C(g.Slider,"infoTrack",ae(g.info.main,.62)),C(g.Slider,"successTrack",ae(g.success.main,.62)),C(g.Slider,"warningTrack",ae(g.warning.main,.62));const F=Jn(g.background.default,.8);C(g.SnackbarContent,"bg",F),C(g.SnackbarContent,"color",Qe(()=>g.getContrastText(F))),C(g.SpeedDialAction,"fabHoverBg",Jn(g.background.paper,.15)),C(g.StepConnector,"border",$("palette-grey-400")),C(g.StepContent,"border",$("palette-grey-400")),C(g.Switch,"defaultColor",$("palette-common-white")),C(g.Switch,"defaultDisabledColor",$("palette-grey-100")),C(g.Switch,"primaryDisabledColor",ae(g.primary.main,.62)),C(g.Switch,"secondaryDisabledColor",ae(g.secondary.main,.62)),C(g.Switch,"errorDisabledColor",ae(g.error.main,.62)),C(g.Switch,"infoDisabledColor",ae(g.info.main,.62)),C(g.Switch,"successDisabledColor",ae(g.success.main,.62)),C(g.Switch,"warningDisabledColor",ae(g.warning.main,.62)),C(g.TableCell,"border",ae(zn(g.divider,1),.88)),C(g.Tooltip,"bg",zn(g.grey[700],.92))}if(g.mode==="dark"){C(g.Alert,"errorColor",ae(g.error.light,.6)),C(g.Alert,"infoColor",ae(g.info.light,.6)),C(g.Alert,"successColor",ae(g.success.light,.6)),C(g.Alert,"warningColor",ae(g.warning.light,.6)),C(g.Alert,"errorFilledBg",$("palette-error-dark")),C(g.Alert,"infoFilledBg",$("palette-info-dark")),C(g.Alert,"successFilledBg",$("palette-success-dark")),C(g.Alert,"warningFilledBg",$("palette-warning-dark")),C(g.Alert,"errorFilledColor",Qe(()=>g.getContrastText(g.error.dark))),C(g.Alert,"infoFilledColor",Qe(()=>g.getContrastText(g.info.dark))),C(g.Alert,"successFilledColor",Qe(()=>g.getContrastText(g.success.dark))),C(g.Alert,"warningFilledColor",Qe(()=>g.getContrastText(g.warning.dark))),C(g.Alert,"errorStandardBg",se(g.error.light,.9)),C(g.Alert,"infoStandardBg",se(g.info.light,.9)),C(g.Alert,"successStandardBg",se(g.success.light,.9)),C(g.Alert,"warningStandardBg",se(g.warning.light,.9)),C(g.Alert,"errorIconColor",$("palette-error-main")),C(g.Alert,"infoIconColor",$("palette-info-main")),C(g.Alert,"successIconColor",$("palette-success-main")),C(g.Alert,"warningIconColor",$("palette-warning-main")),C(g.AppBar,"defaultBg",$("palette-grey-900")),C(g.AppBar,"darkBg",$("palette-background-paper")),C(g.AppBar,"darkColor",$("palette-text-primary")),C(g.Avatar,"defaultBg",$("palette-grey-600")),C(g.Button,"inheritContainedBg",$("palette-grey-800")),C(g.Button,"inheritContainedHoverBg",$("palette-grey-700")),C(g.Chip,"defaultBorder",$("palette-grey-700")),C(g.Chip,"defaultAvatarColor",$("palette-grey-300")),C(g.Chip,"defaultIconColor",$("palette-grey-300")),C(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),C(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),C(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),C(g.LinearProgress,"primaryBg",se(g.primary.main,.5)),C(g.LinearProgress,"secondaryBg",se(g.secondary.main,.5)),C(g.LinearProgress,"errorBg",se(g.error.main,.5)),C(g.LinearProgress,"infoBg",se(g.info.main,.5)),C(g.LinearProgress,"successBg",se(g.success.main,.5)),C(g.LinearProgress,"warningBg",se(g.warning.main,.5)),C(g.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),C(g.Slider,"primaryTrack",se(g.primary.main,.5)),C(g.Slider,"secondaryTrack",se(g.secondary.main,.5)),C(g.Slider,"errorTrack",se(g.error.main,.5)),C(g.Slider,"infoTrack",se(g.info.main,.5)),C(g.Slider,"successTrack",se(g.success.main,.5)),C(g.Slider,"warningTrack",se(g.warning.main,.5));const F=Jn(g.background.default,.98);C(g.SnackbarContent,"bg",F),C(g.SnackbarContent,"color",Qe(()=>g.getContrastText(F))),C(g.SpeedDialAction,"fabHoverBg",Jn(g.background.paper,.15)),C(g.StepConnector,"border",$("palette-grey-600")),C(g.StepContent,"border",$("palette-grey-600")),C(g.Switch,"defaultColor",$("palette-grey-300")),C(g.Switch,"defaultDisabledColor",$("palette-grey-600")),C(g.Switch,"primaryDisabledColor",se(g.primary.main,.55)),C(g.Switch,"secondaryDisabledColor",se(g.secondary.main,.55)),C(g.Switch,"errorDisabledColor",se(g.error.main,.55)),C(g.Switch,"infoDisabledColor",se(g.info.main,.55)),C(g.Switch,"successDisabledColor",se(g.success.main,.55)),C(g.Switch,"warningDisabledColor",se(g.warning.main,.55)),C(g.TableCell,"border",se(zn(g.divider,1),.68)),C(g.Tooltip,"bg",zn(g.grey[700],.92))}ct(g.background,"default"),ct(g.background,"paper"),ct(g.common,"background"),ct(g.common,"onBackground"),ct(g,"divider"),Object.keys(g).forEach(F=>{const N=g[F];F!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&C(g[F],"mainChannel",En(On(N.main))),N.light&&C(g[F],"lightChannel",En(On(N.light))),N.dark&&C(g[F],"darkChannel",En(On(N.dark))),N.contrastText&&C(g[F],"contrastTextChannel",En(On(N.contrastText))),F==="text"&&(ct(g[F],"primary"),ct(g[F],"secondary")),F==="action"&&(N.active&&ct(g[F],"active"),N.selected&&ct(g[F],"selected")))})}),w=t.reduce((Y,g)=>Pe(Y,g),w);const O={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:ff(w)},{vars:P,generateThemeVars:L,generateStyleSheets:z}=Au(w,O);return w.vars=P,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([Y,g])=>{w[Y]=g}),w.generateThemeVars=L,w.generateStyleSheets=z,w.generateSpacing=function(){return Is(c.spacing,Cr(this))},w.getColorSchemeSelector=ku(a),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=s,w.unstable_sxConfig={...Dn,...c==null?void 0:c.unstable_sxConfig},w.unstable_sx=function(g){return cn({sx:g,theme:this})},w.toRuntimeSource=Ks,w}function Ei(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:No({...n===!0?{}:n.palette,mode:t})})}function Xs(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=e,a=i||"light",l=o==null?void 0:o[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return yo(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const p=yo({...e,palette:u},...t);return p.defaultColorScheme=a,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},Ei(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},Ei(p,"light",c.light)),p}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),hf({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const mf=Xs(),yf="$$material";function Mo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bf=e=>Mo(e)&&e!=="classes",dt=Vs({themeId:yf,defaultTheme:mf,rootShouldForwardProp:bf});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function Do(e){return Cu(e)}const an=Nu({createStyledComponent:dt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Do({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(an.propTypes={children:h.node,component:h.elementType,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),useFlexGap:h.bool});const J=e=>typeof e=="string",wn=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},Oi=e=>e==null?"":""+e,xf=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},vf=/###/g,Ri=e=>e&&e.indexOf("###")>-1?e.replace(vf,"."):e,Ai=e=>!e||J(e),An=(e,t,n)=>{const r=J(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Ai(e))return{};const i=Ri(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return Ai(e)?{}:{obj:e,k:Ri(r[o])}},ki=(e,t,n)=>{const{obj:r,k:o}=An(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=An(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=An(e,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},Sf=(e,t,n,r)=>{const{obj:o,k:i}=An(e,t,Object);o[i]=o[i]||[],o[i].push(n)},ur=(e,t)=>{const{obj:n,k:r}=An(e,t);if(n)return n[r]},wf=(e,t,n)=>{const r=ur(e,n);return r!==void 0?r:ur(t,n)},Zs=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?J(e[r])||e[r]instanceof String||J(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Zs(e[r],t[r],n):e[r]=t[r]);return e},tn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Cf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Tf=e=>J(e)?e.replace(/[&<>"'\/]/g,t=>Cf[t]):e;class Ef{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Of=[" ",",","?","!",";"],Rf=new Ef(20),Af=(e,t,n)=>{t=t||"",n=n||"";const r=Of.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const o=Rf.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},bo=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let s,a="";for(let l=i;l<r.length;++l)if(l!==i&&(a+=n),a+=r[l],s=o[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<r.length-1)continue;i+=l-i+1;break}o=s}return o},fr=e=>e&&e.replace("_","-"),kf={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 dr{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||kf,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(J(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new dr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new dr(this.logger,t)}}var nt=new dr;class $r{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[t,...r])})}}class Pi extends $r{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,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 n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){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,n],r&&(Array.isArray(r)?a.push(...r):J(r)&&i?a.push(...r.split(i)):a.push(r)));const l=ur(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!s||!J(r)?l:bo(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,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,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."),o=n,n=a[1]),this.addNamespaces(n),ki(this.data,a,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(J(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),o=r,r=n,n=a[1]),this.addNamespaces(n);let l=ur(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Zs(l,r,i):l={...l,...r},ki(this.data,a,l),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var Qs={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const $i={};class pr extends $r{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),xf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Af(t,r,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(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return J(i)&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const w=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${w}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${w}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const p=this.resolve(t,n);let f=p&&p.res;const x=p&&p.usedKey||s,y=p&&p.exactUsedKey||s,d=Object.prototype.toString.apply(f),v=["[object Number]","[object Function]","[object RegExp]"],T=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,k=!J(f)&&typeof f!="boolean"&&typeof f!="number";if(E&&f&&k&&v.indexOf(d)<0&&!(J(T)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,f,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(p.res=w,p.usedParams=this.getUsedParamsDetails(n),p):w}if(i){const w=Array.isArray(f),O=w?[]:{},P=w?y:x;for(const L in f)if(Object.prototype.hasOwnProperty.call(f,L)){const z=`${P}${i}${L}`;O[L]=this.translate(z,{...n,joinArrays:!1,ns:a}),O[L]===z&&(O[L]=f[L])}f=O}}else if(E&&J(T)&&Array.isArray(f))f=f.join(T),f&&(f=this.extendTranslation(f,t,n,r));else{let w=!1,O=!1;const P=n.count!==void 0&&!J(n.count),L=pr.hasDefaultValue(n),z=P?this.pluralResolver.getSuffix(c,n.count,n):"",Y=n.ordinal&&P?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",g=P&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$=g&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${z}`]||n[`defaultValue${Y}`]||n.defaultValue;!this.isValidLookup(f)&&L&&(w=!0,f=$),this.isValidLookup(f)||(O=!0,f=s);const N=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:f,D=L&&$!==f&&this.options.updateMissing;if(O||w||D){if(this.logger.log(D?"updateKey":"missingKey",c,l,s,D?$:f),i){const W=this.resolve(s,{...n,keySeparator:!1});W&&W.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 ne=[];const X=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&X&&X[0])for(let W=0;W<X.length;W++)ne.push(X[W]);else this.options.saveMissingTo==="all"?ne=this.languageUtils.toResolveHierarchy(n.lng||this.language):ne.push(n.lng||this.language);const $e=(W,ve,Re)=>{const Q=L&&Re!==f?Re:N;this.options.missingKeyHandler?this.options.missingKeyHandler(W,l,ve,Q,D,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(W,l,ve,Q,D,n),this.emit("missingKey",W,l,ve,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?ne.forEach(W=>{const ve=this.pluralResolver.getSuffixes(W,n);g&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ve.indexOf(`${this.options.pluralSeparator}zero`)<0&&ve.push(`${this.options.pluralSeparator}zero`),ve.forEach(Re=>{$e([W],s+Re,n[`defaultValue${Re}`]||$)})}):$e(ne,s,$))}f=this.extendTranslation(f,t,n,p,r),O&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${s}`),(O||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,w?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(p.res=f,p.usedParams=this.getUsedParamsDetails(n),p):f}extendTranslation(t,n,r,o,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=J(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const f=t.match(this.interpolator.nestingRegexp);u=f&&f.length}let p=r.replace&&!J(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language||o.usedLng,r),c){const f=t.match(this.interpolator.nestingRegexp),x=f&&f.length;u<x&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,x=new Array(f),y=0;y<f;y++)x[y]=arguments[y];return i&&i[0]===x[0]&&!r.context?(s.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${n[0]}`),null):s.translate(...x,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=J(a)?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=Qs.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,s,a;return J(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;o=u;let p=c.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const f=n.count!==void 0&&!J(n.count),x=f&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),y=n.context!==void 0&&(J(n.context)||typeof n.context=="number")&&n.context!=="",d=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(v=>{this.isValidLookup(r)||(a=v,!$i[`${d[0]}-${v}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&($i[`${d[0]}-${v}`]=!0,this.logger.warn(`key "${o}" for languages "${d.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!!!")),d.forEach(T=>{if(this.isValidLookup(r))return;s=T;const E=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(E,u,T,v,n);else{let w;f&&(w=this.pluralResolver.getSuffix(T,n.count,n));const O=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(E.push(u+w),n.ordinal&&w.indexOf(P)===0&&E.push(u+w.replace(P,this.options.pluralSeparator)),x&&E.push(u+O)),y){const L=`${u}${this.options.contextSeparator}${n.context}`;E.push(L),f&&(E.push(L+w),n.ordinal&&w.indexOf(P)===0&&E.push(L+w.replace(P,this.options.pluralSeparator)),x&&E.push(L+O))}}let k;for(;k=E.pop();)this.isValidLookup(r)||(i=k,r=this.getResource(T,v,k,n))}))})}),{res:r,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,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!J(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const eo=e=>e.charAt(0).toUpperCase()+e.slice(1);class ji{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nt.create("languageUtils")}getScriptPartFromCode(t){if(t=fr(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=fr(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(J(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 n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=eo(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=eo(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=eo(r[2].toLowerCase()))),r.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 n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=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})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),J(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||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 J(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))):J(t)&&i(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}let Pf=[{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}],$f={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 jf=["v1","v2","v3"],_f=["v4"],_i={zero:0,one:1,two:2,few:3,many:4,other:5},Lf=()=>{const e={};return Pf.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:$f[t.fc]}})}),e};class If{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=nt.create("pluralResolver"),(!this.options.compatibilityJSON||_f.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=Lf(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=fr(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const s=new Intl.PluralRules(r,{type:o});return this.pluralRulesCache[i]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>_i[o]-_i[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];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&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!jf.includes(this.options.compatibilityJSON)}}const Li=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=wf(e,t,n);return!i&&o&&J(n)&&(i=bo(e,n,r),i===void 0&&(i=bo(t,n,r))),i},to=e=>e.replace(/\$/g,"$$$$");class Nf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:p,nestingPrefix:f,nestingPrefixEscaped:x,nestingSuffix:y,nestingSuffixEscaped:d,nestingOptionsSeparator:v,maxReplaces:T,alwaysFormat:E}=t.interpolation;this.escape=n!==void 0?n:Tf,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?tn(i):s||"{{",this.suffix=a?tn(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=f?tn(f):x||tn("$t("),this.nestingSuffix=y?tn(y):d||tn(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=T||1e3,this.alwaysFormat=E!==void 0?E:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"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,n,r,o){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=x=>{if(x.indexOf(this.formatSeparator)<0){const T=Li(n,l,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,r,{...o,...n,interpolationkey:x}):T}const y=x.split(this.formatSeparator),d=y.shift().trim(),v=y.join(this.formatSeparator).trim();return this.format(Li(n,l,d,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,{...o,...n,interpolationkey:d})};this.resetRegExp();const u=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>to(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?to(this.escape(x)):to(x)}].forEach(x=>{for(a=0;i=x.regex.exec(t);){const y=i[1].trim();if(s=c(y),s===void 0)if(typeof u=="function"){const v=u(t,i,o);s=J(v)?v:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))s="";else if(p){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),s="";else!J(s)&&!this.useRawValueToEscape&&(s=Oi(s));const d=x.safeValue(s);if(t=t.replace(i[0],d),p?(x.regex.lastIndex+=s.length,x.regex.lastIndex-=i[0].length):x.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=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 p=l.split(new RegExp(`${u}[ ]*{`));let f=`{${p[1]}`;l=p[0],f=this.interpolate(f,s);const x=f.match(/'/g),y=f.match(/"/g);(x&&x.length%2===0&&!y||y.length%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),c&&(s={...c,...s})}catch(d){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,d),`${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={...r},s=s.replace&&!J(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(p=>p.trim());o[1]=u.shift(),l=u,c=!0}if(i=n(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&!J(i))return i;J(i)||(i=Oi(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,p)=>this.format(u,p,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const Mf=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},nn=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let a=t[s];return a||(a=e(fr(r),o),t[s]=a),a(n)}};class Df{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("formatter"),this.options=t,this.formats={number:nn((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:nn((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:nn((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:nn((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:nn((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=nn(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.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}=Mf(l);if(this.formats[c]){let p=a;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},x=f.locale||f.lng||o.locale||o.lng||r;p=this.formats[c](a,x,{...u,...o,...f})}catch(f){this.logger.warn(f)}return p}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const Ff=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Bf extends $r{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=nt.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(r,o.backend,o)}queueLoad(t,n,r,o){const i={},s={},a={},l={};return t.forEach(c=>{let u=!0;n.forEach(p=>{const f=`${c}|${p}`;!r.reload&&this.store.hasResourceBundle(c,p)?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[p]===void 0&&(l[p]=!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,n,r){const o=t.split("|"),i=o[0],s=o[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(l=>{Sf(l.loaded,[i],s),Ff(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(p=>{a[c][p]===void 0&&(a[c][p]=!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,n,r){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:n,fcName:r,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,i*2,s)},i);return}s(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,n,a)}prepareLoading(t,n){let r=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();J(t)&&(t=this.languageUtils.toResolveHierarchy(t)),J(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,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(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){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,n,r,o,l):u=c(t,n,r,o),u&&typeof u.then=="function"?u.then(p=>a(null,p)).catch(a):a(null,u)}catch(u){a(u)}else c(t,n,r,o,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const Ii=()=>({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]),J(e[1])&&(t.defaultValue=e[1]),J(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Ni=e=>(J(e.ns)&&(e.ns=[e.ns]),J(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),J(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Gn=()=>{},Vf=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class _n extends $r{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ni(t),this.services={},this.logger=nt,this.modules={external:[]},Vf(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(J(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=Ii();this.options={...o,...this.options,...Ni(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?nt.init(i(this.modules.logger),this.options):nt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=Df);const p=new ji(this.options);this.store=new Pi(this.options.resources,this.options);const f=this.services;f.logger=nt,f.resourceStore=this.store,f.languageUtils=p,f.pluralResolver=new If(p,{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 Nf(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Bf(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(x){for(var y=arguments.length,d=new Array(y>1?y-1:0),v=1;v<y;v++)d[v-1]=arguments[v];t.emit(x,...d)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new pr(this.services,this.options),this.translator.on("*",function(x){for(var y=arguments.length,d=new Array(y>1?y-1:0),v=1;v<y;v++)d[v-1]=arguments[v];t.emit(x,...d)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Gn),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=wn(),c=()=>{const u=(p,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),r(p,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 r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn;const o=J(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();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),r(a)})}else r(null)}reloadResources(t,n,r){const o=wn();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Gn),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(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"&&Qs.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 n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=wn();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 r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=J(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,n,r){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),p=2;p<c;p++)u[p-2]=arguments[p];l=o.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const f=o.options.keySeparator||".";let x;return l.keyPrefix&&Array.isArray(s)?x=s.map(y=>`${l.keyPrefix}${f}${y}`):x=l.keyPrefix?`${l.keyPrefix}${f}${s}`:s,o.t(x,l)};return J(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,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 n=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 r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(i,t)))}loadNamespaces(t,n){const r=wn();return this.options.ns?(J(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=wn();J(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=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["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"],r=this.services&&this.services.languageUtils||new ji(Ii());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new _n(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new _n(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)},r&&(i.store=new Pi(this.store.data,o),i.services.resourceStore=i.store),i.translator=new pr(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Oe=_n.createInstance();Oe.createInstance=_n.createInstance;Oe.createInstance;Oe.dir;Oe.init;Oe.loadResources;Oe.reloadResources;Oe.use;Oe.changeLanguage;Oe.getFixedT;Oe.t;Oe.exists;Oe.setDefaultNamespace;Oe.hasLoadedNamespace;Oe.loadNamespaces;Oe.loadLanguages;const Uf={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Base (Roboter)","Jogging.Orientation.tool":"Tool"},zf={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},ea=Oe.createInstance();ea.use(Tl).init({supportedLngs:["en","de"],resources:{en:{translations:zf},de:{translations:Uf}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function Bn(e){return n=>b.jsx(Jf,{children:b.jsx(e,{...n})})}const Jf=({children:e})=>b.jsx(un.I18nextProvider,{i18n:ea,children:e}),Gf=({title:e,titleId:t,...n},r)=>M.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("g",{id:"JogMinus"},M.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),Wf=H.forwardRef(Gf),Hf=({title:e,titleId:t,...n},r)=>M.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.createElement("g",{id:"JogPlus"},M.createElement("g",{id:"Plus"},M.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),M.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),M.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),Kf=H.forwardRef(Hf);function jr(e){H.useEffect(e,[])}function ta(e){jr(()=>ln.autorun(e))}function na(e,t,n){jr(()=>ln.reaction(e,t,n))}function fn(e){return jr(()=>{let t;function n(){e(),t=requestAnimationFrame(n)}return t=requestAnimationFrame(n),()=>{cancelAnimationFrame(t)}})}const xo=Bn(Ie.observer(({colors:e,label:t,getDisplayedValue:n,startJogging:r,stopJogging:o,disabled:i,activeJoggingDirection:s,...a})=>{var k,w,O,P,L,z,Y;fn(()=>{const g=n(),$=f.current;$&&($.textContent=g)});const l=j.useTheme(),[c,u]=H.useState(null);H.useEffect(()=>{i&&E()},[i]);const p=s||c,f=H.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const x=p?(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"}},d={...y,backgroundColor:(w=e.buttonBackgroundColor)==null?void 0:w.default,":hover":{backgroundColor:(O=e.buttonBackgroundColor)==null?void 0:O.hovered},":active":{backgroundColor:(P=e.buttonBackgroundColor)==null?void 0:P.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(L=e.buttonBackgroundColor)==null?void 0:L.disabled,"svg path":{fill:l.palette.action.disabled}}},v={...y,backgroundColor:(z=e.buttonBackgroundColor)==null?void 0:z.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(Y=e.buttonBackgroundColor)==null?void 0:Y.pressed,"svg path":{fill:l.palette.action.disabled}}};function T(g,$){i||g.button===0&&(u($),r($))}function E(){u(null),o()}return b.jsxs(an,{height:"64px",direction:"row",justifyContent:"center",...a,children:[b.jsx(j.IconButton,{disabled:i,disableRipple:!0,onPointerDown:g=>T(g,"-"),onPointerUp:E,onPointerOut:E,size:"large",sx:{...p==="-"?v:d,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${x??"#fff"}`,borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:b.jsx(Wf,{})}),b.jsxs(an,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:[b.jsx(an,{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(j.Typography,{height:"22px",sx:{fontSize:"15px",color:i?l.palette.action.disabled:e.color,fontWeight:700},ref:f,children:n()})]}),b.jsx(j.IconButton,{disableRipple:!0,disabled:i,onPointerDown:g=>T(g,"+"),onPointerUp:E,onPointerOut:E,size:"large",sx:{...p==="+"?v:d,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${x??"#fff"}`,borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:b.jsx(Kf,{})})]})})),Ft=Tu;function qf(e){return Fn("MuiSvgIcon",e)}Ms("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Yf=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ke(t)}`,`fontSize${ke(n)}`]};return Io(o,qf,r)},Xf=dt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ke(n.color)}`],t[`fontSize${ke(n.fontSize)}`]]}})(Ft(({theme:e})=>{var t,n,r,o,i,s,a,l,c,u,p,f,x,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:d=>!d.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,d])=>d&&d.main).map(([d])=>{var v,T;return{props:{color:d},style:{color:(T=(v=(e.vars??e).palette)==null?void 0:v[d])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(f=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(y=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),gr=M.forwardRef(function(t,n){const r=Do({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:p,viewBox:f="0 0 24 24",...x}=r,y=M.isValidElement(o)&&o.type==="svg",d={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:y},v={};u||(v.viewBox=f);const T=Yf(d);return b.jsxs(Xf,{as:a,className:rt(T.root,i),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...x,...y&&o.props,ownerState:d,children:[y?o.props.children:o,p?b.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(gr.propTypes={children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),h.string]),component:h.elementType,fontSize:h.oneOfType([h.oneOf(["inherit","large","medium","small"]),h.string]),htmlColor:h.string,inheritViewBox:h.bool,shapeRendering:h.string,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),titleAccess:h.string,viewBox:h.string});gr.muiName="SvgIcon";function ra(e,t){function n(r,o){return b.jsx(gr,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=gr.muiName,M.memo(M.forwardRef(n))}const Zf=ra(b.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Qf=ra(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function It(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var oa=typeof global=="object"&&global&&global.Object===Object&&global,ed=typeof self=="object"&&self&&self.Object===Object&&self,it=oa||ed||Function("return this")(),no=function(){return it.Date.now()},td=/\s/;function nd(e){for(var t=e.length;t--&&td.test(e.charAt(t)););return t}var rd=/^\s+/;function od(e){return e&&e.slice(0,nd(e)+1).replace(rd,"")}var Ot=it.Symbol,ia=Object.prototype,id=ia.hasOwnProperty,sd=ia.toString,Cn=Ot?Ot.toStringTag:void 0;function ad(e){var t=id.call(e,Cn),n=e[Cn];try{e[Cn]=void 0;var r=!0}catch{}var o=sd.call(e);return r&&(t?e[Cn]=n:delete e[Cn]),o}var ld=Object.prototype,cd=ld.toString;function ud(e){return cd.call(e)}var fd="[object Null]",dd="[object Undefined]",Mi=Ot?Ot.toStringTag:void 0;function Bt(e){return e==null?e===void 0?dd:fd:Mi&&Mi in Object(e)?ad(e):ud(e)}function Nt(e){return e!=null&&typeof e=="object"}var pd="[object Symbol]";function _r(e){return typeof e=="symbol"||Nt(e)&&Bt(e)==pd}var Di=NaN,gd=/^[-+]0x[0-9a-f]+$/i,hd=/^0b[01]+$/i,md=/^0o[0-7]+$/i,yd=parseInt;function Fi(e){if(typeof e=="number")return e;if(_r(e))return Di;if(It(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=It(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=od(e);var n=hd.test(e);return n||md.test(e)?yd(e.slice(2),n?2:8):gd.test(e)?Di:+e}var bd="Expected a function",xd=Math.max,vd=Math.min;function Sd(e,t,n){var r,o,i,s,a,l,c=0,u=!1,p=!1,f=!0;if(typeof e!="function")throw new TypeError(bd);t=Fi(t)||0,It(n)&&(u=!!n.leading,p="maxWait"in n,i=p?xd(Fi(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f);function x(P){var L=r,z=o;return r=o=void 0,c=P,s=e.apply(z,L),s}function y(P){return c=P,a=setTimeout(T,t),u?x(P):s}function d(P){var L=P-l,z=P-c,Y=t-L;return p?vd(Y,i-z):Y}function v(P){var L=P-l,z=P-c;return l===void 0||L>=t||L<0||p&&z>=i}function T(){var P=no();if(v(P))return E(P);a=setTimeout(T,d(P))}function E(P){return a=void 0,f&&r?x(P):(r=o=void 0,s)}function k(){a!==void 0&&clearTimeout(a),c=0,r=l=o=a=void 0}function w(){return a===void 0?s:E(no())}function O(){var P=no(),L=v(P);if(r=arguments,o=this,l=P,L){if(a===void 0)return y(l);if(p)return clearTimeout(a),a=setTimeout(T,t),x(l)}return a===void 0&&(a=setTimeout(T,t)),s}return O.cancel=k,O.flush=w,O}var wd="Expected a function";function Cd(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(wd);return It(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Sd(e,t,{leading:r,maxWait:t,trailing:o})}const sa=Bn(Ie.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:n,upperLimitDegs:r,getValueDegs:o,disabled:i,...s})=>{var k,w,O,P,L,z,Y;const{t:a}=un.useTranslation(),[l,c]=H.useState(),u=j.useTheme(),p={background:(k=u.palette.backgroundPaperElevation)==null?void 0:k[4],color:(w=u.palette.backgroundPaperElevation)==null?void 0:w[11]},f=Ie.useLocalObservable(()=>({activeJoggingDir:null,startJogging(g){this.activeJoggingDir=g,e(g)},stopJogging(){this.activeJoggingDir=null,t()}})),x=Cd(()=>{c(o())},50);fn(x);function y(g){g.button===0&&f.startJogging("-")}function d(g){g.button===0&&f.startJogging("+")}function v(g){f.stopJogging()}function T(g){f.stopJogging()}function E(g,$=1){if(g===void 0||isNaN(g))return"";const F=a("General.degree.variable",{amount:g.toFixed($)});return g>0&&$===0?`+${F}`:F}return b.jsxs(an,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(O=u.palette.backgroundPaperElevation)==null?void 0:O[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(P=u.palette.backgroundPaperElevation)==null?void 0:P[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(L=u.palette.backgroundPaperElevation)==null?void 0:L[9]},"&:active":{...p}}},children:[b.jsx(j.IconButton,{onPointerDown:y,onPointerUp:v,onPointerOut:T,disabled:i,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...f.activeJoggingDir==="-"?p:{}},children:b.jsx(Zf,{sx:{pointerEvents:"none"}})}),b.jsxs(an,{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(j.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:i?u.palette.action.disabled:u.palette.text.primary},children:E(l)}),b.jsx(j.Slider,{disabled:!0,"aria-label":"Joint position",min:n,max:r,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:(Y=u.palette.backgroundPaperElevation)==null?void 0:Y[5],opacity:1}},marks:n!==void 0&&r!==void 0&&[{value:n,label:E(n,0)},{value:r,label:E(r,0)}]})]}),b.jsx(j.IconButton,{onPointerDown:d,onPointerUp:v,onPointerOut:T,disabled:i,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...f.activeJoggingDir==="+"?p:{}},children:b.jsx(Qf,{sx:{pointerEvents:"none"}})})]})}));function aa(e,t){return function(){return e.apply(t,arguments)}}const{toString:Td}=Object.prototype,{getPrototypeOf:Fo}=Object,Lr=(e=>t=>{const n=Td.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qe=e=>(e=e.toLowerCase(),t=>Lr(t)===e),Ir=e=>t=>typeof t===e,{isArray:dn}=Array,Ln=Ir("undefined");function Ed(e){return e!==null&&!Ln(e)&&e.constructor!==null&&!Ln(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const la=qe("ArrayBuffer");function Od(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&la(e.buffer),t}const Rd=Ir("string"),De=Ir("function"),ca=Ir("number"),Nr=e=>e!==null&&typeof e=="object",Ad=e=>e===!0||e===!1,nr=e=>{if(Lr(e)!=="object")return!1;const t=Fo(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kd=qe("Date"),Pd=qe("File"),$d=qe("Blob"),jd=qe("FileList"),_d=e=>Nr(e)&&De(e.pipe),Ld=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||De(e.append)&&((t=Lr(e))==="formdata"||t==="object"&&De(e.toString)&&e.toString()==="[object FormData]"))},Id=qe("URLSearchParams"),[Nd,Md,Dd,Fd]=["ReadableStream","Request","Response","Headers"].map(qe),Bd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),dn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function ua(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fa=e=>!Ln(e)&&e!==jt;function vo(){const{caseless:e}=fa(this)&&this||{},t={},n=(r,o)=>{const i=e&&ua(t,o)||o;nr(t[i])&&nr(r)?t[i]=vo(t[i],r):nr(r)?t[i]=vo({},r):dn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Vn(arguments[r],n);return t}const Vd=(e,t,n,{allOwnKeys:r}={})=>(Vn(t,(o,i)=>{n&&De(o)?e[i]=aa(o,n):e[i]=o},{allOwnKeys:r}),e),Ud=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),zd=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jd=(e,t,n,r)=>{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],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Fo(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Gd=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Wd=e=>{if(!e)return null;if(dn(e))return e;let t=e.length;if(!ca(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fo(Uint8Array)),Kd=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},qd=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yd=qe("HTMLFormElement"),Xd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Bi=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Zd=qe("RegExp"),da=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vn(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},Qd=e=>{da(e,(t,n)=>{if(De(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(De(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ep=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return dn(e)?r(e):r(String(e).split(t)),n},tp=()=>{},np=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ro="abcdefghijklmnopqrstuvwxyz",Vi="0123456789",pa={DIGIT:Vi,ALPHA:ro,ALPHA_DIGIT:ro+ro.toUpperCase()+Vi},rp=(e=16,t=pa.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function op(e){return!!(e&&De(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ip=e=>{const t=new Array(10),n=(r,o)=>{if(Nr(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=dn(r)?[]:{};return Vn(r,(s,a)=>{const l=n(s,o+1);!Ln(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},sp=qe("AsyncFunction"),ap=e=>e&&(Nr(e)||De(e))&&De(e.then)&&De(e.catch),ga=((e,t)=>e?setImmediate:t?((n,r)=>(jt.addEventListener("message",({source:o,data:i})=>{o===jt&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),jt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",De(jt.postMessage)),lp=typeof queueMicrotask<"u"?queueMicrotask.bind(jt):typeof process<"u"&&process.nextTick||ga,S={isArray:dn,isArrayBuffer:la,isBuffer:Ed,isFormData:Ld,isArrayBufferView:Od,isString:Rd,isNumber:ca,isBoolean:Ad,isObject:Nr,isPlainObject:nr,isReadableStream:Nd,isRequest:Md,isResponse:Dd,isHeaders:Fd,isUndefined:Ln,isDate:kd,isFile:Pd,isBlob:$d,isRegExp:Zd,isFunction:De,isStream:_d,isURLSearchParams:Id,isTypedArray:Hd,isFileList:jd,forEach:Vn,merge:vo,extend:Vd,trim:Bd,stripBOM:Ud,inherits:zd,toFlatObject:Jd,kindOf:Lr,kindOfTest:qe,endsWith:Gd,toArray:Wd,forEachEntry:Kd,matchAll:qd,isHTMLForm:Yd,hasOwnProperty:Bi,hasOwnProp:Bi,reduceDescriptors:da,freezeMethods:Qd,toObjectSet:ep,toCamelCase:Xd,noop:tp,toFiniteNumber:np,findKey:ua,global:jt,isContextDefined:fa,ALPHABET:pa,generateString:rp,isSpecCompliantForm:op,toJSONObject:ip,isAsyncFn:sp,isThenable:ap,setImmediate:ga,asap:lp};function G(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}S.inherits(G,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:S.toJSONObject(this.config),code:this.code,status:this.status}}});const ha=G.prototype,ma={};["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=>{ma[e]={value:e}});Object.defineProperties(G,ma);Object.defineProperty(ha,"isAxiosError",{value:!0});G.from=(e,t,n,r,o,i)=>{const s=Object.create(ha);return S.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),G.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const cp=null;function So(e){return S.isPlainObject(e)||S.isArray(e)}function ya(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Ui(e,t,n){return e?e.concat(t).map(function(o,i){return o=ya(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function up(e){return S.isArray(e)&&!e.some(So)}const fp=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Mr(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,v){return!S.isUndefined(v[d])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(S.isDate(y))return y.toISOString();if(!l&&S.isBlob(y))throw new G("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(y)||S.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,d,v){let T=y;if(y&&!v&&typeof y=="object"){if(S.endsWith(d,"{}"))d=r?d:d.slice(0,-2),y=JSON.stringify(y);else if(S.isArray(y)&&up(y)||(S.isFileList(y)||S.endsWith(d,"[]"))&&(T=S.toArray(y)))return d=ya(d),T.forEach(function(k,w){!(S.isUndefined(k)||k===null)&&t.append(s===!0?Ui([d],w,i):s===null?d:d+"[]",c(k))}),!1}return So(y)?!0:(t.append(Ui(v,d,i),c(y)),!1)}const p=[],f=Object.assign(fp,{defaultVisitor:u,convertValue:c,isVisitable:So});function x(y,d){if(!S.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+d.join("."));p.push(y),S.forEach(y,function(T,E){(!(S.isUndefined(T)||T===null)&&o.call(t,T,S.isString(E)?E.trim():E,d,f))===!0&&x(T,d?d.concat(E):[E])}),p.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return x(e),t}function zi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bo(e,t){this._pairs=[],e&&Mr(e,this,t)}const ba=Bo.prototype;ba.append=function(t,n){this._pairs.push([t,n])};ba.toString=function(t){const n=t?function(r){return t.call(this,r,zi)}:zi;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function dp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xa(e,t,n){if(!t)return e;const r=n&&n.encode||dp;S.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=S.isURLSearchParams(t)?t.toString():new Bo(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ji{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const va={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pp=typeof URLSearchParams<"u"?URLSearchParams:Bo,gp=typeof FormData<"u"?FormData:null,hp=typeof Blob<"u"?Blob:null,mp={isBrowser:!0,classes:{URLSearchParams:pp,FormData:gp,Blob:hp},protocols:["http","https","file","blob","url","data"]},Vo=typeof window<"u"&&typeof document<"u",wo=typeof navigator=="object"&&navigator||void 0,yp=Vo&&(!wo||["ReactNative","NativeScript","NS"].indexOf(wo.product)<0),bp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xp=Vo&&window.location.href||"http://localhost",vp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vo,hasStandardBrowserEnv:yp,hasStandardBrowserWebWorkerEnv:bp,navigator:wo,origin:xp},Symbol.toStringTag,{value:"Module"})),Ee={...vp,...mp};function Sp(e,t){return Mr(e,new Ee.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ee.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function wp(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cp(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Sa(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=n.length;return s=!s&&S.isArray(o)?o.length:s,l?(S.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!S.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&S.isArray(o[s])&&(o[s]=Cp(o[s])),!a)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,o)=>{t(wp(r),o,n,0)}),n}return null}function Tp(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Un={transitional:va,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=S.isObject(t);if(i&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o?JSON.stringify(Sa(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Sp(t,this.formSerializer).toString();if((a=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Mr(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Tp(t)):t}],transformResponse:[function(t){const n=this.transitional||Un.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?G.from(a,G.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:Ee.classes.FormData,Blob:Ee.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Un.headers[e]={}});const Ep=S.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"]),Op=e=>{const t={};let n,r,o;return e&&e.split(`
88
- `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Ep[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Gi=Symbol("internals");function Tn(e){return e&&String(e).trim().toLowerCase()}function rr(e){return e===!1||e==null?e:S.isArray(e)?e.map(rr):String(e)}function Rp(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Ap=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function oo(e,t,n,r,o){if(S.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function kp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Pp(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let Le=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Tn(l);if(!u)throw new Error("header name must be a non-empty string");const p=S.findKey(o,u);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||l]=rr(a))}const s=(a,l)=>S.forEach(a,(c,u)=>i(c,u,l));if(S.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(S.isString(t)&&(t=t.trim())&&!Ap(t))s(Op(t),n);else if(S.isHeaders(t))for(const[a,l]of t.entries())i(l,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Tn(t),t){const r=S.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Rp(o);if(S.isFunction(n))return n.call(this,o,r);if(S.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Tn(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||oo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Tn(s),s){const a=S.findKey(r,s);a&&(!n||oo(r,r[a],a,n))&&(delete r[a],o=!0)}}return S.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||oo(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return S.forEach(this,(o,i)=>{const s=S.findKey(r,i);if(s){n[s]=rr(o),delete n[i];return}const a=t?kp(i):String(i).trim();a!==i&&delete n[i],n[a]=rr(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
89
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Gi]=this[Gi]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Tn(s);r[a]||(Pp(o,s),r[a]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}};Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Le.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Le);function io(e,t){const n=this||Un,r=t||n,o=Le.from(r.headers);let i=r.data;return S.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function wa(e){return!!(e&&e.__CANCEL__)}function pn(e,t,n){G.call(this,e??"canceled",G.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(pn,G,{__CANCEL__:!0});function Ca(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function $p(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jp(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let p=i,f=0;for(;p!==o;)f+=n[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const x=u&&c-u;return x?Math.round(f*1e3/x):void 0}}function _p(e,t){let n=0,r=1e3/t,o,i;const s=(c,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),p=u-n;p>=r?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-p)))},()=>o&&s(o)]}const hr=(e,t,n=3)=>{let r=0;const o=jp(50,250);return _p(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),u=s<=a;r=s;const p={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(p)},n)},Wi=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Hi=e=>(...t)=>S.asap(()=>e(...t)),Lp=Ee.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ee.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ee.origin),Ee.navigator&&/(msie|trident)/i.test(Ee.navigator.userAgent)):()=>!0,Ip=Ee.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),S.isString(r)&&s.push("path="+r),S.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 Np(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ta(e,t){return e&&!Np(t)?Mp(e,t):t}const Ki=e=>e instanceof Le?{...e}:e;function Mt(e,t){t=t||{};const n={};function r(c,u,p,f){return S.isPlainObject(c)&&S.isPlainObject(u)?S.merge.call({caseless:f},c,u):S.isPlainObject(u)?S.merge({},u):S.isArray(u)?u.slice():u}function o(c,u,p,f){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c,p,f)}else return r(c,u,p,f)}function i(c,u){if(!S.isUndefined(u))return r(void 0,u)}function s(c,u){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,p){if(p in t)return r(c,u);if(p in e)return r(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,p)=>o(Ki(c),Ki(u),p,!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=l[u]||o,f=p(e[u],t[u],u);S.isUndefined(f)&&p!==a||(n[u]=f)}),n}const Ea=e=>{const t=Mt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Le.from(s),t.url=xa(Ta(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(S.isFormData(n)){if(Ee.hasStandardBrowserEnv||Ee.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ee.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&Lp(t.url))){const c=o&&i&&Ip.read(i);c&&s.set(o,c)}return t},Dp=typeof XMLHttpRequest<"u",Fp=Dp&&function(e){return new Promise(function(n,r){const o=Ea(e);let i=o.data;const s=Le.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,p,f,x,y;function d(){x&&x(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function T(){if(!v)return;const k=Le.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),O={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:k,config:e,request:v};Ca(function(L){n(L),d()},function(L){r(L),d()},O),v=null}"onloadend"in v?v.onloadend=T:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(T)},v.onabort=function(){v&&(r(new G("Request aborted",G.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new G("Network Error",G.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||va;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new G(w,O.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&S.forEach(s.toJSON(),function(w,O){v.setRequestHeader(O,w)}),S.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([f,y]=hr(c,!0),v.addEventListener("progress",f)),l&&v.upload&&([p,x]=hr(l),v.upload.addEventListener("progress",p),v.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(u=k=>{v&&(r(!k||k.type?new pn(null,e,v):k),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const E=$p(o.url);if(E&&Ee.protocols.indexOf(E)===-1){r(new G("Unsupported protocol "+E+":",G.ERR_BAD_REQUEST,e));return}v.send(i||null)})},Bp=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof G?u:new pn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new G(`timeout ${t} of ms exceeded`,G.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}=r;return l.unsubscribe=()=>S.asap(a),l}},Vp=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Up=async function*(e,t){for await(const n of zp(e))yield*Vp(n,t)},zp=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},qi=(e,t,n,r)=>{const o=Up(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let p=u.byteLength;if(n){let f=i+=p;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Dr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Oa=Dr&&typeof ReadableStream=="function",Jp=Dr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ra=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gp=Oa&&Ra(()=>{let e=!1;const t=new Request(Ee.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Yi=64*1024,Co=Oa&&Ra(()=>S.isReadableStream(new Response("").body)),mr={stream:Co&&(e=>e.body)};Dr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!mr[t]&&(mr[t]=S.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new G(`Response type '${t}' is not supported`,G.ERR_NOT_SUPPORT,r)})})})(new Response);const Wp=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(Ee.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await Jp(e)).byteLength},Hp=async(e,t)=>{const n=S.toFiniteNumber(e.getContentLength());return n??Wp(t)},Kp=Dr&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:p="same-origin",fetchOptions:f}=Ea(e);c=c?(c+"").toLowerCase():"text";let x=Bp([o,i&&i.toAbortSignal()],s),y;const d=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let v;try{if(l&&Gp&&n!=="get"&&n!=="head"&&(v=await Hp(u,r))!==0){let O=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(S.isFormData(r)&&(P=O.headers.get("content-type"))&&u.setContentType(P),O.body){const[L,z]=Wi(v,hr(Hi(l)));r=qi(O.body,Yi,L,z)}}S.isString(p)||(p=p?"include":"omit");const T="credentials"in Request.prototype;y=new Request(t,{...f,signal:x,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:T?p:void 0});let E=await fetch(y);const k=Co&&(c==="stream"||c==="response");if(Co&&(a||k&&d)){const O={};["status","statusText","headers"].forEach(Y=>{O[Y]=E[Y]});const P=S.toFiniteNumber(E.headers.get("content-length")),[L,z]=a&&Wi(P,hr(Hi(a),!0))||[];E=new Response(qi(E.body,Yi,L,()=>{z&&z(),d&&d()}),O)}c=c||"text";let w=await mr[S.findKey(mr,c)||"text"](E,e);return!k&&d&&d(),await new Promise((O,P)=>{Ca(O,P,{data:w,headers:Le.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:y})})}catch(T){throw d&&d(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new G("Network Error",G.ERR_NETWORK,e,y),{cause:T.cause||T}):G.from(T,T&&T.code,e,y)}}),To={http:cp,xhr:Fp,fetch:Kp};S.forEach(To,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Xi=e=>`- ${e}`,qp=e=>S.isFunction(e)||e===null||e===!1,Aa={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!qp(n)&&(r=To[(s=String(n)).toLowerCase()],r===void 0))throw new G(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
90
- `+i.map(Xi).join(`
91
- `):" "+Xi(i[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:To};function so(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pn(null,e)}function Zi(e){return so(e),e.headers=Le.from(e.headers),e.data=io.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Aa.getAdapter(e.adapter||Un.adapter)(e).then(function(r){return so(e),r.data=io.call(e,e.transformResponse,r),r.headers=Le.from(r.headers),r},function(r){return wa(r)||(so(e),r&&r.response&&(r.response.data=io.call(e,e.transformResponse,r.response),r.response.headers=Le.from(r.response.headers))),Promise.reject(r)})}const ka="1.7.9",Fr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Fr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Qi={};Fr.transitional=function(t,n,r){function o(i,s){return"[Axios v"+ka+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new G(o(s," has been removed"+(n?" in "+n:"")),G.ERR_DEPRECATED);return n&&!Qi[s]&&(Qi[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};Fr.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Yp(e,t,n){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new G("option "+i+" must be "+l,G.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}}const or={assertOptions:Yp,validators:Fr},et=or.validators;let _t=class{constructor(t){this.defaults=t,this.interceptors={request:new Ji,response:new Ji}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
92
- `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&or.assertOptions(r,{silentJSONParsing:et.transitional(et.boolean),forcedJSONParsing:et.transitional(et.boolean),clarifyTimeoutError:et.transitional(et.boolean)},!1),o!=null&&(S.isFunction(o)?n.paramsSerializer={serialize:o}:or.assertOptions(o,{encode:et.function,serialize:et.function},!0)),or.assertOptions(n,{baseUrl:et.spelling("baseURL"),withXsrfToken:et.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&S.merge(i.common,i[n.method]);i&&S.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=Le.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(n)===!1||(l=l&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let u,p=0,f;if(!l){const y=[Zi.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),f=y.length,u=Promise.resolve(n);p<f;)u=u.then(y[p++],y[p++]);return u}f=a.length;let x=n;for(p=0;p<f;){const y=a[p++],d=a[p++];try{x=y(x)}catch(v){d.call(this,v);break}}try{u=Zi.call(this,x)}catch(y){return Promise.reject(y)}for(p=0,f=c.length;p<f;)u=u.then(c[p++],c[p++]);return u}getUri(t){t=Mt(this.defaults,t);const n=Ta(t.baseURL,t.url);return xa(n,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){_t.prototype[t]=function(n,r){return this.request(Mt(r||{},{method:t,url:n,data:(r||{}).data}))}});S.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(Mt(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}_t.prototype[t]=n(),_t.prototype[t+"Form"]=n(!0)});let Xp=class Pa{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new pn(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Pa(function(o){t=o}),cancel:t}}};function Zp(e){return function(n){return e.apply(null,n)}}function Qp(e){return S.isObject(e)&&e.isAxiosError===!0}const Eo={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(Eo).forEach(([e,t])=>{Eo[t]=e});function $a(e){const t=new _t(e),n=aa(_t.prototype.request,t);return S.extend(n,_t.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return $a(Mt(e,o))},n}const xe=$a(Un);xe.Axios=_t;xe.CanceledError=pn;xe.CancelToken=Xp;xe.isCancel=wa;xe.VERSION=ka;xe.toFormData=Mr;xe.AxiosError=G;xe.Cancel=xe.CanceledError;xe.all=function(t){return Promise.all(t)};xe.spread=Zp;xe.isAxiosError=Qp;xe.mergeConfig=Mt;xe.AxiosHeaders=Le;xe.formToJSON=e=>Sa(S.isHTMLForm(e)?new FormData(e):e);xe.getAdapter=Aa.getAdapter;xe.HttpStatusCode=Eo;xe.default=xe;const{Axios:Ob,AxiosError:es,CanceledError:Rb,isCancel:Ab,CancelToken:kb,VERSION:Pb,all:$b,Cancel:jb,isAxiosError:_b,spread:Lb,toFormData:Ib,AxiosHeaders:Nb,HttpStatusCode:Mb,formToJSON:Db,getAdapter:Fb,mergeConfig:Bb}=xe;function eg(e){try{return JSON.stringify(e)}catch{return}}function tg(e){var t,n,r,o;return e instanceof es&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof es&&e.response?`${(t=e.response)==null?void 0:t.status} ${(n=e.response)==null?void 0:n.statusText} from ${(r=e.response)==null?void 0:r.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${eg(e)||e}`}const Uo=e=>{const t=e.softTimeout||3e3,[n,r]=H.useState(!1),o=j.useTheme();return H.useEffect(()=>{const i=setTimeout(()=>{r(!0)},t);return()=>clearTimeout(i)}),b.jsx(j.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:o.palette.text.primary},children:e.error?b.jsx(ja,{loadingMessage:e.message,error:e.error}):b.jsxs(b.Fragment,{children:[b.jsx(j.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&b.jsx("div",{children:e.message}),b.jsx(j.Stack,{sx:{visibility:n?"visible":"hidden",marginTop:"1rem",color:o.palette.text.secondary},children:"This is taking longer than expected..."})]})})},ja=e=>{const t=tg(e.error),n=e.error instanceof Error?e.error.stack:null,r=j.useTheme();return b.jsxs(j.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:r.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${jo.lowerFirst(j.capitalize(e.loadingMessage))} - `:"")+t,b.jsx("br",{}),n&&b.jsx("pre",{children:n})]})},ng=({title:e,titleId:t,...n},r)=>M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:r,"aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"})),rg=H.forwardRef(ng),og=({title:e,titleId:t,...n},r)=>M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:r,"aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"})),ig=H.forwardRef(og),sg=({title:e,titleId:t,...n},r)=>M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:r,"aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"})),ag=H.forwardRef(sg),lg=({title:e,titleId:t,...n},r)=>M.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":t,...n},e?M.createElement("title",{id:t},e):null,M.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"})),cg=H.forwardRef(lg);function ug(){this.__data__=[],this.size=0}function _a(e,t){return e===t||e!==e&&t!==t}function Br(e,t){for(var n=e.length;n--;)if(_a(e[n][0],t))return n;return-1}var fg=Array.prototype,dg=fg.splice;function pg(e){var t=this.__data__,n=Br(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():dg.call(t,n,1),--this.size,!0}function gg(e){var t=this.__data__,n=Br(t,e);return n<0?void 0:t[n][1]}function hg(e){return Br(this.__data__,e)>-1}function mg(e,t){var n=this.__data__,r=Br(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function pt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pt.prototype.clear=ug;pt.prototype.delete=pg;pt.prototype.get=gg;pt.prototype.has=hg;pt.prototype.set=mg;function yg(){this.__data__=new pt,this.size=0}function bg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function xg(e){return this.__data__.get(e)}function vg(e){return this.__data__.has(e)}var Sg="[object AsyncFunction]",wg="[object Function]",Cg="[object GeneratorFunction]",Tg="[object Proxy]";function La(e){if(!It(e))return!1;var t=Bt(e);return t==wg||t==Cg||t==Sg||t==Tg}var ao=it["__core-js_shared__"],ts=function(){var e=/[^.]+$/.exec(ao&&ao.keys&&ao.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Eg(e){return!!ts&&ts in e}var Og=Function.prototype,Rg=Og.toString;function Vt(e){if(e!=null){try{return Rg.call(e)}catch{}try{return e+""}catch{}}return""}var Ag=/[\\^$.*+?()[\]{}|]/g,kg=/^\[object .+?Constructor\]$/,Pg=Function.prototype,$g=Object.prototype,jg=Pg.toString,_g=$g.hasOwnProperty,Lg=RegExp("^"+jg.call(_g).replace(Ag,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ig(e){if(!It(e)||Eg(e))return!1;var t=La(e)?Lg:kg;return t.test(Vt(e))}function Ng(e,t){return e==null?void 0:e[t]}function Ut(e,t){var n=Ng(e,t);return Ig(n)?n:void 0}var In=Ut(it,"Map"),Nn=Ut(Object,"create");function Mg(){this.__data__=Nn?Nn(null):{},this.size=0}function Dg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fg="__lodash_hash_undefined__",Bg=Object.prototype,Vg=Bg.hasOwnProperty;function Ug(e){var t=this.__data__;if(Nn){var n=t[e];return n===Fg?void 0:n}return Vg.call(t,e)?t[e]:void 0}var zg=Object.prototype,Jg=zg.hasOwnProperty;function Gg(e){var t=this.__data__;return Nn?t[e]!==void 0:Jg.call(t,e)}var Wg="__lodash_hash_undefined__";function Hg(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nn&&t===void 0?Wg:t,this}function Dt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dt.prototype.clear=Mg;Dt.prototype.delete=Dg;Dt.prototype.get=Ug;Dt.prototype.has=Gg;Dt.prototype.set=Hg;function Kg(){this.size=0,this.__data__={hash:new Dt,map:new(In||pt),string:new Dt}}function qg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Vr(e,t){var n=e.__data__;return qg(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Yg(e){var t=Vr(this,e).delete(e);return this.size-=t?1:0,t}function Xg(e){return Vr(this,e).get(e)}function Zg(e){return Vr(this,e).has(e)}function Qg(e,t){var n=Vr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=Kg;gt.prototype.delete=Yg;gt.prototype.get=Xg;gt.prototype.has=Zg;gt.prototype.set=Qg;var eh=200;function th(e,t){var n=this.__data__;if(n instanceof pt){var r=n.__data__;if(!In||r.length<eh-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new gt(r)}return n.set(e,t),this.size=n.size,this}function ft(e){var t=this.__data__=new pt(e);this.size=t.size}ft.prototype.clear=yg;ft.prototype.delete=bg;ft.prototype.get=xg;ft.prototype.has=vg;ft.prototype.set=th;var nh="__lodash_hash_undefined__";function rh(e){return this.__data__.set(e,nh),this}function oh(e){return this.__data__.has(e)}function yr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new gt;++t<n;)this.add(e[t])}yr.prototype.add=yr.prototype.push=rh;yr.prototype.has=oh;function ih(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function sh(e,t){return e.has(t)}var ah=1,lh=2;function Ia(e,t,n,r,o,i){var s=n&ah,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var p=-1,f=!0,x=n&lh?new yr:void 0;for(i.set(e,t),i.set(t,e);++p<a;){var y=e[p],d=t[p];if(r)var v=s?r(d,y,p,t,e,i):r(y,d,p,e,t,i);if(v!==void 0){if(v)continue;f=!1;break}if(x){if(!ih(t,function(T,E){if(!sh(x,E)&&(y===T||o(y,T,n,r,i)))return x.push(E)})){f=!1;break}}else if(!(y===d||o(y,d,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}var ns=it.Uint8Array;function ch(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function uh(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var fh=1,dh=2,ph="[object Boolean]",gh="[object Date]",hh="[object Error]",mh="[object Map]",yh="[object Number]",bh="[object RegExp]",xh="[object Set]",vh="[object String]",Sh="[object Symbol]",wh="[object ArrayBuffer]",Ch="[object DataView]",rs=Ot?Ot.prototype:void 0,lo=rs?rs.valueOf:void 0;function Th(e,t,n,r,o,i,s){switch(n){case Ch:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wh:return!(e.byteLength!=t.byteLength||!i(new ns(e),new ns(t)));case ph:case gh:case yh:return _a(+e,+t);case hh:return e.name==t.name&&e.message==t.message;case bh:case vh:return e==t+"";case mh:var a=ch;case xh:var l=r&fh;if(a||(a=uh),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=dh,s.set(e,t);var u=Ia(a(e),a(t),r,o,i,s);return s.delete(e),u;case Sh:if(lo)return lo.call(e)==lo.call(t)}return!1}function Eh(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var ot=Array.isArray;function Oh(e,t,n){var r=t(e);return ot(e)?r:Eh(r,n(e))}function Rh(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Ah(){return[]}var kh=Object.prototype,Ph=kh.propertyIsEnumerable,os=Object.getOwnPropertySymbols,$h=os?function(e){return e==null?[]:(e=Object(e),Rh(os(e),function(t){return Ph.call(e,t)}))}:Ah;function jh(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var _h="[object Arguments]";function is(e){return Nt(e)&&Bt(e)==_h}var Na=Object.prototype,Lh=Na.hasOwnProperty,Ih=Na.propertyIsEnumerable,Ma=is(function(){return arguments}())?is:function(e){return Nt(e)&&Lh.call(e,"callee")&&!Ih.call(e,"callee")};function Nh(){return!1}var Da=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ss=Da&&typeof module=="object"&&module&&!module.nodeType&&module,Mh=ss&&ss.exports===Da,as=Mh?it.Buffer:void 0,Dh=as?as.isBuffer:void 0,Oo=Dh||Nh,Fh=9007199254740991,Bh=/^(?:0|[1-9]\d*)$/;function Fa(e,t){var n=typeof e;return t=t??Fh,!!t&&(n=="number"||n!="symbol"&&Bh.test(e))&&e>-1&&e%1==0&&e<t}var Vh=9007199254740991;function zo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Vh}var Uh="[object Arguments]",zh="[object Array]",Jh="[object Boolean]",Gh="[object Date]",Wh="[object Error]",Hh="[object Function]",Kh="[object Map]",qh="[object Number]",Yh="[object Object]",Xh="[object RegExp]",Zh="[object Set]",Qh="[object String]",em="[object WeakMap]",tm="[object ArrayBuffer]",nm="[object DataView]",rm="[object Float32Array]",om="[object Float64Array]",im="[object Int8Array]",sm="[object Int16Array]",am="[object Int32Array]",lm="[object Uint8Array]",cm="[object Uint8ClampedArray]",um="[object Uint16Array]",fm="[object Uint32Array]",le={};le[rm]=le[om]=le[im]=le[sm]=le[am]=le[lm]=le[cm]=le[um]=le[fm]=!0;le[Uh]=le[zh]=le[tm]=le[Jh]=le[nm]=le[Gh]=le[Wh]=le[Hh]=le[Kh]=le[qh]=le[Yh]=le[Xh]=le[Zh]=le[Qh]=le[em]=!1;function dm(e){return Nt(e)&&zo(e.length)&&!!le[Bt(e)]}function pm(e){return function(t){return e(t)}}var Ba=typeof exports=="object"&&exports&&!exports.nodeType&&exports,kn=Ba&&typeof module=="object"&&module&&!module.nodeType&&module,gm=kn&&kn.exports===Ba,co=gm&&oa.process,ls=function(){try{var e=kn&&kn.require&&kn.require("util").types;return e||co&&co.binding&&co.binding("util")}catch{}}(),cs=ls&&ls.isTypedArray,Va=cs?pm(cs):dm,hm=Object.prototype,mm=hm.hasOwnProperty;function ym(e,t){var n=ot(e),r=!n&&Ma(e),o=!n&&!r&&Oo(e),i=!n&&!r&&!o&&Va(e),s=n||r||o||i,a=s?jh(e.length,String):[],l=a.length;for(var c in e)mm.call(e,c)&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Fa(c,l)))&&a.push(c);return a}var bm=Object.prototype;function xm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bm;return e===n}function vm(e,t){return function(n){return e(t(n))}}var Sm=vm(Object.keys,Object),wm=Object.prototype,Cm=wm.hasOwnProperty;function Tm(e){if(!xm(e))return Sm(e);var t=[];for(var n in Object(e))Cm.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ua(e){return e!=null&&zo(e.length)&&!La(e)}function Jo(e){return Ua(e)?ym(e):Tm(e)}function us(e){return Oh(e,Jo,$h)}var Em=1,Om=Object.prototype,Rm=Om.hasOwnProperty;function Am(e,t,n,r,o,i){var s=n&Em,a=us(e),l=a.length,c=us(t),u=c.length;if(l!=u&&!s)return!1;for(var p=l;p--;){var f=a[p];if(!(s?f in t:Rm.call(t,f)))return!1}var x=i.get(e),y=i.get(t);if(x&&y)return x==t&&y==e;var d=!0;i.set(e,t),i.set(t,e);for(var v=s;++p<l;){f=a[p];var T=e[f],E=t[f];if(r)var k=s?r(E,T,f,t,e,i):r(T,E,f,e,t,i);if(!(k===void 0?T===E||o(T,E,n,r,i):k)){d=!1;break}v||(v=f=="constructor")}if(d&&!v){var w=e.constructor,O=t.constructor;w!=O&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof O=="function"&&O instanceof O)&&(d=!1)}return i.delete(e),i.delete(t),d}var Ro=Ut(it,"DataView"),Ao=Ut(it,"Promise"),ko=Ut(it,"Set"),Po=Ut(it,"WeakMap"),fs="[object Map]",km="[object Object]",ds="[object Promise]",ps="[object Set]",gs="[object WeakMap]",hs="[object DataView]",Pm=Vt(Ro),$m=Vt(In),jm=Vt(Ao),_m=Vt(ko),Lm=Vt(Po),St=Bt;(Ro&&St(new Ro(new ArrayBuffer(1)))!=hs||In&&St(new In)!=fs||Ao&&St(Ao.resolve())!=ds||ko&&St(new ko)!=ps||Po&&St(new Po)!=gs)&&(St=function(e){var t=Bt(e),n=t==km?e.constructor:void 0,r=n?Vt(n):"";if(r)switch(r){case Pm:return hs;case $m:return fs;case jm:return ds;case _m:return ps;case Lm:return gs}return t});var Im=1,ms="[object Arguments]",ys="[object Array]",Wn="[object Object]",Nm=Object.prototype,bs=Nm.hasOwnProperty;function Mm(e,t,n,r,o,i){var s=ot(e),a=ot(t),l=s?ys:St(e),c=a?ys:St(t);l=l==ms?Wn:l,c=c==ms?Wn:c;var u=l==Wn,p=c==Wn,f=l==c;if(f&&Oo(e)){if(!Oo(t))return!1;s=!0,u=!1}if(f&&!u)return i||(i=new ft),s||Va(e)?Ia(e,t,n,r,o,i):Th(e,t,l,n,r,o,i);if(!(n&Im)){var x=u&&bs.call(e,"__wrapped__"),y=p&&bs.call(t,"__wrapped__");if(x||y){var d=x?e.value():e,v=y?t.value():t;return i||(i=new ft),o(d,v,n,r,i)}}return f?(i||(i=new ft),Am(e,t,n,r,o,i)):!1}function Ur(e,t,n,r,o){return e===t?!0:e==null||t==null||!Nt(e)&&!Nt(t)?e!==e&&t!==t:Mm(e,t,n,r,Ur,o)}function Dm(e,t){return Ur(e,t)}const za=({store:e})=>{const{t}=un.useTranslation(),[n,r]=H.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),o=H.useRef(n);fn(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;Dm(o.current,s)||(o.current=s,r(s))});const i=[];for(const[s,a]of n.entries())a&&i.push(s);return b.jsx(j.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",minHeight:"1.5rem",visibility:i.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:i.map(s=>s+1).join(", ")})})},Fm=j.styled(j.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 Hn({labelValue:e,...t}){return b.jsxs(Fm,{fullWidth:!0,variant:"filled",children:[b.jsx(j.InputLabel,{id:t.labelId,children:e}),b.jsx(j.Select,{...t})]})}var xs=function(){try{var e=Ut(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Bm(e,t,n){t=="__proto__"&&xs?xs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Vm(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function Um(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var l=s[++o];if(n(i[l],l,i)===!1)break}return t}}var zm=Um();function Jm(e,t){return e&&zm(e,t,Jo)}function Gm(e,t){return function(n,r){if(n==null)return n;if(!Ua(n))return e(n,r);for(var o=n.length,i=-1,s=Object(n);++i<o&&r(s[i],i,s)!==!1;);return n}}var Wm=Gm(Jm);function Hm(e,t,n,r){return Wm(e,function(o,i,s){t(r,o,n(o),s)}),r}var Km=1,qm=2;function Ym(e,t,n,r){var o=n.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var a=s[0],l=e[a],c=s[1];if(s[2]){if(l===void 0&&!(a in e))return!1}else{var u=new ft,p;if(!(p===void 0?Ur(c,l,Km|qm,r,u):p))return!1}}return!0}function Ja(e){return e===e&&!It(e)}function Xm(e){for(var t=Jo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ja(o)]}return t}function Ga(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Zm(e){var t=Xm(e);return t.length==1&&t[0][2]?Ga(t[0][0],t[0][1]):function(n){return n===e||Ym(n,e,t)}}var Qm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ey=/^\w*$/;function Go(e,t){if(ot(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||_r(e)?!0:ey.test(e)||!Qm.test(e)||t!=null&&e in Object(t)}var ty="Expected a function";function Wo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ty);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Wo.Cache||gt),n}Wo.Cache=gt;var ny=500;function ry(e){var t=Wo(e,function(r){return n.size===ny&&n.clear(),r}),n=t.cache;return t}var oy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iy=/\\(\\)?/g,sy=ry(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(oy,function(n,r,o,i){t.push(o?i.replace(iy,"$1"):r||n)}),t});function ay(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var vs=Ot?Ot.prototype:void 0,Ss=vs?vs.toString:void 0;function Wa(e){if(typeof e=="string")return e;if(ot(e))return ay(e,Wa)+"";if(_r(e))return Ss?Ss.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ha(e){return e==null?"":Wa(e)}function Ka(e,t){return ot(e)?e:Go(e,t)?[e]:sy(Ha(e))}function zr(e){if(typeof e=="string"||_r(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function qa(e,t){t=Ka(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[zr(t[n++])];return n&&n==r?e:void 0}function ly(e,t,n){var r=e==null?void 0:qa(e,t);return r===void 0?n:r}function cy(e,t){return e!=null&&t in Object(e)}function uy(e,t,n){t=Ka(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=zr(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&zo(o)&&Fa(s,o)&&(ot(e)||Ma(e)))}function fy(e,t){return e!=null&&uy(e,t,cy)}var dy=1,py=2;function gy(e,t){return Go(e)&&Ja(t)?Ga(zr(e),t):function(n){var r=ly(n,e);return r===void 0&&r===t?fy(n,e):Ur(t,r,dy|py)}}function hy(e){return e}function my(e){return function(t){return t==null?void 0:t[e]}}function yy(e){return function(t){return qa(t,e)}}function by(e){return Go(e)?my(zr(e)):yy(e)}function xy(e){return typeof e=="function"?e:e==null?hy:typeof e=="object"?ot(e)?gy(e[0],e[1]):Zm(e):by(e)}function vy(e,t){return function(n,r){var o=ot(n)?Vm:Hm,i={};return o(n,e,xy(r),i)}}var Kn=vy(function(e,t,n){Bm(e,n,t)}),Sy=0;function wy(e){var t=++Sy;return Ha(e)+t}const $o=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],Cy=[{id:"continuous"},...$o],Ty=["coordsys","tool"];class Jr{constructor(t,n,r,o){var i,s;this.jogger=t,this.motionGroupSpec=n,this.coordSystems=r,this.tcps=o,this.selectedTabId="cartesian",this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const a of r)if(a.coordinate_system===""){a.coordinate_system="world";break}this.selectedCoordSystemId=((i=r[0])==null?void 0:i.coordinate_system)||"world",this.selectedTcpId=((s=o[0])==null?void 0:s.id)||"",ln.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(ln.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:n}=t,[r,{coordinatesystems:o},{tcps:i}]=await Promise.all([n.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),n.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),n.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Jr(t,r,o||[],i||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return jo.countBy(this.coordSystems,t=>t.name)}async deactivate(){const t=this.jogger.activeWebsocket;this.jogger.setJoggingMode("increment"),t&&await t.closed()}async activate(){if(this.currentTab.id==="cartesian"){const t={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",t):this.jogger.setJoggingMode("cartesian",t)}else this.jogger.setJoggingMode("joint");return this.jogger}loadFromLocalStorage(){const t=Ct.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:"Joints"}]}get incrementOptions(){return Cy}get discreteIncrementOptions(){return $o}get incrementOptionsById(){return Kn(this.incrementOptions,t=>t.id)}get tabsById(){return Kn(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 Kn(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 Kn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:$o.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInDisplayUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,n){const r=this.tabs[n]||this.tabs[0];this.selectedTabId=r.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}lock(t){this.locks.add(t)}unlock(t){this.locks.delete(t)}async withMotionLock(t){const n=wy();this.lock(n);try{return await t()}finally{this.unlock(n)}}}const Ey=Ie.observer(({store:e})=>{var r;const{t}=un.useTranslation();function n(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return b.jsxs(j.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(Hn,{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(j.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(Hn,{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(j.MenuItem,{value:o.id,children:o.id},o.id))}),b.jsx(Hn,{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:Ty.map(o=>b.jsx(j.MenuItem,{value:o,children:n(o)},o))}),b.jsxs(Hn,{labelValue:"Increment",labelId:"jogging-increment-select",size:"small",variant:"filled",value:((r=e.activeDiscreteIncrement)==null?void 0:r.id)||"continuous",onChange:o=>{e.setSelectedIncrementId(o.target.value)},disabled:e.isLocked,children:[b.jsx(j.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>b.jsx(j.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})}),Oy=j.styled(j.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 Ry(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const Ay=2;function rn(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function Ya(e,t){return e-t}function ws(e,t){const{index:n}=e.reduce((r,o,i)=>{const s=Math.abs(t-o);return r===null||s<r.distance||s===r.distance?{distance:s,index:i}:r},null)??{};return n}function qn(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function br(e,t,n){return(e-t)*100/(n-t)}function ky(e,t,n){return(n-t)*e+t}function Py(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function $y(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Py(t)))}function Cs({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Ya)}function Yn({sliderRef:e,activeIndex:t,setActive:n}){var o,i,s;const r=er(e.current);(!((o=e.current)!=null&&o.contains(r.activeElement))||Number((i=r==null?void 0:r.activeElement)==null?void 0:i.getAttribute("data-index"))!==t)&&((s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function Xn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Ry(e,t):!1}const jy={horizontal:{offset:e=>({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}%`})}},_y=e=>e;let Zn;function Ts(){return Zn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Zn=CSS.supports("touch-action","none"):Zn=!0),Zn}function Ly(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:p,orientation:f="horizontal",rootRef:x,scale:y=_y,step:d=1,shiftStep:v=10,tabIndex:T,value:E}=e,k=M.useRef(void 0),[w,O]=M.useState(-1),[P,L]=M.useState(-1),[z,Y]=M.useState(!1),g=M.useRef(0),$=M.useRef(null),[F,N]=pu({controlled:E,default:n??l,name:"Slider"}),D=u&&((A,_,B)=>{const K=A.nativeEvent||A,ee=new K.constructor(K.type,K);Object.defineProperty(ee,"target",{writable:!0,value:{value:_,name:c}}),$.current=_,u(ee,_,B)}),ne=Array.isArray(F);let X=ne?F.slice().sort(Ya):[F];X=X.map(A=>A==null?l:on(A,l,a));const $e=s===!0&&d!==null?[...Array(Math.floor((a-l)/d)+1)].map((A,_)=>({value:l+d*_})):s||[],W=$e.map(A=>A.value),[ve,Re]=M.useState(-1),Q=M.useRef(null),Ye=Gs(x,Q),zt=A=>_=>{var K;const B=Number(_.currentTarget.getAttribute("data-index"));mi(_.target)&&Re(B),L(B),(K=A==null?void 0:A.onFocus)==null||K.call(A,_)},gn=A=>_=>{var B;mi(_.target)||Re(-1),L(-1),(B=A==null?void 0:A.onBlur)==null||B.call(A,_)},Jt=(A,_)=>{const B=Number(A.currentTarget.getAttribute("data-index")),K=X[B],ee=W.indexOf(K);let V=_;if($e&&d==null){const me=W[W.length-1];V>me?V=me:V<W[0]?V=W[0]:V=V<K?W[ee-1]:W[ee+1]}if(V=on(V,l,a),ne){o&&(V=on(V,X[B-1]||-1/0,X[B+1]||1/0));const me=V;V=Cs({values:X,newValue:V,index:B});let Te=B;o||(Te=V.indexOf(me)),Yn({sliderRef:Q,activeIndex:Te})}N(V),Re(B),D&&!Xn(V,F)&&D(A,V,B),p&&p(A,$.current??V)},At=A=>_=>{var B;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(_.key)){_.preventDefault();const K=Number(_.currentTarget.getAttribute("data-index")),ee=X[K];let V=null;if(d!=null){const me=_.shiftKey?v:d;switch(_.key){case"ArrowUp":V=rn(ee,me,1,l,a);break;case"ArrowRight":V=rn(ee,me,i?-1:1,l,a);break;case"ArrowDown":V=rn(ee,me,-1,l,a);break;case"ArrowLeft":V=rn(ee,me,i?1:-1,l,a);break;case"PageUp":V=rn(ee,v,1,l,a);break;case"PageDown":V=rn(ee,v,-1,l,a);break;case"Home":V=l;break;case"End":V=a;break}}else if($e){const me=W[W.length-1],Te=W.indexOf(ee),pe=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],je=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];pe.includes(_.key)?Te===0?V=W[0]:V=W[Te-1]:je.includes(_.key)&&(Te===W.length-1?V=me:V=W[Te+1])}V!=null&&Jt(_,V)}(B=A==null?void 0:A.onKeyDown)==null||B.call(A,_)};zs(()=>{var A;r&&Q.current.contains(document.activeElement)&&((A=document.activeElement)==null||A.blur())},[r]),r&&w!==-1&&O(-1),r&&ve!==-1&&Re(-1);const ht=A=>_=>{var B;(B=A.onChange)==null||B.call(A,_),Jt(_,_.target.valueAsNumber)},Fe=M.useRef(void 0);let Ge=f;i&&f==="horizontal"&&(Ge+="-reverse");const Be=({finger:A,move:_=!1})=>{const{current:B}=Q,{width:K,height:ee,bottom:V,left:me}=B.getBoundingClientRect();let Te;Ge.startsWith("vertical")?Te=(V-A.y)/ee:Te=(A.x-me)/K,Ge.includes("-reverse")&&(Te=1-Te);let pe;if(pe=ky(Te,l,a),d)pe=$y(pe,d,l);else{const kt=ws(W,pe);pe=W[kt]}pe=on(pe,l,a);let je=0;if(ne){_?je=Fe.current:je=ws(X,pe),o&&(pe=on(pe,X[je-1]||-1/0,X[je+1]||1/0));const kt=pe;pe=Cs({values:X,newValue:pe,index:je}),o&&_||(je=pe.indexOf(kt),Fe.current=je)}return{newValue:pe,activeIndex:je}},st=Xr(A=>{const _=qn(A,k);if(!_)return;if(g.current+=1,A.type==="mousemove"&&A.buttons===0){Ne(A);return}const{newValue:B,activeIndex:K}=Be({finger:_,move:!0});Yn({sliderRef:Q,activeIndex:K,setActive:O}),N(B),!z&&g.current>Ay&&Y(!0),D&&!Xn(B,F)&&D(A,B,K)}),Ne=Xr(A=>{const _=qn(A,k);if(Y(!1),!_)return;const{newValue:B}=Be({finger:_,move:!0});O(-1),A.type==="touchend"&&L(-1),p&&p(A,$.current??B),k.current=void 0,at()}),Ce=Xr(A=>{if(r)return;Ts()||A.preventDefault();const _=A.changedTouches[0];_!=null&&(k.current=_.identifier);const B=qn(A,k);if(B!==!1){const{newValue:ee,activeIndex:V}=Be({finger:B});Yn({sliderRef:Q,activeIndex:V,setActive:O}),N(ee),D&&!Xn(ee,F)&&D(A,ee,V)}g.current=0;const K=er(Q.current);K.addEventListener("touchmove",st,{passive:!0}),K.addEventListener("touchend",Ne,{passive:!0})}),at=M.useCallback(()=>{const A=er(Q.current);A.removeEventListener("mousemove",st),A.removeEventListener("mouseup",Ne),A.removeEventListener("touchmove",st),A.removeEventListener("touchend",Ne)},[Ne,st]);M.useEffect(()=>{const{current:A}=Q;return A.addEventListener("touchstart",Ce,{passive:Ts()}),()=>{A.removeEventListener("touchstart",Ce),at()}},[at,Ce]),M.useEffect(()=>{r&&at()},[r,at]);const mt=A=>_=>{var ee;if((ee=A.onMouseDown)==null||ee.call(A,_),r||_.defaultPrevented||_.button!==0)return;_.preventDefault();const B=qn(_,k);if(B!==!1){const{newValue:V,activeIndex:me}=Be({finger:B});Yn({sliderRef:Q,activeIndex:me,setActive:O}),N(V),D&&!Xn(V,F)&&D(_,V,me)}g.current=0;const K=er(Q.current);K.addEventListener("mousemove",st,{passive:!0}),K.addEventListener("mouseup",Ne)},Xe=br(ne?X[0]:l,l,a),we=br(X[X.length-1],l,a)-Xe,yt=(A={})=>{const _=tr(A),B={onMouseDown:mt(_||{})},K={..._,...B};return{...A,ref:Ye,...K}},lt=A=>_=>{var K;(K=A.onMouseOver)==null||K.call(A,_);const B=Number(_.currentTarget.getAttribute("data-index"));L(B)},Gt=A=>_=>{var B;(B=A.onMouseLeave)==null||B.call(A,_),L(-1)},Wt=(A={})=>{const _=tr(A),B={onMouseOver:lt(_||{}),onMouseLeave:Gt(_||{})};return{...A,..._,...B}},bt=A=>({pointerEvents:w!==-1&&w!==A?"none":void 0});let xt;return f==="vertical"&&(xt=i?"vertical-rl":"vertical-lr"),{active:w,axis:Ge,axisProps:jy,dragging:z,focusedThumbIndex:ve,getHiddenInputProps:(A={})=>{const _=tr(A),B={onChange:ht(_||{}),onFocus:zt(_||{}),onBlur:gn(_||{}),onKeyDown:At(_||{})},K={..._,...B};return{tabIndex:T,"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":e.step??void 0,disabled:r,...A,...K,style:{...gu,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:xt}}},getRootProps:yt,getThumbProps:Wt,marks:$e,open:P,range:ne,rootRef:Ye,trackLeap:we,trackOffset:Xe,values:X,getThumbStyle:bt}}function ir(e){return typeof e=="string"}const Iy=e=>!e||!ir(e);function Ny(e){return typeof e.main=="string"}function My(e,t=[]){if(!Ny(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ho(e=[]){return([,t])=>t&&My(t,e)}function Dy(e){return Fn("MuiSlider",e)}const ze=Ms("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"]),Fy=e=>{const{open:t}=e;return{offset:rt(t&&ze.valueLabelOpen),circle:ze.valueLabelCircle,label:ze.valueLabelLabel}};function Xa(e){const{children:t,className:n,value:r}=e,o=Fy(e);return t?M.cloneElement(t,{className:rt(t.props.className)},b.jsxs(M.Fragment,{children:[t.props.children,b.jsx("span",{className:rt(o.offset,n),"aria-hidden":!0,children:b.jsx("span",{className:o.circle,children:b.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Xa.propTypes={children:h.element.isRequired,className:h.string,value:h.node});function Es(e){return e}const By=dt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ke(n.color)}`],n.size!=="medium"&&t[`size${ke(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ft(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${ze.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${ze.dragging}`]:{[`& .${ze.thumb}, & .${ze.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].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}}]}))),Vy=dt("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}}]}),Uy=dt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(Ft(({theme:e})=>({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.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:$n(e.palette[t].main,.62),borderColor:$n(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Pn(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Pn(e.palette[t].main,.5)})}}}))]}))),zy=dt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ke(n.color)}`],n.size!=="medium"&&t[`thumbSize${ke(n.size)}`]]}})(Ft(({theme:e})=>({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%)"},[`&.${ze.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.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${ze.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${mo(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${ze.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${mo(e.palette[t].main,.16)}`}}}}))]}))),Za=dt(Xa,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(Ft(({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%"},[`&.${ze.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%"},[`&.${ze.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"}}]})));process.env.NODE_ENV!=="production"&&(Za.propTypes={children:h.element.isRequired,index:h.number.isRequired,open:h.bool.isRequired,value:h.node});const Jy=dt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Mo(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ft(({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}}]}))),Gy=dt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Mo(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(Ft(({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}}]}))),Wy=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${ke(a)}`,l&&`size${ke(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${ke(l)}`,a&&`thumbColor${ke(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Io(c,Dy,s)},Hy=({children:e})=>e,Qa=M.forwardRef(function(t,n){const r=Do({props:t,name:"MuiSlider"}),o=vu(),{"aria-label":i,"aria-valuetext":s,"aria-labelledby":a,component:l="span",components:c={},componentsProps:u={},color:p="primary",classes:f,className:x,disableSwap:y=!1,disabled:d=!1,getAriaLabel:v,getAriaValueText:T,marks:E=!1,max:k=100,min:w=0,name:O,onChange:P,onChangeCommitted:L,orientation:z="horizontal",shiftStep:Y=10,size:g="medium",step:$=1,scale:F=Es,slotProps:N,slots:D,tabIndex:ne,track:X="normal",value:$e,valueLabelDisplay:W="off",valueLabelFormat:ve=Es,...Re}=r,Q={...r,isRtl:o,max:k,min:w,classes:f,disabled:d,disableSwap:y,orientation:z,marks:E,color:p,size:g,step:$,shiftStep:Y,scale:F,track:X,valueLabelDisplay:W,valueLabelFormat:ve},{axisProps:Ye,getRootProps:zt,getHiddenInputProps:gn,getThumbProps:Jt,open:At,active:ht,axis:Fe,focusedThumbIndex:Ge,range:Be,dragging:st,marks:Ne,values:Ce,trackOffset:at,trackLeap:mt,getThumbStyle:Xe}=Ly({...Q,rootRef:n});Q.marked=Ne.length>0&&Ne.some(ce=>ce.label),Q.dragging=st,Q.focusedThumbIndex=Ge;const we=Wy(Q),yt=(D==null?void 0:D.root)??c.Root??By,lt=(D==null?void 0:D.rail)??c.Rail??Vy,Gt=(D==null?void 0:D.track)??c.Track??Uy,Wt=(D==null?void 0:D.thumb)??c.Thumb??zy,bt=(D==null?void 0:D.valueLabel)??c.ValueLabel??Za,xt=(D==null?void 0:D.mark)??c.Mark??Jy,Ht=(D==null?void 0:D.markLabel)??c.MarkLabel??Gy,A=(D==null?void 0:D.input)??c.Input??"input",_=(N==null?void 0:N.root)??u.root,B=(N==null?void 0:N.rail)??u.rail,K=(N==null?void 0:N.track)??u.track,ee=(N==null?void 0:N.thumb)??u.thumb,V=(N==null?void 0:N.valueLabel)??u.valueLabel,me=(N==null?void 0:N.mark)??u.mark,Te=(N==null?void 0:N.markLabel)??u.markLabel,pe=(N==null?void 0:N.input)??u.input,je=vt({elementType:yt,getSlotProps:zt,externalSlotProps:_,externalForwardedProps:Re,additionalProps:{...Iy(yt)&&{as:l}},ownerState:{...Q,..._==null?void 0:_.ownerState},className:[we.root,x]}),kt=vt({elementType:lt,externalSlotProps:B,ownerState:Q,className:we.rail}),Gr=vt({elementType:Gt,externalSlotProps:K,additionalProps:{style:{...Ye[Fe].offset(at),...Ye[Fe].leap(mt)}},ownerState:{...Q,...K==null?void 0:K.ownerState},className:we.track}),hn=vt({elementType:Wt,getSlotProps:Jt,externalSlotProps:ee,ownerState:{...Q,...ee==null?void 0:ee.ownerState},className:we.thumb}),mn=vt({elementType:bt,externalSlotProps:V,ownerState:{...Q,...V==null?void 0:V.ownerState},className:we.valueLabel}),Kt=vt({elementType:xt,externalSlotProps:me,ownerState:Q,className:we.mark}),Ze=vt({elementType:Ht,externalSlotProps:Te,ownerState:Q,className:we.markLabel}),yn=vt({elementType:A,getSlotProps:gn,externalSlotProps:pe,ownerState:Q});return b.jsxs(yt,{...je,children:[b.jsx(lt,{...kt}),b.jsx(Gt,{...Gr}),Ne.filter(ce=>ce.value>=w&&ce.value<=k).map((ce,ye)=>{const bn=br(ce.value,w,k),Pt=Ye[Fe].offset(bn);let We;return X===!1?We=Ce.includes(ce.value):We=X==="normal"&&(Be?ce.value>=Ce[0]&&ce.value<=Ce[Ce.length-1]:ce.value<=Ce[0])||X==="inverted"&&(Be?ce.value<=Ce[0]||ce.value>=Ce[Ce.length-1]:ce.value>=Ce[0]),b.jsxs(M.Fragment,{children:[b.jsx(xt,{"data-index":ye,...Kt,...!ir(xt)&&{markActive:We},style:{...Pt,...Kt.style},className:rt(Kt.className,We&&we.markActive)}),ce.label!=null?b.jsx(Ht,{"aria-hidden":!0,"data-index":ye,...Ze,...!ir(Ht)&&{markLabelActive:We},style:{...Pt,...Ze.style},className:rt(we.markLabel,Ze.className,We&&we.markLabelActive),children:ce.label}):null]},ye)}),Ce.map((ce,ye)=>{const bn=br(ce,w,k),Pt=Ye[Fe].offset(bn),We=W==="off"?Hy:bt;return b.jsx(We,{...!ir(We)&&{valueLabelFormat:ve,valueLabelDisplay:W,value:typeof ve=="function"?ve(F(ce),ye):ve,index:ye,open:At===ye||ht===ye||W==="on",disabled:d},...mn,children:b.jsx(Wt,{"data-index":ye,...hn,className:rt(we.thumb,hn.className,ht===ye&&we.active,Ge===ye&&we.focusVisible),style:{...Pt,...Xe(ye),...hn.style},children:b.jsx(A,{"data-index":ye,"aria-label":v?v(ye):i,"aria-valuenow":F(ce),"aria-labelledby":a,"aria-valuetext":T?T(F(ce),ye):s,value:Ce[ye],...yn})})},ye)})]})});process.env.NODE_ENV!=="production"&&(Qa.propTypes={"aria-label":hi(h.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":h.string,"aria-valuetext":hi(h.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:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","error","info","success","warning"]),h.string]),components:h.shape({Input:h.elementType,Mark:h.elementType,MarkLabel:h.elementType,Rail:h.elementType,Root:h.elementType,Thumb:h.elementType,Track:h.elementType,ValueLabel:h.elementType}),componentsProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.node,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),defaultValue:h.oneOfType([h.arrayOf(h.number),h.number]),disabled:h.bool,disableSwap:h.bool,getAriaLabel:h.func,getAriaValueText:h.func,marks:h.oneOfType([h.arrayOf(h.shape({label:h.node,value:h.number.isRequired})),h.bool]),max:h.number,min:h.number,name:h.string,onChange:h.func,onChangeCommitted:h.func,orientation:h.oneOf(["horizontal","vertical"]),scale:h.func,shiftStep:h.number,size:h.oneOfType([h.oneOf(["small","medium"]),h.string]),slotProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.node,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),slots:h.shape({input:h.elementType,mark:h.elementType,markLabel:h.elementType,rail:h.elementType,root:h.elementType,thumb:h.elementType,track:h.elementType,valueLabel:h.elementType}),step:h.number,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),tabIndex:h.number,track:h.oneOf(["inverted","normal",!1]),value:h.oneOfType([h.arrayOf(h.number),h.number]),valueLabelDisplay:h.oneOf(["auto","off","on"]),valueLabelFormat:h.oneOfType([h.func,h.string])});var Ky="[object Number]";function qy(e){return typeof e=="number"||Nt(e)&&Bt(e)==Ky}const el=Ie.observer(e=>{j.useTheme();function t(n,r){r===e.velocity||!qy(r)||e.onVelocityChange(r)}return b.jsxs(j.Stack,{direction:"row",gap:2,children:[b.jsx(Qa,{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(Ko,{value:e.velocity.toString()})]})});function Ko({value:e,sx:t}){var r;const n=j.useTheme();return b.jsx(j.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(r=n.palette.backgroundPaperElevation)==null?void 0:r[8],borderRadius:"10px",minWidth:"111px",...t},children:b.jsx(j.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:n.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const tl=Ie.observer(({store:e})=>{const{t}=un.useTranslation(),n=Ie.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?r=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:r})}`:r=>`ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:r})}`}}));return b.jsx(el,{velocity:e.velocityInDisplayUnits,min:e.minVelocityInDisplayUnits,max:e.maxVelocityInDisplayUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:r=>b.jsx(Ko,{value:n.valueLabelFormat(r),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),Yy=Ie.observer(({store:e,children:t})=>{var p,f,x,y,d,v,T,E,k;const{t:n}=un.useTranslation(),r=j.useTheme();function o(w,O){(O==="translate"||O==="rotate")&&e.setSelectedCartesianMotionType(O)}na(()=>[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(w,O){const P=await e.activate(),L=P.motionStream.rapidlyChangingMotionState.tcp_pose,z=P.motionStream.rapidlyChangingMotionState.state.joint_position;L&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:w.axis,direction:w.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:L,currentJoints:z,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:w.axis,direction:w.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:O.mm}:{type:"rotate",distanceRads:Ct.degreesToRadians(O.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function s(w){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return i(w,e.activeDiscreteIncrement);w.motionType==="translate"?await e.jogger.startTCPTranslation({axis:w.axis,direction:w.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:w.axis,direction:w.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}const l=[{id:"x",colors:(x=(f=(p=r.componentsExt)==null?void 0:p.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:x.X,icon:b.jsx(rg,{})},{id:"y",colors:(v=(d=(y=r.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:d.Axis)==null?void 0:v.Y,icon:b.jsx(ig,{})},{id:"z",colors:(k=(E=(T=r.componentsExt)==null?void 0:T.JoggingCartesian)==null?void 0:E.Axis)==null?void 0:k.Z,icon:b.jsx(ag,{})}];function c(w){return n("General.mm.variable",{amount:w.toFixed(1)})}function u(w){return n("General.degree.variable",{amount:Ct.radiansToDegrees(w).toFixed(1)})}return b.jsxs(j.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsxs(j.Stack,{gap:2,children:[b.jsx(Ey,{store:e}),b.jsx(tl,{store:e}),b.jsx(j.Divider,{})]}),b.jsx(j.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:b.jsxs(j.Stack,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[b.jsxs(Oy,{value:e.selectedCartesianMotionType,onChange:o,exclusive:!0,"aria-label":n("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[b.jsx(j.ToggleButton,{value:"translate",children:n("Jogging.Cartesian.Translation.bt")}),b.jsx(j.ToggleButton,{value:"rotate",children:n("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&l.map(w=>{var O;return b.jsx(xo,{colors:w.colors,disabled:e.isLocked,activeJoggingDirection:((O=e.incrementJogInProgress)==null?void 0:O.axis)===w.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[w.icon,b.jsx(j.Typography,{sx:{fontSize:"24px",color:r.palette.text.primary},children:w.id.toUpperCase()})]}),getDisplayedValue:()=>{var P;return c(((P=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:P.position[w.id])||0)},startJogging:P=>s({axis:w.id,motionType:"translate",direction:P}),stopJogging:a},w.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(w=>{var O;return b.jsx(xo,{colors:w.colors,disabled:e.isLocked,activeJoggingDirection:((O=e.incrementJogInProgress)==null?void 0:O.axis)===w.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[b.jsx(cg,{}),b.jsx(j.Typography,{sx:{fontSize:"24px",color:r.palette.text.primary},children:w.id.toUpperCase()})]}),getDisplayedValue:()=>{var P,L;return u(((L=(P=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:P.orientation)==null?void 0:L[w.id])||0)},startJogging:P=>s({axis:w.id,motionType:"rotate",direction:P}),stopJogging:a},w.id)})]})}),b.jsx(za,{store:e}),t&&b.jsx(j.Divider,{}),t]})}),Xy=Ie.observer(({store:e,children:t})=>{async function n(o){await e.activate(),await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function r(){await e.jogger.stop(),await e.deactivate()}return b.jsxs(j.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsx(tl,{store:e}),b.jsx(j.Divider,{}),b.jsx(j.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:b.jsx(j.Stack,{alignItems:"center",gap:"24px",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?Ct.radiansToDegrees(i.lower_limit):void 0,a=(i==null?void 0:i.upper_limit)!==void 0?Ct.radiansToDegrees(i.upper_limit):void 0;return b.jsx(sa,{disabled:e.isLocked,lowerLimitDegs:s,upperLimitDegs:a,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return c!==void 0?Ct.radiansToDegrees(c):void 0},startJogging:c=>n({joint:o.index,direction:c}),stopJogging:r},`joint-${o.index}`)})})}),b.jsx(za,{store:e}),t&&b.jsx(j.Divider,{}),t]})}),Zy=Bn(Ie.observer(e=>{const t=jo.isString(e.nova)?new Ct.NovaClient({instanceUrl:e.nova}):e.nova,n=Ie.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function r(){ln.runInAction(()=>{n.loadingError=null,n.joggingStore=null});try{let o=e.store;if(!o){const i=await t.connectJogger(e.motionGroupId);o=await Jr.loadFor(i)}ln.runInAction(()=>{n.joggingStore=o}),e.onSetup&&e.onSetup(o)}catch(o){n.loadingError=o}}return H.useEffect(()=>(r(),e.store?()=>null:()=>{var o;(o=n.joggingStore)==null||o.dispose()}),[e.store,e.nova,e.motionGroupId]),H.useEffect(()=>{const o=n.joggingStore;o&&(e.locked?o.lock("external"):o.unlock("external"))},[n.joggingStore,e.locked]),b.jsx(j.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:n.joggingStore?b.jsx(Qy,{store:n.joggingStore,children:e.children}):b.jsx(Uo,{message:"Loading jogging",error:n.loadingError})})})),Qy=Ie.observer(({store:e,children:t})=>{function n(){if(e.currentTab.id==="cartesian")return b.jsx(b.Fragment,{children:b.jsx(Yy,{store:e,children:t})});if(e.currentTab.id==="joint")return b.jsx(b.Fragment,{children:b.jsx(Xy,{store:e,children:t})})}return b.jsxs(j.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[b.jsx(j.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(r=>b.jsx(j.Tab,{label:r.label,id:`jogging-tab-${r.id}`,"aria-controls":`jogging-tab-${r.id}`},r.id))}),b.jsx(j.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:n()})]})}),nl=H.forwardRef(({label:e,value:t},n)=>{var a;const r=j.useTheme(),[o,i]=H.useState(!1);async function s(){if(!n||!("current"in n))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(n.current),c.removeAllRanges(),c.addRange(u)}return!1}return H.useEffect(()=>{if(!o)return;const l=setTimeout(()=>i(!1),3e3);return()=>{l&&clearTimeout(l)}},[o]),b.jsx(j.Tooltip,{open:o,title:"Copied!",children:b.jsx(j.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(a=r.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:b.jsx(j.Typography,{ref:n,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:r.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),eb=Ie.observer(({motionStream:e})=>{const t=H.useRef(null);function n(){const r=e.rapidlyChangingMotionState.tcp_pose;return r?Ct.poseToWandelscriptString(r):""}return fn(()=>{if(!t.current)return;const r=n();t.current.textContent!==r&&(t.current.textContent=r)}),b.jsx(j.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(nl,{value:n(),ref:t})})}),tb=Ie.observer(({motionStream:e})=>{const t=H.useRef(null);function n(){const{joints:r}=e.rapidlyChangingMotionState.state.joint_position;return`[${r.map(o=>parseFloat(o.toFixed(4))).join(", ")}]`}return fn(()=>{if(!t.current)return;const r=n();t.current.textContent!==r&&(t.current.textContent=r)}),b.jsx(j.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(nl,{value:n(),ref:t})})});function nb(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function rb({baseUrl:e=nb(),...t}){return b.jsxs(j.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(j.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),b.jsxs(j.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[b.jsx(j.Typography,{color:"#fff",children:"Found no devices to connect to."}),b.jsx(j.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),b.jsx(j.DialogActions,{children:b.jsxs(j.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[b.jsx(j.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),b.jsx(j.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const ob=Array(6).fill(2*Math.PI),Os="0.0.0-semantically-released";function qo(e){let t=Os;return Os.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function ib(e){function t(n){return n.children.length===0?[n]:[n,...n.children.flatMap(r=>t(r))]}return t(e).filter(n=>ol(n))}function rl(e){return e.name.endsWith("_FLG")}function ol(e){return/_J[0-9]+$/.test(e.name)}function sb(e,t){let n;function r(o){if(rl(o)){if(n)throw Error(`Found multiple flange groups in robot model ${t}; first ${n.name} then ${o.name}. Only one _FLG group is allowed.`);n=o}ol(o),o.children.map(r)}if(r(e.scene),!n)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function il({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:n,children:r}){fo.Globals.assign({frameLoop:"always"});const o=H.useRef([]),i=H.useRef([]),{invalidate:s}=wl.useThree();function a(f){f&&(i.current=ib(f),c(),s())}function l(f){o.current=f,p.start(Object.assign({},o.current))}function c(){const f=i.current.map((x,y)=>u[y].get());if(n)n(i.current,f);else for(const[x,y]of i.current.entries()){const d=t[x],v=d.theta||0,T=d.reverse_rotation_direction?-1:1;y.rotation.y=T*f[x]+v}}ta(()=>{const f=e.state.joint_position.joints.filter(x=>x!==void 0);requestAnimationFrame(()=>l(f))});const[u,p]=fo.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),s()},onResolve:()=>{c()}}));return b.jsx("group",{ref:a,children:r})}const Rs="line",As="mesh";function ab({rapidlyChangingMotionState:e,dhParameters:t,...n}){const r=new ut.Matrix4;function o(a,l){const c=new ut.Vector3,u=new ut.Quaternion,p=new ut.Vector3;r.decompose(c,u,p);const f=c.clone(),x=new ut.Matrix4().makeRotationY(a.theta+l*(a.reverse_rotation_direction?-1:1)).multiply(new ut.Matrix4().makeTranslation(0,a.d/1e3,0)).multiply(new ut.Matrix4().makeTranslation(a.a/1e3,0,0)).multiply(new ut.Matrix4().makeRotationX(a.alpha));return r.multiply(x),r.decompose(c,u,p),{a:f,b:c}}function i(a,l,c,u){if(!t)return;const p=t[a];if(!p)return;const{a:f,b:x}=o(p,u);l.geometry.setPositions([f.toArray(),x.toArray()].flat()),c.position.set(x.x,x.y,x.z)}function s(a,l){r.identity(),a.forEach((c,u)=>{i(u,c.getObjectByName(Rs),c.getObjectByName(As),l[u])})}return b.jsx(b.Fragment,{children:b.jsx(il,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:s,children:b.jsxs("group",{...n,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),p=`dhrobot_J0${l}`;return b.jsxs("group",{name:p,children:[b.jsx(He.Line,{name:Rs,points:[c,u],color:"white",lineWidth:5}),b.jsxs("mesh",{name:As,position:u,children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},p)})]})})})}const lb=console.warn;function cb(){return H.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&lb(e)}},[]),b.jsx(b.Fragment,{})}function ub(e){return e.type==="Mesh"}function fb({modelURL:e,flangeRef:t,postModelRender:n,...r}){const{gltf:o}=sb(He.useGLTF(e),e.split("/").pop()||e),i=H.useCallback(a=>{a&&n&&n()},[e]);function s(a){return ub(a)?b.jsx("mesh",{name:a.name,geometry:a.geometry,material:a.material,position:a.position,rotation:a.rotation},a.uuid):b.jsx(fo.animated.group,{name:a.name,position:a.position,rotation:a.rotation,ref:rl(a)?t:void 0,children:a.children.map(s)},a.uuid)}return b.jsx("group",{...r,dispose:null,ref:i,children:s(o.scene)})}const db=(e,t)=>{e.userData.isGhost||(e.traverse(n=>{if(n instanceof Se.Mesh){n.material instanceof Se.Material&&(n.material.colorWrite=!1);const r=n.clone(),o=n.clone();r.material=new Se.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:Se.DoubleSide}),r.userData.isGhost=!0,o.material=new Se.MeshStandardMaterial({color:t,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:Se.DoubleSide}),o.userData.isGhost=!0,n.parent&&(n.parent.add(r),n.parent.add(o))}}),e.userData.isGhost=!0)},pb=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(n=>{var r;n instanceof Se.Mesh&&((r=n.userData)!=null&&r.isGhost?t.push(n):n.material instanceof Se.Material&&(n.material.colorWrite=!0))}),t.forEach(n=>{n.parent&&n.parent.remove(n)}),e.userData.isGhost=!1},sl=Bn(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:n,getModel:r=qo,flangeRef:o,postModelRender:i,transparentColor:s,...a})=>{const[l,c]=H.useState(null),u=H.useCallback(f=>{c(f)},[]);H.useEffect(()=>{l&&(s?db(l,s):pb(l))},[l,s]);const p=b.jsx(ab,{rapidlyChangingMotionState:e,dhParameters:n,...a});return b.jsxs(Rl.ErrorBoundary,{fallback:p,onError:f=>{if(f.message.includes("404: Not Found"))console.error(f);else throw f},children:[b.jsx(H.Suspense,{fallback:p,children:b.jsx("group",{ref:u,children:b.jsx(il,{rapidlyChangingMotionState:e,dhParameters:n,children:b.jsx(fb,{modelURL:r(t),postModelRender:i,flangeRef:o,...a})})})}),b.jsx(cb,{})]})});function gb({connectedMotionGroup:e,getModel:t=qo,flangeRef:n,transparentColor:r,...o}){return e.dhParameters?b.jsx(sl,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:n,transparentColor:r,...o}):null}const hb=j.styled(j.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,n,r;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:o})=>!o,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:o})=>o,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),mb=H.forwardRef((e,t)=>b.jsx(hb,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),yb={$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"},bb=H.lazy(()=>import("@monaco-editor/react"));let uo=null;async function xb(){if(!uo){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);uo={shiki:await e({langs:[yb],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return uo}const vb=Bn(e=>{const t=j.useTheme(),[n,r]=H.useState("dark-plus"),o=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(s){var c,u;s.languages.register({id:"wandelscript"}),s.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const{shiki:a,shikiToMonaco:l}=await xb();l(a,s),s.editor.defineTheme(o,((u=(c=t.componentsExt)==null?void 0:c.WandelscriptEditor)==null?void 0:u.monacoTheme)??{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{}}),e.monacoSetup&&e.monacoSetup(s),r(o)}return b.jsx(H.Suspense,{fallback:b.jsx(Uo,{}),children:b.jsx(bb,{value:e.code,onMount:(s,a)=>{i(a)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function al(){var t,n,r,o,i,s,a;const e=j.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:(r=(n=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:n.tonal)==null?void 0:r.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"}}}]},MuiDrawer:{styleOverrides:{paper:{border:"none",boxShadow:"4px 0 8px -4px rgba(0, 0, 0, 0.3)"}}},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":j.rgbToHex(((a=e.palette.backgroundPaperElevation)==null?void 0:a[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function Sb(){const e=al();return e.palette.mode="light",e}function wb(e){var r,o,i,s;let t=!0;((r=e.palette)==null?void 0:r.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 n=t?al():Sb();return Xs(n,e)}exports.JoggingCartesianAxisControl=xo;exports.JoggingJointRotationControl=sa;exports.JoggingPanel=Zy;exports.JoggingStore=Jr;exports.LoadingCover=Uo;exports.LoadingErrorMessage=ja;exports.NoMotionGroupModal=rb;exports.PoseCartesianValues=eb;exports.PoseJointValues=tb;exports.PresetEnvironment=Pl;exports.Robot=gb;exports.SafetyZonesRenderer=_l;exports.SelectableFab=mb;exports.SupportedRobot=sl;exports.TrajectoryRenderer=Ll;exports.VelocitySlider=el;exports.VelocitySliderLabel=Ko;exports.WandelscriptEditor=vb;exports.createNovaMuiTheme=wb;exports.defaultAxisConfig=ob;exports.defaultGetModel=qo;exports.useAnimationFrame=fn;exports.useAutorun=ta;exports.useMounted=jr;exports.useReaction=na;
85
+ export default theme;`}function mo(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...c}=e;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.":Et(20));const u=Io(i),d=kr(e);let p=$e(d,{mixins:Hu(d.breakpoints,r),palette:u,shadows:Qu.slice(),typography:qu(u,a),transitions:rf(s),zIndex:{...of}});if(p=$e(p,c),p=t.reduce((x,y)=>$e(x,y),p),process.env.NODE_ENV!=="production"){const x=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(f,v)=>{let T;for(T in f){const E=f[T];if(x.includes(T)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const A=Fn("",T);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${A}' syntax:`,JSON.stringify({root:{[`&.${A}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
86
+ `))}f[T]={}}}};Object.keys(p.components).forEach(f=>{const v=p.components[f].styleOverrides;v&&f.startsWith("Mui")&&y(v,f)})}return p.unstable_sxConfig={...Dn,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(y){return cn({sx:y,theme:this})},p.toRuntimeSource=qs,p}function af(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const lf=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=af(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ys(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Xs(e){return e==="dark"?lf:[]}function cf(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Io(t);return{palette:i,opacity:{...Ys(i.mode),...n},overlays:r||Xs(i.mode),...o}}function uf(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const ff=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],df=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return ff(e.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",t)]:s,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function pf(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function w(e,t,n){!e[t]&&n&&(e[t]=n)}function On(e){return typeof e!="string"||!e.startsWith("hsl")?e:Gs(e)}function ut(e,t){`${t}Channel`in e||(e[`${t}Channel`]=En(On(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
87
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function gf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Qe=e=>{try{return e()}catch{}},hf=(e="mui")=>Ou(e);function Qr(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=cf({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=mo({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...Ys(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Xs(o)},s}function mf(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=uf,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],d=r||(n.light&&u!=="light"?"light":u),p=hf(i),{[d]:x,light:y,dark:f,...v}=n,T={...v};let E=x;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:Et(21,d));const A=Qr(T,E,c,d);y&&!T.light&&Qr(T,y,void 0,"light"),f&&!T.dark&&Qr(T,f,void 0,"dark");let C={defaultColorScheme:d,...A,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:p,colorSchemes:T,font:{...Wu(A.typography),...A.font},spacing:gf(c.spacing)};Object.keys(C.colorSchemes).forEach(W=>{const g=C.colorSchemes[W].palette,P=I=>{const N=I.split("-"),M=N[1],Q=N[2];return p(I,g[M][Q])};if(g.mode==="light"&&(w(g.common,"background","#fff"),w(g.common,"onBackground","#000")),g.mode==="dark"&&(w(g.common,"background","#000"),w(g.common,"onBackground","#fff")),pf(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){w(g.Alert,"errorColor",se(g.error.light,.6)),w(g.Alert,"infoColor",se(g.info.light,.6)),w(g.Alert,"successColor",se(g.success.light,.6)),w(g.Alert,"warningColor",se(g.warning.light,.6)),w(g.Alert,"errorFilledBg",P("palette-error-main")),w(g.Alert,"infoFilledBg",P("palette-info-main")),w(g.Alert,"successFilledBg",P("palette-success-main")),w(g.Alert,"warningFilledBg",P("palette-warning-main")),w(g.Alert,"errorFilledColor",Qe(()=>g.getContrastText(g.error.main))),w(g.Alert,"infoFilledColor",Qe(()=>g.getContrastText(g.info.main))),w(g.Alert,"successFilledColor",Qe(()=>g.getContrastText(g.success.main))),w(g.Alert,"warningFilledColor",Qe(()=>g.getContrastText(g.warning.main))),w(g.Alert,"errorStandardBg",ae(g.error.light,.9)),w(g.Alert,"infoStandardBg",ae(g.info.light,.9)),w(g.Alert,"successStandardBg",ae(g.success.light,.9)),w(g.Alert,"warningStandardBg",ae(g.warning.light,.9)),w(g.Alert,"errorIconColor",P("palette-error-main")),w(g.Alert,"infoIconColor",P("palette-info-main")),w(g.Alert,"successIconColor",P("palette-success-main")),w(g.Alert,"warningIconColor",P("palette-warning-main")),w(g.AppBar,"defaultBg",P("palette-grey-100")),w(g.Avatar,"defaultBg",P("palette-grey-400")),w(g.Button,"inheritContainedBg",P("palette-grey-300")),w(g.Button,"inheritContainedHoverBg",P("palette-grey-A100")),w(g.Chip,"defaultBorder",P("palette-grey-400")),w(g.Chip,"defaultAvatarColor",P("palette-grey-700")),w(g.Chip,"defaultIconColor",P("palette-grey-700")),w(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),w(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),w(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),w(g.LinearProgress,"primaryBg",ae(g.primary.main,.62)),w(g.LinearProgress,"secondaryBg",ae(g.secondary.main,.62)),w(g.LinearProgress,"errorBg",ae(g.error.main,.62)),w(g.LinearProgress,"infoBg",ae(g.info.main,.62)),w(g.LinearProgress,"successBg",ae(g.success.main,.62)),w(g.LinearProgress,"warningBg",ae(g.warning.main,.62)),w(g.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),w(g.Slider,"primaryTrack",ae(g.primary.main,.62)),w(g.Slider,"secondaryTrack",ae(g.secondary.main,.62)),w(g.Slider,"errorTrack",ae(g.error.main,.62)),w(g.Slider,"infoTrack",ae(g.info.main,.62)),w(g.Slider,"successTrack",ae(g.success.main,.62)),w(g.Slider,"warningTrack",ae(g.warning.main,.62));const I=Jn(g.background.default,.8);w(g.SnackbarContent,"bg",I),w(g.SnackbarContent,"color",Qe(()=>g.getContrastText(I))),w(g.SpeedDialAction,"fabHoverBg",Jn(g.background.paper,.15)),w(g.StepConnector,"border",P("palette-grey-400")),w(g.StepContent,"border",P("palette-grey-400")),w(g.Switch,"defaultColor",P("palette-common-white")),w(g.Switch,"defaultDisabledColor",P("palette-grey-100")),w(g.Switch,"primaryDisabledColor",ae(g.primary.main,.62)),w(g.Switch,"secondaryDisabledColor",ae(g.secondary.main,.62)),w(g.Switch,"errorDisabledColor",ae(g.error.main,.62)),w(g.Switch,"infoDisabledColor",ae(g.info.main,.62)),w(g.Switch,"successDisabledColor",ae(g.success.main,.62)),w(g.Switch,"warningDisabledColor",ae(g.warning.main,.62)),w(g.TableCell,"border",ae(zn(g.divider,1),.88)),w(g.Tooltip,"bg",zn(g.grey[700],.92))}if(g.mode==="dark"){w(g.Alert,"errorColor",ae(g.error.light,.6)),w(g.Alert,"infoColor",ae(g.info.light,.6)),w(g.Alert,"successColor",ae(g.success.light,.6)),w(g.Alert,"warningColor",ae(g.warning.light,.6)),w(g.Alert,"errorFilledBg",P("palette-error-dark")),w(g.Alert,"infoFilledBg",P("palette-info-dark")),w(g.Alert,"successFilledBg",P("palette-success-dark")),w(g.Alert,"warningFilledBg",P("palette-warning-dark")),w(g.Alert,"errorFilledColor",Qe(()=>g.getContrastText(g.error.dark))),w(g.Alert,"infoFilledColor",Qe(()=>g.getContrastText(g.info.dark))),w(g.Alert,"successFilledColor",Qe(()=>g.getContrastText(g.success.dark))),w(g.Alert,"warningFilledColor",Qe(()=>g.getContrastText(g.warning.dark))),w(g.Alert,"errorStandardBg",se(g.error.light,.9)),w(g.Alert,"infoStandardBg",se(g.info.light,.9)),w(g.Alert,"successStandardBg",se(g.success.light,.9)),w(g.Alert,"warningStandardBg",se(g.warning.light,.9)),w(g.Alert,"errorIconColor",P("palette-error-main")),w(g.Alert,"infoIconColor",P("palette-info-main")),w(g.Alert,"successIconColor",P("palette-success-main")),w(g.Alert,"warningIconColor",P("palette-warning-main")),w(g.AppBar,"defaultBg",P("palette-grey-900")),w(g.AppBar,"darkBg",P("palette-background-paper")),w(g.AppBar,"darkColor",P("palette-text-primary")),w(g.Avatar,"defaultBg",P("palette-grey-600")),w(g.Button,"inheritContainedBg",P("palette-grey-800")),w(g.Button,"inheritContainedHoverBg",P("palette-grey-700")),w(g.Chip,"defaultBorder",P("palette-grey-700")),w(g.Chip,"defaultAvatarColor",P("palette-grey-300")),w(g.Chip,"defaultIconColor",P("palette-grey-300")),w(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),w(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),w(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),w(g.LinearProgress,"primaryBg",se(g.primary.main,.5)),w(g.LinearProgress,"secondaryBg",se(g.secondary.main,.5)),w(g.LinearProgress,"errorBg",se(g.error.main,.5)),w(g.LinearProgress,"infoBg",se(g.info.main,.5)),w(g.LinearProgress,"successBg",se(g.success.main,.5)),w(g.LinearProgress,"warningBg",se(g.warning.main,.5)),w(g.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),w(g.Slider,"primaryTrack",se(g.primary.main,.5)),w(g.Slider,"secondaryTrack",se(g.secondary.main,.5)),w(g.Slider,"errorTrack",se(g.error.main,.5)),w(g.Slider,"infoTrack",se(g.info.main,.5)),w(g.Slider,"successTrack",se(g.success.main,.5)),w(g.Slider,"warningTrack",se(g.warning.main,.5));const I=Jn(g.background.default,.98);w(g.SnackbarContent,"bg",I),w(g.SnackbarContent,"color",Qe(()=>g.getContrastText(I))),w(g.SpeedDialAction,"fabHoverBg",Jn(g.background.paper,.15)),w(g.StepConnector,"border",P("palette-grey-600")),w(g.StepContent,"border",P("palette-grey-600")),w(g.Switch,"defaultColor",P("palette-grey-300")),w(g.Switch,"defaultDisabledColor",P("palette-grey-600")),w(g.Switch,"primaryDisabledColor",se(g.primary.main,.55)),w(g.Switch,"secondaryDisabledColor",se(g.secondary.main,.55)),w(g.Switch,"errorDisabledColor",se(g.error.main,.55)),w(g.Switch,"infoDisabledColor",se(g.info.main,.55)),w(g.Switch,"successDisabledColor",se(g.success.main,.55)),w(g.Switch,"warningDisabledColor",se(g.warning.main,.55)),w(g.TableCell,"border",se(zn(g.divider,1),.68)),w(g.Tooltip,"bg",zn(g.grey[700],.92))}ut(g.background,"default"),ut(g.background,"paper"),ut(g.common,"background"),ut(g.common,"onBackground"),ut(g,"divider"),Object.keys(g).forEach(I=>{const N=g[I];I!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&w(g[I],"mainChannel",En(On(N.main))),N.light&&w(g[I],"lightChannel",En(On(N.light))),N.dark&&w(g[I],"darkChannel",En(On(N.dark))),N.contrastText&&w(g[I],"contrastTextChannel",En(On(N.contrastText))),I==="text"&&(ut(g[I],"primary"),ut(g[I],"secondary")),I==="action"&&(N.active&&ut(g[I],"active"),N.selected&&ut(g[I],"selected")))})}),C=t.reduce((W,g)=>$e(W,g),C);const k={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:df(C)},{vars:$,generateThemeVars:L,generateStyleSheets:B}=ku(C,k);return C.vars=$,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([W,g])=>{C[W]=g}),C.generateThemeVars=L,C.generateStyleSheets=B,C.generateSpacing=function(){return Ns(c.spacing,Cr(this))},C.getColorSchemeSelector=Pu(a),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...Dn,...c==null?void 0:c.unstable_sxConfig},C.unstable_sx=function(g){return cn({sx:g,theme:this})},C.toRuntimeSource=qs,C}function Ti(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Io({...n===!0?{}:n.palette,mode:t})})}function Zs(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=e,a=i||"light",l=o==null?void 0:o[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return mo(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=mo({...e,palette:u},...t);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},Ti(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Ti(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),mf({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const yf=Zs(),bf="$$material";function No(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xf=e=>No(e)&&e!=="classes",pt=Us({themeId:bf,defaultTheme:yf,rootShouldForwardProp:xf});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function Mo(e){return Tu(e)}const an=Mu({createStyledComponent:pt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Mo({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(an.propTypes={children:h.node,component:h.elementType,direction:h.oneOfType([h.oneOf(["column-reverse","column","row-reverse","row"]),h.arrayOf(h.oneOf(["column-reverse","column","row-reverse","row"])),h.object]),divider:h.node,spacing:h.oneOfType([h.arrayOf(h.oneOfType([h.number,h.string])),h.number,h.object,h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),useFlexGap:h.bool});const J=e=>typeof e=="string",wn=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},Ei=e=>e==null?"":""+e,vf=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Sf=/###/g,Oi=e=>e&&e.indexOf("###")>-1?e.replace(Sf,"."):e,Ri=e=>!e||J(e),An=(e,t,n)=>{const r=J(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Ri(e))return{};const i=Oi(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return Ri(e)?{}:{obj:e,k:Oi(r[o])}},Ai=(e,t,n)=>{const{obj:r,k:o}=An(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=An(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=An(e,s,Object),a!=null&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},wf=(e,t,n,r)=>{const{obj:o,k:i}=An(e,t,Object);o[i]=o[i]||[],o[i].push(n)},ur=(e,t)=>{const{obj:n,k:r}=An(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Cf=(e,t,n)=>{const r=ur(e,n);return r!==void 0?r:ur(t,n)},Qs=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?J(e[r])||e[r]instanceof String||J(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Qs(e[r],t[r],n):e[r]=t[r]);return e},tn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Tf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Ef=e=>J(e)?e.replace(/[&<>"'\/]/g,t=>Tf[t]):e;class Of{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Rf=[" ",",","?","!",";"],Af=new Of(20),kf=(e,t,n)=>{t=t||"",n=n||"";const r=Rf.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const o=Af.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},yo=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let s,a="";for(let l=i;l<r.length;++l)if(l!==i&&(a+=n),a+=r[l],s=o[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<r.length-1)continue;i+=l-i+1;break}o=s}return o},fr=e=>e==null?void 0:e.replace("_","-"),Pf={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class dr{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Pf,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(J(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new dr(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new dr(this.logger,t)}}var nt=new dr;class $r{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[t,...r])})}}class ki extends $r{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,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 n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){var c,u;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,n],r&&(Array.isArray(r)?a.push(...r):J(r)&&i?a.push(...r.split(i)):a.push(r)));const l=ur(this.data,a);return!l&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),l||!s||!J(r)?l:yo((u=(c=this.data)==null?void 0:c[t])==null?void 0:u[n],r,i)}addResource(t,n,r,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,n];r&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."),o=n,n=a[1]),this.addNamespaces(n),Ai(this.data,a,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(J(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),o=r,r=n,n=a[1]),this.addNamespaces(n);let l=ur(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Qs(l,r,i):l={...l,...r},Ai(this.data,a,l),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var ea={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{var s;t=((s=this.processors[i])==null?void 0:s.process(t,n,r,o))??t}),t}};const Pi={},$i=e=>!J(e)&&typeof e!="boolean"&&typeof e!="number";class pr extends $r{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),vf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return(r==null?void 0:r.res)!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!kf(t,r,o);if(s&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:J(i)?[i]:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:J(i)?[i]:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode"){if(u){const P=n.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${P}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${P}${s}`}return o?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(t,n);let p=d==null?void 0:d.res;const x=(d==null?void 0:d.usedKey)||s,y=(d==null?void 0:d.exactUsedKey)||s,f=["[object Number]","[object Function]","[object RegExp]"],v=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,E=n.count!==void 0&&!J(n.count),A=pr.hasDefaultValue(n),C=E?this.pluralResolver.getSuffix(c,n.count,n):"",k=n.ordinal&&E?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",$=E&&!n.ordinal&&n.count===0,L=$&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${C}`]||n[`defaultValue${k}`]||n.defaultValue;let B=p;T&&!p&&A&&(B=L);const W=$i(B),g=Object.prototype.toString.apply(B);if(T&&B&&W&&f.indexOf(g)<0&&!(J(v)&&Array.isArray(B))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,B,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(d.res=P,d.usedParams=this.getUsedParamsDetails(n),d):P}if(i){const P=Array.isArray(B),I=P?[]:{},N=P?y:x;for(const M in B)if(Object.prototype.hasOwnProperty.call(B,M)){const Q=`${N}${i}${M}`;A&&!p?I[M]=this.translate(Q,{...n,defaultValue:$i(L)?L[M]:void 0,joinArrays:!1,ns:a}):I[M]=this.translate(Q,{...n,joinArrays:!1,ns:a}),I[M]===Q&&(I[M]=B[M])}p=I}}else if(T&&J(v)&&Array.isArray(p))p=p.join(v),p&&(p=this.extendTranslation(p,t,n,r));else{let P=!1,I=!1;!this.isValidLookup(p)&&A&&(P=!0,p=L),this.isValidLookup(p)||(I=!0,p=s);const M=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:p,Q=A&&L!==p&&this.options.updateMissing;if(I||P||Q){if(this.logger.log(Q?"updateKey":"missingKey",c,l,s,Q?L:p),i){const le=this.resolve(s,{...n,keySeparator:!1});le&&le.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 Y=[];const Oe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Oe&&Oe[0])for(let le=0;le<Oe.length;le++)Y.push(Oe[le]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(n.lng||this.language):Y.push(n.lng||this.language);const ee=(le,Ce,X)=>{var st;const Ne=A&&X!==p?X:M;this.options.missingKeyHandler?this.options.missingKeyHandler(le,l,Ce,Ne,Q,n):(st=this.backendConnector)!=null&&st.saveMissing&&this.backendConnector.saveMissing(le,l,Ce,Ne,Q,n),this.emit("missingKey",le,l,Ce,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?Y.forEach(le=>{const Ce=this.pluralResolver.getSuffixes(le,n);$&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Ce.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ce.push(`${this.options.pluralSeparator}zero`),Ce.forEach(X=>{ee([le],s+X,n[`defaultValue${X}`]||L)})}):ee(Y,s,L))}p=this.extendTranslation(p,t,n,d,r),I&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${s}`),(I||P)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,P?p:void 0))}return o?(d.res=p,d.usedParams=this.getUsedParamsDetails(n),d):p}extendTranslation(t,n,r,o,i){var c,u;var s=this;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const d=J(t)&&(((u=r==null?void 0:r.interpolation)==null?void 0:u.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(d){const y=t.match(this.interpolator.nestingRegexp);p=y&&y.length}let x=r.replace&&!J(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(x={...this.options.interpolation.defaultVariables,...x}),t=this.interpolator.interpolate(t,x,r.lng||this.language||o.usedLng,r),d){const y=t.match(this.interpolator.nestingRegexp),f=y&&y.length;p<f&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var y=arguments.length,f=new Array(y),v=0;v<y;v++)f[v]=arguments[v];return(i==null?void 0:i[0])===f[0]&&!r.context?(s.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):s.translate(...f,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=J(a)?[a]:a;return t!=null&&(l!=null&&l.length)&&r.applyPostProcessor!==!1&&(t=ea.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,s,a;return J(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),u=c.key;o=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const p=n.count!==void 0&&!J(n.count),x=p&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(J(n.context)||typeof n.context=="number")&&n.context!=="",f=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(v=>{var T,E;this.isValidLookup(r)||(a=v,!Pi[`${f[0]}-${v}`]&&((T=this.utils)!=null&&T.hasLoadedNamespace)&&!((E=this.utils)!=null&&E.hasLoadedNamespace(a))&&(Pi[`${f[0]}-${v}`]=!0,this.logger.warn(`key "${o}" for languages "${f.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!!!")),f.forEach(A=>{var $;if(this.isValidLookup(r))return;s=A;const C=[u];if(($=this.i18nFormat)!=null&&$.addLookupKeys)this.i18nFormat.addLookupKeys(C,u,A,v,n);else{let L;p&&(L=this.pluralResolver.getSuffix(A,n.count,n));const B=`${this.options.pluralSeparator}zero`,W=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(C.push(u+L),n.ordinal&&L.indexOf(W)===0&&C.push(u+L.replace(W,this.options.pluralSeparator)),x&&C.push(u+B)),y){const g=`${u}${this.options.contextSeparator}${n.context}`;C.push(g),p&&(C.push(g+L),n.ordinal&&L.indexOf(W)===0&&C.push(g+L.replace(W,this.options.pluralSeparator)),x&&C.push(g+B))}}let k;for(;k=C.pop();)this.isValidLookup(r)||(i=k,r=this.getResource(A,v,k,n))}))})}),{res:r,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,n,r){var i;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!J(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class ji{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nt.create("languageUtils")}getScriptPartFromCode(t){if(t=fr(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=fr(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(J(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}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 n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=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})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),J(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||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 J(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))):J(t)&&i(this.formatLanguageCode(t)),r.forEach(s=>{o.indexOf(s)<0&&i(this.formatLanguageCode(s))}),o}}const _i={zero:0,one:1,two:2,few:3,many:4,other:5},Li={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class $f{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=nt.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=fr(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Li;if(!t.match(/-|_/))return Li;const l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,n)}return this.pluralRulesCache[i]=s,s}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,i)=>_i[o]-_i[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const Ii=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Cf(e,t,n);return!i&&o&&J(n)&&(i=yo(e,n,r),i===void 0&&(i=yo(t,n,r))),i},eo=e=>e.replace(/\$/g,"$$$$");class jf{constructor(){var n;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.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:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:p,nestingPrefixEscaped:x,nestingSuffix:y,nestingSuffixEscaped:f,nestingOptionsSeparator:v,maxReplaces:T,alwaysFormat:E}=t.interpolation;this.escape=n!==void 0?n:Ef,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?tn(i):s||"{{",this.suffix=a?tn(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?tn(p):x||tn("$t("),this.nestingSuffix=y?tn(y):f||tn(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=T||1e3,this.alwaysFormat=E!==void 0?E:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"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,n,r,o){var x;let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=y=>{if(y.indexOf(this.formatSeparator)<0){const E=Ii(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...o,...n,interpolationkey:y}):E}const f=y.split(this.formatSeparator),v=f.shift().trim(),T=f.join(this.formatSeparator).trim();return this.format(Ii(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),T,r,{...o,...n,interpolationkey:v})};this.resetRegExp();const u=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((x=o==null?void 0:o.interpolation)==null?void 0:x.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>eo(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?eo(this.escape(y)):eo(y)}].forEach(y=>{for(a=0;i=y.regex.exec(t);){const f=i[1].trim();if(s=c(f),s===void 0)if(typeof u=="function"){const T=u(t,i,o);s=J(T)?T:""}else if(o&&Object.prototype.hasOwnProperty.call(o,f))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${t}`),s="";else!J(s)&&!this.useRawValueToEscape&&(s=Ei(s));const v=y.safeValue(s);if(t=t.replace(i[0],v),d?(y.regex.lastIndex+=s.length,y.regex.lastIndex-=i[0].length):y.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=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 p=`{${d[1]}`;l=d[0],p=this.interpolate(p,s);const x=p.match(/'/g),y=p.match(/"/g);(((x==null?void 0:x.length)??0)%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),c&&(s={...c,...s})}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,f),`${l}${u}${p}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&!J(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=n(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&!J(i))return i;J(i)||(i=Ei(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const _f=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},nn=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let a=t[s];return a||(a=e(fr(r),o),t[s]=a),a(n)}};class Lf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("formatter"),this.options=t,this.formats={number:nn((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return i=>o.format(i)}),currency:nn((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>o.format(i)}),datetime:nn((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return i=>o.format(i)}),relativetime:nn((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return i=>o.format(i,r.range||"day")}),list:nn((n,r)=>{const o=new Intl.ListFormat(n,{...r});return i=>o.format(i)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=nn(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.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)=>{var d;const{formatName:c,formatOptions:u}=_f(l);if(this.formats[c]){let p=a;try{const x=((d=o==null?void 0:o.formatParams)==null?void 0:d[o.interpolationkey])||{},y=x.locale||x.lng||o.locale||o.lng||r;p=this.formats[c](a,y,{...u,...o,...x})}catch(x){this.logger.warn(x)}return p}else this.logger.warn(`there was no format function for ${c}`);return a},t)}}const If=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Nf extends $r{constructor(t,n,r){var i,s;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=nt.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=[],(s=(i=this.backend)==null?void 0:i.init)==null||s.call(i,r,o.backend,o)}queueLoad(t,n,r,o){const i={},s={},a={},l={};return t.forEach(c=>{let u=!0;n.forEach(d=>{const p=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?s[p]===void 0&&(s[p]=!0):(this.state[p]=1,u=!1,s[p]===void 0&&(s[p]=!0),i[p]===void 0&&(i[p]=!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,n,r){const o=t.split("|"),i=o[0],s=o[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(l=>{wf(l.loaded,[i],s),If(l,t),n&&l.errors.push(n),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,n,r){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:n,fcName:r,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.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,i*2,s)},i);return}s(c,u)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(t,n,a)}prepareLoading(t,n){let r=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();J(t)&&(t=this.languageUtils.toResolveHierarchy(t)),J(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,o,i){var l,c,u,d,p;let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((d=(u=this.services)==null?void 0:u.utils)!=null&&d.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if((p=this.backend)!=null&&p.create){const x={...s,isUpdate:i},y=this.backend.create.bind(this.backend);if(y.length<6)try{let f;y.length===5?f=y(t,n,r,o,x):f=y(t,n,r,o),f&&typeof f.then=="function"?f.then(v=>a(null,v)).catch(a):a(null,f)}catch(f){a(f)}else y(t,n,r,o,a,x)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const Ni=()=>({debug:!1,initAsync:!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]),J(e[1])&&(t.defaultValue=e[1]),J(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Mi=e=>{var t,n;return J(e.ns)&&(e.ns=[e.ns]),J(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),J(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Gn=()=>{},Mf=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class _n extends $r{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Mi(t),this.services={},this.logger=nt,this.modules={external:[]},Mf(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(J(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=Ni();this.options={...o,...this.options,...Mi(n)},this.options.interpolation={...o.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?nt.init(i(this.modules.logger),this.options):nt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Lf;const d=new ji(this.options);this.store=new ki(this.options.resources,this.options);const p=this.services;p.logger=nt,p.resourceStore=this.store,p.languageUtils=d,p.pluralResolver=new $f(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(p.formatter=i(u),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new jf(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new Nf(i(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(x){for(var y=arguments.length,f=new Array(y>1?y-1:0),v=1;v<y;v++)f[v-1]=arguments[v];t.emit(x,...f)}),this.modules.languageDetector&&(p.languageDetector=i(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=i(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new pr(this.services,this.options),this.translator.on("*",function(x){for(var y=arguments.length,f=new Array(y>1?y-1:0),v=1;v<y;v++)f[v-1]=arguments[v];t.emit(x,...f)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Gn),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=wn(),c=()=>{const u=(d,p)=>{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(p),r(d,p)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t){var i,s;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn;const o=J(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(d=>{d!=="cimode"&&a.indexOf(d)<0&&a.push(d)})};o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>l(u)),(s=(i=this.options.preload)==null?void 0:i.forEach)==null||s.call(i,c=>l(c)),this.services.backendConnector.load(a,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const o=wn();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Gn),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(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"&&ea.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 n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=wn();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 r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{var u,d;!t&&!l&&this.services.languageDetector&&(l=[]);const c=J(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),(d=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||d.call(u,c)),this.loadResources(c,p=>{s(p,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,n,r){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<c;d++)u[d-2]=arguments[d];l=o.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const p=o.options.keySeparator||".";let x;return l.keyPrefix&&Array.isArray(s)?x=s.map(y=>`${l.keyPrefix}${p}${y}`):x=l.keyPrefix?`${l.keyPrefix}${p}${s}`:s,o.t(x,l)};return J(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){var o;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(o=this.translator)==null?void 0:o.translate(...n)}exists(){var o;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(o=this.translator)==null?void 0:o.exists(...n)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=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 r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(i,t)))}loadNamespaces(t,n){const r=wn();return this.options.ns?(J(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=wn();J(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=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){var o,i;if(t||(t=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!t)return"rtl";const n=["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"],r=((i=this.services)==null?void 0:i.languageUtils)||new ji(Ni());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new _n(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new _n(o);if((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)},r){const a=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},Object.keys(l[c]).reduce((u,d)=>(u[d]={...l[c][d]},u),{})),{});i.store=new ki(a,o),i.services.resourceStore=i.store}return i.translator=new pr(i.services,o),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ae=_n.createInstance();Ae.createInstance=_n.createInstance;Ae.createInstance;Ae.dir;Ae.init;Ae.loadResources;Ae.reloadResources;Ae.use;Ae.changeLanguage;Ae.getFixedT;Ae.t;Ae.exists;Ae.setDefaultNamespace;Ae.hasLoadedNamespace;Ae.loadNamespaces;Ae.loadLanguages;const Df={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Base (Roboter)","Jogging.Orientation.tool":"Tool"},Ff={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}}mm","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Base","Jogging.Orientation.tool":"Tool"},ta=Ae.createInstance();ta.use(El).init({supportedLngs:["en","de"],resources:{en:{translations:Ff},de:{translations:Df}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function Bn(e){return n=>b.jsx(Bf,{children:b.jsx(e,{...n})})}const Bf=({children:e})=>b.jsx(un.I18nextProvider,{i18n:ta,children:e}),Vf=({title:e,titleId:t,...n},r)=>F.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.createElement("g",{id:"JogMinus"},F.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),Uf=H.forwardRef(Vf),zf=({title:e,titleId:t,...n},r)=>F.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.createElement("g",{id:"JogPlus"},F.createElement("g",{id:"Plus"},F.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),F.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),F.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),Jf=H.forwardRef(zf);function jr(e){H.useEffect(e,[])}function na(e){jr(()=>ln.autorun(e))}function ra(e,t,n){jr(()=>ln.reaction(e,t,n))}function fn(e){return jr(()=>{let t;function n(){e(),t=requestAnimationFrame(n)}return t=requestAnimationFrame(n),()=>{cancelAnimationFrame(t)}})}const bo=Bn(Ie.observer(({colors:e,label:t,getDisplayedValue:n,startJogging:r,stopJogging:o,disabled:i,activeJoggingDirection:s,...a})=>{var A,C,k,$,L,B,W;fn(()=>{const g=n(),P=p.current;P&&(P.textContent=g)});const l=j.useTheme(),[c,u]=H.useState(null);H.useEffect(()=>{i&&E()},[i]);const d=s||c,p=H.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const x=d?(A=e.buttonBackgroundColor)==null?void 0:A.pressed:e.borderColor,y={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},f={...y,backgroundColor:(C=e.buttonBackgroundColor)==null?void 0:C.default,":hover":{backgroundColor:(k=e.buttonBackgroundColor)==null?void 0:k.hovered},":active":{backgroundColor:($=e.buttonBackgroundColor)==null?void 0:$.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(L=e.buttonBackgroundColor)==null?void 0:L.disabled,"svg path":{fill:l.palette.action.disabled}}},v={...y,backgroundColor:(B=e.buttonBackgroundColor)==null?void 0:B.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(W=e.buttonBackgroundColor)==null?void 0:W.pressed,"svg path":{fill:l.palette.action.disabled}}};function T(g,P){i||g.button===0&&(u(P),r(P))}function E(){u(null),o()}return b.jsxs(an,{height:"64px",direction:"row",justifyContent:"center",...a,children:[b.jsx(j.IconButton,{disabled:i,disableRipple:!0,onPointerDown:g=>T(g,"-"),onPointerUp:E,onPointerOut:E,size:"large",sx:{...d==="-"?v:f,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${x??"#fff"}`,borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:b.jsx(Uf,{})}),b.jsxs(an,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:[b.jsx(an,{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(j.Typography,{height:"22px",sx:{fontSize:"15px",color:i?l.palette.action.disabled:e.color,fontWeight:700},ref:p,children:n()})]}),b.jsx(j.IconButton,{disableRipple:!0,disabled:i,onPointerDown:g=>T(g,"+"),onPointerUp:E,onPointerOut:E,size:"large",sx:{...d==="+"?v:f,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${x??"#fff"}`,borderBottom:`2px solid ${x??"#fff"}`,borderTop:`2px solid ${x??"#fff"}`},children:b.jsx(Jf,{})})]})})),Bt=Eu;function Gf(e){return Fn("MuiSvgIcon",e)}Ds("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wf=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Pe(t)}`,`fontSize${Pe(n)}`]};return Lo(o,Gf,r)},Hf=pt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Pe(n.color)}`],t[`fontSize${Pe(n.fontSize)}`]]}})(Bt(({theme:e})=>{var t,n,r,o,i,s,a,l,c,u,d,p,x,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:f=>!f.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,f])=>f&&f.main).map(([f])=>{var v,T;return{props:{color:f},style:{color:(T=(v=(e.vars??e).palette)==null?void 0:v[f])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(p=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(y=(x=(e.vars??e).palette)==null?void 0:x.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),gr=F.forwardRef(function(t,n){const r=Mo({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:p="0 0 24 24",...x}=r,y=F.isValidElement(o)&&o.type==="svg",f={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:y},v={};u||(v.viewBox=p);const T=Wf(f);return b.jsxs(Hf,{as:a,className:rt(T.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...x,...y&&o.props,ownerState:f,children:[y?o.props.children:o,d?b.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(gr.propTypes={children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),h.string]),component:h.elementType,fontSize:h.oneOfType([h.oneOf(["inherit","large","medium","small"]),h.string]),htmlColor:h.string,inheritViewBox:h.bool,shapeRendering:h.string,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),titleAccess:h.string,viewBox:h.string});gr.muiName="SvgIcon";function oa(e,t){function n(r,o){return b.jsx(gr,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=gr.muiName,F.memo(F.forwardRef(n))}const Kf=oa(b.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),qf=oa(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Nt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ia=typeof global=="object"&&global&&global.Object===Object&&global,Yf=typeof self=="object"&&self&&self.Object===Object&&self,it=ia||Yf||Function("return this")(),to=function(){return it.Date.now()},Xf=/\s/;function Zf(e){for(var t=e.length;t--&&Xf.test(e.charAt(t)););return t}var Qf=/^\s+/;function ed(e){return e&&e.slice(0,Zf(e)+1).replace(Qf,"")}var Rt=it.Symbol,sa=Object.prototype,td=sa.hasOwnProperty,nd=sa.toString,Cn=Rt?Rt.toStringTag:void 0;function rd(e){var t=td.call(e,Cn),n=e[Cn];try{e[Cn]=void 0;var r=!0}catch{}var o=nd.call(e);return r&&(t?e[Cn]=n:delete e[Cn]),o}var od=Object.prototype,id=od.toString;function sd(e){return id.call(e)}var ad="[object Null]",ld="[object Undefined]",Di=Rt?Rt.toStringTag:void 0;function Vt(e){return e==null?e===void 0?ld:ad:Di&&Di in Object(e)?rd(e):sd(e)}function Mt(e){return e!=null&&typeof e=="object"}var cd="[object Symbol]";function _r(e){return typeof e=="symbol"||Mt(e)&&Vt(e)==cd}var Fi=NaN,ud=/^[-+]0x[0-9a-f]+$/i,fd=/^0b[01]+$/i,dd=/^0o[0-7]+$/i,pd=parseInt;function Bi(e){if(typeof e=="number")return e;if(_r(e))return Fi;if(Nt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Nt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ed(e);var n=fd.test(e);return n||dd.test(e)?pd(e.slice(2),n?2:8):ud.test(e)?Fi:+e}var gd="Expected a function",hd=Math.max,md=Math.min;function yd(e,t,n){var r,o,i,s,a,l,c=0,u=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(gd);t=Bi(t)||0,Nt(n)&&(u=!!n.leading,d="maxWait"in n,i=d?hd(Bi(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function x($){var L=r,B=o;return r=o=void 0,c=$,s=e.apply(B,L),s}function y($){return c=$,a=setTimeout(T,t),u?x($):s}function f($){var L=$-l,B=$-c,W=t-L;return d?md(W,i-B):W}function v($){var L=$-l,B=$-c;return l===void 0||L>=t||L<0||d&&B>=i}function T(){var $=to();if(v($))return E($);a=setTimeout(T,f($))}function E($){return a=void 0,p&&r?x($):(r=o=void 0,s)}function A(){a!==void 0&&clearTimeout(a),c=0,r=l=o=a=void 0}function C(){return a===void 0?s:E(to())}function k(){var $=to(),L=v($);if(r=arguments,o=this,l=$,L){if(a===void 0)return y(l);if(d)return clearTimeout(a),a=setTimeout(T,t),x(l)}return a===void 0&&(a=setTimeout(T,t)),s}return k.cancel=A,k.flush=C,k}var bd="Expected a function";function xd(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(bd);return Nt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),yd(e,t,{leading:r,maxWait:t,trailing:o})}const aa=Bn(Ie.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:n,upperLimitDegs:r,getValueDegs:o,disabled:i,...s})=>{var A,C,k,$,L,B,W;const{t:a}=un.useTranslation(),[l,c]=H.useState(),u=j.useTheme(),d={background:(A=u.palette.backgroundPaperElevation)==null?void 0:A[4],color:(C=u.palette.backgroundPaperElevation)==null?void 0:C[11]},p=Ie.useLocalObservable(()=>({activeJoggingDir:null,startJogging(g){this.activeJoggingDir=g,e(g)},stopJogging(){this.activeJoggingDir=null,t()}})),x=xd(()=>{c(o())},50);fn(x);function y(g){g.button===0&&p.startJogging("-")}function f(g){g.button===0&&p.startJogging("+")}function v(g){p.stopJogging()}function T(g){p.stopJogging()}function E(g,P=1){if(g===void 0||isNaN(g))return"";const I=a("General.degree.variable",{amount:g.toFixed(P)});return g>0&&P===0?`+${I}`:I}return b.jsxs(an,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...s,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(k=u.palette.backgroundPaperElevation)==null?void 0:k[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:($=u.palette.backgroundPaperElevation)==null?void 0:$[11],color:u.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(L=u.palette.backgroundPaperElevation)==null?void 0:L[9]},"&:active":{...d}}},children:[b.jsx(j.IconButton,{onPointerDown:y,onPointerUp:v,onPointerOut:T,disabled:i,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...p.activeJoggingDir==="-"?d:{}},children:b.jsx(Kf,{sx:{pointerEvents:"none"}})}),b.jsxs(an,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(B=u.palette.backgroundPaperElevation)==null?void 0:B[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[b.jsx(j.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:i?u.palette.action.disabled:u.palette.text.primary},children:E(l)}),b.jsx(j.Slider,{disabled:!0,"aria-label":"Joint position",min:n,max:r,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:(W=u.palette.backgroundPaperElevation)==null?void 0:W[5],opacity:1}},marks:n!==void 0&&r!==void 0&&[{value:n,label:E(n,0)},{value:r,label:E(r,0)}]})]}),b.jsx(j.IconButton,{onPointerDown:f,onPointerUp:v,onPointerOut:T,disabled:i,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...p.activeJoggingDir==="+"?d:{}},children:b.jsx(qf,{sx:{pointerEvents:"none"}})})]})}));function la(e,t){return function(){return e.apply(t,arguments)}}const{toString:vd}=Object.prototype,{getPrototypeOf:Do}=Object,Lr=(e=>t=>{const n=vd.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ye=e=>(e=e.toLowerCase(),t=>Lr(t)===e),Ir=e=>t=>typeof t===e,{isArray:dn}=Array,Ln=Ir("undefined");function Sd(e){return e!==null&&!Ln(e)&&e.constructor!==null&&!Ln(e.constructor)&&Fe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ca=Ye("ArrayBuffer");function wd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ca(e.buffer),t}const Cd=Ir("string"),Fe=Ir("function"),ua=Ir("number"),Nr=e=>e!==null&&typeof e=="object",Td=e=>e===!0||e===!1,nr=e=>{if(Lr(e)!=="object")return!1;const t=Do(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ed=Ye("Date"),Od=Ye("File"),Rd=Ye("Blob"),Ad=Ye("FileList"),kd=e=>Nr(e)&&Fe(e.pipe),Pd=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Fe(e.append)&&((t=Lr(e))==="formdata"||t==="object"&&Fe(e.toString)&&e.toString()==="[object FormData]"))},$d=Ye("URLSearchParams"),[jd,_d,Ld,Id]=["ReadableStream","Request","Response","Headers"].map(Ye),Nd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),dn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function fa(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const _t=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,da=e=>!Ln(e)&&e!==_t;function xo(){const{caseless:e}=da(this)&&this||{},t={},n=(r,o)=>{const i=e&&fa(t,o)||o;nr(t[i])&&nr(r)?t[i]=xo(t[i],r):nr(r)?t[i]=xo({},r):dn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Vn(arguments[r],n);return t}const Md=(e,t,n,{allOwnKeys:r}={})=>(Vn(t,(o,i)=>{n&&Fe(o)?e[i]=la(o,n):e[i]=o},{allOwnKeys:r}),e),Dd=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Fd=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Bd=(e,t,n,r)=>{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],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Do(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Vd=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ud=e=>{if(!e)return null;if(dn(e))return e;let t=e.length;if(!ua(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},zd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Do(Uint8Array)),Jd=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Gd=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Wd=Ye("HTMLFormElement"),Hd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Vi=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Kd=Ye("RegExp"),pa=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vn(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},qd=e=>{pa(e,(t,n)=>{if(Fe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Fe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Yd=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return dn(e)?r(e):r(String(e).split(t)),n},Xd=()=>{},Zd=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,no="abcdefghijklmnopqrstuvwxyz",Ui="0123456789",ga={DIGIT:Ui,ALPHA:no,ALPHA_DIGIT:no+no.toUpperCase()+Ui},Qd=(e=16,t=ga.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ep(e){return!!(e&&Fe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tp=e=>{const t=new Array(10),n=(r,o)=>{if(Nr(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=dn(r)?[]:{};return Vn(r,(s,a)=>{const l=n(s,o+1);!Ln(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},np=Ye("AsyncFunction"),rp=e=>e&&(Nr(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),ha=((e,t)=>e?setImmediate:t?((n,r)=>(_t.addEventListener("message",({source:o,data:i})=>{o===_t&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),_t.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Fe(_t.postMessage)),op=typeof queueMicrotask<"u"?queueMicrotask.bind(_t):typeof process<"u"&&process.nextTick||ha,S={isArray:dn,isArrayBuffer:ca,isBuffer:Sd,isFormData:Pd,isArrayBufferView:wd,isString:Cd,isNumber:ua,isBoolean:Td,isObject:Nr,isPlainObject:nr,isReadableStream:jd,isRequest:_d,isResponse:Ld,isHeaders:Id,isUndefined:Ln,isDate:Ed,isFile:Od,isBlob:Rd,isRegExp:Kd,isFunction:Fe,isStream:kd,isURLSearchParams:$d,isTypedArray:zd,isFileList:Ad,forEach:Vn,merge:xo,extend:Md,trim:Nd,stripBOM:Dd,inherits:Fd,toFlatObject:Bd,kindOf:Lr,kindOfTest:Ye,endsWith:Vd,toArray:Ud,forEachEntry:Jd,matchAll:Gd,isHTMLForm:Wd,hasOwnProperty:Vi,hasOwnProp:Vi,reduceDescriptors:pa,freezeMethods:qd,toObjectSet:Yd,toCamelCase:Hd,noop:Xd,toFiniteNumber:Zd,findKey:fa,global:_t,isContextDefined:da,ALPHABET:ga,generateString:Qd,isSpecCompliantForm:ep,toJSONObject:tp,isAsyncFn:np,isThenable:rp,setImmediate:ha,asap:op};function G(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}S.inherits(G,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:S.toJSONObject(this.config),code:this.code,status:this.status}}});const ma=G.prototype,ya={};["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=>{ya[e]={value:e}});Object.defineProperties(G,ya);Object.defineProperty(ma,"isAxiosError",{value:!0});G.from=(e,t,n,r,o,i)=>{const s=Object.create(ma);return S.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),G.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const ip=null;function vo(e){return S.isPlainObject(e)||S.isArray(e)}function ba(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function zi(e,t,n){return e?e.concat(t).map(function(o,i){return o=ba(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function sp(e){return S.isArray(e)&&!e.some(vo)}const ap=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function Mr(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,v){return!S.isUndefined(v[f])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(S.isDate(y))return y.toISOString();if(!l&&S.isBlob(y))throw new G("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(y)||S.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,f,v){let T=y;if(y&&!v&&typeof y=="object"){if(S.endsWith(f,"{}"))f=r?f:f.slice(0,-2),y=JSON.stringify(y);else if(S.isArray(y)&&sp(y)||(S.isFileList(y)||S.endsWith(f,"[]"))&&(T=S.toArray(y)))return f=ba(f),T.forEach(function(A,C){!(S.isUndefined(A)||A===null)&&t.append(s===!0?zi([f],C,i):s===null?f:f+"[]",c(A))}),!1}return vo(y)?!0:(t.append(zi(v,f,i),c(y)),!1)}const d=[],p=Object.assign(ap,{defaultVisitor:u,convertValue:c,isVisitable:vo});function x(y,f){if(!S.isUndefined(y)){if(d.indexOf(y)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(y),S.forEach(y,function(T,E){(!(S.isUndefined(T)||T===null)&&o.call(t,T,S.isString(E)?E.trim():E,f,p))===!0&&x(T,f?f.concat(E):[E])}),d.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Ji(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Fo(e,t){this._pairs=[],e&&Mr(e,this,t)}const xa=Fo.prototype;xa.append=function(t,n){this._pairs.push([t,n])};xa.toString=function(t){const n=t?function(r){return t.call(this,r,Ji)}:Ji;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function va(e,t,n){if(!t)return e;const r=n&&n.encode||lp;S.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=S.isURLSearchParams(t)?t.toString():new Fo(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Gi{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Sa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cp=typeof URLSearchParams<"u"?URLSearchParams:Fo,up=typeof FormData<"u"?FormData:null,fp=typeof Blob<"u"?Blob:null,dp={isBrowser:!0,classes:{URLSearchParams:cp,FormData:up,Blob:fp},protocols:["http","https","file","blob","url","data"]},Bo=typeof window<"u"&&typeof document<"u",So=typeof navigator=="object"&&navigator||void 0,pp=Bo&&(!So||["ReactNative","NativeScript","NS"].indexOf(So.product)<0),gp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hp=Bo&&window.location.href||"http://localhost",mp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bo,hasStandardBrowserEnv:pp,hasStandardBrowserWebWorkerEnv:gp,navigator:So,origin:hp},Symbol.toStringTag,{value:"Module"})),Re={...mp,...dp};function yp(e,t){return Mr(e,new Re.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Re.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function bp(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xp(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function wa(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=n.length;return s=!s&&S.isArray(o)?o.length:s,l?(S.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!S.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&S.isArray(o[s])&&(o[s]=xp(o[s])),!a)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,o)=>{t(bp(r),o,n,0)}),n}return null}function vp(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Un={transitional:Sa,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=S.isObject(t);if(i&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o?JSON.stringify(wa(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return yp(t,this.formSerializer).toString();if((a=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Mr(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),vp(t)):t}],transformResponse:[function(t){const n=this.transitional||Un.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?G.from(a,G.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:Re.classes.FormData,Blob:Re.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Un.headers[e]={}});const Sp=S.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"]),wp=e=>{const t={};let n,r,o;return e&&e.split(`
88
+ `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Sp[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Wi=Symbol("internals");function Tn(e){return e&&String(e).trim().toLowerCase()}function rr(e){return e===!1||e==null?e:S.isArray(e)?e.map(rr):String(e)}function Cp(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Tp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ro(e,t,n,r,o){if(S.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function Ep(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Op(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let Le=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Tn(l);if(!u)throw new Error("header name must be a non-empty string");const d=S.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=rr(a))}const s=(a,l)=>S.forEach(a,(c,u)=>i(c,u,l));if(S.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(S.isString(t)&&(t=t.trim())&&!Tp(t))s(wp(t),n);else if(S.isHeaders(t))for(const[a,l]of t.entries())i(l,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Tn(t),t){const r=S.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Cp(o);if(S.isFunction(n))return n.call(this,o,r);if(S.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Tn(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ro(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Tn(s),s){const a=S.findKey(r,s);a&&(!n||ro(r,r[a],a,n))&&(delete r[a],o=!0)}}return S.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||ro(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return S.forEach(this,(o,i)=>{const s=S.findKey(r,i);if(s){n[s]=rr(o),delete n[i];return}const a=t?Ep(i):String(i).trim();a!==i&&delete n[i],n[a]=rr(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
89
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Wi]=this[Wi]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Tn(s);r[a]||(Op(o,s),r[a]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}};Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Le.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Le);function oo(e,t){const n=this||Un,r=t||n,o=Le.from(r.headers);let i=r.data;return S.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ca(e){return!!(e&&e.__CANCEL__)}function pn(e,t,n){G.call(this,e??"canceled",G.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(pn,G,{__CANCEL__:!0});function Ta(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Rp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ap(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let d=i,p=0;for(;d!==o;)p+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const x=u&&c-u;return x?Math.round(p*1e3/x):void 0}}function kp(e,t){let n=0,r=1e3/t,o,i;const s=(c,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-d)))},()=>o&&s(o)]}const hr=(e,t,n=3)=>{let r=0;const o=Ap(50,250);return kp(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),u=s<=a;r=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)},n)},Hi=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ki=e=>(...t)=>S.asap(()=>e(...t)),Pp=Re.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Re.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Re.origin),Re.navigator&&/(msie|trident)/i.test(Re.navigator.userAgent)):()=>!0,$p=Re.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),S.isString(r)&&s.push("path="+r),S.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 jp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _p(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ea(e,t){return e&&!jp(t)?_p(e,t):t}const qi=e=>e instanceof Le?{...e}:e;function Dt(e,t){t=t||{};const n={};function r(c,u,d,p){return S.isPlainObject(c)&&S.isPlainObject(u)?S.merge.call({caseless:p},c,u):S.isPlainObject(u)?S.merge({},u):S.isArray(u)?u.slice():u}function o(c,u,d,p){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c,d,p)}else return r(c,u,d,p)}function i(c,u){if(!S.isUndefined(u))return r(void 0,u)}function s(c,u){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(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,d)=>o(qi(c),qi(u),d,!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,p=d(e[u],t[u],u);S.isUndefined(p)&&d!==a||(n[u]=p)}),n}const Oa=e=>{const t=Dt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Le.from(s),t.url=va(Ea(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(S.isFormData(n)){if(Re.hasStandardBrowserEnv||Re.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(Re.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&Pp(t.url))){const c=o&&i&&$p.read(i);c&&s.set(o,c)}return t},Lp=typeof XMLHttpRequest<"u",Ip=Lp&&function(e){return new Promise(function(n,r){const o=Oa(e);let i=o.data;const s=Le.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,p,x,y;function f(){x&&x(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function T(){if(!v)return;const A=Le.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:A,config:e,request:v};Ta(function(L){n(L),f()},function(L){r(L),f()},k),v=null}"onloadend"in v?v.onloadend=T:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(T)},v.onabort=function(){v&&(r(new G("Request aborted",G.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new G("Network Error",G.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||Sa;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new G(C,k.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&S.forEach(s.toJSON(),function(C,k){v.setRequestHeader(k,C)}),S.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([p,y]=hr(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([d,x]=hr(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(u=A=>{v&&(r(!A||A.type?new pn(null,e,v):A),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const E=Rp(o.url);if(E&&Re.protocols.indexOf(E)===-1){r(new G("Unsupported protocol "+E+":",G.ERR_BAD_REQUEST,e));return}v.send(i||null)})},Np=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof G?u:new pn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new G(`timeout ${t} of ms exceeded`,G.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}=r;return l.unsubscribe=()=>S.asap(a),l}},Mp=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Dp=async function*(e,t){for await(const n of Fp(e))yield*Mp(n,t)},Fp=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Yi=(e,t,n,r)=>{const o=Dp(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(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(n){let p=i+=d;n(p)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Dr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ra=Dr&&typeof ReadableStream=="function",Bp=Dr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Aa=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Vp=Ra&&Aa(()=>{let e=!1;const t=new Request(Re.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Xi=64*1024,wo=Ra&&Aa(()=>S.isReadableStream(new Response("").body)),mr={stream:wo&&(e=>e.body)};Dr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!mr[t]&&(mr[t]=S.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new G(`Response type '${t}' is not supported`,G.ERR_NOT_SUPPORT,r)})})})(new Response);const Up=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(Re.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await Bp(e)).byteLength},zp=async(e,t)=>{const n=S.toFiniteNumber(e.getContentLength());return n??Up(t)},Jp=Dr&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Oa(e);c=c?(c+"").toLowerCase():"text";let x=Np([o,i&&i.toAbortSignal()],s),y;const f=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let v;try{if(l&&Vp&&n!=="get"&&n!=="head"&&(v=await zp(u,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),$;if(S.isFormData(r)&&($=k.headers.get("content-type"))&&u.setContentType($),k.body){const[L,B]=Hi(v,hr(Ki(l)));r=Yi(k.body,Xi,L,B)}}S.isString(d)||(d=d?"include":"omit");const T="credentials"in Request.prototype;y=new Request(t,{...p,signal:x,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:T?d:void 0});let E=await fetch(y);const A=wo&&(c==="stream"||c==="response");if(wo&&(a||A&&f)){const k={};["status","statusText","headers"].forEach(W=>{k[W]=E[W]});const $=S.toFiniteNumber(E.headers.get("content-length")),[L,B]=a&&Hi($,hr(Ki(a),!0))||[];E=new Response(Yi(E.body,Xi,L,()=>{B&&B(),f&&f()}),k)}c=c||"text";let C=await mr[S.findKey(mr,c)||"text"](E,e);return!A&&f&&f(),await new Promise((k,$)=>{Ta(k,$,{data:C,headers:Le.from(E.headers),status:E.status,statusText:E.statusText,config:e,request:y})})}catch(T){throw f&&f(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new G("Network Error",G.ERR_NETWORK,e,y),{cause:T.cause||T}):G.from(T,T&&T.code,e,y)}}),Co={http:ip,xhr:Ip,fetch:Jp};S.forEach(Co,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zi=e=>`- ${e}`,Gp=e=>S.isFunction(e)||e===null||e===!1,ka={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!Gp(n)&&(r=Co[(s=String(n)).toLowerCase()],r===void 0))throw new G(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
90
+ `+i.map(Zi).join(`
91
+ `):" "+Zi(i[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Co};function io(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pn(null,e)}function Qi(e){return io(e),e.headers=Le.from(e.headers),e.data=oo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ka.getAdapter(e.adapter||Un.adapter)(e).then(function(r){return io(e),r.data=oo.call(e,e.transformResponse,r),r.headers=Le.from(r.headers),r},function(r){return Ca(r)||(io(e),r&&r.response&&(r.response.data=oo.call(e,e.transformResponse,r.response),r.response.headers=Le.from(r.response.headers))),Promise.reject(r)})}const Pa="1.7.9",Fr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Fr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const es={};Fr.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Pa+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new G(o(s," has been removed"+(n?" in "+n:"")),G.ERR_DEPRECATED);return n&&!es[s]&&(es[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};Fr.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Wp(e,t,n){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new G("option "+i+" must be "+l,G.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}}const or={assertOptions:Wp,validators:Fr},et=or.validators;let Lt=class{constructor(t){this.defaults=t,this.interceptors={request:new Gi,response:new Gi}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
92
+ `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Dt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&or.assertOptions(r,{silentJSONParsing:et.transitional(et.boolean),forcedJSONParsing:et.transitional(et.boolean),clarifyTimeoutError:et.transitional(et.boolean)},!1),o!=null&&(S.isFunction(o)?n.paramsSerializer={serialize:o}:or.assertOptions(o,{encode:et.function,serialize:et.function},!0)),or.assertOptions(n,{baseUrl:et.spelling("baseURL"),withXsrfToken:et.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&S.merge(i.common,i[n.method]);i&&S.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=Le.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(l=l&&f.synchronous,a.unshift(f.fulfilled,f.rejected))});const c=[];this.interceptors.response.forEach(function(f){c.push(f.fulfilled,f.rejected)});let u,d=0,p;if(!l){const y=[Qi.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,c),p=y.length,u=Promise.resolve(n);d<p;)u=u.then(y[d++],y[d++]);return u}p=a.length;let x=n;for(d=0;d<p;){const y=a[d++],f=a[d++];try{x=y(x)}catch(v){f.call(this,v);break}}try{u=Qi.call(this,x)}catch(y){return Promise.reject(y)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Dt(this.defaults,t);const n=Ea(t.baseURL,t.url);return va(n,t.params,t.paramsSerializer)}};S.forEach(["delete","get","head","options"],function(t){Lt.prototype[t]=function(n,r){return this.request(Dt(r||{},{method:t,url:n,data:(r||{}).data}))}});S.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(Dt(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Lt.prototype[t]=n(),Lt.prototype[t+"Form"]=n(!0)});let Hp=class $a{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new pn(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new $a(function(o){t=o}),cancel:t}}};function Kp(e){return function(n){return e.apply(null,n)}}function qp(e){return S.isObject(e)&&e.isAxiosError===!0}const To={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(To).forEach(([e,t])=>{To[t]=e});function ja(e){const t=new Lt(e),n=la(Lt.prototype.request,t);return S.extend(n,Lt.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return ja(Dt(e,o))},n}const ve=ja(Un);ve.Axios=Lt;ve.CanceledError=pn;ve.CancelToken=Hp;ve.isCancel=Ca;ve.VERSION=Pa;ve.toFormData=Mr;ve.AxiosError=G;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=Kp;ve.isAxiosError=qp;ve.mergeConfig=Dt;ve.AxiosHeaders=Le;ve.formToJSON=e=>wa(S.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=ka.getAdapter;ve.HttpStatusCode=To;ve.default=ve;const{Axios:wb,AxiosError:ts,CanceledError:Cb,isCancel:Tb,CancelToken:Eb,VERSION:Ob,all:Rb,Cancel:Ab,isAxiosError:kb,spread:Pb,toFormData:$b,AxiosHeaders:jb,HttpStatusCode:_b,formToJSON:Lb,getAdapter:Ib,mergeConfig:Nb}=ve;function Yp(e){try{return JSON.stringify(e)}catch{return}}function Xp(e){var t,n,r,o;return e instanceof ts&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof ts&&e.response?`${(t=e.response)==null?void 0:t.status} ${(n=e.response)==null?void 0:n.statusText} from ${(r=e.response)==null?void 0:r.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${Yp(e)||e}`}const Vo=e=>{const t=e.softTimeout||3e3,[n,r]=H.useState(!1),o=j.useTheme();return H.useEffect(()=>{const i=setTimeout(()=>{r(!0)},t);return()=>clearTimeout(i)}),b.jsx(j.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:o.palette.text.primary},children:e.error?b.jsx(_a,{loadingMessage:e.message,error:e.error}):b.jsxs(b.Fragment,{children:[b.jsx(j.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&b.jsx("div",{children:e.message}),b.jsx(j.Stack,{sx:{visibility:n?"visible":"hidden",marginTop:"1rem",color:o.palette.text.secondary},children:"This is taking longer than expected..."})]})})},_a=e=>{const t=Xp(e.error),n=e.error instanceof Error?e.error.stack:null,r=j.useTheme();return b.jsxs(j.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:r.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${$o.lowerFirst(j.capitalize(e.loadingMessage))} - `:"")+t,b.jsx("br",{}),n&&b.jsx("pre",{children:n})]})},Zp=({title:e,titleId:t,...n},r)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.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"})),Qp=H.forwardRef(Zp),eg=({title:e,titleId:t,...n},r)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.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"})),tg=H.forwardRef(eg),ng=({title:e,titleId:t,...n},r)=>F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.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"})),rg=H.forwardRef(ng),og=({title:e,titleId:t,...n},r)=>F.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,"aria-labelledby":t,...n},e?F.createElement("title",{id:t},e):null,F.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"})),ig=H.forwardRef(og);function sg(){this.__data__=[],this.size=0}function La(e,t){return e===t||e!==e&&t!==t}function Br(e,t){for(var n=e.length;n--;)if(La(e[n][0],t))return n;return-1}var ag=Array.prototype,lg=ag.splice;function cg(e){var t=this.__data__,n=Br(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():lg.call(t,n,1),--this.size,!0}function ug(e){var t=this.__data__,n=Br(t,e);return n<0?void 0:t[n][1]}function fg(e){return Br(this.__data__,e)>-1}function dg(e,t){var n=this.__data__,r=Br(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=sg;gt.prototype.delete=cg;gt.prototype.get=ug;gt.prototype.has=fg;gt.prototype.set=dg;function pg(){this.__data__=new gt,this.size=0}function gg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function hg(e){return this.__data__.get(e)}function mg(e){return this.__data__.has(e)}var yg="[object AsyncFunction]",bg="[object Function]",xg="[object GeneratorFunction]",vg="[object Proxy]";function Ia(e){if(!Nt(e))return!1;var t=Vt(e);return t==bg||t==xg||t==yg||t==vg}var so=it["__core-js_shared__"],ns=function(){var e=/[^.]+$/.exec(so&&so.keys&&so.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Sg(e){return!!ns&&ns in e}var wg=Function.prototype,Cg=wg.toString;function Ut(e){if(e!=null){try{return Cg.call(e)}catch{}try{return e+""}catch{}}return""}var Tg=/[\\^$.*+?()[\]{}|]/g,Eg=/^\[object .+?Constructor\]$/,Og=Function.prototype,Rg=Object.prototype,Ag=Og.toString,kg=Rg.hasOwnProperty,Pg=RegExp("^"+Ag.call(kg).replace(Tg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $g(e){if(!Nt(e)||Sg(e))return!1;var t=Ia(e)?Pg:Eg;return t.test(Ut(e))}function jg(e,t){return e==null?void 0:e[t]}function zt(e,t){var n=jg(e,t);return $g(n)?n:void 0}var In=zt(it,"Map"),Nn=zt(Object,"create");function _g(){this.__data__=Nn?Nn(null):{},this.size=0}function Lg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ig="__lodash_hash_undefined__",Ng=Object.prototype,Mg=Ng.hasOwnProperty;function Dg(e){var t=this.__data__;if(Nn){var n=t[e];return n===Ig?void 0:n}return Mg.call(t,e)?t[e]:void 0}var Fg=Object.prototype,Bg=Fg.hasOwnProperty;function Vg(e){var t=this.__data__;return Nn?t[e]!==void 0:Bg.call(t,e)}var Ug="__lodash_hash_undefined__";function zg(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nn&&t===void 0?Ug:t,this}function Ft(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ft.prototype.clear=_g;Ft.prototype.delete=Lg;Ft.prototype.get=Dg;Ft.prototype.has=Vg;Ft.prototype.set=zg;function Jg(){this.size=0,this.__data__={hash:new Ft,map:new(In||gt),string:new Ft}}function Gg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Vr(e,t){var n=e.__data__;return Gg(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Wg(e){var t=Vr(this,e).delete(e);return this.size-=t?1:0,t}function Hg(e){return Vr(this,e).get(e)}function Kg(e){return Vr(this,e).has(e)}function qg(e,t){var n=Vr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ht(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ht.prototype.clear=Jg;ht.prototype.delete=Wg;ht.prototype.get=Hg;ht.prototype.has=Kg;ht.prototype.set=qg;var Yg=200;function Xg(e,t){var n=this.__data__;if(n instanceof gt){var r=n.__data__;if(!In||r.length<Yg-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ht(r)}return n.set(e,t),this.size=n.size,this}function dt(e){var t=this.__data__=new gt(e);this.size=t.size}dt.prototype.clear=pg;dt.prototype.delete=gg;dt.prototype.get=hg;dt.prototype.has=mg;dt.prototype.set=Xg;var Zg="__lodash_hash_undefined__";function Qg(e){return this.__data__.set(e,Zg),this}function eh(e){return this.__data__.has(e)}function yr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ht;++t<n;)this.add(e[t])}yr.prototype.add=yr.prototype.push=Qg;yr.prototype.has=eh;function th(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function nh(e,t){return e.has(t)}var rh=1,oh=2;function Na(e,t,n,r,o,i){var s=n&rh,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,x=n&oh?new yr:void 0;for(i.set(e,t),i.set(t,e);++d<a;){var y=e[d],f=t[d];if(r)var v=s?r(f,y,d,t,e,i):r(y,f,d,e,t,i);if(v!==void 0){if(v)continue;p=!1;break}if(x){if(!th(t,function(T,E){if(!nh(x,E)&&(y===T||o(y,T,n,r,i)))return x.push(E)})){p=!1;break}}else if(!(y===f||o(y,f,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var rs=it.Uint8Array;function ih(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function sh(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var ah=1,lh=2,ch="[object Boolean]",uh="[object Date]",fh="[object Error]",dh="[object Map]",ph="[object Number]",gh="[object RegExp]",hh="[object Set]",mh="[object String]",yh="[object Symbol]",bh="[object ArrayBuffer]",xh="[object DataView]",os=Rt?Rt.prototype:void 0,ao=os?os.valueOf:void 0;function vh(e,t,n,r,o,i,s){switch(n){case xh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case bh:return!(e.byteLength!=t.byteLength||!i(new rs(e),new rs(t)));case ch:case uh:case ph:return La(+e,+t);case fh:return e.name==t.name&&e.message==t.message;case gh:case mh:return e==t+"";case dh:var a=ih;case hh:var l=r&ah;if(a||(a=sh),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=lh,s.set(e,t);var u=Na(a(e),a(t),r,o,i,s);return s.delete(e),u;case yh:if(ao)return ao.call(e)==ao.call(t)}return!1}function Sh(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var ot=Array.isArray;function wh(e,t,n){var r=t(e);return ot(e)?r:Sh(r,n(e))}function Ch(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Th(){return[]}var Eh=Object.prototype,Oh=Eh.propertyIsEnumerable,is=Object.getOwnPropertySymbols,Rh=is?function(e){return e==null?[]:(e=Object(e),Ch(is(e),function(t){return Oh.call(e,t)}))}:Th;function Ah(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var kh="[object Arguments]";function ss(e){return Mt(e)&&Vt(e)==kh}var Ma=Object.prototype,Ph=Ma.hasOwnProperty,$h=Ma.propertyIsEnumerable,Da=ss(function(){return arguments}())?ss:function(e){return Mt(e)&&Ph.call(e,"callee")&&!$h.call(e,"callee")};function jh(){return!1}var Fa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,as=Fa&&typeof module=="object"&&module&&!module.nodeType&&module,_h=as&&as.exports===Fa,ls=_h?it.Buffer:void 0,Lh=ls?ls.isBuffer:void 0,Eo=Lh||jh,Ih=9007199254740991,Nh=/^(?:0|[1-9]\d*)$/;function Ba(e,t){var n=typeof e;return t=t??Ih,!!t&&(n=="number"||n!="symbol"&&Nh.test(e))&&e>-1&&e%1==0&&e<t}var Mh=9007199254740991;function Uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Mh}var Dh="[object Arguments]",Fh="[object Array]",Bh="[object Boolean]",Vh="[object Date]",Uh="[object Error]",zh="[object Function]",Jh="[object Map]",Gh="[object Number]",Wh="[object Object]",Hh="[object RegExp]",Kh="[object Set]",qh="[object String]",Yh="[object WeakMap]",Xh="[object ArrayBuffer]",Zh="[object DataView]",Qh="[object Float32Array]",em="[object Float64Array]",tm="[object Int8Array]",nm="[object Int16Array]",rm="[object Int32Array]",om="[object Uint8Array]",im="[object Uint8ClampedArray]",sm="[object Uint16Array]",am="[object Uint32Array]",ce={};ce[Qh]=ce[em]=ce[tm]=ce[nm]=ce[rm]=ce[om]=ce[im]=ce[sm]=ce[am]=!0;ce[Dh]=ce[Fh]=ce[Xh]=ce[Bh]=ce[Zh]=ce[Vh]=ce[Uh]=ce[zh]=ce[Jh]=ce[Gh]=ce[Wh]=ce[Hh]=ce[Kh]=ce[qh]=ce[Yh]=!1;function lm(e){return Mt(e)&&Uo(e.length)&&!!ce[Vt(e)]}function cm(e){return function(t){return e(t)}}var Va=typeof exports=="object"&&exports&&!exports.nodeType&&exports,kn=Va&&typeof module=="object"&&module&&!module.nodeType&&module,um=kn&&kn.exports===Va,lo=um&&ia.process,cs=function(){try{var e=kn&&kn.require&&kn.require("util").types;return e||lo&&lo.binding&&lo.binding("util")}catch{}}(),us=cs&&cs.isTypedArray,Ua=us?cm(us):lm,fm=Object.prototype,dm=fm.hasOwnProperty;function pm(e,t){var n=ot(e),r=!n&&Da(e),o=!n&&!r&&Eo(e),i=!n&&!r&&!o&&Ua(e),s=n||r||o||i,a=s?Ah(e.length,String):[],l=a.length;for(var c in e)dm.call(e,c)&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ba(c,l)))&&a.push(c);return a}var gm=Object.prototype;function hm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||gm;return e===n}function mm(e,t){return function(n){return e(t(n))}}var ym=mm(Object.keys,Object),bm=Object.prototype,xm=bm.hasOwnProperty;function vm(e){if(!hm(e))return ym(e);var t=[];for(var n in Object(e))xm.call(e,n)&&n!="constructor"&&t.push(n);return t}function za(e){return e!=null&&Uo(e.length)&&!Ia(e)}function zo(e){return za(e)?pm(e):vm(e)}function fs(e){return wh(e,zo,Rh)}var Sm=1,wm=Object.prototype,Cm=wm.hasOwnProperty;function Tm(e,t,n,r,o,i){var s=n&Sm,a=fs(e),l=a.length,c=fs(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var p=a[d];if(!(s?p in t:Cm.call(t,p)))return!1}var x=i.get(e),y=i.get(t);if(x&&y)return x==t&&y==e;var f=!0;i.set(e,t),i.set(t,e);for(var v=s;++d<l;){p=a[d];var T=e[p],E=t[p];if(r)var A=s?r(E,T,p,t,e,i):r(T,E,p,e,t,i);if(!(A===void 0?T===E||o(T,E,n,r,i):A)){f=!1;break}v||(v=p=="constructor")}if(f&&!v){var C=e.constructor,k=t.constructor;C!=k&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof k=="function"&&k instanceof k)&&(f=!1)}return i.delete(e),i.delete(t),f}var Oo=zt(it,"DataView"),Ro=zt(it,"Promise"),Ao=zt(it,"Set"),ko=zt(it,"WeakMap"),ds="[object Map]",Em="[object Object]",ps="[object Promise]",gs="[object Set]",hs="[object WeakMap]",ms="[object DataView]",Om=Ut(Oo),Rm=Ut(In),Am=Ut(Ro),km=Ut(Ao),Pm=Ut(ko),wt=Vt;(Oo&&wt(new Oo(new ArrayBuffer(1)))!=ms||In&&wt(new In)!=ds||Ro&&wt(Ro.resolve())!=ps||Ao&&wt(new Ao)!=gs||ko&&wt(new ko)!=hs)&&(wt=function(e){var t=Vt(e),n=t==Em?e.constructor:void 0,r=n?Ut(n):"";if(r)switch(r){case Om:return ms;case Rm:return ds;case Am:return ps;case km:return gs;case Pm:return hs}return t});var $m=1,ys="[object Arguments]",bs="[object Array]",Wn="[object Object]",jm=Object.prototype,xs=jm.hasOwnProperty;function _m(e,t,n,r,o,i){var s=ot(e),a=ot(t),l=s?bs:wt(e),c=a?bs:wt(t);l=l==ys?Wn:l,c=c==ys?Wn:c;var u=l==Wn,d=c==Wn,p=l==c;if(p&&Eo(e)){if(!Eo(t))return!1;s=!0,u=!1}if(p&&!u)return i||(i=new dt),s||Ua(e)?Na(e,t,n,r,o,i):vh(e,t,l,n,r,o,i);if(!(n&$m)){var x=u&&xs.call(e,"__wrapped__"),y=d&&xs.call(t,"__wrapped__");if(x||y){var f=x?e.value():e,v=y?t.value():t;return i||(i=new dt),o(f,v,n,r,i)}}return p?(i||(i=new dt),Tm(e,t,n,r,o,i)):!1}function Ur(e,t,n,r,o){return e===t?!0:e==null||t==null||!Mt(e)&&!Mt(t)?e!==e&&t!==t:_m(e,t,n,r,Ur,o)}function Lm(e,t){return Ur(e,t)}const Ja=({store:e})=>{const{t}=un.useTranslation(),[n,r]=H.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),o=H.useRef(n);fn(()=>{const s=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;Lm(o.current,s)||(o.current=s,r(s))});const i=[];for(const[s,a]of n.entries())a&&i.push(s);return b.jsx(j.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",minHeight:"1.5rem",visibility:i.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:i.map(s=>s+1).join(", ")})})},Im=j.styled(j.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 Hn({labelValue:e,...t}){return b.jsxs(Im,{fullWidth:!0,variant:"filled",children:[b.jsx(j.InputLabel,{id:t.labelId,children:e}),b.jsx(j.Select,{...t})]})}var vs=function(){try{var e=zt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Nm(e,t,n){t=="__proto__"&&vs?vs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Mm(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function Dm(e){return function(t,n,r){for(var o=-1,i=Object(t),s=r(t),a=s.length;a--;){var l=s[++o];if(n(i[l],l,i)===!1)break}return t}}var Fm=Dm();function Bm(e,t){return e&&Fm(e,t,zo)}function Vm(e,t){return function(n,r){if(n==null)return n;if(!za(n))return e(n,r);for(var o=n.length,i=-1,s=Object(n);++i<o&&r(s[i],i,s)!==!1;);return n}}var Um=Vm(Bm);function zm(e,t,n,r){return Um(e,function(o,i,s){t(r,o,n(o),s)}),r}var Jm=1,Gm=2;function Wm(e,t,n,r){var o=n.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var a=s[0],l=e[a],c=s[1];if(s[2]){if(l===void 0&&!(a in e))return!1}else{var u=new dt,d;if(!(d===void 0?Ur(c,l,Jm|Gm,r,u):d))return!1}}return!0}function Ga(e){return e===e&&!Nt(e)}function Hm(e){for(var t=zo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ga(o)]}return t}function Wa(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Km(e){var t=Hm(e);return t.length==1&&t[0][2]?Wa(t[0][0],t[0][1]):function(n){return n===e||Wm(n,e,t)}}var qm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ym=/^\w*$/;function Jo(e,t){if(ot(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||_r(e)?!0:Ym.test(e)||!qm.test(e)||t!=null&&e in Object(t)}var Xm="Expected a function";function Go(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Xm);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Go.Cache||ht),n}Go.Cache=ht;var Zm=500;function Qm(e){var t=Go(e,function(r){return n.size===Zm&&n.clear(),r}),n=t.cache;return t}var ey=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ty=/\\(\\)?/g,ny=Qm(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ey,function(n,r,o,i){t.push(o?i.replace(ty,"$1"):r||n)}),t});function ry(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var Ss=Rt?Rt.prototype:void 0,ws=Ss?Ss.toString:void 0;function Ha(e){if(typeof e=="string")return e;if(ot(e))return ry(e,Ha)+"";if(_r(e))return ws?ws.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ka(e){return e==null?"":Ha(e)}function qa(e,t){return ot(e)?e:Jo(e,t)?[e]:ny(Ka(e))}function zr(e){if(typeof e=="string"||_r(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ya(e,t){t=qa(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[zr(t[n++])];return n&&n==r?e:void 0}function oy(e,t,n){var r=e==null?void 0:Ya(e,t);return r===void 0?n:r}function iy(e,t){return e!=null&&t in Object(e)}function sy(e,t,n){t=qa(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var s=zr(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Uo(o)&&Ba(s,o)&&(ot(e)||Da(e)))}function ay(e,t){return e!=null&&sy(e,t,iy)}var ly=1,cy=2;function uy(e,t){return Jo(e)&&Ga(t)?Wa(zr(e),t):function(n){var r=oy(n,e);return r===void 0&&r===t?ay(n,e):Ur(t,r,ly|cy)}}function fy(e){return e}function dy(e){return function(t){return t==null?void 0:t[e]}}function py(e){return function(t){return Ya(t,e)}}function gy(e){return Jo(e)?dy(zr(e)):py(e)}function hy(e){return typeof e=="function"?e:e==null?fy:typeof e=="object"?ot(e)?uy(e[0],e[1]):Km(e):gy(e)}function my(e,t){return function(n,r){var o=ot(n)?Mm:zm,i={};return o(n,e,hy(r),i)}}var Kn=my(function(e,t,n){Nm(e,n,t)}),yy=0;function by(e){var t=++yy;return Ka(e)+t}const Po=[{id:"0.1",mm:.1,degrees:.05},{id:"1",mm:1,degrees:.5},{id:"5",mm:5,degrees:2.5},{id:"10",mm:10,degrees:5}],xy=[{id:"continuous"},...Po],vy=["coordsys","tool"];class Jr{constructor(t,n,r,o){var i,s;this.jogger=t,this.motionGroupSpec=n,this.coordSystems=r,this.tcps=o,this.selectedTabId="cartesian",this.activationState="inactive",this.activationError=null,this.activationCounter=0,this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJogInProgress=null,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const a of r)if(a.coordinate_system===""){a.coordinate_system="world";break}this.selectedCoordSystemId=((i=r[0])==null?void 0:i.coordinate_system)||"world",this.selectedTcpId=((s=o[0])==null?void 0:s.id)||"",ln.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(ln.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:n}=t,[r,{coordinatesystems:o},{tcps:i}]=await Promise.all([n.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),n.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),n.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Jr(t,r,o||[],i||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return $o.countBy(this.coordSystems,t=>t.name)}async deactivate(){const t=this.jogger.activeWebsocket;this.jogger.setJoggingMode("increment"),t&&await t.closed()}async activate(){if(this.currentTab.id==="cartesian"){const t={tcpId:this.selectedTcpId,coordSystemId:this.activeCoordSystemId};this.activeDiscreteIncrement?this.jogger.setJoggingMode("increment",t):this.jogger.setJoggingMode("cartesian",t)}else this.jogger.setJoggingMode("joint");return this.jogger}loadFromLocalStorage(){const t=Tt.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:"Joints"}]}get incrementOptions(){return xy}get discreteIncrementOptions(){return Po}get incrementOptionsById(){return Kn(this.incrementOptions,t=>t.id)}get tabsById(){return Kn(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 Kn(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 Kn(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:Po.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInDisplayUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInDisplayUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,n){const r=this.tabs[n]||this.tabs[0];this.selectedTabId=r.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}lock(t){this.locks.add(t)}unlock(t){this.locks.delete(t)}async withMotionLock(t){const n=by();this.lock(n);try{return await t()}finally{this.unlock(n)}}}const Sy=Ie.observer(({store:e})=>{var r;const{t}=un.useTranslation();function n(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return b.jsxs(j.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(Hn,{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(j.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(Hn,{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(j.MenuItem,{value:o.id,children:o.id},o.id))}),b.jsx(Hn,{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:vy.map(o=>b.jsx(j.MenuItem,{value:o,children:n(o)},o))}),b.jsxs(Hn,{labelValue:"Increment",labelId:"jogging-increment-select",size:"small",variant:"filled",value:((r=e.activeDiscreteIncrement)==null?void 0:r.id)||"continuous",onChange:o=>{e.setSelectedIncrementId(o.target.value)},disabled:e.isLocked,children:[b.jsx(j.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>b.jsx(j.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})}),wy=j.styled(j.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 Cy(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const Ty=2;function rn(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function Xa(e,t){return e-t}function Cs(e,t){const{index:n}=e.reduce((r,o,i)=>{const s=Math.abs(t-o);return r===null||s<r.distance||s===r.distance?{distance:s,index:i}:r},null)??{};return n}function qn(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function br(e,t,n){return(e-t)*100/(n-t)}function Ey(e,t,n){return(n-t)*e+t}function Oy(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Ry(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Oy(t)))}function Ts({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Xa)}function Yn({sliderRef:e,activeIndex:t,setActive:n}){var o,i,s;const r=er(e.current);(!((o=e.current)!=null&&o.contains(r.activeElement))||Number((i=r==null?void 0:r.activeElement)==null?void 0:i.getAttribute("data-index"))!==t)&&((s=e.current)==null||s.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function Xn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Cy(e,t):!1}const Ay={horizontal:{offset:e=>({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}%`})}},ky=e=>e;let Zn;function Es(){return Zn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Zn=CSS.supports("touch-action","none"):Zn=!0),Zn}function Py(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:p="horizontal",rootRef:x,scale:y=ky,step:f=1,shiftStep:v=10,tabIndex:T,value:E}=e,A=F.useRef(void 0),[C,k]=F.useState(-1),[$,L]=F.useState(-1),[B,W]=F.useState(!1),g=F.useRef(0),P=F.useRef(null),[I,N]=gu({controlled:E,default:n??l,name:"Slider"}),M=u&&((R,_,V)=>{const K=R.nativeEvent||R,te=new K.constructor(K.type,K);Object.defineProperty(te,"target",{writable:!0,value:{value:_,name:c}}),P.current=_,u(te,_,V)}),Q=Array.isArray(I);let Y=Q?I.slice().sort(Xa):[I];Y=Y.map(R=>R==null?l:on(R,l,a));const Oe=s===!0&&f!==null?[...Array(Math.floor((a-l)/f)+1)].map((R,_)=>({value:l+f*_})):s||[],ee=Oe.map(R=>R.value),[le,Ce]=F.useState(-1),X=F.useRef(null),Ne=Ws(x,X),st=R=>_=>{var K;const V=Number(_.currentTarget.getAttribute("data-index"));hi(_.target)&&Ce(V),L(V),(K=R==null?void 0:R.onFocus)==null||K.call(R,_)},gn=R=>_=>{var V;hi(_.target)||Ce(-1),L(-1),(V=R==null?void 0:R.onBlur)==null||V.call(R,_)},Jt=(R,_)=>{const V=Number(R.currentTarget.getAttribute("data-index")),K=Y[V],te=ee.indexOf(K);let U=_;if(Oe&&f==null){const ye=ee[ee.length-1];U>=ye?U=ye:U<=ee[0]?U=ee[0]:U=U<K?ee[te-1]:ee[te+1]}if(U=on(U,l,a),Q){o&&(U=on(U,Y[V-1]||-1/0,Y[V+1]||1/0));const ye=U;U=Ts({values:Y,newValue:U,index:V});let Ee=V;o||(Ee=U.indexOf(ye)),Yn({sliderRef:X,activeIndex:Ee})}N(U),Ce(V),M&&!Xn(U,I)&&M(R,U,V),d&&d(R,P.current??U)},kt=R=>_=>{var V;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(_.key)){_.preventDefault();const K=Number(_.currentTarget.getAttribute("data-index")),te=Y[K];let U=null;if(f!=null){const ye=_.shiftKey?v:f;switch(_.key){case"ArrowUp":U=rn(te,ye,1,l,a);break;case"ArrowRight":U=rn(te,ye,i?-1:1,l,a);break;case"ArrowDown":U=rn(te,ye,-1,l,a);break;case"ArrowLeft":U=rn(te,ye,i?1:-1,l,a);break;case"PageUp":U=rn(te,v,1,l,a);break;case"PageDown":U=rn(te,v,-1,l,a);break;case"Home":U=l;break;case"End":U=a;break}}else if(Oe){const ye=ee[ee.length-1],Ee=ee.indexOf(te),ge=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],je=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];ge.includes(_.key)?Ee===0?U=ee[0]:U=ee[Ee-1]:je.includes(_.key)&&(Ee===ee.length-1?U=ye:U=ee[Ee+1])}U!=null&&Jt(_,U)}(V=R==null?void 0:R.onKeyDown)==null||V.call(R,_)};Js(()=>{var R;r&&X.current.contains(document.activeElement)&&((R=document.activeElement)==null||R.blur())},[r]),r&&C!==-1&&k(-1),r&&le!==-1&&Ce(-1);const mt=R=>_=>{var V;(V=R.onChange)==null||V.call(R,_),Jt(_,_.target.valueAsNumber)},Be=F.useRef(void 0);let We=p;i&&p==="horizontal"&&(We+="-reverse");const Ve=({finger:R,move:_=!1})=>{const{current:V}=X,{width:K,height:te,bottom:U,left:ye}=V.getBoundingClientRect();let Ee;We.startsWith("vertical")?Ee=(U-R.y)/te:Ee=(R.x-ye)/K,We.includes("-reverse")&&(Ee=1-Ee);let ge;if(ge=Ey(Ee,l,a),f)ge=Ry(ge,f,l);else{const Pt=Cs(ee,ge);ge=ee[Pt]}ge=on(ge,l,a);let je=0;if(Q){_?je=Be.current:je=Cs(Y,ge),o&&(ge=on(ge,Y[je-1]||-1/0,Y[je+1]||1/0));const Pt=ge;ge=Ts({values:Y,newValue:ge,index:je}),o&&_||(je=ge.indexOf(Pt),Be.current=je)}return{newValue:ge,activeIndex:je}},at=Xr(R=>{const _=qn(R,A);if(!_)return;if(g.current+=1,R.type==="mousemove"&&R.buttons===0){Me(R);return}const{newValue:V,activeIndex:K}=Ve({finger:_,move:!0});Yn({sliderRef:X,activeIndex:K,setActive:k}),N(V),!B&&g.current>Ty&&W(!0),M&&!Xn(V,I)&&M(R,V,K)}),Me=Xr(R=>{const _=qn(R,A);if(W(!1),!_)return;const{newValue:V}=Ve({finger:_,move:!0});k(-1),R.type==="touchend"&&L(-1),d&&d(R,P.current??V),A.current=void 0,lt()}),Te=Xr(R=>{if(r)return;Es()||R.preventDefault();const _=R.changedTouches[0];_!=null&&(A.current=_.identifier);const V=qn(R,A);if(V!==!1){const{newValue:te,activeIndex:U}=Ve({finger:V});Yn({sliderRef:X,activeIndex:U,setActive:k}),N(te),M&&!Xn(te,I)&&M(R,te,U)}g.current=0;const K=er(X.current);K.addEventListener("touchmove",at,{passive:!0}),K.addEventListener("touchend",Me,{passive:!0})}),lt=F.useCallback(()=>{const R=er(X.current);R.removeEventListener("mousemove",at),R.removeEventListener("mouseup",Me),R.removeEventListener("touchmove",at),R.removeEventListener("touchend",Me)},[Me,at]);F.useEffect(()=>{const{current:R}=X;return R.addEventListener("touchstart",Te,{passive:Es()}),()=>{R.removeEventListener("touchstart",Te),lt()}},[lt,Te]),F.useEffect(()=>{r&&lt()},[r,lt]);const yt=R=>_=>{var te;if((te=R.onMouseDown)==null||te.call(R,_),r||_.defaultPrevented||_.button!==0)return;_.preventDefault();const V=qn(_,A);if(V!==!1){const{newValue:U,activeIndex:ye}=Ve({finger:V});Yn({sliderRef:X,activeIndex:ye,setActive:k}),N(U),M&&!Xn(U,I)&&M(_,U,ye)}g.current=0;const K=er(X.current);K.addEventListener("mousemove",at,{passive:!0}),K.addEventListener("mouseup",Me)},Xe=br(Q?Y[0]:l,l,a),we=br(Y[Y.length-1],l,a)-Xe,bt=(R={})=>{const _=tr(R),V={onMouseDown:yt(_||{})},K={..._,...V};return{...R,ref:Ne,...K}},ct=R=>_=>{var K;(K=R.onMouseOver)==null||K.call(R,_);const V=Number(_.currentTarget.getAttribute("data-index"));L(V)},Gt=R=>_=>{var V;(V=R.onMouseLeave)==null||V.call(R,_),L(-1)},Wt=(R={})=>{const _=tr(R),V={onMouseOver:ct(_||{}),onMouseLeave:Gt(_||{})};return{...R,..._,...V}},xt=R=>({pointerEvents:C!==-1&&C!==R?"none":void 0});let vt;return p==="vertical"&&(vt=i?"vertical-rl":"vertical-lr"),{active:C,axis:We,axisProps:Ay,dragging:B,focusedThumbIndex:le,getHiddenInputProps:(R={})=>{const _=tr(R),V={onChange:mt(_||{}),onFocus:st(_||{}),onBlur:gn(_||{}),onKeyDown:kt(_||{})},K={..._,...V};return{tabIndex:T,"aria-labelledby":t,"aria-orientation":p,"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":e.step??void 0,disabled:r,...R,...K,style:{...hu,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:vt}}},getRootProps:bt,getThumbProps:Wt,marks:Oe,open:$,range:Q,rootRef:Ne,trackLeap:we,trackOffset:Xe,values:Y,getThumbStyle:xt}}function ir(e){return typeof e=="string"}const $y=e=>!e||!ir(e);function jy(e){return typeof e.main=="string"}function _y(e,t=[]){if(!jy(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Wo(e=[]){return([,t])=>t&&_y(t,e)}function Ly(e){return Fn("MuiSlider",e)}const Je=Ds("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"]),Iy=e=>{const{open:t}=e;return{offset:rt(t&&Je.valueLabelOpen),circle:Je.valueLabelCircle,label:Je.valueLabelLabel}};function Za(e){const{children:t,className:n,value:r}=e,o=Iy(e);return t?F.cloneElement(t,{className:rt(t.props.className)},b.jsxs(F.Fragment,{children:[t.props.children,b.jsx("span",{className:rt(o.offset,n),"aria-hidden":!0,children:b.jsx("span",{className:o.circle,children:b.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Za.propTypes={children:h.element.isRequired,className:h.string,value:h.node});function Os(e){return e}const Ny=pt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Pe(n.color)}`],n.size!=="medium"&&t[`size${Pe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Bt(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Je.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Je.dragging}`]:{[`& .${Je.thumb}, & .${Je.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Wo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].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}}]}))),My=pt("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}}]}),Dy=pt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(Bt(({theme:e})=>({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.entries(e.palette).filter(Wo()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:$n(e.palette[t].main,.62),borderColor:$n(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Pn(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Pn(e.palette[t].main,.5)})}}}))]}))),Fy=pt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Pe(n.color)}`],n.size!=="medium"&&t[`thumbSize${Pe(n.size)}`]]}})(Bt(({theme:e})=>({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%)"},[`&.${Je.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.entries(e.palette).filter(Wo()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Je.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ho(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${Je.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ho(e.palette[t].main,.16)}`}}}}))]}))),Qa=pt(Za,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(Bt(({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%"},[`&.${Je.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%"},[`&.${Je.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"}}]})));process.env.NODE_ENV!=="production"&&(Qa.propTypes={children:h.element.isRequired,index:h.number.isRequired,open:h.bool.isRequired,value:h.node});const By=pt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>No(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Bt(({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}}]}))),Vy=pt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>No(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(Bt(({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}}]}))),Uy=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${Pe(a)}`,l&&`size${Pe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Pe(l)}`,a&&`thumbColor${Pe(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Lo(c,Ly,s)},zy=({children:e})=>e,el=F.forwardRef(function(t,n){const r=Mo({props:t,name:"MuiSlider"}),o=Su(),{"aria-label":i,"aria-valuetext":s,"aria-labelledby":a,component:l="span",components:c={},componentsProps:u={},color:d="primary",classes:p,className:x,disableSwap:y=!1,disabled:f=!1,getAriaLabel:v,getAriaValueText:T,marks:E=!1,max:A=100,min:C=0,name:k,onChange:$,onChangeCommitted:L,orientation:B="horizontal",shiftStep:W=10,size:g="medium",step:P=1,scale:I=Os,slotProps:N,slots:M,tabIndex:Q,track:Y="normal",value:Oe,valueLabelDisplay:ee="off",valueLabelFormat:le=Os,...Ce}=r,X={...r,isRtl:o,max:A,min:C,classes:p,disabled:f,disableSwap:y,orientation:B,marks:E,color:d,size:g,step:P,shiftStep:W,scale:I,track:Y,valueLabelDisplay:ee,valueLabelFormat:le},{axisProps:Ne,getRootProps:st,getHiddenInputProps:gn,getThumbProps:Jt,open:kt,active:mt,axis:Be,focusedThumbIndex:We,range:Ve,dragging:at,marks:Me,values:Te,trackOffset:lt,trackLeap:yt,getThumbStyle:Xe}=Py({...X,rootRef:n});X.marked=Me.length>0&&Me.some(ue=>ue.label),X.dragging=at,X.focusedThumbIndex=We;const we=Uy(X),bt=(M==null?void 0:M.root)??c.Root??Ny,ct=(M==null?void 0:M.rail)??c.Rail??My,Gt=(M==null?void 0:M.track)??c.Track??Dy,Wt=(M==null?void 0:M.thumb)??c.Thumb??Fy,xt=(M==null?void 0:M.valueLabel)??c.ValueLabel??Qa,vt=(M==null?void 0:M.mark)??c.Mark??By,Ht=(M==null?void 0:M.markLabel)??c.MarkLabel??Vy,R=(M==null?void 0:M.input)??c.Input??"input",_=(N==null?void 0:N.root)??u.root,V=(N==null?void 0:N.rail)??u.rail,K=(N==null?void 0:N.track)??u.track,te=(N==null?void 0:N.thumb)??u.thumb,U=(N==null?void 0:N.valueLabel)??u.valueLabel,ye=(N==null?void 0:N.mark)??u.mark,Ee=(N==null?void 0:N.markLabel)??u.markLabel,ge=(N==null?void 0:N.input)??u.input,je=St({elementType:bt,getSlotProps:st,externalSlotProps:_,externalForwardedProps:Ce,additionalProps:{...$y(bt)&&{as:l}},ownerState:{...X,..._==null?void 0:_.ownerState},className:[we.root,x]}),Pt=St({elementType:ct,externalSlotProps:V,ownerState:X,className:we.rail}),Gr=St({elementType:Gt,externalSlotProps:K,additionalProps:{style:{...Ne[Be].offset(lt),...Ne[Be].leap(yt)}},ownerState:{...X,...K==null?void 0:K.ownerState},className:we.track}),hn=St({elementType:Wt,getSlotProps:Jt,externalSlotProps:te,ownerState:{...X,...te==null?void 0:te.ownerState},className:we.thumb}),mn=St({elementType:xt,externalSlotProps:U,ownerState:{...X,...U==null?void 0:U.ownerState},className:we.valueLabel}),Kt=St({elementType:vt,externalSlotProps:ye,ownerState:X,className:we.mark}),Ze=St({elementType:Ht,externalSlotProps:Ee,ownerState:X,className:we.markLabel}),yn=St({elementType:R,getSlotProps:gn,externalSlotProps:ge,ownerState:X});return b.jsxs(bt,{...je,children:[b.jsx(ct,{...Pt}),b.jsx(Gt,{...Gr}),Me.filter(ue=>ue.value>=C&&ue.value<=A).map((ue,be)=>{const bn=br(ue.value,C,A),$t=Ne[Be].offset(bn);let He;return Y===!1?He=Te.includes(ue.value):He=Y==="normal"&&(Ve?ue.value>=Te[0]&&ue.value<=Te[Te.length-1]:ue.value<=Te[0])||Y==="inverted"&&(Ve?ue.value<=Te[0]||ue.value>=Te[Te.length-1]:ue.value>=Te[0]),b.jsxs(F.Fragment,{children:[b.jsx(vt,{"data-index":be,...Kt,...!ir(vt)&&{markActive:He},style:{...$t,...Kt.style},className:rt(Kt.className,He&&we.markActive)}),ue.label!=null?b.jsx(Ht,{"aria-hidden":!0,"data-index":be,...Ze,...!ir(Ht)&&{markLabelActive:He},style:{...$t,...Ze.style},className:rt(we.markLabel,Ze.className,He&&we.markLabelActive),children:ue.label}):null]},be)}),Te.map((ue,be)=>{const bn=br(ue,C,A),$t=Ne[Be].offset(bn),He=ee==="off"?zy:xt;return b.jsx(He,{...!ir(He)&&{valueLabelFormat:le,valueLabelDisplay:ee,value:typeof le=="function"?le(I(ue),be):le,index:be,open:kt===be||mt===be||ee==="on",disabled:f},...mn,children:b.jsx(Wt,{"data-index":be,...hn,className:rt(we.thumb,hn.className,mt===be&&we.active,We===be&&we.focusVisible),style:{...$t,...Xe(be),...hn.style},children:b.jsx(R,{"data-index":be,"aria-label":v?v(be):i,"aria-valuenow":I(ue),"aria-labelledby":a,"aria-valuetext":T?T(I(ue),be):s,value:Te[be],...yn})})},be)})]})});process.env.NODE_ENV!=="production"&&(el.propTypes={"aria-label":gi(h.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":h.string,"aria-valuetext":gi(h.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:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","error","info","success","warning"]),h.string]),components:h.shape({Input:h.elementType,Mark:h.elementType,MarkLabel:h.elementType,Rail:h.elementType,Root:h.elementType,Thumb:h.elementType,Track:h.elementType,ValueLabel:h.elementType}),componentsProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.node,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),defaultValue:h.oneOfType([h.arrayOf(h.number),h.number]),disabled:h.bool,disableSwap:h.bool,getAriaLabel:h.func,getAriaValueText:h.func,marks:h.oneOfType([h.arrayOf(h.shape({label:h.node,value:h.number.isRequired})),h.bool]),max:h.number,min:h.number,name:h.string,onChange:h.func,onChangeCommitted:h.func,orientation:h.oneOf(["horizontal","vertical"]),scale:h.func,shiftStep:h.number,size:h.oneOfType([h.oneOf(["small","medium"]),h.string]),slotProps:h.shape({input:h.oneOfType([h.func,h.object]),mark:h.oneOfType([h.func,h.object]),markLabel:h.oneOfType([h.func,h.object]),rail:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object]),thumb:h.oneOfType([h.func,h.object]),track:h.oneOfType([h.func,h.object]),valueLabel:h.oneOfType([h.func,h.shape({children:h.element,className:h.string,open:h.bool,style:h.object,value:h.node,valueLabelDisplay:h.oneOf(["auto","off","on"])})])}),slots:h.shape({input:h.elementType,mark:h.elementType,markLabel:h.elementType,rail:h.elementType,root:h.elementType,thumb:h.elementType,track:h.elementType,valueLabel:h.elementType}),step:h.number,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),tabIndex:h.number,track:h.oneOf(["inverted","normal",!1]),value:h.oneOfType([h.arrayOf(h.number),h.number]),valueLabelDisplay:h.oneOf(["auto","off","on"]),valueLabelFormat:h.oneOfType([h.func,h.string])});var Jy="[object Number]";function Gy(e){return typeof e=="number"||Mt(e)&&Vt(e)==Jy}const tl=Ie.observer(e=>{j.useTheme();function t(n,r){r===e.velocity||!Gy(r)||e.onVelocityChange(r)}return b.jsxs(j.Stack,{direction:"row",gap:2,children:[b.jsx(el,{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(Ho,{value:e.velocity.toString()})]})});function Ho({value:e,sx:t}){var r;const n=j.useTheme();return b.jsx(j.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(r=n.palette.backgroundPaperElevation)==null?void 0:r[8],borderRadius:"10px",minWidth:"111px",...t},children:b.jsx(j.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:n.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const nl=Ie.observer(({store:e})=>{const{t}=un.useTranslation(),n=Ie.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?r=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:r})}`:r=>`ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:r})}`}}));return b.jsx(tl,{velocity:e.velocityInDisplayUnits,min:e.minVelocityInDisplayUnits,max:e.maxVelocityInDisplayUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:r=>b.jsx(Ho,{value:n.valueLabelFormat(r),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),Wy=Ie.observer(({store:e,children:t})=>{var d,p,x,y,f,v,T,E,A;const{t:n}=un.useTranslation(),r=j.useTheme();function o(C,k){(k==="translate"||k==="rotate")&&e.setSelectedCartesianMotionType(k)}ra(()=>[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(C,k){const $=await e.activate(),L=$.motionStream.rapidlyChangingMotionState.tcp_pose,B=$.motionStream.rapidlyChangingMotionState.state.joint_position;L&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:C.axis,direction:C.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:L,currentJoints:B,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:C.axis,direction:C.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:k.mm}:{type:"rotate",distanceRads:Tt.degreesToRadians(k.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function s(C){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return i(C,e.activeDiscreteIncrement);C.motionType==="translate"?await e.jogger.startTCPTranslation({axis:C.axis,direction:C.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:C.axis,direction:C.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function a(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}const l=[{id:"x",colors:(x=(p=(d=r.componentsExt)==null?void 0:d.JoggingCartesian)==null?void 0:p.Axis)==null?void 0:x.X,icon:b.jsx(Qp,{})},{id:"y",colors:(v=(f=(y=r.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:v.Y,icon:b.jsx(tg,{})},{id:"z",colors:(A=(E=(T=r.componentsExt)==null?void 0:T.JoggingCartesian)==null?void 0:E.Axis)==null?void 0:A.Z,icon:b.jsx(rg,{})}];function c(C){return n("General.mm.variable",{amount:C.toFixed(1)})}function u(C){return n("General.degree.variable",{amount:Tt.radiansToDegrees(C).toFixed(1)})}return b.jsxs(j.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsxs(j.Stack,{gap:2,children:[b.jsx(Sy,{store:e}),b.jsx(nl,{store:e}),b.jsx(j.Divider,{})]}),b.jsx(j.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:b.jsxs(j.Stack,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[b.jsxs(wy,{value:e.selectedCartesianMotionType,onChange:o,exclusive:!0,"aria-label":n("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[b.jsx(j.ToggleButton,{value:"translate",children:n("Jogging.Cartesian.Translation.bt")}),b.jsx(j.ToggleButton,{value:"rotate",children:n("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&l.map(C=>{var k;return b.jsx(bo,{colors:C.colors,disabled:e.isLocked,activeJoggingDirection:((k=e.incrementJogInProgress)==null?void 0:k.axis)===C.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[C.icon,b.jsx(j.Typography,{sx:{fontSize:"24px",color:r.palette.text.primary},children:C.id.toUpperCase()})]}),getDisplayedValue:()=>{var $;return c((($=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:$.position[C.id])||0)},startJogging:$=>s({axis:C.id,motionType:"translate",direction:$}),stopJogging:a},C.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(C=>{var k;return b.jsx(bo,{colors:C.colors,disabled:e.isLocked,activeJoggingDirection:((k=e.incrementJogInProgress)==null?void 0:k.axis)===C.id?e.incrementJogInProgress.direction:void 0,label:b.jsxs(b.Fragment,{children:[b.jsx(ig,{}),b.jsx(j.Typography,{sx:{fontSize:"24px",color:r.palette.text.primary},children:C.id.toUpperCase()})]}),getDisplayedValue:()=>{var $,L;return u(((L=($=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:$.orientation)==null?void 0:L[C.id])||0)},startJogging:$=>s({axis:C.id,motionType:"rotate",direction:$}),stopJogging:a},C.id)})]})}),b.jsx(Ja,{store:e}),t&&b.jsx(j.Divider,{}),t]})}),Hy=Ie.observer(({store:e,children:t})=>{async function n(o){await e.activate(),await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function r(){await e.jogger.stop(),await e.deactivate()}return b.jsxs(j.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[b.jsx(nl,{store:e}),b.jsx(j.Divider,{}),b.jsx(j.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:b.jsx(j.Stack,{alignItems:"center",gap:"24px",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?Tt.radiansToDegrees(i.lower_limit):void 0,a=(i==null?void 0:i.upper_limit)!==void 0?Tt.radiansToDegrees(i.upper_limit):void 0;return b.jsx(aa,{disabled:e.isLocked,lowerLimitDegs:s,upperLimitDegs:a,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return c!==void 0?Tt.radiansToDegrees(c):void 0},startJogging:c=>n({joint:o.index,direction:c}),stopJogging:r},`joint-${o.index}`)})})}),b.jsx(Ja,{store:e}),t&&b.jsx(j.Divider,{}),t]})}),Ky=Bn(Ie.observer(e=>{const t=$o.isString(e.nova)?new Tt.NovaClient({instanceUrl:e.nova}):e.nova,n=Ie.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function r(){ln.runInAction(()=>{n.loadingError=null,n.joggingStore=null});try{let o=e.store;if(!o){const i=await t.connectJogger(e.motionGroupId);o=await Jr.loadFor(i)}ln.runInAction(()=>{n.joggingStore=o}),e.onSetup&&e.onSetup(o)}catch(o){n.loadingError=o}}return H.useEffect(()=>(r(),e.store?()=>null:()=>{var o;(o=n.joggingStore)==null||o.dispose()}),[e.store,e.nova,e.motionGroupId]),H.useEffect(()=>{const o=n.joggingStore;o&&(e.locked?o.lock("external"):o.unlock("external"))},[n.joggingStore,e.locked]),b.jsx(j.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:n.joggingStore?b.jsx(qy,{store:n.joggingStore,children:e.children}):b.jsx(Vo,{message:"Loading jogging",error:n.loadingError})})})),qy=Ie.observer(({store:e,children:t})=>{function n(){if(e.currentTab.id==="cartesian")return b.jsx(b.Fragment,{children:b.jsx(Wy,{store:e,children:t})});if(e.currentTab.id==="joint")return b.jsx(b.Fragment,{children:b.jsx(Hy,{store:e,children:t})})}return b.jsxs(j.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[b.jsx(j.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(r=>b.jsx(j.Tab,{label:r.label,id:`jogging-tab-${r.id}`,"aria-controls":`jogging-tab-${r.id}`},r.id))}),b.jsx(j.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:n()})]})}),rl=H.forwardRef(({label:e,value:t},n)=>{var a;const r=j.useTheme(),[o,i]=H.useState(!1);async function s(){if(!n||!("current"in n))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(n.current),c.removeAllRanges(),c.addRange(u)}return!1}return H.useEffect(()=>{if(!o)return;const l=setTimeout(()=>i(!1),3e3);return()=>{l&&clearTimeout(l)}},[o]),b.jsx(j.Tooltip,{open:o,title:"Copied!",children:b.jsx(j.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(a=r.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>s(),children:b.jsx(j.Typography,{ref:n,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:r.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),Yy=Ie.observer(({motionStream:e})=>{const t=H.useRef(null);function n(){const r=e.rapidlyChangingMotionState.tcp_pose;return r?Tt.poseToWandelscriptString(r):""}return fn(()=>{if(!t.current)return;const r=n();t.current.textContent!==r&&(t.current.textContent=r)}),b.jsx(j.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(rl,{value:n(),ref:t})})}),Xy=Ie.observer(({motionStream:e})=>{const t=H.useRef(null);function n(){const{joints:r}=e.rapidlyChangingMotionState.state.joint_position;return`[${r.map(o=>parseFloat(o.toFixed(4))).join(", ")}]`}return fn(()=>{if(!t.current)return;const r=n();t.current.textContent!==r&&(t.current.textContent=r)}),b.jsx(j.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:b.jsx(rl,{value:n(),ref:t})})});function Zy(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Qy({baseUrl:e=Zy(),...t}){return b.jsxs(j.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(j.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),b.jsxs(j.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[b.jsx(j.Typography,{color:"#fff",children:"Found no devices to connect to."}),b.jsx(j.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),b.jsx(j.DialogActions,{children:b.jsxs(j.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[b.jsx(j.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),b.jsx(j.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const eb=Array(6).fill(2*Math.PI),Rs="0.0.0-semantically-released";function Ko(e){let t=Rs;return Rs.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function tb(e){function t(n){return n.children.length===0?[n]:[n,...n.children.flatMap(r=>t(r))]}return t(e).filter(n=>il(n))}function ol(e){return e.name.endsWith("_FLG")}function il(e){return/_J[0-9]+$/.test(e.name)}function nb(e,t){let n;function r(o){if(ol(o)){if(n)throw Error(`Found multiple flange groups in robot model ${t}; first ${n.name} then ${o.name}. Only one _FLG group is allowed.`);n=o}il(o),o.children.map(r)}if(r(e.scene),!n)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function sl({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:n,children:r}){uo.Globals.assign({frameLoop:"always"});const o=H.useRef([]),i=H.useRef([]),{invalidate:s}=Cl.useThree();function a(p){p&&(i.current=tb(p),c(),s())}function l(p){o.current=p,d.start(Object.assign({},o.current))}function c(){const p=i.current.map((x,y)=>u[y].get());if(n)n(i.current,p);else for(const[x,y]of i.current.entries()){const f=t[x],v=f.theta||0,T=f.reverse_rotation_direction?-1:1;y.rotation.y=T*p[x]+v}}na(()=>{const p=e.state.joint_position.joints.filter(x=>x!==void 0);requestAnimationFrame(()=>l(p))});const[u,d]=uo.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),s()},onResolve:()=>{c()}}));return b.jsx("group",{ref:a,children:r})}const As="line",ks="mesh";function rb({rapidlyChangingMotionState:e,dhParameters:t,...n}){const r=new ft.Matrix4;function o(a,l){const c=new ft.Vector3,u=new ft.Quaternion,d=new ft.Vector3;r.decompose(c,u,d);const p=c.clone(),x=new ft.Matrix4().makeRotationY(a.theta+l*(a.reverse_rotation_direction?-1:1)).multiply(new ft.Matrix4().makeTranslation(0,a.d/1e3,0)).multiply(new ft.Matrix4().makeTranslation(a.a/1e3,0,0)).multiply(new ft.Matrix4().makeRotationX(a.alpha));return r.multiply(x),r.decompose(c,u,d),{a:p,b:c}}function i(a,l,c,u){if(!t)return;const d=t[a];if(!d)return;const{a:p,b:x}=o(d,u);l.geometry.setPositions([p.toArray(),x.toArray()].flat()),c.position.set(x.x,x.y,x.z)}function s(a,l){r.identity(),a.forEach((c,u)=>{i(u,c.getObjectByName(As),c.getObjectByName(ks),l[u])})}return b.jsx(b.Fragment,{children:b.jsx(sl,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:s,children:b.jsxs("group",{...n,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(Ke.Line,{name:As,points:[c,u],color:"white",lineWidth:5}),b.jsxs("mesh",{name:ks,position:u,children:[b.jsx("sphereGeometry",{args:[.01,32,32]}),b.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},d)})]})})})}const ob=console.warn;function ib(){return H.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&ob(e)}},[]),b.jsx(b.Fragment,{})}function sb(e){return e.type==="Mesh"}function ab({modelURL:e,flangeRef:t,postModelRender:n,...r}){const{gltf:o}=nb(Ke.useGLTF(e),e.split("/").pop()||e),i=H.useCallback(a=>{a&&n&&n()},[e]);function s(a){return sb(a)?b.jsx("mesh",{name:a.name,geometry:a.geometry,material:a.material,position:a.position,rotation:a.rotation},a.uuid):b.jsx(uo.animated.group,{name:a.name,position:a.position,rotation:a.rotation,ref:ol(a)?t:void 0,children:a.children.map(s)},a.uuid)}return b.jsx("group",{...r,dispose:null,ref:i,children:s(o.scene)})}const lb=(e,t)=>{e.userData.isGhost||(e.traverse(n=>{if(n instanceof Se.Mesh){n.material instanceof Se.Material&&(n.material.colorWrite=!1);const r=n.clone(),o=n.clone();r.material=new Se.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:Se.DoubleSide}),r.userData.isGhost=!0,o.material=new Se.MeshStandardMaterial({color:t,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:Se.DoubleSide}),o.userData.isGhost=!0,n.parent&&(n.parent.add(r),n.parent.add(o))}}),e.userData.isGhost=!0)},cb=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(n=>{var r;n instanceof Se.Mesh&&((r=n.userData)!=null&&r.isGhost?t.push(n):n.material instanceof Se.Material&&(n.material.colorWrite=!0))}),t.forEach(n=>{n.parent&&n.parent.remove(n)}),e.userData.isGhost=!1},al=Bn(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:n,getModel:r=Ko,flangeRef:o,postModelRender:i,transparentColor:s,...a})=>{const[l,c]=H.useState(null),u=H.useCallback(p=>{c(p)},[]);H.useEffect(()=>{l&&(s?lb(l,s):cb(l))},[l,s]);const d=b.jsx(rb,{rapidlyChangingMotionState:e,dhParameters:n,...a});return b.jsxs(Al.ErrorBoundary,{fallback:d,onError:p=>{if(p.message.includes("404: Not Found"))console.error(p);else throw p},children:[b.jsx(H.Suspense,{fallback:d,children:b.jsx("group",{ref:u,children:b.jsx(sl,{rapidlyChangingMotionState:e,dhParameters:n,children:b.jsx(ab,{modelURL:r(t),postModelRender:i,flangeRef:o,...a})})})}),b.jsx(ib,{})]})});function ub({connectedMotionGroup:e,getModel:t=Ko,flangeRef:n,transparentColor:r,...o}){return e.dhParameters?b.jsx(al,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:n,transparentColor:r,...o}):null}const fb=j.styled(j.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,n,r;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:o})=>!o,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:o})=>o,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),db=H.forwardRef((e,t)=>b.jsx(fb,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),pb={$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"},gb=H.lazy(()=>import("@monaco-editor/react"));let co=null;async function hb(){if(!co){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);co={shiki:await e({langs:[pb],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return co}const mb=Bn(e=>{const t=j.useTheme(),[n,r]=H.useState("dark-plus"),o=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(s){var c,u;s.languages.register({id:"wandelscript"}),s.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const{shiki:a,shikiToMonaco:l}=await hb();l(a,s),s.editor.defineTheme(o,((u=(c=t.componentsExt)==null?void 0:c.WandelscriptEditor)==null?void 0:u.monacoTheme)??{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{}}),e.monacoSetup&&e.monacoSetup(s),r(o)}return b.jsx(H.Suspense,{fallback:b.jsx(Vo,{}),children:b.jsx(gb,{value:e.code,onMount:(s,a)=>{i(a)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:n,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function ll(){var t,n,r,o,i,s,a;const e=j.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:(r=(n=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:n.tonal)==null?void 0:r.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"}}}]},MuiDrawer:{styleOverrides:{paper:{border:"none",boxShadow:"4px 0 8px -4px rgba(0, 0, 0, 0.3)"}}},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":j.rgbToHex(((a=e.palette.backgroundPaperElevation)==null?void 0:a[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function yb(){const e=ll();return e.palette.mode="light",e}function bb(e){var r,o,i,s;let t=!0;((r=e.palette)==null?void 0:r.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 n=t?ll():yb();return Zs(n,e)}exports.JoggingCartesianAxisControl=bo;exports.JoggingJointRotationControl=aa;exports.JoggingPanel=Ky;exports.JoggingStore=Jr;exports.LoadingCover=Vo;exports.LoadingErrorMessage=_a;exports.NoMotionGroupModal=Qy;exports.PoseCartesianValues=Yy;exports.PoseJointValues=Xy;exports.PresetEnvironment=$l;exports.Robot=ub;exports.SafetyZonesRenderer=Ll;exports.SelectableFab=db;exports.SupportedRobot=al;exports.TrajectoryRenderer=Il;exports.VelocitySlider=tl;exports.VelocitySliderLabel=Ho;exports.WandelscriptEditor=mb;exports.createNovaMuiTheme=bb;exports.defaultAxisConfig=eb;exports.defaultGetModel=Ko;exports.useAnimationFrame=fn;exports.useAutorun=na;exports.useMounted=jr;exports.useReaction=ra;
93
93
  //# sourceMappingURL=index.cjs.map