@wandelbots/wandelbots-js-react-components 2.13.4 → 2.13.5

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.
Files changed (52) hide show
  1. package/README.md +2 -2
  2. package/dist/auth0-spa-js.production.esm-1QXzndwB.js +950 -0
  3. package/dist/auth0-spa-js.production.esm-1QXzndwB.js.map +1 -0
  4. package/dist/auth0-spa-js.production.esm-BLRAk7Yh.cjs +5 -0
  5. package/dist/auth0-spa-js.production.esm-BLRAk7Yh.cjs.map +1 -0
  6. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +1 -1
  7. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts.map +1 -1
  8. package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts +1 -1
  9. package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -1
  10. package/dist/components/3d-viewport/TrajectoryRenderer.d.ts +1 -1
  11. package/dist/components/3d-viewport/TrajectoryRenderer.d.ts.map +1 -1
  12. package/dist/components/jogging/JoggingPanel.d.ts +1 -1
  13. package/dist/components/jogging/JoggingPanel.d.ts.map +1 -1
  14. package/dist/components/jogging/JoggingStore.d.ts +1 -1
  15. package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
  16. package/dist/components/jogging/PoseCartesianValues.d.ts +1 -1
  17. package/dist/components/jogging/PoseCartesianValues.d.ts.map +1 -1
  18. package/dist/components/jogging/PoseJointValues.d.ts +1 -1
  19. package/dist/components/jogging/PoseJointValues.d.ts.map +1 -1
  20. package/dist/components/robots/Robot.d.ts +2 -2
  21. package/dist/components/robots/Robot.d.ts.map +1 -1
  22. package/dist/components/robots/RobotAnimator.d.ts +1 -1
  23. package/dist/components/robots/RobotAnimator.d.ts.map +1 -1
  24. package/dist/components/robots/SupportedRobot.d.ts +1 -1
  25. package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
  26. package/dist/components/safetyBar/OperationModeIndicator.d.ts +1 -1
  27. package/dist/components/safetyBar/OperationModeIndicator.d.ts.map +1 -1
  28. package/dist/components/safetyBar/SafetyBar.d.ts +1 -1
  29. package/dist/components/safetyBar/SafetyBar.d.ts.map +1 -1
  30. package/dist/components/safetyBar/SafetyStateIndicator.d.ts +1 -1
  31. package/dist/components/safetyBar/SafetyStateIndicator.d.ts.map +1 -1
  32. package/dist/index.cjs +57 -36
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.js +19371 -6631
  35. package/dist/index.js.map +1 -1
  36. package/package.json +8 -3
  37. package/src/components/3d-viewport/CoordinateSystemTransform.tsx +2 -2
  38. package/src/components/3d-viewport/SafetyZonesRenderer.tsx +2 -2
  39. package/src/components/3d-viewport/TrajectoryRenderer.tsx +1 -1
  40. package/src/components/jogging/JoggingCartesianTab.tsx +1 -1
  41. package/src/components/jogging/JoggingJointTab.tsx +1 -1
  42. package/src/components/jogging/JoggingPanel.tsx +1 -1
  43. package/src/components/jogging/JoggingStore.ts +2 -2
  44. package/src/components/jogging/PoseCartesianValues.tsx +2 -2
  45. package/src/components/jogging/PoseJointValues.tsx +1 -1
  46. package/src/components/robots/DHRobot.tsx +1 -1
  47. package/src/components/robots/Robot.tsx +2 -2
  48. package/src/components/robots/RobotAnimator.tsx +1 -1
  49. package/src/components/robots/SupportedRobot.tsx +1 -1
  50. package/src/components/safetyBar/OperationModeIndicator.tsx +1 -1
  51. package/src/components/safetyBar/SafetyBar.tsx +1 -1
  52. package/src/components/safetyBar/SafetyStateIndicator.tsx +1 -1
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var yl=Object.create;var Qo=Object.defineProperty;var bl=Object.getOwnPropertyDescriptor;var Sl=Object.getOwnPropertyNames;var vl=Object.getPrototypeOf,xl=Object.prototype.hasOwnProperty;var wl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sl(t))!xl.call(e,o)&&o!==r&&Qo(e,o,{get:()=>t[o],enumerable:!(n=bl(t,o))||n.enumerable});return e};var Yn=(e,t,r)=>(r=e!=null?yl(vl(e)):{},wl(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react"),qe=require("@react-three/drei"),Tl=require("@react-three/fiber"),pt=require("three"),El=require("three-stdlib"),j=require("@mui/material"),ve=require("mobx-react-lite"),Te=require("react-i18next"),Cl=require("i18next-browser-languagedetector"),cr=require("mobx"),h=require("prop-types"),Ol=require("@emotion/styled"),Rl=require("@emotion/react"),Ot=require("@wandelbots/wandelbots-js"),jo=require("lodash-es"),po=require("@react-spring/three"),Al=require("react-error-boundary");function ja(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const C=ja(z),we=ja(pt);var zr={exports:{}},vr={};/**
1
+ "use strict";var Fd=Object.create;var ls=Object.defineProperty;var Nd=Object.getOwnPropertyDescriptor;var Dd=Object.getOwnPropertyNames;var zd=Object.getPrototypeOf,Gd=Object.prototype.hasOwnProperty;var Hd=(e,t,r)=>t in e?ls(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var qd=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Dd(t))!Gd.call(e,n)&&n!==r&&ls(e,n,{get:()=>t[n],enumerable:!(a=Nd(t,n))||a.enumerable});return e};var cs=(e,t,r)=>(r=e!=null?Fd(zd(e)):{},qd(t||!e||!e.__esModule?ls(r,"default",{value:e,enumerable:!0}):r,e));var ia=(e,t,r)=>Hd(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const te=require("react"),mt=require("@react-three/drei"),Jd=require("@react-three/fiber"),ht=require("three"),Wd=require("three-stdlib"),Q=require("@mui/material"),Le=require("mobx-react-lite"),Be=require("react-i18next"),Qd=require("i18next-browser-languagedetector"),ke=require("mobx"),b=require("prop-types"),Kd=require("@emotion/styled"),Yd=require("@emotion/react"),io=require("lodash-es"),ir=require("@wandelbots/nova-js"),js=require("@react-spring/three"),Xd=require("react-error-boundary");function jl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const G=jl(te),Ie=jl(ht);var za={exports:{}},la={};/**
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 ei;function kl(){if(ei)return vr;ei=1;var e=z,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var u,d={},p=null,S=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(S=l.ref);for(u in l)n.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:p,ref:S,props:d,_owner:o.current}}return vr.Fragment=r,vr.jsx=a,vr.jsxs=a,vr}var xr={};/**
9
+ */var To;function Zd(){if(To)return la;To=1;var e=te,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(i,l,c){var d,u={},p=null,f=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(f=l.ref);for(d in l)a.call(l,d)&&!s.hasOwnProperty(d)&&(u[d]=l[d]);if(i&&i.defaultProps)for(d in l=i.defaultProps,l)u[d]===void 0&&(u[d]=l[d]);return{$$typeof:t,type:i,key:p,ref:f,props:u,_owner:n.current}}return la.Fragment=r,la.jsx=o,la.jsxs=o,la}var ca={};/**
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 ti;function Pl(){return ti||(ti=1,process.env.NODE_ENV!=="production"&&function(){var e=z,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=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"),S=Symbol.for("react.offscreen"),b=Symbol.iterator,f="@@iterator";function v(y){if(y===null||typeof y!="object")return null;var R=b&&y[b]||y[f];return typeof R=="function"?R:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(y){{for(var R=arguments.length,F=new Array(R>1?R-1:0),J=1;J<R;J++)F[J-1]=arguments[J];k("error",y,F)}}function k(y,R,F){{var J=E.ReactDebugCurrentFrame,re=J.getStackAddendum();re!==""&&(R+="%s",F=F.concat([re]));var ie=F.map(function(X){return String(X)});ie.unshift("Warning: "+R),Function.prototype.apply.call(console[y],console,ie)}}var T=!1,P=!1,$=!1,I=!1,B=!1,H;H=Symbol.for("react.module.reference");function g(y){return!!(typeof y=="string"||typeof y=="function"||y===n||y===i||B||y===o||y===c||y===u||I||y===S||T||P||$||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===d||y.$$typeof===a||y.$$typeof===s||y.$$typeof===l||y.$$typeof===H||y.getModuleId!==void 0))}function _(y,R,F){var J=y.displayName;if(J)return J;var re=R.displayName||R.name||"";return re!==""?F+"("+re+")":F}function M(y){return y.displayName||"Context"}function N(y){if(y==null)return null;if(typeof y.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case s:var R=y;return M(R)+".Consumer";case a:var F=y;return M(F._context)+".Provider";case l:return _(y,y.render,"ForwardRef");case d:var J=y.displayName||null;return J!==null?J:N(y.type)||"Memo";case p:{var re=y,ie=re._payload,X=re._init;try{return N(X(ie))}catch{return null}}}return null}var D=Object.assign,Q=0,Y,Ae,ee,le,Ce,Z,Ne;function lt(){}lt.__reactDisabledLog=!0;function hr(){{if(Q===0){Y=console.log,Ae=console.info,ee=console.warn,le=console.error,Ce=console.group,Z=console.groupCollapsed,Ne=console.groupEnd;var y={configurable:!0,enumerable:!0,value:lt,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}Q++}}function Wt(){{if(Q--,Q===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},y,{value:Y}),info:D({},y,{value:Ae}),warn:D({},y,{value:ee}),error:D({},y,{value:le}),group:D({},y,{value:Ce}),groupCollapsed:D({},y,{value:Z}),groupEnd:D({},y,{value:Ne})})}Q<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var jt=E.ReactCurrentDispatcher,bt;function Ve(y,R,F){{if(bt===void 0)try{throw Error()}catch(re){var J=re.stack.trim().match(/\n( *(at )?)/);bt=J&&J[1]||""}return`
18
- `+bt+y}}var He=!1,Ue;{var ct=typeof WeakMap=="function"?WeakMap:Map;Ue=new ct}function De(y,R){if(!y||He)return"";{var F=Ue.get(y);if(F!==void 0)return F}var J;He=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ie;ie=jt.current,jt.current=null,hr();try{if(R){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(Ie){J=Ie}Reflect.construct(y,[],X)}else{try{X.call()}catch(Ie){J=Ie}y.call(X.prototype)}}else{try{throw Error()}catch(Ie){J=Ie}y()}}catch(Ie){if(Ie&&J&&typeof Ie.stack=="string"){for(var q=Ie.stack.split(`
19
- `),je=J.stack.split(`
20
- `),he=q.length-1,Se=je.length-1;he>=1&&Se>=0&&q[he]!==je[Se];)Se--;for(;he>=1&&Se>=0;he--,Se--)if(q[he]!==je[Se]){if(he!==1||Se!==1)do if(he--,Se--,Se<0||q[he]!==je[Se]){var ze=`
21
- `+q[he].replace(" at new "," at ");return y.displayName&&ze.includes("<anonymous>")&&(ze=ze.replace("<anonymous>",y.displayName)),typeof y=="function"&&Ue.set(y,ze),ze}while(he>=1&&Se>=0);break}}}finally{He=!1,jt.current=ie,Wt(),Error.prepareStackTrace=re}var Zt=y?y.displayName||y.name:"",Lt=Zt?Ve(Zt):"";return typeof y=="function"&&Ue.set(y,Lt),Lt}function Oe(y,R,F){return De(y,!1)}function ut(y){var R=y.prototype;return!!(R&&R.isReactComponent)}function St(y,R,F){if(y==null)return"";if(typeof y=="function")return De(y,ut(y));if(typeof y=="string")return Ve(y);switch(y){case c:return Ve("Suspense");case u:return Ve("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case l:return Oe(y.render);case d:return St(y.type,R,F);case p:{var J=y,re=J._payload,ie=J._init;try{return St(ie(re),R,F)}catch{}}}return""}var Xe=Object.prototype.hasOwnProperty,Ee={},vt=E.ReactDebugCurrentFrame;function ft(y){if(y){var R=y._owner,F=St(y.type,y._source,R?R.type:null);vt.setExtraStackFrame(F)}else vt.setExtraStackFrame(null)}function Ht(y,R,F,J,re){{var ie=Function.call.bind(Xe);for(var X in y)if(ie(y,X)){var q=void 0;try{if(typeof y[X]!="function"){var je=Error((J||"React class")+": "+F+" type `"+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[X]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}q=y[X](R,X,J,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){q=he}q&&!(q instanceof Error)&&(ft(re),O("%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).",J||"React class",F,X,typeof q),ft(null)),q instanceof Error&&!(q.message in Ee)&&(Ee[q.message]=!0,ft(re),O("Failed %s type: %s",F,q.message),ft(null))}}}var Kt=Array.isArray;function xt(y){return Kt(y)}function wt(y){{var R=typeof Symbol=="function"&&Symbol.toStringTag,F=R&&y[Symbol.toStringTag]||y.constructor.name||"Object";return F}}function qt(y){try{return A(y),!1}catch{return!0}}function A(y){return""+y}function L(y){if(qt(y))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(y)),A(y)}var V=E.ReactCurrentOwner,K={key:!0,ref:!0,__self:!0,__source:!0},te,U;function ye(y){if(Xe.call(y,"ref")){var R=Object.getOwnPropertyDescriptor(y,"ref").get;if(R&&R.isReactWarning)return!1}return y.ref!==void 0}function Re(y){if(Xe.call(y,"key")){var R=Object.getOwnPropertyDescriptor(y,"key").get;if(R&&R.isReactWarning)return!1}return y.key!==void 0}function ge(y,R){typeof y.ref=="string"&&V.current}function Le(y,R){{var F=function(){te||(te=!0,O("%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))};F.isReactWarning=!0,Object.defineProperty(y,"key",{get:F,configurable:!0})}}function _t(y,R){{var F=function(){U||(U=!0,O("%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))};F.isReactWarning=!0,Object.defineProperty(y,"ref",{get:F,configurable:!0})}}var Kn=function(y,R,F,J,re,ie,X){var q={$$typeof:t,type:y,key:R,ref:F,props:X,_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:J}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function mr(y,R,F,J,re){{var ie,X={},q=null,je=null;F!==void 0&&(L(F),q=""+F),Re(R)&&(L(R.key),q=""+R.key),ye(R)&&(je=R.ref,ge(R,re));for(ie in R)Xe.call(R,ie)&&!K.hasOwnProperty(ie)&&(X[ie]=R[ie]);if(y&&y.defaultProps){var he=y.defaultProps;for(ie in he)X[ie]===void 0&&(X[ie]=he[ie])}if(q||je){var Se=typeof y=="function"?y.displayName||y.name||"Unknown":y;q&&Le(X,Se),je&&_t(X,Se)}return Kn(y,q,je,re,J,V.current,X)}}var yr=E.ReactCurrentOwner,Yt=E.ReactDebugCurrentFrame;function Qe(y){if(y){var R=y._owner,F=St(y.type,y._source,R?R.type:null);Yt.setExtraStackFrame(F)}else Yt.setExtraStackFrame(null)}var br;br=!1;function ue(y){return typeof y=="object"&&y!==null&&y.$$typeof===t}function be(){{if(yr.current){var y=N(yr.current.type);if(y)return`
17
+ */var Eo;function eu(){return Eo||(Eo=1,process.env.NODE_ENV!=="production"&&function(){var e=te,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),y=Symbol.iterator,h="@@iterator";function x(v){if(v===null||typeof v!="object")return null;var H=y&&v[y]||v[h];return typeof H=="function"?H:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(v){{for(var H=arguments.length,Y=new Array(H>1?H-1:0),ae=1;ae<H;ae++)Y[ae-1]=arguments[ae];D("error",v,Y)}}function D(v,H,Y){{var ae=E.ReactDebugCurrentFrame,me=ae.getStackAddendum();me!==""&&(H+="%s",Y=Y.concat([me]));var ye=Y.map(function(ue){return String(ue)});ye.unshift("Warning: "+H),Function.prototype.apply.call(console[v],console,ye)}}var I=!1,F=!1,q=!1,M=!1,L=!1,B;B=Symbol.for("react.module.reference");function g(v){return!!(typeof v=="string"||typeof v=="function"||v===a||v===s||L||v===n||v===c||v===d||M||v===f||I||F||q||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===u||v.$$typeof===o||v.$$typeof===i||v.$$typeof===l||v.$$typeof===B||v.getModuleId!==void 0))}function $(v,H,Y){var ae=v.displayName;if(ae)return ae;var me=H.displayName||H.name||"";return me!==""?Y+"("+me+")":Y}function N(v){return v.displayName||"Context"}function J(v){if(v==null)return null;if(typeof v.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case a:return"Fragment";case r:return"Portal";case s:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case i:var H=v;return N(H)+".Consumer";case o:var Y=v;return N(Y._context)+".Provider";case l:return $(v,v.render,"ForwardRef");case u:var ae=v.displayName||null;return ae!==null?ae:J(v.type)||"Memo";case p:{var me=v,ye=me._payload,ue=me._init;try{return J(ue(ye))}catch{return null}}}return null}var z=Object.assign,re=0,ee,Re,ie,pe,ve,le,qe;function _t(){}_t.__reactDisabledLog=!0;function ra(){{if(re===0){ee=console.log,Re=console.info,ie=console.warn,pe=console.error,ve=console.group,le=console.groupCollapsed,qe=console.groupEnd;var v={configurable:!0,enumerable:!0,value:_t,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}re++}}function Sr(){{if(re--,re===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},v,{value:ee}),info:z({},v,{value:Re}),warn:z({},v,{value:ie}),error:z({},v,{value:pe}),group:z({},v,{value:ve}),groupCollapsed:z({},v,{value:le}),groupEnd:z({},v,{value:qe})})}re<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var er=E.ReactCurrentDispatcher,Bt;function nt(v,H,Y){{if(Bt===void 0)try{throw Error()}catch(me){var ae=me.stack.trim().match(/\n( *(at )?)/);Bt=ae&&ae[1]||""}return`
18
+ `+Bt+v}}var dt=!1,st;{var At=typeof WeakMap=="function"?WeakMap:Map;st=new At}function et(v,H){if(!v||dt)return"";{var Y=st.get(v);if(Y!==void 0)return Y}var ae;dt=!0;var me=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ye;ye=er.current,er.current=null,ra();try{if(H){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(Ye){ae=Ye}Reflect.construct(v,[],ue)}else{try{ue.call()}catch(Ye){ae=Ye}v.call(ue.prototype)}}else{try{throw Error()}catch(Ye){ae=Ye}v()}}catch(Ye){if(Ye&&ae&&typeof Ye.stack=="string"){for(var de=Ye.stack.split(`
19
+ `),Je=ae.stack.split(`
20
+ `),Ee=de.length-1,Ue=Je.length-1;Ee>=1&&Ue>=0&&de[Ee]!==Je[Ue];)Ue--;for(;Ee>=1&&Ue>=0;Ee--,Ue--)if(de[Ee]!==Je[Ue]){if(Ee!==1||Ue!==1)do if(Ee--,Ue--,Ue<0||de[Ee]!==Je[Ue]){var ot=`
21
+ `+de[Ee].replace(" at new "," at ");return v.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",v.displayName)),typeof v=="function"&&st.set(v,ot),ot}while(Ee>=1&&Ue>=0);break}}}finally{dt=!1,er.current=ye,Sr(),Error.prepareStackTrace=me}var Cr=v?v.displayName||v.name:"",ar=Cr?nt(Cr):"";return typeof v=="function"&&st.set(v,ar),ar}function Ne(v,H,Y){return et(v,!1)}function Tt(v){var H=v.prototype;return!!(H&&H.isReactComponent)}function Ft(v,H,Y){if(v==null)return"";if(typeof v=="function")return et(v,Tt(v));if(typeof v=="string")return nt(v);switch(v){case c:return nt("Suspense");case d:return nt("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case l:return Ne(v.render);case u:return Ft(v.type,H,Y);case p:{var ae=v,me=ae._payload,ye=ae._init;try{return Ft(ye(me),H,Y)}catch{}}}return""}var yt=Object.prototype.hasOwnProperty,Fe={},Nt=E.ReactDebugCurrentFrame;function Et(v){if(v){var H=v._owner,Y=Ft(v.type,v._source,H?H.type:null);Nt.setExtraStackFrame(Y)}else Nt.setExtraStackFrame(null)}function vr(v,H,Y,ae,me){{var ye=Function.call.bind(yt);for(var ue in v)if(ye(v,ue)){var de=void 0;try{if(typeof v[ue]!="function"){var Je=Error((ae||"React class")+": "+Y+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Je.name="Invariant Violation",Je}de=v[ue](H,ue,ae,Y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ee){de=Ee}de&&!(de instanceof Error)&&(Et(me),k("%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).",ae||"React class",Y,ue,typeof de),Et(null)),de instanceof Error&&!(de.message in Fe)&&(Fe[de.message]=!0,Et(me),k("Failed %s type: %s",Y,de.message),Et(null))}}}var xr=Array.isArray;function Dt(v){return xr(v)}function zt(v){{var H=typeof Symbol=="function"&&Symbol.toStringTag,Y=H&&v[Symbol.toStringTag]||v.constructor.name||"Object";return Y}}function Or(v){try{return W(v),!1}catch{return!0}}function W(v){return""+v}function K(v){if(Or(v))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zt(v)),W(v)}var X=E.ReactCurrentOwner,ce={key:!0,ref:!0,__self:!0,__source:!0},he,Z;function je(v){if(yt.call(v,"ref")){var H=Object.getOwnPropertyDescriptor(v,"ref").get;if(H&&H.isReactWarning)return!1}return v.ref!==void 0}function De(v){if(yt.call(v,"key")){var H=Object.getOwnPropertyDescriptor(v,"key").get;if(H&&H.isReactWarning)return!1}return v.key!==void 0}function Te(v,H){typeof v.ref=="string"&&X.current}function Ke(v,H){{var Y=function(){he||(he=!0,k("%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)",H))};Y.isReactWarning=!0,Object.defineProperty(v,"key",{get:Y,configurable:!0})}}function tr(v,H){{var Y=function(){Z||(Z=!0,k("%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)",H))};Y.isReactWarning=!0,Object.defineProperty(v,"ref",{get:Y,configurable:!0})}}var os=function(v,H,Y,ae,me,ye,ue){var de={$$typeof:t,type:v,key:H,ref:Y,props:ue,_owner:ye};return de._store={},Object.defineProperty(de._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(de,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ae}),Object.defineProperty(de,"_source",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.freeze&&(Object.freeze(de.props),Object.freeze(de)),de};function aa(v,H,Y,ae,me){{var ye,ue={},de=null,Je=null;Y!==void 0&&(K(Y),de=""+Y),De(H)&&(K(H.key),de=""+H.key),je(H)&&(Je=H.ref,Te(H,me));for(ye in H)yt.call(H,ye)&&!ce.hasOwnProperty(ye)&&(ue[ye]=H[ye]);if(v&&v.defaultProps){var Ee=v.defaultProps;for(ye in Ee)ue[ye]===void 0&&(ue[ye]=Ee[ye])}if(de||Je){var Ue=typeof v=="function"?v.displayName||v.name||"Unknown":v;de&&Ke(ue,Ue),Je&&tr(ue,Ue)}return os(v,de,Je,me,ae,X.current,ue)}}var na=E.ReactCurrentOwner,wr=E.ReactDebugCurrentFrame;function bt(v){if(v){var H=v._owner,Y=Ft(v.type,v._source,H?H.type:null);wr.setExtraStackFrame(Y)}else wr.setExtraStackFrame(null)}var sa;sa=!1;function Pe(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function $e(){{if(na.current){var v=J(na.current.type);if(v)return`
22
22
 
23
- Check the render method of \``+y+"`."}return""}}function Sr(y){return""}var $t={};function Ke(y){{var R=be();if(!R){var F=typeof y=="string"?y:y.displayName||y.name;F&&(R=`
23
+ Check the render method of \``+v+"`."}return""}}function oa(v){return""}var rr={};function ut(v){{var H=$e();if(!H){var Y=typeof v=="string"?v:v.displayName||v.name;Y&&(H=`
24
24
 
25
- Check the top-level render call using <`+F+">.")}return R}}function qo(y,R){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var F=Ke(R);if($t[F])return;$t[F]=!0;var J="";y&&y._owner&&y._owner!==yr.current&&(J=" It was passed a child from "+N(y._owner.type)+"."),Qe(y),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,J),Qe(null)}}function Yo(y,R){{if(typeof y!="object")return;if(xt(y))for(var F=0;F<y.length;F++){var J=y[F];ue(J)&&qo(J,R)}else if(ue(y))y._store&&(y._store.validated=!0);else if(y){var re=v(y);if(typeof re=="function"&&re!==y.entries)for(var ie=re.call(y),X;!(X=ie.next()).done;)ue(X.value)&&qo(X.value,R)}}}function cl(y){{var R=y.type;if(R==null||typeof R=="string")return;var F;if(typeof R=="function")F=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===l||R.$$typeof===d))F=R.propTypes;else return;if(F){var J=N(R);Ht(F,y.props,"prop",J,y)}else if(R.PropTypes!==void 0&&!br){br=!0;var re=N(R);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ul(y){{for(var R=Object.keys(y.props),F=0;F<R.length;F++){var J=R[F];if(J!=="children"&&J!=="key"){Qe(y),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",J),Qe(null);break}}y.ref!==null&&(Qe(y),O("Invalid attribute `ref` supplied to `React.Fragment`."),Qe(null))}}var Zo={};function Xo(y,R,F,J,re,ie){{var X=g(y);if(!X){var q="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).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 je=Sr();je?q+=je:q+=be();var he;y===null?he="null":xt(y)?he="array":y!==void 0&&y.$$typeof===t?(he="<"+(N(y.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):he=typeof y,O("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 Se=mr(y,R,F,re,ie);if(Se==null)return Se;if(X){var ze=R.children;if(ze!==void 0)if(J)if(xt(ze)){for(var Zt=0;Zt<ze.length;Zt++)Yo(ze[Zt],y);Object.freeze&&Object.freeze(ze)}else O("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(ze,y)}if(Xe.call(R,"key")){var Lt=N(y),Ie=Object.keys(R).filter(function(ml){return ml!=="key"}),qn=Ie.length>0?"{key: someKey, "+Ie.join(": ..., ")+": ...}":"{key: someKey}";if(!Zo[Lt+qn]){var hl=Ie.length>0?"{"+Ie.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+Y+">.")}return H}}function Vo(v,H){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var Y=ut(H);if(rr[Y])return;rr[Y]=!0;var ae="";v&&v._owner&&v._owner!==na.current&&(ae=" It was passed a child from "+J(v._owner.type)+"."),bt(v),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Y,ae),bt(null)}}function Ro(v,H){{if(typeof v!="object")return;if(Dt(v))for(var Y=0;Y<v.length;Y++){var ae=v[Y];Pe(ae)&&Vo(ae,H)}else if(Pe(v))v._store&&(v._store.validated=!0);else if(v){var me=x(v);if(typeof me=="function"&&me!==v.entries)for(var ye=me.call(v),ue;!(ue=ye.next()).done;)Pe(ue.value)&&Vo(ue.value,H)}}}function Id(v){{var H=v.type;if(H==null||typeof H=="string")return;var Y;if(typeof H=="function")Y=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===l||H.$$typeof===u))Y=H.propTypes;else return;if(Y){var ae=J(H);vr(Y,v.props,"prop",ae,v)}else if(H.PropTypes!==void 0&&!sa){sa=!0;var me=J(H);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",me||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Md(v){{for(var H=Object.keys(v.props),Y=0;Y<H.length;Y++){var ae=H[Y];if(ae!=="children"&&ae!=="key"){bt(v),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ae),bt(null);break}}v.ref!==null&&(bt(v),k("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}var _o={};function Ao(v,H,Y,ae,me,ye){{var ue=g(v);if(!ue){var de="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(de+=" 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 Je=oa();Je?de+=Je:de+=$e();var Ee;v===null?Ee="null":Dt(v)?Ee="array":v!==void 0&&v.$$typeof===t?(Ee="<"+(J(v.type)||"Unknown")+" />",de=" Did you accidentally export a JSX literal instead of a component?"):Ee=typeof v,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ee,de)}var Ue=aa(v,H,Y,me,ye);if(Ue==null)return Ue;if(ue){var ot=H.children;if(ot!==void 0)if(ae)if(Dt(ot)){for(var Cr=0;Cr<ot.length;Cr++)Ro(ot[Cr],v);Object.freeze&&Object.freeze(ot)}else k("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 Ro(ot,v)}if(yt.call(H,"key")){var ar=J(v),Ye=Object.keys(H).filter(function(Bd){return Bd!=="key"}),is=Ye.length>0?"{key: someKey, "+Ye.join(": ..., ")+": ...}":"{key: someKey}";if(!_o[ar+is]){var kd=Ye.length>0?"{"+Ye.join(": ..., ")+": ...}":"{}";k(`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} />`,qn,Lt,hl,Lt),Zo[Lt+qn]=!0}}return y===n?ul(Se):cl(Se),Se}}function fl(y,R,F){return Xo(y,R,F,!0)}function dl(y,R,F){return Xo(y,R,F,!1)}var pl=dl,gl=fl;xr.Fragment=n,xr.jsx=pl,xr.jsxs=gl}()),xr}var ri;function jl(){return ri||(ri=1,process.env.NODE_ENV==="production"?zr.exports=kl():zr.exports=Pl()),zr.exports}var m=jl();function _l(){return m.jsx(qe.Environment,{children:m.jsx($l,{})})}function $l({positions:e=[2,0,2,0,2,0,2,0]}){return m.jsxs(m.Fragment,{children:[m.jsx(qe.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),m.jsx("group",{rotation:[0,.5,0],children:m.jsx("group",{children:e.map((t,r)=>m.jsx(qe.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),m.jsx(qe.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),m.jsx(qe.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),m.jsx(qe.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),m.jsx(qe.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),m.jsx(qe.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function Ll(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new we.Vector3(e[0].x,e[0].y,e[0].z),r=new we.Vector3(e[1].x,e[1].y,e[1].z),n=new we.Vector3(e[2].x,e[2].y,e[2].z),o=new we.Vector3().subVectors(r,t),i=new we.Vector3().subVectors(n,t),a=new we.Vector3().crossVectors(o,i).normalize();for(let s=3;s<e.length;s++){const l=new we.Vector3(e[s].x,e[s].y,e[s].z),c=new we.Vector3().subVectors(l,t),u=a.dot(c);if(Math.abs(u)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:a}}function Il({safetyZones:e,...t}){return m.jsx("group",{...t,children:e.map((r,n)=>{let o=[];return r.geometry&&(r.geometry.compound?o=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(o=[r.geometry])),o.map((i,a)=>{if(!i.convex_hull)return null;const s=i.convex_hull.vertices.map(u=>new we.Vector3(u.x/1e3,u.y/1e3,u.z/1e3)),l=Ll(s);if(l.isCoplanar&&l.normal){const d=new we.Vector3().addVectors(s[0],l.normal.multiplyScalar(1e-4));s.push(d)}let c;try{c=new El.ConvexGeometry(s)}catch(u){return console.log("Error creating ConvexGeometry:",u),null}return m.jsx("mesh",{geometry:c,children:m.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-a},n)},`${n}-${a}`)})})})}function Ml({trajectory:e,...t}){var n;const r=((n=e.trajectory)==null?void 0:n.map(o=>o.tcp_pose?new we.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 m.jsx("group",{...t,children:r.length>0&&m.jsx(qe.Line,{points:r,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}function Rt(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function Nl(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Dl={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 Fl(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Bl=/[A-Z]|^ms/g,Vl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_a=function(t){return t.charCodeAt(1)===45},ni=function(t){return t!=null&&typeof t!="boolean"},Zn=Fl(function(e){return _a(e)?e:e.replace(Bl,"-$&").toLowerCase()}),oi=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Vl,function(n,o,i){return Ct={name:o,styles:i,next:Ct},o})}return Dl[t]!==1&&!_a(t)&&typeof r=="number"&&r!==0?r+"px":r};function cn(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Ct={name:o.name,styles:o.styles,next:Ct},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Ct={name:a.name,styles:a.styles,next:Ct},a=a.next;var s=i.styles+";";return s}return Ul(e,t,r)}}var l=r;return l}function Ul(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=cn(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;ni(s)&&(n+=Zn(i)+":"+oi(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)ni(a[l])&&(n+=Zn(i)+":"+oi(i,a[l])+";");else{var c=cn(e,t,a);switch(i){case"animation":case"animationName":{n+=Zn(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var ii=/label:\s*([^\s;{]+)\s*(;|$)/g,Ct;function zl(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Ct=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=cn(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=cn(r,t,e[s]),n){var l=i;o+=l[s]}ii.lastIndex=0;for(var c="",u;(u=ii.exec(o))!==null;)c+="-"+u[1];var d=Nl(o)+c;return{name:d,styles:o,next:Ct}}/**
30
+ <%s key={someKey} {...props} />`,is,ar,kd,ar),_o[ar+is]=!0}}return v===a?Md(Ue):Id(Ue),Ue}}function jd(v,H,Y){return Ao(v,H,Y,!0)}function $d(v,H,Y){return Ao(v,H,Y,!1)}var Ud=$d,Ld=jd;ca.Fragment=a,ca.jsx=Ud,ca.jsxs=Ld}()),ca}var Io;function tu(){return Io||(Io=1,process.env.NODE_ENV==="production"?za.exports=Zd():za.exports=eu()),za.exports}var S=tu();function ru(){return S.jsx(mt.Environment,{children:S.jsx(au,{})})}function au({positions:e=[2,0,2,0,2,0,2,0]}){return S.jsxs(S.Fragment,{children:[S.jsx(mt.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),S.jsx("group",{rotation:[0,.5,0],children:S.jsx("group",{children:e.map((t,r)=>S.jsx(mt.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),S.jsx(mt.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),S.jsx(mt.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),S.jsx(mt.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),S.jsx(mt.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),S.jsx(mt.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function nu(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Ie.Vector3(e[0].x,e[0].y,e[0].z),r=new Ie.Vector3(e[1].x,e[1].y,e[1].z),a=new Ie.Vector3(e[2].x,e[2].y,e[2].z),n=new Ie.Vector3().subVectors(r,t),s=new Ie.Vector3().subVectors(a,t),o=new Ie.Vector3().crossVectors(n,s).normalize();for(let i=3;i<e.length;i++){const l=new Ie.Vector3(e[i].x,e[i].y,e[i].z),c=new Ie.Vector3().subVectors(l,t),d=o.dot(c);if(Math.abs(d)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:o}}function su({safetyZones:e,...t}){return S.jsx("group",{...t,children:e.map((r,a)=>{let n=[];return r.geometry&&(r.geometry.compound?n=r.geometry.compound.child_geometries:r.geometry.convex_hull&&(n=[r.geometry])),n.map((s,o)=>{if(!s.convex_hull)return null;const i=s.convex_hull.vertices.map(d=>new Ie.Vector3(d.x/1e3,d.y/1e3,d.z/1e3)),l=nu(i);if(l.isCoplanar&&l.normal){const u=new Ie.Vector3().addVectors(i[0],l.normal.multiplyScalar(1e-4));i.push(u)}let c;try{c=new Wd.ConvexGeometry(i)}catch(d){return console.log("Error creating ConvexGeometry:",d),null}return S.jsx("mesh",{geometry:c,children:S.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-o},a)},`${a}-${o}`)})})})}function ou({trajectory:e,...t}){var a;const r=((a=e.trajectory)==null?void 0:a.map(n=>n.tcp_pose?new Ie.Vector3(n.tcp_pose.position.x/1e3,n.tcp_pose.position.z/1e3,-n.tcp_pose.position.y/1e3):null).filter(n=>n!==null))||[];return S.jsx("group",{...t,children:r.length>0&&S.jsx(mt.Line,{points:r,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}function Kt(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(a=>r.searchParams.append("args[]",a)),`Minified MUI error #${e}; visit ${r} for the full message.`}function iu(e){for(var t=0,r,a=0,n=e.length;n>=4;++a,n-=4)r=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&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 lu={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 cu(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var du=/[A-Z]|^ms/g,uu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$l=function(t){return t.charCodeAt(1)===45},Mo=function(t){return t!=null&&typeof t!="boolean"},ds=cu(function(e){return $l(e)?e:e.replace(du,"-$&").toLowerCase()}),jo=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(uu,function(a,n,s){return Wt={name:n,styles:s,next:Wt},n})}return lu[t]!==1&&!$l(t)&&typeof r=="number"&&r!==0?r+"px":r};function gn(e,t,r){if(r==null)return"";var a=r;if(a.__emotion_styles!==void 0)return a;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Wt={name:n.name,styles:n.styles,next:Wt},n.name;var s=r;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)Wt={name:o.name,styles:o.styles,next:Wt},o=o.next;var i=s.styles+";";return i}return pu(e,t,r)}}var l=r;return l}function pu(e,t,r){var a="";if(Array.isArray(r))for(var n=0;n<r.length;n++)a+=gn(e,t,r[n])+";";else for(var s in r){var o=r[s];if(typeof o!="object"){var i=o;Mo(i)&&(a+=ds(s)+":"+jo(s,i)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var l=0;l<o.length;l++)Mo(o[l])&&(a+=ds(s)+":"+jo(s,o[l])+";");else{var c=gn(e,t,o);switch(s){case"animation":case"animationName":{a+=ds(s)+":"+c+";";break}default:a+=s+"{"+c+"}"}}}return a}var $o=/label:\s*([^\s;{]+)\s*(;|$)/g,Wt;function hu(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,n="";Wt=void 0;var s=e[0];if(s==null||s.raw===void 0)a=!1,n+=gn(r,t,s);else{var o=s;n+=o[0]}for(var i=1;i<e.length;i++)if(n+=gn(r,t,e[i]),a){var l=s;n+=l[i]}$o.lastIndex=0;for(var c="",d;(d=$o.exec(n))!==null;)c+="-"+d[1];var u=iu(n)+c;return{name:u,styles:n,next:Wt}}/**
31
31
  * @mui/styled-engine v6.4.6
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 Jl(e,t){const r=Ol(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
37
- `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function Gl(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ai=[];function si(e){return ai[0]=e,zl(ai)}var Jr={exports:{}},ne={};/**
36
+ */function mu(e,t){const r=Kd(e,t);return process.env.NODE_ENV!=="production"?(...a)=>{const n=typeof e=="string"?`"${e}"`:"component";return a.length===0?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
37
+ `)):a.some(s=>s===void 0)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...a)}:r}function fu(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Uo=[];function Lo(e){return Uo[0]=e,hu(Uo)}var Ga={exports:{}},fe={};/**
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 Wl(){if(li)return ne;li=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=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"),S=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case e:switch(f=f.type,f){case r:case o:case n:case l:case c:return f;default:switch(f=f&&f.$$typeof,f){case a:case s:case d:case u:return f;case i:return f;default:return v}}case t:return v}}}return ne.ContextConsumer=i,ne.ContextProvider=a,ne.Element=e,ne.ForwardRef=s,ne.Fragment=r,ne.Lazy=d,ne.Memo=u,ne.Portal=t,ne.Profiler=o,ne.StrictMode=n,ne.Suspense=l,ne.SuspenseList=c,ne.isContextConsumer=function(f){return b(f)===i},ne.isContextProvider=function(f){return b(f)===a},ne.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},ne.isForwardRef=function(f){return b(f)===s},ne.isFragment=function(f){return b(f)===r},ne.isLazy=function(f){return b(f)===d},ne.isMemo=function(f){return b(f)===u},ne.isPortal=function(f){return b(f)===t},ne.isProfiler=function(f){return b(f)===o},ne.isStrictMode=function(f){return b(f)===n},ne.isSuspense=function(f){return b(f)===l},ne.isSuspenseList=function(f){return b(f)===c},ne.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===l||f===c||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===u||f.$$typeof===a||f.$$typeof===i||f.$$typeof===s||f.$$typeof===S||f.getModuleId!==void 0)},ne.typeOf=b,ne}var oe={};/**
45
+ */var ko;function gu(){if(ko)return fe;ko=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),f=Symbol.for("react.client.reference");function y(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case e:switch(h=h.type,h){case r:case n:case a:case l:case c:return h;default:switch(h=h&&h.$$typeof,h){case o:case i:case u:case d:return h;case s:return h;default:return x}}case t:return x}}}return fe.ContextConsumer=s,fe.ContextProvider=o,fe.Element=e,fe.ForwardRef=i,fe.Fragment=r,fe.Lazy=u,fe.Memo=d,fe.Portal=t,fe.Profiler=n,fe.StrictMode=a,fe.Suspense=l,fe.SuspenseList=c,fe.isContextConsumer=function(h){return y(h)===s},fe.isContextProvider=function(h){return y(h)===o},fe.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},fe.isForwardRef=function(h){return y(h)===i},fe.isFragment=function(h){return y(h)===r},fe.isLazy=function(h){return y(h)===u},fe.isMemo=function(h){return y(h)===d},fe.isPortal=function(h){return y(h)===t},fe.isProfiler=function(h){return y(h)===n},fe.isStrictMode=function(h){return y(h)===a},fe.isSuspense=function(h){return y(h)===l},fe.isSuspenseList=function(h){return y(h)===c},fe.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===n||h===a||h===l||h===c||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===u||h.$$typeof===d||h.$$typeof===o||h.$$typeof===s||h.$$typeof===i||h.$$typeof===f||h.getModuleId!==void 0)},fe.typeOf=y,fe}var ge={};/**
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 Hl(){return ci||(ci=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 n:case i:case o:case c:case u:return f;default:switch(f=f&&f.$$typeof,f){case s:case l:case p:case d:return f;case a:return f;default:return v}}case r:return v}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=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"),S=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");oe.ContextConsumer=a,oe.ContextProvider=s,oe.Element=t,oe.ForwardRef=l,oe.Fragment=n,oe.Lazy=p,oe.Memo=d,oe.Portal=r,oe.Profiler=i,oe.StrictMode=o,oe.Suspense=c,oe.SuspenseList=u,oe.isContextConsumer=function(f){return e(f)===a},oe.isContextProvider=function(f){return e(f)===s},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)===n},oe.isLazy=function(f){return e(f)===p},oe.isMemo=function(f){return e(f)===d},oe.isPortal=function(f){return e(f)===r},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===n||f===i||f===o||f===c||f===u||f===S||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===s||f.$$typeof===a||f.$$typeof===l||f.$$typeof===b||f.getModuleId!==void 0)},oe.typeOf=e}()),oe}var ui;function Kl(){return ui||(ui=1,process.env.NODE_ENV==="production"?Jr.exports=Wl():Jr.exports=Hl()),Jr.exports}var un=Kl();function rt(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 $a(e){if(C.isValidElement(e)||un.isValidElementType(e)||!rt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=$a(e[r])}),t}function $e(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return rt(e)&&rt(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||un.isValidElementType(t[o])?n[o]=t[o]:rt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&rt(e[o])?n[o]=$e(e[o],t[o],r):r.clone?n[o]=rt(t[o])?$a(t[o]):t[o]:n[o]=t[o]}),n}const ql=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function Yl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=ql(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,S){const b=a.indexOf(S);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:S)-n/100}${r})`}function u(p){return a.indexOf(p)+1<a.length?c(p,a[a.indexOf(p)+1]):s(p)}function d(p){const S=a.indexOf(p);return S===0?s(a[1]):S===a.length-1?l(a[S]):c(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:l,between:c,only:u,not:d,unit:r,...o}}function Zl(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{var a,s;const i=/min-width:\s*([0-9.]+)/;return+(((a=n.match(i))==null?void 0:a[1])||0)-+(((s=o.match(i))==null?void 0:s[1])||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function Xl(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Ql(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){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\`.`:Rt(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function ec(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const l=t(e.breakpoints.not(...s),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const tc={borderRadius:4},Pt=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{};function Ar(e,t){return t?$e(e,t,{clone:!1}):e}const wn={xs:0,sm:600,md:900,lg:1200,xl:1536},fi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${wn[e]}px)`},rc={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:wn[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ye(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||fi;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const i=n.breakpoints||fi;return Object.keys(t).reduce((a,s)=>{if(Xl(i.keys,s)){const l=Ql(n.containerQueries?n:rc,s);l&&(a[l]=r(t[s],s))}else if(Object.keys(i.values||wn).includes(s)){const l=i.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function La(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Ia(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function nc(e,...t){const r=La(e),n=[r,...t].reduce((o,i)=>$e(o,i),{});return Ia(Object.keys(r),n)}function oc(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,i)=>{i<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Xn({values:e,breakpoints:t,base:r}){const n=r||oc(e,t),o=Object.keys(n);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function _e(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Rt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Tn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function fn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Tn(e,r)||n,t&&(o=t(o,n,e)),o}function me(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=Tn(l,n)||{};return Ye(a,s,d=>{let p=fn(c,o,d);return d===p&&typeof d=="string"&&(p=fn(c,o,`${t}${d==="default"?"":_e(d)}`,d)),r===!1?p:{[r]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Pt}:{},i.filterProps=[t],i}function ic(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const ac={m:"margin",p:"padding"},sc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},di={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lc=ic(e=>{if(e.length>2)if(di[e])e=di[e];else return[e];const[t,r]=e.split(""),n=ac[t],o=sc[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),En=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Cn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],cc=[...En,...Cn];function Dr(e,t,r,n){const o=Tn(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} 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 a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
53
+ */var Bo;function yu(){return Bo||(Bo=1,process.env.NODE_ENV!=="production"&&function(){function e(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case t:switch(h=h.type,h){case a:case s:case n:case c:case d:return h;default:switch(h=h&&h.$$typeof,h){case i:case l:case p:case u:return h;case o:return h;default:return x}}case r:return x}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),y=Symbol.for("react.client.reference");ge.ContextConsumer=o,ge.ContextProvider=i,ge.Element=t,ge.ForwardRef=l,ge.Fragment=a,ge.Lazy=p,ge.Memo=u,ge.Portal=r,ge.Profiler=s,ge.StrictMode=n,ge.Suspense=c,ge.SuspenseList=d,ge.isContextConsumer=function(h){return e(h)===o},ge.isContextProvider=function(h){return e(h)===i},ge.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},ge.isForwardRef=function(h){return e(h)===l},ge.isFragment=function(h){return e(h)===a},ge.isLazy=function(h){return e(h)===p},ge.isMemo=function(h){return e(h)===u},ge.isPortal=function(h){return e(h)===r},ge.isProfiler=function(h){return e(h)===s},ge.isStrictMode=function(h){return e(h)===n},ge.isSuspense=function(h){return e(h)===c},ge.isSuspenseList=function(h){return e(h)===d},ge.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===a||h===s||h===n||h===c||h===d||h===f||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===u||h.$$typeof===i||h.$$typeof===o||h.$$typeof===l||h.$$typeof===y||h.getModuleId!==void 0)},ge.typeOf=e}()),ge}var Fo;function bu(){return Fo||(Fo=1,process.env.NODE_ENV==="production"?Ga.exports=gu():Ga.exports=yu()),Ga.exports}var yn=bu();function Ot(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 Ul(e){if(G.isValidElement(e)||yn.isValidElementType(e)||!Ot(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Ul(e[r])}),t}function Qe(e,t,r={clone:!0}){const a=r.clone?{...e}:e;return Ot(e)&&Ot(t)&&Object.keys(t).forEach(n=>{G.isValidElement(t[n])||yn.isValidElementType(t[n])?a[n]=t[n]:Ot(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Ot(e[n])?a[n]=Qe(e[n],t[n],r):r.clone?a[n]=Ot(t[n])?Ul(t[n]):t[n]:a[n]=t[n]}),a}const Su=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,a)=>r.val-a.val),t.reduce((r,a)=>({...r,[a.key]:a.val}),{})};function vu(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:a=5,...n}=e,s=Su(t),o=Object.keys(s);function i(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-a/100}${r})`}function c(p,f){const y=o.indexOf(f);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(y!==-1&&typeof t[o[y]]=="number"?t[o[y]]:f)-a/100}${r})`}function d(p){return o.indexOf(p)+1<o.length?c(p,o[o.indexOf(p)+1]):i(p)}function u(p){const f=o.indexOf(p);return f===0?i(o[1]):f===o.length-1?l(o[f]):c(p,o[o.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:o,values:s,up:i,down:l,between:c,only:d,not:u,unit:r,...n}}function xu(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(a=>a.startsWith("@container")).sort((a,n)=>{var o,i;const s=/min-width:\s*([0-9.]+)/;return+(((o=a.match(s))==null?void 0:o[1])||0)-+(((i=n.match(s))==null?void 0:i[1])||0)});return r.length?r.reduce((a,n)=>{const s=t[n];return delete a[n],a[n]=s,a},{...t}):t}function Ou(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function wu(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){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\`.`:Kt(18,`(${t})`));return null}const[,a,n]=r,s=Number.isNaN(+a)?a||0:+a;return e.containerQueries(n).up(s)}function Cu(e){const t=(s,o)=>s.replace("@media",o?`@container ${o}`:"@container");function r(s,o){s.up=(...i)=>t(e.breakpoints.up(...i),o),s.down=(...i)=>t(e.breakpoints.down(...i),o),s.between=(...i)=>t(e.breakpoints.between(...i),o),s.only=(...i)=>t(e.breakpoints.only(...i),o),s.not=(...i)=>{const l=t(e.breakpoints.not(...i),o);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const a={},n=s=>(r(a,s),a);return r(n),{...e,containerQueries:n}}const Pu={borderRadius:4},Zt=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.string,b.object,b.array]):{};function wa(e,t){return t?Qe(e,t,{clone:!1}):e}const En={xs:0,sm:600,md:900,lg:1200,xl:1536},No={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${En[e]}px)`},Vu={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:En[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ft(e,t,r){const a=e.theme||{};if(Array.isArray(t)){const s=a.breakpoints||No;return t.reduce((o,i,l)=>(o[s.up(s.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const s=a.breakpoints||No;return Object.keys(t).reduce((o,i)=>{if(Ou(s.keys,i)){const l=wu(a.containerQueries?a:Vu,i);l&&(o[l]=r(t[i],i))}else if(Object.keys(s.values||En).includes(i)){const l=s.up(i);o[l]=r(t[i],i)}else{const l=i;o[l]=t[l]}return o},{})}return r(t)}function Ll(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((a,n)=>{const s=e.up(n);return a[s]={},a},{}))||{}}function kl(e,t){return e.reduce((r,a)=>{const n=r[a];return(!n||Object.keys(n).length===0)&&delete r[a],r},t)}function Ru(e,...t){const r=Ll(e),a=[r,...t].reduce((n,s)=>Qe(n,s),{});return kl(Object.keys(r),a)}function _u(e,t){if(typeof e!="object")return{};const r={},a=Object.keys(t);return Array.isArray(e)?a.forEach((n,s)=>{s<e.length&&(r[n]=!0)}):a.forEach(n=>{e[n]!=null&&(r[n]=!0)}),r}function us({values:e,breakpoints:t,base:r}){const a=r||_u(e,t),n=Object.keys(a);if(n.length===0)return e;let s;return n.reduce((o,i,l)=>(Array.isArray(e)?(o[i]=e[l]!=null?e[l]:e[s],s=l):typeof e=="object"?(o[i]=e[i]!=null?e[i]:e[s],s=i):o[i]=e,o),{})}function We(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Kt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function In(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const a=`vars.${t}`.split(".").reduce((n,s)=>n&&n[s]?n[s]:null,e);if(a!=null)return a}return t.split(".").reduce((a,n)=>a&&a[n]!=null?a[n]:null,e)}function bn(e,t,r,a=r){let n;return typeof e=="function"?n=e(r):Array.isArray(e)?n=e[r]||a:n=In(e,r)||a,t&&(n=t(n,a,e)),n}function Me(e){const{prop:t,cssProperty:r=e.prop,themeKey:a,transform:n}=e,s=o=>{if(o[t]==null)return null;const i=o[t],l=o.theme,c=In(l,a)||{};return ft(o,i,u=>{let p=bn(c,n,u);return u===p&&typeof u=="string"&&(p=bn(c,n,`${t}${u==="default"?"":We(u)}`,u)),r===!1?p:{[r]:p}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Zt}:{},s.filterProps=[t],s}function Au(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Tu={m:"margin",p:"padding"},Eu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Do={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Iu=Au(e=>{if(e.length>2)if(Do[e])e=Do[e];else return[e];const[t,r]=e.split(""),a=Tu[t],n=Eu[r]||"";return Array.isArray(n)?n.map(s=>a+s):[a+n]}),Mn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Mu=[...Mn,...jn];function La(e,t,r,a){const n=In(e,t,!0)??r;return typeof n=="number"||typeof n=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${a} argument to be a number or a string, got ${s}.`),typeof n=="string"?`calc(${s} * ${n})`:n*s):Array.isArray(n)?s=>{if(typeof s=="string")return s;const o=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(o)?o>n.length-1&&console.error([`MUI: The value provided (${o}) overflows.`,`The supported values are: ${JSON.stringify(n)}.`,`${o} > ${n.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
- `)));const s=o[a];return i>=0?s:typeof s=="number"?-s:`-${s}`}: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 On(e){return Dr(e,"spacing",8,"spacing")}function Nt(e,t){return typeof t=="string"||t==null?t:e(t)}function uc(e,t){return r=>e.reduce((n,o)=>(n[o]=Nt(t,r),n),{})}function fc(e,t,r,n){if(!t.includes(r))return null;const o=lc(r),i=uc(o,n),a=e[r];return Ye(e,a,i)}function Ma(e,t){const r=On(e.theme);return Object.keys(e).map(n=>fc(e,t,n,r)).reduce(Ar,{})}function de(e){return Ma(e,En)}de.propTypes=process.env.NODE_ENV!=="production"?En.reduce((e,t)=>(e[t]=Pt,e),{}):{};de.filterProps=En;function pe(e){return Ma(e,Cn)}pe.propTypes=process.env.NODE_ENV!=="production"?Cn.reduce((e,t)=>(e[t]=Pt,e),{}):{};pe.filterProps=Cn;process.env.NODE_ENV!=="production"&&cc.reduce((e,t)=>(e[t]=Pt,e),{});function Na(e=8,t=On({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function Rn(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Ar(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Je(e){return typeof e!="number"?e:`${e}px solid`}function We(e,t){return me({prop:e,themeKey:"borders",transform:t})}const dc=We("border",Je),pc=We("borderTop",Je),gc=We("borderRight",Je),hc=We("borderBottom",Je),mc=We("borderLeft",Je),yc=We("borderColor"),bc=We("borderTopColor"),Sc=We("borderRightColor"),vc=We("borderBottomColor"),xc=We("borderLeftColor"),wc=We("outline",Je),Tc=We("outlineColor"),An=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Nt(t,n)});return Ye(e,e.borderRadius,r)}return null};An.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Pt}:{};An.filterProps=["borderRadius"];Rn(dc,pc,gc,hc,mc,yc,bc,Sc,vc,xc,An,wc,Tc);const kn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dr(e.theme,"spacing",8,"gap"),r=n=>({gap:Nt(t,n)});return Ye(e,e.gap,r)}return null};kn.propTypes=process.env.NODE_ENV!=="production"?{gap:Pt}:{};kn.filterProps=["gap"];const Pn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Nt(t,n)});return Ye(e,e.columnGap,r)}return null};Pn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Pt}:{};Pn.filterProps=["columnGap"];const jn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Nt(t,n)});return Ye(e,e.rowGap,r)}return null};jn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Pt}:{};jn.filterProps=["rowGap"];const Ec=me({prop:"gridColumn"}),Cc=me({prop:"gridRow"}),Oc=me({prop:"gridAutoFlow"}),Rc=me({prop:"gridAutoColumns"}),Ac=me({prop:"gridAutoRows"}),kc=me({prop:"gridTemplateColumns"}),Pc=me({prop:"gridTemplateRows"}),jc=me({prop:"gridTemplateAreas"}),_c=me({prop:"gridArea"});Rn(kn,Pn,jn,Ec,Cc,Oc,Rc,Ac,kc,Pc,jc,_c);function sr(e,t){return t==="grey"?t:e}const $c=me({prop:"color",themeKey:"palette",transform:sr}),Lc=me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sr}),Ic=me({prop:"backgroundColor",themeKey:"palette",transform:sr});Rn($c,Lc,Ic);function Fe(e){return e<=1&&e!==0?`${e*100}%`:e}const Mc=me({prop:"width",transform:Fe}),_o=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,i,a,s,l;const n=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[r])||wn[r];return n?((l=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Fe(r)}};return Ye(e,e.maxWidth,t)}return null};_o.filterProps=["maxWidth"];const Nc=me({prop:"minWidth",transform:Fe}),Dc=me({prop:"height",transform:Fe}),Fc=me({prop:"maxHeight",transform:Fe}),Bc=me({prop:"minHeight",transform:Fe});me({prop:"size",cssProperty:"width",transform:Fe});me({prop:"size",cssProperty:"height",transform:Fe});const Vc=me({prop:"boxSizing"});Rn(Mc,_o,Nc,Dc,Fc,Bc,Vc);const Fr={border:{themeKey:"borders",transform:Je},borderTop:{themeKey:"borders",transform:Je},borderRight:{themeKey:"borders",transform:Je},borderBottom:{themeKey:"borders",transform:Je},borderLeft:{themeKey:"borders",transform:Je},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Je},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:An},color:{themeKey:"palette",transform:sr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sr},backgroundColor:{themeKey:"palette",transform:sr},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:kn},rowGap:{style:jn},columnGap:{style:Pn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fe},maxWidth:{style:_o},minWidth:{transform:Fe},height:{transform:Fe},maxHeight:{transform:Fe},minHeight:{transform:Fe},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 Uc(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function zc(e,t){return typeof e=="function"?e(t):e}function Jc(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:u,style:d}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=Tn(o,c)||{};return d?d(a):Ye(a,n,b=>{let f=fn(p,u,b);return b===f&&typeof b=="string"&&(f=fn(p,u,`${r}${b==="default"?"":_e(b)}`,b)),l===!1?f:{[l]:f}})}function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const i=o.unstable_sxConfig??Fr;function a(s){let l=s;if(typeof s=="function")l=s(o);else if(typeof s!="object")return s;if(!l)return null;const c=La(o.breakpoints),u=Object.keys(c);let d=c;return Object.keys(l).forEach(p=>{const S=zc(l[p],o);if(S!=null)if(typeof S=="object")if(i[p])d=Ar(d,e(p,S,o,i));else{const b=Ye({theme:o},S,f=>({[p]:f}));Uc(b,S)?d[p]=t({sx:S,theme:o}):d=Ar(d,b)}else d=Ar(d,e(p,S,o,i))}),Zl(o,Ia(u,d))}return Array.isArray(n)?n.map(a):a(n)}return t}const ur=Jc();ur.filterProps=["sx"];function Gc(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function _n(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,s=Yl(r),l=Na(o);let c=$e({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...tc,...i}},a);return c=ec(c),c.applyStyles=Gc,c=t.reduce((u,d)=>$e(u,d),c),c.unstable_sxConfig={...Fr,...a==null?void 0:a.unstable_sxConfig},c.unstable_sx=function(d){return ur({sx:d,theme:this})},c}function Wc(e){return Object.keys(e).length===0}function Hc(e=null){const t=C.useContext(Rl.ThemeContext);return!t||Wc(t)?e:t}const Kc=_n();function qc(e=Kc){return Hc(e)}const Yc=e=>{var n;const t={systemProps:{},otherProps:{}},r=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??Fr;return Object.keys(e).forEach(o=>{r[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Zc(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=Yc(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return rt(s)?{...n,...s}:n}:i={...n,...t},{...o,sx:i}}const pi=e=>e,Xc=()=>{let e=pi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pi}}},Qc=Xc();function Da(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Da(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function it(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Da(e))&&(n&&(n+=" "),n+=t);return n}const eu={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 Br(e,t,r="Mui"){const n=eu[t];return n?`${r}-${n}`:`${Qc.generate(e)}-${t}`}function Fa(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Br(e,o,r)}),n}function Ba(e,t=""){return e.displayName||e.name||t}function gi(e,t,r){const n=Ba(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function tu(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ba(e,"Component");if(typeof e=="object")switch(e.$$typeof){case un.ForwardRef:return gi(e,e.render,"ForwardRef");case un.Memo:return gi(e,e.type,"memo");default:return}}}function Va(e){const{variants:t,...r}=e,n={variants:t,style:si(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=si(o.style))}),n}const ru=_n();function Qn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function nu(e){return e?(t,r)=>r[e]:null}function ou(e,t,r){e.theme=su(e.theme)?r:e.theme[t]||e.theme}function tn(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(n=>tn(e,n));if(Array.isArray(r==null?void 0:r.variants)){let n;if(r.isProcessed)n=r.style;else{const{variants:o,...i}=r;n=i}return Ua(e,r.variants,[n])}return r!=null&&r.isProcessed?r.style:r}function Ua(e,t,r=[]){var o;let n;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(n))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&((o=e.ownerState)==null?void 0:o[s])!==a.props[s])continue e;typeof a.style=="function"?(n??(n={...e,...e.ownerState,ownerState:e.ownerState}),r.push(a.style(n))):r.push(a.style)}return r}function za(e={}){const{themeId:t,defaultTheme:r=ru,rootShouldForwardProp:n=Qn,slotShouldForwardProp:o=Qn}=e;function i(s){ou(s,t,r)}return(s,l={})=>{Gl(s,P=>P.filter($=>$!==ur));const{name:c,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:S=nu(Ja(u)),...b}=l,f=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,v=p||!1;let E=Qn;u==="Root"||u==="root"?E=n:u?E=o:lu(s)&&(E=void 0);const O=Jl(s,{shouldForwardProp:E,label:au(c,u),...b}),k=P=>{if(typeof P=="function"&&P.__emotion_real!==P)return function(I){return tn(I,P)};if(rt(P)){const $=Va(P);return $.variants?function(B){return tn(B,$)}:$.style}return P},T=(...P)=>{const $=[],I=P.map(k),B=[];if($.push(i),c&&S&&B.push(function(M){var Y,Ae;const D=(Ae=(Y=M.theme.components)==null?void 0:Y[c])==null?void 0:Ae.styleOverrides;if(!D)return null;const Q={};for(const ee in D)Q[ee]=tn(M,D[ee]);return S(M,Q)}),c&&!f&&B.push(function(M){var Q,Y;const N=M.theme,D=(Y=(Q=N==null?void 0:N.components)==null?void 0:Q[c])==null?void 0:Y.variants;return D?Ua(M,D):null}),v||B.push(ur),Array.isArray(I[0])){const _=I.shift(),M=new Array($.length).fill(""),N=new Array(B.length).fill("");let D;D=[...M,..._,...N],D.raw=[...M,..._.raw,...N],$.unshift(D)}const H=[...$,...I,...B],g=O(...H);return s.muiName&&(g.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(g.displayName=iu(c,u,s)),g};return O.withConfig&&(T.withConfig=O.withConfig),T}}function iu(e,t,r){return e?`${e}${_e(t||"")}`:`Styled(${tu(r)})`}function au(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Ja(t||"Root")}`),r}function su(e){for(const t in e)return!1;return!0}function lu(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const cu=za();function dn(e,t){const r={...t};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=n;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)r[o]=i||{};else if(!i)r[o]=a;else{r[o]={...a};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=s;r[o][l]=dn(i[l],a[l])}}}else r[o]===void 0&&(r[o]=e[o])}return r}function uu(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:dn(t.components[r].defaultProps,n)}function fu({props:e,name:t,defaultTheme:r,themeId:n}){let o=qc(r);return n&&(o=o[n]||o),uu({theme:o,name:t,props:e})}const Ga=typeof window<"u"?C.useLayoutEffect:C.useEffect;function ar(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function $o(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),ar(e,t,r)}function du(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),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.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function At(e){if(e.type)return e;if(e.charAt(0)==="#")return At(du(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))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().`:Rt(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].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.`:Rt(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const pu=e=>{const t=At(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Or=(e,t)=>{try{return pu(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function $n(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Wa(e){e=At(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,u=(c+r/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),$n({type:s,values:l})}function go(e){e=At(e);let t=e.type==="hsl"||e.type==="hsla"?At(Wa(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function hi(e,t){const r=go(e),n=go(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ho(e,t){return e=At(e),t=$o(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$n(e)}function Gr(e,t,r){try{return ho(e,t)}catch{return e}}function jr(e,t){if(e=At(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 r=0;r<3;r+=1)e.values[r]*=1-t;return $n(e)}function ae(e,t,r){try{return jr(e,t)}catch{return e}}function _r(e,t){if(e=At(e),t=$o(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return $n(e)}function se(e,t,r){try{return _r(e,t)}catch{return e}}function gu(e,t=.15){return go(e)>.5?jr(e,t):_r(e,t)}function Wr(e,t,r){try{return gu(e,t)}catch{return e}}function mi(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function rn(e){return e&&e.ownerDocument||document}function hu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function mu({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=C.useRef(e!==void 0),[i,a]=C.useState(t),s=o?e:i;if(process.env.NODE_ENV!=="production"){C.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
60
- `))},[n,r,e]);const{current:c}=C.useRef(t);C.useEffect(()=>{!o&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
61
- `))},[JSON.stringify(t)])}const l=C.useCallback(c=>{o||a(c)},[]);return[s,l]}function eo(e){const t=C.useRef(e);return Ga(()=>{t.current=e}),C.useRef((...r)=>(0,t.current)(...r)).current}function Ha(...e){return C.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{hu(r,t)})},e)}function yi(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 yu={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,r=void 0){const n={};for(const o in e){const i=e[o];let a="",s=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(a+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(a+=" "+r[c]))}n[o]=a}return n}function bu(e){return typeof e=="string"}function Su(e,t,r){return e===void 0||bu(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function nn(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function bi(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function vu(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const S=it(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),b={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},f={...r,...o,...n};return S.length>0&&(f.className=S),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=nn({...o,...n}),s=bi(n),l=bi(o),c=t(a),u=it(c==null?void 0:c.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),d={...c==null?void 0:c.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},p={...c,...r,...l,...s};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function xu(e,t,r){return typeof e=="function"?e(t,r):e}function Tt(e){var d;const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:xu(r,n),{props:s,internalRef:l}=vu({...i,externalSlotProps:a}),c=Ha(l,a==null?void 0:a.ref,(d=e.additionalProps)==null?void 0:d.ref);return Su(t,{...s,ref:c},n)}const wu=C.createContext();process.env.NODE_ENV!=="production"&&(h.node,h.bool);const Tu=()=>C.useContext(wu)??!1,Eu=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(h.node,h.object);function Cu(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?dn(o.defaultProps,n):!o.styleOverrides&&!o.variants?dn(o,n):n}function Ou({props:e,name:t}){const r=C.useContext(Eu);return Cu({props:e,name:t,theme:{components:r}})}const Si={theme:void 0};function Ru(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(Si.theme=o.theme,i=Va(e(Si)),t=i,r=o.theme),i}}function Au(e=""){function t(...n){if(!n.length)return"";const o=n[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(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const vi=(e,t,r,n=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},ku=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([s,l])=>{(!r||r&&!r([...i,s]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?n(l,[...i,s],Array.isArray(l)?[...a,s]:a):t([...i,s],l,a))})}n(e)},Pu=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function to(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return ku(e,(s,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!n||!n(s,l))){const u=`--${r?`${r}-`:""}${s.join("-")}`,d=Pu(s,l);Object.assign(o,{[u]:d}),vi(i,s,`var(${u})`,c),vi(a,s,`var(${u}, ${d})`,c)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function ju(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:s="light",...l}=e,{vars:c,css:u,varsWithDefaults:d}=to(l,t);let p=d;const S={},{[s]:b,...f}=i;if(Object.entries(f||{}).forEach(([k,T])=>{const{vars:P,css:$,varsWithDefaults:I}=to(T,t);p=$e(p,I),S[k]={css:$,vars:P}}),b){const{css:k,vars:T,varsWithDefaults:P}=to(b,t);p=$e(p,P),S[s]={css:k,vars:T}}function v(k,T){var $,I;let P=o;if(o==="class"&&(P=".%s"),o==="data"&&(P="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(P=`[${o}="%s"]`),k){if(P==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((I=($=i[k])==null?void 0:$.palette)==null?void 0:I.mode)||k})`]:{":root":T}};if(P)return e.defaultColorScheme===k?`:root, ${P.replace("%s",String(k))}`:P.replace("%s",String(k))}return":root"}return{vars:p,generateThemeVars:()=>{let k={...c};return Object.entries(S).forEach(([,{vars:T}])=>{k=$e(k,T)}),k},generateStyleSheets:()=>{var B,H;const k=[],T=e.defaultColorScheme||"light";function P(g,_){Object.keys(_).length&&k.push(typeof g=="string"?{[g]:{..._}}:g)}P(r(void 0,{...u}),u);const{[T]:$,...I}=S;if($){const{css:g}=$,_=(H=(B=i[T])==null?void 0:B.palette)==null?void 0:H.mode,M=!n&&_?{colorScheme:_,...g}:{...g};P(r(T,{...M}),M)}return Object.entries(I).forEach(([g,{css:_}])=>{var D,Q;const M=(Q=(D=i[g])==null?void 0:D.palette)==null?void 0:Q.mode,N=!n&&M?{colorScheme:M,..._}:{..._};P(r(g,{...N}),N)}),k}}}function _u(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const $u=_n(),Lu=cu("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Iu(e){return fu({props:e,name:"MuiStack",defaultTheme:$u})}function Mu(e,t){const r=C.Children.toArray(e).filter(Boolean);return r.reduce((n,o,i)=>(n.push(o),i<r.length-1&&n.push(C.cloneElement(t,{key:`separator-${i}`})),n),[])}const Nu=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Du=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...Ye({theme:t},Xn({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n}))};if(e.spacing){const n=On(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=Xn({values:e.direction,base:o}),a=Xn({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}}),r=$e(r,Ye({theme:t},a,(l,c)=>e.useFlexGap?{gap:Nt(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Nu(c?i[c]:e.direction)}`]:Nt(n,l)}}))}return r=nc(t.breakpoints,r),r};function Fu(e={}){const{createStyledComponent:t=Lu,useThemeProps:r=Iu,componentName:n="MuiStack"}=e,o=()=>Lo({root:["root"]},l=>Br(n,l),{}),i=t(Du),a=C.forwardRef(function(l,c){const u=r(l),d=Zc(u),{component:p="div",direction:S="column",spacing:b=0,divider:f,children:v,className:E,useFlexGap:O=!1,...k}=d,T={direction:S,spacing:b,useFlexGap:O},P=o();return m.jsx(i,{as:p,ownerState:T,ref:c,className:it(P.root,E),...k,children:f?Mu(v,f):v})});return process.env.NODE_ENV!=="production"&&(a.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])}),a}const $r={black:"#000",white:"#fff"},Bu={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"},Xt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Qt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},wr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},er={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},tr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},rr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ka(){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:$r.white,default:$r.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 Vu=Ka();function qa(){return{text:{primary:$r.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:$r.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=qa();function wi(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=_r(e.main,o):t==="dark"&&(e.dark=jr(e.main,i)))}function Uu(e="light"){return e==="dark"?{main:er[200],light:er[50],dark:er[400]}:{main:er[700],light:er[400],dark:er[800]}}function zu(e="light"){return e==="dark"?{main:Xt[200],light:Xt[50],dark:Xt[400]}:{main:Xt[500],light:Xt[300],dark:Xt[700]}}function Ju(e="light"){return e==="dark"?{main:Qt[500],light:Qt[300],dark:Qt[700]}:{main:Qt[700],light:Qt[400],dark:Qt[800]}}function Gu(e="light"){return e==="dark"?{main:tr[400],light:tr[300],dark:tr[700]}:{main:tr[700],light:tr[500],dark:tr[900]}}function Wu(e="light"){return e==="dark"?{main:rr[400],light:rr[300],dark:rr[700]}:{main:rr[800],light:rr[500],dark:rr[900]}}function Hu(e="light"){return e==="dark"?{main:wr[400],light:wr[300],dark:wr[700]}:{main:"#ed6c02",light:wr[500],dark:wr[900]}}function Io(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,i=e.primary||Uu(t),a=e.secondary||zu(t),s=e.error||Ju(t),l=e.info||Gu(t),c=e.success||Wu(t),u=e.warning||Hu(t);function d(f){const v=hi(f,xi.text.primary)>=r?xi.text.primary:Vu.text.primary;if(process.env.NODE_ENV!=="production"){const E=hi(f,v);E<3&&console.error([`MUI: The contrast ratio of ${E}: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:E=500,lightShade:O=300,darkShade:k=700})=>{if(f={...f},!f.main&&f[E]&&(f.main=f[E]),!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 \`${E}\` property.`:Rt(11,v?` (${v})`:"",E));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.
56
+ `)));const i=n[o];return s>=0?i:typeof i=="number"?-i:`-${i}`}:typeof n=="function"?n:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${n}) is invalid.`,"It should be a number, an array or a function."].join(`
57
+ `)),()=>{})}function $n(e){return La(e,"spacing",8,"spacing")}function cr(e,t){return typeof t=="string"||t==null?t:e(t)}function ju(e,t){return r=>e.reduce((a,n)=>(a[n]=cr(t,r),a),{})}function $u(e,t,r,a){if(!t.includes(r))return null;const n=Iu(r),s=ju(n,a),o=e[r];return ft(e,o,s)}function Bl(e,t){const r=$n(e.theme);return Object.keys(e).map(a=>$u(e,t,a,r)).reduce(wa,{})}function _e(e){return Bl(e,Mn)}_e.propTypes=process.env.NODE_ENV!=="production"?Mn.reduce((e,t)=>(e[t]=Zt,e),{}):{};_e.filterProps=Mn;function Ae(e){return Bl(e,jn)}Ae.propTypes=process.env.NODE_ENV!=="production"?jn.reduce((e,t)=>(e[t]=Zt,e),{}):{};Ae.filterProps=jn;process.env.NODE_ENV!=="production"&&Mu.reduce((e,t)=>(e[t]=Zt,e),{});function Fl(e=8,t=$n({spacing:e})){if(e.mui)return e;const r=(...a)=>(process.env.NODE_ENV!=="production"&&(a.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${a.length}`)),(a.length===0?[1]:a).map(s=>{const o=t(s);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}function Un(...e){const t=e.reduce((a,n)=>(n.filterProps.forEach(s=>{a[s]=n}),a),{}),r=a=>Object.keys(a).reduce((n,s)=>t[s]?wa(n,t[s](a)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((a,n)=>Object.assign(a,n.propTypes),{}):{},r.filterProps=e.reduce((a,n)=>a.concat(n.filterProps),[]),r}function it(e){return typeof e!="number"?e:`${e}px solid`}function ct(e,t){return Me({prop:e,themeKey:"borders",transform:t})}const Uu=ct("border",it),Lu=ct("borderTop",it),ku=ct("borderRight",it),Bu=ct("borderBottom",it),Fu=ct("borderLeft",it),Nu=ct("borderColor"),Du=ct("borderTopColor"),zu=ct("borderRightColor"),Gu=ct("borderBottomColor"),Hu=ct("borderLeftColor"),qu=ct("outline",it),Ju=ct("outlineColor"),Ln=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=La(e.theme,"shape.borderRadius",4,"borderRadius"),r=a=>({borderRadius:cr(t,a)});return ft(e,e.borderRadius,r)}return null};Ln.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Zt}:{};Ln.filterProps=["borderRadius"];Un(Uu,Lu,ku,Bu,Fu,Nu,Du,zu,Gu,Hu,Ln,qu,Ju);const kn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=La(e.theme,"spacing",8,"gap"),r=a=>({gap:cr(t,a)});return ft(e,e.gap,r)}return null};kn.propTypes=process.env.NODE_ENV!=="production"?{gap:Zt}:{};kn.filterProps=["gap"];const Bn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=La(e.theme,"spacing",8,"columnGap"),r=a=>({columnGap:cr(t,a)});return ft(e,e.columnGap,r)}return null};Bn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Zt}:{};Bn.filterProps=["columnGap"];const Fn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=La(e.theme,"spacing",8,"rowGap"),r=a=>({rowGap:cr(t,a)});return ft(e,e.rowGap,r)}return null};Fn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Zt}:{};Fn.filterProps=["rowGap"];const Wu=Me({prop:"gridColumn"}),Qu=Me({prop:"gridRow"}),Ku=Me({prop:"gridAutoFlow"}),Yu=Me({prop:"gridAutoColumns"}),Xu=Me({prop:"gridAutoRows"}),Zu=Me({prop:"gridTemplateColumns"}),ep=Me({prop:"gridTemplateRows"}),tp=Me({prop:"gridTemplateAreas"}),rp=Me({prop:"gridArea"});Un(kn,Bn,Fn,Wu,Qu,Ku,Yu,Xu,Zu,ep,tp,rp);function Nr(e,t){return t==="grey"?t:e}const ap=Me({prop:"color",themeKey:"palette",transform:Nr}),np=Me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Nr}),sp=Me({prop:"backgroundColor",themeKey:"palette",transform:Nr});Un(ap,np,sp);function rt(e){return e<=1&&e!==0?`${e*100}%`:e}const op=Me({prop:"width",transform:rt}),lo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,s,o,i,l;const a=((o=(s=(n=e.theme)==null?void 0:n.breakpoints)==null?void 0:s.values)==null?void 0:o[r])||En[r];return a?((l=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:rt(r)}};return ft(e,e.maxWidth,t)}return null};lo.filterProps=["maxWidth"];const ip=Me({prop:"minWidth",transform:rt}),lp=Me({prop:"height",transform:rt}),cp=Me({prop:"maxHeight",transform:rt}),dp=Me({prop:"minHeight",transform:rt});Me({prop:"size",cssProperty:"width",transform:rt});Me({prop:"size",cssProperty:"height",transform:rt});const up=Me({prop:"boxSizing"});Un(op,lo,ip,lp,cp,dp,up);const ka={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ln},color:{themeKey:"palette",transform:Nr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Nr},backgroundColor:{themeKey:"palette",transform:Nr},p:{style:Ae},pt:{style:Ae},pr:{style:Ae},pb:{style:Ae},pl:{style:Ae},px:{style:Ae},py:{style:Ae},padding:{style:Ae},paddingTop:{style:Ae},paddingRight:{style:Ae},paddingBottom:{style:Ae},paddingLeft:{style:Ae},paddingX:{style:Ae},paddingY:{style:Ae},paddingInline:{style:Ae},paddingInlineStart:{style:Ae},paddingInlineEnd:{style:Ae},paddingBlock:{style:Ae},paddingBlockStart:{style:Ae},paddingBlockEnd:{style:Ae},m:{style:_e},mt:{style:_e},mr:{style:_e},mb:{style:_e},ml:{style:_e},mx:{style:_e},my:{style:_e},margin:{style:_e},marginTop:{style:_e},marginRight:{style:_e},marginBottom:{style:_e},marginLeft:{style:_e},marginX:{style:_e},marginY:{style:_e},marginInline:{style:_e},marginInlineStart:{style:_e},marginInlineEnd:{style:_e},marginBlock:{style:_e},marginBlockStart:{style:_e},marginBlockEnd:{style:_e},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:kn},rowGap:{style:Fn},columnGap:{style:Bn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rt},maxWidth:{style:lo},minWidth:{transform:rt},height:{transform:rt},maxHeight:{transform:rt},minHeight:{transform:rt},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 pp(...e){const t=e.reduce((a,n)=>a.concat(Object.keys(n)),[]),r=new Set(t);return e.every(a=>r.size===Object.keys(a).length)}function hp(e,t){return typeof e=="function"?e(t):e}function mp(){function e(r,a,n,s){const o={[r]:a,theme:n},i=s[r];if(!i)return{[r]:a};const{cssProperty:l=r,themeKey:c,transform:d,style:u}=i;if(a==null)return null;if(c==="typography"&&a==="inherit")return{[r]:a};const p=In(n,c)||{};return u?u(o):ft(o,a,y=>{let h=bn(p,d,y);return y===h&&typeof y=="string"&&(h=bn(p,d,`${r}${y==="default"?"":We(y)}`,y)),l===!1?h:{[l]:h}})}function t(r){const{sx:a,theme:n={}}=r||{};if(!a)return null;const s=n.unstable_sxConfig??ka;function o(i){let l=i;if(typeof i=="function")l=i(n);else if(typeof i!="object")return i;if(!l)return null;const c=Ll(n.breakpoints),d=Object.keys(c);let u=c;return Object.keys(l).forEach(p=>{const f=hp(l[p],n);if(f!=null)if(typeof f=="object")if(s[p])u=wa(u,e(p,f,n,s));else{const y=ft({theme:n},f,h=>({[p]:h}));pp(y,f)?u[p]=t({sx:f,theme:n}):u=wa(u,y)}else u=wa(u,e(p,f,n,s))}),xu(n,kl(d,u))}return Array.isArray(a)?a.map(o):o(a)}return t}const Hr=mp();Hr.filterProps=["sx"];function fp(e,t){var a;const r=this;if(r.vars){if(!((a=r.colorSchemes)!=null&&a[e])||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Nn(e={},...t){const{breakpoints:r={},palette:a={},spacing:n,shape:s={},...o}=e,i=vu(r),l=Fl(n);let c=Qe({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:l,shape:{...Pu,...s}},o);return c=Cu(c),c.applyStyles=fp,c=t.reduce((d,u)=>Qe(d,u),c),c.unstable_sxConfig={...ka,...o==null?void 0:o.unstable_sxConfig},c.unstable_sx=function(u){return Hr({sx:u,theme:this})},c}function gp(e){return Object.keys(e).length===0}function yp(e=null){const t=G.useContext(Yd.ThemeContext);return!t||gp(t)?e:t}const bp=Nn();function Sp(e=bp){return yp(e)}const vp=e=>{var a;const t={systemProps:{},otherProps:{}},r=((a=e==null?void 0:e.theme)==null?void 0:a.unstable_sxConfig)??ka;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function xp(e){const{sx:t,...r}=e,{systemProps:a,otherProps:n}=vp(r);let s;return Array.isArray(t)?s=[a,...t]:typeof t=="function"?s=(...o)=>{const i=t(...o);return Ot(i)?{...a,...i}:a}:s={...a,...t},{...n,sx:s}}const zo=e=>e,Op=()=>{let e=zo;return{configure(t){e=t},generate(t){return e(t)},reset(){e=zo}}},wp=Op();function Nl(e){var t,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Nl(e[t]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function Pt(){for(var e,t,r=0,a="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Nl(e))&&(a&&(a+=" "),a+=t);return a}const Cp={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 Ba(e,t,r="Mui"){const a=Cp[t];return a?`${r}-${a}`:`${wp.generate(e)}-${t}`}function Dl(e,t,r="Mui"){const a={};return t.forEach(n=>{a[n]=Ba(e,n,r)}),a}function zl(e,t=""){return e.displayName||e.name||t}function Go(e,t,r){const a=zl(t);return e.displayName||(a!==""?`${r}(${a})`:r)}function Pp(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return zl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case yn.ForwardRef:return Go(e,e.render,"ForwardRef");case yn.Memo:return Go(e,e.type,"memo");default:return}}}function Gl(e){const{variants:t,...r}=e,a={variants:t,style:Lo(r),isProcessed:!0};return a.style===r||t&&t.forEach(n=>{typeof n.style!="function"&&(n.style=Lo(n.style))}),a}const Vp=Nn();function ps(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Rp(e){return e?(t,r)=>r[e]:null}function _p(e,t,r){e.theme=Ep(e.theme)?r:e.theme[t]||e.theme}function cn(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>cn(e,a));if(Array.isArray(r==null?void 0:r.variants)){let a;if(r.isProcessed)a=r.style;else{const{variants:n,...s}=r;a=s}return Hl(e,r.variants,[a])}return r!=null&&r.isProcessed?r.style:r}function Hl(e,t,r=[]){var n;let a;e:for(let s=0;s<t.length;s+=1){const o=t[s];if(typeof o.props=="function"){if(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),!o.props(a))continue}else for(const i in o.props)if(e[i]!==o.props[i]&&((n=e.ownerState)==null?void 0:n[i])!==o.props[i])continue e;typeof o.style=="function"?(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),r.push(o.style(a))):r.push(o.style)}return r}function ql(e={}){const{themeId:t,defaultTheme:r=Vp,rootShouldForwardProp:a=ps,slotShouldForwardProp:n=ps}=e;function s(i){_p(i,t,r)}return(i,l={})=>{fu(i,F=>F.filter(q=>q!==Hr));const{name:c,slot:d,skipVariantsResolver:u,skipSx:p,overridesResolver:f=Rp(Jl(d)),...y}=l,h=u!==void 0?u:d&&d!=="Root"&&d!=="root"||!1,x=p||!1;let E=ps;d==="Root"||d==="root"?E=a:d?E=n:Ip(i)&&(E=void 0);const k=mu(i,{shouldForwardProp:E,label:Tp(c,d),...y}),D=F=>{if(typeof F=="function"&&F.__emotion_real!==F)return function(M){return cn(M,F)};if(Ot(F)){const q=Gl(F);return q.variants?function(L){return cn(L,q)}:q.style}return F},I=(...F)=>{const q=[],M=F.map(D),L=[];if(q.push(s),c&&f&&L.push(function(N){var ee,Re;const z=(Re=(ee=N.theme.components)==null?void 0:ee[c])==null?void 0:Re.styleOverrides;if(!z)return null;const re={};for(const ie in z)re[ie]=cn(N,z[ie]);return f(N,re)}),c&&!h&&L.push(function(N){var re,ee;const J=N.theme,z=(ee=(re=J==null?void 0:J.components)==null?void 0:re[c])==null?void 0:ee.variants;return z?Hl(N,z):null}),x||L.push(Hr),Array.isArray(M[0])){const $=M.shift(),N=new Array(q.length).fill(""),J=new Array(L.length).fill("");let z;z=[...N,...$,...J],z.raw=[...N,...$.raw,...J],q.unshift(z)}const B=[...q,...M,...L],g=k(...B);return i.muiName&&(g.muiName=i.muiName),process.env.NODE_ENV!=="production"&&(g.displayName=Ap(c,d,i)),g};return k.withConfig&&(I.withConfig=k.withConfig),I}}function Ap(e,t,r){return e?`${e}${We(t||"")}`:`Styled(${Pp(r)})`}function Tp(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Jl(t||"Root")}`),r}function Ep(e){for(const t in e)return!1;return!0}function Ip(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Jl(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Mp=ql();function Sn(e,t){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const n=a;if(n==="components"||n==="slots")r[n]={...e[n],...r[n]};else if(n==="componentsProps"||n==="slotProps"){const s=e[n],o=t[n];if(!o)r[n]=s||{};else if(!s)r[n]=o;else{r[n]={...o};for(const i in s)if(Object.prototype.hasOwnProperty.call(s,i)){const l=i;r[n][l]=Sn(s[l],o[l])}}}else r[n]===void 0&&(r[n]=e[n])}return r}function jp(e){const{theme:t,name:r,props:a}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?a:Sn(t.components[r].defaultProps,a)}function $p({props:e,name:t,defaultTheme:r,themeId:a}){let n=Sp(r);return a&&(n=n[a]||n),jp({theme:n,name:t,props:e})}const Wl=typeof window<"u"?G.useLayoutEffect:G.useEffect;function Br(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function co(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Br(e,t,r)}function Up(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(a=>a+a)),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.`),r?`rgb${r.length===4?"a":""}(${r.map((a,n)=>n<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function Yt(e){if(e.type)return e;if(e.charAt(0)==="#")return Yt(Up(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))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().`:Kt(9,e));let a=e.substring(t+1,e.length-1),n;if(r==="color"){if(a=a.split(" "),n=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${n}\` color space.
59
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Kt(10,n))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:r,values:a,colorSpace:n}}const Lp=e=>{const t=Yt(e);return t.values.slice(0,3).map((r,a)=>t.type.includes("hsl")&&a!==0?`${r}%`:r).join(" ")},xa=(e,t)=>{try{return Lp(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Dn(e){const{type:t,colorSpace:r}=e;let{values:a}=e;return t.includes("rgb")?a=a.map((n,s)=>s<3?parseInt(n,10):n):t.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.includes("color")?a=`${r} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function Ql(e){e=Yt(e);const{values:t}=e,r=t[0],a=t[1]/100,n=t[2]/100,s=a*Math.min(n,1-n),o=(c,d=(c+r/30)%12)=>n-s*Math.max(Math.min(d-3,9-d,1),-1);let i="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(i+="a",l.push(t[3])),Dn({type:i,values:l})}function $s(e){e=Yt(e);let t=e.type==="hsl"||e.type==="hsla"?Yt(Ql(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ho(e,t){const r=$s(e),a=$s(t);return(Math.max(r,a)+.05)/(Math.min(r,a)+.05)}function Us(e,t){return e=Yt(e),t=co(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Dn(e)}function Ha(e,t,r){try{return Us(e,t)}catch{return e}}function Ra(e,t){if(e=Yt(e),t=co(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Dn(e)}function be(e,t,r){try{return Ra(e,t)}catch{return e}}function _a(e,t){if(e=Yt(e),t=co(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Dn(e)}function Se(e,t,r){try{return _a(e,t)}catch{return e}}function kp(e,t=.15){return $s(e)>.5?Ra(e,t):_a(e,t)}function qa(e,t,r){try{return kp(e,t)}catch{return e}}function qo(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...a){return e(...a)||t(...a)}}function dn(e){return e&&e.ownerDocument||document}function Bp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Fp({controlled:e,default:t,name:r,state:a="value"}){const{current:n}=G.useRef(e!==void 0),[s,o]=G.useState(t),i=n?e:s;if(process.env.NODE_ENV!=="production"){G.useEffect(()=>{n!==(e!==void 0)&&console.error([`MUI: A component is changing the ${n?"":"un"}controlled ${a} state of ${r} to be ${n?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
60
+ `))},[a,r,e]);const{current:c}=G.useRef(t);G.useEffect(()=>{!n&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
61
+ `))},[JSON.stringify(t)])}const l=G.useCallback(c=>{n||o(c)},[]);return[i,l]}function hs(e){const t=G.useRef(e);return Wl(()=>{t.current=e}),G.useRef((...r)=>(0,t.current)(...r)).current}function Kl(...e){return G.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Bp(r,t)})},e)}function Jo(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 Np={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function uo(e,t,r=void 0){const a={};for(const n in e){const s=e[n];let o="",i=!0;for(let l=0;l<s.length;l+=1){const c=s[l];c&&(o+=(i===!0?"":" ")+t(c),i=!1,r&&r[c]&&(o+=" "+r[c]))}a[n]=o}return a}function Dp(e){return typeof e=="string"}function zp(e,t,r){return e===void 0||Dp(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function un(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!t.includes(a)).forEach(a=>{r[a]=e[a]}),r}function Wo(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Gp(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:a,externalForwardedProps:n,className:s}=e;if(!t){const f=Pt(r==null?void 0:r.className,s,n==null?void 0:n.className,a==null?void 0:a.className),y={...r==null?void 0:r.style,...n==null?void 0:n.style,...a==null?void 0:a.style},h={...r,...n,...a};return f.length>0&&(h.className=f),Object.keys(y).length>0&&(h.style=y),{props:h,internalRef:void 0}}const o=un({...n,...a}),i=Wo(a),l=Wo(n),c=t(o),d=Pt(c==null?void 0:c.className,r==null?void 0:r.className,s,n==null?void 0:n.className,a==null?void 0:a.className),u={...c==null?void 0:c.style,...r==null?void 0:r.style,...n==null?void 0:n.style,...a==null?void 0:a.style},p={...c,...r,...l,...i};return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}function Hp(e,t,r){return typeof e=="function"?e(t,r):e}function Gt(e){var u;const{elementType:t,externalSlotProps:r,ownerState:a,skipResolvingSlotProps:n=!1,...s}=e,o=n?{}:Hp(r,a),{props:i,internalRef:l}=Gp({...s,externalSlotProps:o}),c=Kl(l,o==null?void 0:o.ref,(u=e.additionalProps)==null?void 0:u.ref);return zp(t,{...i,ref:c},a)}const qp=G.createContext();process.env.NODE_ENV!=="production"&&(b.node,b.bool);const Jp=()=>G.useContext(qp)??!1,Wp=G.createContext(void 0);process.env.NODE_ENV!=="production"&&(b.node,b.object);function Qp(e){const{theme:t,name:r,props:a}=e;if(!t||!t.components||!t.components[r])return a;const n=t.components[r];return n.defaultProps?Sn(n.defaultProps,a):!n.styleOverrides&&!n.variants?Sn(n,a):a}function Kp({props:e,name:t}){const r=G.useContext(Wp);return Qp({props:e,name:t,theme:{components:r}})}const Qo={theme:void 0};function Yp(e){let t,r;return function(n){let s=t;return(s===void 0||n.theme!==r)&&(Qo.theme=n.theme,s=Gl(e(Qo)),t=s,r=n.theme),s}}function Xp(e=""){function t(...a){if(!a.length)return"";const n=a[0];return typeof n=="string"&&!n.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}-`:""}${n}${t(...a.slice(1))})`:`, ${n}`}return(a,...n)=>`var(--${e?`${e}-`:""}${a}${t(...n)})`}const Ko=(e,t,r,a=[])=>{let n=e;t.forEach((s,o)=>{o===t.length-1?Array.isArray(n)?n[Number(s)]=r:n&&typeof n=="object"&&(n[s]=r):n&&typeof n=="object"&&(n[s]||(n[s]=a.includes(s)?[]:{}),n=n[s])})},Zp=(e,t,r)=>{function a(n,s=[],o=[]){Object.entries(n).forEach(([i,l])=>{(!r||r&&!r([...s,i]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?a(l,[...s,i],Array.isArray(l)?[...o,i]:o):t([...s,i],l,o))})}a(e)},eh=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>e.includes(a))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ms(e,t){const{prefix:r,shouldSkipGeneratingVar:a}=t||{},n={},s={},o={};return Zp(e,(i,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!a||!a(i,l))){const d=`--${r?`${r}-`:""}${i.join("-")}`,u=eh(i,l);Object.assign(n,{[d]:u}),Ko(s,i,`var(${d})`,c),Ko(o,i,`var(${d}, ${u})`,c)}},i=>i[0]==="vars"),{css:n,vars:s,varsWithDefaults:o}}function th(e,t={}){const{getSelector:r=x,disableCssColorScheme:a,colorSchemeSelector:n}=t,{colorSchemes:s={},components:o,defaultColorScheme:i="light",...l}=e,{vars:c,css:d,varsWithDefaults:u}=ms(l,t);let p=u;const f={},{[i]:y,...h}=s;if(Object.entries(h||{}).forEach(([D,I])=>{const{vars:F,css:q,varsWithDefaults:M}=ms(I,t);p=Qe(p,M),f[D]={css:q,vars:F}}),y){const{css:D,vars:I,varsWithDefaults:F}=ms(y,t);p=Qe(p,F),f[i]={css:D,vars:I}}function x(D,I){var q,M;let F=n;if(n==="class"&&(F=".%s"),n==="data"&&(F="[data-%s]"),n!=null&&n.startsWith("data-")&&!n.includes("%s")&&(F=`[${n}="%s"]`),D){if(F==="media")return e.defaultColorScheme===D?":root":{[`@media (prefers-color-scheme: ${((M=(q=s[D])==null?void 0:q.palette)==null?void 0:M.mode)||D})`]:{":root":I}};if(F)return e.defaultColorScheme===D?`:root, ${F.replace("%s",String(D))}`:F.replace("%s",String(D))}return":root"}return{vars:p,generateThemeVars:()=>{let D={...c};return Object.entries(f).forEach(([,{vars:I}])=>{D=Qe(D,I)}),D},generateStyleSheets:()=>{var L,B;const D=[],I=e.defaultColorScheme||"light";function F(g,$){Object.keys($).length&&D.push(typeof g=="string"?{[g]:{...$}}:g)}F(r(void 0,{...d}),d);const{[I]:q,...M}=f;if(q){const{css:g}=q,$=(B=(L=s[I])==null?void 0:L.palette)==null?void 0:B.mode,N=!a&&$?{colorScheme:$,...g}:{...g};F(r(I,{...N}),N)}return Object.entries(M).forEach(([g,{css:$}])=>{var z,re;const N=(re=(z=s[g])==null?void 0:z.palette)==null?void 0:re.mode,J=!a&&N?{colorScheme:N,...$}:{...$};F(r(g,{...J}),J)}),D}}}function rh(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const ah=Nn(),nh=Mp("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function sh(e){return $p({props:e,name:"MuiStack",defaultTheme:ah})}function oh(e,t){const r=G.Children.toArray(e).filter(Boolean);return r.reduce((a,n,s)=>(a.push(n),s<r.length-1&&a.push(G.cloneElement(t,{key:`separator-${s}`})),a),[])}const ih=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],lh=({ownerState:e,theme:t})=>{let r={display:"flex",flexDirection:"column",...ft({theme:t},us({values:e.direction,breakpoints:t.breakpoints.values}),a=>({flexDirection:a}))};if(e.spacing){const a=$n(t),n=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),{}),s=us({values:e.direction,base:n}),o=us({values:e.spacing,base:n});typeof s=="object"&&Object.keys(s).forEach((l,c,d)=>{if(!s[l]){const p=c>0?s[d[c-1]]:"column";s[l]=p}}),r=Qe(r,ft({theme:t},o,(l,c)=>e.useFlexGap?{gap:cr(a,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ih(c?s[c]:e.direction)}`]:cr(a,l)}}))}return r=Ru(t.breakpoints,r),r};function ch(e={}){const{createStyledComponent:t=nh,useThemeProps:r=sh,componentName:a="MuiStack"}=e,n=()=>uo({root:["root"]},l=>Ba(a,l),{}),s=t(lh),o=G.forwardRef(function(l,c){const d=r(l),u=xp(d),{component:p="div",direction:f="column",spacing:y=0,divider:h,children:x,className:E,useFlexGap:k=!1,...D}=u,I={direction:f,spacing:y,useFlexGap:k},F=n();return S.jsx(s,{as:p,ownerState:I,ref:c,className:Pt(F.root,E),...D,children:h?oh(x,h):x})});return process.env.NODE_ENV!=="production"&&(o.propTypes={children:b.node,direction:b.oneOfType([b.oneOf(["column-reverse","column","row-reverse","row"]),b.arrayOf(b.oneOf(["column-reverse","column","row-reverse","row"])),b.object]),divider:b.node,spacing:b.oneOfType([b.arrayOf(b.oneOfType([b.number,b.string])),b.number,b.object,b.string]),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])}),o}const Aa={black:"#000",white:"#fff"},dh={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"},Pr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Vr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},da={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Rr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},_r={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ar={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Yl(){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:Aa.white,default:Aa.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 uh=Yl();function Xl(){return{text:{primary:Aa.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:Aa.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 Yo=Xl();function Xo(e,t,r,a){const n=a.light||a,s=a.dark||a*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=_a(e.main,n):t==="dark"&&(e.dark=Ra(e.main,s)))}function ph(e="light"){return e==="dark"?{main:Rr[200],light:Rr[50],dark:Rr[400]}:{main:Rr[700],light:Rr[400],dark:Rr[800]}}function hh(e="light"){return e==="dark"?{main:Pr[200],light:Pr[50],dark:Pr[400]}:{main:Pr[500],light:Pr[300],dark:Pr[700]}}function mh(e="light"){return e==="dark"?{main:Vr[500],light:Vr[300],dark:Vr[700]}:{main:Vr[700],light:Vr[400],dark:Vr[800]}}function fh(e="light"){return e==="dark"?{main:_r[400],light:_r[300],dark:_r[700]}:{main:_r[700],light:_r[500],dark:_r[900]}}function gh(e="light"){return e==="dark"?{main:Ar[400],light:Ar[300],dark:Ar[700]}:{main:Ar[800],light:Ar[500],dark:Ar[900]}}function yh(e="light"){return e==="dark"?{main:da[400],light:da[300],dark:da[700]}:{main:"#ed6c02",light:da[500],dark:da[900]}}function po(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:a=.2,...n}=e,s=e.primary||ph(t),o=e.secondary||hh(t),i=e.error||mh(t),l=e.info||fh(t),c=e.success||gh(t),d=e.warning||yh(t);function u(h){const x=Ho(h,Yo.text.primary)>=r?Yo.text.primary:uh.text.primary;if(process.env.NODE_ENV!=="production"){const E=Ho(h,x);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${x} on ${h}`,"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 x}const p=({color:h,name:x,mainShade:E=500,lightShade:k=300,darkShade:D=700})=>{if(h={...h},!h.main&&h[E]&&(h.main=h[E]),!h.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
64
+ The color object needs to have a \`main\` property or a \`${E}\` property.`:Kt(11,x?` (${x})`:"",E));if(typeof h.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
65
+ \`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
66
66
 
67
67
  Did you intend to use one of the following approaches?
68
68
 
@@ -74,21 +74,42 @@ const theme1 = createTheme({ palette: {
74
74
 
75
75
  const theme2 = createTheme({ palette: {
76
76
  primary: { main: green[500] },
77
- } });`:Rt(12,v?` (${v})`:"",JSON.stringify(f.main)));return wi(f,"light",O,n),wi(f,"dark",k,n),f.contrastText||(f.contrastText=d(f.main)),f};let S;return t==="light"?S=Ka():t==="dark"&&(S=qa()),process.env.NODE_ENV!=="production"&&(S||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),$e({common:{...$r},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Bu,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n,...S},o)}function Ku(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;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 qu(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Yu(e){return Math.round(e*1e5)/1e5}const Ti={textTransform:"uppercase"},Ei='"Roboto", "Helvetica", "Arial", sans-serif';function Zu(e,t){const{fontFamily:r=Ei,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="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=n/14,S=u||(v=>`${v/l*p}rem`),b=(v,E,O,k,T)=>({fontFamily:r,fontWeight:v,fontSize:S(E),lineHeight:O,...r===Ei?{letterSpacing:`${Yu(k/E)}em`}:{},...T,...c}),f={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,Ti),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,Ti),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $e({htmlFontSize:l,pxToRem:S,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...f},d,{clone:!1})}const Xu=.2,Qu=.14,ef=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Xu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Qu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ef})`].join(",")}const tf=["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)],rf={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)"},nf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ci(e){return`${Math.round(e)}ms`}function of(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function af(e){const t={...rf,...e.easing},r={...nf,...e.duration};return{getAutoHeightDuration:of,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=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(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||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 a=="string"?a:Ci(a)} ${s} ${typeof l=="string"?l:Ci(l)}`).join(",")},...e,easing:t,duration:r}}const sf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lf(e){return rt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ya(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,s]=o[i];!lf(s)||a.startsWith("unstable_")?delete n[a]:rt(s)&&(n[a]={...s},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
77
+ } });`:Kt(12,x?` (${x})`:"",JSON.stringify(h.main)));return Xo(h,"light",k,a),Xo(h,"dark",D,a),h.contrastText||(h.contrastText=u(h.main)),h};let f;return t==="light"?f=Yl():t==="dark"&&(f=Xl()),process.env.NODE_ENV!=="production"&&(f||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Qe({common:{...Aa},mode:t,primary:p({color:s,name:"primary"}),secondary:p({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:i,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:dh,contrastThreshold:r,getContrastText:u,augmentColor:p,tonalOffset:a,...f},n)}function bh(e){const t={};return Object.entries(e).forEach(a=>{const[n,s]=a;typeof s=="object"&&(t[n]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function Sh(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function vh(e){return Math.round(e*1e5)/1e5}const Zo={textTransform:"uppercase"},ei='"Roboto", "Helvetica", "Arial", sans-serif';function xh(e,t){const{fontFamily:r=ei,fontSize:a=14,fontWeightLight:n=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:i=700,htmlFontSize:l=16,allVariants:c,pxToRem:d,...u}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof a!="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=a/14,f=d||(x=>`${x/l*p}rem`),y=(x,E,k,D,I)=>({fontFamily:r,fontWeight:x,fontSize:f(E),lineHeight:k,...r===ei?{letterSpacing:`${vh(D/E)}em`}:{},...I,...c}),h={h1:y(n,96,1.167,-1.5),h2:y(n,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(o,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(o,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(o,14,1.75,.4,Zo),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Zo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Qe({htmlFontSize:l,pxToRem:f,fontFamily:r,fontSize:a,fontWeightLight:n,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:i,...h},u,{clone:!1})}const Oh=.2,wh=.14,Ch=.12;function Ve(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Oh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wh})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ch})`].join(",")}const Ph=["none",Ve(0,2,1,-1,0,1,1,0,0,1,3,0),Ve(0,3,1,-2,0,2,2,0,0,1,5,0),Ve(0,3,3,-2,0,3,4,0,0,1,8,0),Ve(0,2,4,-1,0,4,5,0,0,1,10,0),Ve(0,3,5,-1,0,5,8,0,0,1,14,0),Ve(0,3,5,-1,0,6,10,0,0,1,18,0),Ve(0,4,5,-2,0,7,10,1,0,2,16,1),Ve(0,5,5,-3,0,8,10,1,0,3,14,2),Ve(0,5,6,-3,0,9,12,1,0,3,16,2),Ve(0,6,6,-3,0,10,14,1,0,4,18,3),Ve(0,6,7,-4,0,11,15,1,0,4,20,3),Ve(0,7,8,-4,0,12,17,2,0,5,22,4),Ve(0,7,8,-4,0,13,19,2,0,5,24,4),Ve(0,7,9,-4,0,14,21,2,0,5,26,4),Ve(0,8,9,-5,0,15,22,2,0,6,28,5),Ve(0,8,10,-5,0,16,24,2,0,6,30,5),Ve(0,8,11,-5,0,17,26,2,0,6,32,5),Ve(0,9,11,-5,0,18,28,2,0,7,34,6),Ve(0,9,12,-6,0,19,29,2,0,7,36,6),Ve(0,10,13,-6,0,20,31,3,0,8,38,7),Ve(0,10,13,-6,0,21,33,3,0,8,40,7),Ve(0,10,14,-6,0,22,35,3,0,8,42,7),Ve(0,11,14,-7,0,23,36,3,0,9,44,8),Ve(0,11,15,-7,0,24,38,3,0,9,46,8)],Vh={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)"},Rh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ti(e){return`${Math.round(e)}ms`}function _h(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ah(e){const t={...Vh,...e.easing},r={...Rh,...e.duration};return{getAutoHeightDuration:_h,create:(n=["all"],s={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:l=0,...c}=s;if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",u=p=>!Number.isNaN(parseFloat(p));!d(n)&&!Array.isArray(n)&&console.error('MUI: Argument "props" must be a string or Array.'),!u(o)&&!d(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),d(i)||console.error('MUI: Argument "easing" must be a string.'),!u(l)&&!d(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="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(n)?n:[n]).map(d=>`${d} ${typeof o=="string"?o:ti(o)} ${i} ${typeof l=="string"?l:ti(l)}`).join(",")},...e,easing:t,duration:r}}const Th={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Eh(e){return Ot(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Zl(e={}){const t={...e};function r(a){const n=Object.entries(a);for(let s=0;s<n.length;s++){const[o,i]=n[s];!Eh(i)||o.startsWith("unstable_")?delete a[o]:Ot(i)&&(a[o]={...i},r(a[o]))}}return r(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 mo(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Rt(20));const u=Io(i),d=_n(e);let p=$e(d,{mixins:qu(d.breakpoints,n),palette:u,shadows:tf.slice(),typography:Zu(u,s),transitions:af(a),zIndex:{...sf}});if(p=$e(p,c),p=t.reduce((S,b)=>$e(S,b),p),process.env.NODE_ENV!=="production"){const S=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(f,v)=>{let E;for(E in f){const O=f[E];if(S.includes(E)&&Object.keys(O).length>0){if(process.env.NODE_ENV!=="production"){const k=Br("",E);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${E}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${k}' syntax:`,JSON.stringify({root:{[`&.${k}`]:O}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
86
- `))}f[E]={}}}};Object.keys(p.components).forEach(f=>{const v=p.components[f].styleOverrides;v&&f.startsWith("Mui")&&b(v,f)})}return p.unstable_sxConfig={...Fr,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(b){return ur({sx:b,theme:this})},p.toRuntimeSource=Ya,p}function cf(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 uf=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=cf(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Za(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Xa(e){return e==="dark"?uf:[]}function ff(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,i=Io(t);return{palette:i,opacity:{...Za(i.mode),...r},overlays:n||Xa(i.mode),...o}}function df(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 pf=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],gf=e=>(t,r)=>{const n=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 a={};return pf(e.cssVarPrefix).forEach(s=>{a[s]=r[s],delete r[s]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",t)]:a,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...a}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function hf(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function w(e,t,r){!e[t]&&r&&(e[t]=r)}function Rr(e){return typeof e!="string"||!e.startsWith("hsl")?e:Wa(e)}function dt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Or(Rr(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 mf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const et=e=>{try{return e()}catch{}},yf=(e="mui")=>Au(e);function ro(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=ff({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=mo({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[n]={...t,palette:i,opacity:{...Za(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Xa(o)},a}function bf(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=df,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(r)[0],d=n||(r.light&&u!=="light"?"light":u),p=yf(i),{[d]:S,light:b,dark:f,...v}=r,E={...v};let O=S;if((d==="dark"&&!("dark"in r)||d==="light"&&!("light"in r))&&(O=!0),!O)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:Rt(21,d));const k=ro(E,O,c,d);b&&!E.light&&ro(E,b,void 0,"light"),f&&!E.dark&&ro(E,f,void 0,"dark");let T={defaultColorScheme:d,...k,cssVarPrefix:i,colorSchemeSelector:s,rootSelector:l,getCssVar:p,colorSchemes:E,font:{...Ku(k.typography),...k.font},spacing:mf(c.spacing)};Object.keys(T.colorSchemes).forEach(H=>{const g=T.colorSchemes[H].palette,_=M=>{const N=M.split("-"),D=N[1],Q=N[2];return p(M,g[D][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")),hf(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){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",_("palette-error-main")),w(g.Alert,"infoFilledBg",_("palette-info-main")),w(g.Alert,"successFilledBg",_("palette-success-main")),w(g.Alert,"warningFilledBg",_("palette-warning-main")),w(g.Alert,"errorFilledColor",et(()=>g.getContrastText(g.error.main))),w(g.Alert,"infoFilledColor",et(()=>g.getContrastText(g.info.main))),w(g.Alert,"successFilledColor",et(()=>g.getContrastText(g.success.main))),w(g.Alert,"warningFilledColor",et(()=>g.getContrastText(g.warning.main))),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",_("palette-error-main")),w(g.Alert,"infoIconColor",_("palette-info-main")),w(g.Alert,"successIconColor",_("palette-success-main")),w(g.Alert,"warningIconColor",_("palette-warning-main")),w(g.AppBar,"defaultBg",_("palette-grey-100")),w(g.Avatar,"defaultBg",_("palette-grey-400")),w(g.Button,"inheritContainedBg",_("palette-grey-300")),w(g.Button,"inheritContainedHoverBg",_("palette-grey-A100")),w(g.Chip,"defaultBorder",_("palette-grey-400")),w(g.Chip,"defaultAvatarColor",_("palette-grey-700")),w(g.Chip,"defaultIconColor",_("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",se(g.primary.main,.62)),w(g.LinearProgress,"secondaryBg",se(g.secondary.main,.62)),w(g.LinearProgress,"errorBg",se(g.error.main,.62)),w(g.LinearProgress,"infoBg",se(g.info.main,.62)),w(g.LinearProgress,"successBg",se(g.success.main,.62)),w(g.LinearProgress,"warningBg",se(g.warning.main,.62)),w(g.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.11)`),w(g.Slider,"primaryTrack",se(g.primary.main,.62)),w(g.Slider,"secondaryTrack",se(g.secondary.main,.62)),w(g.Slider,"errorTrack",se(g.error.main,.62)),w(g.Slider,"infoTrack",se(g.info.main,.62)),w(g.Slider,"successTrack",se(g.success.main,.62)),w(g.Slider,"warningTrack",se(g.warning.main,.62));const M=Wr(g.background.default,.8);w(g.SnackbarContent,"bg",M),w(g.SnackbarContent,"color",et(()=>g.getContrastText(M))),w(g.SpeedDialAction,"fabHoverBg",Wr(g.background.paper,.15)),w(g.StepConnector,"border",_("palette-grey-400")),w(g.StepContent,"border",_("palette-grey-400")),w(g.Switch,"defaultColor",_("palette-common-white")),w(g.Switch,"defaultDisabledColor",_("palette-grey-100")),w(g.Switch,"primaryDisabledColor",se(g.primary.main,.62)),w(g.Switch,"secondaryDisabledColor",se(g.secondary.main,.62)),w(g.Switch,"errorDisabledColor",se(g.error.main,.62)),w(g.Switch,"infoDisabledColor",se(g.info.main,.62)),w(g.Switch,"successDisabledColor",se(g.success.main,.62)),w(g.Switch,"warningDisabledColor",se(g.warning.main,.62)),w(g.TableCell,"border",se(Gr(g.divider,1),.88)),w(g.Tooltip,"bg",Gr(g.grey[700],.92))}if(g.mode==="dark"){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",_("palette-error-dark")),w(g.Alert,"infoFilledBg",_("palette-info-dark")),w(g.Alert,"successFilledBg",_("palette-success-dark")),w(g.Alert,"warningFilledBg",_("palette-warning-dark")),w(g.Alert,"errorFilledColor",et(()=>g.getContrastText(g.error.dark))),w(g.Alert,"infoFilledColor",et(()=>g.getContrastText(g.info.dark))),w(g.Alert,"successFilledColor",et(()=>g.getContrastText(g.success.dark))),w(g.Alert,"warningFilledColor",et(()=>g.getContrastText(g.warning.dark))),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",_("palette-error-main")),w(g.Alert,"infoIconColor",_("palette-info-main")),w(g.Alert,"successIconColor",_("palette-success-main")),w(g.Alert,"warningIconColor",_("palette-warning-main")),w(g.AppBar,"defaultBg",_("palette-grey-900")),w(g.AppBar,"darkBg",_("palette-background-paper")),w(g.AppBar,"darkColor",_("palette-text-primary")),w(g.Avatar,"defaultBg",_("palette-grey-600")),w(g.Button,"inheritContainedBg",_("palette-grey-800")),w(g.Button,"inheritContainedHoverBg",_("palette-grey-700")),w(g.Chip,"defaultBorder",_("palette-grey-700")),w(g.Chip,"defaultAvatarColor",_("palette-grey-300")),w(g.Chip,"defaultIconColor",_("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",ae(g.primary.main,.5)),w(g.LinearProgress,"secondaryBg",ae(g.secondary.main,.5)),w(g.LinearProgress,"errorBg",ae(g.error.main,.5)),w(g.LinearProgress,"infoBg",ae(g.info.main,.5)),w(g.LinearProgress,"successBg",ae(g.success.main,.5)),w(g.LinearProgress,"warningBg",ae(g.warning.main,.5)),w(g.Skeleton,"bg",`rgba(${_("palette-text-primaryChannel")} / 0.13)`),w(g.Slider,"primaryTrack",ae(g.primary.main,.5)),w(g.Slider,"secondaryTrack",ae(g.secondary.main,.5)),w(g.Slider,"errorTrack",ae(g.error.main,.5)),w(g.Slider,"infoTrack",ae(g.info.main,.5)),w(g.Slider,"successTrack",ae(g.success.main,.5)),w(g.Slider,"warningTrack",ae(g.warning.main,.5));const M=Wr(g.background.default,.98);w(g.SnackbarContent,"bg",M),w(g.SnackbarContent,"color",et(()=>g.getContrastText(M))),w(g.SpeedDialAction,"fabHoverBg",Wr(g.background.paper,.15)),w(g.StepConnector,"border",_("palette-grey-600")),w(g.StepContent,"border",_("palette-grey-600")),w(g.Switch,"defaultColor",_("palette-grey-300")),w(g.Switch,"defaultDisabledColor",_("palette-grey-600")),w(g.Switch,"primaryDisabledColor",ae(g.primary.main,.55)),w(g.Switch,"secondaryDisabledColor",ae(g.secondary.main,.55)),w(g.Switch,"errorDisabledColor",ae(g.error.main,.55)),w(g.Switch,"infoDisabledColor",ae(g.info.main,.55)),w(g.Switch,"successDisabledColor",ae(g.success.main,.55)),w(g.Switch,"warningDisabledColor",ae(g.warning.main,.55)),w(g.TableCell,"border",ae(Gr(g.divider,1),.68)),w(g.Tooltip,"bg",Gr(g.grey[700],.92))}dt(g.background,"default"),dt(g.background,"paper"),dt(g.common,"background"),dt(g.common,"onBackground"),dt(g,"divider"),Object.keys(g).forEach(M=>{const N=g[M];M!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&w(g[M],"mainChannel",Or(Rr(N.main))),N.light&&w(g[M],"lightChannel",Or(Rr(N.light))),N.dark&&w(g[M],"darkChannel",Or(Rr(N.dark))),N.contrastText&&w(g[M],"contrastTextChannel",Or(Rr(N.contrastText))),M==="text"&&(dt(g[M],"primary"),dt(g[M],"secondary")),M==="action"&&(N.active&&dt(g[M],"active"),N.selected&&dt(g[M],"selected")))})}),T=t.reduce((H,g)=>$e(H,g),T);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:gf(T)},{vars:$,generateThemeVars:I,generateStyleSheets:B}=ju(T,P);return T.vars=$,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([H,g])=>{T[H]=g}),T.generateThemeVars=I,T.generateStyleSheets=B,T.generateSpacing=function(){return Na(c.spacing,On(this))},T.getColorSchemeSelector=_u(s),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=a,T.unstable_sxConfig={...Fr,...c==null?void 0:c.unstable_sxConfig},T.unstable_sx=function(g){return ur({sx:g,theme:this})},T.toRuntimeSource=Ya,T}function Oi(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Io({...r===!0?{}:r.palette,mode:t})})}function Qa(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode,...a}=e,s=i||"light",l=o==null?void 0:o[s],c={...o,...r?{[s]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return mo(e,...t);let u=r;"palette"in e||c[s]&&(c[s]!==!0?u=c[s].palette:s==="dark"&&(u={mode:"dark"}));const d=mo({...e,palette:u},...t);return d.defaultColorScheme=s,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},Oi(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},Oi(d,"light",c.light)),d}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),bf({...a,colorSchemes:c,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const Sf=Qa(),vf="$$material";function Mo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xf=e=>Mo(e)&&e!=="classes",ht=za({themeId:vf,defaultTheme:Sf,rootShouldForwardProp:xf});process.env.NODE_ENV!=="production"&&(h.node,h.object.isRequired);function No(e){return Ou(e)}const lr=Fu({createStyledComponent:ht("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>No({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(lr.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 G=e=>typeof e=="string",Tr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},Ri=e=>e==null?"":""+e,wf=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Tf=/###/g,Ai=e=>e&&e.indexOf("###")>-1?e.replace(Tf,"."):e,ki=e=>!e||G(e),kr=(e,t,r)=>{const n=G(t)?t.split("."):t;let o=0;for(;o<n.length-1;){if(ki(e))return{};const i=Ai(n[o]);!e[i]&&r&&(e[i]=new r),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return ki(e)?{}:{obj:e,k:Ai(n[o])}},Pi=(e,t,r)=>{const{obj:n,k:o}=kr(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=kr(e,a,Object);for(;s.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=kr(e,a,Object),s!=null&&s.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},Ef=(e,t,r,n)=>{const{obj:o,k:i}=kr(e,t,Object);o[i]=o[i]||[],o[i].push(r)},pn=(e,t)=>{const{obj:r,k:n}=kr(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},Cf=(e,t,r)=>{const n=pn(e,r);return n!==void 0?n:pn(t,r)},es=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?G(e[n])||e[n]instanceof String||G(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):es(e[n],t[n],r):e[n]=t[n]);return e},nr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Of={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Rf=e=>G(e)?e.replace(/[&<>"'\/]/g,t=>Of[t]):e;class Af{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const kf=[" ",",","?","!",";"],Pf=new Af(20),jf=(e,t,r)=>{t=t||"",r=r||"";const n=kf.filter(a=>t.indexOf(a)<0&&r.indexOf(a)<0);if(n.length===0)return!0;const o=Pf.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(e);if(!i){const a=e.indexOf(r);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i},yo=function(e,t){let r=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 n=t.split(r);let o=e;for(let i=0;i<n.length;){if(!o||typeof o!="object")return;let a,s="";for(let l=i;l<n.length;++l)if(l!==i&&(s+=r),s+=n[l],a=o[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<n.length-1)continue;i+=l-i+1;break}o=a}return o},gn=e=>e==null?void 0:e.replace("_","-"),_f={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var r,n;(n=(r=console==null?void 0:console[e])==null?void 0:r.apply)==null||n.call(r,console,t)}};class hn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||_f,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,o){return o&&!this.debug?null:(G(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new hn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new hn(this.logger,t)}}var ot=new hn;class Ln{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s.apply(s,[t,...n])})}}class ji extends Ln{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){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,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,r],n&&(Array.isArray(n)?s.push(...n):G(n)&&i?s.push(...n.split(i)):s.push(n)));const l=pn(this.data,s);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=s[0],r=s[1],n=s.slice(2).join(".")),l||!a||!G(n)?l:yo((u=(c=this.data)==null?void 0:c[t])==null?void 0:u[r],n,i)}addResource(t,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,r];n&&(s=s.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(s=t.split("."),o=r,r=s[1]),this.addNamespaces(r),Pi(this.data,s,o),i.silent||this.emit("added",t,r,n,o)}addResources(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(G(n[i])||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,r];t.indexOf(".")>-1&&(s=t.split("."),o=n,n=r,r=s[1]),this.addNamespaces(r);let l=pn(this.data,s)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?es(l,n,i):l={...l,...n},Pi(this.data,s,l),a.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var ts={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(i=>{var a;t=((a=this.processors[i])==null?void 0:a.process(t,r,n,o))??t}),t}};const _i={},$i=e=>!G(e)&&typeof e!="boolean"&&typeof e!="number";class mn extends Ln{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),wf(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ot.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return(n==null?void 0:n.res)!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let i=r.ns||this.options.defaultNS||[];const a=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!jf(t,n,o);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:G(i)?[i]:i};const c=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:G(i)?[i]:i}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],r),l=s[s.length-1],c=r.lng||this.language,u=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode"){if(u){const _=r.nsSeparator||this.options.nsSeparator;return o?{res:`${l}${_}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${_}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a}const d=this.resolve(t,r);let p=d==null?void 0:d.res;const S=(d==null?void 0:d.usedKey)||a,b=(d==null?void 0:d.exactUsedKey)||a,f=["[object Number]","[object Function]","[object RegExp]"],v=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,O=r.count!==void 0&&!G(r.count),k=mn.hasDefaultValue(r),T=O?this.pluralResolver.getSuffix(c,r.count,r):"",P=r.ordinal&&O?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",$=O&&!r.ordinal&&r.count===0,I=$&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${T}`]||r[`defaultValue${P}`]||r.defaultValue;let B=p;E&&!p&&k&&(B=I);const H=$i(B),g=Object.prototype.toString.apply(B);if(E&&B&&H&&f.indexOf(g)<0&&!(G(v)&&Array.isArray(B))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,B,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(d.res=_,d.usedParams=this.getUsedParamsDetails(r),d):_}if(i){const _=Array.isArray(B),M=_?[]:{},N=_?b:S;for(const D in B)if(Object.prototype.hasOwnProperty.call(B,D)){const Q=`${N}${i}${D}`;k&&!p?M[D]=this.translate(Q,{...r,defaultValue:$i(I)?I[D]:void 0,joinArrays:!1,ns:s}):M[D]=this.translate(Q,{...r,joinArrays:!1,ns:s}),M[D]===Q&&(M[D]=B[D])}p=M}}else if(E&&G(v)&&Array.isArray(p))p=p.join(v),p&&(p=this.extendTranslation(p,t,r,n));else{let _=!1,M=!1;!this.isValidLookup(p)&&k&&(_=!0,p=I),this.isValidLookup(p)||(M=!0,p=a);const D=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:p,Q=k&&I!==p&&this.options.updateMissing;if(M||_||Q){if(this.logger.log(Q?"updateKey":"missingKey",c,l,a,Q?I:p),i){const le=this.resolve(a,{...r,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 Ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ae&&Ae[0])for(let le=0;le<Ae.length;le++)Y.push(Ae[le]);else this.options.saveMissingTo==="all"?Y=this.languageUtils.toResolveHierarchy(r.lng||this.language):Y.push(r.lng||this.language);const ee=(le,Ce,Z)=>{var lt;const Ne=k&&Z!==p?Z:D;this.options.missingKeyHandler?this.options.missingKeyHandler(le,l,Ce,Ne,Q,r):(lt=this.backendConnector)!=null&&lt.saveMissing&&this.backendConnector.saveMissing(le,l,Ce,Ne,Q,r),this.emit("missingKey",le,l,Ce,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?Y.forEach(le=>{const Ce=this.pluralResolver.getSuffixes(le,r);$&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ce.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ce.push(`${this.options.pluralSeparator}zero`),Ce.forEach(Z=>{ee([le],a+Z,r[`defaultValue${Z}`]||I)})}):ee(Y,a,I))}p=this.extendTranslation(p,t,r,d,n),M&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${a}`),(M||_)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,_?p:void 0))}return o?(d.res=p,d.usedParams=this.getUsedParamsDetails(r),d):p}extendTranslation(t,r,n,o,i){var c,u;var a=this;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const d=G(t)&&(((u=n==null?void 0:n.interpolation)==null?void 0:u.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(d){const b=t.match(this.interpolator.nestingRegexp);p=b&&b.length}let S=n.replace&&!G(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(S={...this.options.interpolation.defaultVariables,...S}),t=this.interpolator.interpolate(t,S,n.lng||this.language||o.usedLng,n),d){const b=t.match(this.interpolator.nestingRegexp),f=b&&b.length;p<f&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var b=arguments.length,f=new Array(b),v=0;v<b;v++)f[v]=arguments[v];return(i==null?void 0:i[0])===f[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${r[0]}`),null):a.translate(...f,r)},n)),n.interpolation&&this.interpolator.reset()}const s=n.postProcess||this.options.postProcess,l=G(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&n.applyPostProcessor!==!1&&(t=ts.handle(l,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,i,a,s;return G(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(l,r),u=c.key;o=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const p=r.count!==void 0&&!G(r.count),S=p&&!r.ordinal&&r.count===0,b=r.context!==void 0&&(G(r.context)||typeof r.context=="number")&&r.context!=="",f=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);d.forEach(v=>{var E,O;this.isValidLookup(n)||(s=v,!_i[`${f[0]}-${v}`]&&((E=this.utils)!=null&&E.hasLoadedNamespace)&&!((O=this.utils)!=null&&O.hasLoadedNamespace(s))&&(_i[`${f[0]}-${v}`]=!0,this.logger.warn(`key "${o}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" 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(k=>{var $;if(this.isValidLookup(n))return;a=k;const T=[u];if(($=this.i18nFormat)!=null&&$.addLookupKeys)this.i18nFormat.addLookupKeys(T,u,k,v,r);else{let I;p&&(I=this.pluralResolver.getSuffix(k,r.count,r));const B=`${this.options.pluralSeparator}zero`,H=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(T.push(u+I),r.ordinal&&I.indexOf(H)===0&&T.push(u+I.replace(H,this.options.pluralSeparator)),S&&T.push(u+B)),b){const g=`${u}${this.options.contextSeparator}${r.context}`;T.push(g),p&&(T.push(g+I),r.ordinal&&I.indexOf(H)===0&&T.push(g+I.replace(H,this.options.pluralSeparator)),S&&T.push(g+B))}}let P;for(;P=T.pop();)this.isValidLookup(n)||(i=P,n=this.getResource(k,v,P,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){var i;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!G(t.replace);let o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const i of r)delete o[i]}return o}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}class Li{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ot.create("languageUtils")}getScriptPartFromCode(t){if(t=gn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=gn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(G(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(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 r;return t.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(i=>{if(i===o)return i;if(!(i.indexOf("-")<0&&o.indexOf("-")<0)&&(i.indexOf("-")>0&&o.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===o||i.indexOf(o)===0&&o.length>1))return i})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),G(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return G(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))):G(t)&&i(this.formatLanguageCode(t)),n.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}const Ii={zero:0,one:1,two:2,few:3,many:4,other:5},Mi={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class $f{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ot.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=gn(t==="dev"?"en":t),o=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Mi;if(!t.match(/-|_/))return Mi;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,r)}return this.pluralRulesCache[i]=a,a}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((o,i)=>Ii[o]-Ii[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}}const Ni=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=Cf(e,t,r);return!i&&o&&G(r)&&(i=yo(e,r,n),i===void 0&&(i=yo(t,r,n))),i},no=e=>e.replace(/\$/g,"$$$$");class Lf{constructor(){var r;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ot.create("interpolator"),this.options=t,this.format=((r=t==null?void 0:t.interpolation)==null?void 0:r.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:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:p,nestingPrefixEscaped:S,nestingSuffix:b,nestingSuffixEscaped:f,nestingOptionsSeparator:v,maxReplaces:E,alwaysFormat:O}=t.interpolation;this.escape=r!==void 0?r:Rf,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?nr(i):a||"{{",this.suffix=s?nr(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?nr(p):S||nr("$t("),this.nestingSuffix=b?nr(b):f||nr(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=E||1e3,this.alwaysFormat=O!==void 0?O:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>(r==null?void 0:r.source)===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,o){var S;let i,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=b=>{if(b.indexOf(this.formatSeparator)<0){const O=Ni(r,l,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,n,{...o,...r,interpolationkey:b}):O}const f=b.split(this.formatSeparator),v=f.shift().trim(),E=f.join(this.formatSeparator).trim();return this.format(Ni(r,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),E,n,{...o,...r,interpolationkey:v})};this.resetRegExp();const u=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((S=o==null?void 0:o.interpolation)==null?void 0:S.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>no(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?no(this.escape(b)):no(b)}].forEach(b=>{for(s=0;i=b.regex.exec(t);){const f=i[1].trim();if(a=c(f),a===void 0)if(typeof u=="function"){const E=u(t,i,o);a=G(E)?E:""}else if(o&&Object.prototype.hasOwnProperty.call(o,f))a="";else if(d){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${t}`),a="";else!G(a)&&!this.useRawValueToEscape&&(a=Ri(a));const v=b.safeValue(a);if(t=t.replace(i[0],v),d?(b.regex.lastIndex+=a.length,b.regex.lastIndex-=i[0].length):b.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,a;const s=(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,a);const S=p.match(/'/g),b=p.match(/"/g);(((S==null?void 0:S.length)??0)%2===0&&!b||b.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),c&&(a={...c,...a})}catch(f){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,f),`${l}${u}${p}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];a={...n},a=a.replace&&!G(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=u.shift(),l=u,c=!0}if(i=r(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&!G(i))return i;G(i)||(i=Ri(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const If=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);t==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},or=e=>{const t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=n+JSON.stringify(i);let s=t[a];return s||(s=e(gn(n),o),t[a]=s),s(r)}};class Mf{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ot.create("formatter"),this.options=t,this.formats={number:or((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return i=>o.format(i)}),currency:or((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return i=>o.format(i)}),datetime:or((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return i=>o.format(i)}),relativetime:or((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return i=>o.format(i,n.range||"day")}),list:or((r,n)=>{const o=new Intl.ListFormat(r,{...n});return i=>o.format(i)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=or(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(s=>s.indexOf(")")>-1)){const s=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{var d;const{formatName:c,formatOptions:u}=If(l);if(this.formats[c]){let p=s;try{const S=((d=o==null?void 0:o.formatParams)==null?void 0:d[o.interpolationkey])||{},b=S.locale||S.lng||o.locale||o.lng||n;p=this.formats[c](s,b,{...u,...o,...S})}catch(S){this.logger.warn(S)}return p}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}const Nf=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Df extends Ln{constructor(t,r,n){var i,a;let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=ot.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=[],(a=(i=this.backend)==null?void 0:i.init)==null||a.call(i,n,o.backend,o)}queueLoad(t,r,n,o){const i={},a={},s={},l={};return t.forEach(c=>{let u=!0;r.forEach(d=>{const p=`${c}|${d}`;!n.reload&&this.store.hasResourceBundle(c,d)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,u=!1,a[p]===void 0&&(a[p]=!0),i[p]===void 0&&(i[p]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(s[c]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const o=t.split("|"),i=o[0],a=o[1];r&&this.emit("failedLoading",i,a,r),!r&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const s={};this.queue.forEach(l=>{Ef(l.loaded,[i],a),Nf(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{s[c][d]===void 0&&(s[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(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,r,n,o+1,i*2,a)},i);return}a(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,r,s)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();G(t)&&(t=this.languageUtils.toResolveHierarchy(t)),G(r)&&(r=[r]);const i=this.queueLoad(t,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,r,n,o,i){var l,c,u,d,p;let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=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(r))){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((p=this.backend)!=null&&p.create){const S={...a,isUpdate:i},b=this.backend.create.bind(this.backend);if(b.length<6)try{let f;b.length===5?f=b(t,r,n,o,S):f=b(t,r,n,o),f&&typeof f.then=="function"?f.then(v=>s(null,v)).catch(s):s(null,f)}catch(f){s(f)}else b(t,r,n,o,s,S)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const Di=()=>({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]),G(e[1])&&(t.defaultValue=e[1]),G(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Fi=e=>{var t,r;return G(e.ns)&&(e.ns=[e.ns]),G(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),G(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((r=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:r.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Hr=()=>{},Ff=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Lr extends Ln{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Fi(t),this.services={},this.logger=ot,this.modules={external:[]},Ff(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),r.defaultNS==null&&r.ns&&(G(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=Di();this.options={...o,...this.options,...Fi(r)},this.options.interpolation={...o.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?ot.init(i(this.modules.logger),this.options):ot.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Mf;const d=new Li(this.options);this.store=new ji(this.options.resources,this.options);const p=this.services;p.logger=ot,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 Lf(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new Df(i(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(S){for(var b=arguments.length,f=new Array(b>1?b-1:0),v=1;v<b;v++)f[v-1]=arguments[v];t.emit(S,...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 mn(this.services,this.options),this.translator.on("*",function(S){for(var b=arguments.length,f=new Array(b>1?b-1:0),v=1;v<b;v++)f[v-1]=arguments[v];t.emit(S,...f)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Hr),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=Tr(),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),n(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,a;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hr;const o=G(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const s=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(d=>{d!=="cimode"&&s.indexOf(d)<0&&s.push(d)})};o?l(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>l(u)),(a=(i=this.options.preload)==null?void 0:i.forEach)==null||a.call(i,c=>l(c)),this.services.backendConnector.load(s,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(c)})}else n(null)}reloadResources(t,r,n){const o=Tr();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=Hr),this.services.backendConnector.reload(t,r,i=>{o.resolve(),n(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ts.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const o=Tr();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},s=l=>{var u,d;!t&&!l&&this.services.languageDetector&&(l=[]);const c=G(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=>{a(p,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),o}getFixedT(t,r,n){var o=this;const i=function(a,s){let l;if(typeof s!="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([a,s].concat(u))}else l={...s};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const p=o.options.keySeparator||".";let S;return l.keyPrefix&&Array.isArray(a)?S=a.map(b=>`${l.keyPrefix}${p}${b}`):S=l.keyPrefix?`${l.keyPrefix}${p}${a}`:a,o.t(S,l)};return G(t)?i.lng=t:i.lngs=t,i.ns=r,i.keyPrefix=n,i}t(){var o;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(o=this.translator)==null?void 0:o.translate(...r)}exists(){var o;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(o=this.translator)==null?void 0:o.exists(...r)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(r.precheck){const s=r.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!o||a(i,t)))}loadNamespaces(t,r){const n=Tr();return this.options.ns?(G(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Tr();G(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(a=>o.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),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 r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((i=this.services)==null?void 0:i.languageUtils)||new Li(Di());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Lr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hr;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new Lr(o);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const s=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 ji(s,o),i.services.resourceStore=i.store}return i.translator=new mn(i.services,o),i.translator.on("*",function(s){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(s,...c)}),i.init(o,r),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 Pe=Lr.createInstance();Pe.createInstance=Lr.createInstance;Pe.createInstance;Pe.dir;Pe.init;Pe.loadResources;Pe.reloadResources;Pe.use;Pe.changeLanguage;Pe.getFixedT;Pe.t;Pe.exists;Pe.setDefaultNamespace;Pe.hasLoadedNamespace;Pe.loadNamespaces;Pe.loadLanguages;const Bf={"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","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physische Robotersteuerung","SafetyBar.ControllerType.Virtual.lb":"Virtuelle Robotersteuerung","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
88
- Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen."},Vf={"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","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical controller","SafetyBar.ControllerType.Virtual.lb":"Virtual controller","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."},rs=Pe.createInstance();rs.use(Cl).init({supportedLngs:["en","de"],resources:{en:{translations:Vf},de:{translations:Bf}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function fr(e){return r=>m.jsx(Uf,{children:m.jsx(e,{...r})})}const Uf=({children:e})=>m.jsx(Te.I18nextProvider,{i18n:rs,children:e}),zf=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("g",{id:"JogMinus"},C.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),Jf=z.forwardRef(zf),Gf=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("g",{id:"JogPlus"},C.createElement("g",{id:"Plus"},C.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),C.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),C.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),Wf=z.forwardRef(Gf);function In(e){z.useEffect(e,[])}function ns(e){In(()=>cr.autorun(e))}function os(e,t,r){In(()=>cr.reaction(e,t,r))}function dr(e){return In(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const bo=fr(ve.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:i,activeJoggingDirection:a,...s})=>{var k,T,P,$,I,B,H;dr(()=>{const g=r(),_=p.current;_&&(_.textContent=g)});const l=j.useTheme(),[c,u]=z.useState(null);z.useEffect(()=>{i&&O()},[i]);const d=a||c,p=z.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const S=d?(k=e.buttonBackgroundColor)==null?void 0:k.pressed:e.borderColor,b={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},f={...b,backgroundColor:(T=e.buttonBackgroundColor)==null?void 0:T.default,":hover":{backgroundColor:(P=e.buttonBackgroundColor)==null?void 0:P.hovered},":active":{backgroundColor:($=e.buttonBackgroundColor)==null?void 0:$.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(I=e.buttonBackgroundColor)==null?void 0:I.disabled,"svg path":{fill:l.palette.action.disabled}}},v={...b,backgroundColor:(B=e.buttonBackgroundColor)==null?void 0:B.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(H=e.buttonBackgroundColor)==null?void 0:H.pressed,"svg path":{fill:l.palette.action.disabled}}};function E(g,_){i||g.button===0&&(u(_),n(_))}function O(){u(null),o()}return m.jsxs(lr,{height:"64px",direction:"row",justifyContent:"center",...s,children:[m.jsx(j.IconButton,{disabled:i,disableRipple:!0,onPointerDown:g=>E(g,"-"),onPointerUp:O,onPointerOut:O,size:"large",sx:{...d==="-"?v:f,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${S??"#fff"}`,borderBottom:`2px solid ${S??"#fff"}`,borderTop:`2px solid ${S??"#fff"}`},children:m.jsx(Jf,{})}),m.jsxs(lr,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${S??"#fff"}`,borderTop:`2px solid ${S??"#fff"}`},children:[m.jsx(lr,{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}),m.jsx(j.Typography,{height:"22px",sx:{fontSize:"15px",color:i?l.palette.action.disabled:e.color,fontWeight:700},ref:p,children:r()})]}),m.jsx(j.IconButton,{disableRipple:!0,disabled:i,onPointerDown:g=>E(g,"+"),onPointerUp:O,onPointerOut:O,size:"large",sx:{...d==="+"?v:f,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${S??"#fff"}`,borderBottom:`2px solid ${S??"#fff"}`,borderTop:`2px solid ${S??"#fff"}`},children:m.jsx(Wf,{})})]})})),Ut=Ru;function Hf(e){return Br("MuiSvgIcon",e)}Fa("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kf=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${_e(t)}`,`fontSize${_e(r)}`]};return Lo(o,Hf,n)},qf=ht("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${_e(r.color)}`],t[`fontSize${_e(r.fontSize)}`]]}})(Ut(({theme:e})=>{var t,r,n,o,i,a,s,l,c,u,d,p,S,b;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:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:f=>!f.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,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,E;return{props:{color:f},style:{color:(E=(v=(e.vars??e).palette)==null?void 0:v[f])==null?void 0:E.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:(b=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),yn=C.forwardRef(function(t,r){const n=No({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24",...S}=n,b=C.isValidElement(o)&&o.type==="svg",f={...n,color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:b},v={};u||(v.viewBox=p);const E=Kf(f);return m.jsxs(qf,{as:s,className:it(E.root,i),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:r,...v,...S,...b&&o.props,ownerState:f,children:[b?o.props.children:o,d?m.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(yn.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});yn.muiName="SvgIcon";function is(e,t){function r(n,o){return m.jsx(yn,{"data-testid":`${t}Icon`,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=yn.muiName,C.memo(C.forwardRef(r))}const Yf=is(m.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Zf=is(m.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Dt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var as=typeof global=="object"&&global&&global.Object===Object&&global,Xf=typeof self=="object"&&self&&self.Object===Object&&self,st=as||Xf||Function("return this")(),oo=function(){return st.Date.now()},Qf=/\s/;function ed(e){for(var t=e.length;t--&&Qf.test(e.charAt(t)););return t}var td=/^\s+/;function rd(e){return e&&e.slice(0,ed(e)+1).replace(td,"")}var kt=st.Symbol,ss=Object.prototype,nd=ss.hasOwnProperty,od=ss.toString,Er=kt?kt.toStringTag:void 0;function id(e){var t=nd.call(e,Er),r=e[Er];try{e[Er]=void 0;var n=!0}catch{}var o=od.call(e);return n&&(t?e[Er]=r:delete e[Er]),o}var ad=Object.prototype,sd=ad.toString;function ld(e){return sd.call(e)}var cd="[object Null]",ud="[object Undefined]",Bi=kt?kt.toStringTag:void 0;function zt(e){return e==null?e===void 0?ud:cd:Bi&&Bi in Object(e)?id(e):ld(e)}function Ft(e){return e!=null&&typeof e=="object"}var fd="[object Symbol]";function Mn(e){return typeof e=="symbol"||Ft(e)&&zt(e)==fd}var Vi=NaN,dd=/^[-+]0x[0-9a-f]+$/i,pd=/^0b[01]+$/i,gd=/^0o[0-7]+$/i,hd=parseInt;function Ui(e){if(typeof e=="number")return e;if(Mn(e))return Vi;if(Dt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Dt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=rd(e);var r=pd.test(e);return r||gd.test(e)?hd(e.slice(2),r?2:8):dd.test(e)?Vi:+e}var md="Expected a function",yd=Math.max,bd=Math.min;function Sd(e,t,r){var n,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(md);t=Ui(t)||0,Dt(r)&&(u=!!r.leading,d="maxWait"in r,i=d?yd(Ui(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p);function S($){var I=n,B=o;return n=o=void 0,c=$,a=e.apply(B,I),a}function b($){return c=$,s=setTimeout(E,t),u?S($):a}function f($){var I=$-l,B=$-c,H=t-I;return d?bd(H,i-B):H}function v($){var I=$-l,B=$-c;return l===void 0||I>=t||I<0||d&&B>=i}function E(){var $=oo();if(v($))return O($);s=setTimeout(E,f($))}function O($){return s=void 0,p&&n?S($):(n=o=void 0,a)}function k(){s!==void 0&&clearTimeout(s),c=0,n=l=o=s=void 0}function T(){return s===void 0?a:O(oo())}function P(){var $=oo(),I=v($);if(n=arguments,o=this,l=$,I){if(s===void 0)return b(l);if(d)return clearTimeout(s),s=setTimeout(E,t),S(l)}return s===void 0&&(s=setTimeout(E,t)),a}return P.cancel=k,P.flush=T,P}var vd="Expected a function";function xd(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(vd);return Dt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Sd(e,t,{leading:n,maxWait:t,trailing:o})}const ls=fr(ve.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:i,...a})=>{var k,T,P,$,I,B,H;const{t:s}=Te.useTranslation(),[l,c]=z.useState(),u=j.useTheme(),d={background:(k=u.palette.backgroundPaperElevation)==null?void 0:k[4],color:(T=u.palette.backgroundPaperElevation)==null?void 0:T[11]},p=ve.useLocalObservable(()=>({activeJoggingDir:null,startJogging(g){this.activeJoggingDir=g,e(g)},stopJogging(){this.activeJoggingDir=null,t()}})),S=xd(()=>{c(o())},50);dr(S);function b(g){g.button===0&&p.startJogging("-")}function f(g){g.button===0&&p.startJogging("+")}function v(g){p.stopJogging()}function E(g){p.stopJogging()}function O(g,_=1){if(g===void 0||isNaN(g))return"";const M=s("General.degree.variable",{amount:g.toFixed(_)});return g>0&&_===0?`+${M}`:M}return m.jsxs(lr,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...a,sx:{"& .MuiIconButton-root":{width:"52px",color:u.palette.text.primary,alignContent:"center",backgroundColor:(P=u.palette.backgroundPaperElevation)==null?void 0:P[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:(I=u.palette.backgroundPaperElevation)==null?void 0:I[9]},"&:active":{...d}}},children:[m.jsx(j.IconButton,{onPointerDown:b,onPointerUp:v,onPointerOut:E,disabled:i,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...p.activeJoggingDir==="-"?d:{}},children:m.jsx(Yf,{sx:{pointerEvents:"none"}})}),m.jsxs(lr,{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:[m.jsx(j.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:i?u.palette.action.disabled:u.palette.text.primary},children:O(l)}),m.jsx(j.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:i?u.palette.action.disabled:u.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:i?u.palette.action.disabled:u.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(H=u.palette.backgroundPaperElevation)==null?void 0:H[5],opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:O(r,0)},{value:n,label:O(n,0)}]})]}),m.jsx(j.IconButton,{onPointerDown:f,onPointerUp:v,onPointerOut:E,disabled:i,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...p.activeJoggingDir==="+"?d:{}},children:m.jsx(Zf,{sx:{pointerEvents:"none"}})})]})}));function cs(e,t){return function(){return e.apply(t,arguments)}}const{toString:wd}=Object.prototype,{getPrototypeOf:Do}=Object,Nn=(e=>t=>{const r=wd.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ze=e=>(e=e.toLowerCase(),t=>Nn(t)===e),Dn=e=>t=>typeof t===e,{isArray:pr}=Array,Ir=Dn("undefined");function Td(e){return e!==null&&!Ir(e)&&e.constructor!==null&&!Ir(e.constructor)&&Be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const us=Ze("ArrayBuffer");function Ed(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&us(e.buffer),t}const Cd=Dn("string"),Be=Dn("function"),fs=Dn("number"),Fn=e=>e!==null&&typeof e=="object",Od=e=>e===!0||e===!1,on=e=>{if(Nn(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)},Rd=Ze("Date"),Ad=Ze("File"),kd=Ze("Blob"),Pd=Ze("FileList"),jd=e=>Fn(e)&&Be(e.pipe),_d=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Be(e.append)&&((t=Nn(e))==="formdata"||t==="object"&&Be(e.toString)&&e.toString()==="[object FormData]"))},$d=Ze("URLSearchParams"),[Ld,Id,Md,Nd]=["ReadableStream","Request","Response","Headers"].map(Ze),Dd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),pr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function ds(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const It=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ps=e=>!Ir(e)&&e!==It;function So(){const{caseless:e}=ps(this)&&this||{},t={},r=(n,o)=>{const i=e&&ds(t,o)||o;on(t[i])&&on(n)?t[i]=So(t[i],n):on(n)?t[i]=So({},n):pr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Vr(arguments[n],r);return t}const Fd=(e,t,r,{allOwnKeys:n}={})=>(Vr(t,(o,i)=>{r&&Be(o)?e[i]=cs(o,r):e[i]=o},{allOwnKeys:n}),e),Bd=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vd=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Ud=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&Do(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},zd=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Jd=e=>{if(!e)return null;if(pr(e))return e;let t=e.length;if(!fs(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Gd=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Do(Uint8Array)),Wd=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Hd=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Kd=Ze("HTMLFormElement"),qd=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),zi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Yd=Ze("RegExp"),gs=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Vr(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Zd=e=>{gs(e,(t,r)=>{if(Be(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Be(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Xd=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return pr(e)?n(e):n(String(e).split(t)),r},Qd=()=>{},ep=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function tp(e){return!!(e&&Be(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rp=e=>{const t=new Array(10),r=(n,o)=>{if(Fn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=pr(n)?[]:{};return Vr(n,(a,s)=>{const l=r(a,o+1);!Ir(l)&&(i[s]=l)}),t[o]=void 0,i}}return n};return r(e,0)},np=Ze("AsyncFunction"),op=e=>e&&(Fn(e)||Be(e))&&Be(e.then)&&Be(e.catch),hs=((e,t)=>e?setImmediate:t?((r,n)=>(It.addEventListener("message",({source:o,data:i})=>{o===It&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),It.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Be(It.postMessage)),ip=typeof queueMicrotask<"u"?queueMicrotask.bind(It):typeof process<"u"&&process.nextTick||hs,x={isArray:pr,isArrayBuffer:us,isBuffer:Td,isFormData:_d,isArrayBufferView:Ed,isString:Cd,isNumber:fs,isBoolean:Od,isObject:Fn,isPlainObject:on,isReadableStream:Ld,isRequest:Id,isResponse:Md,isHeaders:Nd,isUndefined:Ir,isDate:Rd,isFile:Ad,isBlob:kd,isRegExp:Yd,isFunction:Be,isStream:jd,isURLSearchParams:$d,isTypedArray:Gd,isFileList:Pd,forEach:Vr,merge:So,extend:Fd,trim:Dd,stripBOM:Bd,inherits:Vd,toFlatObject:Ud,kindOf:Nn,kindOfTest:Ze,endsWith:zd,toArray:Jd,forEachEntry:Wd,matchAll:Hd,isHTMLForm:Kd,hasOwnProperty:zi,hasOwnProp:zi,reduceDescriptors:gs,freezeMethods:Zd,toObjectSet:Xd,toCamelCase:qd,noop:Qd,toFiniteNumber:ep,findKey:ds,global:It,isContextDefined:ps,isSpecCompliantForm:tp,toJSONObject:rp,isAsyncFn:np,isThenable:op,setImmediate:hs,asap:ip};function W(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}x.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.status}}});const ms=W.prototype,ys={};["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=>{ys[e]={value:e}});Object.defineProperties(W,ys);Object.defineProperty(ms,"isAxiosError",{value:!0});W.from=(e,t,r,n,o,i)=>{const a=Object.create(ms);return x.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),W.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const ap=null;function vo(e){return x.isPlainObject(e)||x.isArray(e)}function bs(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function Ji(e,t,r){return e?e.concat(t).map(function(o,i){return o=bs(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function sp(e){return x.isArray(e)&&!e.some(vo)}const lp=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function Bn(e,t,r){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=x.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,v){return!x.isUndefined(v[f])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(x.isDate(b))return b.toISOString();if(!l&&x.isBlob(b))throw new W("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(b)||x.isTypedArray(b)?l&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function u(b,f,v){let E=b;if(b&&!v&&typeof b=="object"){if(x.endsWith(f,"{}"))f=n?f:f.slice(0,-2),b=JSON.stringify(b);else if(x.isArray(b)&&sp(b)||(x.isFileList(b)||x.endsWith(f,"[]"))&&(E=x.toArray(b)))return f=bs(f),E.forEach(function(k,T){!(x.isUndefined(k)||k===null)&&t.append(a===!0?Ji([f],T,i):a===null?f:f+"[]",c(k))}),!1}return vo(b)?!0:(t.append(Ji(v,f,i),c(b)),!1)}const d=[],p=Object.assign(lp,{defaultVisitor:u,convertValue:c,isVisitable:vo});function S(b,f){if(!x.isUndefined(b)){if(d.indexOf(b)!==-1)throw Error("Circular reference detected in "+f.join("."));d.push(b),x.forEach(b,function(E,O){(!(x.isUndefined(E)||E===null)&&o.call(t,E,x.isString(O)?O.trim():O,f,p))===!0&&S(E,f?f.concat(O):[O])}),d.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Gi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Fo(e,t){this._pairs=[],e&&Bn(e,this,t)}const Ss=Fo.prototype;Ss.append=function(t,r){this._pairs.push([t,r])};Ss.toString=function(t){const r=t?function(n){return t.call(this,n,Gi)}:Gi;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function cp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vs(e,t,r){if(!t)return e;const n=r&&r.encode||cp;x.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=x.isURLSearchParams(t)?t.toString():new Fo(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Wi{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(n){n!==null&&t(n)})}}const xs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},up=typeof URLSearchParams<"u"?URLSearchParams:Fo,fp=typeof FormData<"u"?FormData:null,dp=typeof Blob<"u"?Blob:null,pp={isBrowser:!0,classes:{URLSearchParams:up,FormData:fp,Blob:dp},protocols:["http","https","file","blob","url","data"]},Bo=typeof window<"u"&&typeof document<"u",xo=typeof navigator=="object"&&navigator||void 0,gp=Bo&&(!xo||["ReactNative","NativeScript","NS"].indexOf(xo.product)<0),hp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mp=Bo&&window.location.href||"http://localhost",yp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bo,hasStandardBrowserEnv:gp,hasStandardBrowserWebWorkerEnv:hp,navigator:xo,origin:mp},Symbol.toStringTag,{value:"Module"})),ke={...yp,...pp};function bp(e,t){return Bn(e,new ke.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return ke.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Sp(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vp(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function ws(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=r.length;return a=!a&&x.isArray(o)?o.length:a,l?(x.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!x.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&x.isArray(o[a])&&(o[a]=vp(o[a])),!s)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Sp(n),o,r,0)}),r}return null}function xp(e,t,r){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ur={transitional:xs,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(ws(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return bp(t,this.formSerializer).toString();if((s=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bn(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),xp(t)):t}],transformResponse:[function(t){const r=this.transitional||Ur.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{Ur.headers[e]={}});const wp=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Tp=e=>{const t={};let r,n,o;return e&&e.split(`
89
- `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&wp[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Hi=Symbol("internals");function Cr(e){return e&&String(e).trim().toLowerCase()}function an(e){return e===!1||e==null?e:x.isArray(e)?e.map(an):String(e)}function Ep(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Cp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function io(e,t,r,n,o){if(x.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!x.isString(t)){if(x.isString(n))return t.indexOf(n)!==-1;if(x.isRegExp(n))return n.test(t)}}function Op(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Rp(e,t){const r=x.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let Me=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,l,c){const u=Cr(l);if(!u)throw new Error("header name must be a non-empty string");const d=x.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=an(s))}const a=(s,l)=>x.forEach(s,(c,u)=>i(c,u,l));if(x.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(x.isString(t)&&(t=t.trim())&&!Cp(t))a(Tp(t),r);else if(x.isHeaders(t))for(const[s,l]of t.entries())i(l,s,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Cr(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Ep(o);if(x.isFunction(r))return r.call(this,o,n);if(x.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Cr(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||io(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=Cr(a),a){const s=x.findKey(n,a);s&&(!r||io(n,n[s],s,r))&&(delete n[s],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||io(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return x.forEach(this,(o,i)=>{const a=x.findKey(n,i);if(a){r[a]=an(o),delete r[i];return}const s=t?Op(i):String(i).trim();s!==i&&delete r[i],r[s]=an(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return x.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&x.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
90
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Hi]=this[Hi]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=Cr(a);n[s]||(Rp(o,a),n[s]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}};Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Me.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(Me);function ao(e,t){const r=this||Ur,n=t||r,o=Me.from(n.headers);let i=n.data;return x.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ts(e){return!!(e&&e.__CANCEL__)}function gr(e,t,r){W.call(this,e??"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(gr,W,{__CANCEL__:!0});function Es(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ap(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kp(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];a||(a=c),r[o]=l,n[o]=c;let d=i,p=0;for(;d!==o;)p+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a<t)return;const S=u&&c-u;return S?Math.round(p*1e3/S):void 0}}function Pp(e,t){let r=0,n=1e3/t,o,i;const a=(c,u=Date.now())=>{r=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},n-d)))},()=>o&&a(o)]}const bn=(e,t,r=3)=>{let n=0;const o=kp(50,250);return Pp(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-n,c=o(l),u=a<=s;n=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},r)},Ki=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},qi=e=>(...t)=>x.asap(()=>e(...t)),jp=ke.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ke.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ke.origin),ke.navigator&&/(msie|trident)/i.test(ke.navigator.userAgent)):()=>!0,_p=ke.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),x.isString(n)&&a.push("path="+n),x.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.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 $p(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Lp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Cs(e,t,r){let n=!$p(t);return e&&n||r==!1?Lp(e,t):t}const Yi=e=>e instanceof Me?{...e}:e;function Bt(e,t){t=t||{};const r={};function n(c,u,d,p){return x.isPlainObject(c)&&x.isPlainObject(u)?x.merge.call({caseless:p},c,u):x.isPlainObject(u)?x.merge({},u):x.isArray(u)?u.slice():u}function o(c,u,d,p){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c,d,p)}else return n(c,u,d,p)}function i(c,u){if(!x.isUndefined(u))return n(void 0,u)}function a(c,u){if(x.isUndefined(u)){if(!x.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function s(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>o(Yi(c),Yi(u),d,!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||o,p=d(e[u],t[u],u);x.isUndefined(p)&&d!==s||(r[u]=p)}),r}const Os=e=>{const t=Bt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Me.from(a),t.url=vs(Cs(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(x.isFormData(r)){if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(ke.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&jp(t.url))){const c=o&&i&&_p.read(i);c&&a.set(o,c)}return t},Ip=typeof XMLHttpRequest<"u",Mp=Ip&&function(e){return new Promise(function(r,n){const o=Os(e);let i=o.data;const a=Me.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,d,p,S,b;function f(){S&&S(),b&&b(),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 E(){if(!v)return;const k=Me.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),P={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:k,config:e,request:v};Es(function(I){r(I),f()},function(I){n(I),f()},P),v=null}"onloadend"in v?v.onloadend=E:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(E)},v.onabort=function(){v&&(n(new W("Request aborted",W.ECONNABORTED,e,v)),v=null)},v.onerror=function(){n(new W("Network Error",W.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let T=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const P=o.transitional||xs;o.timeoutErrorMessage&&(T=o.timeoutErrorMessage),n(new W(T,P.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&x.forEach(a.toJSON(),function(T,P){v.setRequestHeader(P,T)}),x.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),s&&s!=="json"&&(v.responseType=o.responseType),c&&([p,b]=bn(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([d,S]=bn(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(u=k=>{v&&(n(!k||k.type?new gr(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 O=Ap(o.url);if(O&&ke.protocols.indexOf(O)===-1){n(new W("Unsupported protocol "+O+":",W.ERR_BAD_REQUEST,e));return}v.send(i||null)})},Np=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof W?u:new gr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>x.asap(s),l}},Dp=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Fp=async function*(e,t){for await(const r of Bp(e))yield*Dp(r,t)},Bp=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Zi=(e,t,r,n)=>{const o=Fp(e,t);let i=0,a,s=l=>{a||(a=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let d=u.byteLength;if(r){let p=i+=d;r(p)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},Vn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Rs=Vn&&typeof ReadableStream=="function",Vp=Vn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),As=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Up=Rs&&As(()=>{let e=!1;const t=new Request(ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Xi=64*1024,wo=Rs&&As(()=>x.isReadableStream(new Response("").body)),Sn={stream:wo&&(e=>e.body)};Vn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Sn[t]&&(Sn[t]=x.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})})(new Response);const zp=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(ke.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await Vp(e)).byteLength},Jp=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??zp(t)},Gp=Vn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Os(e);c=c?(c+"").toLowerCase():"text";let S=Np([o,i&&i.toAbortSignal()],a),b;const f=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let v;try{if(l&&Up&&r!=="get"&&r!=="head"&&(v=await Jp(u,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),$;if(x.isFormData(n)&&($=P.headers.get("content-type"))&&u.setContentType($),P.body){const[I,B]=Ki(v,bn(qi(l)));n=Zi(P.body,Xi,I,B)}}x.isString(d)||(d=d?"include":"omit");const E="credentials"in Request.prototype;b=new Request(t,{...p,signal:S,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:E?d:void 0});let O=await fetch(b);const k=wo&&(c==="stream"||c==="response");if(wo&&(s||k&&f)){const P={};["status","statusText","headers"].forEach(H=>{P[H]=O[H]});const $=x.toFiniteNumber(O.headers.get("content-length")),[I,B]=s&&Ki($,bn(qi(s),!0))||[];O=new Response(Zi(O.body,Xi,I,()=>{B&&B(),f&&f()}),P)}c=c||"text";let T=await Sn[x.findKey(Sn,c)||"text"](O,e);return!k&&f&&f(),await new Promise((P,$)=>{Es(P,$,{data:T,headers:Me.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:b})})}catch(E){throw f&&f(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,b),{cause:E.cause||E}):W.from(E,E&&E.code,e,b)}}),To={http:ap,xhr:Mp,fetch:Gp};x.forEach(To,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qi=e=>`- ${e}`,Wp=e=>x.isFunction(e)||e===null||e===!1,ks={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!Wp(r)&&(n=To[(a=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
91
- `+i.map(Qi).join(`
92
- `):" "+Qi(i[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:To};function so(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gr(null,e)}function ea(e){return so(e),e.headers=Me.from(e.headers),e.data=ao.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ks.getAdapter(e.adapter||Ur.adapter)(e).then(function(n){return so(e),n.data=ao.call(e,e.transformResponse,n),n.headers=Me.from(n.headers),n},function(n){return Ts(n)||(so(e),n&&n.response&&(n.response.data=ao.call(e,e.transformResponse,n.response),n.response.headers=Me.from(n.response.headers))),Promise.reject(n)})}const Ps="1.8.1",Un={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Un[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ta={};Un.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ps+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new W(o(a," has been removed"+(r?" in "+r:"")),W.ERR_DEPRECATED);return r&&!ta[a]&&(ta[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,s):!0}};Un.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Hp(e,t,r){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new W("option "+i+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}}const sn={assertOptions:Hp,validators:Un},tt=sn.validators;let Mt=class{constructor(t){this.defaults=t,this.interceptors={request:new Wi,response:new Wi}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
93
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Bt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&sn.assertOptions(n,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:sn.assertOptions(o,{encode:tt.function,serialize:tt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),sn.assertOptions(r,{baseUrl:tt.spelling("baseURL"),withXsrfToken:tt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&x.merge(i.common,i[r.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),r.headers=Me.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(l=l&&f.synchronous,s.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 b=[ea.bind(this),void 0];for(b.unshift.apply(b,s),b.push.apply(b,c),p=b.length,u=Promise.resolve(r);d<p;)u=u.then(b[d++],b[d++]);return u}p=s.length;let S=r;for(d=0;d<p;){const b=s[d++],f=s[d++];try{S=b(S)}catch(v){f.call(this,v);break}}try{u=ea.call(this,S)}catch(b){return Promise.reject(b)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Bt(this.defaults,t);const r=Cs(t.baseURL,t.url,t.allowAbsoluteUrls);return vs(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){Mt.prototype[t]=function(r,n){return this.request(Bt(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,s){return this.request(Bt(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Mt.prototype[t]=r(),Mt.prototype[t+"Form"]=r(!0)});let Kp=class js{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new gr(i,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new js(function(o){t=o}),cancel:t}}};function qp(e){return function(r){return e.apply(null,r)}}function Yp(e){return x.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 _s(e){const t=new Mt(e),r=cs(Mt.prototype.request,t);return x.extend(r,Mt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return _s(Bt(e,o))},r}const xe=_s(Ur);xe.Axios=Mt;xe.CanceledError=gr;xe.CancelToken=Kp;xe.isCancel=Ts;xe.VERSION=Ps;xe.toFormData=Bn;xe.AxiosError=W;xe.Cancel=xe.CanceledError;xe.all=function(t){return Promise.all(t)};xe.spread=qp;xe.isAxiosError=Yp;xe.mergeConfig=Bt;xe.AxiosHeaders=Me;xe.formToJSON=e=>ws(x.isHTMLForm(e)?new FormData(e):e);xe.getAdapter=ks.getAdapter;xe.HttpStatusCode=Eo;xe.default=xe;const{Axios:K0,AxiosError:ra,CanceledError:q0,isCancel:Y0,CancelToken:Z0,VERSION:X0,all:Q0,Cancel:eb,isAxiosError:tb,spread:rb,toFormData:nb,AxiosHeaders:ob,HttpStatusCode:ib,formToJSON:ab,getAdapter:sb,mergeConfig:lb}=xe;function Zp(e){try{return JSON.stringify(e)}catch{return}}function Xp(e,t){throw new Error(t+` ${JSON.stringify(e)}`)}function Qp(e){var t,r,n,o;return e instanceof ra&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof ra&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${Zp(e)||e}`}const Vo=e=>{const t=e.softTimeout||3e3,[r,n]=z.useState(!1),o=j.useTheme();return z.useEffect(()=>{const i=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(i)}),m.jsx(j.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:o.palette.text.primary},children:e.error?m.jsx($s,{loadingMessage:e.message,error:e.error}):m.jsxs(m.Fragment,{children:[m.jsx(j.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&m.jsx("div",{children:e.message}),m.jsx(j.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:o.palette.text.secondary},children:"This is taking longer than expected..."})]})})},$s=e=>{const t=Qp(e.error),r=e.error instanceof Error?e.error.stack:null,n=j.useTheme();return m.jsxs(j.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:n.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${jo.lowerFirst(j.capitalize(e.loadingMessage))} - `:"")+t,m.jsx("br",{}),r&&m.jsx("pre",{children:r})]})},eg=({title:e,titleId:t,...r},n)=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.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=z.forwardRef(eg),rg=({title:e,titleId:t,...r},n)=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.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"})),ng=z.forwardRef(rg),og=({title:e,titleId:t,...r},n)=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.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"})),ig=z.forwardRef(og),ag=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.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"})),sg=z.forwardRef(ag);function lg(){this.__data__=[],this.size=0}function Ls(e,t){return e===t||e!==e&&t!==t}function zn(e,t){for(var r=e.length;r--;)if(Ls(e[r][0],t))return r;return-1}var cg=Array.prototype,ug=cg.splice;function fg(e){var t=this.__data__,r=zn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ug.call(t,r,1),--this.size,!0}function dg(e){var t=this.__data__,r=zn(t,e);return r<0?void 0:t[r][1]}function pg(e){return zn(this.__data__,e)>-1}function gg(e,t){var r=this.__data__,n=zn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function mt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mt.prototype.clear=lg;mt.prototype.delete=fg;mt.prototype.get=dg;mt.prototype.has=pg;mt.prototype.set=gg;function hg(){this.__data__=new mt,this.size=0}function mg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function yg(e){return this.__data__.get(e)}function bg(e){return this.__data__.has(e)}var Sg="[object AsyncFunction]",vg="[object Function]",xg="[object GeneratorFunction]",wg="[object Proxy]";function Is(e){if(!Dt(e))return!1;var t=zt(e);return t==vg||t==xg||t==Sg||t==wg}var lo=st["__core-js_shared__"],na=function(){var e=/[^.]+$/.exec(lo&&lo.keys&&lo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Tg(e){return!!na&&na in e}var Eg=Function.prototype,Cg=Eg.toString;function Jt(e){if(e!=null){try{return Cg.call(e)}catch{}try{return e+""}catch{}}return""}var Og=/[\\^$.*+?()[\]{}|]/g,Rg=/^\[object .+?Constructor\]$/,Ag=Function.prototype,kg=Object.prototype,Pg=Ag.toString,jg=kg.hasOwnProperty,_g=RegExp("^"+Pg.call(jg).replace(Og,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $g(e){if(!Dt(e)||Tg(e))return!1;var t=Is(e)?_g:Rg;return t.test(Jt(e))}function Lg(e,t){return e==null?void 0:e[t]}function Gt(e,t){var r=Lg(e,t);return $g(r)?r:void 0}var Mr=Gt(st,"Map"),Nr=Gt(Object,"create");function Ig(){this.__data__=Nr?Nr(null):{},this.size=0}function Mg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ng="__lodash_hash_undefined__",Dg=Object.prototype,Fg=Dg.hasOwnProperty;function Bg(e){var t=this.__data__;if(Nr){var r=t[e];return r===Ng?void 0:r}return Fg.call(t,e)?t[e]:void 0}var Vg=Object.prototype,Ug=Vg.hasOwnProperty;function zg(e){var t=this.__data__;return Nr?t[e]!==void 0:Ug.call(t,e)}var Jg="__lodash_hash_undefined__";function Gg(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Nr&&t===void 0?Jg:t,this}function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Vt.prototype.clear=Ig;Vt.prototype.delete=Mg;Vt.prototype.get=Bg;Vt.prototype.has=zg;Vt.prototype.set=Gg;function Wg(){this.size=0,this.__data__={hash:new Vt,map:new(Mr||mt),string:new Vt}}function Hg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Jn(e,t){var r=e.__data__;return Hg(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Kg(e){var t=Jn(this,e).delete(e);return this.size-=t?1:0,t}function qg(e){return Jn(this,e).get(e)}function Yg(e){return Jn(this,e).has(e)}function Zg(e,t){var r=Jn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function yt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}yt.prototype.clear=Wg;yt.prototype.delete=Kg;yt.prototype.get=qg;yt.prototype.has=Yg;yt.prototype.set=Zg;var Xg=200;function Qg(e,t){var r=this.__data__;if(r instanceof mt){var n=r.__data__;if(!Mr||n.length<Xg-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new yt(n)}return r.set(e,t),this.size=r.size,this}function gt(e){var t=this.__data__=new mt(e);this.size=t.size}gt.prototype.clear=hg;gt.prototype.delete=mg;gt.prototype.get=yg;gt.prototype.has=bg;gt.prototype.set=Qg;var eh="__lodash_hash_undefined__";function th(e){return this.__data__.set(e,eh),this}function rh(e){return this.__data__.has(e)}function vn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new yt;++t<r;)this.add(e[t])}vn.prototype.add=vn.prototype.push=th;vn.prototype.has=rh;function nh(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function oh(e,t){return e.has(t)}var ih=1,ah=2;function Ms(e,t,r,n,o,i){var a=r&ih,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,S=r&ah?new vn:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var b=e[d],f=t[d];if(n)var v=a?n(f,b,d,t,e,i):n(b,f,d,e,t,i);if(v!==void 0){if(v)continue;p=!1;break}if(S){if(!nh(t,function(E,O){if(!oh(S,O)&&(b===E||o(b,E,r,n,i)))return S.push(O)})){p=!1;break}}else if(!(b===f||o(b,f,r,n,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var oa=st.Uint8Array;function sh(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function lh(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var ch=1,uh=2,fh="[object Boolean]",dh="[object Date]",ph="[object Error]",gh="[object Map]",hh="[object Number]",mh="[object RegExp]",yh="[object Set]",bh="[object String]",Sh="[object Symbol]",vh="[object ArrayBuffer]",xh="[object DataView]",ia=kt?kt.prototype:void 0,co=ia?ia.valueOf:void 0;function wh(e,t,r,n,o,i,a){switch(r){case xh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case vh:return!(e.byteLength!=t.byteLength||!i(new oa(e),new oa(t)));case fh:case dh:case hh:return Ls(+e,+t);case ph:return e.name==t.name&&e.message==t.message;case mh:case bh:return e==t+"";case gh:var s=sh;case yh:var l=n&ch;if(s||(s=lh),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=uh,a.set(e,t);var u=Ms(s(e),s(t),n,o,i,a);return a.delete(e),u;case Sh:if(co)return co.call(e)==co.call(t)}return!1}function Th(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var at=Array.isArray;function Eh(e,t,r){var n=t(e);return at(e)?n:Th(n,r(e))}function Ch(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function Oh(){return[]}var Rh=Object.prototype,Ah=Rh.propertyIsEnumerable,aa=Object.getOwnPropertySymbols,kh=aa?function(e){return e==null?[]:(e=Object(e),Ch(aa(e),function(t){return Ah.call(e,t)}))}:Oh;function Ph(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var jh="[object Arguments]";function sa(e){return Ft(e)&&zt(e)==jh}var Ns=Object.prototype,_h=Ns.hasOwnProperty,$h=Ns.propertyIsEnumerable,Ds=sa(function(){return arguments}())?sa:function(e){return Ft(e)&&_h.call(e,"callee")&&!$h.call(e,"callee")};function Lh(){return!1}var Fs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,la=Fs&&typeof module=="object"&&module&&!module.nodeType&&module,Ih=la&&la.exports===Fs,ca=Ih?st.Buffer:void 0,Mh=ca?ca.isBuffer:void 0,Co=Mh||Lh,Nh=9007199254740991,Dh=/^(?:0|[1-9]\d*)$/;function Bs(e,t){var r=typeof e;return t=t??Nh,!!t&&(r=="number"||r!="symbol"&&Dh.test(e))&&e>-1&&e%1==0&&e<t}var Fh=9007199254740991;function Uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Fh}var Bh="[object Arguments]",Vh="[object Array]",Uh="[object Boolean]",zh="[object Date]",Jh="[object Error]",Gh="[object Function]",Wh="[object Map]",Hh="[object Number]",Kh="[object Object]",qh="[object RegExp]",Yh="[object Set]",Zh="[object String]",Xh="[object WeakMap]",Qh="[object ArrayBuffer]",em="[object DataView]",tm="[object Float32Array]",rm="[object Float64Array]",nm="[object Int8Array]",om="[object Int16Array]",im="[object Int32Array]",am="[object Uint8Array]",sm="[object Uint8ClampedArray]",lm="[object Uint16Array]",cm="[object Uint32Array]",ce={};ce[tm]=ce[rm]=ce[nm]=ce[om]=ce[im]=ce[am]=ce[sm]=ce[lm]=ce[cm]=!0;ce[Bh]=ce[Vh]=ce[Qh]=ce[Uh]=ce[em]=ce[zh]=ce[Jh]=ce[Gh]=ce[Wh]=ce[Hh]=ce[Kh]=ce[qh]=ce[Yh]=ce[Zh]=ce[Xh]=!1;function um(e){return Ft(e)&&Uo(e.length)&&!!ce[zt(e)]}function fm(e){return function(t){return e(t)}}var Vs=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pr=Vs&&typeof module=="object"&&module&&!module.nodeType&&module,dm=Pr&&Pr.exports===Vs,uo=dm&&as.process,ua=function(){try{var e=Pr&&Pr.require&&Pr.require("util").types;return e||uo&&uo.binding&&uo.binding("util")}catch{}}(),fa=ua&&ua.isTypedArray,Us=fa?fm(fa):um,pm=Object.prototype,gm=pm.hasOwnProperty;function hm(e,t){var r=at(e),n=!r&&Ds(e),o=!r&&!n&&Co(e),i=!r&&!n&&!o&&Us(e),a=r||n||o||i,s=a?Ph(e.length,String):[],l=s.length;for(var c in e)gm.call(e,c)&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Bs(c,l)))&&s.push(c);return s}var mm=Object.prototype;function ym(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||mm;return e===r}function bm(e,t){return function(r){return e(t(r))}}var Sm=bm(Object.keys,Object),vm=Object.prototype,xm=vm.hasOwnProperty;function wm(e){if(!ym(e))return Sm(e);var t=[];for(var r in Object(e))xm.call(e,r)&&r!="constructor"&&t.push(r);return t}function zs(e){return e!=null&&Uo(e.length)&&!Is(e)}function zo(e){return zs(e)?hm(e):wm(e)}function da(e){return Eh(e,zo,kh)}var Tm=1,Em=Object.prototype,Cm=Em.hasOwnProperty;function Om(e,t,r,n,o,i){var a=r&Tm,s=da(e),l=s.length,c=da(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:Cm.call(t,p)))return!1}var S=i.get(e),b=i.get(t);if(S&&b)return S==t&&b==e;var f=!0;i.set(e,t),i.set(t,e);for(var v=a;++d<l;){p=s[d];var E=e[p],O=t[p];if(n)var k=a?n(O,E,p,t,e,i):n(E,O,p,e,t,i);if(!(k===void 0?E===O||o(E,O,r,n,i):k)){f=!1;break}v||(v=p=="constructor")}if(f&&!v){var T=e.constructor,P=t.constructor;T!=P&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof P=="function"&&P instanceof P)&&(f=!1)}return i.delete(e),i.delete(t),f}var Oo=Gt(st,"DataView"),Ro=Gt(st,"Promise"),Ao=Gt(st,"Set"),ko=Gt(st,"WeakMap"),pa="[object Map]",Rm="[object Object]",ga="[object Promise]",ha="[object Set]",ma="[object WeakMap]",ya="[object DataView]",Am=Jt(Oo),km=Jt(Mr),Pm=Jt(Ro),jm=Jt(Ao),_m=Jt(ko),Et=zt;(Oo&&Et(new Oo(new ArrayBuffer(1)))!=ya||Mr&&Et(new Mr)!=pa||Ro&&Et(Ro.resolve())!=ga||Ao&&Et(new Ao)!=ha||ko&&Et(new ko)!=ma)&&(Et=function(e){var t=zt(e),r=t==Rm?e.constructor:void 0,n=r?Jt(r):"";if(n)switch(n){case Am:return ya;case km:return pa;case Pm:return ga;case jm:return ha;case _m:return ma}return t});var $m=1,ba="[object Arguments]",Sa="[object Array]",Kr="[object Object]",Lm=Object.prototype,va=Lm.hasOwnProperty;function Im(e,t,r,n,o,i){var a=at(e),s=at(t),l=a?Sa:Et(e),c=s?Sa:Et(t);l=l==ba?Kr:l,c=c==ba?Kr:c;var u=l==Kr,d=c==Kr,p=l==c;if(p&&Co(e)){if(!Co(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new gt),a||Us(e)?Ms(e,t,r,n,o,i):wh(e,t,l,r,n,o,i);if(!(r&$m)){var S=u&&va.call(e,"__wrapped__"),b=d&&va.call(t,"__wrapped__");if(S||b){var f=S?e.value():e,v=b?t.value():t;return i||(i=new gt),o(f,v,r,n,i)}}return p?(i||(i=new gt),Om(e,t,r,n,o,i)):!1}function Gn(e,t,r,n,o){return e===t?!0:e==null||t==null||!Ft(e)&&!Ft(t)?e!==e&&t!==t:Im(e,t,r,n,Gn,o)}function Mm(e,t){return Gn(e,t)}const Js=({store:e})=>{const{t}=Te.useTranslation(),[r,n]=z.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),o=z.useRef(r);dr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;Mm(o.current,a)||(o.current=a,n(a))});const i=[];for(const[a,s]of r.entries())s&&i.push(a);return m.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(a=>a+1).join(", ")})})},Nm=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 qr({labelValue:e,...t}){return m.jsxs(Nm,{fullWidth:!0,variant:"filled",children:[m.jsx(j.InputLabel,{id:t.labelId,children:e}),m.jsx(j.Select,{...t})]})}var xa=function(){try{var e=Gt(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Dm(e,t,r){t=="__proto__"&&xa?xa(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Fm(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function Bm(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var l=a[++o];if(r(i[l],l,i)===!1)break}return t}}var Vm=Bm();function Um(e,t){return e&&Vm(e,t,zo)}function zm(e,t){return function(r,n){if(r==null)return r;if(!zs(r))return e(r,n);for(var o=r.length,i=-1,a=Object(r);++i<o&&n(a[i],i,a)!==!1;);return r}}var Jm=zm(Um);function Gm(e,t,r,n){return Jm(e,function(o,i,a){t(n,o,r(o),a)}),n}var Wm=1,Hm=2;function Km(e,t,r,n){var o=r.length,i=o;if(e==null)return!i;for(e=Object(e);o--;){var a=r[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){a=r[o];var s=a[0],l=e[s],c=a[1];if(a[2]){if(l===void 0&&!(s in e))return!1}else{var u=new gt,d;if(!(d===void 0?Gn(c,l,Wm|Hm,n,u):d))return!1}}return!0}function Gs(e){return e===e&&!Dt(e)}function qm(e){for(var t=zo(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Gs(o)]}return t}function Ws(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Ym(e){var t=qm(e);return t.length==1&&t[0][2]?Ws(t[0][0],t[0][1]):function(r){return r===e||Km(r,e,t)}}var Zm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xm=/^\w*$/;function Jo(e,t){if(at(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Mn(e)?!0:Xm.test(e)||!Zm.test(e)||t!=null&&e in Object(t)}var Qm="Expected a function";function Go(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Qm);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Go.Cache||yt),r}Go.Cache=yt;var ey=500;function ty(e){var t=Go(e,function(n){return r.size===ey&&r.clear(),n}),r=t.cache;return t}var ry=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ny=/\\(\\)?/g,oy=ty(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ry,function(r,n,o,i){t.push(o?i.replace(ny,"$1"):n||r)}),t});function iy(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var wa=kt?kt.prototype:void 0,Ta=wa?wa.toString:void 0;function Hs(e){if(typeof e=="string")return e;if(at(e))return iy(e,Hs)+"";if(Mn(e))return Ta?Ta.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ks(e){return e==null?"":Hs(e)}function qs(e,t){return at(e)?e:Jo(e,t)?[e]:oy(Ks(e))}function Wn(e){if(typeof e=="string"||Mn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ys(e,t){t=qs(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Wn(t[r++])];return r&&r==n?e:void 0}function ay(e,t,r){var n=e==null?void 0:Ys(e,t);return n===void 0?r:n}function sy(e,t){return e!=null&&t in Object(e)}function ly(e,t,r){t=qs(t,e);for(var n=-1,o=t.length,i=!1;++n<o;){var a=Wn(t[n]);if(!(i=e!=null&&r(e,a)))break;e=e[a]}return i||++n!=o?i:(o=e==null?0:e.length,!!o&&Uo(o)&&Bs(a,o)&&(at(e)||Ds(e)))}function cy(e,t){return e!=null&&ly(e,t,sy)}var uy=1,fy=2;function dy(e,t){return Jo(e)&&Gs(t)?Ws(Wn(e),t):function(r){var n=ay(r,e);return n===void 0&&n===t?cy(r,e):Gn(t,n,uy|fy)}}function py(e){return e}function gy(e){return function(t){return t==null?void 0:t[e]}}function hy(e){return function(t){return Ys(t,e)}}function my(e){return Jo(e)?gy(Wn(e)):hy(e)}function yy(e){return typeof e=="function"?e:e==null?py:typeof e=="object"?at(e)?dy(e[0],e[1]):Ym(e):my(e)}function by(e,t){return function(r,n){var o=at(r)?Fm:Gm,i={};return o(r,e,yy(n),i)}}var Yr=by(function(e,t,r){Dm(e,r,t)}),Sy=0;function vy(e){var t=++Sy;return Ks(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],wy=["coordsys","tool"];class Hn{constructor(t,r,n,o){var i,a;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,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 s of n)if(s.coordinate_system===""){s.coordinate_system="world";break}this.selectedCoordSystemId=((i=n[0])==null?void 0:i.coordinate_system)||"world",this.selectedTcpId=((a=o[0])==null?void 0:a.id)||"",cr.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(cr.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:i}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new Hn(t,n,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=Ot.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 Yr(this.incrementOptions,t=>t.id)}get tabsById(){return Yr(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 Yr(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 Yr(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,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setCurrentIncrementJog(t){this.incrementJogInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}lock(t){this.locks.add(t)}unlock(t){this.locks.delete(t)}async withMotionLock(t){const r=vy();this.lock(r);try{return await t()}finally{this.unlock(r)}}}const Ty=ve.observer(({store:e})=>{var n;const{t}=Te.useTranslation();function r(o){switch(o){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return o}}return m.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:[m.jsx(qr,{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=>m.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))}),m.jsx(qr,{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=>m.jsx(j.MenuItem,{value:o.id,children:o.id},o.id))}),m.jsx(qr,{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:wy.map(o=>m.jsx(j.MenuItem,{value:o,children:r(o)},o))}),m.jsxs(qr,{labelValue:"Increment",labelId:"jogging-increment-select",size:"small",variant:"filled",value:((n=e.activeDiscreteIncrement)==null?void 0:n.id)||"continuous",onChange:o=>{e.setSelectedIncrementId(o.target.value)},disabled:e.isLocked,children:[m.jsx(j.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(o=>m.jsx(j.MenuItem,{value:o.id,children:e.currentMotionType==="translate"?`${o.mm}mm`:`${o.degrees}°`},o.id))]})]})}),Ey=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,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const Oy=2;function ir(e,t,r,n,o){return r===1?Math.min(e+t,o):Math.max(e-t,n)}function Zs(e,t){return e-t}function Ea(e,t){const{index:r}=e.reduce((n,o,i)=>{const a=Math.abs(t-o);return n===null||a<n.distance||a===n.distance?{distance:a,index:i}:n},null)??{};return r}function Zr(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let n=0;n<r.changedTouches.length;n+=1){const o=r.changedTouches[n];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function xn(e,t,r){return(e-t)*100/(r-t)}function Ry(e,t,r){return(r-t)*e+t}function Ay(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),n=r[0].split(".")[1];return(n?n.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function ky(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Ay(t)))}function Ca({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Zs)}function Xr({sliderRef:e,activeIndex:t,setActive:r}){var o,i,a;const n=rn(e.current);(!((o=e.current)!=null&&o.contains(n.activeElement))||Number((i=n==null?void 0:n.activeElement)==null?void 0:i.getAttribute("data-index"))!==t)&&((a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()),r&&r(t)}function Qr(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Cy(e,t):!1}const Py={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}%`})}},jy=e=>e;let en;function Oa(){return en===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?en=CSS.supports("touch-action","none"):en=!0),en}function _y(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:s=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:p="horizontal",rootRef:S,scale:b=jy,step:f=1,shiftStep:v=10,tabIndex:E,value:O}=e,k=C.useRef(void 0),[T,P]=C.useState(-1),[$,I]=C.useState(-1),[B,H]=C.useState(!1),g=C.useRef(0),_=C.useRef(null),[M,N]=mu({controlled:O,default:r??l,name:"Slider"}),D=u&&((A,L,V)=>{const K=A.nativeEvent||A,te=new K.constructor(K.type,K);Object.defineProperty(te,"target",{writable:!0,value:{value:L,name:c}}),_.current=L,u(te,L,V)}),Q=Array.isArray(M);let Y=Q?M.slice().sort(Zs):[M];Y=Y.map(A=>A==null?l:ar(A,l,s));const Ae=a===!0&&f!==null?[...Array(Math.floor((s-l)/f)+1)].map((A,L)=>({value:l+f*L})):a||[],ee=Ae.map(A=>A.value),[le,Ce]=C.useState(-1),Z=C.useRef(null),Ne=Ha(S,Z),lt=A=>L=>{var K;const V=Number(L.currentTarget.getAttribute("data-index"));yi(L.target)&&Ce(V),I(V),(K=A==null?void 0:A.onFocus)==null||K.call(A,L)},hr=A=>L=>{var V;yi(L.target)||Ce(-1),I(-1),(V=A==null?void 0:A.onBlur)==null||V.call(A,L)},Wt=(A,L)=>{const V=Number(A.currentTarget.getAttribute("data-index")),K=Y[V],te=ee.indexOf(K);let U=L;if(Ae&&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=ar(U,l,s),Q){o&&(U=ar(U,Y[V-1]||-1/0,Y[V+1]||1/0));const ye=U;U=Ca({values:Y,newValue:U,index:V});let Re=V;o||(Re=U.indexOf(ye)),Xr({sliderRef:Z,activeIndex:Re})}N(U),Ce(V),D&&!Qr(U,M)&&D(A,U,V),d&&d(A,_.current??U)},jt=A=>L=>{var V;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(L.key)){L.preventDefault();const K=Number(L.currentTarget.getAttribute("data-index")),te=Y[K];let U=null;if(f!=null){const ye=L.shiftKey?v:f;switch(L.key){case"ArrowUp":U=ir(te,ye,1,l,s);break;case"ArrowRight":U=ir(te,ye,i?-1:1,l,s);break;case"ArrowDown":U=ir(te,ye,-1,l,s);break;case"ArrowLeft":U=ir(te,ye,i?1:-1,l,s);break;case"PageUp":U=ir(te,v,1,l,s);break;case"PageDown":U=ir(te,v,-1,l,s);break;case"Home":U=l;break;case"End":U=s;break}}else if(Ae){const ye=ee[ee.length-1],Re=ee.indexOf(te),ge=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Le=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];ge.includes(L.key)?Re===0?U=ee[0]:U=ee[Re-1]:Le.includes(L.key)&&(Re===ee.length-1?U=ye:U=ee[Re+1])}U!=null&&Wt(L,U)}(V=A==null?void 0:A.onKeyDown)==null||V.call(A,L)};Ga(()=>{var A;n&&Z.current.contains(document.activeElement)&&((A=document.activeElement)==null||A.blur())},[n]),n&&T!==-1&&P(-1),n&&le!==-1&&Ce(-1);const bt=A=>L=>{var V;(V=A.onChange)==null||V.call(A,L),Wt(L,L.target.valueAsNumber)},Ve=C.useRef(void 0);let He=p;i&&p==="horizontal"&&(He+="-reverse");const Ue=({finger:A,move:L=!1})=>{const{current:V}=Z,{width:K,height:te,bottom:U,left:ye}=V.getBoundingClientRect();let Re;He.startsWith("vertical")?Re=(U-A.y)/te:Re=(A.x-ye)/K,He.includes("-reverse")&&(Re=1-Re);let ge;if(ge=Ry(Re,l,s),f)ge=ky(ge,f,l);else{const _t=Ea(ee,ge);ge=ee[_t]}ge=ar(ge,l,s);let Le=0;if(Q){L?Le=Ve.current:Le=Ea(Y,ge),o&&(ge=ar(ge,Y[Le-1]||-1/0,Y[Le+1]||1/0));const _t=ge;ge=Ca({values:Y,newValue:ge,index:Le}),o&&L||(Le=ge.indexOf(_t),Ve.current=Le)}return{newValue:ge,activeIndex:Le}},ct=eo(A=>{const L=Zr(A,k);if(!L)return;if(g.current+=1,A.type==="mousemove"&&A.buttons===0){De(A);return}const{newValue:V,activeIndex:K}=Ue({finger:L,move:!0});Xr({sliderRef:Z,activeIndex:K,setActive:P}),N(V),!B&&g.current>Oy&&H(!0),D&&!Qr(V,M)&&D(A,V,K)}),De=eo(A=>{const L=Zr(A,k);if(H(!1),!L)return;const{newValue:V}=Ue({finger:L,move:!0});P(-1),A.type==="touchend"&&I(-1),d&&d(A,_.current??V),k.current=void 0,ut()}),Oe=eo(A=>{if(n)return;Oa()||A.preventDefault();const L=A.changedTouches[0];L!=null&&(k.current=L.identifier);const V=Zr(A,k);if(V!==!1){const{newValue:te,activeIndex:U}=Ue({finger:V});Xr({sliderRef:Z,activeIndex:U,setActive:P}),N(te),D&&!Qr(te,M)&&D(A,te,U)}g.current=0;const K=rn(Z.current);K.addEventListener("touchmove",ct,{passive:!0}),K.addEventListener("touchend",De,{passive:!0})}),ut=C.useCallback(()=>{const A=rn(Z.current);A.removeEventListener("mousemove",ct),A.removeEventListener("mouseup",De),A.removeEventListener("touchmove",ct),A.removeEventListener("touchend",De)},[De,ct]);C.useEffect(()=>{const{current:A}=Z;return A.addEventListener("touchstart",Oe,{passive:Oa()}),()=>{A.removeEventListener("touchstart",Oe),ut()}},[ut,Oe]),C.useEffect(()=>{n&&ut()},[n,ut]);const St=A=>L=>{var te;if((te=A.onMouseDown)==null||te.call(A,L),n||L.defaultPrevented||L.button!==0)return;L.preventDefault();const V=Zr(L,k);if(V!==!1){const{newValue:U,activeIndex:ye}=Ue({finger:V});Xr({sliderRef:Z,activeIndex:ye,setActive:P}),N(U),D&&!Qr(U,M)&&D(L,U,ye)}g.current=0;const K=rn(Z.current);K.addEventListener("mousemove",ct,{passive:!0}),K.addEventListener("mouseup",De)},Xe=xn(Q?Y[0]:l,l,s),Ee=xn(Y[Y.length-1],l,s)-Xe,vt=(A={})=>{const L=nn(A),V={onMouseDown:St(L||{})},K={...L,...V};return{...A,ref:Ne,...K}},ft=A=>L=>{var K;(K=A.onMouseOver)==null||K.call(A,L);const V=Number(L.currentTarget.getAttribute("data-index"));I(V)},Ht=A=>L=>{var V;(V=A.onMouseLeave)==null||V.call(A,L),I(-1)},Kt=(A={})=>{const L=nn(A),V={onMouseOver:ft(L||{}),onMouseLeave:Ht(L||{})};return{...A,...L,...V}},xt=A=>({pointerEvents:T!==-1&&T!==A?"none":void 0});let wt;return p==="vertical"&&(wt=i?"vertical-rl":"vertical-lr"),{active:T,axis:He,axisProps:Py,dragging:B,focusedThumbIndex:le,getHiddenInputProps:(A={})=>{const L=nn(A),V={onChange:bt(L||{}),onFocus:lt(L||{}),onBlur:hr(L||{}),onKeyDown:jt(L||{})},K={...L,...V};return{tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:n,...A,...K,style:{...yu,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:wt}}},getRootProps:vt,getThumbProps:Kt,marks:Ae,open:$,range:Q,rootRef:Ne,trackLeap:Ee,trackOffset:Xe,values:Y,getThumbStyle:xt}}function ln(e){return typeof e=="string"}const $y=e=>!e||!ln(e);function Ly(e){return typeof e.main=="string"}function Iy(e,t=[]){if(!Ly(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Wo(e=[]){return([,t])=>t&&Iy(t,e)}function My(e){return Br("MuiSlider",e)}const Ge=Fa("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"]),Ny=e=>{const{open:t}=e;return{offset:it(t&&Ge.valueLabelOpen),circle:Ge.valueLabelCircle,label:Ge.valueLabelLabel}};function Xs(e){const{children:t,className:r,value:n}=e,o=Ny(e);return t?C.cloneElement(t,{className:it(t.props.className)},m.jsxs(C.Fragment,{children:[t.props.children,m.jsx("span",{className:it(o.offset,r),"aria-hidden":!0,children:m.jsx("span",{className:o.circle,children:m.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Xs.propTypes={children:h.element.isRequired,className:h.string,value:h.node});function Ra(e){return e}const Dy=ht("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${_e(r.color)}`],r.size!=="medium"&&t[`size${_e(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(Ut(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ge.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ge.dragging}`]:{[`& .${Ge.thumb}, & .${Ge.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}}]}))),Fy=ht("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}}]}),By=ht("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(Ut(({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:_r(e.palette[t].main,.62),borderColor:_r(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:jr(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:jr(e.palette[t].main,.5)})}}}))]}))),Vy=ht("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${_e(r.color)}`],r.size!=="medium"&&t[`thumbSize${_e(r.size)}`]]}})(Ut(({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%)"},[`&.${Ge.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, &.${Ge.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"}},[`&.${Ge.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)}`}}}}))]}))),Qs=ht(Xs,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(Ut(({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%"},[`&.${Ge.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%"},[`&.${Ge.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"&&(Qs.propTypes={children:h.element.isRequired,index:h.number.isRequired,open:h.bool.isRequired,value:h.node});const Uy=ht("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Mo(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(Ut(({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}}]}))),zy=ht("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Mo(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(Ut(({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}}]}))),Jy=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:i,classes:a,color:s,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${_e(s)}`,l&&`size${_e(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${_e(l)}`,s&&`thumbColor${_e(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Lo(c,My,a)},Gy=({children:e})=>e,el=C.forwardRef(function(t,r){const n=No({props:t,name:"MuiSlider"}),o=Tu(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":s,component:l="span",components:c={},componentsProps:u={},color:d="primary",classes:p,className:S,disableSwap:b=!1,disabled:f=!1,getAriaLabel:v,getAriaValueText:E,marks:O=!1,max:k=100,min:T=0,name:P,onChange:$,onChangeCommitted:I,orientation:B="horizontal",shiftStep:H=10,size:g="medium",step:_=1,scale:M=Ra,slotProps:N,slots:D,tabIndex:Q,track:Y="normal",value:Ae,valueLabelDisplay:ee="off",valueLabelFormat:le=Ra,...Ce}=n,Z={...n,isRtl:o,max:k,min:T,classes:p,disabled:f,disableSwap:b,orientation:B,marks:O,color:d,size:g,step:_,shiftStep:H,scale:M,track:Y,valueLabelDisplay:ee,valueLabelFormat:le},{axisProps:Ne,getRootProps:lt,getHiddenInputProps:hr,getThumbProps:Wt,open:jt,active:bt,axis:Ve,focusedThumbIndex:He,range:Ue,dragging:ct,marks:De,values:Oe,trackOffset:ut,trackLeap:St,getThumbStyle:Xe}=_y({...Z,rootRef:r});Z.marked=De.length>0&&De.some(ue=>ue.label),Z.dragging=ct,Z.focusedThumbIndex=He;const Ee=Jy(Z),vt=(D==null?void 0:D.root)??c.Root??Dy,ft=(D==null?void 0:D.rail)??c.Rail??Fy,Ht=(D==null?void 0:D.track)??c.Track??By,Kt=(D==null?void 0:D.thumb)??c.Thumb??Vy,xt=(D==null?void 0:D.valueLabel)??c.ValueLabel??Qs,wt=(D==null?void 0:D.mark)??c.Mark??Uy,qt=(D==null?void 0:D.markLabel)??c.MarkLabel??zy,A=(D==null?void 0:D.input)??c.Input??"input",L=(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,Re=(N==null?void 0:N.markLabel)??u.markLabel,ge=(N==null?void 0:N.input)??u.input,Le=Tt({elementType:vt,getSlotProps:lt,externalSlotProps:L,externalForwardedProps:Ce,additionalProps:{...$y(vt)&&{as:l}},ownerState:{...Z,...L==null?void 0:L.ownerState},className:[Ee.root,S]}),_t=Tt({elementType:ft,externalSlotProps:V,ownerState:Z,className:Ee.rail}),Kn=Tt({elementType:Ht,externalSlotProps:K,additionalProps:{style:{...Ne[Ve].offset(ut),...Ne[Ve].leap(St)}},ownerState:{...Z,...K==null?void 0:K.ownerState},className:Ee.track}),mr=Tt({elementType:Kt,getSlotProps:Wt,externalSlotProps:te,ownerState:{...Z,...te==null?void 0:te.ownerState},className:Ee.thumb}),yr=Tt({elementType:xt,externalSlotProps:U,ownerState:{...Z,...U==null?void 0:U.ownerState},className:Ee.valueLabel}),Yt=Tt({elementType:wt,externalSlotProps:ye,ownerState:Z,className:Ee.mark}),Qe=Tt({elementType:qt,externalSlotProps:Re,ownerState:Z,className:Ee.markLabel}),br=Tt({elementType:A,getSlotProps:hr,externalSlotProps:ge,ownerState:Z});return m.jsxs(vt,{...Le,children:[m.jsx(ft,{..._t}),m.jsx(Ht,{...Kn}),De.filter(ue=>ue.value>=T&&ue.value<=k).map((ue,be)=>{const Sr=xn(ue.value,T,k),$t=Ne[Ve].offset(Sr);let Ke;return Y===!1?Ke=Oe.includes(ue.value):Ke=Y==="normal"&&(Ue?ue.value>=Oe[0]&&ue.value<=Oe[Oe.length-1]:ue.value<=Oe[0])||Y==="inverted"&&(Ue?ue.value<=Oe[0]||ue.value>=Oe[Oe.length-1]:ue.value>=Oe[0]),m.jsxs(C.Fragment,{children:[m.jsx(wt,{"data-index":be,...Yt,...!ln(wt)&&{markActive:Ke},style:{...$t,...Yt.style},className:it(Yt.className,Ke&&Ee.markActive)}),ue.label!=null?m.jsx(qt,{"aria-hidden":!0,"data-index":be,...Qe,...!ln(qt)&&{markLabelActive:Ke},style:{...$t,...Qe.style},className:it(Ee.markLabel,Qe.className,Ke&&Ee.markLabelActive),children:ue.label}):null]},be)}),Oe.map((ue,be)=>{const Sr=xn(ue,T,k),$t=Ne[Ve].offset(Sr),Ke=ee==="off"?Gy:xt;return m.jsx(Ke,{...!ln(Ke)&&{valueLabelFormat:le,valueLabelDisplay:ee,value:typeof le=="function"?le(M(ue),be):le,index:be,open:jt===be||bt===be||ee==="on",disabled:f},...yr,children:m.jsx(Kt,{"data-index":be,...mr,className:it(Ee.thumb,mr.className,bt===be&&Ee.active,He===be&&Ee.focusVisible),style:{...$t,...Xe(be),...mr.style},children:m.jsx(A,{"data-index":be,"aria-label":v?v(be):i,"aria-valuenow":M(ue),"aria-labelledby":s,"aria-valuetext":E?E(M(ue),be):a,value:Oe[be],...br})})},be)})]})});process.env.NODE_ENV!=="production"&&(el.propTypes={"aria-label":mi(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":mi(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 Wy="[object Number]";function Hy(e){return typeof e=="number"||Ft(e)&&zt(e)==Wy}const tl=ve.observer(e=>{j.useTheme();function t(r,n){n===e.velocity||!Hy(n)||e.onVelocityChange(n)}return m.jsxs(j.Stack,{direction:"row",gap:2,children:[m.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):m.jsx(Ho,{value:e.velocity.toString()})]})});function Ho({value:e,sx:t}){var n;const r=j.useTheme();return m.jsx(j.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(n=r.palette.backgroundPaperElevation)==null?void 0:n[8],borderRadius:"10px",minWidth:"111px",...t},children:m.jsx(j.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const rl=ve.observer(({store:e})=>{const{t}=Te.useTranslation(),r=ve.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return m.jsx(tl,{velocity:e.velocityInDisplayUnits,min:e.minVelocityInDisplayUnits,max:e.maxVelocityInDisplayUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:n=>m.jsx(Ho,{value:r.valueLabelFormat(n),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),Ky=ve.observer(({store:e,children:t})=>{var d,p,S,b,f,v,E,O,k;const{t:r}=Te.useTranslation(),n=j.useTheme();function o(T,P){(P==="translate"||P==="rotate")&&e.setSelectedCartesianMotionType(P)}os(()=>[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(T,P){const $=await e.activate(),I=$.motionStream.rapidlyChangingMotionState.tcp_pose,B=$.motionStream.rapidlyChangingMotionState.state.joint_position;I&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:T.axis,direction:T.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:I,currentJoints:B,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:T.axis,direction:T.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:P.mm}:{type:"rotate",distanceRads:Ot.degreesToRadians(P.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function a(T){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return i(T,e.activeDiscreteIncrement);T.motionType==="translate"?await e.jogger.startTCPTranslation({axis:T.axis,direction:T.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:T.axis,direction:T.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function s(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}const l=[{id:"x",colors:(S=(p=(d=n.componentsExt)==null?void 0:d.JoggingCartesian)==null?void 0:p.Axis)==null?void 0:S.X,icon:m.jsx(tg,{})},{id:"y",colors:(v=(f=(b=n.componentsExt)==null?void 0:b.JoggingCartesian)==null?void 0:f.Axis)==null?void 0:v.Y,icon:m.jsx(ng,{})},{id:"z",colors:(k=(O=(E=n.componentsExt)==null?void 0:E.JoggingCartesian)==null?void 0:O.Axis)==null?void 0:k.Z,icon:m.jsx(ig,{})}];function c(T){return r("General.mm.variable",{amount:T.toFixed(1)})}function u(T){return r("General.degree.variable",{amount:Ot.radiansToDegrees(T).toFixed(1)})}return m.jsxs(j.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[m.jsxs(j.Stack,{gap:2,children:[m.jsx(Ty,{store:e}),m.jsx(rl,{store:e}),m.jsx(j.Divider,{})]}),m.jsx(j.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:m.jsxs(j.Stack,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[m.jsxs(Ey,{value:e.selectedCartesianMotionType,onChange:o,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[m.jsx(j.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),m.jsx(j.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&l.map(T=>{var P;return m.jsx(bo,{colors:T.colors,disabled:e.isLocked,activeJoggingDirection:((P=e.incrementJogInProgress)==null?void 0:P.axis)===T.id?e.incrementJogInProgress.direction:void 0,label:m.jsxs(m.Fragment,{children:[T.icon,m.jsx(j.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:T.id.toUpperCase()})]}),getDisplayedValue:()=>{var $;return c((($=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:$.position[T.id])||0)},startJogging:$=>a({axis:T.id,motionType:"translate",direction:$}),stopJogging:s},T.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(T=>{var P;return m.jsx(bo,{colors:T.colors,disabled:e.isLocked,activeJoggingDirection:((P=e.incrementJogInProgress)==null?void 0:P.axis)===T.id?e.incrementJogInProgress.direction:void 0,label:m.jsxs(m.Fragment,{children:[m.jsx(sg,{}),m.jsx(j.Typography,{sx:{fontSize:"24px",color:n.palette.text.primary},children:T.id.toUpperCase()})]}),getDisplayedValue:()=>{var $,I;return u(((I=($=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:$.orientation)==null?void 0:I[T.id])||0)},startJogging:$=>a({axis:T.id,motionType:"rotate",direction:$}),stopJogging:s},T.id)})]})}),m.jsx(Js,{store:e}),t&&m.jsx(j.Divider,{}),t]})}),qy=ve.observer(({store:e,children:t})=>{async function r(o){await e.activate(),await e.jogger.startJointRotation({joint:o.joint,direction:o.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function n(){await e.jogger.stop(),await e.deactivate()}return m.jsxs(j.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[m.jsx(rl,{store:e}),m.jsx(j.Divider,{}),m.jsx(j.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:m.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],a=(i==null?void 0:i.lower_limit)!==void 0?Ot.radiansToDegrees(i.lower_limit):void 0,s=(i==null?void 0:i.upper_limit)!==void 0?Ot.radiansToDegrees(i.upper_limit):void 0;return m.jsx(ls,{disabled:e.isLocked,lowerLimitDegs:a,upperLimitDegs:s,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[o.index];return c!==void 0?Ot.radiansToDegrees(c):void 0},startJogging:c=>r({joint:o.index,direction:c}),stopJogging:n},`joint-${o.index}`)})})}),m.jsx(Js,{store:e}),t&&m.jsx(j.Divider,{}),t]})}),Yy=fr(ve.observer(e=>{const t=jo.isString(e.nova)?new Ot.NovaClient({instanceUrl:e.nova}):e.nova,r=ve.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){cr.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{let o=e.store;if(!o){const i=await t.connectJogger(e.motionGroupId);o=await Hn.loadFor(i)}cr.runInAction(()=>{r.joggingStore=o}),e.onSetup&&e.onSetup(o)}catch(o){r.loadingError=o}}return z.useEffect(()=>(n(),e.store?()=>null:()=>{var o;(o=r.joggingStore)==null||o.dispose()}),[e.store,e.nova,e.motionGroupId]),z.useEffect(()=>{const o=r.joggingStore;o&&(e.locked?o.lock("external"):o.unlock("external"))},[r.joggingStore,e.locked]),m.jsx(j.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?m.jsx(Zy,{store:r.joggingStore,children:e.children}):m.jsx(Vo,{message:"Loading jogging",error:r.loadingError})})})),Zy=ve.observer(({store:e,children:t})=>{function r(){if(e.currentTab.id==="cartesian")return m.jsx(m.Fragment,{children:m.jsx(Ky,{store:e,children:t})});if(e.currentTab.id==="joint")return m.jsx(m.Fragment,{children:m.jsx(qy,{store:e,children:t})})}return m.jsxs(j.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[m.jsx(j.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(n=>m.jsx(j.Tab,{label:n.label,id:`jogging-tab-${n.id}`,"aria-controls":`jogging-tab-${n.id}`},n.id))}),m.jsx(j.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:r()})]})}),nl=z.forwardRef(({label:e,value:t},r)=>{var s;const n=j.useTheme(),[o,i]=z.useState(!1);async function a(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),i(!0),!0}catch(l){console.error(l);const c=window.getSelection(),u=document.createRange();u.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(u)}return!1}return z.useEffect(()=>{if(!o)return;const l=setTimeout(()=>i(!1),3e3);return()=>{l&&clearTimeout(l)}},[o]),m.jsx(j.Tooltip,{open:o,title:"Copied!",children:m.jsx(j.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(s=n.palette.backgroundPaperElevation)==null?void 0:s[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>a(),children:m.jsx(j.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:n.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),Xy=ve.observer(({motionStream:e})=>{const t=z.useRef(null);function r(){const n=e.rapidlyChangingMotionState.tcp_pose;return n?Ot.poseToWandelscriptString(n):""}return dr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),m.jsx(j.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:m.jsx(nl,{value:r(),ref:t})})}),Qy=ve.observer(({motionStream:e})=>{const t=z.useRef(null);function r(){const{joints:n}=e.rapidlyChangingMotionState.state.joint_position;return`[${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}]`}return dr(()=>{if(!t.current)return;const n=r();t.current.textContent!==n&&(t.current.textContent=n)}),m.jsx(j.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:m.jsx(nl,{value:r(),ref:t})})});function e0(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function t0({baseUrl:e=e0(),...t}){return m.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:[m.jsx(j.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),m.jsxs(j.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[m.jsx(j.Typography,{color:"#fff",children:"Found no devices to connect to."}),m.jsx(j.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),m.jsx(j.DialogActions,{children:m.jsxs(j.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[m.jsx(j.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),m.jsx(j.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const r0=Array(6).fill(2*Math.PI),Aa="0.0.0-semantically-released";function Ko(e){let t=Aa;return Aa.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function n0(e){function t(r){return r.children.length===0?[r]:[r,...r.children.flatMap(n=>t(n))]}return t(e).filter(r=>il(r))}function ol(e){return e.name.endsWith("_FLG")}function il(e){return/_J[0-9]+$/.test(e.name)}function o0(e,t){let r;function n(o){if(ol(o)){if(r)throw Error(`Found multiple flange groups in robot model ${t}; first ${r.name} then ${o.name}. Only one _FLG group is allowed.`);r=o}il(o),o.children.map(n)}if(n(e.scene),!r)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function al({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:r,children:n}){po.Globals.assign({frameLoop:"always"});const o=z.useRef([]),i=z.useRef([]),{invalidate:a}=Tl.useThree();function s(p){p&&(i.current=n0(p),c(),a())}function l(p){o.current=p,d.start(Object.assign({},o.current))}function c(){const p=i.current.map((S,b)=>u[b].get());if(r)r(i.current,p);else for(const[S,b]of i.current.entries()){const f=t[S],v=f.theta||0,E=f.reverse_rotation_direction?-1:1;b.rotation.y=E*p[S]+v}}ns(()=>{const p=e.state.joint_position.joints.filter(S=>S!==void 0);requestAnimationFrame(()=>l(p))});const[u,d]=po.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),a()},onResolve:()=>{c()}}));return m.jsx("group",{ref:s,children:n})}const ka="line",Pa="mesh";function i0({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new pt.Matrix4;function o(s,l){const c=new pt.Vector3,u=new pt.Quaternion,d=new pt.Vector3;n.decompose(c,u,d);const p=c.clone(),S=new pt.Matrix4().makeRotationY(s.theta+l*(s.reverse_rotation_direction?-1:1)).multiply(new pt.Matrix4().makeTranslation(0,s.d/1e3,0)).multiply(new pt.Matrix4().makeTranslation(s.a/1e3,0,0)).multiply(new pt.Matrix4().makeRotationX(s.alpha));return n.multiply(S),n.decompose(c,u,d),{a:p,b:c}}function i(s,l,c,u){if(!t)return;const d=t[s];if(!d)return;const{a:p,b:S}=o(d,u);l.geometry.setPositions([p.toArray(),S.toArray()].flat()),c.position.set(S.x,S.y,S.z)}function a(s,l){n.identity(),s.forEach((c,u)=>{i(u,c.getObjectByName(ka),c.getObjectByName(Pa),l[u])})}return m.jsx(m.Fragment,{children:m.jsx(al,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:a,children:m.jsxs("group",{...r,name:"Scene",children:[m.jsxs("mesh",{children:[m.jsx("sphereGeometry",{args:[.01,32,32]}),m.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((s,l)=>{const{a:c,b:u}=o(s,e.state.joint_position.joints[l]??0),d=`dhrobot_J0${l}`;return m.jsxs("group",{name:d,children:[m.jsx(qe.Line,{name:ka,points:[c,u],color:"white",lineWidth:5}),m.jsxs("mesh",{name:Pa,position:u,children:[m.jsx("sphereGeometry",{args:[.01,32,32]}),m.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},d)})]})})})}const a0=console.warn;function s0(){return z.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&a0(e)}},[]),m.jsx(m.Fragment,{})}function l0(e){return e.type==="Mesh"}function c0({modelURL:e,flangeRef:t,postModelRender:r,...n}){const{gltf:o}=o0(qe.useGLTF(e),e.split("/").pop()||e),i=z.useCallback(s=>{s&&r&&r()},[e]);function a(s){return l0(s)?m.jsx("mesh",{name:s.name,geometry:s.geometry,material:s.material,position:s.position,rotation:s.rotation},s.uuid):m.jsx(po.animated.group,{name:s.name,position:s.position,rotation:s.rotation,ref:ol(s)?t:void 0,children:s.children.map(a)},s.uuid)}return m.jsx("group",{...n,dispose:null,ref:i,children:a(o.scene)})}const u0=(e,t)=>{e.userData.isGhost||(e.traverse(r=>{if(r instanceof we.Mesh){r.material instanceof we.Material&&(r.material.colorWrite=!1);const n=r.clone(),o=r.clone();n.material=new we.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:we.DoubleSide}),n.userData.isGhost=!0,o.material=new we.MeshStandardMaterial({color:t,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:we.DoubleSide}),o.userData.isGhost=!0,r.parent&&(r.parent.add(n),r.parent.add(o))}}),e.userData.isGhost=!0)},f0=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(r=>{var n;r instanceof we.Mesh&&((n=r.userData)!=null&&n.isGhost?t.push(r):r.material instanceof we.Material&&(r.material.colorWrite=!0))}),t.forEach(r=>{r.parent&&r.parent.remove(r)}),e.userData.isGhost=!1},sl=fr(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Ko,flangeRef:o,postModelRender:i,transparentColor:a,...s})=>{const[l,c]=z.useState(null),u=z.useCallback(p=>{c(p)},[]);z.useEffect(()=>{l&&(a?u0(l,a):f0(l))},[l,a]);const d=m.jsx(i0,{rapidlyChangingMotionState:e,dhParameters:r,...s});return m.jsxs(Al.ErrorBoundary,{fallback:d,onError:p=>{console.error(p)},children:[m.jsx(z.Suspense,{fallback:d,children:m.jsx("group",{ref:u,children:m.jsx(al,{rapidlyChangingMotionState:e,dhParameters:r,children:m.jsx(c0,{modelURL:n(t),postModelRender:i,flangeRef:o,...s})})})}),m.jsx(s0,{})]})});function d0({connectedMotionGroup:e,getModel:t=Ko,flangeRef:r,transparentColor:n,...o}){return e.dhParameters?m.jsx(sl,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:r,transparentColor:n,...o}):null}const p0=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M5.248 21c-.334 0-.619-.116-.853-.35a1.153 1.153 0 0 1-.351-.848c0-.333.117-.616.351-.85.234-.233.519-.35.853-.35H7.24L4.558 9.87a2.881 2.881 0 0 1-1.126-1.042A2.77 2.77 0 0 1 3 7.317c0-.793.28-1.467.838-2.023a2.774 2.774 0 0 1 2.033-.834 2.71 2.71 0 0 1 1.728.585c.494.389.832.887 1.014 1.493h3.58V5.239c0-.22.076-.406.226-.555a.76.76 0 0 1 .558-.224c.136 0 .263.035.381.104.118.07.209.167.273.292v.14l1.835-1.702a.979.979 0 0 1 .52-.279.881.881 0 0 1 .58.091l4.01 1.85a.74.74 0 0 1 .36.364.537.537 0 0 1-.002.474.592.592 0 0 1-.366.323.657.657 0 0 1-.477-.039l-3.858-1.774L13.76 6.59v1.454l2.473 2.233 3.858-1.774a.648.648 0 0 1 .485-.03.571.571 0 0 1 .358.314.513.513 0 0 1 .01.482.79.79 0 0 1-.367.357l-4.011 1.882a.881.881 0 0 1-.58.09.979.979 0 0 1-.52-.278L13.63 9.638v.14a.92.92 0 0 1-.273.275.665.665 0 0 1-.381.12.76.76 0 0 1-.558-.224.752.752 0 0 1-.225-.555V8.096h-3.58a2.82 2.82 0 0 1-.215.54 2.552 2.552 0 0 1-.323.479l5.139 9.488h2.673c.335 0 .62.116.854.35.234.233.35.516.35.849 0 .332-.116.615-.35.849a1.167 1.167 0 0 1-.854.349H5.248Zm.623-12.385c.362 0 .67-.126.924-.378a1.25 1.25 0 0 0 .38-.92 1.25 1.25 0 0 0-.38-.92 1.261 1.261 0 0 0-.924-.379 1.26 1.26 0 0 0-.925.379 1.25 1.25 0 0 0-.38.92c0 .36.127.667.38.92.254.252.562.378.925.378Z"})),g0=z.forwardRef(p0),h0=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"m13.37 9.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95-7.66 7.66-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72 1.79-1.79Zm-.91-2.99.91-.91 2.6 2.6-.91.91-2.6-2.6Zm-2.25 10.24h3.74l-1.34-1.34-.04-.04h-2.5l-3.25-3.25 4.59-4.59.92.92L9.5 10.9l5.33 5.33v1.48H10.2v-1.35l.01.01ZM2 2v4.99h1.41V3.4h3.58V2H2ZM22.21 2h-4.98v1.41h3.59v3.58h1.4V2h-.01ZM20.81 20.65h-3.58v1.4h4.98v-4.99h-1.4v3.59ZM3.4 17.06H2v4.98h4.99v-1.4H3.4v-3.58Z"})),m0=z.forwardRef(h0),nt=ve.observer(({id:e,icon:t,color:r,title:n,name:o,explanation:i,literalValue:a,anchorOrigin:s,transformOrigin:l})=>{const c=ve.useLocalObservable(()=>({anchorEl:null,get isPopoverOpen(){return!!c.anchorEl},openPopover(u){c.anchorEl=u.currentTarget},closePopover(){c.anchorEl=null}}));return m.jsxs(m.Fragment,{children:[m.jsx(j.Stack,{"aria-owns":c.isPopoverOpen?e:void 0,"aria-haspopup":"true",onMouseEnter:c.openPopover,onMouseLeave:c.closePopover,sx:{cursor:"pointer"},children:m.jsx(j.SvgIcon,{component:t,sx:{color:r}})}),m.jsx(j.Popover,{id:e,sx:{pointerEvents:"none"},open:c.isPopoverOpen,anchorEl:c.anchorEl,anchorOrigin:s??{vertical:"bottom",horizontal:"left"},transformOrigin:l??{vertical:"top",horizontal:"left"},onClose:c.closePopover,disableRestoreFocus:!0,children:m.jsxs(j.Stack,{gap:"1rem",padding:2,maxWidth:"450px",sx:{wordWrap:"break-word"},children:[m.jsxs("div",{children:[n&&m.jsx(j.Typography,{component:"span",fontSize:"14px",children:`${n}: `}),m.jsx(j.Typography,{component:"span",color:r,fontWeight:"bold",fontSize:"14px",children:o})]}),m.jsx(j.Typography,{fontSize:"14px",children:i}),a&&m.jsx(j.Typography,{fontSize:"12px",children:a})]})})]})}),y0=ve.observer(({isVirtual:e,motionGroupId:t,anchorOrigin:r,transformOrigin:n})=>{const o=j.useTheme(),{t:i}=Te.useTranslation();return e?m.jsx(nt,{id:"motion-group-virtual",icon:m0,color:o.palette.tertiary.main,name:i("SafetyBar.ControllerType.Virtual.lb"),explanation:m.jsxs(Te.Trans,{i18nKey:"SafetyBar.MotionGroup.Virtual.Explanation.lb",values:{motionGroupId:t},children:["Motion group ",m.jsx("code",{children:t})," refers to a virtual robot with no physical counterpart. It can be freely manipulated without special safety precautions."]}),anchorOrigin:r,transformOrigin:n}):m.jsx(nt,{id:"motion-group-physical",icon:g0,color:o.palette.primary.main,name:i("SafetyBar.ControllerType.Physical.lb"),explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.MotionGroup.Physical.Explanation.lb",values:{motionGroupId:t},components:{code:m.jsx("code",{}),strong:m.jsx("strong",{})}}),anchorOrigin:r,transformOrigin:n})}),b0=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.306 2.768c0-.424.344-.768.768-.768h.406C19.53 2 22 4.551 22 7.699c0 3.237-2.51 5.587-5.31 5.703-.84 1.595-2.478 2.677-4.36 2.677a4.845 4.845 0 0 1-3.146-1.163c-.6 1.783 0 3.922 1.79 4.99 1.929 1.149 4.395.467 5.508-1.524l.212-.378a.75.75 0 1 1 1.308.732l-.231.414c-1.524 2.725-4.9 3.66-7.54 2.085-2.716-1.618-3.432-5.037-2.129-7.599a5.22 5.22 0 0 1-.73-2.677c0-2.192 1.335-4.063 3.212-4.793-1.195-1.427-3.29-1.96-5.08-.892-1.928 1.15-2.589 3.696-1.475 5.687l.231.413a.75.75 0 0 1-1.308.732l-.212-.377c-1.524-2.726-.62-6.211 2.02-7.785 2.716-1.619 5.943-.55 7.44 1.897l.13-.001c2.739 0 4.96 2.292 4.96 5.12 0 .284-.023.563-.066.834 1.795-.354 3.288-1.96 3.288-4.095 0-2.3-1.805-4.163-4.032-4.163h-.406a.768.768 0 0 1-.768-.768Zm.496 8.191c0 .286-.033.564-.094.831a3.62 3.62 0 0 1-.672 1.415 3.425 3.425 0 0 1-2.706 1.338 3.402 3.402 0 0 1-2.384-.98 3.598 3.598 0 0 1-.852-1.306 3.677 3.677 0 0 1-.235-1.298c0-1.623 1.046-2.994 2.48-3.435a3.37 3.37 0 0 1 1.522-.107c1.665.264 2.94 1.75 2.94 3.542Z"})),S0=z.forwardRef(b0),v0=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z",fill:"#fff",fillOpacity:.56})),x0=z.forwardRef(v0),w0=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M12.953 5.09a1.497 1.497 0 0 0-1.653-.518l-1.35.43a1.504 1.504 0 0 0-1.726-.376L2.858 6.97c-.736.321-1.06 1.155-.726 1.862.334.707 1.202 1.02 1.937.698l4.27-1.865 1.466 1.973v.402c0 .873-.627 1.63-1.512 1.827l-2.56.567c-1.329.295-2.27 1.431-2.27 2.74v.107c0 .26.22.469.489.469h11.117c1.329 0 2.618.435 3.656 1.233l1.665 1.28A1 1 0 0 0 22 17.47V11.062c0-.312-.108-.616-.308-.863l-3.415-4.218a1.5 1.5 0 0 0-1.618-.471l-.378.12-.866-.475a1.516 1.516 0 0 0-1.188-.114l-1.06.338-.214-.289Z"})),T0=z.forwardRef(w0),E0=ve.observer(({operationMode:e,anchorOrigin:t,transformOrigin:r})=>{const{t:n}=Te.useTranslation(),o=j.useTheme();switch(e){case"OPERATION_MODE_AUTO":return m.jsx(nt,{id:"operation-mode-auto",icon:S0,title:n("SafetyBar.OperationMode.ti"),name:n("SafetyBar.OperationMode.Automatic.ti"),color:"rgba(255, 255, 255, 0.57)",explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.OperationMode.Auto.Explanation.lb",children:"The robot controller is in automatic operation mode. Automated movement without manual confirmation is possible in this mode."}),anchorOrigin:t,transformOrigin:r});case"OPERATION_MODE_MANUAL":case"OPERATION_MODE_MANUAL_T1":case"OPERATION_MODE_MANUAL_T2":return m.jsx(nt,{id:"operation-mode-manual",icon:T0,color:o.palette.warning.main,title:n("SafetyBar.OperationMode.ti"),name:n("SafetyBar.OperationMode.Manual.lb"),explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.OperationMode.Manual.Explanation.lb",children:"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:return m.jsx(nt,{id:"operation-mode-error",icon:x0,color:o.palette.warning.main,title:n("SafetyBar.OperationMode.ti"),name:n("SafetyBar.OperationMode.Error.lb"),explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.OperationMode.Error.Explanation.lb",children:"The robot controller has entered an unexpected operation mode. Motion group movement may not be possible."}),literalValue:e,anchorOrigin:t,transformOrigin:r})}}),C0=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z"})),O0=z.forwardRef(C0),R0=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M10.24 10.636 12 13.764l1.76-3.128h-3.52Z"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.364 12a6.364 6.364 0 1 1-12.728 0 6.364 6.364 0 0 1 12.728 0ZM7.909 9.273 12 16.546l4.09-7.273H7.91Z"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.364 0a8.636 8.636 0 1 1-17.273 0 8.636 8.636 0 0 1 17.273 0Z"})),A0=z.forwardRef(R0),k0=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M9.057 15.115c-1.681 0-3.111-.59-4.29-1.768C3.59 12.17 3 10.74 3 9.057c0-.29.021-.582.064-.876a4.1 4.1 0 0 1 .214-.844.78.78 0 0 1 .273-.36c.115-.077.244-.133.389-.168a.857.857 0 0 1 .437.008c.146.04.28.12.4.24l2.806 2.787 2.26-2.261-2.775-2.786a.903.903 0 0 1-.241-.405.875.875 0 0 1-.008-.442 1.13 1.13 0 0 1 .174-.389.82.82 0 0 1 .355-.273c.268-.107.548-.182.838-.224.29-.043.581-.064.871-.064 1.682 0 3.112.59 4.29 1.768 1.179 1.178 1.768 2.608 1.768 4.29 0 .444-.042.858-.126 1.241-.084.384-.21.755-.377 1.113l5.726 5.692A2.2 2.2 0 0 1 21 18.721a2.2 2.2 0 0 1-.662 1.617A2.2 2.2 0 0 1 18.72 21a2.173 2.173 0 0 1-1.617-.679l-5.692-5.709c-.372.161-.75.285-1.133.372-.383.087-.79.13-1.222.13Z",fill:"#fff",fillOpacity:.56})),P0=z.forwardRef(k0),j0=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"m10.6 13.8-2.15-2.15a.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275.948.948 0 0 0-.275.7c0 .283.092.517.275.7L9.9 15.9c.2.2.433.3.7.3.267 0 .5-.1.7-.3l5.65-5.65a.948.948 0 0 0 .275-.7.948.948 0 0 0-.275-.7.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275L10.6 13.8ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),_0=z.forwardRef(j0),$0=({title:e,titleId:t,...r},n)=>C.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...r},e?C.createElement("title",{id:t},e):null,C.createElement("path",{d:"M9 16h6c.283 0 .52-.096.713-.287A.968.968 0 0 0 16 15V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 15 8H9a.968.968 0 0 0-.713.287A.968.968 0 0 0 8 9v6c0 .283.096.52.287.713.192.191.43.287.713.287Zm3 6a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),L0=z.forwardRef($0),I0=ve.observer(({safetyState:e,anchorOrigin:t,transformOrigin:r})=>{const{t:n}=Te.useTranslation(),o=j.useTheme();switch(e){case"SAFETY_STATE_NORMAL":return m.jsx(nt,{id:"safety-state-normal",title:n("SafetyBar.SafetyState.ti"),name:n("SafetyBar.SafetyState.Normal.lb"),icon:_0,color:"rgba(255, 255, 255, 0.57)",explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.SafetyState.Normal.Explanation.lb",children:"The robot controller is in a normal safety state. Movement is not prevented by this state."}),anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_DEVICE_EMERGENCY_STOP":case"SAFETY_STATE_ROBOT_EMERGENCY_STOP":return m.jsx(nt,{id:"safety-state-estop",title:n("SafetyBar.SafetyState.ti"),name:n("SafetyBar.SafetyState.Estop.lb"),icon:A0,color:o.palette.error.main,explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.StopState.Estop.Explanation.lb",children:"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_STOP_0":case"SAFETY_STATE_STOP_1":case"SAFETY_STATE_STOP_2":case"SAFETY_STATE_PROTECTIVE_STOP":case"SAFETY_STATE_STOP":return m.jsx(nt,{id:"safety-state-stop",icon:L0,title:n("SafetyBar.SafetyState.ti"),name:n("SafetyBar.SafetyState.Stop.lb"),color:o.palette.warning.main,explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.SafetyState.Stop.Explanation.lb",children:"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_REDUCED":case"SAFETY_STATE_MASTERING":case"SAFETY_STATE_CONFIRM_SAFETY":case"SAFETY_STATE_OPERATOR_SAFETY":case"SAFETY_STATE_RECOVERY":case"SAFETY_STATE_VIOLATION":return m.jsx(nt,{id:"safety-state-manual-action-required",icon:P0,color:o.palette.warning.main,title:n("SafetyBar.SafetyState.ti"),name:n("SafetyBar.SafetyState.ManualActionRequired.lb"),explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb",children:"The robot controller has entered a safety state requiring manual action to resolve."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_UNKNOWN":case"SAFETY_STATE_FAULT":return m.jsx(nt,{id:"safety-state-error",icon:O0,color:o.palette.error.main,title:n("SafetyBar.SafetyState.ti"),name:n("SafetyBar.SafetyState.Error.lb"),explanation:m.jsx(Te.Trans,{i18nKey:"SafetyBar.SafetyState.Error.Explanation.lb",children:"The robot controller has entered an unexpected safety state."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:Xp(e,`Unknown safety state ${e}`)}}),M0=fr(ve.observer(e=>m.jsxs(j.Stack,{direction:"row",gap:"8px",alignItems:"center",sx:{height:"24px"},children:[m.jsx(I0,{safetyState:e.safetyState,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin}),m.jsx(j.Divider,{orientation:"vertical",flexItem:!0}),m.jsx(E0,{operationMode:e.operationMode,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin}),m.jsx(j.Divider,{orientation:"vertical",flexItem:!0}),m.jsx(y0,{isVirtual:e.isVirtual,motionGroupId:e.motionGroupId,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin})]}))),N0=j.styled(j.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,n;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:o})=>!o,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:o})=>o,style:{background:(n=e.palette.backgroundPaperElevation)==null?void 0:n[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),D0=z.forwardRef((e,t)=>m.jsx(N0,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),F0={$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"},B0=z.lazy(()=>import("@monaco-editor/react"));let fo=null;async function V0(){if(!fo){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);fo={shiki:await e({langs:[F0],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return fo}const U0=fr(e=>{const t=j.useTheme(),[r,n]=z.useState("dark-plus"),o=t.palette.mode==="dark"?"dark-plus":"light-plus";async function i(a){var c,u;a.languages.register({id:"wandelscript"}),a.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const{shiki:s,shikiToMonaco:l}=await V0();l(s,a),a.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(a),n(o)}return m.jsx(z.Suspense,{fallback:m.jsx(Vo,{}),children:m.jsx(B0,{value:e.code,onMount:(a,s)=>{i(s)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:r,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function ll(){var t,r,n,o,i,a,s;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:{MuiCssBaseline:{styleOverrides:{"html, body, *":{scrollbarWidth:"none",msOverflowStyle:"none"},"html:hover, body:hover, *:hover":{scrollbarWidth:"thin",scrollbarColor:`${e.palette.divider} transparent`}}},MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(n=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:n.toString()}},{props:{color:"secondary",variant:"outlined"},style:{border:`1px solid ${e.palette.divider}`}}]},MuiTab:{styleOverrides:{root:{textTransform:"none",color:e.palette.text.secondary,"&.Mui-selected":{color:e.palette.text.primary}}}},MuiTabs:{styleOverrides:{root:{background:(o=e.palette.backgroundPaperElevation)==null?void 0:o[1]}}},MuiToggleButtonGroup:{styleOverrides:{root:{".MuiToggleButtonGroup-firstButton":{borderRadius:"10px 0 0 10px"},".MuiToggleButtonGroup-lastButton":{borderRadius:"0 10px 10px 0"}}}},MuiToggleButton:{styleOverrides:{root:{textTransform:"none",padding:"6px 16px"}}},MuiSelect:{variants:[{props:{variant:"filled"},style:{borderRadius:"10px","::before, ::after":{visibility:"collapse"},".MuiInputBase-input":{padding:"6px 16px",borderRadius:"10px"}}}]},MuiDrawer:{styleOverrides:{paper:{border:"none",boxShadow:"4px 0 8px -4px rgba(0, 0, 0, 0.3)"}}},MuiFab:{styleOverrides:{root:{background:(a=(i=e.paletteExt)==null?void 0:i.secondary)==null?void 0:a.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(((s=e.palette.backgroundPaperElevation)==null?void 0:s[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function z0(){const e=ll();return e.palette.mode="light",e}function J0(e){var n,o,i,a;let t=!0;((n=e.palette)==null?void 0:n.mode)==="light"?t=!1:((o=e.palette)==null?void 0:o.mode)!=="dark"&&(t=!(typeof window<"u"&&((a=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:a.matches)));const r=t?ll():z0();return Qa(r,e)}exports.JoggingCartesianAxisControl=bo;exports.JoggingJointRotationControl=ls;exports.JoggingPanel=Yy;exports.JoggingStore=Hn;exports.LoadingCover=Vo;exports.LoadingErrorMessage=$s;exports.NoMotionGroupModal=t0;exports.PoseCartesianValues=Xy;exports.PoseJointValues=Qy;exports.PresetEnvironment=_l;exports.Robot=d0;exports.SafetyBar=M0;exports.SafetyZonesRenderer=Il;exports.SelectableFab=D0;exports.SupportedRobot=sl;exports.TrajectoryRenderer=Ml;exports.VelocitySlider=tl;exports.VelocitySliderLabel=Ho;exports.WandelscriptEditor=U0;exports.createNovaMuiTheme=J0;exports.defaultAxisConfig=r0;exports.defaultGetModel=Ko;exports.useAnimationFrame=dr;exports.useAutorun=ns;exports.useMounted=In;exports.useReaction=os;
85
+ export default theme;`}function Ls(e={},...t){const{breakpoints:r,mixins:a={},spacing:n,palette:s={},transitions:o={},typography:i={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Kt(20));const d=po(s),u=Nn(e);let p=Qe(u,{mixins:Sh(u.breakpoints,a),palette:d,shadows:Ph.slice(),typography:xh(d,i),transitions:Ah(o),zIndex:{...Th}});if(p=Qe(p,c),p=t.reduce((f,y)=>Qe(f,y),p),process.env.NODE_ENV!=="production"){const f=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],y=(h,x)=>{let E;for(E in h){const k=h[E];if(f.includes(E)&&Object.keys(k).length>0){if(process.env.NODE_ENV!=="production"){const D=Ba("",E);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${E}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${D}' syntax:`,JSON.stringify({root:{[`&.${D}`]:k}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
86
+ `))}h[E]={}}}};Object.keys(p.components).forEach(h=>{const x=p.components[h].styleOverrides;x&&h.startsWith("Mui")&&y(x,h)})}return p.unstable_sxConfig={...ka,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(y){return Hr({sx:y,theme:this})},p.toRuntimeSource=Zl,p}function Ih(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 Mh=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Ih(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function ec(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function tc(e){return e==="dark"?Mh:[]}function jh(e){const{palette:t={mode:"light"},opacity:r,overlays:a,...n}=e,s=po(t);return{palette:s,opacity:{...ec(s.mode),...r},overlays:a||tc(s.mode),...n}}function $h(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 Uh=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Lh=e=>(t,r)=>{const a=e.rootSelector||":root",n=e.colorSchemeSelector;let s=n;if(n==="class"&&(s=".%s"),n==="data"&&(s="[data-%s]"),n!=null&&n.startsWith("data-")&&!n.includes("%s")&&(s=`[${n}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return Uh(e.cssVarPrefix).forEach(i=>{o[i]=r[i],delete r[i]}),s==="media"?{[a]:r,"@media (prefers-color-scheme: dark)":{[a]:o}}:s?{[s.replace("%s",t)]:o,[`${a}, ${s.replace("%s",t)}`]:r}:{[a]:{...r,...o}}}if(s&&s!=="media")return`${a}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[a]:r}};if(s)return s.replace("%s",String(t))}return a};function kh(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function U(e,t,r){!e[t]&&r&&(e[t]=r)}function Oa(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ql(e)}function It(e,t){`${t}Channel`in e||(e[`${t}Channel`]=xa(Oa(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 Bh(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const St=e=>{try{return e()}catch{}},Fh=(e="mui")=>Xp(e);function fs(e,t,r,a){if(!t)return;t=t===!0?{}:t;const n=a==="dark"?"dark":"light";if(!r){e[a]=jh({...t,palette:{mode:n,...t==null?void 0:t.palette}});return}const{palette:s,...o}=Ls({...r,palette:{mode:n,...t==null?void 0:t.palette}});return e[a]={...t,palette:s,opacity:{...ec(n),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||tc(n)},o}function Nh(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:a,disableCssColorScheme:n=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:o=$h,colorSchemeSelector:i=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...c}=e,d=Object.keys(r)[0],u=a||(r.light&&d!=="light"?"light":d),p=Fh(s),{[u]:f,light:y,dark:h,...x}=r,E={...x};let k=f;if((u==="dark"&&!("dark"in r)||u==="light"&&!("light"in r))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${u}\` option is either missing or invalid.`:Kt(21,u));const D=fs(E,k,c,u);y&&!E.light&&fs(E,y,void 0,"light"),h&&!E.dark&&fs(E,h,void 0,"dark");let I={defaultColorScheme:u,...D,cssVarPrefix:s,colorSchemeSelector:i,rootSelector:l,getCssVar:p,colorSchemes:E,font:{...bh(D.typography),...D.font},spacing:Bh(c.spacing)};Object.keys(I.colorSchemes).forEach(B=>{const g=I.colorSchemes[B].palette,$=N=>{const J=N.split("-"),z=J[1],re=J[2];return p(N,g[z][re])};if(g.mode==="light"&&(U(g.common,"background","#fff"),U(g.common,"onBackground","#000")),g.mode==="dark"&&(U(g.common,"background","#000"),U(g.common,"onBackground","#fff")),kh(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){U(g.Alert,"errorColor",be(g.error.light,.6)),U(g.Alert,"infoColor",be(g.info.light,.6)),U(g.Alert,"successColor",be(g.success.light,.6)),U(g.Alert,"warningColor",be(g.warning.light,.6)),U(g.Alert,"errorFilledBg",$("palette-error-main")),U(g.Alert,"infoFilledBg",$("palette-info-main")),U(g.Alert,"successFilledBg",$("palette-success-main")),U(g.Alert,"warningFilledBg",$("palette-warning-main")),U(g.Alert,"errorFilledColor",St(()=>g.getContrastText(g.error.main))),U(g.Alert,"infoFilledColor",St(()=>g.getContrastText(g.info.main))),U(g.Alert,"successFilledColor",St(()=>g.getContrastText(g.success.main))),U(g.Alert,"warningFilledColor",St(()=>g.getContrastText(g.warning.main))),U(g.Alert,"errorStandardBg",Se(g.error.light,.9)),U(g.Alert,"infoStandardBg",Se(g.info.light,.9)),U(g.Alert,"successStandardBg",Se(g.success.light,.9)),U(g.Alert,"warningStandardBg",Se(g.warning.light,.9)),U(g.Alert,"errorIconColor",$("palette-error-main")),U(g.Alert,"infoIconColor",$("palette-info-main")),U(g.Alert,"successIconColor",$("palette-success-main")),U(g.Alert,"warningIconColor",$("palette-warning-main")),U(g.AppBar,"defaultBg",$("palette-grey-100")),U(g.Avatar,"defaultBg",$("palette-grey-400")),U(g.Button,"inheritContainedBg",$("palette-grey-300")),U(g.Button,"inheritContainedHoverBg",$("palette-grey-A100")),U(g.Chip,"defaultBorder",$("palette-grey-400")),U(g.Chip,"defaultAvatarColor",$("palette-grey-700")),U(g.Chip,"defaultIconColor",$("palette-grey-700")),U(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),U(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),U(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),U(g.LinearProgress,"primaryBg",Se(g.primary.main,.62)),U(g.LinearProgress,"secondaryBg",Se(g.secondary.main,.62)),U(g.LinearProgress,"errorBg",Se(g.error.main,.62)),U(g.LinearProgress,"infoBg",Se(g.info.main,.62)),U(g.LinearProgress,"successBg",Se(g.success.main,.62)),U(g.LinearProgress,"warningBg",Se(g.warning.main,.62)),U(g.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),U(g.Slider,"primaryTrack",Se(g.primary.main,.62)),U(g.Slider,"secondaryTrack",Se(g.secondary.main,.62)),U(g.Slider,"errorTrack",Se(g.error.main,.62)),U(g.Slider,"infoTrack",Se(g.info.main,.62)),U(g.Slider,"successTrack",Se(g.success.main,.62)),U(g.Slider,"warningTrack",Se(g.warning.main,.62));const N=qa(g.background.default,.8);U(g.SnackbarContent,"bg",N),U(g.SnackbarContent,"color",St(()=>g.getContrastText(N))),U(g.SpeedDialAction,"fabHoverBg",qa(g.background.paper,.15)),U(g.StepConnector,"border",$("palette-grey-400")),U(g.StepContent,"border",$("palette-grey-400")),U(g.Switch,"defaultColor",$("palette-common-white")),U(g.Switch,"defaultDisabledColor",$("palette-grey-100")),U(g.Switch,"primaryDisabledColor",Se(g.primary.main,.62)),U(g.Switch,"secondaryDisabledColor",Se(g.secondary.main,.62)),U(g.Switch,"errorDisabledColor",Se(g.error.main,.62)),U(g.Switch,"infoDisabledColor",Se(g.info.main,.62)),U(g.Switch,"successDisabledColor",Se(g.success.main,.62)),U(g.Switch,"warningDisabledColor",Se(g.warning.main,.62)),U(g.TableCell,"border",Se(Ha(g.divider,1),.88)),U(g.Tooltip,"bg",Ha(g.grey[700],.92))}if(g.mode==="dark"){U(g.Alert,"errorColor",Se(g.error.light,.6)),U(g.Alert,"infoColor",Se(g.info.light,.6)),U(g.Alert,"successColor",Se(g.success.light,.6)),U(g.Alert,"warningColor",Se(g.warning.light,.6)),U(g.Alert,"errorFilledBg",$("palette-error-dark")),U(g.Alert,"infoFilledBg",$("palette-info-dark")),U(g.Alert,"successFilledBg",$("palette-success-dark")),U(g.Alert,"warningFilledBg",$("palette-warning-dark")),U(g.Alert,"errorFilledColor",St(()=>g.getContrastText(g.error.dark))),U(g.Alert,"infoFilledColor",St(()=>g.getContrastText(g.info.dark))),U(g.Alert,"successFilledColor",St(()=>g.getContrastText(g.success.dark))),U(g.Alert,"warningFilledColor",St(()=>g.getContrastText(g.warning.dark))),U(g.Alert,"errorStandardBg",be(g.error.light,.9)),U(g.Alert,"infoStandardBg",be(g.info.light,.9)),U(g.Alert,"successStandardBg",be(g.success.light,.9)),U(g.Alert,"warningStandardBg",be(g.warning.light,.9)),U(g.Alert,"errorIconColor",$("palette-error-main")),U(g.Alert,"infoIconColor",$("palette-info-main")),U(g.Alert,"successIconColor",$("palette-success-main")),U(g.Alert,"warningIconColor",$("palette-warning-main")),U(g.AppBar,"defaultBg",$("palette-grey-900")),U(g.AppBar,"darkBg",$("palette-background-paper")),U(g.AppBar,"darkColor",$("palette-text-primary")),U(g.Avatar,"defaultBg",$("palette-grey-600")),U(g.Button,"inheritContainedBg",$("palette-grey-800")),U(g.Button,"inheritContainedHoverBg",$("palette-grey-700")),U(g.Chip,"defaultBorder",$("palette-grey-700")),U(g.Chip,"defaultAvatarColor",$("palette-grey-300")),U(g.Chip,"defaultIconColor",$("palette-grey-300")),U(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),U(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),U(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),U(g.LinearProgress,"primaryBg",be(g.primary.main,.5)),U(g.LinearProgress,"secondaryBg",be(g.secondary.main,.5)),U(g.LinearProgress,"errorBg",be(g.error.main,.5)),U(g.LinearProgress,"infoBg",be(g.info.main,.5)),U(g.LinearProgress,"successBg",be(g.success.main,.5)),U(g.LinearProgress,"warningBg",be(g.warning.main,.5)),U(g.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),U(g.Slider,"primaryTrack",be(g.primary.main,.5)),U(g.Slider,"secondaryTrack",be(g.secondary.main,.5)),U(g.Slider,"errorTrack",be(g.error.main,.5)),U(g.Slider,"infoTrack",be(g.info.main,.5)),U(g.Slider,"successTrack",be(g.success.main,.5)),U(g.Slider,"warningTrack",be(g.warning.main,.5));const N=qa(g.background.default,.98);U(g.SnackbarContent,"bg",N),U(g.SnackbarContent,"color",St(()=>g.getContrastText(N))),U(g.SpeedDialAction,"fabHoverBg",qa(g.background.paper,.15)),U(g.StepConnector,"border",$("palette-grey-600")),U(g.StepContent,"border",$("palette-grey-600")),U(g.Switch,"defaultColor",$("palette-grey-300")),U(g.Switch,"defaultDisabledColor",$("palette-grey-600")),U(g.Switch,"primaryDisabledColor",be(g.primary.main,.55)),U(g.Switch,"secondaryDisabledColor",be(g.secondary.main,.55)),U(g.Switch,"errorDisabledColor",be(g.error.main,.55)),U(g.Switch,"infoDisabledColor",be(g.info.main,.55)),U(g.Switch,"successDisabledColor",be(g.success.main,.55)),U(g.Switch,"warningDisabledColor",be(g.warning.main,.55)),U(g.TableCell,"border",be(Ha(g.divider,1),.68)),U(g.Tooltip,"bg",Ha(g.grey[700],.92))}It(g.background,"default"),It(g.background,"paper"),It(g.common,"background"),It(g.common,"onBackground"),It(g,"divider"),Object.keys(g).forEach(N=>{const J=g[N];N!=="tonalOffset"&&J&&typeof J=="object"&&(J.main&&U(g[N],"mainChannel",xa(Oa(J.main))),J.light&&U(g[N],"lightChannel",xa(Oa(J.light))),J.dark&&U(g[N],"darkChannel",xa(Oa(J.dark))),J.contrastText&&U(g[N],"contrastTextChannel",xa(Oa(J.contrastText))),N==="text"&&(It(g[N],"primary"),It(g[N],"secondary")),N==="action"&&(J.active&&It(g[N],"active"),J.selected&&It(g[N],"selected")))})}),I=t.reduce((B,g)=>Qe(B,g),I);const F={prefix:s,disableCssColorScheme:n,shouldSkipGeneratingVar:o,getSelector:Lh(I)},{vars:q,generateThemeVars:M,generateStyleSheets:L}=th(I,F);return I.vars=q,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([B,g])=>{I[B]=g}),I.generateThemeVars=M,I.generateStyleSheets=L,I.generateSpacing=function(){return Fl(c.spacing,$n(this))},I.getColorSchemeSelector=rh(i),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=o,I.unstable_sxConfig={...ka,...c==null?void 0:c.unstable_sxConfig},I.unstable_sx=function(g){return Hr({sx:g,theme:this})},I.toRuntimeSource=Zl,I}function ri(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:po({...r===!0?{}:r.palette,mode:t})})}function rc(e={},...t){const{palette:r,cssVariables:a=!1,colorSchemes:n=r?void 0:{light:!0},defaultColorScheme:s=r==null?void 0:r.mode,...o}=e,i=s||"light",l=n==null?void 0:n[i],c={...n,...r?{[i]:{...typeof l!="boolean"&&l,palette:r}}:void 0};if(a===!1){if(!("colorSchemes"in e))return Ls(e,...t);let d=r;"palette"in e||c[i]&&(c[i]!==!0?d=c[i].palette:i==="dark"&&(d={mode:"dark"}));const u=Ls({...e,palette:d},...t);return u.defaultColorScheme=i,u.colorSchemes=c,u.palette.mode==="light"&&(u.colorSchemes.light={...c.light!==!0&&c.light,palette:u.palette},ri(u,"dark",c.dark)),u.palette.mode==="dark"&&(u.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:u.palette},ri(u,"light",c.light)),u}return!r&&!("light"in c)&&i==="light"&&(c.light=!0),Nh({...o,colorSchemes:c,defaultColorScheme:i,...typeof a!="boolean"&&a},...t)}const Dh=rc(),zh="$$material";function ho(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Gh=e=>ho(e)&&e!=="classes",$t=ql({themeId:zh,defaultTheme:Dh,rootShouldForwardProp:Gh});process.env.NODE_ENV!=="production"&&(b.node,b.object.isRequired);function mo(e){return Kp(e)}const Dr=ch({createStyledComponent:$t("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>mo({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(Dr.propTypes={children:b.node,component:b.elementType,direction:b.oneOfType([b.oneOf(["column-reverse","column","row-reverse","row"]),b.arrayOf(b.oneOf(["column-reverse","column","row-reverse","row"])),b.object]),divider:b.node,spacing:b.oneOfType([b.arrayOf(b.oneOfType([b.number,b.string])),b.number,b.object,b.string]),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),useFlexGap:b.bool});const ne=e=>typeof e=="string",ua=()=>{let e,t;const r=new Promise((a,n)=>{e=a,t=n});return r.resolve=e,r.reject=t,r},ai=e=>e==null?"":""+e,Hh=(e,t,r)=>{e.forEach(a=>{t[a]&&(r[a]=t[a])})},qh=/###/g,ni=e=>e&&e.indexOf("###")>-1?e.replace(qh,"."):e,si=e=>!e||ne(e),Ca=(e,t,r)=>{const a=ne(t)?t.split("."):t;let n=0;for(;n<a.length-1;){if(si(e))return{};const s=ni(a[n]);!e[s]&&r&&(e[s]=new r),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++n}return si(e)?{}:{obj:e,k:ni(a[n])}},oi=(e,t,r)=>{const{obj:a,k:n}=Ca(e,t,Object);if(a!==void 0||t.length===1){a[n]=r;return}let s=t[t.length-1],o=t.slice(0,t.length-1),i=Ca(e,o,Object);for(;i.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),i=Ca(e,o,Object),i!=null&&i.obj&&typeof i.obj[`${i.k}.${s}`]<"u"&&(i.obj=void 0);i.obj[`${i.k}.${s}`]=r},Jh=(e,t,r,a)=>{const{obj:n,k:s}=Ca(e,t,Object);n[s]=n[s]||[],n[s].push(r)},vn=(e,t)=>{const{obj:r,k:a}=Ca(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,a))return r[a]},Wh=(e,t,r)=>{const a=vn(e,r);return a!==void 0?a:vn(t,r)},ac=(e,t,r)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?ne(e[a])||e[a]instanceof String||ne(t[a])||t[a]instanceof String?r&&(e[a]=t[a]):ac(e[a],t[a],r):e[a]=t[a]);return e},Tr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Qh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Kh=e=>ne(e)?e.replace(/[&<>"'\/]/g,t=>Qh[t]):e;class Yh{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}}const Xh=[" ",",","?","!",";"],Zh=new Yh(20),em=(e,t,r)=>{t=t||"",r=r||"";const a=Xh.filter(o=>t.indexOf(o)<0&&r.indexOf(o)<0);if(a.length===0)return!0;const n=Zh.getRegExp(`(${a.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!n.test(e);if(!s){const o=e.indexOf(r);o>0&&!n.test(e.substring(0,o))&&(s=!0)}return s},ks=function(e,t){let r=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 a=t.split(r);let n=e;for(let s=0;s<a.length;){if(!n||typeof n!="object")return;let o,i="";for(let l=s;l<a.length;++l)if(l!==s&&(i+=r),i+=a[l],o=n[i],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&l<a.length-1)continue;s+=l-s+1;break}n=o}return n},xn=e=>e==null?void 0:e.replace("_","-"),tm={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var r,a;(a=(r=console==null?void 0:console[e])==null?void 0:r.apply)==null||a.call(r,console,t)}};class On{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||tm,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,a,n){return n&&!this.debug?null:(ne(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new On(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new On(this.logger,t)}}var Ct=new On;class zn{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const n=this.observers[a].get(r)||0;this.observers[a].set(r,n+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[i,l]=o;for(let c=0;c<l;c++)i(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[i,l]=o;for(let c=0;c<l;c++)i.apply(i,[t,...a])})}}class ii extends zn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,a){var c,d;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;t.indexOf(".")>-1?i=t.split("."):(i=[t,r],a&&(Array.isArray(a)?i.push(...a):ne(a)&&s?i.push(...a.split(s)):i.push(a)));const l=vn(this.data,i);return!l&&!r&&!a&&t.indexOf(".")>-1&&(t=i[0],r=i[1],a=i.slice(2).join(".")),l||!o||!ne(a)?l:ks((d=(c=this.data)==null?void 0:c[t])==null?void 0:d[r],a,s)}addResource(t,r,a,n){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let i=[t,r];a&&(i=i.concat(o?a.split(o):a)),t.indexOf(".")>-1&&(i=t.split("."),n=r,r=i[1]),this.addNamespaces(r),oi(this.data,i,n),s.silent||this.emit("added",t,r,a,n)}addResources(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in a)(ne(a[s])||Array.isArray(a[s]))&&this.addResource(t,r,s,a[s],{silent:!0});n.silent||this.emit("added",t,r,a)}addResourceBundle(t,r,a,n,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},i=[t,r];t.indexOf(".")>-1&&(i=t.split("."),n=a,a=r,r=i[1]),this.addNamespaces(r);let l=vn(this.data,i)||{};o.skipCopy||(a=JSON.parse(JSON.stringify(a))),n?ac(l,a,s):l={...l,...a},oi(this.data,i,l),o.silent||this.emit("added",t,r,a)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(n=>r[n]&&Object.keys(r[n]).length>0)}toJSON(){return this.data}}var nc={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,a,n){return e.forEach(s=>{var o;t=((o=this.processors[s])==null?void 0:o.process(t,r,a,n))??t}),t}};const li={},ci=e=>!ne(e)&&typeof e!="boolean"&&typeof e!="number";class wn extends zn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Hh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ct.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const a=this.resolve(t,r);return(a==null?void 0:a.res)!==void 0}extractFromKey(t,r){let a=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let s=r.ns||this.options.defaultNS||[];const o=a&&t.indexOf(a)>-1,i=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!em(t,a,n);if(o&&!i){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:ne(s)?[s]:s};const c=t.split(a);(a!==n||a===n&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(n)}return{key:t,namespaces:ne(s)?[s]:s}}translate(t,r,a){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const n=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:o,namespaces:i}=this.extractFromKey(t[t.length-1],r),l=i[i.length-1],c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode"){if(d){const $=r.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${$}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${$}${o}`}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:o}const u=this.resolve(t,r);let p=u==null?void 0:u.res;const f=(u==null?void 0:u.usedKey)||o,y=(u==null?void 0:u.exactUsedKey)||o,h=["[object Number]","[object Function]","[object RegExp]"],x=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,k=r.count!==void 0&&!ne(r.count),D=wn.hasDefaultValue(r),I=k?this.pluralResolver.getSuffix(c,r.count,r):"",F=r.ordinal&&k?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",q=k&&!r.ordinal&&r.count===0,M=q&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${I}`]||r[`defaultValue${F}`]||r.defaultValue;let L=p;E&&!p&&D&&(L=M);const B=ci(L),g=Object.prototype.toString.apply(L);if(E&&L&&B&&h.indexOf(g)<0&&!(ne(x)&&Array.isArray(L))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const $=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,L,{...r,ns:i}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(u.res=$,u.usedParams=this.getUsedParamsDetails(r),u):$}if(s){const $=Array.isArray(L),N=$?[]:{},J=$?y:f;for(const z in L)if(Object.prototype.hasOwnProperty.call(L,z)){const re=`${J}${s}${z}`;D&&!p?N[z]=this.translate(re,{...r,defaultValue:ci(M)?M[z]:void 0,joinArrays:!1,ns:i}):N[z]=this.translate(re,{...r,joinArrays:!1,ns:i}),N[z]===re&&(N[z]=L[z])}p=N}}else if(E&&ne(x)&&Array.isArray(p))p=p.join(x),p&&(p=this.extendTranslation(p,t,r,a));else{let $=!1,N=!1;!this.isValidLookup(p)&&D&&($=!0,p=M),this.isValidLookup(p)||(N=!0,p=o);const z=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N?void 0:p,re=D&&M!==p&&this.options.updateMissing;if(N||$||re){if(this.logger.log(re?"updateKey":"missingKey",c,l,o,re?M:p),s){const pe=this.resolve(o,{...r,keySeparator:!1});pe&&pe.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 ee=[];const Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let pe=0;pe<Re.length;pe++)ee.push(Re[pe]);else this.options.saveMissingTo==="all"?ee=this.languageUtils.toResolveHierarchy(r.lng||this.language):ee.push(r.lng||this.language);const ie=(pe,ve,le)=>{var _t;const qe=D&&le!==p?le:z;this.options.missingKeyHandler?this.options.missingKeyHandler(pe,l,ve,qe,re,r):(_t=this.backendConnector)!=null&&_t.saveMissing&&this.backendConnector.saveMissing(pe,l,ve,qe,re,r),this.emit("missingKey",pe,l,ve,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?ee.forEach(pe=>{const ve=this.pluralResolver.getSuffixes(pe,r);q&&r[`defaultValue${this.options.pluralSeparator}zero`]&&ve.indexOf(`${this.options.pluralSeparator}zero`)<0&&ve.push(`${this.options.pluralSeparator}zero`),ve.forEach(le=>{ie([pe],o+le,r[`defaultValue${le}`]||M)})}):ie(ee,o,M))}p=this.extendTranslation(p,t,r,u,a),N&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${o}`),(N||$)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,$?p:void 0))}return n?(u.res=p,u.usedParams=this.getUsedParamsDetails(r),u):p}extendTranslation(t,r,a,n,s){var c,d;var o=this;if((c=this.i18nFormat)!=null&&c.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const u=ne(t)&&(((d=a==null?void 0:a.interpolation)==null?void 0:d.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(u){const y=t.match(this.interpolator.nestingRegexp);p=y&&y.length}let f=a.replace&&!ne(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,a.lng||this.language||n.usedLng,a),u){const y=t.match(this.interpolator.nestingRegexp),h=y&&y.length;p<h&&(a.nest=!1)}!a.lng&&n&&n.res&&(a.lng=this.language||n.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var y=arguments.length,h=new Array(y),x=0;x<y;x++)h[x]=arguments[x];return(s==null?void 0:s[0])===h[0]&&!a.context?(o.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${r[0]}`),null):o.translate(...h,r)},a)),a.interpolation&&this.interpolator.reset()}const i=a.postProcess||this.options.postProcess,l=ne(i)?[i]:i;return t!=null&&(l!=null&&l.length)&&a.applyPostProcessor!==!1&&(t=nc.handle(l,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,n,s,o,i;return ne(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(a))return;const c=this.extractFromKey(l,r),d=c.key;n=d;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const p=r.count!==void 0&&!ne(r.count),f=p&&!r.ordinal&&r.count===0,y=r.context!==void 0&&(ne(r.context)||typeof r.context=="number")&&r.context!=="",h=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);u.forEach(x=>{var E,k;this.isValidLookup(a)||(i=x,!li[`${h[0]}-${x}`]&&((E=this.utils)!=null&&E.hasLoadedNamespace)&&!((k=this.utils)!=null&&k.hasLoadedNamespace(i))&&(li[`${h[0]}-${x}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${i}" 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!!!")),h.forEach(D=>{var q;if(this.isValidLookup(a))return;o=D;const I=[d];if((q=this.i18nFormat)!=null&&q.addLookupKeys)this.i18nFormat.addLookupKeys(I,d,D,x,r);else{let M;p&&(M=this.pluralResolver.getSuffix(D,r.count,r));const L=`${this.options.pluralSeparator}zero`,B=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(I.push(d+M),r.ordinal&&M.indexOf(B)===0&&I.push(d+M.replace(B,this.options.pluralSeparator)),f&&I.push(d+L)),y){const g=`${d}${this.options.contextSeparator}${r.context}`;I.push(g),p&&(I.push(g+M),r.ordinal&&M.indexOf(B)===0&&I.push(g+M.replace(B,this.options.pluralSeparator)),f&&I.push(g+L))}}let F;for(;F=I.pop();)this.isValidLookup(a)||(s=F,a=this.getResource(D,x,F,r))}))})}),{res:a,usedKey:n,exactUsedKey:s,usedLng:o,usedNS:i}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,a){var s;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(t,r,a,n):this.resourceStore.getResource(t,r,a,n)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!ne(t.replace);let n=a?t.replace:t;if(a&&typeof t.count<"u"&&(n.count=t.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!a){n={...n};for(const s of r)delete n[s]}return n}static hasDefaultValue(t){const r="defaultValue";for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&r===a.substring(0,r.length)&&t[a]!==void 0)return!0;return!1}}class di{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ct.create("languageUtils")}getScriptPartFromCode(t){if(t=xn(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=xn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(ne(t)&&t.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(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 r;return t.forEach(a=>{if(r)return;const n=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(n))&&(r=n)}),!r&&this.options.supportedLngs&&t.forEach(a=>{if(r)return;const n=this.getLanguagePartFromCode(a);if(this.isSupportedCode(n))return r=n;r=this.options.supportedLngs.find(s=>{if(s===n)return s;if(!(s.indexOf("-")<0&&n.indexOf("-")<0)&&(s.indexOf("-")>0&&n.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===n||s.indexOf(n)===0&&n.length>1))return s})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),ne(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let a=t[r];return a||(a=t[this.getScriptPartFromCode(r)]),a||(a=t[this.formatLanguageCode(r)]),a||(a=t[this.getLanguagePartFromCode(r)]),a||(a=t.default),a||[]}toResolveHierarchy(t,r){const a=this.getFallbackCodes(r||this.options.fallbackLng||[],t),n=[],s=o=>{o&&(this.isSupportedCode(o)?n.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return ne(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):ne(t)&&s(this.formatLanguageCode(t)),a.forEach(o=>{n.indexOf(o)<0&&s(this.formatLanguageCode(o))}),n}}const ui={zero:0,one:1,two:2,few:3,many:4,other:5},pi={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class rm{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=Ct.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=xn(t==="dev"?"en":t),n=r.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:a,type:n});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(a,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),pi;if(!t.match(/-|_/))return pi;const l=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(l,r)}return this.pluralRulesCache[s]=o,o}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(t,r);return a||(a=this.getRule("dev",r)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,a).map(n=>`${r}${n}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(t,r);return a||(a=this.getRule("dev",r)),a?a.resolvedOptions().pluralCategories.sort((n,s)=>ui[n]-ui[s]).map(n=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=this.getRule(t,a);return n?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${n.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,a))}}const hi=function(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=Wh(e,t,r);return!s&&n&&ne(r)&&(s=ks(e,r,a),s===void 0&&(s=ks(t,r,a))),s},gs=e=>e.replace(/\$/g,"$$$$");class am{constructor(){var r;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ct.create("interpolator"),this.options=t,this.format=((r=t==null?void 0:t.interpolation)==null?void 0:r.format)||(a=>a),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:a,useRawValueToEscape:n,prefix:s,prefixEscaped:o,suffix:i,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:f,nestingSuffix:y,nestingSuffixEscaped:h,nestingOptionsSeparator:x,maxReplaces:E,alwaysFormat:k}=t.interpolation;this.escape=r!==void 0?r:Kh,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=s?Tr(s):o||"{{",this.suffix=i?Tr(i):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?Tr(p):f||Tr("$t("),this.nestingSuffix=y?Tr(y):h||Tr(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=E||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,a)=>(r==null?void 0:r.source)===a?(r.lastIndex=0,r):new RegExp(a,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,a,n){var f;let s,o,i;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=y=>{if(y.indexOf(this.formatSeparator)<0){const k=hi(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,a,{...n,...r,interpolationkey:y}):k}const h=y.split(this.formatSeparator),x=h.shift().trim(),E=h.join(this.formatSeparator).trim();return this.format(hi(r,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),E,a,{...n,...r,interpolationkey:x})};this.resetRegExp();const d=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,u=((f=n==null?void 0:n.interpolation)==null?void 0:f.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>gs(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?gs(this.escape(y)):gs(y)}].forEach(y=>{for(i=0;s=y.regex.exec(t);){const h=s[1].trim();if(o=c(h),o===void 0)if(typeof d=="function"){const E=d(t,s,n);o=ne(E)?E:""}else if(n&&Object.prototype.hasOwnProperty.call(n,h))o="";else if(u){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${h} for interpolating ${t}`),o="";else!ne(o)&&!this.useRawValueToEscape&&(o=ai(o));const x=y.safeValue(o);if(t=t.replace(s[0],x),u?(y.regex.lastIndex+=o.length,y.regex.lastIndex-=s[0].length):y.regex.lastIndex=0,i++,i>=this.maxReplaces)break}}),t}nest(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,s,o;const i=(l,c)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const u=l.split(new RegExp(`${d}[ ]*{`));let p=`{${u[1]}`;l=u[0],p=this.interpolate(p,o);const f=p.match(/'/g),y=p.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),c&&(o={...c,...o})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,h),`${l}${d}${p}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,l};for(;n=this.nestingRegexp.exec(t);){let l=[];o={...a},o=o.replace&&!ne(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){const d=n[1].split(this.formatSeparator).map(u=>u.trim());n[1]=d.shift(),l=d,c=!0}if(s=r(i.call(this,n[1].trim(),o),o),s&&n[0]===t&&!ne(s))return s;ne(s)||(s=ai(s)),s||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),s=""),c&&(s=l.reduce((d,u)=>this.format(d,u,a.lng,{...a,interpolationkey:n[1].trim()}),s.trim())),t=t.replace(n[0],s),this.regexp.lastIndex=0}return t}}const nm=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const a=e.split("(");t=a[0].toLowerCase().trim();const n=a[1].substring(0,a[1].length-1);t==="currency"&&n.indexOf(":")<0?r.currency||(r.currency=n.trim()):t==="relativetime"&&n.indexOf(":")<0?r.range||(r.range=n.trim()):n.split(";").forEach(o=>{if(o){const[i,...l]=o.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),d=i.trim();r[d]||(r[d]=c),c==="false"&&(r[d]=!1),c==="true"&&(r[d]=!0),isNaN(c)||(r[d]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},Er=e=>{const t={};return(r,a,n)=>{let s=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(s={...s,[n.interpolationkey]:void 0});const o=a+JSON.stringify(s);let i=t[o];return i||(i=e(xn(a),n),t[o]=i),i(r)}};class sm{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ct.create("formatter"),this.options=t,this.formats={number:Er((r,a)=>{const n=new Intl.NumberFormat(r,{...a});return s=>n.format(s)}),currency:Er((r,a)=>{const n=new Intl.NumberFormat(r,{...a,style:"currency"});return s=>n.format(s)}),datetime:Er((r,a)=>{const n=new Intl.DateTimeFormat(r,{...a});return s=>n.format(s)}),relativetime:Er((r,a)=>{const n=new Intl.RelativeTimeFormat(r,{...a});return s=>n.format(s,a.range||"day")}),list:Er((r,a)=>{const n=new Intl.ListFormat(r,{...a});return s=>n.format(s)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Er(r)}format(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=r.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(i=>i.indexOf(")")>-1)){const i=s.findIndex(l=>l.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,i)].join(this.formatSeparator)}return s.reduce((i,l)=>{var u;const{formatName:c,formatOptions:d}=nm(l);if(this.formats[c]){let p=i;try{const f=((u=n==null?void 0:n.formatParams)==null?void 0:u[n.interpolationkey])||{},y=f.locale||f.lng||n.locale||n.lng||a;p=this.formats[c](i,y,{...d,...n,...f})}catch(f){this.logger.warn(f)}return p}else this.logger.warn(`there was no format function for ${c}`);return i},t)}}const om=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class im extends zn{constructor(t,r,a){var s,o;let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=a,this.languageUtils=a.languageUtils,this.options=n,this.logger=Ct.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],(o=(s=this.backend)==null?void 0:s.init)==null||o.call(s,a,n.backend,n)}queueLoad(t,r,a,n){const s={},o={},i={},l={};return t.forEach(c=>{let d=!0;r.forEach(u=>{const p=`${c}|${u}`;!a.reload&&this.store.hasResourceBundle(c,u)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,d=!1,o[p]===void 0&&(o[p]=!0),s[p]===void 0&&(s[p]=!0),l[u]===void 0&&(l[u]=!0)))}),d||(i[c]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(l)}}loaded(t,r,a){const n=t.split("|"),s=n[0],o=n[1];r&&this.emit("failedLoading",s,o,r),!r&&a&&this.store.addResourceBundle(s,o,a,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&a&&(this.state[t]=0);const i={};this.queue.forEach(l=>{Jh(l.loaded,[s],o),om(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{i[c]||(i[c]={});const d=l.loaded[c];d.length&&d.forEach(u=>{i[c][u]===void 0&&(i[c][u]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(l=>!l.done)}read(t,r,a){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:a,tried:n,wait:s,callback:o});return}this.readingCalls++;const i=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(c&&d&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,a,n+1,s*2,o)},s);return}o(c,d)},l=this.backend[a].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(d=>i(null,d)).catch(i):i(null,c)}catch(c){i(c)}return}return l(t,r,i)}prepareLoading(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=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."),n&&n();ne(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ne(r)&&(r=[r]);const s=this.queueLoad(t,r,a,n);if(!s.toLoad.length)return s.pending.length||n(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,r,a){this.prepareLoading(t,r,{},a)}reload(t,r,a){this.prepareLoading(t,r,{reload:!0},a)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const a=t.split("|"),n=a[0],s=a[1];this.read(n,s,"read",void 0,void 0,(o,i)=>{o&&this.logger.warn(`${r}loading namespace ${s} for language ${n} failed`,o),!o&&i&&this.logger.log(`${r}loaded namespace ${s} for language ${n}`,i),this.loaded(t,o,i)})}saveMissing(t,r,a,n,s){var l,c,d,u,p;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},i=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((u=(d=this.services)==null?void 0:d.utils)!=null&&u.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${a}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if((p=this.backend)!=null&&p.create){const f={...o,isUpdate:s},y=this.backend.create.bind(this.backend);if(y.length<6)try{let h;y.length===5?h=y(t,r,a,n,f):h=y(t,r,a,n),h&&typeof h.then=="function"?h.then(x=>i(null,x)).catch(i):i(null,h)}catch(h){i(h)}else y(t,r,a,n,i,f)}!t||!t[0]||this.store.addResource(t[0],r,a,n)}}}const mi=()=>({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]),ne(e[1])&&(t.defaultValue=e[1]),ne(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(a=>{t[a]=r[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),fi=e=>{var t,r;return ne(e.ns)&&(e.ns=[e.ns]),ne(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ne(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((r=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:r.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Ja=()=>{},lm=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Ta extends zn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=fi(t),this.services={},this.logger=Ct,this.modules={external:[]},lm(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(a=r,r={}),r.defaultNS==null&&r.ns&&(ne(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const n=mi();this.options={...n,...this.options,...fi(r)},this.options.interpolation={...n.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const s=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Ct.init(s(this.modules.logger),this.options):Ct.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=sm;const u=new di(this.options);this.store=new ii(this.options.resources,this.options);const p=this.services;p.logger=Ct,p.resourceStore=this.store,p.languageUtils=u,p.pluralResolver=new rm(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(p.formatter=s(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new am(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new im(s(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(f){for(var y=arguments.length,h=new Array(y>1?y-1:0),x=1;x<y;x++)h[x-1]=arguments[x];t.emit(f,...h)}),this.modules.languageDetector&&(p.languageDetector=s(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=s(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new wn(this.services,this.options),this.translator.on("*",function(f){for(var y=arguments.length,h=new Array(y>1?y-1:0),x=1;x<y;x++)h[x-1]=arguments[x];t.emit(f,...h)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,a||(a=Ja),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[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(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=ua(),c=()=>{const d=(u,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),a(u,p)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t){var s,o;let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ja;const n=ne(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const i=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};n?l(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(o=(s=this.options.preload)==null?void 0:s.forEach)==null||o.call(s,c=>l(c)),this.services.backendConnector.load(i,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(c)})}else a(null)}reloadResources(t,r,a){const n=ua();return typeof t=="function"&&(a=t,t=void 0),typeof r=="function"&&(a=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),a||(a=Ja),this.services.backendConnector.reload(t,r,s=>{n.resolve(),a(s)}),n}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"&&nc.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const a=this.languages[r];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}changeLanguage(t,r){var a=this;this.isLanguageChangingTo=t;const n=ua();this.emit("languageChanging",t);const s=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,c)=>{c?(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,n.resolve(function(){return a.t(...arguments)}),r&&r(l,function(){return a.t(...arguments)})},i=l=>{var d,u;!t&&!l&&this.services.languageDetector&&(l=[]);const c=ne(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),(u=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||u.call(d,c)),this.loadResources(c,p=>{o(p,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(t),n}getFixedT(t,r,a){var n=this;const s=function(o,i){let l;if(typeof i!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),u=2;u<c;u++)d[u-2]=arguments[u];l=n.options.overloadTranslationOptionHandler([o,i].concat(d))}else l={...i};l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||a||s.keyPrefix);const p=n.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(o)?f=o.map(y=>`${l.keyPrefix}${p}${y}`):f=l.keyPrefix?`${l.keyPrefix}${p}${o}`:o,n.t(f,l)};return ne(t)?s.lng=t:s.lngs=t,s.ns=r,s.keyPrefix=a,s}t(){var n;for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(n=this.translator)==null?void 0:n.translate(...r)}exists(){var n;for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return(n=this.translator)==null?void 0:n.exists(...r)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const a=r.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const o=(i,l)=>{const c=this.services.backendConnector.state[`${i}|${l}`];return c===-1||c===0||c===2};if(r.precheck){const i=r.precheck(this,o);if(i!==void 0)return i}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(a,t)&&(!n||o(s,t)))}loadNamespaces(t,r){const a=ua();return this.options.ns?(ne(t)&&(t=[t]),t.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{a.resolve(),r&&r(n)}),a):(r&&r(),Promise.resolve())}loadLanguages(t,r){const a=ua();ne(t)&&(t=[t]);const n=this.options.preload||[],s=t.filter(o=>n.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=n.concat(s),this.loadResources(o=>{a.resolve(),r&&r(o)}),a):(r&&r(),Promise.resolve())}dir(t){var n,s;if(t||(t=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=((s=this.services)==null?void 0:s.languageUtils)||new di(mi());return r.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Ta(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ja;const a=t.forkResourceStore;a&&delete t.forkResourceStore;const n={...this.options,...t,isClone:!0},s=new Ta(n);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(i=>{s[i]=this[i]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},a){const i=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},Object.keys(l[c]).reduce((d,u)=>(d[u]={...l[c][u]},d),{})),{});s.store=new ii(i,n),s.services.resourceStore=s.store}return s.translator=new wn(s.services,n),s.translator.on("*",function(i){for(var l=arguments.length,c=new Array(l>1?l-1:0),d=1;d<l;d++)c[d-1]=arguments[d];s.emit(i,...c)}),s.init(n,r),s.translator.options=n,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const He=Ta.createInstance();He.createInstance=Ta.createInstance;He.createInstance;He.dir;He.init;He.loadResources;He.reloadResources;He.use;He.changeLanguage;He.getFixedT;He.t;He.exists;He.setDefaultNamespace;He.hasLoadedNamespace;He.loadNamespaces;He.loadLanguages;const cm={"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","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physische Robotersteuerung","SafetyBar.ControllerType.Virtual.lb":"Virtuelle Robotersteuerung","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
88
+ Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen."},dm={"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","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical controller","SafetyBar.ControllerType.Virtual.lb":"Virtual controller","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."},sc=He.createInstance();sc.use(Qd).init({supportedLngs:["en","de"],resources:{en:{translations:dm},de:{translations:cm}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function Jr(e){return r=>S.jsx(um,{children:S.jsx(e,{...r})})}const um=({children:e})=>S.jsx(Be.I18nextProvider,{i18n:sc,children:e}),pm=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("g",{id:"JogMinus"},G.createElement("path",{id:"Minus",d:"M0 13V8H21V13H0Z",fill:"white"}))),hm=te.forwardRef(pm),mm=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("g",{id:"JogPlus"},G.createElement("g",{id:"Plus"},G.createElement("path",{d:"M0 13V8H8V13H0Z",fill:"white"}),G.createElement("path",{d:"M8 0L13 2.18557e-07L13 21H8L8 0Z",fill:"white"}),G.createElement("path",{d:"M13 13V8H21V13H13Z",fill:"white"})))),fm=te.forwardRef(mm);function Gn(e){te.useEffect(e,[])}function oc(e){Gn(()=>ke.autorun(e))}function ic(e,t,r){Gn(()=>ke.reaction(e,t,r))}function Wr(e){return Gn(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}const Bs=Jr(Le.observer(({colors:e,label:t,getDisplayedValue:r,startJogging:a,stopJogging:n,disabled:s,activeJoggingDirection:o,...i})=>{var D,I,F,q,M,L,B;Wr(()=>{const g=r(),$=p.current;$&&($.textContent=g)});const l=Q.useTheme(),[c,d]=te.useState(null);te.useEffect(()=>{s&&k()},[s]);const u=o||c,p=te.useRef(null);e||(e={color:"#fff",backgroundColor:"#000",borderColor:"#000",buttonBackgroundColor:{disabled:"#000",default:"#000",hovered:"#000",pressed:"#000"}});const f=u?(D=e.buttonBackgroundColor)==null?void 0:D.pressed:e.borderColor,y={width:"55px",color:e.color,path:{fill:e.color},alignContent:"center",fontSize:"37px",svg:{pointerEvents:"none"}},h={...y,backgroundColor:(I=e.buttonBackgroundColor)==null?void 0:I.default,":hover":{backgroundColor:(F=e.buttonBackgroundColor)==null?void 0:F.hovered},":active":{backgroundColor:(q=e.buttonBackgroundColor)==null?void 0:q.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor}},":disabled":{backgroundColor:(M=e.buttonBackgroundColor)==null?void 0:M.disabled,"svg path":{fill:l.palette.action.disabled}}},x={...y,backgroundColor:(L=e.buttonBackgroundColor)==null?void 0:L.pressed,color:e.backgroundColor,path:{fill:e.backgroundColor},":disabled":{backgroundColor:(B=e.buttonBackgroundColor)==null?void 0:B.pressed,"svg path":{fill:l.palette.action.disabled}}};function E(g,$){s||g.button===0&&(d($),a($))}function k(){d(null),n()}return S.jsxs(Dr,{height:"64px",direction:"row",justifyContent:"center",...i,children:[S.jsx(Q.IconButton,{disabled:s,disableRipple:!0,onPointerDown:g=>E(g,"-"),onPointerUp:k,onPointerOut:k,size:"large",sx:{...u==="-"?x:h,borderRadius:"16px 0px 0px 16px",borderLeft:`2px solid ${f??"#fff"}`,borderBottom:`2px solid ${f??"#fff"}`,borderTop:`2px solid ${f??"#fff"}`},children:S.jsx(hm,{})}),S.jsxs(Dr,{spacing:"6px",sx:{width:"150px",backgroundColor:e.backgroundColor,alignItems:"center",justifyContent:"center",opacity:"0.9",borderBottom:`2px solid ${f??"#fff"}`,borderTop:`2px solid ${f??"#fff"}`},children:[S.jsx(Dr,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:e.color,".MuiTypography-root":{fontWeight:700,...s?{color:l.palette.action.disabled}:{}},...s?{"svg path":{fill:l.palette.action.disabled}}:{}},children:t}),S.jsx(Q.Typography,{height:"22px",sx:{fontSize:"15px",color:s?l.palette.action.disabled:e.color,fontWeight:700},ref:p,children:r()})]}),S.jsx(Q.IconButton,{disableRipple:!0,disabled:s,onPointerDown:g=>E(g,"+"),onPointerUp:k,onPointerOut:k,size:"large",sx:{...u==="+"?x:h,borderRadius:"0px 16px 16px 0px",borderRight:`2px solid ${f??"#fff"}`,borderBottom:`2px solid ${f??"#fff"}`,borderTop:`2px solid ${f??"#fff"}`},children:S.jsx(fm,{})})]})})),mr=Yp;function gm(e){return Ba("MuiSvgIcon",e)}Dl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ym=e=>{const{color:t,fontSize:r,classes:a}=e,n={root:["root",t!=="inherit"&&`color${We(t)}`,`fontSize${We(r)}`]};return uo(n,gm,a)},bm=$t("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${We(r.color)}`],t[`fontSize${We(r.fontSize)}`]]}})(mr(({theme:e})=>{var t,r,a,n,s,o,i,l,c,d,u,p,f,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(n=(t=e.transitions)==null?void 0:t.create)==null?void 0:n.call(t,"fill",{duration:(a=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:a.shorter}),variants:[{props:h=>!h.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((o=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:o.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:l.call(i,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var x,E;return{props:{color:h},style:{color:(E=(x=(e.vars??e).palette)==null?void 0:x[h])==null?void 0:E.main}}}),{props:{color:"action"},style:{color:(p=(u=(e.vars??e).palette)==null?void 0:u.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(y=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Cn=G.forwardRef(function(t,r){const a=mo({props:t,name:"MuiSvgIcon"}),{children:n,className:s,color:o="inherit",component:i="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:p="0 0 24 24",...f}=a,y=G.isValidElement(n)&&n.type==="svg",h={...a,color:o,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:y},x={};d||(x.viewBox=p);const E=ym(h);return S.jsxs(bm,{as:i,className:Pt(E.root,s),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:r,...x,...f,...y&&n.props,ownerState:h,children:[y?n.props.children:n,u?S.jsx("title",{children:u}):null]})});process.env.NODE_ENV!=="production"&&(Cn.propTypes={children:b.node,classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),b.string]),component:b.elementType,fontSize:b.oneOfType([b.oneOf(["inherit","large","medium","small"]),b.string]),htmlColor:b.string,inheritViewBox:b.bool,shapeRendering:b.string,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),titleAccess:b.string,viewBox:b.string});Cn.muiName="SvgIcon";function lc(e,t){function r(a,n){return S.jsx(Cn,{"data-testid":`${t}Icon`,ref:n,...a,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Cn.muiName,G.memo(G.forwardRef(r))}const Sm=lc(S.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),vm=lc(S.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function dr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cc=typeof global=="object"&&global&&global.Object===Object&&global,xm=typeof self=="object"&&self&&self.Object===Object&&self,Rt=cc||xm||Function("return this")(),ys=function(){return Rt.Date.now()},Om=/\s/;function wm(e){for(var t=e.length;t--&&Om.test(e.charAt(t)););return t}var Cm=/^\s+/;function Pm(e){return e&&e.slice(0,wm(e)+1).replace(Cm,"")}var Xt=Rt.Symbol,dc=Object.prototype,Vm=dc.hasOwnProperty,Rm=dc.toString,pa=Xt?Xt.toStringTag:void 0;function _m(e){var t=Vm.call(e,pa),r=e[pa];try{e[pa]=void 0;var a=!0}catch{}var n=Rm.call(e);return a&&(t?e[pa]=r:delete e[pa]),n}var Am=Object.prototype,Tm=Am.toString;function Em(e){return Tm.call(e)}var Im="[object Null]",Mm="[object Undefined]",gi=Xt?Xt.toStringTag:void 0;function fr(e){return e==null?e===void 0?Mm:Im:gi&&gi in Object(e)?_m(e):Em(e)}function ur(e){return e!=null&&typeof e=="object"}var jm="[object Symbol]";function Hn(e){return typeof e=="symbol"||ur(e)&&fr(e)==jm}var yi=NaN,$m=/^[-+]0x[0-9a-f]+$/i,Um=/^0b[01]+$/i,Lm=/^0o[0-7]+$/i,km=parseInt;function bi(e){if(typeof e=="number")return e;if(Hn(e))return yi;if(dr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=dr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Pm(e);var r=Um.test(e);return r||Lm.test(e)?km(e.slice(2),r?2:8):$m.test(e)?yi:+e}var Bm="Expected a function",Fm=Math.max,Nm=Math.min;function Dm(e,t,r){var a,n,s,o,i,l,c=0,d=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(Bm);t=bi(t)||0,dr(r)&&(d=!!r.leading,u="maxWait"in r,s=u?Fm(bi(r.maxWait)||0,t):s,p="trailing"in r?!!r.trailing:p);function f(q){var M=a,L=n;return a=n=void 0,c=q,o=e.apply(L,M),o}function y(q){return c=q,i=setTimeout(E,t),d?f(q):o}function h(q){var M=q-l,L=q-c,B=t-M;return u?Nm(B,s-L):B}function x(q){var M=q-l,L=q-c;return l===void 0||M>=t||M<0||u&&L>=s}function E(){var q=ys();if(x(q))return k(q);i=setTimeout(E,h(q))}function k(q){return i=void 0,p&&a?f(q):(a=n=void 0,o)}function D(){i!==void 0&&clearTimeout(i),c=0,a=l=n=i=void 0}function I(){return i===void 0?o:k(ys())}function F(){var q=ys(),M=x(q);if(a=arguments,n=this,l=q,M){if(i===void 0)return y(l);if(u)return clearTimeout(i),i=setTimeout(E,t),f(l)}return i===void 0&&(i=setTimeout(E,t)),o}return F.cancel=D,F.flush=I,F}var zm="Expected a function";function Gm(e,t,r){var a=!0,n=!0;if(typeof e!="function")throw new TypeError(zm);return dr(r)&&(a="leading"in r?!!r.leading:a,n="trailing"in r?!!r.trailing:n),Dm(e,t,{leading:a,maxWait:t,trailing:n})}const uc=Jr(Le.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:a,getValueDegs:n,disabled:s,...o})=>{var D,I,F,q,M,L,B;const{t:i}=Be.useTranslation(),[l,c]=te.useState(),d=Q.useTheme(),u={background:(D=d.palette.backgroundPaperElevation)==null?void 0:D[4],color:(I=d.palette.backgroundPaperElevation)==null?void 0:I[11]},p=Le.useLocalObservable(()=>({activeJoggingDir:null,startJogging(g){this.activeJoggingDir=g,e(g)},stopJogging(){this.activeJoggingDir=null,t()}})),f=Gm(()=>{c(n())},50);Wr(f);function y(g){g.button===0&&p.startJogging("-")}function h(g){g.button===0&&p.startJogging("+")}function x(g){p.stopJogging()}function E(g){p.stopJogging()}function k(g,$=1){if(g===void 0||isNaN(g))return"";const N=i("General.degree.variable",{amount:g.toFixed($)});return g>0&&$===0?`+${N}`:N}return S.jsxs(Dr,{height:"64px",width:"100%",maxWidth:"260px",direction:"row",...o,sx:{"& .MuiIconButton-root":{width:"52px",color:d.palette.text.primary,alignContent:"center",backgroundColor:(F=d.palette.backgroundPaperElevation)==null?void 0:F[11],"& svg":{width:"42px",height:"42px"},"&.Mui-disabled":{backgroundColor:(q=d.palette.backgroundPaperElevation)==null?void 0:q[11],color:d.palette.action.disabled,opacity:1},"&:hover":{backgroundColor:(M=d.palette.backgroundPaperElevation)==null?void 0:M[9]},"&:active":{...u}}},children:[S.jsx(Q.IconButton,{onPointerDown:y,onPointerUp:x,onPointerOut:E,disabled:s,disableRipple:!0,sx:{borderRadius:"16px 0px 0px 16px",...p.activeJoggingDir==="-"?u:{}},children:S.jsx(Sm,{sx:{pointerEvents:"none"}})}),S.jsxs(Dr,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,border:"none",backgroundColor:(L=d.palette.backgroundPaperElevation)==null?void 0:L[11],paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[S.jsx(Q.Typography,{sx:{fontSize:"15px",fontWeight:700,position:"relative",top:"5px",color:s?d.palette.action.disabled:d.palette.text.primary},children:k(l)}),S.jsx(Q.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:a,value:l||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"12px",borderRadius:"2px",color:s?d.palette.action.disabled:d.palette.text.primary},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:s?d.palette.action.disabled:d.palette.text.secondary},"& .MuiSlider-rail":{backgroundColor:(B=d.palette.backgroundPaperElevation)==null?void 0:B[5],opacity:1}},marks:r!==void 0&&a!==void 0&&[{value:r,label:k(r,0)},{value:a,label:k(a,0)}]})]}),S.jsx(Q.IconButton,{onPointerDown:h,onPointerUp:x,onPointerOut:E,disabled:s,disableRipple:!0,sx:{borderRadius:"0px 16px 16px 0px",...p.activeJoggingDir==="+"?u:{}},children:S.jsx(vm,{sx:{pointerEvents:"none"}})})]})}));function Hm(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pc=Hm;function qm(){this.__data__=[],this.size=0}var Jm=qm;function Wm(e,t){return e===t||e!==e&&t!==t}var hc=Wm;function Qm(e,t){for(var r=e.length;r--;)if(hc(e[r][0],t))return r;return-1}var qn=Qm,Km=Array.prototype,Ym=Km.splice;function Xm(e){var t=this.__data__,r=qn(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Ym.call(t,r,1),--this.size,!0}var Zm=Xm;function ef(e){var t=this.__data__,r=qn(t,e);return r<0?void 0:t[r][1]}var tf=ef;function rf(e){return qn(this.__data__,e)>-1}var af=rf;function nf(e,t){var r=this.__data__,a=qn(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var sf=nf;function Qr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Qr.prototype.clear=Jm;Qr.prototype.delete=Zm;Qr.prototype.get=tf;Qr.prototype.has=af;Qr.prototype.set=sf;var Jn=Qr;function of(){this.__data__=new Jn,this.size=0}var lf=of;function cf(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var df=cf;function uf(e){return this.__data__.get(e)}var pf=uf;function hf(e){return this.__data__.has(e)}var mf=hf,ff=typeof global=="object"&&global&&global.Object===Object&&global,mc=ff,gf=typeof self=="object"&&self&&self.Object===Object&&self,yf=mc||gf||Function("return this")(),Ut=yf,bf=Ut.Symbol,qr=bf,fc=Object.prototype,Sf=fc.hasOwnProperty,vf=fc.toString,ha=qr?qr.toStringTag:void 0;function xf(e){var t=Sf.call(e,ha),r=e[ha];try{e[ha]=void 0;var a=!0}catch{}var n=vf.call(e);return a&&(t?e[ha]=r:delete e[ha]),n}var Of=xf,wf=Object.prototype,Cf=wf.toString;function Pf(e){return Cf.call(e)}var Vf=Pf,Rf="[object Null]",_f="[object Undefined]",Si=qr?qr.toStringTag:void 0;function Af(e){return e==null?e===void 0?_f:Rf:Si&&Si in Object(e)?Of(e):Vf(e)}var Fa=Af,Tf="[object AsyncFunction]",Ef="[object Function]",If="[object GeneratorFunction]",Mf="[object Proxy]";function jf(e){if(!pc(e))return!1;var t=Fa(e);return t==Ef||t==If||t==Tf||t==Mf}var gc=jf,$f=Ut["__core-js_shared__"],bs=$f,vi=function(){var e=/[^.]+$/.exec(bs&&bs.keys&&bs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Uf(e){return!!vi&&vi in e}var Lf=Uf,kf=Function.prototype,Bf=kf.toString;function Ff(e){if(e!=null){try{return Bf.call(e)}catch{}try{return e+""}catch{}}return""}var gr=Ff,Nf=/[\\^$.*+?()[\]{}|]/g,Df=/^\[object .+?Constructor\]$/,zf=Function.prototype,Gf=Object.prototype,Hf=zf.toString,qf=Gf.hasOwnProperty,Jf=RegExp("^"+Hf.call(qf).replace(Nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wf(e){if(!pc(e)||Lf(e))return!1;var t=gc(e)?Jf:Df;return t.test(gr(e))}var Qf=Wf;function Kf(e,t){return e==null?void 0:e[t]}var Yf=Kf;function Xf(e,t){var r=Yf(e,t);return Qf(r)?r:void 0}var Kr=Xf,Zf=Kr(Ut,"Map"),Ea=Zf,eg=Kr(Object,"create"),Ia=eg;function tg(){this.__data__=Ia?Ia(null):{},this.size=0}var rg=tg;function ag(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ng=ag,sg="__lodash_hash_undefined__",og=Object.prototype,ig=og.hasOwnProperty;function lg(e){var t=this.__data__;if(Ia){var r=t[e];return r===sg?void 0:r}return ig.call(t,e)?t[e]:void 0}var cg=lg,dg=Object.prototype,ug=dg.hasOwnProperty;function pg(e){var t=this.__data__;return Ia?t[e]!==void 0:ug.call(t,e)}var hg=pg,mg="__lodash_hash_undefined__";function fg(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ia&&t===void 0?mg:t,this}var gg=fg;function Yr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Yr.prototype.clear=rg;Yr.prototype.delete=ng;Yr.prototype.get=cg;Yr.prototype.has=hg;Yr.prototype.set=gg;var xi=Yr;function yg(){this.size=0,this.__data__={hash:new xi,map:new(Ea||Jn),string:new xi}}var bg=yg;function Sg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var vg=Sg;function xg(e,t){var r=e.__data__;return vg(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Wn=xg;function Og(e){var t=Wn(this,e).delete(e);return this.size-=t?1:0,t}var wg=Og;function Cg(e){return Wn(this,e).get(e)}var Pg=Cg;function Vg(e){return Wn(this,e).has(e)}var Rg=Vg;function _g(e,t){var r=Wn(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var Ag=_g;function Xr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Xr.prototype.clear=bg;Xr.prototype.delete=wg;Xr.prototype.get=Pg;Xr.prototype.has=Rg;Xr.prototype.set=Ag;var yc=Xr,Tg=200;function Eg(e,t){var r=this.__data__;if(r instanceof Jn){var a=r.__data__;if(!Ea||a.length<Tg-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new yc(a)}return r.set(e,t),this.size=r.size,this}var Ig=Eg;function Zr(e){var t=this.__data__=new Jn(e);this.size=t.size}Zr.prototype.clear=lf;Zr.prototype.delete=df;Zr.prototype.get=pf;Zr.prototype.has=mf;Zr.prototype.set=Ig;var Ss=Zr,Mg="__lodash_hash_undefined__";function jg(e){return this.__data__.set(e,Mg),this}var $g=jg;function Ug(e){return this.__data__.has(e)}var Lg=Ug;function Pn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new yc;++t<r;)this.add(e[t])}Pn.prototype.add=Pn.prototype.push=$g;Pn.prototype.has=Lg;var kg=Pn;function Bg(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var Fg=Bg;function Ng(e,t){return e.has(t)}var Dg=Ng,zg=1,Gg=2;function Hg(e,t,r,a,n,s){var o=r&zg,i=e.length,l=t.length;if(i!=l&&!(o&&l>i))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,f=r&Gg?new kg:void 0;for(s.set(e,t),s.set(t,e);++u<i;){var y=e[u],h=t[u];if(a)var x=o?a(h,y,u,t,e,s):a(y,h,u,e,t,s);if(x!==void 0){if(x)continue;p=!1;break}if(f){if(!Fg(t,function(E,k){if(!Dg(f,k)&&(y===E||n(y,E,r,a,s)))return f.push(k)})){p=!1;break}}else if(!(y===h||n(y,h,r,a,s))){p=!1;break}}return s.delete(e),s.delete(t),p}var bc=Hg,qg=Ut.Uint8Array,Oi=qg;function Jg(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}var Wg=Jg;function Qg(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var Kg=Qg,Yg=1,Xg=2,Zg="[object Boolean]",ey="[object Date]",ty="[object Error]",ry="[object Map]",ay="[object Number]",ny="[object RegExp]",sy="[object Set]",oy="[object String]",iy="[object Symbol]",ly="[object ArrayBuffer]",cy="[object DataView]",wi=qr?qr.prototype:void 0,vs=wi?wi.valueOf:void 0;function dy(e,t,r,a,n,s,o){switch(r){case cy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ly:return!(e.byteLength!=t.byteLength||!s(new Oi(e),new Oi(t)));case Zg:case ey:case ay:return hc(+e,+t);case ty:return e.name==t.name&&e.message==t.message;case ny:case oy:return e==t+"";case ry:var i=Wg;case sy:var l=a&Yg;if(i||(i=Kg),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;a|=Xg,o.set(e,t);var d=bc(i(e),i(t),a,n,s,o);return o.delete(e),d;case iy:if(vs)return vs.call(e)==vs.call(t)}return!1}var uy=dy;function py(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var hy=py,my=Array.isArray,Vn=my;function fy(e,t,r){var a=t(e);return Vn(e)?a:hy(a,r(e))}var gy=fy;function yy(e,t){for(var r=-1,a=e==null?0:e.length,n=0,s=[];++r<a;){var o=e[r];t(o,r,e)&&(s[n++]=o)}return s}var by=yy;function Sy(){return[]}var vy=Sy,xy=Object.prototype,Oy=xy.propertyIsEnumerable,Ci=Object.getOwnPropertySymbols,wy=Ci?function(e){return e==null?[]:(e=Object(e),by(Ci(e),function(t){return Oy.call(e,t)}))}:vy,Cy=wy;function Py(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var Vy=Py;function Ry(e){return e!=null&&typeof e=="object"}var Ma=Ry,_y="[object Arguments]";function Ay(e){return Ma(e)&&Fa(e)==_y}var Pi=Ay,Sc=Object.prototype,Ty=Sc.hasOwnProperty,Ey=Sc.propertyIsEnumerable,Iy=Pi(function(){return arguments}())?Pi:function(e){return Ma(e)&&Ty.call(e,"callee")&&!Ey.call(e,"callee")},My=Iy;function jy(){return!1}var $y=jy,vc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vi=vc&&typeof module=="object"&&module&&!module.nodeType&&module,Uy=Vi&&Vi.exports===vc,Ri=Uy?Ut.Buffer:void 0,Ly=Ri?Ri.isBuffer:void 0,ky=Ly||$y,Fs=ky,By=9007199254740991,Fy=/^(?:0|[1-9]\d*)$/;function Ny(e,t){var r=typeof e;return t=t??By,!!t&&(r=="number"||r!="symbol"&&Fy.test(e))&&e>-1&&e%1==0&&e<t}var Dy=Ny,zy=9007199254740991;function Gy(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zy}var xc=Gy,Hy="[object Arguments]",qy="[object Array]",Jy="[object Boolean]",Wy="[object Date]",Qy="[object Error]",Ky="[object Function]",Yy="[object Map]",Xy="[object Number]",Zy="[object Object]",eb="[object RegExp]",tb="[object Set]",rb="[object String]",ab="[object WeakMap]",nb="[object ArrayBuffer]",sb="[object DataView]",ob="[object Float32Array]",ib="[object Float64Array]",lb="[object Int8Array]",cb="[object Int16Array]",db="[object Int32Array]",ub="[object Uint8Array]",pb="[object Uint8ClampedArray]",hb="[object Uint16Array]",mb="[object Uint32Array]",xe={};xe[ob]=xe[ib]=xe[lb]=xe[cb]=xe[db]=xe[ub]=xe[pb]=xe[hb]=xe[mb]=!0;xe[Hy]=xe[qy]=xe[nb]=xe[Jy]=xe[sb]=xe[Wy]=xe[Qy]=xe[Ky]=xe[Yy]=xe[Xy]=xe[Zy]=xe[eb]=xe[tb]=xe[rb]=xe[ab]=!1;function fb(e){return Ma(e)&&xc(e.length)&&!!xe[Fa(e)]}var gb=fb;function yb(e){return function(t){return e(t)}}var bb=yb,Oc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pa=Oc&&typeof module=="object"&&module&&!module.nodeType&&module,Sb=Pa&&Pa.exports===Oc,xs=Sb&&mc.process,vb=function(){try{var e=Pa&&Pa.require&&Pa.require("util").types;return e||xs&&xs.binding&&xs.binding("util")}catch{}}(),_i=vb,Ai=_i&&_i.isTypedArray,xb=Ai?bb(Ai):gb,wc=xb,Ob=Object.prototype,wb=Ob.hasOwnProperty;function Cb(e,t){var r=Vn(e),a=!r&&My(e),n=!r&&!a&&Fs(e),s=!r&&!a&&!n&&wc(e),o=r||a||n||s,i=o?Vy(e.length,String):[],l=i.length;for(var c in e)(t||wb.call(e,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Dy(c,l)))&&i.push(c);return i}var Pb=Cb,Vb=Object.prototype;function Rb(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vb;return e===r}var _b=Rb;function Ab(e,t){return function(r){return e(t(r))}}var Tb=Ab,Eb=Tb(Object.keys,Object),Ib=Eb,Mb=Object.prototype,jb=Mb.hasOwnProperty;function $b(e){if(!_b(e))return Ib(e);var t=[];for(var r in Object(e))jb.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ub=$b;function Lb(e){return e!=null&&xc(e.length)&&!gc(e)}var kb=Lb;function Bb(e){return kb(e)?Pb(e):Ub(e)}var Fb=Bb;function Nb(e){return gy(e,Fb,Cy)}var Ti=Nb,Db=1,zb=Object.prototype,Gb=zb.hasOwnProperty;function Hb(e,t,r,a,n,s){var o=r&Db,i=Ti(e),l=i.length,c=Ti(t),d=c.length;if(l!=d&&!o)return!1;for(var u=l;u--;){var p=i[u];if(!(o?p in t:Gb.call(t,p)))return!1}var f=s.get(e),y=s.get(t);if(f&&y)return f==t&&y==e;var h=!0;s.set(e,t),s.set(t,e);for(var x=o;++u<l;){p=i[u];var E=e[p],k=t[p];if(a)var D=o?a(k,E,p,t,e,s):a(E,k,p,e,t,s);if(!(D===void 0?E===k||n(E,k,r,a,s):D)){h=!1;break}x||(x=p=="constructor")}if(h&&!x){var I=e.constructor,F=t.constructor;I!=F&&"constructor"in e&&"constructor"in t&&!(typeof I=="function"&&I instanceof I&&typeof F=="function"&&F instanceof F)&&(h=!1)}return s.delete(e),s.delete(t),h}var qb=Hb,Jb=Kr(Ut,"DataView"),Ns=Jb,Wb=Kr(Ut,"Promise"),Ds=Wb,Qb=Kr(Ut,"Set"),zs=Qb,Kb=Kr(Ut,"WeakMap"),Gs=Kb,Ei="[object Map]",Yb="[object Object]",Ii="[object Promise]",Mi="[object Set]",ji="[object WeakMap]",$i="[object DataView]",Xb=gr(Ns),Zb=gr(Ea),e0=gr(Ds),t0=gr(zs),r0=gr(Gs),sr=Fa;(Ns&&sr(new Ns(new ArrayBuffer(1)))!=$i||Ea&&sr(new Ea)!=Ei||Ds&&sr(Ds.resolve())!=Ii||zs&&sr(new zs)!=Mi||Gs&&sr(new Gs)!=ji)&&(sr=function(e){var t=Fa(e),r=t==Yb?e.constructor:void 0,a=r?gr(r):"";if(a)switch(a){case Xb:return $i;case Zb:return Ei;case e0:return Ii;case t0:return Mi;case r0:return ji}return t});var Ui=sr,a0=1,Li="[object Arguments]",ki="[object Array]",Wa="[object Object]",n0=Object.prototype,Bi=n0.hasOwnProperty;function s0(e,t,r,a,n,s){var o=Vn(e),i=Vn(t),l=o?ki:Ui(e),c=i?ki:Ui(t);l=l==Li?Wa:l,c=c==Li?Wa:c;var d=l==Wa,u=c==Wa,p=l==c;if(p&&Fs(e)){if(!Fs(t))return!1;o=!0,d=!1}if(p&&!d)return s||(s=new Ss),o||wc(e)?bc(e,t,r,a,n,s):uy(e,t,l,r,a,n,s);if(!(r&a0)){var f=d&&Bi.call(e,"__wrapped__"),y=u&&Bi.call(t,"__wrapped__");if(f||y){var h=f?e.value():e,x=y?t.value():t;return s||(s=new Ss),n(h,x,r,a,s)}}return p?(s||(s=new Ss),qb(e,t,r,a,n,s)):!1}var o0=s0;function Cc(e,t,r,a,n){return e===t?!0:e==null||t==null||!Ma(e)&&!Ma(t)?e!==e&&t!==t:o0(e,t,r,a,Cc,n)}var i0=Cc;function l0(e,t){return i0(e,t)}var c0=l0;/*! *****************************************************************************
89
+ Copyright (c) Microsoft Corporation. All rights reserved.
90
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
91
+ this file except in compliance with the License. You may obtain a copy of the
92
+ License at http://www.apache.org/licenses/LICENSE-2.0
93
+
94
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
95
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
96
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
97
+ MERCHANTABLITY OR NON-INFRINGEMENT.
98
+
99
+ See the Apache Version 2.0 License for specific language governing permissions
100
+ and limitations under the License.
101
+ ***************************************************************************** */var Hs=function(e,t){return Hs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var n in a)a.hasOwnProperty(n)&&(r[n]=a[n])},Hs(e,t)};function Pc(e,t){Hs(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function d0(e){var t=typeof Symbol=="function"&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function u0(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,s=[],o;try{for(;(t===void 0||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(i){o={error:i}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return s}function p0(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u0(arguments[t]));return e}var Vc=function(){function e(t,r){this.target=r,this.type=t}return e}(),h0=function(e){Pc(t,e);function t(r,a){var n=e.call(this,"error",a)||this;return n.message=r.message,n.error=r,n}return t}(Vc),m0=function(e){Pc(t,e);function t(r,a,n){r===void 0&&(r=1e3),a===void 0&&(a="");var s=e.call(this,"close",n)||this;return s.wasClean=!0,s.code=r,s.reason=a,s}return t}(Vc);/*!
102
+ * Reconnecting WebSocket
103
+ * by Pedro Ladaria <pedro.ladaria@gmail.com>
104
+ * https://github.com/pladaria/reconnecting-websocket
105
+ * License MIT
106
+ */var f0=function(){if(typeof WebSocket<"u")return WebSocket},g0=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},nr={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},y0=function(){function e(t,r,a){var n=this;a===void 0&&(a={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(s){n._debug("open event");var o=n._options.minUptime,i=o===void 0?nr.minUptime:o;clearTimeout(n._connectTimeout),n._uptimeTimeout=setTimeout(function(){return n._acceptOpen()},i),n._ws.binaryType=n._binaryType,n._messageQueue.forEach(function(l){return n._ws.send(l)}),n._messageQueue=[],n.onopen&&n.onopen(s),n._listeners.open.forEach(function(l){return n._callEventListener(s,l)})},this._handleMessage=function(s){n._debug("message event"),n.onmessage&&n.onmessage(s),n._listeners.message.forEach(function(o){return n._callEventListener(s,o)})},this._handleError=function(s){n._debug("error event",s.message),n._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),n.onerror&&n.onerror(s),n._debug("exec error listeners"),n._listeners.error.forEach(function(o){return n._callEventListener(s,o)}),n._connect()},this._handleClose=function(s){n._debug("close event"),n._clearTimeouts(),n._shouldReconnect&&n._connect(),n.onclose&&n.onclose(s),n._listeners.close.forEach(function(o){return n._callEventListener(s,o)})},this._url=t,this._protocols=r,this._options=a,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(r,a){return typeof a=="string"?r+=a.length:a instanceof Blob?r+=a.size:r+=a.byteLength,r},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,r){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,r)},e.prototype.reconnect=function(t,r){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,r),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var r=this._options.maxEnqueuedMessages,a=r===void 0?nr.maxEnqueuedMessages:r;this._messageQueue.length<a&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,r){this._listeners[t]&&this._listeners[t].push(r)},e.prototype.dispatchEvent=function(t){var r,a,n=this._listeners[t.type];if(n)try{for(var s=d0(n),o=s.next();!o.done;o=s.next()){var i=o.value;this._callEventListener(t,i)}}catch(l){r={error:l}}finally{try{o&&!o.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return!0},e.prototype.removeEventListener=function(t,r){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(function(a){return a!==r}))},e.prototype._debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._options.debug&&console.log.apply(console,p0(["RWS>"],t))},e.prototype._getNextDelay=function(){var t=this._options,r=t.reconnectionDelayGrowFactor,a=r===void 0?nr.reconnectionDelayGrowFactor:r,n=t.minReconnectionDelay,s=n===void 0?nr.minReconnectionDelay:n,o=t.maxReconnectionDelay,i=o===void 0?nr.maxReconnectionDelay:o,l=0;return this._retryCount>0&&(l=s*Math.pow(a,this._retryCount-1),l>i&&(l=i)),this._debug("next delay",l),l},e.prototype._wait=function(){var t=this;return new Promise(function(r){setTimeout(r,t._getNextDelay())})},e.prototype._getNextUrl=function(t){if(typeof t=="string")return Promise.resolve(t);if(typeof t=="function"){var r=t();if(typeof r=="string")return Promise.resolve(r);if(r.then)return r}throw Error("Invalid URL")},e.prototype._connect=function(){var t=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var r=this._options,a=r.maxRetries,n=a===void 0?nr.maxRetries:a,s=r.connectionTimeout,o=s===void 0?nr.connectionTimeout:s,i=r.WebSocket,l=i===void 0?f0():i;if(this._retryCount>=n){this._debug("max retries reached",this._retryCount,">=",n);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!g0(l))throw Error("No valid WebSocket class provided");this._wait().then(function(){return t._getNextUrl(t._url)}).then(function(c){t._closeCalled||(t._debug("connect",{url:c,protocols:t._protocols}),t._ws=t._protocols?new l(c,t._protocols):new l(c),t._ws.binaryType=t._binaryType,t._connectLock=!1,t._addListeners(),t._connectTimeout=setTimeout(function(){return t._handleTimeout()},o))})}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new h0(Error("TIMEOUT"),this))},e.prototype._disconnect=function(t,r){if(t===void 0&&(t=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(t,r),this._handleClose(new m0(t,r,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(t,r){"handleEvent"in r?r.handleEvent(t):r(t)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}(),b0=Object.defineProperty,S0=Object.defineProperties,v0=Object.getOwnPropertyDescriptors,Fi=Object.getOwnPropertySymbols,x0=Object.prototype.hasOwnProperty,O0=Object.prototype.propertyIsEnumerable,Ni=(e,t,r)=>t in e?b0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fr=(e,t)=>{for(var r in t||(t={}))x0.call(t,r)&&Ni(e,r,t[r]);if(Fi)for(var r of Fi(t))O0.call(t,r)&&Ni(e,r,t[r]);return e},qs=(e,t)=>S0(e,v0(t)),we=(e,t,r)=>new Promise((a,n)=>{var s=l=>{try{i(r.next(l))}catch(c){n(c)}},o=l=>{try{i(r.throw(l))}catch(c){n(c)}},i=l=>l.done?a(l.value):Promise.resolve(l.value).then(s,o);i((r=r.apply(e,t)).next())}),w0=class extends y0{constructor(e,t={}){console.log("Opening websocket to",e),super(()=>this.targetUrl||e,void 0,{startClosed:!0}),this.opts=t,this.disposed=!1,Object.defineProperty(this,"url",{get(){return this.targetUrl}}),this.targetUrl=e,this.addEventListener("open",()=>{console.log(`Websocket to ${this.url} opened`)}),this.addEventListener("message",a=>{this.receivedFirstMessage||(this.receivedFirstMessage=a)}),this.addEventListener("close",()=>{console.log(`Websocket to ${this.url} closed`)});const r=this.reconnect;this.reconnect=()=>{this.opts.mock?this.opts.mock.handleWebsocketConnection(this):r.apply(this)},this.reconnect()}changeUrl(e){this.receivedFirstMessage=void 0,this.targetUrl=e,this.reconnect()}sendJson(e){this.opts.mock?this.opts.mock.handleWebsocketMessage(this,JSON.stringify(e)):this.send(JSON.stringify(e))}dispose(){this.close(),this.disposed=!0,this.opts.onDispose&&this.opts.onDispose()}opened(){return we(this,null,function*(){return new Promise((e,t)=>{this.readyState===WebSocket.OPEN?e():(this.addEventListener("open",()=>e()),this.addEventListener("error",t))})})}closed(){return we(this,null,function*(){return new Promise((e,t)=>{this.readyState===WebSocket.CLOSED?e():(this.addEventListener("close",()=>e()),this.addEventListener("error",t))})})}firstMessage(){return we(this,null,function*(){return this.receivedFirstMessage?this.receivedFirstMessage:new Promise((e,t)=>{const r=n=>{this.receivedFirstMessage=n,this.removeEventListener("message",r),this.removeEventListener("error",a),e(n)},a=n=>{this.removeEventListener("message",r),this.removeEventListener("error",a),t(n)};this.addEventListener("message",r),this.addEventListener("error",a)})})}nextMessage(){return we(this,null,function*(){return new Promise((e,t)=>{const r=n=>{this.removeEventListener("message",r),this.removeEventListener("error",a),e(n)},a=n=>{this.removeEventListener("message",r),this.removeEventListener("error",a),t(n)};this.addEventListener("message",r),this.addEventListener("error",a)})})}},C0=class{constructor(){this.available=typeof window<"u"&&!!window.localStorage}getJSON(e){if(!this.available)return null;const t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch{return null}}setJSON(e,t){if(!this.available)return null;window.localStorage.setItem(e,JSON.stringify(t))}delete(e){if(!this.available)return null;window.localStorage.removeItem(e)}setString(e,t){if(!this.available)return null;window.localStorage.setItem(e,t)}getString(e){return this.available?window.localStorage.getItem(e):null}},Os=new C0;function Qt(e){try{return JSON.parse(e)}catch{return}}function P0(e,t){return e||(e="world"),t||(t="world"),e===t}var zr="wandelbots.io",ws={dev:{domain:`https://auth.portal.dev.${zr}`,clientId:"fLbJD0RLp5r2Dpucm5j8BjwMR6Hunfha"},stg:{domain:`https://auth.portal.stg.${zr}`,clientId:"joVDeD9e786WzFNSGCqoVq7HNkWt5j6s"},prod:{domain:`https://auth.portal.${zr}`,clientId:"J7WJUi38xVQdJAEBNRT9Xw1b0fXDb4J2"}},V0=e=>{if(e.includes(`dev.${zr}`))return ws.dev;if(e.includes(`stg.${zr}`))return ws.stg;if(e.includes(zr))return ws.prod;throw new Error("Unsupported instance URL. Cannot determine Auth0 configuration.")},R0=e=>we(void 0,null,function*(){var t;if(typeof window>"u")throw new Error("Access token must be set to use NovaClient when not in a browser environment.");const r=V0(e);if(new URL(e).origin===window.location.origin)throw window.location.reload(),new Error("Failed to reload page to get auth details, please refresh manually");const{Auth0Client:a}=yield Promise.resolve().then(()=>require("./auth0-spa-js.production.esm-BLRAk7Yh.cjs")),n=new a({domain:r.domain,clientId:(t=r.clientId)!=null?t:"",useRefreshTokens:!1,authorizationParams:{audience:"nova-api",redirect_uri:window.location.origin}});if(window.location.search.includes("code=")&&window.location.search.includes("state=")){const{appState:o}=yield n.handleRedirectCallback();window.history.replaceState({},document.title,(o==null?void 0:o.returnTo)||window.location.pathname)}else yield n.loginWithRedirect();return yield n.getTokenSilently()});function Rc(e,t){return function(){return e.apply(t,arguments)}}const{toString:_0}=Object.prototype,{getPrototypeOf:fo}=Object,Qn=(e=>t=>{const r=_0.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),gt=e=>(e=e.toLowerCase(),t=>Qn(t)===e),Kn=e=>t=>typeof t===e,{isArray:ea}=Array,ja=Kn("undefined");function A0(e){return e!==null&&!ja(e)&&e.constructor!==null&&!ja(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _c=gt("ArrayBuffer");function T0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_c(e.buffer),t}const E0=Kn("string"),at=Kn("function"),Ac=Kn("number"),Yn=e=>e!==null&&typeof e=="object",I0=e=>e===!0||e===!1,pn=e=>{if(Qn(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)},M0=gt("Date"),j0=gt("File"),$0=gt("Blob"),U0=gt("FileList"),L0=e=>Yn(e)&&at(e.pipe),k0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=Qn(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},B0=gt("URLSearchParams"),[F0,N0,D0,z0]=["ReadableStream","Request","Response","Headers"].map(gt),G0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Na(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),ea(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let i;for(a=0;a<o;a++)i=s[a],t.call(null,e[i],i,e)}}function Tc(e,t){t=t.toLowerCase();const r=Object.keys(e);let a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const or=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ec=e=>!ja(e)&&e!==or;function Js(){const{caseless:e}=Ec(this)&&this||{},t={},r=(a,n)=>{const s=e&&Tc(t,n)||n;pn(t[s])&&pn(a)?t[s]=Js(t[s],a):pn(a)?t[s]=Js({},a):ea(a)?t[s]=a.slice():t[s]=a};for(let a=0,n=arguments.length;a<n;a++)arguments[a]&&Na(arguments[a],r);return t}const H0=(e,t,r,{allOwnKeys:a}={})=>(Na(t,(n,s)=>{r&&at(n)?e[s]=Rc(n,r):e[s]=n},{allOwnKeys:a}),e),q0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),J0=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},W0=(e,t,r,a)=>{let n,s,o;const i={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)o=n[s],(!a||a(o,e,t))&&!i[o]&&(t[o]=e[o],i[o]=!0);e=r!==!1&&fo(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Q0=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},K0=e=>{if(!e)return null;if(ea(e))return e;let t=e.length;if(!Ac(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Y0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&fo(Uint8Array)),X0=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=a.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},Z0=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},eS=gt("HTMLFormElement"),tS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,n){return a.toUpperCase()+n}),Di=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),rS=gt("RegExp"),Ic=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};Na(r,(n,s)=>{let o;(o=t(n,s,e))!==!1&&(a[s]=o||n)}),Object.defineProperties(e,a)},aS=e=>{Ic(e,(t,r)=>{if(at(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(at(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},nS=(e,t)=>{const r={},a=n=>{n.forEach(s=>{r[s]=!0})};return ea(e)?a(e):a(String(e).split(t)),r},sS=()=>{},oS=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function iS(e){return!!(e&&at(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const lS=e=>{const t=new Array(10),r=(a,n)=>{if(Yn(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[n]=a;const s=ea(a)?[]:{};return Na(a,(o,i)=>{const l=r(o,n+1);!ja(l)&&(s[i]=l)}),t[n]=void 0,s}}return a};return r(e,0)},cS=gt("AsyncFunction"),dS=e=>e&&(Yn(e)||at(e))&&at(e.then)&&at(e.catch),Mc=((e,t)=>e?setImmediate:t?((r,a)=>(or.addEventListener("message",({source:n,data:s})=>{n===or&&s===r&&a.length&&a.shift()()},!1),n=>{a.push(n),or.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",at(or.postMessage)),uS=typeof queueMicrotask<"u"?queueMicrotask.bind(or):typeof process<"u"&&process.nextTick||Mc,j={isArray:ea,isArrayBuffer:_c,isBuffer:A0,isFormData:k0,isArrayBufferView:T0,isString:E0,isNumber:Ac,isBoolean:I0,isObject:Yn,isPlainObject:pn,isReadableStream:F0,isRequest:N0,isResponse:D0,isHeaders:z0,isUndefined:ja,isDate:M0,isFile:j0,isBlob:$0,isRegExp:rS,isFunction:at,isStream:L0,isURLSearchParams:B0,isTypedArray:Y0,isFileList:U0,forEach:Na,merge:Js,extend:H0,trim:G0,stripBOM:q0,inherits:J0,toFlatObject:W0,kindOf:Qn,kindOfTest:gt,endsWith:Q0,toArray:K0,forEachEntry:X0,matchAll:Z0,isHTMLForm:eS,hasOwnProperty:Di,hasOwnProp:Di,reduceDescriptors:Ic,freezeMethods:aS,toObjectSet:nS,toCamelCase:tS,noop:sS,toFiniteNumber:oS,findKey:Tc,global:or,isContextDefined:Ec,isSpecCompliantForm:iS,toJSONObject:lS,isAsyncFn:cS,isThenable:dS,setImmediate:Mc,asap:uS};function oe(e,t,r,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}j.inherits(oe,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:j.toJSONObject(this.config),code:this.code,status:this.status}}});const jc=oe.prototype,$c={};["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=>{$c[e]={value:e}});Object.defineProperties(oe,$c);Object.defineProperty(jc,"isAxiosError",{value:!0});oe.from=(e,t,r,a,n,s)=>{const o=Object.create(jc);return j.toFlatObject(e,o,function(l){return l!==Error.prototype},i=>i!=="isAxiosError"),oe.call(o,e.message,t,r,a,n),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const pS=null;function Ws(e){return j.isPlainObject(e)||j.isArray(e)}function Uc(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function zi(e,t,r){return e?e.concat(t).map(function(n,s){return n=Uc(n),!r&&s?"["+n+"]":n}).join(r?".":""):t}function hS(e){return j.isArray(e)&&!e.some(Ws)}const mS=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function Xn(e,t,r){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=j.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,x){return!j.isUndefined(x[h])});const a=r.metaTokens,n=r.visitor||d,s=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(t);if(!j.isFunction(n))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(j.isDate(y))return y.toISOString();if(!l&&j.isBlob(y))throw new oe("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(y)||j.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,h,x){let E=y;if(y&&!x&&typeof y=="object"){if(j.endsWith(h,"{}"))h=a?h:h.slice(0,-2),y=JSON.stringify(y);else if(j.isArray(y)&&hS(y)||(j.isFileList(y)||j.endsWith(h,"[]"))&&(E=j.toArray(y)))return h=Uc(h),E.forEach(function(D,I){!(j.isUndefined(D)||D===null)&&t.append(o===!0?zi([h],I,s):o===null?h:h+"[]",c(D))}),!1}return Ws(y)?!0:(t.append(zi(x,h,s),c(y)),!1)}const u=[],p=Object.assign(mS,{defaultVisitor:d,convertValue:c,isVisitable:Ws});function f(y,h){if(!j.isUndefined(y)){if(u.indexOf(y)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(y),j.forEach(y,function(E,k){(!(j.isUndefined(E)||E===null)&&n.call(t,E,j.isString(k)?k.trim():k,h,p))===!0&&f(E,h?h.concat(k):[k])}),u.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Gi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function go(e,t){this._pairs=[],e&&Xn(e,this,t)}const Lc=go.prototype;Lc.append=function(t,r){this._pairs.push([t,r])};Lc.toString=function(t){const r=t?function(a){return t.call(this,a,Gi)}:Gi;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function fS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function kc(e,t,r){if(!t)return e;const a=r&&r.encode||fS;j.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let s;if(n?s=n(t,r):s=j.isURLSearchParams(t)?t.toString():new go(t,r).toString(a),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Hi{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){j.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Bc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gS=typeof URLSearchParams<"u"?URLSearchParams:go,yS=typeof FormData<"u"?FormData:null,bS=typeof Blob<"u"?Blob:null,SS={isBrowser:!0,classes:{URLSearchParams:gS,FormData:yS,Blob:bS},protocols:["http","https","file","blob","url","data"]},yo=typeof window<"u"&&typeof document<"u",Qs=typeof navigator=="object"&&navigator||void 0,vS=yo&&(!Qs||["ReactNative","NativeScript","NS"].indexOf(Qs.product)<0),xS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",OS=yo&&window.location.href||"http://localhost",wS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yo,hasStandardBrowserEnv:vS,hasStandardBrowserWebWorkerEnv:xS,navigator:Qs,origin:OS},Symbol.toStringTag,{value:"Module"})),Ge={...wS,...SS};function CS(e,t){return Xn(e,new Ge.classes.URLSearchParams,Object.assign({visitor:function(r,a,n,s){return Ge.isNode&&j.isBuffer(r)?(this.append(a,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function PS(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function VS(e){const t={},r=Object.keys(e);let a;const n=r.length;let s;for(a=0;a<n;a++)s=r[a],t[s]=e[s];return t}function Fc(e){function t(r,a,n,s){let o=r[s++];if(o==="__proto__")return!0;const i=Number.isFinite(+o),l=s>=r.length;return o=!o&&j.isArray(n)?n.length:o,l?(j.hasOwnProp(n,o)?n[o]=[n[o],a]:n[o]=a,!i):((!n[o]||!j.isObject(n[o]))&&(n[o]=[]),t(r,a,n[o],s)&&j.isArray(n[o])&&(n[o]=VS(n[o])),!i)}if(j.isFormData(e)&&j.isFunction(e.entries)){const r={};return j.forEachEntry(e,(a,n)=>{t(PS(a),n,r,0)}),r}return null}function RS(e,t,r){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const Da={transitional:Bc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const a=r.getContentType()||"",n=a.indexOf("application/json")>-1,s=j.isObject(t);if(s&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return n?JSON.stringify(Fc(t)):t;if(j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)||j.isReadableStream(t))return t;if(j.isArrayBufferView(t))return t.buffer;if(j.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return CS(t,this.formSerializer).toString();if((i=j.isFileList(t))||a.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Xn(i?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||n?(r.setContentType("application/json",!1),RS(t)):t}],transformResponse:[function(t){const r=this.transitional||Da.transitional,a=r&&r.forcedJSONParsing,n=this.responseType==="json";if(j.isResponse(t)||j.isReadableStream(t))return t;if(t&&j.isString(t)&&(a&&!this.responseType||n)){const o=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(i){if(o)throw i.name==="SyntaxError"?oe.from(i,oe.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ge.classes.FormData,Blob:Ge.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],e=>{Da.headers[e]={}});const _S=j.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"]),AS=e=>{const t={};let r,a,n;return e&&e.split(`
107
+ `).forEach(function(o){n=o.indexOf(":"),r=o.substring(0,n).trim().toLowerCase(),a=o.substring(n+1).trim(),!(!r||t[r]&&_S[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t},qi=Symbol("internals");function ma(e){return e&&String(e).trim().toLowerCase()}function hn(e){return e===!1||e==null?e:j.isArray(e)?e.map(hn):String(e)}function TS(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}const ES=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cs(e,t,r,a,n){if(j.isFunction(a))return a.call(this,t,r);if(n&&(t=r),!!j.isString(t)){if(j.isString(a))return t.indexOf(a)!==-1;if(j.isRegExp(a))return a.test(t)}}function IS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function MS(e,t){const r=j.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(n,s,o){return this[a].call(this,t,n,s,o)},configurable:!0})})}let Ze=class{constructor(t){t&&this.set(t)}set(t,r,a){const n=this;function s(i,l,c){const d=ma(l);if(!d)throw new Error("header name must be a non-empty string");const u=j.findKey(n,d);(!u||n[u]===void 0||c===!0||c===void 0&&n[u]!==!1)&&(n[u||l]=hn(i))}const o=(i,l)=>j.forEach(i,(c,d)=>s(c,d,l));if(j.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(j.isString(t)&&(t=t.trim())&&!ES(t))o(AS(t),r);else if(j.isHeaders(t))for(const[i,l]of t.entries())s(l,i,a);else t!=null&&s(r,t,a);return this}get(t,r){if(t=ma(t),t){const a=j.findKey(this,t);if(a){const n=this[a];if(!r)return n;if(r===!0)return TS(n);if(j.isFunction(r))return r.call(this,n,a);if(j.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ma(t),t){const a=j.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||Cs(this,this[a],a,r)))}return!1}delete(t,r){const a=this;let n=!1;function s(o){if(o=ma(o),o){const i=j.findKey(a,o);i&&(!r||Cs(a,a[i],i,r))&&(delete a[i],n=!0)}}return j.isArray(t)?t.forEach(s):s(t),n}clear(t){const r=Object.keys(this);let a=r.length,n=!1;for(;a--;){const s=r[a];(!t||Cs(this,this[s],s,t,!0))&&(delete this[s],n=!0)}return n}normalize(t){const r=this,a={};return j.forEach(this,(n,s)=>{const o=j.findKey(a,s);if(o){r[o]=hn(n),delete r[s];return}const i=t?IS(s):String(s).trim();i!==s&&delete r[s],r[i]=hn(n),a[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return j.forEach(this,(a,n)=>{a!=null&&a!==!1&&(r[n]=t&&j.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
108
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(n=>a.set(n)),a}static accessor(t){const a=(this[qi]=this[qi]={accessors:{}}).accessors,n=this.prototype;function s(o){const i=ma(o);a[i]||(MS(n,o),a[i]=!0)}return j.isArray(t)?t.forEach(s):s(t),this}};Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(Ze.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}});j.freezeMethods(Ze);function Ps(e,t){const r=this||Da,a=t||r,n=Ze.from(a.headers);let s=a.data;return j.forEach(e,function(i){s=i.call(r,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function Nc(e){return!!(e&&e.__CANCEL__)}function ta(e,t,r){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,r),this.name="CanceledError"}j.inherits(ta,oe,{__CANCEL__:!0});function Dc(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new oe("Request failed with status code "+r.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function jS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $S(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=a[s];o||(o=c),r[n]=l,a[n]=c;let u=s,p=0;for(;u!==n;)p+=r[u++],u=u%e;if(n=(n+1)%e,n===s&&(s=(s+1)%e),c-o<t)return;const f=d&&c-d;return f?Math.round(p*1e3/f):void 0}}function US(e,t){let r=0,a=1e3/t,n,s;const o=(c,d=Date.now())=>{r=d,n=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),u=d-r;u>=a?o(c,d):(n=c,s||(s=setTimeout(()=>{s=null,o(n)},a-u)))},()=>n&&o(n)]}const Rn=(e,t,r=3)=>{let a=0;const n=$S(50,250);return US(s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-a,c=n(l),d=o<=i;a=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&d?(i-o)/c:void 0,event:s,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(u)},r)},Ji=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},Wi=e=>(...t)=>j.asap(()=>e(...t)),LS=Ge.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ge.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ge.origin),Ge.navigator&&/(msie|trident)/i.test(Ge.navigator.userAgent)):()=>!0,kS=Ge.hasStandardBrowserEnv?{write(e,t,r,a,n,s){const o=[e+"="+encodeURIComponent(t)];j.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),j.isString(a)&&o.push("path="+a),j.isString(n)&&o.push("domain="+n),s===!0&&o.push("secure"),document.cookie=o.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 BS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function FS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zc(e,t,r){let a=!BS(t);return e&&a||r==!1?FS(e,t):t}const Qi=e=>e instanceof Ze?{...e}:e;function pr(e,t){t=t||{};const r={};function a(c,d,u,p){return j.isPlainObject(c)&&j.isPlainObject(d)?j.merge.call({caseless:p},c,d):j.isPlainObject(d)?j.merge({},d):j.isArray(d)?d.slice():d}function n(c,d,u,p){if(j.isUndefined(d)){if(!j.isUndefined(c))return a(void 0,c,u,p)}else return a(c,d,u,p)}function s(c,d){if(!j.isUndefined(d))return a(void 0,d)}function o(c,d){if(j.isUndefined(d)){if(!j.isUndefined(c))return a(void 0,c)}else return a(void 0,d)}function i(c,d,u){if(u in t)return a(c,d);if(u in e)return a(void 0,c)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:i,headers:(c,d,u)=>n(Qi(c),Qi(d),u,!0)};return j.forEach(Object.keys(Object.assign({},e,t)),function(d){const u=l[d]||n,p=u(e[d],t[d],d);j.isUndefined(p)&&u!==i||(r[d]=p)}),r}const Gc=e=>{const t=pr({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:s,headers:o,auth:i}=t;t.headers=o=Ze.from(o),t.url=kc(zc(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&o.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let l;if(j.isFormData(r)){if(Ge.hasStandardBrowserEnv||Ge.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...d]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Ge.hasStandardBrowserEnv&&(a&&j.isFunction(a)&&(a=a(t)),a||a!==!1&&LS(t.url))){const c=n&&s&&kS.read(s);c&&o.set(n,c)}return t},NS=typeof XMLHttpRequest<"u",DS=NS&&function(e){return new Promise(function(r,a){const n=Gc(e);let s=n.data;const o=Ze.from(n.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:c}=n,d,u,p,f,y;function h(){f&&f(),y&&y(),n.cancelToken&&n.cancelToken.unsubscribe(d),n.signal&&n.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(n.method.toUpperCase(),n.url,!0),x.timeout=n.timeout;function E(){if(!x)return;const D=Ze.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),F={data:!i||i==="text"||i==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:D,config:e,request:x};Dc(function(M){r(M),h()},function(M){a(M),h()},F),x=null}"onloadend"in x?x.onloadend=E:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(E)},x.onabort=function(){x&&(a(new oe("Request aborted",oe.ECONNABORTED,e,x)),x=null)},x.onerror=function(){a(new oe("Network Error",oe.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let I=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const F=n.transitional||Bc;n.timeoutErrorMessage&&(I=n.timeoutErrorMessage),a(new oe(I,F.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,x)),x=null},s===void 0&&o.setContentType(null),"setRequestHeader"in x&&j.forEach(o.toJSON(),function(I,F){x.setRequestHeader(F,I)}),j.isUndefined(n.withCredentials)||(x.withCredentials=!!n.withCredentials),i&&i!=="json"&&(x.responseType=n.responseType),c&&([p,y]=Rn(c,!0),x.addEventListener("progress",p)),l&&x.upload&&([u,f]=Rn(l),x.upload.addEventListener("progress",u),x.upload.addEventListener("loadend",f)),(n.cancelToken||n.signal)&&(d=D=>{x&&(a(!D||D.type?new ta(null,e,x):D),x.abort(),x=null)},n.cancelToken&&n.cancelToken.subscribe(d),n.signal&&(n.signal.aborted?d():n.signal.addEventListener("abort",d)));const k=jS(n.url);if(k&&Ge.protocols.indexOf(k)===-1){a(new oe("Unsupported protocol "+k+":",oe.ERR_BAD_REQUEST,e));return}x.send(s||null)})},zS=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,n;const s=function(c){if(!n){n=!0,i();const d=c instanceof Error?c:this.reason;a.abort(d instanceof oe?d:new ta(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,s(new oe(`timeout ${t} of ms exceeded`,oe.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:l}=a;return l.unsubscribe=()=>j.asap(i),l}},GS=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},HS=async function*(e,t){for await(const r of qS(e))yield*GS(r,t)},qS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:a}=await t.read();if(r)break;yield a}}finally{await t.cancel()}},Ki=(e,t,r,a)=>{const n=HS(e,t);let s=0,o,i=l=>{o||(o=!0,a&&a(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await n.next();if(c){i(),l.close();return}let u=d.byteLength;if(r){let p=s+=u;r(p)}l.enqueue(new Uint8Array(d))}catch(c){throw i(c),c}},cancel(l){return i(l),n.return()}},{highWaterMark:2})},Zn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hc=Zn&&typeof ReadableStream=="function",JS=Zn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),qc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},WS=Hc&&qc(()=>{let e=!1;const t=new Request(Ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Yi=64*1024,Ks=Hc&&qc(()=>j.isReadableStream(new Response("").body)),_n={stream:Ks&&(e=>e.body)};Zn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_n[t]&&(_n[t]=j.isFunction(e[t])?r=>r[t]():(r,a)=>{throw new oe(`Response type '${t}' is not supported`,oe.ERR_NOT_SUPPORT,a)})})})(new Response);const QS=async e=>{if(e==null)return 0;if(j.isBlob(e))return e.size;if(j.isSpecCompliantForm(e))return(await new Request(Ge.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(j.isArrayBufferView(e)||j.isArrayBuffer(e))return e.byteLength;if(j.isURLSearchParams(e)&&(e=e+""),j.isString(e))return(await JS(e)).byteLength},KS=async(e,t)=>{const r=j.toFiniteNumber(e.getContentLength());return r??QS(t)},YS=Zn&&(async e=>{let{url:t,method:r,data:a,signal:n,cancelToken:s,timeout:o,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:p}=Gc(e);c=c?(c+"").toLowerCase():"text";let f=zS([n,s&&s.toAbortSignal()],o),y;const h=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let x;try{if(l&&WS&&r!=="get"&&r!=="head"&&(x=await KS(d,a))!==0){let F=new Request(t,{method:"POST",body:a,duplex:"half"}),q;if(j.isFormData(a)&&(q=F.headers.get("content-type"))&&d.setContentType(q),F.body){const[M,L]=Ji(x,Rn(Wi(l)));a=Ki(F.body,Yi,M,L)}}j.isString(u)||(u=u?"include":"omit");const E="credentials"in Request.prototype;y=new Request(t,{...p,signal:f,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:a,duplex:"half",credentials:E?u:void 0});let k=await fetch(y);const D=Ks&&(c==="stream"||c==="response");if(Ks&&(i||D&&h)){const F={};["status","statusText","headers"].forEach(B=>{F[B]=k[B]});const q=j.toFiniteNumber(k.headers.get("content-length")),[M,L]=i&&Ji(q,Rn(Wi(i),!0))||[];k=new Response(Ki(k.body,Yi,M,()=>{L&&L(),h&&h()}),F)}c=c||"text";let I=await _n[j.findKey(_n,c)||"text"](k,e);return!D&&h&&h(),await new Promise((F,q)=>{Dc(F,q,{data:I,headers:Ze.from(k.headers),status:k.status,statusText:k.statusText,config:e,request:y})})}catch(E){throw h&&h(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new oe("Network Error",oe.ERR_NETWORK,e,y),{cause:E.cause||E}):oe.from(E,E&&E.code,e,y)}}),Ys={http:pS,xhr:DS,fetch:YS};j.forEach(Ys,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Xi=e=>`- ${e}`,XS=e=>j.isFunction(e)||e===null||e===!1,Jc={getAdapter:e=>{e=j.isArray(e)?e:[e];const{length:t}=e;let r,a;const n={};for(let s=0;s<t;s++){r=e[s];let o;if(a=r,!XS(r)&&(a=Ys[(o=String(r)).toLowerCase()],a===void 0))throw new oe(`Unknown adapter '${o}'`);if(a)break;n[o||"#"+s]=a}if(!a){const s=Object.entries(n).map(([i,l])=>`adapter ${i} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
109
+ `+s.map(Xi).join(`
110
+ `):" "+Xi(s[0]):"as no adapter specified";throw new oe("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a},adapters:Ys};function Vs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ta(null,e)}function Zi(e){return Vs(e),e.headers=Ze.from(e.headers),e.data=Ps.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jc.getAdapter(e.adapter||Da.adapter)(e).then(function(a){return Vs(e),a.data=Ps.call(e,e.transformResponse,a),a.headers=Ze.from(a.headers),a},function(a){return Nc(a)||(Vs(e),a&&a.response&&(a.response.data=Ps.call(e,e.transformResponse,a.response),a.response.headers=Ze.from(a.response.headers))),Promise.reject(a)})}const Wc="1.8.3",es={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{es[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const el={};es.transitional=function(t,r,a){function n(s,o){return"[Axios v"+Wc+"] Transitional option '"+s+"'"+o+(a?". "+a:"")}return(s,o,i)=>{if(t===!1)throw new oe(n(o," has been removed"+(r?" in "+r:"")),oe.ERR_DEPRECATED);return r&&!el[o]&&(el[o]=!0,console.warn(n(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,o,i):!0}};es.spelling=function(t){return(r,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function ZS(e,t,r){if(typeof e!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let n=a.length;for(;n-- >0;){const s=a[n],o=t[s];if(o){const i=e[s],l=i===void 0||o(i,s,e);if(l!==!0)throw new oe("option "+s+" must be "+l,oe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new oe("Unknown option "+s,oe.ERR_BAD_OPTION)}}const mn={assertOptions:ZS,validators:es},vt=mn.validators;let lr=class{constructor(t){this.defaults=t,this.interceptors={request:new Hi,response:new Hi}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const s=n.stack?n.stack.replace(/^.+\n/,""):"";try{a.stack?s&&!String(a.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(a.stack+=`
111
+ `+s):a.stack=s}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=pr(this.defaults,r);const{transitional:a,paramsSerializer:n,headers:s}=r;a!==void 0&&mn.assertOptions(a,{silentJSONParsing:vt.transitional(vt.boolean),forcedJSONParsing:vt.transitional(vt.boolean),clarifyTimeoutError:vt.transitional(vt.boolean)},!1),n!=null&&(j.isFunction(n)?r.paramsSerializer={serialize:n}:mn.assertOptions(n,{encode:vt.function,serialize:vt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),mn.assertOptions(r,{baseUrl:vt.spelling("baseURL"),withXsrfToken:vt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&j.merge(s.common,s[r.method]);s&&j.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),r.headers=Ze.concat(o,s);const i=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(l=l&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let d,u=0,p;if(!l){const y=[Zi.bind(this),void 0];for(y.unshift.apply(y,i),y.push.apply(y,c),p=y.length,d=Promise.resolve(r);u<p;)d=d.then(y[u++],y[u++]);return d}p=i.length;let f=r;for(u=0;u<p;){const y=i[u++],h=i[u++];try{f=y(f)}catch(x){h.call(this,x);break}}try{d=Zi.call(this,f)}catch(y){return Promise.reject(y)}for(u=0,p=c.length;u<p;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=pr(this.defaults,t);const r=zc(t.baseURL,t.url,t.allowAbsoluteUrls);return kc(r,t.params,t.paramsSerializer)}};j.forEach(["delete","get","head","options"],function(t){lr.prototype[t]=function(r,a){return this.request(pr(a||{},{method:t,url:r,data:(a||{}).data}))}});j.forEach(["post","put","patch"],function(t){function r(a){return function(s,o,i){return this.request(pr(i||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}lr.prototype[t]=r(),lr.prototype[t+"Form"]=r(!0)});let ev=class Qc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const a=this;this.promise.then(n=>{if(!a._listeners)return;let s=a._listeners.length;for(;s-- >0;)a._listeners[s](n);a._listeners=null}),this.promise.then=n=>{let s;const o=new Promise(i=>{a.subscribe(i),s=i}).then(n);return o.cancel=function(){a.unsubscribe(s)},o},t(function(s,o,i){a.reason||(a.reason=new ta(s,o,i),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=a=>{t.abort(a)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Qc(function(n){t=n}),cancel:t}}};function tv(e){return function(r){return e.apply(null,r)}}function rv(e){return j.isObject(e)&&e.isAxiosError===!0}const Xs={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(Xs).forEach(([e,t])=>{Xs[t]=e});function Kc(e){const t=new lr(e),r=Rc(lr.prototype.request,t);return j.extend(r,lr.prototype,t,{allOwnKeys:!0}),j.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return Kc(pr(e,n))},r}const O=Kc(Da);O.Axios=lr;O.CanceledError=ta;O.CancelToken=ev;O.isCancel=Nc;O.VERSION=Wc;O.toFormData=Xn;O.AxiosError=oe;O.Cancel=O.CanceledError;O.all=function(t){return Promise.all(t)};O.spread=tv;O.isAxiosError=rv;O.mergeConfig=pr;O.AxiosHeaders=Ze;O.formToJSON=e=>Fc(j.isHTMLForm(e)?new FormData(e):e);O.getAdapter=Jc.getAdapter;O.HttpStatusCode=Xs;O.default=O;const{Axios:cP,AxiosError:Zs,CanceledError:dP,isCancel:uP,CancelToken:pP,VERSION:hP,all:mP,Cancel:fP,isAxiosError:av,spread:gP,toFormData:yP,AxiosHeaders:bP,HttpStatusCode:SP,formToJSON:vP,getAdapter:xP,mergeConfig:OP}=O,w="/api/v1".replace(/\/+$/,"");class Ce{constructor(t,r=w,a=O){ia(this,"basePath");ia(this,"axios");ia(this,"configuration");this.basePath=r,this.axios=a,t&&(this.configuration=t,this.basePath=t.basePath??r)}}class nv extends Error{constructor(r,a){super(a);ia(this,"field");this.field=r,this.name="RequiredError"}}const C={},P="https://example.com",m=function(e,t,r){if(r==null)throw new nv(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},V=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},R=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function eo(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(a=>eo(e,a,r)):Object.keys(t).forEach(a=>eo(e,t[a],`${r}${r!==""?".":""}${a}`)):e.has(r)?e.append(r,t):e.set(r,t))}const _=function(e,...t){const r=new URLSearchParams(e.search);eo(r,t),e.search=r.toString()},se=function(e,t,r){const a=typeof e!="string";return(a&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):a)?JSON.stringify(e!==void 0?e:{}):e||""},A=function(e){return e.pathname+e.search+e.hash},T=function(e,t,r,a){return(n=t,s=r)=>{const o={...e.options,url:(n.defaults.baseURL?"":(a==null?void 0:a.basePath)??s)+e.url};return n.request(o)}},sv=function(e){return{addApp:async(t,r,a,n={})=>{m("addApp","cell",t),m("addApp","app",r);const s="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(o),options:l}},clearApps:async(t,r,a={})=>{m("clearApps","cell",t);const n="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},deleteApp:async(t,r,a,n={})=>{m("deleteApp","cell",t),m("deleteApp","app",r);const s="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},getApp:async(t,r,a={})=>{m("getApp","cell",t),m("getApp","app",r);const n="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listApps:async(t,r={})=>{m("listApps","cell",t);const a="/cells/{cell}/apps".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},updateApp:async(t,r,a,n,s={})=>{m("updateApp","cell",t),m("updateApp","app",r),m("updateApp","app2",a);const o="/cells/{cell}/apps/{app}".replace("{cell}",encodeURIComponent(String(t))).replace("{app}",encodeURIComponent(String(r))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...s},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.completionTimeout=n),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},c.data=se(a,c,e),{url:A(i),options:c}}}},Ir=function(e){const t=sv(e);return{async addApp(r,a,n,s){var c,d;const o=await t.addApp(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ApplicationApi.addApp"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async clearApps(r,a,n){var l,c;const s=await t.clearApps(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ApplicationApi.clearApps"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async deleteApp(r,a,n,s){var c,d;const o=await t.deleteApp(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ApplicationApi.deleteApp"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async getApp(r,a,n){var l,c;const s=await t.getApp(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ApplicationApi.getApp"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listApps(r,a){var i,l;const n=await t.listApps(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["ApplicationApi.listApps"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async updateApp(r,a,n,s,o){var d,u;const i=await t.updateApp(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["ApplicationApi.updateApp"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class tl extends Ce{addApp(t,r,a,n){return Ir(this.configuration).addApp(t,r,a,n).then(s=>s(this.axios,this.basePath))}clearApps(t,r,a){return Ir(this.configuration).clearApps(t,r,a).then(n=>n(this.axios,this.basePath))}deleteApp(t,r,a,n){return Ir(this.configuration).deleteApp(t,r,a,n).then(s=>s(this.axios,this.basePath))}getApp(t,r,a){return Ir(this.configuration).getApp(t,r,a).then(n=>n(this.axios,this.basePath))}listApps(t,r){return Ir(this.configuration).listApps(t,r).then(a=>a(this.axios,this.basePath))}updateApp(t,r,a,n,s){return Ir(this.configuration).updateApp(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}}const ov=function(e){return{deleteCell:async(t,r,a={})=>{m("deleteCell","cell",t);const n="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},deployCell:async(t,r,a={})=>{m("deployCell","cell",t);const n="/cells",s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(t,i,e),{url:A(s),options:i}},getCell:async(t,r={})=>{m("getCell","cell",t);const a="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},getCellStatus:async(t,r={})=>{m("getCellStatus","cell",t);const a="/cells/{cell}/status".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},listCells:async(t={})=>{const r="/cells",a=new URL(r,P);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},o={},i={};V(s,e),await R(o,e),_(a,i);let l=n&&n.headers?n.headers:{};return s.headers={...o,...l,...t.headers},{url:A(a),options:s}},updateCell:async(t,r,a,n={})=>{m("updateCell","cell",t),m("updateCell","cell2",r);const s="/cells/{cell}".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(o),options:l}}}},Mr=function(e){const t=ov(e);return{async deleteCell(r,a,n){var l,c;const s=await t.deleteCell(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CellApi.deleteCell"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async deployCell(r,a,n){var l,c;const s=await t.deployCell(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CellApi.deployCell"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getCell(r,a){var i,l;const n=await t.getCell(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["CellApi.getCell"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async getCellStatus(r,a){var i,l;const n=await t.getCellStatus(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["CellApi.getCellStatus"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async listCells(r){var o,i;const a=await t.listCells(r),n=(e==null?void 0:e.serverIndex)??0,s=(i=(o=C["CellApi.listCells"])==null?void 0:o[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,s||c)},async updateCell(r,a,n,s){var c,d;const o=await t.updateCell(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["CellApi.updateCell"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)}}};class iv extends Ce{deleteCell(t,r,a){return Mr(this.configuration).deleteCell(t,r,a).then(n=>n(this.axios,this.basePath))}deployCell(t,r,a){return Mr(this.configuration).deployCell(t,r,a).then(n=>n(this.axios,this.basePath))}getCell(t,r){return Mr(this.configuration).getCell(t,r).then(a=>a(this.axios,this.basePath))}getCellStatus(t,r){return Mr(this.configuration).getCellStatus(t,r).then(a=>a(this.axios,this.basePath))}listCells(t){return Mr(this.configuration).listCells(t).then(r=>r(this.axios,this.basePath))}updateCell(t,r,a,n){return Mr(this.configuration).updateCell(t,r,a,n).then(s=>s(this.axios,this.basePath))}}const lv=function(e){return{addRobotController:async(t,r,a,n={})=>{m("addRobotController","cell",t),m("addRobotController","robotController",r);const s="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(o),options:l}},clearRobotControllers:async(t,r,a={})=>{m("clearRobotControllers","cell",t);const n="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.completionTimeout=r),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},deleteRobotController:async(t,r,a,n={})=>{m("deleteRobotController","cell",t),m("deleteRobotController","controller",r);const s="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.completionTimeout=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},getCurrentRobotControllerState:async(t,r,a={})=>{m("getCurrentRobotControllerState","cell",t),m("getCurrentRobotControllerState","controller",r);const n="/cells/{cell}/controllers/{controller}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getMode:async(t,r,a={})=>{m("getMode","cell",t),m("getMode","controller",r);const n="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getRobotController:async(t,r,a={})=>{m("getRobotController","cell",t),m("getRobotController","controller",r);const n="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getSupportedModes:async(t,r,a={})=>{m("getSupportedModes","cell",t),m("getSupportedModes","controller",r);const n="/cells/{cell}/controllers/{controller}/controller-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getVirtualRobotConfiguration:async(t,r,a={})=>{m("getVirtualRobotConfiguration","cell",t),m("getVirtualRobotConfiguration","controller",r);const n="/cells/{cell}/controllers/{controller}/virtual-robot-configuration".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listControllers:async(t,r={})=>{m("listControllers","cell",t);const a="/cells/{cell}/controllers".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},setDefaultMode:async(t,r,a,n={})=>{m("setDefaultMode","cell",t),m("setDefaultMode","controller",r),m("setDefaultMode","mode",a);const s="/cells/{cell}/controllers/{controller}/mode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.mode=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},streamFreeDrive:async(t,r,a,n={})=>{m("streamFreeDrive","cell",t),m("streamFreeDrive","controller",r);const s="/cells/{cell}/controllers/{controller}/free-drive-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.response_rate=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},streamModeChange:async(t,r,a={})=>{m("streamModeChange","cell",t),m("streamModeChange","controller",r);const n="/cells/{cell}/controllers/{controller}/mode-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},streamRobotControllerState:async(t,r,a,n={})=>{m("streamRobotControllerState","cell",t),m("streamRobotControllerState","controller",r);const s="/cells/{cell}/controllers/{controller}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.response_rate=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},updateRobotController:async(t,r,a,n,s={})=>{m("updateRobotController","cell",t),m("updateRobotController","controller",r),m("updateRobotController","robotController",a);const o="/cells/{cell}/controllers/{controller}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...s},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.completionTimeout=n),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},c.data=se(a,c,e),{url:A(i),options:c}}}},Xe=function(e){const t=lv(e);return{async addRobotController(r,a,n,s){var c,d;const o=await t.addRobotController(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.addRobotController"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async clearRobotControllers(r,a,n){var l,c;const s=await t.clearRobotControllers(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.clearRobotControllers"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async deleteRobotController(r,a,n,s){var c,d;const o=await t.deleteRobotController(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.deleteRobotController"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async getCurrentRobotControllerState(r,a,n){var l,c;const s=await t.getCurrentRobotControllerState(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getCurrentRobotControllerState"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getMode(r,a,n){var l,c;const s=await t.getMode(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getMode"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getRobotController(r,a,n){var l,c;const s=await t.getRobotController(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getRobotController"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getSupportedModes(r,a,n){var l,c;const s=await t.getSupportedModes(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getSupportedModes"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getVirtualRobotConfiguration(r,a,n){var l,c;const s=await t.getVirtualRobotConfiguration(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.getVirtualRobotConfiguration"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listControllers(r,a){var i,l;const n=await t.listControllers(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["ControllerApi.listControllers"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async setDefaultMode(r,a,n,s){var c,d;const o=await t.setDefaultMode(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.setDefaultMode"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async streamFreeDrive(r,a,n,s){var c,d;const o=await t.streamFreeDrive(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.streamFreeDrive"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async streamModeChange(r,a,n){var l,c;const s=await t.streamModeChange(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ControllerApi.streamModeChange"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async streamRobotControllerState(r,a,n,s){var c,d;const o=await t.streamRobotControllerState(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerApi.streamRobotControllerState"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async updateRobotController(r,a,n,s,o){var d,u;const i=await t.updateRobotController(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["ControllerApi.updateRobotController"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class cv extends Ce{addRobotController(t,r,a,n){return Xe(this.configuration).addRobotController(t,r,a,n).then(s=>s(this.axios,this.basePath))}clearRobotControllers(t,r,a){return Xe(this.configuration).clearRobotControllers(t,r,a).then(n=>n(this.axios,this.basePath))}deleteRobotController(t,r,a,n){return Xe(this.configuration).deleteRobotController(t,r,a,n).then(s=>s(this.axios,this.basePath))}getCurrentRobotControllerState(t,r,a){return Xe(this.configuration).getCurrentRobotControllerState(t,r,a).then(n=>n(this.axios,this.basePath))}getMode(t,r,a){return Xe(this.configuration).getMode(t,r,a).then(n=>n(this.axios,this.basePath))}getRobotController(t,r,a){return Xe(this.configuration).getRobotController(t,r,a).then(n=>n(this.axios,this.basePath))}getSupportedModes(t,r,a){return Xe(this.configuration).getSupportedModes(t,r,a).then(n=>n(this.axios,this.basePath))}getVirtualRobotConfiguration(t,r,a){return Xe(this.configuration).getVirtualRobotConfiguration(t,r,a).then(n=>n(this.axios,this.basePath))}listControllers(t,r){return Xe(this.configuration).listControllers(t,r).then(a=>a(this.axios,this.basePath))}setDefaultMode(t,r,a,n){return Xe(this.configuration).setDefaultMode(t,r,a,n).then(s=>s(this.axios,this.basePath))}streamFreeDrive(t,r,a,n){return Xe(this.configuration).streamFreeDrive(t,r,a,n).then(s=>s(this.axios,this.basePath))}streamModeChange(t,r,a){return Xe(this.configuration).streamModeChange(t,r,a).then(n=>n(this.axios,this.basePath))}streamRobotControllerState(t,r,a,n){return Xe(this.configuration).streamRobotControllerState(t,r,a,n).then(s=>s(this.axios,this.basePath))}updateRobotController(t,r,a,n,s){return Xe(this.configuration).updateRobotController(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}}const dv=function(e){return{listIODescriptions:async(t,r,a,n={})=>{m("listIODescriptions","cell",t),m("listIODescriptions","controller",r);const s="/cells/{cell}/controllers/{controller}/ios/description".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a&&(d.ios=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},listIOValues:async(t,r,a,n={})=>{m("listIOValues","cell",t),m("listIOValues","controller",r);const s="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a&&(d.ios=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},setOutputValues:async(t,r,a,n={})=>{m("setOutputValues","cell",t),m("setOutputValues","controller",r),m("setOutputValues","iOValue",a);const s="/cells/{cell}/controllers/{controller}/ios/values".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}},streamIOValues:async(t,r,a,n={})=>{m("streamIOValues","cell",t),m("streamIOValues","controller",r);const s="/cells/{cell}/controllers/{controller}/ios/stream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a&&(d.ios=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},waitForIOEvent:async(t,r,a,n,s,o,i,l={})=>{m("waitForIOEvent","cell",t),m("waitForIOEvent","controller",r),m("waitForIOEvent","io",a),m("waitForIOEvent","comparisonType",n);const c="/cells/{cell}/controllers/{controller}/ios/wait-for".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),d=new URL(c,P);let u;e&&(u=e.baseOptions);const p={method:"GET",...u,...l},f={},y={};V(p,e),await R(f,e),a!==void 0&&(y.io=a),n!==void 0&&(y.comparison_type=n),s!==void 0&&(y.boolean_value=s),o!==void 0&&(y.integer_value=o),i!==void 0&&(y.floating_value=i),_(d,y);let h=u&&u.headers?u.headers:{};return p.headers={...f,...h,...l.headers},{url:A(d),options:p}}}},fa=function(e){const t=dv(e);return{async listIODescriptions(r,a,n,s){var c,d;const o=await t.listIODescriptions(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.listIODescriptions"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async listIOValues(r,a,n,s){var c,d;const o=await t.listIOValues(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.listIOValues"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async setOutputValues(r,a,n,s){var c,d;const o=await t.setOutputValues(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.setOutputValues"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async streamIOValues(r,a,n,s){var c,d;const o=await t.streamIOValues(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ControllerIOsApi.streamIOValues"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async waitForIOEvent(r,a,n,s,o,i,l,c){var f,y;const d=await t.waitForIOEvent(r,a,n,s,o,i,l,c),u=(e==null?void 0:e.serverIndex)??0,p=(y=(f=C["ControllerIOsApi.waitForIOEvent"])==null?void 0:f[u])==null?void 0:y.url;return(h,x)=>T(d,O,w,e)(h,p||x)}}};class uv extends Ce{listIODescriptions(t,r,a,n){return fa(this.configuration).listIODescriptions(t,r,a,n).then(s=>s(this.axios,this.basePath))}listIOValues(t,r,a,n){return fa(this.configuration).listIOValues(t,r,a,n).then(s=>s(this.axios,this.basePath))}setOutputValues(t,r,a,n){return fa(this.configuration).setOutputValues(t,r,a,n).then(s=>s(this.axios,this.basePath))}streamIOValues(t,r,a,n){return fa(this.configuration).streamIOValues(t,r,a,n).then(s=>s(this.axios,this.basePath))}waitForIOEvent(t,r,a,n,s,o,i,l){return fa(this.configuration).waitForIOEvent(t,r,a,n,s,o,i,l).then(c=>c(this.axios,this.basePath))}}const pv=function(e){return{addCoordinateSystem:async(t,r,a={})=>{m("addCoordinateSystem","cell",t),m("addCoordinateSystem","addRequest",r);const n="/cells/{cell}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},deleteCoordinateSystem:async(t,r,a={})=>{m("deleteCoordinateSystem","cell",t),m("deleteCoordinateSystem","coordinateSystem",r);const n="/cells/{cell}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getCoordinateSystem:async(t,r,a,n={})=>{m("getCoordinateSystem","cell",t),m("getCoordinateSystem","coordinateSystem",r);const s="/cells/{cell}/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.rotation_type=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},listCoordinateSystems:async(t,r,a={})=>{m("listCoordinateSystems","cell",t);const n="/cells/{cell}/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.rotation_type=r),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},transformInCoordinateSystem:async(t,r,a,n={})=>{m("transformInCoordinateSystem","cell",t),m("transformInCoordinateSystem","coordinateSystem",r),m("transformInCoordinateSystem","pose",a);const s="/cells/{cell}/coordinate-systems/{coordinate-system}/transform".replace("{cell}",encodeURIComponent(String(t))).replace("{coordinate-system}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}}}},ga=function(e){const t=pv(e);return{async addCoordinateSystem(r,a,n){var l,c;const s=await t.addCoordinateSystem(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CoordinateSystemsApi.addCoordinateSystem"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async deleteCoordinateSystem(r,a,n){var l,c;const s=await t.deleteCoordinateSystem(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CoordinateSystemsApi.deleteCoordinateSystem"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getCoordinateSystem(r,a,n,s){var c,d;const o=await t.getCoordinateSystem(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["CoordinateSystemsApi.getCoordinateSystem"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async listCoordinateSystems(r,a,n){var l,c;const s=await t.listCoordinateSystems(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["CoordinateSystemsApi.listCoordinateSystems"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async transformInCoordinateSystem(r,a,n,s){var c,d;const o=await t.transformInCoordinateSystem(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["CoordinateSystemsApi.transformInCoordinateSystem"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)}}};class hv extends Ce{addCoordinateSystem(t,r,a){return ga(this.configuration).addCoordinateSystem(t,r,a).then(n=>n(this.axios,this.basePath))}deleteCoordinateSystem(t,r,a){return ga(this.configuration).deleteCoordinateSystem(t,r,a).then(n=>n(this.axios,this.basePath))}getCoordinateSystem(t,r,a,n){return ga(this.configuration).getCoordinateSystem(t,r,a,n).then(s=>s(this.axios,this.basePath))}listCoordinateSystems(t,r,a){return ga(this.configuration).listCoordinateSystems(t,r,a).then(n=>n(this.axios,this.basePath))}transformInCoordinateSystem(t,r,a,n){return ga(this.configuration).transformInCoordinateSystem(t,r,a,n).then(s=>s(this.axios,this.basePath))}}const mv=function(e){return{clearDevices:async(t,r={})=>{m("clearDevices","cell",t);const a="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"DELETE",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},createDevice:async(t,r,a={})=>{m("createDevice","cell",t),m("createDevice","createDeviceRequestInner",r);const n="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},deleteDevice:async(t,r,a={})=>{m("deleteDevice","cell",t),m("deleteDevice","identifier",r);const n="/cells/{cell}/devices/{identifier}".replace("{cell}",encodeURIComponent(String(t))).replace("{identifier}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getDevice:async(t,r,a={})=>{m("getDevice","cell",t),m("getDevice","identifier",r);const n="/cells/{cell}/devices/{identifier}".replace("{cell}",encodeURIComponent(String(t))).replace("{identifier}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listDevices:async(t,r={})=>{m("listDevices","cell",t);const a="/cells/{cell}/devices".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}}}},ya=function(e){const t=mv(e);return{async clearDevices(r,a){var i,l;const n=await t.clearDevices(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["DeviceConfigurationApi.clearDevices"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async createDevice(r,a,n){var l,c;const s=await t.createDevice(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["DeviceConfigurationApi.createDevice"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async deleteDevice(r,a,n){var l,c;const s=await t.deleteDevice(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["DeviceConfigurationApi.deleteDevice"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getDevice(r,a,n){var l,c;const s=await t.getDevice(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["DeviceConfigurationApi.getDevice"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listDevices(r,a){var i,l;const n=await t.listDevices(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["DeviceConfigurationApi.listDevices"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)}}};class fv extends Ce{clearDevices(t,r){return ya(this.configuration).clearDevices(t,r).then(a=>a(this.axios,this.basePath))}createDevice(t,r,a){return ya(this.configuration).createDevice(t,r,a).then(n=>n(this.axios,this.basePath))}deleteDevice(t,r,a){return ya(this.configuration).deleteDevice(t,r,a).then(n=>n(this.axios,this.basePath))}getDevice(t,r,a){return ya(this.configuration).getDevice(t,r,a).then(n=>n(this.axios,this.basePath))}listDevices(t,r){return ya(this.configuration).listDevices(t,r).then(a=>a(this.axios,this.basePath))}}const gv=function(e){return{createProgram:async(t,r,a,n={})=>{m("createProgram","cell",t),m("createProgram","body",r);const s="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.name=a),c["Content-Type"]="text/plain",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(o),options:l}},deleteProgram:async(t,r,a={})=>{m("deleteProgram","cell",t),m("deleteProgram","program",r);const n="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},deleteProgramList:async(t,r,a={})=>{m("deleteProgramList","cell",t),m("deleteProgramList","programIds",r);const n="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),r&&(c.program_ids=r),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getProgram:async(t,r,a={})=>{m("getProgram","cell",t),m("getProgram","program",r);const n="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},updateProgram:async(t,r,a,n={})=>{m("updateProgram","cell",t),m("updateProgram","program",r),m("updateProgram","body",a);const s="/cells/{cell}/store/programs/{program}".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="text/plain",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}}}},ba=function(e){const t=gv(e);return{async createProgram(r,a,n,s){var c,d;const o=await t.createProgram(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramApi.createProgram"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async deleteProgram(r,a,n){var l,c;const s=await t.deleteProgram(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramApi.deleteProgram"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async deleteProgramList(r,a,n){var l,c;const s=await t.deleteProgramList(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramApi.deleteProgramList"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getProgram(r,a,n){var l,c;const s=await t.getProgram(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramApi.getProgram"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async updateProgram(r,a,n,s){var c,d;const o=await t.updateProgram(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramApi.updateProgram"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)}}};class yv extends Ce{createProgram(t,r,a,n){return ba(this.configuration).createProgram(t,r,a,n).then(s=>s(this.axios,this.basePath))}deleteProgram(t,r,a){return ba(this.configuration).deleteProgram(t,r,a).then(n=>n(this.axios,this.basePath))}deleteProgramList(t,r,a){return ba(this.configuration).deleteProgramList(t,r,a).then(n=>n(this.axios,this.basePath))}getProgram(t,r,a){return ba(this.configuration).getProgram(t,r,a).then(n=>n(this.axios,this.basePath))}updateProgram(t,r,a,n){return ba(this.configuration).updateProgram(t,r,a,n).then(s=>s(this.axios,this.basePath))}}const bv=function(e){return{getProgramMetadata:async(t,r,a={})=>{m("getProgramMetadata","cell",t),m("getProgramMetadata","program",r);const n="/cells/{cell}/store/programs/{program}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listProgramMetadata:async(t,r,a={})=>{m("listProgramMetadata","cell",t);const n="/cells/{cell}/store/programs".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.show_hidden=r),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},updateProgramMetadata:async(t,r,a,n={})=>{m("updateProgramMetadata","cell",t),m("updateProgramMetadata","program",r),m("updateProgramMetadata","updateProgramMetadataRequest",a);const s="/cells/{cell}/store/programs/{program}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}},uploadProgramMetadataImage:async(t,r,a,n={})=>{m("uploadProgramMetadataImage","cell",t),m("uploadProgramMetadataImage","program",r),m("uploadProgramMetadataImage","file",a);const s="/cells/{cell}/store/programs/{program}/metadata/image".replace("{cell}",encodeURIComponent(String(t))).replace("{program}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={},u=new(e&&e.formDataCtor||FormData);V(l,e),await R(c,e),a!==void 0&&u.append("file",a),c["Content-Type"]="multipart/form-data",_(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},l.data=u,{url:A(o),options:l}}}},Qa=function(e){const t=bv(e);return{async getProgramMetadata(r,a,n){var l,c;const s=await t.getProgramMetadata(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramMetadataApi.getProgramMetadata"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listProgramMetadata(r,a,n){var l,c;const s=await t.listProgramMetadata(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryProgramMetadataApi.listProgramMetadata"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async updateProgramMetadata(r,a,n,s){var c,d;const o=await t.updateProgramMetadata(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramMetadataApi.updateProgramMetadata"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async uploadProgramMetadataImage(r,a,n,s){var c,d;const o=await t.uploadProgramMetadataImage(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryProgramMetadataApi.uploadProgramMetadataImage"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)}}};class Sv extends Ce{getProgramMetadata(t,r,a){return Qa(this.configuration).getProgramMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}listProgramMetadata(t,r,a){return Qa(this.configuration).listProgramMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}updateProgramMetadata(t,r,a,n){return Qa(this.configuration).updateProgramMetadata(t,r,a,n).then(s=>s(this.axios,this.basePath))}uploadProgramMetadataImage(t,r,a,n){return Qa(this.configuration).uploadProgramMetadataImage(t,r,a,n).then(s=>s(this.axios,this.basePath))}}const vv=function(e){return{createRecipe:async(t,r,a,n,s={})=>{m("createRecipe","cell",t),m("createRecipe","programId",r),m("createRecipe","body",a);const o="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...s},d={},u={};V(c,e),await R(d,e),r!==void 0&&(u.program_id=r),n!==void 0&&(u.name=n),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},c.data=se(a,c,e),{url:A(i),options:c}},deleteRecipe:async(t,r,a={})=>{m("deleteRecipe","cell",t),m("deleteRecipe","recipe",r);const n="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},deleteRecipeList:async(t,r,a={})=>{m("deleteRecipeList","cell",t),m("deleteRecipeList","recipeIds",r);const n="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),r&&(c.recipe_ids=r),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getRecipe:async(t,r,a={})=>{m("getRecipe","cell",t),m("getRecipe","recipe",r);const n="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},updateRecipe:async(t,r,a,n={})=>{m("updateRecipe","cell",t),m("updateRecipe","recipe",r),m("updateRecipe","body",a);const s="/cells/{cell}/store/recipes/{recipe}".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}}}},Sa=function(e){const t=vv(e);return{async createRecipe(r,a,n,s,o){var d,u;const i=await t.createRecipe(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["LibraryRecipeApi.createRecipe"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async deleteRecipe(r,a,n){var l,c;const s=await t.deleteRecipe(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeApi.deleteRecipe"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async deleteRecipeList(r,a,n){var l,c;const s=await t.deleteRecipeList(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeApi.deleteRecipeList"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getRecipe(r,a,n){var l,c;const s=await t.getRecipe(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeApi.getRecipe"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async updateRecipe(r,a,n,s){var c,d;const o=await t.updateRecipe(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryRecipeApi.updateRecipe"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)}}};class xv extends Ce{createRecipe(t,r,a,n,s){return Sa(this.configuration).createRecipe(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}deleteRecipe(t,r,a){return Sa(this.configuration).deleteRecipe(t,r,a).then(n=>n(this.axios,this.basePath))}deleteRecipeList(t,r,a){return Sa(this.configuration).deleteRecipeList(t,r,a).then(n=>n(this.axios,this.basePath))}getRecipe(t,r,a){return Sa(this.configuration).getRecipe(t,r,a).then(n=>n(this.axios,this.basePath))}updateRecipe(t,r,a,n){return Sa(this.configuration).updateRecipe(t,r,a,n).then(s=>s(this.axios,this.basePath))}}const Ov=function(e){return{getRecipeMetadata:async(t,r,a={})=>{m("getRecipeMetadata","cell",t),m("getRecipeMetadata","recipe",r);const n="/cells/{cell}/store/recipes/{recipe}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listRecipeMetadata:async(t,r={})=>{m("listRecipeMetadata","cell",t);const a="/cells/{cell}/store/recipes".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},updateRecipeMetadata:async(t,r,a,n={})=>{m("updateRecipeMetadata","cell",t),m("updateRecipeMetadata","recipe",r),m("updateRecipeMetadata","updateRecipeMetadataRequest",a);const s="/cells/{cell}/store/recipes/{recipe}/metadata".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}},uploadRecipeMetadataImage:async(t,r,a,n={})=>{m("uploadRecipeMetadataImage","cell",t),m("uploadRecipeMetadataImage","recipe",r),m("uploadRecipeMetadataImage","file",a);const s="/cells/{cell}/store/recipes/{recipe}/metadata/image".replace("{cell}",encodeURIComponent(String(t))).replace("{recipe}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={},u=new(e&&e.formDataCtor||FormData);V(l,e),await R(c,e),a!==void 0&&u.append("file",a),c["Content-Type"]="multipart/form-data",_(o,d);let p=i&&i.headers?i.headers:{};return l.headers={...c,...p,...n.headers},l.data=u,{url:A(o),options:l}}}},Ka=function(e){const t=Ov(e);return{async getRecipeMetadata(r,a,n){var l,c;const s=await t.getRecipeMetadata(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["LibraryRecipeMetadataApi.getRecipeMetadata"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listRecipeMetadata(r,a){var i,l;const n=await t.listRecipeMetadata(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["LibraryRecipeMetadataApi.listRecipeMetadata"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async updateRecipeMetadata(r,a,n,s){var c,d;const o=await t.updateRecipeMetadata(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryRecipeMetadataApi.updateRecipeMetadata"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async uploadRecipeMetadataImage(r,a,n,s){var c,d;const o=await t.uploadRecipeMetadataImage(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["LibraryRecipeMetadataApi.uploadRecipeMetadataImage"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)}}};class wv extends Ce{getRecipeMetadata(t,r,a){return Ka(this.configuration).getRecipeMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}listRecipeMetadata(t,r){return Ka(this.configuration).listRecipeMetadata(t,r).then(a=>a(this.axios,this.basePath))}updateRecipeMetadata(t,r,a,n){return Ka(this.configuration).updateRecipeMetadata(t,r,a,n).then(s=>s(this.axios,this.basePath))}uploadRecipeMetadataImage(t,r,a,n){return Ka(this.configuration).uploadRecipeMetadataImage(t,r,a,n).then(s=>s(this.axios,this.basePath))}}const Cv=function(e){return{deleteAllMotions:async(t,r={})=>{m("deleteAllMotions","cell",t);const a="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"DELETE",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},deleteMotion:async(t,r,a={})=>{m("deleteMotion","cell",t),m("deleteMotion","motion",r);const n="/cells/{cell}/motions/{motion}/delete".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},executeTrajectory:async(t,r,a={})=>{m("executeTrajectory","cell",t),m("executeTrajectory","executeTrajectoryRequest",r);const n="/cells/{cell}/motions/executetrajectory".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},getMotionTrajectory:async(t,r,a,n,s={})=>{m("getMotionTrajectory","cell",t),m("getMotionTrajectory","motion",r),m("getMotionTrajectory","sampleTime",a);const o="/cells/{cell}/motions/{motion}/trajectory".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...s},d={},u={};V(c,e),await R(d,e),a!==void 0&&(u.sample_time=a),n!==void 0&&(u.responses_coordinate_system=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},{url:A(i),options:c}},getMotionTrajectorySample:async(t,r,a,n,s={})=>{m("getMotionTrajectorySample","cell",t),m("getMotionTrajectorySample","motion",r);const o="/cells/{cell}/motions/{motion}/trajectorysample".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...s},d={},u={};V(c,e),await R(d,e),a!==void 0&&(u.location_on_trajectory=a),n!==void 0&&(u.response_coordinate_system=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},{url:A(i),options:c}},getPlannedMotion:async(t,r,a,n={})=>{m("getPlannedMotion","cell",t),m("getPlannedMotion","motion",r);const s="/cells/{cell}/motions/{motion}/planned-motion".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.sample_time=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},getPlanningMotionGroupModels:async(t,r={})=>{m("getPlanningMotionGroupModels","cell",t);const a="/cells/{cell}/motion-planning/motion-group-models".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},listMotions:async(t,r={})=>{m("listMotions","cell",t);const a="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},loadPlannedMotion:async(t,r,a={})=>{m("loadPlannedMotion","cell",t),m("loadPlannedMotion","plannedMotion",r);const n="/cells/{cell}/planned-motions".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},planCollisionFreePTP:async(t,r,a={})=>{m("planCollisionFreePTP","cell",t);const n="/cells/{cell}/motion-planning/plan-collision-free-ptp".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},planMotion:async(t,r,a={})=>{m("planMotion","cell",t),m("planMotion","planRequest",r);const n="/cells/{cell}/motions".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},planTrajectory:async(t,r,a={})=>{m("planTrajectory","cell",t);const n="/cells/{cell}/motion-planning/plan-trajectory".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},stopExecution:async(t,r,a={})=>{m("stopExecution","cell",t),m("stopExecution","motion",r);const n="/cells/{cell}/motions/{motion}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},streamMove:async(t,r,a={})=>{m("streamMove","cell",t),m("streamMove","streamMoveRequest",r);const n="/cells/{cell}/motions/streammove".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},streamMoveBackward:async(t,r,a,n,s,o,i={})=>{m("streamMoveBackward","cell",t),m("streamMoveBackward","motion",r),m("streamMoveBackward","playbackSpeedInPercent",a);const l="/cells/{cell}/motions/{motion}/executebackward".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),c=new URL(l,P);let d;e&&(d=e.baseOptions);const u={method:"GET",...d,...i},p={},f={};V(u,e),await R(p,e),a!==void 0&&(f.playback_speed_in_percent=a),n!==void 0&&(f.response_rate=n),s!==void 0&&(f.response_coordinate_system=s),o!==void 0&&(f.start_location_on_trajectory=o),_(c,f);let y=d&&d.headers?d.headers:{};return u.headers={...p,...y,...i.headers},{url:A(c),options:u}},streamMoveForward:async(t,r,a,n,s,o,i={})=>{m("streamMoveForward","cell",t),m("streamMoveForward","motion",r),m("streamMoveForward","playbackSpeedInPercent",a);const l="/cells/{cell}/motions/{motion}/executeforward".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),c=new URL(l,P);let d;e&&(d=e.baseOptions);const u={method:"GET",...d,...i},p={},f={};V(u,e),await R(p,e),a!==void 0&&(f.playback_speed_in_percent=a),n!==void 0&&(f.response_rate=n),s!==void 0&&(f.response_coordinate_system=s),o!==void 0&&(f.start_location_on_trajectory=o),_(c,f);let y=d&&d.headers?d.headers:{};return u.headers={...p,...y,...i.headers},{url:A(c),options:u}},streamMoveToTrajectoryViaJointPTP:async(t,r,a,n,s,o,i,l,c,d,u={})=>{m("streamMoveToTrajectoryViaJointPTP","cell",t),m("streamMoveToTrajectoryViaJointPTP","motion",r),m("streamMoveToTrajectoryViaJointPTP","locationOnTrajectory",a);const p="/cells/{cell}/motions/{motion}/executetotrajectory".replace("{cell}",encodeURIComponent(String(t))).replace("{motion}",encodeURIComponent(String(r))),f=new URL(p,P);let y;e&&(y=e.baseOptions);const h={method:"GET",...y,...u},x={},E={};V(h,e),await R(x,e),a!==void 0&&(E.location_on_trajectory=a),n&&(E["limit_override.joint_velocity_limits.joints"]=n),s&&(E["limit_override.joint_acceleration_limits.joints"]=s),o!==void 0&&(E["limit_override.tcp_velocity_limit"]=o),i!==void 0&&(E["limit_override.tcp_acceleration_limit"]=i),l!==void 0&&(E["limit_override.tcp_orientation_velocity_limit"]=l),c!==void 0&&(E["limit_override.tcp_orientation_acceleration_limit"]=c),d!==void 0&&(E.responses_coordinate_system=d),_(f,E);let k=y&&y.headers?y.headers:{};return h.headers={...x,...k,...u.headers},{url:A(f),options:h}}}},ze=function(e){const t=Cv(e);return{async deleteAllMotions(r,a){var i,l;const n=await t.deleteAllMotions(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["MotionApi.deleteAllMotions"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async deleteMotion(r,a,n){var l,c;const s=await t.deleteMotion(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.deleteMotion"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async executeTrajectory(r,a,n){var l,c;const s=await t.executeTrajectory(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.executeTrajectory"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getMotionTrajectory(r,a,n,s,o){var d,u;const i=await t.getMotionTrajectory(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["MotionApi.getMotionTrajectory"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getMotionTrajectorySample(r,a,n,s,o){var d,u;const i=await t.getMotionTrajectorySample(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["MotionApi.getMotionTrajectorySample"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getPlannedMotion(r,a,n,s){var c,d;const o=await t.getPlannedMotion(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionApi.getPlannedMotion"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async getPlanningMotionGroupModels(r,a){var i,l;const n=await t.getPlanningMotionGroupModels(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["MotionApi.getPlanningMotionGroupModels"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async listMotions(r,a){var i,l;const n=await t.listMotions(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["MotionApi.listMotions"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async loadPlannedMotion(r,a,n){var l,c;const s=await t.loadPlannedMotion(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.loadPlannedMotion"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async planCollisionFreePTP(r,a,n){var l,c;const s=await t.planCollisionFreePTP(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.planCollisionFreePTP"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async planMotion(r,a,n){var l,c;const s=await t.planMotion(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.planMotion"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async planTrajectory(r,a,n){var l,c;const s=await t.planTrajectory(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.planTrajectory"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async stopExecution(r,a,n){var l,c;const s=await t.stopExecution(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.stopExecution"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async streamMove(r,a,n){var l,c;const s=await t.streamMove(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionApi.streamMove"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async streamMoveBackward(r,a,n,s,o,i,l){var p,f;const c=await t.streamMoveBackward(r,a,n,s,o,i,l),d=(e==null?void 0:e.serverIndex)??0,u=(f=(p=C["MotionApi.streamMoveBackward"])==null?void 0:p[d])==null?void 0:f.url;return(y,h)=>T(c,O,w,e)(y,u||h)},async streamMoveForward(r,a,n,s,o,i,l){var p,f;const c=await t.streamMoveForward(r,a,n,s,o,i,l),d=(e==null?void 0:e.serverIndex)??0,u=(f=(p=C["MotionApi.streamMoveForward"])==null?void 0:p[d])==null?void 0:f.url;return(y,h)=>T(c,O,w,e)(y,u||h)},async streamMoveToTrajectoryViaJointPTP(r,a,n,s,o,i,l,c,d,u,p){var x,E;const f=await t.streamMoveToTrajectoryViaJointPTP(r,a,n,s,o,i,l,c,d,u,p),y=(e==null?void 0:e.serverIndex)??0,h=(E=(x=C["MotionApi.streamMoveToTrajectoryViaJointPTP"])==null?void 0:x[y])==null?void 0:E.url;return(k,D)=>T(f,O,w,e)(k,h||D)}}};class Pv extends Ce{deleteAllMotions(t,r){return ze(this.configuration).deleteAllMotions(t,r).then(a=>a(this.axios,this.basePath))}deleteMotion(t,r,a){return ze(this.configuration).deleteMotion(t,r,a).then(n=>n(this.axios,this.basePath))}executeTrajectory(t,r,a){return ze(this.configuration).executeTrajectory(t,r,a).then(n=>n(this.axios,this.basePath))}getMotionTrajectory(t,r,a,n,s){return ze(this.configuration).getMotionTrajectory(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}getMotionTrajectorySample(t,r,a,n,s){return ze(this.configuration).getMotionTrajectorySample(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}getPlannedMotion(t,r,a,n){return ze(this.configuration).getPlannedMotion(t,r,a,n).then(s=>s(this.axios,this.basePath))}getPlanningMotionGroupModels(t,r){return ze(this.configuration).getPlanningMotionGroupModels(t,r).then(a=>a(this.axios,this.basePath))}listMotions(t,r){return ze(this.configuration).listMotions(t,r).then(a=>a(this.axios,this.basePath))}loadPlannedMotion(t,r,a){return ze(this.configuration).loadPlannedMotion(t,r,a).then(n=>n(this.axios,this.basePath))}planCollisionFreePTP(t,r,a){return ze(this.configuration).planCollisionFreePTP(t,r,a).then(n=>n(this.axios,this.basePath))}planMotion(t,r,a){return ze(this.configuration).planMotion(t,r,a).then(n=>n(this.axios,this.basePath))}planTrajectory(t,r,a){return ze(this.configuration).planTrajectory(t,r,a).then(n=>n(this.axios,this.basePath))}stopExecution(t,r,a){return ze(this.configuration).stopExecution(t,r,a).then(n=>n(this.axios,this.basePath))}streamMove(t,r,a){return ze(this.configuration).streamMove(t,r,a).then(n=>n(this.axios,this.basePath))}streamMoveBackward(t,r,a,n,s,o,i){return ze(this.configuration).streamMoveBackward(t,r,a,n,s,o,i).then(l=>l(this.axios,this.basePath))}streamMoveForward(t,r,a,n,s,o,i){return ze(this.configuration).streamMoveForward(t,r,a,n,s,o,i).then(l=>l(this.axios,this.basePath))}streamMoveToTrajectoryViaJointPTP(t,r,a,n,s,o,i,l,c,d,u){return ze(this.configuration).streamMoveToTrajectoryViaJointPTP(t,r,a,n,s,o,i,l,c,d,u).then(p=>p(this.axios,this.basePath))}}const Vv=function(e){return{activateAllMotionGroups:async(t,r,a={})=>{m("activateAllMotionGroups","cell",t),m("activateAllMotionGroups","controller",r);const n="/cells/{cell}/motion-groups/all".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.controller=r),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},activateMotionGroup:async(t,r,a={})=>{m("activateMotionGroup","cell",t),m("activateMotionGroup","motionGroup",r);const n="/cells/{cell}/motion-groups".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),r!==void 0&&(c.motion_group=r),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},deactivateMotionGroup:async(t,r,a={})=>{m("deactivateMotionGroup","cell",t),m("deactivateMotionGroup","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listMotionGroups:async(t,r={})=>{m("listMotionGroups","cell",t);const a="/cells/{cell}/motion-groups".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}}}},Ya=function(e){const t=Vv(e);return{async activateAllMotionGroups(r,a,n){var l,c;const s=await t.activateAllMotionGroups(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupApi.activateAllMotionGroups"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async activateMotionGroup(r,a,n){var l,c;const s=await t.activateMotionGroup(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupApi.activateMotionGroup"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async deactivateMotionGroup(r,a,n){var l,c;const s=await t.deactivateMotionGroup(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupApi.deactivateMotionGroup"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listMotionGroups(r,a){var i,l;const n=await t.listMotionGroups(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["MotionGroupApi.listMotionGroups"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)}}};class Rv extends Ce{activateAllMotionGroups(t,r,a){return Ya(this.configuration).activateAllMotionGroups(t,r,a).then(n=>n(this.axios,this.basePath))}activateMotionGroup(t,r,a){return Ya(this.configuration).activateMotionGroup(t,r,a).then(n=>n(this.axios,this.basePath))}deactivateMotionGroup(t,r,a){return Ya(this.configuration).deactivateMotionGroup(t,r,a).then(n=>n(this.axios,this.basePath))}listMotionGroups(t,r){return Ya(this.configuration).listMotionGroups(t,r).then(a=>a(this.axios,this.basePath))}}const _v=function(e){return{getActivePayload:async(t,r,a={})=>{m("getActivePayload","cell",t),m("getActivePayload","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/payloads/current".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getActiveTcp:async(t,r,a,n={})=>{m("getActiveTcp","cell",t),m("getActiveTcp","motionGroup",r);const s="/cells/{cell}/motion-groups/{motion-group}/tcps/current".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.rotation_type=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},getCurrentMotionGroupState:async(t,r,a,n,s={})=>{m("getCurrentMotionGroupState","cell",t),m("getCurrentMotionGroupState","motionGroup",r);const o="/cells/{cell}/motion-groups/{motion-group}/state".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...s},d={},u={};V(c,e),await R(d,e),a!==void 0&&(u.tcp=a),n!==void 0&&(u.response_coordinate_system=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},{url:A(i),options:c}},getInfoCapabilities:async(t,r,a={})=>{m("getInfoCapabilities","cell",t),m("getInfoCapabilities","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/info-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getMotionGroupSpecification:async(t,r,a={})=>{m("getMotionGroupSpecification","cell",t),m("getMotionGroupSpecification","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/specification".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getMounting:async(t,r,a={})=>{m("getMounting","cell",t),m("getMounting","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getOptimizerConfiguration:async(t,r,a,n={})=>{m("getOptimizerConfiguration","cell",t),m("getOptimizerConfiguration","motionGroup",r);const s="/cells/{cell}/motion-groups/{motion-group}/optimizer-setup".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.tcp=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},getSafetySetup:async(t,r,a={})=>{m("getSafetySetup","cell",t),m("getSafetySetup","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/safety-setup".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listPayloads:async(t,r,a={})=>{m("listPayloads","cell",t),m("listPayloads","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/payloads".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listTcps:async(t,r,a,n={})=>{m("listTcps","cell",t),m("listTcps","motionGroup",r);const s="/cells/{cell}/motion-groups/{motion-group}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.rotation_type=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},streamMotionGroupState:async(t,r,a,n,s,o={})=>{m("streamMotionGroupState","cell",t),m("streamMotionGroupState","motionGroup",r);const i="/cells/{cell}/motion-groups/{motion-group}/state-stream".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),l=new URL(i,P);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...o},u={},p={};V(d,e),await R(u,e),a!==void 0&&(p.response_rate=a),n!==void 0&&(p.response_coordinate_system=n),s!==void 0&&(p.tcp=s),_(l,p);let f=c&&c.headers?c.headers:{};return d.headers={...u,...f,...o.headers},{url:A(l),options:d}}}},pt=function(e){const t=_v(e);return{async getActivePayload(r,a,n){var l,c;const s=await t.getActivePayload(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getActivePayload"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getActiveTcp(r,a,n,s){var c,d;const o=await t.getActiveTcp(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupInfosApi.getActiveTcp"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async getCurrentMotionGroupState(r,a,n,s,o){var d,u;const i=await t.getCurrentMotionGroupState(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["MotionGroupInfosApi.getCurrentMotionGroupState"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getInfoCapabilities(r,a,n){var l,c;const s=await t.getInfoCapabilities(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getInfoCapabilities"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getMotionGroupSpecification(r,a,n){var l,c;const s=await t.getMotionGroupSpecification(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getMotionGroupSpecification"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getMounting(r,a,n){var l,c;const s=await t.getMounting(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getMounting"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getOptimizerConfiguration(r,a,n,s){var c,d;const o=await t.getOptimizerConfiguration(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupInfosApi.getOptimizerConfiguration"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async getSafetySetup(r,a,n){var l,c;const s=await t.getSafetySetup(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.getSafetySetup"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listPayloads(r,a,n){var l,c;const s=await t.listPayloads(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupInfosApi.listPayloads"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listTcps(r,a,n,s){var c,d;const o=await t.listTcps(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupInfosApi.listTcps"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async streamMotionGroupState(r,a,n,s,o,i){var u,p;const l=await t.streamMotionGroupState(r,a,n,s,o,i),c=(e==null?void 0:e.serverIndex)??0,d=(p=(u=C["MotionGroupInfosApi.streamMotionGroupState"])==null?void 0:u[c])==null?void 0:p.url;return(f,y)=>T(l,O,w,e)(f,d||y)}}};class Av extends Ce{getActivePayload(t,r,a){return pt(this.configuration).getActivePayload(t,r,a).then(n=>n(this.axios,this.basePath))}getActiveTcp(t,r,a,n){return pt(this.configuration).getActiveTcp(t,r,a,n).then(s=>s(this.axios,this.basePath))}getCurrentMotionGroupState(t,r,a,n,s){return pt(this.configuration).getCurrentMotionGroupState(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}getInfoCapabilities(t,r,a){return pt(this.configuration).getInfoCapabilities(t,r,a).then(n=>n(this.axios,this.basePath))}getMotionGroupSpecification(t,r,a){return pt(this.configuration).getMotionGroupSpecification(t,r,a).then(n=>n(this.axios,this.basePath))}getMounting(t,r,a){return pt(this.configuration).getMounting(t,r,a).then(n=>n(this.axios,this.basePath))}getOptimizerConfiguration(t,r,a,n){return pt(this.configuration).getOptimizerConfiguration(t,r,a,n).then(s=>s(this.axios,this.basePath))}getSafetySetup(t,r,a){return pt(this.configuration).getSafetySetup(t,r,a).then(n=>n(this.axios,this.basePath))}listPayloads(t,r,a){return pt(this.configuration).listPayloads(t,r,a).then(n=>n(this.axios,this.basePath))}listTcps(t,r,a,n){return pt(this.configuration).listTcps(t,r,a,n).then(s=>s(this.axios,this.basePath))}streamMotionGroupState(t,r,a,n,s,o){return pt(this.configuration).streamMotionGroupState(t,r,a,n,s,o).then(i=>i(this.axios,this.basePath))}}const Tv=function(e){return{directionJogging:async(t,r,a={})=>{m("directionJogging","cell",t),m("directionJogging","directionJoggingRequest",r);const n="/cells/{cell}/motion-groups/move-tcp".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},getJoggingCapabilities:async(t,r,a={})=>{m("getJoggingCapabilities","cell",t),m("getJoggingCapabilities","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/jogging-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},jointJogging:async(t,r,a={})=>{m("jointJogging","cell",t),m("jointJogging","jointJoggingRequest",r);const n="/cells/{cell}/motion-groups/move-joint".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},stopJogging:async(t,r,a={})=>{m("stopJogging","cell",t),m("stopJogging","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}}}},Xa=function(e){const t=Tv(e);return{async directionJogging(r,a,n){var l,c;const s=await t.directionJogging(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.directionJogging"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getJoggingCapabilities(r,a,n){var l,c;const s=await t.getJoggingCapabilities(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.getJoggingCapabilities"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async jointJogging(r,a,n){var l,c;const s=await t.jointJogging(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.jointJogging"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async stopJogging(r,a,n){var l,c;const s=await t.stopJogging(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupJoggingApi.stopJogging"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)}}};class Ev extends Ce{directionJogging(t,r,a){return Xa(this.configuration).directionJogging(t,r,a).then(n=>n(this.axios,this.basePath))}getJoggingCapabilities(t,r,a){return Xa(this.configuration).getJoggingCapabilities(t,r,a).then(n=>n(this.axios,this.basePath))}jointJogging(t,r,a){return Xa(this.configuration).jointJogging(t,r,a).then(n=>n(this.axios,this.basePath))}stopJogging(t,r,a){return Xa(this.configuration).stopJogging(t,r,a).then(n=>n(this.axios,this.basePath))}}const Iv=function(e){return{calculateAllInverseKinematic:async(t,r,a,n={})=>{m("calculateAllInverseKinematic","cell",t),m("calculateAllInverseKinematic","motionGroup",r),m("calculateAllInverseKinematic","allJointPositionsRequest",a);const s="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-all-joint-positions".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}},calculateForwardKinematic:async(t,r,a,n={})=>{m("calculateForwardKinematic","cell",t),m("calculateForwardKinematic","motionGroup",r),m("calculateForwardKinematic","tcpPoseRequest",a);const s="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-tcp-pose".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}},calculateInverseKinematic:async(t,r,a,n={})=>{m("calculateInverseKinematic","cell",t),m("calculateInverseKinematic","motionGroup",r),m("calculateInverseKinematic","jointPositionRequest",a);const s="/cells/{cell}/motion-groups/{motion-group}/kinematic/calculate-joint-position".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}},getKinematicCapabilities:async(t,r,a={})=>{m("getKinematicCapabilities","cell",t),m("getKinematicCapabilities","motionGroup",r);const n="/cells/{cell}/motion-groups/{motion-group}/kinematic-capabilities".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}}}},Za=function(e){const t=Iv(e);return{async calculateAllInverseKinematic(r,a,n,s){var c,d;const o=await t.calculateAllInverseKinematic(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupKinematicApi.calculateAllInverseKinematic"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async calculateForwardKinematic(r,a,n,s){var c,d;const o=await t.calculateForwardKinematic(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupKinematicApi.calculateForwardKinematic"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async calculateInverseKinematic(r,a,n,s){var c,d;const o=await t.calculateInverseKinematic(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["MotionGroupKinematicApi.calculateInverseKinematic"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async getKinematicCapabilities(r,a,n){var l,c;const s=await t.getKinematicCapabilities(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["MotionGroupKinematicApi.getKinematicCapabilities"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)}}};class Mv extends Ce{calculateAllInverseKinematic(t,r,a,n){return Za(this.configuration).calculateAllInverseKinematic(t,r,a,n).then(s=>s(this.axios,this.basePath))}calculateForwardKinematic(t,r,a,n){return Za(this.configuration).calculateForwardKinematic(t,r,a,n).then(s=>s(this.axios,this.basePath))}calculateInverseKinematic(t,r,a,n){return Za(this.configuration).calculateInverseKinematic(t,r,a,n).then(s=>s(this.axios,this.basePath))}getKinematicCapabilities(t,r,a){return Za(this.configuration).getKinematicCapabilities(t,r,a).then(n=>n(this.axios,this.basePath))}}const jv=function(e){return{createProgramRunner:async(t,r,a={})=>{m("createProgramRunner","cell",t),m("createProgramRunner","request",r);const n="/cells/{cell}/programs/runners".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="text/plain",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},executeProgram:async(t,r,a={})=>{m("executeProgram","cell",t),m("executeProgram","codeWithArguments",r);const n="/cells/{cell}/programs/execute".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},getProgramRunner:async(t,r,a={})=>{m("getProgramRunner","cell",t),m("getProgramRunner","runner",r);const n="/cells/{cell}/programs/runners/{runner}".replace("{cell}",encodeURIComponent(String(t))).replace("{runner}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listProgramRunners:async(t,r={})=>{m("listProgramRunners","cell",t);const a="/cells/{cell}/programs/runners".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},migrateProgram:async(t,r,a={})=>{m("migrateProgram","cell",t),m("migrateProgram","request1",r);const n="/cells/{cell}/programs/migrate".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="text/plain",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},planProgram:async(t,r,a,n={})=>{m("planProgram","cell",t),m("planProgram","request",r);const s="/cells/{cell}/programs/plan".replace("{cell}",encodeURIComponent(String(t))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.identifier=a),c["Content-Type"]="text/plain",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(r,l,e),{url:A(o),options:l}},stopAllProgramRunner:async(t,r={})=>{m("stopAllProgramRunner","cell",t);const a="/cells/{cell}/programs/runners/stop".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"POST",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},stopProgramRunner:async(t,r,a={})=>{m("stopProgramRunner","cell",t),m("stopProgramRunner","runner",r);const n="/cells/{cell}/programs/runners/{runner}/stop".replace("{cell}",encodeURIComponent(String(t))).replace("{runner}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}}}},Ht=function(e){const t=jv(e);return{async createProgramRunner(r,a,n){var l,c;const s=await t.createProgramRunner(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.createProgramRunner"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async executeProgram(r,a,n){var l,c;const s=await t.executeProgram(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.executeProgram"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getProgramRunner(r,a,n){var l,c;const s=await t.getProgramRunner(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.getProgramRunner"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listProgramRunners(r,a){var i,l;const n=await t.listProgramRunners(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["ProgramApi.listProgramRunners"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async migrateProgram(r,a,n){var l,c;const s=await t.migrateProgram(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.migrateProgram"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async planProgram(r,a,n,s){var c,d;const o=await t.planProgram(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ProgramApi.planProgram"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async stopAllProgramRunner(r,a){var i,l;const n=await t.stopAllProgramRunner(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["ProgramApi.stopAllProgramRunner"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async stopProgramRunner(r,a,n){var l,c;const s=await t.stopProgramRunner(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramApi.stopProgramRunner"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)}}};class $v extends Ce{createProgramRunner(t,r,a){return Ht(this.configuration).createProgramRunner(t,r,a).then(n=>n(this.axios,this.basePath))}executeProgram(t,r,a){return Ht(this.configuration).executeProgram(t,r,a).then(n=>n(this.axios,this.basePath))}getProgramRunner(t,r,a){return Ht(this.configuration).getProgramRunner(t,r,a).then(n=>n(this.axios,this.basePath))}listProgramRunners(t,r){return Ht(this.configuration).listProgramRunners(t,r).then(a=>a(this.axios,this.basePath))}migrateProgram(t,r,a){return Ht(this.configuration).migrateProgram(t,r,a).then(n=>n(this.axios,this.basePath))}planProgram(t,r,a,n){return Ht(this.configuration).planProgram(t,r,a,n).then(s=>s(this.axios,this.basePath))}stopAllProgramRunner(t,r){return Ht(this.configuration).stopAllProgramRunner(t,r).then(a=>a(this.axios,this.basePath))}stopProgramRunner(t,r,a){return Ht(this.configuration).stopProgramRunner(t,r,a).then(n=>n(this.axios,this.basePath))}}const Uv=function(e){return{clearProgramsValues:async(t,r={})=>{m("clearProgramsValues","cell",t);const a="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"DELETE",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},createProgramsValue:async(t,r,a={})=>{m("createProgramsValue","cell",t),m("createProgramsValue","requestBody",r);const n="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...a},l={},c={};V(i,e),await R(l,e),l["Content-Type"]="application/json",_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},i.data=se(r,i,e),{url:A(s),options:i}},deleteProgramValue:async(t,r,a={})=>{m("deleteProgramValue","cell",t),m("deleteProgramValue","key",r);const n="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getProgramValue:async(t,r,a={})=>{m("getProgramValue","cell",t),m("getProgramValue","key",r);const n="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listProgramsValues:async(t,r={})=>{m("listProgramsValues","cell",t);const a="/cells/{cell}/programs/values".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},updateProgramValue:async(t,r,a,n={})=>{m("updateProgramValue","cell",t),m("updateProgramValue","key",r),m("updateProgramValue","value",a);const s="/cells/{cell}/programs/values/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}}}},jr=function(e){const t=Uv(e);return{async clearProgramsValues(r,a){var i,l;const n=await t.clearProgramsValues(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["ProgramValuesApi.clearProgramsValues"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async createProgramsValue(r,a,n){var l,c;const s=await t.createProgramsValue(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramValuesApi.createProgramsValue"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async deleteProgramValue(r,a,n){var l,c;const s=await t.deleteProgramValue(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramValuesApi.deleteProgramValue"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getProgramValue(r,a,n){var l,c;const s=await t.getProgramValue(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["ProgramValuesApi.getProgramValue"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listProgramsValues(r,a){var i,l;const n=await t.listProgramsValues(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["ProgramValuesApi.listProgramsValues"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async updateProgramValue(r,a,n,s){var c,d;const o=await t.updateProgramValue(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["ProgramValuesApi.updateProgramValue"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)}}};class Lv extends Ce{clearProgramsValues(t,r){return jr(this.configuration).clearProgramsValues(t,r).then(a=>a(this.axios,this.basePath))}createProgramsValue(t,r,a){return jr(this.configuration).createProgramsValue(t,r,a).then(n=>n(this.axios,this.basePath))}deleteProgramValue(t,r,a){return jr(this.configuration).deleteProgramValue(t,r,a).then(n=>n(this.axios,this.basePath))}getProgramValue(t,r,a){return jr(this.configuration).getProgramValue(t,r,a).then(n=>n(this.axios,this.basePath))}listProgramsValues(t,r){return jr(this.configuration).listProgramsValues(t,r).then(a=>a(this.axios,this.basePath))}updateProgramValue(t,r,a,n){return jr(this.configuration).updateProgramValue(t,r,a,n).then(s=>s(this.axios,this.basePath))}}const kv=function(e){return{deleteStoredCollider:async(t,r,a={})=>{m("deleteStoredCollider","cell",t),m("deleteStoredCollider","collider",r);const n="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},deleteStoredCollisionLinkChain:async(t,r,a={})=>{m("deleteStoredCollisionLinkChain","cell",t),m("deleteStoredCollisionLinkChain","linkChain",r);const n="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},deleteStoredCollisionTool:async(t,r,a={})=>{m("deleteStoredCollisionTool","cell",t),m("deleteStoredCollisionTool","tool",r);const n="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getDefaultLinkChain:async(t,r,a={})=>{m("getDefaultLinkChain","cell",t),m("getDefaultLinkChain","motionGroupModel",r);const n="/cells/{cell}/store/collision/default-link-chains/{motion-group-model}".replace("{cell}",encodeURIComponent(String(t))).replace("{motion-group-model}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getStoredCollider:async(t,r,a={})=>{m("getStoredCollider","cell",t),m("getStoredCollider","collider",r);const n="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getStoredCollisionLinkChain:async(t,r,a={})=>{m("getStoredCollisionLinkChain","cell",t),m("getStoredCollisionLinkChain","linkChain",r);const n="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getStoredCollisionTool:async(t,r,a={})=>{m("getStoredCollisionTool","cell",t),m("getStoredCollisionTool","tool",r);const n="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listCollisionLinkChains:async(t,r={})=>{m("listCollisionLinkChains","cell",t);const a="/cells/{cell}/store/collision/link-chains".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},listStoredColliders:async(t,r={})=>{m("listStoredColliders","cell",t);const a="/cells/{cell}/store/collision/colliders".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},listStoredCollisionTools:async(t,r={})=>{m("listStoredCollisionTools","cell",t);const a="/cells/{cell}/store/collision/tools".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},storeCollider:async(t,r,a,n={})=>{m("storeCollider","cell",t),m("storeCollider","collider",r),m("storeCollider","collider2",a);const s="/cells/{cell}/store/collision/colliders/{collider}".replace("{cell}",encodeURIComponent(String(t))).replace("{collider}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}},storeCollisionLinkChain:async(t,r,a,n={})=>{m("storeCollisionLinkChain","cell",t),m("storeCollisionLinkChain","linkChain",r),m("storeCollisionLinkChain","collider",a);const s="/cells/{cell}/store/collision/link-chains/{link-chain}".replace("{cell}",encodeURIComponent(String(t))).replace("{link-chain}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}},storeCollisionTool:async(t,r,a,n={})=>{m("storeCollisionTool","cell",t),m("storeCollisionTool","tool",r),m("storeCollisionTool","requestBody",a);const s="/cells/{cell}/store/collision/tools/{tool}".replace("{cell}",encodeURIComponent(String(t))).replace("{tool}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}}}},tt=function(e){const t=kv(e);return{async deleteStoredCollider(r,a,n){var l,c;const s=await t.deleteStoredCollider(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.deleteStoredCollider"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async deleteStoredCollisionLinkChain(r,a,n){var l,c;const s=await t.deleteStoredCollisionLinkChain(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.deleteStoredCollisionLinkChain"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async deleteStoredCollisionTool(r,a,n){var l,c;const s=await t.deleteStoredCollisionTool(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.deleteStoredCollisionTool"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getDefaultLinkChain(r,a,n){var l,c;const s=await t.getDefaultLinkChain(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getDefaultLinkChain"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getStoredCollider(r,a,n){var l,c;const s=await t.getStoredCollider(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getStoredCollider"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getStoredCollisionLinkChain(r,a,n){var l,c;const s=await t.getStoredCollisionLinkChain(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getStoredCollisionLinkChain"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getStoredCollisionTool(r,a,n){var l,c;const s=await t.getStoredCollisionTool(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionComponentsApi.getStoredCollisionTool"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listCollisionLinkChains(r,a){var i,l;const n=await t.listCollisionLinkChains(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["StoreCollisionComponentsApi.listCollisionLinkChains"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async listStoredColliders(r,a){var i,l;const n=await t.listStoredColliders(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["StoreCollisionComponentsApi.listStoredColliders"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async listStoredCollisionTools(r,a){var i,l;const n=await t.listStoredCollisionTools(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["StoreCollisionComponentsApi.listStoredCollisionTools"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async storeCollider(r,a,n,s){var c,d;const o=await t.storeCollider(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionComponentsApi.storeCollider"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async storeCollisionLinkChain(r,a,n,s){var c,d;const o=await t.storeCollisionLinkChain(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionComponentsApi.storeCollisionLinkChain"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async storeCollisionTool(r,a,n,s){var c,d;const o=await t.storeCollisionTool(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionComponentsApi.storeCollisionTool"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)}}};class Bv extends Ce{deleteStoredCollider(t,r,a){return tt(this.configuration).deleteStoredCollider(t,r,a).then(n=>n(this.axios,this.basePath))}deleteStoredCollisionLinkChain(t,r,a){return tt(this.configuration).deleteStoredCollisionLinkChain(t,r,a).then(n=>n(this.axios,this.basePath))}deleteStoredCollisionTool(t,r,a){return tt(this.configuration).deleteStoredCollisionTool(t,r,a).then(n=>n(this.axios,this.basePath))}getDefaultLinkChain(t,r,a){return tt(this.configuration).getDefaultLinkChain(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollider(t,r,a){return tt(this.configuration).getStoredCollider(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollisionLinkChain(t,r,a){return tt(this.configuration).getStoredCollisionLinkChain(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollisionTool(t,r,a){return tt(this.configuration).getStoredCollisionTool(t,r,a).then(n=>n(this.axios,this.basePath))}listCollisionLinkChains(t,r){return tt(this.configuration).listCollisionLinkChains(t,r).then(a=>a(this.axios,this.basePath))}listStoredColliders(t,r){return tt(this.configuration).listStoredColliders(t,r).then(a=>a(this.axios,this.basePath))}listStoredCollisionTools(t,r){return tt(this.configuration).listStoredCollisionTools(t,r).then(a=>a(this.axios,this.basePath))}storeCollider(t,r,a,n){return tt(this.configuration).storeCollider(t,r,a,n).then(s=>s(this.axios,this.basePath))}storeCollisionLinkChain(t,r,a,n){return tt(this.configuration).storeCollisionLinkChain(t,r,a,n).then(s=>s(this.axios,this.basePath))}storeCollisionTool(t,r,a,n){return tt(this.configuration).storeCollisionTool(t,r,a,n).then(s=>s(this.axios,this.basePath))}}const Fv=function(e){return{deleteStoredCollisionScene:async(t,r,a={})=>{m("deleteStoredCollisionScene","cell",t),m("deleteStoredCollisionScene","scene",r);const n="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getStoredCollisionScene:async(t,r,a={})=>{m("getStoredCollisionScene","cell",t),m("getStoredCollisionScene","scene",r);const n="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listStoredCollisionScenes:async(t,r={})=>{m("listStoredCollisionScenes","cell",t);const a="/cells/{cell}/store/collision/scenes".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},storeCollisionScene:async(t,r,a,n={})=>{m("storeCollisionScene","cell",t),m("storeCollisionScene","scene",r),m("storeCollisionScene","collisionSceneAssembly",a);const s="/cells/{cell}/store/collision/scenes/{scene}".replace("{cell}",encodeURIComponent(String(t))).replace("{scene}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}}}},en=function(e){const t=Fv(e);return{async deleteStoredCollisionScene(r,a,n){var l,c;const s=await t.deleteStoredCollisionScene(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionScenesApi.deleteStoredCollisionScene"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getStoredCollisionScene(r,a,n){var l,c;const s=await t.getStoredCollisionScene(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreCollisionScenesApi.getStoredCollisionScene"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listStoredCollisionScenes(r,a){var i,l;const n=await t.listStoredCollisionScenes(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["StoreCollisionScenesApi.listStoredCollisionScenes"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async storeCollisionScene(r,a,n,s){var c,d;const o=await t.storeCollisionScene(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["StoreCollisionScenesApi.storeCollisionScene"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)}}};class Nv extends Ce{deleteStoredCollisionScene(t,r,a){return en(this.configuration).deleteStoredCollisionScene(t,r,a).then(n=>n(this.axios,this.basePath))}getStoredCollisionScene(t,r,a){return en(this.configuration).getStoredCollisionScene(t,r,a).then(n=>n(this.axios,this.basePath))}listStoredCollisionScenes(t,r){return en(this.configuration).listStoredCollisionScenes(t,r).then(a=>a(this.axios,this.basePath))}storeCollisionScene(t,r,a,n){return en(this.configuration).storeCollisionScene(t,r,a,n).then(s=>s(this.axios,this.basePath))}}const Dv=function(e){return{clearAllObjects:async(t,r={})=>{m("clearAllObjects","cell",t);const a="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"DELETE",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},deleteObject:async(t,r,a={})=>{m("deleteObject","cell",t),m("deleteObject","key",r);const n="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getObject:async(t,r,a={})=>{m("getObject","cell",t),m("getObject","key",r);const n="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getObjectMetadata:async(t,r,a={})=>{m("getObjectMetadata","cell",t),m("getObjectMetadata","key",r);const n="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"HEAD",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listAllObjectKeys:async(t,r={})=>{m("listAllObjectKeys","cell",t);const a="/cells/{cell}/store/objects".replace("{cell}",encodeURIComponent(String(t))),n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},storeObject:async(t,r,a,n,s={})=>{m("storeObject","cell",t),m("storeObject","key",r);const o="/cells/{cell}/store/objects/{key}".replace("{cell}",encodeURIComponent(String(t))).replace("{key}",encodeURIComponent(String(r))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...s},d={},u={},p=new(e&&e.formDataCtor||FormData);V(c,e),await R(d,e),n!==void 0&&p.append("AnyValue",new Blob([JSON.stringify(n)],{type:"application/json"})),d["Content-Type"]="multipart/form-data",a!=null&&(d["X-Metadata"]=typeof a=="string"?a:JSON.stringify(a)),_(i,u);let f=l&&l.headers?l.headers:{};return c.headers={...d,...f,...s.headers},c.data=p,{url:A(i),options:c}}}},$r=function(e){const t=Dv(e);return{async clearAllObjects(r,a){var i,l;const n=await t.clearAllObjects(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["StoreObjectApi.clearAllObjects"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async deleteObject(r,a,n){var l,c;const s=await t.deleteObject(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreObjectApi.deleteObject"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getObject(r,a,n){var l,c;const s=await t.getObject(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreObjectApi.getObject"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getObjectMetadata(r,a,n){var l,c;const s=await t.getObjectMetadata(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["StoreObjectApi.getObjectMetadata"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listAllObjectKeys(r,a){var i,l;const n=await t.listAllObjectKeys(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["StoreObjectApi.listAllObjectKeys"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async storeObject(r,a,n,s,o){var d,u;const i=await t.storeObject(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["StoreObjectApi.storeObject"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class zv extends Ce{clearAllObjects(t,r){return $r(this.configuration).clearAllObjects(t,r).then(a=>a(this.axios,this.basePath))}deleteObject(t,r,a){return $r(this.configuration).deleteObject(t,r,a).then(n=>n(this.axios,this.basePath))}getObject(t,r,a){return $r(this.configuration).getObject(t,r,a).then(n=>n(this.axios,this.basePath))}getObjectMetadata(t,r,a){return $r(this.configuration).getObjectMetadata(t,r,a).then(n=>n(this.axios,this.basePath))}listAllObjectKeys(t,r){return $r(this.configuration).listAllObjectKeys(t,r).then(a=>a(this.axios,this.basePath))}storeObject(t,r,a,n,s){return $r(this.configuration).storeObject(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}}const Gv=function(e){return{checkNovaVersionUpdate:async(t,r={})=>{m("checkNovaVersionUpdate","channel",t);const a="/system/update",n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"GET",...s,...r},i={},l={};V(o,e),await R(i,e),t!==void 0&&(l.channel=t),_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},{url:A(n),options:o}},getDiagnosePackage:async(t={})=>{const r="/system/diagnosis-package/zip",a=new URL(r,P);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},o={},i={};V(s,e),await R(o,e),_(a,i);let l=n&&n.headers?n.headers:{};return s.headers={...o,...l,...t.headers},{url:A(a),options:s}},getSystemStatus:async(t={})=>{const r="/system/status",a=new URL(r,P);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},o={},i={};V(s,e),await R(o,e),_(a,i);let l=n&&n.headers?n.headers:{};return s.headers={...o,...l,...t.headers},{url:A(a),options:s}},getSystemVersion:async(t={})=>{const r="/system/version",a=new URL(r,P);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},o={},i={};V(s,e),await R(o,e),_(a,i);let l=n&&n.headers?n.headers:{};return s.headers={...o,...l,...t.headers},{url:A(a),options:s}},updateNovaVersion:async(t,r={})=>{m("updateNovaVersion","updateNovaVersionRequest",t);const a="/system/update",n=new URL(a,P);let s;e&&(s=e.baseOptions);const o={method:"PUT",...s,...r},i={},l={};V(o,e),await R(i,e),i["Content-Type"]="application/json",_(n,l);let c=s&&s.headers?s.headers:{};return o.headers={...i,...c,...r.headers},o.data=se(t,o,e),{url:A(n),options:o}}}},va=function(e){const t=Gv(e);return{async checkNovaVersionUpdate(r,a){var i,l;const n=await t.checkNovaVersionUpdate(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["SystemApi.checkNovaVersionUpdate"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)},async getDiagnosePackage(r){var o,i;const a=await t.getDiagnosePackage(r),n=(e==null?void 0:e.serverIndex)??0,s=(i=(o=C["SystemApi.getDiagnosePackage"])==null?void 0:o[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,s||c)},async getSystemStatus(r){var o,i;const a=await t.getSystemStatus(r),n=(e==null?void 0:e.serverIndex)??0,s=(i=(o=C["SystemApi.getSystemStatus"])==null?void 0:o[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,s||c)},async getSystemVersion(r){var o,i;const a=await t.getSystemVersion(r),n=(e==null?void 0:e.serverIndex)??0,s=(i=(o=C["SystemApi.getSystemVersion"])==null?void 0:o[n])==null?void 0:i.url;return(l,c)=>T(a,O,w,e)(l,s||c)},async updateNovaVersion(r,a){var i,l;const n=await t.updateNovaVersion(r,a),s=(e==null?void 0:e.serverIndex)??0,o=(l=(i=C["SystemApi.updateNovaVersion"])==null?void 0:i[s])==null?void 0:l.url;return(c,d)=>T(n,O,w,e)(c,o||d)}}};class Hv extends Ce{checkNovaVersionUpdate(t,r){return va(this.configuration).checkNovaVersionUpdate(t,r).then(a=>a(this.axios,this.basePath))}getDiagnosePackage(t){return va(this.configuration).getDiagnosePackage(t).then(r=>r(this.axios,this.basePath))}getSystemStatus(t){return va(this.configuration).getSystemStatus(t).then(r=>r(this.axios,this.basePath))}getSystemVersion(t){return va(this.configuration).getSystemVersion(t).then(r=>r(this.axios,this.basePath))}updateNovaVersion(t,r){return va(this.configuration).updateNovaVersion(t,r).then(a=>a(this.axios,this.basePath))}}const qv=function(e){return{getMotionGroupState:async(t,r,a,n={})=>{m("getMotionGroupState","cell",t),m("getMotionGroupState","controller",r),m("getMotionGroupState","id",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},getMotionGroups:async(t,r,a={})=>{m("getMotionGroups","cell",t),m("getMotionGroups","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/motiongroups".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getVirtualRobotIOValue:async(t,r,a,n={})=>{m("getVirtualRobotIOValue","cell",t),m("getVirtualRobotIOValue","controller",r),m("getVirtualRobotIOValue","io",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(a))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},listIOs:async(t,r,a={})=>{m("listIOs","cell",t),m("listIOs","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/ios".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},setMotionGroupState:async(t,r,a,n,s={})=>{m("setMotionGroupState","cell",t),m("setMotionGroupState","controller",r),m("setMotionGroupState","id",a),m("setMotionGroupState","motionGroupJoints",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...s},d={},u={};V(c,e),await R(d,e),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},c.data=se(n,c,e),{url:A(i),options:c}},setVirtualRobotIOValue:async(t,r,a,n,s,o,i={})=>{m("setVirtualRobotIOValue","cell",t),m("setVirtualRobotIOValue","controller",r),m("setVirtualRobotIOValue","io",a);const l="/cells/{cell}/controllers/{controller}/teach-pendant/ios/{io}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{io}",encodeURIComponent(String(a))),c=new URL(l,P);let d;e&&(d=e.baseOptions);const u={method:"PUT",...d,...i},p={},f={};V(u,e),await R(p,e),n!==void 0&&(f.bool=n),s!==void 0&&(f.integer=s),o!==void 0&&(f.double=o),_(c,f);let y=d&&d.headers?d.headers:{};return u.headers={...p,...y,...i.headers},{url:A(c),options:u}}}},Ur=function(e){const t=qv(e);return{async getMotionGroupState(r,a,n,s){var c,d;const o=await t.getMotionGroupState(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotApi.getMotionGroupState"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async getMotionGroups(r,a,n){var l,c;const s=await t.getMotionGroups(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotApi.getMotionGroups"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getVirtualRobotIOValue(r,a,n,s){var c,d;const o=await t.getVirtualRobotIOValue(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotApi.getVirtualRobotIOValue"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async listIOs(r,a,n){var l,c;const s=await t.listIOs(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotApi.listIOs"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async setMotionGroupState(r,a,n,s,o){var d,u;const i=await t.setMotionGroupState(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotApi.setMotionGroupState"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async setVirtualRobotIOValue(r,a,n,s,o,i,l){var p,f;const c=await t.setVirtualRobotIOValue(r,a,n,s,o,i,l),d=(e==null?void 0:e.serverIndex)??0,u=(f=(p=C["VirtualRobotApi.setVirtualRobotIOValue"])==null?void 0:p[d])==null?void 0:f.url;return(y,h)=>T(c,O,w,e)(y,u||h)}}};class Jv extends Ce{getMotionGroupState(t,r,a,n){return Ur(this.configuration).getMotionGroupState(t,r,a,n).then(s=>s(this.axios,this.basePath))}getMotionGroups(t,r,a){return Ur(this.configuration).getMotionGroups(t,r,a).then(n=>n(this.axios,this.basePath))}getVirtualRobotIOValue(t,r,a,n){return Ur(this.configuration).getVirtualRobotIOValue(t,r,a,n).then(s=>s(this.axios,this.basePath))}listIOs(t,r,a){return Ur(this.configuration).listIOs(t,r,a).then(n=>n(this.axios,this.basePath))}setMotionGroupState(t,r,a,n,s){return Ur(this.configuration).setMotionGroupState(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}setVirtualRobotIOValue(t,r,a,n,s,o,i){return Ur(this.configuration).setVirtualRobotIOValue(t,r,a,n,s,o,i).then(l=>l(this.axios,this.basePath))}}const Wv=function(e){return{externalJointsStream:async(t,r,a,n={})=>{m("externalJointsStream","cell",t),m("externalJointsStream","controller",r),m("externalJointsStream","externalJointStreamDatapoint",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/externalJointsStream".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}},getMotionGroupBehavior:async(t,r,a,n={})=>{m("getMotionGroupBehavior","cell",t),m("getMotionGroupBehavior","controller",r),m("getMotionGroupBehavior","id",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},setMotionGroupBehavior:async(t,r,a,n,s={})=>{m("setMotionGroupBehavior","cell",t),m("setMotionGroupBehavior","controller",r),m("setMotionGroupBehavior","id",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/behavior".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...s},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.behavior=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},{url:A(i),options:c}}}},Rs=function(e){const t=Wv(e);return{async externalJointsStream(r,a,n,s){var c,d;const o=await t.externalJointsStream(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotBehaviorApi.externalJointsStream"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async getMotionGroupBehavior(r,a,n,s){var c,d;const o=await t.getMotionGroupBehavior(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotBehaviorApi.getMotionGroupBehavior"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async setMotionGroupBehavior(r,a,n,s,o){var d,u;const i=await t.setMotionGroupBehavior(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotBehaviorApi.setMotionGroupBehavior"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class Qv extends Ce{externalJointsStream(t,r,a,n){return Rs(this.configuration).externalJointsStream(t,r,a,n).then(s=>s(this.axios,this.basePath))}getMotionGroupBehavior(t,r,a,n){return Rs(this.configuration).getMotionGroupBehavior(t,r,a,n).then(s=>s(this.axios,this.basePath))}setMotionGroupBehavior(t,r,a,n,s){return Rs(this.configuration).setMotionGroupBehavior(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}}const Kv=function(e){return{getCycleTime:async(t,r,a={})=>{m("getCycleTime","cell",t),m("getCycleTime","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/cycle-time".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getEStop:async(t,r,a={})=>{m("getEStop","cell",t),m("getEStop","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/estop".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},getOperationMode:async(t,r,a={})=>{m("getOperationMode","cell",t),m("getOperationMode","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},pushEStop:async(t,r,a={})=>{m("pushEStop","cell",t),m("pushEStop","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/estop/push".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},releaseEStop:async(t,r,a={})=>{m("releaseEStop","cell",t),m("releaseEStop","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/estop/release".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},setOperationMode:async(t,r,a,n={})=>{m("setOperationMode","cell",t),m("setOperationMode","controller",r),m("setOperationMode","mode",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/operationmode".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),a!==void 0&&(d.mode=a),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}}}},Lr=function(e){const t=Kv(e);return{async getCycleTime(r,a,n){var l,c;const s=await t.getCycleTime(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.getCycleTime"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getEStop(r,a,n){var l,c;const s=await t.getEStop(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.getEStop"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async getOperationMode(r,a,n){var l,c;const s=await t.getOperationMode(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.getOperationMode"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async pushEStop(r,a,n){var l,c;const s=await t.pushEStop(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.pushEStop"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async releaseEStop(r,a,n){var l,c;const s=await t.releaseEStop(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotModeApi.releaseEStop"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async setOperationMode(r,a,n,s){var c,d;const o=await t.setOperationMode(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotModeApi.setOperationMode"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)}}};class Yv extends Ce{getCycleTime(t,r,a){return Lr(this.configuration).getCycleTime(t,r,a).then(n=>n(this.axios,this.basePath))}getEStop(t,r,a){return Lr(this.configuration).getEStop(t,r,a).then(n=>n(this.axios,this.basePath))}getOperationMode(t,r,a){return Lr(this.configuration).getOperationMode(t,r,a).then(n=>n(this.axios,this.basePath))}pushEStop(t,r,a){return Lr(this.configuration).pushEStop(t,r,a).then(n=>n(this.axios,this.basePath))}releaseEStop(t,r,a){return Lr(this.configuration).releaseEStop(t,r,a).then(n=>n(this.axios,this.basePath))}setOperationMode(t,r,a,n){return Lr(this.configuration).setOperationMode(t,r,a,n).then(s=>s(this.axios,this.basePath))}}const Xv=function(e){return{addVirtualRobotCoordinateSystem:async(t,r,a,n={})=>{m("addVirtualRobotCoordinateSystem","cell",t),m("addVirtualRobotCoordinateSystem","controller",r),m("addVirtualRobotCoordinateSystem","coordinateSystem",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...n},c={},d={};V(l,e),await R(c,e),c["Content-Type"]="application/json",_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},l.data=se(a,l,e),{url:A(o),options:l}},addVirtualRobotTcp:async(t,r,a,n,s={})=>{m("addVirtualRobotTcp","cell",t),m("addVirtualRobotTcp","controller",r),m("addVirtualRobotTcp","id",a),m("addVirtualRobotTcp","robotTcp",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...s},d={},u={};V(c,e),await R(d,e),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},c.data=se(n,c,e),{url:A(i),options:c}},deleteVirtualRobotCoordinateSystem:async(t,r,a,n,s={})=>{m("deleteVirtualRobotCoordinateSystem","cell",t),m("deleteVirtualRobotCoordinateSystem","controller",r),m("deleteVirtualRobotCoordinateSystem","coordinateSystem",a);const o="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems/{coordinate-system}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{coordinate-system}",encodeURIComponent(String(a))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...s},d={},u={};V(c,e),await R(d,e),n!==void 0&&(u.delete_dependent=n),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},{url:A(i),options:c}},deleteVirtualRobotTcp:async(t,r,a,n,s={})=>{m("deleteVirtualRobotTcp","cell",t),m("deleteVirtualRobotTcp","controller",r),m("deleteVirtualRobotTcp","id",a),m("deleteVirtualRobotTcp","tcp",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps/{tcp}".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))).replace("{tcp}",encodeURIComponent(String(n))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"DELETE",...l,...s},d={},u={};V(c,e),await R(d,e),_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},{url:A(i),options:c}},getVirtualRobotMounting:async(t,r,a,n={})=>{m("getVirtualRobotMounting","cell",t),m("getVirtualRobotMounting","controller",r),m("getVirtualRobotMounting","id",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},listVirtualRobotCoordinateSystems:async(t,r,a={})=>{m("listVirtualRobotCoordinateSystems","cell",t),m("listVirtualRobotCoordinateSystems","controller",r);const n="/cells/{cell}/controllers/{controller}/teach-pendant/coordinate-systems".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))),s=new URL(n,P);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...a},l={},c={};V(i,e),await R(l,e),_(s,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...a.headers},{url:A(s),options:i}},listVirtualRobotTcps:async(t,r,a,n={})=>{m("listVirtualRobotTcps","cell",t),m("listVirtualRobotTcps","controller",r),m("listVirtualRobotTcps","id",a);const s="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/tcps".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),o=new URL(s,P);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},c={},d={};V(l,e),await R(c,e),_(o,d);let u=i&&i.headers?i.headers:{};return l.headers={...c,...u,...n.headers},{url:A(o),options:l}},setVirtualRobotMounting:async(t,r,a,n,s={})=>{m("setVirtualRobotMounting","cell",t),m("setVirtualRobotMounting","controller",r),m("setVirtualRobotMounting","id",a),m("setVirtualRobotMounting","coordinateSystem",n);const o="/cells/{cell}/controllers/{controller}/teach-pendant/motion-groups/{id}/mounting".replace("{cell}",encodeURIComponent(String(t))).replace("{controller}",encodeURIComponent(String(r))).replace("{id}",encodeURIComponent(String(a))),i=new URL(o,P);let l;e&&(l=e.baseOptions);const c={method:"PUT",...l,...s},d={},u={};V(c,e),await R(d,e),d["Content-Type"]="application/json",_(i,u);let p=l&&l.headers?l.headers:{};return c.headers={...d,...p,...s.headers},c.data=se(n,c,e),{url:A(i),options:c}}}},qt=function(e){const t=Xv(e);return{async addVirtualRobotCoordinateSystem(r,a,n,s){var c,d;const o=await t.addVirtualRobotCoordinateSystem(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotSetupApi.addVirtualRobotCoordinateSystem"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async addVirtualRobotTcp(r,a,n,s,o){var d,u;const i=await t.addVirtualRobotTcp(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.addVirtualRobotTcp"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async deleteVirtualRobotCoordinateSystem(r,a,n,s,o){var d,u;const i=await t.deleteVirtualRobotCoordinateSystem(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.deleteVirtualRobotCoordinateSystem"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async deleteVirtualRobotTcp(r,a,n,s,o){var d,u;const i=await t.deleteVirtualRobotTcp(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.deleteVirtualRobotTcp"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)},async getVirtualRobotMounting(r,a,n,s){var c,d;const o=await t.getVirtualRobotMounting(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotSetupApi.getVirtualRobotMounting"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async listVirtualRobotCoordinateSystems(r,a,n){var l,c;const s=await t.listVirtualRobotCoordinateSystems(r,a,n),o=(e==null?void 0:e.serverIndex)??0,i=(c=(l=C["VirtualRobotSetupApi.listVirtualRobotCoordinateSystems"])==null?void 0:l[o])==null?void 0:c.url;return(d,u)=>T(s,O,w,e)(d,i||u)},async listVirtualRobotTcps(r,a,n,s){var c,d;const o=await t.listVirtualRobotTcps(r,a,n,s),i=(e==null?void 0:e.serverIndex)??0,l=(d=(c=C["VirtualRobotSetupApi.listVirtualRobotTcps"])==null?void 0:c[i])==null?void 0:d.url;return(u,p)=>T(o,O,w,e)(u,l||p)},async setVirtualRobotMounting(r,a,n,s,o){var d,u;const i=await t.setVirtualRobotMounting(r,a,n,s,o),l=(e==null?void 0:e.serverIndex)??0,c=(u=(d=C["VirtualRobotSetupApi.setVirtualRobotMounting"])==null?void 0:d[l])==null?void 0:u.url;return(p,f)=>T(i,O,w,e)(p,c||f)}}};class Zv extends Ce{addVirtualRobotCoordinateSystem(t,r,a,n){return qt(this.configuration).addVirtualRobotCoordinateSystem(t,r,a,n).then(s=>s(this.axios,this.basePath))}addVirtualRobotTcp(t,r,a,n,s){return qt(this.configuration).addVirtualRobotTcp(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}deleteVirtualRobotCoordinateSystem(t,r,a,n,s){return qt(this.configuration).deleteVirtualRobotCoordinateSystem(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}deleteVirtualRobotTcp(t,r,a,n,s){return qt(this.configuration).deleteVirtualRobotTcp(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}getVirtualRobotMounting(t,r,a,n){return qt(this.configuration).getVirtualRobotMounting(t,r,a,n).then(s=>s(this.axios,this.basePath))}listVirtualRobotCoordinateSystems(t,r,a){return qt(this.configuration).listVirtualRobotCoordinateSystems(t,r,a).then(n=>n(this.axios,this.basePath))}listVirtualRobotTcps(t,r,a,n){return qt(this.configuration).listVirtualRobotTcps(t,r,a,n).then(s=>s(this.axios,this.basePath))}setVirtualRobotMounting(t,r,a,n,s){return qt(this.configuration).setVirtualRobotMounting(t,r,a,n,s).then(o=>o(this.axios,this.basePath))}}function Mt(e,t,r){return Math.max(t,Math.min(r,e))}class ex{constructor(t=0,r=0,a=0,n=1){this.isQuaternion=!0,this._x=t,this._y=r,this._z=a,this._w=n}static slerpFlat(t,r,a,n,s,o,i){let l=a[n+0],c=a[n+1],d=a[n+2],u=a[n+3];const p=s[o+0],f=s[o+1],y=s[o+2],h=s[o+3];if(i===0){t[r+0]=l,t[r+1]=c,t[r+2]=d,t[r+3]=u;return}if(i===1){t[r+0]=p,t[r+1]=f,t[r+2]=y,t[r+3]=h;return}if(u!==h||l!==p||c!==f||d!==y){let x=1-i;const E=l*p+c*f+d*y+u*h,k=E>=0?1:-1,D=1-E*E;if(D>Number.EPSILON){const F=Math.sqrt(D),q=Math.atan2(F,E*k);x=Math.sin(x*q)/F,i=Math.sin(i*q)/F}const I=i*k;if(l=l*x+p*I,c=c*x+f*I,d=d*x+y*I,u=u*x+h*I,x===1-i){const F=1/Math.sqrt(l*l+c*c+d*d+u*u);l*=F,c*=F,d*=F,u*=F}}t[r]=l,t[r+1]=c,t[r+2]=d,t[r+3]=u}static multiplyQuaternionsFlat(t,r,a,n,s,o){const i=a[n],l=a[n+1],c=a[n+2],d=a[n+3],u=s[o],p=s[o+1],f=s[o+2],y=s[o+3];return t[r]=i*y+d*u+l*f-c*p,t[r+1]=l*y+d*p+c*u-i*f,t[r+2]=c*y+d*f+i*p-l*u,t[r+3]=d*y-i*u-l*p-c*f,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,r,a,n){return this._x=t,this._y=r,this._z=a,this._w=n,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,r=!0){const a=t._x,n=t._y,s=t._z,o=t._order,i=Math.cos,l=Math.sin,c=i(a/2),d=i(n/2),u=i(s/2),p=l(a/2),f=l(n/2),y=l(s/2);switch(o){case"XYZ":this._x=p*d*u+c*f*y,this._y=c*f*u-p*d*y,this._z=c*d*y+p*f*u,this._w=c*d*u-p*f*y;break;case"YXZ":this._x=p*d*u+c*f*y,this._y=c*f*u-p*d*y,this._z=c*d*y-p*f*u,this._w=c*d*u+p*f*y;break;case"ZXY":this._x=p*d*u-c*f*y,this._y=c*f*u+p*d*y,this._z=c*d*y+p*f*u,this._w=c*d*u-p*f*y;break;case"ZYX":this._x=p*d*u-c*f*y,this._y=c*f*u+p*d*y,this._z=c*d*y-p*f*u,this._w=c*d*u+p*f*y;break;case"YZX":this._x=p*d*u+c*f*y,this._y=c*f*u+p*d*y,this._z=c*d*y-p*f*u,this._w=c*d*u-p*f*y;break;case"XZY":this._x=p*d*u-c*f*y,this._y=c*f*u-p*d*y,this._z=c*d*y+p*f*u,this._w=c*d*u+p*f*y;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return r===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,r){const a=r/2,n=Math.sin(a);return this._x=t.x*n,this._y=t.y*n,this._z=t.z*n,this._w=Math.cos(a),this._onChangeCallback(),this}setFromRotationMatrix(t){const r=t.elements,a=r[0],n=r[4],s=r[8],o=r[1],i=r[5],l=r[9],c=r[2],d=r[6],u=r[10],p=a+i+u;if(p>0){const f=.5/Math.sqrt(p+1);this._w=.25/f,this._x=(d-l)*f,this._y=(s-c)*f,this._z=(o-n)*f}else if(a>i&&a>u){const f=2*Math.sqrt(1+a-i-u);this._w=(d-l)/f,this._x=.25*f,this._y=(n+o)/f,this._z=(s+c)/f}else if(i>u){const f=2*Math.sqrt(1+i-a-u);this._w=(s-c)/f,this._x=(n+o)/f,this._y=.25*f,this._z=(l+d)/f}else{const f=2*Math.sqrt(1+u-a-i);this._w=(o-n)/f,this._x=(s+c)/f,this._y=(l+d)/f,this._z=.25*f}return this._onChangeCallback(),this}setFromUnitVectors(t,r){let a=t.dot(r)+1;return a<Number.EPSILON?(a=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=a):(this._x=0,this._y=-t.z,this._z=t.y,this._w=a)):(this._x=t.y*r.z-t.z*r.y,this._y=t.z*r.x-t.x*r.z,this._z=t.x*r.y-t.y*r.x,this._w=a),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Mt(this.dot(t),-1,1)))}rotateTowards(t,r){const a=this.angleTo(t);if(a===0)return this;const n=Math.min(1,r/a);return this.slerp(t,n),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,r){const a=t._x,n=t._y,s=t._z,o=t._w,i=r._x,l=r._y,c=r._z,d=r._w;return this._x=a*d+o*i+n*c-s*l,this._y=n*d+o*l+s*i-a*c,this._z=s*d+o*c+a*l-n*i,this._w=o*d-a*i-n*l-s*c,this._onChangeCallback(),this}slerp(t,r){if(r===0)return this;if(r===1)return this.copy(t);const a=this._x,n=this._y,s=this._z,o=this._w;let i=o*t._w+a*t._x+n*t._y+s*t._z;if(i<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,i=-i):this.copy(t),i>=1)return this._w=o,this._x=a,this._y=n,this._z=s,this;const l=1-i*i;if(l<=Number.EPSILON){const f=1-r;return this._w=f*o+r*this._w,this._x=f*a+r*this._x,this._y=f*n+r*this._y,this._z=f*s+r*this._z,this.normalize(),this}const c=Math.sqrt(l),d=Math.atan2(c,i),u=Math.sin((1-r)*d)/c,p=Math.sin(r*d)/c;return this._w=o*u+this._w*p,this._x=a*u+this._x*p,this._y=n*u+this._y*p,this._z=s*u+this._z*p,this._onChangeCallback(),this}slerpQuaternions(t,r,a){return this.copy(t).slerp(r,a)}random(){const t=2*Math.PI*Math.random(),r=2*Math.PI*Math.random(),a=Math.random(),n=Math.sqrt(1-a),s=Math.sqrt(a);return this.set(n*Math.sin(t),n*Math.cos(t),s*Math.sin(r),s*Math.cos(r))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,r=0){return this._x=t[r],this._y=t[r+1],this._z=t[r+2],this._w=t[r+3],this._onChangeCallback(),this}toArray(t=[],r=0){return t[r]=this._x,t[r+1]=this._y,t[r+2]=this._z,t[r+3]=this._w,t}fromBufferAttribute(t,r){return this._x=t.getX(r),this._y=t.getY(r),this._z=t.getZ(r),this._w=t.getW(r),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class Gr{constructor(t=0,r=0,a=0){Gr.prototype.isVector3=!0,this.x=t,this.y=r,this.z=a}set(t,r,a){return a===void 0&&(a=this.z),this.x=t,this.y=r,this.z=a,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,r){switch(t){case 0:this.x=r;break;case 1:this.y=r;break;case 2:this.z=r;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,r){return this.x=t.x+r.x,this.y=t.y+r.y,this.z=t.z+r.z,this}addScaledVector(t,r){return this.x+=t.x*r,this.y+=t.y*r,this.z+=t.z*r,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,r){return this.x=t.x-r.x,this.y=t.y-r.y,this.z=t.z-r.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,r){return this.x=t.x*r.x,this.y=t.y*r.y,this.z=t.z*r.z,this}applyEuler(t){return this.applyQuaternion(rl.setFromEuler(t))}applyAxisAngle(t,r){return this.applyQuaternion(rl.setFromAxisAngle(t,r))}applyMatrix3(t){const r=this.x,a=this.y,n=this.z,s=t.elements;return this.x=s[0]*r+s[3]*a+s[6]*n,this.y=s[1]*r+s[4]*a+s[7]*n,this.z=s[2]*r+s[5]*a+s[8]*n,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const r=this.x,a=this.y,n=this.z,s=t.elements,o=1/(s[3]*r+s[7]*a+s[11]*n+s[15]);return this.x=(s[0]*r+s[4]*a+s[8]*n+s[12])*o,this.y=(s[1]*r+s[5]*a+s[9]*n+s[13])*o,this.z=(s[2]*r+s[6]*a+s[10]*n+s[14])*o,this}applyQuaternion(t){const r=this.x,a=this.y,n=this.z,s=t.x,o=t.y,i=t.z,l=t.w,c=2*(o*n-i*a),d=2*(i*r-s*n),u=2*(s*a-o*r);return this.x=r+l*c+o*u-i*d,this.y=a+l*d+i*c-s*u,this.z=n+l*u+s*d-o*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const r=this.x,a=this.y,n=this.z,s=t.elements;return this.x=s[0]*r+s[4]*a+s[8]*n,this.y=s[1]*r+s[5]*a+s[9]*n,this.z=s[2]*r+s[6]*a+s[10]*n,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,r){return this.x=Mt(this.x,t.x,r.x),this.y=Mt(this.y,t.y,r.y),this.z=Mt(this.z,t.z,r.z),this}clampScalar(t,r){return this.x=Mt(this.x,t,r),this.y=Mt(this.y,t,r),this.z=Mt(this.z,t,r),this}clampLength(t,r){const a=this.length();return this.divideScalar(a||1).multiplyScalar(Mt(a,t,r))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,r){return this.x+=(t.x-this.x)*r,this.y+=(t.y-this.y)*r,this.z+=(t.z-this.z)*r,this}lerpVectors(t,r,a){return this.x=t.x+(r.x-t.x)*a,this.y=t.y+(r.y-t.y)*a,this.z=t.z+(r.z-t.z)*a,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,r){const a=t.x,n=t.y,s=t.z,o=r.x,i=r.y,l=r.z;return this.x=n*l-s*i,this.y=s*o-a*l,this.z=a*i-n*o,this}projectOnVector(t){const r=t.lengthSq();if(r===0)return this.set(0,0,0);const a=t.dot(this)/r;return this.copy(t).multiplyScalar(a)}projectOnPlane(t){return _s.copy(this).projectOnVector(t),this.sub(_s)}reflect(t){return this.sub(_s.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const r=Math.sqrt(this.lengthSq()*t.lengthSq());if(r===0)return Math.PI/2;const a=this.dot(t)/r;return Math.acos(Mt(a,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const r=this.x-t.x,a=this.y-t.y,n=this.z-t.z;return r*r+a*a+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,r,a){const n=Math.sin(r)*t;return this.x=n*Math.sin(a),this.y=Math.cos(r)*t,this.z=n*Math.cos(a),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,r,a){return this.x=t*Math.sin(r),this.y=a,this.z=t*Math.cos(r),this}setFromMatrixPosition(t){const r=t.elements;return this.x=r[12],this.y=r[13],this.z=r[14],this}setFromMatrixScale(t){const r=this.setFromMatrixColumn(t,0).length(),a=this.setFromMatrixColumn(t,1).length(),n=this.setFromMatrixColumn(t,2).length();return this.x=r,this.y=a,this.z=n,this}setFromMatrixColumn(t,r){return this.fromArray(t.elements,r*4)}setFromMatrix3Column(t,r){return this.fromArray(t.elements,r*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,r=0){return this.x=t[r],this.y=t[r+1],this.z=t[r+2],this}toArray(t=[],r=0){return t[r]=this.x,t[r+1]=this.y,t[r+2]=this.z,t}fromBufferAttribute(t,r){return this.x=t.getX(r),this.y=t.getY(r),this.z=t.getZ(r),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=Math.random()*Math.PI*2,r=Math.random()*2-1,a=Math.sqrt(1-r*r);return this.x=a*Math.cos(t),this.y=r,this.z=a*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const _s=new Gr,rl=new ex;function tx(e){var t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a<e.length;a++){var n=e[a];if(typeof n!="string")throw new TypeError("Url must be a string. Received "+n);n!==""&&(a>0&&(n=n.replace(/^[\/]+/,"")),a<e.length-1?n=n.replace(/[\/]+$/,""):n=n.replace(/[\/]+$/,"/"),t.push(n))}var s=t.join("/");s=s.replace(/\/(\?|&|#[^!])/g,"$1");var o=s.split("?");return s=o.shift()+(o.length>0?"?":"")+o.join("&"),s}function As(){var e;return typeof arguments[0]=="object"?e=arguments[0]:e=[].slice.call(arguments),tx(e)}var xt={},al;function rx(){if(al)return xt;al=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.TokenData=void 0,xt.parse=u,xt.compile=p,xt.match=h,xt.pathToRegexp=x,xt.stringify=I;const e="/",t=M=>M,r=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u,n="https://git.new/pathToRegexpError",s={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function o(M){return M.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function i(M){return M.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*l(M){const L=[...M];let B=0;function g(){let $="";if(r.test(L[++B]))for($+=L[B];a.test(L[++B]);)$+=L[B];else if(L[B]==='"'){let N=B;for(;B<L.length;){if(L[++B]==='"'){B++,N=0;break}L[B]==="\\"?$+=L[++B]:$+=L[B]}if(N)throw new TypeError(`Unterminated quote at ${N}: ${n}`)}if(!$)throw new TypeError(`Missing parameter name at ${B}: ${n}`);return $}for(;B<L.length;){const $=L[B],N=s[$];if(N)yield{type:N,index:B++,value:$};else if($==="\\")yield{type:"ESCAPED",index:B++,value:L[B++]};else if($===":"){const J=g();yield{type:"PARAM",index:B,value:J}}else if($==="*"){const J=g();yield{type:"WILDCARD",index:B,value:J}}else yield{type:"CHAR",index:B,value:L[B++]}}return{type:"END",index:B,value:""}}class c{constructor(L){this.tokens=L}peek(){if(!this._peek){const L=this.tokens.next();this._peek=L.value}return this._peek}tryConsume(L){const B=this.peek();if(B.type===L)return this._peek=void 0,B.value}consume(L){const B=this.tryConsume(L);if(B!==void 0)return B;const{type:g,index:$}=this.peek();throw new TypeError(`Unexpected ${g} at ${$}, expected ${L}: ${n}`)}text(){let L="",B;for(;B=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)L+=B;return L}}class d{constructor(L){this.tokens=L}}xt.TokenData=d;function u(M,L={}){const{encodePath:B=t}=L,g=new c(l(M));function $(J){const z=[];for(;;){const re=g.text();re&&z.push({type:"text",value:B(re)});const ee=g.tryConsume("PARAM");if(ee){z.push({type:"param",name:ee});continue}const Re=g.tryConsume("WILDCARD");if(Re){z.push({type:"wildcard",name:Re});continue}if(g.tryConsume("{")){z.push({type:"group",tokens:$("}")});continue}return g.consume(J),z}}const N=$("END");return new d(N)}function p(M,L={}){const{encode:B=encodeURIComponent,delimiter:g=e}=L,$=M instanceof d?M:u(M,L),N=f($.tokens,g,B);return function(z={}){const[re,...ee]=N(z);if(ee.length)throw new TypeError(`Missing parameters: ${ee.join(", ")}`);return re}}function f(M,L,B){const g=M.map($=>y($,L,B));return $=>{const N=[""];for(const J of g){const[z,...re]=J($);N[0]+=z,N.push(...re)}return N}}function y(M,L,B){if(M.type==="text")return()=>[M.value];if(M.type==="group"){const $=f(M.tokens,L,B);return N=>{const[J,...z]=$(N);return z.length?[""]:[J]}}const g=B||t;return M.type==="wildcard"&&B!==!1?$=>{const N=$[M.name];if(N==null)return["",M.name];if(!Array.isArray(N)||N.length===0)throw new TypeError(`Expected "${M.name}" to be a non-empty array`);return[N.map((J,z)=>{if(typeof J!="string")throw new TypeError(`Expected "${M.name}/${z}" to be a string`);return g(J)}).join(L)]}:$=>{const N=$[M.name];if(N==null)return["",M.name];if(typeof N!="string")throw new TypeError(`Expected "${M.name}" to be a string`);return[g(N)]}}function h(M,L={}){const{decode:B=decodeURIComponent,delimiter:g=e}=L,{regexp:$,keys:N}=x(M,L),J=N.map(z=>B===!1?t:z.type==="param"?B:re=>re.split(g).map(B));return function(re){const ee=$.exec(re);if(!ee)return!1;const Re=ee[0],ie=Object.create(null);for(let pe=1;pe<ee.length;pe++){if(ee[pe]===void 0)continue;const ve=N[pe-1],le=J[pe-1];ie[ve.name]=le(ee[pe])}return{path:Re,params:ie}}}function x(M,L={}){const{delimiter:B=e,end:g=!0,sensitive:$=!1,trailing:N=!0}=L,J=[],z=[],re=$?"":"i",Re=(Array.isArray(M)?M:[M]).map(ve=>ve instanceof d?ve:u(ve,L));for(const{tokens:ve}of Re)for(const le of E(ve,0,[])){const qe=k(le,B,J);z.push(qe)}let ie=`^(?:${z.join("|")})`;return N&&(ie+=`(?:${i(B)}$)?`),ie+=g?"$":`(?=${i(B)}|$)`,{regexp:new RegExp(ie,re),keys:J}}function*E(M,L,B){if(L===M.length)return yield B;const g=M[L];if(g.type==="group"){const $=B.slice();for(const N of E(g.tokens,0,$))yield*E(M,L+1,N)}else B.push(g);yield*E(M,L+1,B)}function k(M,L,B){let g="",$="",N=!0;for(let J=0;J<M.length;J++){const z=M[J];if(z.type==="text"){g+=i(z.value),$+=z.value,N||(N=z.value.includes(L));continue}if(z.type==="param"||z.type==="wildcard"){if(!N&&!$)throw new TypeError(`Missing text after "${z.name}": ${n}`);z.type==="param"?g+=`(${D(L,N?"":$)}+)`:g+="([\\s\\S]+)",B.push(z),$="",N=!1;continue}}return g}function D(M,L){return L.length<2?M.length<2?`[^${i(M+L)}]`:`(?:(?!${i(M)})[^${i(L)}])`:M.length<2?`(?:(?!${i(L)})[^${i(M)}])`:`(?:(?!${i(L)}|${i(M)})[\\s\\S])`}function I(M){return M.tokens.map(function L(B,g,$){if(B.type==="text")return o(B.value);if(B.type==="group")return`{${B.tokens.map(L).join("")}}`;const J=F(B.name)&&q($[g+1])?B.name:JSON.stringify(B.name);if(B.type==="param")return`:${J}`;if(B.type==="wildcard")return`*${J}`;throw new TypeError(`Unexpected token: ${B}`)}).join("")}function F(M){const[L,...B]=M;return r.test(L)?B.every(g=>a.test(g)):!1}function q(M){return(M==null?void 0:M.type)!=="text"?!0:!a.test(M.value[0])}return xt}var ax=rx();function Yc(e,t,r){if(t.length!==e.length)return!0;for(let a=0;a<t.length;a++)if(Math.abs(t[a]-e[a])>r)return!1;return!0}function Xc(e,t,r){if(e===void 0&&t||e&&t===void 0)return!1;if(e===void 0||t===void 0)return!0;let a=0;return a+=Math.abs(e.orientation.x-t.orientation.x),a+=Math.abs(e.orientation.y-t.orientation.y),a+=Math.abs(e.orientation.z-t.orientation.z),a+=Math.abs(e.position.x-t.position.x),a+=Math.abs(e.position.y-t.position.y),a+=Math.abs(e.position.z-t.position.z),a>r?!1:e.coordinate_system===t.coordinate_system&&e.tcp===t.tcp}var nl=1e-4,nx=class Zc{constructor(t,r,a,n,s,o,i,l,c,d,u,p){this.nova=t,this.controller=r,this.motionGroup=a,this.initialMotionState=n,this.motionStateSocket=s,this.isVirtual=o,this.tcps=i,this.motionGroupSpecification=l,this.safetySetup=c,this.mounting=d,this.initialControllerState=u,this.controllerStateSocket=p,this.connectedJoggingCartesianSocket=null,this.connectedJoggingJointsSocket=null,this.joggingVelocity=10,this.activationState="inactive",this.rapidlyChangingMotionState=n,this.controllerState=u,p.addEventListener("message",f=>{var y;const h=(y=Qt(f.data))==null?void 0:y.result;h&&ke.runInAction(()=>{this.controllerState=h})}),s.addEventListener("message",f=>{var y;const h=(y=Qt(f.data))==null?void 0:y.result;if(!h)throw new Error(`Failed to get motion state for ${this.motionGroupId}: ${f.data}`);Yc(this.rapidlyChangingMotionState.state.joint_position.joints,h.state.joint_position.joints,nl)||ke.runInAction(()=>{this.rapidlyChangingMotionState.state=h.state}),Xc(this.rapidlyChangingMotionState.tcp_pose,h.tcp_pose,nl)||ke.runInAction(()=>{this.rapidlyChangingMotionState.tcp_pose=h.tcp_pose})}),ke.makeAutoObservable(this)}static connect(t,r,a){return we(this,null,function*(){var n,s;const[o,i]=r.split("@"),l=a.find(q=>q.controller===i),c=l==null?void 0:l.physical_motion_groups.find(q=>q.motion_group===r);if(!l||!c)throw new Error(`Controller ${i} or motion group ${r} not found`);const d=t.openReconnectingWebsocket(`/motion-groups/${r}/state-stream`),u=yield d.firstMessage(),p=(n=Qt(u.data))==null?void 0:n.result;if(!p)throw new Error(`Unable to parse initial motion state message ${u.data}`);console.log(`Connected motion state websocket to motion group ${c.motion_group}. Initial state:
112
+ `,p);const y=(yield t.api.controller.getRobotController(l.controller)).configuration.kind==="VirtualController",h=yield we(this,null,function*(){try{return yield t.api.motionGroupInfos.getMounting(c.motion_group)}catch(q){return console.error(`Error fetching mounting for ${c.motion_group}`,q),null}}),x=t.openReconnectingWebsocket(`/controllers/${l.controller}/state-stream?response_rate=1000`),E=yield x.firstMessage(),k=(s=Qt(E.data))==null?void 0:s.result;if(!k)throw new Error(`Unable to parse initial controller state message ${E.data}`);console.log(`Connected controller state websocket to controller ${l.controller}. Initial state:
113
+ `,k);const{tcps:D}=yield t.api.motionGroupInfos.listTcps(r),I=yield t.api.motionGroupInfos.getMotionGroupSpecification(r),F=yield t.api.motionGroupInfos.getSafetySetup(r);return new Zc(t,l,c,p,d,y,D,I,F,h,k,x)})}get motionGroupId(){return this.motionGroup.motion_group}get controllerId(){return this.controller.controller}get modelFromController(){return this.motionGroup.model_from_controller}get wandelscriptIdentifier(){const t=this.motionGroupId.split("@")[0];return`${this.controllerId.replaceAll("-","_")}_${t}`}get joggingVelocityRads(){return this.joggingVelocity*Math.PI/180}get joints(){return this.initialMotionState.state.joint_position.joints.map((t,r)=>({index:r}))}get dhParameters(){return this.motionGroupSpecification.dh_parameters}get safetyZones(){return this.safetySetup.safety_zones}get mountingPosition(){return this.mounting?[this.mounting.pose.position.x/1e3,this.mounting.pose.position.y/1e3,this.mounting.pose.position.z/1e3]:[0,0,0]}get mountingQuaternion(){var t,r,a,n,s,o;const i=new Ie.Vector3(((r=(t=this.mounting)==null?void 0:t.pose.orientation)==null?void 0:r.x)||0,((n=(a=this.mounting)==null?void 0:a.pose.orientation)==null?void 0:n.y)||0,((o=(s=this.mounting)==null?void 0:s.pose.orientation)==null?void 0:o.z)||0),l=i.length(),c=i.normalize();return new Ie.Quaternion().setFromAxisAngle(c,l)}get isEstopActive(){return["SAFETY_STATE_ROBOT_EMERGENCY_STOP","SAFETY_STATE_DEVICE_EMERGENCY_STOP"].includes(this.controllerState.safety_state)}get isMoveableSafetyState(){return["SAFETY_STATE_NORMAL","SAFETY_STATE_REDUCED"].includes(this.controllerState.safety_state)}get isMoveableOperationMode(){return["OPERATION_MODE_AUTO","OPERATION_MODE_MANUAL","OPERATION_MODE_MANUAL_T1","OPERATION_MODE_MANUAL_T2"].includes(this.controllerState.operation_mode)}get canBeMoved(){return this.isMoveableSafetyState&&this.isMoveableOperationMode&&this.activationState==="active"}deactivate(){return we(this,null,function*(){if(this.activationState!=="active"){console.error("Tried to deactivate while already deactivating");return}ke.runInAction(()=>{this.activationState="deactivating"});try{yield this.nova.api.controller.setDefaultMode(this.controllerId,"MODE_MONITOR"),ke.runInAction(()=>{this.activationState="inactive"})}catch(t){throw ke.runInAction(()=>{this.activationState="active"}),t}})}activate(){return we(this,null,function*(){if(this.activationState!=="inactive"){console.error("Tried to activate while already activating");return}ke.runInAction(()=>{this.activationState="activating"});try{yield this.nova.api.controller.setDefaultMode(this.controllerId,"MODE_CONTROL"),ke.runInAction(()=>{this.activationState="active"})}catch(t){throw ke.runInAction(()=>{this.activationState="inactive"}),t}})}toggleActivation(){this.activationState==="inactive"?this.activate():this.activationState==="active"&&this.deactivate()}dispose(){this.motionStateSocket.close(),this.connectedJoggingCartesianSocket&&this.connectedJoggingCartesianSocket.close(),this.connectedJoggingJointsSocket&&this.connectedJoggingJointsSocket.close()}setJoggingVelocity(t){this.joggingVelocity=t}},sx=class ed{constructor(t,r={}){this.motionStream=t,this.opts=r,this.cartesianWebsocket=null,this.jointWebsocket=null,this.cartesianJoggingOpts={}}static open(t,r){return we(this,arguments,function*(a,n,s={}){const o=yield a.connectMotionStream(n);return new ed(o,s)})}get motionGroupId(){return this.motionStream.motionGroupId}get nova(){return this.motionStream.nova}get numJoints(){return this.motionStream.joints.length}get activeJoggingMode(){return this.cartesianWebsocket?"cartesian":this.jointWebsocket?"joint":"increment"}get activeWebsocket(){return this.cartesianWebsocket||this.jointWebsocket}stop(){return we(this,null,function*(){this.cartesianWebsocket&&this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:{x:0,y:0,z:0},rotation_direction:{x:0,y:0,z:0},position_velocity:0,rotation_velocity:0,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId}),this.jointWebsocket&&this.jointWebsocket.sendJson({motion_group:this.motionGroupId,joint_velocities:new Array(this.numJoints).fill(0)})})}dispose(){this.cartesianWebsocket&&this.cartesianWebsocket.dispose(),this.jointWebsocket&&this.jointWebsocket.dispose()}setJoggingMode(t,r){console.log("Setting jogging mode to",t),r&&(c0(this.cartesianJoggingOpts,r)||this.cartesianWebsocket&&(this.cartesianWebsocket.dispose(),this.cartesianWebsocket=null),this.cartesianJoggingOpts=r),t!=="cartesian"&&this.cartesianWebsocket&&(this.cartesianWebsocket.dispose(),this.cartesianWebsocket=null),t!=="joint"&&this.jointWebsocket&&(this.jointWebsocket.dispose(),this.jointWebsocket=null),t==="cartesian"&&!this.cartesianWebsocket&&(this.cartesianWebsocket=this.nova.openReconnectingWebsocket("/motion-groups/move-tcp"),this.cartesianWebsocket.addEventListener("message",a=>{const n=Qt(a.data);if(n&&"error"in n)if(this.opts.onError)this.opts.onError(a.data);else throw new Error(a.data)})),t==="joint"&&!this.jointWebsocket&&(this.jointWebsocket=this.nova.openReconnectingWebsocket("/motion-groups/move-joint"),this.jointWebsocket.addEventListener("message",a=>{const n=Qt(a.data);if(n&&"error"in n)if(this.opts.onError)this.opts.onError(a.data);else throw new Error(a.data)}))}startJointRotation(t){return we(this,arguments,function*({joint:r,direction:a,velocityRadsPerSec:n}){if(!this.jointWebsocket)throw new Error("Joint jogging websocket not connected; call setJoggingMode first");const s=new Array(this.numJoints).fill(0);s[r]=a==="-"?-n:n,this.jointWebsocket.sendJson({motion_group:this.motionGroupId,joint_velocities:s})})}startTCPTranslation(t){return we(this,arguments,function*({axis:r,direction:a,velocityMmPerSec:n}){if(!this.cartesianWebsocket)throw new Error("Cartesian jogging websocket not connected; call setJoggingMode first");const s={x:0,y:0,z:0},o=Object.assign({},s);o[r]=a==="-"?-1:1,this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:o,rotation_direction:s,position_velocity:n,rotation_velocity:0,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId})})}startTCPRotation(t){return we(this,arguments,function*({axis:r,direction:a,velocityRadsPerSec:n}){if(!this.cartesianWebsocket)throw new Error("Cartesian jogging websocket not connected; call setJoggingMode first");const s={x:0,y:0,z:0},o=Object.assign({},s);o[r]=a==="-"?-1:1,this.cartesianWebsocket.sendJson({motion_group:this.motionGroupId,position_direction:s,rotation_direction:o,position_velocity:0,rotation_velocity:n,tcp:this.cartesianJoggingOpts.tcpId,coordinate_system:this.cartesianJoggingOpts.coordSystemId})})}runIncrementalCartesianMotion(t){return we(this,arguments,function*({currentTcpPose:r,currentJoints:a,coordSystemId:n,velocityInRelevantUnits:s,axis:o,direction:i,motion:l}){var c;const d=[];if(!P0(r.coordinate_system,n))throw new Error(`Current TCP pose coordinate system ${r.coordinate_system} does not match target coordinate system ${n}`);if(l.type==="translate"){const f=Object.assign({},r.position);f[o]+=l.distanceMm*(i==="-"?-1:1),d.push({settings:{limits_override:{tcp_velocity_limit:s}},line:{position:f,orientation:r.orientation,coordinate_system:n}})}else if(l.type==="rotate"){const f=new Gr(r.orientation.x,r.orientation.y,r.orientation.z),y=f.length(),h=f.clone().normalize(),x=l.distanceRads*(i==="-"?-1:1),E=new Gr(0,0,0);E[o]=1;const k=Math.cos(.5*x)*Math.cos(.5*y),D=Math.sin(.5*x)*Math.sin(.5*y),I=Math.sin(.5*x)*Math.cos(.5*y),F=Math.cos(.5*x)*Math.sin(.5*y),q=E.dot(h),M=E.clone().cross(h),L=2*Math.acos(k-D*q),B=L/Math.sin(.5*L),g=new Gr().addScaledVector(M,D).addScaledVector(E,I).addScaledVector(h,F).multiplyScalar(B);d.push({settings:{limits_override:{tcp_orientation_velocity_limit:s}},line:{position:r.position,orientation:g,coordinate_system:n}})}const u=yield this.nova.api.motion.planMotion({motion_group:this.motionGroupId,start_joint_position:a,tcp:this.cartesianJoggingOpts.tcpId,commands:d}),p=(c=u.plan_successful_response)==null?void 0:c.motion;if(!p)throw new Error(`Failed to plan jogging increment motion ${JSON.stringify(u)}`);yield this.nova.api.motion.streamMoveForward(p,100,void 0,void 0,void 0,{timeout:1e3*60})})}runIncrementalJointRotation(t){return we(this,arguments,function*({joint:r,currentJoints:a,velocityRadsPerSec:n,direction:s,distanceRads:o}){var i;const l=[...a.joints];l[r]+=o*(s==="-"?-1:1);const c=new Array(a.joints.length).fill(n),d=yield this.nova.api.motion.planMotion({motion_group:this.motionGroupId,start_joint_position:a,commands:[{settings:{limits_override:{joint_velocity_limits:{joints:c}}},joint_ptp:{joints:l}}]}),u=(i=d.plan_successful_response)==null?void 0:i.motion;if(!u){console.error("Failed to plan jogging increment motion",d);return}yield this.nova.api.motion.streamMoveForward(u,100,void 0,void 0,void 0,{timeout:1e3*60})})}},sl=1e-4;function ox(e,t){const r=new ht.Vector3(t.x,t.y,t.z),a=new ht.Vector3(e.x,e.y,e.z),n=r.length(),s=r.normalize();let o=a.length(),i=a.normalize();i.dot(s)<0&&(o=-o,i=i.multiplyScalar(-1));let l=o-n;return l-=2*Math.PI*Math.floor((l+Math.PI)/(2*Math.PI)),o=n+l,i.multiplyScalar(o)}var ix=class td{constructor(t,r,a,n,s){this.nova=t,this.controller=r,this.motionGroup=a,this.initialMotionState=n,this.motionStateSocket=s,this.rapidlyChangingMotionState=n,s.addEventListener("message",o=>{var i;const l=(i=Qt(o.data))==null?void 0:i.result;if(!l)throw new Error(`Failed to get motion state for ${this.motionGroupId}: ${o.data}`);Yc(this.rapidlyChangingMotionState.state.joint_position.joints,l.state.joint_position.joints,sl)||ke.runInAction(()=>{this.rapidlyChangingMotionState.state=l.state}),Xc(this.rapidlyChangingMotionState.tcp_pose,l.tcp_pose,sl)||ke.runInAction(()=>{this.rapidlyChangingMotionState.tcp_pose==null?this.rapidlyChangingMotionState.tcp_pose=l.tcp_pose:this.rapidlyChangingMotionState.tcp_pose={position:l.tcp_pose.position,orientation:ox(l.tcp_pose.orientation,this.rapidlyChangingMotionState.tcp_pose.orientation),tcp:l.tcp_pose.tcp,coordinate_system:l.tcp_pose.coordinate_system}})}),ke.makeAutoObservable(this)}static open(t,r){return we(this,null,function*(){var a;const{instances:n}=yield t.api.controller.listControllers(),[s,o]=r.split("@"),i=n.find(p=>p.controller===o),l=i==null?void 0:i.physical_motion_groups.find(p=>p.motion_group===r);if(!i||!l)throw new Error(`Controller ${o} or motion group ${r} not found`);const c=t.openReconnectingWebsocket(`/motion-groups/${r}/state-stream`),d=yield c.firstMessage();console.log("got first message",d);const u=(a=Qt(d.data))==null?void 0:a.result;if(!u)throw new Error(`Unable to parse initial motion state message ${d.data}`);return console.log(`Connected motion state websocket to motion group ${l.motion_group}. Initial state:
114
+ `,u),new td(t,i,l,u,c)})}get motionGroupId(){return this.motionGroup.motion_group}get controllerId(){return this.controller.controller}get modelFromController(){return this.motionGroup.model_from_controller}get wandelscriptIdentifier(){const t=this.motionGroupId.split("@")[0];return`${this.controllerId.replaceAll("-","_")}_${t}`}get joints(){return this.initialMotionState.state.joint_position.joints.map((t,r)=>({index:r}))}dispose(){this.motionStateSocket.close()}},lx=class{constructor(e,t){this.cellId=e,this.opts=t,this.system=this.withUnwrappedResponsesOnly(Hv),this.cell=this.withUnwrappedResponsesOnly(iv),this.deviceConfig=this.withCellId(fv),this.motionGroup=this.withCellId(Rv),this.motionGroupInfos=this.withCellId(Av),this.controller=this.withCellId(cv),this.program=this.withCellId($v),this.programValues=this.withCellId(Lv),this.controllerIOs=this.withCellId(uv),this.motionGroupKinematic=this.withCellId(Mv),this.motion=this.withCellId(Pv),this.coordinateSystems=this.withCellId(hv),this.application=this.withCellId(tl),this.applicationGlobal=this.withUnwrappedResponsesOnly(tl),this.motionGroupJogging=this.withCellId(Ev),this.virtualRobot=this.withCellId(Jv),this.virtualRobotSetup=this.withCellId(Zv),this.virtualRobotMode=this.withCellId(Yv),this.virtualRobotBehavior=this.withCellId(Qv),this.libraryProgramMetadata=this.withCellId(Sv),this.libraryProgram=this.withCellId(yv),this.libraryRecipeMetadata=this.withCellId(wv),this.libraryRecipe=this.withCellId(xv),this.storeObject=this.withCellId(zv),this.storeCollisionComponents=this.withCellId(Bv),this.storeCollisionScenes=this.withCellId(Nv)}withCellId(e){var t,r;const a=new e(qs(Fr({},this.opts),{isJsonMime:n=>n==="application/json"}),(t=this.opts.basePath)!=null?t:"",(r=this.opts.axiosInstance)!=null?r:O.create());for(const n of Reflect.ownKeys(Reflect.getPrototypeOf(a)))if(n!=="constructor"&&typeof a[n]=="function"){const s=a[n];a[n]=(...o)=>s.apply(a,[this.cellId,...o]).then(i=>i.data)}return a}withUnwrappedResponsesOnly(e){var t,r;const a=new e(qs(Fr({},this.opts),{isJsonMime:n=>n==="application/json"}),(t=this.opts.basePath)!=null?t:"",(r=this.opts.axiosInstance)!=null?r:O.create());for(const n of Reflect.ownKeys(Reflect.getPrototypeOf(a)))if(n!=="constructor"&&typeof a[n]=="function"){const s=a[n];a[n]=(...o)=>s.apply(a,o).then(i=>i.data)}return a}},cx=class{constructor(){this.connections=[]}handleAPIRequest(e){return we(this,null,function*(){var t,r,a;const n=[{method:"GET",path:"/cells/:cellId/controllers",handle(){return{instances:[{controller:"mock-ur5e",model_name:"UniversalRobots::Controller",host:"mock-ur5e",allow_software_install_on_controller:!0,physical_motion_groups:[{motion_group:"0@mock-ur5e",name_from_controller:"UR5e",active:!1,model_from_controller:"UniversalRobots_UR5e"}],has_error:!1,error_details:""}]}}},{method:"GET",path:"/cells/:cellId/controllers/:controllerId",handle(){return{configuration:{kind:"VirtualController",manufacturer:"universalrobots",position:"[0,-1.571,-1.571,-1.571,1.571,-1.571,0]",type:"universalrobots-ur5e"},name:"mock-ur5"}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/specification",handle(){return{dh_parameters:[{alpha:1.5707963267948966,theta:0,a:0,d:162.25,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-425,d:0,reverse_rotation_direction:!1},{alpha:0,theta:0,a:-392.2,d:0,reverse_rotation_direction:!1},{alpha:1.5707963267948966,theta:0,a:0,d:133.3,reverse_rotation_direction:!1},{alpha:-1.5707963267948966,theta:0,a:0,d:99.7,reverse_rotation_direction:!1},{alpha:0,theta:0,a:0,d:99.6,reverse_rotation_direction:!1}],mechanical_joint_limits:[{joint:"JOINTNAME_AXIS_1",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_2",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_3",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_4",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_5",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1},{joint:"JOINTNAME_AXIS_6",lower_limit:-6.335545063018799,upper_limit:6.335545063018799,unlimited:!1}]}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/safety-setup",handle(){return{safety_settings:[{safety_state:"SAFETY_NORMAL",settings:{joint_position_limits:[{joint:"JOINTNAME_AXIS_1",lower_limit:-2.96705961227417,upper_limit:2.96705961227417,unlimited:!1},{joint:"JOINTNAME_AXIS_2",lower_limit:-1.7453292608261108,upper_limit:2.7925267219543457,unlimited:!1},{joint:"JOINTNAME_AXIS_3",lower_limit:-3.3161256313323975,upper_limit:.40142571926116943,unlimited:!1},{joint:"JOINTNAME_AXIS_4",lower_limit:-3.4906585216522217,upper_limit:3.4906585216522217,unlimited:!1},{joint:"JOINTNAME_AXIS_5",lower_limit:-2.4434609413146973,upper_limit:2.4434609413146973,unlimited:!1},{joint:"JOINTNAME_AXIS_6",lower_limit:-4.71238899230957,upper_limit:4.71238899230957,unlimited:!1}],joint_velocity_limits:[{joint:"JOINTNAME_AXIS_1",limit:3.1415927410125732},{joint:"JOINTNAME_AXIS_2",limit:3.1415927410125732},{joint:"JOINTNAME_AXIS_3",limit:3.4906585216522217},{joint:"JOINTNAME_AXIS_4",limit:6.108652591705322},{joint:"JOINTNAME_AXIS_5",limit:6.108652591705322},{joint:"JOINTNAME_AXIS_6",limit:6.981317043304443}],joint_acceleration_limits:[],joint_torque_limits:[],tcp_velocity_limit:1800}}],safety_zones:[{id:1,priority:0,geometry:{compound:{child_geometries:[{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:1650,y:-1330,z:-1820},{x:1650,y:1330,z:-1820},{x:-800,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:1650,y:-1330,z:-1820},{x:1650,y:-1330,z:1500},{x:-800,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:-800,y:-1330,z:-1820},{x:-800,y:1330,z:-1820},{x:-800,y:1330,z:1500},{x:-800,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:-800,y:1330,z:1500},{x:-800,y:-1330,z:1500},{x:1650,y:-1330,z:1500}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:-800,y:1330,z:1500},{x:-800,y:1330,z:-1820},{x:1650,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"},{convex_hull:{vertices:[{x:1650,y:1330,z:1500},{x:1650,y:-1330,z:1500},{x:1650,y:-1330,z:-1820},{x:1650,y:1330,z:-1820}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"box"}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Cell workzone"},motion_group_uid:1},{id:2,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:1330,z:-1850},{x:865,y:1330,z:-1850},{x:865,y:-720,z:-1850},{x:1650,y:-720,z:-1850},{x:1650,y:1330,z:-920},{x:865,y:1330,z:-920},{x:865,y:-720,z:-920},{x:1650,y:-720,z:-920}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Transport"},motion_group_uid:1},{id:3,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:1330,z:-600},{x:865,y:1330,z:-600},{x:865,y:430,z:-600},{x:1650,y:430,z:-600},{x:1650,y:1330,z:-1250},{x:865,y:1330,z:-1250},{x:865,y:430,z:-1250},{x:1650,y:430,z:-1250}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Tunel"},motion_group_uid:1},{id:4,priority:0,geometry:{convex_hull:{vertices:[{x:1650,y:-760,z:-440},{x:900,y:-760,z:-440},{x:900,y:-1330,z:-440},{x:1650,y:-1330,z:-440},{x:1650,y:-760,z:-1800},{x:900,y:-760,z:-1800},{x:900,y:-1330,z:-1800},{x:1650,y:-1330,z:-1800}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Fanuc controller"},motion_group_uid:1},{id:6,priority:0,geometry:{convex_hull:{vertices:[{x:-200,y:-200,z:-1900},{x:200,y:-200,z:-1900},{x:200,y:200,z:-1900},{x:-200,y:200,z:-1900},{x:-200,y:-200,z:-350},{x:200,y:-200,z:-350},{x:200,y:200,z:-350},{x:-200,y:200,z:-350}]},init_pose:{position:{x:0,y:0,z:0},orientation:{x:0,y:0,z:0,w:1}},id:"Robot base"},motion_group_uid:1}],robot_model_geometries:[{link_index:1,geometry:{sphere:{radius:270},init_pose:{position:{x:-70,y:-70,z:-50},orientation:{x:0,y:0,z:0,w:1}},id:"link1_sphere"}},{link_index:2,geometry:{capsule:{radius:160,cylinder_height:800},init_pose:{position:{x:-450,y:40,z:170},orientation:{x:0,y:-.7071067811865475,z:0,w:.7071067811865476}},id:"link2_capsule"}},{link_index:3,geometry:{sphere:{radius:270},init_pose:{position:{x:-110,y:10,z:-100},orientation:{x:0,y:0,z:0,w:1}},id:"link3_sphere"}},{link_index:4,geometry:{capsule:{radius:110,cylinder_height:600},init_pose:{position:{x:0,y:300,z:40},orientation:{x:-.7071067811865475,y:0,z:0,w:.7071067811865476}},id:"link4_capsule"}},{link_index:5,geometry:{sphere:{radius:75},init_pose:{position:{x:0,y:0,z:-50},orientation:{x:0,y:0,z:0,w:1}},id:"link5_sphere"}}],tool_geometries:[]}}},{method:"GET",path:"/cells/:cellId/coordinate-systems",handle(){return{coordinatesystems:[{coordinate_system:"",name:"world",reference_uid:"",position:{x:0,y:0,z:0},rotation:{angles:[0,0,0],type:"ROTATION_VECTOR"}}]}}},{method:"GET",path:"/cells/:cellId/motion-groups/:motionGroupId/tcps",handle(){return{tcps:[{id:"Flange",readable_name:"Default-Flange",position:{x:0,y:0,z:0},rotation:{angles:[0,0,0,0],type:"ROTATION_VECTOR"}},{id:"complex-tcp-position",readable_name:"Complex TCP Position",position:{x:-200,y:300,z:150},rotation:{angles:[-.12139440409113832,-.06356210998212003,-.2023240068185639,0],type:"ROTATION_VECTOR"}}]}}}],s=((t=e.method)==null?void 0:t.toUpperCase())||"GET",o="/cells"+((a=(r=e.url)==null?void 0:r.split("/cells")[1])==null?void 0:a.split("?")[0]);for(const i of n){const l=ax.match(i.path)(o||"");if(s===i.method&&l){const c=i.handle();return{status:200,statusText:"Success",data:JSON.stringify(c),headers:{},config:e,request:{responseURL:e.url}}}}throw new Zs(`No mock handler matched this request: ${s} ${o}`,"404",e)})}handleWebsocketConnection(e){this.connections.push(e),setTimeout(()=>{e.dispatchEvent(new Event("open")),console.log("Websocket connection opened from",e.url),e.url.includes("/state-stream")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify(dx)})),e.url.includes("/move-joint")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{motion_group:"0@ur",state:{controller:"ur",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",timestamp:"2024-09-18T12:48:26.096266444Z",velocity_override:100,motion_groups:[{motion_group:"0@ur",controller:"ur",joint_position:{joints:[1.3492152690887451,-1.5659207105636597,1.6653711795806885,-1.0991662740707397,-1.829018235206604,1.264623761177063]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:6.437331889439328,y:-628.4123774830913,z:577.0569957147832},orientation:{x:-1.683333649797158,y:-1.9783363827298732,z:-.4928031860165713},coordinate_system:""},tcp_pose:{position:{x:6.437331889439328,y:-628.4123774830913,z:577.0569957147832},orientation:{x:-1.683333649797158,y:-1.9783363827298732,z:-.4928031860165713},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:-0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"671259"}],sequence_number:"671259"},movement_state:"MOVEMENT_STATE_MOVING"}})})),e.url.includes("/move-tcp")&&e.dispatchEvent(new MessageEvent("message",{data:JSON.stringify({result:{motion_group:"0@ur",state:{controller:"ur",operation_mode:"OPERATION_MODE_AUTO",safety_state:"SAFETY_STATE_NORMAL",timestamp:"2024-09-18T12:43:12.188335774Z",velocity_override:100,motion_groups:[{motion_group:"0@ur",controller:"ur",joint_position:{joints:[1.3352527618408203,-1.5659207105636597,1.6653711795806885,-1.110615611076355,-1.829018235206604,1.264623761177063]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:-2.763015284002938,y:-630.2151479701106,z:577.524509114342},orientation:{x:-1.704794877102097,y:-1.9722372952861567,z:-.4852079204210754},coordinate_system:""},tcp_pose:{position:{x:-2.763015284002938,y:-630.2151479701106,z:577.524509114342},orientation:{x:-1.704794877102097,y:-1.9722372952861567,z:-.4852079204210754},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:-0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]},sequence_number:"627897"}],sequence_number:"627897"},movement_state:"MOVEMENT_STATE_MOVING"}})}))},10)}handleWebsocketMessage(e,t){console.log(`Received message on ${e.url}`,t)}},dx={result:{state:{motion_group:"0@universalrobots-ur5e",controller:"universalrobots-ur5e",joint_position:{joints:[1.1699999570846558,-1.5700000524520874,1.3600000143051147,1.0299999713897705,1.2899999618530273,1.2799999713897705]},joint_velocity:{joints:[0,0,0,0,0,0]},flange_pose:{position:{x:1.3300010259703043,y:-409.2680714682808,z:531.0203477065281},orientation:{x:1.7564919306270736,y:-1.7542521568325058,z:.7326972590614671},coordinate_system:""},tcp_pose:{position:{x:1.3300010259703043,y:-409.2680714682808,z:531.0203477065281},orientation:{x:1.7564919306270736,y:-1.7542521568325058,z:.7326972590614671},coordinate_system:"",tcp:"Flange"},velocity:{linear:{x:0,y:0,z:0},angular:{x:0,y:0,z:0},coordinate_system:""},force:{force:{x:0,y:0,z:0},moment:{x:0,y:0,z:0},coordinate_system:""},joint_limit_reached:{limit_reached:[!1,!1,!1,!1,!1,!1]},joint_current:{joints:[0,0,0,0,0,0]}},tcp_pose:{position:{x:302.90748476115556,y:-152.87065869452337,z:424.0454619321661},orientation:{x:2.3403056115045353,y:-1.1706836379431356,z:.9772511964246311},coordinate_system:"",tcp:"Flange"}}},ux=class{constructor(e){this.authPromise=null,this.accessToken=null;var t;const r=(t=e.cellId)!=null?t:"cell";this.config=Fr({cellId:r},e),this.accessToken=e.accessToken||Os.getString("wbjs.access_token")||null,this.config.instanceUrl==="https://mock.example.com"&&(this.mock=new cx);const a=O.create({baseURL:As(this.config.instanceUrl,"/api/v1")});a.interceptors.request.use(n=>we(this,null,function*(){return n.headers.Authorization||(this.accessToken?n.headers.Authorization=`Bearer ${this.accessToken}`:this.config.username&&this.config.password&&(n.headers.Authorization=`Basic ${btoa(e.username+":"+e.password)}`)),n})),typeof window<"u"&&a.interceptors.response.use(n=>n,n=>we(this,null,function*(){var s,o;if(av(n))if(((s=n.response)==null?void 0:s.status)===401)try{if(yield this.renewAuthentication(),n.config)return this.accessToken?n.config.headers.Authorization=`Bearer ${this.accessToken}`:delete n.config.headers.Authorization,a.request(n.config)}catch(i){return Promise.reject(i)}else((o=n.response)==null?void 0:o.status)===503&&(yield fetch(window.location.href)).status===503&&window.location.reload();return Promise.reject(n)})),this.api=new lx(r,qs(Fr({},e),{basePath:As(this.config.instanceUrl,"/api/v1"),isJsonMime:n=>n==="application/json",baseOptions:Fr(Fr({},this.mock?{adapter:n=>this.mock.handleAPIRequest(n)}:{}),e.baseOptions),axiosInstance:a}))}renewAuthentication(){return we(this,null,function*(){if(!this.authPromise){this.authPromise=R0(this.config.instanceUrl);try{this.accessToken=yield this.authPromise,this.accessToken?Os.setString("wbjs.access_token",this.accessToken):Os.delete("wbjs.access_token")}finally{this.authPromise=null}}})}makeWebsocketURL(e){const t=new URL(As(this.config.instanceUrl,`/api/v1/cells/${this.config.cellId}`,e));return t.protocol=t.protocol.replace("http","ws"),t.protocol=t.protocol.replace("https","wss"),this.accessToken?t.searchParams.append("token",this.accessToken):this.config.username&&this.config.password&&(t.username=this.config.username,t.password=this.config.password),t.toString()}openReconnectingWebsocket(e){return new w0(this.makeWebsocketURL(e),{mock:this.mock})}connectMotionStream(e){return we(this,null,function*(){return yield ix.open(this,e)})}connectJogger(e){return we(this,null,function*(){return yield sx.open(this,e)})}connectMotionGroups(e){return we(this,null,function*(){const{instances:t}=yield this.api.controller.listControllers();return Promise.all(e.map(r=>nx.connect(this,r,t)))})}connectMotionGroup(e){return we(this,null,function*(){return(yield this.connectMotionGroups([e]))[0]})}};function px(e){try{return JSON.stringify(e)}catch{return}}function hx(e,t){throw new Error(t+` ${JSON.stringify(e)}`)}function mx(e){var t,r,a,n;return e instanceof Zs&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof Zs&&e.response?`${(t=e.response)==null?void 0:t.status} ${(r=e.response)==null?void 0:r.statusText} from ${(a=e.response)==null?void 0:a.config.url}: ${JSON.stringify((n=e.response)==null?void 0:n.data)}`:e instanceof Error?e.message:`Unexpected error: ${px(e)||e}`}const bo=e=>{const t=e.softTimeout||3e3,[r,a]=te.useState(!1),n=Q.useTheme();return te.useEffect(()=>{const s=setTimeout(()=>{a(!0)},t);return()=>clearTimeout(s)}),S.jsx(Q.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",sx:{color:n.palette.text.primary},children:e.error?S.jsx(rd,{loadingMessage:e.message,error:e.error}):S.jsxs(S.Fragment,{children:[S.jsx(Q.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&S.jsx("div",{children:e.message}),S.jsx(Q.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:n.palette.text.secondary},children:"This is taking longer than expected..."})]})})},rd=e=>{const t=mx(e.error),r=e.error instanceof Error?e.error.stack:null,a=Q.useTheme();return S.jsxs(Q.Stack,{sx:{maxHeight:"100%",maxWidth:"min(100%, 800px)",padding:2,overflow:"auto",color:a.palette.error.main,"& pre":{whiteSpace:"pre-wrap",wordBreak:"break-word",paddingBottom:"3rem"}},children:[(e.loadingMessage?`Error while ${io.lowerFirst(Q.capitalize(e.loadingMessage))} - `:"")+t,S.jsx("br",{}),r&&S.jsx("pre",{children:r})]})},fx=({title:e,titleId:t,...r},a)=>G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.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"})),gx=te.forwardRef(fx),yx=({title:e,titleId:t,...r},a)=>G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.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"})),bx=te.forwardRef(yx),Sx=({title:e,titleId:t,...r},a)=>G.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.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"})),vx=te.forwardRef(Sx),xx=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.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"})),Ox=te.forwardRef(xx);function wx(){this.__data__=[],this.size=0}function ad(e,t){return e===t||e!==e&&t!==t}function ts(e,t){for(var r=e.length;r--;)if(ad(e[r][0],t))return r;return-1}var Cx=Array.prototype,Px=Cx.splice;function Vx(e){var t=this.__data__,r=ts(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():Px.call(t,r,1),--this.size,!0}function Rx(e){var t=this.__data__,r=ts(t,e);return r<0?void 0:t[r][1]}function _x(e){return ts(this.__data__,e)>-1}function Ax(e,t){var r=this.__data__,a=ts(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function Lt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Lt.prototype.clear=wx;Lt.prototype.delete=Vx;Lt.prototype.get=Rx;Lt.prototype.has=_x;Lt.prototype.set=Ax;function Tx(){this.__data__=new Lt,this.size=0}function Ex(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Ix(e){return this.__data__.get(e)}function Mx(e){return this.__data__.has(e)}var jx="[object AsyncFunction]",$x="[object Function]",Ux="[object GeneratorFunction]",Lx="[object Proxy]";function nd(e){if(!dr(e))return!1;var t=fr(e);return t==$x||t==Ux||t==jx||t==Lx}var Ts=Rt["__core-js_shared__"],ol=function(){var e=/[^.]+$/.exec(Ts&&Ts.keys&&Ts.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kx(e){return!!ol&&ol in e}var Bx=Function.prototype,Fx=Bx.toString;function yr(e){if(e!=null){try{return Fx.call(e)}catch{}try{return e+""}catch{}}return""}var Nx=/[\\^$.*+?()[\]{}|]/g,Dx=/^\[object .+?Constructor\]$/,zx=Function.prototype,Gx=Object.prototype,Hx=zx.toString,qx=Gx.hasOwnProperty,Jx=RegExp("^"+Hx.call(qx).replace(Nx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wx(e){if(!dr(e)||kx(e))return!1;var t=nd(e)?Jx:Dx;return t.test(yr(e))}function Qx(e,t){return e==null?void 0:e[t]}function br(e,t){var r=Qx(e,t);return Wx(r)?r:void 0}var $a=br(Rt,"Map"),Ua=br(Object,"create");function Kx(){this.__data__=Ua?Ua(null):{},this.size=0}function Yx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xx="__lodash_hash_undefined__",Zx=Object.prototype,e1=Zx.hasOwnProperty;function t1(e){var t=this.__data__;if(Ua){var r=t[e];return r===Xx?void 0:r}return e1.call(t,e)?t[e]:void 0}var r1=Object.prototype,a1=r1.hasOwnProperty;function n1(e){var t=this.__data__;return Ua?t[e]!==void 0:a1.call(t,e)}var s1="__lodash_hash_undefined__";function o1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ua&&t===void 0?s1:t,this}function hr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}hr.prototype.clear=Kx;hr.prototype.delete=Yx;hr.prototype.get=t1;hr.prototype.has=n1;hr.prototype.set=o1;function i1(){this.size=0,this.__data__={hash:new hr,map:new($a||Lt),string:new hr}}function l1(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function rs(e,t){var r=e.__data__;return l1(t)?r[typeof t=="string"?"string":"hash"]:r.map}function c1(e){var t=rs(this,e).delete(e);return this.size-=t?1:0,t}function d1(e){return rs(this,e).get(e)}function u1(e){return rs(this,e).has(e)}function p1(e,t){var r=rs(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}kt.prototype.clear=i1;kt.prototype.delete=c1;kt.prototype.get=d1;kt.prototype.has=u1;kt.prototype.set=p1;var h1=200;function m1(e,t){var r=this.__data__;if(r instanceof Lt){var a=r.__data__;if(!$a||a.length<h1-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new kt(a)}return r.set(e,t),this.size=r.size,this}function jt(e){var t=this.__data__=new Lt(e);this.size=t.size}jt.prototype.clear=Tx;jt.prototype.delete=Ex;jt.prototype.get=Ix;jt.prototype.has=Mx;jt.prototype.set=m1;var f1="__lodash_hash_undefined__";function g1(e){return this.__data__.set(e,f1),this}function y1(e){return this.__data__.has(e)}function An(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new kt;++t<r;)this.add(e[t])}An.prototype.add=An.prototype.push=g1;An.prototype.has=y1;function b1(e,t){for(var r=-1,a=e==null?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}function S1(e,t){return e.has(t)}var v1=1,x1=2;function sd(e,t,r,a,n,s){var o=r&v1,i=e.length,l=t.length;if(i!=l&&!(o&&l>i))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var u=-1,p=!0,f=r&x1?new An:void 0;for(s.set(e,t),s.set(t,e);++u<i;){var y=e[u],h=t[u];if(a)var x=o?a(h,y,u,t,e,s):a(y,h,u,e,t,s);if(x!==void 0){if(x)continue;p=!1;break}if(f){if(!b1(t,function(E,k){if(!S1(f,k)&&(y===E||n(y,E,r,a,s)))return f.push(k)})){p=!1;break}}else if(!(y===h||n(y,h,r,a,s))){p=!1;break}}return s.delete(e),s.delete(t),p}var il=Rt.Uint8Array;function O1(e){var t=-1,r=Array(e.size);return e.forEach(function(a,n){r[++t]=[n,a]}),r}function w1(e){var t=-1,r=Array(e.size);return e.forEach(function(a){r[++t]=a}),r}var C1=1,P1=2,V1="[object Boolean]",R1="[object Date]",_1="[object Error]",A1="[object Map]",T1="[object Number]",E1="[object RegExp]",I1="[object Set]",M1="[object String]",j1="[object Symbol]",$1="[object ArrayBuffer]",U1="[object DataView]",ll=Xt?Xt.prototype:void 0,Es=ll?ll.valueOf:void 0;function L1(e,t,r,a,n,s,o){switch(r){case U1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $1:return!(e.byteLength!=t.byteLength||!s(new il(e),new il(t)));case V1:case R1:case T1:return ad(+e,+t);case _1:return e.name==t.name&&e.message==t.message;case E1:case M1:return e==t+"";case A1:var i=O1;case I1:var l=a&C1;if(i||(i=w1),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;a|=P1,o.set(e,t);var d=sd(i(e),i(t),a,n,s,o);return o.delete(e),d;case j1:if(Es)return Es.call(e)==Es.call(t)}return!1}function k1(e,t){for(var r=-1,a=t.length,n=e.length;++r<a;)e[n+r]=t[r];return e}var Vt=Array.isArray;function B1(e,t,r){var a=t(e);return Vt(e)?a:k1(a,r(e))}function F1(e,t){for(var r=-1,a=e==null?0:e.length,n=0,s=[];++r<a;){var o=e[r];t(o,r,e)&&(s[n++]=o)}return s}function N1(){return[]}var D1=Object.prototype,z1=D1.propertyIsEnumerable,cl=Object.getOwnPropertySymbols,G1=cl?function(e){return e==null?[]:(e=Object(e),F1(cl(e),function(t){return z1.call(e,t)}))}:N1;function H1(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var q1="[object Arguments]";function dl(e){return ur(e)&&fr(e)==q1}var od=Object.prototype,J1=od.hasOwnProperty,W1=od.propertyIsEnumerable,id=dl(function(){return arguments}())?dl:function(e){return ur(e)&&J1.call(e,"callee")&&!W1.call(e,"callee")};function Q1(){return!1}var ld=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ul=ld&&typeof module=="object"&&module&&!module.nodeType&&module,K1=ul&&ul.exports===ld,pl=K1?Rt.Buffer:void 0,Y1=pl?pl.isBuffer:void 0,to=Y1||Q1,X1=9007199254740991,Z1=/^(?:0|[1-9]\d*)$/;function cd(e,t){var r=typeof e;return t=t??X1,!!t&&(r=="number"||r!="symbol"&&Z1.test(e))&&e>-1&&e%1==0&&e<t}var eO=9007199254740991;function So(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=eO}var tO="[object Arguments]",rO="[object Array]",aO="[object Boolean]",nO="[object Date]",sO="[object Error]",oO="[object Function]",iO="[object Map]",lO="[object Number]",cO="[object Object]",dO="[object RegExp]",uO="[object Set]",pO="[object String]",hO="[object WeakMap]",mO="[object ArrayBuffer]",fO="[object DataView]",gO="[object Float32Array]",yO="[object Float64Array]",bO="[object Int8Array]",SO="[object Int16Array]",vO="[object Int32Array]",xO="[object Uint8Array]",OO="[object Uint8ClampedArray]",wO="[object Uint16Array]",CO="[object Uint32Array]",Oe={};Oe[gO]=Oe[yO]=Oe[bO]=Oe[SO]=Oe[vO]=Oe[xO]=Oe[OO]=Oe[wO]=Oe[CO]=!0;Oe[tO]=Oe[rO]=Oe[mO]=Oe[aO]=Oe[fO]=Oe[nO]=Oe[sO]=Oe[oO]=Oe[iO]=Oe[lO]=Oe[cO]=Oe[dO]=Oe[uO]=Oe[pO]=Oe[hO]=!1;function PO(e){return ur(e)&&So(e.length)&&!!Oe[fr(e)]}function VO(e){return function(t){return e(t)}}var dd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Va=dd&&typeof module=="object"&&module&&!module.nodeType&&module,RO=Va&&Va.exports===dd,Is=RO&&cc.process,hl=function(){try{var e=Va&&Va.require&&Va.require("util").types;return e||Is&&Is.binding&&Is.binding("util")}catch{}}(),ml=hl&&hl.isTypedArray,ud=ml?VO(ml):PO,_O=Object.prototype,AO=_O.hasOwnProperty;function TO(e,t){var r=Vt(e),a=!r&&id(e),n=!r&&!a&&to(e),s=!r&&!a&&!n&&ud(e),o=r||a||n||s,i=o?H1(e.length,String):[],l=i.length;for(var c in e)AO.call(e,c)&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||cd(c,l)))&&i.push(c);return i}var EO=Object.prototype;function IO(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||EO;return e===r}function MO(e,t){return function(r){return e(t(r))}}var jO=MO(Object.keys,Object),$O=Object.prototype,UO=$O.hasOwnProperty;function LO(e){if(!IO(e))return jO(e);var t=[];for(var r in Object(e))UO.call(e,r)&&r!="constructor"&&t.push(r);return t}function pd(e){return e!=null&&So(e.length)&&!nd(e)}function vo(e){return pd(e)?TO(e):LO(e)}function fl(e){return B1(e,vo,G1)}var kO=1,BO=Object.prototype,FO=BO.hasOwnProperty;function NO(e,t,r,a,n,s){var o=r&kO,i=fl(e),l=i.length,c=fl(t),d=c.length;if(l!=d&&!o)return!1;for(var u=l;u--;){var p=i[u];if(!(o?p in t:FO.call(t,p)))return!1}var f=s.get(e),y=s.get(t);if(f&&y)return f==t&&y==e;var h=!0;s.set(e,t),s.set(t,e);for(var x=o;++u<l;){p=i[u];var E=e[p],k=t[p];if(a)var D=o?a(k,E,p,t,e,s):a(E,k,p,e,t,s);if(!(D===void 0?E===k||n(E,k,r,a,s):D)){h=!1;break}x||(x=p=="constructor")}if(h&&!x){var I=e.constructor,F=t.constructor;I!=F&&"constructor"in e&&"constructor"in t&&!(typeof I=="function"&&I instanceof I&&typeof F=="function"&&F instanceof F)&&(h=!1)}return s.delete(e),s.delete(t),h}var ro=br(Rt,"DataView"),ao=br(Rt,"Promise"),no=br(Rt,"Set"),so=br(Rt,"WeakMap"),gl="[object Map]",DO="[object Object]",yl="[object Promise]",bl="[object Set]",Sl="[object WeakMap]",vl="[object DataView]",zO=yr(ro),GO=yr($a),HO=yr(ao),qO=yr(no),JO=yr(so),Jt=fr;(ro&&Jt(new ro(new ArrayBuffer(1)))!=vl||$a&&Jt(new $a)!=gl||ao&&Jt(ao.resolve())!=yl||no&&Jt(new no)!=bl||so&&Jt(new so)!=Sl)&&(Jt=function(e){var t=fr(e),r=t==DO?e.constructor:void 0,a=r?yr(r):"";if(a)switch(a){case zO:return vl;case GO:return gl;case HO:return yl;case qO:return bl;case JO:return Sl}return t});var WO=1,xl="[object Arguments]",Ol="[object Array]",tn="[object Object]",QO=Object.prototype,wl=QO.hasOwnProperty;function KO(e,t,r,a,n,s){var o=Vt(e),i=Vt(t),l=o?Ol:Jt(e),c=i?Ol:Jt(t);l=l==xl?tn:l,c=c==xl?tn:c;var d=l==tn,u=c==tn,p=l==c;if(p&&to(e)){if(!to(t))return!1;o=!0,d=!1}if(p&&!d)return s||(s=new jt),o||ud(e)?sd(e,t,r,a,n,s):L1(e,t,l,r,a,n,s);if(!(r&WO)){var f=d&&wl.call(e,"__wrapped__"),y=u&&wl.call(t,"__wrapped__");if(f||y){var h=f?e.value():e,x=y?t.value():t;return s||(s=new jt),n(h,x,r,a,s)}}return p?(s||(s=new jt),NO(e,t,r,a,n,s)):!1}function as(e,t,r,a,n){return e===t?!0:e==null||t==null||!ur(e)&&!ur(t)?e!==e&&t!==t:KO(e,t,r,a,as,n)}function YO(e,t){return as(e,t)}const hd=({store:e})=>{const{t}=Be.useTranslation(),[r,a]=te.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached),n=te.useRef(r);Wr(()=>{const o=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;YO(n.current,o)||(n.current=o,a(o))});const s=[];for(const[o,i]of r.entries())i&&s.push(o);return S.jsx(Q.Typography,{color:"error",sx:{margin:"0.5rem 1rem",textAlign:"center",minHeight:"1.5rem",visibility:s.length?"visible":"hidden"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:s.map(o=>o+1).join(", ")})})},XO=Q.styled(Q.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 rn({labelValue:e,...t}){return S.jsxs(XO,{fullWidth:!0,variant:"filled",children:[S.jsx(Q.InputLabel,{id:t.labelId,children:e}),S.jsx(Q.Select,{...t})]})}var Cl=function(){try{var e=br(Object,"defineProperty");return e({},"",{}),e}catch{}}();function ZO(e,t,r){t=="__proto__"&&Cl?Cl(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ew(e,t,r,a){for(var n=-1,s=e==null?0:e.length;++n<s;){var o=e[n];t(a,o,r(o),e)}return a}function tw(e){return function(t,r,a){for(var n=-1,s=Object(t),o=a(t),i=o.length;i--;){var l=o[++n];if(r(s[l],l,s)===!1)break}return t}}var rw=tw();function aw(e,t){return e&&rw(e,t,vo)}function nw(e,t){return function(r,a){if(r==null)return r;if(!pd(r))return e(r,a);for(var n=r.length,s=-1,o=Object(r);++s<n&&a(o[s],s,o)!==!1;);return r}}var sw=nw(aw);function ow(e,t,r,a){return sw(e,function(n,s,o){t(a,n,r(n),o)}),a}var iw=1,lw=2;function cw(e,t,r,a){var n=r.length,s=n;if(e==null)return!s;for(e=Object(e);n--;){var o=r[n];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++n<s;){o=r[n];var i=o[0],l=e[i],c=o[1];if(o[2]){if(l===void 0&&!(i in e))return!1}else{var d=new jt,u;if(!(u===void 0?as(c,l,iw|lw,a,d):u))return!1}}return!0}function md(e){return e===e&&!dr(e)}function dw(e){for(var t=vo(e),r=t.length;r--;){var a=t[r],n=e[a];t[r]=[a,n,md(n)]}return t}function fd(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function uw(e){var t=dw(e);return t.length==1&&t[0][2]?fd(t[0][0],t[0][1]):function(r){return r===e||cw(r,e,t)}}var pw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hw=/^\w*$/;function xo(e,t){if(Vt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Hn(e)?!0:hw.test(e)||!pw.test(e)||t!=null&&e in Object(t)}var mw="Expected a function";function Oo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(mw);var r=function(){var a=arguments,n=t?t.apply(this,a):a[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,a);return r.cache=s.set(n,o)||s,o};return r.cache=new(Oo.Cache||kt),r}Oo.Cache=kt;var fw=500;function gw(e){var t=Oo(e,function(a){return r.size===fw&&r.clear(),a}),r=t.cache;return t}var yw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bw=/\\(\\)?/g,Sw=gw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yw,function(r,a,n,s){t.push(n?s.replace(bw,"$1"):a||r)}),t});function vw(e,t){for(var r=-1,a=e==null?0:e.length,n=Array(a);++r<a;)n[r]=t(e[r],r,e);return n}var Pl=Xt?Xt.prototype:void 0,Vl=Pl?Pl.toString:void 0;function gd(e){if(typeof e=="string")return e;if(Vt(e))return vw(e,gd)+"";if(Hn(e))return Vl?Vl.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function yd(e){return e==null?"":gd(e)}function bd(e,t){return Vt(e)?e:xo(e,t)?[e]:Sw(yd(e))}function ns(e){if(typeof e=="string"||Hn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Sd(e,t){t=bd(t,e);for(var r=0,a=t.length;e!=null&&r<a;)e=e[ns(t[r++])];return r&&r==a?e:void 0}function xw(e,t,r){var a=e==null?void 0:Sd(e,t);return a===void 0?r:a}function Ow(e,t){return e!=null&&t in Object(e)}function ww(e,t,r){t=bd(t,e);for(var a=-1,n=t.length,s=!1;++a<n;){var o=ns(t[a]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++a!=n?s:(n=e==null?0:e.length,!!n&&So(n)&&cd(o,n)&&(Vt(e)||id(e)))}function Cw(e,t){return e!=null&&ww(e,t,Ow)}var Pw=1,Vw=2;function Rw(e,t){return xo(e)&&md(t)?fd(ns(e),t):function(r){var a=xw(r,e);return a===void 0&&a===t?Cw(r,e):as(t,a,Pw|Vw)}}function _w(e){return e}function Aw(e){return function(t){return t==null?void 0:t[e]}}function Tw(e){return function(t){return Sd(t,e)}}function Ew(e){return xo(e)?Aw(ns(e)):Tw(e)}function Iw(e){return typeof e=="function"?e:e==null?_w:typeof e=="object"?Vt(e)?Rw(e[0],e[1]):uw(e):Ew(e)}function Mw(e,t){return function(r,a){var n=Vt(r)?ew:ow,s={};return n(r,e,Iw(a),s)}}var an=Mw(function(e,t,r){ZO(e,r,t)}),jw=0;function $w(e){var t=++jw;return yd(e)+t}const oo=[{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}],Uw=[{id:"continuous"},...oo],Lw=["coordsys","tool"];class ss{constructor(t,r,a,n){var s,o;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=a,this.tcps=n,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 i of a)if(i.coordinate_system===""){i.coordinate_system="world";break}this.selectedCoordSystemId=((s=a[0])==null?void 0:s.coordinate_system)||"world",this.selectedTcpId=((o=n[0])==null?void 0:o.id)||"",ke.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(ke.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[a,{coordinatesystems:n},{tcps:s}]=await Promise.all([r.api.motionGroupInfos.getMotionGroupSpecification(t.motionGroupId),r.api.coordinateSystems.listCoordinateSystems("ROTATION_VECTOR"),r.api.motionGroupInfos.listTcps(t.motionGroupId,"ROTATION_VECTOR")]);return new ss(t,a,n||[],s||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}get coordSystemCountByName(){return io.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=ir.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 Uw}get discreteIncrementOptions(){return oo}get incrementOptionsById(){return an(this.incrementOptions,t=>t.id)}get tabsById(){return an(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 an(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 an(this.tcps,t=>t.id)}get activeDiscreteIncrement(){return this.selectedOrientation==="tool"?void 0:oo.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,r){const a=this.tabs[r]||this.tabs[0];this.selectedTabId=a.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 r=$w();this.lock(r);try{return await t()}finally{this.unlock(r)}}}const kw=Le.observer(({store:e})=>{var a;const{t}=Be.useTranslation();function r(n){switch(n){case"coordsys":return t("Jogging.Orientation.coordsys");case"tool":return t("Jogging.Orientation.tool");default:return n}}return S.jsxs(Q.Box,{component:"div",sx:{display:"grid",gap:"16px",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"min-height min-height","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[S.jsx(rn,{labelId:"jogging-coord-select",labelValue:"Coordinate Sys.",value:e.selectedCoordSystemId,size:"small",variant:"filled",displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>S.jsx(Q.MenuItem,{value:n.coordinate_system,children:n.name&&e.coordSystemCountByName[n.name]>1?`${n.name} / ${n.coordinate_system}`:n.name||n.coordinate_system},n.coordinate_system))}),S.jsx(rn,{labelId:"jogging-tcp-select",labelValue:"TCP",value:e.selectedTcpId,size:"small",variant:"filled",onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>S.jsx(Q.MenuItem,{value:n.id,children:n.id},n.id))}),S.jsx(rn,{labelValue:t("Jogging.Cartesian.Orientation.lb"),id:"orientation-select",labelId:"orientation-select",value:e.selectedOrientation,onChange:n=>{e.setSelectedOrientation(n.target.value)},disabled:e.isLocked,children:Lw.map(n=>S.jsx(Q.MenuItem,{value:n,children:r(n)},n))}),S.jsxs(rn,{labelValue:"Increment",labelId:"jogging-increment-select",size:"small",variant:"filled",value:((a=e.activeDiscreteIncrement)==null?void 0:a.id)||"continuous",onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[S.jsx(Q.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.selectedOrientation==="tool"?null:e.discreteIncrementOptions.map(n=>S.jsx(Q.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})}),Bw=Q.styled(Q.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 Fw(e,t,r=(a,n)=>a===n){return e.length===t.length&&e.every((a,n)=>r(a,t[n]))}const Nw=2;function kr(e,t,r,a,n){return r===1?Math.min(e+t,n):Math.max(e-t,a)}function vd(e,t){return e-t}function Rl(e,t){const{index:r}=e.reduce((a,n,s)=>{const o=Math.abs(t-n);return a===null||o<a.distance||o===a.distance?{distance:o,index:s}:a},null)??{};return r}function nn(e,t){if(t.current!==void 0&&e.changedTouches){const r=e;for(let a=0;a<r.changedTouches.length;a+=1){const n=r.changedTouches[a];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Tn(e,t,r){return(e-t)*100/(r-t)}function Dw(e,t,r){return(r-t)*e+t}function zw(e){if(Math.abs(e)<1){const r=e.toExponential().split("e-"),a=r[0].split(".")[1];return(a?a.length:0)+parseInt(r[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Gw(e,t,r){const a=Math.round((e-r)/t)*t+r;return Number(a.toFixed(zw(t)))}function _l({values:e,newValue:t,index:r}){const a=e.slice();return a[r]=t,a.sort(vd)}function sn({sliderRef:e,activeIndex:t,setActive:r}){var n,s,o;const a=dn(e.current);(!((n=e.current)!=null&&n.contains(a.activeElement))||Number((s=a==null?void 0:a.activeElement)==null?void 0:s.getAttribute("data-index"))!==t)&&((o=e.current)==null||o.querySelector(`[type="range"][data-index="${t}"]`).focus()),r&&r(t)}function on(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Fw(e,t):!1}const Hw={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}%`})}},qw=e=>e;let ln;function Al(){return ln===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?ln=CSS.supports("touch-action","none"):ln=!0),ln}function Jw(e){const{"aria-labelledby":t,defaultValue:r,disabled:a=!1,disableSwap:n=!1,isRtl:s=!1,marks:o=!1,max:i=100,min:l=0,name:c,onChange:d,onChangeCommitted:u,orientation:p="horizontal",rootRef:f,scale:y=qw,step:h=1,shiftStep:x=10,tabIndex:E,value:k}=e,D=G.useRef(void 0),[I,F]=G.useState(-1),[q,M]=G.useState(-1),[L,B]=G.useState(!1),g=G.useRef(0),$=G.useRef(null),[N,J]=Fp({controlled:k,default:r??l,name:"Slider"}),z=d&&((W,K,X)=>{const ce=W.nativeEvent||W,he=new ce.constructor(ce.type,ce);Object.defineProperty(he,"target",{writable:!0,value:{value:K,name:c}}),$.current=K,d(he,K,X)}),re=Array.isArray(N);let ee=re?N.slice().sort(vd):[N];ee=ee.map(W=>W==null?l:Br(W,l,i));const Re=o===!0&&h!==null?[...Array(Math.floor((i-l)/h)+1)].map((W,K)=>({value:l+h*K})):o||[],ie=Re.map(W=>W.value),[pe,ve]=G.useState(-1),le=G.useRef(null),qe=Kl(f,le),_t=W=>K=>{var ce;const X=Number(K.currentTarget.getAttribute("data-index"));Jo(K.target)&&ve(X),M(X),(ce=W==null?void 0:W.onFocus)==null||ce.call(W,K)},ra=W=>K=>{var X;Jo(K.target)||ve(-1),M(-1),(X=W==null?void 0:W.onBlur)==null||X.call(W,K)},Sr=(W,K)=>{const X=Number(W.currentTarget.getAttribute("data-index")),ce=ee[X],he=ie.indexOf(ce);let Z=K;if(Re&&h==null){const je=ie[ie.length-1];Z>=je?Z=je:Z<=ie[0]?Z=ie[0]:Z=Z<ce?ie[he-1]:ie[he+1]}if(Z=Br(Z,l,i),re){n&&(Z=Br(Z,ee[X-1]||-1/0,ee[X+1]||1/0));const je=Z;Z=_l({values:ee,newValue:Z,index:X});let De=X;n||(De=Z.indexOf(je)),sn({sliderRef:le,activeIndex:De})}J(Z),ve(X),z&&!on(Z,N)&&z(W,Z,X),u&&u(W,$.current??Z)},er=W=>K=>{var X;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(K.key)){K.preventDefault();const ce=Number(K.currentTarget.getAttribute("data-index")),he=ee[ce];let Z=null;if(h!=null){const je=K.shiftKey?x:h;switch(K.key){case"ArrowUp":Z=kr(he,je,1,l,i);break;case"ArrowRight":Z=kr(he,je,s?-1:1,l,i);break;case"ArrowDown":Z=kr(he,je,-1,l,i);break;case"ArrowLeft":Z=kr(he,je,s?1:-1,l,i);break;case"PageUp":Z=kr(he,x,1,l,i);break;case"PageDown":Z=kr(he,x,-1,l,i);break;case"Home":Z=l;break;case"End":Z=i;break}}else if(Re){const je=ie[ie.length-1],De=ie.indexOf(he),Te=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Ke=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Te.includes(K.key)?De===0?Z=ie[0]:Z=ie[De-1]:Ke.includes(K.key)&&(De===ie.length-1?Z=je:Z=ie[De+1])}Z!=null&&Sr(K,Z)}(X=W==null?void 0:W.onKeyDown)==null||X.call(W,K)};Wl(()=>{var W;a&&le.current.contains(document.activeElement)&&((W=document.activeElement)==null||W.blur())},[a]),a&&I!==-1&&F(-1),a&&pe!==-1&&ve(-1);const Bt=W=>K=>{var X;(X=W.onChange)==null||X.call(W,K),Sr(K,K.target.valueAsNumber)},nt=G.useRef(void 0);let dt=p;s&&p==="horizontal"&&(dt+="-reverse");const st=({finger:W,move:K=!1})=>{const{current:X}=le,{width:ce,height:he,bottom:Z,left:je}=X.getBoundingClientRect();let De;dt.startsWith("vertical")?De=(Z-W.y)/he:De=(W.x-je)/ce,dt.includes("-reverse")&&(De=1-De);let Te;if(Te=Dw(De,l,i),h)Te=Gw(Te,h,l);else{const tr=Rl(ie,Te);Te=ie[tr]}Te=Br(Te,l,i);let Ke=0;if(re){K?Ke=nt.current:Ke=Rl(ee,Te),n&&(Te=Br(Te,ee[Ke-1]||-1/0,ee[Ke+1]||1/0));const tr=Te;Te=_l({values:ee,newValue:Te,index:Ke}),n&&K||(Ke=Te.indexOf(tr),nt.current=Ke)}return{newValue:Te,activeIndex:Ke}},At=hs(W=>{const K=nn(W,D);if(!K)return;if(g.current+=1,W.type==="mousemove"&&W.buttons===0){et(W);return}const{newValue:X,activeIndex:ce}=st({finger:K,move:!0});sn({sliderRef:le,activeIndex:ce,setActive:F}),J(X),!L&&g.current>Nw&&B(!0),z&&!on(X,N)&&z(W,X,ce)}),et=hs(W=>{const K=nn(W,D);if(B(!1),!K)return;const{newValue:X}=st({finger:K,move:!0});F(-1),W.type==="touchend"&&M(-1),u&&u(W,$.current??X),D.current=void 0,Tt()}),Ne=hs(W=>{if(a)return;Al()||W.preventDefault();const K=W.changedTouches[0];K!=null&&(D.current=K.identifier);const X=nn(W,D);if(X!==!1){const{newValue:he,activeIndex:Z}=st({finger:X});sn({sliderRef:le,activeIndex:Z,setActive:F}),J(he),z&&!on(he,N)&&z(W,he,Z)}g.current=0;const ce=dn(le.current);ce.addEventListener("touchmove",At,{passive:!0}),ce.addEventListener("touchend",et,{passive:!0})}),Tt=G.useCallback(()=>{const W=dn(le.current);W.removeEventListener("mousemove",At),W.removeEventListener("mouseup",et),W.removeEventListener("touchmove",At),W.removeEventListener("touchend",et)},[et,At]);G.useEffect(()=>{const{current:W}=le;return W.addEventListener("touchstart",Ne,{passive:Al()}),()=>{W.removeEventListener("touchstart",Ne),Tt()}},[Tt,Ne]),G.useEffect(()=>{a&&Tt()},[a,Tt]);const Ft=W=>K=>{var he;if((he=W.onMouseDown)==null||he.call(W,K),a||K.defaultPrevented||K.button!==0)return;K.preventDefault();const X=nn(K,D);if(X!==!1){const{newValue:Z,activeIndex:je}=st({finger:X});sn({sliderRef:le,activeIndex:je,setActive:F}),J(Z),z&&!on(Z,N)&&z(K,Z,je)}g.current=0;const ce=dn(le.current);ce.addEventListener("mousemove",At,{passive:!0}),ce.addEventListener("mouseup",et)},yt=Tn(re?ee[0]:l,l,i),Fe=Tn(ee[ee.length-1],l,i)-yt,Nt=(W={})=>{const K=un(W),X={onMouseDown:Ft(K||{})},ce={...K,...X};return{...W,ref:qe,...ce}},Et=W=>K=>{var ce;(ce=W.onMouseOver)==null||ce.call(W,K);const X=Number(K.currentTarget.getAttribute("data-index"));M(X)},vr=W=>K=>{var X;(X=W.onMouseLeave)==null||X.call(W,K),M(-1)},xr=(W={})=>{const K=un(W),X={onMouseOver:Et(K||{}),onMouseLeave:vr(K||{})};return{...W,...K,...X}},Dt=W=>({pointerEvents:I!==-1&&I!==W?"none":void 0});let zt;return p==="vertical"&&(zt=s?"vertical-rl":"vertical-lr"),{active:I,axis:dt,axisProps:Hw,dragging:L,focusedThumbIndex:pe,getHiddenInputProps:(W={})=>{const K=un(W),X={onChange:Bt(K||{}),onFocus:_t(K||{}),onBlur:ra(K||{}),onKeyDown:er(K||{})},ce={...K,...X};return{tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":y(i),"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:a,...W,...ce,style:{...Np,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:zt}}},getRootProps:Nt,getThumbProps:xr,marks:Re,open:q,range:re,rootRef:qe,trackLeap:Fe,trackOffset:yt,values:ee,getThumbStyle:Dt}}function fn(e){return typeof e=="string"}const Ww=e=>!e||!fn(e);function Qw(e){return typeof e.main=="string"}function Kw(e,t=[]){if(!Qw(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function wo(e=[]){return([,t])=>t&&Kw(t,e)}function Yw(e){return Ba("MuiSlider",e)}const lt=Dl("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"]),Xw=e=>{const{open:t}=e;return{offset:Pt(t&&lt.valueLabelOpen),circle:lt.valueLabelCircle,label:lt.valueLabelLabel}};function xd(e){const{children:t,className:r,value:a}=e,n=Xw(e);return t?G.cloneElement(t,{className:Pt(t.props.className)},S.jsxs(G.Fragment,{children:[t.props.children,S.jsx("span",{className:Pt(n.offset,r),"aria-hidden":!0,children:S.jsx("span",{className:n.circle,children:S.jsx("span",{className:n.label,children:a})})})]})):null}process.env.NODE_ENV!=="production"&&(xd.propTypes={children:b.element.isRequired,className:b.string,value:b.node});function Tl(e){return e}const Zw=$t("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${We(r.color)}`],r.size!=="medium"&&t[`size${We(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(mr(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${lt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${lt.dragging}`]:{[`& .${lt.thumb}, & .${lt.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}}]}))),eC=$t("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}}]}),tC=$t("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(mr(({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:_a(e.palette[t].main,.62),borderColor:_a(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Ra(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Ra(e.palette[t].main,.5)})}}}))]}))),rC=$t("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${We(r.color)}`],r.size!=="medium"&&t[`thumbSize${We(r.size)}`]]}})(mr(({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%)"},[`&.${lt.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, &.${lt.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Us(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${lt.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Us(e.palette[t].main,.16)}`}}}}))]}))),Od=$t(xd,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(mr(({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%"},[`&.${lt.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%"},[`&.${lt.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"&&(Od.propTypes={children:b.element.isRequired,index:b.number.isRequired,open:b.bool.isRequired,value:b.node});const aC=$t("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ho(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(mr(({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}}]}))),nC=$t("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ho(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(mr(({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}}]}))),sC=e=>{const{disabled:t,dragging:r,marked:a,orientation:n,track:s,classes:o,color:i,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",a&&"marked",n==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",i&&`color${We(i)}`,l&&`size${We(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${We(l)}`,i&&`thumbColor${We(i)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return uo(c,Yw,o)},oC=({children:e})=>e,wd=G.forwardRef(function(t,r){const a=mo({props:t,name:"MuiSlider"}),n=Jp(),{"aria-label":s,"aria-valuetext":o,"aria-labelledby":i,component:l="span",components:c={},componentsProps:d={},color:u="primary",classes:p,className:f,disableSwap:y=!1,disabled:h=!1,getAriaLabel:x,getAriaValueText:E,marks:k=!1,max:D=100,min:I=0,name:F,onChange:q,onChangeCommitted:M,orientation:L="horizontal",shiftStep:B=10,size:g="medium",step:$=1,scale:N=Tl,slotProps:J,slots:z,tabIndex:re,track:ee="normal",value:Re,valueLabelDisplay:ie="off",valueLabelFormat:pe=Tl,...ve}=a,le={...a,isRtl:n,max:D,min:I,classes:p,disabled:h,disableSwap:y,orientation:L,marks:k,color:u,size:g,step:$,shiftStep:B,scale:N,track:ee,valueLabelDisplay:ie,valueLabelFormat:pe},{axisProps:qe,getRootProps:_t,getHiddenInputProps:ra,getThumbProps:Sr,open:er,active:Bt,axis:nt,focusedThumbIndex:dt,range:st,dragging:At,marks:et,values:Ne,trackOffset:Tt,trackLeap:Ft,getThumbStyle:yt}=Jw({...le,rootRef:r});le.marked=et.length>0&&et.some(Pe=>Pe.label),le.dragging=At,le.focusedThumbIndex=dt;const Fe=sC(le),Nt=(z==null?void 0:z.root)??c.Root??Zw,Et=(z==null?void 0:z.rail)??c.Rail??eC,vr=(z==null?void 0:z.track)??c.Track??tC,xr=(z==null?void 0:z.thumb)??c.Thumb??rC,Dt=(z==null?void 0:z.valueLabel)??c.ValueLabel??Od,zt=(z==null?void 0:z.mark)??c.Mark??aC,Or=(z==null?void 0:z.markLabel)??c.MarkLabel??nC,W=(z==null?void 0:z.input)??c.Input??"input",K=(J==null?void 0:J.root)??d.root,X=(J==null?void 0:J.rail)??d.rail,ce=(J==null?void 0:J.track)??d.track,he=(J==null?void 0:J.thumb)??d.thumb,Z=(J==null?void 0:J.valueLabel)??d.valueLabel,je=(J==null?void 0:J.mark)??d.mark,De=(J==null?void 0:J.markLabel)??d.markLabel,Te=(J==null?void 0:J.input)??d.input,Ke=Gt({elementType:Nt,getSlotProps:_t,externalSlotProps:K,externalForwardedProps:ve,additionalProps:{...Ww(Nt)&&{as:l}},ownerState:{...le,...K==null?void 0:K.ownerState},className:[Fe.root,f]}),tr=Gt({elementType:Et,externalSlotProps:X,ownerState:le,className:Fe.rail}),os=Gt({elementType:vr,externalSlotProps:ce,additionalProps:{style:{...qe[nt].offset(Tt),...qe[nt].leap(Ft)}},ownerState:{...le,...ce==null?void 0:ce.ownerState},className:Fe.track}),aa=Gt({elementType:xr,getSlotProps:Sr,externalSlotProps:he,ownerState:{...le,...he==null?void 0:he.ownerState},className:Fe.thumb}),na=Gt({elementType:Dt,externalSlotProps:Z,ownerState:{...le,...Z==null?void 0:Z.ownerState},className:Fe.valueLabel}),wr=Gt({elementType:zt,externalSlotProps:je,ownerState:le,className:Fe.mark}),bt=Gt({elementType:Or,externalSlotProps:De,ownerState:le,className:Fe.markLabel}),sa=Gt({elementType:W,getSlotProps:ra,externalSlotProps:Te,ownerState:le});return S.jsxs(Nt,{...Ke,children:[S.jsx(Et,{...tr}),S.jsx(vr,{...os}),et.filter(Pe=>Pe.value>=I&&Pe.value<=D).map((Pe,$e)=>{const oa=Tn(Pe.value,I,D),rr=qe[nt].offset(oa);let ut;return ee===!1?ut=Ne.includes(Pe.value):ut=ee==="normal"&&(st?Pe.value>=Ne[0]&&Pe.value<=Ne[Ne.length-1]:Pe.value<=Ne[0])||ee==="inverted"&&(st?Pe.value<=Ne[0]||Pe.value>=Ne[Ne.length-1]:Pe.value>=Ne[0]),S.jsxs(G.Fragment,{children:[S.jsx(zt,{"data-index":$e,...wr,...!fn(zt)&&{markActive:ut},style:{...rr,...wr.style},className:Pt(wr.className,ut&&Fe.markActive)}),Pe.label!=null?S.jsx(Or,{"aria-hidden":!0,"data-index":$e,...bt,...!fn(Or)&&{markLabelActive:ut},style:{...rr,...bt.style},className:Pt(Fe.markLabel,bt.className,ut&&Fe.markLabelActive),children:Pe.label}):null]},$e)}),Ne.map((Pe,$e)=>{const oa=Tn(Pe,I,D),rr=qe[nt].offset(oa),ut=ie==="off"?oC:Dt;return S.jsx(ut,{...!fn(ut)&&{valueLabelFormat:pe,valueLabelDisplay:ie,value:typeof pe=="function"?pe(N(Pe),$e):pe,index:$e,open:er===$e||Bt===$e||ie==="on",disabled:h},...na,children:S.jsx(xr,{"data-index":$e,...aa,className:Pt(Fe.thumb,aa.className,Bt===$e&&Fe.active,dt===$e&&Fe.focusVisible),style:{...rr,...yt($e),...aa.style},children:S.jsx(W,{"data-index":$e,"aria-label":x?x($e):s,"aria-valuenow":N(Pe),"aria-labelledby":i,"aria-valuetext":E?E(N(Pe),$e):o,value:Ne[$e],...sa})})},$e)})]})});process.env.NODE_ENV!=="production"&&(wd.propTypes={"aria-label":qo(b.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":b.string,"aria-valuetext":qo(b.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:b.node,classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["primary","secondary","error","info","success","warning"]),b.string]),components:b.shape({Input:b.elementType,Mark:b.elementType,MarkLabel:b.elementType,Rail:b.elementType,Root:b.elementType,Thumb:b.elementType,Track:b.elementType,ValueLabel:b.elementType}),componentsProps:b.shape({input:b.oneOfType([b.func,b.object]),mark:b.oneOfType([b.func,b.object]),markLabel:b.oneOfType([b.func,b.object]),rail:b.oneOfType([b.func,b.object]),root:b.oneOfType([b.func,b.object]),thumb:b.oneOfType([b.func,b.object]),track:b.oneOfType([b.func,b.object]),valueLabel:b.oneOfType([b.func,b.shape({children:b.element,className:b.string,open:b.bool,style:b.object,value:b.node,valueLabelDisplay:b.oneOf(["auto","off","on"])})])}),defaultValue:b.oneOfType([b.arrayOf(b.number),b.number]),disabled:b.bool,disableSwap:b.bool,getAriaLabel:b.func,getAriaValueText:b.func,marks:b.oneOfType([b.arrayOf(b.shape({label:b.node,value:b.number.isRequired})),b.bool]),max:b.number,min:b.number,name:b.string,onChange:b.func,onChangeCommitted:b.func,orientation:b.oneOf(["horizontal","vertical"]),scale:b.func,shiftStep:b.number,size:b.oneOfType([b.oneOf(["small","medium"]),b.string]),slotProps:b.shape({input:b.oneOfType([b.func,b.object]),mark:b.oneOfType([b.func,b.object]),markLabel:b.oneOfType([b.func,b.object]),rail:b.oneOfType([b.func,b.object]),root:b.oneOfType([b.func,b.object]),thumb:b.oneOfType([b.func,b.object]),track:b.oneOfType([b.func,b.object]),valueLabel:b.oneOfType([b.func,b.shape({children:b.element,className:b.string,open:b.bool,style:b.object,value:b.node,valueLabelDisplay:b.oneOf(["auto","off","on"])})])}),slots:b.shape({input:b.elementType,mark:b.elementType,markLabel:b.elementType,rail:b.elementType,root:b.elementType,thumb:b.elementType,track:b.elementType,valueLabel:b.elementType}),step:b.number,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),tabIndex:b.number,track:b.oneOf(["inverted","normal",!1]),value:b.oneOfType([b.arrayOf(b.number),b.number]),valueLabelDisplay:b.oneOf(["auto","off","on"]),valueLabelFormat:b.oneOfType([b.func,b.string])});var iC="[object Number]";function lC(e){return typeof e=="number"||ur(e)&&fr(e)==iC}const Cd=Le.observer(e=>{Q.useTheme();function t(r,a){a===e.velocity||!lC(a)||e.onVelocityChange(a)}return S.jsxs(Q.Stack,{direction:"row",gap:2,children:[S.jsx(wd,{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):S.jsx(Co,{value:e.velocity.toString()})]})});function Co({value:e,sx:t}){var a;const r=Q.useTheme();return S.jsx(Q.Stack,{direction:"row",justifyContent:"center",alignItems:"center",gap:"5px",sx:{padding:"6px 12px",background:(a=r.palette.backgroundPaperElevation)==null?void 0:a[8],borderRadius:"10px",minWidth:"111px",...t},children:S.jsx(Q.Typography,{component:"span",sx:{textAlign:"right",fontSize:"14px",opacity:.8,color:r.palette.text.primary,whiteSpace:"nowrap"},children:e})})}const Pd=Le.observer(({store:e})=>{const{t}=Be.useTranslation(),r=Le.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?a=>`v = ${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:a})}`:a=>`ω = ${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:a})}`}}));return S.jsx(Cd,{velocity:e.velocityInDisplayUnits,min:e.minVelocityInDisplayUnits,max:e.maxVelocityInDisplayUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,renderValue:a=>S.jsx(Co,{value:r.valueLabelFormat(a),sx:{minWidth:"111px",span:{transform:"translateY(-1.5px)"}}})})}),cC=Le.observer(({store:e,children:t})=>{var u,p,f,y,h,x,E,k,D;const{t:r}=Be.useTranslation(),a=Q.useTheme();function n(I,F){(F==="translate"||F==="rotate")&&e.setSelectedCartesianMotionType(F)}ic(()=>[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 s(I,F){const q=await e.activate(),M=q.motionStream.rapidlyChangingMotionState.tcp_pose,L=q.motionStream.rapidlyChangingMotionState.state.joint_position;M&&await e.withMotionLock(async()=>{try{e.setCurrentIncrementJog({axis:I.axis,direction:I.direction}),await e.jogger.runIncrementalCartesianMotion({currentTcpPose:M,currentJoints:L,coordSystemId:e.activeCoordSystemId,velocityInRelevantUnits:e.selectedCartesianMotionType==="translate"?e.translationVelocityMmPerSec:e.rotationVelocityRadsPerSec,axis:I.axis,direction:I.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:F.mm}:{type:"rotate",distanceRads:ir.degreesToRadians(F.degrees)}})}finally{e.setCurrentIncrementJog(null),await e.deactivate()}})}async function o(I){if(!e.isLocked){if(await e.activate(),e.activeDiscreteIncrement)return s(I,e.activeDiscreteIncrement);I.motionType==="translate"?await e.jogger.startTCPTranslation({axis:I.axis,direction:I.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:I.axis,direction:I.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function i(){e.isLocked||e.activeDiscreteIncrement||await e.deactivate()}const l=[{id:"x",colors:(f=(p=(u=a.componentsExt)==null?void 0:u.JoggingCartesian)==null?void 0:p.Axis)==null?void 0:f.X,icon:S.jsx(gx,{})},{id:"y",colors:(x=(h=(y=a.componentsExt)==null?void 0:y.JoggingCartesian)==null?void 0:h.Axis)==null?void 0:x.Y,icon:S.jsx(bx,{})},{id:"z",colors:(D=(k=(E=a.componentsExt)==null?void 0:E.JoggingCartesian)==null?void 0:k.Axis)==null?void 0:D.Z,icon:S.jsx(vx,{})}];function c(I){return r("General.mm.variable",{amount:I.toFixed(1)})}function d(I){return r("General.degree.variable",{amount:ir.radiansToDegrees(I).toFixed(1)})}return S.jsxs(Q.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[S.jsxs(Q.Stack,{gap:2,children:[S.jsx(kw,{store:e}),S.jsx(Pd,{store:e}),S.jsx(Q.Divider,{})]}),S.jsx(Q.Stack,{marginLeft:"auto",marginRight:"auto",gap:"24px",justifyContent:"center",sx:{flexGrow:"1"},children:S.jsxs(Q.Stack,{alignItems:"center",justifyContent:"center",gap:"24px",sx:{flexGrow:1},children:[S.jsxs(Bw,{value:e.selectedCartesianMotionType,onChange:n,exclusive:!0,"aria-label":r("Jogging.Cartesian.MotionType.lb"),sx:{justifyContent:"center"},children:[S.jsx(Q.ToggleButton,{value:"translate",children:r("Jogging.Cartesian.Translation.bt")}),S.jsx(Q.ToggleButton,{value:"rotate",children:r("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&l.map(I=>{var F;return S.jsx(Bs,{colors:I.colors,disabled:e.isLocked,activeJoggingDirection:((F=e.incrementJogInProgress)==null?void 0:F.axis)===I.id?e.incrementJogInProgress.direction:void 0,label:S.jsxs(S.Fragment,{children:[I.icon,S.jsx(Q.Typography,{sx:{fontSize:"24px",color:a.palette.text.primary},children:I.id.toUpperCase()})]}),getDisplayedValue:()=>{var q;return c(((q=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:q.position[I.id])||0)},startJogging:q=>o({axis:I.id,motionType:"translate",direction:q}),stopJogging:i},I.id)}),e.selectedCartesianMotionType==="rotate"&&l.map(I=>{var F;return S.jsx(Bs,{colors:I.colors,disabled:e.isLocked,activeJoggingDirection:((F=e.incrementJogInProgress)==null?void 0:F.axis)===I.id?e.incrementJogInProgress.direction:void 0,label:S.jsxs(S.Fragment,{children:[S.jsx(Ox,{}),S.jsx(Q.Typography,{sx:{fontSize:"24px",color:a.palette.text.primary},children:I.id.toUpperCase()})]}),getDisplayedValue:()=>{var q,M;return d(((M=(q=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:q.orientation)==null?void 0:M[I.id])||0)},startJogging:q=>o({axis:I.id,motionType:"rotate",direction:q}),stopJogging:i},I.id)})]})}),S.jsx(hd,{store:e}),t&&S.jsx(Q.Divider,{}),t]})}),dC=Le.observer(({store:e,children:t})=>{async function r(n){await e.activate(),await e.jogger.startJointRotation({joint:n.joint,direction:n.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function a(){await e.jogger.stop(),await e.deactivate()}return S.jsxs(Q.Stack,{flexGrow:1,gap:2,sx:{padding:"18px 24px"},children:[S.jsx(Pd,{store:e}),S.jsx(Q.Divider,{}),S.jsx(Q.Stack,{justifyContent:"center",alignItems:"stretch",sx:{flexGrow:"1"},id:"JointControls",children:S.jsx(Q.Stack,{alignItems:"center",gap:"24px",children:e.jogger.motionStream.joints.map(n=>{var l;const s=(l=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:l[n.index],o=(s==null?void 0:s.lower_limit)!==void 0?ir.radiansToDegrees(s.lower_limit):void 0,i=(s==null?void 0:s.upper_limit)!==void 0?ir.radiansToDegrees(s.upper_limit):void 0;return S.jsx(uc,{disabled:e.isLocked,lowerLimitDegs:o,upperLimitDegs:i,getValueDegs:()=>{const c=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[n.index];return c!==void 0?ir.radiansToDegrees(c):void 0},startJogging:c=>r({joint:n.index,direction:c}),stopJogging:a},`joint-${n.index}`)})})}),S.jsx(hd,{store:e}),t&&S.jsx(Q.Divider,{}),t]})}),uC=Jr(Le.observer(e=>{const t=io.isString(e.nova)?new ux({instanceUrl:e.nova}):e.nova,r=Le.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function a(){ke.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{let n=e.store;if(!n){const s=await t.connectJogger(e.motionGroupId);n=await ss.loadFor(s)}ke.runInAction(()=>{r.joggingStore=n}),e.onSetup&&e.onSetup(n)}catch(n){r.loadingError=n}}return te.useEffect(()=>(a(),e.store?()=>null:()=>{var n;(n=r.joggingStore)==null||n.dispose()}),[e.store,e.nova,e.motionGroupId]),te.useEffect(()=>{const n=r.joggingStore;n&&(e.locked?n.lock("external"):n.unlock("external"))},[r.joggingStore,e.locked]),S.jsx(Q.Stack,{sx:{maxWidth:"460px",minWidth:"320px",position:"relative",...e.sx},children:r.joggingStore?S.jsx(pC,{store:r.joggingStore,children:e.children}):S.jsx(bo,{message:"Loading jogging",error:r.loadingError})})})),pC=Le.observer(({store:e,children:t})=>{function r(){if(e.currentTab.id==="cartesian")return S.jsx(S.Fragment,{children:S.jsx(cC,{store:e,children:t})});if(e.currentTab.id==="joint")return S.jsx(S.Fragment,{children:S.jsx(dC,{store:e,children:t})})}return S.jsxs(Q.Stack,{flexGrow:1,sx:{overflow:"hidden"},children:[S.jsx(Q.Tabs,{value:e.tabIndex,onChange:e.onTabChange,variant:"fullWidth",children:e.tabs.map(a=>S.jsx(Q.Tab,{label:a.label,id:`jogging-tab-${a.id}`,"aria-controls":`jogging-tab-${a.id}`},a.id))}),S.jsx(Q.Stack,{flexGrow:1,position:"relative",sx:{overflowY:"auto",overflowX:"hidden"},children:r()})]})}),Vd=te.forwardRef(({label:e,value:t},r)=>{var i;const a=Q.useTheme(),[n,s]=te.useState(!1);async function o(){if(!r||!("current"in r))return console.warn("No copy target found"),!1;try{return await navigator.clipboard.writeText(t),console.log("Copied!"),s(!0),!0}catch(l){console.error(l);const c=window.getSelection(),d=document.createRange();d.selectNodeContents(r.current),c.removeAllRanges(),c.addRange(d)}return!1}return te.useEffect(()=>{if(!n)return;const l=setTimeout(()=>s(!1),3e3);return()=>{l&&clearTimeout(l)}},[n]),S.jsx(Q.Tooltip,{open:n,title:"Copied!",children:S.jsx(Q.Stack,{justifyContent:"center",sx:{height:"100%",boxSizing:"border-box",padding:"6px 12px",background:(i=a.palette.backgroundPaperElevation)==null?void 0:i[8],borderRadius:"10px",minWidth:"0",cursor:"pointer"},onClick:()=>o(),children:S.jsx(Q.Typography,{ref:r,align:"center",sx:{pointerEvents:"none",fontSize:"12px",color:a.palette.text.primary,whiteSpace:"nowrap",minWidth:0,textOverflow:"ellipsis",width:"100%",overflow:"hidden"},children:t})})})}),hC=Le.observer(({motionStream:e})=>{const t=te.useRef(null);function r(){const a=e.rapidlyChangingMotionState.tcp_pose;return a?ir.poseToWandelscriptString(a):""}return Wr(()=>{if(!t.current)return;const a=r();t.current.textContent!==a&&(t.current.textContent=a)}),S.jsx(Q.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:S.jsx(Vd,{value:r(),ref:t})})}),mC=Le.observer(({motionStream:e})=>{const t=te.useRef(null);function r(){const{joints:a}=e.rapidlyChangingMotionState.state.joint_position;return`[${a.map(n=>parseFloat(n.toFixed(4))).join(", ")}]`}return Wr(()=>{if(!t.current)return;const a=r();t.current.textContent!==a&&(t.current.textContent=a)}),S.jsx(Q.Stack,{alignItems:"left",spacing:2,sx:{flexGrow:1,minWidth:0,overflow:"hidden"},children:S.jsx(Vd,{value:r(),ref:t})})});function fC(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function gC({baseUrl:e=fC(),...t}){return S.jsxs(Q.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:[S.jsx(Q.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),S.jsxs(Q.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[S.jsx(Q.Typography,{color:"#fff",children:"Found no devices to connect to."}),S.jsx(Q.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),S.jsx(Q.DialogActions,{children:S.jsxs(Q.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[S.jsx(Q.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),S.jsx(Q.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const yC=Array(6).fill(2*Math.PI),El="0.0.0-semantically-released";function Po(e){let t=El;return El.startsWith("0.")&&(t=""),`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components${t?`@${t}`:""}/public/models/${e}.glb`}function bC(e){function t(r){return r.children.length===0?[r]:[r,...r.children.flatMap(a=>t(a))]}return t(e).filter(r=>_d(r))}function Rd(e){return e.name.endsWith("_FLG")}function _d(e){return/_J[0-9]+$/.test(e.name)}function SC(e,t){let r;function a(n){if(Rd(n)){if(r)throw Error(`Found multiple flange groups in robot model ${t}; first ${r.name} then ${n.name}. Only one _FLG group is allowed.`);r=n}_d(n),n.children.map(a)}if(a(e.scene),!r)throw Error(`No flange group found in robot model ${t}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}function Ad({rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:r,children:a}){js.Globals.assign({frameLoop:"always"});const n=te.useRef([]),s=te.useRef([]),{invalidate:o}=Jd.useThree();function i(p){p&&(s.current=bC(p),c(),o())}function l(p){n.current=p,u.start(Object.assign({},n.current))}function c(){const p=s.current.map((f,y)=>d[y].get());if(r)r(s.current,p);else for(const[f,y]of s.current.entries()){const h=t[f],x=h.theta||0,E=h.reverse_rotation_direction?-1:1;y.rotation.y=E*p[f]+x}}oc(()=>{const p=e.state.joint_position.joints.filter(f=>f!==void 0);requestAnimationFrame(()=>l(p))});const[d,u]=js.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{c(),o()},onResolve:()=>{c()}}));return S.jsx("group",{ref:i,children:a})}const Il="line",Ml="mesh";function vC({rapidlyChangingMotionState:e,dhParameters:t,...r}){const a=new ht.Matrix4;function n(i,l){const c=new ht.Vector3,d=new ht.Quaternion,u=new ht.Vector3;a.decompose(c,d,u);const p=c.clone(),f=new ht.Matrix4().makeRotationY(i.theta+l*(i.reverse_rotation_direction?-1:1)).multiply(new ht.Matrix4().makeTranslation(0,i.d/1e3,0)).multiply(new ht.Matrix4().makeTranslation(i.a/1e3,0,0)).multiply(new ht.Matrix4().makeRotationX(i.alpha));return a.multiply(f),a.decompose(c,d,u),{a:p,b:c}}function s(i,l,c,d){if(!t)return;const u=t[i];if(!u)return;const{a:p,b:f}=n(u,d);l.geometry.setPositions([p.toArray(),f.toArray()].flat()),c.position.set(f.x,f.y,f.z)}function o(i,l){a.identity(),i.forEach((c,d)=>{s(d,c.getObjectByName(Il),c.getObjectByName(Ml),l[d])})}return S.jsx(S.Fragment,{children:S.jsx(Ad,{rapidlyChangingMotionState:e,dhParameters:t,onRotationChanged:o,children:S.jsxs("group",{...r,name:"Scene",children:[S.jsxs("mesh",{children:[S.jsx("sphereGeometry",{args:[.01,32,32]}),S.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),t.map((i,l)=>{const{a:c,b:d}=n(i,e.state.joint_position.joints[l]??0),u=`dhrobot_J0${l}`;return S.jsxs("group",{name:u,children:[S.jsx(mt.Line,{name:Il,points:[c,d],color:"white",lineWidth:5}),S.jsxs("mesh",{name:Ml,position:d,children:[S.jsx("sphereGeometry",{args:[.01,32,32]}),S.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+l)]},u)})]})})})}const xC=console.warn;function OC(){return te.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&xC(e)}},[]),S.jsx(S.Fragment,{})}function wC(e){return e.type==="Mesh"}function CC({modelURL:e,flangeRef:t,postModelRender:r,...a}){const{gltf:n}=SC(mt.useGLTF(e),e.split("/").pop()||e),s=te.useCallback(i=>{i&&r&&r()},[e]);function o(i){return wC(i)?S.jsx("mesh",{name:i.name,geometry:i.geometry,material:i.material,position:i.position,rotation:i.rotation},i.uuid):S.jsx(js.animated.group,{name:i.name,position:i.position,rotation:i.rotation,ref:Rd(i)?t:void 0,children:i.children.map(o)},i.uuid)}return S.jsx("group",{...a,dispose:null,ref:s,children:o(n.scene)})}const PC=(e,t)=>{e.userData.isGhost||(e.traverse(r=>{if(r instanceof Ie.Mesh){r.material instanceof Ie.Material&&(r.material.colorWrite=!1);const a=r.clone(),n=r.clone();a.material=new Ie.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:Ie.DoubleSide}),a.userData.isGhost=!0,n.material=new Ie.MeshStandardMaterial({color:t,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:Ie.DoubleSide}),n.userData.isGhost=!0,r.parent&&(r.parent.add(a),r.parent.add(n))}}),e.userData.isGhost=!0)},VC=e=>{if(!e.userData.isGhost)return;const t=[];e.traverse(r=>{var a;r instanceof Ie.Mesh&&((a=r.userData)!=null&&a.isGhost?t.push(r):r.material instanceof Ie.Material&&(r.material.colorWrite=!0))}),t.forEach(r=>{r.parent&&r.parent.remove(r)}),e.userData.isGhost=!1},Td=Jr(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:a=Po,flangeRef:n,postModelRender:s,transparentColor:o,...i})=>{const[l,c]=te.useState(null),d=te.useCallback(p=>{c(p)},[]);te.useEffect(()=>{l&&(o?PC(l,o):VC(l))},[l,o]);const u=S.jsx(vC,{rapidlyChangingMotionState:e,dhParameters:r,...i});return S.jsxs(Xd.ErrorBoundary,{fallback:u,onError:p=>{console.error(p)},children:[S.jsx(te.Suspense,{fallback:u,children:S.jsx("group",{ref:d,children:S.jsx(Ad,{rapidlyChangingMotionState:e,dhParameters:r,children:S.jsx(CC,{modelURL:a(t),postModelRender:s,flangeRef:n,...i})})})}),S.jsx(OC,{})]})});function RC({connectedMotionGroup:e,getModel:t=Po,flangeRef:r,transparentColor:a,...n}){return e.dhParameters?S.jsx(Td,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,flangeRef:r,transparentColor:a,...n}):null}const _C=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("path",{d:"M5.248 21c-.334 0-.619-.116-.853-.35a1.153 1.153 0 0 1-.351-.848c0-.333.117-.616.351-.85.234-.233.519-.35.853-.35H7.24L4.558 9.87a2.881 2.881 0 0 1-1.126-1.042A2.77 2.77 0 0 1 3 7.317c0-.793.28-1.467.838-2.023a2.774 2.774 0 0 1 2.033-.834 2.71 2.71 0 0 1 1.728.585c.494.389.832.887 1.014 1.493h3.58V5.239c0-.22.076-.406.226-.555a.76.76 0 0 1 .558-.224c.136 0 .263.035.381.104.118.07.209.167.273.292v.14l1.835-1.702a.979.979 0 0 1 .52-.279.881.881 0 0 1 .58.091l4.01 1.85a.74.74 0 0 1 .36.364.537.537 0 0 1-.002.474.592.592 0 0 1-.366.323.657.657 0 0 1-.477-.039l-3.858-1.774L13.76 6.59v1.454l2.473 2.233 3.858-1.774a.648.648 0 0 1 .485-.03.571.571 0 0 1 .358.314.513.513 0 0 1 .01.482.79.79 0 0 1-.367.357l-4.011 1.882a.881.881 0 0 1-.58.09.979.979 0 0 1-.52-.278L13.63 9.638v.14a.92.92 0 0 1-.273.275.665.665 0 0 1-.381.12.76.76 0 0 1-.558-.224.752.752 0 0 1-.225-.555V8.096h-3.58a2.82 2.82 0 0 1-.215.54 2.552 2.552 0 0 1-.323.479l5.139 9.488h2.673c.335 0 .62.116.854.35.234.233.35.516.35.849 0 .332-.116.615-.35.849a1.167 1.167 0 0 1-.854.349H5.248Zm.623-12.385c.362 0 .67-.126.924-.378a1.25 1.25 0 0 0 .38-.92 1.25 1.25 0 0 0-.38-.92 1.261 1.261 0 0 0-.924-.379 1.26 1.26 0 0 0-.925.379 1.25 1.25 0 0 0-.38.92c0 .36.127.667.38.92.254.252.562.378.925.378Z"})),AC=te.forwardRef(_C),TC=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("path",{d:"m13.37 9.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95-7.66 7.66-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72 1.79-1.79Zm-.91-2.99.91-.91 2.6 2.6-.91.91-2.6-2.6Zm-2.25 10.24h3.74l-1.34-1.34-.04-.04h-2.5l-3.25-3.25 4.59-4.59.92.92L9.5 10.9l5.33 5.33v1.48H10.2v-1.35l.01.01ZM2 2v4.99h1.41V3.4h3.58V2H2ZM22.21 2h-4.98v1.41h3.59v3.58h1.4V2h-.01ZM20.81 20.65h-3.58v1.4h4.98v-4.99h-1.4v3.59ZM3.4 17.06H2v4.98h4.99v-1.4H3.4v-3.58Z"})),EC=te.forwardRef(TC),wt=Le.observer(({id:e,icon:t,color:r,title:a,name:n,explanation:s,literalValue:o,anchorOrigin:i,transformOrigin:l})=>{const c=Le.useLocalObservable(()=>({anchorEl:null,get isPopoverOpen(){return!!c.anchorEl},openPopover(d){c.anchorEl=d.currentTarget},closePopover(){c.anchorEl=null}}));return S.jsxs(S.Fragment,{children:[S.jsx(Q.Stack,{"aria-owns":c.isPopoverOpen?e:void 0,"aria-haspopup":"true",onMouseEnter:c.openPopover,onMouseLeave:c.closePopover,sx:{cursor:"pointer"},children:S.jsx(Q.SvgIcon,{component:t,sx:{color:r}})}),S.jsx(Q.Popover,{id:e,sx:{pointerEvents:"none"},open:c.isPopoverOpen,anchorEl:c.anchorEl,anchorOrigin:i??{vertical:"bottom",horizontal:"left"},transformOrigin:l??{vertical:"top",horizontal:"left"},onClose:c.closePopover,disableRestoreFocus:!0,children:S.jsxs(Q.Stack,{gap:"1rem",padding:2,maxWidth:"450px",sx:{wordWrap:"break-word"},children:[S.jsxs("div",{children:[a&&S.jsx(Q.Typography,{component:"span",fontSize:"14px",children:`${a}: `}),S.jsx(Q.Typography,{component:"span",color:r,fontWeight:"bold",fontSize:"14px",children:n})]}),S.jsx(Q.Typography,{fontSize:"14px",children:s}),o&&S.jsx(Q.Typography,{fontSize:"12px",children:o})]})})]})}),IC=Le.observer(({isVirtual:e,motionGroupId:t,anchorOrigin:r,transformOrigin:a})=>{const n=Q.useTheme(),{t:s}=Be.useTranslation();return e?S.jsx(wt,{id:"motion-group-virtual",icon:EC,color:n.palette.tertiary.main,name:s("SafetyBar.ControllerType.Virtual.lb"),explanation:S.jsxs(Be.Trans,{i18nKey:"SafetyBar.MotionGroup.Virtual.Explanation.lb",values:{motionGroupId:t},children:["Motion group ",S.jsx("code",{children:t})," refers to a virtual robot with no physical counterpart. It can be freely manipulated without special safety precautions."]}),anchorOrigin:r,transformOrigin:a}):S.jsx(wt,{id:"motion-group-physical",icon:AC,color:n.palette.primary.main,name:s("SafetyBar.ControllerType.Physical.lb"),explanation:S.jsx(Be.Trans,{i18nKey:"SafetyBar.MotionGroup.Physical.Explanation.lb",values:{motionGroupId:t},components:{code:S.jsx("code",{}),strong:S.jsx("strong",{})}}),anchorOrigin:r,transformOrigin:a})}),MC=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.306 2.768c0-.424.344-.768.768-.768h.406C19.53 2 22 4.551 22 7.699c0 3.237-2.51 5.587-5.31 5.703-.84 1.595-2.478 2.677-4.36 2.677a4.845 4.845 0 0 1-3.146-1.163c-.6 1.783 0 3.922 1.79 4.99 1.929 1.149 4.395.467 5.508-1.524l.212-.378a.75.75 0 1 1 1.308.732l-.231.414c-1.524 2.725-4.9 3.66-7.54 2.085-2.716-1.618-3.432-5.037-2.129-7.599a5.22 5.22 0 0 1-.73-2.677c0-2.192 1.335-4.063 3.212-4.793-1.195-1.427-3.29-1.96-5.08-.892-1.928 1.15-2.589 3.696-1.475 5.687l.231.413a.75.75 0 0 1-1.308.732l-.212-.377c-1.524-2.726-.62-6.211 2.02-7.785 2.716-1.619 5.943-.55 7.44 1.897l.13-.001c2.739 0 4.96 2.292 4.96 5.12 0 .284-.023.563-.066.834 1.795-.354 3.288-1.96 3.288-4.095 0-2.3-1.805-4.163-4.032-4.163h-.406a.768.768 0 0 1-.768-.768Zm.496 8.191c0 .286-.033.564-.094.831a3.62 3.62 0 0 1-.672 1.415 3.425 3.425 0 0 1-2.706 1.338 3.402 3.402 0 0 1-2.384-.98 3.598 3.598 0 0 1-.852-1.306 3.677 3.677 0 0 1-.235-1.298c0-1.623 1.046-2.994 2.48-3.435a3.37 3.37 0 0 1 1.522-.107c1.665.264 2.94 1.75 2.94 3.542Z"})),jC=te.forwardRef(MC),$C=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z",fill:"#fff",fillOpacity:.56})),UC=te.forwardRef($C),LC=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("path",{d:"M12.953 5.09a1.497 1.497 0 0 0-1.653-.518l-1.35.43a1.504 1.504 0 0 0-1.726-.376L2.858 6.97c-.736.321-1.06 1.155-.726 1.862.334.707 1.202 1.02 1.937.698l4.27-1.865 1.466 1.973v.402c0 .873-.627 1.63-1.512 1.827l-2.56.567c-1.329.295-2.27 1.431-2.27 2.74v.107c0 .26.22.469.489.469h11.117c1.329 0 2.618.435 3.656 1.233l1.665 1.28A1 1 0 0 0 22 17.47V11.062c0-.312-.108-.616-.308-.863l-3.415-4.218a1.5 1.5 0 0 0-1.618-.471l-.378.12-.866-.475a1.516 1.516 0 0 0-1.188-.114l-1.06.338-.214-.289Z"})),kC=te.forwardRef(LC),BC=Le.observer(({operationMode:e,anchorOrigin:t,transformOrigin:r})=>{const{t:a}=Be.useTranslation(),n=Q.useTheme();switch(e){case"OPERATION_MODE_AUTO":return S.jsx(wt,{id:"operation-mode-auto",icon:jC,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Automatic.ti"),color:"rgba(255, 255, 255, 0.57)",explanation:S.jsx(Be.Trans,{i18nKey:"SafetyBar.OperationMode.Auto.Explanation.lb",children:"The robot controller is in automatic operation mode. Automated movement without manual confirmation is possible in this mode."}),anchorOrigin:t,transformOrigin:r});case"OPERATION_MODE_MANUAL":case"OPERATION_MODE_MANUAL_T1":case"OPERATION_MODE_MANUAL_T2":return S.jsx(wt,{id:"operation-mode-manual",icon:kC,color:n.palette.warning.main,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Manual.lb"),explanation:S.jsx(Be.Trans,{i18nKey:"SafetyBar.OperationMode.Manual.Explanation.lb",children:"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:return S.jsx(wt,{id:"operation-mode-error",icon:UC,color:n.palette.warning.main,title:a("SafetyBar.OperationMode.ti"),name:a("SafetyBar.OperationMode.Error.lb"),explanation:S.jsx(Be.Trans,{i18nKey:"SafetyBar.OperationMode.Error.Explanation.lb",children:"The robot controller has entered an unexpected operation mode. Motion group movement may not be possible."}),literalValue:e,anchorOrigin:t,transformOrigin:r})}}),FC=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z"})),NC=te.forwardRef(FC),DC=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("path",{d:"M10.24 10.636 12 13.764l1.76-3.128h-3.52Z"}),G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.364 12a6.364 6.364 0 1 1-12.728 0 6.364 6.364 0 0 1 12.728 0ZM7.909 9.273 12 16.546l4.09-7.273H7.91Z"}),G.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.364 0a8.636 8.636 0 1 1-17.273 0 8.636 8.636 0 0 1 17.273 0Z"})),zC=te.forwardRef(DC),GC=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("path",{d:"M9.057 15.115c-1.681 0-3.111-.59-4.29-1.768C3.59 12.17 3 10.74 3 9.057c0-.29.021-.582.064-.876a4.1 4.1 0 0 1 .214-.844.78.78 0 0 1 .273-.36c.115-.077.244-.133.389-.168a.857.857 0 0 1 .437.008c.146.04.28.12.4.24l2.806 2.787 2.26-2.261-2.775-2.786a.903.903 0 0 1-.241-.405.875.875 0 0 1-.008-.442 1.13 1.13 0 0 1 .174-.389.82.82 0 0 1 .355-.273c.268-.107.548-.182.838-.224.29-.043.581-.064.871-.064 1.682 0 3.112.59 4.29 1.768 1.179 1.178 1.768 2.608 1.768 4.29 0 .444-.042.858-.126 1.241-.084.384-.21.755-.377 1.113l5.726 5.692A2.2 2.2 0 0 1 21 18.721a2.2 2.2 0 0 1-.662 1.617A2.2 2.2 0 0 1 18.72 21a2.173 2.173 0 0 1-1.617-.679l-5.692-5.709c-.372.161-.75.285-1.133.372-.383.087-.79.13-1.222.13Z",fill:"#fff",fillOpacity:.56})),HC=te.forwardRef(GC),qC=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("path",{d:"m10.6 13.8-2.15-2.15a.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275.948.948 0 0 0-.275.7c0 .283.092.517.275.7L9.9 15.9c.2.2.433.3.7.3.267 0 .5-.1.7-.3l5.65-5.65a.948.948 0 0 0 .275-.7.948.948 0 0 0-.275-.7.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275L10.6 13.8ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),JC=te.forwardRef(qC),WC=({title:e,titleId:t,...r},a)=>G.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...r},e?G.createElement("title",{id:t},e):null,G.createElement("path",{d:"M9 16h6c.283 0 .52-.096.713-.287A.968.968 0 0 0 16 15V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 15 8H9a.968.968 0 0 0-.713.287A.968.968 0 0 0 8 9v6c0 .283.096.52.287.713.192.191.43.287.713.287Zm3 6a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),QC=te.forwardRef(WC),KC=Le.observer(({safetyState:e,anchorOrigin:t,transformOrigin:r})=>{const{t:a}=Be.useTranslation(),n=Q.useTheme();switch(e){case"SAFETY_STATE_NORMAL":return S.jsx(wt,{id:"safety-state-normal",title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Normal.lb"),icon:JC,color:"rgba(255, 255, 255, 0.57)",explanation:S.jsx(Be.Trans,{i18nKey:"SafetyBar.SafetyState.Normal.Explanation.lb",children:"The robot controller is in a normal safety state. Movement is not prevented by this state."}),anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_DEVICE_EMERGENCY_STOP":case"SAFETY_STATE_ROBOT_EMERGENCY_STOP":return S.jsx(wt,{id:"safety-state-estop",title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Estop.lb"),icon:zC,color:n.palette.error.main,explanation:S.jsx(Be.Trans,{i18nKey:"SafetyBar.StopState.Estop.Explanation.lb",children:"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_STOP_0":case"SAFETY_STATE_STOP_1":case"SAFETY_STATE_STOP_2":case"SAFETY_STATE_PROTECTIVE_STOP":case"SAFETY_STATE_STOP":return S.jsx(wt,{id:"safety-state-stop",icon:QC,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Stop.lb"),color:n.palette.warning.main,explanation:S.jsx(Be.Trans,{i18nKey:"SafetyBar.SafetyState.Stop.Explanation.lb",children:"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_REDUCED":case"SAFETY_STATE_MASTERING":case"SAFETY_STATE_CONFIRM_SAFETY":case"SAFETY_STATE_OPERATOR_SAFETY":case"SAFETY_STATE_RECOVERY":case"SAFETY_STATE_VIOLATION":return S.jsx(wt,{id:"safety-state-manual-action-required",icon:HC,color:n.palette.warning.main,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.ManualActionRequired.lb"),explanation:S.jsx(Be.Trans,{i18nKey:"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb",children:"The robot controller has entered a safety state requiring manual action to resolve."}),literalValue:e,anchorOrigin:t,transformOrigin:r});case"SAFETY_STATE_UNKNOWN":case"SAFETY_STATE_FAULT":return S.jsx(wt,{id:"safety-state-error",icon:NC,color:n.palette.error.main,title:a("SafetyBar.SafetyState.ti"),name:a("SafetyBar.SafetyState.Error.lb"),explanation:S.jsx(Be.Trans,{i18nKey:"SafetyBar.SafetyState.Error.Explanation.lb",children:"The robot controller has entered an unexpected safety state."}),literalValue:e,anchorOrigin:t,transformOrigin:r});default:hx(e,`Unknown safety state ${e}`)}}),YC=Jr(Le.observer(e=>S.jsxs(Q.Stack,{direction:"row",gap:"8px",alignItems:"center",sx:{height:"24px"},children:[S.jsx(KC,{safetyState:e.safetyState,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin}),S.jsx(Q.Divider,{orientation:"vertical",flexItem:!0}),S.jsx(BC,{operationMode:e.operationMode,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin}),S.jsx(Q.Divider,{orientation:"vertical",flexItem:!0}),S.jsx(IC,{isVirtual:e.isVirtual,motionGroupId:e.motionGroupId,anchorOrigin:e.anchorOrigin,transformOrigin:e.transformOrigin})]}))),XC=Q.styled(Q.Fab,{shouldForwardProp:e=>e!=="selected"})(({theme:e})=>{var t,r,a;return{borderRadius:"20px","&:hover":{background:(t=e.palette.backgroundPaperElevation)==null?void 0:t[7]},variants:[{props:({selected:n})=>!n,style:{background:(r=e.palette.backgroundPaperElevation)==null?void 0:r[0],color:e.palette.action.disabled,"> img":{opacity:.4}}},{props:({selected:n})=>n,style:{background:(a=e.palette.backgroundPaperElevation)==null?void 0:a[11],border:`1px solid ${e.palette.divider}`,color:e.palette.primary.contrastText}}]}}),ZC=te.forwardRef((e,t)=>S.jsx(XC,{ref:t,selected:e.selected,...e,color:"secondary",variant:"circular"})),eP={$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"},tP=te.lazy(()=>import("@monaco-editor/react"));let Ms=null;async function rP(){if(!Ms){const[{createHighlighter:e},{shikiToMonaco:t}]=await Promise.all([import("shiki"),import("@shikijs/monaco")]);Ms={shiki:await e({langs:[eP],themes:["dark-plus","light-plus"]}),shikiToMonaco:t}}return Ms}const aP=Jr(e=>{const t=Q.useTheme(),[r,a]=te.useState("dark-plus"),n=t.palette.mode==="dark"?"dark-plus":"light-plus";async function s(o){var c,d;o.languages.register({id:"wandelscript"}),o.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]});const{shiki:i,shikiToMonaco:l}=await rP();l(i,o),o.editor.defineTheme(n,((d=(c=t.componentsExt)==null?void 0:c.WandelscriptEditor)==null?void 0:d.monacoTheme)??{base:t.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:{}}),e.monacoSetup&&e.monacoSetup(o),a(n)}return S.jsx(te.Suspense,{fallback:S.jsx(bo,{}),children:S.jsx(tP,{value:e.code,onMount:(o,i)=>{s(i)},onChange:e.onChange,defaultLanguage:"wandelscript",theme:r,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}})})});function Ed(){var t,r,a,n,s,o,i;const e=Q.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:{MuiCssBaseline:{styleOverrides:{"html, body, *":{scrollbarWidth:"none",msOverflowStyle:"none"},"html:hover, body:hover, *:hover":{scrollbarWidth:"thin",scrollbarColor:`${e.palette.divider} transparent`}}},MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:"10px"}},variants:[{props:{color:"secondary",variant:"contained"},style:{border:`1px solid ${e.palette.divider}`,background:(a=(r=(t=e.paletteExt)==null?void 0:t.secondary)==null?void 0:r.tonal)==null?void 0:a.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:(n=e.palette.backgroundPaperElevation)==null?void 0:n[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:(o=(s=e.paletteExt)==null?void 0:s.secondary)==null?void 0:o.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":Q.rgbToHex(((i=e.palette.backgroundPaperElevation)==null?void 0:i[5])??""),"editor.foreground":"#d4d4d4","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#e9e9e911"}}}}}}function nP(){const e=Ed();return e.palette.mode="light",e}function sP(e){var a,n,s,o;let t=!0;((a=e.palette)==null?void 0:a.mode)==="light"?t=!1:((n=e.palette)==null?void 0:n.mode)!=="dark"&&(t=!(typeof window<"u"&&((o=(s=window.matchMedia)==null?void 0:s.call(window,"(prefers-color-scheme: light)"))==null?void 0:o.matches)));const r=t?Ed():nP();return rc(r,e)}exports.JoggingCartesianAxisControl=Bs;exports.JoggingJointRotationControl=uc;exports.JoggingPanel=uC;exports.JoggingStore=ss;exports.LoadingCover=bo;exports.LoadingErrorMessage=rd;exports.NoMotionGroupModal=gC;exports.PoseCartesianValues=hC;exports.PoseJointValues=mC;exports.PresetEnvironment=ru;exports.Robot=RC;exports.SafetyBar=YC;exports.SafetyZonesRenderer=su;exports.SelectableFab=ZC;exports.SupportedRobot=Td;exports.TrajectoryRenderer=ou;exports.VelocitySlider=Cd;exports.VelocitySliderLabel=Co;exports.WandelscriptEditor=aP;exports.createNovaMuiTheme=sP;exports.defaultAxisConfig=yC;exports.defaultGetModel=Po;exports.useAnimationFrame=Wr;exports.useAutorun=oc;exports.useMounted=Gn;exports.useReaction=ic;
94
115
  //# sourceMappingURL=index.cjs.map