@wandelbots/wandelbots-js-react-components 1.11.4 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +28 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10718 -10912
- package/dist/index.js.map +1 -1
- package/dist/src/components/CopyableText.d.ts +1 -1
- package/dist/src/components/LoadingButton.d.ts +1 -1
- package/dist/src/externalizeComponent.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/themes/theming.d.ts +10 -22
- package/dist/src/themes/theming.d.ts.map +1 -1
- package/dist/stories/JoggingPanel.stories.d.ts.map +1 -1
- package/dist/stories/MuiSamples/Accordion.d.ts +2 -0
- package/dist/stories/MuiSamples/Accordion.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Alert.d.ts +3 -0
- package/dist/stories/MuiSamples/Alert.d.ts.map +1 -0
- package/dist/stories/MuiSamples/AppBar.d.ts +7 -0
- package/dist/stories/MuiSamples/AppBar.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Avatar.d.ts +2 -0
- package/dist/stories/MuiSamples/Avatar.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Badge.d.ts +2 -0
- package/dist/stories/MuiSamples/Badge.d.ts.map +1 -0
- package/dist/stories/MuiSamples/BottomNavigation.d.ts +2 -0
- package/dist/stories/MuiSamples/BottomNavigation.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Button.d.ts +2 -0
- package/dist/stories/MuiSamples/Button.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Card.d.ts +2 -0
- package/dist/stories/MuiSamples/Card.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Checkboxes.d.ts +2 -0
- package/dist/stories/MuiSamples/Checkboxes.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Chip.d.ts +2 -0
- package/dist/stories/MuiSamples/Chip.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Dialog.d.ts +7 -0
- package/dist/stories/MuiSamples/Dialog.d.ts.map +1 -0
- package/dist/stories/MuiSamples/FAB.d.ts +2 -0
- package/dist/stories/MuiSamples/FAB.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Icon.d.ts +2 -0
- package/dist/stories/MuiSamples/Icon.d.ts.map +1 -0
- package/dist/stories/MuiSamples/List.d.ts +2 -0
- package/dist/stories/MuiSamples/List.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Menu.d.ts +2 -0
- package/dist/stories/MuiSamples/Menu.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Progress.d.ts +2 -0
- package/dist/stories/MuiSamples/Progress.d.ts.map +1 -0
- package/dist/stories/MuiSamples/RadioGroup.d.ts +2 -0
- package/dist/stories/MuiSamples/RadioGroup.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Select.d.ts +2 -0
- package/dist/stories/MuiSamples/Select.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Slider.d.ts +2 -0
- package/dist/stories/MuiSamples/Slider.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Snackbar.d.ts +2 -0
- package/dist/stories/MuiSamples/Snackbar.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Stepper.d.ts +2 -0
- package/dist/stories/MuiSamples/Stepper.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Switch.d.ts +2 -0
- package/dist/stories/MuiSamples/Switch.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Table.d.ts +2 -0
- package/dist/stories/MuiSamples/Table.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Tabs.d.ts +2 -0
- package/dist/stories/MuiSamples/Tabs.d.ts.map +1 -0
- package/dist/stories/MuiSamples/TextField.d.ts +2 -0
- package/dist/stories/MuiSamples/TextField.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Tooltip.d.ts +2 -0
- package/dist/stories/MuiSamples/Tooltip.d.ts.map +1 -0
- package/dist/stories/MuiSamples/Typography.d.ts +2 -0
- package/dist/stories/MuiSamples/Typography.d.ts.map +1 -0
- package/dist/stories/MuiSamples/index.d.ts +8 -0
- package/dist/stories/MuiSamples/index.d.ts.map +1 -0
- package/dist/stories/defaultTheme.stories.d.ts +7 -0
- package/dist/stories/defaultTheme.stories.d.ts.map +1 -0
- package/dist/stories/theming.stories.d.ts +7 -0
- package/dist/stories/theming.stories.d.ts.map +1 -0
- package/package.json +13 -14
- package/src/components/CopyableText.tsx +1 -1
- package/src/components/jogging/JoggingCartesianValues.tsx +1 -1
- package/src/components/jogging/JoggingJointValues.tsx +1 -1
- package/src/externalizeComponent.tsx +2 -14
- package/src/index.ts +1 -0
- package/src/themes/themeTypes.d.ts +4 -4
- package/src/themes/theming.ts +28 -30
- package/dist/src/themes/color.d.ts +0 -10
- package/dist/src/themes/color.d.ts.map +0 -1
- package/dist/stories/novaTheme.stories.d.ts +0 -5
- package/dist/stories/novaTheme.stories.d.ts.map +0 -1
- package/src/themes/color.tsx +0 -84
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("react"),Ba=require("@monaco-editor/react"),pc=require("shiki"),gc=require("@shikijs/monaco"),L=require("@mui/material"),Ft=require("react-i18next"),yc=require("i18next-browser-languagedetector"),S=require("@react-spring/three"),ie=require("@react-three/drei"),_c=require("@react-three/fiber"),br=require("mobx"),vt=require("three"),bc=require("react-error-boundary"),xc=require("three-stdlib"),He=require("mobx-react-lite"),m=require("prop-types"),Sc=require("@emotion/styled"),mr=require("@emotion/react"),Rt=require("@wandelbots/wandelbots-js");function wi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const N=wi(Z),Ce=wi(vt);function Ct(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Go={exports:{}},kr={};/**
|
|
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
|
|
9
|
+
*/var Ja;function vc(){if(Ja)return kr;Ja=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,a={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,h={},f=null,b=null;u!==void 0&&(f=""+u),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(b=c.ref);for(d in c)n.call(c,d)&&!a.hasOwnProperty(d)&&(h[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)h[d]===void 0&&(h[d]=c[d]);return{$$typeof:t,type:l,key:f,ref:b,props:h,_owner:o.current}}return kr.Fragment=r,kr.jsx=i,kr.jsxs=i,kr}var $r={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,30 +14,30 @@
|
|
|
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
|
|
18
|
-
`+
|
|
17
|
+
*/var Va;function wc(){return Va||(Va=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"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=Symbol.iterator,_="@@iterator";function g(p){if(p===null||typeof p!="object")return null;var w=y&&p[y]||p[_];return typeof w=="function"?w:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(p){{for(var w=arguments.length,M=new Array(w>1?w-1:0),$=1;$<w;$++)M[$-1]=arguments[$];C("error",p,M)}}function C(p,w,M){{var $=v.ReactDebugCurrentFrame,U=$.getStackAddendum();U!==""&&(w+="%s",M=M.concat([U]));var re=M.map(function(V){return String(V)});re.unshift("Warning: "+w),Function.prototype.apply.call(console[p],console,re)}}var k=!1,j=!1,P=!1,O=!1,z=!1,le;le=Symbol.for("react.module.reference");function ue(p){return!!(typeof p=="string"||typeof p=="function"||p===n||p===a||z||p===o||p===u||p===d||O||p===b||k||j||P||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===h||p.$$typeof===i||p.$$typeof===l||p.$$typeof===c||p.$$typeof===le||p.getModuleId!==void 0))}function D(p,w,M){var $=p.displayName;if($)return $;var U=w.displayName||w.name||"";return U!==""?M+"("+U+")":M}function q(p){return p.displayName||"Context"}function G(p){if(p==null)return null;if(typeof p.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case l:var w=p;return q(w)+".Consumer";case i:var M=p;return q(M._context)+".Provider";case c:return D(p,p.render,"ForwardRef");case h:var $=p.displayName||null;return $!==null?$:G(p.type)||"Memo";case f:{var U=p,re=U._payload,V=U._init;try{return G(V(re))}catch{return null}}}return null}var X=Object.assign,K=0,we,ce,Q,Ae,Ie,ot,bt;function Ke(){}Ke.__reactDisabledLog=!0;function Re(){{if(K===0){we=console.log,ce=console.info,Q=console.warn,Ae=console.error,Ie=console.group,ot=console.groupCollapsed,bt=console.groupEnd;var p={configurable:!0,enumerable:!0,value:Ke,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}K++}}function Tt(){{if(K--,K===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:X({},p,{value:we}),info:X({},p,{value:ce}),warn:X({},p,{value:Q}),error:X({},p,{value:Ae}),group:X({},p,{value:Ie}),groupCollapsed:X({},p,{value:ot}),groupEnd:X({},p,{value:bt})})}K<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ct=v.ReactCurrentDispatcher,qe;function Be(p,w,M){{if(qe===void 0)try{throw Error()}catch(U){var $=U.stack.trim().match(/\n( *(at )?)/);qe=$&&$[1]||""}return`
|
|
18
|
+
`+qe+p}}var ut=!1,dt;{var Ut=typeof WeakMap=="function"?WeakMap:Map;dt=new Ut}function xt(p,w){if(!p||ut)return"";{var M=dt.get(p);if(M!==void 0)return M}var $;ut=!0;var U=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=ct.current,ct.current=null,Re();try{if(w){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(Ne){$=Ne}Reflect.construct(p,[],V)}else{try{V.call()}catch(Ne){$=Ne}p.call(V.prototype)}}else{try{throw Error()}catch(Ne){$=Ne}p()}}catch(Ne){if(Ne&&$&&typeof Ne.stack=="string"){for(var B=Ne.stack.split(`
|
|
19
19
|
`),Me=$.stack.split(`
|
|
20
|
-
`),ge=B.length-1,
|
|
21
|
-
`+B[ge].replace(" at new "," at ");return p.displayName&&
|
|
20
|
+
`),ge=B.length-1,xe=Me.length-1;ge>=1&&xe>=0&&B[ge]!==Me[xe];)xe--;for(;ge>=1&&xe>=0;ge--,xe--)if(B[ge]!==Me[xe]){if(ge!==1||xe!==1)do if(ge--,xe--,xe<0||B[ge]!==Me[xe]){var Ye=`
|
|
21
|
+
`+B[ge].replace(" at new "," at ");return p.displayName&&Ye.includes("<anonymous>")&&(Ye=Ye.replace("<anonymous>",p.displayName)),typeof p=="function"&&dt.set(p,Ye),Ye}while(ge>=1&&xe>=0);break}}}finally{ut=!1,ct.current=re,Tt(),Error.prepareStackTrace=U}var ar=p?p.displayName||p.name:"",Gt=ar?Be(ar):"";return typeof p=="function"&&dt.set(p,Gt),Gt}function Je(p,w,M){return xt(p,!1)}function E(p){var w=p.prototype;return!!(w&&w.isReactComponent)}function ee(p,w,M){if(p==null)return"";if(typeof p=="function")return xt(p,E(p));if(typeof p=="string")return Be(p);switch(p){case u:return Be("Suspense");case d:return Be("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case c:return Je(p.render);case h:return ee(p.type,w,M);case f:{var $=p,U=$._payload,re=$._init;try{return ee(re(U),w,M)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,Le={},ke=v.ReactDebugCurrentFrame;function Et(p){if(p){var w=p._owner,M=ee(p.type,p._source,w?w.type:null);ke.setExtraStackFrame(M)}else ke.setExtraStackFrame(null)}function je(p,w,M,$,U){{var re=Function.call.bind(he);for(var V in p)if(re(p,V)){var B=void 0;try{if(typeof p[V]!="function"){var Me=Error(($||"React class")+": "+M+" type `"+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[V]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Me.name="Invariant Violation",Me}B=p[V](w,V,$,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ge){B=ge}B&&!(B instanceof Error)&&(Et(U),R("%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).",$||"React class",M,V,typeof B),Et(null)),B instanceof Error&&!(B.message in Le)&&(Le[B.message]=!0,Et(U),R("Failed %s type: %s",M,B.message),Et(null))}}}var Mt=Array.isArray;function Bt(p){return Mt(p)}function Ar(p){{var w=typeof Symbol=="function"&&Symbol.toStringTag,M=w&&p[Symbol.toStringTag]||p.constructor.name||"Object";return M}}function Pr(p){try{return Or(p),!1}catch{return!0}}function Or(p){return""+p}function tr(p){if(Pr(p))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ar(p)),Or(p)}var at=v.ReactCurrentOwner,T={key:!0,ref:!0,__self:!0,__source:!0},I,F,W;W={};function Y(p){if(he.call(p,"ref")){var w=Object.getOwnPropertyDescriptor(p,"ref").get;if(w&&w.isReactWarning)return!1}return p.ref!==void 0}function H(p){if(he.call(p,"key")){var w=Object.getOwnPropertyDescriptor(p,"key").get;if(w&&w.isReactWarning)return!1}return p.key!==void 0}function Ve(p,w){if(typeof p.ref=="string"&&at.current&&w&&at.current.stateNode!==w){var M=G(at.current.type);W[M]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(at.current.type),p.ref),W[M]=!0)}}function Xe(p,w){{var M=function(){I||(I=!0,R("%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)",w))};M.isReactWarning=!0,Object.defineProperty(p,"key",{get:M,configurable:!0})}}function te(p,w){{var M=function(){F||(F=!0,R("%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)",w))};M.isReactWarning=!0,Object.defineProperty(p,"ref",{get:M,configurable:!0})}}var $e=function(p,w,M,$,U,re,V){var B={$$typeof:t,type:p,key:w,ref:M,props:V,_owner:re};return B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(B,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(B,"_source",{configurable:!1,enumerable:!1,writable:!1,value:U}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B};function It(p,w,M,$,U){{var re,V={},B=null,Me=null;M!==void 0&&(tr(M),B=""+M),H(w)&&(tr(w.key),B=""+w.key),Y(w)&&(Me=w.ref,Ve(w,U));for(re in w)he.call(w,re)&&!T.hasOwnProperty(re)&&(V[re]=w[re]);if(p&&p.defaultProps){var ge=p.defaultProps;for(re in ge)V[re]===void 0&&(V[re]=ge[re])}if(B||Me){var xe=typeof p=="function"?p.displayName||p.name||"Unknown":p;B&&Xe(V,xe),Me&&te(V,xe)}return $e(p,B,Me,U,$,at.current,V)}}var rr=v.ReactCurrentOwner,Tr=v.ReactDebugCurrentFrame;function St(p){if(p){var w=p._owner,M=ee(p.type,p._source,w?w.type:null);Tr.setExtraStackFrame(M)}else Tr.setExtraStackFrame(null)}var Jt;Jt=!1;function Vt(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function Er(){{if(rr.current){var p=G(rr.current.type);if(p)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+p+"`."}return""}}function Mr(p){return""}var
|
|
23
|
+
Check the render method of \``+p+"`."}return""}}function Mr(p){return""}var dn={};function Ir(p){{var w=Er();if(!w){var M=typeof p=="string"?p:p.displayName||p.name;M&&(w=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+M+">.")}return w}}function
|
|
25
|
+
Check the top-level render call using <`+M+">.")}return w}}function nr(p,w){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var M=Ir(w);if(dn[M])return;dn[M]=!0;var $="";p&&p._owner&&p._owner!==rr.current&&($=" It was passed a child from "+G(p._owner.type)+"."),St(p),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,$),St(null)}}function or(p,w){{if(typeof p!="object")return;if(Bt(p))for(var M=0;M<p.length;M++){var $=p[M];Vt($)&&nr($,w)}else if(Vt(p))p._store&&(p._store.validated=!0);else if(p){var U=g(p);if(typeof U=="function"&&U!==p.entries)for(var re=U.call(p),V;!(V=re.next()).done;)Vt(V.value)&&nr(V.value,w)}}}function xo(p){{var w=p.type;if(w==null||typeof w=="string")return;var M;if(typeof w=="function")M=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===c||w.$$typeof===h))M=w.propTypes;else return;if(M){var $=G(w);je(M,p.props,"prop",$,p)}else if(w.PropTypes!==void 0&&!Jt){Jt=!0;var U=G(w);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",U||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function So(p){{for(var w=Object.keys(p.props),M=0;M<w.length;M++){var $=w[M];if($!=="children"&&$!=="key"){St(p),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),St(null);break}}p.ref!==null&&(St(p),R("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}var fn={};function hn(p,w,M,$,U,re){{var V=ue(p);if(!V){var B="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(B+=" 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 Me=Mr();Me?B+=Me:B+=Er();var ge;p===null?ge="null":Bt(p)?ge="array":p!==void 0&&p.$$typeof===t?(ge="<"+(G(p.type)||"Unknown")+" />",B=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof p,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,B)}var xe=It(p,w,M,U,re);if(xe==null)return xe;if(V){var Ye=w.children;if(Ye!==void 0)if($)if(Bt(Ye)){for(var ar=0;ar<Ye.length;ar++)or(Ye[ar],p);Object.freeze&&Object.freeze(Ye)}else R("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 or(Ye,p)}if(he.call(w,"key")){var Gt=G(p),Ne=Object.keys(w).filter(function(mc){return mc!=="key"}),jo=Ne.length>0?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}";if(!fn[Gt+jo]){var hc=Ne.length>0?"{"+Ne.join(": ..., ")+": ...}":"{}";R(`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} />`,Mo,Ht,Ic,Ht),mn[Ht+Mo]=!0}}return p===n?Ao(ve):Po(ve),ve}}function Oo(p,w,M){return pn(p,w,M,!0)}function To(p,w,M){return pn(p,w,M,!1)}var Lr=To,Eo=Oo;$r.Fragment=n,$r.jsx=Lr,$r.jsxs=Eo}()),$r}process.env.NODE_ENV==="production"?Yo.exports=Jc():Yo.exports=Vc();var s=Yo.exports;const Gc={$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)\\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"};function Wr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const zc=Object.freeze(Object.defineProperty({__proto__:null,default:Wr},Symbol.toStringTag,{value:"Module"})),Wc="$$material";function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P.apply(null,arguments)}function De(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var Hc=!1;function Kc(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function qc(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Xc=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Hc:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(qc(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Kc(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Te="-ms-",$n="-moz-",ne="-webkit-",Di="comm",Sa="rule",wa="decl",Yc="@import",Ui="@keyframes",Zc="@layer",Qc=Math.abs,eo=String.fromCharCode,eu=Object.assign;function tu(e,t){return Ae(e,0)^45?(((t<<2^Ae(e,0))<<2^Ae(e,1))<<2^Ae(e,2))<<2^Ae(e,3):0}function Bi(e){return e.trim()}function ru(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function Zo(e,t){return e.indexOf(t)}function Ae(e,t){return e.charCodeAt(t)|0}function Hr(e,t,r){return e.slice(t,r)}function pt(e){return e.length}function Ra(e){return e.length}function gn(e,t){return t.push(e),e}function nu(e,t){return e.map(t).join("")}var to=1,vr=1,Ji=0,Ue=0,xe=0,xr="";function ro(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:to,column:vr,length:i,return:""}}function Nr(e,t){return eu(ro("",null,null,"",null,null,0),e,{length:-e.length},t)}function ou(){return xe}function au(){return xe=Ue>0?Ae(xr,--Ue):0,vr--,xe===10&&(vr=1,to--),xe}function We(){return xe=Ue<Ji?Ae(xr,Ue++):0,vr++,xe===10&&(vr=1,to++),xe}function _t(){return Ae(xr,Ue)}function Cn(){return Ue}function en(e,t){return Hr(xr,e,t)}function Kr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Vi(e){return to=vr=1,Ji=pt(xr=e),Ue=0,[]}function Gi(e){return xr="",e}function Pn(e){return Bi(en(Ue-1,Qo(e===91?e+2:e===40?e+1:e)))}function su(e){for(;(xe=_t())&&xe<33;)We();return Kr(e)>2||Kr(xe)>3?"":" "}function iu(e,t){for(;--t&&We()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return en(e,Cn()+(t<6&&_t()==32&&We()==32))}function Qo(e){for(;We();)switch(xe){case e:return Ue;case 34:case 39:e!==34&&e!==39&&Qo(xe);break;case 40:e===41&&Qo(e);break;case 92:We();break}return Ue}function lu(e,t){for(;We()&&e+xe!==57;)if(e+xe===84&&_t()===47)break;return"/*"+en(t,Ue-1)+"*"+eo(e===47?e:We())}function cu(e){for(;!Kr(_t());)We();return en(e,Ue)}function uu(e){return Gi(An("",null,null,null,[""],e=Vi(e),0,[0],e))}function An(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,f=i,h=0,b=0,y=0,_=1,g=1,S=1,R=0,C="",k=o,j=a,A=n,O=C;g;)switch(y=R,R=We()){case 40:if(y!=108&&Ae(O,f-1)==58){Zo(O+=oe(Pn(R),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:O+=Pn(R);break;case 9:case 10:case 13:case 32:O+=su(y);break;case 92:O+=iu(Cn()-1,7);continue;case 47:switch(_t()){case 42:case 47:gn(du(lu(We(),Cn()),t,r),c);break;default:O+="/"}break;case 123*_:l[u++]=pt(O)*S;case 125*_:case 59:case 0:switch(R){case 0:case 125:g=0;case 59+d:S==-1&&(O=oe(O,/\f/g,"")),b>0&&pt(O)-f&&gn(b>32?os(O+";",n,r,f-1):os(oe(O," ","")+";",n,r,f-2),c);break;case 59:O+=";";default:if(gn(A=ns(O,t,r,u,d,o,l,C,k=[],j=[],f),a),R===123)if(d===0)An(O,t,A,A,k,a,f,l,j);else switch(h===99&&Ae(O,3)===110?100:h){case 100:case 108:case 109:case 115:An(e,A,A,n&&gn(ns(e,A,A,0,0,o,l,C,o,k=[],f),j),o,j,f,l,n?k:j);break;default:An(O,A,A,A,[""],j,0,l,j)}}u=d=b=0,_=S=1,C=O="",f=i;break;case 58:f=1+pt(O),b=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&au()==125)continue}switch(O+=eo(R),R*_){case 38:S=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(pt(O)-1)*S,S=1;break;case 64:_t()===45&&(O+=Pn(We())),h=_t(),d=f=pt(C=O+=cu(Cn())),R++;break;case 45:y===45&&pt(O)==2&&(_=0)}}return a}function ns(e,t,r,n,o,a,i,l,c,u,d){for(var f=o-1,h=o===0?a:[""],b=Ra(h),y=0,_=0,g=0;y<n;++y)for(var S=0,R=Hr(e,f+1,f=Qc(_=i[y])),C=e;S<b;++S)(C=Bi(_>0?h[S]+" "+R:oe(R,/&\f/g,h[S])))&&(c[g++]=C);return ro(e,t,r,o===0?Sa:l,c,u,d)}function du(e,t,r){return ro(e,t,r,Di,eo(ou()),Hr(e,2,-2),0)}function os(e,t,r,n){return ro(e,t,r,wa,Hr(e,0,n),Hr(e,n+1,-1),n)}function pr(e,t){for(var r="",n=Ra(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function fu(e,t,r,n){switch(e.type){case Zc:if(e.children.length)break;case Yc:case wa:return e.return=e.return||e.value;case Di:return"";case Ui:return e.return=e.value+"{"+pr(e.children,n)+"}";case Sa:e.value=e.props.join(",")}return pt(r=pr(e.children,n))?e.return=e.value+"{"+r+"}":""}function hu(e){var t=Ra(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function mu(e){return function(t){t.root||(t=t.return)&&e(t)}}var pu=function(t,r,n){for(var o=0,a=0;o=a,a=_t(),o===38&&a===12&&(r[n]=1),!Kr(a);)We();return en(t,Ue)},gu=function(t,r){var n=-1,o=44;do switch(Kr(o)){case 0:o===38&&_t()===12&&(r[n]=1),t[n]+=pu(Ue-1,r,n);break;case 2:t[n]+=Pn(o);break;case 4:if(o===44){t[++n]=_t()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=eo(o)}while(o=We());return t},yu=function(t,r){return Gi(gu(Vi(t),r))},as=new WeakMap,_u=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!as.get(n))&&!o){as.set(t,!0);for(var a=[],i=yu(r,a),l=n.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},bu=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function zi(e,t){switch(tu(e,t)){case 5103:return ne+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+$n+e+Te+e+e;case 6828:case 4268:return ne+e+Te+e+e;case 6165:return ne+e+Te+"flex-"+e+e;case 5187:return ne+e+oe(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return ne+e+Te+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return ne+e+Te+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Te+oe(e,"shrink","negative")+e;case 5292:return ne+e+Te+oe(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+oe(e,"-grow","")+ne+e+Te+oe(e,"grow","positive")+e;case 4554:return ne+oe(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pt(e)-1-t>6)switch(Ae(e,t+1)){case 109:if(Ae(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+$n+(Ae(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zo(e,"stretch")?zi(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ae(e,t+1)!==115)break;case 6444:switch(Ae(e,pt(e)-3-(~Zo(e,"!important")&&10))){case 107:return oe(e,":",":"+ne)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Ae(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(Ae(e,t+11)){case 114:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Te+e+e}return e}var vu=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case wa:t.return=zi(t.value,t.length);break;case Ui:return pr([Nr(t,{value:oe(t.value,"@","@"+ne)})],o);case Sa:if(t.length)return nu(t.props,function(a){switch(ru(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Nr(t,{props:[oe(a,/:(read-\w+)/,":"+$n+"$1")]})],o);case"::placeholder":return pr([Nr(t,{props:[oe(a,/:(plac\w+)/,":"+ne+"input-$1")]}),Nr(t,{props:[oe(a,/:(plac\w+)/,":"+$n+"$1")]}),Nr(t,{props:[oe(a,/:(plac\w+)/,Te+"input-$1")]})],o)}return""})}},xu=[vu],Su=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(_){var g=_.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var o=t.stylisPlugins||xu,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var g=_.getAttribute("data-emotion").split(" "),S=1;S<g.length;S++)a[g[S]]=!0;l.push(_)});var c,u=[_u,bu];{var d,f=[fu,mu(function(_){d.insert(_)})],h=hu(u.concat(o,f)),b=function(g){return pr(uu(g),h)};c=function(g,S,R,C){d=R,b(g?g+"{"+S.styles+"}":S.styles),C&&(y.inserted[S.name]=!0)}}var y={key:r,sheet:new Xc({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return y.sheet.hydrate(l),y};let ea;typeof document=="object"&&(ea=Su({key:"css",prepend:!0}));function Wi(e){const{injectFirst:t,children:r}=e;return t&&ea?s.jsx(qt.CacheProvider,{value:ea,children:r}):r}process.env.NODE_ENV!=="production"&&(Wi.propTypes={children:m.node,injectFirst:m.bool});function wu(e){return e==null||Object.keys(e).length===0}function Hi(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(wu(o)?r:o):t;return s.jsx(qt.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Hi.propTypes={defaultTheme:m.object,styles:m.oneOfType([m.array,m.string,m.object,m.func])});/**
|
|
30
|
+
<%s key={someKey} {...props} />`,jo,Gt,hc,Gt),fn[Gt+jo]=!0}}return p===n?So(xe):xo(xe),xe}}function vo(p,w,M){return hn(p,w,M,!0)}function wo(p,w,M){return hn(p,w,M,!1)}var Lr=wo,Ro=vo;$r.Fragment=n,$r.jsx=Lr,$r.jsxs=Ro}()),$r}process.env.NODE_ENV==="production"?Go.exports=vc():Go.exports=wc();var s=Go.exports;const Rc={$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)\\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"},jc={"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"},Cc={"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"},Ac={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Ln{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||Ac,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:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Ln(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ln(this.logger,t)}}var mt=new Ln;class Kn{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(i=>{let[l,c]=i;for(let u=0;u<c;u++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l.apply(l,[t,...n])})}}const Nr=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},Ga=e=>e==null?"":""+e,Pc=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},Oc=/###/g,za=e=>e&&e.indexOf("###")>-1?e.replace(Oc,"."):e,Wa=e=>!e||typeof e=="string",Jr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let o=0;for(;o<n.length-1;){if(Wa(e))return{};const a=za(n[o]);!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return Wa(e)?{}:{obj:e,k:za(n[o])}},Ha=(e,t,r)=>{const{obj:n,k:o}=Jr(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let a=t[t.length-1],i=t.slice(0,t.length-1),l=Jr(e,i,Object);for(;l.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=Jr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r},Tc=(e,t,r,n)=>{const{obj:o,k:a}=Jr(e,t,Object);o[a]=o[a]||[],o[a].push(r)},kn=(e,t)=>{const{obj:r,k:n}=Jr(e,t);if(r)return r[n]},Ec=(e,t,r)=>{const n=kn(e,r);return n!==void 0?n:kn(t,r)},Ri=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):Ri(e[n],t[n],r):e[n]=t[n]);return e},sr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Mc={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Ic=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Mc[t]):e;class Lc{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 kc=[" ",",","?","!",";"],$c=new Lc(20),Nc=(e,t,r)=>{t=t||"",r=r||"";const n=kc.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const o=$c.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!o.test(e);if(!a){const i=e.indexOf(r);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a},zo=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let a=0;a<n.length;){if(!o||typeof o!="object")return;let i,l="";for(let c=a;c<n.length;++c)if(c!==a&&(l+=r),l+=n[c],i=o[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<n.length-1)continue;a+=c-a+1;break}o=i}return o},$n=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class Ka extends Kn{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){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,r],n&&(Array.isArray(n)?l.push(...n):typeof n=="string"&&a?l.push(...n.split(a)):l.push(n)));const c=kn(this.data,l);return!c&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),c||!i||typeof n!="string"?c:zo(this.data&&this.data[t]&&this.data[t][r],n,a)}addResource(t,r,n,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[t,r];n&&(l=l.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(l=t.split("."),o=r,r=l[1]),this.addNamespaces(r),Ha(this.data,l,o),a.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 a in n)(typeof n[a]=="string"||Array.isArray(n[a]))&&this.addResource(t,r,a,n[a],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),o=n,n=r,r=l[1]),this.addNamespaces(r);let c=kn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Ri(c,n,a):c={...c,...n},Ha(this.data,l,c),i.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var ji={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,r,n,o))}),t}};const qa={};class Nn extends Kn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Pc(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=mt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Nc(t,n,o);if(i&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:a};const u=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(o)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}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,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),c=l[l.length-1],u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const k=r.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${k}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${k}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:i}const h=this.resolve(t,r);let f=h&&h.res;const b=h&&h.usedKey||i,y=h&&h.exactUsedKey||i,_=Object.prototype.toString.apply(f),g=["[object Number]","[object Function]","[object RegExp]"],v=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&f&&(typeof f!="string"&&typeof f!="boolean"&&typeof f!="number")&&g.indexOf(_)<0&&!(typeof v=="string"&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,f,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(h.res=k,h.usedParams=this.getUsedParamsDetails(r),h):k}if(a){const k=Array.isArray(f),j=k?[]:{},P=k?y:b;for(const O in f)if(Object.prototype.hasOwnProperty.call(f,O)){const z=`${P}${a}${O}`;j[O]=this.translate(z,{...r,joinArrays:!1,ns:l}),j[O]===z&&(j[O]=f[O])}f=j}}else if(R&&typeof v=="string"&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,t,r,n));else{let k=!1,j=!1;const P=r.count!==void 0&&typeof r.count!="string",O=Nn.hasDefaultValue(r),z=P?this.pluralResolver.getSuffix(u,r.count,r):"",le=r.ordinal&&P?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",ue=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ue&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${z}`]||r[`defaultValue${le}`]||r.defaultValue;!this.isValidLookup(f)&&O&&(k=!0,f=D),this.isValidLookup(f)||(j=!0,f=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:f,X=O&&D!==f&&this.options.updateMissing;if(j||k||X){if(this.logger.log(X?"updateKey":"missingKey",u,c,i,X?D:f),a){const Q=this.resolve(i,{...r,keySeparator:!1});Q&&Q.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 K=[];const we=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&we&&we[0])for(let Q=0;Q<we.length;Q++)K.push(we[Q]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(r.lng||this.language):K.push(r.lng||this.language);const ce=(Q,Ae,Ie)=>{const ot=O&&Ie!==f?Ie:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,c,Ae,ot,X,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,c,Ae,ot,X,r),this.emit("missingKey",Q,c,Ae,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(Q=>{const Ae=this.pluralResolver.getSuffixes(Q,r);ue&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ae.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ae.push(`${this.options.pluralSeparator}zero`),Ae.forEach(Ie=>{ce([Q],i+Ie,r[`defaultValue${Ie}`]||D)})}):ce(K,i,D))}f=this.extendTranslation(f,t,r,h,n),j&&f===i&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${i}`),(j||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,k?f:void 0):f=this.options.parseMissingKeyHandler(f))}return o?(h.res=f,h.usedParams=this.getUsedParamsDetails(r),h):f}extendTranslation(t,r,n,o,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let h=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,n.lng||this.language||o.usedLng,n),u){const f=t.match(this.interpolator.nestingRegexp),b=f&&f.length;d<b&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,b=new Array(f),y=0;y<f;y++)b[y]=arguments[y];return a&&a[0]===b[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${r[0]}`),null):i.translate(...b,r)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,c=typeof l=="string"?[l]:l;return t!=null&&c&&c.length&&n.applyPostProcessor!==!1&&(t=ji.handle(c,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,a,i,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(c,r),d=u.key;o=d;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const f=r.count!==void 0&&typeof r.count!="string",b=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",_=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);h.forEach(g=>{this.isValidLookup(n)||(l=g,!qa[`${_[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(qa[`${_[0]}-${g}`]=!0,this.logger.warn(`key "${o}" for languages "${_.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),_.forEach(v=>{if(this.isValidLookup(n))return;i=v;const R=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,d,v,g,r);else{let k;f&&(k=this.pluralResolver.getSuffix(v,r.count,r));const j=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(R.push(d+k),r.ordinal&&k.indexOf(P)===0&&R.push(d+k.replace(P,this.options.pluralSeparator)),b&&R.push(d+j)),y){const O=`${d}${this.options.contextSeparator}${r.context}`;R.push(O),f&&(R.push(O+k),r.ordinal&&k.indexOf(P)===0&&R.push(O+k.replace(P,this.options.pluralSeparator)),b&&R.push(O+j))}}let C;for(;C=R.pop();)this.isValidLookup(n)||(a=C,n=this.getResource(v,g,C,r))}))})}),{res:n,usedKey:o,exactUsedKey:a,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";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 a of r)delete o[a]}return o}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Co=e=>e.charAt(0).toUpperCase()+e.slice(1);class Xa{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=mt.create("languageUtils")}getScriptPartFromCode(t){if(t=$n(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=$n(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Co(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Co(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Co(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(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=[],a=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),n.forEach(i=>{o.indexOf(i)<0&&a(this.formatLanguageCode(i))}),o}}let Fc=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Dc={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Uc=["v1","v2","v3"],Bc=["v4"],Ya={zero:0,one:1,two:2,few:3,many:4,other:5},Jc=()=>{const e={};return Fc.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Dc[t.fc]}})}),e};class Vc{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=mt.create("pluralResolver"),(!this.options.compatibilityJSON||Bc.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Jc()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules($n(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,a)=>Ya[o]-Ya[a]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let o=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const a=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Uc.includes(this.options.compatibilityJSON)}}const Za=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,a=Ec(e,t,r);return!a&&o&&typeof r=="string"&&(a=zo(e,r,n),a===void 0&&(a=zo(t,r,n))),a},Ao=e=>e.replace(/\$/g,"$$$$");class Gc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:a,prefixEscaped:i,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:f,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:g,maxReplaces:v,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:Ic,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?sr(a):i||"{{",this.suffix=l?sr(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?sr(f):b||sr("$t("),this.nestingSuffix=y?sr(y):_||sr(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=v||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,o){let a,i,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=b=>{if(b.indexOf(this.formatSeparator)<0){const v=Za(r,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,n,{...o,...r,interpolationkey:b}):v}const y=b.split(this.formatSeparator),_=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(Za(r,c,_,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...o,...r,interpolationkey:_})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Ao(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Ao(this.escape(b)):Ao(b)}].forEach(b=>{for(l=0;a=b.regex.exec(t);){const y=a[1].trim();if(i=u(y),i===void 0)if(typeof d=="function"){const g=d(t,a,o);i=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))i="";else if(h){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=Ga(i));const _=b.safeValue(i);if(t=t.replace(a[0],_),h?(b.regex.lastIndex+=i.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,a,i;const l=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const h=c.split(new RegExp(`${d}[ ]*{`));let f=`{${h[1]}`;c=h[0],f=this.interpolate(f,i);const b=f.match(/'/g),y=f.match(/"/g);(b&&b.length%2===0&&!y||y.length%2!==0)&&(f=f.replace(/'/g,'"'));try{i=JSON.parse(f),u&&(i={...u,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,_),`${c}${d}${f}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;o=this.nestingRegexp.exec(t);){let c=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(h=>h.trim());o[1]=d.shift(),c=d,u=!0}if(a=r(l.call(this,o[1].trim(),i),i),a&&o[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=Ga(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((d,h)=>this.format(d,h,n.lng,{...n,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}const zc=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(i=>{if(i){const[l,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();r[d]||(r[d]=u),u==="false"&&(r[d]=!1),u==="true"&&(r[d]=!0),isNaN(u)||(r[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},ir=e=>{const t={};return(r,n,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={formatParams:{[o.interpolationkey]:o.formatParams[o.interpolationkey]},interpolationKey:o.interpolationkey});const i=n+JSON.stringify(a);let l=t[i];return l||(l=e($n(n),o),t[i]=l),l(r)}};class Wc{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=mt.create("formatter"),this.options=t,this.formats={number:ir((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return a=>o.format(a)}),currency:ir((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>o.format(a)}),datetime:ir((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return a=>o.format(a)}),relativetime:ir((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return a=>o.format(a,n.range||"day")}),list:ir((r,n)=>{const o=new Intl.ListFormat(r,{...n});return a=>o.format(a)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=ir(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{const{formatName:u,formatOptions:d}=zc(c);if(this.formats[u]){let h=l;try{const f=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=f.locale||f.lng||o.locale||o.lng||n;h=this.formats[u](l,b,{...d,...o,...f})}catch(f){this.logger.warn(f)}return h}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const Hc=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Kc extends Kn{constructor(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=mt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const a={},i={},l={},c={};return t.forEach(u=>{let d=!0;r.forEach(h=>{const f=`${u}|${h}`;!n.reload&&this.store.hasResourceBundle(u,h)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?i[f]===void 0&&(i[f]=!0):(this.state[f]=1,d=!1,i[f]===void 0&&(i[f]=!0),a[f]===void 0&&(a[f]=!0),c[h]===void 0&&(c[h]=!0)))}),d||(l[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,r,n){const o=t.split("|"),a=o[0],i=o[1];r&&this.emit("failedLoading",a,i,r),n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(c=>{Tc(c.loaded,[a],i),Hc(c,t),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const d=c.loaded[u];d.length&&d.forEach(h=>{l[u][h]===void 0&&(l[u][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:a,callback:i});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,a*2,i)},a);return}i(u,d)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const u=c(t,r);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,r,l)}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();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const a=this.queueLoad(t,r,n,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}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],a=n[1];this.read(o,a,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${a} for language ${o} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${a} for language ${o}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,r,n,o,c):d=u(t,r,n,o),d&&typeof d.then=="function"?d.then(h=>l(null,h)).catch(l):l(null,d)}catch(d){l(d)}else u(t,r,n,o,l,c)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const Qa=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(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}}),es=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),mn=()=>{},qc=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Wr extends Kn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=es(t),this.services={},this.logger=mt,this.modules={external:[]},qc(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=Qa();this.options={...o,...this.options,...es(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const a=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?mt.init(a(this.modules.logger),this.options):mt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Wc);const h=new Xa(this.options);this.store=new Ka(this.options.resources,this.options);const f=this.services;f.logger=mt,f.resourceStore=this.store,f.languageUtils=h,f.pluralResolver=new Vc(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(f.formatter=a(d),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Gc(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Kc(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(b,..._)}),this.modules.languageDetector&&(f.languageDetector=a(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=a(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Nn(this.services,this.options),this.translator.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(b,..._)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=mn),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 c=Nr(),u=()=>{const d=(h,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(f),n(h,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mn;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(t,r,n){const o=Nr();return t||(t=this.languages),r||(r=this.options.ns),n||(n=mn),this.services.backendConnector.reload(t,r,a=>{o.resolve(),n(a)}),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"&&ji.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=Nr();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,r,n){var o=this;const a=function(i,l){let c;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h<u;h++)d[h-2]=arguments[h];c=o.options.overloadTranslationOptionHandler([i,l].concat(d))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||a.keyPrefix);const f=o.options.keySeparator||".";let b;return c.keyPrefix&&Array.isArray(i)?b=i.map(y=>`${c.keyPrefix}${f}${y}`):b=c.keyPrefix?`${c.keyPrefix}${f}${i}`:i,o.t(b,c)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===2};if(r.precheck){const l=r.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,t)&&(!o||i(a,t)))}loadNamespaces(t,r){const n=Nr();return this.options.ns?(typeof t=="string"&&(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=Nr();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],a=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=o.concat(a),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Xa(Qa());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 Wr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new Wr(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n&&(a.store=new Ka(this.store.data,o),a.services.resourceStore=a.store),a.translator=new Nn(a.services,o),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];a.emit(l,...u)}),a.init(o,r),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ee=Wr.createInstance();Ee.createInstance=Wr.createInstance;Ee.createInstance;Ee.dir;Ee.init;Ee.loadResources;Ee.reloadResources;Ee.use;Ee.changeLanguage;Ee.getFixedT;Ee.t;Ee.exists;Ee.setDefaultNamespace;Ee.hasLoadedNamespace;Ee.loadNamespaces;Ee.loadLanguages;const Ci=Ee.createInstance();Ci.use(yc).use(Ft.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:Cc},de:{translations:jc}},ns:["translations"],defaultNS:"translations"});function en(e){return r=>s.jsx(Xc,{children:s.jsx(e,{...r})})}const Xc=({children:e})=>s.jsx(Ft.I18nextProvider,{i18n:Ci,children:e}),Yc=en(e=>{const t=Ba.useMonaco(),r=L.useTheme(),n=Z.useRef(null),[o,a]=Z.useState("dark-plus"),i=r.palette.mode==="dark"?"dark-plus":"light-plus";async function l(c){c.languages.register({id:"wandelscript"}),c.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),n.current||(n.current=await pc.createHighlighter({langs:[Rc],themes:["dark-plus","light-plus"]})),gc.shikiToMonaco(n.current,c),c.editor.defineTheme(i,{base:r.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:r.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(c),a(i)}return Z.useEffect(()=>{t&&l(t)},[t,i]),t?s.jsx(Ba,{value:e.code,onChange:e.onChange,defaultLanguage:"wandelscript",theme:o,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}}):null}),Zc="(^joint_[0-9]+$)|(_J[0-9]+$)";function Ai(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Ai(t))]}function Qc(e,t){return new RegExp(t??Zc).test(e)}function Pi(e,t){return Ai(e).filter(r=>Qc(r.name,t))}function qn(e){Z.useEffect(e,[])}function Oi(e){qn(()=>br.autorun(e))}function Ti(e,t,r){qn(()=>br.reaction(e,t,r))}function Sr(e){return qn(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function ye({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){S.Globals.assign({frameLoop:"always"});const o=Z.useRef([]),a=Z.useRef([]),{scene:i,invalidate:l}=_c.useThree();Z.useEffect(()=>{const f=i.getObjectByName(t);f&&(a.current=n?n(f):Pi(f),u(),l())},[]);function c(f){o.current=f,h.start(Object.assign({},o.current))}function u(){const f=a.current.map((b,y)=>d[y].get());r(a.current,f)}Oi(()=>{const f=e.state.joint_position.joints.filter(b=>b!==void 0);requestAnimationFrame(()=>c(f))});const[d,h]=S.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function eu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"UR3_05",castShadow:!0,receiveShadow:!0,geometry:o.UR3_05.geometry,material:a.Standard}),s.jsxs(S.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR3_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L06.geometry,material:a.Standard})]})]}),s.jsx("mesh",{name:"UR3_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function tu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(S.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR3e_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3e_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR3e_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function ru({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=ie.useGLTF(e).nodes;function a(i,l){i.forEach((c,u)=>c.rotation.y=l[u])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:a}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J02",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J05",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5_J06",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR5_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L06.geometry,material:o.UR5_L06.material})]}),s.jsx("mesh",{name:"UR5_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L05.geometry,material:o.UR5_L05.material})]}),s.jsx("mesh",{name:"UR5_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L04.geometry,material:o.UR5_L04.material})]}),s.jsx("mesh",{name:"UR5_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L03.geometry,material:o.UR5_L03.material})]}),s.jsx("mesh",{name:"UR5_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L02.geometry,material:o.UR5_L02.material})]}),s.jsx("mesh",{name:"UR5_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L01.geometry,material:o.UR5_L01.material})]}),s.jsx("mesh",{name:"UR5_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L00.geometry,material:o.UR5_L00.material,rotation:[-Math.PI/2,0,0]})]})})})]})}function nu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5e_FLG",position:[0,.1,0]}),s.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000255",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000255_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255_1"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000253",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000253_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000253_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000253_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000251",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000251_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000251_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000251_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L03",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000250",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000250_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_1"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000250_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000250_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_3"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000250_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000249",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000249_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000249_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_2"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000249_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_3"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000249_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000248",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000248_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000248_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000248_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_3"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L00",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000257",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000257_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257_1"].geometry,material:a.Metal})]})})]})})})]})}function ou({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10_J06",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR10_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR10_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function au({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000493",geometry:o["C-1000493"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000493_1",geometry:o["C-1000493_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]}),s.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),s.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"C-1000492",geometry:o["C-1000492"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_1",geometry:o["C-1000492_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_2",geometry:o["C-1000492_2"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_3",geometry:o["C-1000492_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000491",geometry:o["C-1000491"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_1",geometry:o["C-1000491_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_2",geometry:o["C-1000491_2"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_3",geometry:o["C-1000491_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000490",geometry:o["C-1000490"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_1",geometry:o["C-1000490_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_2",geometry:o["C-1000490_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_3",geometry:o["C-1000490_3"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs(S.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000489",geometry:o["C-1000489"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_1",geometry:o["C-1000489_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_2",geometry:o["C-1000489_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_3",geometry:o["C-1000489_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_4",geometry:o["C-1000489_4"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L02",children:[s.jsx("mesh",{name:"C-1000488",geometry:o["C-1000488"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_1",geometry:o["C-1000488_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_2",geometry:o["C-1000488_2"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_3",geometry:o["C-1000488_3"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000487",geometry:o["C-1000487"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000487_1",geometry:o["C-1000487_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]})})})]})}function ts({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR900",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR900_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR900_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR900_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L06.geometry,material:a["#BBA474.001"]})]}),s.jsx("mesh",{name:"AR900_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L05.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L04",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L04.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L03",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L03.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L02.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L01",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L01.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L00.geometry,material:a["#0056b9.001"],rotation:[-Math.PI/2,0,0]})]})})})]})}function su({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1440_L06_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L06_CAD.geometry,material:a.metall})]}),s.jsx("mesh",{name:"AR1440_L05_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L05_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L04_CAD",children:[s.jsx("mesh",{name:"AR1440_L04_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L04_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR1440_L03_CAD",children:[s.jsx("mesh",{name:"AR1440_L03_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L03_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L02_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L02_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L01_CAD",children:[s.jsx("mesh",{name:"AR1440_L01_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L01_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L00_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L00_CAD.geometry,material:a.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})]})}function iu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR1730_J00",children:[s.jsxs(S.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1730_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L06.geometry,material:a.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR1730_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L05.geometry,material:a.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_R_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_R_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002_1.geometry,material:a.White})]})]}),s.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_U_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_U_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L02.geometry,material:a.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),s.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_S_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_S_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L00.geometry,material:a.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})]})}function lu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR2010",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(S.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR2010_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsxs("group",{name:"AR2010_L06",children:[s.jsx("mesh",{name:"AR2010_06001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_06001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001_1.geometry,material:a.metall})]})]}),s.jsx("mesh",{name:"AR2010_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L05.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L04",children:[s.jsx("mesh",{name:"AR2010_04001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_04001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR2010_L03",children:[s.jsx("mesh",{name:"AR2010_03001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_03001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L02.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L01",children:[s.jsx("mesh",{name:"AR2010_01001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_01001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L00.geometry,material:a.yaskawaBlueMetall,rotation:[-Math.PI/2,0,0]})]})})})]})}function cu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((h,f)=>h.rotation.y=l[f]*d[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"AR3120_J00",children:[s.jsxs(S.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR3120_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L06.geometry,material:a["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR3120_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L05.geometry,material:a["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[s.jsx("mesh",{name:"R_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"R_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001_1.geometry,material:a["White.001"]})]})]}),s.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_3001",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"Mesh_3001_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L02.geometry,material:a["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),s.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[s.jsx("mesh",{name:"S_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"S_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L00.geometry,material:a["Blue.001"],position:[0,-.54,0]})]})})]})}function uu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a.Fanuc_Green})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_1.geometry,material:a.Fanuc_BlackPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_2.geometry,material:a.Fanuc_WhitePlastic})]})]}),s.jsx("mesh",{name:"CRX10iA_L03",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L03.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a.Fanuc_Green}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a.Fanuc_GreenLED})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a.Fanuc_BlackMetal,position:[0,-.245,0]})]})})]})}function du({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsx("mesh",{name:"link_0",castShadow:!0,receiveShadow:!0,geometry:o.link_0.geometry,material:a.fanuc_metal_black}),s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx(S.animated.group,{name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),s.jsxs(S.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape053",castShadow:!0,receiveShadow:!0,geometry:o.shape053.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape053_1",castShadow:!0,receiveShadow:!0,geometry:o.shape053_1.geometry,material:a.fanuc_green})]})]}),s.jsxs(S.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape054",castShadow:!0,receiveShadow:!0,geometry:o.shape054.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape054_1",castShadow:!0,receiveShadow:!0,geometry:o.shape054_1.geometry,material:a.fanuc_red}),s.jsx("mesh",{name:"shape054_2",castShadow:!0,receiveShadow:!0,geometry:o.shape054_2.geometry,material:a.fanuc_metal_black})]})]}),s.jsxs(S.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape009",castShadow:!0,receiveShadow:!0,geometry:o.shape009.geometry,material:a.fanuc_green}),s.jsx("mesh",{name:"shape009_1",castShadow:!0,receiveShadow:!0,geometry:o.shape009_1.geometry,material:a.fanuc_white})]})]}),s.jsx("mesh",{name:"link_2",castShadow:!0,receiveShadow:!0,geometry:o.link_2.geometry,material:a.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"link_1",position:[0,.245,0],children:[s.jsx("mesh",{name:"shape005",castShadow:!0,receiveShadow:!0,geometry:o.shape005.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape005_1",castShadow:!0,receiveShadow:!0,geometry:o.shape005_1.geometry,material:a.fanuc_green})]})]})]})})]})}function fu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[s.jsxs("group",{name:"CRX25iA_L00",children:[s.jsx("mesh",{name:"J1BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse.geometry,material:a.Fanuc_BlackMetal}),s.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]}),s.jsxs(S.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX25iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.18,0]})]}),s.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[s.jsx("mesh",{name:"J6CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[s.jsx("mesh",{name:"J3ARM_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_1.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_2.geometry,material:a.Fanuc_BlackPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L03",children:[s.jsx("mesh",{name:"J3CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsx("mesh",{name:"CRX25iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L02.geometry,material:a.Fanuc_WhitePlastic})]}),s.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[s.jsx("mesh",{name:"J2BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenLED})]})]})]})})]})}function hu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(S.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_1.geometry,material:a["Fanuc_RedPlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_2.geometry,material:a["Fanuc_BlackPlastic.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J3CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J3CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a["Fanuc_Green.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a["Fanuc_GreenLED.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a["Fanuc_BlackMetal.001"]})]})})]})}function mu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr210_2700",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals006",castShadow:!0,receiveShadow:!0,geometry:o.visuals006.geometry,material:a.material_Material_Metall_black})})]}),s.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals005",children:[s.jsx("mesh",{name:"visuals005_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals005_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals004",children:[s.jsx("mesh",{name:"visuals004_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals004_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals003_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_5.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals003_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_6.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals003_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_1",position:[0,.236,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals001_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_5.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals001_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_6.geometry,material:a.material_Material_rubber_black}),s.jsx("mesh",{name:"visuals001_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_0",children:s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_metal_black})]})})]})})})]})}function pu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr270_2700_ultra",children:[s.jsxs(S.animated.group,{name:"joint_01",children:[s.jsxs(S.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals006",children:[s.jsx("mesh",{name:"visuals006_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals006_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_2.geometry,material:a.material_Material_Metall})]})})]}),s.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals005",castShadow:!0,receiveShadow:!0,geometry:o.visuals005.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals004",castShadow:!0,receiveShadow:!0,geometry:o.visuals004.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals002_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_4.geometry,material:a.material_Material_Farbe__2_})]})})]}),s.jsx("group",{name:"link_1",position:[0,.226,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsxs("group",{name:"link_0-base",children:[s.jsx("group",{name:"joint_1"}),s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_Farbe__1_})]})]})]})})})]})}function gu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M10iD_L06",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"M10iD_L05",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L05.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_654",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_654_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_378",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_378_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_378_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_358",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_358_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L01",children:[s.jsx("mesh",{name:"Mesh_356",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_356_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_1.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_356_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M10iD_L00",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L00.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})]})}function rs({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J00",children:[s.jsxs(S.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M20iD25_L06",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),s.jsx("mesh",{name:"M20iD25_L05",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L05.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),s.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_2_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_15",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_15_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_15_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_2.geometry,material:a.Material_9_AO})]})]}),s.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_37",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_37_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37_1.geometry,material:a.Fanuc_Yellow_Textured_AO})]})]}),s.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"Mesh_45",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45.geometry,material:a.Material_9_AO}),s.jsx("mesh",{name:"Mesh_45_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_45_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M20iD25_L00",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L00.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})]})}function yu({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,h)=>d.rotation.y=u[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"IRB1200_7_70_IRC5",rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(S.animated.group,{name:"IRB1200_7_70_IRC5_J06",rotation:[Math.PI/2,0,-Math.PI],children:[s.jsx("group",{name:"IRB1200_7_70_IRC5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L06",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L06.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L05",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L05.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L04",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L04.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L03",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L03.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L02",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L02.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L01",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L01.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[Math.PI/2,0,0]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L00",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L00.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[-Math.PI/2,0,0]})]})})})]})}const ns="line",os="mesh";function Po({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new vt.Matrix4;function o(c,u){const d=new vt.Vector3,h=new vt.Quaternion,f=new vt.Vector3;n.decompose(d,h,f);const b=d.clone(),y=new vt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new vt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new vt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new vt.Matrix4().makeRotationX(c.alpha));return n.multiply(y),n.decompose(d,h,f),{a:b,b:d}}function a(c,u,d,h){if(!t)return;const f=t[c];if(!f)return;const{a:b,b:y}=o(f,h);u.geometry.setPositions([b.toArray(),y.toArray()].flat()),d.position.set(y.x,y.y,y.z)}function i(c,u){n.identity(),c.forEach((d,h)=>{a(h,d.getObjectByName(ns),d.getObjectByName(os),u[h])})}function l(c){return Pi(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(ye,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),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((c,u)=>{const{a:d,b:h}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(ie.Line,{name:ns,points:[d,h],color:"white",lineWidth:5}),s.jsxs("mesh",{name:os,position:h,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}const _u=console.warn;function bu(){return Z.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&_u(e)}},[]),s.jsx(s.Fragment,{})}function pa(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const Ei=en(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=pa,isGhost:o=!1,...a})=>{let i;const l=Z.useRef(new Ce.Group),c=Z.useCallback(h=>{h!==null&&(l.current=h,console.log("robotRef.current",l.current),o&&l.current&&l.current.children.length>0&&u())},[o]),u=()=>{l.current&&!l.current.userData.ghostsCreated&&(l.current.traverse(h=>{if(h instanceof Ce.Mesh&&!h.userData.isGhost){h.material instanceof Ce.Material&&(h.material.colorWrite=!1);const f=h.clone(),b=h.clone();f.material=new Ce.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),f.userData.isGhost=!0,b.material=new Ce.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),b.userData.isGhost=!0,h.parent&&(h.parent.add(f),h.parent.add(b))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const h=[];l.current.traverse(f=>{f instanceof Ce.Mesh&&f.material instanceof Ce.Material&&(f.material.colorWrite=!0),f instanceof Ce.Mesh&&f.userData!==void 0&&f.userData&&f.userData.isGhost!==void 0&&f.userData.isGhost&&h.push(f)}),h.forEach(f=>{f.parent&&f.parent.remove(f)}),l.current.userData.ghostsCreated=!1}};switch(Z.useEffect(()=>{o?u():d()},[o]),t){case"UniversalRobots_UR3":i=eu;break;case"UniversalRobots_UR3e":i=tu;break;case"UniversalRobots_UR5":i=ru;break;case"UniversalRobots_UR5e":i=nu;break;case"UniversalRobots_UR10":i=ou;break;case"UniversalRobots_UR10e":i=au;break;case"Yaskawa_AR900":i=ts;break;case"Yaskawa_GP7":i=ts;break;case"Yaskawa_AR1440":i=su;break;case"Yaskawa_AR1730":i=iu;break;case"Yaskawa_AR2010":i=lu;break;case"Yaskawa_AR3120":i=cu;break;case"FANUC_CRX10iA":i=uu;break;case"FANUC_CRX20iAL":i=du;break;case"FANUC_CRX25iA":i=fu;break;case"FANUC_CRX25iAL":i=hu;break;case"FANUC_ARC_Mate_120iD":i=rs;break;case"FANUC_ARC_Mate_120iD35":i=rs;break;case"FANUC_ARC_Mate_100iD":i=gu;break;case"KUKA_KR210_R2700":i=mu;break;case"KUKA_KR270_R2700":i=pu;break;case"ABB_1200_07_7":i=yu;break;default:console.warn(`Unknown robot type: ${t}`),i=Po}return s.jsxs(bc.ErrorBoundary,{fallback:s.jsx(Po,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:[s.jsx(Z.Suspense,{fallback:s.jsx(Po,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx("group",{ref:c,children:s.jsx(i,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...a})})}),s.jsx(bu,{})]})});function xu({connectedMotionGroup:e,getModel:t=pa,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(Ei,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}function Su(){return s.jsx(ie.Environment,{children:s.jsx(vu,{})})}function vu({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(ie.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(ie.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(ie.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(ie.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(ie.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function wu(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Ce.Vector3(e[0].x,e[0].y,e[0].z),r=new Ce.Vector3(e[1].x,e[1].y,e[1].z),n=new Ce.Vector3(e[2].x,e[2].y,e[2].z),o=new Ce.Vector3().subVectors(r,t),a=new Ce.Vector3().subVectors(n,t),i=new Ce.Vector3().crossVectors(o,a).normalize();for(let l=3;l<e.length;l++){const c=new Ce.Vector3(e[l].x,e[l].y,e[l].z),u=new Ce.Vector3().subVectors(c,t),d=i.dot(u);if(Math.abs(d)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function Ru({safetyZones:e,...t}){return s.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((a,i)=>{if(!a.convex_hull)return null;const l=a.convex_hull.vertices.map(d=>new Ce.Vector3(d.x/1e3,d.y/1e3,d.z/1e3)),c=wu(l);if(c.isCoplanar&&c.normal){const h=new Ce.Vector3().addVectors(l[0],c.normal.multiplyScalar(1e-4));l.push(h)}let u;try{u=new xc.ConvexGeometry(l)}catch(d){return console.log("Error creating ConvexGeometry:",d),null}return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:u,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}function Hr(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const ju=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"}));var Cu=!1;function Au(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Pu(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ou=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Cu:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Pu(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Au(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Te="-ms-",Fn="-moz-",ne="-webkit-",Mi="comm",ga="rule",ya="decl",Tu="@import",Ii="@keyframes",Eu="@layer",Mu=Math.abs,Xn=String.fromCharCode,Iu=Object.assign;function Lu(e,t){return Pe(e,0)^45?(((t<<2^Pe(e,0))<<2^Pe(e,1))<<2^Pe(e,2))<<2^Pe(e,3):0}function Li(e){return e.trim()}function ku(e,t){return(e=t.exec(e))?e[0]:e}function oe(e,t,r){return e.replace(t,r)}function Wo(e,t){return e.indexOf(t)}function Pe(e,t){return e.charCodeAt(t)|0}function Kr(e,t,r){return e.slice(t,r)}function ft(e){return e.length}function _a(e){return e.length}function pn(e,t){return t.push(e),e}function $u(e,t){return e.map(t).join("")}var Yn=1,xr=1,ki=0,De=0,Se=0,vr="";function Zn(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Yn,column:xr,length:i,return:""}}function Fr(e,t){return Iu(Zn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Nu(){return Se}function Fu(){return Se=De>0?Pe(vr,--De):0,xr--,Se===10&&(xr=1,Yn--),Se}function ze(){return Se=De<ki?Pe(vr,De++):0,xr++,Se===10&&(xr=1,Yn++),Se}function pt(){return Pe(vr,De)}function Rn(){return De}function tn(e,t){return Kr(vr,e,t)}function qr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $i(e){return Yn=xr=1,ki=ft(vr=e),De=0,[]}function Ni(e){return vr="",e}function jn(e){return Li(tn(De-1,Ho(e===91?e+2:e===40?e+1:e)))}function Du(e){for(;(Se=pt())&&Se<33;)ze();return qr(e)>2||qr(Se)>3?"":" "}function Uu(e,t){for(;--t&&ze()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return tn(e,Rn()+(t<6&&pt()==32&&ze()==32))}function Ho(e){for(;ze();)switch(Se){case e:return De;case 34:case 39:e!==34&&e!==39&&Ho(Se);break;case 40:e===41&&Ho(e);break;case 92:ze();break}return De}function Bu(e,t){for(;ze()&&e+Se!==57;)if(e+Se===84&&pt()===47)break;return"/*"+tn(t,De-1)+"*"+Xn(e===47?e:ze())}function Ju(e){for(;!qr(pt());)ze();return tn(e,De)}function Vu(e){return Ni(Cn("",null,null,null,[""],e=$i(e),0,[0],e))}function Cn(e,t,r,n,o,a,i,l,c){for(var u=0,d=0,h=i,f=0,b=0,y=0,_=1,g=1,v=1,R=0,C="",k=o,j=a,P=n,O=C;g;)switch(y=R,R=ze()){case 40:if(y!=108&&Pe(O,h-1)==58){Wo(O+=oe(jn(R),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:O+=jn(R);break;case 9:case 10:case 13:case 32:O+=Du(y);break;case 92:O+=Uu(Rn()-1,7);continue;case 47:switch(pt()){case 42:case 47:pn(Gu(Bu(ze(),Rn()),t,r),c);break;default:O+="/"}break;case 123*_:l[u++]=ft(O)*v;case 125*_:case 59:case 0:switch(R){case 0:case 125:g=0;case 59+d:v==-1&&(O=oe(O,/\f/g,"")),b>0&&ft(O)-h&&pn(b>32?ss(O+";",n,r,h-1):ss(oe(O," ","")+";",n,r,h-2),c);break;case 59:O+=";";default:if(pn(P=as(O,t,r,u,d,o,l,C,k=[],j=[],h),a),R===123)if(d===0)Cn(O,t,P,P,k,a,h,l,j);else switch(f===99&&Pe(O,3)===110?100:f){case 100:case 108:case 109:case 115:Cn(e,P,P,n&&pn(as(e,P,P,0,0,o,l,C,o,k=[],h),j),o,j,h,l,n?k:j);break;default:Cn(O,P,P,P,[""],j,0,l,j)}}u=d=b=0,_=v=1,C=O="",h=i;break;case 58:h=1+ft(O),b=y;default:if(_<1){if(R==123)--_;else if(R==125&&_++==0&&Fu()==125)continue}switch(O+=Xn(R),R*_){case 38:v=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(ft(O)-1)*v,v=1;break;case 64:pt()===45&&(O+=jn(ze())),f=pt(),d=h=ft(C=O+=Ju(Rn())),R++;break;case 45:y===45&&ft(O)==2&&(_=0)}}return a}function as(e,t,r,n,o,a,i,l,c,u,d){for(var h=o-1,f=o===0?a:[""],b=_a(f),y=0,_=0,g=0;y<n;++y)for(var v=0,R=Kr(e,h+1,h=Mu(_=i[y])),C=e;v<b;++v)(C=Li(_>0?f[v]+" "+R:oe(R,/&\f/g,f[v])))&&(c[g++]=C);return Zn(e,t,r,o===0?ga:l,c,u,d)}function Gu(e,t,r){return Zn(e,t,r,Mi,Xn(Nu()),Kr(e,2,-2),0)}function ss(e,t,r,n){return Zn(e,t,r,ya,Kr(e,0,n),Kr(e,n+1,-1),n)}function pr(e,t){for(var r="",n=_a(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function zu(e,t,r,n){switch(e.type){case Eu:if(e.children.length)break;case Tu:case ya:return e.return=e.return||e.value;case Mi:return"";case Ii:return e.return=e.value+"{"+pr(e.children,n)+"}";case ga:e.value=e.props.join(",")}return ft(r=pr(e.children,n))?e.return=e.value+"{"+r+"}":""}function Wu(e){var t=_a(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}function Hu(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ku=function(t,r,n){for(var o=0,a=0;o=a,a=pt(),o===38&&a===12&&(r[n]=1),!qr(a);)ze();return tn(t,De)},qu=function(t,r){var n=-1,o=44;do switch(qr(o)){case 0:o===38&&pt()===12&&(r[n]=1),t[n]+=Ku(De-1,r,n);break;case 2:t[n]+=jn(o);break;case 4:if(o===44){t[++n]=pt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Xn(o)}while(o=ze());return t},Xu=function(t,r){return Ni(qu($i(t),r))},is=new WeakMap,Yu=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!is.get(n))&&!o){is.set(t,!0);for(var a=[],i=Xu(r,a),l=n.props,c=0,u=0;c<i.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=a[c]?i[c].replace(/&\f/g,l[d]):l[d]+" "+i[c]}}},Zu=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Fi(e,t){switch(Lu(e,t)){case 5103:return ne+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ne+e+Fn+e+Te+e+e;case 6828:case 4268:return ne+e+Te+e+e;case 6165:return ne+e+Te+"flex-"+e+e;case 5187:return ne+e+oe(e,/(\w+).+(:[^]+)/,ne+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return ne+e+Te+"flex-item-"+oe(e,/flex-|-self/,"")+e;case 4675:return ne+e+Te+"flex-line-pack"+oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ne+e+Te+oe(e,"shrink","negative")+e;case 5292:return ne+e+Te+oe(e,"basis","preferred-size")+e;case 6060:return ne+"box-"+oe(e,"-grow","")+ne+e+Te+oe(e,"grow","positive")+e;case 4554:return ne+oe(e,/([^-])(transform)/g,"$1"+ne+"$2")+e;case 6187:return oe(oe(oe(e,/(zoom-|grab)/,ne+"$1"),/(image-set)/,ne+"$1"),e,"")+e;case 5495:case 3959:return oe(e,/(image-set\([^]*)/,ne+"$1$`$1");case 4968:return oe(oe(e,/(.+:)(flex-)?(.*)/,ne+"box-pack:$3"+Te+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ne+e+e;case 4095:case 3583:case 4068:case 2532:return oe(e,/(.+)-inline(.+)/,ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(Pe(e,t+1)){case 109:if(Pe(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ne+"$2-$3$1"+Fn+(Pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wo(e,"stretch")?Fi(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Pe(e,t+1)!==115)break;case 6444:switch(Pe(e,ft(e)-3-(~Wo(e,"!important")&&10))){case 107:return oe(e,":",":"+ne)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ne+(Pe(e,14)===45?"inline-":"")+"box$3$1"+ne+"$2$3$1"+Te+"$2box$3")+e}break;case 5936:switch(Pe(e,t+11)){case 114:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ne+e+Te+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ne+e+Te+e+e}return e}var Qu=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ya:t.return=Fi(t.value,t.length);break;case Ii:return pr([Fr(t,{value:oe(t.value,"@","@"+ne)})],o);case ga:if(t.length)return $u(t.props,function(a){switch(ku(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pr([Fr(t,{props:[oe(a,/:(read-\w+)/,":"+Fn+"$1")]})],o);case"::placeholder":return pr([Fr(t,{props:[oe(a,/:(plac\w+)/,":"+ne+"input-$1")]}),Fr(t,{props:[oe(a,/:(plac\w+)/,":"+Fn+"$1")]}),Fr(t,{props:[oe(a,/:(plac\w+)/,Te+"input-$1")]})],o)}return""})}},ed=[Qu],td=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(_){var g=_.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var o=t.stylisPlugins||ed,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(_){for(var g=_.getAttribute("data-emotion").split(" "),v=1;v<g.length;v++)a[g[v]]=!0;l.push(_)});var c,u=[Yu,Zu];{var d,h=[zu,Hu(function(_){d.insert(_)})],f=Wu(u.concat(o,h)),b=function(g){return pr(Vu(g),f)};c=function(g,v,R,C){d=R,b(g?g+"{"+v.styles+"}":v.styles),C&&(y.inserted[v.name]=!0)}}var y={key:r,sheet:new Ou({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return y.sheet.hydrate(l),y};let Ko;typeof document=="object"&&(Ko=td({key:"css",prepend:!0}));function Di(e){const{injectFirst:t,children:r}=e;return t&&Ko?s.jsx(mr.CacheProvider,{value:Ko,children:r}):r}process.env.NODE_ENV!=="production"&&(Di.propTypes={children:m.node,injectFirst:m.bool});function rd(e){return e==null||Object.keys(e).length===0}function Ui(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(rd(o)?r:o):t;return s.jsx(mr.Global,{styles:n})}process.env.NODE_ENV!=="production"&&(Ui.propTypes={defaultTheme:m.object,styles:m.oneOfType([m.array,m.string,m.object,m.func])});/**
|
|
31
31
|
* @mui/styled-engine v5.16.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
|
|
37
|
-
`)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const
|
|
36
|
+
*/function Bi(e,t){const r=Sc(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(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const Ji=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},nd=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Ui,StyledEngineProvider:Di,ThemeContext:mr.ThemeContext,css:mr.css,default:Bi,internal_processStyles:Ji,keyframes:mr.keyframes},Symbol.toStringTag,{value:"Module"}));function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A.apply(null,arguments)}function Ue(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function wt(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 Vi(e){if(!wt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Vi(e[r])}),t}function tt(e,t,r={clone:!0}){const n=r.clone?A({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach(o=>{wt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wt(e[o])?n[o]=tt(e[o],t[o],r):r.clone?n[o]=wt(t[o])?Vi(t[o]):t[o]:n[o]=t[o]}),n}const od=Object.freeze(Object.defineProperty({__proto__:null,default:tt,isPlainObject:wt},Symbol.toStringTag,{value:"Module"})),ad=["values","unit","step"],sd=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)=>A({},r,{[n.key]:n.val}),{})};function Gi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Ue(e,ad),a=sd(t),i=Object.keys(a);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-n/100}${r})`}function u(f,b){const y=i.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${r}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:b)-n/100}${r})`}function d(f){return i.indexOf(f)+1<i.length?u(f,i[i.indexOf(f)+1]):l(f)}function h(f){const b=i.indexOf(f);return b===0?l(i[1]):b===i.length-1?c(i[b]):u(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return A({keys:i,values:a,up:l,down:c,between:u,only:d,not:h,unit:r},o)}const id={borderRadius:4},Dt=process.env.NODE_ENV!=="production"?m.oneOfType([m.number,m.string,m.object,m.array]):{};function Vr(e,t){return t?tt(e,t,{clone:!1}):e}const ba={xs:0,sm:600,md:900,lg:1200,xl:1536},ls={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ba[e]}px)`};function it(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||ls;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=r(t[c]),i),{})}if(typeof t=="object"){const a=n.breakpoints||ls;return Object.keys(t).reduce((i,l)=>{if(Object.keys(a.values||ba).indexOf(l)!==-1){const c=a.up(l);i[c]=r(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return r(t)}function zi(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function Wi(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function ld(e,...t){const r=zi(e),n=[r,...t].reduce((o,a)=>tt(o,a),{});return Wi(Object.keys(r),n)}function cd(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((o,a)=>{a<e.length&&(r[o]=!0)}):n.forEach(o=>{e[o]!=null&&(r[o]=!0)}),r}function Oo({values:e,breakpoints:t,base:r}){const n=r||cd(e,t),o=Object.keys(n);if(o.length===0)return e;let a;return o.reduce((i,l,c)=>(Array.isArray(e)?(i[l]=e[c]!=null?e[c]:e[a],a=c):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function Oe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Hr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const ud=Object.freeze(Object.defineProperty({__proto__:null,default:Oe},Symbol.toStringTag,{value:"Module"}));function Qn(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Dn(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Qn(e,r)||n,t&&(o=t(o,n,e)),o}function _e(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=Qn(c,n)||{};return it(i,l,h=>{let f=Dn(u,o,h);return h===f&&typeof h=="string"&&(f=Dn(u,o,`${t}${h==="default"?"":Oe(h)}`,h)),r===!1?f:{[r]:f}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Dt}:{},a.filterProps=[t],a}function dd(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const fd={m:"margin",p:"padding"},hd={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},md=dd(e=>{if(e.length>2)if(cs[e])e=cs[e];else return[e];const[t,r]=e.split(""),n=fd[t],o=hd[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),eo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],to=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],pd=[...eo,...to];function rn(e,t,r,n){var o;const a=(o=Qn(e,t,!1))!=null?o:r;return typeof a=="number"?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}.`),a*i):Array.isArray(a)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>a.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${i} > ${a.length-1}, you need to add the missing values.`].join(`
|
|
38
38
|
`)):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(`
|
|
39
39
|
`))),a[i]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
40
|
-
`)),()=>{})}function Ca(e){return tn(e,"spacing",8,"spacing")}function Yt(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function Nu(e,t){return r=>e.reduce((n,o)=>(n[o]=Yt(t,r),n),{})}function Fu(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=ku(r),a=Nu(o,n),i=e[r];return ct(e,i,a)}function el(e,t){const r=Ca(e.theme);return Object.keys(e).map(n=>Fu(e,t,n,r)).reduce(Jr,{})}function me(e){return el(e,oo)}me.propTypes=process.env.NODE_ENV!=="production"?oo.reduce((e,t)=>(e[t]=Bt,e),{}):{};me.filterProps=oo;function pe(e){return el(e,ao)}pe.propTypes=process.env.NODE_ENV!=="production"?ao.reduce((e,t)=>(e[t]=Bt,e),{}):{};pe.filterProps=ao;process.env.NODE_ENV!=="production"&&$u.reduce((e,t)=>(e[t]=Bt,e),{});function Du(e=8){if(e.mui)return e;const t=Ca({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function so(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Jr(o,t[a](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 et(e){return typeof e!="number"?e:`${e}px solid`}function at(e,t){return ye({prop:e,themeKey:"borders",transform:t})}const Uu=at("border",et),Bu=at("borderTop",et),Ju=at("borderRight",et),Vu=at("borderBottom",et),Gu=at("borderLeft",et),zu=at("borderColor"),Wu=at("borderTopColor"),Hu=at("borderRightColor"),Ku=at("borderBottomColor"),qu=at("borderLeftColor"),Xu=at("outline",et),Yu=at("outlineColor"),io=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=tn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Yt(t,n)});return ct(e,e.borderRadius,r)}return null};io.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Bt}:{};io.filterProps=["borderRadius"];so(Uu,Bu,Ju,Vu,Gu,zu,Wu,Hu,Ku,qu,io,Xu,Yu);const lo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=tn(e.theme,"spacing",8,"gap"),r=n=>({gap:Yt(t,n)});return ct(e,e.gap,r)}return null};lo.propTypes=process.env.NODE_ENV!=="production"?{gap:Bt}:{};lo.filterProps=["gap"];const co=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=tn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Yt(t,n)});return ct(e,e.columnGap,r)}return null};co.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Bt}:{};co.filterProps=["columnGap"];const uo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=tn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Yt(t,n)});return ct(e,e.rowGap,r)}return null};uo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Bt}:{};uo.filterProps=["rowGap"];const Zu=ye({prop:"gridColumn"}),Qu=ye({prop:"gridRow"}),ed=ye({prop:"gridAutoFlow"}),td=ye({prop:"gridAutoColumns"}),rd=ye({prop:"gridAutoRows"}),nd=ye({prop:"gridTemplateColumns"}),od=ye({prop:"gridTemplateRows"}),ad=ye({prop:"gridTemplateAreas"}),sd=ye({prop:"gridArea"});so(lo,co,uo,Zu,Qu,ed,td,rd,nd,od,ad,sd);function gr(e,t){return t==="grey"?t:e}const id=ye({prop:"color",themeKey:"palette",transform:gr}),ld=ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),cd=ye({prop:"backgroundColor",themeKey:"palette",transform:gr});so(id,ld,cd);function ze(e){return e<=1&&e!==0?`${e*100}%`:e}const ud=ye({prop:"width",transform:ze}),Pa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ja[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:ze(r)}};return ct(e,e.maxWidth,t)}return null};Pa.filterProps=["maxWidth"];const dd=ye({prop:"minWidth",transform:ze}),fd=ye({prop:"height",transform:ze}),hd=ye({prop:"maxHeight",transform:ze}),md=ye({prop:"minHeight",transform:ze});ye({prop:"size",cssProperty:"width",transform:ze});ye({prop:"size",cssProperty:"height",transform:ze});const pd=ye({prop:"boxSizing"});so(ud,Pa,dd,fd,hd,md,pd);const rn={border:{themeKey:"borders",transform:et},borderTop:{themeKey:"borders",transform:et},borderRight:{themeKey:"borders",transform:et},borderBottom:{themeKey:"borders",transform:et},borderLeft:{themeKey:"borders",transform:et},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:et},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:io},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},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:me},mt:{style:me},mr:{style:me},mb:{style:me},ml:{style:me},mx:{style:me},my:{style:me},margin:{style:me},marginTop:{style:me},marginRight:{style:me},marginBottom:{style:me},marginLeft:{style:me},marginX:{style:me},marginY:{style:me},marginInline:{style:me},marginInlineStart:{style:me},marginInlineEnd:{style:me},marginBlock:{style:me},marginBlockStart:{style:me},marginBlockEnd:{style:me},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:lo},rowGap:{style:uo},columnGap:{style:co},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ze},maxWidth:{style:Pa},minWidth:{transform:ze},height:{transform:ze},maxHeight:{transform:ze},minHeight:{transform:ze},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function gd(...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 yd(e,t){return typeof e=="function"?e(t):e}function tl(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:f}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const h=no(o,u)||{};return f?f(i):ct(i,n,y=>{let _=Nn(h,d,y);return y===_&&typeof y=="string"&&(_=Nn(h,d,`${r}${y==="default"?"":Oe(y)}`,y)),c===!1?_:{[c]:_}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:rn;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=Zi(a.breakpoints),f=Object.keys(d);let h=d;return Object.keys(u).forEach(b=>{const y=yd(u[b],a);if(y!=null)if(typeof y=="object")if(i[b])h=Jr(h,e(b,y,a,i));else{const _=ct({theme:a},y,g=>({[b]:g}));gd(_,y)?h[b]=t({sx:y,theme:a}):h=Jr(h,_)}else h=Jr(h,e(b,y,a,i))}),Qi(f,h)}return Array.isArray(o)?o.map(l):l(o)}return t}const nn=tl();nn.filterProps=["sx"];function rl(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const _d=["breakpoints","palette","spacing","shape"];function on(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=De(e,_d),l=Yi(r),c=Du(o);let u=rt({breakpoints:l,direction:"ltr",components:{},palette:P({mode:"light"},n),spacing:c,shape:P({},Au,a)},i);return u.applyStyles=rl,u=t.reduce((d,f)=>rt(d,f),u),u.unstable_sxConfig=P({},rn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return nn({sx:f,theme:this})},u}const bd=Object.freeze(Object.defineProperty({__proto__:null,default:on,private_createBreakpoints:Yi,unstable_applyStyles:rl},Symbol.toStringTag,{value:"Module"}));function vd(e){return Object.keys(e).length===0}function xd(e=null){const t=N.useContext(qt.ThemeContext);return!t||vd(t)?e:t}const Sd=on();function wd(e=Sd){return xd(e)}const Rd=["sx"],jd=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:rn;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function nl(e){const{sx:t}=e,r=De(e,Rd),{systemProps:n,otherProps:o}=jd(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return jt(l)?P({},n,l):n}:a=P({},n,t),P({},o,{sx:a})}const Cd=Object.freeze(Object.defineProperty({__proto__:null,default:nn,extendSxProp:nl,unstable_createStyleFunctionSx:tl,unstable_defaultSxConfig:rn},Symbol.toStringTag,{value:"Module"})),ls=e=>e,Pd=()=>{let e=ls;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ls}}},ol=Pd();function al(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=al(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function bt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=al(e))&&(n&&(n+=" "),n+=t);return n}const Ad={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 an(e,t,r="Mui"){const n=Ad[t];return n?`${r}-${n}`:`${ol.generate(e)}-${t}`}function sl(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=an(e,o,r)}),n}var ta={exports:{}},ae={};/**
|
|
40
|
+
`)),()=>{})}function xa(e){return rn(e,"spacing",8,"spacing")}function Ht(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function gd(e,t){return r=>e.reduce((n,o)=>(n[o]=Ht(t,r),n),{})}function yd(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=md(r),a=gd(o,n),i=e[r];return it(e,i,a)}function Hi(e,t){const r=xa(e.theme);return Object.keys(e).map(n=>yd(e,t,n,r)).reduce(Vr,{})}function me(e){return Hi(e,eo)}me.propTypes=process.env.NODE_ENV!=="production"?eo.reduce((e,t)=>(e[t]=Dt,e),{}):{};me.filterProps=eo;function pe(e){return Hi(e,to)}pe.propTypes=process.env.NODE_ENV!=="production"?to.reduce((e,t)=>(e[t]=Dt,e),{}):{};pe.filterProps=to;process.env.NODE_ENV!=="production"&&pd.reduce((e,t)=>(e[t]=Dt,e),{});function _d(e=8){if(e.mui)return e;const t=xa({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return r.mui=!0,r}function ro(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?Vr(o,t[a](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 Qe(e){return typeof e!="number"?e:`${e}px solid`}function nt(e,t){return _e({prop:e,themeKey:"borders",transform:t})}const bd=nt("border",Qe),xd=nt("borderTop",Qe),Sd=nt("borderRight",Qe),vd=nt("borderBottom",Qe),wd=nt("borderLeft",Qe),Rd=nt("borderColor"),jd=nt("borderTopColor"),Cd=nt("borderRightColor"),Ad=nt("borderBottomColor"),Pd=nt("borderLeftColor"),Od=nt("outline",Qe),Td=nt("outlineColor"),no=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Ht(t,n)});return it(e,e.borderRadius,r)}return null};no.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Dt}:{};no.filterProps=["borderRadius"];ro(bd,xd,Sd,vd,wd,Rd,jd,Cd,Ad,Pd,no,Od,Td);const oo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rn(e.theme,"spacing",8,"gap"),r=n=>({gap:Ht(t,n)});return it(e,e.gap,r)}return null};oo.propTypes=process.env.NODE_ENV!=="production"?{gap:Dt}:{};oo.filterProps=["gap"];const ao=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Ht(t,n)});return it(e,e.columnGap,r)}return null};ao.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Dt}:{};ao.filterProps=["columnGap"];const so=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Ht(t,n)});return it(e,e.rowGap,r)}return null};so.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Dt}:{};so.filterProps=["rowGap"];const Ed=_e({prop:"gridColumn"}),Md=_e({prop:"gridRow"}),Id=_e({prop:"gridAutoFlow"}),Ld=_e({prop:"gridAutoColumns"}),kd=_e({prop:"gridAutoRows"}),$d=_e({prop:"gridTemplateColumns"}),Nd=_e({prop:"gridTemplateRows"}),Fd=_e({prop:"gridTemplateAreas"}),Dd=_e({prop:"gridArea"});ro(oo,ao,so,Ed,Md,Id,Ld,kd,$d,Nd,Fd,Dd);function gr(e,t){return t==="grey"?t:e}const Ud=_e({prop:"color",themeKey:"palette",transform:gr}),Bd=_e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gr}),Jd=_e({prop:"backgroundColor",themeKey:"palette",transform:gr});ro(Ud,Bd,Jd);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const Vd=_e({prop:"width",transform:Ge}),Sa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||ba[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Ge(r)}};return it(e,e.maxWidth,t)}return null};Sa.filterProps=["maxWidth"];const Gd=_e({prop:"minWidth",transform:Ge}),zd=_e({prop:"height",transform:Ge}),Wd=_e({prop:"maxHeight",transform:Ge}),Hd=_e({prop:"minHeight",transform:Ge});_e({prop:"size",cssProperty:"width",transform:Ge});_e({prop:"size",cssProperty:"height",transform:Ge});const Kd=_e({prop:"boxSizing"});ro(Vd,Sa,Gd,zd,Wd,Hd,Kd);const nn={border:{themeKey:"borders",transform:Qe},borderTop:{themeKey:"borders",transform:Qe},borderRight:{themeKey:"borders",transform:Qe},borderBottom:{themeKey:"borders",transform:Qe},borderLeft:{themeKey:"borders",transform:Qe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:no},color:{themeKey:"palette",transform:gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gr},backgroundColor:{themeKey:"palette",transform:gr},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:me},mt:{style:me},mr:{style:me},mb:{style:me},ml:{style:me},mx:{style:me},my:{style:me},margin:{style:me},marginTop:{style:me},marginRight:{style:me},marginBottom:{style:me},marginLeft:{style:me},marginX:{style:me},marginY:{style:me},marginInline:{style:me},marginInlineStart:{style:me},marginInlineEnd:{style:me},marginBlock:{style:me},marginBlockStart:{style:me},marginBlockEnd:{style:me},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:oo},rowGap:{style:so},columnGap:{style:ao},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ge},maxWidth:{style:Sa},minWidth:{transform:Ge},height:{transform:Ge},maxHeight:{transform:Ge},minHeight:{transform:Ge},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function qd(...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 Xd(e,t){return typeof e=="function"?e(t):e}function Ki(){function e(r,n,o,a){const i={[r]:n,theme:o},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:h}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const f=Qn(o,u)||{};return h?h(i):it(i,n,y=>{let _=Dn(f,d,y);return y===_&&typeof y=="string"&&(_=Dn(f,d,`${r}${y==="default"?"":Oe(y)}`,y)),c===!1?_:{[c]:_}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const i=(n=a.unstable_sxConfig)!=null?n:nn;function l(c){let u=c;if(typeof c=="function")u=c(a);else if(typeof c!="object")return c;if(!u)return null;const d=zi(a.breakpoints),h=Object.keys(d);let f=d;return Object.keys(u).forEach(b=>{const y=Xd(u[b],a);if(y!=null)if(typeof y=="object")if(i[b])f=Vr(f,e(b,y,a,i));else{const _=it({theme:a},y,g=>({[b]:g}));qd(_,y)?f[b]=t({sx:y,theme:a}):f=Vr(f,_)}else f=Vr(f,e(b,y,a,i))}),Wi(h,f)}return Array.isArray(o)?o.map(l):l(o)}return t}const on=Ki();on.filterProps=["sx"];function qi(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const Yd=["breakpoints","palette","spacing","shape"];function an(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,i=Ue(e,Yd),l=Gi(r),c=_d(o);let u=tt({breakpoints:l,direction:"ltr",components:{},palette:A({mode:"light"},n),spacing:c,shape:A({},id,a)},i);return u.applyStyles=qi,u=t.reduce((d,h)=>tt(d,h),u),u.unstable_sxConfig=A({},nn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return on({sx:h,theme:this})},u}const Zd=Object.freeze(Object.defineProperty({__proto__:null,default:an,private_createBreakpoints:Gi,unstable_applyStyles:qi},Symbol.toStringTag,{value:"Module"}));function Qd(e){return Object.keys(e).length===0}function ef(e=null){const t=N.useContext(mr.ThemeContext);return!t||Qd(t)?e:t}const tf=an();function rf(e=tf){return ef(e)}const nf=["sx"],of=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:nn;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Xi(e){const{sx:t}=e,r=Ue(e,nf),{systemProps:n,otherProps:o}=of(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return wt(l)?A({},n,l):n}:a=A({},n,t),A({},o,{sx:a})}const af=Object.freeze(Object.defineProperty({__proto__:null,default:on,extendSxProp:Xi,unstable_createStyleFunctionSx:Ki,unstable_defaultSxConfig:nn},Symbol.toStringTag,{value:"Module"})),us=e=>e,sf=()=>{let e=us;return{configure(t){e=t},generate(t){return e(t)},reset(){e=us}}},Yi=sf();function Zi(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=Zi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function gt(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zi(e))&&(n&&(n+=" "),n+=t);return n}const lf={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 sn(e,t,r="Mui"){const n=lf[t];return n?`${r}-${n}`:`${Yi.generate(e)}-${t}`}function Qi(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=sn(e,o,r)}),n}var qo={exports:{}},ae={};/**
|
|
41
41
|
* @license React
|
|
42
42
|
* react-is.production.min.js
|
|
43
43
|
*
|
|
@@ -45,7 +45,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var
|
|
48
|
+
*/var ds;function cf(){if(ds)return ae;ds=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function _(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case r:case o:case n:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case l:case i:case c:case f:case h:case a:return g;default:return v}}case t:return v}}}return ae.ContextConsumer=i,ae.ContextProvider=a,ae.Element=e,ae.ForwardRef=c,ae.Fragment=r,ae.Lazy=f,ae.Memo=h,ae.Portal=t,ae.Profiler=o,ae.StrictMode=n,ae.Suspense=u,ae.SuspenseList=d,ae.isAsyncMode=function(){return!1},ae.isConcurrentMode=function(){return!1},ae.isContextConsumer=function(g){return _(g)===i},ae.isContextProvider=function(g){return _(g)===a},ae.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ae.isForwardRef=function(g){return _(g)===c},ae.isFragment=function(g){return _(g)===r},ae.isLazy=function(g){return _(g)===f},ae.isMemo=function(g){return _(g)===h},ae.isPortal=function(g){return _(g)===t},ae.isProfiler=function(g){return _(g)===o},ae.isStrictMode=function(g){return _(g)===n},ae.isSuspense=function(g){return _(g)===u},ae.isSuspenseList=function(g){return _(g)===d},ae.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===o||g===n||g===u||g===d||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===h||g.$$typeof===a||g.$$typeof===i||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},ae.typeOf=_,ae}var se={};/**
|
|
49
49
|
* @license React
|
|
50
50
|
* react-is.development.js
|
|
51
51
|
*
|
|
@@ -53,13 +53,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the MIT license found in the
|
|
55
55
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var
|
|
56
|
+
*/var fs;function uf(){return fs||(fs=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),y=!1,_=!1,g=!1,v=!1,R=!1,C;C=Symbol.for("react.module.reference");function k(E){return!!(typeof E=="string"||typeof E=="function"||E===r||E===o||R||E===n||E===u||E===d||v||E===b||y||_||g||typeof E=="object"&&E!==null&&(E.$$typeof===f||E.$$typeof===h||E.$$typeof===a||E.$$typeof===i||E.$$typeof===c||E.$$typeof===C||E.getModuleId!==void 0))}function j(E){if(typeof E=="object"&&E!==null){var ee=E.$$typeof;switch(ee){case e:var he=E.type;switch(he){case r:case o:case n:case u:case d:return he;default:var Le=he&&he.$$typeof;switch(Le){case l:case i:case c:case f:case h:case a:return Le;default:return ee}}case t:return ee}}}var P=i,O=a,z=e,le=c,ue=r,D=f,q=h,G=t,X=o,K=n,we=u,ce=d,Q=!1,Ae=!1;function Ie(E){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ot(E){return Ae||(Ae=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function bt(E){return j(E)===i}function Ke(E){return j(E)===a}function Re(E){return typeof E=="object"&&E!==null&&E.$$typeof===e}function Tt(E){return j(E)===c}function ct(E){return j(E)===r}function qe(E){return j(E)===f}function Be(E){return j(E)===h}function ut(E){return j(E)===t}function dt(E){return j(E)===o}function Ut(E){return j(E)===n}function xt(E){return j(E)===u}function Je(E){return j(E)===d}se.ContextConsumer=P,se.ContextProvider=O,se.Element=z,se.ForwardRef=le,se.Fragment=ue,se.Lazy=D,se.Memo=q,se.Portal=G,se.Profiler=X,se.StrictMode=K,se.Suspense=we,se.SuspenseList=ce,se.isAsyncMode=Ie,se.isConcurrentMode=ot,se.isContextConsumer=bt,se.isContextProvider=Ke,se.isElement=Re,se.isForwardRef=Tt,se.isFragment=ct,se.isLazy=qe,se.isMemo=Be,se.isPortal=ut,se.isProfiler=dt,se.isStrictMode=Ut,se.isSuspense=xt,se.isSuspenseList=Je,se.isValidElementType=k,se.typeOf=j}()),se}process.env.NODE_ENV==="production"?qo.exports=cf():qo.exports=uf();var hs=qo.exports;const df=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function el(e){const t=`${e}`.match(df);return t&&t[1]||""}function tl(e,t=""){return e.displayName||e.name||el(e)||t}function ms(e,t,r){const n=tl(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function rl(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return tl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case hs.ForwardRef:return ms(e,e.render,"ForwardRef");case hs.Memo:return ms(e,e.type,"memo");default:return}}}const ff=Object.freeze(Object.defineProperty({__proto__:null,default:rl,getFunctionName:el},Symbol.toStringTag,{value:"Module"})),hf=["ownerState"],mf=["variants"],pf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function gf(e){return Object.keys(e).length===0}function yf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function To(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _f=an(),ps=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gn({defaultTheme:e,theme:t,themeId:r}){return gf(t)?e:t[r]||t}function bf(e){return e?(t,r)=>r[e]:null}function An(e,t){let{ownerState:r}=t,n=Ue(t,hf);const o=typeof e=="function"?e(A({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>An(a,A({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=Ue(o,mf);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props(A({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(A({ownerState:r},n,r)):c.style))}),l}return o}function xf(e={}){const{themeId:t,defaultTheme:r=_f,rootShouldForwardProp:n=To,slotShouldForwardProp:o=To}=e,a=i=>on(A({},i,{theme:gn(A({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{Ji(i,j=>j.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=bf(ps(u))}=l,b=Ue(l,pf),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=h||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${ps(u||"Root")}`);let v=To;u==="Root"||u==="root"?v=n:u?v=o:yf(i)&&(v=void 0);const R=Bi(i,A({shouldForwardProp:v,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||wt(j)?P=>An(j,A({},P,{theme:gn({theme:P.theme,defaultTheme:r,themeId:t})})):j,k=(j,...P)=>{let O=C(j);const z=P?P.map(C):[];c&&f&&z.push(D=>{const q=gn(A({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[c]||!q.components[c].styleOverrides)return null;const G=q.components[c].styleOverrides,X={};return Object.entries(G).forEach(([K,we])=>{X[K]=An(we,A({},D,{theme:q}))}),f(D,X)}),c&&!y&&z.push(D=>{var q;const G=gn(A({},D,{defaultTheme:r,themeId:t})),X=G==null||(q=G.components)==null||(q=q[c])==null?void 0:q.variants;return An({variants:X},A({},D,{theme:G}))}),_||z.push(a);const le=z.length-P.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${Oe(u||"")}`),D===void 0&&(D=`Styled(${rl(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}const Sf=xf();function Un(e,t){const r=A({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=A({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=A({},a),Object.keys(o).forEach(i=>{r[n][i]=Un(o[i],a[i])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function vf(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Un(t.components[r].defaultProps,n)}function wf({props:e,name:t,defaultTheme:r,themeId:n}){let o=rf(r);return n&&(o=o[n]||o),vf({theme:o,name:t,props:e})}const va=typeof window<"u"?N.useLayoutEffect:N.useEffect;function hr(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const Rf=Object.freeze(Object.defineProperty({__proto__:null,default:hr},Symbol.toStringTag,{value:"Module"}));function gs(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function jf(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Cf(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Af(e,t){return process.env.NODE_ENV==="production"?()=>null:(r,n,o,a,i)=>{const l=o||"<<anonymous>>",c=i||n;return typeof r[n]<"u"?new Error(`The ${a} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function Pf(e,t){var r,n;return N.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function yr(e){return e&&e.ownerDocument||document}function Of(e){return yr(e).defaultView||window}function Tf(e,t){if(process.env.NODE_ENV==="production")return()=>null;const r=t?A({},t.propTypes):null;return o=>(a,i,l,c,u,...d)=>{const h=u||i,f=r==null?void 0:r[h];if(f){const b=f(a,i,l,c,u,...d);if(b)return b}return typeof a[i]<"u"&&!a[o]?new Error(`The prop \`${h}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function nl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ys=0;function Ef(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(ys+=1,r(`mui-${ys}`))},[t]),n}const _s=N.useId;function Mf(e){if(_s!==void 0){const t=_s();return e??t}return Ef(e)}function If(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const a=o||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function ol({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[a,i]=N.useState(t),l=o?e:a;if(process.env.NODE_ENV!=="production"){N.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
57
57
|
`))},[n,r,e]);const{current:u}=N.useRef(t);N.useEffect(()=>{!o&&!Object.is(u,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(`
|
|
58
|
-
`))},[JSON.stringify(t)])}const c=N.useCallback(u=>{o||i(u)},[]);return[l,c]}function Tn(e){const t=N.useRef(e);return Aa(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Dn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{ul(r,t)})},e)}class Oa{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Oa}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let fo=!0,ra=!1;const ef=new Oa,tf={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function rf(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&tf[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function nf(e){e.metaKey||e.altKey||e.ctrlKey||(fo=!0)}function ko(){fo=!1}function of(){this.visibilityState==="hidden"&&ra&&(fo=!0)}function af(e){e.addEventListener("keydown",nf,!0),e.addEventListener("mousedown",ko,!0),e.addEventListener("pointerdown",ko,!0),e.addEventListener("touchstart",ko,!0),e.addEventListener("visibilitychange",of,!0)}function sf(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return fo||rf(t)}function fl(){const e=N.useCallback(o=>{o!=null&&af(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(ra=!0,ef.start(100,()=>{ra=!1}),t.current=!1,!0):!1}function n(o){return sf(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const lf={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ta(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function Vr(e){return typeof e=="string"}function cf(e,t,r){return e===void 0||Vr(e)?t:P({},t,{ownerState:P({},t.ownerState,r)})}function En(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 ys(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 uf(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const b=bt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),y=P({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),_=P({},r,o,n);return b.length>0&&(_.className=b),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=En(P({},o,n)),l=ys(n),c=ys(o),u=t(i),d=bt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),f=P({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),h=P({},u,r,c,l);return d.length>0&&(h.className=d),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}function df(e,t,r){return typeof e=="function"?e(t,r):e}const ff=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function $t(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=De(e,ff),l=a?{}:df(n,o),{props:c,internalRef:u}=uf(P({},i,{externalSlotProps:l})),d=Dn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return cf(r,P({},c,{ref:d}),o)}const hf=N.createContext();process.env.NODE_ENV!=="production"&&(m.node,m.bool);const mf=()=>{const e=N.useContext(hf);return e??!1},pf=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(m.node,m.object);function gf(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?Fn(o.defaultProps,n):!o.styleOverrides&&!o.variants?Fn(o,n):n}function yf({props:e,name:t}){const r=N.useContext(pf);return gf({props:e,name:t,theme:{components:r}})}const _f=["component","direction","spacing","divider","children","className","useFlexGap"],bf=on(),vf=Bd("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function xf(e){return Vd({props:e,name:"MuiStack",defaultTheme:bf})}function Sf(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${a}`})),n),[])}const wf=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Rf=({ownerState:e,theme:t})=>{let r=P({display:"flex",flexDirection:"column"},ct({theme:t},Io({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=Ca(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=Io({values:e.direction,base:o}),i=Io({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const h=u>0?a[d[u-1]]:"column";a[c]=h}}),r=rt(r,ct({theme:t},i,(c,u)=>e.useFlexGap?{gap:Yt(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${wf(u?a[u]:e.direction)}`]:Yt(n,c)}}))}return r=Ou(t.breakpoints,r),r};function jf(e={}){const{createStyledComponent:t=vf,useThemeProps:r=xf,componentName:n="MuiStack"}=e,o=()=>Ta({root:["root"]},c=>an(n,c),{}),a=t(Rf),i=N.forwardRef(function(c,u){const d=r(c),f=nl(d),{component:h="div",direction:b="column",spacing:y=0,divider:_,children:g,className:S,useFlexGap:R=!1}=f,C=De(f,_f),k={direction:b,spacing:y,useFlexGap:R},j=o();return s.jsx(a,P({as:h,ownerState:k,ref:u,className:bt(j.root,S)},C,{children:_?Sf(g,_):g}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:m.node,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])}),i}function Cf(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var _e={},hl={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(hl);var ho=hl.exports;const Pf=At(zc),Af=At(Gd);var ml=ho;Object.defineProperty(_e,"__esModule",{value:!0});var _s=_e.alpha=_l;_e.blend=Ff;_e.colorChannel=void 0;var na=_e.darken=Ma;_e.decomposeColor=nt;_e.emphasize=bl;var bs=_e.getContrastRatio=If;_e.getLuminance=Un;_e.hexToRgb=pl;_e.hslToRgb=yl;var oa=_e.lighten=Ia;_e.private_safeAlpha=Lf;_e.private_safeColorChannel=void 0;_e.private_safeDarken=kf;_e.private_safeEmphasize=Nf;_e.private_safeLighten=$f;_e.recomposeColor=Sr;_e.rgbToHex=Mf;var vs=ml(Pf),Of=ml(Af);function Ea(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}].`),(0,Of.default)(e,t,r)}function pl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Tf(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function nt(e){if(e.type)return e;if(e.charAt(0)==="#")return nt(pl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
59
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,
|
|
60
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,
|
|
61
|
-
`))}return g}const
|
|
62
|
-
The color object needs to have a \`main\` property or a \`${
|
|
58
|
+
`))},[JSON.stringify(t)])}const c=N.useCallback(u=>{o||i(u)},[]);return[l,c]}function Pn(e){const t=N.useRef(e);return va(()=>{t.current=e}),N.useRef((...r)=>(0,t.current)(...r)).current}function Bn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{nl(r,t)})},e)}class wa{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wa}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}let io=!0,Xo=!1;const Lf=new wa,kf={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function $f(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&kf[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Nf(e){e.metaKey||e.altKey||e.ctrlKey||(io=!0)}function Eo(){io=!1}function Ff(){this.visibilityState==="hidden"&&Xo&&(io=!0)}function Df(e){e.addEventListener("keydown",Nf,!0),e.addEventListener("mousedown",Eo,!0),e.addEventListener("pointerdown",Eo,!0),e.addEventListener("touchstart",Eo,!0),e.addEventListener("visibilitychange",Ff,!0)}function Uf(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return io||$f(t)}function al(){const e=N.useCallback(o=>{o!=null&&Df(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(Xo=!0,Lf.start(100,()=>{Xo=!1}),t.current=!1,!0):!1}function n(o){return Uf(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}const Bf={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Ra(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,i)=>{if(i){const l=t(i);l!==""&&a.push(l),r&&r[i]&&a.push(r[i])}return a},[]).join(" ")}),n}function Gr(e){return typeof e=="string"}function Jf(e,t,r){return e===void 0||Gr(e)?t:A({},t,{ownerState:A({},t.ownerState,r)})}function On(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 bs(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 Vf(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const b=gt(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),y=A({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),_=A({},r,o,n);return b.length>0&&(_.className=b),Object.keys(y).length>0&&(_.style=y),{props:_,internalRef:void 0}}const i=On(A({},o,n)),l=bs(n),c=bs(o),u=t(i),d=gt(u==null?void 0:u.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),h=A({},u==null?void 0:u.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),f=A({},u,r,c,l);return d.length>0&&(f.className=d),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:u.ref}}function Gf(e,t,r){return typeof e=="function"?e(t,r):e}const zf=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Lt(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=Ue(e,zf),l=a?{}:Gf(n,o),{props:c,internalRef:u}=Vf(A({},i,{externalSlotProps:l})),d=Bn(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jf(r,A({},c,{ref:d}),o)}const Wf=N.createContext();process.env.NODE_ENV!=="production"&&(m.node,m.bool);const Hf=()=>{const e=N.useContext(Wf);return e??!1},Kf=N.createContext(void 0);process.env.NODE_ENV!=="production"&&(m.node,m.object);function qf(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?Un(o.defaultProps,n):!o.styleOverrides&&!o.variants?Un(o,n):n}function Xf({props:e,name:t}){const r=N.useContext(Kf);return qf({props:e,name:t,theme:{components:r}})}const Yf=["component","direction","spacing","divider","children","className","useFlexGap"],Zf=an(),Qf=Sf("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function eh(e){return wf({props:e,name:"MuiStack",defaultTheme:Zf})}function th(e,t){const r=N.Children.toArray(e).filter(Boolean);return r.reduce((n,o,a)=>(n.push(o),a<r.length-1&&n.push(N.cloneElement(t,{key:`separator-${a}`})),n),[])}const rh=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],nh=({ownerState:e,theme:t})=>{let r=A({display:"flex",flexDirection:"column"},it({theme:t},Oo({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=xa(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),a=Oo({values:e.direction,base:o}),i=Oo({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((c,u,d)=>{if(!a[c]){const f=u>0?a[d[u-1]]:"column";a[c]=f}}),r=tt(r,it({theme:t},i,(c,u)=>e.useFlexGap?{gap:Ht(n,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${rh(u?a[u]:e.direction)}`]:Ht(n,c)}}))}return r=ld(t.breakpoints,r),r};function oh(e={}){const{createStyledComponent:t=Qf,useThemeProps:r=eh,componentName:n="MuiStack"}=e,o=()=>Ra({root:["root"]},c=>sn(n,c),{}),a=t(nh),i=N.forwardRef(function(c,u){const d=r(c),h=Xi(d),{component:f="div",direction:b="column",spacing:y=0,divider:_,children:g,className:v,useFlexGap:R=!1}=h,C=Ue(h,Yf),k={direction:b,spacing:y,useFlexGap:R},j=o();return s.jsx(a,A({as:f,ownerState:k,ref:u,className:gt(j.root,v)},C,{children:_?th(g,_):g}))});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:m.node,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object])}),i}var ln={},sl={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sl);var lo=sl.exports,Mo={exports:{}},xs;function ah(){return xs||(xs=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Mo)),Mo.exports}var Io={exports:{}},Ss;function sh(){return Ss||(Ss=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Io)),Io.exports}const ih=Ct(nd),lh=Ct(od),ch=Ct(ud),uh=Ct(ff),dh=Ct(Zd),fh=Ct(af);var wr=lo;Object.defineProperty(ln,"__esModule",{value:!0});var hh=ln.default=Ah;ln.shouldForwardProp=Tn;ln.systemDefaultTheme=void 0;var Ze=wr(ah()),Yo=wr(sh()),vs=vh(ih),mh=lh,ph=wr(ch),gh=wr(uh),yh=wr(dh),_h=wr(fh);const bh=["ownerState"],xh=["variants"],Sh=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function il(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(il=function(n){return n?r:t})(e)}function vh(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=il(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function wh(e){return Object.keys(e).length===0}function Rh(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Tn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jh=ln.systemDefaultTheme=(0,yh.default)(),ws=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yn({defaultTheme:e,theme:t,themeId:r}){return wh(t)?e:t[r]||t}function Ch(e){return e?(t,r)=>r[e]:null}function En(e,t){let{ownerState:r}=t,n=(0,Yo.default)(t,bh);const o=typeof e=="function"?e((0,Ze.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>En(a,(0,Ze.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,Yo.default)(o,xh);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,Ze.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,Ze.default)({ownerState:r},n,r)):c.style))}),l}return o}function Ah(e={}){const{themeId:t,defaultTheme:r=jh,rootShouldForwardProp:n=Tn,slotShouldForwardProp:o=Tn}=e,a=i=>(0,_h.default)((0,Ze.default)({},i,{theme:yn((0,Ze.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,vs.internal_processStyles)(i,j=>j.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:h,overridesResolver:f=Ch(ws(u))}=l,b=(0,Yo.default)(l,Sh),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=h||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${ws(u||"Root")}`);let v=Tn;u==="Root"||u==="root"?v=n:u?v=o:Rh(i)&&(v=void 0);const R=(0,vs.default)(i,(0,Ze.default)({shouldForwardProp:v,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||(0,mh.isPlainObject)(j)?P=>En(j,(0,Ze.default)({},P,{theme:yn({theme:P.theme,defaultTheme:r,themeId:t})})):j,k=(j,...P)=>{let O=C(j);const z=P?P.map(C):[];c&&f&&z.push(D=>{const q=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[c]||!q.components[c].styleOverrides)return null;const G=q.components[c].styleOverrides,X={};return Object.entries(G).forEach(([K,we])=>{X[K]=En(we,(0,Ze.default)({},D,{theme:q}))}),f(D,X)}),c&&!y&&z.push(D=>{var q;const G=yn((0,Ze.default)({},D,{defaultTheme:r,themeId:t})),X=G==null||(q=G.components)==null||(q=q[c])==null?void 0:q.variants;return En({variants:X},(0,Ze.default)({},D,{theme:G}))}),_||z.push(a);const le=z.length-P.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${(0,ph.default)(u||"")}`),D===void 0&&(D=`Styled(${(0,gh.default)(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}function Ph(e,t){return A({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var be={};const Oh=Ct(ju),Th=Ct(Rf);var ll=lo;Object.defineProperty(be,"__esModule",{value:!0});var Rs=be.alpha=fl;be.blend=Uh;be.colorChannel=void 0;var Zo=be.darken=Ca;be.decomposeColor=rt;be.emphasize=hl;var js=be.getContrastRatio=kh;be.getLuminance=Jn;be.hexToRgb=cl;be.hslToRgb=dl;var Qo=be.lighten=Aa;be.private_safeAlpha=$h;be.private_safeColorChannel=void 0;be.private_safeDarken=Nh;be.private_safeEmphasize=Dh;be.private_safeLighten=Fh;be.recomposeColor=Rr;be.rgbToHex=Lh;var Cs=ll(Oh),Eh=ll(Th);function ja(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}].`),(0,Eh.default)(e,t,r)}function cl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Mh(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rt(e){if(e.type)return e;if(e.charAt(0)==="#")return rt(cl(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
59
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Cs.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
60
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Cs.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const ul=e=>{const t=rt(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};be.colorChannel=ul;const Ih=(e,t)=>{try{return ul(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};be.private_safeColorChannel=Ih;function Rr(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Lh(e){if(e.indexOf("#")===0)return e;const{values:t}=rt(e);return`#${t.map((r,n)=>Mh(n===3?Math.round(255*r):r)).join("")}`}function dl(e){e=rt(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),i=(u,d=(u+r/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Rr({type:l,values:c})}function Jn(e){e=rt(e);let t=e.type==="hsl"||e.type==="hsla"?rt(dl(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 kh(e,t){const r=Jn(e),n=Jn(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function fl(e,t){return e=rt(e),t=ja(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Rr(e)}function $h(e,t,r){try{return fl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ca(e,t){if(e=rt(e),t=ja(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Rr(e)}function Nh(e,t,r){try{return Ca(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Aa(e,t){if(e=rt(e),t=ja(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Rr(e)}function Fh(e,t,r){try{return Aa(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function hl(e,t=.15){return Jn(e)>.5?Ca(e,t):Aa(e,t)}function Dh(e,t,r){try{return hl(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Uh(e,t,r,n=1){const o=(c,u)=>Math.round((c**(1/n)*(1-r)+u**(1/n)*r)**n),a=rt(e),i=rt(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return Rr({type:"rgb",values:l})}const Xr={black:"#000",white:"#fff"},Bh={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"},lr={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},cr={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Dr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ur={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},dr={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},fr={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Jh=["mode","contrastThreshold","tonalOffset"],As={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:Xr.white,default:Xr.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}},Lo={text:{primary:Xr.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:Xr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ps(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Qo(e.main,o):t==="dark"&&(e.dark=Zo(e.main,a)))}function Vh(e="light"){return e==="dark"?{main:ur[200],light:ur[50],dark:ur[400]}:{main:ur[700],light:ur[400],dark:ur[800]}}function Gh(e="light"){return e==="dark"?{main:lr[200],light:lr[50],dark:lr[400]}:{main:lr[500],light:lr[300],dark:lr[700]}}function zh(e="light"){return e==="dark"?{main:cr[500],light:cr[300],dark:cr[700]}:{main:cr[700],light:cr[400],dark:cr[800]}}function Wh(e="light"){return e==="dark"?{main:dr[400],light:dr[300],dark:dr[700]}:{main:dr[700],light:dr[500],dark:dr[900]}}function Hh(e="light"){return e==="dark"?{main:fr[400],light:fr[300],dark:fr[700]}:{main:fr[800],light:fr[500],dark:fr[900]}}function Kh(e="light"){return e==="dark"?{main:Dr[400],light:Dr[300],dark:Dr[700]}:{main:"#ed6c02",light:Dr[500],dark:Dr[900]}}function qh(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Ue(e,Jh),a=e.primary||Vh(t),i=e.secondary||Gh(t),l=e.error||zh(t),c=e.info||Wh(t),u=e.success||Hh(t),d=e.warning||Kh(t);function h(_){const g=js(_,Lo.text.primary)>=r?Lo.text.primary:As.text.primary;if(process.env.NODE_ENV!=="production"){const v=js(_,g);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${g} on ${_}`,"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(`
|
|
61
|
+
`))}return g}const f=({color:_,name:g,mainShade:v=500,lightShade:R=300,darkShade:C=700})=>{if(_=A({},_),!_.main&&_[v]&&(_.main=_[v]),!_.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
|
|
62
|
+
The color object needs to have a \`main\` property or a \`${v}\` property.`:Hr(11,g?` (${g})`:"",v));if(typeof _.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
|
|
63
63
|
\`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
|
|
64
64
|
|
|
65
65
|
Did you intend to use one of the following approaches?
|
|
@@ -72,13 +72,13 @@ const theme1 = createTheme({ palette: {
|
|
|
72
72
|
|
|
73
73
|
const theme2 = createTheme({ palette: {
|
|
74
74
|
primary: { main: green[500] },
|
|
75
|
-
} });`:
|
|
76
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:
|
|
77
|
-
`))}h[y]={}}}};Object.keys(u.components).forEach(h=>{const b=u.components[h].styleOverrides;b&&h.indexOf("Mui")===0&&f(b,h)})}return u.unstable_sxConfig=P({},rn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return nn({sx:f,theme:this})},u}const lh=vl();var sn={},No={exports:{}},Cs;function ch(){return Cs||(Cs=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var a in o)({}).hasOwnProperty.call(o,a)&&(r[a]=o[a])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(No)),No.exports}var Fo={exports:{}},Ps;function uh(){return Ps||(Ps=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if({}.hasOwnProperty.call(r,a)){if(n.includes(a))continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Fo)),Fo.exports}const dh=At(Ru),fh=At(ju),hh=At(Eu),mh=At(Md),ph=At(bd),gh=At(Cd);var wr=ho;Object.defineProperty(sn,"__esModule",{value:!0});var yh=sn.default=Eh;sn.shouldForwardProp=Mn;sn.systemDefaultTheme=void 0;var Qe=wr(ch()),aa=wr(uh()),As=Ch(dh),_h=fh,bh=wr(hh),vh=wr(mh),xh=wr(ph),Sh=wr(gh);const wh=["ownerState"],Rh=["variants"],jh=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function xl(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(xl=function(n){return n?r:t})(e)}function Ch(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=xl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Ph(e){return Object.keys(e).length===0}function Ah(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Mn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Oh=sn.systemDefaultTheme=(0,xh.default)(),Os=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function _n({defaultTheme:e,theme:t,themeId:r}){return Ph(t)?e:t[r]||t}function Th(e){return e?(t,r)=>r[e]:null}function In(e,t){let{ownerState:r}=t,n=(0,aa.default)(t,wh);const o=typeof e=="function"?e((0,Qe.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>In(a,(0,Qe.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let l=(0,aa.default)(o,Rh);return a.forEach(c=>{let u=!0;typeof c.props=="function"?u=c.props((0,Qe.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(d=>{(r==null?void 0:r[d])!==c.props[d]&&n[d]!==c.props[d]&&(u=!1)}),u&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style((0,Qe.default)({ownerState:r},n,r)):c.style))}),l}return o}function Eh(e={}){const{themeId:t,defaultTheme:r=Oh,rootShouldForwardProp:n=Mn,slotShouldForwardProp:o=Mn}=e,a=i=>(0,Sh.default)((0,Qe.default)({},i,{theme:_n((0,Qe.default)({},i,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(i,l={})=>{(0,As.internal_processStyles)(i,j=>j.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:h=Th(Os(u))}=l,b=(0,aa.default)(l,jh),y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,_=f||!1;let g;process.env.NODE_ENV!=="production"&&c&&(g=`${c}-${Os(u||"Root")}`);let S=Mn;u==="Root"||u==="root"?S=n:u?S=o:Ah(i)&&(S=void 0);const R=(0,As.default)(i,(0,Qe.default)({shouldForwardProp:S,label:g},b)),C=j=>typeof j=="function"&&j.__emotion_real!==j||(0,_h.isPlainObject)(j)?A=>In(j,(0,Qe.default)({},A,{theme:_n({theme:A.theme,defaultTheme:r,themeId:t})})):j,k=(j,...A)=>{let O=C(j);const z=A?A.map(C):[];c&&h&&z.push(D=>{const q=_n((0,Qe.default)({},D,{defaultTheme:r,themeId:t}));if(!q.components||!q.components[c]||!q.components[c].styleOverrides)return null;const G=q.components[c].styleOverrides,X={};return Object.entries(G).forEach(([K,we])=>{X[K]=In(we,(0,Qe.default)({},D,{theme:q}))}),h(D,X)}),c&&!y&&z.push(D=>{var q;const G=_n((0,Qe.default)({},D,{defaultTheme:r,themeId:t})),X=G==null||(q=G.components)==null||(q=q[c])==null?void 0:q.variants;return In({variants:X},(0,Qe.default)({},D,{theme:G}))}),_||z.push(a);const le=z.length-A.length;if(Array.isArray(j)&&le>0){const D=new Array(le).fill("");O=[...j,...D],O.raw=[...j.raw,...D]}const ue=R(O,...z);if(process.env.NODE_ENV!=="production"){let D;c&&(D=`${c}${(0,bh.default)(u||"")}`),D===void 0&&(D=`Styled(${(0,vh.default)(i)})`),ue.displayName=D}return i.muiName&&(ue.muiName=i.muiName),ue};return R.withConfig&&(k.withConfig=R.withConfig),k}}function La(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mh=e=>La(e)&&e!=="classes",Ot=yh({themeId:Wc,defaultTheme:lh,rootShouldForwardProp:Mh});function Sl(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function ka(e){return e}var Ts=Math.max;function Ih(e,t,r){return t=Ts(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Ts(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=n[o];return l[t]=r(i),Sl(e,this,l)}}function Lh(e){return function(){return e}}var wl=typeof global=="object"&&global&&global.Object===Object&&global,kh=typeof self=="object"&&self&&self.Object===Object&&self,ut=wl||kh||Function("return this")(),Dt=ut.Symbol,Rl=Object.prototype,$h=Rl.hasOwnProperty,Nh=Rl.toString,Dr=Dt?Dt.toStringTag:void 0;function Fh(e){var t=$h.call(e,Dr),r=e[Dr];try{e[Dr]=void 0;var n=!0}catch{}var o=Nh.call(e);return n&&(t?e[Dr]=r:delete e[Dr]),o}var Dh=Object.prototype,Uh=Dh.toString;function Bh(e){return Uh.call(e)}var Jh="[object Null]",Vh="[object Undefined]",Es=Dt?Dt.toStringTag:void 0;function Jt(e){return e==null?e===void 0?Vh:Jh:Es&&Es in Object(e)?Fh(e):Bh(e)}function Be(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Gh="[object AsyncFunction]",zh="[object Function]",Wh="[object GeneratorFunction]",Hh="[object Proxy]";function $a(e){if(!Be(e))return!1;var t=Jt(e);return t==zh||t==Wh||t==Gh||t==Hh}var Do=ut["__core-js_shared__"],Ms=function(){var e=/[^.]+$/.exec(Do&&Do.keys&&Do.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Kh(e){return!!Ms&&Ms in e}var qh=Function.prototype,Xh=qh.toString;function er(e){if(e!=null){try{return Xh.call(e)}catch{}try{return e+""}catch{}}return""}var Yh=/[\\^$.*+?()[\]{}|]/g,Zh=/^\[object .+?Constructor\]$/,Qh=Function.prototype,em=Object.prototype,tm=Qh.toString,rm=em.hasOwnProperty,nm=RegExp("^"+tm.call(rm).replace(Yh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function om(e){if(!Be(e)||Kh(e))return!1;var t=$a(e)?nm:Zh;return t.test(er(e))}function am(e,t){return e==null?void 0:e[t]}function tr(e,t){var r=am(e,t);return om(r)?r:void 0}var Bn=function(){try{var e=tr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),sm=Bn?function(e,t){return Bn(e,"toString",{configurable:!0,enumerable:!1,value:Lh(t),writable:!0})}:ka,im=800,lm=16,cm=Date.now;function um(e){var t=0,r=0;return function(){var n=cm(),o=lm-(n-r);if(r=n,o>0){if(++t>=im)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dm=um(sm);function jl(e,t){return dm(Ih(e,t,ka),e+"")}function fm(){this.__data__=[],this.size=0}function ln(e,t){return e===t||e!==e&&t!==t}function mo(e,t){for(var r=e.length;r--;)if(ln(e[r][0],t))return r;return-1}var hm=Array.prototype,mm=hm.splice;function pm(e){var t=this.__data__,r=mo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():mm.call(t,r,1),--this.size,!0}function gm(e){var t=this.__data__,r=mo(t,e);return r<0?void 0:t[r][1]}function ym(e){return mo(this.__data__,e)>-1}function _m(e,t){var r=this.__data__,n=mo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Tt(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])}}Tt.prototype.clear=fm;Tt.prototype.delete=pm;Tt.prototype.get=gm;Tt.prototype.has=ym;Tt.prototype.set=_m;function bm(){this.__data__=new Tt,this.size=0}function vm(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function xm(e){return this.__data__.get(e)}function Sm(e){return this.__data__.has(e)}var Xr=tr(ut,"Map"),Yr=tr(Object,"create");function wm(){this.__data__=Yr?Yr(null):{},this.size=0}function Rm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jm="__lodash_hash_undefined__",Cm=Object.prototype,Pm=Cm.hasOwnProperty;function Am(e){var t=this.__data__;if(Yr){var r=t[e];return r===jm?void 0:r}return Pm.call(t,e)?t[e]:void 0}var Om=Object.prototype,Tm=Om.hasOwnProperty;function Em(e){var t=this.__data__;return Yr?t[e]!==void 0:Tm.call(t,e)}var Mm="__lodash_hash_undefined__";function Im(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yr&&t===void 0?Mm:t,this}function Zt(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])}}Zt.prototype.clear=wm;Zt.prototype.delete=Rm;Zt.prototype.get=Am;Zt.prototype.has=Em;Zt.prototype.set=Im;function Lm(){this.size=0,this.__data__={hash:new Zt,map:new(Xr||Tt),string:new Zt}}function km(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function po(e,t){var r=e.__data__;return km(t)?r[typeof t=="string"?"string":"hash"]:r.map}function $m(e){var t=po(this,e).delete(e);return this.size-=t?1:0,t}function Nm(e){return po(this,e).get(e)}function Fm(e){return po(this,e).has(e)}function Dm(e,t){var r=po(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Et(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])}}Et.prototype.clear=Lm;Et.prototype.delete=$m;Et.prototype.get=Nm;Et.prototype.has=Fm;Et.prototype.set=Dm;var Um=200;function Bm(e,t){var r=this.__data__;if(r instanceof Tt){var n=r.__data__;if(!Xr||n.length<Um-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Et(n)}return r.set(e,t),this.size=r.size,this}function vt(e){var t=this.__data__=new Tt(e);this.size=t.size}vt.prototype.clear=bm;vt.prototype.delete=vm;vt.prototype.get=xm;vt.prototype.has=Sm;vt.prototype.set=Bm;function go(e,t,r){t=="__proto__"&&Bn?Bn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function sa(e,t,r){(r!==void 0&&!ln(e[t],r)||r===void 0&&!(t in e))&&go(e,t,r)}function Jm(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[++o];if(r(a[c],c,a)===!1)break}return t}}var Cl=Jm(),Pl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Is=Pl&&typeof module=="object"&&module&&!module.nodeType&&module,Vm=Is&&Is.exports===Pl,Ls=Vm?ut.Buffer:void 0;Ls&&Ls.allocUnsafe;function Gm(e,t){return e.slice()}var Jn=ut.Uint8Array;function zm(e){var t=new e.constructor(e.byteLength);return new Jn(t).set(new Jn(e)),t}function Wm(e,t){var r=zm(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function Hm(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ks=Object.create,Km=function(){function e(){}return function(t){if(!Be(t))return{};if(ks)return ks(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Al(e,t){return function(r){return e(t(r))}}var Ol=Al(Object.getPrototypeOf,Object),qm=Object.prototype;function Na(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||qm;return e===r}function Xm(e){return typeof e.constructor=="function"&&!Na(e)?Km(Ol(e)):{}}function Pt(e){return e!=null&&typeof e=="object"}var Ym="[object Arguments]";function $s(e){return Pt(e)&&Jt(e)==Ym}var Tl=Object.prototype,Zm=Tl.hasOwnProperty,Qm=Tl.propertyIsEnumerable,Vn=$s(function(){return arguments}())?$s:function(e){return Pt(e)&&Zm.call(e,"callee")&&!Qm.call(e,"callee")},ot=Array.isArray,e0=9007199254740991;function Fa(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=e0}function cn(e){return e!=null&&Fa(e.length)&&!$a(e)}function t0(e){return Pt(e)&&cn(e)}function r0(){return!1}var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ns=El&&typeof module=="object"&&module&&!module.nodeType&&module,n0=Ns&&Ns.exports===El,Fs=n0?ut.Buffer:void 0,o0=Fs?Fs.isBuffer:void 0,Gn=o0||r0,a0="[object Object]",s0=Function.prototype,i0=Object.prototype,Ml=s0.toString,l0=i0.hasOwnProperty,c0=Ml.call(Object);function u0(e){if(!Pt(e)||Jt(e)!=a0)return!1;var t=Ol(e);if(t===null)return!0;var r=l0.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ml.call(r)==c0}var d0="[object Arguments]",f0="[object Array]",h0="[object Boolean]",m0="[object Date]",p0="[object Error]",g0="[object Function]",y0="[object Map]",_0="[object Number]",b0="[object Object]",v0="[object RegExp]",x0="[object Set]",S0="[object String]",w0="[object WeakMap]",R0="[object ArrayBuffer]",j0="[object DataView]",C0="[object Float32Array]",P0="[object Float64Array]",A0="[object Int8Array]",O0="[object Int16Array]",T0="[object Int32Array]",E0="[object Uint8Array]",M0="[object Uint8ClampedArray]",I0="[object Uint16Array]",L0="[object Uint32Array]",de={};de[C0]=de[P0]=de[A0]=de[O0]=de[T0]=de[E0]=de[M0]=de[I0]=de[L0]=!0;de[d0]=de[f0]=de[R0]=de[h0]=de[j0]=de[m0]=de[p0]=de[g0]=de[y0]=de[_0]=de[b0]=de[v0]=de[x0]=de[S0]=de[w0]=!1;function k0(e){return Pt(e)&&Fa(e.length)&&!!de[Jt(e)]}function $0(e){return function(t){return e(t)}}var Il=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gr=Il&&typeof module=="object"&&module&&!module.nodeType&&module,N0=Gr&&Gr.exports===Il,Uo=N0&&wl.process,Ds=function(){try{var e=Gr&&Gr.require&&Gr.require("util").types;return e||Uo&&Uo.binding&&Uo.binding("util")}catch{}}(),Us=Ds&&Ds.isTypedArray,Da=Us?$0(Us):k0;function ia(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var F0=Object.prototype,D0=F0.hasOwnProperty;function U0(e,t,r){var n=e[t];(!(D0.call(e,t)&&ln(n,r))||r===void 0&&!(t in e))&&go(e,t,r)}function B0(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var l=t[a],c=void 0;c===void 0&&(c=e[l]),o?go(r,l,c):U0(r,l,c)}return r}function J0(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var V0=9007199254740991,G0=/^(?:0|[1-9]\d*)$/;function Ua(e,t){var r=typeof e;return t=t??V0,!!t&&(r=="number"||r!="symbol"&&G0.test(e))&&e>-1&&e%1==0&&e<t}var z0=Object.prototype,W0=z0.hasOwnProperty;function Ll(e,t){var r=ot(e),n=!r&&Vn(e),o=!r&&!n&&Gn(e),a=!r&&!n&&!o&&Da(e),i=r||n||o||a,l=i?J0(e.length,String):[],c=l.length;for(var u in e)(t||W0.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ua(u,c)))&&l.push(u);return l}function H0(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var K0=Object.prototype,q0=K0.hasOwnProperty;function X0(e){if(!Be(e))return H0(e);var t=Na(e),r=[];for(var n in e)n=="constructor"&&(t||!q0.call(e,n))||r.push(n);return r}function kl(e){return cn(e)?Ll(e,!0):X0(e)}function Y0(e){return B0(e,kl(e))}function Z0(e,t,r,n,o,a,i){var l=ia(e,r),c=ia(t,r),u=i.get(c);if(u){sa(e,r,u);return}var d=a?a(l,c,r+"",e,t,i):void 0,f=d===void 0;if(f){var h=ot(c),b=!h&&Gn(c),y=!h&&!b&&Da(c);d=c,h||b||y?ot(l)?d=l:t0(l)?d=Hm(l):b?(f=!1,d=Gm(c)):y?(f=!1,d=Wm(c)):d=[]:u0(c)||Vn(c)?(d=l,Vn(l)?d=Y0(l):(!Be(l)||$a(l))&&(d=Xm(c))):f=!1}f&&(i.set(c,d),o(d,c,n,a,i),i.delete(c)),sa(e,r,d)}function Ba(e,t,r,n,o){e!==t&&Cl(t,function(a,i){if(o||(o=new vt),Be(a))Z0(e,t,i,r,Ba,n,o);else{var l=n?n(ia(e,i),a,i+"",e,t,o):void 0;l===void 0&&(l=a),sa(e,i,l)}},kl)}function $l(e,t,r,n,o,a){return Be(e)&&Be(t)&&(a.set(t,e),Ba(e,t,void 0,$l,a),a.delete(t)),e}function Q0(e,t,r){if(!Be(r))return!1;var n=typeof t;return(n=="number"?cn(r)&&Ua(t,r.length):n=="string"&&t in r)?ln(r[t],e):!1}function ep(e){return jl(function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(o--,a):void 0,i&&Q0(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var l=r[n];l&&e(t,l,n,a)}return t})}var tp=ep(function(e,t,r,n){Ba(e,t,r,n)}),rp=jl(function(e){return e.push(void 0,$l),Sl(tp,void 0,e)});const gt={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},np={mode:"dark",colors:{primary:gt.skyblue500,textDefault:gt.white,textSubtle:gt.midnightgray,background:{default:gt.darkishblue,panel:gt.darkestblue}}},op={mode:"light",colors:{primary:gt.skyblue500,textDefault:gt.darkishblue,textSubtle:gt.midnightgray,background:{default:gt.skyblue500,panel:gt.white}}};function ap(e={}){const t=e.mode==="light"?op:np;return rp(e,t)}function sp(e){const t=e,r=t.mode==="dark";return vl({palette:{mode:t.mode,primary:{main:t.colors.primary},background:{default:t.colors.background.default,paper:t.colors.background.panel}},typography:{allVariants:{color:t.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:r?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:r?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:r?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:r?"#3d4455":void 0,color:r?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":r?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:r?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":r?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:t})}const ip={"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"},lp={"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"},cp={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class zn{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||cp,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:(typeof t[0]=="string"&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new zn(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new zn(this.logger,t)}}var yt=new zn;class yo{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(i=>{let[l,c]=i;for(let u=0;u<c;u++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[l,c]=i;for(let u=0;u<c;u++)l.apply(l,[t,...n])})}}const Ur=()=>{let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},Bs=e=>e==null?"":""+e,up=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},dp=/###/g,Js=e=>e&&e.indexOf("###")>-1?e.replace(dp,"."):e,Vs=e=>!e||typeof e=="string",zr=(e,t,r)=>{const n=typeof t!="string"?t:t.split(".");let o=0;for(;o<n.length-1;){if(Vs(e))return{};const a=Js(n[o]);!e[a]&&r&&(e[a]=new r),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++o}return Vs(e)?{}:{obj:e,k:Js(n[o])}},Gs=(e,t,r)=>{const{obj:n,k:o}=zr(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let a=t[t.length-1],i=t.slice(0,t.length-1),l=zr(e,i,Object);for(;l.obj===void 0&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),l=zr(e,i,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=r},fp=(e,t,r,n)=>{const{obj:o,k:a}=zr(e,t,Object);o[a]=o[a]||[],o[a].push(r)},Wn=(e,t)=>{const{obj:r,k:n}=zr(e,t);if(r)return r[n]},hp=(e,t,r)=>{const n=Wn(e,r);return n!==void 0?n:Wn(t,r)},Nl=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):Nl(e[n],t[n],r):e[n]=t[n]);return e},fr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var mp={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const pp=e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>mp[t]):e;class gp{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 yp=[" ",",","?","!",";"],_p=new gp(20),bp=(e,t,r)=>{t=t||"",r=r||"";const n=yp.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const o=_p.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let a=!o.test(e);if(!a){const i=e.indexOf(r);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a},la=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let a=0;a<n.length;){if(!o||typeof o!="object")return;let i,l="";for(let c=a;c<n.length;++c)if(c!==a&&(l+=r),l+=n[c],i=o[l],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<n.length-1)continue;a+=c-a+1;break}o=i}return o},Hn=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class zs extends yo{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){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,r],n&&(Array.isArray(n)?l.push(...n):typeof n=="string"&&a?l.push(...n.split(a)):l.push(n)));const c=Wn(this.data,l);return!c&&!r&&!n&&t.indexOf(".")>-1&&(t=l[0],r=l[1],n=l.slice(2).join(".")),c||!i||typeof n!="string"?c:la(this.data&&this.data[t]&&this.data[t][r],n,a)}addResource(t,r,n,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let l=[t,r];n&&(l=l.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(l=t.split("."),o=r,r=l[1]),this.addNamespaces(r),Gs(this.data,l,o),a.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 a in n)(typeof n[a]=="string"||Array.isArray(n[a]))&&this.addResource(t,r,a,n[a],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,r];t.indexOf(".")>-1&&(l=t.split("."),o=n,n=r,r=l[1]),this.addNamespaces(r);let c=Wn(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Nl(c,n,a):c={...c,...n},Gs(this.data,l,c),i.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var Fl={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,r,n,o))}),t}};const Ws={};class Kn extends yo{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),up(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=yt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let a=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!bp(t,n,o);if(i&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:a};const u=t.split(n);(n!==o||n===o&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),t=u.join(o)}return typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}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,a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:l}=this.extractFromKey(t[t.length-1],r),c=l[l.length-1],u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const k=r.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${k}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${k}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:i}const f=this.resolve(t,r);let h=f&&f.res;const b=f&&f.usedKey||i,y=f&&f.exactUsedKey||i,_=Object.prototype.toString.apply(h),g=["[object Number]","[object Function]","[object RegExp]"],S=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject;if(R&&h&&(typeof h!="string"&&typeof h!="boolean"&&typeof h!="number")&&g.indexOf(_)<0&&!(typeof S=="string"&&Array.isArray(h))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,h,{...r,ns:l}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(f.res=k,f.usedParams=this.getUsedParamsDetails(r),f):k}if(a){const k=Array.isArray(h),j=k?[]:{},A=k?y:b;for(const O in h)if(Object.prototype.hasOwnProperty.call(h,O)){const z=`${A}${a}${O}`;j[O]=this.translate(z,{...r,joinArrays:!1,ns:l}),j[O]===z&&(j[O]=h[O])}h=j}}else if(R&&typeof S=="string"&&Array.isArray(h))h=h.join(S),h&&(h=this.extendTranslation(h,t,r,n));else{let k=!1,j=!1;const A=r.count!==void 0&&typeof r.count!="string",O=Kn.hasDefaultValue(r),z=A?this.pluralResolver.getSuffix(u,r.count,r):"",le=r.ordinal&&A?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",ue=A&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),D=ue&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${z}`]||r[`defaultValue${le}`]||r.defaultValue;!this.isValidLookup(h)&&O&&(k=!0,h=D),this.isValidLookup(h)||(j=!0,h=i);const G=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:h,X=O&&D!==h&&this.options.updateMissing;if(j||k||X){if(this.logger.log(X?"updateKey":"missingKey",u,c,i,X?D:h),a){const Q=this.resolve(i,{...r,keySeparator:!1});Q&&Q.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 K=[];const we=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&we&&we[0])for(let Q=0;Q<we.length;Q++)K.push(we[Q]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(r.lng||this.language):K.push(r.lng||this.language);const ce=(Q,Pe,Ie)=>{const st=O&&Ie!==h?Ie:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,c,Pe,st,X,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,c,Pe,st,X,r),this.emit("missingKey",Q,c,Pe,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?K.forEach(Q=>{const Pe=this.pluralResolver.getSuffixes(Q,r);ue&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Pe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Pe.push(`${this.options.pluralSeparator}zero`),Pe.forEach(Ie=>{ce([Q],i+Ie,r[`defaultValue${Ie}`]||D)})}):ce(K,i,D))}h=this.extendTranslation(h,t,r,f,n),j&&h===i&&this.options.appendNamespaceToMissingKey&&(h=`${c}:${i}`),(j||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,k?h:void 0):h=this.options.parseMissingKeyHandler(h))}return o?(f.res=h,f.usedParams=this.getUsedParamsDetails(r),f):h}extendTranslation(t,r,n,o,a){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const u=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const h=t.match(this.interpolator.nestingRegexp);d=h&&h.length}let f=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,n.lng||this.language||o.usedLng,n),u){const h=t.match(this.interpolator.nestingRegexp),b=h&&h.length;d<b&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,b=new Array(h),y=0;y<h;y++)b[y]=arguments[y];return a&&a[0]===b[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${r[0]}`),null):i.translate(...b,r)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,c=typeof l=="string"?[l]:l;return t!=null&&c&&c.length&&n.applyPostProcessor!==!1&&(t=Fl.handle(c,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,a,i,l;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(n))return;const u=this.extractFromKey(c,r),d=u.key;o=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const h=r.count!==void 0&&typeof r.count!="string",b=h&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),y=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",_=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);f.forEach(g=>{this.isValidLookup(n)||(l=g,!Ws[`${_[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Ws[`${_[0]}-${g}`]=!0,this.logger.warn(`key "${o}" for languages "${_.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),_.forEach(S=>{if(this.isValidLookup(n))return;i=S;const R=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(R,d,S,g,r);else{let k;h&&(k=this.pluralResolver.getSuffix(S,r.count,r));const j=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(R.push(d+k),r.ordinal&&k.indexOf(A)===0&&R.push(d+k.replace(A,this.options.pluralSeparator)),b&&R.push(d+j)),y){const O=`${d}${this.options.contextSeparator}${r.context}`;R.push(O),h&&(R.push(O+k),r.ordinal&&k.indexOf(A)===0&&R.push(O+k.replace(A,this.options.pluralSeparator)),b&&R.push(O+j))}}let C;for(;C=R.pop();)this.isValidLookup(n)||(a=C,n=this.getResource(S,g,C,r))}))})}),{res:n,usedKey:o,exactUsedKey:a,usedLng:i,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";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 a of r)delete o[a]}return o}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const Bo=e=>e.charAt(0).toUpperCase()+e.slice(1);class Hs{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yt.create("languageUtils")}getScriptPartFromCode(t){if(t=Hn(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=Hn(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(o=>o.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Bo(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=Bo(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=Bo(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return r=o;r=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(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=[],a=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),n.forEach(i=>{o.indexOf(i)<0&&a(this.formatLanguageCode(i))}),o}}let vp=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],xp={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Sp=["v1","v2","v3"],wp=["v4"],Ks={zero:0,one:1,two:2,few:3,many:4,other:5},Rp=()=>{const e={};return vp.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:xp[t.fc]}})}),e};class jp{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=yt.create("pluralResolver"),(!this.options.compatibilityJSON||wp.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Rp()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Hn(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((o,a)=>Ks[o]-Ks[a]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):n.numbers.map(o=>this.getSuffix(t,o,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:this.getSuffixRetroCompatible(o,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let o=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const a=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Sp.includes(this.options.compatibilityJSON)}}const qs=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,a=hp(e,t,r);return!a&&o&&typeof r=="string"&&(a=la(e,r,n),a===void 0&&(a=la(t,r,n))),a},Jo=e=>e.replace(/\$/g,"$$$$");class Cp{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:a,prefixEscaped:i,suffix:l,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:h,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:g,maxReplaces:S,alwaysFormat:R}=t.interpolation;this.escape=r!==void 0?r:pp,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=a?fr(a):i||"{{",this.suffix=l?fr(l):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=h?fr(h):b||fr("$t("),this.nestingSuffix=y?fr(y):_||fr(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=S||1e3,this.alwaysFormat=R!==void 0?R:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,o){let a,i,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=b=>{if(b.indexOf(this.formatSeparator)<0){const S=qs(r,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(S,void 0,n,{...o,...r,interpolationkey:b}):S}const y=b.split(this.formatSeparator),_=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(qs(r,c,_,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...o,...r,interpolationkey:_})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>Jo(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?Jo(this.escape(b)):Jo(b)}].forEach(b=>{for(l=0;a=b.regex.exec(t);){const y=a[1].trim();if(i=u(y),i===void 0)if(typeof d=="function"){const g=d(t,a,o);i=typeof g=="string"?g:""}else if(o&&Object.prototype.hasOwnProperty.call(o,y))i="";else if(f){i=a[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=Bs(i));const _=b.safeValue(i);if(t=t.replace(a[0],_),f?(b.regex.lastIndex+=i.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,a,i;const l=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const f=c.split(new RegExp(`${d}[ ]*{`));let h=`{${f[1]}`;c=f[0],h=this.interpolate(h,i);const b=h.match(/'/g),y=h.match(/"/g);(b&&b.length%2===0&&!y||y.length%2!==0)&&(h=h.replace(/'/g,'"'));try{i=JSON.parse(h),u&&(i={...u,...i})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,_),`${c}${d}${h}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;o=this.nestingRegexp.exec(t);){let c=[];i={...n},i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=d.shift(),c=d,u=!0}if(a=r(l.call(this,o[1].trim(),i),i),a&&o[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=Bs(a)),a||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),a=""),u&&(a=c.reduce((d,f)=>this.format(d,f,n.lng,{...n,interpolationkey:o[1].trim()}),a.trim())),t=t.replace(o[0],a),this.regexp.lastIndex=0}return t}}const Pp=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(i=>{if(i){const[l,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();r[d]||(r[d]=u),u==="false"&&(r[d]=!1),u==="true"&&(r[d]=!0),isNaN(u)||(r[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:r}},hr=e=>{const t={};return(r,n,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={formatParams:{[o.interpolationkey]:o.formatParams[o.interpolationkey]},interpolationKey:o.interpolationkey});const i=n+JSON.stringify(a);let l=t[i];return l||(l=e(Hn(n),o),t[i]=l),l(r)}};class Ap{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=yt.create("formatter"),this.options=t,this.formats={number:hr((r,n)=>{const o=new Intl.NumberFormat(r,{...n});return a=>o.format(a)}),currency:hr((r,n)=>{const o=new Intl.NumberFormat(r,{...n,style:"currency"});return a=>o.format(a)}),datetime:hr((r,n)=>{const o=new Intl.DateTimeFormat(r,{...n});return a=>o.format(a)}),relativetime:hr((r,n)=>{const o=new Intl.RelativeTimeFormat(r,{...n});return a=>o.format(a,n.range||"day")}),list:hr((r,n)=>{const o=new Intl.ListFormat(r,{...n});return a=>o.format(a)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=hr(r)}format(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const a=r.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){const l=a.findIndex(c=>c.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,c)=>{const{formatName:u,formatOptions:d}=Pp(c);if(this.formats[u]){let f=l;try{const h=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},b=h.locale||h.lng||o.locale||o.lng||n;f=this.formats[u](l,b,{...d,...o,...h})}catch(h){this.logger.warn(h)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const Op=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Tp extends yo{constructor(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=yt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,o.backend,o)}queueLoad(t,r,n,o){const a={},i={},l={},c={};return t.forEach(u=>{let d=!0;r.forEach(f=>{const h=`${u}|${f}`;!n.reload&&this.store.hasResourceBundle(u,f)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?i[h]===void 0&&(i[h]=!0):(this.state[h]=1,d=!1,i[h]===void 0&&(i[h]=!0),a[h]===void 0&&(a[h]=!0),c[f]===void 0&&(c[f]=!0)))}),d||(l[u]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,r,n){const o=t.split("|"),a=o[0],i=o[1];r&&this.emit("failedLoading",a,i,r),n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const l={};this.queue.forEach(c=>{fp(c.loaded,[a],i),Op(c,t),r&&c.errors.push(r),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{l[u]||(l[u]={});const d=c.loaded[u];d.length&&d.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,r,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:a,callback:i});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,o+1,a*2,i)},a);return}i(u,d)},c=this.backend[n].bind(this.backend);if(c.length===2){try{const u=c(t,r);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return c(t,r,l)}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();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const a=this.queueLoad(t,r,n,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach(i=>{this.loadOne(i)})}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],a=n[1];this.read(o,a,"read",void 0,void 0,(i,l)=>{i&&this.logger.warn(`${r}loading namespace ${a} for language ${o} failed`,i),!i&&l&&this.logger.log(`${r}loaded namespace ${a} for language ${o}`,l),this.loaded(t,i,l)})}saveMissing(t,r,n,o,a){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:a},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,r,n,o,c):d=u(t,r,n,o),d&&typeof d.then=="function"?d.then(f=>l(null,f)).catch(l):l(null,d)}catch(d){l(d)}else u(t,r,n,o,l,c)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}}const Xs=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(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}}),Ys=e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),bn=()=>{},Ep=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Zr extends yo{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ys(t),this.services={},this.logger=yt,this.modules={external:[]},Ep(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=Xs();this.options={...o,...this.options,...Ys(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const a=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?yt.init(a(this.modules.logger),this.options):yt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Ap);const f=new Hs(this.options);this.store=new zs(this.options.resources,this.options);const h=this.services;h.logger=yt,h.resourceStore=this.store,h.languageUtils=f,h.pluralResolver=new jp(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(h.formatter=a(d),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new Cp(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new Tp(a(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(b,..._)}),this.modules.languageDetector&&(h.languageDetector=a(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=a(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Kn(this.services,this.options),this.translator.on("*",function(b){for(var y=arguments.length,_=new Array(y>1?y-1:0),g=1;g<y;g++)_[g-1]=arguments[g];t.emit(b,..._)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=bn),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 c=Ur(),u=()=>{const d=(f,h)=>{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),c.resolve(h),n(f,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bn;const o=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],i=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&a.indexOf(u)<0&&a.push(u)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(l=>i(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(l)})}else n(null)}reloadResources(t,r,n){const o=Ur();return t||(t=this.languages),r||(r=this.options.ns),n||(n=bn),this.services.backendConnector.reload(t,r,a=>{o.resolve(),n(a)}),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"&&Fl.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=Ur();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return n.t(...arguments)}),r&&r(c,function(){return n.t(...arguments)})},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||a(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),o}getFixedT(t,r,n){var o=this;const a=function(i,l){let c;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];c=o.options.overloadTranslationOptionHandler([i,l].concat(d))}else c={...l};c.lng=c.lng||a.lng,c.lngs=c.lngs||a.lngs,c.ns=c.ns||a.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||a.keyPrefix);const h=o.options.keySeparator||".";let b;return c.keyPrefix&&Array.isArray(i)?b=i.map(y=>`${c.keyPrefix}${h}${y}`):b=c.keyPrefix?`${c.keyPrefix}${h}${i}`:i,o.t(b,c)};return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(l,c)=>{const u=this.services.backendConnector.state[`${l}|${c}`];return u===-1||u===2};if(r.precheck){const l=r.precheck(this,i);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,t)&&(!o||i(a,t)))}loadNamespaces(t,r){const n=Ur();return this.options.ns?(typeof t=="string"&&(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=Ur();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],a=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return a.length?(this.options.preload=o.concat(a),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new Hs(Xs());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 Zr(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bn;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},a=new Zr(o);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n&&(a.store=new zs(this.store.data,o),a.services.resourceStore=a.store),a.translator=new Kn(a.services,o),a.translator.on("*",function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];a.emit(l,...u)}),a.init(o,r),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ee=Zr.createInstance();Ee.createInstance=Zr.createInstance;Ee.createInstance;Ee.dir;Ee.init;Ee.loadResources;Ee.reloadResources;Ee.use;Ee.changeLanguage;Ee.getFixedT;Ee.t;Ee.exists;Ee.setDefaultNamespace;Ee.hasLoadedNamespace;Ee.loadNamespaces;Ee.loadLanguages;const Dl=Ee.createInstance();Dl.use(Nc).use(Ut.initReactI18next).init({supportedLngs:["en","de"],resources:{en:{translations:lp},de:{translations:ip}},ns:["translations"],defaultNS:"translations"});function un(e){return r=>s.jsx(Mp,{children:s.jsx(e,{...r})})}const Mp=({children:e})=>{const t=L.useTheme(),r=ap({mode:t.palette.mode}),n=sp(r);return s.jsx(qt.ThemeProvider,{theme:n,children:s.jsx(Ut.I18nextProvider,{i18n:Dl,children:e})})},Ip=un(e=>{const t=es.useMonaco(),r=L.useTheme(),n=Z.useRef(null),[o,a]=Z.useState("dark-plus"),i=r.palette.mode==="dark"?"dark-plus":"light-plus";async function l(c){c.languages.register({id:"wandelscript"}),c.languages.setLanguageConfiguration("wandelscript",{comments:{lineComment:"#"},brackets:[["(",")"],["[","]"]],autoClosingPairs:[{open:"[",close:"]"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"}]}),n.current||(n.current=await kc.createHighlighter({langs:[Gc],themes:["dark-plus","light-plus"]})),$c.shikiToMonaco(n.current,c),c.editor.defineTheme(i,{base:r.palette.mode==="dark"?"vs-dark":"vs",inherit:!0,rules:[],colors:r.palette.mode==="dark"?{"editor.background":"#262F42","editorLineNumber.foreground":"#797979","editorLineNumber.activeForeground":"#e9e9e9","editor.lineHighlightBorder":"#494949"}:{}}),e.monacoSetup&&e.monacoSetup(c),a(i)}return Z.useEffect(()=>{t&&l(t)},[t,i]),t?s.jsx(es,{value:e.code,onChange:e.onChange,defaultLanguage:"wandelscript",theme:o,options:{minimap:{enabled:!1},wordWrap:"on",automaticLayout:!0,...e.monacoOptions}}):null}),Lp="(^joint_[0-9]+$)|(_J[0-9]+$)";function Ul(e){return e.children.length===0?[e]:[e,...e.children.flatMap(t=>Ul(t))]}function kp(e,t){return new RegExp(t??Lp).test(e)}function Bl(e,t){return Ul(e).filter(r=>kp(r.name,t))}function _o(e){Z.useEffect(e,[])}function Jl(e){_o(()=>br.autorun(e))}function Vl(e,t,r){_o(()=>br.reaction(e,t,r))}function Rr(e){return _o(()=>{let t;function r(){e(),t=requestAnimationFrame(r)}return t=requestAnimationFrame(r),()=>{cancelAnimationFrame(t)}})}function be({rapidlyChangingMotionState:e,robotRootObjectName:t,onRotationChanged:r,jointCollector:n}){x.Globals.assign({frameLoop:"always"});const o=Z.useRef([]),a=Z.useRef([]),{scene:i,invalidate:l}=Fc.useThree();Z.useEffect(()=>{const h=i.getObjectByName(t);h&&(a.current=n?n(h):Bl(h),u(),l())},[]);function c(h){o.current=h,f.start(Object.assign({},o.current))}function u(){const h=a.current.map((b,y)=>d[y].get());r(a.current,h)}Jl(()=>{const h=e.state.joint_position.joints.filter(b=>b!==void 0);requestAnimationFrame(()=>c(h))});const[d,f]=x.useSpring(()=>({...Object.assign({},e.state.joint_position.joints),onChange:()=>{u(),l()},onResolve:()=>{u()}}));return null}function $p({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR3",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J03",position:[-.244,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J04",position:[-.213,0,0],children:[s.jsxs(x.animated.group,{name:"UR3_J05",position:[0,.112,0],rotation:[Math.PI/2,0,0],children:[s.jsx("mesh",{name:"UR3_05",castShadow:!0,receiveShadow:!0,geometry:o.UR3_05.geometry,material:a.Standard}),s.jsxs(x.animated.group,{name:"UR3_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR3_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L06.geometry,material:a.Standard})]})]}),s.jsx("mesh",{name:"UR3_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Np({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs(x.animated.group,{name:"UR3e",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J02",position:[0,.152,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J03",position:[-.244,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J04",position:[-.213,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J05",position:[0,.131,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR3e_J06",position:[0,.085,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR3e_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR3e_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR3e_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR3e_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Fp({modelURL:e,rapidlyChangingMotionState:t,...r}){const o=ie.useGLTF(e).nodes;function a(i,l){i.forEach((c,u)=>c.rotation.y=l[u])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:a}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J02",position:[0,.089,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J03",position:[-.425,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J04",position:[-.392,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J05",position:[0,.109,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5_J06",position:[0,.095,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"UR5_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L06.geometry,material:o.UR5_L06.material})]}),s.jsx("mesh",{name:"UR5_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L05.geometry,material:o.UR5_L05.material})]}),s.jsx("mesh",{name:"UR5_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L04.geometry,material:o.UR5_L04.material})]}),s.jsx("mesh",{name:"UR5_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L03.geometry,material:o.UR5_L03.material})]}),s.jsx("mesh",{name:"UR5_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L02.geometry,material:o.UR5_L02.material})]}),s.jsx("mesh",{name:"UR5_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L01.geometry,material:o.UR5_L01.material})]}),s.jsx("mesh",{name:"UR5_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR5_L00.geometry,material:o.UR5_L00.material,rotation:[-Math.PI/2,0,0]})]})})})]})}function Dp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR5e",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J02",position:[0,.162,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J03",position:[-.425,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J04",position:[-.392,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J05",position:[0,.133,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR5e_J06",position:[0,.1,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR5e_FLG",position:[0,.1,0]}),s.jsx("group",{name:"UR5e_L06",position:[0,.1,0],rotation:[0,0,-Math.PI],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000255",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000255_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000255_1"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L05",rotation:[-Math.PI/2,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000253",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000253_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000253_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000253_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000253_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L04",rotation:[0,-Math.PI/3,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000251",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000251_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000251_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_2"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000251_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000251_3"].geometry,material:a.DarkGray})]})})]}),s.jsx("group",{name:"UR5e_L03",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000250",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000250_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_1"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000250_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000250_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_3"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000250_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000250_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L02",rotation:[0,-Math.PI/2,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000249",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249"].geometry,material:a.Metal}),s.jsx("mesh",{name:"C-1000249_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000249_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_2"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000249_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_3"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000249_4",castShadow:!0,receiveShadow:!0,geometry:o["C-1000249_4"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L01",rotation:[Math.PI/2,0,0],children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000248",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248"].geometry,material:a.DarkGray}),s.jsx("mesh",{name:"C-1000248_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_1"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000248_2",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_2"].geometry,material:a.Blue}),s.jsx("mesh",{name:"C-1000248_3",castShadow:!0,receiveShadow:!0,geometry:o["C-1000248_3"].geometry,material:a.Metal})]})})]}),s.jsx("group",{name:"UR5e_L00",children:s.jsxs(s.Fragment,{children:[s.jsx("mesh",{name:"C-1000257",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257"].geometry,material:a.Black}),s.jsx("mesh",{name:"C-1000257_1",castShadow:!0,receiveShadow:!0,geometry:o["C-1000257_1"].geometry,material:a.Metal})]})})]})})})]})}function Up({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J02",position:[0,.126,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J03",position:[-.612,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J04",position:[-.572,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J05",position:[0,.164,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10_J06",position:[0,.116,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"UR10_FLG",position:[0,.092,0]}),s.jsx("mesh",{name:"UR10_L06",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L06.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L05",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L05.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L04",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L04.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L03",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L03.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L02",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L02.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L01",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L01.geometry,material:a.Standard})]}),s.jsx("mesh",{name:"UR10_L00",castShadow:!0,receiveShadow:!0,geometry:o.UR10_L00.geometry,material:a.Standard,rotation:[-Math.PI/2,0,0]})]})})})]})}function Bp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials;function i(l,c){l.forEach((u,d)=>u.rotation.y=c[d])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:i}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"UR10e",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J02",position:[0,.181,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J03",position:[-.613,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J04",position:[-.572,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J05",position:[0,.174,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_J06",position:[0,.12,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"UR10e_FLG",position:[1.184,-.174,.061],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000493",geometry:o["C-1000493"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000493_1",geometry:o["C-1000493_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]}),s.jsx("group",{name:"UR10e_L07",position:[0,.117,0]})]}),s.jsxs("group",{name:"UR10e_L06",position:[1.184,.181,.174],rotation:[Math.PI,0,0],children:[s.jsx("mesh",{name:"C-1000492",geometry:o["C-1000492"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_1",geometry:o["C-1000492_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_2",geometry:o["C-1000492_2"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000492_3",geometry:o["C-1000492_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L05",position:[1.184,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000491",geometry:o["C-1000491"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_1",geometry:o["C-1000491_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_2",geometry:o["C-1000491_2"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000491_3",geometry:o["C-1000491_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L04",position:[.613,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000490",geometry:o["C-1000490"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_1",geometry:o["C-1000490_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_2",geometry:o["C-1000490_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000490_3",geometry:o["C-1000490_3"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs(x.animated.group,{name:"UR10e_L03",position:[0,0,.181],rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000489",geometry:o["C-1000489"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_1",geometry:o["C-1000489_1"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_2",geometry:o["C-1000489_2"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_3",geometry:o["C-1000489_3"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000489_4",geometry:o["C-1000489_4"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L02",children:[s.jsx("mesh",{name:"C-1000488",geometry:o["C-1000488"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_1",geometry:o["C-1000488_1"].geometry,material:a.Blue,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_2",geometry:o["C-1000488_2"].geometry,material:a.Screw,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000488_3",geometry:o["C-1000488_3"].geometry,material:a.DarkGray,castShadow:!0,receiveShadow:!0})]})]}),s.jsxs("group",{name:"UR10e_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"C-1000487",geometry:o["C-1000487"].geometry,material:a.Black,castShadow:!0,receiveShadow:!0}),s.jsx("mesh",{name:"C-1000487_1",geometry:o["C-1000487_1"].geometry,material:a.Metal,castShadow:!0,receiveShadow:!0})]})]})})})]})}function Zs({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR900",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J02",position:[.04,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR900_J03",position:[.445,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J04",position:[.04,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J05",position:[0,-.44,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR900_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR900_FLG",position:[0,-.08,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR900_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L06.geometry,material:a["#BBA474.001"]})]}),s.jsx("mesh",{name:"AR900_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L05.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L04",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L04.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L03",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L03.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L02.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L01",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L01.geometry,material:a["#0056b9.001"]})]}),s.jsx("mesh",{name:"AR900_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR900_L00.geometry,material:a["#0056b9.001"],rotation:[-Math.PI/2,0,0]})]})})})]})}function Jp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((f,h)=>f.rotation.y=l[h]*d[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR1440",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J02",position:[.155,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(x.animated.group,{name:"AR1440_J03",position:[.614,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J05",position:[0,-.64,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1440_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1440_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1440_L06_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L06_CAD.geometry,material:a.metall})]}),s.jsx("mesh",{name:"AR1440_L05_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L05_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L04_CAD",children:[s.jsx("mesh",{name:"AR1440_L04_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L04_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L04_CAD001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR1440_L03_CAD",children:[s.jsx("mesh",{name:"AR1440_L03_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L03_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L03_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L02_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L02_CAD.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR1440_L01_CAD",children:[s.jsx("mesh",{name:"AR1440_L01_CAD001",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR1440_L01_CAD001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L01_CAD001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR1440_L00_CAD",castShadow:!0,receiveShadow:!0,geometry:o.AR1440_L00_CAD.geometry,material:a.yaskawaBlueMetall,position:[0,0,.45],rotation:[-Math.PI/2,0,0]})]})})})]})}function Vp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((f,h)=>f.rotation.y=l[h]*d[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"AR1730_J00",children:[s.jsxs(x.animated.group,{name:"AR1730_J01",position:[.15,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J02",position:[.76,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J03",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J04",position:[0,-.795,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR1730_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR1730_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR1730_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L06.geometry,material:a.Metal,rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR1730_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L05.geometry,material:a.Blue,rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR1730_L04",position:[0,-.302,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_R_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_R_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._R_AXIS_SW0001002_1.geometry,material:a.White})]})]}),s.jsxs("group",{name:"AR1730_L03",rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_U_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_U_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._U_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L02.geometry,material:a.Blue,position:[0,-.157,0],rotation:[-Math.PI,-1.571,0]})]}),s.jsxs("group",{name:"AR1730_L01",position:[0,-.336,0],rotation:[Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"_S_AXIS_SW0001002",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002.geometry,material:a.Blue}),s.jsx("mesh",{name:"_S_AXIS_SW0001002_1",castShadow:!0,receiveShadow:!0,geometry:o._S_AXIS_SW0001002_1.geometry,material:a.Black})]})]}),s.jsx("mesh",{name:"AR1730_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR1730_L00.geometry,material:a.Blue,position:[0,-.505,0],rotation:[Math.PI/2,0,-Math.PI/2]})]})})]})}function Gp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((f,h)=>f.rotation.y=l[h]*d[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"AR2010",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J02",position:[.15,0,0],rotation:[Math.PI/2,0,Math.PI],children:[s.jsxs(x.animated.group,{name:"AR2010_J03",position:[.76,0,0],rotation:[Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J04",position:[.2,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J05",position:[0,-1.082,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR2010_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR2010_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsxs("group",{name:"AR2010_L06",children:[s.jsx("mesh",{name:"AR2010_06001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_06001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_06001_1.geometry,material:a.metall})]})]}),s.jsx("mesh",{name:"AR2010_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L05.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L04",children:[s.jsx("mesh",{name:"AR2010_04001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_04001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_04001_1.geometry,material:a.white})]})]}),s.jsxs("group",{name:"AR2010_L03",children:[s.jsx("mesh",{name:"AR2010_03001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_03001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_03001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L02.geometry,material:a.yaskawaBlueMetall})]}),s.jsxs("group",{name:"AR2010_L01",children:[s.jsx("mesh",{name:"AR2010_01001",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001.geometry,material:a.yaskawaBlueMetall}),s.jsx("mesh",{name:"AR2010_01001_1",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_01001_1.geometry,material:a.blackMetall})]})]}),s.jsx("mesh",{name:"AR2010_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR2010_L00.geometry,material:a.yaskawaBlueMetall,rotation:[-Math.PI/2,0,0]})]})})})]})}function zp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0],l=[1,-1,1,1,1,1];function c(u,d){u.forEach((f,h)=>f.rotation.y=l[h]*d[h]+i[h])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:c}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"AR3120_J00",children:[s.jsxs(x.animated.group,{name:"AR3120_J01",position:[.145,0,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J02",position:[1.15,0,0],rotation:[-Math.PI,0,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J03",position:[.25,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J04",position:[0,-1.812,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"AR3120_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"AR3120_FLG",position:[0,-.1,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"AR3120_L06",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L06.geometry,material:a["Metal.001"],rotation:[Math.PI/2,-Math.PI/2,0]})]}),s.jsx("mesh",{name:"AR3120_L05",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L05.geometry,material:a["Blue.001"],rotation:[Math.PI/2,0,Math.PI/2]})]}),s.jsxs("group",{name:"AR3120_L04",rotation:[Math.PI/2,-Math.PI/2,0],children:[s.jsx("mesh",{name:"R_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"R_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.R_AXIS_GP20HL001_1.geometry,material:a["White.001"]})]})]}),s.jsxs("group",{name:"AR3120_L03",rotation:[Math.PI,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_3001",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"Mesh_3001_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_3001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L02",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L02.geometry,material:a["Blue.001"],position:[0,-.146,0],rotation:[Math.PI,0,0]})]}),s.jsxs("group",{name:"AR3120_L01",position:[0,-.228,0],rotation:[0,-1.571,0],children:[s.jsx("mesh",{name:"S_AXIS_GP20HL001",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001.geometry,material:a["Blue.001"]}),s.jsx("mesh",{name:"S_AXIS_GP20HL001_1",castShadow:!0,receiveShadow:!0,geometry:o.S_AXIS_GP20HL001_1.geometry,material:a["Black.001"]})]})]}),s.jsx("mesh",{name:"AR3120_L00",castShadow:!0,receiveShadow:!0,geometry:o.AR3120_L00.geometry,material:a["Blue.001"],position:[0,-.54,0]})]})})]})}function Wp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J01",rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.54,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a.Fanuc_Green})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_1.geometry,material:a.Fanuc_BlackPlastic}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_2.geometry,material:a.Fanuc_WhitePlastic})]})]}),s.jsx("mesh",{name:"CRX10iA_L03",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L03.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a.Fanuc_WhitePlastic,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,-.117,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a.Fanuc_Green}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a.Fanuc_GreenLED})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a.Fanuc_BlackMetal,position:[0,-.245,0]})]})})]})}function Hp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsx("mesh",{name:"link_0",castShadow:!0,receiveShadow:!0,geometry:o.link_0.geometry,material:a.fanuc_metal_black}),s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J00",position:[0,-.245,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J02",position:[.71,0,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"FANUC_CRX20iAL_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx(x.animated.group,{name:"FANUC_CRX20iAL_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"link_6",castShadow:!0,receiveShadow:!0,geometry:o.link_6.geometry,material:a.fanuc_metal_black,position:[-.71,.54,-.15],rotation:[0,0,-Math.PI/2]})]}),s.jsxs(x.animated.group,{name:"link_5",position:[-.71,0,-.54],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape053",castShadow:!0,receiveShadow:!0,geometry:o.shape053.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape053_1",castShadow:!0,receiveShadow:!0,geometry:o.shape053_1.geometry,material:a.fanuc_green})]})]}),s.jsxs(x.animated.group,{name:"link_4",position:[-.71,0,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape054",castShadow:!0,receiveShadow:!0,geometry:o.shape054.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape054_1",castShadow:!0,receiveShadow:!0,geometry:o.shape054_1.geometry,material:a.fanuc_red}),s.jsx("mesh",{name:"shape054_2",castShadow:!0,receiveShadow:!0,geometry:o.shape054_2.geometry,material:a.fanuc_metal_black})]})]}),s.jsxs(x.animated.group,{name:"link_3",position:[-.71,0,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"shape009",castShadow:!0,receiveShadow:!0,geometry:o.shape009.geometry,material:a.fanuc_green}),s.jsx("mesh",{name:"shape009_1",castShadow:!0,receiveShadow:!0,geometry:o.shape009_1.geometry,material:a.fanuc_white})]})]}),s.jsx("mesh",{name:"link_2",castShadow:!0,receiveShadow:!0,geometry:o.link_2.geometry,material:a.fanuc_white,rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"link_1",position:[0,.245,0],children:[s.jsx("mesh",{name:"shape005",castShadow:!0,receiveShadow:!0,geometry:o.shape005.geometry,material:a.fanuc_white}),s.jsx("mesh",{name:"shape005_1",castShadow:!0,receiveShadow:!0,geometry:o.shape005_1.geometry,material:a.fanuc_green})]})]})]})})]})}function Kp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",position:[0,-.37,0],children:[s.jsxs("group",{name:"CRX25iA_L00",children:[s.jsx("mesh",{name:"J1BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse.geometry,material:a.Fanuc_BlackMetal}),s.jsx("mesh",{name:"J1BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J1BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]}),s.jsxs(x.animated.group,{name:"CRX25iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX25iA_J01",position:[0,.37,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J02",position:[.95,0,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J04",position:[0,-.75,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX25iA_J05",position:[0,.185,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX25iA_FLG",position:[0,-.18,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX25iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L06.geometry,material:a.Fanuc_BlackMetal,position:[0,-.18,0]})]}),s.jsxs("group",{name:"CRX25iA_L05",position:[0,.185,0],children:[s.jsx("mesh",{name:"J6CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J6CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J6CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L04",position:[0,-.75,0],children:[s.jsx("mesh",{name:"J3ARM_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_1.geometry,material:a.Fanuc_RedPlastic}),s.jsx("mesh",{name:"J3ARM_NetGen_Coarse_2",castShadow:!0,receiveShadow:!0,geometry:o.J3ARM_NetGen_Coarse_2.geometry,material:a.Fanuc_BlackPlastic})]})]}),s.jsxs("group",{name:"CRX25iA_L03",children:[s.jsx("mesh",{name:"J3CASING_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J3CASING_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenPlastic})]})]}),s.jsx("mesh",{name:"CRX25iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX25iA_L02.geometry,material:a.Fanuc_WhitePlastic})]}),s.jsxs("group",{name:"CRX25iA_L01",position:[0,.18,0],children:[s.jsx("mesh",{name:"J2BASE_NetGen_Coarse",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse.geometry,material:a.Fanuc_WhitePlastic}),s.jsx("mesh",{name:"J2BASE_NetGen_Coarse_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_NetGen_Coarse_1.geometry,material:a.Fanuc_GreenLED})]})]})]})})]})}function qp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsxs("group",{name:"Scene",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J00",children:[s.jsxs(x.animated.group,{name:"CRX10iA_J01",position:[0,.245,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J02",position:[.71,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J03",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J04",position:[0,-.54,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"CRX10iA_J05",position:[0,.15,0],rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"CRX10iA_FLG",position:[0,-.16,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"CRX10iA_L06",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L06.geometry,material:a["Fanuc_BlackMetal.001"],position:[0,-.16,0],rotation:[0,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L05",position:[0,.15,0],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J5CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J5CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J5CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L04",position:[0,-.54,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_1",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_1.geometry,material:a["Fanuc_RedPlastic.001"]}),s.jsx("mesh",{name:"NAME_LABEL_CRX_10iA_L001_2",castShadow:!0,receiveShadow:!0,geometry:o.NAME_LABEL_CRX_10iA_L001_2.geometry,material:a["Fanuc_BlackPlastic.001"]})]})]}),s.jsxs("group",{name:"CRX10iA_L03",rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"J3CASING_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J3CASING_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J3CASING_UNIT001_1.geometry,material:a["Fanuc_Green.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L02",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L02.geometry,material:a["Fanuc_WhitePlastic.001"],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"CRX10iA_L01",position:[0,.128,0],children:[s.jsx("mesh",{name:"J2BASE_UNIT001",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001.geometry,material:a["Fanuc_WhitePlastic.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_1",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_1.geometry,material:a["Fanuc_Green.001"]}),s.jsx("mesh",{name:"J2BASE_UNIT001_2",castShadow:!0,receiveShadow:!0,geometry:o.J2BASE_UNIT001_2.geometry,material:a["Fanuc_GreenLED.001"]})]})]}),s.jsx("mesh",{name:"CRX10iA_L00",castShadow:!0,receiveShadow:!0,geometry:o.CRX10iA_L00.geometry,material:a["Fanuc_BlackMetal.001"]})]})})]})}function Xp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr210_2700",children:[s.jsxs(x.animated.group,{name:"joint_01",children:[s.jsxs(x.animated.group,{name:"joint_02",position:[.33,.645,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"joint_04",position:[.115,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.22,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.215,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.17,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals006",castShadow:!0,receiveShadow:!0,geometry:o.visuals006.geometry,material:a.material_Material_Metall_black})})]}),s.jsx("group",{name:"link_5",position:[0,.059,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals005",children:[s.jsx("mesh",{name:"visuals005_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals005_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals005_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_4",position:[0,-.869,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals004",children:[s.jsx("mesh",{name:"visuals004_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals004_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals004_2.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_3",position:[0,-.105,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals003_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_5.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals003_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_6.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals003_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_2",position:[0,.009,0],rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Rubber_black}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_kuka_orange})]})})]}),s.jsx("group",{name:"link_1",position:[0,.236,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_kuka_orange}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_rubber}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_metal_black}),s.jsx("mesh",{name:"visuals001_5",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_5.geometry,material:a.material_Material_aluminium}),s.jsx("mesh",{name:"visuals001_6",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_6.geometry,material:a.material_Material_rubber_black}),s.jsx("mesh",{name:"visuals001_7",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_7.geometry,material:a.material_Material_stainless_steel})]})})]}),s.jsx("group",{name:"link_0",children:s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_kuka_black}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_metal_black})]})})]})})})]})}function Yp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,0,-Math.PI/2,0,0,0];function l(c,u){c.forEach((d,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"kuka_kr270_2700_ultra",children:[s.jsxs(x.animated.group,{name:"joint_01",children:[s.jsxs(x.animated.group,{name:"joint_02",position:[.35,.675,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_03",position:[1.15,0,0],rotation:[0,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"joint_04",position:[-.041,0,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_05",position:[0,-1.2,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"joint_06",rotation:[Math.PI/2,0,0],children:[s.jsx("group",{name:"flange",position:[0,-.24,0],rotation:[-Math.PI,0,0]}),s.jsx("group",{name:"link_6",position:[0,-.213,0],rotation:[0,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals006",children:[s.jsx("mesh",{name:"visuals006_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals006_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals006_2.geometry,material:a.material_Material_Metall})]})})]}),s.jsx("group",{name:"link_5",position:[0,.044,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals005",castShadow:!0,receiveShadow:!0,geometry:o.visuals005.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_4",position:[0,-.954,0],rotation:[0,0,-Math.PI/2],children:s.jsx("mesh",{name:"visuals004",castShadow:!0,receiveShadow:!0,geometry:o.visuals004.geometry,material:a.material_Material_Farbe})})]}),s.jsx("group",{name:"link_3",position:[0,-.178,0],rotation:[Math.PI/2,0,-Math.PI/2],children:s.jsxs("group",{name:"visuals003",children:[s.jsx("mesh",{name:"visuals003_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_1.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals003_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_2.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals003_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals003_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals003_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsx("group",{name:"link_2",rotation:[Math.PI/2,0,0],children:s.jsxs("group",{name:"visuals002",children:[s.jsx("mesh",{name:"visuals002_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_1.geometry,material:a.material_Material_Farbe}),s.jsx("mesh",{name:"visuals002_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals002_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_3.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals002_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals002_4.geometry,material:a.material_Material_Farbe__2_})]})})]}),s.jsx("group",{name:"link_1",position:[0,.226,0],children:s.jsxs("group",{name:"visuals001",children:[s.jsx("mesh",{name:"visuals001_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals001_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_2.geometry,material:a.material_Material_Farbe__1_}),s.jsx("mesh",{name:"visuals001_3",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_3.geometry,material:a.material_Material_Farbe__2_}),s.jsx("mesh",{name:"visuals001_4",castShadow:!0,receiveShadow:!0,geometry:o.visuals001_4.geometry,material:a.material_Material_Farbe})]})})]}),s.jsxs("group",{name:"link_0-base",children:[s.jsx("group",{name:"joint_1"}),s.jsxs("group",{name:"visuals",children:[s.jsx("mesh",{name:"visuals_1",castShadow:!0,receiveShadow:!0,geometry:o.visuals_1.geometry,material:a.material_Material_Metall}),s.jsx("mesh",{name:"visuals_2",castShadow:!0,receiveShadow:!0,geometry:o.visuals_2.geometry,material:a.material_Material_Farbe__1_})]})]})]})})})]})}function Zp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J02",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J03",position:[.64,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J04",position:[.195,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J05",position:[0,-.7,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M10iD_J06",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M10iD_FLG",position:[0,-.075,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M10iD_L06",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,.775,0],rotation:[0,0,-Math.PI/2]})]}),s.jsx("mesh",{name:"M10iD_L05",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L05.geometry,material:a.Fanuc_BlackMetal_AO,position:[-.835,0,-.775],rotation:[-Math.PI/2,0,-Math.PI/2]})]}),s.jsxs("group",{name:"M10iD_L04",position:[-.835,.075,0],rotation:[0,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_654",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_654_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_654_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L03",position:[-.64,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_378",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_378_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_378_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_378_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L02",position:[0,0,-.075],rotation:[-Math.PI/2,0,-Math.PI/2],children:[s.jsx("mesh",{name:"Mesh_358",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_358_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_358_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M10iD_L01",children:[s.jsx("mesh",{name:"Mesh_356",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_356_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_1.geometry,material:a.Material_1_AO}),s.jsx("mesh",{name:"Mesh_356_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_356_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M10iD_L00",castShadow:!0,receiveShadow:!0,geometry:o.M10iD_L00.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[-Math.PI/2,0,0]})]})})})]})}function Qs({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"M10iD",rotation:[0,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J00",children:[s.jsxs(x.animated.group,{name:"M20iD25_J01",position:[.075,0,0],rotation:[Math.PI/2,Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J02",position:[.84,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J03",position:[.215,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J04",position:[0,-.89,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"M20iD25_J05",rotation:[-Math.PI/2,0,0],children:[s.jsx("group",{name:"M20iD25_FLG",position:[0,-.09,0],rotation:[-Math.PI,0,0]}),s.jsx("mesh",{name:"M20iD25_L06",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L06.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.09,0],rotation:[Math.PI/2,0,Math.PI]})]}),s.jsx("mesh",{name:"M20iD25_L05",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L05.geometry,material:a.Fanuc_BlackMetal_AO,rotation:[Math.PI,Math.PI/2,0]})]}),s.jsxs("group",{name:"M20iD25_L04",position:[0,-.286,0],rotation:[-Math.PI/2,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_2_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_2_1.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsxs("group",{name:"M20iD25_L03",position:[0,.406,0],rotation:[Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_15",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_15_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_15_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_15_2.geometry,material:a.Material_9_AO})]})]}),s.jsxs("group",{name:"M20iD25_L02",position:[0,.505,-.055],rotation:[-Math.PI,Math.PI/2,0],children:[s.jsx("mesh",{name:"Mesh_37",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37.geometry,material:a.Fanuc_BlackMetal_AO}),s.jsx("mesh",{name:"Mesh_37_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_37_1.geometry,material:a.Fanuc_Yellow_Textured_AO})]})]}),s.jsxs("group",{name:"M20iD25_L01",rotation:[-Math.PI/2,0,0],children:[s.jsx("mesh",{name:"Mesh_45",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45.geometry,material:a.Material_9_AO}),s.jsx("mesh",{name:"Mesh_45_1",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_1.geometry,material:a.Fanuc_Yellow_Textured_AO}),s.jsx("mesh",{name:"Mesh_45_2",castShadow:!0,receiveShadow:!0,geometry:o.Mesh_45_2.geometry,material:a.Fanuc_BlackMetal_AO})]})]}),s.jsx("mesh",{name:"M20iD25_L00",castShadow:!0,receiveShadow:!0,geometry:o.M20iD25_L00.geometry,material:a.Fanuc_BlackMetal_AO,position:[0,-.425,0],rotation:[-Math.PI/2,0,0]})]})})})]})}function Qp({modelURL:e,rapidlyChangingMotionState:t,...r}){const n=ie.useGLTF(e),o=n.nodes,a=n.materials,i=[0,-Math.PI/2,0,0,0,0];function l(c,u){c.forEach((d,f)=>d.rotation.y=u[f]+i[f])}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:t,robotRootObjectName:"Scene",onRotationChanged:l}),s.jsx("group",{...r,dispose:null,children:s.jsx("group",{name:"Scene",children:s.jsxs("group",{name:"IRB1200_7_70_IRC5",rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J01",rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J02",position:[0,.399,0],rotation:[-Math.PI/2,-Math.PI/2,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J03",position:[.35,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J04",position:[.042,0,0],rotation:[-Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J05",position:[0,.351,0],rotation:[Math.PI/2,0,0],children:[s.jsxs(x.animated.group,{name:"IRB1200_7_70_IRC5_J06",rotation:[Math.PI/2,0,-Math.PI],children:[s.jsx("group",{name:"IRB1200_7_70_IRC5_FLG",position:[0,.082,0]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L06",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L06.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L05",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L05.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L04",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L04.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L03",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L03.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L02",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L02.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L01",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L01.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[Math.PI/2,0,0]})]}),s.jsx("mesh",{name:"IRB1200_7_70_IRC5_L00",castShadow:!0,receiveShadow:!0,geometry:o.IRB1200_7_70_IRC5_L00.geometry,material:a["IRB1200_7-70_IRC5.003_Bake"],rotation:[-Math.PI/2,0,0]})]})})})]})}const ei="line",ti="mesh";function Vo({rapidlyChangingMotionState:e,dhParameters:t,...r}){const n=new Rt.Matrix4;function o(c,u){const d=new Rt.Vector3,f=new Rt.Quaternion,h=new Rt.Vector3;n.decompose(d,f,h);const b=d.clone(),y=new Rt.Matrix4().makeRotationY(c.theta+u*(c.reverse_rotation_direction?-1:1)).multiply(new Rt.Matrix4().makeTranslation(0,c.d/1e3,0)).multiply(new Rt.Matrix4().makeTranslation(c.a/1e3,0,0)).multiply(new Rt.Matrix4().makeRotationX(c.alpha));return n.multiply(y),n.decompose(d,f,h),{a:b,b:d}}function a(c,u,d,f){if(!t)return;const h=t[c];if(!h)return;const{a:b,b:y}=o(h,f);u.geometry.setPositions([b.toArray(),y.toArray()].flat()),d.position.set(y.x,y.y,y.z)}function i(c,u){n.identity(),c.forEach((d,f)=>{a(f,d.getObjectByName(ei),d.getObjectByName(ti),u[f])})}function l(c){return Bl(c,"^group_[0-9]+$")}return s.jsxs(s.Fragment,{children:[s.jsx(be,{rapidlyChangingMotionState:e,robotRootObjectName:"Scene",onRotationChanged:i,jointCollector:l}),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((c,u)=>{const{a:d,b:f}=o(c,e.state.joint_position.joints[u]??0);return s.jsxs("group",{name:`group_${u}`,children:[s.jsx(ie.Line,{name:ei,points:[d,f],color:"white",lineWidth:5}),s.jsxs("mesh",{name:ti,position:f,children:[s.jsx("sphereGeometry",{args:[.01,32,32]}),s.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},"mesh_"+u)]},"group_"+u)})]})]})}const eg=console.warn;function tg(){return Z.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&eg(e)}},[]),s.jsx(s.Fragment,{})}function Ja(e){return`https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${e}.glb`}const Gl=un(({rapidlyChangingMotionState:e,modelFromController:t,dhParameters:r,getModel:n=Ja,isGhost:o=!1,...a})=>{let i;const l=Z.useRef(new Ce.Group),c=Z.useCallback(f=>{f!==null&&(l.current=f,console.log("robotRef.current",l.current),o&&l.current&&l.current.children.length>0&&u())},[o]),u=()=>{l.current&&!l.current.userData.ghostsCreated&&(l.current.traverse(f=>{if(f instanceof Ce.Mesh&&!f.userData.isGhost){f.material instanceof Ce.Material&&(f.material.colorWrite=!1);const h=f.clone(),b=f.clone();h.material=new Ce.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:1}),h.userData.isGhost=!0,b.material=new Ce.MeshStandardMaterial({color:"#D91433",opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-1}),b.userData.isGhost=!0,f.parent&&(f.parent.add(h),f.parent.add(b))}}),l.current.userData.ghostsCreated=!0)},d=()=>{if(l.current){const f=[];l.current.traverse(h=>{h instanceof Ce.Mesh&&h.material instanceof Ce.Material&&(h.material.colorWrite=!0),h instanceof Ce.Mesh&&h.userData!==void 0&&h.userData&&h.userData.isGhost!==void 0&&h.userData.isGhost&&f.push(h)}),f.forEach(h=>{h.parent&&h.parent.remove(h)}),l.current.userData.ghostsCreated=!1}};switch(Z.useEffect(()=>{o?u():d()},[o]),t){case"UniversalRobots_UR3":i=$p;break;case"UniversalRobots_UR3e":i=Np;break;case"UniversalRobots_UR5":i=Fp;break;case"UniversalRobots_UR5e":i=Dp;break;case"UniversalRobots_UR10":i=Up;break;case"UniversalRobots_UR10e":i=Bp;break;case"Yaskawa_AR900":i=Zs;break;case"Yaskawa_GP7":i=Zs;break;case"Yaskawa_AR1440":i=Jp;break;case"Yaskawa_AR1730":i=Vp;break;case"Yaskawa_AR2010":i=Gp;break;case"Yaskawa_AR3120":i=zp;break;case"FANUC_CRX10iA":i=Wp;break;case"FANUC_CRX20iAL":i=Hp;break;case"FANUC_CRX25iA":i=Kp;break;case"FANUC_CRX25iAL":i=qp;break;case"FANUC_ARC_Mate_120iD":i=Qs;break;case"FANUC_ARC_Mate_120iD35":i=Qs;break;case"FANUC_ARC_Mate_100iD":i=Zp;break;case"KUKA_KR210_R2700":i=Xp;break;case"KUKA_KR270_R2700":i=Yp;break;case"ABB_1200_07_7":i=Qp;break;default:console.warn(`Unknown robot type: ${t}`),i=Vo}return s.jsxs(Dc.ErrorBoundary,{fallback:s.jsx(Vo,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:[s.jsx(Z.Suspense,{fallback:s.jsx(Vo,{rapidlyChangingMotionState:e,dhParameters:r,...a}),children:s.jsx("group",{ref:c,children:s.jsx(i,{rapidlyChangingMotionState:e,modelURL:n(t),dhParameters:r,...a})})}),s.jsx(tg,{})]})});function rg({connectedMotionGroup:e,getModel:t=Ja,isGhost:r=!1,...n}){return e.dhParameters?s.jsx(Gl,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:t,isGhost:r,...n}):null}function ng(){return s.jsx(ie.Environment,{children:s.jsx(og,{})})}function og({positions:e=[2,0,2,0,2,0,2,0]}){return s.jsxs(s.Fragment,{children:[s.jsx(ie.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(ie.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[t,4,r*4],scale:[3,1,1]},r))})}),s.jsx(ie.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),s.jsx(ie.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),s.jsx(ie.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),s.jsx(ie.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}function ag(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new Ce.Vector3(e[0].x,e[0].y,e[0].z),r=new Ce.Vector3(e[1].x,e[1].y,e[1].z),n=new Ce.Vector3(e[2].x,e[2].y,e[2].z),o=new Ce.Vector3().subVectors(r,t),a=new Ce.Vector3().subVectors(n,t),i=new Ce.Vector3().crossVectors(o,a).normalize();for(let l=3;l<e.length;l++){const c=new Ce.Vector3(e[l].x,e[l].y,e[l].z),u=new Ce.Vector3().subVectors(c,t),d=i.dot(u);if(Math.abs(d)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:i}}function sg({safetyZones:e,...t}){return s.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((a,i)=>{if(!a.convex_hull)return null;const l=a.convex_hull.vertices.map(d=>new Ce.Vector3(d.x/1e3,d.y/1e3,d.z/1e3)),c=ag(l);if(c.isCoplanar&&c.normal){const f=new Ce.Vector3().addVectors(l[0],c.normal.multiplyScalar(1e-4));l.push(f)}let u;try{u=new Uc.ConvexGeometry(l)}catch(d){return console.log("Error creating ConvexGeometry:",d),null}return s.jsx(s.Fragment,{children:s.jsx("mesh",{geometry:u,children:s.jsx("meshStandardMaterial",{attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-i},n)},`${n}-${i}`)})})})})}process.env.NODE_ENV!=="production"&&(m.node,m.object.isRequired);function Va(e){return yf(e)}const _r=jf({createStyledComponent:Ot("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Va({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:m.node,component:m.elementType,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),useFlexGap:m.bool});const ca=un(Ke.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{Rr(()=>{const d=r(),f=l.current;f&&(f.textContent=d)});const l=Z.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(_r,{height:"72px",direction:"row",...i,children:[s.jsx(L.Button,{onPointerDown:c,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(_r,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(L.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(L.Button,{onPointerDown:u,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",":hover":{color:"white",backgroundColor:e}},children:"+"})]})}));var Ga={},Go={};function ig(e){return an("MuiSvgIcon",e)}sl("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cg=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Ta(o,ig,n)},ug=Ot("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,c,u,d,f,h,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),qn=N.forwardRef(function(t,r){const n=Va({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24"}=n,b=De(n,lg),y=N.isValidElement(o)&&o.type==="svg",_=P({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y}),g={};d||(g.viewBox=h);const S=cg(_);return s.jsxs(ug,P({as:l,className:bt(S.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},g,b,y&&o.props,{ownerState:_,children:[y?o.props.children:o,f?s.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(qn.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string});qn.muiName="SvgIcon";function dg(e,t){function r(n,o){return s.jsx(qn,P({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=qn.muiName,N.memo(N.forwardRef(r))}const fg={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
78
|
-
`)),ol.configure(e)}},hg=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:zd,createSvgIcon:dg,debounce:Wd,deprecatedPropType:Hd,isMuiElement:Kd,ownerDocument:yr,ownerWindow:qd,requirePropFactory:Xd,setRef:ul,unstable_ClassNameGenerator:fg,unstable_useEnhancedEffect:Aa,unstable_useId:Zd,unsupportedProp:Qd,useControlled:dl,useEventCallback:Tn,useForkRef:Dn,useIsFocusVisible:fl},Symbol.toStringTag,{value:"Module"})),mg=At(hg);var ri;function zl(){return ri||(ri=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=mg}(Go)),Go}var pg=ho;Object.defineProperty(Ga,"__esModule",{value:!0});var Wl=Ga.default=void 0,gg=pg(zl()),yg=s;Wl=Ga.default=(0,gg.default)((0,yg.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var za={},_g=ho;Object.defineProperty(za,"__esModule",{value:!0});var Hl=za.default=void 0,bg=_g(zl()),vg=s;Hl=za.default=(0,bg.default)((0,vg.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var zo=function(){return ut.Date.now()},xg=/\s/;function Sg(e){for(var t=e.length;t--&&xg.test(e.charAt(t)););return t}var wg=/^\s+/;function Rg(e){return e&&e.slice(0,Sg(e)+1).replace(wg,"")}var jg="[object Symbol]";function bo(e){return typeof e=="symbol"||Pt(e)&&Jt(e)==jg}var ni=NaN,Cg=/^[-+]0x[0-9a-f]+$/i,Pg=/^0b[01]+$/i,Ag=/^0o[0-7]+$/i,Og=parseInt;function oi(e){if(typeof e=="number")return e;if(bo(e))return ni;if(Be(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Be(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rg(e);var r=Pg.test(e);return r||Ag.test(e)?Og(e.slice(2),r?2:8):Cg.test(e)?ni:+e}var Tg="Expected a function",Eg=Math.max,Mg=Math.min;function Ig(e,t,r){var n,o,a,i,l,c,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(Tg);t=oi(t)||0,Be(r)&&(d=!!r.leading,f="maxWait"in r,a=f?Eg(oi(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function b(A){var O=n,z=o;return n=o=void 0,u=A,i=e.apply(z,O),i}function y(A){return u=A,l=setTimeout(S,t),d?b(A):i}function _(A){var O=A-c,z=A-u,le=t-O;return f?Mg(le,a-z):le}function g(A){var O=A-c,z=A-u;return c===void 0||O>=t||O<0||f&&z>=a}function S(){var A=zo();if(g(A))return R(A);l=setTimeout(S,_(A))}function R(A){return l=void 0,h&&n?b(A):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function k(){return l===void 0?i:R(zo())}function j(){var A=zo(),O=g(A);if(n=arguments,o=this,c=A,O){if(l===void 0)return y(c);if(f)return clearTimeout(l),l=setTimeout(S,t),b(c)}return l===void 0&&(l=setTimeout(S,t)),i}return j.cancel=C,j.flush=k,j}var Lg="Expected a function";function kg(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(Lg);return Be(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Ig(e,t,{leading:n,maxWait:t,trailing:o})}const Kl=un(Ke.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ut.useTranslation(),[c,u]=Z.useState(),d=Ke.useLocalObservable(()=>({activeJoggingDir:null,startJogging(S){this.activeJoggingDir=S,e(S)},stopJogging(){this.activeJoggingDir=null,t()}})),f=kg(()=>{u(o())},50);Rr(f);function h(S){S.button===0&&d.startJogging("-")}function b(S){S.button===0&&d.startJogging("+")}function y(S){d.stopJogging()}function _(S){S.target===S.currentTarget&&d.stopJogging()}function g(S,R=1){if(S===void 0||isNaN(S))return"";const C=l("General.degree.variable",{amount:S.toFixed(R)});return S>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:h,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(Wl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(L.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(Hl,{})})]})})),$g=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Ng=Z.forwardRef($g),Fg=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),Dg=Z.forwardRef(Fg),Ug=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),Bg=Z.forwardRef(Ug),Jg=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),Vg=Z.forwardRef(Jg),Gg=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),zg=Z.forwardRef(Gg),Wg=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",fillOpacity:.8,d:"m11.87 7.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95L4.21 8.8l-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72zm-.91-2.99.91-.91 2.6 2.6-.91.91zM8.71 14.37h3.74l-1.34-1.34-.04-.04h-2.5L5.32 9.74l4.59-4.59.92.92L8 8.9l5.33 5.33v1.48H8.7v-1.35z"})),Hg=Z.forwardRef(Wg),Kg=Ke.observer(({store:e})=>{const{t}=Ut.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>s.jsx(L.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(L.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(zg,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(Hg,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(L.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function qg(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const Xg=2;function ql(e,t){return e-t}function ai(e,t){var r;const{index:n}=(r=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?r:{};return n}function vn(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 Yg(e,t,r){return(r-t)*e+t}function Zg(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 Qg(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(Zg(t)))}function si({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(ql)}function xn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function Sn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?qg(e,t):!1}const ey={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}%`})}},ty=e=>e;let wn;function ii(){return wn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?wn=CSS.supports("touch-action","none"):wn=!0),wn}function ry(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:f,orientation:h="horizontal",rootRef:b,scale:y=ty,step:_=1,shiftStep:g=10,tabIndex:S,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[A,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,q]=dl({controlled:R,default:r??c,name:"Slider"}),G=d&&((T,I,F)=>{const W=T.nativeEvent||T,Y=new W.constructor(W.type,W);Object.defineProperty(Y,"target",{writable:!0,value:{value:I,name:u}}),d(Y,I,F)}),X=Array.isArray(D);let K=X?D.slice().sort(ql):[D];K=K.map(T=>T==null?c:mr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,I)=>({value:c+_*I})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Pe,onFocus:Ie,ref:st}=fl(),[xt,qe]=N.useState(-1),Re=N.useRef(),Mt=Dn(st,Re),ft=Dn(b,Mt),Xe=T=>I=>{var F;const W=Number(I.currentTarget.getAttribute("data-index"));Ie(I),Q.current===!0&&qe(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,I)},Je=T=>I=>{var F;Pe(I),Q.current===!1&&qe(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,I)},ht=(T,I)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Y=ce.indexOf(W);let H=I;if(we&&_==null){const Ge=ce[ce.length-1];H>Ge?H=Ge:H<ce[0]?H=ce[0]:H=H<W?ce[Y-1]:ce[Y+1]}if(H=mr(H,c,l),X){o&&(H=mr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ge=H;H=si({values:K,newValue:H,index:F});let Ye=F;o||(Ye=H.indexOf(Ge)),xn({sliderRef:Re,activeIndex:Ye})}q(H),qe(F),G&&!Sn(H,D)&&G(T,H,F),f&&f(T,H)},mt=T=>I=>{var F;if(_!==null){const W=Number(I.currentTarget.getAttribute("data-index")),Y=K[W];let H=null;(I.key==="ArrowLeft"||I.key==="ArrowDown")&&I.shiftKey||I.key==="PageDown"?H=Math.max(Y-g,c):((I.key==="ArrowRight"||I.key==="ArrowUp")&&I.shiftKey||I.key==="PageUp")&&(H=Math.min(Y+g,l)),H!==null&&(ht(I,H),I.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,I)};Aa(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&xt!==-1&&qe(-1);const Vt=T=>I=>{var F;(F=T.onChange)==null||F.call(T,I),ht(I,I.target.valueAsNumber)},St=N.useRef();let Ve=h;a&&h==="horizontal"&&(Ve+="-reverse");const E=({finger:T,move:I=!1})=>{const{current:F}=Re,{width:W,height:Y,bottom:H,left:Ge}=F.getBoundingClientRect();let Ye;Ve.indexOf("vertical")===0?Ye=(H-T.y)/Y:Ye=(T.x-Ge)/W,Ve.indexOf("-reverse")!==-1&&(Ye=1-Ye);let te;if(te=Yg(Ye,c,l),_)te=Qg(te,_,c);else{const kt=ai(ce,te);te=ce[kt]}te=mr(te,c,l);let $e=0;if(X){I?$e=St.current:$e=ai(K,te),o&&(te=mr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const kt=te;te=si({values:K,newValue:te,index:$e}),o&&I||($e=te.indexOf(kt),St.current=$e)}return{newValue:te,activeIndex:$e}},ee=Tn(T=>{const I=vn(T,C);if(!I)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=E({finger:I,move:!0});xn({sliderRef:Re,activeIndex:W,setActive:j}),q(F),!z&&ue.current>Xg&&le(!0),G&&!Sn(F,D)&&G(T,F,W)}),he=Tn(T=>{const I=vn(T,C);if(le(!1),!I)return;const{newValue:F}=E({finger:I,move:!0});j(-1),T.type==="touchend"&&O(-1),f&&f(T,F),C.current=void 0,ke()}),Le=Tn(T=>{if(n)return;ii()||T.preventDefault();const I=T.changedTouches[0];I!=null&&(C.current=I.identifier);const F=vn(T,C);if(F!==!1){const{newValue:Y,activeIndex:H}=E({finger:F});xn({sliderRef:Re,activeIndex:H,setActive:j}),q(Y),G&&!Sn(Y,D)&&G(T,Y,H)}ue.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),ke=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Le,{passive:ii()}),()=>{T.removeEventListener("touchstart",Le),ke()}},[ke,Le]),N.useEffect(()=>{n&&ke()},[n,ke]);const It=T=>I=>{var F;if((F=T.onMouseDown)==null||F.call(T,I),n||I.defaultPrevented||I.button!==0)return;I.preventDefault();const W=vn(I,C);if(W!==!1){const{newValue:H,activeIndex:Ge}=E({finger:W});xn({sliderRef:Re,activeIndex:Ge,setActive:j}),q(H),G&&!Sn(H,D)&&G(I,H,Ge)}ue.current=0;const Y=yr(Re.current);Y.addEventListener("mousemove",ee,{passive:!0}),Y.addEventListener("mouseup",he)},je=Xn(X?K[0]:c,c,l),Lt=Xn(K[K.length-1],c,l)-je,Gt=(T={})=>{const I=En(T),F={onMouseDown:It(I||{})},W=P({},I,F);return P({},T,{ref:ft},W)},Pr=T=>I=>{var F;(F=T.onMouseOver)==null||F.call(T,I);const W=Number(I.currentTarget.getAttribute("data-index"));O(W)},Ar=T=>I=>{var F;(F=T.onMouseLeave)==null||F.call(T,I),O(-1)};return{active:k,axis:Ve,axisProps:ey,dragging:z,focusedThumbIndex:xt,getHiddenInputProps:(T={})=>{var I;const F=En(T),W={onChange:Vt(F||{}),onFocus:Xe(F||{}),onBlur:Je(F||{}),onKeyDown:mt(F||{})},Y=P({},F,W);return P({tabIndex:S,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(I=e.step)!=null?I:void 0,disabled:n},T,Y,{style:P({},lf,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Gt,getThumbProps:(T={})=>{const I=En(T),F={onMouseOver:Pr(I||{}),onMouseLeave:Ar(I||{})};return P({},T,I,F)},marks:we,open:A,range:X,rootRef:ft,trackLeap:Lt,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const ny=e=>!e||!Vr(e);function oy(e){return an("MuiSlider",e)}const tt=sl("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"]),ay=e=>{const{open:t}=e;return{offset:bt(t&&tt.valueLabelOpen),circle:tt.valueLabelCircle,label:tt.valueLabelLabel}};function Xl(e){const{children:t,className:r,value:n}=e,o=ay(e);return t?N.cloneElement(t,{className:bt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:bt(o.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:o.circle,children:s.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Xl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const sy=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function li(e){return e}const iy=Ot("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${tt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${tt.dragging}`]:{[`& .${tt.thumb}, & .${tt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),ly=Ot("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}}]}),cy=Ot("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:P({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:P({backgroundColor:oa(e.palette[r].main,.62),borderColor:oa(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:na(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:na(e.palette[r].main,.5)})))}))]}}),uy=Ot("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${tt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${tt.focusVisible}`]:P({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${_s(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${tt.active}`]:P({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${_s(e.palette[r].main,.16)}`})}}))]}}),dy=Ot(Xl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>P({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%"},[`&.${tt.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%"},[`&.${tt.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"}}]})),fy=Ot("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>La(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),hy=Ot("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>La(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>P({},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}}]})),my=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ta(u,oy,i)},py=({children:e})=>e,Yl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,f,h,b,y,_,g,S,R,C,k,j,A,O,z,le,ue;const D=Va({props:t,name:"MuiSlider"}),q=mf(),{"aria-label":G,"aria-valuetext":X,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Pe="primary",classes:Ie,className:st,disableSwap:xt=!1,disabled:qe=!1,getAriaLabel:Re,getAriaValueText:Mt,marks:ft=!1,max:Xe=100,min:Je=0,orientation:ht="horizontal",shiftStep:mt=10,size:Vt="medium",step:St=1,scale:Ve=li,slotProps:E,slots:ee,track:he="normal",valueLabelDisplay:Le="off",valueLabelFormat:ke=li}=D,It=De(D,sy),je=P({},D,{isRtl:q,max:Xe,min:Je,classes:Ie,disabled:qe,disableSwap:xt,orientation:ht,marks:ft,color:Pe,size:Vt,step:St,shiftStep:mt,scale:Ve,track:he,valueLabelDisplay:Le,valueLabelFormat:ke}),{axisProps:Lt,getRootProps:Gt,getHiddenInputProps:Pr,getThumbProps:Ar,open:Or,active:rr,axis:it,focusedThumbIndex:T,range:I,dragging:F,marks:W,values:Y,trackOffset:H,trackLeap:Ge,getThumbStyle:Ye}=ry(P({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=my(je),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:iy,kt=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:ly,nr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:cy,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:uy,wt=(f=(h=ee==null?void 0:ee.valueLabel)!=null?h:ce.ValueLabel)!=null?f:dy,zt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:fy,Wt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:hy,Er=(S=(R=ee==null?void 0:ee.input)!=null?R:ce.Input)!=null?S:"input",Mr=(C=E==null?void 0:E.root)!=null?C:Q.root,hn=(k=E==null?void 0:E.rail)!=null?k:Q.rail,Ir=(j=E==null?void 0:E.track)!=null?j:Q.track,or=(A=E==null?void 0:E.thumb)!=null?A:Q.thumb,ar=(O=E==null?void 0:E.valueLabel)!=null?O:Q.valueLabel,Po=(z=E==null?void 0:E.mark)!=null?z:Q.mark,Ao=(le=E==null?void 0:E.markLabel)!=null?le:Q.markLabel,mn=(ue=E==null?void 0:E.input)!=null?ue:Q.input,pn=$t({elementType:$e,getSlotProps:Gt,externalSlotProps:Mr,externalForwardedProps:It,additionalProps:P({},ny($e)&&{as:we}),ownerState:P({},je,Mr==null?void 0:Mr.ownerState),className:[te.root,st]}),Oo=$t({elementType:kt,externalSlotProps:hn,ownerState:je,className:te.rail}),To=$t({elementType:nr,externalSlotProps:Ir,additionalProps:{style:P({},Lt[it].offset(H),Lt[it].leap(Ge))},ownerState:P({},je,Ir==null?void 0:Ir.ownerState),className:te.track}),Lr=$t({elementType:Tr,getSlotProps:Ar,externalSlotProps:or,ownerState:P({},je,or==null?void 0:or.ownerState),className:te.thumb}),Eo=$t({elementType:wt,externalSlotProps:ar,ownerState:P({},je,ar==null?void 0:ar.ownerState),className:te.valueLabel}),p=$t({elementType:zt,externalSlotProps:Po,ownerState:je,className:te.mark}),w=$t({elementType:Wt,externalSlotProps:Ao,ownerState:je,className:te.markLabel}),M=$t({elementType:Er,getSlotProps:Pr,externalSlotProps:mn,ownerState:je});return s.jsxs($e,P({},pn,{children:[s.jsx(kt,P({},Oo)),s.jsx(nr,P({},To)),W.filter($=>$.value>=Je&&$.value<=Xe).map(($,U)=>{const re=Xn($.value,Je,Xe),V=Lt[it].offset(re);let B;return he===!1?B=Y.indexOf($.value)!==-1:B=he==="normal"&&(I?$.value>=Y[0]&&$.value<=Y[Y.length-1]:$.value<=Y[0])||he==="inverted"&&(I?$.value<=Y[0]||$.value>=Y[Y.length-1]:$.value>=Y[0]),s.jsxs(N.Fragment,{children:[s.jsx(zt,P({"data-index":U},p,!Vr(zt)&&{markActive:B},{style:P({},V,p.style),className:bt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Wt,P({"aria-hidden":!0,"data-index":U},w,!Vr(Wt)&&{markLabelActive:B},{style:P({},V,w.style),className:bt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Y.map(($,U)=>{const re=Xn($,Je,Xe),V=Lt[it].offset(re),B=Le==="off"?py:wt;return s.jsx(B,P({},!Vr(B)&&{valueLabelFormat:ke,valueLabelDisplay:Le,value:typeof ke=="function"?ke(Ve($),U):ke,index:U,open:Or===U||rr===U||Le==="on",disabled:qe},Eo,{children:s.jsx(Tr,P({"data-index":U},Lr,{className:bt(te.thumb,Lr.className,rr===U&&te.active,T===U&&te.focusVisible),style:P({},V,Ye(U),Lr.style),children:s.jsx(Er,P({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Ve($),"aria-labelledby":K,"aria-valuetext":Mt?Mt(Ve($),U):X,value:Y[U]},M))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(Yl.propTypes={"aria-label":ms(m.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":m.string,"aria-valuetext":ms(m.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:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var gy="[object Number]";function yy(e){return typeof e=="number"||Pt(e)&&Jt(e)==gy}const Zl=Ke.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!yy(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(Yl,{value:e.velocity,onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Ql=Ke.observer(({store:e})=>{const{t}=Ut.useTranslation(),r=Ke.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return s.jsx(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(Zl,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),ec=Z.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),_y=Ke.observer(({store:e})=>{const t=Z.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?Ct.poseToWandelscriptString(n):""}return Rr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(ec,{label:"Pose",value:r(),ref:t})})});var by="__lodash_hash_undefined__";function vy(e){return this.__data__.set(e,by),this}function xy(e){return this.__data__.has(e)}function Yn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Et;++t<r;)this.add(e[t])}Yn.prototype.add=Yn.prototype.push=vy;Yn.prototype.has=xy;function Sy(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 wy(e,t){return e.has(t)}var Ry=1,jy=2;function tc(e,t,r,n,o,a){var i=r&Ry,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,b=r&jy?new Yn:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var y=e[f],_=t[f];if(n)var g=i?n(_,y,f,t,e,a):n(y,_,f,e,t,a);if(g!==void 0){if(g)continue;h=!1;break}if(b){if(!Sy(t,function(S,R){if(!wy(b,R)&&(y===S||o(y,S,r,n,a)))return b.push(R)})){h=!1;break}}else if(!(y===_||o(y,_,r,n,a))){h=!1;break}}return a.delete(e),a.delete(t),h}function Cy(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Py(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Ay=1,Oy=2,Ty="[object Boolean]",Ey="[object Date]",My="[object Error]",Iy="[object Map]",Ly="[object Number]",ky="[object RegExp]",$y="[object Set]",Ny="[object String]",Fy="[object Symbol]",Dy="[object ArrayBuffer]",Uy="[object DataView]",ci=Dt?Dt.prototype:void 0,Wo=ci?ci.valueOf:void 0;function By(e,t,r,n,o,a,i){switch(r){case Uy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Dy:return!(e.byteLength!=t.byteLength||!a(new Jn(e),new Jn(t)));case Ty:case Ey:case Ly:return ln(+e,+t);case My:return e.name==t.name&&e.message==t.message;case ky:case Ny:return e==t+"";case Iy:var l=Cy;case $y:var c=n&Ay;if(l||(l=Py),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=Oy,i.set(e,t);var d=tc(l(e),l(t),n,o,a,i);return i.delete(e),d;case Fy:if(Wo)return Wo.call(e)==Wo.call(t)}return!1}function Jy(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Vy(e,t,r){var n=t(e);return ot(e)?n:Jy(n,r(e))}function Gy(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function zy(){return[]}var Wy=Object.prototype,Hy=Wy.propertyIsEnumerable,ui=Object.getOwnPropertySymbols,Ky=ui?function(e){return e==null?[]:(e=Object(e),Gy(ui(e),function(t){return Hy.call(e,t)}))}:zy,qy=Al(Object.keys,Object),Xy=Object.prototype,Yy=Xy.hasOwnProperty;function Zy(e){if(!Na(e))return qy(e);var t=[];for(var r in Object(e))Yy.call(e,r)&&r!="constructor"&&t.push(r);return t}function Wa(e){return cn(e)?Ll(e):Zy(e)}function di(e){return Vy(e,Wa,Ky)}var Qy=1,e1=Object.prototype,t1=e1.hasOwnProperty;function r1(e,t,r,n,o,a){var i=r&Qy,l=di(e),c=l.length,u=di(t),d=u.length;if(c!=d&&!i)return!1;for(var f=c;f--;){var h=l[f];if(!(i?h in t:t1.call(t,h)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++f<c;){h=l[f];var S=e[h],R=t[h];if(n)var C=i?n(R,S,h,t,e,a):n(S,R,h,e,t,a);if(!(C===void 0?S===R||o(S,R,r,n,a):C)){_=!1;break}g||(g=h=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var ua=tr(ut,"DataView"),da=tr(ut,"Promise"),fa=tr(ut,"Set"),ha=tr(ut,"WeakMap"),fi="[object Map]",n1="[object Object]",hi="[object Promise]",mi="[object Set]",pi="[object WeakMap]",gi="[object DataView]",o1=er(ua),a1=er(Xr),s1=er(da),i1=er(fa),l1=er(ha),Ft=Jt;(ua&&Ft(new ua(new ArrayBuffer(1)))!=gi||Xr&&Ft(new Xr)!=fi||da&&Ft(da.resolve())!=hi||fa&&Ft(new fa)!=mi||ha&&Ft(new ha)!=pi)&&(Ft=function(e){var t=Jt(e),r=t==n1?e.constructor:void 0,n=r?er(r):"";if(n)switch(n){case o1:return gi;case a1:return fi;case s1:return hi;case i1:return mi;case l1:return pi}return t});var c1=1,yi="[object Arguments]",_i="[object Array]",Rn="[object Object]",u1=Object.prototype,bi=u1.hasOwnProperty;function d1(e,t,r,n,o,a){var i=ot(e),l=ot(t),c=i?_i:Ft(e),u=l?_i:Ft(t);c=c==yi?Rn:c,u=u==yi?Rn:u;var d=c==Rn,f=u==Rn,h=c==u;if(h&&Gn(e)){if(!Gn(t))return!1;i=!0,d=!1}if(h&&!d)return a||(a=new vt),i||Da(e)?tc(e,t,r,n,o,a):By(e,t,c,r,n,o,a);if(!(r&c1)){var b=d&&bi.call(e,"__wrapped__"),y=f&&bi.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new vt),o(_,g,r,n,a)}}return h?(a||(a=new vt),r1(e,t,r,n,o,a)):!1}function vo(e,t,r,n,o){return e===t?!0:e==null||t==null||!Pt(e)&&!Pt(t)?e!==e&&t!==t:d1(e,t,r,n,vo,o)}function f1(e,t){return vo(e,t)}const h1=({store:e})=>{const{t}=Ut.useTranslation(),[r,n]=Z.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);Rr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;f1(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},m1=Ke.observer(({store:e})=>{const{t}=Ut.useTranslation();function r(f,h){(h==="translate"||h==="rotate")&&e.setSelectedCartesianMotionType(h)}Vl(()=>[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}),Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.selectedDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.selectedCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(f,h){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.selectedCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:f.axis,direction:f.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:h.mm}:{type:"rotate",distanceRads:Ct.degreesToRadians(h.degrees)}})})}async function i(f){if(!e.isLocked){if(n(),e.selectedDiscreteIncrement)return a(f,e.selectedDiscreteIncrement);f.motionType==="translate"?await e.jogger.startTCPTranslation({axis:f.axis,direction:f.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:f.axis,direction:f.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(Dg,{})},{id:"y",color:"#42A705",icon:s.jsx(Bg,{})},{id:"z",color:"#0075FF",icon:s.jsx(Vg,{})}];function u(f){return t("General.mm.variable",{amount:f.toFixed(1)})}function d(f){return t("General.degree.variable",{amount:Ct.radiansToDegrees(f).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(_y,{store:e}),s.jsx(Kg,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(f=>s.jsx(ca,{color:f.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[f.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:f.id.toUpperCase()})]}),getDisplayedValue:()=>{var h;return u(((h=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:h.position[f.id])||0)},startJogging:h=>i({axis:f.id,motionType:"translate",direction:h}),stopJogging:l},f.id)),e.selectedCartesianMotionType==="rotate"&&c.map(f=>s.jsx(ca,{color:f.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Ng,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:f.id.toUpperCase()})]}),getDisplayedValue:()=>{var h,b;return d(((b=(h=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:h.orientation)==null?void 0:b[f.id])||0)},startJogging:h=>i({axis:f.id,motionType:"rotate",direction:h}),stopJogging:l},f.id))]}),s.jsx(Ql,{store:e}),s.jsx(h1,{store:e})]})}),p1=Ke.observer(({store:e})=>{const t=Z.useRef(null);Ut.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return Rr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(ec,{label:"Pose",value:r(),ref:t})})}),g1=Ke.observer(({store:e})=>{Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(p1,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?Ct.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?Ct.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(Kl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?Ct.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Ql,{store:e})]})});function y1(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function _1(e,t){return e&&Cl(e,t,Wa)}function b1(e,t){return function(r,n){if(r==null)return r;if(!cn(r))return e(r,n);for(var o=r.length,a=-1,i=Object(r);++a<o&&n(i[a],a,i)!==!1;);return r}}var v1=b1(_1);function x1(e,t,r,n){return v1(e,function(o,a,i){t(n,o,r(o),i)}),n}var S1=1,w1=2;function R1(e,t,r,n){var o=r.length,a=o;if(e==null)return!a;for(e=Object(e);o--;){var i=r[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){i=r[o];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new vt,f;if(!(f===void 0?vo(u,c,S1|w1,n,d):f))return!1}}return!0}function rc(e){return e===e&&!Be(e)}function j1(e){for(var t=Wa(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,rc(o)]}return t}function nc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function C1(e){var t=j1(e);return t.length==1&&t[0][2]?nc(t[0][0],t[0][1]):function(r){return r===e||R1(r,e,t)}}var P1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A1=/^\w*$/;function Ha(e,t){if(ot(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||bo(e)?!0:A1.test(e)||!P1.test(e)||t!=null&&e in Object(t)}var O1="Expected a function";function Ka(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(O1);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ka.Cache||Et),r}Ka.Cache=Et;var T1=500;function E1(e){var t=Ka(e,function(n){return r.size===T1&&r.clear(),n}),r=t.cache;return t}var M1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I1=/\\(\\)?/g,L1=E1(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(M1,function(r,n,o,a){t.push(o?a.replace(I1,"$1"):n||r)}),t});function k1(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 $1=1/0,vi=Dt?Dt.prototype:void 0,xi=vi?vi.toString:void 0;function oc(e){if(typeof e=="string")return e;if(ot(e))return k1(e,oc)+"";if(bo(e))return xi?xi.call(e):"";var t=e+"";return t=="0"&&1/e==-$1?"-0":t}function ac(e){return e==null?"":oc(e)}function sc(e,t){return ot(e)?e:Ha(e,t)?[e]:L1(ac(e))}var N1=1/0;function xo(e){if(typeof e=="string"||bo(e))return e;var t=e+"";return t=="0"&&1/e==-N1?"-0":t}function ic(e,t){t=sc(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[xo(t[r++])];return r&&r==n?e:void 0}function F1(e,t,r){var n=e==null?void 0:ic(e,t);return n===void 0?r:n}function D1(e,t){return e!=null&&t in Object(e)}function U1(e,t,r){t=sc(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=xo(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Fa(o)&&Ua(i,o)&&(ot(e)||Vn(e)))}function B1(e,t){return e!=null&&U1(e,t,D1)}var J1=1,V1=2;function G1(e,t){return Ha(e)&&rc(t)?nc(xo(e),t):function(r){var n=F1(r,e);return n===void 0&&n===t?B1(r,e):vo(t,n,J1|V1)}}function z1(e){return function(t){return t==null?void 0:t[e]}}function W1(e){return function(t){return ic(t,e)}}function H1(e){return Ha(e)?z1(xo(e)):W1(e)}function K1(e){return typeof e=="function"?e:e==null?ka:typeof e=="object"?ot(e)?G1(e[0],e[1]):C1(e):H1(e)}function q1(e,t){return function(r,n){var o=ot(r)?y1:x1,a={};return o(r,e,K1(n),a)}}var jn=q1(function(e,t,r){go(e,r,t)}),X1=0;function Y1(e){var t=++X1;return ac(e)+t}const ma=[{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}],Z1=[{id:"continuous"},...ma];class qa{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJoggingInProgress=!1,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of n)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((a=n[0])==null?void 0:a.coordinate_system)||"world",this.selectedTcpId=((i=o[0])==null?void 0:i.id)||"",br.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(br.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:a}]=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 qa(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=Ct.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return Z1}get discreteIncrementOptions(){return ma}get incrementOptionsById(){return jn(this.incrementOptions,t=>t.id)}get tabsById(){return jn(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 jn(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 jn(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return ma.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setIncrementJoggingInProgress(t){this.incrementJoggingInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=Y1();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}function lc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Q1}=Object.prototype,{getPrototypeOf:Xa}=Object,So=(e=>t=>{const r=Q1.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),dt=e=>(e=e.toLowerCase(),t=>So(t)===e),wo=e=>t=>typeof t===e,{isArray:jr}=Array,Qr=wo("undefined");function e_(e){return e!==null&&!Qr(e)&&e.constructor!==null&&!Qr(e.constructor)&&He(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const cc=dt("ArrayBuffer");function t_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&cc(e.buffer),t}const r_=wo("string"),He=wo("function"),uc=wo("number"),Ro=e=>e!==null&&typeof e=="object",n_=e=>e===!0||e===!1,Ln=e=>{if(So(e)!=="object")return!1;const t=Xa(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},o_=dt("Date"),a_=dt("File"),s_=dt("Blob"),i_=dt("FileList"),l_=e=>Ro(e)&&He(e.pipe),c_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||He(e.append)&&((t=So(e))==="formdata"||t==="object"&&He(e.toString)&&e.toString()==="[object FormData]"))},u_=dt("URLSearchParams"),[d_,f_,h_,m_]=["ReadableStream","Request","Response","Headers"].map(dt),p_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),jr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(n=0;n<i;n++)l=a[n],t.call(null,e[l],l,e)}}function dc(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 Kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fc=e=>!Qr(e)&&e!==Kt;function pa(){const{caseless:e}=fc(this)&&this||{},t={},r=(n,o)=>{const a=e&&dc(t,o)||o;Ln(t[a])&&Ln(n)?t[a]=pa(t[a],n):Ln(n)?t[a]=pa({},n):jr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&dn(arguments[n],r);return t}const g_=(e,t,r,{allOwnKeys:n}={})=>(dn(t,(o,a)=>{r&&He(o)?e[a]=lc(o,r):e[a]=o},{allOwnKeys:n}),e),y_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),__=(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)},b_=(e,t,r,n)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Xa(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},v_=(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},x_=e=>{if(!e)return null;if(jr(e))return e;let t=e.length;if(!uc(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},S_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xa(Uint8Array)),w_=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},R_=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},j_=dt("HTMLFormElement"),C_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Si=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),P_=dt("RegExp"),hc=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};dn(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},A_=e=>{hc(e,(t,r)=>{if(He(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(He(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+"'")})}})},O_=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return jr(e)?n(e):n(String(e).split(t)),r},T_=()=>{},E_=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ho="abcdefghijklmnopqrstuvwxyz",wi="0123456789",mc={DIGIT:wi,ALPHA:Ho,ALPHA_DIGIT:Ho+Ho.toUpperCase()+wi},M_=(e=16,t=mc.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function I_(e){return!!(e&&He(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const L_=e=>{const t=new Array(10),r=(n,o)=>{if(Ro(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=jr(n)?[]:{};return dn(n,(i,l)=>{const c=r(i,o+1);!Qr(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},k_=dt("AsyncFunction"),$_=e=>e&&(Ro(e)||He(e))&&He(e.then)&&He(e.catch),pc=((e,t)=>e?setImmediate:t?((r,n)=>(Kt.addEventListener("message",({source:o,data:a})=>{o===Kt&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Kt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",He(Kt.postMessage)),N_=typeof queueMicrotask<"u"?queueMicrotask.bind(Kt):typeof process<"u"&&process.nextTick||pc,v={isArray:jr,isArrayBuffer:cc,isBuffer:e_,isFormData:c_,isArrayBufferView:t_,isString:r_,isNumber:uc,isBoolean:n_,isObject:Ro,isPlainObject:Ln,isReadableStream:d_,isRequest:f_,isResponse:h_,isHeaders:m_,isUndefined:Qr,isDate:o_,isFile:a_,isBlob:s_,isRegExp:P_,isFunction:He,isStream:l_,isURLSearchParams:u_,isTypedArray:S_,isFileList:i_,forEach:dn,merge:pa,extend:g_,trim:p_,stripBOM:y_,inherits:__,toFlatObject:b_,kindOf:So,kindOfTest:dt,endsWith:v_,toArray:x_,forEachEntry:w_,matchAll:R_,isHTMLForm:j_,hasOwnProperty:Si,hasOwnProp:Si,reduceDescriptors:hc,freezeMethods:A_,toObjectSet:O_,toCamelCase:C_,noop:T_,toFiniteNumber:E_,findKey:dc,global:Kt,isContextDefined:fc,ALPHABET:mc,generateString:M_,isSpecCompliantForm:I_,toJSONObject:L_,isAsyncFn:k_,isThenable:$_,setImmediate:pc,asap:N_};function J(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}v.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gc=J.prototype,yc={};["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=>{yc[e]={value:e}});Object.defineProperties(J,yc);Object.defineProperty(gc,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,a)=>{const i=Object.create(gc);return v.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),J.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const F_=null;function ga(e){return v.isPlainObject(e)||v.isArray(e)}function _c(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function Ri(e,t,r){return e?e.concat(t).map(function(o,a){return o=_c(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function D_(e){return v.isArray(e)&&!e.some(ga)}const U_=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function jo(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,g){return!v.isUndefined(g[_])});const n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(o))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!c&&v.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,_,g){let S=y;if(y&&!g&&typeof y=="object"){if(v.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&D_(y)||(v.isFileList(y)||v.endsWith(_,"[]"))&&(S=v.toArray(y)))return _=_c(_),S.forEach(function(C,k){!(v.isUndefined(C)||C===null)&&t.append(i===!0?Ri([_],k,a):i===null?_:_+"[]",u(C))}),!1}return ga(y)?!0:(t.append(Ri(g,_,a),u(y)),!1)}const f=[],h=Object.assign(U_,{defaultVisitor:d,convertValue:u,isVisitable:ga});function b(y,_){if(!v.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(y),v.forEach(y,function(S,R){(!(v.isUndefined(S)||S===null)&&o.call(t,S,v.isString(R)?R.trim():R,_,h))===!0&&b(S,_?_.concat(R):[R])}),f.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ji(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ya(e,t){this._pairs=[],e&&jo(e,this,t)}const bc=Ya.prototype;bc.append=function(t,r){this._pairs.push([t,r])};bc.toString=function(t){const r=t?function(n){return t.call(this,n,ji)}:ji;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function B_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vc(e,t,r){if(!t)return e;const n=r&&r.encode||B_,o=r&&r.serialize;let a;if(o?a=o(t,r):a=v.isURLSearchParams(t)?t.toString():new Ya(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Ci{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){v.forEach(this.handlers,function(n){n!==null&&t(n)})}}const xc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},J_=typeof URLSearchParams<"u"?URLSearchParams:Ya,V_=typeof FormData<"u"?FormData:null,G_=typeof Blob<"u"?Blob:null,z_={isBrowser:!0,classes:{URLSearchParams:J_,FormData:V_,Blob:G_},protocols:["http","https","file","blob","url","data"]},Za=typeof window<"u"&&typeof document<"u",W_=(e=>Za&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),H_=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",K_=Za&&window.location.href||"http://localhost",q_=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Za,hasStandardBrowserEnv:W_,hasStandardBrowserWebWorkerEnv:H_,origin:K_},Symbol.toStringTag,{value:"Module"})),lt={...q_,...z_};function X_(e,t){return jo(e,new lt.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return lt.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Y_(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Z_(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function Sc(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=r.length;return i=!i&&v.isArray(o)?o.length:i,c?(v.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!v.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&v.isArray(o[i])&&(o[i]=Z_(o[i])),!l)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(n,o)=>{t(Y_(n),o,r,0)}),r}return null}function Q_(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const fn={transitional:xc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=v.isObject(t);if(a&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return o?JSON.stringify(Sc(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return X_(t,this.formSerializer).toString();if((l=v.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return jo(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Q_(t)):t}],transformResponse:[function(t){const r=this.transitional||fn.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(n&&!this.responseType||o)){const i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?J.from(l,J.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{fn.headers[e]={}});const eb=v.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"]),tb=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
79
|
-
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&
|
|
80
|
-
`)}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[Pi]=this[Pi]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Br(i);n[l]||(ab(o,i),n[l]=!0)}return v.isArray(t)?t.forEach(a):a(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});v.freezeMethods(Fe);function qo(e,t){const r=this||fn,n=t||r,o=Fe.from(n.headers);let a=n.data;return v.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function wc(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}v.inherits(Cr,J,{__CANCEL__:!0});function Rc(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function sb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ib(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[a];i||(i=u),r[o]=c,n[o]=u;let f=a,h=0;for(;f!==o;)h+=r[f++],f=f%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const b=d&&u-d;return b?Math.round(h*1e3/b):void 0}}function lb(e,t){let r=0,n=1e3/t,o,a;const i=(u,d=Date.now())=>{r=d,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-r;f>=n?i(u,d):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},n-f)))},()=>o&&i(o)]}const Zn=(e,t,r=3)=>{let n=0;const o=ib(50,250);return lb(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-n,u=o(c),d=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},r)},Ai=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Oi=e=>(...t)=>v.asap(()=>e(...t)),cb=lt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const l=v.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),ub=lt.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];v.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),v.isString(n)&&i.push("path="+n),v.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.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 db(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function jc(e,t){return e&&!db(t)?fb(e,t):t}const Ti=e=>e instanceof Fe?{...e}:e;function Qt(e,t){t=t||{};const r={};function n(u,d,f){return v.isPlainObject(u)&&v.isPlainObject(d)?v.merge.call({caseless:f},u,d):v.isPlainObject(d)?v.merge({},d):v.isArray(d)?d.slice():d}function o(u,d,f){if(v.isUndefined(d)){if(!v.isUndefined(u))return n(void 0,u,f)}else return n(u,d,f)}function a(u,d){if(!v.isUndefined(d))return n(void 0,d)}function i(u,d){if(v.isUndefined(d)){if(!v.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,f){if(f in t)return n(u,d);if(f in e)return n(void 0,u)}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,d)=>o(Ti(u),Ti(d),!0)};return v.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=c[d]||o,h=f(e[d],t[d],d);v.isUndefined(h)&&f!==l||(r[d]=h)}),r}const Cc=e=>{const t=Qt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=vc(jc(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(v.isFormData(r)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(lt.hasStandardBrowserEnv&&(n&&v.isFunction(n)&&(n=n(t)),n||n!==!1&&cb(t.url))){const u=o&&a&&ub.read(a);u&&i.set(o,u)}return t},hb=typeof XMLHttpRequest<"u",mb=hb&&function(e){return new Promise(function(r,n){const o=Cc(e);let a=o.data;const i=Fe.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,f,h,b,y;function _(){b&&b(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function S(){if(!g)return;const C=Fe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};Rc(function(O){r(O),_()},function(O){n(O),_()},j),g=null}"onloadend"in g?g.onloadend=S:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(S)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||xc;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),n(new J(k,j.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&v.forEach(i.toJSON(),function(k,j){g.setRequestHeader(j,k)}),v.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),l&&l!=="json"&&(g.responseType=o.responseType),u&&([h,y]=Zn(u,!0),g.addEventListener("progress",h)),c&&g.upload&&([f,b]=Zn(c),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=C=>{g&&(n(!C||C.type?new Cr(null,e,g):C),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const R=sb(o.url);if(R&<.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}g.send(a||null)})},pb=(e,t)=>{let r=new AbortController,n;const o=function(c){if(!n){n=!0,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof J?u:new Cr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{o(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{a&&clearTimeout(a),a=null}]},gb=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},yb=async function*(e,t,r){for await(const n of e)yield*gb(ArrayBuffer.isView(n)?n:await r(String(n)),t)},Ei=(e,t,r,n,o)=>{const a=yb(e,t,o);let i=0,l,c=u=>{l||(l=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:f}=await a.next();if(d){c(),u.close();return}let h=f.byteLength;if(r){let b=i+=h;r(b)}u.enqueue(new Uint8Array(f))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},Co=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Pc=Co&&typeof ReadableStream=="function",ya=Co&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ac=(e,...t)=>{try{return!!e(...t)}catch{return!1}},_b=Pc&&Ac(()=>{let e=!1;const t=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Mi=64*1024,_a=Pc&&Ac(()=>v.isReadableStream(new Response("").body)),Qn={stream:_a&&(e=>e.body)};Co&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qn[t]&&(Qn[t]=v.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const bb=async e=>{if(e==null)return 0;if(v.isBlob(e))return e.size;if(v.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(v.isArrayBufferView(e)||v.isArrayBuffer(e))return e.byteLength;if(v.isURLSearchParams(e)&&(e=e+""),v.isString(e))return(await ya(e)).byteLength},vb=async(e,t)=>{const r=v.toFiniteNumber(e.getContentLength());return r??bb(t)},xb=Co&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:h}=Cc(e);u=u?(u+"").toLowerCase():"text";let[b,y]=o||a||i?pb([o,a],i):[],_,g;const S=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let R;try{if(c&&_b&&r!=="get"&&r!=="head"&&(R=await vb(d,n))!==0){let A=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(v.isFormData(n)&&(O=A.headers.get("content-type"))&&d.setContentType(O),A.body){const[z,le]=Ai(R,Zn(Oi(c)));n=Ei(A.body,Mi,z,le,ya)}}v.isString(f)||(f=f?"include":"omit"),g=new Request(t,{...h,signal:b,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:f});let C=await fetch(g);const k=_a&&(u==="stream"||u==="response");if(_a&&(l||k)){const A={};["status","statusText","headers"].forEach(ue=>{A[ue]=C[ue]});const O=v.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&Ai(O,Zn(Oi(l),!0))||[];C=new Response(Ei(C.body,Mi,z,()=>{le&&le(),k&&S()},ya),A)}u=u||"text";let j=await Qn[v.findKey(Qn,u)||"text"](C,e);return!k&&S(),y&&y(),await new Promise((A,O)=>{Rc(A,O,{data:j,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(C){throw S(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,g),{cause:C.cause||C}):J.from(C,C&&C.code,e,g)}}),ba={http:F_,xhr:mb,fetch:xb};v.forEach(ba,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ii=e=>`- ${e}`,Sb=e=>v.isFunction(e)||e===null||e===!1,Oc={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!Sb(r)&&(n=ba[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
|
|
81
|
-
`+a.map(
|
|
82
|
-
`):" "+
|
|
83
|
-
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Qt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&va.assertOptions(n,{silentJSONParsing:Nt.transitional(Nt.boolean),forcedJSONParsing:Nt.transitional(Nt.boolean),clarifyTimeoutError:Nt.transitional(Nt.boolean)},!1),o!=null&&(v.isFunction(o)?r.paramsSerializer={serialize:o}:va.assertOptions(o,{encode:Nt.function,serialize:Nt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&v.merge(a.common,a[r.method]);a&&v.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),r.headers=Fe.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let d,f=0,h;if(!c){const y=[Li.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),h=y.length,d=Promise.resolve(r);f<h;)d=d.then(y[f++],y[f++]);return d}h=l.length;let b=r;for(f=0;f<h;){const y=l[f++],_=l[f++];try{b=y(b)}catch(g){_.call(this,g);break}}try{d=Li.call(this,b)}catch(y){return Promise.reject(y)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=Qt(this.defaults,t);const r=jc(t.baseURL,t.url);return vc(r,t.params,t.paramsSerializer)}};v.forEach(["delete","get","head","options"],function(t){Xt.prototype[t]=function(r,n){return this.request(Qt(n||{},{method:t,url:r,data:(n||{}).data}))}});v.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Qt(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Xt.prototype[t]=r(),Xt.prototype[t+"Form"]=r(!0)});let Rb=class Ec{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{n.subscribe(l),a=l}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,l){n.reason||(n.reason=new Cr(a,i,l),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)}static source(){let t;return{token:new Ec(function(o){t=o}),cancel:t}}};function jb(e){return function(r){return e.apply(null,r)}}function Cb(e){return v.isObject(e)&&e.isAxiosError===!0}const xa={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(xa).forEach(([e,t])=>{xa[t]=e});function Mc(e){const t=new Xt(e),r=lc(Xt.prototype.request,t);return v.extend(r,Xt.prototype,t,{allOwnKeys:!0}),v.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Mc(Qt(e,o))},r}const Se=Mc(fn);Se.Axios=Xt;Se.CanceledError=Cr;Se.CancelToken=Rb;Se.isCancel=wc;Se.VERSION=Tc;Se.toFormData=jo;Se.AxiosError=J;Se.Cancel=Se.CanceledError;Se.all=function(t){return Promise.all(t)};Se.spread=jb;Se.isAxiosError=Cb;Se.mergeConfig=Qt;Se.AxiosHeaders=Fe;Se.formToJSON=e=>Sc(v.isHTMLForm(e)?new FormData(e):e);Se.getAdapter=Oc.getAdapter;Se.HttpStatusCode=xa;Se.default=Se;const{Axios:Nb,AxiosError:$i,CanceledError:Fb,isCancel:Db,CancelToken:Ub,VERSION:Bb,all:Jb,Cancel:Vb,isAxiosError:Gb,spread:zb,toFormData:Wb,AxiosHeaders:Hb,HttpStatusCode:Kb,formToJSON:qb,getAdapter:Xb,mergeConfig:Yb}=Se;function Pb(e){try{return JSON.stringify(e)}catch{return}}function Ab(e){var t,r,n,o;return e instanceof $i&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof $i&&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: ${Pb(e)||e}`}const Ob=e=>{const t=e.softTimeout||3e3,[r,n]=Z.useState(!1);return Z.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(L.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(Tb,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(L.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(L.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},Tb=e=>{const t=Ab(e.error),r=e.error instanceof Error?e.error.stack:null,n=L.useTheme();return s.jsxs(L.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:[`Error while: ${e.message} - ${t}`,s.jsx("br",{}),r&&s.jsx("pre",{children:r})]})},Eb=un(Ke.observer(e=>{var a,i,l,c;const t=e.nova instanceof Ct.NovaClient?e.nova:new Ct.NovaClient({instanceUrl:e.nova}),r=Ke.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){br.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const u=await t.connectJogger(e.motionGroupId),d=await qa.loadFor(u);br.runInAction(()=>{r.joggingStore=d}),e.onSetup&&e.onSetup(d)}catch(u){r.loadingError=u}}if(Z.useEffect(()=>(n(),()=>{var u;(u=r.joggingStore)==null||u.dispose()}),[e.nova]),Z.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:u,selectedTcpId:d,activeCoordSystemId:f,selectedDiscreteIncrement:h}=r.joggingStore;if(u.id!=="cartesian"&&u.id!=="joint")return;const b={tcpId:d,coordSystemId:f};h&&u.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",b):r.joggingStore.jogger.setJoggingMode(u.id,b)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.activeCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),!r.joggingStore||r.loadingError)return s.jsx(Ni,{children:s.jsx(Ob,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(Ni,{children:s.jsxs(L.Stack,{flexGrow:1,children:[s.jsx(L.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(u=>s.jsx(L.Tab,{label:u.label,id:`jogging-tab-${u.id}`,"aria-controls":`jogging-tab-${u.id}`},u.id))}),s.jsxs(L.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(m1,{store:o}),o.currentTab.id==="joint"&&s.jsx(g1,{store:o}),e.children]})]})})}));function Ni({children:e}){return s.jsx(L.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(L.Paper,{sx:{height:"100%"},children:e})})}function Mb(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Ib({baseUrl:e=Mb(),...t}){return s.jsxs(L.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(L.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),s.jsxs(L.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[s.jsx(L.Typography,{color:"#fff",children:"Found no devices to connect to."}),s.jsx(L.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),s.jsx(L.DialogActions,{children:s.jsxs(L.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[s.jsx(L.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),s.jsx(L.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const Lb=Array(6).fill(2*Math.PI);exports.JoggingCartesianAxisControl=ca;exports.JoggingJointRotationControl=Kl;exports.JoggingPanel=Eb;exports.NoMotionGroupModal=Ib;exports.PresetEnvironment=ng;exports.Robot=rg;exports.SafetyZonesRenderer=sg;exports.SupportedRobot=Gl;exports.VelocitySlider=Zl;exports.WandelscriptEditor=Ip;exports.defaultAxisConfig=Lb;exports.defaultGetModel=Ja;exports.useAnimationFrame=Rr;exports.useAutorun=Jl;exports.useMounted=_o;exports.useReaction=Vl;
|
|
75
|
+
} });`:Hr(12,g?` (${g})`:"",JSON.stringify(_.main)));return Ps(_,"light",R,n),Ps(_,"dark",C,n),_.contrastText||(_.contrastText=h(_.main)),_},b={dark:Lo,light:As};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),tt(A({common:A({},Xr),mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:c,name:"info"}),success:f({color:u,name:"success"}),grey:Bh,contrastThreshold:r,getContrastText:h,augmentColor:f,tonalOffset:n},b[t]),o)}const Xh=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Yh(e){return Math.round(e*1e5)/1e5}const Os={textTransform:"uppercase"},Ts='"Roboto", "Helvetica", "Arial", sans-serif';function Zh(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Ts,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:h}=r,f=Ue(r,Xh);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,y=h||(v=>`${v/u*b}rem`),_=(v,R,C,k,j)=>A({fontFamily:n,fontWeight:v,fontSize:y(R),lineHeight:C},n===Ts?{letterSpacing:`${Yh(k/R)}em`}:{},j,d),g={h1:_(a,96,1.167,-1.5),h2:_(a,60,1.2,-.5),h3:_(i,48,1.167,0),h4:_(i,34,1.235,.25),h5:_(i,24,1.334,0),h6:_(l,20,1.6,.15),subtitle1:_(i,16,1.75,.15),subtitle2:_(l,14,1.57,.1),body1:_(i,16,1.5,.15),body2:_(i,14,1.43,.15),button:_(l,14,1.75,.4,Os),caption:_(i,12,1.66,.4),overline:_(i,12,2.66,1,Os),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tt(A({htmlFontSize:u,pxToRem:y,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},g),f,{clone:!1})}const Qh=.2,em=.14,tm=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Qh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${em})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tm})`].join(",")}const rm=["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)],nm=["duration","easing","delay"],om={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)"},am={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Es(e){return`${Math.round(e)}ms`}function sm(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function im(e){const t=A({},om,e.easing),r=A({},am,e.duration);return A({getAutoHeightDuration:sm,create:(o=["all"],a={})=>{const{duration:i=r.standard,easing:l=t.easeInOut,delay:c=0}=a,u=Ue(a,nm);if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",h=f=>!isNaN(parseFloat(f));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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(`
|
|
76
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:Es(i)} ${l} ${typeof c=="string"?c:Es(c)}`).join(",")}},e,{easing:t,duration:r})}const lm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},cm=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ea(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,i=Ue(e,cm);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Hr(18));const l=qh(n),c=an(e);let u=tt(c,{mixins:Ph(c.breakpoints,r),palette:l,shadows:rm.slice(),typography:Zh(l,a),transitions:im(o),zIndex:A({},lm)});if(u=tt(u,i),u=t.reduce((d,h)=>tt(d,h),u),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(f,b)=>{let y;for(y in f){const _=f[y];if(d.indexOf(y)!==-1&&Object.keys(_).length>0){if(process.env.NODE_ENV!=="production"){const g=sn("",y);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:_}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
77
|
+
`))}f[y]={}}}};Object.keys(u.components).forEach(f=>{const b=u.components[f].styleOverrides;b&&f.indexOf("Mui")===0&&h(b,f)})}return u.unstable_sxConfig=A({},nn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(h){return on({sx:h,theme:this})},u}const um=ea(),dm="$$material";function Pa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fm=e=>Pa(e)&&e!=="classes",At=hh({themeId:dm,defaultTheme:um,rootShouldForwardProp:fm});process.env.NODE_ENV!=="production"&&(m.node,m.object.isRequired);function Oa(e){return Xf(e)}const _r=oh({createStyledComponent:At("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Oa({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(_r.propTypes={children:m.node,component:m.elementType,direction:m.oneOfType([m.oneOf(["column-reverse","column","row-reverse","row"]),m.arrayOf(m.oneOf(["column-reverse","column","row-reverse","row"])),m.object]),divider:m.node,spacing:m.oneOfType([m.arrayOf(m.oneOfType([m.number,m.string])),m.number,m.object,m.string]),sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),useFlexGap:m.bool});const ta=en(He.observer(({color:e,label:t,getDisplayedValue:r,startJogging:n,stopJogging:o,disabled:a,...i})=>{Sr(()=>{const d=r(),h=l.current;h&&(h.textContent=d)});const l=Z.useRef(null);e=e||"#F14D42";function c(d){d.button===0&&n("-")}function u(d){d.button===0&&n("+")}return s.jsxs(_r,{height:"72px",direction:"row",...i,children:[s.jsx(L.Button,{onPointerDown:c,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"16px 0px 0px 16px",":hover":{color:"white",backgroundColor:e}},children:"-"}),s.jsxs(_r,{spacing:"6px",sx:{width:"184px",backgroundColor:e,alignItems:"center",justifyContent:"center",opacity:"0.9"},children:[s.jsx(_r,{height:"22px",direction:"row",alignItems:"center",justifyItems:"center",spacing:1,sx:{userSelect:"none",color:"white"},children:t}),s.jsx(L.Typography,{height:"22px",sx:{fontSize:"15px",color:"white"},ref:l,children:r()})]}),s.jsx(L.Button,{onPointerDown:u,onPointerUp:o,onPointerOut:o,disabled:a,sx:{width:"105px",backgroundColor:e,color:"white",alignContent:"center",fontSize:"37px",borderRadius:"0px 16px 16px 0px",":hover":{color:"white",backgroundColor:e}},children:"+"})]})}));var Ta={},ko={};function hm(e){return sn("MuiSvgIcon",e)}Qi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mm=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pm=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(r)}`]};return Ra(o,hm,n)},gm=At("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Oe(r.color)}`],t[`fontSize${Oe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,i,l,c,u,d,h,f,b,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?h:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),Vn=N.forwardRef(function(t,r){const n=Oa({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:h,viewBox:f="0 0 24 24"}=n,b=Ue(n,mm),y=N.isValidElement(o)&&o.type==="svg",_=A({},n,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:y}),g={};d||(g.viewBox=f);const v=pm(_);return s.jsxs(gm,A({as:l,className:gt(v.root,a),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},g,b,y&&o.props,{ownerState:_,children:[y?o.props.children:o,h?s.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(Vn.propTypes={children:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),m.string]),component:m.elementType,fontSize:m.oneOfType([m.oneOf(["inherit","large","medium","small"]),m.string]),htmlColor:m.string,inheritViewBox:m.bool,shapeRendering:m.string,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),titleAccess:m.string,viewBox:m.string});Vn.muiName="SvgIcon";function ym(e,t){function r(n,o){return s.jsx(Vn,A({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Vn.muiName,N.memo(N.forwardRef(r))}const _m={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
78
|
+
`)),Yi.configure(e)}},bm=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Oe,createChainedFunction:jf,createSvgIcon:ym,debounce:Cf,deprecatedPropType:Af,isMuiElement:Pf,ownerDocument:yr,ownerWindow:Of,requirePropFactory:Tf,setRef:nl,unstable_ClassNameGenerator:_m,unstable_useEnhancedEffect:va,unstable_useId:Mf,unsupportedProp:If,useControlled:ol,useEventCallback:Pn,useForkRef:Bn,useIsFocusVisible:al},Symbol.toStringTag,{value:"Module"})),xm=Ct(bm);var Ms;function ml(){return Ms||(Ms=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=xm}(ko)),ko}var Sm=lo;Object.defineProperty(Ta,"__esModule",{value:!0});var pl=Ta.default=void 0,vm=Sm(ml()),wm=s;pl=Ta.default=(0,vm.default)((0,wm.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");var Ea={},Rm=lo;Object.defineProperty(Ea,"__esModule",{value:!0});var gl=Ea.default=void 0,jm=Rm(ml()),Cm=s;gl=Ea.default=(0,jm.default)((0,Cm.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yl=typeof global=="object"&&global&&global.Object===Object&&global,Am=typeof self=="object"&&self&&self.Object===Object&&self,_t=yl||Am||Function("return this")(),$o=function(){return _t.Date.now()},Pm=/\s/;function Om(e){for(var t=e.length;t--&&Pm.test(e.charAt(t)););return t}var Tm=/^\s+/;function Em(e){return e&&e.slice(0,Om(e)+1).replace(Tm,"")}var Nt=_t.Symbol,_l=Object.prototype,Mm=_l.hasOwnProperty,Im=_l.toString,Ur=Nt?Nt.toStringTag:void 0;function Lm(e){var t=Mm.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Im.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var km=Object.prototype,$m=km.toString;function Nm(e){return $m.call(e)}var Fm="[object Null]",Dm="[object Undefined]",Is=Nt?Nt.toStringTag:void 0;function Zt(e){return e==null?e===void 0?Dm:Fm:Is&&Is in Object(e)?Lm(e):Nm(e)}function qt(e){return e!=null&&typeof e=="object"}var Um="[object Symbol]";function co(e){return typeof e=="symbol"||qt(e)&&Zt(e)==Um}var Ls=NaN,Bm=/^[-+]0x[0-9a-f]+$/i,Jm=/^0b[01]+$/i,Vm=/^0o[0-7]+$/i,Gm=parseInt;function ks(e){if(typeof e=="number")return e;if(co(e))return Ls;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Em(e);var r=Jm.test(e);return r||Vm.test(e)?Gm(e.slice(2),r?2:8):Bm.test(e)?Ls:+e}var zm="Expected a function",Wm=Math.max,Hm=Math.min;function Km(e,t,r){var n,o,a,i,l,c,u=0,d=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(zm);t=ks(t)||0,Kt(r)&&(d=!!r.leading,h="maxWait"in r,a=h?Wm(ks(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f);function b(P){var O=n,z=o;return n=o=void 0,u=P,i=e.apply(z,O),i}function y(P){return u=P,l=setTimeout(v,t),d?b(P):i}function _(P){var O=P-c,z=P-u,le=t-O;return h?Hm(le,a-z):le}function g(P){var O=P-c,z=P-u;return c===void 0||O>=t||O<0||h&&z>=a}function v(){var P=$o();if(g(P))return R(P);l=setTimeout(v,_(P))}function R(P){return l=void 0,f&&n?b(P):(n=o=void 0,i)}function C(){l!==void 0&&clearTimeout(l),u=0,n=c=o=l=void 0}function k(){return l===void 0?i:R($o())}function j(){var P=$o(),O=g(P);if(n=arguments,o=this,c=P,O){if(l===void 0)return y(c);if(h)return clearTimeout(l),l=setTimeout(v,t),b(c)}return l===void 0&&(l=setTimeout(v,t)),i}return j.cancel=C,j.flush=k,j}var qm="Expected a function";function Xm(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(qm);return Kt(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Km(e,t,{leading:n,maxWait:t,trailing:o})}const bl=en(He.observer(({startJogging:e,stopJogging:t,lowerLimitDegs:r,upperLimitDegs:n,getValueDegs:o,disabled:a,...i})=>{const{t:l}=Ft.useTranslation(),[c,u]=Z.useState(),d=He.useLocalObservable(()=>({activeJoggingDir:null,startJogging(v){this.activeJoggingDir=v,e(v)},stopJogging(){this.activeJoggingDir=null,t()}})),h=Xm(()=>{u(o())},50);Sr(h);function f(v){v.button===0&&d.startJogging("-")}function b(v){v.button===0&&d.startJogging("+")}function y(v){d.stopJogging()}function _(v){v.target===v.currentTarget&&d.stopJogging()}function g(v,R=1){if(v===void 0||isNaN(v))return"";const C=l("General.degree.variable",{amount:v.toFixed(R)});return v>0&&R===0?`+${C}`:C}return s.jsxs(_r,{height:"64px",width:"100%",maxWidth:"300px",direction:"row",...i,sx:{"& .MuiIconButton-root":{width:"52px",color:"white",alignContent:"center",backgroundColor:"#38445A","&:disabled":{opacity:.5,backgroundColor:"#38445A"},"& svg":{width:"42px",height:"42px"}}},children:[s.jsx(L.IconButton,{onPointerDown:f,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"16px 0px 0px 16px",backgroundColor:d.activeJoggingDir==="-"?"#495975":void 0},children:s.jsx(pl,{})}),s.jsxs(_r,{flexGrow:1,alignItems:"center",justifyContent:"center",sx:{borderStyle:"solid",borderLeftWidth:0,borderRightWidth:0,borderTopWidth:"4px",borderBottomWidth:"4px",backgroundColor:"#38445A",borderColor:"#38445A",paddingLeft:"20px",paddingRight:"20px",zIndex:1},children:[s.jsx(L.Typography,{sx:{fontSize:"15px",position:"relative",top:"5px",color:"white"},children:g(c)}),s.jsx(L.Slider,{disabled:!0,"aria-label":"Joint position",min:r,max:n,value:c||0,track:!1,sx:{"& .MuiSlider-mark":{display:"none"},"& .MuiSlider-thumb":{width:"5px",height:"10px",borderRadius:"2px"},"& .MuiSlider-markLabel":{top:"20px",fontSize:"12px",color:"white"},"& .MuiSlider-rail":{backgroundColor:"#1F283A",opacity:1}},marks:r!==void 0&&n!==void 0&&[{value:r,label:g(r,0)},{value:n,label:g(n,0)}]})]}),s.jsx(L.IconButton,{onPointerDown:b,onPointerUp:y,onPointerOut:_,disabled:a,sx:{borderRadius:"0px 16px 16px 0px",backgroundColor:d.activeJoggingDir==="+"?"#495975 !important":"#38445A"},children:s.jsx(gl,{})})]})})),Ym=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:24,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.5,d:"M18.5 12a6 6 0 1 0-6 6"}),N.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m16.5 11 2 2.5 2-2.5"})),Zm=Z.forwardRef(Ym),Qm=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),e0=Z.forwardRef(Qm),t0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:10,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M5.131.312a.9.9 0 0 1 0 1.272L3.07 3.645h12.44l-2.06-2.061A.9.9 0 0 1 14.72.313l3.596 3.596a.9.9 0 0 1 0 1.271l-3.596 3.597a.9.9 0 0 1-1.271-1.272l2.061-2.062H3.07L5.13 7.505A.9.9 0 0 1 3.86 8.777L.263 5.18a.9.9 0 0 1 0-1.271L3.86.312a.9.9 0 0 1 1.271 0",clipRule:"evenodd"})),r0=Z.forwardRef(t0),n0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:19,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M9.522 14.811A.899.899 0 1 0 8.25 13.54L6.19 15.601V3.16L8.25 5.221A.9.9 0 0 0 9.522 3.95L5.926.354a.9.9 0 0 0-1.272 0L1.058 3.95a.9.9 0 1 0 1.271 1.271L4.391 3.16v12.442L2.329 13.54a.899.899 0 1 0-1.271 1.271l3.596 3.597a.9.9 0 0 0 1.272 0z",clipRule:"evenodd"})),o0=Z.forwardRef(n0),a0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",viewBox:"0 0 23 22",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",d:"m21.71 16.262-1.09.346.66 2.071-2.923-1.461V9.857l-6.285-3.143V2.893L13.38 4.21l.812-.806-2.674-2.69-2.706 2.687.805.812L10.93 2.91v3.803L4.643 9.857v7.36l-2.914 1.458.657-2.067-1.09-.346-1.225 3.88 3.826 1.144.346-1.09-1.836-.583 2.874-1.436 6.22 3.109 6.217-3.11 2.877 1.439-1.831.581.345 1.09 3.82-1.143zM11.5 12.646l-4.94-2.47 4.94-2.47 4.94 2.47zm.572.993 5.143-2.572v6.083l-5.143 2.572zm-6.286-2.572 5.143 2.572v6.083L5.786 17.15z"})),s0=Z.forwardRef(a0),i0=({title:e,titleId:t,...r},n)=>N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,fill:"none",ref:n,"aria-labelledby":t,...r},e?N.createElement("title",{id:t},e):null,N.createElement("path",{fill:"currentColor",fillOpacity:.8,d:"m11.87 7.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95L4.21 8.8l-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72zm-.91-2.99.91-.91 2.6 2.6-.91.91zM8.71 14.37h3.74l-1.34-1.34-.04-.04h-2.5L5.32 9.74l4.59-4.59.92.92L8 8.9l5.33 5.33v1.48H8.7v-1.35z"})),l0=Z.forwardRef(i0),c0=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(n,o){(o==="coordsys"||o==="tool")&&e.setSelectedOrientation(o)}return s.jsxs(s.Fragment,{children:[s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-coord-select",children:"Coordinate Sys."}),s.jsx(L.Select,{labelId:"jogging-coord-select",value:e.selectedCoordSystemId,displayEmpty:!0,onChange:n=>{e.setSelectedCoordSystemId(n.target.value)},disabled:e.isLocked,children:e.coordSystems.map(n=>s.jsx(L.MenuItem,{value:n.coordinate_system,children:n.name||n.coordinate_system},n.coordinate_system))})]}),s.jsxs(L.Stack,{width:"50%",children:[s.jsx(L.InputLabel,{id:"jogging-tcp-select",children:"TCP"}),s.jsx(L.Select,{labelId:"jogging-tcp-select",value:e.selectedTcpId,onChange:n=>{e.setSelectedTcpId(n.target.value)},disabled:e.isLocked,children:e.tcps.map(n=>s.jsx(L.MenuItem,{value:n.id,children:n.id},n.id))})]})]}),s.jsxs(L.Stack,{direction:"row",alignItems:"center",spacing:2,sx:{padding:"8px 16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:[s.jsxs(L.Stack,{width:"35%",children:[s.jsx(L.InputLabel,{id:"orientation-select",children:t("Jogging.Cartesian.Orientation.lb")}),s.jsxs(L.ToggleButtonGroup,{value:e.selectedOrientation,onChange:r,exclusive:!0,"aria-labelledby":"orientation-select",disabled:e.isLocked,children:[s.jsx(L.ToggleButton,{value:"coordsys",children:s.jsx(s0,{})}),s.jsx(L.ToggleButton,{value:"tool",children:s.jsx(l0,{})})]})]}),s.jsxs(L.Stack,{width:"65%",children:[s.jsx(L.InputLabel,{id:"jogging-increment-select",children:"Increment"}),s.jsxs(L.Select,{labelId:"jogging-increment-select",value:e.selectedIncrementId,onChange:n=>{e.setSelectedIncrementId(n.target.value)},disabled:e.isLocked,children:[s.jsx(L.MenuItem,{value:"continuous",children:t("Jogging.Increment.Continuous.dd")},"continuous"),e.discreteIncrementOptions.map(n=>s.jsx(L.MenuItem,{value:n.id,children:e.currentMotionType==="translate"?`${n.mm}mm`:`${n.degrees}°`},n.id))]})]})]})]})});function u0(e,t,r=(n,o)=>n===o){return e.length===t.length&&e.every((n,o)=>r(n,t[o]))}const d0=2;function xl(e,t){return e-t}function $s(e,t){var r;const{index:n}=(r=e.reduce((o,a,i)=>{const l=Math.abs(t-a);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?r:{};return n}function _n(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 Gn(e,t,r){return(e-t)*100/(r-t)}function f0(e,t,r){return(r-t)*e+t}function h0(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 m0(e,t,r){const n=Math.round((e-r)/t)*t+r;return Number(n.toFixed(h0(t)))}function Ns({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(xl)}function bn({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=yr(e.current);if(!((n=e.current)!=null&&n.contains(a.activeElement))||Number(a==null||(o=a.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}r&&r(t)}function xn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?u0(e,t):!1}const p0={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}%`})}},g0=e=>e;let Sn;function Fs(){return Sn===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Sn=CSS.supports("touch-action","none"):Sn=!0),Sn}function y0(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:h,orientation:f="horizontal",rootRef:b,scale:y=g0,step:_=1,shiftStep:g=10,tabIndex:v,value:R}=e,C=N.useRef(),[k,j]=N.useState(-1),[P,O]=N.useState(-1),[z,le]=N.useState(!1),ue=N.useRef(0),[D,q]=ol({controlled:R,default:r??c,name:"Slider"}),G=d&&((T,I,F)=>{const W=T.nativeEvent||T,Y=new W.constructor(W.type,W);Object.defineProperty(Y,"target",{writable:!0,value:{value:I,name:u}}),d(Y,I,F)}),X=Array.isArray(D);let K=X?D.slice().sort(xl):[D];K=K.map(T=>T==null?c:hr(T,c,l));const we=i===!0&&_!==null?[...Array(Math.floor((l-c)/_)+1)].map((T,I)=>({value:c+_*I})):i||[],ce=we.map(T=>T.value),{isFocusVisibleRef:Q,onBlur:Ae,onFocus:Ie,ref:ot}=al(),[bt,Ke]=N.useState(-1),Re=N.useRef(),Tt=Bn(ot,Re),ct=Bn(b,Tt),qe=T=>I=>{var F;const W=Number(I.currentTarget.getAttribute("data-index"));Ie(I),Q.current===!0&&Ke(W),O(W),T==null||(F=T.onFocus)==null||F.call(T,I)},Be=T=>I=>{var F;Ae(I),Q.current===!1&&Ke(-1),O(-1),T==null||(F=T.onBlur)==null||F.call(T,I)},ut=(T,I)=>{const F=Number(T.currentTarget.getAttribute("data-index")),W=K[F],Y=ce.indexOf(W);let H=I;if(we&&_==null){const Ve=ce[ce.length-1];H>Ve?H=Ve:H<ce[0]?H=ce[0]:H=H<W?ce[Y-1]:ce[Y+1]}if(H=hr(H,c,l),X){o&&(H=hr(H,K[F-1]||-1/0,K[F+1]||1/0));const Ve=H;H=Ns({values:K,newValue:H,index:F});let Xe=F;o||(Xe=H.indexOf(Ve)),bn({sliderRef:Re,activeIndex:Xe})}q(H),Ke(F),G&&!xn(H,D)&&G(T,H,F),h&&h(T,H)},dt=T=>I=>{var F;if(_!==null){const W=Number(I.currentTarget.getAttribute("data-index")),Y=K[W];let H=null;(I.key==="ArrowLeft"||I.key==="ArrowDown")&&I.shiftKey||I.key==="PageDown"?H=Math.max(Y-g,c):((I.key==="ArrowRight"||I.key==="ArrowUp")&&I.shiftKey||I.key==="PageUp")&&(H=Math.min(Y+g,l)),H!==null&&(ut(I,H),I.preventDefault())}T==null||(F=T.onKeyDown)==null||F.call(T,I)};va(()=>{if(n&&Re.current.contains(document.activeElement)){var T;(T=document.activeElement)==null||T.blur()}},[n]),n&&k!==-1&&j(-1),n&&bt!==-1&&Ke(-1);const Ut=T=>I=>{var F;(F=T.onChange)==null||F.call(T,I),ut(I,I.target.valueAsNumber)},xt=N.useRef();let Je=f;a&&f==="horizontal"&&(Je+="-reverse");const E=({finger:T,move:I=!1})=>{const{current:F}=Re,{width:W,height:Y,bottom:H,left:Ve}=F.getBoundingClientRect();let Xe;Je.indexOf("vertical")===0?Xe=(H-T.y)/Y:Xe=(T.x-Ve)/W,Je.indexOf("-reverse")!==-1&&(Xe=1-Xe);let te;if(te=f0(Xe,c,l),_)te=m0(te,_,c);else{const It=$s(ce,te);te=ce[It]}te=hr(te,c,l);let $e=0;if(X){I?$e=xt.current:$e=$s(K,te),o&&(te=hr(te,K[$e-1]||-1/0,K[$e+1]||1/0));const It=te;te=Ns({values:K,newValue:te,index:$e}),o&&I||($e=te.indexOf(It),xt.current=$e)}return{newValue:te,activeIndex:$e}},ee=Pn(T=>{const I=_n(T,C);if(!I)return;if(ue.current+=1,T.type==="mousemove"&&T.buttons===0){he(T);return}const{newValue:F,activeIndex:W}=E({finger:I,move:!0});bn({sliderRef:Re,activeIndex:W,setActive:j}),q(F),!z&&ue.current>d0&&le(!0),G&&!xn(F,D)&&G(T,F,W)}),he=Pn(T=>{const I=_n(T,C);if(le(!1),!I)return;const{newValue:F}=E({finger:I,move:!0});j(-1),T.type==="touchend"&&O(-1),h&&h(T,F),C.current=void 0,ke()}),Le=Pn(T=>{if(n)return;Fs()||T.preventDefault();const I=T.changedTouches[0];I!=null&&(C.current=I.identifier);const F=_n(T,C);if(F!==!1){const{newValue:Y,activeIndex:H}=E({finger:F});bn({sliderRef:Re,activeIndex:H,setActive:j}),q(Y),G&&!xn(Y,D)&&G(T,Y,H)}ue.current=0;const W=yr(Re.current);W.addEventListener("touchmove",ee,{passive:!0}),W.addEventListener("touchend",he,{passive:!0})}),ke=N.useCallback(()=>{const T=yr(Re.current);T.removeEventListener("mousemove",ee),T.removeEventListener("mouseup",he),T.removeEventListener("touchmove",ee),T.removeEventListener("touchend",he)},[he,ee]);N.useEffect(()=>{const{current:T}=Re;return T.addEventListener("touchstart",Le,{passive:Fs()}),()=>{T.removeEventListener("touchstart",Le),ke()}},[ke,Le]),N.useEffect(()=>{n&&ke()},[n,ke]);const Et=T=>I=>{var F;if((F=T.onMouseDown)==null||F.call(T,I),n||I.defaultPrevented||I.button!==0)return;I.preventDefault();const W=_n(I,C);if(W!==!1){const{newValue:H,activeIndex:Ve}=E({finger:W});bn({sliderRef:Re,activeIndex:Ve,setActive:j}),q(H),G&&!xn(H,D)&&G(I,H,Ve)}ue.current=0;const Y=yr(Re.current);Y.addEventListener("mousemove",ee,{passive:!0}),Y.addEventListener("mouseup",he)},je=Gn(X?K[0]:c,c,l),Mt=Gn(K[K.length-1],c,l)-je,Bt=(T={})=>{const I=On(T),F={onMouseDown:Et(I||{})},W=A({},I,F);return A({},T,{ref:ct},W)},Ar=T=>I=>{var F;(F=T.onMouseOver)==null||F.call(T,I);const W=Number(I.currentTarget.getAttribute("data-index"));O(W)},Pr=T=>I=>{var F;(F=T.onMouseLeave)==null||F.call(T,I),O(-1)};return{active:k,axis:Je,axisProps:p0,dragging:z,focusedThumbIndex:bt,getHiddenInputProps:(T={})=>{var I;const F=On(T),W={onChange:Ut(F||{}),onFocus:qe(F||{}),onBlur:Be(F||{}),onKeyDown:dt(F||{})},Y=A({},F,W);return A({tabIndex:v,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":y(l),"aria-valuemin":y(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(I=e.step)!=null?I:void 0,disabled:n},T,Y,{style:A({},Bf,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(T={})=>{const I=On(T),F={onMouseOver:Ar(I||{}),onMouseLeave:Pr(I||{})};return A({},T,I,F)},marks:we,open:P,range:X,rootRef:ct,trackLeap:Mt,trackOffset:je,values:K,getThumbStyle:T=>({pointerEvents:k!==-1&&k!==T?"none":void 0})}}const _0=e=>!e||!Gr(e);function b0(e){return sn("MuiSlider",e)}const et=Qi("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"]),x0=e=>{const{open:t}=e;return{offset:gt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function Sl(e){const{children:t,className:r,value:n}=e,o=x0(e);return t?N.cloneElement(t,{className:gt(t.props.className)},s.jsxs(N.Fragment,{children:[t.props.children,s.jsx("span",{className:gt(o.offset,r),"aria-hidden":!0,children:s.jsx("span",{className:o.circle,children:s.jsx("span",{className:o.label,children:n})})})]})):null}process.env.NODE_ENV!=="production"&&(Sl.propTypes={children:m.element.isRequired,className:m.string,value:m.node});const S0=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Ds(e){return e}const v0=At("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Oe(r.color)}`],r.size!=="medium"&&t[`size${Oe(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),w0=At("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}}]}),R0=At("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r,track:"inverted"},style:A({},e.vars?{backgroundColor:e.vars.palette.Slider[`${r}Track`],borderColor:e.vars.palette.Slider[`${r}Track`]}:A({backgroundColor:Qo(e.palette[r].main,.62),borderColor:Qo(e.palette[r].main,.62)},e.applyStyles("dark",{backgroundColor:Zo(e.palette[r].main,.5)}),e.applyStyles("dark",{borderColor:Zo(e.palette[r].main,.5)})))}))]}}),j0=At("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Oe(r.color)}`],r.size!=="medium"&&t[`thumbSize${Oe(r.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${et.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(r=>{var n;return((n=e.vars)!=null?n:e).palette[r].main}).map(r=>({props:{color:r},style:{[`&:hover, &.${et.focusVisible}`]:A({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Rs(e.palette[r].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${et.active}`]:A({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[r].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Rs(e.palette[r].main,.16)}`})}}))]}}),C0=At(Sl,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>A({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%"},[`&.${et.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%"},[`&.${et.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"}}]})),A0=At("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Pa(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),P0=At("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Pa(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>A({},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}}]})),O0=e=>{const{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked",o==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",l&&`color${Oe(l)}`,c&&`size${Oe(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Oe(c)}`,l&&`thumbColor${Oe(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ra(u,b0,i)},T0=({children:e})=>e,vl=N.forwardRef(function(t,r){var n,o,a,i,l,c,u,d,h,f,b,y,_,g,v,R,C,k,j,P,O,z,le,ue;const D=Oa({props:t,name:"MuiSlider"}),q=Hf(),{"aria-label":G,"aria-valuetext":X,"aria-labelledby":K,component:we="span",components:ce={},componentsProps:Q={},color:Ae="primary",classes:Ie,className:ot,disableSwap:bt=!1,disabled:Ke=!1,getAriaLabel:Re,getAriaValueText:Tt,marks:ct=!1,max:qe=100,min:Be=0,orientation:ut="horizontal",shiftStep:dt=10,size:Ut="medium",step:xt=1,scale:Je=Ds,slotProps:E,slots:ee,track:he="normal",valueLabelDisplay:Le="off",valueLabelFormat:ke=Ds}=D,Et=Ue(D,S0),je=A({},D,{isRtl:q,max:qe,min:Be,classes:Ie,disabled:Ke,disableSwap:bt,orientation:ut,marks:ct,color:Ae,size:Ut,step:xt,shiftStep:dt,scale:Je,track:he,valueLabelDisplay:Le,valueLabelFormat:ke}),{axisProps:Mt,getRootProps:Bt,getHiddenInputProps:Ar,getThumbProps:Pr,open:Or,active:tr,axis:at,focusedThumbIndex:T,range:I,dragging:F,marks:W,values:Y,trackOffset:H,trackLeap:Ve,getThumbStyle:Xe}=y0(A({},je,{rootRef:r}));je.marked=W.length>0&&W.some($=>$.label),je.dragging=F,je.focusedThumbIndex=T;const te=O0(je),$e=(n=(o=ee==null?void 0:ee.root)!=null?o:ce.Root)!=null?n:v0,It=(a=(i=ee==null?void 0:ee.rail)!=null?i:ce.Rail)!=null?a:w0,rr=(l=(c=ee==null?void 0:ee.track)!=null?c:ce.Track)!=null?l:R0,Tr=(u=(d=ee==null?void 0:ee.thumb)!=null?d:ce.Thumb)!=null?u:j0,St=(h=(f=ee==null?void 0:ee.valueLabel)!=null?f:ce.ValueLabel)!=null?h:C0,Jt=(b=(y=ee==null?void 0:ee.mark)!=null?y:ce.Mark)!=null?b:A0,Vt=(_=(g=ee==null?void 0:ee.markLabel)!=null?g:ce.MarkLabel)!=null?_:P0,Er=(v=(R=ee==null?void 0:ee.input)!=null?R:ce.Input)!=null?v:"input",Mr=(C=E==null?void 0:E.root)!=null?C:Q.root,dn=(k=E==null?void 0:E.rail)!=null?k:Q.rail,Ir=(j=E==null?void 0:E.track)!=null?j:Q.track,nr=(P=E==null?void 0:E.thumb)!=null?P:Q.thumb,or=(O=E==null?void 0:E.valueLabel)!=null?O:Q.valueLabel,xo=(z=E==null?void 0:E.mark)!=null?z:Q.mark,So=(le=E==null?void 0:E.markLabel)!=null?le:Q.markLabel,fn=(ue=E==null?void 0:E.input)!=null?ue:Q.input,hn=Lt({elementType:$e,getSlotProps:Bt,externalSlotProps:Mr,externalForwardedProps:Et,additionalProps:A({},_0($e)&&{as:we}),ownerState:A({},je,Mr==null?void 0:Mr.ownerState),className:[te.root,ot]}),vo=Lt({elementType:It,externalSlotProps:dn,ownerState:je,className:te.rail}),wo=Lt({elementType:rr,externalSlotProps:Ir,additionalProps:{style:A({},Mt[at].offset(H),Mt[at].leap(Ve))},ownerState:A({},je,Ir==null?void 0:Ir.ownerState),className:te.track}),Lr=Lt({elementType:Tr,getSlotProps:Pr,externalSlotProps:nr,ownerState:A({},je,nr==null?void 0:nr.ownerState),className:te.thumb}),Ro=Lt({elementType:St,externalSlotProps:or,ownerState:A({},je,or==null?void 0:or.ownerState),className:te.valueLabel}),p=Lt({elementType:Jt,externalSlotProps:xo,ownerState:je,className:te.mark}),w=Lt({elementType:Vt,externalSlotProps:So,ownerState:je,className:te.markLabel}),M=Lt({elementType:Er,getSlotProps:Ar,externalSlotProps:fn,ownerState:je});return s.jsxs($e,A({},hn,{children:[s.jsx(It,A({},vo)),s.jsx(rr,A({},wo)),W.filter($=>$.value>=Be&&$.value<=qe).map(($,U)=>{const re=Gn($.value,Be,qe),V=Mt[at].offset(re);let B;return he===!1?B=Y.indexOf($.value)!==-1:B=he==="normal"&&(I?$.value>=Y[0]&&$.value<=Y[Y.length-1]:$.value<=Y[0])||he==="inverted"&&(I?$.value<=Y[0]||$.value>=Y[Y.length-1]:$.value>=Y[0]),s.jsxs(N.Fragment,{children:[s.jsx(Jt,A({"data-index":U},p,!Gr(Jt)&&{markActive:B},{style:A({},V,p.style),className:gt(p.className,B&&te.markActive)})),$.label!=null?s.jsx(Vt,A({"aria-hidden":!0,"data-index":U},w,!Gr(Vt)&&{markLabelActive:B},{style:A({},V,w.style),className:gt(te.markLabel,w.className,B&&te.markLabelActive),children:$.label})):null]},U)}),Y.map(($,U)=>{const re=Gn($,Be,qe),V=Mt[at].offset(re),B=Le==="off"?T0:St;return s.jsx(B,A({},!Gr(B)&&{valueLabelFormat:ke,valueLabelDisplay:Le,value:typeof ke=="function"?ke(Je($),U):ke,index:U,open:Or===U||tr===U||Le==="on",disabled:Ke},Ro,{children:s.jsx(Tr,A({"data-index":U},Lr,{className:gt(te.thumb,Lr.className,tr===U&&te.active,T===U&&te.focusVisible),style:A({},V,Xe(U),Lr.style),children:s.jsx(Er,A({"data-index":U,"aria-label":Re?Re(U):G,"aria-valuenow":Je($),"aria-labelledby":K,"aria-valuetext":Tt?Tt(Je($),U):X,value:Y[U]},M))}))}),U)})]}))});process.env.NODE_ENV!=="production"&&(vl.propTypes={"aria-label":gs(m.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":m.string,"aria-valuetext":gs(m.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:m.node,classes:m.object,className:m.string,color:m.oneOfType([m.oneOf(["primary","secondary","error","info","success","warning"]),m.string]),components:m.shape({Input:m.elementType,Mark:m.elementType,MarkLabel:m.elementType,Rail:m.elementType,Root:m.elementType,Thumb:m.elementType,Track:m.elementType,ValueLabel:m.elementType}),componentsProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),defaultValue:m.oneOfType([m.arrayOf(m.number),m.number]),disabled:m.bool,disableSwap:m.bool,getAriaLabel:m.func,getAriaValueText:m.func,marks:m.oneOfType([m.arrayOf(m.shape({label:m.node,value:m.number.isRequired})),m.bool]),max:m.number,min:m.number,name:m.string,onChange:m.func,onChangeCommitted:m.func,orientation:m.oneOf(["horizontal","vertical"]),scale:m.func,shiftStep:m.number,size:m.oneOfType([m.oneOf(["small","medium"]),m.string]),slotProps:m.shape({input:m.oneOfType([m.func,m.object]),mark:m.oneOfType([m.func,m.object]),markLabel:m.oneOfType([m.func,m.object]),rail:m.oneOfType([m.func,m.object]),root:m.oneOfType([m.func,m.object]),thumb:m.oneOfType([m.func,m.object]),track:m.oneOfType([m.func,m.object]),valueLabel:m.oneOfType([m.func,m.shape({children:m.element,className:m.string,open:m.bool,style:m.object,value:m.number,valueLabelDisplay:m.oneOf(["auto","off","on"])})])}),slots:m.shape({input:m.elementType,mark:m.elementType,markLabel:m.elementType,rail:m.elementType,root:m.elementType,thumb:m.elementType,track:m.elementType,valueLabel:m.elementType}),step:m.number,sx:m.oneOfType([m.arrayOf(m.oneOfType([m.func,m.object,m.bool])),m.func,m.object]),tabIndex:m.number,track:m.oneOf(["inverted","normal",!1]),value:m.oneOfType([m.arrayOf(m.number),m.number]),valueLabelDisplay:m.oneOf(["auto","off","on"]),valueLabelFormat:m.oneOfType([m.func,m.string])});var E0="[object Number]";function M0(e){return typeof e=="number"||qt(e)&&Zt(e)==E0}const wl=He.observer(e=>{const t=L.useTheme(),r=e.valueLabelFormat||(o=>`${o}`);function n(o,a){a===e.velocity||!M0(a)||e.onVelocityChange(a)}return s.jsxs(s.Fragment,{children:[s.jsx(L.Typography,{sx:{textAlign:"center",fontSize:"14px",opacity:.8,color:t.palette.text.primary},children:r(e.velocity)}),s.jsx(vl,{value:e.velocity,onChange:n,min:e.min,max:e.max,"aria-labelledby":"input-slider",disabled:e.disabled,sx:{"& .MuiSlider-valueLabelOpen":{zIndex:100,backgroundColor:"transparent",top:"0px"}}})]})}),Rl=He.observer(({store:e})=>{const{t}=Ft.useTranslation(),r=He.useLocalObservable(()=>({get valueLabelFormat(){return e.currentMotionType==="translate"?n=>`v=${t("Jogging.Cartesian.Translation.velocityMmPerSec.lb",{amount:n})}`:n=>`v=${t("Jogging.Cartesian.Rotation.velocityDegPerSec.lb",{amount:n})}`}}));return s.jsx(L.Stack,{sx:{margin:"0px 20px",marginTop:"24px",marginBottom:"24px"},children:s.jsx(L.Stack,{sx:{width:"380px",maxWidth:"90%",margin:"auto"},children:s.jsx(wl,{velocity:e.velocityInCurrentUnits,min:e.minVelocityInCurrentUnits,max:e.maxVelocityInCurrentUnits,onVelocityChange:e.setVelocityFromSlider,disabled:e.isLocked,valueLabelFormat:r.valueLabelFormat})})})}),jl=Z.forwardRef(({label:e,value:t},r)=>s.jsxs(s.Fragment,{children:[e&&s.jsx(L.InputLabel,{children:e}),s.jsx(L.Chip,{ref:r,sx:{fontSize:"14px",opacity:.8,marginTop:"4px !important"},value:t})]})),I0=He.observer(({store:e})=>{const t=Z.useRef(null);function r(){const n=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose;return n?Rt.poseToWandelscriptString(n):""}return Sr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"8px 16px",paddingTop:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(jl,{label:"Pose",value:r(),ref:t})})});function L0(){this.__data__=[],this.size=0}function Cl(e,t){return e===t||e!==e&&t!==t}function uo(e,t){for(var r=e.length;r--;)if(Cl(e[r][0],t))return r;return-1}var k0=Array.prototype,$0=k0.splice;function N0(e){var t=this.__data__,r=uo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():$0.call(t,r,1),--this.size,!0}function F0(e){var t=this.__data__,r=uo(t,e);return r<0?void 0:t[r][1]}function D0(e){return uo(this.__data__,e)>-1}function U0(e,t){var r=this.__data__,n=uo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Pt(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])}}Pt.prototype.clear=L0;Pt.prototype.delete=N0;Pt.prototype.get=F0;Pt.prototype.has=D0;Pt.prototype.set=U0;function B0(){this.__data__=new Pt,this.size=0}function J0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function V0(e){return this.__data__.get(e)}function G0(e){return this.__data__.has(e)}var z0="[object AsyncFunction]",W0="[object Function]",H0="[object GeneratorFunction]",K0="[object Proxy]";function Al(e){if(!Kt(e))return!1;var t=Zt(e);return t==W0||t==H0||t==z0||t==K0}var No=_t["__core-js_shared__"],Us=function(){var e=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function q0(e){return!!Us&&Us in e}var X0=Function.prototype,Y0=X0.toString;function Qt(e){if(e!=null){try{return Y0.call(e)}catch{}try{return e+""}catch{}}return""}var Z0=/[\\^$.*+?()[\]{}|]/g,Q0=/^\[object .+?Constructor\]$/,ep=Function.prototype,tp=Object.prototype,rp=ep.toString,np=tp.hasOwnProperty,op=RegExp("^"+rp.call(np).replace(Z0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ap(e){if(!Kt(e)||q0(e))return!1;var t=Al(e)?op:Q0;return t.test(Qt(e))}function sp(e,t){return e==null?void 0:e[t]}function er(e,t){var r=sp(e,t);return ap(r)?r:void 0}var Yr=er(_t,"Map"),Zr=er(Object,"create");function ip(){this.__data__=Zr?Zr(null):{},this.size=0}function lp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cp="__lodash_hash_undefined__",up=Object.prototype,dp=up.hasOwnProperty;function fp(e){var t=this.__data__;if(Zr){var r=t[e];return r===cp?void 0:r}return dp.call(t,e)?t[e]:void 0}var hp=Object.prototype,mp=hp.hasOwnProperty;function pp(e){var t=this.__data__;return Zr?t[e]!==void 0:mp.call(t,e)}var gp="__lodash_hash_undefined__";function yp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Zr&&t===void 0?gp:t,this}function Xt(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])}}Xt.prototype.clear=ip;Xt.prototype.delete=lp;Xt.prototype.get=fp;Xt.prototype.has=pp;Xt.prototype.set=yp;function _p(){this.size=0,this.__data__={hash:new Xt,map:new(Yr||Pt),string:new Xt}}function bp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function fo(e,t){var r=e.__data__;return bp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xp(e){var t=fo(this,e).delete(e);return this.size-=t?1:0,t}function Sp(e){return fo(this,e).get(e)}function vp(e){return fo(this,e).has(e)}function wp(e,t){var r=fo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ot(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])}}Ot.prototype.clear=_p;Ot.prototype.delete=xp;Ot.prototype.get=Sp;Ot.prototype.has=vp;Ot.prototype.set=wp;var Rp=200;function jp(e,t){var r=this.__data__;if(r instanceof Pt){var n=r.__data__;if(!Yr||n.length<Rp-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ot(n)}return r.set(e,t),this.size=r.size,this}function jt(e){var t=this.__data__=new Pt(e);this.size=t.size}jt.prototype.clear=B0;jt.prototype.delete=J0;jt.prototype.get=V0;jt.prototype.has=G0;jt.prototype.set=jp;var Cp="__lodash_hash_undefined__";function Ap(e){return this.__data__.set(e,Cp),this}function Pp(e){return this.__data__.has(e)}function zn(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ot;++t<r;)this.add(e[t])}zn.prototype.add=zn.prototype.push=Ap;zn.prototype.has=Pp;function Op(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 Tp(e,t){return e.has(t)}var Ep=1,Mp=2;function Pl(e,t,r,n,o,a){var i=r&Ep,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,b=r&Mp?new zn:void 0;for(a.set(e,t),a.set(t,e);++h<l;){var y=e[h],_=t[h];if(n)var g=i?n(_,y,h,t,e,a):n(y,_,h,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(b){if(!Op(t,function(v,R){if(!Tp(b,R)&&(y===v||o(y,v,r,n,a)))return b.push(R)})){f=!1;break}}else if(!(y===_||o(y,_,r,n,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Bs=_t.Uint8Array;function Ip(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Lp(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var kp=1,$p=2,Np="[object Boolean]",Fp="[object Date]",Dp="[object Error]",Up="[object Map]",Bp="[object Number]",Jp="[object RegExp]",Vp="[object Set]",Gp="[object String]",zp="[object Symbol]",Wp="[object ArrayBuffer]",Hp="[object DataView]",Js=Nt?Nt.prototype:void 0,Fo=Js?Js.valueOf:void 0;function Kp(e,t,r,n,o,a,i){switch(r){case Hp:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wp:return!(e.byteLength!=t.byteLength||!a(new Bs(e),new Bs(t)));case Np:case Fp:case Bp:return Cl(+e,+t);case Dp:return e.name==t.name&&e.message==t.message;case Jp:case Gp:return e==t+"";case Up:var l=Ip;case Vp:var c=n&kp;if(l||(l=Lp),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=$p,i.set(e,t);var d=Pl(l(e),l(t),n,o,a,i);return i.delete(e),d;case zp:if(Fo)return Fo.call(e)==Fo.call(t)}return!1}function qp(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var yt=Array.isArray;function Xp(e,t,r){var n=t(e);return yt(e)?n:qp(n,r(e))}function Yp(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}function Zp(){return[]}var Qp=Object.prototype,eg=Qp.propertyIsEnumerable,Vs=Object.getOwnPropertySymbols,tg=Vs?function(e){return e==null?[]:(e=Object(e),Yp(Vs(e),function(t){return eg.call(e,t)}))}:Zp;function rg(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ng="[object Arguments]";function Gs(e){return qt(e)&&Zt(e)==ng}var Ol=Object.prototype,og=Ol.hasOwnProperty,ag=Ol.propertyIsEnumerable,Tl=Gs(function(){return arguments}())?Gs:function(e){return qt(e)&&og.call(e,"callee")&&!ag.call(e,"callee")};function sg(){return!1}var El=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zs=El&&typeof module=="object"&&module&&!module.nodeType&&module,ig=zs&&zs.exports===El,Ws=ig?_t.Buffer:void 0,lg=Ws?Ws.isBuffer:void 0,ra=lg||sg,cg=9007199254740991,ug=/^(?:0|[1-9]\d*)$/;function Ml(e,t){var r=typeof e;return t=t??cg,!!t&&(r=="number"||r!="symbol"&&ug.test(e))&&e>-1&&e%1==0&&e<t}var dg=9007199254740991;function Ma(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dg}var fg="[object Arguments]",hg="[object Array]",mg="[object Boolean]",pg="[object Date]",gg="[object Error]",yg="[object Function]",_g="[object Map]",bg="[object Number]",xg="[object Object]",Sg="[object RegExp]",vg="[object Set]",wg="[object String]",Rg="[object WeakMap]",jg="[object ArrayBuffer]",Cg="[object DataView]",Ag="[object Float32Array]",Pg="[object Float64Array]",Og="[object Int8Array]",Tg="[object Int16Array]",Eg="[object Int32Array]",Mg="[object Uint8Array]",Ig="[object Uint8ClampedArray]",Lg="[object Uint16Array]",kg="[object Uint32Array]",de={};de[Ag]=de[Pg]=de[Og]=de[Tg]=de[Eg]=de[Mg]=de[Ig]=de[Lg]=de[kg]=!0;de[fg]=de[hg]=de[jg]=de[mg]=de[Cg]=de[pg]=de[gg]=de[yg]=de[_g]=de[bg]=de[xg]=de[Sg]=de[vg]=de[wg]=de[Rg]=!1;function $g(e){return qt(e)&&Ma(e.length)&&!!de[Zt(e)]}function Ng(e){return function(t){return e(t)}}var Il=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zr=Il&&typeof module=="object"&&module&&!module.nodeType&&module,Fg=zr&&zr.exports===Il,Do=Fg&&yl.process,Hs=function(){try{var e=zr&&zr.require&&zr.require("util").types;return e||Do&&Do.binding&&Do.binding("util")}catch{}}(),Ks=Hs&&Hs.isTypedArray,Ll=Ks?Ng(Ks):$g,Dg=Object.prototype,Ug=Dg.hasOwnProperty;function Bg(e,t){var r=yt(e),n=!r&&Tl(e),o=!r&&!n&&ra(e),a=!r&&!n&&!o&&Ll(e),i=r||n||o||a,l=i?rg(e.length,String):[],c=l.length;for(var u in e)Ug.call(e,u)&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ml(u,c)))&&l.push(u);return l}var Jg=Object.prototype;function Vg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Jg;return e===r}function Gg(e,t){return function(r){return e(t(r))}}var zg=Gg(Object.keys,Object),Wg=Object.prototype,Hg=Wg.hasOwnProperty;function Kg(e){if(!Vg(e))return zg(e);var t=[];for(var r in Object(e))Hg.call(e,r)&&r!="constructor"&&t.push(r);return t}function kl(e){return e!=null&&Ma(e.length)&&!Al(e)}function Ia(e){return kl(e)?Bg(e):Kg(e)}function qs(e){return Xp(e,Ia,tg)}var qg=1,Xg=Object.prototype,Yg=Xg.hasOwnProperty;function Zg(e,t,r,n,o,a){var i=r&qg,l=qs(e),c=l.length,u=qs(t),d=u.length;if(c!=d&&!i)return!1;for(var h=c;h--;){var f=l[h];if(!(i?f in t:Yg.call(t,f)))return!1}var b=a.get(e),y=a.get(t);if(b&&y)return b==t&&y==e;var _=!0;a.set(e,t),a.set(t,e);for(var g=i;++h<c;){f=l[h];var v=e[f],R=t[f];if(n)var C=i?n(R,v,f,t,e,a):n(v,R,f,e,t,a);if(!(C===void 0?v===R||o(v,R,r,n,a):C)){_=!1;break}g||(g=f=="constructor")}if(_&&!g){var k=e.constructor,j=t.constructor;k!=j&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof j=="function"&&j instanceof j)&&(_=!1)}return a.delete(e),a.delete(t),_}var na=er(_t,"DataView"),oa=er(_t,"Promise"),aa=er(_t,"Set"),sa=er(_t,"WeakMap"),Xs="[object Map]",Qg="[object Object]",Ys="[object Promise]",Zs="[object Set]",Qs="[object WeakMap]",ei="[object DataView]",ey=Qt(na),ty=Qt(Yr),ry=Qt(oa),ny=Qt(aa),oy=Qt(sa),$t=Zt;(na&&$t(new na(new ArrayBuffer(1)))!=ei||Yr&&$t(new Yr)!=Xs||oa&&$t(oa.resolve())!=Ys||aa&&$t(new aa)!=Zs||sa&&$t(new sa)!=Qs)&&($t=function(e){var t=Zt(e),r=t==Qg?e.constructor:void 0,n=r?Qt(r):"";if(n)switch(n){case ey:return ei;case ty:return Xs;case ry:return Ys;case ny:return Zs;case oy:return Qs}return t});var ay=1,ti="[object Arguments]",ri="[object Array]",vn="[object Object]",sy=Object.prototype,ni=sy.hasOwnProperty;function iy(e,t,r,n,o,a){var i=yt(e),l=yt(t),c=i?ri:$t(e),u=l?ri:$t(t);c=c==ti?vn:c,u=u==ti?vn:u;var d=c==vn,h=u==vn,f=c==u;if(f&&ra(e)){if(!ra(t))return!1;i=!0,d=!1}if(f&&!d)return a||(a=new jt),i||Ll(e)?Pl(e,t,r,n,o,a):Kp(e,t,c,r,n,o,a);if(!(r&ay)){var b=d&&ni.call(e,"__wrapped__"),y=h&&ni.call(t,"__wrapped__");if(b||y){var _=b?e.value():e,g=y?t.value():t;return a||(a=new jt),o(_,g,r,n,a)}}return f?(a||(a=new jt),Zg(e,t,r,n,o,a)):!1}function ho(e,t,r,n,o){return e===t?!0:e==null||t==null||!qt(e)&&!qt(t)?e!==e&&t!==t:iy(e,t,r,n,ho,o)}function ly(e,t){return ho(e,t)}const cy=({store:e})=>{const{t}=Ft.useTranslation(),[r,n]=Z.useState(e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached);Sr(()=>{const a=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_limit_reached.limit_reached;ly(r,a)||n(a)});const o=[];return r.forEach((a,i)=>{a&&o.push(i)}),o.length?s.jsx(L.Typography,{color:"error",sx:{padding:"1rem",textAlign:"center"},children:t("Jogging.JointLimitsReached.lb",{jointNumbers:o.map(a=>a+1).join(", ")})}):null},uy=He.observer(({store:e})=>{const{t}=Ft.useTranslation();function r(h,f){(f==="translate"||f==="rotate")&&e.setSelectedCartesianMotionType(f)}Ti(()=>[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}),Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",o),()=>{window.removeEventListener("blur",o)}),[]);async function n(){e.jogger.setJoggingMode(e.selectedDiscreteIncrement?"increment":"cartesian",{tcpId:e.selectedTcpId,coordSystemId:e.selectedCoordSystemId})}async function o(){e.jogger.setJoggingMode("increment")}async function a(h,f){const b=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose,y=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;b&&await e.withMotionLock(async()=>{await e.jogger.runIncrementalCartesianMotion({currentTcpPose:b,currentJoints:y,coordSystemId:e.selectedCoordSystemId,velocityInRelevantUnits:e.velocityInCurrentUnits,axis:h.axis,direction:h.direction,motion:e.selectedCartesianMotionType==="translate"?{type:"translate",distanceMm:f.mm}:{type:"rotate",distanceRads:Rt.degreesToRadians(f.degrees)}})})}async function i(h){if(!e.isLocked){if(n(),e.selectedDiscreteIncrement)return a(h,e.selectedDiscreteIncrement);h.motionType==="translate"?await e.jogger.startTCPTranslation({axis:h.axis,direction:h.direction,velocityMmPerSec:e.translationVelocityMmPerSec}):await e.jogger.startTCPRotation({axis:h.axis,direction:h.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}}async function l(){e.isLocked||e.selectedDiscreteIncrement||await e.jogger.stop()}const c=[{id:"x",color:"#F14D42",icon:s.jsx(e0,{})},{id:"y",color:"#42A705",icon:s.jsx(r0,{})},{id:"z",color:"#0075FF",icon:s.jsx(o0,{})}];function u(h){return t("General.mm.variable",{amount:h.toFixed(1)})}function d(h){return t("General.degree.variable",{amount:Rt.radiansToDegrees(h).toFixed(1)})}return s.jsxs(L.Stack,{onMouseEnter:n,onMouseLeave:o,children:[s.jsx(I0,{store:e}),s.jsx(c0,{store:e}),s.jsxs(L.Stack,{width:"80%",maxWidth:"296px",margin:"auto",marginTop:"16px",children:[s.jsxs(L.ToggleButtonGroup,{value:e.selectedCartesianMotionType,onChange:r,exclusive:!0,"aria-label":t("Jogging.Cartesian.MotionType.lb"),children:[s.jsx(L.ToggleButton,{value:"translate",children:t("Jogging.Cartesian.Translation.bt")}),s.jsx(L.ToggleButton,{value:"rotate",children:t("Jogging.Cartesian.Rotation.bt")})]}),e.selectedCartesianMotionType==="translate"&&c.map(h=>s.jsx(ta,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[h.icon,s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f;return u(((f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.position[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"translate",direction:f}),stopJogging:l},h.id)),e.selectedCartesianMotionType==="rotate"&&c.map(h=>s.jsx(ta,{color:h.color,disabled:e.isLocked,sx:{marginTop:"12px"},label:s.jsxs(s.Fragment,{children:[s.jsx(Zm,{}),s.jsx(L.Typography,{sx:{fontSize:"24px",color:"white"},children:h.id.toUpperCase()})]}),getDisplayedValue:()=>{var f,b;return d(((b=(f=e.jogger.motionStream.rapidlyChangingMotionState.tcp_pose)==null?void 0:f.orientation)==null?void 0:b[h.id])||0)},startJogging:f=>i({axis:h.id,motionType:"rotate",direction:f}),stopJogging:l},h.id))]}),s.jsx(Rl,{store:e}),s.jsx(cy,{store:e})]})}),dy=He.observer(({store:e})=>{const t=Z.useRef(null);Ft.useTranslation();function r(){const{joints:n}=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position;return`{${n.map(o=>parseFloat(o.toFixed(4))).join(", ")}}`}return Sr(()=>{t.current&&(t.current.textContent=r())}),s.jsx(L.Stack,{alignItems:"left",spacing:2,sx:{padding:"16px","& label":{opacity:.7,fontSize:"12px",marginBottom:"4px"}},children:s.jsx(jl,{label:"Pose",value:r(),ref:t})})}),fy=He.observer(({store:e})=>{Z.useEffect(()=>(e.jogger.setJoggingMode("increment"),window.addEventListener("blur",r),()=>{window.removeEventListener("blur",r)}),[]);async function t(){e.jogger.setJoggingMode("joint")}async function r(){e.jogger.setJoggingMode("increment")}async function n(a){await e.jogger.startJointRotation({joint:a.joint,direction:a.direction,velocityRadsPerSec:e.rotationVelocityRadsPerSec})}async function o(){await e.jogger.stop()}return s.jsxs(L.Stack,{onMouseEnter:t,onMouseLeave:r,children:[s.jsx(dy,{store:e}),s.jsx(L.Stack,{children:e.jogger.motionStream.joints.map(a=>{var u;const i=(u=e.motionGroupSpec.mechanical_joint_limits)==null?void 0:u[a.index],l=(i==null?void 0:i.lower_limit)!==void 0?Rt.radiansToDegrees(i.lower_limit):void 0,c=(i==null?void 0:i.upper_limit)!==void 0?Rt.radiansToDegrees(i.upper_limit):void 0;return s.jsxs(L.Stack,{direction:"row",alignItems:"center",gap:2,marginTop:"0.8rem",children:[s.jsx(L.Typography,{sx:{flexGrow:1,textAlign:"right"},children:`J${a.index+1}`}),s.jsx(bl,{disabled:e.isLocked,lowerLimitDegs:l,upperLimitDegs:c,getValueDegs:()=>{const d=e.jogger.motionStream.rapidlyChangingMotionState.state.joint_position.joints[a.index];return d!==void 0?Rt.radiansToDegrees(d):void 0},startJogging:d=>n({joint:a.index,direction:d}),stopJogging:o},a.index),s.jsx(L.Typography,{sx:{flexGrow:1}})]},`joint-${a.index}`)})}),s.jsx(Rl,{store:e})]})});var oi=function(){try{var e=er(Object,"defineProperty");return e({},"",{}),e}catch{}}();function hy(e,t,r){t=="__proto__"&&oi?oi(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function my(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}function py(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),l=i.length;l--;){var c=i[++o];if(r(a[c],c,a)===!1)break}return t}}var gy=py();function yy(e,t){return e&&gy(e,t,Ia)}function _y(e,t){return function(r,n){if(r==null)return r;if(!kl(r))return e(r,n);for(var o=r.length,a=-1,i=Object(r);++a<o&&n(i[a],a,i)!==!1;);return r}}var by=_y(yy);function xy(e,t,r,n){return by(e,function(o,a,i){t(n,o,r(o),i)}),n}var Sy=1,vy=2;function wy(e,t,r,n){var o=r.length,a=o;if(e==null)return!a;for(e=Object(e);o--;){var i=r[o];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++o<a;){i=r[o];var l=i[0],c=e[l],u=i[1];if(i[2]){if(c===void 0&&!(l in e))return!1}else{var d=new jt,h;if(!(h===void 0?ho(u,c,Sy|vy,n,d):h))return!1}}return!0}function $l(e){return e===e&&!Kt(e)}function Ry(e){for(var t=Ia(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,$l(o)]}return t}function Nl(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function jy(e){var t=Ry(e);return t.length==1&&t[0][2]?Nl(t[0][0],t[0][1]):function(r){return r===e||wy(r,e,t)}}var Cy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ay=/^\w*$/;function La(e,t){if(yt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||co(e)?!0:Ay.test(e)||!Cy.test(e)||t!=null&&e in Object(t)}var Py="Expected a function";function ka(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Py);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(ka.Cache||Ot),r}ka.Cache=Ot;var Oy=500;function Ty(e){var t=ka(e,function(n){return r.size===Oy&&r.clear(),n}),r=t.cache;return t}var Ey=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,My=/\\(\\)?/g,Iy=Ty(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ey,function(r,n,o,a){t.push(o?a.replace(My,"$1"):n||r)}),t});function Ly(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 ky=1/0,ai=Nt?Nt.prototype:void 0,si=ai?ai.toString:void 0;function Fl(e){if(typeof e=="string")return e;if(yt(e))return Ly(e,Fl)+"";if(co(e))return si?si.call(e):"";var t=e+"";return t=="0"&&1/e==-ky?"-0":t}function Dl(e){return e==null?"":Fl(e)}function Ul(e,t){return yt(e)?e:La(e,t)?[e]:Iy(Dl(e))}var $y=1/0;function mo(e){if(typeof e=="string"||co(e))return e;var t=e+"";return t=="0"&&1/e==-$y?"-0":t}function Bl(e,t){t=Ul(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[mo(t[r++])];return r&&r==n?e:void 0}function Ny(e,t,r){var n=e==null?void 0:Bl(e,t);return n===void 0?r:n}function Fy(e,t){return e!=null&&t in Object(e)}function Dy(e,t,r){t=Ul(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=mo(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&Ma(o)&&Ml(i,o)&&(yt(e)||Tl(e)))}function Uy(e,t){return e!=null&&Dy(e,t,Fy)}var By=1,Jy=2;function Vy(e,t){return La(e)&&$l(t)?Nl(mo(e),t):function(r){var n=Ny(r,e);return n===void 0&&n===t?Uy(r,e):ho(t,n,By|Jy)}}function Gy(e){return e}function zy(e){return function(t){return t==null?void 0:t[e]}}function Wy(e){return function(t){return Bl(t,e)}}function Hy(e){return La(e)?zy(mo(e)):Wy(e)}function Ky(e){return typeof e=="function"?e:e==null?Gy:typeof e=="object"?yt(e)?Vy(e[0],e[1]):jy(e):Hy(e)}function qy(e,t){return function(r,n){var o=yt(r)?my:xy,a={};return o(r,e,Ky(n),a)}}var wn=qy(function(e,t,r){hy(e,r,t)}),Xy=0;function Yy(e){var t=++Xy;return Dl(e)+t}const ia=[{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}],Zy=[{id:"continuous"},...ia];class $a{constructor(t,r,n,o){var a,i;this.jogger=t,this.motionGroupSpec=r,this.coordSystems=n,this.tcps=o,this.selectedTabId="cartesian",this.locks=new Set,this.selectedCoordSystemId="world",this.selectedTcpId="",this.selectedOrientation="coordsys",this.selectedIncrementId="continuous",this.selectedCartesianMotionType="translate",this.incrementJoggingInProgress=!1,this.translationVelocityMmPerSec=10,this.rotationVelocityDegPerSec=1,this.minTranslationVelocityMmPerSec=5,this.maxTranslationVelocityMmPerSec=250,this.minRotationVelocityDegPerSec=1,this.maxRotationVelocityDegPerSec=60,this.disposers=[];for(const l of n)if(l.coordinate_system===""){l.coordinate_system="world";break}this.selectedCoordSystemId=((a=n[0])==null?void 0:a.coordinate_system)||"world",this.selectedTcpId=((i=o[0])==null?void 0:i.id)||"",br.makeAutoObservable(this,{},{autoBind:!0}),this.loadFromLocalStorage(),this.disposers.push(br.autorun(()=>this.saveToLocalStorage())),window.joggingStore=this}static async loadFor(t){const{nova:r}=t,[n,{coordinatesystems:o},{tcps:a}]=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 $a(t,n,o||[],a||[])}dispose(){for(const t of this.disposers)t();this.jogger.dispose()}loadFromLocalStorage(){const t=Rt.tryParseJson(localStorage.getItem("joggingToolStore"));t&&(this.tabsById[t.selectedTabId]&&(this.selectedTabId=t.selectedTabId),this.coordSystemsById[t.selectedCoordSystemId]&&(this.selectedCoordSystemId=t.selectedCoordSystemId),this.tcpsById[t.selectedTcpId]&&(this.selectedTcpId=t.selectedTcpId),this.incrementOptionsById[t.selectedIncrementId]&&(this.selectedIncrementId=t.selectedIncrementId),["translate","rotate"].includes(t.selectedCartesianMotionType)&&(this.selectedCartesianMotionType=t.selectedCartesianMotionType),["coordsys","tool"].includes(t.selectedOrientation)&&(this.selectedOrientation=t.selectedOrientation))}saveToLocalStorage(){localStorage.setItem("joggingToolStore",JSON.stringify(this.localStorageSave))}get isLocked(){return this.locks.size>0}get localStorageSave(){return{selectedTabId:this.selectedTabId,selectedCoordSystemId:this.selectedCoordSystemId,selectedTcpId:this.selectedTcpId,selectedOrientation:this.selectedOrientation,selectedIncrementId:this.selectedIncrementId,selectedCartesianMotionType:this.selectedCartesianMotionType}}get tabs(){return[{id:"cartesian",label:"Cartesian"},{id:"joint",label:"Joint"}]}get incrementOptions(){return Zy}get discreteIncrementOptions(){return ia}get incrementOptionsById(){return wn(this.incrementOptions,t=>t.id)}get tabsById(){return wn(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 wn(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 wn(this.tcps,t=>t.id)}get selectedDiscreteIncrement(){return ia.find(t=>t.id===this.selectedIncrementId)}get rotationVelocityRadsPerSec(){return this.rotationVelocityDegPerSec*Math.PI/180}get velocityInCurrentUnits(){return this.currentMotionType==="translate"?this.translationVelocityMmPerSec:this.rotationVelocityDegPerSec}get minVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.minTranslationVelocityMmPerSec:this.minRotationVelocityDegPerSec}get maxVelocityInCurrentUnits(){return this.currentMotionType==="translate"?this.maxTranslationVelocityMmPerSec:this.maxRotationVelocityDegPerSec}get currentMotionType(){return this.selectedTabId==="cartesian"&&this.selectedCartesianMotionType==="translate"?"translate":"rotate"}onTabChange(t,r){const n=this.tabs[r]||this.tabs[0];this.selectedTabId=n.id}setSelectedCoordSystemId(t){this.selectedCoordSystemId=t}setSelectedTcpId(t){this.selectedTcpId=t}setSelectedOrientation(t){this.selectedOrientation=t}setSelectedIncrementId(t){this.selectedIncrementId=t}setIncrementJoggingInProgress(t){this.incrementJoggingInProgress=t}setVelocityFromSlider(t){this.currentMotionType==="translate"?this.translationVelocityMmPerSec=t:this.rotationVelocityDegPerSec=t}setSelectedCartesianMotionType(t){this.selectedCartesianMotionType=t}async withMotionLock(t){const r=Yy();this.locks.add(r);try{return await t()}finally{this.locks.delete(r)}}}function Jl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qy}=Object.prototype,{getPrototypeOf:Na}=Object,po=(e=>t=>{const r=Qy.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),lt=e=>(e=e.toLowerCase(),t=>po(t)===e),go=e=>t=>typeof t===e,{isArray:jr}=Array,Qr=go("undefined");function e1(e){return e!==null&&!Qr(e)&&e.constructor!==null&&!Qr(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vl=lt("ArrayBuffer");function t1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vl(e.buffer),t}const r1=go("string"),We=go("function"),Gl=go("number"),yo=e=>e!==null&&typeof e=="object",n1=e=>e===!0||e===!1,Mn=e=>{if(po(e)!=="object")return!1;const t=Na(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},o1=lt("Date"),a1=lt("File"),s1=lt("Blob"),i1=lt("FileList"),l1=e=>yo(e)&&We(e.pipe),c1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=po(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},u1=lt("URLSearchParams"),[d1,f1,h1,m1]=["ReadableStream","Request","Response","Headers"].map(lt),p1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cn(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),jr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const a=r?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(n=0;n<i;n++)l=a[n],t.call(null,e[l],l,e)}}function zl(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 zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wl=e=>!Qr(e)&&e!==zt;function la(){const{caseless:e}=Wl(this)&&this||{},t={},r=(n,o)=>{const a=e&&zl(t,o)||o;Mn(t[a])&&Mn(n)?t[a]=la(t[a],n):Mn(n)?t[a]=la({},n):jr(n)?t[a]=n.slice():t[a]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&cn(arguments[n],r);return t}const g1=(e,t,r,{allOwnKeys:n}={})=>(cn(t,(o,a)=>{r&&We(o)?e[a]=Jl(o,r):e[a]=o},{allOwnKeys:n}),e),y1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_1=(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)},b1=(e,t,r,n)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!n||n(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&Na(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},x1=(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},S1=e=>{if(!e)return null;if(jr(e))return e;let t=e.length;if(!Gl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},v1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Na(Uint8Array)),w1=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},R1=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},j1=lt("HTMLFormElement"),C1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ii=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),A1=lt("RegExp"),Hl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};cn(r,(o,a)=>{let i;(i=t(o,a,e))!==!1&&(n[a]=i||o)}),Object.defineProperties(e,n)},P1=e=>{Hl(e,(t,r)=>{if(We(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(We(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},O1=(e,t)=>{const r={},n=o=>{o.forEach(a=>{r[a]=!0})};return jr(e)?n(e):n(String(e).split(t)),r},T1=()=>{},E1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Uo="abcdefghijklmnopqrstuvwxyz",li="0123456789",Kl={DIGIT:li,ALPHA:Uo,ALPHA_DIGIT:Uo+Uo.toUpperCase()+li},M1=(e=16,t=Kl.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function I1(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const L1=e=>{const t=new Array(10),r=(n,o)=>{if(yo(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const a=jr(n)?[]:{};return cn(n,(i,l)=>{const c=r(i,o+1);!Qr(c)&&(a[l]=c)}),t[o]=void 0,a}}return n};return r(e,0)},k1=lt("AsyncFunction"),$1=e=>e&&(yo(e)||We(e))&&We(e.then)&&We(e.catch),ql=((e,t)=>e?setImmediate:t?((r,n)=>(zt.addEventListener("message",({source:o,data:a})=>{o===zt&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),zt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",We(zt.postMessage)),N1=typeof queueMicrotask<"u"?queueMicrotask.bind(zt):typeof process<"u"&&process.nextTick||ql,x={isArray:jr,isArrayBuffer:Vl,isBuffer:e1,isFormData:c1,isArrayBufferView:t1,isString:r1,isNumber:Gl,isBoolean:n1,isObject:yo,isPlainObject:Mn,isReadableStream:d1,isRequest:f1,isResponse:h1,isHeaders:m1,isUndefined:Qr,isDate:o1,isFile:a1,isBlob:s1,isRegExp:A1,isFunction:We,isStream:l1,isURLSearchParams:u1,isTypedArray:v1,isFileList:i1,forEach:cn,merge:la,extend:g1,trim:p1,stripBOM:y1,inherits:_1,toFlatObject:b1,kindOf:po,kindOfTest:lt,endsWith:x1,toArray:S1,forEachEntry:w1,matchAll:R1,isHTMLForm:j1,hasOwnProperty:ii,hasOwnProp:ii,reduceDescriptors:Hl,freezeMethods:P1,toObjectSet:O1,toCamelCase:C1,noop:T1,toFiniteNumber:E1,findKey:zl,global:zt,isContextDefined:Wl,ALPHABET:Kl,generateString:M1,isSpecCompliantForm:I1,toJSONObject:L1,isAsyncFn:k1,isThenable:$1,setImmediate:ql,asap:N1};function J(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}x.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Xl=J.prototype,Yl={};["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=>{Yl[e]={value:e}});Object.defineProperties(J,Yl);Object.defineProperty(Xl,"isAxiosError",{value:!0});J.from=(e,t,r,n,o,a)=>{const i=Object.create(Xl);return x.toFlatObject(e,i,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),J.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const F1=null;function ca(e){return x.isPlainObject(e)||x.isArray(e)}function Zl(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function ci(e,t,r){return e?e.concat(t).map(function(o,a){return o=Zl(o),!r&&a?"["+o+"]":o}).join(r?".":""):t}function D1(e){return x.isArray(e)&&!e.some(ca)}const U1=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function _o(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(_,g){return!x.isUndefined(g[_])});const n=r.metaTokens,o=r.visitor||d,a=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(x.isDate(y))return y.toISOString();if(!c&&x.isBlob(y))throw new J("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(y)||x.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,_,g){let v=y;if(y&&!g&&typeof y=="object"){if(x.endsWith(_,"{}"))_=n?_:_.slice(0,-2),y=JSON.stringify(y);else if(x.isArray(y)&&D1(y)||(x.isFileList(y)||x.endsWith(_,"[]"))&&(v=x.toArray(y)))return _=Zl(_),v.forEach(function(C,k){!(x.isUndefined(C)||C===null)&&t.append(i===!0?ci([_],k,a):i===null?_:_+"[]",u(C))}),!1}return ca(y)?!0:(t.append(ci(g,_,a),u(y)),!1)}const h=[],f=Object.assign(U1,{defaultVisitor:d,convertValue:u,isVisitable:ca});function b(y,_){if(!x.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(y),x.forEach(y,function(v,R){(!(x.isUndefined(v)||v===null)&&o.call(t,v,x.isString(R)?R.trim():R,_,f))===!0&&b(v,_?_.concat(R):[R])}),h.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ui(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Fa(e,t){this._pairs=[],e&&_o(e,this,t)}const Ql=Fa.prototype;Ql.append=function(t,r){this._pairs.push([t,r])};Ql.toString=function(t){const r=t?function(n){return t.call(this,n,ui)}:ui;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function B1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ec(e,t,r){if(!t)return e;const n=r&&r.encode||B1,o=r&&r.serialize;let a;if(o?a=o(t,r):a=x.isURLSearchParams(t)?t.toString():new Fa(t,r).toString(n),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class di{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 tc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},J1=typeof URLSearchParams<"u"?URLSearchParams:Fa,V1=typeof FormData<"u"?FormData:null,G1=typeof Blob<"u"?Blob:null,z1={isBrowser:!0,classes:{URLSearchParams:J1,FormData:V1,Blob:G1},protocols:["http","https","file","blob","url","data"]},Da=typeof window<"u"&&typeof document<"u",W1=(e=>Da&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),H1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",K1=Da&&window.location.href||"http://localhost",q1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Da,hasStandardBrowserEnv:W1,hasStandardBrowserWebWorkerEnv:H1,origin:K1},Symbol.toStringTag,{value:"Module"})),st={...q1,...z1};function X1(e,t){return _o(e,new st.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,a){return st.isNode&&x.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Y1(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Z1(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}function rc(e){function t(r,n,o,a){let i=r[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),c=a>=r.length;return i=!i&&x.isArray(o)?o.length:i,c?(x.hasOwnProp(o,i)?o[i]=[o[i],n]:o[i]=n,!l):((!o[i]||!x.isObject(o[i]))&&(o[i]=[]),t(r,n,o[i],a)&&x.isArray(o[i])&&(o[i]=Z1(o[i])),!l)}if(x.isFormData(e)&&x.isFunction(e.entries)){const r={};return x.forEachEntry(e,(n,o)=>{t(Y1(n),o,r,0)}),r}return null}function Q1(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 un={transitional:tc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=x.isObject(t);if(a&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(rc(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 l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return X1(t,this.formSerializer).toString();if((l=x.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return _o(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(r.setContentType("application/json",!1),Q1(t)):t}],transformResponse:[function(t){const r=this.transitional||un.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 i=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?J.from(l,J.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.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=>{un.headers[e]={}});const e_=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"]),t_=e=>{const t={};let r,n,o;return e&&e.split(`
|
|
79
|
+
`).forEach(function(i){o=i.indexOf(":"),r=i.substring(0,o).trim().toLowerCase(),n=i.substring(o+1).trim(),!(!r||t[r]&&e_[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},fi=Symbol("internals");function Br(e){return e&&String(e).trim().toLowerCase()}function In(e){return e===!1||e==null?e:x.isArray(e)?e.map(In):String(e)}function r_(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 n_=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Bo(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 o_(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function a_(e,t){const r=x.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,a,i){return this[n].call(this,t,o,a,i)},configurable:!0})})}let Fe=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function a(l,c,u){const d=Br(c);if(!d)throw new Error("header name must be a non-empty string");const h=x.findKey(o,d);(!h||o[h]===void 0||u===!0||u===void 0&&o[h]!==!1)&&(o[h||c]=In(l))}const i=(l,c)=>x.forEach(l,(u,d)=>a(u,d,c));if(x.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(x.isString(t)&&(t=t.trim())&&!n_(t))i(t_(t),r);else if(x.isHeaders(t))for(const[l,c]of t.entries())a(c,l,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=Br(t),t){const n=x.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return r_(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=Br(t),t){const n=x.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Bo(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function a(i){if(i=Br(i),i){const l=x.findKey(n,i);l&&(!r||Bo(n,n[l],l,r))&&(delete n[l],o=!0)}}return x.isArray(t)?t.forEach(a):a(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const a=r[n];(!t||Bo(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const r=this,n={};return x.forEach(this,(o,a)=>{const i=x.findKey(n,a);if(i){r[i]=In(o),delete r[a];return}const l=t?o_(a):String(a).trim();l!==a&&delete r[a],r[l]=In(o),n[l]=!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(`
|
|
80
|
+
`)}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[fi]=this[fi]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=Br(i);n[l]||(a_(o,i),n[l]=!0)}return x.isArray(t)?t.forEach(a):a(t),this}};Fe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Fe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});x.freezeMethods(Fe);function Jo(e,t){const r=this||un,n=t||r,o=Fe.from(n.headers);let a=n.data;return x.forEach(e,function(l){a=l.call(r,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function nc(e){return!!(e&&e.__CANCEL__)}function Cr(e,t,r){J.call(this,e??"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}x.inherits(Cr,J,{__CANCEL__:!0});function oc(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function s_(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function i_(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[a];i||(i=u),r[o]=c,n[o]=u;let h=a,f=0;for(;h!==o;)f+=r[h++],h=h%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const b=d&&u-d;return b?Math.round(f*1e3/b):void 0}}function l_(e,t){let r=0,n=1e3/t,o,a;const i=(u,d=Date.now())=>{r=d,o=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),h=d-r;h>=n?i(u,d):(o=u,a||(a=setTimeout(()=>{a=null,i(o)},n-h)))},()=>o&&i(o)]}const Wn=(e,t,r=3)=>{let n=0;const o=i_(50,250);return l_(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,c=i-n,u=o(c),d=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},r)},hi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},mi=e=>(...t)=>x.asap(()=>e(...t)),c_=st.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(a){let i=a;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(i){const l=x.isString(i)?o(i):i;return l.protocol===n.protocol&&l.host===n.host}}():function(){return function(){return!0}}(),u_=st.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];x.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),x.isString(n)&&i.push("path="+n),x.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.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 d_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function f_(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ac(e,t){return e&&!d_(t)?f_(e,t):t}const pi=e=>e instanceof Fe?{...e}:e;function Yt(e,t){t=t||{};const r={};function n(u,d,h){return x.isPlainObject(u)&&x.isPlainObject(d)?x.merge.call({caseless:h},u,d):x.isPlainObject(d)?x.merge({},d):x.isArray(d)?d.slice():d}function o(u,d,h){if(x.isUndefined(d)){if(!x.isUndefined(u))return n(void 0,u,h)}else return n(u,d,h)}function a(u,d){if(!x.isUndefined(d))return n(void 0,d)}function i(u,d){if(x.isUndefined(d)){if(!x.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,h){if(h in t)return n(u,d);if(h in e)return n(void 0,u)}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,d)=>o(pi(u),pi(d),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=c[d]||o,f=h(e[d],t[d],d);x.isUndefined(f)&&h!==l||(r[d]=f)}),r}const sc=e=>{const t=Yt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:l}=t;t.headers=i=Fe.from(i),t.url=ec(ac(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(x.isFormData(r)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(st.hasStandardBrowserEnv&&(n&&x.isFunction(n)&&(n=n(t)),n||n!==!1&&c_(t.url))){const u=o&&a&&u_.read(a);u&&i.set(o,u)}return t},h_=typeof XMLHttpRequest<"u",m_=h_&&function(e){return new Promise(function(r,n){const o=sc(e);let a=o.data;const i=Fe.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,h,f,b,y;function _(){b&&b(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(o.method.toUpperCase(),o.url,!0),g.timeout=o.timeout;function v(){if(!g)return;const C=Fe.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};oc(function(O){r(O),_()},function(O){n(O),_()},j),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(n(new J("Request aborted",J.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new J("Network Error",J.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||tc;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),n(new J(k,j.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&x.forEach(i.toJSON(),function(k,j){g.setRequestHeader(j,k)}),x.isUndefined(o.withCredentials)||(g.withCredentials=!!o.withCredentials),l&&l!=="json"&&(g.responseType=o.responseType),u&&([f,y]=Wn(u,!0),g.addEventListener("progress",f)),c&&g.upload&&([h,b]=Wn(c),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=C=>{g&&(n(!C||C.type?new Cr(null,e,g):C),g.abort(),g=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const R=s_(o.url);if(R&&st.protocols.indexOf(R)===-1){n(new J("Unsupported protocol "+R+":",J.ERR_BAD_REQUEST,e));return}g.send(a||null)})},p_=(e,t)=>{let r=new AbortController,n;const o=function(c){if(!n){n=!0,i();const u=c instanceof Error?c:this.reason;r.abort(u instanceof J?u:new Cr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{o(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=i,[l,()=>{a&&clearTimeout(a),a=null}]},g_=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},y_=async function*(e,t,r){for await(const n of e)yield*g_(ArrayBuffer.isView(n)?n:await r(String(n)),t)},gi=(e,t,r,n,o)=>{const a=y_(e,t,o);let i=0,l,c=u=>{l||(l=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:d,value:h}=await a.next();if(d){c(),u.close();return}let f=h.byteLength;if(r){let b=i+=f;r(b)}u.enqueue(new Uint8Array(h))}catch(d){throw c(d),d}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},bo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ic=bo&&typeof ReadableStream=="function",ua=bo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),lc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},__=ic&&lc(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yi=64*1024,da=ic&&lc(()=>x.isReadableStream(new Response("").body)),Hn={stream:da&&(e=>e.body)};bo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Hn[t]&&(Hn[t]=x.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const b_=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(x.isArrayBufferView(e)||x.isArrayBuffer(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await ua(e)).byteLength},x_=async(e,t)=>{const r=x.toFiniteNumber(e.getContentLength());return r??b_(t)},S_=bo&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:h="same-origin",fetchOptions:f}=sc(e);u=u?(u+"").toLowerCase():"text";let[b,y]=o||a||i?p_([o,a],i):[],_,g;const v=()=>{!_&&setTimeout(()=>{b&&b.unsubscribe()}),_=!0};let R;try{if(c&&__&&r!=="get"&&r!=="head"&&(R=await x_(d,n))!==0){let P=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(x.isFormData(n)&&(O=P.headers.get("content-type"))&&d.setContentType(O),P.body){const[z,le]=hi(R,Wn(mi(c)));n=gi(P.body,yi,z,le,ua)}}x.isString(h)||(h=h?"include":"omit"),g=new Request(t,{...f,signal:b,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:h});let C=await fetch(g);const k=da&&(u==="stream"||u==="response");if(da&&(l||k)){const P={};["status","statusText","headers"].forEach(ue=>{P[ue]=C[ue]});const O=x.toFiniteNumber(C.headers.get("content-length")),[z,le]=l&&hi(O,Wn(mi(l),!0))||[];C=new Response(gi(C.body,yi,z,()=>{le&&le(),k&&v()},ua),P)}u=u||"text";let j=await Hn[x.findKey(Hn,u)||"text"](C,e);return!k&&v(),y&&y(),await new Promise((P,O)=>{oc(P,O,{data:j,headers:Fe.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(C){throw v(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,g),{cause:C.cause||C}):J.from(C,C&&C.code,e,g)}}),fa={http:F1,xhr:m_,fetch:S_};x.forEach(fa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _i=e=>`- ${e}`,v_=e=>x.isFunction(e)||e===null||e===!1,cc={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){r=e[a];let i;if(n=r,!v_(r)&&(n=fa[(i=String(r)).toLowerCase()],n===void 0))throw new J(`Unknown adapter '${i}'`);if(n)break;o[i||"#"+a]=n}if(!n){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?a.length>1?`since :
|
|
81
|
+
`+a.map(_i).join(`
|
|
82
|
+
`):" "+_i(a[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:fa};function Vo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cr(null,e)}function bi(e){return Vo(e),e.headers=Fe.from(e.headers),e.data=Jo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cc.getAdapter(e.adapter||un.adapter)(e).then(function(n){return Vo(e),n.data=Jo.call(e,e.transformResponse,n),n.headers=Fe.from(n.headers),n},function(n){return nc(n)||(Vo(e),n&&n.response&&(n.response.data=Jo.call(e,e.transformResponse,n.response),n.response.headers=Fe.from(n.response.headers))),Promise.reject(n)})}const uc="1.7.4",Ua={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ua[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const xi={};Ua.transitional=function(t,r,n){function o(a,i){return"[Axios v"+uc+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,l)=>{if(t===!1)throw new J(o(i," has been removed"+(r?" in "+r:"")),J.ERR_DEPRECATED);return r&&!xi[i]&&(xi[i]=!0,console.warn(o(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,i,l):!0}};function w_(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const l=e[a],c=l===void 0||i(l,a,e);if(c!==!0)throw new J("option "+a+" must be "+c,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+a,J.ERR_BAD_OPTION)}}const ha={assertOptions:w_,validators:Ua},kt=ha.validators;let Wt=class{constructor(t){this.defaults=t,this.interceptors={request:new di,response:new di}}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 a=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
83
|
+
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Yt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&ha.assertOptions(n,{silentJSONParsing:kt.transitional(kt.boolean),forcedJSONParsing:kt.transitional(kt.boolean),clarifyTimeoutError:kt.transitional(kt.boolean)},!1),o!=null&&(x.isFunction(o)?r.paramsSerializer={serialize:o}:ha.assertOptions(o,{encode:kt.function,serialize:kt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=a&&x.merge(a.common,a[r.method]);a&&x.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),r.headers=Fe.concat(i,a);const l=[];let c=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(r)===!1||(c=c&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let d,h=0,f;if(!c){const y=[bi.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),f=y.length,d=Promise.resolve(r);h<f;)d=d.then(y[h++],y[h++]);return d}f=l.length;let b=r;for(h=0;h<f;){const y=l[h++],_=l[h++];try{b=y(b)}catch(g){_.call(this,g);break}}try{d=bi.call(this,b)}catch(y){return Promise.reject(y)}for(h=0,f=u.length;h<f;)d=d.then(u[h++],u[h++]);return d}getUri(t){t=Yt(this.defaults,t);const r=ac(t.baseURL,t.url);return ec(r,t.params,t.paramsSerializer)}};x.forEach(["delete","get","head","options"],function(t){Wt.prototype[t]=function(r,n){return this.request(Yt(n||{},{method:t,url:r,data:(n||{}).data}))}});x.forEach(["post","put","patch"],function(t){function r(n){return function(a,i,l){return this.request(Yt(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Wt.prototype[t]=r(),Wt.prototype[t+"Form"]=r(!0)});let R_=class dc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{n.subscribe(l),a=l}).then(o);return i.cancel=function(){n.unsubscribe(a)},i},t(function(a,i,l){n.reason||(n.reason=new Cr(a,i,l),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)}static source(){let t;return{token:new dc(function(o){t=o}),cancel:t}}};function j_(e){return function(r){return e.apply(null,r)}}function C_(e){return x.isObject(e)&&e.isAxiosError===!0}const ma={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(ma).forEach(([e,t])=>{ma[t]=e});function fc(e){const t=new Wt(e),r=Jl(Wt.prototype.request,t);return x.extend(r,Wt.prototype,t,{allOwnKeys:!0}),x.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return fc(Yt(e,o))},r}const ve=fc(un);ve.Axios=Wt;ve.CanceledError=Cr;ve.CancelToken=R_;ve.isCancel=nc;ve.VERSION=uc;ve.toFormData=_o;ve.AxiosError=J;ve.Cancel=ve.CanceledError;ve.all=function(t){return Promise.all(t)};ve.spread=j_;ve.isAxiosError=C_;ve.mergeConfig=Yt;ve.AxiosHeaders=Fe;ve.formToJSON=e=>rc(x.isHTMLForm(e)?new FormData(e):e);ve.getAdapter=cc.getAdapter;ve.HttpStatusCode=ma;ve.default=ve;const{Axios:U_,AxiosError:Si,CanceledError:B_,isCancel:J_,CancelToken:V_,VERSION:G_,all:z_,Cancel:W_,isAxiosError:H_,spread:K_,toFormData:q_,AxiosHeaders:X_,HttpStatusCode:Y_,formToJSON:Z_,getAdapter:Q_,mergeConfig:eb}=ve;function A_(e){try{return JSON.stringify(e)}catch{return}}function P_(e){var t,r,n,o;return e instanceof Si&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof Si&&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: ${A_(e)||e}`}const O_=e=>{const t=e.softTimeout||3e3,[r,n]=Z.useState(!1);return Z.useEffect(()=>{const o=setTimeout(()=>{n(!0)},t);return()=>clearTimeout(o)}),s.jsx(L.Stack,{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",children:e.error?s.jsx(T_,{message:e.message,error:e.error}):s.jsxs(s.Fragment,{children:[s.jsx(L.CircularProgress,{sx:{marginBottom:"24px"}}),!!e.message&&s.jsx("div",{children:e.message}),s.jsx(L.Stack,{sx:{visibility:r?"visible":"hidden",marginTop:"1rem",color:"gray"},children:"This is taking longer than expected..."})]})})},T_=e=>{const t=P_(e.error),r=e.error instanceof Error?e.error.stack:null,n=L.useTheme();return s.jsxs(L.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:[`Error while: ${e.message} - ${t}`,s.jsx("br",{}),r&&s.jsx("pre",{children:r})]})},E_=en(He.observer(e=>{var a,i,l,c;const t=e.nova instanceof Rt.NovaClient?e.nova:new Rt.NovaClient({instanceUrl:e.nova}),r=He.useLocalObservable(()=>({joggingStore:null,loadingError:null}));async function n(){br.runInAction(()=>{r.loadingError=null,r.joggingStore=null});try{const u=await t.connectJogger(e.motionGroupId),d=await $a.loadFor(u);br.runInAction(()=>{r.joggingStore=d}),e.onSetup&&e.onSetup(d)}catch(u){r.loadingError=u}}if(Z.useEffect(()=>(n(),()=>{var u;(u=r.joggingStore)==null||u.dispose()}),[e.nova]),Z.useEffect(()=>{if(!r.joggingStore)return;const{currentTab:u,selectedTcpId:d,activeCoordSystemId:h,selectedDiscreteIncrement:f}=r.joggingStore;if(u.id!=="cartesian"&&u.id!=="joint")return;const b={tcpId:d,coordSystemId:h};f&&u.id==="cartesian"?r.joggingStore.jogger.setJoggingMode("increment",b):r.joggingStore.jogger.setJoggingMode(u.id,b)},[(a=r.joggingStore)==null?void 0:a.currentTab,(i=r.joggingStore)==null?void 0:i.selectedTcpId,(l=r.joggingStore)==null?void 0:l.activeCoordSystemId,(c=r.joggingStore)==null?void 0:c.selectedDiscreteIncrement]),!r.joggingStore||r.loadingError)return s.jsx(vi,{children:s.jsx(O_,{message:"Loading jogging",error:r.loadingError})});const{joggingStore:o}=r;return s.jsx(vi,{children:s.jsxs(L.Stack,{flexGrow:1,children:[s.jsx(L.Tabs,{value:o.tabIndex,onChange:o.onTabChange,children:o.tabs.map(u=>s.jsx(L.Tab,{label:u.label,id:`jogging-tab-${u.id}`,"aria-controls":`jogging-tab-${u.id}`},u.id))}),s.jsxs(L.Stack,{flexGrow:1,children:[o.currentTab.id==="cartesian"&&s.jsx(uy,{store:o}),o.currentTab.id==="joint"&&s.jsx(fy,{store:o}),e.children]})]})})}));function vi({children:e}){return s.jsx(L.Stack,{sx:{maxWidth:"460px",minWidth:"350px",overflowY:"auto",position:"relative",height:"100%"},children:s.jsx(L.Paper,{sx:{height:"100%"},children:e})})}function M_(){const e=window.location.href;return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function I_({baseUrl:e=M_(),...t}){return s.jsxs(L.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(L.DialogTitle,{id:"no-motion-group-modal-title",children:"No motion group found"}),s.jsxs(L.DialogContent,{sx:{marginTop:"3rem",marginBottom:"1.5rem",textAlign:"center"},children:[s.jsx(L.Typography,{color:"#fff",children:"Found no devices to connect to."}),s.jsx(L.Typography,{color:"#fff",children:"Please ensure a motion group has been created."})]}),s.jsx(L.DialogActions,{children:s.jsxs(L.Stack,{width:"100%",maxWidth:"300px",margin:"auto",marginBottom:"2rem",children:[s.jsx(L.Button,{href:`${e}/settings`,variant:"contained",sx:{borderRadius:"8px",width:"100%"},children:"Go to settings app"}),s.jsx(L.Button,{href:`${e}`,variant:"text",sx:{marginTop:"1rem",color:"#fff",textDecoration:"underline",fontSize:"0.75rem"},children:"Back to Homescreen"})]})})]})}const L_=Array(6).fill(2*Math.PI),ht={white:"#FFFFFF",midnightblue:"#001337",lightbuttonblue:"#47D3FF",midnightgray:"#DDE0E4",midnightgray500:"#828B9B",skyblue500:"#06B8F1",skyblue600:"#0094CE",darkishblue:"#262F42",darkestblue:"#101629",grayishblue:"#505968",darkgrayishblue:"#363c4b",scaryred:"#FF0E65",tealGreen:"#1AC0B2",magenta:"#EA3785"},k_={mode:"dark",colors:{primary:ht.skyblue500,textDefault:ht.white,textSubtle:ht.midnightgray,background:{default:ht.darkishblue,panel:ht.darkestblue}}},$_={mode:"light",colors:{primary:ht.skyblue500,textDefault:ht.darkishblue,textSubtle:ht.midnightgray,background:{default:ht.skyblue500,panel:ht.white}}};function N_(e){var o,a,i,l;let t=!0;((o=e.palette)==null?void 0:o.mode)==="light"?t=!1:((a=e.palette)==null?void 0:a.mode)!=="dark"&&(t=!(typeof window<"u"&&((l=(i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: light)"))==null?void 0:l.matches)));const r=t?k_:$_,n=ea({palette:{mode:r.mode,primary:{main:r.colors.primary},background:{default:r.colors.background.default,paper:r.colors.background.panel}},typography:{allVariants:{color:r.colors.textDefault}},components:{MuiSelect:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor","& > div":{padding:"4px 16px"},"& fieldset":{border:t?"none":void 0}}}},MuiChip:{styleOverrides:{root:{backgroundColor:t?"#505968":void 0,borderRadius:"10px",color:"currentColor"}}},MuiToggleButtonGroup:{styleOverrides:{root:{"& > button":{borderRadius:"8px",textTransform:"none",paddingTop:"4px",paddingBottom:"4px",width:"100%",borderWidth:0,backgroundColor:t?"#3d4455":void 0,color:t?"rgba(255, 255, 255, 0.8)":void 0,"&.Mui-selected":t?{color:"white",backgroundColor:"#505968"}:void 0}}}},MuiTabs:{styleOverrides:{root:{backgroundColor:t?"#101629":void 0,minHeight:"42px"}}},MuiTab:{styleOverrides:{root:{minHeight:"42px",textTransform:"none","&.Mui-selected":t?{color:"white",backgroundColor:"#404554"}:void 0}}}},nova:r});return e?ea(n,e):n}exports.JoggingCartesianAxisControl=ta;exports.JoggingJointRotationControl=bl;exports.JoggingPanel=E_;exports.NoMotionGroupModal=I_;exports.PresetEnvironment=Su;exports.Robot=xu;exports.SafetyZonesRenderer=Ru;exports.SupportedRobot=Ei;exports.VelocitySlider=wl;exports.WandelscriptEditor=Yc;exports.createNovaMuiTheme=N_;exports.defaultAxisConfig=L_;exports.defaultGetModel=pa;exports.useAnimationFrame=Sr;exports.useAutorun=Oi;exports.useMounted=qn;exports.useReaction=Ti;
|
|
84
84
|
//# sourceMappingURL=index.cjs.map
|